@takeshape/schema 8.16.0 → 8.20.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 (117) 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 +7 -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 +10 -7
  18. package/examples/latest/blog-schema.json +32 -32
  19. package/examples/latest/brewery-schema.json +53 -53
  20. package/examples/latest/complex-project-schema.json +3278 -3278
  21. package/examples/latest/fabric-ecommerce.json +130 -130
  22. package/examples/latest/frank-and-fred-schema.json +15588 -15588
  23. package/examples/latest/massive-schema.json +5836 -5836
  24. package/examples/latest/mill-components-schema.json +876 -876
  25. package/examples/latest/pet-oneof-array.json +77 -77
  26. package/examples/latest/post-schema.json +23 -23
  27. package/examples/latest/pruned-shopify-product-schema.json +19 -19
  28. package/examples/latest/real-world-schema.json +166 -166
  29. package/examples/latest/recursive-repeater-schema.json +14 -14
  30. package/examples/latest/recursive-schema.json +14 -14
  31. package/examples/latest/rick-and-morty-ast.json +1875 -1896
  32. package/examples/latest/rick-and-morty-graphql.json +1093 -1093
  33. package/examples/latest/rick-and-morty-rest.json +20 -20
  34. package/examples/latest/schema-with-repeater-draftjs.json +9 -9
  35. package/examples/latest/shape-books-v3_2_0.json +218 -218
  36. package/examples/latest/shape-books.json +218 -218
  37. package/examples/latest/shopify-lookbook.json +147 -147
  38. package/examples/latest/shopify-store-with-widget.json +10420 -10420
  39. package/examples/latest/stripe-starter-resolved.json +1018 -1018
  40. package/examples/latest/user-schema-no-required.json +19 -19
  41. package/examples/latest/user-schema-with-defaults.json +20 -20
  42. package/examples/source/rick-and-morty-ast.json +0 -21
  43. package/lib/content-schema-transform.d.ts +13 -13
  44. package/lib/content-schema-transform.d.ts.map +1 -1
  45. package/lib/enum.d.ts +2 -2
  46. package/lib/enum.d.ts.map +1 -1
  47. package/lib/enum.js +2 -2
  48. package/lib/get-is-leaf.d.ts +2 -2
  49. package/lib/get-is-leaf.d.ts.map +1 -1
  50. package/lib/get-is-leaf.js +5 -5
  51. package/lib/layers/type-utils.js +1 -1
  52. package/lib/migration.d.ts +6 -5
  53. package/lib/migration.d.ts.map +1 -1
  54. package/lib/migration.js +60 -0
  55. package/lib/project-schema/index.d.ts +3 -1
  56. package/lib/project-schema/index.d.ts.map +1 -1
  57. package/lib/project-schema/index.js +25 -12
  58. package/lib/project-schema/latest.d.ts +260 -238
  59. package/lib/project-schema/latest.d.ts.map +1 -1
  60. package/lib/project-schema/v1.0.0.d.ts +14 -7
  61. package/lib/project-schema/v1.0.0.d.ts.map +1 -1
  62. package/lib/project-schema/v3.0.0.d.ts +24 -25
  63. package/lib/project-schema/v3.0.0.d.ts.map +1 -1
  64. package/lib/project-schema/v3.1.0.d.ts +42 -43
  65. package/lib/project-schema/v3.1.0.d.ts.map +1 -1
  66. package/lib/project-schema/v3.10.0.d.ts +1202 -0
  67. package/lib/project-schema/v3.10.0.d.ts.map +1 -0
  68. package/lib/project-schema/v3.10.0.js +5 -0
  69. package/lib/project-schema/v3.2.0.d.ts +42 -43
  70. package/lib/project-schema/v3.2.0.d.ts.map +1 -1
  71. package/lib/project-schema/v3.3.0.d.ts +42 -43
  72. package/lib/project-schema/v3.3.0.d.ts.map +1 -1
  73. package/lib/project-schema/v3.4.0.d.ts +42 -43
  74. package/lib/project-schema/v3.4.0.d.ts.map +1 -1
  75. package/lib/project-schema/v3.5.0.d.ts +42 -43
  76. package/lib/project-schema/v3.5.0.d.ts.map +1 -1
  77. package/lib/project-schema/v3.5.1.d.ts +42 -43
  78. package/lib/project-schema/v3.5.1.d.ts.map +1 -1
  79. package/lib/project-schema/v3.6.0.d.ts +42 -43
  80. package/lib/project-schema/v3.6.0.d.ts.map +1 -1
  81. package/lib/project-schema/v3.7.0.d.ts +42 -43
  82. package/lib/project-schema/v3.7.0.d.ts.map +1 -1
  83. package/lib/project-schema/v3.8.0.d.ts +42 -43
  84. package/lib/project-schema/v3.8.0.d.ts.map +1 -1
  85. package/lib/project-schema/v3.9.0.d.ts +42 -43
  86. package/lib/project-schema/v3.9.0.d.ts.map +1 -1
  87. package/lib/project-schema/v4.0.0.d.ts +54 -52
  88. package/lib/project-schema/v4.0.0.d.ts.map +1 -1
  89. package/lib/refs.d.ts +8 -8
  90. package/lib/refs.d.ts.map +1 -1
  91. package/lib/refs.js +19 -19
  92. package/lib/schema-util.d.ts +23 -23
  93. package/lib/schema-util.d.ts.map +1 -1
  94. package/lib/schema-util.js +7 -7
  95. package/lib/schemas/index.d.ts +3421 -3420
  96. package/lib/schemas/index.d.ts.map +1 -1
  97. package/lib/schemas/index.js +26 -30
  98. package/lib/schemas/index.ts +26 -25
  99. package/lib/schemas/project-schema/v3.10.0.json +2091 -0
  100. package/lib/schemas/project-schema/v4.0.0.json +8 -6
  101. package/lib/schemas/project-schema.json +2 -1
  102. package/lib/types/types.d.ts +8 -7
  103. package/lib/types/types.d.ts.map +1 -1
  104. package/lib/types/types.js +1 -1
  105. package/lib/types/utils.d.ts +9 -8
  106. package/lib/types/utils.d.ts.map +1 -1
  107. package/lib/types/utils.js +25 -23
  108. package/lib/unions.d.ts +8 -8
  109. package/lib/unions.d.ts.map +1 -1
  110. package/lib/util/detect-cycles.d.ts +2 -2
  111. package/lib/util/detect-cycles.d.ts.map +1 -1
  112. package/lib/util/detect-cycles.js +1 -1
  113. package/lib/validate.d.ts.map +1 -1
  114. package/lib/validate.js +9 -6
  115. package/lib/workflows.d.ts +2 -2
  116. package/lib/workflows.d.ts.map +1 -1
  117. package/package.json +5 -5
@@ -7,6 +7,223 @@
7
7
  "en-us"
8
8
  ],
9
9
  "workflows": {},
10
+ "created": "2017-07-13T19:16:10.801Z",
11
+ "updated": "2018-09-08T20:16:45.814Z",
12
+ "forms": {
13
+ "Genre": {
14
+ "default": {
15
+ "properties": {
16
+ "title": {
17
+ "widget": "singleLineText"
18
+ }
19
+ },
20
+ "order": [
21
+ "title"
22
+ ]
23
+ }
24
+ },
25
+ "Tag": {
26
+ "default": {
27
+ "properties": {
28
+ "name": {
29
+ "widget": "singleLineText"
30
+ }
31
+ },
32
+ "order": [
33
+ "name"
34
+ ]
35
+ }
36
+ },
37
+ "Post": {
38
+ "default": {
39
+ "properties": {
40
+ "body": {
41
+ "widget": "wysiwygText"
42
+ },
43
+ "featureImage": {
44
+ "widget": "image"
45
+ },
46
+ "title": {
47
+ "widget": "singleLineText"
48
+ },
49
+ "author": {
50
+ "widget": "relationship"
51
+ },
52
+ "deck": {
53
+ "widget": "paragraphText"
54
+ },
55
+ "tags": {
56
+ "widget": "relationship"
57
+ }
58
+ },
59
+ "order": [
60
+ "title",
61
+ "deck",
62
+ "tags",
63
+ "author",
64
+ "featureImage",
65
+ "body"
66
+ ]
67
+ }
68
+ },
69
+ "Author": {
70
+ "default": {
71
+ "properties": {
72
+ "name": {
73
+ "widget": "singleLineText"
74
+ },
75
+ "photo": {
76
+ "widget": "image"
77
+ },
78
+ "biography": {
79
+ "widget": "wysiwygText"
80
+ }
81
+ },
82
+ "order": [
83
+ "name",
84
+ "photo",
85
+ "biography"
86
+ ]
87
+ }
88
+ },
89
+ "Homepage": {
90
+ "default": {
91
+ "properties": {
92
+ "title": {
93
+ "widget": "singleLineText"
94
+ },
95
+ "featuredBook": {
96
+ "widget": "relationship"
97
+ },
98
+ "hero": {
99
+ "properties": {
100
+ "image": {
101
+ "widget": "image"
102
+ },
103
+ "featuredPost": {
104
+ "widget": "relationship"
105
+ }
106
+ },
107
+ "widget": "object",
108
+ "order": [
109
+ "image",
110
+ "featuredPost"
111
+ ]
112
+ }
113
+ },
114
+ "order": [
115
+ "title",
116
+ "hero",
117
+ "featuredBook"
118
+ ]
119
+ }
120
+ },
121
+ "SiteSettings": {
122
+ "default": {
123
+ "properties": {
124
+ "siteTitle": {
125
+ "widget": "singleLineText"
126
+ }
127
+ },
128
+ "order": [
129
+ "siteTitle"
130
+ ]
131
+ }
132
+ },
133
+ "Asset": {
134
+ "default": {
135
+ "properties": {
136
+ "path": {
137
+ "disabled": true,
138
+ "widget": "singleLineText"
139
+ },
140
+ "filename": {
141
+ "disabled": true,
142
+ "widget": "singleLineText"
143
+ },
144
+ "description": {
145
+ "disabled": true,
146
+ "widget": "paragraphText"
147
+ },
148
+ "caption": {
149
+ "disabled": true,
150
+ "widget": "wysiwygSingleLineText"
151
+ },
152
+ "uploadStatus": {
153
+ "disabled": true,
154
+ "widget": "singleLineText"
155
+ },
156
+ "mimeType": {
157
+ "disabled": true,
158
+ "widget": "singleLineText"
159
+ },
160
+ "title": {
161
+ "disabled": true,
162
+ "widget": "singleLineText"
163
+ },
164
+ "authorTag": {
165
+ "widget": "relationship"
166
+ },
167
+ "credit": {
168
+ "disabled": true,
169
+ "widget": "wysiwygSingleLineText"
170
+ }
171
+ },
172
+ "order": [
173
+ "title",
174
+ "authorTag",
175
+ "description",
176
+ "caption",
177
+ "credit",
178
+ "filename",
179
+ "path",
180
+ "mimeType",
181
+ "uploadStatus"
182
+ ]
183
+ }
184
+ },
185
+ "Book": {
186
+ "default": {
187
+ "properties": {
188
+ "author": {
189
+ "widget": "relationship"
190
+ },
191
+ "coverImage": {
192
+ "widget": "image"
193
+ },
194
+ "genre": {
195
+ "widget": "relationship"
196
+ },
197
+ "publishDate": {
198
+ "widget": "datetime"
199
+ },
200
+ "totalPages": {
201
+ "widget": "number"
202
+ },
203
+ "title": {
204
+ "widget": "singleLineText"
205
+ },
206
+ "type": {
207
+ "widget": "dropdown"
208
+ },
209
+ "body": {
210
+ "widget": "wysiwygText"
211
+ }
212
+ },
213
+ "order": [
214
+ "title",
215
+ "genre",
216
+ "publishDate",
217
+ "coverImage",
218
+ "author",
219
+ "totalPages",
220
+ "type",
221
+ "body"
222
+ ]
223
+ }
224
+ }
225
+ },
226
+ "dataKey": "supersecret",
10
227
  "queries": {
11
228
  "getGenre": {
12
229
  "shape": "Genre",
@@ -411,9 +628,6 @@
411
628
  "args": "DeleteArgs<Book>"
412
629
  }
413
630
  },
414
- "schemaVersion": "3.9.0",
415
- "created": "2017-07-13T19:16:10.801Z",
416
- "updated": "2018-09-08T20:16:45.814Z",
417
631
  "shapes": {
418
632
  "Genre": {
419
633
  "id": "rJ9bZzk-m",
@@ -823,219 +1037,5 @@
823
1037
  }
824
1038
  }
825
1039
  },
826
- "forms": {
827
- "Genre": {
828
- "default": {
829
- "properties": {
830
- "title": {
831
- "widget": "singleLineText"
832
- }
833
- },
834
- "order": [
835
- "title"
836
- ]
837
- }
838
- },
839
- "Tag": {
840
- "default": {
841
- "properties": {
842
- "name": {
843
- "widget": "singleLineText"
844
- }
845
- },
846
- "order": [
847
- "name"
848
- ]
849
- }
850
- },
851
- "Post": {
852
- "default": {
853
- "properties": {
854
- "body": {
855
- "widget": "wysiwygText"
856
- },
857
- "featureImage": {
858
- "widget": "image"
859
- },
860
- "title": {
861
- "widget": "singleLineText"
862
- },
863
- "author": {
864
- "widget": "relationship"
865
- },
866
- "deck": {
867
- "widget": "paragraphText"
868
- },
869
- "tags": {
870
- "widget": "relationship"
871
- }
872
- },
873
- "order": [
874
- "title",
875
- "deck",
876
- "tags",
877
- "author",
878
- "featureImage",
879
- "body"
880
- ]
881
- }
882
- },
883
- "Author": {
884
- "default": {
885
- "properties": {
886
- "name": {
887
- "widget": "singleLineText"
888
- },
889
- "photo": {
890
- "widget": "image"
891
- },
892
- "biography": {
893
- "widget": "wysiwygText"
894
- }
895
- },
896
- "order": [
897
- "name",
898
- "photo",
899
- "biography"
900
- ]
901
- }
902
- },
903
- "Homepage": {
904
- "default": {
905
- "properties": {
906
- "title": {
907
- "widget": "singleLineText"
908
- },
909
- "featuredBook": {
910
- "widget": "relationship"
911
- },
912
- "hero": {
913
- "properties": {
914
- "image": {
915
- "widget": "image"
916
- },
917
- "featuredPost": {
918
- "widget": "relationship"
919
- }
920
- },
921
- "widget": "object",
922
- "order": [
923
- "image",
924
- "featuredPost"
925
- ]
926
- }
927
- },
928
- "order": [
929
- "title",
930
- "hero",
931
- "featuredBook"
932
- ]
933
- }
934
- },
935
- "SiteSettings": {
936
- "default": {
937
- "properties": {
938
- "siteTitle": {
939
- "widget": "singleLineText"
940
- }
941
- },
942
- "order": [
943
- "siteTitle"
944
- ]
945
- }
946
- },
947
- "Asset": {
948
- "default": {
949
- "properties": {
950
- "path": {
951
- "disabled": true,
952
- "widget": "singleLineText"
953
- },
954
- "filename": {
955
- "disabled": true,
956
- "widget": "singleLineText"
957
- },
958
- "description": {
959
- "disabled": true,
960
- "widget": "paragraphText"
961
- },
962
- "caption": {
963
- "disabled": true,
964
- "widget": "wysiwygSingleLineText"
965
- },
966
- "uploadStatus": {
967
- "disabled": true,
968
- "widget": "singleLineText"
969
- },
970
- "mimeType": {
971
- "disabled": true,
972
- "widget": "singleLineText"
973
- },
974
- "title": {
975
- "disabled": true,
976
- "widget": "singleLineText"
977
- },
978
- "authorTag": {
979
- "widget": "relationship"
980
- },
981
- "credit": {
982
- "disabled": true,
983
- "widget": "wysiwygSingleLineText"
984
- }
985
- },
986
- "order": [
987
- "title",
988
- "authorTag",
989
- "description",
990
- "caption",
991
- "credit",
992
- "filename",
993
- "path",
994
- "mimeType",
995
- "uploadStatus"
996
- ]
997
- }
998
- },
999
- "Book": {
1000
- "default": {
1001
- "properties": {
1002
- "author": {
1003
- "widget": "relationship"
1004
- },
1005
- "coverImage": {
1006
- "widget": "image"
1007
- },
1008
- "genre": {
1009
- "widget": "relationship"
1010
- },
1011
- "publishDate": {
1012
- "widget": "datetime"
1013
- },
1014
- "totalPages": {
1015
- "widget": "number"
1016
- },
1017
- "title": {
1018
- "widget": "singleLineText"
1019
- },
1020
- "type": {
1021
- "widget": "dropdown"
1022
- },
1023
- "body": {
1024
- "widget": "wysiwygText"
1025
- }
1026
- },
1027
- "order": [
1028
- "title",
1029
- "genre",
1030
- "publishDate",
1031
- "coverImage",
1032
- "author",
1033
- "totalPages",
1034
- "type",
1035
- "body"
1036
- ]
1037
- }
1038
- }
1039
- },
1040
- "dataKey": "supersecret"
1040
+ "schemaVersion": "3.10.0"
1041
1041
  }