@takeshape/schema 9.70.0 → 9.71.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/dist/migration/index.d.ts +1 -0
- package/dist/migration/index.d.ts.map +1 -1
- package/dist/migration/index.js +4 -1
- package/dist/migration/to/v3.39.0.d.ts +5 -0
- package/dist/migration/to/v3.39.0.d.ts.map +1 -0
- package/dist/migration/to/v3.39.0.js +62 -0
- package/dist/project-schema/index.d.ts +4 -1
- package/dist/project-schema/index.d.ts.map +1 -1
- package/dist/project-schema/index.js +20 -3
- package/dist/project-schema/latest.d.ts +9 -3
- package/dist/project-schema/latest.d.ts.map +1 -1
- package/dist/project-schema/migrate.d.ts.map +1 -1
- package/dist/project-schema/migrate.js +4 -0
- package/dist/project-schema/v3.39.0.d.ts +1530 -0
- package/dist/project-schema/v3.39.0.d.ts.map +1 -0
- package/dist/project-schema/v3.39.0.js +5 -0
- package/dist/schemas/index.d.ts +2 -2
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +6 -4
- package/dist/schemas/index.ts +4 -2
- package/dist/schemas/project-schema/latest.json +11 -3
- package/dist/schemas/project-schema/v3.38.0.json +1 -1
- package/dist/schemas/project-schema/v3.39.0.json +3218 -0
- package/dist/schemas/project-schema.json +3 -0
- package/dist/validate.js +1 -1
- package/es/migration/index.js +3 -1
- package/es/migration/to/v3.39.0.js +54 -0
- package/es/project-schema/index.js +3 -1
- package/es/project-schema/migrate.js +5 -1
- package/es/project-schema/v3.39.0.js +1 -0
- package/es/schemas/index.js +4 -3
- package/es/schemas/index.ts +4 -2
- package/es/schemas/project-schema/latest.json +11 -3
- package/es/schemas/project-schema/v3.38.0.json +1 -1
- package/es/schemas/project-schema/v3.39.0.json +3218 -0
- package/es/schemas/project-schema.json +3 -0
- package/es/validate.js +1 -1
- package/examples/latest/betzino.json +1 -1
- package/examples/latest/blog-schema.json +1 -1
- package/examples/latest/brewery-schema.json +1 -1
- package/examples/latest/complex-project-schema.json +1 -1
- package/examples/latest/complex-schema.json +1 -1
- package/examples/latest/edit-schema.json +1 -1
- package/examples/latest/fabric-ecommerce.json +1 -1
- package/examples/latest/frank-and-fred-schema.json +1 -1
- package/examples/latest/klirr-schema.json +1 -1
- package/examples/latest/massive-schema.json +1 -1
- package/examples/latest/mill-components-schema.json +1 -1
- package/examples/latest/nested-shape-arrays.json +66 -20
- package/examples/latest/one-earth.json +1 -1
- package/examples/latest/pet-oneof-array.json +1 -1
- package/examples/latest/post-schema.json +1 -1
- package/examples/latest/pruned-shopify-product-schema.json +1 -1
- package/examples/latest/real-world-schema.json +1 -1
- package/examples/latest/recursive-repeater-schema.json +1 -1
- package/examples/latest/recursive-schema.json +1 -1
- package/examples/latest/rick-and-morty-ast.json +1 -1
- package/examples/latest/rick-and-morty-graphql.json +1 -1
- package/examples/latest/rick-and-morty-rest.json +1 -1
- package/examples/latest/schema-with-repeater-draftjs.json +1 -1
- package/examples/latest/shape-books-v3_2_0.json +1 -1
- package/examples/latest/shape-books.json +1 -1
- package/examples/latest/shape-editor-schema-edited.json +1 -1
- package/examples/latest/shape-editor-schema-initial.json +1 -1
- package/examples/latest/shopify-lookbook.json +1 -1
- package/examples/latest/shopify-product-2022-07.json +1 -1
- package/examples/latest/shopify-product-2023-04.json +1 -1
- package/examples/latest/shopify-store-with-widget.json +1 -1
- package/examples/latest/stripe-product-runtime-schema.json +1 -1
- package/examples/latest/stripe-starter-resolved.json +1 -1
- package/examples/latest/user-schema-no-required.json +1 -1
- package/examples/latest/user-schema-with-defaults.json +1 -1
- package/package.json +5 -5
package/es/validate.js
CHANGED
|
@@ -141,7 +141,7 @@ function enumerateBasicResolvers(resolver, path) {
|
|
|
141
141
|
const visit = (resolver, path) => {
|
|
142
142
|
if (isComposeResolver(resolver)) {
|
|
143
143
|
resolver.compose.forEach((resolver, i) => {
|
|
144
|
-
visit(resolver, [...path, i]);
|
|
144
|
+
visit(resolver, [...path, 'compose', i]);
|
|
145
145
|
});
|
|
146
146
|
} else {
|
|
147
147
|
results.push([resolver, path]);
|
|
@@ -52781,6 +52781,6 @@
|
|
|
52781
52781
|
}
|
|
52782
52782
|
}
|
|
52783
52783
|
},
|
|
52784
|
-
"schemaVersion": "3.
|
|
52784
|
+
"schemaVersion": "3.39.0",
|
|
52785
52785
|
"services": {}
|
|
52786
52786
|
}
|
|
@@ -10474,5 +10474,5 @@
|
|
|
10474
10474
|
}
|
|
10475
10475
|
}
|
|
10476
10476
|
},
|
|
10477
|
-
"schemaVersion": "3.
|
|
10477
|
+
"schemaVersion": "3.39.0"
|
|
10478
10478
|
}
|
|
@@ -23446,6 +23446,6 @@
|
|
|
23446
23446
|
}
|
|
23447
23447
|
}
|
|
23448
23448
|
},
|
|
23449
|
-
"schemaVersion": "3.
|
|
23449
|
+
"schemaVersion": "3.39.0",
|
|
23450
23450
|
"services": {}
|
|
23451
23451
|
}
|
|
@@ -35163,6 +35163,6 @@
|
|
|
35163
35163
|
}
|
|
35164
35164
|
}
|
|
35165
35165
|
},
|
|
35166
|
-
"schemaVersion": "3.
|
|
35166
|
+
"schemaVersion": "3.39.0",
|
|
35167
35167
|
"services": {}
|
|
35168
35168
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"projectId": "project-id",
|
|
3
3
|
"defaultLocale": "en-us",
|
|
4
|
-
"locales": [
|
|
4
|
+
"locales": [
|
|
5
|
+
"en-us"
|
|
6
|
+
],
|
|
5
7
|
"queries": {
|
|
6
8
|
"getOuterShape": {
|
|
7
9
|
"shape": "OuterShape",
|
|
@@ -80,10 +82,14 @@
|
|
|
80
82
|
"@resolver": {
|
|
81
83
|
"name": "shapedb:getRelated",
|
|
82
84
|
"service": "shapedb",
|
|
83
|
-
"options": {
|
|
85
|
+
"options": {
|
|
86
|
+
"nullable": true
|
|
87
|
+
}
|
|
84
88
|
},
|
|
85
89
|
"@ref": "local:Asset",
|
|
86
|
-
"@input": {
|
|
90
|
+
"@input": {
|
|
91
|
+
"@ref": "local:TSRelationship"
|
|
92
|
+
},
|
|
87
93
|
"@mapping": "shapedb:Image.3gKHjLx4b"
|
|
88
94
|
}
|
|
89
95
|
}
|
|
@@ -100,7 +106,9 @@
|
|
|
100
106
|
"title": "Media",
|
|
101
107
|
"@mapping": "shapedb:ImageContainer.o0c8IltQD",
|
|
102
108
|
"type": "array",
|
|
103
|
-
"items": {
|
|
109
|
+
"items": {
|
|
110
|
+
"@ref": "local:Image"
|
|
111
|
+
}
|
|
104
112
|
}
|
|
105
113
|
}
|
|
106
114
|
}
|
|
@@ -116,7 +124,9 @@
|
|
|
116
124
|
"title": "Media Content",
|
|
117
125
|
"@mapping": "shapedb:MediaContent.LKpMs3dQY",
|
|
118
126
|
"type": "array",
|
|
119
|
-
"items": {
|
|
127
|
+
"items": {
|
|
128
|
+
"@ref": "local:ImageContainer"
|
|
129
|
+
}
|
|
120
130
|
}
|
|
121
131
|
}
|
|
122
132
|
}
|
|
@@ -132,7 +142,9 @@
|
|
|
132
142
|
"title": "Section",
|
|
133
143
|
"@mapping": "shapedb:MediaSection.11tXCwfDS",
|
|
134
144
|
"type": "array",
|
|
135
|
-
"items": {
|
|
145
|
+
"items": {
|
|
146
|
+
"@ref": "local:MediaContent"
|
|
147
|
+
}
|
|
136
148
|
}
|
|
137
149
|
}
|
|
138
150
|
}
|
|
@@ -141,7 +153,9 @@
|
|
|
141
153
|
"id": "Qj6B-JW0D",
|
|
142
154
|
"name": "OuterShape",
|
|
143
155
|
"title": "Outer Shape",
|
|
144
|
-
"model": {
|
|
156
|
+
"model": {
|
|
157
|
+
"type": "multiple"
|
|
158
|
+
},
|
|
145
159
|
"schema": {
|
|
146
160
|
"type": "object",
|
|
147
161
|
"properties": {
|
|
@@ -149,7 +163,9 @@
|
|
|
149
163
|
"@mapping": "shapedb:OuterShape.2vwHVl5I7",
|
|
150
164
|
"type": "array",
|
|
151
165
|
"title": "Content",
|
|
152
|
-
"items": {
|
|
166
|
+
"items": {
|
|
167
|
+
"@ref": "local:MediaSection"
|
|
168
|
+
}
|
|
153
169
|
}
|
|
154
170
|
}
|
|
155
171
|
}
|
|
@@ -159,35 +175,65 @@
|
|
|
159
175
|
"forms": {
|
|
160
176
|
"Image": {
|
|
161
177
|
"default": {
|
|
162
|
-
"properties": {
|
|
163
|
-
|
|
178
|
+
"properties": {
|
|
179
|
+
"image": {
|
|
180
|
+
"widget": "image"
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"order": [
|
|
184
|
+
"image"
|
|
185
|
+
]
|
|
164
186
|
}
|
|
165
187
|
},
|
|
166
188
|
"ImageContainer": {
|
|
167
189
|
"default": {
|
|
168
|
-
"properties": {
|
|
169
|
-
|
|
190
|
+
"properties": {
|
|
191
|
+
"Media": {
|
|
192
|
+
"widget": "shapeArray"
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
"order": [
|
|
196
|
+
"Media"
|
|
197
|
+
]
|
|
170
198
|
}
|
|
171
199
|
},
|
|
172
200
|
"MediaContent": {
|
|
173
201
|
"default": {
|
|
174
|
-
"properties": {
|
|
175
|
-
|
|
202
|
+
"properties": {
|
|
203
|
+
"mediaContent": {
|
|
204
|
+
"widget": "shapeArray"
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
"order": [
|
|
208
|
+
"mediaContent"
|
|
209
|
+
]
|
|
176
210
|
}
|
|
177
211
|
},
|
|
178
212
|
"MediaSection": {
|
|
179
213
|
"default": {
|
|
180
|
-
"properties": {
|
|
181
|
-
|
|
214
|
+
"properties": {
|
|
215
|
+
"section": {
|
|
216
|
+
"widget": "shapeArray"
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"order": [
|
|
220
|
+
"section"
|
|
221
|
+
]
|
|
182
222
|
}
|
|
183
223
|
},
|
|
184
224
|
"OuterShape": {
|
|
185
225
|
"default": {
|
|
186
|
-
"properties": {
|
|
187
|
-
|
|
226
|
+
"properties": {
|
|
227
|
+
"content": {
|
|
228
|
+
"widget": "shapeArray"
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
"order": [
|
|
232
|
+
"content"
|
|
233
|
+
]
|
|
188
234
|
}
|
|
189
235
|
}
|
|
190
236
|
},
|
|
191
|
-
"schemaVersion": "3.
|
|
237
|
+
"schemaVersion": "3.39.0",
|
|
192
238
|
"apiVersion": "2"
|
|
193
|
-
}
|
|
239
|
+
}
|
|
@@ -14766,6 +14766,6 @@
|
|
|
14766
14766
|
}
|
|
14767
14767
|
}
|
|
14768
14768
|
},
|
|
14769
|
-
"schemaVersion": "3.
|
|
14769
|
+
"schemaVersion": "3.39.0",
|
|
14770
14770
|
"services": {}
|
|
14771
14771
|
}
|
|
@@ -49144,7 +49144,7 @@
|
|
|
49144
49144
|
}
|
|
49145
49145
|
}
|
|
49146
49146
|
},
|
|
49147
|
-
"schemaVersion": "3.
|
|
49147
|
+
"schemaVersion": "3.39.0",
|
|
49148
49148
|
"apiVersion": "2",
|
|
49149
49149
|
"services": {
|
|
49150
49150
|
"shopify": {
|
|
@@ -12297,5 +12297,5 @@
|
|
|
12297
12297
|
}
|
|
12298
12298
|
}
|
|
12299
12299
|
},
|
|
12300
|
-
"schemaVersion": "3.
|
|
12300
|
+
"schemaVersion": "3.39.0"
|
|
12301
12301
|
}
|
|
@@ -28916,5 +28916,5 @@
|
|
|
28916
28916
|
}
|
|
28917
28917
|
}
|
|
28918
28918
|
},
|
|
28919
|
-
"schemaVersion": "3.
|
|
28919
|
+
"schemaVersion": "3.39.0"
|
|
28920
28920
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takeshape/schema",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.71.2",
|
|
4
4
|
"description": "TakeShape Schema",
|
|
5
5
|
"homepage": "https://www.takeshape.io",
|
|
6
6
|
"repository": {
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"p-reduce": "^2.1.0",
|
|
29
29
|
"semver": "^7.3.2",
|
|
30
30
|
"tiny-invariant": "^1.2.0",
|
|
31
|
-
"@takeshape/errors": "9.
|
|
32
|
-
"@takeshape/
|
|
33
|
-
"@takeshape/
|
|
31
|
+
"@takeshape/errors": "9.71.2",
|
|
32
|
+
"@takeshape/json-schema": "9.71.2",
|
|
33
|
+
"@takeshape/util": "9.71.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@takeshape/json-schema-to-typescript": "^11.0.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"meow": "^9.0.0",
|
|
47
47
|
"p-map": "^5.0.0",
|
|
48
48
|
"shortid": "^2.2.15",
|
|
49
|
-
"@takeshape/typescript-jest-junit-reporter": "9.
|
|
49
|
+
"@takeshape/typescript-jest-junit-reporter": "9.71.2"
|
|
50
50
|
},
|
|
51
51
|
"engines": {
|
|
52
52
|
"node": ">=16"
|