@infosoftas/s4-orders-js-sdk 0.1.21 → 0.2.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/.editorconfig +8 -8
- package/.release-it.json +10 -10
- package/README.md +565 -471
- package/package.json +62 -58
- package/src/App.completion.test.tsx +738 -0
- package/src/App.tsx +753 -639
- package/src/ErrorBoundary.tsx +41 -41
- package/src/api/InvoiceApi.ts +23 -23
- package/src/api/OrdersApi.ts +74 -59
- package/src/api/SubscribeApi.ts +18 -18
- package/src/bundle.ts +4 -4
- package/src/components/Alert/Alert.tsx +23 -23
- package/src/components/Button/Button.tsx +39 -39
- package/src/components/EHFForm/EHFForm.tsx +253 -253
- package/src/components/FormFields/AddressField.tsx +55 -55
- package/src/components/FormFields/EmailField.tsx +53 -53
- package/src/components/FormFields/FormFields.helper.ts +34 -34
- package/src/components/FormFields/FormFieldsMapper.ts +34 -34
- package/src/components/FormFields/InputField.tsx +52 -52
- package/src/components/FormFields/NameField.tsx +52 -52
- package/src/components/FormFields/PhoneField.tsx +53 -53
- package/src/components/FormFields/TermsCheckbox.tsx +70 -70
- package/src/components/FormFields/ToggleFiled.tsx +52 -52
- package/src/components/FormFields/fieldValidators.ts +71 -71
- package/src/components/MainIframe/MainIframe.tsx +42 -42
- package/src/components/OIOForm/OIOForm.tsx +307 -307
- package/src/components/OrderDenialModal/OrderDenialModal.tsx +102 -102
- package/src/components/OrderForm/ContactDetailsSection.tsx +71 -71
- package/src/components/OrderForm/OrderForm.tsx +420 -420
- package/src/components/OrderForm/PaymentMethodContent.tsx +62 -62
- package/src/components/OrderForm/PaymentMethodSection.tsx +79 -79
- package/src/components/OrderForm/SubmitConfirmationDialog.tsx +55 -55
- package/src/components/OrderForm/orderFormState.ts +171 -171
- package/src/components/OrderForm/useSlotElement.tsx +89 -89
- package/src/constants/index.ts +13 -13
- package/src/enums/api.ts +5 -5
- package/src/enums/general.ts +40 -40
- package/src/hooks/useIframe.tsx +59 -59
- package/src/hooks/useMessageEvent.tsx +194 -194
- package/src/hooks/useOrderForm.tsx +403 -403
- package/src/hooks/useQueryParams.ts +5 -5
- package/src/index.tsx +30 -30
- package/src/lib/utils.ts +1 -1
- package/src/types/api.ts +28 -28
- package/src/types/general.ts +154 -136
- package/src/types/order.ts +91 -70
- package/src/utils/fetcher.ts +131 -113
- package/src/utils/helper.ts +78 -78
- package/src/utils/order.helper.ts +272 -272
- package/src/utils/waitForOrderCompletion.ts +125 -0
- package/tsconfig.json +38 -38
package/tsconfig.json
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "es2022",
|
|
4
|
-
"lib": ["dom", "dom.iterable", "esnext"],
|
|
5
|
-
"allowJs": true,
|
|
6
|
-
"checkJs": false,
|
|
7
|
-
"skipLibCheck": true,
|
|
8
|
-
"esModuleInterop": true,
|
|
9
|
-
"allowSyntheticDefaultImports": true,
|
|
10
|
-
"strict": true,
|
|
11
|
-
"forceConsistentCasingInFileNames": true,
|
|
12
|
-
"noFallthroughCasesInSwitch": true,
|
|
13
|
-
"module": "esnext",
|
|
14
|
-
"resolveJsonModule": true,
|
|
15
|
-
"isolatedModules": true,
|
|
16
|
-
"verbatimModuleSyntax": true,
|
|
17
|
-
"noEmit": false,
|
|
18
|
-
"noImplicitAny": true,
|
|
19
|
-
"jsx": "react-jsx",
|
|
20
|
-
"sourceMap": true,
|
|
21
|
-
"inlineSources": true,
|
|
22
|
-
"sourceRoot": "/",
|
|
23
|
-
"paths": {
|
|
24
|
-
"@/*": ["./src/*"],
|
|
25
|
-
"API": ["./src/api"],
|
|
26
|
-
"API/*": ["./src/api/*"],
|
|
27
|
-
"Component/*": ["./src/components/*"],
|
|
28
|
-
"Utils/*": ["./src/utils/*"],
|
|
29
|
-
"Hooks/*": ["./src/hooks/*"],
|
|
30
|
-
"Models/*": ["./src/models/*"],
|
|
31
|
-
"Types/*": ["./src/types/*"],
|
|
32
|
-
"Enums/*": ["./src/enums/*"],
|
|
33
|
-
"Constants/*": ["./src/constants/*"]
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
"include": ["src"],
|
|
37
|
-
"exclude": ["node_modules"]
|
|
38
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "es2022",
|
|
4
|
+
"lib": ["dom", "dom.iterable", "esnext"],
|
|
5
|
+
"allowJs": true,
|
|
6
|
+
"checkJs": false,
|
|
7
|
+
"skipLibCheck": true,
|
|
8
|
+
"esModuleInterop": true,
|
|
9
|
+
"allowSyntheticDefaultImports": true,
|
|
10
|
+
"strict": true,
|
|
11
|
+
"forceConsistentCasingInFileNames": true,
|
|
12
|
+
"noFallthroughCasesInSwitch": true,
|
|
13
|
+
"module": "esnext",
|
|
14
|
+
"resolveJsonModule": true,
|
|
15
|
+
"isolatedModules": true,
|
|
16
|
+
"verbatimModuleSyntax": true,
|
|
17
|
+
"noEmit": false,
|
|
18
|
+
"noImplicitAny": true,
|
|
19
|
+
"jsx": "react-jsx",
|
|
20
|
+
"sourceMap": true,
|
|
21
|
+
"inlineSources": true,
|
|
22
|
+
"sourceRoot": "/",
|
|
23
|
+
"paths": {
|
|
24
|
+
"@/*": ["./src/*"],
|
|
25
|
+
"API": ["./src/api"],
|
|
26
|
+
"API/*": ["./src/api/*"],
|
|
27
|
+
"Component/*": ["./src/components/*"],
|
|
28
|
+
"Utils/*": ["./src/utils/*"],
|
|
29
|
+
"Hooks/*": ["./src/hooks/*"],
|
|
30
|
+
"Models/*": ["./src/models/*"],
|
|
31
|
+
"Types/*": ["./src/types/*"],
|
|
32
|
+
"Enums/*": ["./src/enums/*"],
|
|
33
|
+
"Constants/*": ["./src/constants/*"]
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"include": ["src"],
|
|
37
|
+
"exclude": ["node_modules"]
|
|
38
|
+
}
|