@graphcommerce/hygraph-dynamic-rows-ui 9.0.0-canary.98 → 9.0.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/CHANGELOG.md CHANGED
@@ -1,64 +1,54 @@
1
1
  # @graphcommerce/hygraph-dynamic-rows-ui
2
2
 
3
- ## 9.0.0-canary.98
4
-
5
- ## 9.0.0-canary.97
3
+ ## 9.0.0
6
4
 
7
5
  ### Patch Changes
8
6
 
9
- - [#2410](https://github.com/graphcommerce-org/graphcommerce/pull/2410) [`2a425b3`](https://github.com/graphcommerce-org/graphcommerce/commit/2a425b323ddaf0918c549e93b598888db7328d66) - Allow attributes with deprecationReasons (e.g. custom attributes) as PropertyPicker value ([@carlocarels90](https://github.com/carlocarels90))
10
-
11
- ## 9.0.0-canary.96
12
-
13
- ## 9.0.0-canary.95
14
-
15
- ## 9.0.0-canary.94
16
-
17
- ## 9.0.0-canary.93
7
+ - [#2347](https://github.com/graphcommerce-org/graphcommerce/pull/2347) [`7fa50a2`](https://github.com/graphcommerce-org/graphcommerce/commit/7fa50a2f21ee9edbc67d06d7694316f101f9415f) - Resolve issue where the dynamic rows UI wouldn’t load any definitions ([@paales](https://github.com/paales))
18
8
 
19
- ## 9.0.0-canary.92
9
+ - [#2316](https://github.com/graphcommerce-org/graphcommerce/pull/2316) [`28d4708`](https://github.com/graphcommerce-org/graphcommerce/commit/28d470861a10a38690d565d236ce573905038d2b) - Solve bugs in the Dynamic Row UI module and styled the config screen. ([@JoshuaS98](https://github.com/JoshuaS98))
20
10
 
21
- ## 9.0.0-canary.91
11
+ - [#2308](https://github.com/graphcommerce-org/graphcommerce/pull/2308) [`8faa5ac`](https://github.com/graphcommerce-org/graphcommerce/commit/8faa5ac618ecfdacd6d5eb751b4110c423aef97f) - Added Draft Mode support. When enabled it will be shown. ([@paales](https://github.com/paales))
22
12
 
23
- ## 9.0.0-canary.90
13
+ - [#2410](https://github.com/graphcommerce-org/graphcommerce/pull/2410) [`2a425b3`](https://github.com/graphcommerce-org/graphcommerce/commit/2a425b323ddaf0918c549e93b598888db7328d66) - Allow attributes with deprecationReasons (e.g. custom attributes) as PropertyPicker value ([@carlocarels90](https://github.com/carlocarels90))
24
14
 
25
- ## 9.0.0-canary.89
15
+ ## 9.0.0-canary.118
26
16
 
27
- ## 9.0.0-canary.88
17
+ ## 9.0.0-canary.117
28
18
 
29
- ## 9.0.0-canary.87
19
+ ## 9.0.0-canary.116
30
20
 
31
- ## 9.0.0-canary.86
21
+ ## 9.0.0-canary.115
32
22
 
33
- ## 9.0.0-canary.85
23
+ ## 9.0.0-canary.114
34
24
 
35
- ## 9.0.0-canary.84
25
+ ## 9.0.0-canary.113
36
26
 
37
- ## 9.0.0-canary.83
27
+ ## 9.0.0-canary.112
38
28
 
39
- ## 9.0.0-canary.82
29
+ ## 9.0.0-canary.111
40
30
 
41
- ## 9.0.0-canary.81
31
+ ## 9.0.0-canary.110
42
32
 
43
- ## 9.0.0-canary.80
33
+ ## 9.0.0-canary.109
44
34
 
45
- ## 9.0.0-canary.79
35
+ ## 9.0.0-canary.108
46
36
 
47
- ## 9.0.0-canary.78
37
+ ## 9.0.0-canary.107
48
38
 
49
- ## 9.0.0-canary.77
39
+ ## 9.0.0-canary.106
50
40
 
51
- ## 9.0.0-canary.76
41
+ ## 9.0.0-canary.105
52
42
 
53
- ## 9.0.0-canary.75
43
+ ## 9.0.0-canary.104
54
44
 
55
- ## 9.0.0-canary.74
45
+ ## 9.0.0-canary.103
56
46
 
57
- ## 9.0.0-canary.73
47
+ ## 9.0.0-canary.97
58
48
 
59
- ## 9.0.0-canary.72
49
+ ### Patch Changes
60
50
 
61
- ## 9.0.0-canary.71
51
+ - [#2410](https://github.com/graphcommerce-org/graphcommerce/pull/2410) [`2a425b3`](https://github.com/graphcommerce-org/graphcommerce/commit/2a425b323ddaf0918c549e93b598888db7328d66) - Allow attributes with deprecationReasons (e.g. custom attributes) as PropertyPicker value ([@carlocarels90](https://github.com/carlocarels90))
62
52
 
63
53
  ## 9.0.0-canary.70
64
54
 
@@ -66,326 +56,20 @@
66
56
 
67
57
  - [#2347](https://github.com/graphcommerce-org/graphcommerce/pull/2347) [`7fa50a2`](https://github.com/graphcommerce-org/graphcommerce/commit/7fa50a2f21ee9edbc67d06d7694316f101f9415f) - Resolve issue where the dynamic rows UI wouldn’t load any definitions ([@paales](https://github.com/paales))
68
58
 
69
- ## 9.0.0-canary.69
70
-
71
- ## 9.0.0-canary.68
72
-
73
- ## 9.0.0-canary.67
74
-
75
- ## 9.0.0-canary.66
76
-
77
- ## 9.0.0-canary.65
78
-
79
- ## 9.0.0-canary.64
80
-
81
- ## 9.0.0-canary.63
82
-
83
- ## 9.0.0-canary.62
84
-
85
- ## 9.0.0-canary.61
86
-
87
- ## 9.0.0-canary.60
88
-
89
- ## 9.0.0-canary.59
90
-
91
- ## 9.0.0-canary.58
92
-
93
- ## 9.0.0-canary.57
94
-
95
- ## 9.0.0-canary.56
96
-
97
- ## 9.0.0-canary.55
98
-
99
- ## 9.0.0-canary.54
100
-
101
- ## 8.1.0-canary.53
102
-
103
- ## 8.1.0-canary.52
104
-
105
- ## 8.1.0-canary.51
106
-
107
- ## 8.1.0-canary.50
108
-
109
- ## 8.1.0-canary.49
110
-
111
- ## 8.1.0-canary.48
112
-
113
- ## 8.1.0-canary.47
114
-
115
59
  ## 8.1.0-canary.46
116
60
 
117
61
  ### Patch Changes
118
62
 
119
63
  - [#2316](https://github.com/graphcommerce-org/graphcommerce/pull/2316) [`28d4708`](https://github.com/graphcommerce-org/graphcommerce/commit/28d470861a10a38690d565d236ce573905038d2b) - fix hygraph studio bugs in Dynamic Row UI module. Style config screen DR UI app. ([@JoshuaS98](https://github.com/JoshuaS98))
120
64
 
121
- ## 8.1.0-canary.45
122
-
123
- ## 8.1.0-canary.44
124
-
125
- ## 8.1.0-canary.43
126
-
127
65
  ## 8.1.0-canary.42
128
66
 
129
67
  ### Patch Changes
130
68
 
131
69
  - [#2308](https://github.com/graphcommerce-org/graphcommerce/pull/2308) [`8faa5ac`](https://github.com/graphcommerce-org/graphcommerce/commit/8faa5ac618ecfdacd6d5eb751b4110c423aef97f) - Added Draft Mode support. When enabled it will be shown. ([@paales](https://github.com/paales))
132
70
 
133
- ## 8.1.0-canary.41
134
-
135
- ## 8.1.0-canary.40
136
-
137
- ## 8.1.0-canary.39
138
-
139
- ## 8.1.0-canary.38
140
-
141
- ## 8.1.0-canary.37
142
-
143
- ## 8.1.0-canary.36
144
-
145
- ## 8.1.0-canary.35
146
-
147
- ## 8.1.0-canary.34
148
-
149
- ## 8.1.0-canary.33
150
-
151
- ## 8.1.0-canary.32
152
-
153
- ## 8.1.0-canary.31
154
-
155
- ## 8.1.0-canary.30
156
-
157
- ## 8.1.0-canary.29
158
-
159
- ## 8.1.0-canary.28
160
-
161
- ## 8.1.0-canary.27
162
-
163
- ## 8.1.0-canary.26
164
-
165
- ## 8.1.0-canary.25
166
-
167
- ## 8.1.0-canary.24
168
-
169
- ## 8.1.0-canary.23
170
-
171
- ## 8.1.0-canary.22
172
-
173
- ## 8.1.0-canary.21
174
-
175
- ## 8.1.0-canary.20
176
-
177
- ## 8.1.0-canary.19
178
-
179
- ## 8.1.0-canary.18
180
-
181
- ## 8.1.0-canary.17
182
-
183
- ## 8.1.0-canary.16
184
-
185
- ## 8.1.0-canary.15
186
-
187
- ## 8.1.0-canary.14
188
-
189
- ## 8.1.0-canary.13
190
-
191
- ## 8.1.0-canary.12
192
-
193
- ## 8.1.0-canary.11
194
-
195
- ## 8.1.0-canary.10
196
-
197
- ## 8.1.0-canary.9
198
-
199
- ## 8.1.0-canary.8
200
-
201
- ## 8.1.0-canary.7
202
-
203
- ## 8.1.0-canary.6
204
-
205
- ## 8.1.0-canary.5
206
-
207
- ## 8.0.6-canary.4
208
-
209
- ## 8.0.6-canary.3
210
-
211
- ## 8.0.6-canary.2
212
-
213
- ## 8.0.6-canary.1
214
-
215
- ## 8.0.6-canary.0
216
-
217
- ## 8.0.5
218
-
219
- ## 8.0.5-canary.10
220
-
221
- ## 8.0.5-canary.9
222
-
223
- ## 8.0.5-canary.8
224
-
225
- ## 8.0.5-canary.7
226
-
227
- ## 8.0.5-canary.6
228
-
229
- ## 8.0.5-canary.5
230
-
231
- ## 8.0.5-canary.4
232
-
233
- ## 8.0.5-canary.3
234
-
235
- ## 8.0.5-canary.2
236
-
237
- ## 8.0.5-canary.1
238
-
239
- ## 8.0.5-canary.0
240
-
241
- ## 8.0.4
242
-
243
- ## 8.0.4-canary.1
244
-
245
- ## 8.0.4-canary.0
246
-
247
- ## 8.0.3
248
-
249
- ## 8.0.3-canary.6
250
-
251
- ## 8.0.3-canary.5
252
-
253
- ## 8.0.3-canary.4
254
-
255
- ## 8.0.3-canary.3
256
-
257
- ## 8.0.3-canary.2
258
-
259
- ## 8.0.3-canary.1
260
-
261
- ## 8.0.3-canary.0
262
-
263
- ## 8.0.2
264
-
265
- ## 8.0.2-canary.3
266
-
267
- ## 8.0.2-canary.2
268
-
269
- ## 8.0.2-canary.1
270
-
271
- ## 8.0.2-canary.0
272
-
273
- ## 8.0.1
274
-
275
- ## 8.0.1-canary.4
276
-
277
- ## 8.0.1-canary.3
278
-
279
- ## 8.0.1-canary.2
280
-
281
- ## 8.0.1-canary.1
282
-
283
- ## 8.0.1-canary.0
284
-
285
71
  ## 8.0.0
286
72
 
287
73
  ### Minor Changes
288
74
 
289
75
  - [#2100](https://github.com/graphcommerce-org/graphcommerce/pull/2100) [`4df891a`](https://github.com/graphcommerce-org/graphcommerce/commit/4df891a4c18b29cc52447eab3a97c66948b6c18f) - Add Dynamic Row UI for property UI field through a custom Hygraph application ([@JoshuaS98](https://github.com/JoshuaS98))
290
-
291
- ## 8.0.0-canary.100
292
-
293
- ## 8.0.0-canary.99
294
-
295
- ## 8.0.0-canary.98
296
-
297
- ## 8.0.0-canary.97
298
-
299
- ## 8.0.0-canary.96
300
-
301
- ## 8.0.0-canary.95
302
-
303
- ## 8.0.0-canary.94
304
-
305
- ## 8.0.0-canary.93
306
-
307
- ## 8.0.0-canary.92
308
-
309
- ## 8.0.0-canary.91
310
-
311
- ## 8.0.0-canary.90
312
-
313
- ## 8.0.0-canary.89
314
-
315
- ## 8.0.0-canary.88
316
-
317
- ## 8.0.0-canary.87
318
-
319
- ## 8.0.0-canary.86
320
-
321
- ## 8.0.0-canary.85
322
-
323
- ## 8.0.0-canary.84
324
-
325
- ## 8.0.0-canary.83
326
-
327
- ## 8.0.0-canary.82
328
-
329
- ## 8.0.0-canary.81
330
-
331
- ## 8.0.0-canary.80
332
-
333
- ## 8.0.0-canary.79
334
-
335
- ## 8.0.0-canary.78
336
-
337
- ## 8.0.0-canary.77
338
-
339
- ## 8.0.0-canary.76
340
-
341
- ## 8.0.0-canary.75
342
-
343
- ## 8.0.0-canary.74
344
-
345
- ## 8.0.0-canary.73
346
-
347
- ## 8.0.0-canary.72
348
-
349
- ## 8.0.0-canary.71
350
-
351
- ## 8.0.0-canary.70
352
-
353
- ## 8.0.0-canary.69
354
-
355
- ## 7.1.0-canary.68
356
-
357
- ## 7.1.0-canary.67
358
-
359
- ## 7.1.0-canary.66
360
-
361
- ## 7.1.0-canary.65
362
-
363
- ## 7.1.0-canary.64
364
-
365
- ## 7.1.0-canary.63
366
-
367
- ## 7.1.0-canary.62
368
-
369
- ## 7.1.0-canary.61
370
-
371
- ## 7.1.0-canary.60
372
-
373
- ## 7.1.0-canary.59
374
-
375
- ### Patch Changes
376
-
377
- - [#2126](https://github.com/graphcommerce-org/graphcommerce/pull/2126) [`bacb3c4f5`](https://github.com/graphcommerce-org/graphcommerce/commit/bacb3c4f5734f7606c5f7049c95d7d86a547641a) - Fix eslint errors in Dynamic Rows UI package ([@JoshuaS98](https://github.com/JoshuaS98))
378
-
379
- ## 7.1.0-canary.58
380
-
381
- ## 7.1.0-canary.57
382
-
383
- ## 7.1.0-canary.56
384
-
385
- ## 7.1.0-canary.55
386
-
387
- ## 7.1.0-canary.54
388
-
389
- ### Minor Changes
390
-
391
- - [#2100](https://github.com/graphcommerce-org/graphcommerce/pull/2100) [`4df891a4c`](https://github.com/graphcommerce-org/graphcommerce/commit/4df891a4c18b29cc52447eab3a97c66948b6c18f) - Add Dynamic Row UI for property UI field through a custom Hygraph application ([@JoshuaS98](https://github.com/JoshuaS98))
@@ -1,7 +1,9 @@
1
- import { ApolloClient, gql, InMemoryCache, useQuery } from '@apollo/client'
2
- import { FieldExtensionProps, useFieldExtension } from '@hygraph/app-sdk-react'
1
+ import { ApolloClient, InMemoryCache, gql, useQuery } from '@apollo/client'
2
+ import type { FieldExtensionProps } from '@hygraph/app-sdk-react'
3
+ import { useFieldExtension } from '@hygraph/app-sdk-react'
3
4
  import { TextField } from '@mui/material'
4
- import { getIntrospectionQuery, IntrospectionQuery } from 'graphql'
5
+ import type { IntrospectionQuery } from 'graphql'
6
+ import { getIntrospectionQuery } from 'graphql'
5
7
  import { useEffect, useMemo, useState } from 'react'
6
8
  import { getFieldPaths } from '../lib/getFieldPaths'
7
9
 
@@ -1,4 +1,5 @@
1
- import { useApp, Wrapper } from '@hygraph/app-sdk-react'
1
+ import { Wrapper, useApp } from '@hygraph/app-sdk-react'
2
+ // eslint-disable-next-line @typescript-eslint/no-restricted-imports
2
3
  import Image from 'next/image'
3
4
  import { useState } from 'react'
4
5
  import styles from './setup.module.css'
@@ -1,4 +1,4 @@
1
- import { IntrospectionField, IntrospectionOutputTypeRef, IntrospectionSchema } from 'graphql'
1
+ import type { IntrospectionField, IntrospectionOutputTypeRef, IntrospectionSchema } from 'graphql'
2
2
 
3
3
  function getType(type: IntrospectionOutputTypeRef) {
4
4
  switch (type.kind) {
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": "9.0.0-canary.98",
5
+ "version": "9.0.0",
6
6
  "sideEffects": false,
7
7
  "type": "commonjs",
8
8
  "prettier": "@graphcommerce/prettier-config-pwa",
@@ -16,29 +16,34 @@
16
16
  "dev": "next dev"
17
17
  },
18
18
  "dependencies": {
19
- "@apollo/client": "~3.10.8",
20
- "@graphcommerce/next-config": "9.0.0-canary.98",
21
- "@hygraph/app-sdk-react": "^0.0.4",
22
- "@lingui/core": "^4.11.2",
23
- "@lingui/macro": "^4.11.2",
24
- "@lingui/react": "^4.11.2",
25
- "@mui/material": "5.16.4",
19
+ "@apollo/client": "~3.12.3",
20
+ "@graphcommerce/next-config": "9.0.0",
21
+ "@hygraph/app-sdk-react": "^0.0.5",
22
+ "@lingui/conf": "4.14.1",
23
+ "@lingui/core": "4.14.1",
24
+ "@lingui/loader": "4.14.1",
25
+ "@lingui/macro": "4.14.1",
26
+ "@lingui/react": "4.14.1",
27
+ "@lingui/swc-plugin": "4.1.0",
28
+ "@mui/material": "5.16.8",
26
29
  "cross-env": "^7.0.3",
27
- "dotenv": "16.4.5",
28
- "graphql": "^16.9.0",
29
- "next": "14.2.5",
30
+ "dotenv": "16.4.7",
31
+ "graphql": "^16.10.0",
32
+ "next": "15.1.0",
30
33
  "react": "^18.3.1",
31
34
  "react-dom": "^18.3.1",
32
- "webpack": "~5.93.0"
35
+ "webpack": "^5.97.1"
33
36
  },
34
37
  "devDependencies": {
35
- "@graphcommerce/eslint-config-pwa": "9.0.0-canary.98",
36
- "@graphcommerce/prettier-config-pwa": "9.0.0-canary.98",
37
- "@graphcommerce/typescript-config-pwa": "9.0.0-canary.98",
38
- "@types/react-is": "^18.3.0",
38
+ "@graphcommerce/eslint-config-pwa": "9.0.0",
39
+ "@graphcommerce/prettier-config-pwa": "9.0.0",
40
+ "@graphcommerce/typescript-config-pwa": "9.0.0",
41
+ "@types/react": "^18.3.17",
42
+ "@types/react-dom": "^18.3.5",
43
+ "@types/react-is": "^18.3.1",
39
44
  "babel-plugin-macros": "^3.1.0",
40
- "eslint": "^8",
41
- "prettier": "3.3.3",
42
- "typescript": "5.5.3"
45
+ "eslint": "^8.57.1",
46
+ "prettier": "^3",
47
+ "typescript": "5.7.2"
43
48
  }
44
49
  }
package/types/index.ts DELETED
@@ -1,38 +0,0 @@
1
- export type ProductProperty = {
2
- label: string
3
- id: string
4
- type?: string
5
- }
6
-
7
- export type Interface = {
8
- __type: __Type
9
- }
10
-
11
- export type __Type = {
12
- kind?: __TypeKind
13
- name?: string
14
- description?: string
15
- fields: __Field[]
16
- ofType?: { name?: string; fields: __Field[] }
17
- }
18
-
19
- export type __TypeKind =
20
- | 'SCALAR'
21
- | 'OBJECT'
22
- | 'INTERFACE'
23
- | 'UNION'
24
- | 'ENUM'
25
- | 'INPUT_OBJECT'
26
- | 'LIST'
27
- | 'NON_NULL'
28
-
29
- export type __Field = {
30
- name: string
31
- type: __Type
32
- isDeprecated: boolean
33
- description?: string
34
- }
35
-
36
- export type Option = { id: string; label: string }
37
-
38
- export type Options = { text: Option[]; number: Option[] }