swell-js 3.19.7 → 3.19.8
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/{api-cc400b7c.js → api-bb7a91b7.js} +1 -1
- package/dist/api.js +1 -1
- package/dist/index.js +1 -1
- package/dist/swell.cjs.js +1 -1
- package/dist/swell.umd.min.js +1 -1
- package/package.json +1 -1
- package/types/invoice/index.d.ts +2 -2
- package/types/invoice/snake.d.ts +1 -1
- package/types/payment/index.d.ts +5 -5
- package/types/product/snake.d.ts +6 -6
package/dist/api.js
CHANGED
package/dist/index.js
CHANGED
package/dist/swell.cjs.js
CHANGED
package/dist/swell.umd.min.js
CHANGED
|
@@ -12135,7 +12135,7 @@
|
|
|
12135
12135
|
previewContent: null
|
|
12136
12136
|
};
|
|
12137
12137
|
const api = {
|
|
12138
|
-
version: "3.19.
|
|
12138
|
+
version: "3.19.8",
|
|
12139
12139
|
options,
|
|
12140
12140
|
request,
|
|
12141
12141
|
init(store, key, opt = {}) {
|
package/package.json
CHANGED
package/types/invoice/index.d.ts
CHANGED
package/types/invoice/snake.d.ts
CHANGED
package/types/payment/index.d.ts
CHANGED
|
@@ -2,17 +2,17 @@ import { PaymentSnake } from './snake';
|
|
|
2
2
|
import { PaymentCamel } from './camel';
|
|
3
3
|
|
|
4
4
|
export interface InputPaymentElementCard {
|
|
5
|
-
seperateElements?: boolean
|
|
5
|
+
seperateElements?: boolean;
|
|
6
6
|
cardNumber?: {
|
|
7
7
|
elementId?: string; // default: #card-element
|
|
8
8
|
options?: object;
|
|
9
|
-
}
|
|
9
|
+
};
|
|
10
10
|
cardExpiry?: {
|
|
11
11
|
elementId?: string; // default: #cardExpiry-element
|
|
12
|
-
}
|
|
12
|
+
};
|
|
13
13
|
cardCvc?: {
|
|
14
14
|
elementId?: string; // default: #cardCvc-element
|
|
15
|
-
}
|
|
15
|
+
};
|
|
16
16
|
onChange?: (event: unknown) => void; // optional, called when the Element value changes
|
|
17
17
|
onReady?: (event: unknown) => void; // optional, called when the Element is fully rendered
|
|
18
18
|
onFocus?: (event: unknown) => void; // optional, called when the Element gains focus
|
|
@@ -60,4 +60,4 @@ export interface InputPaymentRedirect {
|
|
|
60
60
|
onSuccess?: void;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
export interface Payment extends PaymentSnake, PaymentCamel {
|
|
63
|
+
export interface Payment extends PaymentSnake, PaymentCamel {}
|
package/types/product/snake.d.ts
CHANGED
|
@@ -47,12 +47,12 @@ interface ProductOptionSnake {
|
|
|
47
47
|
input_hint?: string;
|
|
48
48
|
input_multi?: boolean;
|
|
49
49
|
input_type?:
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
50
|
+
| 'text'
|
|
51
|
+
| 'textarea'
|
|
52
|
+
| 'select'
|
|
53
|
+
| 'multi_select'
|
|
54
|
+
| 'file'
|
|
55
|
+
| 'muti_file';
|
|
56
56
|
name?: string;
|
|
57
57
|
parent_id?: string;
|
|
58
58
|
parent_value_ids?: string[];
|