@caartzee/theme-sdk 1.0.0 → 1.2.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/README.md +208 -20
- package/dist/bin/caartzee-theme.js +2272 -87
- package/dist/lib/index.js +2274 -87
- package/dist/types/src/blocks/block-contract.d.ts +10 -10
- package/dist/types/src/cli/candy-mcp.d.ts +2 -0
- package/dist/types/src/cli/candy-tool-server.d.ts +39 -0
- package/dist/types/src/cli/mcp/component-tools.d.ts +2 -0
- package/dist/types/src/cli/mcp/docs-tools.d.ts +89 -0
- package/dist/types/src/cli/mcp/editor-tools.d.ts +22 -0
- package/dist/types/src/cli/mcp/resources-and-prompts.d.ts +2 -0
- package/dist/types/src/cli/mcp/testing-tools.d.ts +54 -0
- package/dist/types/src/cli/mcp/ui-patterns-tools.d.ts +26 -0
- package/dist/types/src/cli/mcp/v2-commerce-tools.d.ts +16 -0
- package/dist/types/src/contracts/manifest.d.ts +77 -77
- package/dist/types/src/dev-server/dev-server.d.ts +3 -0
- package/dist/types/src/dev-server/local-commerce-runtime.d.ts +76 -0
- package/dist/types/src/dev-server/local-editor-server.d.ts +22 -0
- package/dist/types/src/dev-server/theme-preview.d.ts +6 -2
- package/dist/types/src/scaffold/design-presets.d.ts +41 -0
- package/dist/types/src/scaffold/template-generator.d.ts +2 -0
- package/dist/types/src/sections/section-contract.d.ts +12 -12
- package/package.json +2 -1
- package/templates/theme-candy-boilerplate/.editorconfig +14 -0
- package/templates/theme-candy-boilerplate/.gitattributes +1 -0
- package/templates/theme-candy-boilerplate/.vscode/extensions.json +7 -0
- package/templates/theme-candy-boilerplate/.vscode/settings.json +17 -0
- package/templates/theme-candy-boilerplate/assets/theme.css +78 -0
- package/templates/theme-candy-boilerplate/assets/theme.js +7 -0
- package/templates/theme-candy-boilerplate/candy.config.json +40 -0
- package/templates/theme-candy-boilerplate/index.ts +39 -0
- package/templates/theme-candy-boilerplate/layout/theme.candy +25 -0
- package/templates/theme-candy-boilerplate/locales/en.default.json +37 -0
- package/templates/theme-candy-boilerplate/manifest.json +123 -0
- package/templates/theme-candy-boilerplate/package.json +16 -0
- package/templates/theme-candy-boilerplate/schemas/settings_schema.json +36 -0
- package/templates/theme-candy-boilerplate/sections/featured-products.candy +89 -0
- package/templates/theme-candy-boilerplate/sections/footer.candy +50 -0
- package/templates/theme-candy-boilerplate/sections/header.candy +116 -0
- package/templates/theme-candy-boilerplate/sections/hero-banner.candy +135 -0
- package/templates/theme-candy-boilerplate/sections/image-with-text.candy +85 -0
- package/templates/theme-candy-boilerplate/snippets/price.candy +19 -0
- package/templates/theme-candy-boilerplate/snippets/product-card.candy +43 -0
- package/templates/theme-candy-boilerplate/templates/404.candy +12 -0
- package/templates/theme-candy-boilerplate/templates/cart.candy +51 -0
- package/templates/theme-candy-boilerplate/templates/collection.candy +51 -0
- package/templates/theme-candy-boilerplate/templates/index.candy +7 -0
- package/templates/theme-candy-boilerplate/templates/page.candy +10 -0
- package/templates/theme-candy-boilerplate/templates/product.candy +59 -0
- package/templates/theme-candy-boilerplate/templates/search.candy +40 -0
- package/templates/vscode-candy/LICENSE +21 -0
- package/templates/vscode-candy/extension.js +689 -338
- package/templates/vscode-candy/icons/candy-logo.png +0 -0
- package/templates/vscode-candy/package.json +18 -3
- package/templates/vscode-candy/snippets/candy.code-snippets +91 -0
|
Binary file
|
|
@@ -2,8 +2,13 @@
|
|
|
2
2
|
"name": "candy-language-support",
|
|
3
3
|
"displayName": "Candy Language Support (Caartzee Themes)",
|
|
4
4
|
"description": "Official syntax highlighting, embedded schema JSON/CSS/JS grammar, snippets, live diagnostics, and IntelliSense for Caartzee .candy storefront templates.",
|
|
5
|
-
"version": "1.
|
|
6
|
-
"publisher": "
|
|
5
|
+
"version": "1.4.0",
|
|
6
|
+
"publisher": "AkhilJinu",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/NatalNineITSolutions/caartzee_tenantAdmin_service"
|
|
11
|
+
},
|
|
7
12
|
"icon": "icons/candy-logo.png",
|
|
8
13
|
"galleryBanner": {
|
|
9
14
|
"color": "#1c102e",
|
|
@@ -15,7 +20,8 @@
|
|
|
15
20
|
"categories": [
|
|
16
21
|
"Programming Languages",
|
|
17
22
|
"Snippets",
|
|
18
|
-
"Linters"
|
|
23
|
+
"Linters",
|
|
24
|
+
"Formatters"
|
|
19
25
|
],
|
|
20
26
|
"keywords": [
|
|
21
27
|
"candy",
|
|
@@ -32,6 +38,14 @@
|
|
|
32
38
|
],
|
|
33
39
|
"main": "./extension.js",
|
|
34
40
|
"contributes": {
|
|
41
|
+
"commands": [
|
|
42
|
+
{ "command": "candy.dev", "title": "Candy: Start Local Preview (dev)" },
|
|
43
|
+
{ "command": "candy.doctor", "title": "Candy: Run Theme Doctor" },
|
|
44
|
+
{ "command": "candy.syncManifest", "title": "Candy: Sync Manifest" },
|
|
45
|
+
{ "command": "candy.validate", "title": "Candy: Validate Theme" },
|
|
46
|
+
{ "command": "candy.build", "title": "Candy: Build Bundle" },
|
|
47
|
+
{ "command": "candy.push", "title": "Candy: Push to Partner Portal" }
|
|
48
|
+
],
|
|
35
49
|
"languages": [
|
|
36
50
|
{
|
|
37
51
|
"id": "candy",
|
|
@@ -89,6 +103,7 @@
|
|
|
89
103
|
],
|
|
90
104
|
"configurationDefaults": {
|
|
91
105
|
"[candy]": {
|
|
106
|
+
"editor.defaultFormatter": "AkhilJinu.candy-language-support",
|
|
92
107
|
"editor.tabSize": 2,
|
|
93
108
|
"editor.insertSpaces": true,
|
|
94
109
|
"editor.bracketPairColorization.enabled": true,
|
|
@@ -175,5 +175,96 @@
|
|
|
175
175
|
"}"
|
|
176
176
|
],
|
|
177
177
|
"description": "Candy section schema setting field"
|
|
178
|
+
},
|
|
179
|
+
"Candy Dynamic Plugin Hook": {
|
|
180
|
+
"prefix": ["candy-hook", "hook"],
|
|
181
|
+
"body": ["{{ hooks.${1|product_reviews,product_price_after,product_add_to_cart_before,product_add_to_cart_after,product_description_after,login_form_top,login_form_bottom,signup_form_top,signup_form_bottom,cart_items_after,cart_summary_after,header_actions,header_announcement_before,header_announcement_after,footer_widgets_before,footer_widgets_after,footer_bottom|} }}"],
|
|
182
|
+
"description": "Render a Caartzee dynamic plugin hook slot"
|
|
183
|
+
},
|
|
184
|
+
"Candy Variant-Safe Add to Cart Button": {
|
|
185
|
+
"prefix": ["candy-add-to-cart", "atc"],
|
|
186
|
+
"body": [
|
|
187
|
+
"<button",
|
|
188
|
+
" type=\"button\"",
|
|
189
|
+
" class=\"js-add-to-cart\"",
|
|
190
|
+
" data-product-id=\"{{ product.id | escape }}\"",
|
|
191
|
+
" data-variant-id=\"{% if product.has_inventory_variants and product.selected_or_first_available_variant %}{{ product.selected_or_first_available_variant.id | escape }}{% endif %}\"",
|
|
192
|
+
" data-quantity=\"1\"",
|
|
193
|
+
" data-product-name=\"{{ product.title | escape }}\"",
|
|
194
|
+
" data-product-price=\"{{ product.price }}\"",
|
|
195
|
+
" data-product-image=\"{{ product.featured_image | image_url | escape }}\"",
|
|
196
|
+
">",
|
|
197
|
+
" ${1:Add to Bag}",
|
|
198
|
+
"</button>"
|
|
199
|
+
],
|
|
200
|
+
"description": "Caartzee variant-safe Add to Cart button (prevents /_api/cart 422 errors)"
|
|
201
|
+
},
|
|
202
|
+
"Candy Login Form with Firebase Google Sign-In": {
|
|
203
|
+
"prefix": ["candy-login-form"],
|
|
204
|
+
"body": [
|
|
205
|
+
"<form action=\"/_api/auth/login\" method=\"POST\" class=\"js-auth-form\" data-redirect=\"{{ redirect_url | default: '/account' | escape }}\">",
|
|
206
|
+
" {{ hooks.login_form_top }}",
|
|
207
|
+
" <input type=\"hidden\" name=\"redirect\" value=\"{{ redirect_url | default: '/account' | escape }}\" />",
|
|
208
|
+
" <input id=\"login-email\" type=\"email\" name=\"email\" required autocomplete=\"email\" placeholder=\"you@example.com\" />",
|
|
209
|
+
" <input id=\"login-password\" type=\"password\" name=\"password\" required autocomplete=\"current-password\" placeholder=\"••••••••\" />",
|
|
210
|
+
" <button type=\"submit\" class=\"js-submit-btn\">Sign In</button>",
|
|
211
|
+
"</form>",
|
|
212
|
+
"{% if google_auth_enabled or firebase_auth_enabled %}",
|
|
213
|
+
" <button type=\"button\" class=\"js-firebase-google-btn\" data-redirect=\"{{ redirect_url | default: '/account' | escape }}\">",
|
|
214
|
+
" <span class=\"js-google-btn-text\">Continue with Google</span>",
|
|
215
|
+
" </button>",
|
|
216
|
+
"{% endif %}",
|
|
217
|
+
"{{ hooks.login_form_bottom }}"
|
|
218
|
+
],
|
|
219
|
+
"description": "Caartzee customer login form with dynamic hooks and Firebase Google Sign-In"
|
|
220
|
+
},
|
|
221
|
+
"Candy Signup Form with Firebase Google Sign-In": {
|
|
222
|
+
"prefix": ["candy-signup-form"],
|
|
223
|
+
"body": [
|
|
224
|
+
"<form action=\"/_api/auth/register\" method=\"POST\" class=\"js-auth-form\" data-redirect=\"{{ redirect_url | default: '/account' | escape }}\">",
|
|
225
|
+
" {{ hooks.signup_form_top }}",
|
|
226
|
+
" <input type=\"hidden\" name=\"redirect\" value=\"{{ redirect_url | default: '/account' | escape }}\" />",
|
|
227
|
+
" <input id=\"reg-first-name\" type=\"text\" name=\"firstName\" required placeholder=\"First Name\" />",
|
|
228
|
+
" <input id=\"reg-last-name\" type=\"text\" name=\"lastName\" required placeholder=\"Last Name\" />",
|
|
229
|
+
" <input id=\"reg-email\" type=\"email\" name=\"email\" required autocomplete=\"email\" placeholder=\"you@example.com\" />",
|
|
230
|
+
" <input id=\"reg-phone\" type=\"tel\" name=\"mobile\" required pattern=\"[0-9]{10}\" maxlength=\"10\" inputmode=\"numeric\" placeholder=\"9876543210\" />",
|
|
231
|
+
" <input id=\"reg-password\" type=\"password\" name=\"password\" required minlength=\"8\" autocomplete=\"new-password\" placeholder=\"Password\" />",
|
|
232
|
+
" <button type=\"submit\" class=\"js-submit-btn\">Create Account</button>",
|
|
233
|
+
"</form>",
|
|
234
|
+
"{% if google_auth_enabled or firebase_auth_enabled %}",
|
|
235
|
+
" <button type=\"button\" class=\"js-firebase-google-btn\" data-redirect=\"{{ redirect_url | default: '/account' | escape }}\">",
|
|
236
|
+
" <span class=\"js-google-btn-text\">Continue with Google</span>",
|
|
237
|
+
" </button>",
|
|
238
|
+
"{% endif %}",
|
|
239
|
+
"{{ hooks.signup_form_bottom }}"
|
|
240
|
+
],
|
|
241
|
+
"description": "Caartzee customer signup form with dynamic hooks and Firebase Google Sign-In"
|
|
242
|
+
},
|
|
243
|
+
"Candy Header Menu Loop": {
|
|
244
|
+
"prefix": ["candy-header-menu"],
|
|
245
|
+
"body": [
|
|
246
|
+
"{% if linklists['main-menu'].links.size > 0 %}",
|
|
247
|
+
" {% for link in linklists['main-menu'].links %}",
|
|
248
|
+
" <a href=\"{{ link.url | safe_url }}\">{{ link.title | default: link.label | escape }}</a>",
|
|
249
|
+
" {% endfor %}",
|
|
250
|
+
"{% endif %}"
|
|
251
|
+
],
|
|
252
|
+
"description": "Render merchant Menu Manage navigation links"
|
|
253
|
+
},
|
|
254
|
+
"Candy Hero Mobile Sliders Loop": {
|
|
255
|
+
"prefix": ["candy-hero-slider"],
|
|
256
|
+
"body": [
|
|
257
|
+
"{% if mobile_sliders and mobile_sliders.size > 0 %}",
|
|
258
|
+
" {% for slide in mobile_sliders %}",
|
|
259
|
+
" <div class=\"slide{% if forloop.first %} is-active{% endif %}\" data-hero-slide=\"{{ forloop.index0 }}\">",
|
|
260
|
+
" <h1>{{ slide.title | escape }}</h1>",
|
|
261
|
+
" <p>{{ slide.description | escape }}</p>",
|
|
262
|
+
" <img src=\"{{ slide.image | image_url | escape }}\" alt=\"{{ slide.title | escape }}\" />",
|
|
263
|
+
" <a href=\"{{ slide.button_url | default: '/products' | safe_url }}\">{{ slide.button_text | default: 'Shop Now' | escape }}</a>",
|
|
264
|
+
" </div>",
|
|
265
|
+
" {% endfor %}",
|
|
266
|
+
"{% endif %}"
|
|
267
|
+
],
|
|
268
|
+
"description": "Render merchant Mobile Slider slides in hero-banner.candy"
|
|
178
269
|
}
|
|
179
270
|
}
|