@infosoftas/s4-orders-js-sdk 0.1.21-3 → 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/package.json
CHANGED
|
@@ -1,58 +1,62 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@infosoftas/s4-orders-js-sdk",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"scripts": {
|
|
5
|
-
"build": "tsc --noEmit && webpack --mode production",
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"@
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"react": "^
|
|
20
|
-
"react
|
|
21
|
-
"react-
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"@babel/
|
|
29
|
-
"@babel/preset-
|
|
30
|
-
"@babel/preset-
|
|
31
|
-
"@
|
|
32
|
-
"@
|
|
33
|
-
"@
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
"
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
"
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@infosoftas/s4-orders-js-sdk",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"scripts": {
|
|
5
|
+
"build": "tsc --noEmit && webpack --mode production",
|
|
6
|
+
"test": "vitest run",
|
|
7
|
+
"release": "release-it"
|
|
8
|
+
},
|
|
9
|
+
"eslintConfig": {
|
|
10
|
+
"extends": [
|
|
11
|
+
"react-app"
|
|
12
|
+
]
|
|
13
|
+
},
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"@base-ui/react": "^1.0.0",
|
|
16
|
+
"@hookform/resolvers": "^5.9.1",
|
|
17
|
+
"class-variance-authority": "^0.7.1",
|
|
18
|
+
"cn": "^0.4.0",
|
|
19
|
+
"lucide-react": "^1.52.0",
|
|
20
|
+
"react": "^19.3.0",
|
|
21
|
+
"react-dom": "^19.3.0",
|
|
22
|
+
"react-hook-form": "^7.89.0",
|
|
23
|
+
"shadcn": "^4.23.0",
|
|
24
|
+
"tw-animate-css": "^1.4.0",
|
|
25
|
+
"zod": "^4.6.7"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@babel/core": "^8.0.6",
|
|
29
|
+
"@babel/preset-env": "^8.0.6",
|
|
30
|
+
"@babel/preset-react": "^8.0.1",
|
|
31
|
+
"@babel/preset-typescript": "^8.0.1",
|
|
32
|
+
"@tailwindcss/postcss": "^4.1.14",
|
|
33
|
+
"@testing-library/react": "^16.3.3",
|
|
34
|
+
"@types/react": "^19.3.0",
|
|
35
|
+
"@types/react-dom": "^19.3.0",
|
|
36
|
+
"babel-loader": "^10.0.0",
|
|
37
|
+
"copy-webpack-plugin": "^14.0.0",
|
|
38
|
+
"css-loader": "^7.1.5",
|
|
39
|
+
"jsdom": "^26.1.0",
|
|
40
|
+
"mini-css-extract-plugin": "^2.9.4",
|
|
41
|
+
"postcss": "^8.5.29",
|
|
42
|
+
"postcss-loader": "^8.2.0",
|
|
43
|
+
"release-it": "^21.1.2",
|
|
44
|
+
"style-loader": "^4.0.0",
|
|
45
|
+
"tailwindcss": "^4.1.14",
|
|
46
|
+
"typescript": "^7.0.2",
|
|
47
|
+
"vitest": "^5.1.0",
|
|
48
|
+
"webpack": "^5.111.1",
|
|
49
|
+
"webpack-cli": "^7.2.3"
|
|
50
|
+
},
|
|
51
|
+
"publishConfig": {
|
|
52
|
+
"access": "public"
|
|
53
|
+
},
|
|
54
|
+
"engines": {
|
|
55
|
+
"node": "^22.21.0 || >=24.11.0"
|
|
56
|
+
},
|
|
57
|
+
"browserslist": [
|
|
58
|
+
"> 0.5%",
|
|
59
|
+
"last 2 versions",
|
|
60
|
+
"not dead"
|
|
61
|
+
]
|
|
62
|
+
}
|