@solidgate/vue-sdk 1.2.0 → 1.4.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/package.json CHANGED
@@ -10,12 +10,12 @@
10
10
  "import": "./dist/solid-payment.es.js"
11
11
  }
12
12
  },
13
- "version": "1.2.0",
13
+ "version": "1.4.0",
14
14
  "typings": "./dist/lib/index.d.ts",
15
15
  "license": "Apache-2.0",
16
16
  "scripts": {
17
17
  "start": "vite",
18
- "build": "vite build && vue-tsc --emitDeclarationOnly",
18
+ "build": "vite build",
19
19
  "preview": "vite preview",
20
20
  "lint": "eslint --ext .ts,vue --ignore-path .gitignore .",
21
21
  "prepare": "husky install",
@@ -25,7 +25,7 @@
25
25
  "vue": "^3.2.25"
26
26
  },
27
27
  "dependencies": {
28
- "@solidgate/client-sdk-loader": "^1.4.0",
28
+ "@solidgate/client-sdk-loader": "^1.6.0",
29
29
  "vue3-styled-components": "^1.2.1"
30
30
  },
31
31
  "devDependencies": {
package/CHANGELOG.md DELETED
@@ -1,16 +0,0 @@
1
- **1.2.0**
2
-
3
- Added **formParams.autoFocus** config param
4
-
5
- **1.1.2**
6
-
7
- Added license
8
-
9
- **1.1.0**
10
-
11
- ***
12
-
13
- - Added **AdditionalFields** enum
14
- - Fixed types which controlling labels visibility (like **initConfig.formParams.cardNumberLabel**)
15
- - Deprecated **initConfig.allowedAdditionalFields** usage
16
- - Added **CardMessage** event
@@ -1,259 +0,0 @@
1
- import { CustomStylesAppendedMessage, OrderStatusMessage, InteractionMessage, RedirectMessage, MountedMessage, SuccessMessage, ResizeMessage, VerifyMessage, SubmitMessage, ErrorMessage, FailMessage, CardMessage } from '@solidgate/client-sdk-loader';
2
- import './boot';
3
- declare const _default: import("vue").DefineComponent<{
4
- merchantData: {
5
- type: import("vue").PropType<{
6
- merchant: string;
7
- signature: string;
8
- paymentIntent: string;
9
- version?: string | undefined;
10
- }>;
11
- required: true;
12
- };
13
- width: {
14
- type: import("vue").PropType<string>;
15
- };
16
- styles: {
17
- type: import("vue").PropType<Record<string, unknown>>;
18
- };
19
- formParams: {
20
- type: import("vue").PropType<Partial<{
21
- enabled: false;
22
- autoFocus: boolean;
23
- submitButtonText: string;
24
- isCardHolderVisible: boolean;
25
- headerText: string;
26
- titleText: string;
27
- formTypeClass: import("@solidgate/client-sdk-loader/dist/enums/FormType").default;
28
- isSolidLogoVisible: boolean;
29
- cardBrands: import("@solidgate/client-sdk-loader").CardBrand[];
30
- secureBrands: import("@solidgate/client-sdk-loader/dist/enums/SecureBrand").default[];
31
- allowSubmit: boolean;
32
- googleFontLink: string;
33
- cardNumberLabel: string;
34
- cardCvvLabel: string;
35
- cardExpiryDateLabel: string;
36
- } & Record<"zipСodeLabel" | "argentinaDniLabel" | "bangladeshNicLabel" | "boliviaCiLabel" | "brazilCpfLabel" | "cameroonCniLabel" | "chileCiLabel" | "chinaIdLabel" | "colombiaCcLabel" | "costaRicaCiLabel" | "dominicanaIdLabel" | "ecuadorCiLabel" | "elSalvadorIdLabel" | "egyptIdLabel" | "ghanaCardLabel" | "guatemalaCuiLabel" | "indiaPanLabel" | "indonesiaNikLabel" | "japanIdLabel" | "kenyaIdLabel" | "malaysiaNricLabel" | "mexicoCurpLabel" | "moroccoCnieLabel" | "nigeriaNinLabel" | "panamaIdLabel" | "paraguayCiLabel" | "peruDniLabel" | "philipinesPsnLabel" | "senegalCniLabel" | "southAfricaIdLabel" | "tanzaniaIdLabel" | "thailandIdLabel" | "turkeyTcKimlikNoLabel" | "ugandaNicLabel" | "uriguayCiLabel" | "vietnamVnidLabel", string>>>;
37
- };
38
- googlePayButtonParams: {
39
- type: import("vue").PropType<Omit<Partial<{
40
- allowedAuthMethods: ["PAN_ONLY", "CRYPTOGRAM_3DS"] | ["PAN_ONLY"] | ["CRYPTOGRAM_3DS"];
41
- enabled: false;
42
- containerId: string;
43
- color: string;
44
- type: string;
45
- }> | undefined, "containerId">>;
46
- };
47
- applePayButtonParams: {
48
- type: import("vue").PropType<Omit<Partial<{
49
- enabled: false;
50
- containerId: string;
51
- color: string;
52
- type: string;
53
- }> | undefined, "containerId">>;
54
- };
55
- googlePayContainerRef: {
56
- type: import("vue").PropType<HTMLDivElement>;
57
- };
58
- applePayContainerRef: {
59
- type: import("vue").PropType<HTMLDivElement>;
60
- };
61
- onReadyPaymentInstance: {
62
- type: import("vue").PropType<(paymentInstance: import("@solidgate/client-sdk-loader").ClientSdkInstance) => void>;
63
- };
64
- onMounted: {
65
- type: import("vue").PropType<(e: MountedMessage) => void>;
66
- } & {
67
- default: () => void;
68
- };
69
- onError: {
70
- type: import("vue").PropType<(e: ErrorMessage) => void>;
71
- } & {
72
- default: () => void;
73
- };
74
- onSuccess: {
75
- type: import("vue").PropType<(e: SuccessMessage) => void>;
76
- } & {
77
- default: () => void;
78
- };
79
- onFail: {
80
- type: import("vue").PropType<(e: FailMessage) => void>;
81
- } & {
82
- default: () => void;
83
- };
84
- onSubmit: {
85
- type: import("vue").PropType<(e: SubmitMessage) => void>;
86
- } & {
87
- default: () => void;
88
- };
89
- onVerify: {
90
- type: import("vue").PropType<(e: VerifyMessage) => void>;
91
- } & {
92
- default: () => void;
93
- };
94
- onCustomStylesAppended: {
95
- type: import("vue").PropType<(e: CustomStylesAppendedMessage) => void>;
96
- } & {
97
- default: () => void;
98
- };
99
- onFormRedirect: {
100
- type: import("vue").PropType<(e: RedirectMessage) => void>;
101
- } & {
102
- default: () => void;
103
- };
104
- onInteraction: {
105
- type: import("vue").PropType<(e: InteractionMessage) => void>;
106
- } & {
107
- default: () => void;
108
- };
109
- onOrderStatus: {
110
- type: import("vue").PropType<(e: OrderStatusMessage) => void>;
111
- } & {
112
- default: () => void;
113
- };
114
- onResize: {
115
- type: import("vue").PropType<(e: ResizeMessage) => void>;
116
- } & {
117
- default: () => void;
118
- };
119
- onCard: {
120
- type: import("vue").PropType<(e: CardMessage) => void>;
121
- } & {
122
- default: () => void;
123
- };
124
- }, () => void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
125
- merchantData: {
126
- type: import("vue").PropType<{
127
- merchant: string;
128
- signature: string;
129
- paymentIntent: string;
130
- version?: string | undefined;
131
- }>;
132
- required: true;
133
- };
134
- width: {
135
- type: import("vue").PropType<string>;
136
- };
137
- styles: {
138
- type: import("vue").PropType<Record<string, unknown>>;
139
- };
140
- formParams: {
141
- type: import("vue").PropType<Partial<{
142
- enabled: false;
143
- autoFocus: boolean;
144
- submitButtonText: string;
145
- isCardHolderVisible: boolean;
146
- headerText: string;
147
- titleText: string;
148
- formTypeClass: import("@solidgate/client-sdk-loader/dist/enums/FormType").default;
149
- isSolidLogoVisible: boolean;
150
- cardBrands: import("@solidgate/client-sdk-loader").CardBrand[];
151
- secureBrands: import("@solidgate/client-sdk-loader/dist/enums/SecureBrand").default[];
152
- allowSubmit: boolean;
153
- googleFontLink: string;
154
- cardNumberLabel: string;
155
- cardCvvLabel: string;
156
- cardExpiryDateLabel: string;
157
- } & Record<"zipСodeLabel" | "argentinaDniLabel" | "bangladeshNicLabel" | "boliviaCiLabel" | "brazilCpfLabel" | "cameroonCniLabel" | "chileCiLabel" | "chinaIdLabel" | "colombiaCcLabel" | "costaRicaCiLabel" | "dominicanaIdLabel" | "ecuadorCiLabel" | "elSalvadorIdLabel" | "egyptIdLabel" | "ghanaCardLabel" | "guatemalaCuiLabel" | "indiaPanLabel" | "indonesiaNikLabel" | "japanIdLabel" | "kenyaIdLabel" | "malaysiaNricLabel" | "mexicoCurpLabel" | "moroccoCnieLabel" | "nigeriaNinLabel" | "panamaIdLabel" | "paraguayCiLabel" | "peruDniLabel" | "philipinesPsnLabel" | "senegalCniLabel" | "southAfricaIdLabel" | "tanzaniaIdLabel" | "thailandIdLabel" | "turkeyTcKimlikNoLabel" | "ugandaNicLabel" | "uriguayCiLabel" | "vietnamVnidLabel", string>>>;
158
- };
159
- googlePayButtonParams: {
160
- type: import("vue").PropType<Omit<Partial<{
161
- allowedAuthMethods: ["PAN_ONLY", "CRYPTOGRAM_3DS"] | ["PAN_ONLY"] | ["CRYPTOGRAM_3DS"];
162
- enabled: false;
163
- containerId: string;
164
- color: string;
165
- type: string;
166
- }> | undefined, "containerId">>;
167
- };
168
- applePayButtonParams: {
169
- type: import("vue").PropType<Omit<Partial<{
170
- enabled: false;
171
- containerId: string;
172
- color: string;
173
- type: string;
174
- }> | undefined, "containerId">>;
175
- };
176
- googlePayContainerRef: {
177
- type: import("vue").PropType<HTMLDivElement>;
178
- };
179
- applePayContainerRef: {
180
- type: import("vue").PropType<HTMLDivElement>;
181
- };
182
- onReadyPaymentInstance: {
183
- type: import("vue").PropType<(paymentInstance: import("@solidgate/client-sdk-loader").ClientSdkInstance) => void>;
184
- };
185
- onMounted: {
186
- type: import("vue").PropType<(e: MountedMessage) => void>;
187
- } & {
188
- default: () => void;
189
- };
190
- onError: {
191
- type: import("vue").PropType<(e: ErrorMessage) => void>;
192
- } & {
193
- default: () => void;
194
- };
195
- onSuccess: {
196
- type: import("vue").PropType<(e: SuccessMessage) => void>;
197
- } & {
198
- default: () => void;
199
- };
200
- onFail: {
201
- type: import("vue").PropType<(e: FailMessage) => void>;
202
- } & {
203
- default: () => void;
204
- };
205
- onSubmit: {
206
- type: import("vue").PropType<(e: SubmitMessage) => void>;
207
- } & {
208
- default: () => void;
209
- };
210
- onVerify: {
211
- type: import("vue").PropType<(e: VerifyMessage) => void>;
212
- } & {
213
- default: () => void;
214
- };
215
- onCustomStylesAppended: {
216
- type: import("vue").PropType<(e: CustomStylesAppendedMessage) => void>;
217
- } & {
218
- default: () => void;
219
- };
220
- onFormRedirect: {
221
- type: import("vue").PropType<(e: RedirectMessage) => void>;
222
- } & {
223
- default: () => void;
224
- };
225
- onInteraction: {
226
- type: import("vue").PropType<(e: InteractionMessage) => void>;
227
- } & {
228
- default: () => void;
229
- };
230
- onOrderStatus: {
231
- type: import("vue").PropType<(e: OrderStatusMessage) => void>;
232
- } & {
233
- default: () => void;
234
- };
235
- onResize: {
236
- type: import("vue").PropType<(e: ResizeMessage) => void>;
237
- } & {
238
- default: () => void;
239
- };
240
- onCard: {
241
- type: import("vue").PropType<(e: CardMessage) => void>;
242
- } & {
243
- default: () => void;
244
- };
245
- }>>, {
246
- onError: (e: ErrorMessage) => void;
247
- onSubmit: (e: SubmitMessage) => void;
248
- onFail: (e: FailMessage) => void;
249
- onMounted: (e: MountedMessage) => void;
250
- onOrderStatus: (e: OrderStatusMessage) => void;
251
- onResize: (e: ResizeMessage) => void;
252
- onSuccess: (e: SuccessMessage) => void;
253
- onInteraction: (e: InteractionMessage) => void;
254
- onCard: (e: CardMessage) => void;
255
- onVerify: (e: VerifyMessage) => void;
256
- onFormRedirect: (e: RedirectMessage) => void;
257
- onCustomStylesAppended: (e: CustomStylesAppendedMessage) => void;
258
- }>;
259
- export default _default;
@@ -1,6 +0,0 @@
1
- declare global {
2
- interface Window {
3
- __SOLIDGATE_PRIVATE__SDK_INIT_TYPE: string;
4
- }
5
- }
6
- export {};
@@ -1,4 +0,0 @@
1
- declare const IFRAME_CONTAINER_ID: string;
2
- declare const GOOGLE_PAY_BUTTON_CONTAINER_ID: string;
3
- declare const APPLE_PAY_BUTTON_CONTAINER_ID: string;
4
- export { IFRAME_CONTAINER_ID, GOOGLE_PAY_BUTTON_CONTAINER_ID, APPLE_PAY_BUTTON_CONTAINER_ID };
@@ -1,3 +0,0 @@
1
- import Payment from './Payment.vue';
2
- export * from '@solidgate/client-sdk-loader';
3
- export default Payment;
@@ -1,14 +0,0 @@
1
- import { ClientSdkInstance, InitConfig } from '@solidgate/client-sdk-loader';
2
- import ClientSdkEventsProvider from '../types/ClientSdkEventsProvider';
3
- interface PaymentProps extends Partial<ClientSdkEventsProvider> {
4
- merchantData: InitConfig['merchantData'];
5
- width?: string;
6
- styles?: InitConfig['styles'];
7
- formParams?: InitConfig['formParams'];
8
- googlePayButtonParams?: Omit<InitConfig['googlePayButtonParams'], 'containerId'>;
9
- applePayButtonParams?: Omit<InitConfig['applePayButtonParams'], 'containerId'>;
10
- googlePayContainerRef?: HTMLDivElement;
11
- applePayContainerRef?: HTMLDivElement;
12
- onReadyPaymentInstance?: (paymentInstance: ClientSdkInstance) => void;
13
- }
14
- export default PaymentProps;
@@ -1,5 +0,0 @@
1
- import { SdkMessage } from '@solidgate/client-sdk-loader';
2
- declare type ClientSdkEventsProvider = {
3
- [key in keyof SdkMessage as `on${Capitalize<key>}`]: (e: SdkMessage[key]) => void;
4
- };
5
- export default ClientSdkEventsProvider;
@@ -1,3 +0,0 @@
1
- import { InitConfig } from '@solidgate/client-sdk-loader';
2
- declare function getPayButtonParams<T extends 'googlePayButtonParams' | 'applePayButtonParams'>(config: InitConfig, key: T, container: HTMLElement | undefined): NonNullable<InitConfig[T]> | undefined;
3
- export default getPayButtonParams;
@@ -1,4 +0,0 @@
1
- import { ClientSdkInstance } from '@solidgate/client-sdk-loader';
2
- import PaymentProps from '../interfaces/PaymentProps';
3
- declare const initClientSdk: (props: PaymentProps) => Promise<ClientSdkInstance>;
4
- export default initClientSdk;
@@ -1,4 +0,0 @@
1
- import { ClientSdkInstance } from '@solidgate/client-sdk-loader';
2
- import ClientSdkEventsProvider from '../types/ClientSdkEventsProvider';
3
- declare const onSubscribe: (sdkInstanceValue: ClientSdkInstance, props: ClientSdkEventsProvider) => void;
4
- export default onSubscribe;
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, () => void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
- export default _default;
@@ -1 +0,0 @@
1
- export {};