@graphcommerce/hygraph-dynamic-rows-ui 10.0.0-canary.68 → 10.0.0-canary.72
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 +12 -0
- package/components/PropertyPicker.tsx +10 -5
- package/package.json +16 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @graphcommerce/hygraph-dynamic-rows-ui
|
|
2
2
|
|
|
3
|
+
## 10.0.0-canary.72
|
|
4
|
+
|
|
5
|
+
## 10.0.0-canary.71
|
|
6
|
+
|
|
7
|
+
## 10.0.0-canary.70
|
|
8
|
+
|
|
9
|
+
### Major Changes
|
|
10
|
+
|
|
11
|
+
- [#2565](https://github.com/graphcommerce-org/graphcommerce/pull/2565) [`c96dfcd`](https://github.com/graphcommerce-org/graphcommerce/commit/c96dfcdca981baca387c270ad9e2b9515cdd00cc) - Updated to Apollo Client 4 ([@paales](https://github.com/paales))
|
|
12
|
+
|
|
13
|
+
## 10.0.0-canary.69
|
|
14
|
+
|
|
3
15
|
## 10.0.0-canary.68
|
|
4
16
|
|
|
5
17
|
## 10.0.0-canary.67
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ApolloClient, gql,
|
|
1
|
+
import { ApolloClient, gql, HttpLink, InMemoryCache } from '@apollo/client'
|
|
2
|
+
import { useQuery } from '@apollo/client/react'
|
|
2
3
|
import type { FieldExtensionProps } from '@hygraph/app-sdk-react'
|
|
3
4
|
import { useFieldExtension } from '@hygraph/app-sdk-react'
|
|
4
5
|
import { TextField } from '@mui/material'
|
|
@@ -11,11 +12,15 @@ function useClient(extension: FieldExtensionProps['extension']) {
|
|
|
11
12
|
return useMemo(
|
|
12
13
|
() =>
|
|
13
14
|
new ApolloClient({
|
|
14
|
-
uri:
|
|
15
|
-
typeof extension.config.backend === 'string'
|
|
16
|
-
? extension.config.backend
|
|
17
|
-
: 'https://graphcommerce.vercel.app/api/graphql', // fallback on the standard GraphCommerce Schema
|
|
18
15
|
cache: new InMemoryCache(),
|
|
16
|
+
|
|
17
|
+
link: new HttpLink({
|
|
18
|
+
// fallback on the standard GraphCommerce Schema
|
|
19
|
+
uri:
|
|
20
|
+
typeof extension.config.backend === 'string'
|
|
21
|
+
? extension.config.backend
|
|
22
|
+
: 'https://graphcommerce.vercel.app/api/graphql',
|
|
23
|
+
}),
|
|
19
24
|
}),
|
|
20
25
|
[extension.config.backend],
|
|
21
26
|
)
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/hygraph-dynamic-rows-ui",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "10.0.0-canary.
|
|
5
|
+
"version": "10.0.0-canary.72",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"type": "module",
|
|
8
8
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
@@ -19,33 +19,33 @@
|
|
|
19
19
|
"node": ">=20 <24.0.0"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@apollo/client": "^
|
|
23
|
-
"@graphcommerce/next-config": "10.0.0-canary.
|
|
22
|
+
"@apollo/client": "^4.0.11",
|
|
23
|
+
"@graphcommerce/next-config": "10.0.0-canary.72",
|
|
24
24
|
"@hygraph/app-sdk-react": "^0.0.6",
|
|
25
|
-
"@lingui/conf": "5.
|
|
26
|
-
"@lingui/core": "5.
|
|
27
|
-
"@lingui/format-po": "5.
|
|
28
|
-
"@lingui/loader": "5.
|
|
29
|
-
"@lingui/macro": "5.
|
|
30
|
-
"@lingui/react": "5.
|
|
31
|
-
"@lingui/swc-plugin": "5.
|
|
32
|
-
"@mui/material": "^7.
|
|
25
|
+
"@lingui/conf": "5.7.0",
|
|
26
|
+
"@lingui/core": "5.7.0",
|
|
27
|
+
"@lingui/format-po": "5.7.0",
|
|
28
|
+
"@lingui/loader": "5.7.0",
|
|
29
|
+
"@lingui/macro": "5.7.0",
|
|
30
|
+
"@lingui/react": "5.7.0",
|
|
31
|
+
"@lingui/swc-plugin": "5.10.0",
|
|
32
|
+
"@mui/material": "^7.3.6",
|
|
33
33
|
"cross-env": "^7.0.3",
|
|
34
34
|
"dotenv": "16.6.1",
|
|
35
35
|
"graphql": "^16.12.0",
|
|
36
|
-
"next": "16.
|
|
36
|
+
"next": "16.1.1",
|
|
37
37
|
"react": "^19.2.0",
|
|
38
38
|
"react-dom": "^19.2.0",
|
|
39
39
|
"webpack": "^5.103.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@graphcommerce/eslint-config-pwa": "10.0.0-canary.
|
|
43
|
-
"@graphcommerce/prettier-config-pwa": "10.0.0-canary.
|
|
44
|
-
"@graphcommerce/typescript-config-pwa": "10.0.0-canary.
|
|
42
|
+
"@graphcommerce/eslint-config-pwa": "10.0.0-canary.72",
|
|
43
|
+
"@graphcommerce/prettier-config-pwa": "10.0.0-canary.72",
|
|
44
|
+
"@graphcommerce/typescript-config-pwa": "10.0.0-canary.72",
|
|
45
45
|
"@types/react": "^19.2.7",
|
|
46
46
|
"@types/react-dom": "^19.2.3",
|
|
47
47
|
"@types/react-is": "^19.2.0",
|
|
48
|
-
"eslint": "^9.39.
|
|
48
|
+
"eslint": "^9.39.2",
|
|
49
49
|
"prettier": "^3.7.4",
|
|
50
50
|
"typescript": "5.9.3"
|
|
51
51
|
},
|