@commercelayer/react-components 3.12.3 → 3.13.0-beta.2
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/lib/components/AddToCartButton.d.ts +27 -1
- package/lib/components/Address.d.ts +13 -1
- package/lib/components/AddressCountrySelector.d.ts +9 -1
- package/lib/components/AddressField.d.ts +15 -1
- package/lib/components/AddressInput.d.ts +7 -1
- package/lib/components/AddressStateSelector.d.ts +11 -1
- package/lib/components/AddressesContainer.d.ts +8 -1
- package/lib/components/AdjustmentAmount.d.ts +4 -1
- package/lib/components/AdyenPayment.d.ts +25 -1
- package/lib/components/AvailabilityContainer.d.ts +7 -1
- package/lib/components/AvailabilityTemplate.d.ts +15 -1
- package/lib/components/BillingAddressContainer.d.ts +6 -1
- package/lib/components/BillingAddressForm.d.ts +8 -1
- package/lib/components/BraintreePayment.d.ts +30 -1
- package/lib/components/CheckoutComPayment.d.ts +23 -1
- package/lib/components/CheckoutLink.d.ts +13 -1
- package/lib/components/CommerceLayer.d.ts +8 -1
- package/lib/components/CustomerContainer.d.ts +7 -1
- package/lib/components/CustomerContainer.js +1 -1
- package/lib/components/CustomerInput.d.ts +11 -1
- package/lib/components/DeliveryLeadTime.d.ts +10 -1
- package/lib/components/DiscountAmount.d.ts +4 -1
- package/lib/components/Errors.d.ts +5 -1
- package/lib/components/ExternalFunction.d.ts +7 -1
- package/lib/components/GiftCard.d.ts +8 -1
- package/lib/components/GiftCardAmount.d.ts +4 -1
- package/lib/components/GiftCardContainer.d.ts +6 -1
- package/lib/components/GiftCardCurrencySelector.d.ts +7 -1
- package/lib/components/GiftCardInput.d.ts +7 -1
- package/lib/components/GiftCardOrCouponCode.d.ts +17 -1
- package/lib/components/GiftCardOrCouponCode.js +1 -1
- package/lib/components/GiftCardOrCouponForm.d.ts +10 -1
- package/lib/components/GiftCardOrCouponInput.d.ts +10 -1
- package/lib/components/GiftCardOrCouponRemoveButton.d.ts +18 -1
- package/lib/components/GiftCardOrCouponSubmit.d.ts +9 -1
- package/lib/components/ItemContainer.d.ts +11 -1
- package/lib/components/KlarnaPayment.d.ts +9 -1
- package/lib/components/LineItem.d.ts +8 -1
- package/lib/components/LineItem.js +1 -1
- package/lib/components/LineItemAmount.d.ts +7 -1
- package/lib/components/LineItemCode.d.ts +12 -1
- package/lib/components/LineItemImage.d.ts +16 -1
- package/lib/components/LineItemImage.js +1 -1
- package/lib/components/LineItemName.d.ts +11 -1
- package/lib/components/LineItemOption.d.ts +19 -1
- package/lib/components/LineItemOptions.d.ts +16 -1
- package/lib/components/LineItemQuantity.d.ts +14 -1
- package/lib/components/LineItemRemoveLink.d.ts +12 -1
- package/lib/components/LineItemsContainer.d.ts +8 -1
- package/lib/components/LineItemsContainer.js +1 -1
- package/lib/components/LineItemsCount.d.ts +12 -1
- package/lib/components/LineItemsEmpty.d.ts +12 -1
- package/lib/components/MetadataInput.d.ts +5 -1
- package/lib/components/OrderContainer.d.ts +12 -1
- package/lib/components/OrderContainer.js +1 -1
- package/lib/components/OrderNumber.d.ts +5 -1
- package/lib/components/OrderStorage.d.ts +8 -1
- package/lib/components/PaymentGateway.d.ts +16 -1
- package/lib/components/PaymentMethod.d.ts +16 -1
- package/lib/components/PaymentMethodAmount.d.ts +4 -1
- package/lib/components/PaymentMethodName.d.ts +9 -1
- package/lib/components/PaymentMethodPrice.d.ts +9 -1
- package/lib/components/PaymentMethodRadioButton.d.ts +12 -1
- package/lib/components/PaymentMethodsContainer.d.ts +8 -1
- package/lib/components/PaymentSource.d.ts +19 -1
- package/lib/components/PaymentSourceBrandIcon.d.ts +15 -1
- package/lib/components/PaymentSourceBrandName.d.ts +12 -1
- package/lib/components/PaymentSourceDetail.d.ts +12 -1
- package/lib/components/PaymentSourceEditButton.d.ts +9 -1
- package/lib/components/PaypalPayment.d.ts +12 -1
- package/lib/components/PlaceOrderButton.d.ts +14 -1
- package/lib/components/PlaceOrderContainer.d.ts +8 -1
- package/lib/components/Price.d.ts +16 -1
- package/lib/components/PricesContainer.d.ts +11 -1
- package/lib/components/PrivacyAndTermsCheckbox.d.ts +4 -1
- package/lib/components/QuantitySelector.d.ts +17 -1
- package/lib/components/SaveAddressesButton.d.ts +10 -1
- package/lib/components/SaveCustomerButton.d.ts +13 -1
- package/lib/components/Shipment.d.ts +8 -1
- package/lib/components/ShipmentField.d.ts +12 -1
- package/lib/components/ShipmentsContainer.d.ts +6 -1
- package/lib/components/ShippingAddressContainer.d.ts +6 -1
- package/lib/components/ShippingAddressForm.d.ts +8 -1
- package/lib/components/ShippingAmount.d.ts +4 -1
- package/lib/components/ShippingMethod.d.ts +8 -1
- package/lib/components/ShippingMethodName.d.ts +11 -1
- package/lib/components/ShippingMethodPrice.d.ts +13 -1
- package/lib/components/ShippingMethodPrice.js +1 -1
- package/lib/components/ShippingMethodRadioButton.d.ts +13 -1
- package/lib/components/SkuField.d.ts +9 -1
- package/lib/components/SkuList.d.ts +7 -1
- package/lib/components/SkuListsContainer.d.ts +6 -1
- package/lib/components/SkuOption.d.ts +7 -1
- package/lib/components/SkuOptionInput.d.ts +5 -1
- package/lib/components/SkuOptionsContainer.d.ts +7 -1
- package/lib/components/Skus.d.ts +11 -1
- package/lib/components/SkusContainer.d.ts +14 -1
- package/lib/components/StockTransfer.d.ts +6 -1
- package/lib/components/StockTransferField.d.ts +9 -1
- package/lib/components/StripePayment.d.ts +18 -1
- package/lib/components/SubTotalAmount.d.ts +4 -1
- package/lib/components/SubmitButton.d.ts +9 -1
- package/lib/components/TaxesAmount.d.ts +4 -1
- package/lib/components/TotalAmount.d.ts +4 -1
- package/lib/components/VariantSelector.d.ts +29 -1
- package/lib/components/VariantsContainer.d.ts +8 -1
- package/lib/components/WireTransferPayment.d.ts +10 -1
- package/lib/components/gateways/AdyenGateway.d.ts +4 -1
- package/lib/components/gateways/BraintreeGateway.d.ts +4 -1
- package/lib/components/gateways/CheckoutComGateway.d.ts +4 -1
- package/lib/components/gateways/KlarnaGateway.d.ts +4 -1
- package/lib/components/gateways/PaypalGateway.d.ts +4 -1
- package/lib/components/gateways/StripeGateway.d.ts +4 -1
- package/lib/components/gateways/WireTransferGateway.d.ts +4 -1
- package/lib/components/utils/AddressCardsTemplate.d.ts +26 -1
- package/lib/components/utils/BaseField.d.ts +8 -1
- package/lib/components/utils/BaseInput.d.ts +5 -1
- package/lib/components/utils/BaseInput.js +1 -1
- package/lib/components/utils/BaseOrderPrice.d.ts +6 -1
- package/lib/components/utils/BaseSelect.d.ts +5 -1
- package/lib/components/utils/GenericFieldComponent.d.ts +37 -1
- package/lib/components/utils/GenericFieldComponent.js +1 -1
- package/lib/components/utils/Parent.d.ts +6 -1
- package/lib/components/utils/Parent.js +1 -1
- package/lib/components/utils/PaymentCardsTemplate.d.ts +22 -1
- package/lib/components/utils/PriceTemplate.d.ts +8 -1
- package/lib/components/utils/VariantTemplate.d.ts +36 -1
- package/lib/components/utils/getAllErrors.d.ts +17 -1
- package/lib/config/components.d.ts +913 -1
- package/lib/config/currency.d.ts +5 -1
- package/lib/context/AddressChildrenContext.d.ts +6 -1
- package/lib/context/AddressContext.d.ts +16 -1
- package/lib/context/AvailabilityContext.d.ts +2 -1
- package/lib/context/BillingAddressContext.d.ts +11 -1
- package/lib/context/BillingAddressFormContext.d.ts +19 -1
- package/lib/context/CommerceLayerContext.d.ts +6 -1
- package/lib/context/CouponAndGiftCardFormContext.d.ts +9 -1
- package/lib/context/CustomerContext.d.ts +15 -1
- package/lib/context/ExternalFunctionContext.d.ts +11 -1
- package/lib/context/GiftCardContext.d.ts +10 -1
- package/lib/context/ItemContext.d.ts +12 -1
- package/lib/context/LineItemChildrenContext.d.ts +8 -1
- package/lib/context/LineItemContext.d.ts +7 -1
- package/lib/context/LineItemOptionChildrenContext.d.ts +7 -1
- package/lib/context/OrderContext.d.ts +29 -1
- package/lib/context/OrderStorageContext.d.ts +10 -1
- package/lib/context/PaymentMethodChildrenContext.d.ts +9 -1
- package/lib/context/PaymentMethodContext.d.ts +22 -1
- package/lib/context/PaymentSourceContext.d.ts +13 -1
- package/lib/context/PlaceOrderContext.d.ts +17 -1
- package/lib/context/PricesContext.d.ts +6 -1
- package/lib/context/ShipmentChildrenContext.d.ts +12 -1
- package/lib/context/ShipmentContext.d.ts +11 -1
- package/lib/context/ShippingAddressContext.d.ts +9 -1
- package/lib/context/ShippingAddressFormContext.d.ts +3 -1
- package/lib/context/ShippingMethodChildrenContext.d.ts +9 -1
- package/lib/context/SkuChildrenContext.d.ts +8 -1
- package/lib/context/SkuContext.d.ts +8 -1
- package/lib/context/SkuListsContext.d.ts +5 -1
- package/lib/context/SkuOptionChildrenContext.d.ts +7 -1
- package/lib/context/SkuOptionsContext.d.ts +2 -1
- package/lib/context/StockTransferChildrenContext.d.ts +6 -1
- package/lib/context/VariantsContext.d.ts +2 -1
- package/lib/index.d.ts +102 -1
- package/lib/reducers/AddressReducer.d.ts +59 -1
- package/lib/reducers/AvailabilityReducer.d.ts +61 -1
- package/lib/reducers/BillingAddressReducer.d.ts +31 -1
- package/lib/reducers/CustomerReducer.d.ts +50 -1
- package/lib/reducers/GiftCardReducer.d.ts +76 -1
- package/lib/reducers/ItemReducer.d.ts +69 -1
- package/lib/reducers/LineItemReducer.d.ts +52 -1
- package/lib/reducers/OrderReducer.d.ts +132 -2
- package/lib/reducers/OrderReducer.js +1 -1
- package/lib/reducers/PaymentMethodReducer.d.ts +151 -1
- package/lib/reducers/PlaceOrderReducer.d.ts +59 -1
- package/lib/reducers/PriceReducer.d.ts +44 -1
- package/lib/reducers/ShipmentReducer.d.ts +40 -1
- package/lib/reducers/ShippingAddressReducer.d.ts +32 -1
- package/lib/reducers/SkuListsReducer.d.ts +21 -1
- package/lib/reducers/SkuOptionsReducer.d.ts +26 -1
- package/lib/reducers/SkuReducer.d.ts +21 -1
- package/lib/reducers/VariantReducer.d.ts +71 -1
- package/lib/typings/errors.d.ts +42 -1
- package/lib/typings/index.d.ts +137 -1
- package/lib/utils/PropsType.d.ts +33 -1
- package/lib/utils/addressesManager.d.ts +28 -1
- package/lib/utils/baseReducer.d.ts +3 -1
- package/lib/utils/browserInfo.d.ts +9 -1
- package/lib/utils/checkIncludeResource.d.ts +8 -1
- package/lib/utils/childrenTypes.d.ts +9 -1
- package/lib/utils/compareObjAttribute.d.ts +7 -1
- package/lib/utils/countryStateCity.d.ts +9 -1
- package/lib/utils/customMessages.d.ts +8 -1
- package/lib/utils/customerOrderOptions.d.ts +3 -1
- package/lib/utils/getAmount.d.ts +9 -1
- package/lib/utils/getCardDetails.d.ts +15 -1
- package/lib/utils/getCurrentItemKey.d.ts +6 -1
- package/lib/utils/getErrors.d.ts +11 -1
- package/lib/utils/getLineItemsCount.d.ts +12 -1
- package/lib/utils/getLineItemsCount.js +1 -1
- package/lib/utils/getLoaderComponent.d.ts +2 -1
- package/lib/utils/getPrices.d.ts +17 -1
- package/lib/utils/getSdk.d.ts +3 -1
- package/lib/utils/getSkus.d.ts +3 -1
- package/lib/utils/hooks/useExternalScript.d.ts +1 -1
- package/lib/utils/isEmptyStates.d.ts +1 -1
- package/lib/utils/isJSON.d.ts +1 -1
- package/lib/utils/jwt.d.ts +27 -1
- package/lib/utils/localStorage.d.ts +17 -1
- package/lib/utils/organization.d.ts +6 -1
- package/lib/utils/paypalPayment.d.ts +3 -1
- package/lib/utils/placeholderImages.d.ts +2 -0
- package/lib/utils/placeholderImages.js +1 -0
- package/lib/utils/promisify.d.ts +1 -1
- package/lib/utils/shipments.d.ts +3 -1
- package/lib/utils/validateFormFields.d.ts +22 -1
- package/package.json +27 -60
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercelayer/react-components",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.13.0-beta.2",
|
|
4
4
|
"description": "The Official Commerce Layer React Components",
|
|
5
5
|
"module": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -12,52 +12,17 @@
|
|
|
12
12
|
"publishConfig": {
|
|
13
13
|
"access": "public"
|
|
14
14
|
},
|
|
15
|
-
"release": {
|
|
16
|
-
"branches": [
|
|
17
|
-
"+([0-9])?(.{+([0-9]),x}).x",
|
|
18
|
-
"master",
|
|
19
|
-
"next",
|
|
20
|
-
"next-major",
|
|
21
|
-
{
|
|
22
|
-
"name": "beta",
|
|
23
|
-
"prerelease": true
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"name": "alpha",
|
|
27
|
-
"prerelease": true
|
|
28
|
-
}
|
|
29
|
-
],
|
|
30
|
-
"plugins": [
|
|
31
|
-
"@semantic-release/commit-analyzer",
|
|
32
|
-
"@semantic-release/release-notes-generator",
|
|
33
|
-
"@semantic-release/changelog",
|
|
34
|
-
"@semantic-release/npm",
|
|
35
|
-
"@semantic-release/git",
|
|
36
|
-
[
|
|
37
|
-
"@semantic-release/github",
|
|
38
|
-
{
|
|
39
|
-
"addReleases": "top"
|
|
40
|
-
}
|
|
41
|
-
]
|
|
42
|
-
]
|
|
43
|
-
},
|
|
44
15
|
"scripts": {
|
|
45
16
|
"test": "jest",
|
|
46
17
|
"test:coverage": "jest --coverage",
|
|
47
18
|
"test:e2e": "NODE_ENV=test playwright test",
|
|
48
|
-
"test:e2e:coverage": "nyc
|
|
19
|
+
"test:e2e:coverage": "nyc pnpm test:e2e && pnpm coverage:report",
|
|
49
20
|
"coverage:report": "nyc report --reporter=html",
|
|
50
21
|
"lint": "eslint src",
|
|
51
|
-
"build": "tsc -b tsconfig.prod.json --verbose",
|
|
22
|
+
"build": "tsc -b tsconfig.prod.json --verbose && pnpm postbuild",
|
|
52
23
|
"build:dev": "tsc -b tsconfig.prod.json --verbose && tsc-alias -p tsconfig.prod.json",
|
|
53
|
-
"postbuild": "tsc-alias -p tsconfig.prod.json && minimize-js lib -w -s
|
|
54
|
-
"start": "NODE_OPTIONS='--inspect' next dev"
|
|
55
|
-
"version:fix": "npm version patch",
|
|
56
|
-
"version:feat": "npm version minor",
|
|
57
|
-
"version:perf": "npm version major",
|
|
58
|
-
"publish:fix": "npm run build && npm run version:fix && git push --follow-tags && npm publish --access public",
|
|
59
|
-
"publish:feat": "npm run build && npm run version:feat && git push --follow-tags && npm publish --access public",
|
|
60
|
-
"publish:perf": "npm run build && npm run version:perf && git push --follow-tags && npm publish --access public"
|
|
24
|
+
"postbuild": "tsc-alias -p tsconfig.prod.json && minimize-js lib -w -s",
|
|
25
|
+
"start": "NODE_OPTIONS='--inspect' next dev"
|
|
61
26
|
},
|
|
62
27
|
"repository": {
|
|
63
28
|
"type": "git",
|
|
@@ -84,9 +49,9 @@
|
|
|
84
49
|
"dependencies": {
|
|
85
50
|
"@ac-dev/countries-service": "^1.2.0",
|
|
86
51
|
"@ac-dev/states-service": "^1.1.0",
|
|
87
|
-
"@adyen/adyen-web": "^5.
|
|
52
|
+
"@adyen/adyen-web": "^5.15.0",
|
|
88
53
|
"@commercelayer/sdk": "^4.13.2",
|
|
89
|
-
"@stripe/react-stripe-js": "^1.
|
|
54
|
+
"@stripe/react-stripe-js": "^1.8.0",
|
|
90
55
|
"@stripe/stripe-js": "^1.29.0",
|
|
91
56
|
"axios": "^0.27.2",
|
|
92
57
|
"braintree-web": "^3.85.3",
|
|
@@ -97,12 +62,15 @@
|
|
|
97
62
|
"rapid-form": "^1.6.2"
|
|
98
63
|
},
|
|
99
64
|
"devDependencies": {
|
|
65
|
+
"@babel/core": "^7.17.12",
|
|
66
|
+
"@babel/plugin-proposal-class-properties": "^7.17.12",
|
|
67
|
+
"@babel/plugin-syntax-flow": "^7.17.12",
|
|
68
|
+
"@babel/plugin-transform-react-jsx": "^7.17.12",
|
|
69
|
+
"@babel/preset-env": "^7.17.12",
|
|
70
|
+
"@babel/preset-react": "^7.17.12",
|
|
71
|
+
"@babel/preset-typescript": "^7.17.12",
|
|
100
72
|
"@commercelayer/js-auth": "^2.3.0",
|
|
101
|
-
"@
|
|
102
|
-
"@babel/preset-env": "^7.17.10",
|
|
103
|
-
"@babel/preset-react": "^7.16.7",
|
|
104
|
-
"@babel/preset-typescript": "^7.16.7",
|
|
105
|
-
"@playwright/test": "^1.21.1",
|
|
73
|
+
"@playwright/test": "^1.22.1",
|
|
106
74
|
"@semantic-release/changelog": "^6.0.1",
|
|
107
75
|
"@semantic-release/commit-analyzer": "^9.0.2",
|
|
108
76
|
"@semantic-release/git": "^10.0.1",
|
|
@@ -114,21 +82,20 @@
|
|
|
114
82
|
"@tailwindcss/line-clamp": "^0.4.0",
|
|
115
83
|
"@tailwindcss/typography": "^0.5.2",
|
|
116
84
|
"@types/braintree-web": "^3.75.19",
|
|
117
|
-
"@types/jest": "^27.5.
|
|
85
|
+
"@types/jest": "^27.5.1",
|
|
118
86
|
"@types/lodash": "^4.14.182",
|
|
119
|
-
"@types/node": "^17.0.
|
|
87
|
+
"@types/node": "^17.0.34",
|
|
120
88
|
"@types/prop-types": "^15.7.5",
|
|
121
|
-
"@types/react": "^17.0.
|
|
122
|
-
"@types/react-test-renderer": "^17.0.
|
|
123
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
124
|
-
"@typescript-eslint/parser": "^5.
|
|
125
|
-
"@zeit/next-css": "^1.0.1",
|
|
89
|
+
"@types/react": "^17.0.45",
|
|
90
|
+
"@types/react-test-renderer": "^17.0.2",
|
|
91
|
+
"@typescript-eslint/eslint-plugin": "^5.25.0",
|
|
92
|
+
"@typescript-eslint/parser": "^5.25.0",
|
|
126
93
|
"@zerollup/ts-transform-paths": "^1.7.18",
|
|
127
94
|
"autoprefixer": "^10.4.7",
|
|
128
95
|
"babel-jest": "^28.1.0",
|
|
129
96
|
"babel-loader": "^8.2.5",
|
|
130
97
|
"babel-plugin-istanbul": "^6.1.1",
|
|
131
|
-
"dotenv": "^16.0.
|
|
98
|
+
"dotenv": "^16.0.1",
|
|
132
99
|
"eslint": "^8.15.0",
|
|
133
100
|
"eslint-config-prettier": "^8.5.0",
|
|
134
101
|
"eslint-config-react-app": "^7.0.1",
|
|
@@ -138,7 +105,7 @@
|
|
|
138
105
|
"minimize-js": "^1.3.0",
|
|
139
106
|
"next": "^12.1.6",
|
|
140
107
|
"nyc": "^15.1.0",
|
|
141
|
-
"playwright": "^1.
|
|
108
|
+
"playwright": "^1.22.1",
|
|
142
109
|
"postcss": "^8.4.13",
|
|
143
110
|
"postcss-loader": "^6.2.1",
|
|
144
111
|
"prettier": "^2.6.2",
|
|
@@ -146,16 +113,16 @@
|
|
|
146
113
|
"react": "^17.0.2",
|
|
147
114
|
"react-dom": "^17.0.2",
|
|
148
115
|
"react-test-renderer": "^17.0.2",
|
|
149
|
-
"
|
|
150
|
-
"rollup-plugin-node-resolve": "^5.2.0",
|
|
116
|
+
"semantic-release": "^19.0.2",
|
|
151
117
|
"tailwindcss": "^3.0.24",
|
|
152
118
|
"ts-jest": "^28.0.2",
|
|
153
119
|
"ts-loader": "^9.3.0",
|
|
154
120
|
"tsc-alias": "^1.6.7",
|
|
155
121
|
"tsconfig-paths-jest": "^0.0.1",
|
|
156
|
-
"
|
|
122
|
+
"tslib": "^2.4.0",
|
|
157
123
|
"typescript": "^4.6.4",
|
|
158
|
-
"v8-to-istanbul": "^9.0.0"
|
|
124
|
+
"v8-to-istanbul": "^9.0.0",
|
|
125
|
+
"webpack": "^5.72.1"
|
|
159
126
|
},
|
|
160
127
|
"peerDependencies": {
|
|
161
128
|
"react": "^17.0.2"
|