0.6.3 • Published 11 months ago

@mycoverai/mca-vue-legacy-sdk v0.6.3

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

MyCover.ai Vue 2 SDK

Official MyCover.ai SDK. Supercharge your product with MyCover AI Insurance offerings. Create embedded insurance offerings or full white label insurance applications that excite your customers.

Installation

With NPM

npm install @mycoverai/mca-vue-legacy-sdk

From CDN

<script src="https://unpkg.com/@mycoverai/mca-vue-legacy-sdk/dist/umd.js"></script>

Usage

With NPM

//import package globally on your main.js or index.js
import mca from  "@mycoverai/mca-vue-legacy-sdk";

Vue.use(mca);

new Vue({
    render: h => h(App),
}).$mount('#app')
    

//or just import & use localy on your component  
import mca from '@mycoverai/mca-vue-legacy-sdk';

export default {
    name: 'App',
    components: {
        mca
    },
    methods: {
        onClose(){

        }
    }
}    

//import in your template & setup your business configuration by supplying your client id. If product_id is not provided or is an empty array, the SDK will display a list of insurance products for the customer to choose from. You can supply an array of strings, where each string represents an insurance product id, for the user to select from.
<mca client-id="olakunle@mycovergenius.com" :product-id="['a72c4e3c-e868-4782-bb35-df6e3344ae6c']" on-close="onClose" ></mca>

With CDN

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

0.6.3

11 months ago

0.6.2

11 months ago

0.6.1

11 months ago

0.6.0

12 months ago

0.5.0

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.3

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago