@caartzee/theme-sdk 0.0.0-stage → 1.2.0

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 (179) hide show
  1. package/README.md +222 -2
  2. package/dist/bin/caartzee-theme.js +9223 -0
  3. package/dist/lib/index.js +11614 -0
  4. package/dist/types/src/auth/credentials-store.d.ts +18 -0
  5. package/dist/types/src/auth/index.d.ts +2 -0
  6. package/dist/types/src/auth/oauth-client.d.ts +39 -0
  7. package/dist/types/src/blocks/block-contract.d.ts +242 -0
  8. package/dist/types/src/candy/compatibility-matrix.d.ts +10 -0
  9. package/dist/types/src/candy/context-builder.d.ts +31 -0
  10. package/dist/types/src/candy/engine.d.ts +69 -0
  11. package/dist/types/src/candy/filters.d.ts +32 -0
  12. package/dist/types/src/candy/ide-support.d.ts +20 -0
  13. package/dist/types/src/candy/index.d.ts +9 -0
  14. package/dist/types/src/candy/schema-parser.d.ts +13 -0
  15. package/dist/types/src/candy/security.d.ts +54 -0
  16. package/dist/types/src/candy/tags.d.ts +11 -0
  17. package/dist/types/src/candy/types.d.ts +185 -0
  18. package/dist/types/src/cli/caartzee-cli.d.ts +9 -0
  19. package/dist/types/src/cli/candy-mcp.d.ts +2 -0
  20. package/dist/types/src/cli/candy-tool-server.d.ts +39 -0
  21. package/dist/types/src/cli/index.d.ts +1 -0
  22. package/dist/types/src/cli/mcp/component-tools.d.ts +2 -0
  23. package/dist/types/src/cli/mcp/docs-tools.d.ts +89 -0
  24. package/dist/types/src/cli/mcp/editor-tools.d.ts +22 -0
  25. package/dist/types/src/cli/mcp/resources-and-prompts.d.ts +2 -0
  26. package/dist/types/src/cli/mcp/testing-tools.d.ts +54 -0
  27. package/dist/types/src/cli/sdk-client.d.ts +12 -0
  28. package/dist/types/src/contracts/category-selection.d.ts +15 -0
  29. package/dist/types/src/contracts/commerce.d.ts +282 -0
  30. package/dist/types/src/contracts/footer-builder.d.ts +125 -0
  31. package/dist/types/src/contracts/hooks.d.ts +37 -0
  32. package/dist/types/src/contracts/manifest.d.ts +3127 -0
  33. package/dist/types/src/contracts/navigation.d.ts +39 -0
  34. package/dist/types/src/contracts/order-tracking.d.ts +40 -0
  35. package/dist/types/src/contracts/page.d.ts +262 -0
  36. package/dist/types/src/contracts/storefront-content.d.ts +60 -0
  37. package/dist/types/src/contracts/style-document.d.ts +2 -0
  38. package/dist/types/src/contracts/styles.d.ts +2002 -0
  39. package/dist/types/src/contracts/theme.d.ts +35 -0
  40. package/dist/types/src/dev-server/catalog-preview.d.ts +25 -0
  41. package/dist/types/src/dev-server/dev-server.d.ts +25 -0
  42. package/dist/types/src/dev-server/index.d.ts +1 -0
  43. package/dist/types/src/dev-server/local-commerce-runtime.d.ts +76 -0
  44. package/dist/types/src/dev-server/local-editor-server.d.ts +22 -0
  45. package/dist/types/src/dev-server/theme-preview.d.ts +8 -0
  46. package/dist/types/src/index.d.ts +27 -0
  47. package/dist/types/src/mock/index.d.ts +10 -0
  48. package/dist/types/src/mock/mock-categories.d.ts +2 -0
  49. package/dist/types/src/mock/mock-commerce.d.ts +55 -0
  50. package/dist/types/src/mock/mock-customer.d.ts +47 -0
  51. package/dist/types/src/mock/mock-hooks.d.ts +2 -0
  52. package/dist/types/src/mock/mock-products.d.ts +3 -0
  53. package/dist/types/src/rendering/commerce-pages.d.ts +16 -0
  54. package/dist/types/src/rendering/raw-html.d.ts +12 -0
  55. package/dist/types/src/rendering/section-wrapper.d.ts +30 -0
  56. package/dist/types/src/scaffold/candy-starter-assets.d.ts +2 -0
  57. package/dist/types/src/scaffold/commerce-generator.d.ts +3 -0
  58. package/dist/types/src/scaffold/index.d.ts +2 -0
  59. package/dist/types/src/scaffold/template-generator.d.ts +21 -0
  60. package/dist/types/src/sections/section-contract.d.ts +350 -0
  61. package/dist/types/src/settings/global-settings.d.ts +25 -0
  62. package/dist/types/src/templates/json-template.d.ts +991 -0
  63. package/dist/types/src/validation/package-validator.d.ts +53 -0
  64. package/dist/types/src/validation/rich-text.d.ts +24 -0
  65. package/package.json +29 -3
  66. package/templates/commerce/README.md +165 -0
  67. package/templates/commerce/assets/theme.css +1 -0
  68. package/templates/commerce/manifest.json +1 -0
  69. package/templates/commerce/src/blocks/index.ts +184 -0
  70. package/templates/commerce/src/config/settings-defaults.ts +25 -0
  71. package/templates/commerce/src/config/settings-schema.ts +102 -0
  72. package/templates/commerce/src/index.ts +90 -0
  73. package/templates/commerce/src/layouts/default.ts +275 -0
  74. package/templates/commerce/src/manifest.ts +976 -0
  75. package/templates/commerce/src/pages/account/components.ts +369 -0
  76. package/templates/commerce/src/pages/account/tabs.ts +792 -0
  77. package/templates/commerce/src/pages/account.ts +55 -0
  78. package/templates/commerce/src/pages/campaign.ts +423 -0
  79. package/templates/commerce/src/pages/cart.ts +261 -0
  80. package/templates/commerce/src/pages/category-detail.ts +124 -0
  81. package/templates/commerce/src/pages/category-list.ts +87 -0
  82. package/templates/commerce/src/pages/checkout.ts +712 -0
  83. package/templates/commerce/src/pages/commerce.ts +45 -0
  84. package/templates/commerce/src/pages/home.ts +160 -0
  85. package/templates/commerce/src/pages/index.ts +99 -0
  86. package/templates/commerce/src/pages/login.ts +204 -0
  87. package/templates/commerce/src/pages/order-success.ts +80 -0
  88. package/templates/commerce/src/pages/product-detail.ts +489 -0
  89. package/templates/commerce/src/pages/product-list.ts +125 -0
  90. package/templates/commerce/src/pages/search.ts +88 -0
  91. package/templates/commerce/src/pages/signup.ts +253 -0
  92. package/templates/commerce/src/pages/status.ts +7 -0
  93. package/templates/commerce/src/pages/theme-layout.ts +491 -0
  94. package/templates/commerce/src/pages/track-order.ts +196 -0
  95. package/templates/commerce/src/pages/wishlist.ts +83 -0
  96. package/templates/commerce/src/sections/about-story.ts +117 -0
  97. package/templates/commerce/src/sections/announcement-bar.ts +101 -0
  98. package/templates/commerce/src/sections/banner-grid.ts +319 -0
  99. package/templates/commerce/src/sections/campaign-banners.ts +158 -0
  100. package/templates/commerce/src/sections/category-slider.ts +144 -0
  101. package/templates/commerce/src/sections/content-builder.ts +123 -0
  102. package/templates/commerce/src/sections/content-controls.ts +45 -0
  103. package/templates/commerce/src/sections/custom-form.ts +59 -0
  104. package/templates/commerce/src/sections/faq-accordion.ts +123 -0
  105. package/templates/commerce/src/sections/footer.ts +728 -0
  106. package/templates/commerce/src/sections/header.ts +439 -0
  107. package/templates/commerce/src/sections/hero-slider.ts +492 -0
  108. package/templates/commerce/src/sections/hero.ts +137 -0
  109. package/templates/commerce/src/sections/index.ts +102 -0
  110. package/templates/commerce/src/sections/mobile-slider.ts +102 -0
  111. package/templates/commerce/src/sections/newsletter.ts +43 -0
  112. package/templates/commerce/src/sections/product-grid.ts +191 -0
  113. package/templates/commerce/src/sections/raw-html.ts +1 -0
  114. package/templates/commerce/src/sections/rich-text.ts +26 -0
  115. package/templates/commerce/src/sections/services-features.ts +211 -0
  116. package/templates/commerce/src/sections/testimonials.ts +194 -0
  117. package/templates/commerce/src/snippets/product-card.ts +178 -0
  118. package/templates/commerce/src/snippets/product-price.ts +46 -0
  119. package/templates/commerce/src/snippets/responsive-image.ts +29 -0
  120. package/templates/commerce/src/styles.ts +477 -0
  121. package/templates/commerce/src/templates/404.json +26 -0
  122. package/templates/commerce/src/templates/account.json +17 -0
  123. package/templates/commerce/src/templates/cart.json +17 -0
  124. package/templates/commerce/src/templates/category.json +16 -0
  125. package/templates/commerce/src/templates/checkout.json +15 -0
  126. package/templates/commerce/src/templates/collection.json +16 -0
  127. package/templates/commerce/src/templates/index.json +180 -0
  128. package/templates/commerce/src/templates/login.json +17 -0
  129. package/templates/commerce/src/templates/order-success.json +17 -0
  130. package/templates/commerce/src/templates/page.json +17 -0
  131. package/templates/commerce/src/templates/product.json +17 -0
  132. package/templates/commerce/src/templates/search.json +18 -0
  133. package/templates/commerce/src/templates/signup.json +17 -0
  134. package/templates/commerce/src/templates/track-order.json +17 -0
  135. package/templates/commerce/src/templates/wishlist.json +17 -0
  136. package/templates/commerce/src/templates.ts +510 -0
  137. package/templates/commerce/src/tokens.ts +22 -0
  138. package/templates/theme-candy-boilerplate/.editorconfig +14 -0
  139. package/templates/theme-candy-boilerplate/.gitattributes +1 -0
  140. package/templates/theme-candy-boilerplate/.vscode/extensions.json +7 -0
  141. package/templates/theme-candy-boilerplate/.vscode/settings.json +17 -0
  142. package/templates/theme-candy-boilerplate/assets/theme.css +78 -0
  143. package/templates/theme-candy-boilerplate/assets/theme.js +7 -0
  144. package/templates/theme-candy-boilerplate/candy.config.json +40 -0
  145. package/templates/theme-candy-boilerplate/index.ts +39 -0
  146. package/templates/theme-candy-boilerplate/layout/theme.candy +25 -0
  147. package/templates/theme-candy-boilerplate/locales/en.default.json +37 -0
  148. package/templates/theme-candy-boilerplate/manifest.json +123 -0
  149. package/templates/theme-candy-boilerplate/package.json +16 -0
  150. package/templates/theme-candy-boilerplate/schemas/settings_schema.json +36 -0
  151. package/templates/theme-candy-boilerplate/sections/featured-products.candy +89 -0
  152. package/templates/theme-candy-boilerplate/sections/footer.candy +50 -0
  153. package/templates/theme-candy-boilerplate/sections/header.candy +116 -0
  154. package/templates/theme-candy-boilerplate/sections/hero-banner.candy +135 -0
  155. package/templates/theme-candy-boilerplate/sections/image-with-text.candy +85 -0
  156. package/templates/theme-candy-boilerplate/snippets/price.candy +19 -0
  157. package/templates/theme-candy-boilerplate/snippets/product-card.candy +43 -0
  158. package/templates/theme-candy-boilerplate/templates/404.candy +12 -0
  159. package/templates/theme-candy-boilerplate/templates/cart.candy +51 -0
  160. package/templates/theme-candy-boilerplate/templates/collection.candy +51 -0
  161. package/templates/theme-candy-boilerplate/templates/index.candy +7 -0
  162. package/templates/theme-candy-boilerplate/templates/page.candy +10 -0
  163. package/templates/theme-candy-boilerplate/templates/product.candy +59 -0
  164. package/templates/theme-candy-boilerplate/templates/search.candy +40 -0
  165. package/templates/vscode-candy/LICENSE +21 -0
  166. package/templates/vscode-candy/README.md +22 -0
  167. package/templates/vscode-candy/extension.js +689 -0
  168. package/templates/vscode-candy/icons/candy-dark.svg +23 -0
  169. package/templates/vscode-candy/icons/candy-light.svg +23 -0
  170. package/templates/vscode-candy/icons/candy-logo.png +0 -0
  171. package/templates/vscode-candy/icons/candy-sweet-dark.svg +23 -0
  172. package/templates/vscode-candy/icons/candy-sweet-light.svg +23 -0
  173. package/templates/vscode-candy/language-configuration.json +47 -0
  174. package/templates/vscode-candy/package.json +118 -0
  175. package/templates/vscode-candy/schemas/candy-config.schema.json +56 -0
  176. package/templates/vscode-candy/schemas/candy-settings.schema.json +70 -0
  177. package/templates/vscode-candy/snippets/candy.code-snippets +270 -0
  178. package/templates/vscode-candy/syntaxes/candy.tmLanguage.json +296 -0
  179. package/templates/vscode-candy/vim/ftdetect/candy.vim +5 -0
@@ -0,0 +1,180 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "name": "Home Page",
4
+ "layout": "default",
5
+ "sections": {
6
+ "hero_carousel": {
7
+ "type": "hero-slider",
8
+ "settings": {
9
+ "height": "standard",
10
+ "autoplay": true,
11
+ "intervalSeconds": 6,
12
+ "showArrows": true,
13
+ "showDots": true
14
+ },
15
+ "blocks": {
16
+ "slide_1": {
17
+ "type": "slide",
18
+ "settings": {
19
+ "badge": "NEW SEASON LAUNCH",
20
+ "heading": "Autumn\nCollection 2026",
21
+ "highlightText": "2026",
22
+ "subheading": "Discover the latest seasonal trends in toys, fashion and more for every age.",
23
+ "buttonText": "Shop Collection",
24
+ "buttonLink": "/products",
25
+ "imageUrl": "https://images.unsplash.com/photo-1584917865442-de89df76afd3?w=1200&auto=format&fit=crop&q=85",
26
+ "textAlignment": "left"
27
+ }
28
+ },
29
+ "slide_2": {
30
+ "type": "slide",
31
+ "settings": {
32
+ "badge": "LIMITED DROP",
33
+ "heading": "Playful\nWonders 2026",
34
+ "highlightText": "2026",
35
+ "subheading": "Thoughtfully crafted toys, apparel, and seasonal favorites built for everyday joy.",
36
+ "buttonText": "Explore Collection",
37
+ "buttonLink": "/products",
38
+ "imageUrl": "https://images.unsplash.com/photo-1548036328-c9fa89d128fa?w=1200&auto=format&fit=crop&q=85",
39
+ "textAlignment": "left"
40
+ }
41
+ }
42
+ },
43
+ "block_order": ["slide_1", "slide_2"]
44
+ },
45
+ "trust_strip": {
46
+ "type": "services-features",
47
+ "settings": {
48
+ "columns": 4,
49
+ "bordered": false,
50
+ "variant": "strip"
51
+ },
52
+ "blocks": {
53
+ "trust_shipping": {
54
+ "type": "feature-item",
55
+ "settings": {
56
+ "title": "Free Shipping",
57
+ "description": "Above ₹799",
58
+ "icon": "truck"
59
+ }
60
+ },
61
+ "trust_payment": {
62
+ "type": "feature-item",
63
+ "settings": {
64
+ "title": "Secure Payment",
65
+ "description": "100% Safe & Secure",
66
+ "icon": "shield"
67
+ }
68
+ },
69
+ "trust_returns": {
70
+ "type": "feature-item",
71
+ "settings": {
72
+ "title": "Easy Returns",
73
+ "description": "7 Days Return",
74
+ "icon": "refresh"
75
+ }
76
+ },
77
+ "trust_support": {
78
+ "type": "feature-item",
79
+ "settings": {
80
+ "title": "Customer Support",
81
+ "description": "Always Here for You",
82
+ "icon": "headphones"
83
+ }
84
+ }
85
+ },
86
+ "block_order": ["trust_shipping", "trust_payment", "trust_returns", "trust_support"]
87
+ },
88
+ "categories_row": {
89
+ "type": "category-slider",
90
+ "settings": {
91
+ "eyebrow": "SHOP BY CATEGORY",
92
+ "title": "Explore Our Collections",
93
+ "viewAllText": "",
94
+ "viewAllUrl": "/categories",
95
+ "limit": 6
96
+ },
97
+ "blocks": {}
98
+ },
99
+ "dual_promo_banners": {
100
+ "type": "banner-grid",
101
+ "settings": {
102
+ "columns": 2
103
+ },
104
+ "blocks": {
105
+ "banner_plush": {
106
+ "type": "card-item",
107
+ "settings": {
108
+ "title": "Plush &\nSoft Toys",
109
+ "accentText": "Soft Toys",
110
+ "subtitle": "Cuddly friends for all ages!",
111
+ "buttonText": "Shop Now",
112
+ "linkUrl": "/categories/plush-soft-toys",
113
+ "themeVariant": "warm-blush",
114
+ "imageUrl": "https://images.unsplash.com/photo-1559454403-b8fb88521f11?w=800&auto=format&fit=crop&q=85"
115
+ }
116
+ },
117
+ "banner_rc": {
118
+ "type": "card-item",
119
+ "settings": {
120
+ "title": "Remote Control &\nVehicle Toys",
121
+ "accentText": "Vehicle Toys",
122
+ "subtitle": "High-speed fun for little explorers!",
123
+ "buttonText": "Shop Now",
124
+ "linkUrl": "/categories/remote-control-toys",
125
+ "themeVariant": "cool-mist",
126
+ "imageUrl": "https://images.unsplash.com/photo-1594787318286-3d835c1d207f?w=800&auto=format&fit=crop&q=85"
127
+ }
128
+ }
129
+ },
130
+ "block_order": ["banner_plush", "banner_rc"]
131
+ },
132
+ "featured_products": {
133
+ "type": "featured-products",
134
+ "settings": {
135
+ "title": "Trending This Week",
136
+ "viewAllText": "View All",
137
+ "viewAllUrl": "/products",
138
+ "columns": 5,
139
+ "limit": 5,
140
+ "productLimit": 5
141
+ },
142
+ "blocks": {}
143
+ },
144
+ "vip_club_banner": {
145
+ "type": "banner-grid",
146
+ "settings": {
147
+ "columns": 1,
148
+ "variant": "vip-club",
149
+ "title": "Join the Joybee Club",
150
+ "accentText": "Joybee",
151
+ "subtitle": "Get exclusive offers, early access to new arrivals and special deals just for members!",
152
+ "buttonText": "Sign Up Now",
153
+ "linkUrl": "/signup",
154
+ "perks": "Member-Only Deals | Early Access to Launches | Special Birthday Offers"
155
+ },
156
+ "blocks": {
157
+ "vip_club_card": {
158
+ "type": "card-item",
159
+ "settings": {
160
+ "title": "Join the Joybee Club",
161
+ "accentText": "Joybee",
162
+ "subtitle": "Get exclusive offers, early access to new arrivals and special deals just for members!",
163
+ "buttonText": "Sign Up Now",
164
+ "linkUrl": "/signup",
165
+ "perks": "Member-Only Deals | Early Access to Launches | Special Birthday Offers"
166
+ }
167
+ }
168
+ },
169
+ "block_order": ["vip_club_card"]
170
+ }
171
+ },
172
+ "order": [
173
+ "hero_carousel",
174
+ "trust_strip",
175
+ "categories_row",
176
+ "dual_promo_banners",
177
+ "featured_products",
178
+ "vip_club_banner"
179
+ ]
180
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "name": "Sign In",
4
+ "layout": "default",
5
+ "sections": {
6
+ "login_hero": {
7
+ "type": "rich-text",
8
+ "settings": {
9
+ "heading": "Customer Login",
10
+ "content": "Access your account, track orders, and manage wishlist items.",
11
+ "alignment": "center"
12
+ },
13
+ "blocks": {}
14
+ }
15
+ },
16
+ "order": ["login_hero"]
17
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "name": "Order Confirmation",
4
+ "layout": "default",
5
+ "sections": {
6
+ "order_success_recommendations": {
7
+ "type": "featured-products",
8
+ "settings": {
9
+ "title": "Continue Exploring",
10
+ "columns": 4,
11
+ "productLimit": 4
12
+ },
13
+ "blocks": {}
14
+ }
15
+ },
16
+ "order": ["order_success_recommendations"]
17
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "name": "About Us",
4
+ "layout": "default",
5
+ "sections": {
6
+ "main_content": {
7
+ "type": "rich-text",
8
+ "settings": {
9
+ "heading": "About Our Brand",
10
+ "content": "Crafted with passion for everyday elegance and modern living.",
11
+ "alignment": "center"
12
+ },
13
+ "blocks": {}
14
+ }
15
+ },
16
+ "order": ["main_content"]
17
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "name": "Product Details",
4
+ "layout": "default",
5
+ "sections": {
6
+ "product_related": {
7
+ "type": "featured-products",
8
+ "settings": {
9
+ "title": "Related Products",
10
+ "columns": 4,
11
+ "productLimit": 4
12
+ },
13
+ "blocks": {}
14
+ }
15
+ },
16
+ "order": ["product_related"]
17
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "name": "Search Results",
4
+ "layout": "default",
5
+ "sections": {
6
+ "search_results_grid": {
7
+ "type": "featured-products",
8
+ "settings": {
9
+ "title": "Search Catalog",
10
+ "columns": 4,
11
+ "limit": 12,
12
+ "productLimit": 12
13
+ },
14
+ "blocks": {}
15
+ }
16
+ },
17
+ "order": ["search_results_grid"]
18
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "name": "Create Account",
4
+ "layout": "default",
5
+ "sections": {
6
+ "signup_hero": {
7
+ "type": "rich-text",
8
+ "settings": {
9
+ "heading": "Join Us",
10
+ "content": "Create your account for faster checkout and exclusive member offers.",
11
+ "alignment": "center"
12
+ },
13
+ "blocks": {}
14
+ }
15
+ },
16
+ "order": ["signup_hero"]
17
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "name": "Track Your Order",
4
+ "layout": "default",
5
+ "sections": {
6
+ "track_order_hero": {
7
+ "type": "rich-text",
8
+ "settings": {
9
+ "heading": "Order Status",
10
+ "content": "Enter your tracking ID or email address to review your delivery progress.",
11
+ "alignment": "center"
12
+ },
13
+ "blocks": {}
14
+ }
15
+ },
16
+ "order": ["track_order_hero"]
17
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "name": "Wishlist",
4
+ "layout": "default",
5
+ "sections": {
6
+ "wishlist_showcase": {
7
+ "type": "featured-products",
8
+ "settings": {
9
+ "title": "Trending Essentials",
10
+ "columns": 4,
11
+ "productLimit": 4
12
+ },
13
+ "blocks": {}
14
+ }
15
+ },
16
+ "order": ["wishlist_showcase"]
17
+ }