@takeshape/schema 9.43.0 → 9.47.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.
Files changed (72) hide show
  1. package/dist/migration/index.d.ts +1 -0
  2. package/dist/migration/index.d.ts.map +1 -1
  3. package/dist/migration/index.js +4 -1
  4. package/dist/migration/to/v3.34.0.d.ts +7 -0
  5. package/dist/migration/to/v3.34.0.d.ts.map +1 -0
  6. package/dist/migration/to/v3.34.0.js +161 -0
  7. package/dist/project-schema/index.d.ts +4 -1
  8. package/dist/project-schema/index.d.ts.map +1 -1
  9. package/dist/project-schema/index.js +20 -3
  10. package/dist/project-schema/latest.d.ts +1 -1
  11. package/dist/project-schema/migrate.d.ts.map +1 -1
  12. package/dist/project-schema/migrate.js +4 -0
  13. package/dist/project-schema/v3.34.0.d.ts +1446 -0
  14. package/dist/project-schema/v3.34.0.d.ts.map +1 -0
  15. package/dist/project-schema/v3.34.0.js +5 -0
  16. package/dist/schema-util.js +5 -5
  17. package/dist/schemas/index.d.ts +2 -2
  18. package/dist/schemas/index.d.ts.map +1 -1
  19. package/dist/schemas/index.js +6 -4
  20. package/dist/schemas/index.ts +4 -2
  21. package/dist/schemas/project-schema/latest.json +3 -3
  22. package/dist/schemas/project-schema/v3.34.0.json +3088 -0
  23. package/dist/schemas/project-schema.json +3 -0
  24. package/dist/types/types.d.ts +2 -2
  25. package/dist/types/types.d.ts.map +1 -1
  26. package/es/migration/index.js +3 -1
  27. package/es/migration/to/v3.34.0.js +140 -0
  28. package/es/project-schema/index.js +3 -1
  29. package/es/project-schema/migrate.js +5 -1
  30. package/es/project-schema/v3.34.0.js +1 -0
  31. package/es/schema-util.js +5 -5
  32. package/es/schemas/index.js +4 -3
  33. package/es/schemas/index.ts +4 -2
  34. package/es/schemas/project-schema/latest.json +3 -3
  35. package/es/schemas/project-schema/v3.34.0.json +3088 -0
  36. package/es/schemas/project-schema.json +3 -0
  37. package/examples/latest/betzino.json +2012 -1756
  38. package/examples/latest/blog-schema.json +1 -1
  39. package/examples/latest/brewery-schema.json +31 -26
  40. package/examples/latest/complex-project-schema.json +645 -480
  41. package/examples/latest/complex-schema.json +866 -671
  42. package/examples/latest/fabric-ecommerce.json +7 -38
  43. package/examples/latest/frank-and-fred-schema.json +866 -671
  44. package/examples/latest/klirr-schema.json +1641 -1264
  45. package/examples/latest/massive-schema.json +897 -681
  46. package/examples/latest/mill-components-schema.json +1 -1
  47. package/examples/latest/one-earth.json +3012 -2462
  48. package/examples/latest/pet-oneof-array.json +1 -1
  49. package/examples/latest/post-schema.json +1 -1
  50. package/examples/latest/pruned-shopify-product-schema.json +1 -1
  51. package/examples/latest/real-world-schema.json +19 -14
  52. package/examples/latest/recursive-repeater-schema.json +1 -1
  53. package/examples/latest/recursive-schema.json +1 -1
  54. package/examples/latest/rick-and-morty-ast.json +39 -226
  55. package/examples/latest/rick-and-morty-graphql.json +35 -222
  56. package/examples/latest/rick-and-morty-rest.json +1 -1
  57. package/examples/latest/schema-with-repeater-draftjs.json +1 -1
  58. package/examples/latest/shape-books-v3_2_0.json +19 -14
  59. package/examples/latest/shape-books.json +19 -14
  60. package/examples/latest/shape-editor-schema-edited.json +1009 -0
  61. package/examples/latest/shape-editor-schema-initial.json +411 -0
  62. package/examples/latest/shopify-lookbook.json +9 -39
  63. package/examples/latest/shopify-product-2022-07.json +21 -213
  64. package/examples/latest/shopify-product-2023-04.json +21 -213
  65. package/examples/latest/shopify-store-with-widget.json +97 -360
  66. package/examples/latest/stripe-product-runtime-schema.json +21 -213
  67. package/examples/latest/stripe-starter-resolved.json +21 -213
  68. package/examples/latest/user-schema-no-required.json +1 -1
  69. package/examples/latest/user-schema-with-defaults.json +1 -1
  70. package/examples/source/shape-editor-schema-edited.json +1009 -0
  71. package/examples/source/shape-editor-schema-initial.json +411 -0
  72. package/package.json +5 -5
@@ -5,7 +5,7 @@
5
5
  "en-us"
6
6
  ],
7
7
  "apiVersion": "2",
8
- "schemaVersion": "3.33.0",
8
+ "schemaVersion": "3.34.0",
9
9
  "queries": {
10
10
  "getAsset": {
11
11
  "shape": "Asset",
@@ -38727,255 +38727,63 @@
38727
38727
  }
38728
38728
  }
38729
38729
  },
38730
- "TSStaticSite": {
38730
+ "TSStaticSiteEnvironmentVariables": {
38731
38731
  "default": {
38732
+ "widget": "repeater",
38732
38733
  "order": [
38733
- "title",
38734
- "provider",
38735
- "destination",
38736
- "idKey",
38737
- "secretKey",
38738
- "environmentVariables"
38734
+ "name",
38735
+ "value"
38739
38736
  ],
38737
+ "disabled": true,
38740
38738
  "properties": {
38741
- "title": {
38739
+ "name": {
38742
38740
  "widget": "singleLineText",
38743
38741
  "disabled": true
38744
38742
  },
38745
- "provider": {
38746
- "widget": "dropdown",
38747
- "disabled": true
38748
- },
38749
- "destination": {
38750
- "widget": "singleLineText",
38751
- "instructions": "Deployment Bucket or FTP Host",
38752
- "disabled": true
38753
- },
38754
- "idKey": {
38743
+ "value": {
38755
38744
  "widget": "singleLineText",
38756
- "instructions": "AWS Access Key ID or Google Cloud Storage Client Email or FTP Username",
38757
- "disabled": true
38758
- },
38759
- "secretKey": {
38760
- "widget": "sensitiveField",
38761
- "instructions": "AWS Secret Access Key or Google Cloud Storage Private Key or FTP Password",
38762
- "multiline": true,
38763
38745
  "disabled": true
38764
- },
38765
- "environmentVariables": {
38766
- "widget": "repeater",
38767
- "order": [
38768
- "name",
38769
- "value"
38770
- ],
38771
- "disabled": true,
38772
- "properties": {
38773
- "name": {
38774
- "widget": "singleLineText",
38775
- "disabled": true
38776
- },
38777
- "value": {
38778
- "widget": "singleLineText",
38779
- "disabled": true
38780
- }
38781
- }
38782
38746
  }
38783
38747
  }
38784
- },
38785
- "generalHeader": {
38748
+ }
38749
+ },
38750
+ "TSStaticSite": {
38751
+ "default": {
38786
38752
  "order": [
38787
38753
  "title",
38788
38754
  "provider",
38789
- "baseUrl"
38790
- ],
38791
- "properties": {
38792
- "title": {
38793
- "widget": "singleLineText",
38794
- "disabled": true
38795
- },
38796
- "provider": {
38797
- "widget": "dropdown",
38798
- "disabled": true
38799
- },
38800
- "baseUrl": {
38801
- "widget": "singleLineText",
38802
- "disabled": true
38803
- }
38804
- }
38805
- },
38806
- "generalFooter": {
38807
- "order": [
38808
- "environmentVariables",
38809
- "triggers"
38810
- ],
38811
- "properties": {
38812
- "environmentVariables": {
38813
- "widget": "repeater",
38814
- "order": [
38815
- "name",
38816
- "value"
38817
- ],
38818
- "disabled": true,
38819
- "properties": {
38820
- "name": {
38821
- "widget": "singleLineText",
38822
- "disabled": true
38823
- },
38824
- "value": {
38825
- "widget": "singleLineText",
38826
- "disabled": true
38827
- }
38828
- }
38829
- },
38830
- "triggers": {
38831
- "widget": "repeater",
38832
- "order": [
38833
- "contentTypeId",
38834
- "status"
38835
- ],
38836
- "disabled": true,
38837
- "preview": "siteTriggerPreview",
38838
- "properties": {
38839
- "contentTypeId": {
38840
- "widget": "dropdown",
38841
- "disabled": true
38842
- },
38843
- "status": {
38844
- "widget": "dropdown",
38845
- "disabled": true
38846
- }
38847
- }
38848
- }
38849
- }
38850
- },
38851
- "s3": {
38852
- "order": [
38853
- "destination",
38854
- "idKey",
38855
- "secretKey",
38856
- "privateAcl"
38857
- ],
38858
- "properties": {
38859
- "destination": {
38860
- "widget": "singleLineText",
38861
- "instructions": "Deployment Bucket Name",
38862
- "disabled": true
38863
- },
38864
- "idKey": {
38865
- "widget": "singleLineText",
38866
- "instructions": "AWS Access Key ID",
38867
- "disabled": true
38868
- },
38869
- "secretKey": {
38870
- "widget": "sensitiveField",
38871
- "instructions": "AWS Secret Access Key",
38872
- "multiline": true,
38873
- "disabled": true
38874
- },
38875
- "privateAcl": {
38876
- "widget": "checkbox",
38877
- "instructions": "Disable public access to deployed files. This is useful when fronting S3 with CloudFront or with \"Block All Public Access\"",
38878
- "disabled": true
38879
- }
38880
- }
38881
- },
38882
- "gcs": {
38883
- "order": [
38884
38755
  "destination",
38885
38756
  "idKey",
38886
38757
  "secretKey",
38887
- "privateAcl"
38758
+ "environmentVariables"
38888
38759
  ],
38889
38760
  "properties": {
38890
- "destination": {
38891
- "widget": "singleLineText",
38892
- "instructions": "Deployment Bucket Name",
38893
- "disabled": true
38894
- },
38895
- "idKey": {
38761
+ "title": {
38896
38762
  "widget": "singleLineText",
38897
- "instructions": "Google Cloud Storage Client Email",
38898
38763
  "disabled": true
38899
38764
  },
38900
- "secretKey": {
38901
- "widget": "sensitiveField",
38902
- "instructions": "Google Cloud Storage Private Key",
38903
- "multiline": true,
38765
+ "provider": {
38766
+ "widget": "dropdown",
38904
38767
  "disabled": true
38905
38768
  },
38906
- "privateAcl": {
38907
- "widget": "checkbox",
38908
- "instructions": "Disable public access to deployed files.",
38909
- "disabled": true
38910
- }
38911
- }
38912
- },
38913
- "ftp": {
38914
- "order": [
38915
- "destination",
38916
- "idKey",
38917
- "secretKey"
38918
- ],
38919
- "properties": {
38920
38769
  "destination": {
38921
38770
  "widget": "singleLineText",
38922
- "instructions": "FTP Host",
38771
+ "instructions": "Deployment Bucket or FTP Host",
38923
38772
  "disabled": true
38924
38773
  },
38925
38774
  "idKey": {
38926
38775
  "widget": "singleLineText",
38927
- "instructions": "FTP Username",
38776
+ "instructions": "AWS Access Key ID or Google Cloud Storage Client Email or FTP Username",
38928
38777
  "disabled": true
38929
38778
  },
38930
38779
  "secretKey": {
38931
38780
  "widget": "sensitiveField",
38932
- "instructions": "FTP Password",
38781
+ "instructions": "AWS Secret Access Key or Google Cloud Storage Private Key or FTP Password",
38933
38782
  "multiline": true,
38934
38783
  "disabled": true
38935
- }
38936
- }
38937
- },
38938
- "azure": {
38939
- "order": [
38940
- "destination",
38941
- "secretKey"
38942
- ],
38943
- "properties": {
38944
- "destination": {
38945
- "widget": "singleLineText",
38946
- "instructions": "Storage Account Name",
38947
- "disabled": true
38948
38784
  },
38949
- "secretKey": {
38950
- "widget": "sensitiveField",
38951
- "instructions": "Access key",
38952
- "multiline": true,
38953
- "disabled": true
38954
- }
38955
- }
38956
- },
38957
- "netlify": {
38958
- "order": [
38959
- "destination"
38960
- ],
38961
- "properties": {
38962
- "destination": {
38963
- "widget": "publishTargets",
38964
- "itemTemplate": "siteDropdownItem",
38965
- "instructions": "Choose existing or create a new site.",
38966
- "disabled": true
38967
- }
38968
- }
38969
- },
38970
- "vercel": {
38971
- "order": [
38972
- "destination"
38973
- ],
38974
- "properties": {
38975
- "destination": {
38976
- "widget": "publishTargets",
38977
- "itemTemplate": "siteDropdownItem",
38978
- "instructions": "Choose existing or create a new project.",
38785
+ "environmentVariables": {
38786
+ "widget": "shapeArray",
38979
38787
  "disabled": true
38980
38788
  }
38981
38789
  }
@@ -49081,262 +49081,70 @@
49081
49081
  }
49082
49082
  }
49083
49083
  },
49084
- "TSStaticSite": {
49084
+ "TSStaticSiteEnvironmentVariables": {
49085
49085
  "default": {
49086
+ "widget": "repeater",
49086
49087
  "order": [
49087
- "title",
49088
- "provider",
49089
- "destination",
49090
- "idKey",
49091
- "secretKey",
49092
- "environmentVariables"
49088
+ "name",
49089
+ "value"
49093
49090
  ],
49091
+ "disabled": true,
49094
49092
  "properties": {
49095
- "title": {
49093
+ "name": {
49096
49094
  "widget": "singleLineText",
49097
49095
  "disabled": true
49098
49096
  },
49099
- "provider": {
49100
- "widget": "dropdown",
49101
- "disabled": true
49102
- },
49103
- "destination": {
49104
- "widget": "singleLineText",
49105
- "instructions": "Deployment Bucket or FTP Host",
49106
- "disabled": true
49107
- },
49108
- "idKey": {
49097
+ "value": {
49109
49098
  "widget": "singleLineText",
49110
- "instructions": "AWS Access Key ID or Google Cloud Storage Client Email or FTP Username",
49111
- "disabled": true
49112
- },
49113
- "secretKey": {
49114
- "widget": "sensitiveField",
49115
- "instructions": "AWS Secret Access Key or Google Cloud Storage Private Key or FTP Password",
49116
- "multiline": true,
49117
49099
  "disabled": true
49118
- },
49119
- "environmentVariables": {
49120
- "widget": "repeater",
49121
- "order": [
49122
- "name",
49123
- "value"
49124
- ],
49125
- "disabled": true,
49126
- "properties": {
49127
- "name": {
49128
- "widget": "singleLineText",
49129
- "disabled": true
49130
- },
49131
- "value": {
49132
- "widget": "singleLineText",
49133
- "disabled": true
49134
- }
49135
- }
49136
49100
  }
49137
49101
  }
49138
- },
49139
- "generalHeader": {
49102
+ }
49103
+ },
49104
+ "TSStaticSite": {
49105
+ "default": {
49140
49106
  "order": [
49141
49107
  "title",
49142
49108
  "provider",
49143
- "baseUrl"
49144
- ],
49145
- "properties": {
49146
- "title": {
49147
- "widget": "singleLineText",
49148
- "disabled": true
49149
- },
49150
- "provider": {
49151
- "widget": "dropdown",
49152
- "disabled": true
49153
- },
49154
- "baseUrl": {
49155
- "widget": "singleLineText",
49156
- "disabled": true
49157
- }
49158
- }
49159
- },
49160
- "generalFooter": {
49161
- "order": [
49162
- "environmentVariables",
49163
- "triggers"
49164
- ],
49165
- "properties": {
49166
- "environmentVariables": {
49167
- "widget": "repeater",
49168
- "order": [
49169
- "name",
49170
- "value"
49171
- ],
49172
- "disabled": true,
49173
- "properties": {
49174
- "name": {
49175
- "widget": "singleLineText",
49176
- "disabled": true
49177
- },
49178
- "value": {
49179
- "widget": "singleLineText",
49180
- "disabled": true
49181
- }
49182
- }
49183
- },
49184
- "triggers": {
49185
- "widget": "repeater",
49186
- "order": [
49187
- "contentTypeId",
49188
- "status"
49189
- ],
49190
- "disabled": true,
49191
- "preview": "siteTriggerPreview",
49192
- "properties": {
49193
- "contentTypeId": {
49194
- "widget": "dropdown",
49195
- "disabled": true
49196
- },
49197
- "status": {
49198
- "widget": "dropdown",
49199
- "disabled": true
49200
- }
49201
- }
49202
- }
49203
- }
49204
- },
49205
- "s3": {
49206
- "order": [
49207
- "destination",
49208
- "idKey",
49209
- "secretKey",
49210
- "privateAcl"
49211
- ],
49212
- "properties": {
49213
- "destination": {
49214
- "widget": "singleLineText",
49215
- "instructions": "Deployment Bucket Name",
49216
- "disabled": true
49217
- },
49218
- "idKey": {
49219
- "widget": "singleLineText",
49220
- "instructions": "AWS Access Key ID",
49221
- "disabled": true
49222
- },
49223
- "secretKey": {
49224
- "widget": "sensitiveField",
49225
- "instructions": "AWS Secret Access Key",
49226
- "multiline": true,
49227
- "disabled": true
49228
- },
49229
- "privateAcl": {
49230
- "widget": "checkbox",
49231
- "instructions": "Disable public access to deployed files. This is useful when fronting S3 with CloudFront or with \"Block All Public Access\"",
49232
- "disabled": true
49233
- }
49234
- }
49235
- },
49236
- "gcs": {
49237
- "order": [
49238
49109
  "destination",
49239
49110
  "idKey",
49240
49111
  "secretKey",
49241
- "privateAcl"
49112
+ "environmentVariables"
49242
49113
  ],
49243
49114
  "properties": {
49244
- "destination": {
49245
- "widget": "singleLineText",
49246
- "instructions": "Deployment Bucket Name",
49247
- "disabled": true
49248
- },
49249
- "idKey": {
49115
+ "title": {
49250
49116
  "widget": "singleLineText",
49251
- "instructions": "Google Cloud Storage Client Email",
49252
49117
  "disabled": true
49253
49118
  },
49254
- "secretKey": {
49255
- "widget": "sensitiveField",
49256
- "instructions": "Google Cloud Storage Private Key",
49257
- "multiline": true,
49119
+ "provider": {
49120
+ "widget": "dropdown",
49258
49121
  "disabled": true
49259
49122
  },
49260
- "privateAcl": {
49261
- "widget": "checkbox",
49262
- "instructions": "Disable public access to deployed files.",
49263
- "disabled": true
49264
- }
49265
- }
49266
- },
49267
- "ftp": {
49268
- "order": [
49269
- "destination",
49270
- "idKey",
49271
- "secretKey"
49272
- ],
49273
- "properties": {
49274
49123
  "destination": {
49275
49124
  "widget": "singleLineText",
49276
- "instructions": "FTP Host",
49125
+ "instructions": "Deployment Bucket or FTP Host",
49277
49126
  "disabled": true
49278
49127
  },
49279
49128
  "idKey": {
49280
49129
  "widget": "singleLineText",
49281
- "instructions": "FTP Username",
49130
+ "instructions": "AWS Access Key ID or Google Cloud Storage Client Email or FTP Username",
49282
49131
  "disabled": true
49283
49132
  },
49284
49133
  "secretKey": {
49285
49134
  "widget": "sensitiveField",
49286
- "instructions": "FTP Password",
49135
+ "instructions": "AWS Secret Access Key or Google Cloud Storage Private Key or FTP Password",
49287
49136
  "multiline": true,
49288
49137
  "disabled": true
49289
- }
49290
- }
49291
- },
49292
- "azure": {
49293
- "order": [
49294
- "destination",
49295
- "secretKey"
49296
- ],
49297
- "properties": {
49298
- "destination": {
49299
- "widget": "singleLineText",
49300
- "instructions": "Storage Account Name",
49301
- "disabled": true
49302
49138
  },
49303
- "secretKey": {
49304
- "widget": "sensitiveField",
49305
- "instructions": "Access key",
49306
- "multiline": true,
49307
- "disabled": true
49308
- }
49309
- }
49310
- },
49311
- "netlify": {
49312
- "order": [
49313
- "destination"
49314
- ],
49315
- "properties": {
49316
- "destination": {
49317
- "widget": "publishTargets",
49318
- "itemTemplate": "siteDropdownItem",
49319
- "instructions": "Choose existing or create a new site.",
49320
- "disabled": true
49321
- }
49322
- }
49323
- },
49324
- "vercel": {
49325
- "order": [
49326
- "destination"
49327
- ],
49328
- "properties": {
49329
- "destination": {
49330
- "widget": "publishTargets",
49331
- "itemTemplate": "siteDropdownItem",
49332
- "instructions": "Choose existing or create a new project.",
49139
+ "environmentVariables": {
49140
+ "widget": "shapeArray",
49333
49141
  "disabled": true
49334
49142
  }
49335
49143
  }
49336
49144
  }
49337
49145
  }
49338
49146
  },
49339
- "schemaVersion": "3.33.0",
49147
+ "schemaVersion": "3.34.0",
49340
49148
  "apiVersion": "2",
49341
49149
  "services": {
49342
49150
  "shopify": {