@solidgate/vue-sdk 1.3.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.3.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.5.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,32 +0,0 @@
1
- **1.3.0**
2
-
3
- Added **formParams.buttonType** config param
4
-
5
- You may use it to set **continue** button type
6
- ```typescript
7
- import { FormButtonType } from '@solidgate/vue-sdk'
8
-
9
- initConfig.formParams.buttonType = FormButtonType.Continue
10
- ```
11
-
12
- ***
13
-
14
- **1.2.0**
15
-
16
- Added **formParams.autoFocus** config param
17
-
18
- ***
19
-
20
- **1.1.2**
21
-
22
- Added license
23
-
24
- ***
25
-
26
- **1.1.0**
27
-
28
-
29
- - Added **AdditionalFields** enum
30
- - Fixed types which controlling labels visibility (like **initConfig.formParams.cardNumberLabel**)
31
- - Deprecated **initConfig.allowedAdditionalFields** usage
32
- - Added **CardMessage** event
@@ -1,261 +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
- buttonType: import("@solidgate/client-sdk-loader/dist/enums/FormButtonType").default;
26
- headerText: string;
27
- titleText: string;
28
- formTypeClass: import("@solidgate/client-sdk-loader/dist/enums/FormType").default;
29
- isSolidLogoVisible: boolean;
30
- cardBrands: import("@solidgate/client-sdk-loader").CardBrand[];
31
- secureBrands: import("@solidgate/client-sdk-loader/dist/enums/SecureBrand").default[];
32
- allowSubmit: boolean;
33
- googleFontLink: string;
34
- cardNumberLabel: string;
35
- cardCvvLabel: string;
36
- cardExpiryDateLabel: string;
37
- } & 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>>>;
38
- };
39
- googlePayButtonParams: {
40
- type: import("vue").PropType<Omit<Partial<{
41
- allowedAuthMethods: ["PAN_ONLY", "CRYPTOGRAM_3DS"] | ["PAN_ONLY"] | ["CRYPTOGRAM_3DS"];
42
- enabled: false;
43
- containerId: string;
44
- color: string;
45
- type: string;
46
- }> | undefined, "containerId">>;
47
- };
48
- applePayButtonParams: {
49
- type: import("vue").PropType<Omit<Partial<{
50
- enabled: false;
51
- containerId: string;
52
- color: string;
53
- type: string;
54
- }> | undefined, "containerId">>;
55
- };
56
- googlePayContainerRef: {
57
- type: import("vue").PropType<HTMLDivElement>;
58
- };
59
- applePayContainerRef: {
60
- type: import("vue").PropType<HTMLDivElement>;
61
- };
62
- onReadyPaymentInstance: {
63
- type: import("vue").PropType<(paymentInstance: import("@solidgate/client-sdk-loader").ClientSdkInstance) => void>;
64
- };
65
- onMounted: {
66
- type: import("vue").PropType<(e: MountedMessage) => void>;
67
- } & {
68
- default: () => void;
69
- };
70
- onError: {
71
- type: import("vue").PropType<(e: ErrorMessage) => void>;
72
- } & {
73
- default: () => void;
74
- };
75
- onSuccess: {
76
- type: import("vue").PropType<(e: SuccessMessage) => void>;
77
- } & {
78
- default: () => void;
79
- };
80
- onFail: {
81
- type: import("vue").PropType<(e: FailMessage) => void>;
82
- } & {
83
- default: () => void;
84
- };
85
- onSubmit: {
86
- type: import("vue").PropType<(e: SubmitMessage) => void>;
87
- } & {
88
- default: () => void;
89
- };
90
- onVerify: {
91
- type: import("vue").PropType<(e: VerifyMessage) => void>;
92
- } & {
93
- default: () => void;
94
- };
95
- onCustomStylesAppended: {
96
- type: import("vue").PropType<(e: CustomStylesAppendedMessage) => void>;
97
- } & {
98
- default: () => void;
99
- };
100
- onFormRedirect: {
101
- type: import("vue").PropType<(e: RedirectMessage) => void>;
102
- } & {
103
- default: () => void;
104
- };
105
- onInteraction: {
106
- type: import("vue").PropType<(e: InteractionMessage) => void>;
107
- } & {
108
- default: () => void;
109
- };
110
- onOrderStatus: {
111
- type: import("vue").PropType<(e: OrderStatusMessage) => void>;
112
- } & {
113
- default: () => void;
114
- };
115
- onResize: {
116
- type: import("vue").PropType<(e: ResizeMessage) => void>;
117
- } & {
118
- default: () => void;
119
- };
120
- onCard: {
121
- type: import("vue").PropType<(e: CardMessage) => void>;
122
- } & {
123
- default: () => void;
124
- };
125
- }, () => 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<{
126
- merchantData: {
127
- type: import("vue").PropType<{
128
- merchant: string;
129
- signature: string;
130
- paymentIntent: string;
131
- version?: string | undefined;
132
- }>;
133
- required: true;
134
- };
135
- width: {
136
- type: import("vue").PropType<string>;
137
- };
138
- styles: {
139
- type: import("vue").PropType<Record<string, unknown>>;
140
- };
141
- formParams: {
142
- type: import("vue").PropType<Partial<{
143
- enabled: false;
144
- autoFocus: boolean;
145
- submitButtonText: string;
146
- isCardHolderVisible: boolean;
147
- buttonType: import("@solidgate/client-sdk-loader/dist/enums/FormButtonType").default;
148
- headerText: string;
149
- titleText: string;
150
- formTypeClass: import("@solidgate/client-sdk-loader/dist/enums/FormType").default;
151
- isSolidLogoVisible: boolean;
152
- cardBrands: import("@solidgate/client-sdk-loader").CardBrand[];
153
- secureBrands: import("@solidgate/client-sdk-loader/dist/enums/SecureBrand").default[];
154
- allowSubmit: boolean;
155
- googleFontLink: string;
156
- cardNumberLabel: string;
157
- cardCvvLabel: string;
158
- cardExpiryDateLabel: string;
159
- } & 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>>>;
160
- };
161
- googlePayButtonParams: {
162
- type: import("vue").PropType<Omit<Partial<{
163
- allowedAuthMethods: ["PAN_ONLY", "CRYPTOGRAM_3DS"] | ["PAN_ONLY"] | ["CRYPTOGRAM_3DS"];
164
- enabled: false;
165
- containerId: string;
166
- color: string;
167
- type: string;
168
- }> | undefined, "containerId">>;
169
- };
170
- applePayButtonParams: {
171
- type: import("vue").PropType<Omit<Partial<{
172
- enabled: false;
173
- containerId: string;
174
- color: string;
175
- type: string;
176
- }> | undefined, "containerId">>;
177
- };
178
- googlePayContainerRef: {
179
- type: import("vue").PropType<HTMLDivElement>;
180
- };
181
- applePayContainerRef: {
182
- type: import("vue").PropType<HTMLDivElement>;
183
- };
184
- onReadyPaymentInstance: {
185
- type: import("vue").PropType<(paymentInstance: import("@solidgate/client-sdk-loader").ClientSdkInstance) => void>;
186
- };
187
- onMounted: {
188
- type: import("vue").PropType<(e: MountedMessage) => void>;
189
- } & {
190
- default: () => void;
191
- };
192
- onError: {
193
- type: import("vue").PropType<(e: ErrorMessage) => void>;
194
- } & {
195
- default: () => void;
196
- };
197
- onSuccess: {
198
- type: import("vue").PropType<(e: SuccessMessage) => void>;
199
- } & {
200
- default: () => void;
201
- };
202
- onFail: {
203
- type: import("vue").PropType<(e: FailMessage) => void>;
204
- } & {
205
- default: () => void;
206
- };
207
- onSubmit: {
208
- type: import("vue").PropType<(e: SubmitMessage) => void>;
209
- } & {
210
- default: () => void;
211
- };
212
- onVerify: {
213
- type: import("vue").PropType<(e: VerifyMessage) => void>;
214
- } & {
215
- default: () => void;
216
- };
217
- onCustomStylesAppended: {
218
- type: import("vue").PropType<(e: CustomStylesAppendedMessage) => void>;
219
- } & {
220
- default: () => void;
221
- };
222
- onFormRedirect: {
223
- type: import("vue").PropType<(e: RedirectMessage) => void>;
224
- } & {
225
- default: () => void;
226
- };
227
- onInteraction: {
228
- type: import("vue").PropType<(e: InteractionMessage) => void>;
229
- } & {
230
- default: () => void;
231
- };
232
- onOrderStatus: {
233
- type: import("vue").PropType<(e: OrderStatusMessage) => void>;
234
- } & {
235
- default: () => void;
236
- };
237
- onResize: {
238
- type: import("vue").PropType<(e: ResizeMessage) => void>;
239
- } & {
240
- default: () => void;
241
- };
242
- onCard: {
243
- type: import("vue").PropType<(e: CardMessage) => void>;
244
- } & {
245
- default: () => void;
246
- };
247
- }>>, {
248
- onError: (e: ErrorMessage) => void;
249
- onSubmit: (e: SubmitMessage) => void;
250
- onFail: (e: FailMessage) => void;
251
- onMounted: (e: MountedMessage) => void;
252
- onOrderStatus: (e: OrderStatusMessage) => void;
253
- onResize: (e: ResizeMessage) => void;
254
- onSuccess: (e: SuccessMessage) => void;
255
- onInteraction: (e: InteractionMessage) => void;
256
- onCard: (e: CardMessage) => void;
257
- onVerify: (e: VerifyMessage) => void;
258
- onFormRedirect: (e: RedirectMessage) => void;
259
- onCustomStylesAppended: (e: CustomStylesAppendedMessage) => void;
260
- }>;
261
- 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 {};