axitech-widget 0.0.3 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/index.d.ts +2 -0
- package/package.json +4 -2
- package/src/index.ts +2 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
|
+
import { ContactConfig } from './utils/config';
|
|
2
3
|
import { Theme } from './utils/themeUtils';
|
|
3
4
|
declare const WidgetTypes: {
|
|
4
5
|
readonly claim: "claim";
|
|
@@ -17,6 +18,7 @@ export type IWidgetOptions = {
|
|
|
17
18
|
provider: string;
|
|
18
19
|
policyNumber: string;
|
|
19
20
|
};
|
|
21
|
+
contact: ContactConfig;
|
|
20
22
|
theme?: Theme;
|
|
21
23
|
};
|
|
22
24
|
/** Load widget as vue component to have more control over it */
|
package/package.json
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "axitech-widget",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "rimraf dist && vue-tsc && vite build",
|
|
6
6
|
"docs:dev": "vitepress dev docs",
|
|
7
7
|
"docs:build": "vitepress build docs",
|
|
8
8
|
"docs:serve": "vitepress serve docs",
|
|
9
|
-
"lint": "eslint --fix-all ./"
|
|
9
|
+
"lint": "eslint --fix-all ./",
|
|
10
|
+
"publish:minor": "yarn build && npm version minor --force && npm publish",
|
|
11
|
+
"publish:major": "yarn build && npm version major --force && npm publish"
|
|
10
12
|
},
|
|
11
13
|
"peerDependencies": {
|
|
12
14
|
"vue": "^3.3.4"
|
package/src/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { App, defineCustomElement } from 'vue';
|
|
2
2
|
import * as components from './components';
|
|
3
3
|
import utils from './utils';
|
|
4
|
-
import { config, applyConfig as applyAdminConfig } from './utils/config';
|
|
4
|
+
import { config, applyConfig as applyAdminConfig, ContactConfig } from './utils/config';
|
|
5
5
|
import { Theme } from './utils/themeUtils';
|
|
6
6
|
import { ApiPaths, request } from './utils/request';
|
|
7
7
|
|
|
@@ -27,6 +27,7 @@ export type IWidgetOptions = {
|
|
|
27
27
|
provider: string;
|
|
28
28
|
policyNumber: string;
|
|
29
29
|
};
|
|
30
|
+
contact: ContactConfig;
|
|
30
31
|
theme?: Theme;
|
|
31
32
|
};
|
|
32
33
|
|