@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.
Files changed (152) hide show
  1. package/.claude/settings.json +11 -0
  2. package/.github/workflows/verify.yml +64 -0
  3. package/.gitmodules +3 -0
  4. package/.prettierignore +25 -0
  5. package/.prettierrc.cjs +9 -0
  6. package/.zed/settings.json +21 -0
  7. package/AGENTS.md +232 -0
  8. package/LICENSE +21 -0
  9. package/README.md +266 -0
  10. package/biome.json +58 -0
  11. package/dist/cli.d.mts +1 -0
  12. package/dist/cli.mjs +350 -0
  13. package/dist/schema.d.mts +265 -0
  14. package/dist/schema.mjs +21 -0
  15. package/docs/TESTING.md +293 -0
  16. package/docs/assets-plan.md +197 -0
  17. package/docs/build-spec.md +466 -0
  18. package/docs/library-conversion-plan.md +419 -0
  19. package/example/.gitattributes +7 -0
  20. package/example/.shopifyignore +28 -0
  21. package/example/.theme-check.yml +7 -0
  22. package/example/blocks/_built--sections--hero--blocks--feature.liquid +52 -0
  23. package/example/config/settings_schema.json +10 -0
  24. package/example/layout/theme.liquid +25 -0
  25. package/example/locales/en.default.json +1 -0
  26. package/example/package-lock.json +51 -0
  27. package/example/package.json +20 -0
  28. package/example/sections/built--sections--hero.liquid +83 -0
  29. package/example/snippets/built--components--button.liquid +38 -0
  30. package/example/snippets/built--components--card.liquid +33 -0
  31. package/example/src/components/button/button.css +13 -0
  32. package/example/src/components/card/card.css +16 -0
  33. package/example/src/components/card/card.liquid +9 -0
  34. package/example/src/sections/hero/blocks/feature/feature.css +11 -0
  35. package/example/src/sections/hero/blocks/feature/feature.liquid +9 -0
  36. package/example/src/sections/hero/blocks/feature/feature.schema.ts +14 -0
  37. package/example/src/sections/hero/hero.css +15 -0
  38. package/example/src/sections/hero/hero.liquid +16 -0
  39. package/example/src/sections/hero/hero.schema.ts +26 -0
  40. package/example/src/sections/hero/hero.test.ts +43 -0
  41. package/example/src/utilities/labels.ts +5 -0
  42. package/example/templates/index.liquid +1 -0
  43. package/example/tsconfig.json +10 -0
  44. package/example/vitest.config.ts +6 -0
  45. package/lib/build/build.test.ts +475 -0
  46. package/lib/build/build.ts +314 -0
  47. package/lib/build/command.ts +27 -0
  48. package/lib/build/index.ts +1 -0
  49. package/lib/cli.ts +17 -0
  50. package/lib/dev/command.ts +25 -0
  51. package/lib/dev/index.ts +1 -0
  52. package/lib/dev/watch.ts +52 -0
  53. package/lib/resolver.test.ts +275 -0
  54. package/lib/resolver.ts +156 -0
  55. package/lib/schema.ts +37 -0
  56. package/package.json +59 -0
  57. package/scripts/codegen-schema.ts +66 -0
  58. package/src/components/button/button.css +13 -0
  59. package/src/components/button/button.liquid +5 -0
  60. package/src/components/button/button.ts +5 -0
  61. package/src/tsconfig.json +10 -0
  62. package/tests/example.test.ts +101 -0
  63. package/tsconfig.json +20 -0
  64. package/tsdown.config.ts +14 -0
  65. package/vendor/theme-liquid-docs/.gitattributes +10 -0
  66. package/vendor/theme-liquid-docs/.github/CODEOWNERS +1 -0
  67. package/vendor/theme-liquid-docs/.github/CODE_OF_CONDUCT.md +73 -0
  68. package/vendor/theme-liquid-docs/.github/ISSUE_TEMPLATE/bug_report.md +17 -0
  69. package/vendor/theme-liquid-docs/.github/ISSUE_TEMPLATE/feature_request.md +17 -0
  70. package/vendor/theme-liquid-docs/.github/dependabot.yaml +6 -0
  71. package/vendor/theme-liquid-docs/.github/workflows/ci.yml +33 -0
  72. package/vendor/theme-liquid-docs/.github/workflows/cla.yml +27 -0
  73. package/vendor/theme-liquid-docs/.github/workflows/shopify-dev-preview-automation.yml +86 -0
  74. package/vendor/theme-liquid-docs/.github/workflows/update-latest.yml +56 -0
  75. package/vendor/theme-liquid-docs/.prettierrc.json +16 -0
  76. package/vendor/theme-liquid-docs/.vscode/settings.json +28 -0
  77. package/vendor/theme-liquid-docs/LICENSE.md +7 -0
  78. package/vendor/theme-liquid-docs/README.md +48 -0
  79. package/vendor/theme-liquid-docs/ai/claude/CLAUDE.md +1485 -0
  80. package/vendor/theme-liquid-docs/ai/cursor/rules/assets.mdc +15 -0
  81. package/vendor/theme-liquid-docs/ai/cursor/rules/blocks.mdc +339 -0
  82. package/vendor/theme-liquid-docs/ai/cursor/rules/examples/block-example-group.mdc +103 -0
  83. package/vendor/theme-liquid-docs/ai/cursor/rules/examples/block-example-text.mdc +59 -0
  84. package/vendor/theme-liquid-docs/ai/cursor/rules/examples/section-example.mdc +61 -0
  85. package/vendor/theme-liquid-docs/ai/cursor/rules/examples/snippet-example.mdc +72 -0
  86. package/vendor/theme-liquid-docs/ai/cursor/rules/liquid.mdc +837 -0
  87. package/vendor/theme-liquid-docs/ai/cursor/rules/locales.mdc +100 -0
  88. package/vendor/theme-liquid-docs/ai/cursor/rules/localization.mdc +67 -0
  89. package/vendor/theme-liquid-docs/ai/cursor/rules/mcp.mdc +2 -0
  90. package/vendor/theme-liquid-docs/ai/cursor/rules/schemas.mdc +184 -0
  91. package/vendor/theme-liquid-docs/ai/cursor/rules/sections.mdc +84 -0
  92. package/vendor/theme-liquid-docs/ai/cursor/rules/settings-schema.mdc +51 -0
  93. package/vendor/theme-liquid-docs/ai/cursor/rules/snippets.mdc +119 -0
  94. package/vendor/theme-liquid-docs/ai/github/copilot-instructions.md +1485 -0
  95. package/vendor/theme-liquid-docs/ai/liquid.mdc +638 -0
  96. package/vendor/theme-liquid-docs/data/filters.json +6148 -0
  97. package/vendor/theme-liquid-docs/data/latest.json +2 -0
  98. package/vendor/theme-liquid-docs/data/objects.json +20594 -0
  99. package/vendor/theme-liquid-docs/data/shopify_system_translations.json +2586 -0
  100. package/vendor/theme-liquid-docs/data/tags.json +1276 -0
  101. package/vendor/theme-liquid-docs/package.json +20 -0
  102. package/vendor/theme-liquid-docs/schemas/manifest_schema.json +31 -0
  103. package/vendor/theme-liquid-docs/schemas/manifest_theme.json +19 -0
  104. package/vendor/theme-liquid-docs/schemas/manifest_theme_app_extension.json +10 -0
  105. package/vendor/theme-liquid-docs/schemas/theme/app_block_entry.json +13 -0
  106. package/vendor/theme-liquid-docs/schemas/theme/default_setting_values.json +24 -0
  107. package/vendor/theme-liquid-docs/schemas/theme/local_block_entry.json +25 -0
  108. package/vendor/theme-liquid-docs/schemas/theme/preset.json +72 -0
  109. package/vendor/theme-liquid-docs/schemas/theme/preset_blocks.json +91 -0
  110. package/vendor/theme-liquid-docs/schemas/theme/section.json +208 -0
  111. package/vendor/theme-liquid-docs/schemas/theme/setting.json +1413 -0
  112. package/vendor/theme-liquid-docs/schemas/theme/settings.json +10 -0
  113. package/vendor/theme-liquid-docs/schemas/theme/targetted_block_entry.json +15 -0
  114. package/vendor/theme-liquid-docs/schemas/theme/theme_block.json +91 -0
  115. package/vendor/theme-liquid-docs/schemas/theme/theme_block_entry.json +14 -0
  116. package/vendor/theme-liquid-docs/schemas/theme/theme_settings.json +83 -0
  117. package/vendor/theme-liquid-docs/schemas/theme/translations.json +63 -0
  118. package/vendor/theme-liquid-docs/schemas/update/update_extension_schema_v1.json +186 -0
  119. package/vendor/theme-liquid-docs/tests/fixtures/section-nested-blocks.json +18 -0
  120. package/vendor/theme-liquid-docs/tests/fixtures/section-schema-1.json +90 -0
  121. package/vendor/theme-liquid-docs/tests/fixtures/section-schema-2.json +201 -0
  122. package/vendor/theme-liquid-docs/tests/fixtures/section-schema-3.json +29 -0
  123. package/vendor/theme-liquid-docs/tests/fixtures/section-schema-4.json +315 -0
  124. package/vendor/theme-liquid-docs/tests/fixtures/section-schema-5.json +114 -0
  125. package/vendor/theme-liquid-docs/tests/fixtures/section-schema-6.json +63 -0
  126. package/vendor/theme-liquid-docs/tests/fixtures/section-schema-conditional-settings.json +145 -0
  127. package/vendor/theme-liquid-docs/tests/fixtures/section-schema-preset-blocks-as-hash.json +60 -0
  128. package/vendor/theme-liquid-docs/tests/fixtures/section-schema-static-block-preset.json +76 -0
  129. package/vendor/theme-liquid-docs/tests/fixtures/section-settings.json +34 -0
  130. package/vendor/theme-liquid-docs/tests/fixtures/theme-block-1.json +234 -0
  131. package/vendor/theme-liquid-docs/tests/fixtures/theme-block-2.json +253 -0
  132. package/vendor/theme-liquid-docs/tests/fixtures/theme-block-basics.json +48 -0
  133. package/vendor/theme-liquid-docs/tests/fixtures/theme-block-conditional-settings.json +202 -0
  134. package/vendor/theme-liquid-docs/tests/fixtures/theme-block-presets-as-hash.json +50 -0
  135. package/vendor/theme-liquid-docs/tests/fixtures/theme-block-settings.json +34 -0
  136. package/vendor/theme-liquid-docs/tests/fixtures/theme-settings-all-settings.json +313 -0
  137. package/vendor/theme-liquid-docs/tests/fixtures/theme-settings-dawn.json +1469 -0
  138. package/vendor/theme-liquid-docs/tests/fixtures/theme-settings-metadata.json +10 -0
  139. package/vendor/theme-liquid-docs/tests/fixtures/translations-1.json +14 -0
  140. package/vendor/theme-liquid-docs/tests/section.spec.ts +367 -0
  141. package/vendor/theme-liquid-docs/tests/test-constants.ts +58 -0
  142. package/vendor/theme-liquid-docs/tests/test-helpers.ts +104 -0
  143. package/vendor/theme-liquid-docs/tests/theme-settings/color_palette.spec.ts +184 -0
  144. package/vendor/theme-liquid-docs/tests/theme-settings/color_scheme_group.spec.ts +143 -0
  145. package/vendor/theme-liquid-docs/tests/theme-settings/general.spec.ts +192 -0
  146. package/vendor/theme-liquid-docs/tests/theme-settings/metaobject.spec.ts +94 -0
  147. package/vendor/theme-liquid-docs/tests/theme-settings/resource_list.spec.ts +58 -0
  148. package/vendor/theme-liquid-docs/tests/theme-settings/theme-metadata.spec.ts +59 -0
  149. package/vendor/theme-liquid-docs/tests/theme_block.spec.ts +266 -0
  150. package/vendor/theme-liquid-docs/tests/translations_schema.spec.ts +31 -0
  151. package/vendor/theme-liquid-docs/yarn.lock +543 -0
  152. package/vitest.config.ts +7 -0
@@ -0,0 +1,201 @@
1
+ {
2
+ "name": "t:sections.collage.name",
3
+ "tag": "section",
4
+ "class": "section",
5
+ "disabled_on": {
6
+ "groups": ["header", "footer"]
7
+ },
8
+ "settings": [
9
+ {
10
+ "type": "inline_richtext",
11
+ "id": "heading",
12
+ "default": "Multimedia collage",
13
+ "label": "t:sections.collage.settings.heading.label"
14
+ },
15
+ {
16
+ "type": "select",
17
+ "id": "heading_size",
18
+ "options": [
19
+ {
20
+ "value": "h2",
21
+ "label": "t:sections.all.heading_size.options__1.label"
22
+ },
23
+ {
24
+ "value": "h1",
25
+ "label": "t:sections.all.heading_size.options__2.label"
26
+ },
27
+ {
28
+ "value": "h0",
29
+ "label": "t:sections.all.heading_size.options__3.label"
30
+ }
31
+ ],
32
+ "default": "h1",
33
+ "label": "t:sections.all.heading_size.label"
34
+ },
35
+ {
36
+ "type": "select",
37
+ "id": "desktop_layout",
38
+ "options": [
39
+ {
40
+ "value": "left",
41
+ "label": "t:sections.collage.settings.desktop_layout.options__1.label"
42
+ },
43
+ {
44
+ "value": "right",
45
+ "label": "t:sections.collage.settings.desktop_layout.options__2.label"
46
+ }
47
+ ],
48
+ "default": "left",
49
+ "label": "t:sections.collage.settings.desktop_layout.label"
50
+ },
51
+ {
52
+ "type": "select",
53
+ "id": "mobile_layout",
54
+ "options": [
55
+ {
56
+ "value": "collage",
57
+ "label": "t:sections.collage.settings.mobile_layout.options__1.label"
58
+ },
59
+ {
60
+ "value": "column",
61
+ "label": "t:sections.collage.settings.mobile_layout.options__2.label"
62
+ }
63
+ ],
64
+ "default": "column",
65
+ "label": "t:sections.collage.settings.mobile_layout.label"
66
+ },
67
+ {
68
+ "type": "select",
69
+ "id": "card_styles",
70
+ "options": [
71
+ {
72
+ "value": "none",
73
+ "label": "t:sections.collage.settings.card_styles.options__1.label"
74
+ },
75
+ {
76
+ "value": "product-card-wrapper",
77
+ "label": "t:sections.collage.settings.card_styles.options__2.label"
78
+ }
79
+ ],
80
+ "default": "product-card-wrapper",
81
+ "info": "t:sections.collage.settings.card_styles.info",
82
+ "label": "t:sections.collage.settings.card_styles.label"
83
+ },
84
+ {
85
+ "type": "color_scheme",
86
+ "id": "color_scheme",
87
+ "label": "t:sections.all.colors.label",
88
+ "info": "t:sections.all.colors.has_cards_info",
89
+ "default": "background-1"
90
+ },
91
+ {
92
+ "type": "header",
93
+ "content": "t:sections.all.padding.section_padding_heading"
94
+ },
95
+ {
96
+ "type": "range",
97
+ "id": "padding_top",
98
+ "min": 0,
99
+ "max": 100,
100
+ "step": 4,
101
+ "unit": "px",
102
+ "label": "t:sections.all.padding.padding_top",
103
+ "default": 36
104
+ },
105
+ {
106
+ "type": "range",
107
+ "id": "padding_bottom",
108
+ "min": 0,
109
+ "max": 100,
110
+ "step": 4,
111
+ "unit": "px",
112
+ "label": "t:sections.all.padding.padding_bottom",
113
+ "default": 36
114
+ }
115
+ ],
116
+ "blocks": [
117
+ {
118
+ "type": "image",
119
+ "name": "t:sections.collage.blocks.image.name",
120
+ "settings": [
121
+ {
122
+ "type": "image_picker",
123
+ "id": "image",
124
+ "label": "t:sections.collage.blocks.image.settings.image.label"
125
+ }
126
+ ]
127
+ },
128
+ {
129
+ "type": "product",
130
+ "name": "t:sections.collage.blocks.product.name",
131
+ "settings": [
132
+ {
133
+ "type": "product",
134
+ "id": "product",
135
+ "label": "t:sections.collage.blocks.product.settings.product.label"
136
+ },
137
+ {
138
+ "type": "checkbox",
139
+ "id": "second_image",
140
+ "default": false,
141
+ "label": "t:sections.collage.blocks.product.settings.second_image.label"
142
+ }
143
+ ]
144
+ },
145
+ {
146
+ "type": "collection",
147
+ "name": "t:sections.collage.blocks.collection.name",
148
+ "settings": [
149
+ {
150
+ "type": "collection",
151
+ "id": "collection",
152
+ "label": "t:sections.collage.blocks.collection.settings.collection.label"
153
+ }
154
+ ]
155
+ },
156
+ {
157
+ "type": "video",
158
+ "name": "t:sections.collage.blocks.video.name",
159
+ "settings": [
160
+ {
161
+ "type": "image_picker",
162
+ "id": "cover_image",
163
+ "label": "t:sections.collage.blocks.video.settings.cover_image.label"
164
+ },
165
+ {
166
+ "type": "video_url",
167
+ "id": "video_url",
168
+ "accept": ["youtube", "vimeo"],
169
+ "default": "https://www.youtube.com/watch?v=_9VUPq3SxOc",
170
+ "label": "t:sections.collage.blocks.video.settings.video_url.label",
171
+ "placeholder": "t:sections.collage.blocks.video.settings.video_url.placeholder",
172
+ "info": "t:sections.collage.blocks.video.settings.video_url.info"
173
+ },
174
+ {
175
+ "type": "text",
176
+ "id": "description",
177
+ "default": "Describe the video",
178
+ "label": "t:sections.collage.blocks.video.settings.description.label",
179
+ "info": "t:sections.collage.blocks.video.settings.description.info"
180
+ }
181
+ ]
182
+ }
183
+ ],
184
+ "max_blocks": 3,
185
+ "presets": [
186
+ {
187
+ "name": "t:sections.collage.presets.name",
188
+ "blocks": [
189
+ {
190
+ "type": "image"
191
+ },
192
+ {
193
+ "type": "product"
194
+ },
195
+ {
196
+ "type": "collection"
197
+ }
198
+ ]
199
+ }
200
+ ]
201
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "t:sections.main-reset-password.name",
3
+ "settings": [
4
+ {
5
+ "type": "header",
6
+ "content": "t:sections.all.padding.section_padding_heading"
7
+ },
8
+ {
9
+ "type": "range",
10
+ "id": "padding_top",
11
+ "min": 0,
12
+ "max": 100,
13
+ "step": 4,
14
+ "unit": "px",
15
+ "label": "t:sections.all.padding.padding_top",
16
+ "default": 36
17
+ },
18
+ {
19
+ "type": "range",
20
+ "id": "padding_bottom",
21
+ "min": 0,
22
+ "max": 100,
23
+ "step": 4,
24
+ "unit": "px",
25
+ "label": "t:sections.all.padding.padding_bottom",
26
+ "default": 36
27
+ }
28
+ ]
29
+ }
@@ -0,0 +1,315 @@
1
+ {
2
+ "name": "t:sections.slideshow.name",
3
+ "tag": "section",
4
+ "class": "section",
5
+ "disabled_on": {
6
+ "groups": ["header", "footer"]
7
+ },
8
+ "settings": [
9
+ {
10
+ "type": "select",
11
+ "id": "layout",
12
+ "options": [
13
+ {
14
+ "value": "full_bleed",
15
+ "label": "t:sections.slideshow.settings.layout.options__1.label"
16
+ },
17
+ {
18
+ "value": "grid",
19
+ "label": "t:sections.slideshow.settings.layout.options__2.label"
20
+ }
21
+ ],
22
+ "default": "full_bleed",
23
+ "label": "t:sections.slideshow.settings.layout.label"
24
+ },
25
+ {
26
+ "type": "select",
27
+ "id": "slide_height",
28
+ "options": [
29
+ {
30
+ "value": "adapt_image",
31
+ "label": "t:sections.slideshow.settings.slide_height.options__1.label"
32
+ },
33
+ {
34
+ "value": "small",
35
+ "label": "t:sections.slideshow.settings.slide_height.options__2.label"
36
+ },
37
+ {
38
+ "value": "medium",
39
+ "label": "t:sections.slideshow.settings.slide_height.options__3.label"
40
+ },
41
+ {
42
+ "value": "large",
43
+ "label": "t:sections.slideshow.settings.slide_height.options__4.label"
44
+ }
45
+ ],
46
+ "default": "medium",
47
+ "label": "t:sections.slideshow.settings.slide_height.label"
48
+ },
49
+ {
50
+ "type": "select",
51
+ "id": "slider_visual",
52
+ "options": [
53
+ {
54
+ "value": "dots",
55
+ "label": "t:sections.slideshow.settings.slider_visual.options__2.label"
56
+ },
57
+ {
58
+ "value": "counter",
59
+ "label": "t:sections.slideshow.settings.slider_visual.options__1.label"
60
+ },
61
+ {
62
+ "value": "numbers",
63
+ "label": "t:sections.slideshow.settings.slider_visual.options__3.label"
64
+ }
65
+ ],
66
+ "default": "counter",
67
+ "label": "t:sections.slideshow.settings.slider_visual.label"
68
+ },
69
+ {
70
+ "type": "checkbox",
71
+ "id": "auto_rotate",
72
+ "label": "t:sections.slideshow.settings.auto_rotate.label",
73
+ "default": false
74
+ },
75
+ {
76
+ "type": "range",
77
+ "id": "change_slides_speed",
78
+ "min": 3,
79
+ "max": 9,
80
+ "step": 2,
81
+ "unit": "s",
82
+ "label": "t:sections.slideshow.settings.change_slides_speed.label",
83
+ "default": 5
84
+ },
85
+ {
86
+ "type": "header",
87
+ "content": "t:sections.all.animation.content"
88
+ },
89
+ {
90
+ "type": "select",
91
+ "id": "image_behavior",
92
+ "options": [
93
+ {
94
+ "value": "none",
95
+ "label": "t:sections.all.animation.image_behavior.options__1.label"
96
+ },
97
+ {
98
+ "value": "ambient",
99
+ "label": "t:sections.all.animation.image_behavior.options__2.label"
100
+ }
101
+ ],
102
+ "default": "none",
103
+ "label": "t:sections.all.animation.image_behavior.label"
104
+ },
105
+ {
106
+ "type": "header",
107
+ "content": "t:sections.slideshow.settings.mobile.content"
108
+ },
109
+ {
110
+ "type": "checkbox",
111
+ "id": "show_text_below",
112
+ "label": "t:sections.slideshow.settings.show_text_below.label",
113
+ "default": true
114
+ },
115
+ {
116
+ "type": "header",
117
+ "content": "t:sections.slideshow.settings.accessibility.content"
118
+ },
119
+ {
120
+ "type": "text",
121
+ "id": "accessibility_info",
122
+ "label": "t:sections.slideshow.settings.accessibility.label",
123
+ "info": "t:sections.slideshow.settings.accessibility.info",
124
+ "default": "Slideshow about our brand"
125
+ }
126
+ ],
127
+ "blocks": [
128
+ {
129
+ "type": "slide",
130
+ "name": "t:sections.slideshow.blocks.slide.name",
131
+ "limit": 5,
132
+ "settings": [
133
+ {
134
+ "type": "image_picker",
135
+ "id": "image",
136
+ "label": "t:sections.slideshow.blocks.slide.settings.image.label"
137
+ },
138
+ {
139
+ "type": "inline_richtext",
140
+ "id": "heading",
141
+ "default": "Image slide",
142
+ "label": "t:sections.slideshow.blocks.slide.settings.heading.label"
143
+ },
144
+ {
145
+ "type": "select",
146
+ "id": "heading_size",
147
+ "options": [
148
+ {
149
+ "value": "h2",
150
+ "label": "t:sections.all.heading_size.options__1.label"
151
+ },
152
+ {
153
+ "value": "h1",
154
+ "label": "t:sections.all.heading_size.options__2.label"
155
+ },
156
+ {
157
+ "value": "h0",
158
+ "label": "t:sections.all.heading_size.options__3.label"
159
+ }
160
+ ],
161
+ "default": "h1",
162
+ "label": "t:sections.all.heading_size.label"
163
+ },
164
+ {
165
+ "type": "inline_richtext",
166
+ "id": "subheading",
167
+ "default": "Tell your brand's story through images",
168
+ "label": "t:sections.slideshow.blocks.slide.settings.subheading.label"
169
+ },
170
+ {
171
+ "type": "text",
172
+ "id": "button_label",
173
+ "default": "Button label",
174
+ "label": "t:sections.slideshow.blocks.slide.settings.button_label.label",
175
+ "info": "t:sections.slideshow.blocks.slide.settings.button_label.info"
176
+ },
177
+ {
178
+ "type": "url",
179
+ "id": "link",
180
+ "label": "t:sections.slideshow.blocks.slide.settings.link.label"
181
+ },
182
+ {
183
+ "type": "checkbox",
184
+ "id": "button_style_secondary",
185
+ "label": "t:sections.slideshow.blocks.slide.settings.secondary_style.label",
186
+ "default": false
187
+ },
188
+ {
189
+ "type": "select",
190
+ "id": "box_align",
191
+ "options": [
192
+ {
193
+ "value": "top-left",
194
+ "label": "t:sections.slideshow.blocks.slide.settings.box_align.options__1.label"
195
+ },
196
+ {
197
+ "value": "top-center",
198
+ "label": "t:sections.slideshow.blocks.slide.settings.box_align.options__2.label"
199
+ },
200
+ {
201
+ "value": "top-right",
202
+ "label": "t:sections.slideshow.blocks.slide.settings.box_align.options__3.label"
203
+ },
204
+ {
205
+ "value": "middle-left",
206
+ "label": "t:sections.slideshow.blocks.slide.settings.box_align.options__4.label"
207
+ },
208
+ {
209
+ "value": "middle-center",
210
+ "label": "t:sections.slideshow.blocks.slide.settings.box_align.options__5.label"
211
+ },
212
+ {
213
+ "value": "middle-right",
214
+ "label": "t:sections.slideshow.blocks.slide.settings.box_align.options__6.label"
215
+ },
216
+ {
217
+ "value": "bottom-left",
218
+ "label": "t:sections.slideshow.blocks.slide.settings.box_align.options__7.label"
219
+ },
220
+ {
221
+ "value": "bottom-center",
222
+ "label": "t:sections.slideshow.blocks.slide.settings.box_align.options__8.label"
223
+ },
224
+ {
225
+ "value": "bottom-right",
226
+ "label": "t:sections.slideshow.blocks.slide.settings.box_align.options__9.label"
227
+ }
228
+ ],
229
+ "default": "middle-center",
230
+ "label": "t:sections.slideshow.blocks.slide.settings.box_align.label",
231
+ "info": "t:sections.slideshow.blocks.slide.settings.box_align.info"
232
+ },
233
+ {
234
+ "type": "checkbox",
235
+ "id": "show_text_box",
236
+ "label": "t:sections.slideshow.blocks.slide.settings.show_text_box.label",
237
+ "default": true
238
+ },
239
+ {
240
+ "type": "select",
241
+ "id": "text_alignment",
242
+ "options": [
243
+ {
244
+ "value": "left",
245
+ "label": "t:sections.slideshow.blocks.slide.settings.text_alignment.option_1.label"
246
+ },
247
+ {
248
+ "value": "center",
249
+ "label": "t:sections.slideshow.blocks.slide.settings.text_alignment.option_2.label"
250
+ },
251
+ {
252
+ "value": "right",
253
+ "label": "t:sections.slideshow.blocks.slide.settings.text_alignment.option_3.label"
254
+ }
255
+ ],
256
+ "default": "center",
257
+ "label": "t:sections.slideshow.blocks.slide.settings.text_alignment.label"
258
+ },
259
+ {
260
+ "type": "range",
261
+ "id": "image_overlay_opacity",
262
+ "min": 0,
263
+ "max": 100,
264
+ "step": 10,
265
+ "unit": "%",
266
+ "label": "t:sections.slideshow.blocks.slide.settings.image_overlay_opacity.label",
267
+ "default": 0
268
+ },
269
+ {
270
+ "type": "color_scheme",
271
+ "id": "color_scheme",
272
+ "label": "t:sections.all.colors.label",
273
+ "default": "background-1"
274
+ },
275
+ {
276
+ "type": "header",
277
+ "content": "t:sections.slideshow.settings.mobile.content"
278
+ },
279
+ {
280
+ "type": "select",
281
+ "id": "text_alignment_mobile",
282
+ "options": [
283
+ {
284
+ "value": "left",
285
+ "label": "t:sections.slideshow.blocks.slide.settings.text_alignment_mobile.options__1.label"
286
+ },
287
+ {
288
+ "value": "center",
289
+ "label": "t:sections.slideshow.blocks.slide.settings.text_alignment_mobile.options__2.label"
290
+ },
291
+ {
292
+ "value": "right",
293
+ "label": "t:sections.slideshow.blocks.slide.settings.text_alignment_mobile.options__3.label"
294
+ }
295
+ ],
296
+ "default": "center",
297
+ "label": "t:sections.slideshow.blocks.slide.settings.text_alignment_mobile.label"
298
+ }
299
+ ]
300
+ }
301
+ ],
302
+ "presets": [
303
+ {
304
+ "name": "t:sections.slideshow.presets.name",
305
+ "blocks": [
306
+ {
307
+ "type": "slide"
308
+ },
309
+ {
310
+ "type": "slide"
311
+ }
312
+ ]
313
+ }
314
+ ]
315
+ }
@@ -0,0 +1,114 @@
1
+ {
2
+ "name": "t:sections.announcement-bar.name",
3
+ "max_blocks": 12,
4
+ "class": "announcement-bar-section",
5
+ "enabled_on": {
6
+ "groups": ["header"]
7
+ },
8
+ "settings": [
9
+ {
10
+ "type": "color_scheme",
11
+ "id": "color_scheme",
12
+ "label": "t:sections.all.colors.label",
13
+ "default": "accent-1"
14
+ },
15
+ {
16
+ "type": "checkbox",
17
+ "id": "show_line_separator",
18
+ "default": true,
19
+ "label": "t:sections.header.settings.show_line_separator.label"
20
+ },
21
+ {
22
+ "type": "header",
23
+ "content": "t:sections.announcement-bar.settings.header__1.content",
24
+ "info": "t:sections.announcement-bar.settings.header__1.info"
25
+ },
26
+ {
27
+ "type": "checkbox",
28
+ "id": "show_social",
29
+ "default": false,
30
+ "label": "t:sections.announcement-bar.settings.show_social.label"
31
+ },
32
+ {
33
+ "type": "header",
34
+ "content": "t:sections.announcement-bar.settings.header__2.content"
35
+ },
36
+ {
37
+ "type": "checkbox",
38
+ "id": "auto_rotate",
39
+ "label": "t:sections.announcement-bar.settings.auto_rotate.label",
40
+ "default": false
41
+ },
42
+ {
43
+ "type": "range",
44
+ "id": "change_slides_speed",
45
+ "min": 3,
46
+ "max": 10,
47
+ "step": 1,
48
+ "unit": "s",
49
+ "label": "t:sections.announcement-bar.settings.change_slides_speed.label",
50
+ "default": 5
51
+ },
52
+ {
53
+ "type": "header",
54
+ "content": "t:sections.announcement-bar.settings.header__3.content",
55
+ "info": "t:sections.announcement-bar.settings.header__3.info"
56
+ },
57
+ {
58
+ "type": "checkbox",
59
+ "id": "enable_country_selector",
60
+ "default": false,
61
+ "label": "t:sections.announcement-bar.settings.enable_country_selector.label"
62
+ },
63
+ {
64
+ "type": "header",
65
+ "content": "t:sections.announcement-bar.settings.header__4.content",
66
+ "info": "t:sections.announcement-bar.settings.header__4.info"
67
+ },
68
+ {
69
+ "type": "checkbox",
70
+ "id": "enable_language_selector",
71
+ "default": false,
72
+ "label": "t:sections.announcement-bar.settings.enable_language_selector.label"
73
+ }
74
+ ],
75
+ "blocks": [
76
+ {
77
+ "type": "announcement",
78
+ "name": "t:sections.announcement-bar.blocks.announcement.name",
79
+ "settings": [
80
+ {
81
+ "type": "text",
82
+ "id": "text",
83
+ "default": "Welcome to our store",
84
+ "label": "t:sections.announcement-bar.blocks.announcement.settings.text.label"
85
+ },
86
+ {
87
+ "type": "url",
88
+ "id": "link",
89
+ "label": "t:sections.announcement-bar.blocks.announcement.settings.link.label"
90
+ }
91
+ ]
92
+ }
93
+ ],
94
+ "presets": [
95
+ {
96
+ "name": "t:sections.announcement-bar.presets.name",
97
+ "settings": {
98
+ "number": 1,
99
+ "boolean": true,
100
+ "string": "string"
101
+ },
102
+ "blocks": [
103
+ {
104
+ "type": "announcement",
105
+ "settings": {
106
+ "number": 1,
107
+ "boolean": true,
108
+ "string": "string"
109
+ }
110
+ }
111
+ ]
112
+ }
113
+ ]
114
+ }