@graphcommerce/magento-product-configurable 4.13.3 → 4.14.0-canary.3
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/CHANGELOG.md +10 -2
- package/ConfigurableContext/ConfigurableContext.tsx +5 -5
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
## 4.
|
|
3
|
+
## 4.14.0-canary.3
|
|
4
4
|
|
|
5
|
-
## 4.
|
|
5
|
+
## 4.14.0-canary.2
|
|
6
|
+
|
|
7
|
+
### Patch Changes
|
|
8
|
+
|
|
9
|
+
- [#1718](https://github.com/graphcommerce-org/graphcommerce/pull/1718) [`37e86cdc8`](https://github.com/graphcommerce-org/graphcommerce/commit/37e86cdc86ccca3db77d6c59b1e14c8112bb7893) - Remove usage of PropsWithChildren ([@paales](https://github.com/paales))
|
|
10
|
+
|
|
11
|
+
## 4.13.2-canary.1
|
|
12
|
+
|
|
13
|
+
## 4.13.2-canary.0
|
|
6
14
|
|
|
7
15
|
## 4.13.1
|
|
8
16
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useContext,
|
|
3
3
|
createContext,
|
|
4
|
-
PropsWithChildren,
|
|
5
4
|
Context,
|
|
6
5
|
useState,
|
|
7
6
|
Dispatch,
|
|
@@ -12,7 +11,10 @@ import {
|
|
|
12
11
|
import { ConfigurableProductFormFragment } from './ConfigurableProductForm.gql'
|
|
13
12
|
import cheapestVariant from './cheapestVariant'
|
|
14
13
|
|
|
15
|
-
type ConfigurableProductFormProps = ConfigurableProductFormFragment & {
|
|
14
|
+
type ConfigurableProductFormProps = ConfigurableProductFormFragment & {
|
|
15
|
+
sku: string
|
|
16
|
+
children?: React.ReactNode
|
|
17
|
+
}
|
|
16
18
|
|
|
17
19
|
export type Selected = { [attrCode: string]: number }
|
|
18
20
|
export type Variants = NonNullable<ConfigurableProductFormProps['variants']>
|
|
@@ -114,9 +116,7 @@ function traverseAttrTree(selection: Selected, attrTree: AttributeTree | undefin
|
|
|
114
116
|
return variantList
|
|
115
117
|
}
|
|
116
118
|
|
|
117
|
-
export function ConfigurableContextProvider(
|
|
118
|
-
props: PropsWithChildren<ConfigurableProductFormProps>,
|
|
119
|
-
) {
|
|
119
|
+
export function ConfigurableContextProvider(props: ConfigurableProductFormProps) {
|
|
120
120
|
const { children, sku, configurable_options, variants: providedVariants } = props
|
|
121
121
|
const [selection, select] = useState<Selected>({})
|
|
122
122
|
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/magento-product-configurable",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "4.
|
|
5
|
+
"version": "4.14.0-canary.3",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -19,18 +19,18 @@
|
|
|
19
19
|
"type-fest": "^2.12.2"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@graphcommerce/graphql": "4.
|
|
23
|
-
"@graphcommerce/graphql-mesh": "4.
|
|
24
|
-
"@graphcommerce/image": "4.
|
|
25
|
-
"@graphcommerce/magento-cart": "4.
|
|
26
|
-
"@graphcommerce/magento-cart-items": "4.
|
|
27
|
-
"@graphcommerce/magento-category": "4.
|
|
28
|
-
"@graphcommerce/magento-customer": "4.
|
|
29
|
-
"@graphcommerce/magento-product": "4.
|
|
30
|
-
"@graphcommerce/magento-product-simple": "4.
|
|
31
|
-
"@graphcommerce/magento-store": "4.
|
|
32
|
-
"@graphcommerce/next-ui": "4.
|
|
33
|
-
"@graphcommerce/react-hook-form": "4.
|
|
22
|
+
"@graphcommerce/graphql": "4.31.0-canary.2",
|
|
23
|
+
"@graphcommerce/graphql-mesh": "4.31.0-canary.2",
|
|
24
|
+
"@graphcommerce/image": "4.31.0-canary.2",
|
|
25
|
+
"@graphcommerce/magento-cart": "4.14.0-canary.3",
|
|
26
|
+
"@graphcommerce/magento-cart-items": "4.14.0-canary.3",
|
|
27
|
+
"@graphcommerce/magento-category": "4.14.0-canary.3",
|
|
28
|
+
"@graphcommerce/magento-customer": "4.14.0-canary.3",
|
|
29
|
+
"@graphcommerce/magento-product": "4.14.0-canary.3",
|
|
30
|
+
"@graphcommerce/magento-product-simple": "4.14.0-canary.3",
|
|
31
|
+
"@graphcommerce/magento-store": "4.14.0-canary.3",
|
|
32
|
+
"@graphcommerce/next-ui": "4.31.0-canary.2",
|
|
33
|
+
"@graphcommerce/react-hook-form": "4.31.0-canary.2"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@lingui/react": "^3.13.2",
|