@takeshape/schema 8.20.1 → 8.23.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.
Files changed (124) hide show
  1. package/es/enum.js +1 -1
  2. package/es/get-is-leaf.js +5 -5
  3. package/es/layers/type-utils.js +2 -2
  4. package/es/migration.js +59 -1
  5. package/es/project-schema/index.js +1 -0
  6. package/es/project-schema/v3.10.0.js +1 -0
  7. package/es/refs.js +19 -19
  8. package/es/schema-util.js +11 -7
  9. package/es/schemas/index.js +15 -15
  10. package/es/schemas/index.ts +26 -25
  11. package/es/schemas/project-schema/v3.10.0.json +2091 -0
  12. package/es/schemas/project-schema/v4.0.0.json +8 -6
  13. package/es/schemas/project-schema.json +2 -1
  14. package/es/types/types.js +1 -1
  15. package/es/types/utils.js +20 -19
  16. package/es/util/detect-cycles.js +1 -1
  17. package/es/validate.js +2 -2
  18. package/examples/dependencies/fabric-ecommerce.json +9716 -0
  19. package/examples/dependencies/pruned-shopify-product-schema.json +9672 -0
  20. package/examples/dependencies/shopify-store-with-widget.json +9854 -0
  21. package/examples/dependencies/stripe-starter-resolved.json +27345 -0
  22. package/examples/latest/blog-schema.json +32 -32
  23. package/examples/latest/brewery-schema.json +53 -53
  24. package/examples/latest/complex-project-schema.json +3278 -3278
  25. package/examples/latest/fabric-ecommerce.json +9097 -315
  26. package/examples/latest/frank-and-fred-schema.json +15588 -15588
  27. package/examples/latest/massive-schema.json +5836 -5836
  28. package/examples/latest/mill-components-schema.json +876 -876
  29. package/examples/latest/pet-oneof-array.json +77 -77
  30. package/examples/latest/post-schema.json +23 -23
  31. package/examples/latest/pruned-shopify-product-schema.json +2843 -2504
  32. package/examples/latest/real-world-schema.json +166 -166
  33. package/examples/latest/recursive-repeater-schema.json +14 -14
  34. package/examples/latest/recursive-schema.json +14 -14
  35. package/examples/latest/rick-and-morty-ast.json +1874 -1895
  36. package/examples/latest/rick-and-morty-graphql.json +1093 -1093
  37. package/examples/latest/rick-and-morty-rest.json +20 -20
  38. package/examples/latest/schema-with-repeater-draftjs.json +9 -9
  39. package/examples/latest/shape-books-v3_2_0.json +218 -218
  40. package/examples/latest/shape-books.json +218 -218
  41. package/examples/latest/shopify-lookbook.json +147 -147
  42. package/examples/latest/shopify-store-with-widget.json +5706 -5408
  43. package/examples/latest/stripe-starter-resolved.json +21000 -13065
  44. package/examples/latest/user-schema-no-required.json +19 -19
  45. package/examples/latest/user-schema-with-defaults.json +20 -20
  46. package/examples/source/fabric-ecommerce.json +0 -894
  47. package/examples/source/pruned-shopify-product-schema.json +1 -9333
  48. package/examples/source/rick-and-morty-ast.json +0 -21
  49. package/examples/source/shopify-store-with-widget.json +0 -8953
  50. package/examples/source/stripe-starter-resolved.json +0 -19409
  51. package/lib/content-schema-transform.d.ts +13 -13
  52. package/lib/content-schema-transform.d.ts.map +1 -1
  53. package/lib/enum.d.ts +2 -2
  54. package/lib/enum.d.ts.map +1 -1
  55. package/lib/enum.js +2 -2
  56. package/lib/get-is-leaf.d.ts +2 -2
  57. package/lib/get-is-leaf.d.ts.map +1 -1
  58. package/lib/get-is-leaf.js +5 -5
  59. package/lib/layers/type-utils.js +1 -1
  60. package/lib/migration.d.ts +6 -5
  61. package/lib/migration.d.ts.map +1 -1
  62. package/lib/migration.js +60 -0
  63. package/lib/project-schema/index.d.ts +3 -1
  64. package/lib/project-schema/index.d.ts.map +1 -1
  65. package/lib/project-schema/index.js +25 -12
  66. package/lib/project-schema/latest.d.ts +260 -238
  67. package/lib/project-schema/latest.d.ts.map +1 -1
  68. package/lib/project-schema/v1.0.0.d.ts +14 -7
  69. package/lib/project-schema/v1.0.0.d.ts.map +1 -1
  70. package/lib/project-schema/v3.0.0.d.ts +24 -25
  71. package/lib/project-schema/v3.0.0.d.ts.map +1 -1
  72. package/lib/project-schema/v3.1.0.d.ts +42 -43
  73. package/lib/project-schema/v3.1.0.d.ts.map +1 -1
  74. package/lib/project-schema/v3.10.0.d.ts +1202 -0
  75. package/lib/project-schema/v3.10.0.d.ts.map +1 -0
  76. package/lib/project-schema/v3.10.0.js +5 -0
  77. package/lib/project-schema/v3.2.0.d.ts +42 -43
  78. package/lib/project-schema/v3.2.0.d.ts.map +1 -1
  79. package/lib/project-schema/v3.3.0.d.ts +42 -43
  80. package/lib/project-schema/v3.3.0.d.ts.map +1 -1
  81. package/lib/project-schema/v3.4.0.d.ts +42 -43
  82. package/lib/project-schema/v3.4.0.d.ts.map +1 -1
  83. package/lib/project-schema/v3.5.0.d.ts +42 -43
  84. package/lib/project-schema/v3.5.0.d.ts.map +1 -1
  85. package/lib/project-schema/v3.5.1.d.ts +42 -43
  86. package/lib/project-schema/v3.5.1.d.ts.map +1 -1
  87. package/lib/project-schema/v3.6.0.d.ts +42 -43
  88. package/lib/project-schema/v3.6.0.d.ts.map +1 -1
  89. package/lib/project-schema/v3.7.0.d.ts +42 -43
  90. package/lib/project-schema/v3.7.0.d.ts.map +1 -1
  91. package/lib/project-schema/v3.8.0.d.ts +42 -43
  92. package/lib/project-schema/v3.8.0.d.ts.map +1 -1
  93. package/lib/project-schema/v3.9.0.d.ts +42 -43
  94. package/lib/project-schema/v3.9.0.d.ts.map +1 -1
  95. package/lib/project-schema/v4.0.0.d.ts +54 -52
  96. package/lib/project-schema/v4.0.0.d.ts.map +1 -1
  97. package/lib/refs.d.ts +8 -8
  98. package/lib/refs.d.ts.map +1 -1
  99. package/lib/refs.js +19 -19
  100. package/lib/schema-util.d.ts +23 -23
  101. package/lib/schema-util.d.ts.map +1 -1
  102. package/lib/schema-util.js +11 -7
  103. package/lib/schemas/index.d.ts +3421 -3420
  104. package/lib/schemas/index.d.ts.map +1 -1
  105. package/lib/schemas/index.js +26 -30
  106. package/lib/schemas/index.ts +26 -25
  107. package/lib/schemas/project-schema/v3.10.0.json +2091 -0
  108. package/lib/schemas/project-schema/v4.0.0.json +8 -6
  109. package/lib/schemas/project-schema.json +2 -1
  110. package/lib/types/types.d.ts +7 -7
  111. package/lib/types/types.d.ts.map +1 -1
  112. package/lib/types/types.js +1 -1
  113. package/lib/types/utils.d.ts +9 -8
  114. package/lib/types/utils.d.ts.map +1 -1
  115. package/lib/types/utils.js +25 -23
  116. package/lib/unions.d.ts +8 -8
  117. package/lib/unions.d.ts.map +1 -1
  118. package/lib/util/detect-cycles.d.ts +2 -2
  119. package/lib/util/detect-cycles.d.ts.map +1 -1
  120. package/lib/util/detect-cycles.js +1 -1
  121. package/lib/validate.js +1 -1
  122. package/lib/workflows.d.ts +2 -2
  123. package/lib/workflows.d.ts.map +1 -1
  124. package/package.json +5 -5
@@ -7,6 +7,348 @@
7
7
  "en"
8
8
  ],
9
9
  "apiVersion": "2",
10
+ "created": "2019-10-10T21:52:02.940Z",
11
+ "updated": "2021-10-03T13:50:40.571Z",
12
+ "forms": {
13
+ "Notification": {
14
+ "default": {
15
+ "properties": {
16
+ "code": {
17
+ "widget": "singleLineText"
18
+ },
19
+ "title": {
20
+ "widget": "singleLineText"
21
+ },
22
+ "content": {
23
+ "widget": "wysiwygText"
24
+ }
25
+ },
26
+ "order": [
27
+ "code",
28
+ "title",
29
+ "content"
30
+ ]
31
+ }
32
+ },
33
+ "Accordion": {
34
+ "default": {
35
+ "properties": {
36
+ "usedFor": {
37
+ "widget": "singleLineText"
38
+ },
39
+ "components": {
40
+ "widget": "relationship"
41
+ },
42
+ "classes": {
43
+ "widget": "relationship"
44
+ },
45
+ "multi": {
46
+ "widget": "checkbox"
47
+ }
48
+ },
49
+ "order": [
50
+ "usedFor",
51
+ "classes",
52
+ "multi",
53
+ "components"
54
+ ]
55
+ }
56
+ },
57
+ "ExpansionPanel": {
58
+ "default": {
59
+ "properties": {
60
+ "usedFor": {
61
+ "widget": "singleLineText"
62
+ },
63
+ "icon": {
64
+ "widget": "relationship"
65
+ },
66
+ "header": {
67
+ "widget": "singleLineText"
68
+ },
69
+ "content": {
70
+ "widget": "wysiwygText"
71
+ },
72
+ "classes": {
73
+ "widget": "relationship"
74
+ }
75
+ },
76
+ "order": [
77
+ "usedFor",
78
+ "classes",
79
+ "icon",
80
+ "header",
81
+ "content"
82
+ ]
83
+ }
84
+ },
85
+ "TabGroup": {
86
+ "default": {
87
+ "properties": {
88
+ "usedFor": {
89
+ "widget": "singleLineText"
90
+ },
91
+ "components": {
92
+ "widget": "relationship"
93
+ },
94
+ "slug": {
95
+ "widget": "singleLineText"
96
+ },
97
+ "classes": {
98
+ "widget": "relationship"
99
+ }
100
+ },
101
+ "order": [
102
+ "usedFor",
103
+ "classes",
104
+ "slug",
105
+ "components"
106
+ ]
107
+ }
108
+ },
109
+ "Copy": {
110
+ "default": {
111
+ "properties": {
112
+ "usedFor": {
113
+ "widget": "singleLineText"
114
+ },
115
+ "slug": {
116
+ "widget": "singleLineText"
117
+ },
118
+ "content": {
119
+ "widget": "wysiwygText"
120
+ },
121
+ "classes": {
122
+ "widget": "relationship"
123
+ }
124
+ },
125
+ "order": [
126
+ "usedFor",
127
+ "slug",
128
+ "classes",
129
+ "content"
130
+ ]
131
+ }
132
+ },
133
+ "Alert": {
134
+ "default": {
135
+ "properties": {
136
+ "color": {
137
+ "widget": "dropdown"
138
+ },
139
+ "dismissable": {
140
+ "widget": "checkbox"
141
+ },
142
+ "slug": {
143
+ "widget": "singleLineText"
144
+ },
145
+ "content": {
146
+ "widget": "wysiwygSingleLineText"
147
+ }
148
+ },
149
+ "order": [
150
+ "slug",
151
+ "content",
152
+ "color",
153
+ "dismissable"
154
+ ]
155
+ }
156
+ },
157
+ "Icon": {
158
+ "default": {
159
+ "properties": {
160
+ "usedFor": {
161
+ "widget": "singleLineText"
162
+ },
163
+ "asset": {
164
+ "widget": "image"
165
+ },
166
+ "slug": {
167
+ "widget": "singleLineText"
168
+ }
169
+ },
170
+ "order": [
171
+ "usedFor",
172
+ "slug",
173
+ "asset"
174
+ ]
175
+ }
176
+ },
177
+ "Asset": {
178
+ "default": {
179
+ "properties": {
180
+ "sourceUrl": {
181
+ "disabled": true,
182
+ "widget": "singleLineText"
183
+ },
184
+ "path": {
185
+ "disabled": true,
186
+ "widget": "singleLineText"
187
+ },
188
+ "backgroundColor": {
189
+ "widget": "color"
190
+ },
191
+ "filename": {
192
+ "disabled": true,
193
+ "widget": "singleLineText"
194
+ },
195
+ "description": {
196
+ "disabled": true,
197
+ "widget": "paragraphText"
198
+ },
199
+ "caption": {
200
+ "disabled": true,
201
+ "widget": "wysiwygSingleLineText"
202
+ },
203
+ "uploadStatus": {
204
+ "disabled": true,
205
+ "widget": "singleLineText"
206
+ },
207
+ "mimeType": {
208
+ "disabled": true,
209
+ "widget": "singleLineText"
210
+ },
211
+ "title": {
212
+ "disabled": true,
213
+ "widget": "singleLineText"
214
+ },
215
+ "credit": {
216
+ "disabled": true,
217
+ "widget": "wysiwygSingleLineText"
218
+ }
219
+ },
220
+ "order": [
221
+ "title",
222
+ "description",
223
+ "caption",
224
+ "credit",
225
+ "filename",
226
+ "path",
227
+ "mimeType",
228
+ "sourceUrl",
229
+ "uploadStatus",
230
+ "backgroundColor"
231
+ ]
232
+ }
233
+ },
234
+ "CssClass": {
235
+ "default": {
236
+ "properties": {
237
+ "value": {
238
+ "widget": "singleLineText"
239
+ }
240
+ },
241
+ "order": [
242
+ "value"
243
+ ]
244
+ }
245
+ },
246
+ "Tab": {
247
+ "default": {
248
+ "properties": {
249
+ "usedFor": {
250
+ "widget": "singleLineText"
251
+ },
252
+ "header": {
253
+ "widget": "singleLineText"
254
+ },
255
+ "components": {
256
+ "widget": "relationship"
257
+ },
258
+ "slug": {
259
+ "widget": "singleLineText"
260
+ },
261
+ "classes": {
262
+ "widget": "relationship"
263
+ }
264
+ },
265
+ "order": [
266
+ "usedFor",
267
+ "classes",
268
+ "slug",
269
+ "header",
270
+ "components"
271
+ ]
272
+ }
273
+ },
274
+ "Dialog": {
275
+ "default": {
276
+ "properties": {
277
+ "usedFor": {
278
+ "widget": "singleLineText"
279
+ },
280
+ "slug": {
281
+ "widget": "slug"
282
+ },
283
+ "classes": {
284
+ "widget": "relationship"
285
+ },
286
+ "dimensions": {
287
+ "widget": "shapeObject"
288
+ },
289
+ "collection": {
290
+ "widget": "shapeObject"
291
+ },
292
+ "components": {
293
+ "widget": "relationship"
294
+ }
295
+ },
296
+ "order": [
297
+ "usedFor",
298
+ "slug",
299
+ "classes",
300
+ "dimensions",
301
+ "collection",
302
+ "components"
303
+ ]
304
+ }
305
+ },
306
+ "Dimensions": {
307
+ "default": {
308
+ "properties": {
309
+ "width": {
310
+ "widget": "singleLineText"
311
+ },
312
+ "minWidth": {
313
+ "widget": "singleLineText"
314
+ },
315
+ "maxWidth": {
316
+ "widget": "singleLineText"
317
+ },
318
+ "height": {
319
+ "widget": "singleLineText"
320
+ },
321
+ "minHeight": {
322
+ "widget": "singleLineText"
323
+ },
324
+ "maxHeight": {
325
+ "widget": "singleLineText"
326
+ }
327
+ },
328
+ "order": [
329
+ "width",
330
+ "minWidth",
331
+ "maxWidth",
332
+ "height",
333
+ "minHeight",
334
+ "maxHeight"
335
+ ]
336
+ }
337
+ },
338
+ "ComponentCollection": {
339
+ "default": {
340
+ "properties": {
341
+ "components": {
342
+ "widget": "relationship"
343
+ }
344
+ },
345
+ "order": [
346
+ "components"
347
+ ]
348
+ }
349
+ }
350
+ },
351
+ "dataKey": "secret",
10
352
  "queries": {
11
353
  "getNotification": {
12
354
  "shape": "Notification",
@@ -651,574 +993,136 @@
651
993
  "updateTab": {
652
994
  "shape": "UpdateResult<Tab>",
653
995
  "resolver": {
654
- "name": "takeshape:update",
655
- "service": "takeshape:local",
656
- "options": {},
657
- "shapeName": "Tab"
658
- },
659
- "description": "Update Tab",
660
- "args": "UpdateArgs<Tab>"
661
- },
662
- "createTab": {
663
- "shape": "CreateResult<Tab>",
664
- "resolver": {
665
- "name": "takeshape:create",
666
- "service": "takeshape:local",
667
- "options": {},
668
- "shapeName": "Tab"
669
- },
670
- "description": "Create Tab",
671
- "args": "CreateArgs<Tab>"
672
- },
673
- "duplicateTab": {
674
- "shape": "DuplicateResult<Tab>",
675
- "resolver": {
676
- "name": "takeshape:duplicate",
677
- "service": "takeshape:local",
678
- "options": {},
679
- "shapeName": "Tab"
680
- },
681
- "description": "Duplicate Tab",
682
- "args": "DuplicateArgs<Tab>"
683
- },
684
- "deleteTab": {
685
- "shape": "DeleteResult<Tab>",
686
- "resolver": {
687
- "name": "takeshape:delete",
688
- "service": "takeshape:local",
689
- "options": {},
690
- "shapeName": "Tab"
691
- },
692
- "description": "Delete Tab",
693
- "args": "DeleteArgs<Tab>"
694
- },
695
- "updateDialog": {
696
- "shape": "UpdateResult<Dialog>",
697
- "resolver": {
698
- "name": "takeshape:update",
699
- "service": "takeshape:local",
700
- "options": {},
701
- "shapeName": "Dialog"
702
- },
703
- "description": "Update Dialog",
704
- "args": "UpdateArgs<Dialog>"
705
- },
706
- "createDialog": {
707
- "shape": "CreateResult<Dialog>",
708
- "resolver": {
709
- "name": "takeshape:create",
710
- "service": "takeshape:local",
711
- "options": {},
712
- "shapeName": "Dialog"
713
- },
714
- "description": "Create Dialog",
715
- "args": "CreateArgs<Dialog>"
716
- },
717
- "duplicateDialog": {
718
- "shape": "DuplicateResult<Dialog>",
719
- "resolver": {
720
- "name": "takeshape:duplicate",
721
- "service": "takeshape:local",
722
- "options": {},
723
- "shapeName": "Dialog"
724
- },
725
- "description": "Duplicate Dialog",
726
- "args": "DuplicateArgs<Dialog>"
727
- },
728
- "deleteDialog": {
729
- "shape": "DeleteResult<Dialog>",
730
- "resolver": {
731
- "name": "takeshape:delete",
732
- "service": "takeshape:local",
733
- "options": {},
734
- "shapeName": "Dialog"
735
- },
736
- "description": "Delete Dialog",
737
- "args": "DeleteArgs<Dialog>"
738
- }
739
- },
740
- "schemaVersion": "3.9.0",
741
- "created": "2019-10-10T21:52:02.940Z",
742
- "updated": "2021-10-03T13:50:40.571Z",
743
- "shapes": {
744
- "Notification": {
745
- "id": "ZVt3DRck4",
746
- "name": "Notification",
747
- "title": "Notification",
748
- "model": {
749
- "type": "multiple"
750
- },
751
- "workflow": "default",
752
- "schema": {
753
- "type": "object",
754
- "properties": {
755
- "code": {
756
- "title": "Code",
757
- "minLength": 1,
758
- "type": "string",
759
- "@mapping": "takeshape:local:Notification._Sb4oQi0q"
760
- },
761
- "title": {
762
- "type": "string",
763
- "minLength": 0,
764
- "title": "Title",
765
- "description": "",
766
- "@l10n": true,
767
- "@mapping": "takeshape:local:Notification.INOxdBc_A"
768
- },
769
- "content": {
770
- "@l10n": true,
771
- "title": "Content",
772
- "type": "object",
773
- "@tag": "draftjs",
774
- "@syncLocaleStructure": true,
775
- "@mapping": "takeshape:local:Notification.FJ6dPnXom"
776
- }
777
- },
778
- "required": [
779
- "code"
780
- ]
781
- }
996
+ "name": "takeshape:update",
997
+ "service": "takeshape:local",
998
+ "options": {},
999
+ "shapeName": "Tab"
1000
+ },
1001
+ "description": "Update Tab",
1002
+ "args": "UpdateArgs<Tab>"
782
1003
  },
783
- "Accordion": {
784
- "id": "Sy-gVqlKB",
785
- "name": "Accordion",
786
- "title": "Accordion",
787
- "model": {
788
- "type": "multiple"
1004
+ "createTab": {
1005
+ "shape": "CreateResult<Tab>",
1006
+ "resolver": {
1007
+ "name": "takeshape:create",
1008
+ "service": "takeshape:local",
1009
+ "options": {},
1010
+ "shapeName": "Tab"
789
1011
  },
790
- "schema": {
791
- "type": "object",
792
- "properties": {
793
- "usedFor": {
794
- "type": "string",
795
- "title": "Used For",
796
- "minLength": 0,
797
- "@mapping": "takeshape:local:Accordion.gD3zU3Zgv"
798
- },
799
- "components": {
800
- "title": "Components",
801
- "minItems": 1,
802
- "@mapping": "takeshape:local:Accordion.XHwBnbh56",
803
- "type": "array",
804
- "items": {
805
- "$ref": "#/shapes/TSRelationship/schema"
806
- },
807
- "@relationship": {
808
- "shapeIds": [
809
- "Bkw27qxKS"
810
- ],
811
- "type": "multiple"
812
- }
813
- },
814
- "classes": {
815
- "title": "Classes",
816
- "@mapping": "takeshape:local:Accordion.I5h3Hz4vr",
817
- "type": "array",
818
- "items": {
819
- "$ref": "#/shapes/TSRelationship/schema"
820
- },
821
- "@relationship": {
822
- "shapeIds": [
823
- "BkIqHcgtr"
824
- ],
825
- "type": "multiple"
826
- }
827
- },
828
- "multi": {
829
- "type": "boolean",
830
- "default": false,
831
- "title": "Multi",
832
- "@l10n": false,
833
- "@mapping": "takeshape:local:Accordion.tOPQ89Jvn"
834
- }
835
- },
836
- "required": [
837
- "components"
838
- ]
839
- }
1012
+ "description": "Create Tab",
1013
+ "args": "CreateArgs<Tab>"
840
1014
  },
841
- "ExpansionPanel": {
842
- "id": "Bkw27qxKS",
843
- "name": "ExpansionPanel",
844
- "title": "Expansion Panel",
845
- "model": {
846
- "type": "multiple"
1015
+ "duplicateTab": {
1016
+ "shape": "DuplicateResult<Tab>",
1017
+ "resolver": {
1018
+ "name": "takeshape:duplicate",
1019
+ "service": "takeshape:local",
1020
+ "options": {},
1021
+ "shapeName": "Tab"
847
1022
  },
848
- "schema": {
849
- "type": "object",
850
- "properties": {
851
- "usedFor": {
852
- "type": "string",
853
- "title": "Used For",
854
- "minLength": 0,
855
- "@mapping": "takeshape:local:ExpansionPanel.U_jQpe0-B"
856
- },
857
- "icon": {
858
- "title": "Icon",
859
- "@mapping": "takeshape:local:ExpansionPanel.awzVCT3mf",
860
- "$ref": "#/shapes/TSRelationship/schema",
861
- "@relationship": {
862
- "shapeIds": [
863
- "rkSKzhetS"
864
- ],
865
- "type": "single"
866
- }
867
- },
868
- "header": {
869
- "type": "string",
870
- "title": "Header",
871
- "minLength": 1,
872
- "@mapping": "takeshape:local:ExpansionPanel.26Fum4IhZ"
873
- },
874
- "content": {
875
- "type": "object",
876
- "title": "Content",
877
- "@mapping": "takeshape:local:ExpansionPanel.S1hTcA0hD",
878
- "@tag": "draftjs"
879
- },
880
- "classes": {
881
- "title": "Classes",
882
- "@mapping": "takeshape:local:ExpansionPanel.7-bEVubls",
883
- "type": "array",
884
- "items": {
885
- "$ref": "#/shapes/TSRelationship/schema"
886
- },
887
- "@relationship": {
888
- "shapeIds": [
889
- "BkIqHcgtr"
890
- ],
891
- "type": "multiple"
892
- }
893
- }
894
- },
895
- "required": [
896
- "header",
897
- "content"
898
- ]
899
- }
1023
+ "description": "Duplicate Tab",
1024
+ "args": "DuplicateArgs<Tab>"
900
1025
  },
901
- "TabGroup": {
902
- "id": "HkCod7TOS",
903
- "name": "TabGroup",
904
- "title": "Tab Group",
905
- "model": {
906
- "type": "multiple"
1026
+ "deleteTab": {
1027
+ "shape": "DeleteResult<Tab>",
1028
+ "resolver": {
1029
+ "name": "takeshape:delete",
1030
+ "service": "takeshape:local",
1031
+ "options": {},
1032
+ "shapeName": "Tab"
907
1033
  },
908
- "schema": {
909
- "type": "object",
910
- "properties": {
911
- "usedFor": {
912
- "type": "string",
913
- "title": "Used For",
914
- "minLength": 0,
915
- "@mapping": "takeshape:local:TabGroup.xZHEaGNVm"
916
- },
917
- "components": {
918
- "title": "Components",
919
- "@mapping": "takeshape:local:TabGroup.4NS8ZoZzR",
920
- "type": "array",
921
- "items": {
922
- "$ref": "#/shapes/TSRelationship/schema"
923
- },
924
- "@relationship": {
925
- "shapeIds": [
926
- "HJBlYXpur"
927
- ],
928
- "type": "multiple"
929
- }
930
- },
931
- "slug": {
932
- "type": "string",
933
- "title": "Slug",
934
- "minLength": 1,
935
- "@mapping": "takeshape:local:TabGroup.HCzwxXNco"
936
- },
937
- "classes": {
938
- "title": "Classes",
939
- "@mapping": "takeshape:local:TabGroup.qEgZ-lR2X",
940
- "type": "array",
941
- "items": {
942
- "$ref": "#/shapes/TSRelationship/schema"
943
- },
944
- "@relationship": {
945
- "shapeIds": [
946
- "BkIqHcgtr"
947
- ],
948
- "type": "multiple"
949
- }
950
- }
951
- },
952
- "required": [
953
- "slug"
954
- ]
955
- }
1034
+ "description": "Delete Tab",
1035
+ "args": "DeleteArgs<Tab>"
956
1036
  },
957
- "Copy": {
958
- "id": "Sy9cQqlFH",
959
- "name": "Copy",
960
- "title": "Copy",
961
- "model": {
962
- "type": "multiple"
1037
+ "updateDialog": {
1038
+ "shape": "UpdateResult<Dialog>",
1039
+ "resolver": {
1040
+ "name": "takeshape:update",
1041
+ "service": "takeshape:local",
1042
+ "options": {},
1043
+ "shapeName": "Dialog"
963
1044
  },
964
- "schema": {
965
- "type": "object",
966
- "properties": {
967
- "usedFor": {
968
- "type": "string",
969
- "title": "Used For",
970
- "minLength": 0,
971
- "@mapping": "takeshape:local:Copy.WyY_HY36e"
972
- },
973
- "slug": {
974
- "type": "string",
975
- "title": "Slug",
976
- "minLength": 0,
977
- "@mapping": "takeshape:local:Copy.FmxIRUQTz"
978
- },
979
- "content": {
980
- "type": "object",
981
- "title": "Content",
982
- "@mapping": "takeshape:local:Copy.01cOtwU3C",
983
- "@tag": "draftjs"
984
- },
985
- "classes": {
986
- "title": "Classes",
987
- "@mapping": "takeshape:local:Copy.1fIzL3c-P",
988
- "type": "array",
989
- "items": {
990
- "$ref": "#/shapes/TSRelationship/schema"
991
- },
992
- "@relationship": {
993
- "shapeIds": [
994
- "BkIqHcgtr"
995
- ],
996
- "type": "multiple"
997
- }
998
- }
999
- },
1000
- "required": [
1001
- "content"
1002
- ]
1003
- }
1045
+ "description": "Update Dialog",
1046
+ "args": "UpdateArgs<Dialog>"
1004
1047
  },
1005
- "Alert": {
1006
- "id": "ry8bkQSwL",
1007
- "name": "Alert",
1008
- "title": "Alert",
1009
- "model": {
1010
- "type": "multiple"
1048
+ "createDialog": {
1049
+ "shape": "CreateResult<Dialog>",
1050
+ "resolver": {
1051
+ "name": "takeshape:create",
1052
+ "service": "takeshape:local",
1053
+ "options": {},
1054
+ "shapeName": "Dialog"
1011
1055
  },
1012
- "workflow": "default",
1013
- "schema": {
1014
- "type": "object",
1015
- "properties": {
1016
- "color": {
1017
- "type": "string",
1018
- "title": "Color",
1019
- "oneOf": [
1020
- {
1021
- "title": "Primary",
1022
- "enum": [
1023
- "primary"
1024
- ]
1025
- },
1026
- {
1027
- "title": "Success",
1028
- "enum": [
1029
- "success"
1030
- ]
1031
- },
1032
- {
1033
- "title": "Info",
1034
- "enum": [
1035
- "info"
1036
- ]
1037
- },
1038
- {
1039
- "title": "Warn",
1040
- "enum": [
1041
- "warn"
1042
- ]
1043
- },
1044
- {
1045
- "title": "Danger",
1046
- "enum": [
1047
- "danger"
1048
- ]
1049
- }
1050
- ],
1051
- "@mapping": "takeshape:local:Alert.sPWrTg0sj"
1052
- },
1053
- "dismissable": {
1054
- "type": "boolean",
1055
- "default": false,
1056
- "title": "Dismissable",
1057
- "@l10n": false,
1058
- "@mapping": "takeshape:local:Alert.gM27CbaLz"
1059
- },
1060
- "slug": {
1061
- "type": "string",
1062
- "title": "Slug",
1063
- "minLength": 1,
1064
- "@mapping": "takeshape:local:Alert.xPM_aTvwu"
1065
- },
1066
- "content": {
1067
- "type": "object",
1068
- "title": "Content",
1069
- "@mapping": "takeshape:local:Alert.-dAxGwwLJ",
1070
- "@tag": "draftjs"
1071
- }
1072
- },
1073
- "required": [
1074
- "slug",
1075
- "content"
1076
- ]
1077
- }
1056
+ "description": "Create Dialog",
1057
+ "args": "CreateArgs<Dialog>"
1078
1058
  },
1079
- "Icon": {
1080
- "id": "rkSKzhetS",
1081
- "name": "Icon",
1082
- "title": "Icon",
1083
- "model": {
1084
- "type": "multiple"
1059
+ "duplicateDialog": {
1060
+ "shape": "DuplicateResult<Dialog>",
1061
+ "resolver": {
1062
+ "name": "takeshape:duplicate",
1063
+ "service": "takeshape:local",
1064
+ "options": {},
1065
+ "shapeName": "Dialog"
1085
1066
  },
1086
- "schema": {
1087
- "type": "object",
1088
- "properties": {
1089
- "usedFor": {
1090
- "type": "string",
1091
- "title": "Used For",
1092
- "minLength": 0,
1093
- "@mapping": "takeshape:local:Icon.x9A6V0_VY"
1094
- },
1095
- "asset": {
1096
- "title": "Asset",
1097
- "@mapping": "takeshape:local:Icon.Rllc03lmT",
1098
- "$ref": "#/shapes/TSRelationship/schema",
1099
- "@relationship": {
1100
- "shapeIds": [
1101
- "ASSET"
1102
- ],
1103
- "type": "single"
1104
- }
1105
- },
1106
- "slug": {
1107
- "type": "string",
1108
- "title": "Slug",
1109
- "minLength": 1,
1110
- "@mapping": "takeshape:local:Icon.XbU4xLjt0"
1111
- }
1112
- },
1113
- "required": [
1114
- "slug",
1115
- "asset"
1116
- ]
1117
- }
1067
+ "description": "Duplicate Dialog",
1068
+ "args": "DuplicateArgs<Dialog>"
1118
1069
  },
1119
- "Asset": {
1120
- "id": "ASSET",
1121
- "name": "Asset",
1122
- "title": "Asset",
1070
+ "deleteDialog": {
1071
+ "shape": "DeleteResult<Dialog>",
1072
+ "resolver": {
1073
+ "name": "takeshape:delete",
1074
+ "service": "takeshape:local",
1075
+ "options": {},
1076
+ "shapeName": "Dialog"
1077
+ },
1078
+ "description": "Delete Dialog",
1079
+ "args": "DeleteArgs<Dialog>"
1080
+ }
1081
+ },
1082
+ "shapes": {
1083
+ "Notification": {
1084
+ "id": "ZVt3DRck4",
1085
+ "name": "Notification",
1086
+ "title": "Notification",
1123
1087
  "model": {
1124
1088
  "type": "multiple"
1125
1089
  },
1090
+ "workflow": "default",
1126
1091
  "schema": {
1127
1092
  "type": "object",
1128
1093
  "properties": {
1129
- "sourceUrl": {
1130
- "type": "string",
1131
- "title": "Source URL",
1132
- "@l10n": false,
1133
- "@mapping": "takeshape:local:Asset.SJXSidnXE"
1134
- },
1135
- "path": {
1136
- "type": "string",
1137
- "title": "Path",
1138
- "@l10n": false,
1139
- "minLength": 1,
1140
- "@mapping": "takeshape:local:Asset.Hk6FQuz5"
1141
- },
1142
- "backgroundColor": {
1143
- "type": "object",
1144
- "title": "Background Color",
1145
- "$ref": "#/shapes/TSColor/schema",
1146
- "@mapping": "takeshape:local:Asset.8mSa4MUjV"
1147
- },
1148
- "filename": {
1149
- "type": "string",
1150
- "title": "Filename",
1151
- "@l10n": false,
1094
+ "code": {
1095
+ "title": "Code",
1152
1096
  "minLength": 1,
1153
- "@mapping": "takeshape:local:Asset.H1oYQOM9"
1154
- },
1155
- "description": {
1156
- "type": "string",
1157
- "title": "Description",
1158
- "@mapping": "takeshape:local:Asset.B1Zsra3fx"
1159
- },
1160
- "caption": {
1161
- "type": "object",
1162
- "title": "Caption",
1163
- "@mapping": "takeshape:local:Asset.SyWVsd98x",
1164
- "@tag": "draftjs"
1165
- },
1166
- "uploadStatus": {
1167
- "type": "string",
1168
- "title": "Upload status",
1169
- "@l10n": false,
1170
- "@mapping": "takeshape:local:Asset.ByeAYXdG9"
1171
- },
1172
- "mimeType": {
1173
1097
  "type": "string",
1174
- "title": "MIME type",
1175
- "@l10n": false,
1176
- "@mapping": "takeshape:local:Asset.SyCYX_Gq"
1098
+ "@mapping": "takeshape:local:Notification._Sb4oQi0q"
1177
1099
  },
1178
1100
  "title": {
1179
1101
  "type": "string",
1102
+ "minLength": 0,
1180
1103
  "title": "Title",
1181
- "@mapping": "takeshape:local:Asset.By5tQOMc"
1104
+ "description": "",
1105
+ "@l10n": true,
1106
+ "@mapping": "takeshape:local:Notification.INOxdBc_A"
1182
1107
  },
1183
- "credit": {
1108
+ "content": {
1109
+ "@l10n": true,
1110
+ "title": "Content",
1184
1111
  "type": "object",
1185
- "title": "Credit",
1186
- "@mapping": "takeshape:local:Asset.Skn_i_5Ll",
1187
- "@tag": "draftjs"
1188
- }
1189
- },
1190
- "required": [
1191
- "filename",
1192
- "path"
1193
- ]
1194
- }
1195
- },
1196
- "CssClass": {
1197
- "id": "BkIqHcgtr",
1198
- "name": "CssClass",
1199
- "title": "CssClass",
1200
- "model": {
1201
- "type": "taxonomy"
1202
- },
1203
- "schema": {
1204
- "type": "object",
1205
- "properties": {
1206
- "value": {
1207
- "type": "string",
1208
- "title": "Value",
1209
- "minLength": 1,
1210
- "@mapping": "takeshape:local:CssClass.7DhgvGE5j"
1112
+ "@tag": "draftjs",
1113
+ "@syncLocaleStructure": true,
1114
+ "@mapping": "takeshape:local:Notification.FJ6dPnXom"
1211
1115
  }
1212
1116
  },
1213
1117
  "required": [
1214
- "value"
1118
+ "code"
1215
1119
  ]
1216
1120
  }
1217
1121
  },
1218
- "Tab": {
1219
- "id": "HJBlYXpur",
1220
- "name": "Tab",
1221
- "title": "Tab",
1122
+ "Accordion": {
1123
+ "id": "Sy-gVqlKB",
1124
+ "name": "Accordion",
1125
+ "title": "Accordion",
1222
1126
  "model": {
1223
1127
  "type": "multiple"
1224
1128
  },
@@ -1229,41 +1133,26 @@
1229
1133
  "type": "string",
1230
1134
  "title": "Used For",
1231
1135
  "minLength": 0,
1232
- "@mapping": "takeshape:local:Tab.BKhhRF6yX"
1233
- },
1234
- "header": {
1235
- "type": "string",
1236
- "title": "Header",
1237
- "minLength": 1,
1238
- "@mapping": "takeshape:local:Tab.6B-9Krcye"
1136
+ "@mapping": "takeshape:local:Accordion.gD3zU3Zgv"
1239
1137
  },
1240
1138
  "components": {
1241
1139
  "title": "Components",
1242
1140
  "minItems": 1,
1243
- "@mapping": "takeshape:local:Tab.BJfViC6N1",
1141
+ "@mapping": "takeshape:local:Accordion.XHwBnbh56",
1244
1142
  "type": "array",
1245
1143
  "items": {
1246
1144
  "$ref": "#/shapes/TSRelationship/schema"
1247
1145
  },
1248
1146
  "@relationship": {
1249
1147
  "shapeIds": [
1250
- "Bkw27qxKS",
1251
- "Sy9cQqlFH",
1252
- "Sy-gVqlKB",
1253
- "HkCod7TOS"
1148
+ "Bkw27qxKS"
1254
1149
  ],
1255
1150
  "type": "multiple"
1256
1151
  }
1257
1152
  },
1258
- "slug": {
1259
- "type": "string",
1260
- "title": "Slug",
1261
- "minLength": 1,
1262
- "@mapping": "takeshape:local:Tab.tskPgBoUA"
1263
- },
1264
1153
  "classes": {
1265
1154
  "title": "Classes",
1266
- "@mapping": "takeshape:local:Tab.6phxHUDUl",
1155
+ "@mapping": "takeshape:local:Accordion.I5h3Hz4vr",
1267
1156
  "type": "array",
1268
1157
  "items": {
1269
1158
  "$ref": "#/shapes/TSRelationship/schema"
@@ -1274,20 +1163,24 @@
1274
1163
  ],
1275
1164
  "type": "multiple"
1276
1165
  }
1166
+ },
1167
+ "multi": {
1168
+ "type": "boolean",
1169
+ "default": false,
1170
+ "title": "Multi",
1171
+ "@l10n": false,
1172
+ "@mapping": "takeshape:local:Accordion.tOPQ89Jvn"
1277
1173
  }
1278
1174
  },
1279
1175
  "required": [
1280
- "slug",
1281
- "header",
1282
1176
  "components"
1283
1177
  ]
1284
1178
  }
1285
1179
  },
1286
- "Dialog": {
1287
- "id": "bq9AYySJi",
1288
- "name": "Dialog",
1289
- "title": "Dialog",
1290
- "workflow": "default",
1180
+ "ExpansionPanel": {
1181
+ "id": "Bkw27qxKS",
1182
+ "name": "ExpansionPanel",
1183
+ "title": "Expansion Panel",
1291
1184
  "model": {
1292
1185
  "type": "multiple"
1293
1186
  },
@@ -1295,415 +1188,434 @@
1295
1188
  "type": "object",
1296
1189
  "properties": {
1297
1190
  "usedFor": {
1298
- "minLength": 0,
1299
1191
  "type": "string",
1300
- "description": "",
1301
1192
  "title": "Used For",
1302
- "@mapping": "takeshape:local:Dialog.sDec_8qPW"
1303
- },
1304
- "slug": {
1305
- "@derivedFrom": "usedFor",
1306
- "pattern": "^[\\w-]*$",
1307
1193
  "minLength": 0,
1308
- "type": "string",
1309
- "description": "",
1310
- "title": "Slug",
1311
- "@mapping": "takeshape:local:Dialog.Vwb0hg1Hf"
1312
- },
1313
- "classes": {
1314
- "description": "",
1315
- "type": "array",
1316
- "items": {
1317
- "$ref": "#/shapes/TSRelationship/schema"
1318
- },
1319
- "@relationship": {
1320
- "shapeIds": [
1321
- "BkIqHcgtr"
1322
- ],
1323
- "type": "multiple"
1324
- },
1325
- "title": "Classes",
1326
- "@mapping": "takeshape:local:Dialog.sSSGKYDu8"
1327
- },
1328
- "dimensions": {
1329
- "type": "object",
1330
- "description": "",
1331
- "oneOf": [
1332
- {
1333
- "@ref": "local:Dimensions"
1334
- }
1335
- ],
1336
- "title": "Dimensions",
1337
- "@mapping": "takeshape:local:Dialog.vqwtGrtLl"
1338
- },
1339
- "collection": {
1340
- "oneOf": [
1341
- {
1342
- "@ref": "local:ComponentCollection"
1343
- }
1344
- ],
1345
- "description": "",
1346
- "title": "Collection",
1347
- "@mapping": "takeshape:local:Dialog.6v7fev6Ze"
1194
+ "@mapping": "takeshape:local:ExpansionPanel.U_jQpe0-B"
1348
1195
  },
1349
- "components": {
1350
- "description": "",
1351
- "type": "array",
1352
- "items": {
1353
- "$ref": "#/shapes/TSRelationship/schema"
1354
- },
1196
+ "icon": {
1197
+ "title": "Icon",
1198
+ "@mapping": "takeshape:local:ExpansionPanel.awzVCT3mf",
1199
+ "$ref": "#/shapes/TSRelationship/schema",
1355
1200
  "@relationship": {
1356
1201
  "shapeIds": [
1357
- "Sy9cQqlFH",
1358
- "Sy-gVqlKB",
1359
- "Bkw27qxKS",
1360
- "HkCod7TOS"
1202
+ "rkSKzhetS"
1361
1203
  ],
1362
- "type": "multiple"
1363
- },
1364
- "title": "Components",
1365
- "@mapping": "takeshape:local:Dialog.C7Y-4Furz"
1366
- }
1367
- }
1368
- }
1369
- },
1370
- "Dimensions": {
1371
- "id": "fKHd7cmPj",
1372
- "name": "Dimensions",
1373
- "title": "Dimensions",
1374
- "schema": {
1375
- "type": "object",
1376
- "properties": {
1377
- "width": {
1378
- "type": "string",
1379
- "minLength": 0,
1380
- "description": "",
1381
- "title": "Width",
1382
- "@mapping": "takeshape:local:Dimensions.iytv_aq7w"
1383
- },
1384
- "minWidth": {
1385
- "type": "string",
1386
- "minLength": 0,
1387
- "description": "",
1388
- "title": "Min Width",
1389
- "@mapping": "takeshape:local:Dimensions.ZYQMhHKCg"
1390
- },
1391
- "maxWidth": {
1392
- "type": "string",
1393
- "minLength": 0,
1394
- "description": "",
1395
- "title": "Max Width",
1396
- "@mapping": "takeshape:local:Dimensions.eZnf_Jqmn"
1204
+ "type": "single"
1205
+ }
1397
1206
  },
1398
- "height": {
1207
+ "header": {
1399
1208
  "type": "string",
1400
- "minLength": 0,
1401
- "description": "",
1402
- "title": "Height",
1403
- "@mapping": "takeshape:local:Dimensions.ZKWg69s3T"
1209
+ "title": "Header",
1210
+ "minLength": 1,
1211
+ "@mapping": "takeshape:local:ExpansionPanel.26Fum4IhZ"
1404
1212
  },
1405
- "minHeight": {
1406
- "type": "string",
1407
- "minLength": 0,
1408
- "description": "",
1409
- "title": "Min Height",
1410
- "@mapping": "takeshape:local:Dimensions.5b6X_m-E4"
1213
+ "content": {
1214
+ "type": "object",
1215
+ "title": "Content",
1216
+ "@mapping": "takeshape:local:ExpansionPanel.S1hTcA0hD",
1217
+ "@tag": "draftjs"
1411
1218
  },
1412
- "maxHeight": {
1413
- "type": "string",
1414
- "minLength": 0,
1415
- "description": "",
1416
- "title": "Max Height",
1417
- "@mapping": "takeshape:local:Dimensions.SwssakQoB"
1418
- }
1419
- }
1420
- }
1421
- },
1422
- "ComponentCollection": {
1423
- "id": "-yw_Xu1CO",
1424
- "name": "ComponentCollection",
1425
- "title": "Component Collection",
1426
- "schema": {
1427
- "type": "object",
1428
- "properties": {
1429
- "components": {
1430
- "description": "",
1219
+ "classes": {
1220
+ "title": "Classes",
1221
+ "@mapping": "takeshape:local:ExpansionPanel.7-bEVubls",
1431
1222
  "type": "array",
1432
1223
  "items": {
1433
1224
  "$ref": "#/shapes/TSRelationship/schema"
1434
1225
  },
1435
1226
  "@relationship": {
1436
1227
  "shapeIds": [
1437
- "Sy-gVqlKB",
1438
- "Sy9cQqlFH",
1439
- "HJBlYXpur",
1440
- "Bkw27qxKS"
1228
+ "BkIqHcgtr"
1441
1229
  ],
1442
1230
  "type": "multiple"
1443
- },
1444
- "title": "Components",
1445
- "@mapping": "takeshape:local:ComponentCollection.zocG0CX3A"
1446
- }
1447
- }
1448
- }
1449
- }
1450
- },
1451
- "forms": {
1452
- "Notification": {
1453
- "default": {
1454
- "properties": {
1455
- "code": {
1456
- "widget": "singleLineText"
1457
- },
1458
- "title": {
1459
- "widget": "singleLineText"
1460
- },
1461
- "content": {
1462
- "widget": "wysiwygText"
1463
- }
1464
- },
1465
- "order": [
1466
- "code",
1467
- "title",
1468
- "content"
1469
- ]
1470
- }
1471
- },
1472
- "Accordion": {
1473
- "default": {
1474
- "properties": {
1475
- "usedFor": {
1476
- "widget": "singleLineText"
1477
- },
1478
- "components": {
1479
- "widget": "relationship"
1480
- },
1481
- "classes": {
1482
- "widget": "relationship"
1483
- },
1484
- "multi": {
1485
- "widget": "checkbox"
1486
- }
1487
- },
1488
- "order": [
1489
- "usedFor",
1490
- "classes",
1491
- "multi",
1492
- "components"
1493
- ]
1494
- }
1495
- },
1496
- "ExpansionPanel": {
1497
- "default": {
1498
- "properties": {
1499
- "usedFor": {
1500
- "widget": "singleLineText"
1501
- },
1502
- "icon": {
1503
- "widget": "relationship"
1504
- },
1505
- "header": {
1506
- "widget": "singleLineText"
1507
- },
1508
- "content": {
1509
- "widget": "wysiwygText"
1510
- },
1511
- "classes": {
1512
- "widget": "relationship"
1231
+ }
1513
1232
  }
1514
1233
  },
1515
- "order": [
1516
- "usedFor",
1517
- "classes",
1518
- "icon",
1234
+ "required": [
1519
1235
  "header",
1520
1236
  "content"
1521
1237
  ]
1522
1238
  }
1523
1239
  },
1524
1240
  "TabGroup": {
1525
- "default": {
1241
+ "id": "HkCod7TOS",
1242
+ "name": "TabGroup",
1243
+ "title": "Tab Group",
1244
+ "model": {
1245
+ "type": "multiple"
1246
+ },
1247
+ "schema": {
1248
+ "type": "object",
1526
1249
  "properties": {
1527
1250
  "usedFor": {
1528
- "widget": "singleLineText"
1251
+ "type": "string",
1252
+ "title": "Used For",
1253
+ "minLength": 0,
1254
+ "@mapping": "takeshape:local:TabGroup.xZHEaGNVm"
1529
1255
  },
1530
1256
  "components": {
1531
- "widget": "relationship"
1257
+ "title": "Components",
1258
+ "@mapping": "takeshape:local:TabGroup.4NS8ZoZzR",
1259
+ "type": "array",
1260
+ "items": {
1261
+ "$ref": "#/shapes/TSRelationship/schema"
1262
+ },
1263
+ "@relationship": {
1264
+ "shapeIds": [
1265
+ "HJBlYXpur"
1266
+ ],
1267
+ "type": "multiple"
1268
+ }
1532
1269
  },
1533
1270
  "slug": {
1534
- "widget": "singleLineText"
1271
+ "type": "string",
1272
+ "title": "Slug",
1273
+ "minLength": 1,
1274
+ "@mapping": "takeshape:local:TabGroup.HCzwxXNco"
1535
1275
  },
1536
1276
  "classes": {
1537
- "widget": "relationship"
1277
+ "title": "Classes",
1278
+ "@mapping": "takeshape:local:TabGroup.qEgZ-lR2X",
1279
+ "type": "array",
1280
+ "items": {
1281
+ "$ref": "#/shapes/TSRelationship/schema"
1282
+ },
1283
+ "@relationship": {
1284
+ "shapeIds": [
1285
+ "BkIqHcgtr"
1286
+ ],
1287
+ "type": "multiple"
1288
+ }
1538
1289
  }
1539
1290
  },
1540
- "order": [
1541
- "usedFor",
1542
- "classes",
1543
- "slug",
1544
- "components"
1291
+ "required": [
1292
+ "slug"
1545
1293
  ]
1546
1294
  }
1547
1295
  },
1548
1296
  "Copy": {
1549
- "default": {
1297
+ "id": "Sy9cQqlFH",
1298
+ "name": "Copy",
1299
+ "title": "Copy",
1300
+ "model": {
1301
+ "type": "multiple"
1302
+ },
1303
+ "schema": {
1304
+ "type": "object",
1550
1305
  "properties": {
1551
1306
  "usedFor": {
1552
- "widget": "singleLineText"
1307
+ "type": "string",
1308
+ "title": "Used For",
1309
+ "minLength": 0,
1310
+ "@mapping": "takeshape:local:Copy.WyY_HY36e"
1553
1311
  },
1554
1312
  "slug": {
1555
- "widget": "singleLineText"
1313
+ "type": "string",
1314
+ "title": "Slug",
1315
+ "minLength": 0,
1316
+ "@mapping": "takeshape:local:Copy.FmxIRUQTz"
1556
1317
  },
1557
1318
  "content": {
1558
- "widget": "wysiwygText"
1319
+ "type": "object",
1320
+ "title": "Content",
1321
+ "@mapping": "takeshape:local:Copy.01cOtwU3C",
1322
+ "@tag": "draftjs"
1559
1323
  },
1560
1324
  "classes": {
1561
- "widget": "relationship"
1325
+ "title": "Classes",
1326
+ "@mapping": "takeshape:local:Copy.1fIzL3c-P",
1327
+ "type": "array",
1328
+ "items": {
1329
+ "$ref": "#/shapes/TSRelationship/schema"
1330
+ },
1331
+ "@relationship": {
1332
+ "shapeIds": [
1333
+ "BkIqHcgtr"
1334
+ ],
1335
+ "type": "multiple"
1336
+ }
1562
1337
  }
1563
1338
  },
1564
- "order": [
1565
- "usedFor",
1566
- "slug",
1567
- "classes",
1339
+ "required": [
1568
1340
  "content"
1569
1341
  ]
1570
1342
  }
1571
1343
  },
1572
1344
  "Alert": {
1573
- "default": {
1345
+ "id": "ry8bkQSwL",
1346
+ "name": "Alert",
1347
+ "title": "Alert",
1348
+ "model": {
1349
+ "type": "multiple"
1350
+ },
1351
+ "workflow": "default",
1352
+ "schema": {
1353
+ "type": "object",
1574
1354
  "properties": {
1575
1355
  "color": {
1576
- "widget": "dropdown"
1356
+ "type": "string",
1357
+ "title": "Color",
1358
+ "oneOf": [
1359
+ {
1360
+ "title": "Primary",
1361
+ "enum": [
1362
+ "primary"
1363
+ ]
1364
+ },
1365
+ {
1366
+ "title": "Success",
1367
+ "enum": [
1368
+ "success"
1369
+ ]
1370
+ },
1371
+ {
1372
+ "title": "Info",
1373
+ "enum": [
1374
+ "info"
1375
+ ]
1376
+ },
1377
+ {
1378
+ "title": "Warn",
1379
+ "enum": [
1380
+ "warn"
1381
+ ]
1382
+ },
1383
+ {
1384
+ "title": "Danger",
1385
+ "enum": [
1386
+ "danger"
1387
+ ]
1388
+ }
1389
+ ],
1390
+ "@mapping": "takeshape:local:Alert.sPWrTg0sj"
1577
1391
  },
1578
1392
  "dismissable": {
1579
- "widget": "checkbox"
1393
+ "type": "boolean",
1394
+ "default": false,
1395
+ "title": "Dismissable",
1396
+ "@l10n": false,
1397
+ "@mapping": "takeshape:local:Alert.gM27CbaLz"
1580
1398
  },
1581
1399
  "slug": {
1582
- "widget": "singleLineText"
1400
+ "type": "string",
1401
+ "title": "Slug",
1402
+ "minLength": 1,
1403
+ "@mapping": "takeshape:local:Alert.xPM_aTvwu"
1583
1404
  },
1584
1405
  "content": {
1585
- "widget": "wysiwygSingleLineText"
1406
+ "type": "object",
1407
+ "title": "Content",
1408
+ "@mapping": "takeshape:local:Alert.-dAxGwwLJ",
1409
+ "@tag": "draftjs"
1586
1410
  }
1587
1411
  },
1588
- "order": [
1412
+ "required": [
1589
1413
  "slug",
1590
- "content",
1591
- "color",
1592
- "dismissable"
1414
+ "content"
1593
1415
  ]
1594
1416
  }
1595
1417
  },
1596
1418
  "Icon": {
1597
- "default": {
1419
+ "id": "rkSKzhetS",
1420
+ "name": "Icon",
1421
+ "title": "Icon",
1422
+ "model": {
1423
+ "type": "multiple"
1424
+ },
1425
+ "schema": {
1426
+ "type": "object",
1598
1427
  "properties": {
1599
1428
  "usedFor": {
1600
- "widget": "singleLineText"
1429
+ "type": "string",
1430
+ "title": "Used For",
1431
+ "minLength": 0,
1432
+ "@mapping": "takeshape:local:Icon.x9A6V0_VY"
1601
1433
  },
1602
1434
  "asset": {
1603
- "widget": "image"
1435
+ "title": "Asset",
1436
+ "@mapping": "takeshape:local:Icon.Rllc03lmT",
1437
+ "$ref": "#/shapes/TSRelationship/schema",
1438
+ "@relationship": {
1439
+ "shapeIds": [
1440
+ "ASSET"
1441
+ ],
1442
+ "type": "single"
1443
+ }
1604
1444
  },
1605
1445
  "slug": {
1606
- "widget": "singleLineText"
1446
+ "type": "string",
1447
+ "title": "Slug",
1448
+ "minLength": 1,
1449
+ "@mapping": "takeshape:local:Icon.XbU4xLjt0"
1607
1450
  }
1608
1451
  },
1609
- "order": [
1610
- "usedFor",
1452
+ "required": [
1611
1453
  "slug",
1612
1454
  "asset"
1613
1455
  ]
1614
1456
  }
1615
1457
  },
1616
1458
  "Asset": {
1617
- "default": {
1459
+ "id": "ASSET",
1460
+ "name": "Asset",
1461
+ "title": "Asset",
1462
+ "model": {
1463
+ "type": "multiple"
1464
+ },
1465
+ "schema": {
1466
+ "type": "object",
1618
1467
  "properties": {
1619
1468
  "sourceUrl": {
1620
- "disabled": true,
1621
- "widget": "singleLineText"
1469
+ "type": "string",
1470
+ "title": "Source URL",
1471
+ "@l10n": false,
1472
+ "@mapping": "takeshape:local:Asset.SJXSidnXE"
1622
1473
  },
1623
1474
  "path": {
1624
- "disabled": true,
1625
- "widget": "singleLineText"
1475
+ "type": "string",
1476
+ "title": "Path",
1477
+ "@l10n": false,
1478
+ "minLength": 1,
1479
+ "@mapping": "takeshape:local:Asset.Hk6FQuz5"
1626
1480
  },
1627
1481
  "backgroundColor": {
1628
- "widget": "color"
1482
+ "type": "object",
1483
+ "title": "Background Color",
1484
+ "$ref": "#/shapes/TSColor/schema",
1485
+ "@mapping": "takeshape:local:Asset.8mSa4MUjV"
1629
1486
  },
1630
1487
  "filename": {
1631
- "disabled": true,
1632
- "widget": "singleLineText"
1488
+ "type": "string",
1489
+ "title": "Filename",
1490
+ "@l10n": false,
1491
+ "minLength": 1,
1492
+ "@mapping": "takeshape:local:Asset.H1oYQOM9"
1633
1493
  },
1634
1494
  "description": {
1635
- "disabled": true,
1636
- "widget": "paragraphText"
1495
+ "type": "string",
1496
+ "title": "Description",
1497
+ "@mapping": "takeshape:local:Asset.B1Zsra3fx"
1637
1498
  },
1638
1499
  "caption": {
1639
- "disabled": true,
1640
- "widget": "wysiwygSingleLineText"
1500
+ "type": "object",
1501
+ "title": "Caption",
1502
+ "@mapping": "takeshape:local:Asset.SyWVsd98x",
1503
+ "@tag": "draftjs"
1641
1504
  },
1642
1505
  "uploadStatus": {
1643
- "disabled": true,
1644
- "widget": "singleLineText"
1506
+ "type": "string",
1507
+ "title": "Upload status",
1508
+ "@l10n": false,
1509
+ "@mapping": "takeshape:local:Asset.ByeAYXdG9"
1645
1510
  },
1646
1511
  "mimeType": {
1647
- "disabled": true,
1648
- "widget": "singleLineText"
1512
+ "type": "string",
1513
+ "title": "MIME type",
1514
+ "@l10n": false,
1515
+ "@mapping": "takeshape:local:Asset.SyCYX_Gq"
1649
1516
  },
1650
1517
  "title": {
1651
- "disabled": true,
1652
- "widget": "singleLineText"
1518
+ "type": "string",
1519
+ "title": "Title",
1520
+ "@mapping": "takeshape:local:Asset.By5tQOMc"
1653
1521
  },
1654
1522
  "credit": {
1655
- "disabled": true,
1656
- "widget": "wysiwygSingleLineText"
1523
+ "type": "object",
1524
+ "title": "Credit",
1525
+ "@mapping": "takeshape:local:Asset.Skn_i_5Ll",
1526
+ "@tag": "draftjs"
1657
1527
  }
1658
1528
  },
1659
- "order": [
1660
- "title",
1661
- "description",
1662
- "caption",
1663
- "credit",
1529
+ "required": [
1664
1530
  "filename",
1665
- "path",
1666
- "mimeType",
1667
- "sourceUrl",
1668
- "uploadStatus",
1669
- "backgroundColor"
1531
+ "path"
1670
1532
  ]
1671
1533
  }
1672
1534
  },
1673
1535
  "CssClass": {
1674
- "default": {
1536
+ "id": "BkIqHcgtr",
1537
+ "name": "CssClass",
1538
+ "title": "CssClass",
1539
+ "model": {
1540
+ "type": "taxonomy"
1541
+ },
1542
+ "schema": {
1543
+ "type": "object",
1675
1544
  "properties": {
1676
1545
  "value": {
1677
- "widget": "singleLineText"
1546
+ "type": "string",
1547
+ "title": "Value",
1548
+ "minLength": 1,
1549
+ "@mapping": "takeshape:local:CssClass.7DhgvGE5j"
1678
1550
  }
1679
1551
  },
1680
- "order": [
1552
+ "required": [
1681
1553
  "value"
1682
1554
  ]
1683
1555
  }
1684
1556
  },
1685
1557
  "Tab": {
1686
- "default": {
1558
+ "id": "HJBlYXpur",
1559
+ "name": "Tab",
1560
+ "title": "Tab",
1561
+ "model": {
1562
+ "type": "multiple"
1563
+ },
1564
+ "schema": {
1565
+ "type": "object",
1687
1566
  "properties": {
1688
1567
  "usedFor": {
1689
- "widget": "singleLineText"
1568
+ "type": "string",
1569
+ "title": "Used For",
1570
+ "minLength": 0,
1571
+ "@mapping": "takeshape:local:Tab.BKhhRF6yX"
1690
1572
  },
1691
1573
  "header": {
1692
- "widget": "singleLineText"
1574
+ "type": "string",
1575
+ "title": "Header",
1576
+ "minLength": 1,
1577
+ "@mapping": "takeshape:local:Tab.6B-9Krcye"
1693
1578
  },
1694
1579
  "components": {
1695
- "widget": "relationship"
1580
+ "title": "Components",
1581
+ "minItems": 1,
1582
+ "@mapping": "takeshape:local:Tab.BJfViC6N1",
1583
+ "type": "array",
1584
+ "items": {
1585
+ "$ref": "#/shapes/TSRelationship/schema"
1586
+ },
1587
+ "@relationship": {
1588
+ "shapeIds": [
1589
+ "Bkw27qxKS",
1590
+ "Sy9cQqlFH",
1591
+ "Sy-gVqlKB",
1592
+ "HkCod7TOS"
1593
+ ],
1594
+ "type": "multiple"
1595
+ }
1696
1596
  },
1697
1597
  "slug": {
1698
- "widget": "singleLineText"
1598
+ "type": "string",
1599
+ "title": "Slug",
1600
+ "minLength": 1,
1601
+ "@mapping": "takeshape:local:Tab.tskPgBoUA"
1699
1602
  },
1700
1603
  "classes": {
1701
- "widget": "relationship"
1604
+ "title": "Classes",
1605
+ "@mapping": "takeshape:local:Tab.6phxHUDUl",
1606
+ "type": "array",
1607
+ "items": {
1608
+ "$ref": "#/shapes/TSRelationship/schema"
1609
+ },
1610
+ "@relationship": {
1611
+ "shapeIds": [
1612
+ "BkIqHcgtr"
1613
+ ],
1614
+ "type": "multiple"
1615
+ }
1702
1616
  }
1703
1617
  },
1704
- "order": [
1705
- "usedFor",
1706
- "classes",
1618
+ "required": [
1707
1619
  "slug",
1708
1620
  "header",
1709
1621
  "components"
@@ -1711,81 +1623,169 @@
1711
1623
  }
1712
1624
  },
1713
1625
  "Dialog": {
1714
- "default": {
1626
+ "id": "bq9AYySJi",
1627
+ "name": "Dialog",
1628
+ "title": "Dialog",
1629
+ "workflow": "default",
1630
+ "model": {
1631
+ "type": "multiple"
1632
+ },
1633
+ "schema": {
1634
+ "type": "object",
1715
1635
  "properties": {
1716
1636
  "usedFor": {
1717
- "widget": "singleLineText"
1637
+ "minLength": 0,
1638
+ "type": "string",
1639
+ "description": "",
1640
+ "title": "Used For",
1641
+ "@mapping": "takeshape:local:Dialog.sDec_8qPW"
1718
1642
  },
1719
1643
  "slug": {
1720
- "widget": "slug"
1644
+ "@derivedFrom": "usedFor",
1645
+ "pattern": "^[\\w-]*$",
1646
+ "minLength": 0,
1647
+ "type": "string",
1648
+ "description": "",
1649
+ "title": "Slug",
1650
+ "@mapping": "takeshape:local:Dialog.Vwb0hg1Hf"
1721
1651
  },
1722
1652
  "classes": {
1723
- "widget": "relationship"
1653
+ "description": "",
1654
+ "type": "array",
1655
+ "items": {
1656
+ "$ref": "#/shapes/TSRelationship/schema"
1657
+ },
1658
+ "@relationship": {
1659
+ "shapeIds": [
1660
+ "BkIqHcgtr"
1661
+ ],
1662
+ "type": "multiple"
1663
+ },
1664
+ "title": "Classes",
1665
+ "@mapping": "takeshape:local:Dialog.sSSGKYDu8"
1724
1666
  },
1725
1667
  "dimensions": {
1726
- "widget": "shapeObject"
1668
+ "type": "object",
1669
+ "description": "",
1670
+ "oneOf": [
1671
+ {
1672
+ "@ref": "local:Dimensions"
1673
+ }
1674
+ ],
1675
+ "title": "Dimensions",
1676
+ "@mapping": "takeshape:local:Dialog.vqwtGrtLl"
1727
1677
  },
1728
1678
  "collection": {
1729
- "widget": "shapeObject"
1679
+ "oneOf": [
1680
+ {
1681
+ "@ref": "local:ComponentCollection"
1682
+ }
1683
+ ],
1684
+ "description": "",
1685
+ "title": "Collection",
1686
+ "@mapping": "takeshape:local:Dialog.6v7fev6Ze"
1730
1687
  },
1731
1688
  "components": {
1732
- "widget": "relationship"
1689
+ "description": "",
1690
+ "type": "array",
1691
+ "items": {
1692
+ "$ref": "#/shapes/TSRelationship/schema"
1693
+ },
1694
+ "@relationship": {
1695
+ "shapeIds": [
1696
+ "Sy9cQqlFH",
1697
+ "Sy-gVqlKB",
1698
+ "Bkw27qxKS",
1699
+ "HkCod7TOS"
1700
+ ],
1701
+ "type": "multiple"
1702
+ },
1703
+ "title": "Components",
1704
+ "@mapping": "takeshape:local:Dialog.C7Y-4Furz"
1733
1705
  }
1734
- },
1735
- "order": [
1736
- "usedFor",
1737
- "slug",
1738
- "classes",
1739
- "dimensions",
1740
- "collection",
1741
- "components"
1742
- ]
1706
+ }
1743
1707
  }
1744
1708
  },
1745
1709
  "Dimensions": {
1746
- "default": {
1710
+ "id": "fKHd7cmPj",
1711
+ "name": "Dimensions",
1712
+ "title": "Dimensions",
1713
+ "schema": {
1714
+ "type": "object",
1747
1715
  "properties": {
1748
1716
  "width": {
1749
- "widget": "singleLineText"
1717
+ "type": "string",
1718
+ "minLength": 0,
1719
+ "description": "",
1720
+ "title": "Width",
1721
+ "@mapping": "takeshape:local:Dimensions.iytv_aq7w"
1750
1722
  },
1751
1723
  "minWidth": {
1752
- "widget": "singleLineText"
1724
+ "type": "string",
1725
+ "minLength": 0,
1726
+ "description": "",
1727
+ "title": "Min Width",
1728
+ "@mapping": "takeshape:local:Dimensions.ZYQMhHKCg"
1753
1729
  },
1754
1730
  "maxWidth": {
1755
- "widget": "singleLineText"
1731
+ "type": "string",
1732
+ "minLength": 0,
1733
+ "description": "",
1734
+ "title": "Max Width",
1735
+ "@mapping": "takeshape:local:Dimensions.eZnf_Jqmn"
1756
1736
  },
1757
1737
  "height": {
1758
- "widget": "singleLineText"
1738
+ "type": "string",
1739
+ "minLength": 0,
1740
+ "description": "",
1741
+ "title": "Height",
1742
+ "@mapping": "takeshape:local:Dimensions.ZKWg69s3T"
1759
1743
  },
1760
1744
  "minHeight": {
1761
- "widget": "singleLineText"
1745
+ "type": "string",
1746
+ "minLength": 0,
1747
+ "description": "",
1748
+ "title": "Min Height",
1749
+ "@mapping": "takeshape:local:Dimensions.5b6X_m-E4"
1762
1750
  },
1763
1751
  "maxHeight": {
1764
- "widget": "singleLineText"
1752
+ "type": "string",
1753
+ "minLength": 0,
1754
+ "description": "",
1755
+ "title": "Max Height",
1756
+ "@mapping": "takeshape:local:Dimensions.SwssakQoB"
1765
1757
  }
1766
- },
1767
- "order": [
1768
- "width",
1769
- "minWidth",
1770
- "maxWidth",
1771
- "height",
1772
- "minHeight",
1773
- "maxHeight"
1774
- ]
1758
+ }
1775
1759
  }
1776
1760
  },
1777
1761
  "ComponentCollection": {
1778
- "default": {
1762
+ "id": "-yw_Xu1CO",
1763
+ "name": "ComponentCollection",
1764
+ "title": "Component Collection",
1765
+ "schema": {
1766
+ "type": "object",
1779
1767
  "properties": {
1780
1768
  "components": {
1781
- "widget": "relationship"
1769
+ "description": "",
1770
+ "type": "array",
1771
+ "items": {
1772
+ "$ref": "#/shapes/TSRelationship/schema"
1773
+ },
1774
+ "@relationship": {
1775
+ "shapeIds": [
1776
+ "Sy-gVqlKB",
1777
+ "Sy9cQqlFH",
1778
+ "HJBlYXpur",
1779
+ "Bkw27qxKS"
1780
+ ],
1781
+ "type": "multiple"
1782
+ },
1783
+ "title": "Components",
1784
+ "@mapping": "takeshape:local:ComponentCollection.zocG0CX3A"
1782
1785
  }
1783
- },
1784
- "order": [
1785
- "components"
1786
- ]
1786
+ }
1787
1787
  }
1788
1788
  }
1789
1789
  },
1790
- "dataKey": "secret"
1790
+ "schemaVersion": "3.10.0"
1791
1791
  }