@augeo/smelt 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/settings.json +11 -0
- package/.github/workflows/verify.yml +64 -0
- package/.gitmodules +3 -0
- package/.prettierignore +25 -0
- package/.prettierrc.cjs +9 -0
- package/.zed/settings.json +21 -0
- package/AGENTS.md +232 -0
- package/LICENSE +21 -0
- package/README.md +266 -0
- package/biome.json +58 -0
- package/dist/cli.d.mts +1 -0
- package/dist/cli.mjs +350 -0
- package/dist/schema.d.mts +265 -0
- package/dist/schema.mjs +21 -0
- package/docs/TESTING.md +293 -0
- package/docs/assets-plan.md +197 -0
- package/docs/build-spec.md +466 -0
- package/docs/library-conversion-plan.md +419 -0
- package/example/.gitattributes +7 -0
- package/example/.shopifyignore +28 -0
- package/example/.theme-check.yml +7 -0
- package/example/blocks/_built--sections--hero--blocks--feature.liquid +52 -0
- package/example/config/settings_schema.json +10 -0
- package/example/layout/theme.liquid +25 -0
- package/example/locales/en.default.json +1 -0
- package/example/package-lock.json +51 -0
- package/example/package.json +20 -0
- package/example/sections/built--sections--hero.liquid +83 -0
- package/example/snippets/built--components--button.liquid +38 -0
- package/example/snippets/built--components--card.liquid +33 -0
- package/example/src/components/button/button.css +13 -0
- package/example/src/components/card/card.css +16 -0
- package/example/src/components/card/card.liquid +9 -0
- package/example/src/sections/hero/blocks/feature/feature.css +11 -0
- package/example/src/sections/hero/blocks/feature/feature.liquid +9 -0
- package/example/src/sections/hero/blocks/feature/feature.schema.ts +14 -0
- package/example/src/sections/hero/hero.css +15 -0
- package/example/src/sections/hero/hero.liquid +16 -0
- package/example/src/sections/hero/hero.schema.ts +26 -0
- package/example/src/sections/hero/hero.test.ts +43 -0
- package/example/src/utilities/labels.ts +5 -0
- package/example/templates/index.liquid +1 -0
- package/example/tsconfig.json +10 -0
- package/example/vitest.config.ts +6 -0
- package/lib/build/build.test.ts +475 -0
- package/lib/build/build.ts +314 -0
- package/lib/build/command.ts +27 -0
- package/lib/build/index.ts +1 -0
- package/lib/cli.ts +17 -0
- package/lib/dev/command.ts +25 -0
- package/lib/dev/index.ts +1 -0
- package/lib/dev/watch.ts +52 -0
- package/lib/resolver.test.ts +275 -0
- package/lib/resolver.ts +156 -0
- package/lib/schema.ts +37 -0
- package/package.json +59 -0
- package/scripts/codegen-schema.ts +66 -0
- package/src/components/button/button.css +13 -0
- package/src/components/button/button.liquid +5 -0
- package/src/components/button/button.ts +5 -0
- package/src/tsconfig.json +10 -0
- package/tests/example.test.ts +101 -0
- package/tsconfig.json +20 -0
- package/tsdown.config.ts +14 -0
- package/vendor/theme-liquid-docs/.gitattributes +10 -0
- package/vendor/theme-liquid-docs/.github/CODEOWNERS +1 -0
- package/vendor/theme-liquid-docs/.github/CODE_OF_CONDUCT.md +73 -0
- package/vendor/theme-liquid-docs/.github/ISSUE_TEMPLATE/bug_report.md +17 -0
- package/vendor/theme-liquid-docs/.github/ISSUE_TEMPLATE/feature_request.md +17 -0
- package/vendor/theme-liquid-docs/.github/dependabot.yaml +6 -0
- package/vendor/theme-liquid-docs/.github/workflows/ci.yml +33 -0
- package/vendor/theme-liquid-docs/.github/workflows/cla.yml +27 -0
- package/vendor/theme-liquid-docs/.github/workflows/shopify-dev-preview-automation.yml +86 -0
- package/vendor/theme-liquid-docs/.github/workflows/update-latest.yml +56 -0
- package/vendor/theme-liquid-docs/.prettierrc.json +16 -0
- package/vendor/theme-liquid-docs/.vscode/settings.json +28 -0
- package/vendor/theme-liquid-docs/LICENSE.md +7 -0
- package/vendor/theme-liquid-docs/README.md +48 -0
- package/vendor/theme-liquid-docs/ai/claude/CLAUDE.md +1485 -0
- package/vendor/theme-liquid-docs/ai/cursor/rules/assets.mdc +15 -0
- package/vendor/theme-liquid-docs/ai/cursor/rules/blocks.mdc +339 -0
- package/vendor/theme-liquid-docs/ai/cursor/rules/examples/block-example-group.mdc +103 -0
- package/vendor/theme-liquid-docs/ai/cursor/rules/examples/block-example-text.mdc +59 -0
- package/vendor/theme-liquid-docs/ai/cursor/rules/examples/section-example.mdc +61 -0
- package/vendor/theme-liquid-docs/ai/cursor/rules/examples/snippet-example.mdc +72 -0
- package/vendor/theme-liquid-docs/ai/cursor/rules/liquid.mdc +837 -0
- package/vendor/theme-liquid-docs/ai/cursor/rules/locales.mdc +100 -0
- package/vendor/theme-liquid-docs/ai/cursor/rules/localization.mdc +67 -0
- package/vendor/theme-liquid-docs/ai/cursor/rules/mcp.mdc +2 -0
- package/vendor/theme-liquid-docs/ai/cursor/rules/schemas.mdc +184 -0
- package/vendor/theme-liquid-docs/ai/cursor/rules/sections.mdc +84 -0
- package/vendor/theme-liquid-docs/ai/cursor/rules/settings-schema.mdc +51 -0
- package/vendor/theme-liquid-docs/ai/cursor/rules/snippets.mdc +119 -0
- package/vendor/theme-liquid-docs/ai/github/copilot-instructions.md +1485 -0
- package/vendor/theme-liquid-docs/ai/liquid.mdc +638 -0
- package/vendor/theme-liquid-docs/data/filters.json +6148 -0
- package/vendor/theme-liquid-docs/data/latest.json +2 -0
- package/vendor/theme-liquid-docs/data/objects.json +20594 -0
- package/vendor/theme-liquid-docs/data/shopify_system_translations.json +2586 -0
- package/vendor/theme-liquid-docs/data/tags.json +1276 -0
- package/vendor/theme-liquid-docs/package.json +20 -0
- package/vendor/theme-liquid-docs/schemas/manifest_schema.json +31 -0
- package/vendor/theme-liquid-docs/schemas/manifest_theme.json +19 -0
- package/vendor/theme-liquid-docs/schemas/manifest_theme_app_extension.json +10 -0
- package/vendor/theme-liquid-docs/schemas/theme/app_block_entry.json +13 -0
- package/vendor/theme-liquid-docs/schemas/theme/default_setting_values.json +24 -0
- package/vendor/theme-liquid-docs/schemas/theme/local_block_entry.json +25 -0
- package/vendor/theme-liquid-docs/schemas/theme/preset.json +72 -0
- package/vendor/theme-liquid-docs/schemas/theme/preset_blocks.json +91 -0
- package/vendor/theme-liquid-docs/schemas/theme/section.json +208 -0
- package/vendor/theme-liquid-docs/schemas/theme/setting.json +1413 -0
- package/vendor/theme-liquid-docs/schemas/theme/settings.json +10 -0
- package/vendor/theme-liquid-docs/schemas/theme/targetted_block_entry.json +15 -0
- package/vendor/theme-liquid-docs/schemas/theme/theme_block.json +91 -0
- package/vendor/theme-liquid-docs/schemas/theme/theme_block_entry.json +14 -0
- package/vendor/theme-liquid-docs/schemas/theme/theme_settings.json +83 -0
- package/vendor/theme-liquid-docs/schemas/theme/translations.json +63 -0
- package/vendor/theme-liquid-docs/schemas/update/update_extension_schema_v1.json +186 -0
- package/vendor/theme-liquid-docs/tests/fixtures/section-nested-blocks.json +18 -0
- package/vendor/theme-liquid-docs/tests/fixtures/section-schema-1.json +90 -0
- package/vendor/theme-liquid-docs/tests/fixtures/section-schema-2.json +201 -0
- package/vendor/theme-liquid-docs/tests/fixtures/section-schema-3.json +29 -0
- package/vendor/theme-liquid-docs/tests/fixtures/section-schema-4.json +315 -0
- package/vendor/theme-liquid-docs/tests/fixtures/section-schema-5.json +114 -0
- package/vendor/theme-liquid-docs/tests/fixtures/section-schema-6.json +63 -0
- package/vendor/theme-liquid-docs/tests/fixtures/section-schema-conditional-settings.json +145 -0
- package/vendor/theme-liquid-docs/tests/fixtures/section-schema-preset-blocks-as-hash.json +60 -0
- package/vendor/theme-liquid-docs/tests/fixtures/section-schema-static-block-preset.json +76 -0
- package/vendor/theme-liquid-docs/tests/fixtures/section-settings.json +34 -0
- package/vendor/theme-liquid-docs/tests/fixtures/theme-block-1.json +234 -0
- package/vendor/theme-liquid-docs/tests/fixtures/theme-block-2.json +253 -0
- package/vendor/theme-liquid-docs/tests/fixtures/theme-block-basics.json +48 -0
- package/vendor/theme-liquid-docs/tests/fixtures/theme-block-conditional-settings.json +202 -0
- package/vendor/theme-liquid-docs/tests/fixtures/theme-block-presets-as-hash.json +50 -0
- package/vendor/theme-liquid-docs/tests/fixtures/theme-block-settings.json +34 -0
- package/vendor/theme-liquid-docs/tests/fixtures/theme-settings-all-settings.json +313 -0
- package/vendor/theme-liquid-docs/tests/fixtures/theme-settings-dawn.json +1469 -0
- package/vendor/theme-liquid-docs/tests/fixtures/theme-settings-metadata.json +10 -0
- package/vendor/theme-liquid-docs/tests/fixtures/translations-1.json +14 -0
- package/vendor/theme-liquid-docs/tests/section.spec.ts +367 -0
- package/vendor/theme-liquid-docs/tests/test-constants.ts +58 -0
- package/vendor/theme-liquid-docs/tests/test-helpers.ts +104 -0
- package/vendor/theme-liquid-docs/tests/theme-settings/color_palette.spec.ts +184 -0
- package/vendor/theme-liquid-docs/tests/theme-settings/color_scheme_group.spec.ts +143 -0
- package/vendor/theme-liquid-docs/tests/theme-settings/general.spec.ts +192 -0
- package/vendor/theme-liquid-docs/tests/theme-settings/metaobject.spec.ts +94 -0
- package/vendor/theme-liquid-docs/tests/theme-settings/resource_list.spec.ts +58 -0
- package/vendor/theme-liquid-docs/tests/theme-settings/theme-metadata.spec.ts +59 -0
- package/vendor/theme-liquid-docs/tests/theme_block.spec.ts +266 -0
- package/vendor/theme-liquid-docs/tests/translations_schema.spec.ts +31 -0
- package/vendor/theme-liquid-docs/yarn.lock +543 -0
- package/vitest.config.ts +7 -0
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": "Some category",
|
|
4
|
+
"settings": [
|
|
5
|
+
{
|
|
6
|
+
"type": "checkbox",
|
|
7
|
+
"default": true,
|
|
8
|
+
"id": "my-checkbox",
|
|
9
|
+
"info": "This is a checkbox",
|
|
10
|
+
"label": "The checkbox's label"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"type": "number",
|
|
14
|
+
"id": "products_per_page",
|
|
15
|
+
"label": "Products per page",
|
|
16
|
+
"default": 20
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"type": "radio",
|
|
20
|
+
"id": "logo_aligment",
|
|
21
|
+
"label": "Logo alignment",
|
|
22
|
+
"options": [
|
|
23
|
+
{
|
|
24
|
+
"value": "left",
|
|
25
|
+
"label": "Left"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"value": "centered",
|
|
29
|
+
"label": "Centered"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"default": "left"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"type": "range",
|
|
36
|
+
"id": "font_size",
|
|
37
|
+
"min": 12,
|
|
38
|
+
"max": 24,
|
|
39
|
+
"step": 1,
|
|
40
|
+
"unit": "px",
|
|
41
|
+
"label": "Font size",
|
|
42
|
+
"default": 16
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"type": "select",
|
|
46
|
+
"id": "vertical_alignment",
|
|
47
|
+
"label": "Vertical alignment",
|
|
48
|
+
"options": [
|
|
49
|
+
{
|
|
50
|
+
"value": "top",
|
|
51
|
+
"label": "Top"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"value": "middle",
|
|
55
|
+
"label": "Middle"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"value": "bottom",
|
|
59
|
+
"label": "Bottom"
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
"default": "middle"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"type": "text",
|
|
66
|
+
"id": "my-text",
|
|
67
|
+
"info": "This is a text field",
|
|
68
|
+
"label": "The text field's label"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"type": "textarea",
|
|
72
|
+
"id": "my-textarea",
|
|
73
|
+
"info": "This is a text area",
|
|
74
|
+
"label": "The text area's label"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"type": "article",
|
|
78
|
+
"id": "my-article",
|
|
79
|
+
"info": "This is an article",
|
|
80
|
+
"label": "the article's label"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"type": "article_list",
|
|
84
|
+
"id": "my-article-list",
|
|
85
|
+
"info": "This is an article list",
|
|
86
|
+
"label": "the article list's label",
|
|
87
|
+
"limit": 12
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"type": "blog",
|
|
91
|
+
"id": "my-blog",
|
|
92
|
+
"info": "This is a blog",
|
|
93
|
+
"label": "the blog's label"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"type": "collection",
|
|
97
|
+
"id": "my-collection",
|
|
98
|
+
"info": "This is a collection",
|
|
99
|
+
"label": "the collection's label"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"type": "collection_list",
|
|
103
|
+
"id": "my-collection-list",
|
|
104
|
+
"info": "This is a collection list",
|
|
105
|
+
"label": "the collection list's label"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"type": "color",
|
|
109
|
+
"id": "my-color",
|
|
110
|
+
"info": "This is a color",
|
|
111
|
+
"label": "the color's label",
|
|
112
|
+
"default": "#000000"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"type": "color_background",
|
|
116
|
+
"id": "background",
|
|
117
|
+
"label": "Background",
|
|
118
|
+
"default": "linear-gradient(#ffffff, #000000)"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"type": "color_palette",
|
|
122
|
+
"id": "color_palette",
|
|
123
|
+
"default": {
|
|
124
|
+
"background": "#ffffff",
|
|
125
|
+
"foreground": "#000000"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"type": "color_scheme",
|
|
130
|
+
"id": "color_scheme",
|
|
131
|
+
"default": "scheme_1",
|
|
132
|
+
"label": "Color Scheme"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"type": "color_scheme_group",
|
|
136
|
+
"id": "color_schemes",
|
|
137
|
+
"definition": [
|
|
138
|
+
{
|
|
139
|
+
"type": "header",
|
|
140
|
+
"content": "Typography"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"type": "color",
|
|
144
|
+
"id": "text",
|
|
145
|
+
"label": "Text",
|
|
146
|
+
"default": "#121212"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"type": "header",
|
|
150
|
+
"content": "Background"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"type": "color",
|
|
154
|
+
"id": "background",
|
|
155
|
+
"label": "Background",
|
|
156
|
+
"default": "#FFFFFF"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"type": "color_background",
|
|
160
|
+
"id": "background_gradient",
|
|
161
|
+
"label": "Gradient",
|
|
162
|
+
"info": "Background gradient replaces background where possible."
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"type": "header",
|
|
166
|
+
"content": "Additional"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"type": "color",
|
|
170
|
+
"id": "primary_button",
|
|
171
|
+
"label": "Primary",
|
|
172
|
+
"default": "#121212"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"type": "color",
|
|
176
|
+
"id": "on_primary_button",
|
|
177
|
+
"label": "On Primary Button",
|
|
178
|
+
"default": "#FFFFFF"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"type": "color",
|
|
182
|
+
"id": "primary_button_border",
|
|
183
|
+
"label": "Primary Button Border",
|
|
184
|
+
"default": "#121212"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"type": "color",
|
|
188
|
+
"id": "secondary_button",
|
|
189
|
+
"label": "Secondary Button"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"type": "color",
|
|
193
|
+
"id": "on_secondary_button",
|
|
194
|
+
"label": "On Secondary Button",
|
|
195
|
+
"default": "#121212"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"type": "color",
|
|
199
|
+
"id": "secondary_button_border",
|
|
200
|
+
"label": "Secondary Button Border",
|
|
201
|
+
"default": "#FFFFFF"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"type": "color",
|
|
205
|
+
"id": "icons",
|
|
206
|
+
"label": "Icons",
|
|
207
|
+
"default": "#FFFFFF"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"type": "color",
|
|
211
|
+
"id": "links",
|
|
212
|
+
"label": "Links",
|
|
213
|
+
"default": "#121212"
|
|
214
|
+
}
|
|
215
|
+
],
|
|
216
|
+
"role": {
|
|
217
|
+
"background": {
|
|
218
|
+
"solid": "background",
|
|
219
|
+
"gradient": "background_gradient"
|
|
220
|
+
},
|
|
221
|
+
"text": "text",
|
|
222
|
+
"primary_button": "primary_button",
|
|
223
|
+
"on_primary_button": "on_primary_button",
|
|
224
|
+
"primary_button_border": "primary_button_border",
|
|
225
|
+
"secondary_button": "secondary_button",
|
|
226
|
+
"on_secondary_button": "on_secondary_button",
|
|
227
|
+
"secondary_button_border": "secondary_button_border",
|
|
228
|
+
"icons": "icons",
|
|
229
|
+
"links": "links"
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"type": "font_picker",
|
|
234
|
+
"id": "heading_font",
|
|
235
|
+
"label": "Heading font",
|
|
236
|
+
"default": "helvetica_n4"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"type": "html",
|
|
240
|
+
"id": "video_embed",
|
|
241
|
+
"label": "Video embed"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"type": "image_picker",
|
|
245
|
+
"id": "image_with_text_image",
|
|
246
|
+
"label": "Image"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"type": "inline_richtext",
|
|
250
|
+
"id": "inline",
|
|
251
|
+
"default": "my <i>inline</i> <b>text</b>",
|
|
252
|
+
"label": "Inline rich text"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"type": "link_list",
|
|
256
|
+
"id": "menu",
|
|
257
|
+
"label": "Menu"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"type": "liquid",
|
|
261
|
+
"id": "battery_message",
|
|
262
|
+
"label": "Battery message",
|
|
263
|
+
"default": "{% if product.tags contains 'battery' %}This product can only be shipped by ground.{% else %}This product can be shipped by ground or air.{% endif %}"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"type": "page",
|
|
267
|
+
"id": "page",
|
|
268
|
+
"label": "Page"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"type": "product",
|
|
272
|
+
"id": "product",
|
|
273
|
+
"label": "Product"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"type": "product_list",
|
|
277
|
+
"id": "product_list",
|
|
278
|
+
"label": "Products",
|
|
279
|
+
"limit": 12
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"type": "richtext",
|
|
283
|
+
"id": "paragraph",
|
|
284
|
+
"label": "Paragraph"
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"type": "text_alignment",
|
|
288
|
+
"id": "alignment",
|
|
289
|
+
"label": "Text alignment",
|
|
290
|
+
"default": "center"
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"type": "url",
|
|
294
|
+
"id": "button_link",
|
|
295
|
+
"label": "Button link"
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"type": "video",
|
|
299
|
+
"id": "video",
|
|
300
|
+
"label": "A Shopify-hosted video"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"type": "header",
|
|
304
|
+
"content": "Email Signup",
|
|
305
|
+
"info": "Subscribers added automatically to your “accepted marketing” customer list. [Learn more](https://help.shopify.com/manual/customers/manage-customers)"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"type": "paragraph",
|
|
309
|
+
"content": "All of your collections are listed by default. To customize your list, choose 'Selected' and add collections."
|
|
310
|
+
}
|
|
311
|
+
]
|
|
312
|
+
}
|
|
313
|
+
]
|