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.
@@ -34,7 +34,7 @@ const options = {
34
34
  };
35
35
 
36
36
  const api = {
37
- version: '3.19.7',
37
+ version: '3.19.8',
38
38
  options,
39
39
  request,
40
40
 
package/dist/api.js CHANGED
@@ -1,4 +1,4 @@
1
- export { a as default } from './api-cc400b7c.js';
1
+ export { a as default } from './api-bb7a91b7.js';
2
2
  import './card-31d20d88.js';
3
3
  import './index-bee7164f.js';
4
4
  import 'qs';
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { a as default } from './api-cc400b7c.js';
1
+ export { a as default } from './api-bb7a91b7.js';
2
2
  import './card-31d20d88.js';
3
3
  import './index-bee7164f.js';
4
4
  import 'qs';
package/dist/swell.cjs.js CHANGED
@@ -7659,7 +7659,7 @@ const options = {
7659
7659
  };
7660
7660
 
7661
7661
  const api = {
7662
- version: '3.19.7',
7662
+ version: '3.19.8',
7663
7663
  options,
7664
7664
  request,
7665
7665
 
@@ -12135,7 +12135,7 @@
12135
12135
  previewContent: null
12136
12136
  };
12137
12137
  const api = {
12138
- version: "3.19.7",
12138
+ version: "3.19.8",
12139
12139
  options,
12140
12140
  request,
12141
12141
  init(store, key, opt = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swell-js",
3
- "version": "3.19.7",
3
+ "version": "3.19.8",
4
4
  "description": "Swell JS library for client-side stores",
5
5
  "engines": {
6
6
  "node": ">=14.19.1",
@@ -1,4 +1,4 @@
1
1
  import { InvoiceSnake } from './snake';
2
- import { InvoicenCamel } from './camel';
2
+ import { InvoiceCamel } from './camel';
3
3
 
4
- export interface Invoice extends InvoiceSnake, InvoicenCamel {}
4
+ export interface Invoice extends InvoiceSnake, InvoiceCamel {}
@@ -1,7 +1,7 @@
1
1
  import { Account } from '../account';
2
2
  import { Order } from '../order';
3
3
  import { BaseModel, Tax } from '../index';
4
-
4
+ import { Product } from '../product';
5
5
  interface InvoiceItems extends BaseModel {
6
6
  delivery?: string;
7
7
  discount_total?: number;
@@ -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 {}
@@ -47,12 +47,12 @@ interface ProductOptionSnake {
47
47
  input_hint?: string;
48
48
  input_multi?: boolean;
49
49
  input_type?:
50
- | 'text'
51
- | 'textarea'
52
- | 'select'
53
- | 'multi_select'
54
- | 'file'
55
- | 'muti_file';
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[];