@shopify/cli 3.60.0 → 3.60.1
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/{chunk-EANTE4MT.js → chunk-4LDHNDYE.js} +4 -4
- package/dist/{chunk-IZU2AQEQ.js → chunk-5AS274TH.js} +1 -1
- package/dist/{chunk-BIDUT2RV.js → chunk-6HKMY2UF.js} +2 -2
- package/dist/{chunk-DQNIIVBG.js → chunk-6IDIGZKI.js} +1 -1
- package/dist/{chunk-7VU6FOLD.js → chunk-76FPU4Y4.js} +3 -3
- package/dist/{chunk-ZCRCEEIR.js → chunk-7DPKKYLI.js} +3 -3
- package/dist/{chunk-7ORYLSDK.js → chunk-A63WAXQ5.js} +1 -1
- package/dist/{chunk-Y4AOSTJD.js → chunk-BKLNHG3A.js} +4 -4
- package/dist/{chunk-BSOZ6PRB.js → chunk-GZXEPYCR.js} +1 -1
- package/dist/{chunk-YVHTE4VJ.js → chunk-I5U2GOJX.js} +2 -2
- package/dist/{chunk-KEIEB4WC.js → chunk-IDJLU3F6.js} +2 -2
- package/dist/{chunk-W7VW72CK.js → chunk-IKV3JAIE.js} +2 -2
- package/dist/{chunk-URD52LAO.js → chunk-IN5IG3IS.js} +1 -1
- package/dist/{chunk-RZVQGETB.js → chunk-KPUG3N6O.js} +3 -3
- package/dist/{chunk-NAXATNVY.js → chunk-M2LKXZGR.js} +4 -4
- package/dist/{chunk-ZLSD2RNR.js → chunk-OK6RFX7A.js} +1 -1
- package/dist/{chunk-B4622FYO.js → chunk-QE677YMX.js} +1 -1
- package/dist/{chunk-U2VYZHIW.js → chunk-QGJ5DP4W.js} +3 -3
- package/dist/{chunk-2T7IS53S.js → chunk-QNRAAJ6E.js} +2 -2
- package/dist/{chunk-4HU62A6V.js → chunk-QU5QY6ID.js} +3 -3
- package/dist/{chunk-PU5KGSLR.js → chunk-R2FRHR2E.js} +2 -2
- package/dist/{chunk-NQYIB3IR.js → chunk-S42TVKB4.js} +2 -2
- package/dist/{chunk-RNLLSL24.js → chunk-SQR2WUOU.js} +2 -2
- package/dist/{chunk-3RAXFENB.js → chunk-STBFB2GC.js} +2 -2
- package/dist/{chunk-55F2DQCB.js → chunk-UJNJ5XCL.js} +1 -1
- package/dist/{chunk-2EVDXDJS.js → chunk-UQNUIOTG.js} +1 -1
- package/dist/{chunk-FVRSV2AX.js → chunk-VQWQFBVA.js} +1 -1
- package/dist/{chunk-T3QDR67D.js → chunk-WC5J3EVR.js} +3 -3
- package/dist/{chunk-LDKJK42D.js → chunk-WWX3LICJ.js} +4 -4
- package/dist/{chunk-G56QICQP.js → chunk-Z3ORRLFL.js} +1 -1
- package/dist/{chunk-BUQTR47W.js → chunk-ZDPFPYD3.js} +3 -3
- package/dist/cli/commands/auth/logout.js +9 -9
- package/dist/cli/commands/auth/logout.test.js +10 -10
- package/dist/cli/commands/debug/command-flags.js +9 -9
- package/dist/cli/commands/demo/catalog.js +10 -10
- package/dist/cli/commands/demo/generate-file.js +10 -10
- package/dist/cli/commands/demo/index.js +9 -9
- package/dist/cli/commands/demo/print-ai-prompt.js +10 -10
- package/dist/cli/commands/docs/generate.js +9 -9
- package/dist/cli/commands/docs/generate.test.js +9 -9
- package/dist/cli/commands/help.js +9 -9
- package/dist/cli/commands/hydrogen/init.js +9 -9
- package/dist/cli/commands/kitchen-sink/async.js +10 -10
- package/dist/cli/commands/kitchen-sink/async.test.js +10 -10
- package/dist/cli/commands/kitchen-sink/index.js +12 -12
- package/dist/cli/commands/kitchen-sink/index.test.js +12 -12
- package/dist/cli/commands/kitchen-sink/prompts.js +10 -10
- package/dist/cli/commands/kitchen-sink/prompts.test.js +10 -10
- package/dist/cli/commands/kitchen-sink/static.js +10 -10
- package/dist/cli/commands/kitchen-sink/static.test.js +10 -10
- package/dist/cli/commands/search.js +10 -10
- package/dist/cli/commands/upgrade.js +9 -9
- package/dist/cli/commands/version.js +10 -10
- package/dist/cli/commands/version.test.js +10 -10
- package/dist/cli/services/commands/search.js +2 -2
- package/dist/cli/services/commands/search.test.js +2 -2
- package/dist/cli/services/commands/version.js +4 -4
- package/dist/cli/services/commands/version.test.js +5 -5
- package/dist/cli/services/demo.js +2 -2
- package/dist/cli/services/demo.test.js +2 -2
- package/dist/cli/services/kitchen-sink/async.js +2 -2
- package/dist/cli/services/kitchen-sink/prompts.js +2 -2
- package/dist/cli/services/kitchen-sink/static.js +2 -2
- package/dist/cli/services/upgrade.js +3 -3
- package/dist/cli/services/upgrade.test.js +5 -5
- package/dist/{custom-oclif-loader-2FLACCMK.js → custom-oclif-loader-SV4V5NXW.js} +1 -1
- package/dist/data/app_block_entry.json +13 -0
- package/dist/data/default_setting_values.json +24 -0
- package/dist/data/filters.json +5818 -0
- package/dist/data/latest.json +2 -0
- package/dist/data/local_block_entry.json +25 -0
- package/dist/data/manifest_theme.json +17 -0
- package/dist/data/manifest_theme_app_extension.json +10 -0
- package/dist/data/objects.json +21250 -0
- package/dist/data/section.json +241 -0
- package/dist/data/setting.json +913 -0
- package/dist/data/settings.json +10 -0
- package/dist/data/shopify_system_translations.json +1882 -0
- package/dist/data/tags.json +1273 -0
- package/dist/data/targetted_block_entry.json +15 -0
- package/dist/data/theme_block.json +123 -0
- package/dist/data/theme_block_entry.json +14 -0
- package/dist/data/theme_settings.json +83 -0
- package/dist/data/translations.json +56 -0
- package/dist/{error-handler-RU2ELIV6.js → error-handler-WRZSR3LR.js} +7 -7
- package/dist/hooks/init.js +1 -1
- package/dist/hooks/postrun.js +6 -6
- package/dist/hooks/prerun.js +4 -4
- package/dist/index.js +507 -461
- package/dist/{local-IWFESFES.js → local-A6DCNVDB.js} +1 -1
- package/dist/{node-package-manager-HBYFQNJQ.js → node-package-manager-CLN2ZN2M.js} +2 -2
- package/dist/{system-KY2XFEXZ.js → system-OPIC6REP.js} +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-MN3VE2TA.js → ui-WTE37V74.js} +1 -1
- package/oclif.manifest.json +1 -17
- package/package.json +3 -3
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "Shopify Liquid Theme Section Schema",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"properties": {
|
|
7
|
+
"name": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "The name attribute determines the section title that is shown in the theme editor.",
|
|
10
|
+
"markdownDescription": "The `name` attribute determines the section title that is shown in the theme editor.\n\n---\n\n[Shopify reference](https://shopify.dev/docs/themes/architecture/sections/section-schema#name)"
|
|
11
|
+
},
|
|
12
|
+
|
|
13
|
+
"tag": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "The HTML element that is used to wrap the section.",
|
|
16
|
+
"markdownDescription": "The HTML element that is used to wrap the section.\n\n---\n\n[Shopify reference](https://shopify.dev/docs/themes/architecture/sections/section-schema#tag)",
|
|
17
|
+
"enum": ["article", "aside", "div", "footer", "header", "section"]
|
|
18
|
+
},
|
|
19
|
+
|
|
20
|
+
"class": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"description": "Additional CSS class for the section.",
|
|
23
|
+
"markdownDescription": "Additional CSS class for the section.\n\n---\n\n[Shopify reference](https://shopify.dev/docs/themes/architecture/sections/section-schema#class)"
|
|
24
|
+
},
|
|
25
|
+
|
|
26
|
+
"limit": {
|
|
27
|
+
"type": "integer",
|
|
28
|
+
"description": "The number of times a section can be added to a template or section group.",
|
|
29
|
+
"markdownDescription": "The number of times a section can be added to a template or section group.\n\n---\n\n[Shopify reference](https://shopify.dev/docs/themes/architecture/sections/section-schema#limit)",
|
|
30
|
+
"minimum": 1,
|
|
31
|
+
"maximum": 2
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
"settings": {
|
|
35
|
+
"$ref": "./settings.json"
|
|
36
|
+
},
|
|
37
|
+
|
|
38
|
+
"max_blocks": {
|
|
39
|
+
"type": "integer",
|
|
40
|
+
"description": "There's a limit of 50 blocks per section. You can specify a lower limit with the max_blocks attribute",
|
|
41
|
+
"markdownDescription": "There's a limit of 50 blocks per section. You can specify a lower limit with the `max_blocks` attribute.\n\n---\n\n[Shopify reference](https://shopify.dev/docs/themes/architecture/sections/section-schema#max_blocks)",
|
|
42
|
+
"minimum": 1,
|
|
43
|
+
"maximum": 50
|
|
44
|
+
},
|
|
45
|
+
|
|
46
|
+
"blocks": {
|
|
47
|
+
"type": "array",
|
|
48
|
+
"description": "Blocks are reusable modules of content that can be added, removed, and reordered within a section.",
|
|
49
|
+
"markdownDescription": "Blocks are reusable modules of content that can be added, removed, and reordered within a section.\n\n---\n\n[Shopify reference](https://shopify.dev/docs/themes/architecture/sections/section-schema#blocks)",
|
|
50
|
+
"properties": {
|
|
51
|
+
"type": {
|
|
52
|
+
"description": "The block type. Can be one of the following values: @theme, @app, or a custom block type.",
|
|
53
|
+
"markdownDescription": "The block type. Can be one of the following values: @theme, @app, or a custom block type.\n\n---\n\n[Shopify reference](https://shopify.dev/docs/themes/architecture/sections/section-schema#blocks)"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"items": {
|
|
57
|
+
"type": "object",
|
|
58
|
+
"required": ["type"],
|
|
59
|
+
"properties": {
|
|
60
|
+
"type": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"description": "The type of block that can be added to this block.",
|
|
63
|
+
"markdownDescription": "The type of block that can be added to this block.\n\n---\n\n[Shopify reference](https://shopify.dev/docs/themes/architecture/blocks/theme-blocks/schema#blocks)"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"$comment": "The allOf rule here exists because that's how we do discriminated unions in JSON schemas. If a rule matches, that rule will be used to document the type property. Otherwise we fallback to the docs above.",
|
|
67
|
+
"allOf": [
|
|
68
|
+
{
|
|
69
|
+
"if": { "required": ["type"], "properties": { "type": { "const": "@theme" } } },
|
|
70
|
+
"then": { "$ref": "./theme_block_entry.json" }
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"if": { "required": ["type"], "properties": { "type": { "const": "@app" } } },
|
|
74
|
+
"then": { "$ref": "./app_block_entry.json" }
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"if": {
|
|
78
|
+
"required": ["type"],
|
|
79
|
+
"properties": {
|
|
80
|
+
"type": {
|
|
81
|
+
"type": "string",
|
|
82
|
+
"not": { "enum": ["@app", "@theme"] }
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"then": {
|
|
87
|
+
"oneOf": [
|
|
88
|
+
{ "$ref": "./targetted_block_entry.json" },
|
|
89
|
+
{ "$ref": "./local_block_entry.json" }
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
|
|
97
|
+
"presets": {
|
|
98
|
+
"type": "array",
|
|
99
|
+
"description": "Presets are default configurations of sections that enable users to easily add a section to a JSON template through the theme editor.",
|
|
100
|
+
"markdownDescription": "Presets are default configurations of sections that enable users to easily add a section to a [JSON template](https://shopify.dev/docs/themes/architecture/templates/json-templates) through the theme editor.\n\n---\n\n[Shopify reference](https://shopify.dev/docs/themes/architecture/sections/section-schema#presets)",
|
|
101
|
+
"items": {
|
|
102
|
+
"type": "object",
|
|
103
|
+
"required": ["name"],
|
|
104
|
+
"properties": {
|
|
105
|
+
"name": {
|
|
106
|
+
"type": "string",
|
|
107
|
+
"description": "The preset name, which will show in the Add section picker of the theme editor.",
|
|
108
|
+
"markdownDescription": "The preset name, which will show in the Add section picker of the theme editor.\n\n---\n\n[Shopify reference](https://shopify.dev/docs/themes/architecture/sections/section-schema#presets)"
|
|
109
|
+
},
|
|
110
|
+
"settings": {
|
|
111
|
+
"$ref": "./default_setting_values.json"
|
|
112
|
+
},
|
|
113
|
+
"blocks": {
|
|
114
|
+
"type": "array",
|
|
115
|
+
"description": "Default blocks configurations to ship with this preset.",
|
|
116
|
+
"markdownDescription": "Default blocks configurations to ship with this preset.\n\n---\n\n[Shopify reference](https://shopify.dev/docs/themes/architecture/sections/section-schema#presets)",
|
|
117
|
+
"items": {
|
|
118
|
+
"type": "object",
|
|
119
|
+
"required": ["type"],
|
|
120
|
+
"additionalProperties": false,
|
|
121
|
+
"properties": {
|
|
122
|
+
"type": {
|
|
123
|
+
"type": "string",
|
|
124
|
+
"description": "The block type."
|
|
125
|
+
},
|
|
126
|
+
"settings": {
|
|
127
|
+
"$ref": "./default_setting_values.json"
|
|
128
|
+
},
|
|
129
|
+
"blocks": {
|
|
130
|
+
"$ref": "#/properties/presets/items/properties/blocks"
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
|
|
139
|
+
"default": {
|
|
140
|
+
"type": "object",
|
|
141
|
+
"description": "Default configuration for statically rendered sections.",
|
|
142
|
+
"markdownDescription": "Default configuration for statically rendered sections.\n\n---\n\n[Shopify reference](https://shopify.dev/docs/themes/architecture/sections/section-schema#default)",
|
|
143
|
+
"properties": {
|
|
144
|
+
"settings": {
|
|
145
|
+
"$ref": "./default_setting_values.json"
|
|
146
|
+
},
|
|
147
|
+
"blocks": {
|
|
148
|
+
"type": "array",
|
|
149
|
+
"description": "Default blocks configurations to ship with this default.",
|
|
150
|
+
"markdownDescription": "Default blocks configurations to ship with this default.\n\n---\n\n[Shopify reference](https://shopify.dev/docs/themes/architecture/sections/section-schema#default)",
|
|
151
|
+
"items": {
|
|
152
|
+
"type": "object",
|
|
153
|
+
"required": ["type"],
|
|
154
|
+
"properties": {
|
|
155
|
+
"type": {
|
|
156
|
+
"type": "string",
|
|
157
|
+
"description": "The block type."
|
|
158
|
+
},
|
|
159
|
+
"settings": {
|
|
160
|
+
"$ref": "./default_setting_values.json"
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
|
|
168
|
+
"locales": {
|
|
169
|
+
"type": "object",
|
|
170
|
+
"description": "Sections can provide their own set of translated strings through the locales object. This is separate from the locales directory of the theme, which makes it a useful feature for sections that are meant to be installed on multiple themes or shops.",
|
|
171
|
+
"markdownDescription": "Sections can provide their own set of translated strings through the `locales` object. This is separate from the `locales` directory of the theme, which makes it a useful feature for sections that are meant to be installed on multiple themes or shops.\n\n---\n\n[Shopify reference](https://shopify.dev/docs/themes/architecture/sections/section-schema#locales)",
|
|
172
|
+
"additionalProperties": {
|
|
173
|
+
"type": "object",
|
|
174
|
+
"additionalProperties": {
|
|
175
|
+
"type": "string"
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
|
|
180
|
+
"enabled_on": {
|
|
181
|
+
"description": "Restrict the section to certain template page types and section group types.",
|
|
182
|
+
"markdownDescription": "Restrict the section to certain template page types and section group types.\n\n---\n\n[Shopify reference](https://shopify.dev/docs/themes/architecture/sections/section-schema#enabled_on)",
|
|
183
|
+
"$ref": "#/definitions/sectionToggle"
|
|
184
|
+
},
|
|
185
|
+
|
|
186
|
+
"disabled_on": {
|
|
187
|
+
"description": "Prevent the section from being used on certain template page types and section group types.",
|
|
188
|
+
"markdownDescription": "Prevent the section from being used on certain template page types and section group types.\n\n---\n\n[Shopify reference](https://shopify.dev/docs/themes/architecture/sections/section-schema#disabled_on)",
|
|
189
|
+
"$ref": "#/definitions/sectionToggle"
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
|
|
193
|
+
"definitions": {
|
|
194
|
+
"sectionToggle": {
|
|
195
|
+
"type": "object",
|
|
196
|
+
"description": "Restrict the section to certain template page types and section group types.",
|
|
197
|
+
"additionalProperties": false,
|
|
198
|
+
"properties": {
|
|
199
|
+
"templates": {
|
|
200
|
+
"type": "array",
|
|
201
|
+
"items": {
|
|
202
|
+
"type": "string",
|
|
203
|
+
"enum": [
|
|
204
|
+
"*",
|
|
205
|
+
"404",
|
|
206
|
+
"article",
|
|
207
|
+
"blog",
|
|
208
|
+
"captcha",
|
|
209
|
+
"cart",
|
|
210
|
+
"collection",
|
|
211
|
+
"customers/account",
|
|
212
|
+
"customers/activate_account",
|
|
213
|
+
"customers/addresses",
|
|
214
|
+
"customers/login",
|
|
215
|
+
"customers/order",
|
|
216
|
+
"customers/register",
|
|
217
|
+
"customers/reset_password",
|
|
218
|
+
"gift_card",
|
|
219
|
+
"index",
|
|
220
|
+
"list-collections",
|
|
221
|
+
"metaobject",
|
|
222
|
+
"page",
|
|
223
|
+
"password",
|
|
224
|
+
"policy",
|
|
225
|
+
"product",
|
|
226
|
+
"search"
|
|
227
|
+
]
|
|
228
|
+
},
|
|
229
|
+
"uniqueItems": true
|
|
230
|
+
},
|
|
231
|
+
"groups": {
|
|
232
|
+
"type": "array",
|
|
233
|
+
"items": {
|
|
234
|
+
"type": "string"
|
|
235
|
+
},
|
|
236
|
+
"uniqueItems": true
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|