@craterapp/vue-sdk 0.0.2-alpha.1
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/README.md +34 -0
- package/dist/AddressType-m1hqKeYp.js +227 -0
- package/dist/CheckboxType-i0NN31IO.js +72 -0
- package/dist/DOBType-7LLta_0g.js +129 -0
- package/dist/DocumentType-brMr3YMK.js +412 -0
- package/dist/DropdownType-jG2Uw1cX.js +54 -0
- package/dist/EmailType-fxRHt19f.js +67 -0
- package/dist/ExternalAccountType-JpeVUGZe.js +208 -0
- package/dist/IdentityNumberType-_qb4HC7c.js +68 -0
- package/dist/InputType-SM3zO2qx.js +71 -0
- package/dist/MCCType-jJ2nRm9j.js +1488 -0
- package/dist/PhoneType-7z0wZZBx.js +69 -0
- package/dist/SSNType-FNEpe3un.js +70 -0
- package/dist/TaxType-B9-nJm8c.js +68 -0
- package/dist/TextAreaType-KPDy81ZR.js +71 -0
- package/dist/UrlType-Kfiv3mDk.js +114 -0
- package/dist/crater-vue-sdk.es.js +22 -0
- package/dist/crater-vue-sdk.umd.js +239 -0
- package/dist/fonts/Inter/Inter-Black.otf +0 -0
- package/dist/fonts/Inter/Inter-BlackItalic.otf +0 -0
- package/dist/fonts/Inter/Inter-Bold.otf +0 -0
- package/dist/fonts/Inter/Inter-BoldItalic.otf +0 -0
- package/dist/fonts/Inter/Inter-ExtraBold.otf +0 -0
- package/dist/fonts/Inter/Inter-ExtraBoldItalic.otf +0 -0
- package/dist/fonts/Inter/Inter-ExtraLight.otf +0 -0
- package/dist/fonts/Inter/Inter-ExtraLightItalic.otf +0 -0
- package/dist/fonts/Inter/Inter-Italic.otf +0 -0
- package/dist/fonts/Inter/Inter-Light.otf +0 -0
- package/dist/fonts/Inter/Inter-LightItalic.otf +0 -0
- package/dist/fonts/Inter/Inter-Medium.otf +0 -0
- package/dist/fonts/Inter/Inter-MediumItalic.otf +0 -0
- package/dist/fonts/Inter/Inter-Regular.otf +0 -0
- package/dist/fonts/Inter/Inter-SemiBold.otf +0 -0
- package/dist/fonts/Inter/Inter-SemiBoldItalic.otf +0 -0
- package/dist/fonts/Inter/Inter-Thin.otf +0 -0
- package/dist/fonts/Inter/Inter-ThinItalic.otf +0 -0
- package/dist/fonts/Inter/Inter-V.ttf +0 -0
- package/dist/index-IlzZ4Xqv.js +80938 -0
- package/dist/index.d.ts +8 -0
- package/dist/style.css +9 -0
- package/dist/templates/estimate1.png +0 -0
- package/dist/templates/estimate2.png +0 -0
- package/dist/templates/estimate3.png +0 -0
- package/dist/templates/invoice1.png +0 -0
- package/dist/templates/invoice2.png +0 -0
- package/dist/templates/invoice3.png +0 -0
- package/dist/types/interfaces.d.ts +11 -0
- package/dist/types/locale.d.ts +4 -0
- package/dist/views/BusinessPaymentStatus.vue.d.ts +2 -0
- package/dist/views/CustomerCreate.vue.d.ts +2 -0
- package/dist/views/CustomerDetails.vue.d.ts +14 -0
- package/dist/views/CustomerEdit.vue.d.ts +14 -0
- package/dist/views/CustomerTable.vue.d.ts +2 -0
- package/dist/views/EstimateCreate.vue.d.ts +2 -0
- package/dist/views/EstimateDetails.vue.d.ts +14 -0
- package/dist/views/EstimateEdit.vue.d.ts +14 -0
- package/dist/views/EstimateTable.vue.d.ts +16 -0
- package/dist/views/HelloWorld.vue.d.ts +6 -0
- package/dist/views/InvoiceCreate.vue.d.ts +2 -0
- package/dist/views/InvoiceDetails.vue.d.ts +14 -0
- package/dist/views/InvoiceEdit.vue.d.ts +14 -0
- package/dist/views/InvoiceTable.vue.d.ts +16 -0
- package/dist/views/Payment.vue.d.ts +74 -0
- package/dist/views/index.d.ts +15 -0
- package/package.json +97 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Locale } from './locale';
|
|
2
|
+
export interface PluginOptions {
|
|
3
|
+
apiBaseUrl: string;
|
|
4
|
+
locale?: Locale | 'en';
|
|
5
|
+
}
|
|
6
|
+
export interface AuthService {
|
|
7
|
+
hasToken: boolean;
|
|
8
|
+
getToken: () => string | null;
|
|
9
|
+
setToken: (token: string) => void;
|
|
10
|
+
removeToken: () => void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
id: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
|
+
id: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
}>>, {
|
|
12
|
+
id: string;
|
|
13
|
+
}, {}>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
id: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
|
+
id: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
}>>, {
|
|
12
|
+
id: string;
|
|
13
|
+
}, {}>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
id: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
|
+
id: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
}>>, {
|
|
12
|
+
id: string;
|
|
13
|
+
}, {}>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
id: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
|
+
id: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
}>>, {
|
|
12
|
+
id: string;
|
|
13
|
+
}, {}>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
type: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
validator(value: string): boolean;
|
|
6
|
+
};
|
|
7
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
8
|
+
type: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: string;
|
|
11
|
+
validator(value: string): boolean;
|
|
12
|
+
};
|
|
13
|
+
}>>, {
|
|
14
|
+
type: string;
|
|
15
|
+
}, {}>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
msg: StringConstructor;
|
|
3
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
4
|
+
msg: StringConstructor;
|
|
5
|
+
}>>, {}, {}>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
id: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
|
+
id: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
}>>, {
|
|
12
|
+
id: string;
|
|
13
|
+
}, {}>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
id: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
|
+
id: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
}>>, {
|
|
12
|
+
id: string;
|
|
13
|
+
}, {}>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
type: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
validator(value: string): boolean;
|
|
6
|
+
};
|
|
7
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
8
|
+
type: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: string;
|
|
11
|
+
validator(value: string): boolean;
|
|
12
|
+
};
|
|
13
|
+
}>>, {
|
|
14
|
+
type: string;
|
|
15
|
+
}, {}>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
invoiceViewLink: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
required: false;
|
|
5
|
+
};
|
|
6
|
+
invoiceId: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
stripeTheme: {
|
|
11
|
+
type: ObjectConstructor;
|
|
12
|
+
required: false;
|
|
13
|
+
default: () => {
|
|
14
|
+
colorPrimary: string;
|
|
15
|
+
fontFamily: string;
|
|
16
|
+
spacingUnit: string;
|
|
17
|
+
borderRadius: string;
|
|
18
|
+
spacingGridRow: string;
|
|
19
|
+
fontSizeBase: string;
|
|
20
|
+
fontSizeSm: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
model: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
required: false;
|
|
26
|
+
};
|
|
27
|
+
paymentReceiptUrl: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
};
|
|
30
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
31
|
+
error: (...args: any[]) => void;
|
|
32
|
+
succeeded: (...args: any[]) => void;
|
|
33
|
+
processing: (...args: any[]) => void;
|
|
34
|
+
disable: (...args: any[]) => void;
|
|
35
|
+
reload: (...args: any[]) => void;
|
|
36
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
37
|
+
invoiceViewLink: {
|
|
38
|
+
type: ObjectConstructor;
|
|
39
|
+
required: false;
|
|
40
|
+
};
|
|
41
|
+
invoiceId: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
required: true;
|
|
44
|
+
};
|
|
45
|
+
stripeTheme: {
|
|
46
|
+
type: ObjectConstructor;
|
|
47
|
+
required: false;
|
|
48
|
+
default: () => {
|
|
49
|
+
colorPrimary: string;
|
|
50
|
+
fontFamily: string;
|
|
51
|
+
spacingUnit: string;
|
|
52
|
+
borderRadius: string;
|
|
53
|
+
spacingGridRow: string;
|
|
54
|
+
fontSizeBase: string;
|
|
55
|
+
fontSizeSm: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
model: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
required: false;
|
|
61
|
+
};
|
|
62
|
+
paymentReceiptUrl: {
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
};
|
|
65
|
+
}>> & {
|
|
66
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
67
|
+
onSucceeded?: ((...args: any[]) => any) | undefined;
|
|
68
|
+
onProcessing?: ((...args: any[]) => any) | undefined;
|
|
69
|
+
onDisable?: ((...args: any[]) => any) | undefined;
|
|
70
|
+
onReload?: ((...args: any[]) => any) | undefined;
|
|
71
|
+
}, {
|
|
72
|
+
stripeTheme: Record<string, any>;
|
|
73
|
+
}, {}>;
|
|
74
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { default as Payment } from './Payment.vue';
|
|
2
|
+
export { default as HelloWorld } from './HelloWorld.vue';
|
|
3
|
+
export { default as BusinessPaymentStatus } from './BusinessPaymentStatus.vue';
|
|
4
|
+
export { default as EstimateCreate } from './EstimateCreate.vue';
|
|
5
|
+
export { default as EstimateEdit } from './EstimateEdit.vue';
|
|
6
|
+
export { default as EstimateTable } from './EstimateTable.vue';
|
|
7
|
+
export { default as EstimateDetails } from './EstimateDetails.vue';
|
|
8
|
+
export { default as InvoiceCreate } from './InvoiceCreate.vue';
|
|
9
|
+
export { default as InvoiceEdit } from './InvoiceEdit.vue';
|
|
10
|
+
export { default as InvoiceTable } from './InvoiceTable.vue';
|
|
11
|
+
export { default as InvoiceDetails } from './InvoiceDetails.vue';
|
|
12
|
+
export { default as CustomerCreate } from './CustomerCreate.vue';
|
|
13
|
+
export { default as CustomerEdit } from './CustomerEdit.vue';
|
|
14
|
+
export { default as CustomerTable } from './CustomerTable.vue';
|
|
15
|
+
export { default as CustomerDetails } from './CustomerDetails.vue';
|
package/package.json
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@craterapp/vue-sdk",
|
|
3
|
+
"version": "0.0.2-alpha.1",
|
|
4
|
+
"description": "Embedded Invoicing & Bill Pay for platforms.",
|
|
5
|
+
"author": "Crater <© 2023 Crater Invoice, Inc. All rights reserved.>",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"crater",
|
|
8
|
+
"crater-invoice",
|
|
9
|
+
"crater-vue",
|
|
10
|
+
"crater-vue-sdk",
|
|
11
|
+
"crater-invoice-vue-sdk"
|
|
12
|
+
],
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"type": "module",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"import": "./dist/crater-vue-sdk.es.js",
|
|
18
|
+
"require": "./dist/crater-vue-sdk.umd.js"
|
|
19
|
+
},
|
|
20
|
+
"./dist/style.css": {
|
|
21
|
+
"import": "./dist/style.css",
|
|
22
|
+
"require": "./dist/style.css"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"main": "./dist/crater-vue-sdk.umd.js",
|
|
26
|
+
"module": "./dist/crater-vue-sdk.es.js",
|
|
27
|
+
"types": "./dist/index.d.ts",
|
|
28
|
+
"files": [
|
|
29
|
+
"dist"
|
|
30
|
+
],
|
|
31
|
+
"scripts": {
|
|
32
|
+
"build": "vite build",
|
|
33
|
+
"dev": "vite",
|
|
34
|
+
"lint": "eslint --fix --ext .js,.vue,.ts src",
|
|
35
|
+
"preview": "vite preview"
|
|
36
|
+
},
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"@headlessui/vue": "^1.6.5",
|
|
39
|
+
"@heroicons/vue": "^1.0.1",
|
|
40
|
+
"@intlify/unplugin-vue-i18n": "^1.5.0",
|
|
41
|
+
"@popperjs/core": "^2.9.2",
|
|
42
|
+
"@tiptap/core": "^2.0.0-beta.210",
|
|
43
|
+
"@tiptap/extension-text-align": "^2.0.0-beta.31",
|
|
44
|
+
"@tiptap/pm": "^2.1.11",
|
|
45
|
+
"@tiptap/starter-kit": "^2.0.0-beta.189",
|
|
46
|
+
"@tiptap/vue-3": "^2.0.0-beta.95",
|
|
47
|
+
"@uppy/core": "^2.3.1",
|
|
48
|
+
"@uppy/dashboard": "^2.3.0",
|
|
49
|
+
"@uppy/image-editor": "^1.3.0",
|
|
50
|
+
"@uppy/url": "^2.2.0",
|
|
51
|
+
"@uppy/vue": "^0.4.8",
|
|
52
|
+
"@uppy/xhr-upload": "^2.1.2",
|
|
53
|
+
"@vuelidate/core": "^2.0.3",
|
|
54
|
+
"@vuelidate/validators": "^2.0.4",
|
|
55
|
+
"@vueuse/core": "^8.7.4",
|
|
56
|
+
"guid": "0.0.12",
|
|
57
|
+
"chart.js": "^3.8.0",
|
|
58
|
+
"@stripe/stripe-js": "^1.32.0",
|
|
59
|
+
"axios": "^0.27.2",
|
|
60
|
+
"dayjs": "^1.11.3",
|
|
61
|
+
"maska": "^1.4.6",
|
|
62
|
+
"mini-svg-data-uri": "^1.3.3",
|
|
63
|
+
"pinia": "^2.0.14",
|
|
64
|
+
"v-calendar": "3.0.0-alpha.8",
|
|
65
|
+
"v-money3": "3.16.1",
|
|
66
|
+
"v-tooltip": "^4.0.0-alpha.1",
|
|
67
|
+
"vue": "^3.3.8",
|
|
68
|
+
"vue3-slide-up-down": "^1.2.5",
|
|
69
|
+
"vue-i18n": "^9.1.10"
|
|
70
|
+
},
|
|
71
|
+
"devDependencies": {
|
|
72
|
+
"@antfu/eslint-config": "^0.25.2",
|
|
73
|
+
"@rvxlab/tailwind-plugin-ios-full-height": "^1.0.0",
|
|
74
|
+
"@tailwindcss/aspect-ratio": "^0.4.0",
|
|
75
|
+
"@tailwindcss/forms": "^0.5.2",
|
|
76
|
+
"@tailwindcss/typography": "^0.5.0",
|
|
77
|
+
"@vitejs/plugin-vue": "^4.5.0",
|
|
78
|
+
"@vue/compiler-sfc": "^3.2.37",
|
|
79
|
+
"autoprefixer": "^10.4.0",
|
|
80
|
+
"eslint": "^8.18.0",
|
|
81
|
+
"lodash": "^4.17.21",
|
|
82
|
+
"postcss": "^8.4.31",
|
|
83
|
+
"postcss-prefix-selector": "^1.16.0",
|
|
84
|
+
"sass": "^1.69.5",
|
|
85
|
+
"tailwindcss": "^3.1.3",
|
|
86
|
+
"typescript": "^5.2.2",
|
|
87
|
+
"unplugin-auto-import": "^0.8.8",
|
|
88
|
+
"unplugin-vue-components": "^0.19.6",
|
|
89
|
+
"vite": "^5.0.0",
|
|
90
|
+
"vite-plugin-dts": "^3.6.4",
|
|
91
|
+
"vite-tsconfig-paths": "^4.2.1",
|
|
92
|
+
"vue-tsc": "^1.8.22"
|
|
93
|
+
},
|
|
94
|
+
"peerDependencies": {
|
|
95
|
+
"vue": "^3.0.0"
|
|
96
|
+
}
|
|
97
|
+
}
|