@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,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Example Section",
|
|
3
|
+
"tag": "div",
|
|
4
|
+
"class": "example-class",
|
|
5
|
+
"limit": 1,
|
|
6
|
+
"settings": [],
|
|
7
|
+
"max_blocks": 2,
|
|
8
|
+
"blocks": [],
|
|
9
|
+
"presets": [
|
|
10
|
+
{
|
|
11
|
+
"name": "Example Preset",
|
|
12
|
+
"settings": {
|
|
13
|
+
"exampleString": "This is a string",
|
|
14
|
+
"exampleNumber": 123,
|
|
15
|
+
"exampleBoolean": true,
|
|
16
|
+
"exampleArray": ["String 1", "String 2"]
|
|
17
|
+
},
|
|
18
|
+
"blocks": [
|
|
19
|
+
{
|
|
20
|
+
"type": "exampleBlock",
|
|
21
|
+
"settings": {
|
|
22
|
+
"exampleString": "This is a string",
|
|
23
|
+
"exampleNumber": 123,
|
|
24
|
+
"exampleBoolean": true,
|
|
25
|
+
"exampleArray": ["String 1", "String 2"]
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"default": {
|
|
32
|
+
"settings": {
|
|
33
|
+
"exampleString": "This is a string",
|
|
34
|
+
"exampleNumber": 123,
|
|
35
|
+
"exampleBoolean": true,
|
|
36
|
+
"exampleArray": ["String 1", "String 2"]
|
|
37
|
+
},
|
|
38
|
+
"blocks": [
|
|
39
|
+
{
|
|
40
|
+
"type": "exampleBlock",
|
|
41
|
+
"settings": {
|
|
42
|
+
"exampleString": "This is a string",
|
|
43
|
+
"exampleNumber": 123,
|
|
44
|
+
"exampleBoolean": true,
|
|
45
|
+
"exampleArray": ["String 1", "String 2"]
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
"locales": {
|
|
51
|
+
"en": {
|
|
52
|
+
"exampleString": "This is a string"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"enabled_on": {
|
|
56
|
+
"templates": ["index"],
|
|
57
|
+
"groups": ["exampleGroup"]
|
|
58
|
+
},
|
|
59
|
+
"disabled_on": {
|
|
60
|
+
"templates": ["product"],
|
|
61
|
+
"groups": ["exampleGroup2"]
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Custom Section",
|
|
3
|
+
"settings": [
|
|
4
|
+
{
|
|
5
|
+
"type": "header",
|
|
6
|
+
"content": "Advanced Settings",
|
|
7
|
+
"visible_if": "{{ section.settings.show_advanced }}",
|
|
8
|
+
"info": "Configure advanced options below"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"type": "paragraph",
|
|
12
|
+
"content": "This paragraph provides additional context and instructions for the advanced settings section.",
|
|
13
|
+
"visible_if": "{{ section.settings.show_advanced }}"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"type": "checkbox",
|
|
17
|
+
"id": "enable_features",
|
|
18
|
+
"label": "Enable features",
|
|
19
|
+
"default": true,
|
|
20
|
+
"visible_if": "{{ section.settings.show_advanced }}"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"type": "color_background",
|
|
24
|
+
"id": "bg_color",
|
|
25
|
+
"label": "Background Color",
|
|
26
|
+
"default": "#ffffff",
|
|
27
|
+
"visible_if": "{{ section.settings.enable_custom_colors }}"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"type": "color_scheme",
|
|
31
|
+
"id": "color_scheme",
|
|
32
|
+
"label": "Color scheme",
|
|
33
|
+
"visible_if": "{{ section.settings.enable_custom_colors }}"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"type": "color",
|
|
37
|
+
"id": "text_color",
|
|
38
|
+
"label": "Text Color",
|
|
39
|
+
"default": "#000000",
|
|
40
|
+
"visible_if": "{{ section.settings.enable_custom_colors }}"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"type": "font_picker",
|
|
44
|
+
"id": "heading_font",
|
|
45
|
+
"label": "Heading Font",
|
|
46
|
+
"default": "helvetica_n4",
|
|
47
|
+
"visible_if": "{{ section.settings.enable_custom_typography }}"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"type": "html",
|
|
51
|
+
"id": "custom_html",
|
|
52
|
+
"label": "Custom HTML",
|
|
53
|
+
"default": "<p>Add your HTML here</p>",
|
|
54
|
+
"visible_if": "{{ section.settings.enable_custom_code }}"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"type": "image_picker",
|
|
58
|
+
"id": "background_image",
|
|
59
|
+
"label": "Background image",
|
|
60
|
+
"visible_if": "{{ section.settings.enable_background }}"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"type": "inline_richtext",
|
|
64
|
+
"id": "caption",
|
|
65
|
+
"label": "Caption",
|
|
66
|
+
"default": "Add your caption",
|
|
67
|
+
"visible_if": "{{ section.settings.show_caption }}"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"type": "link_list",
|
|
71
|
+
"id": "menu",
|
|
72
|
+
"label": "Menu",
|
|
73
|
+
"default": "main-menu",
|
|
74
|
+
"visible_if": "{{ section.settings.show_navigation }}"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"type": "liquid",
|
|
78
|
+
"id": "custom_liquid",
|
|
79
|
+
"label": "Custom Liquid",
|
|
80
|
+
"default": "{% if customer %}Hello {{ customer.name }}{% endif %}",
|
|
81
|
+
"visible_if": "{{ section.settings.enable_custom_code }}"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"type": "range",
|
|
85
|
+
"id": "content_width",
|
|
86
|
+
"label": "Content width",
|
|
87
|
+
"min": 400,
|
|
88
|
+
"max": 1600,
|
|
89
|
+
"step": 100,
|
|
90
|
+
"unit": "px",
|
|
91
|
+
"default": 1200,
|
|
92
|
+
"visible_if": "{{ section.settings.width_type == 'custom' }}"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"type": "richtext",
|
|
96
|
+
"id": "content",
|
|
97
|
+
"label": "Content",
|
|
98
|
+
"default": "<p>Add your content here</p>",
|
|
99
|
+
"visible_if": "{{ section.settings.show_content }}"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"type": "select",
|
|
103
|
+
"id": "layout_type",
|
|
104
|
+
"label": "Layout type",
|
|
105
|
+
"options": [
|
|
106
|
+
{
|
|
107
|
+
"value": "grid",
|
|
108
|
+
"label": "Grid"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"value": "slider",
|
|
112
|
+
"label": "Slider"
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
"default": "grid",
|
|
116
|
+
"visible_if": "{{ section.settings.enable_layout_options }}"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"type": "text_alignment",
|
|
120
|
+
"id": "text_align",
|
|
121
|
+
"label": "Text alignment",
|
|
122
|
+
"default": "center",
|
|
123
|
+
"visible_if": "{{ section.settings.enable_custom_layout }}"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"type": "url",
|
|
127
|
+
"id": "button_link",
|
|
128
|
+
"label": "Button link",
|
|
129
|
+
"visible_if": "{{ section.settings.show_button }}"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"type": "video_url",
|
|
133
|
+
"id": "video_url",
|
|
134
|
+
"label": "Video URL",
|
|
135
|
+
"accept": ["youtube", "vimeo"],
|
|
136
|
+
"visible_if": "{{ section.settings.media_type == 'video' }}"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"type": "video",
|
|
140
|
+
"id": "video_file",
|
|
141
|
+
"label": "Video file",
|
|
142
|
+
"visible_if": "{{ section.settings.media_type == 'video' }}"
|
|
143
|
+
}
|
|
144
|
+
]
|
|
145
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Example Section",
|
|
3
|
+
"tag": "div",
|
|
4
|
+
"class": "example-class",
|
|
5
|
+
"limit": 1,
|
|
6
|
+
"settings": [],
|
|
7
|
+
"max_blocks": 2,
|
|
8
|
+
"blocks": [],
|
|
9
|
+
"presets": [
|
|
10
|
+
{
|
|
11
|
+
"name": "Example Preset",
|
|
12
|
+
"settings": {
|
|
13
|
+
},
|
|
14
|
+
"blocks": {
|
|
15
|
+
"exampleBlock": {
|
|
16
|
+
"type": "text",
|
|
17
|
+
"name": "Example Block",
|
|
18
|
+
"settings": {}
|
|
19
|
+
},
|
|
20
|
+
"exampleBlock2": {
|
|
21
|
+
"type": "text",
|
|
22
|
+
"static": true,
|
|
23
|
+
"settings": {},
|
|
24
|
+
"blocks": {
|
|
25
|
+
"nestedExampleBlock": {
|
|
26
|
+
"type": "text"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"block_order": ["nestedExampleBlock"]
|
|
30
|
+
},
|
|
31
|
+
"exampleBlock3": {
|
|
32
|
+
"type": "text"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"block_order": ["exampleBlock", "exampleBlock2", "exampleBlock3"]
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"locales": {
|
|
39
|
+
"en": {
|
|
40
|
+
"exampleString": "This is a string"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"enabled_on": {
|
|
44
|
+
"templates": [
|
|
45
|
+
"index"
|
|
46
|
+
],
|
|
47
|
+
"groups": [
|
|
48
|
+
"exampleGroup"
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
"disabled_on": {
|
|
52
|
+
"templates": [
|
|
53
|
+
"product"
|
|
54
|
+
],
|
|
55
|
+
"groups": [
|
|
56
|
+
"exampleGroup2"
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Example Section",
|
|
3
|
+
"tag": "div",
|
|
4
|
+
"class": "example-class",
|
|
5
|
+
"limit": 1,
|
|
6
|
+
"settings": [],
|
|
7
|
+
"max_blocks": 2,
|
|
8
|
+
"blocks": [],
|
|
9
|
+
"presets": [
|
|
10
|
+
{
|
|
11
|
+
"name": "Example Preset 1",
|
|
12
|
+
"settings": {
|
|
13
|
+
},
|
|
14
|
+
"blocks": [
|
|
15
|
+
{
|
|
16
|
+
"type": "exampleBlock",
|
|
17
|
+
"static": false,
|
|
18
|
+
"blocks": {
|
|
19
|
+
"exampleBlock": {
|
|
20
|
+
"type": "exampleBlock",
|
|
21
|
+
"static": true,
|
|
22
|
+
"settings": {}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"settings": {}
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "Example Preset 2",
|
|
31
|
+
"settings": {
|
|
32
|
+
},
|
|
33
|
+
"blocks": [
|
|
34
|
+
{
|
|
35
|
+
"type": "exampleBlock",
|
|
36
|
+
"static": true,
|
|
37
|
+
"settings": {}
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "Example Preset 3",
|
|
43
|
+
"settings": {
|
|
44
|
+
},
|
|
45
|
+
"blocks": [
|
|
46
|
+
{
|
|
47
|
+
"type": "exampleBlock",
|
|
48
|
+
"static": true,
|
|
49
|
+
"id": "blockId",
|
|
50
|
+
"settings": {}
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"locales": {
|
|
56
|
+
"en": {
|
|
57
|
+
"exampleString": "This is a string"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"enabled_on": {
|
|
61
|
+
"templates": [
|
|
62
|
+
"index"
|
|
63
|
+
],
|
|
64
|
+
"groups": [
|
|
65
|
+
"exampleGroup"
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
"disabled_on": {
|
|
69
|
+
"templates": [
|
|
70
|
+
"product"
|
|
71
|
+
],
|
|
72
|
+
"groups": [
|
|
73
|
+
"exampleGroup2"
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Example Section",
|
|
3
|
+
"settings": [
|
|
4
|
+
{
|
|
5
|
+
"type": "checkbox",
|
|
6
|
+
"id": "checkbox",
|
|
7
|
+
"label": "Checkbox",
|
|
8
|
+
"default": "not-a-boolean"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"type": "number",
|
|
12
|
+
"id": "number",
|
|
13
|
+
"label": "Number",
|
|
14
|
+
"default": "not-a-number"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"type": "text",
|
|
18
|
+
"id": "text",
|
|
19
|
+
"label": "Text",
|
|
20
|
+
"default": 10
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"type": "radio",
|
|
24
|
+
"id": "radio",
|
|
25
|
+
"label": "Radio"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"type": "video_url",
|
|
29
|
+
"id": "video_url",
|
|
30
|
+
"label": "Video URL",
|
|
31
|
+
"accept": ["not-youtube", "not-vimeo"]
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Collapsible row",
|
|
3
|
+
"tag": "details",
|
|
4
|
+
"blocks": [{ "type": "@theme" }, { "type": "@app" }],
|
|
5
|
+
"settings": [
|
|
6
|
+
{
|
|
7
|
+
"type": "text",
|
|
8
|
+
"id": "summary",
|
|
9
|
+
"label": "Heading",
|
|
10
|
+
"default": "Collapsible row"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"type": "select",
|
|
14
|
+
"id": "icon",
|
|
15
|
+
"label": "Icon",
|
|
16
|
+
"options": [
|
|
17
|
+
{
|
|
18
|
+
"value": "none",
|
|
19
|
+
"label": "None"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"value": "apple",
|
|
23
|
+
"label": "Apple"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"value": "arrow",
|
|
27
|
+
"label": "Arrow"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"value": "banana",
|
|
31
|
+
"label": "Banana"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"value": "bottle",
|
|
35
|
+
"label": "Bottle"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"value": "box",
|
|
39
|
+
"label": "Box"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"value": "carrot",
|
|
43
|
+
"label": "Carrot"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"value": "chat_bubble",
|
|
47
|
+
"label": "Chat bubble"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"value": "check_mark",
|
|
51
|
+
"label": "Check mark"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"value": "clipboard",
|
|
55
|
+
"label": "Clipboard"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"value": "dairy",
|
|
59
|
+
"label": "Dairy"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"value": "dairy_free",
|
|
63
|
+
"label": "Dairy free"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"value": "dryer",
|
|
67
|
+
"label": "Dryer"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"value": "eye",
|
|
71
|
+
"label": "Eye"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"value": "facebook",
|
|
75
|
+
"label": "Facebook"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"value": "fire",
|
|
79
|
+
"label": "Fire"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"value": "gluten_free",
|
|
83
|
+
"label": "Gluten free"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"value": "heart",
|
|
87
|
+
"label": "Heart"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"value": "instagram",
|
|
91
|
+
"label": "Instagram"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"value": "iron",
|
|
95
|
+
"label": "Iron"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"value": "leaf",
|
|
99
|
+
"label": "Leaf"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"value": "leather",
|
|
103
|
+
"label": "Leather"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"value": "lightning_bolt",
|
|
107
|
+
"label": "Lightning bolt"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"value": "lipstick",
|
|
111
|
+
"label": "Lipstick"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"value": "lock",
|
|
115
|
+
"label": "Lock"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"value": "map_pin",
|
|
119
|
+
"label": "Map pin"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"value": "nut_free",
|
|
123
|
+
"label": "Nut free"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"value": "pants",
|
|
127
|
+
"label": "Pants"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"value": "paw_print",
|
|
131
|
+
"label": "Paw print"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"value": "pepper",
|
|
135
|
+
"label": "Pepper"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"value": "perfume",
|
|
139
|
+
"label": "Perfume"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"value": "pinterest",
|
|
143
|
+
"label": "Pinterest"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"value": "plane",
|
|
147
|
+
"label": "Plane"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"value": "plant",
|
|
151
|
+
"label": "Plant"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"value": "price_tag",
|
|
155
|
+
"label": "Price tag"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"value": "question_mark",
|
|
159
|
+
"label": "Question mark"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"value": "recycle",
|
|
163
|
+
"label": "Recylce"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"value": "return",
|
|
167
|
+
"label": "Return"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"value": "ruler",
|
|
171
|
+
"label": "Ruler"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"value": "serving_dish",
|
|
175
|
+
"label": "Serving dish"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"value": "shirt",
|
|
179
|
+
"label": "Shirt"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"value": "shoe",
|
|
183
|
+
"label": "Shoe"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"value": "silhouette",
|
|
187
|
+
"label": "Silhouette"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"value": "snapchat",
|
|
191
|
+
"label": "Snapchat"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"value": "snowflake",
|
|
195
|
+
"label": "Snowflake"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"value": "star",
|
|
199
|
+
"label": "Star"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"value": "stopwatch",
|
|
203
|
+
"label": "Stopwatch"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"value": "tiktok",
|
|
207
|
+
"label": "Tiktok"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"value": "truck",
|
|
211
|
+
"label": "Truck"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"value": "tumblr",
|
|
215
|
+
"label": "Tumblr"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"value": "twitter",
|
|
219
|
+
"label": "X (Twitter)"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"value": "vimeo",
|
|
223
|
+
"label": "Vimeo"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"value": "washing",
|
|
227
|
+
"label": "Washing"
|
|
228
|
+
}
|
|
229
|
+
],
|
|
230
|
+
"default": "check_mark"
|
|
231
|
+
}
|
|
232
|
+
],
|
|
233
|
+
"presets": [{ "name": "Collapsible row" }]
|
|
234
|
+
}
|