@caartzee/theme-sdk 1.2.0 → 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/dist/bin/caartzee-theme.js +469 -54
- package/dist/lib/index.js +469 -54
- package/dist/types/src/blocks/block-contract.d.ts +10 -10
- package/dist/types/src/cli/mcp/ui-patterns-tools.d.ts +26 -0
- package/dist/types/src/cli/mcp/v2-api-catalog.d.ts +69 -0
- package/dist/types/src/cli/mcp/v2-commerce-tools.d.ts +18 -0
- package/dist/types/src/contracts/manifest.d.ts +77 -77
- 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 +1 -1
- package/templates/commerce/manifest.json +1 -1
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export type CandyDesignPresetId = 'minimal-luxury' | 'streetwear-editorial' | 'organic-wellness' | 'modern-tech' | 'vibrant-d2c';
|
|
2
|
+
export interface CandyDesignPreset {
|
|
3
|
+
id: CandyDesignPresetId;
|
|
4
|
+
name: string;
|
|
5
|
+
description: string;
|
|
6
|
+
bestFor: string;
|
|
7
|
+
googleFontsUrl: string;
|
|
8
|
+
tokens: {
|
|
9
|
+
colors: {
|
|
10
|
+
background: string;
|
|
11
|
+
surface: string;
|
|
12
|
+
text: string;
|
|
13
|
+
muted: string;
|
|
14
|
+
border: string;
|
|
15
|
+
primary: string;
|
|
16
|
+
primaryText: string;
|
|
17
|
+
accent: string;
|
|
18
|
+
danger: string;
|
|
19
|
+
success: string;
|
|
20
|
+
};
|
|
21
|
+
typography: {
|
|
22
|
+
headingFont: string;
|
|
23
|
+
bodyFont: string;
|
|
24
|
+
};
|
|
25
|
+
borderRadius: {
|
|
26
|
+
sm: string;
|
|
27
|
+
md: string;
|
|
28
|
+
lg: string;
|
|
29
|
+
button: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export declare const CANDY_DESIGN_PRESETS: Record<CandyDesignPresetId, CandyDesignPreset>;
|
|
34
|
+
export declare const CANDY_DESIGN_PRESET_IDS: CandyDesignPresetId[];
|
|
35
|
+
export declare function resolveDesignPreset(id?: string): CandyDesignPreset;
|
|
36
|
+
/**
|
|
37
|
+
* Generates a cohesive, Dawn-level responsive CSS design system that styles
|
|
38
|
+
* every storefront page (Home, Collection, PDP, Cart, Search, Wishlist, Login, Register, Page, 404)
|
|
39
|
+
* consistently via semantic CSS custom properties.
|
|
40
|
+
*/
|
|
41
|
+
export declare function buildCandyDesignSystemCss(presetInput?: CandyDesignPresetId | CandyDesignPreset): string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type CandyDesignPresetId } from './design-presets';
|
|
1
2
|
export interface ScaffoldThemeOptions {
|
|
2
3
|
targetDir: string;
|
|
3
4
|
slug?: string | undefined;
|
|
@@ -7,6 +8,7 @@ export interface ScaffoldThemeOptions {
|
|
|
7
8
|
sdkPath?: string | undefined;
|
|
8
9
|
sdkVersion?: string | undefined;
|
|
9
10
|
engine?: 'typescript' | 'candy' | undefined;
|
|
11
|
+
preset?: CandyDesignPresetId | undefined;
|
|
10
12
|
}
|
|
11
13
|
export interface ScaffoldResult {
|
|
12
14
|
success: boolean;
|
|
@@ -14,7 +14,7 @@ export declare const SectionContractSchema: z.ZodObject<{
|
|
|
14
14
|
allowedTemplates: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
15
15
|
settings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
16
16
|
id: z.ZodString;
|
|
17
|
-
type: z.ZodEnum<["text", "textarea", "richtext", "inline_richtext", "header", "paragraph", "number", "boolean", "checkbox", "radio", "color", "image", "image_picker", "select", "range", "url", "json", "code", "javascript", "category_list", "product_picker", "collection_picker", "font", "spacing"]>;
|
|
17
|
+
type: z.ZodEnum<["text", "textarea", "richtext", "inline_richtext", "header", "paragraph", "number", "boolean", "checkbox", "radio", "color", "image", "image_picker", "select", "range", "url", "json", "html", "code", "javascript", "category_list", "product_picker", "collection_picker", "font", "spacing"]>;
|
|
18
18
|
label: z.ZodString;
|
|
19
19
|
default: z.ZodOptional<z.ZodUnknown>;
|
|
20
20
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -34,7 +34,7 @@ export declare const SectionContractSchema: z.ZodObject<{
|
|
|
34
34
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
35
35
|
}, "strip", z.ZodTypeAny, {
|
|
36
36
|
id: string;
|
|
37
|
-
type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
|
|
37
|
+
type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "html" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
|
|
38
38
|
label: string;
|
|
39
39
|
options?: {
|
|
40
40
|
value: string | number | boolean;
|
|
@@ -48,7 +48,7 @@ export declare const SectionContractSchema: z.ZodObject<{
|
|
|
48
48
|
placeholder?: string | undefined;
|
|
49
49
|
}, {
|
|
50
50
|
id: string;
|
|
51
|
-
type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
|
|
51
|
+
type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "html" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
|
|
52
52
|
label: string;
|
|
53
53
|
options?: {
|
|
54
54
|
value: string | number | boolean;
|
|
@@ -67,7 +67,7 @@ export declare const SectionContractSchema: z.ZodObject<{
|
|
|
67
67
|
max: z.ZodOptional<z.ZodNumber>;
|
|
68
68
|
settings: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
69
69
|
id: z.ZodString;
|
|
70
|
-
type: z.ZodEnum<["text", "textarea", "richtext", "inline_richtext", "header", "paragraph", "number", "boolean", "checkbox", "radio", "color", "image", "image_picker", "select", "range", "url", "json", "code", "javascript", "category_list", "product_picker", "collection_picker", "font", "spacing"]>;
|
|
70
|
+
type: z.ZodEnum<["text", "textarea", "richtext", "inline_richtext", "header", "paragraph", "number", "boolean", "checkbox", "radio", "color", "image", "image_picker", "select", "range", "url", "json", "html", "code", "javascript", "category_list", "product_picker", "collection_picker", "font", "spacing"]>;
|
|
71
71
|
label: z.ZodString;
|
|
72
72
|
default: z.ZodOptional<z.ZodUnknown>;
|
|
73
73
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -87,7 +87,7 @@ export declare const SectionContractSchema: z.ZodObject<{
|
|
|
87
87
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
88
88
|
}, "strip", z.ZodTypeAny, {
|
|
89
89
|
id: string;
|
|
90
|
-
type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
|
|
90
|
+
type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "html" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
|
|
91
91
|
label: string;
|
|
92
92
|
options?: {
|
|
93
93
|
value: string | number | boolean;
|
|
@@ -101,7 +101,7 @@ export declare const SectionContractSchema: z.ZodObject<{
|
|
|
101
101
|
placeholder?: string | undefined;
|
|
102
102
|
}, {
|
|
103
103
|
id: string;
|
|
104
|
-
type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
|
|
104
|
+
type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "html" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
|
|
105
105
|
label: string;
|
|
106
106
|
options?: {
|
|
107
107
|
value: string | number | boolean;
|
|
@@ -118,7 +118,7 @@ export declare const SectionContractSchema: z.ZodObject<{
|
|
|
118
118
|
type: string;
|
|
119
119
|
settings: {
|
|
120
120
|
id: string;
|
|
121
|
-
type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
|
|
121
|
+
type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "html" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
|
|
122
122
|
label: string;
|
|
123
123
|
options?: {
|
|
124
124
|
value: string | number | boolean;
|
|
@@ -138,7 +138,7 @@ export declare const SectionContractSchema: z.ZodObject<{
|
|
|
138
138
|
label: string;
|
|
139
139
|
settings?: {
|
|
140
140
|
id: string;
|
|
141
|
-
type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
|
|
141
|
+
type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "html" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
|
|
142
142
|
label: string;
|
|
143
143
|
options?: {
|
|
144
144
|
value: string | number | boolean;
|
|
@@ -192,7 +192,7 @@ export declare const SectionContractSchema: z.ZodObject<{
|
|
|
192
192
|
type: string;
|
|
193
193
|
settings?: {
|
|
194
194
|
id: string;
|
|
195
|
-
type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
|
|
195
|
+
type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "html" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
|
|
196
196
|
label: string;
|
|
197
197
|
options?: {
|
|
198
198
|
value: string | number | boolean;
|
|
@@ -209,7 +209,7 @@ export declare const SectionContractSchema: z.ZodObject<{
|
|
|
209
209
|
type: string;
|
|
210
210
|
settings: {
|
|
211
211
|
id: string;
|
|
212
|
-
type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
|
|
212
|
+
type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "html" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
|
|
213
213
|
label: string;
|
|
214
214
|
options?: {
|
|
215
215
|
value: string | number | boolean;
|
|
@@ -250,7 +250,7 @@ export declare const SectionContractSchema: z.ZodObject<{
|
|
|
250
250
|
type: string;
|
|
251
251
|
settings?: {
|
|
252
252
|
id: string;
|
|
253
|
-
type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
|
|
253
|
+
type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "html" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
|
|
254
254
|
label: string;
|
|
255
255
|
options?: {
|
|
256
256
|
value: string | number | boolean;
|
|
@@ -268,7 +268,7 @@ export declare const SectionContractSchema: z.ZodObject<{
|
|
|
268
268
|
label: string;
|
|
269
269
|
settings?: {
|
|
270
270
|
id: string;
|
|
271
|
-
type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
|
|
271
|
+
type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "html" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
|
|
272
272
|
label: string;
|
|
273
273
|
options?: {
|
|
274
274
|
value: string | number | boolean;
|