@caartzee/theme-sdk 1.2.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/dist/bin/caartzee-theme.js +464 -53
- package/dist/lib/index.js +464 -53
- 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/scaffold/design-presets.d.ts +41 -0
- package/dist/types/src/scaffold/template-generator.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
2
|
+
export interface CandyUiPattern {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
category: 'hero' | 'merchandising' | 'social-proof' | 'conversion' | 'commerce-page';
|
|
6
|
+
targetFile: string;
|
|
7
|
+
description: string;
|
|
8
|
+
candySource: string;
|
|
9
|
+
cssSnippet: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const CANDY_UI_PATTERNS: CandyUiPattern[];
|
|
12
|
+
export declare function auditCandyUiConsistency(themeDir: string): {
|
|
13
|
+
themeDir: string;
|
|
14
|
+
status: string;
|
|
15
|
+
summary: {
|
|
16
|
+
passed: number;
|
|
17
|
+
failed: number;
|
|
18
|
+
warnings: number;
|
|
19
|
+
};
|
|
20
|
+
checks: {
|
|
21
|
+
id: string;
|
|
22
|
+
status: string;
|
|
23
|
+
message: string;
|
|
24
|
+
}[];
|
|
25
|
+
};
|
|
26
|
+
export declare function registerUiPatternsTools(server: McpServer): void;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
2
|
+
/**
|
|
3
|
+
* Caartzee Developer V2 Commerce MCP Tools & Reusable Prompts
|
|
4
|
+
* Enables AI agents to discover V2 REST APIs, scopes, rate limits, webhooks,
|
|
5
|
+
* @caartzee/storefront-sdk, mobile (Expo/React Native/Flutter) and Next.js headless guides.
|
|
6
|
+
*/
|
|
7
|
+
export declare const V2_COMMERCE_ENDPOINTS_SUMMARY: {
|
|
8
|
+
id: string;
|
|
9
|
+
method: string;
|
|
10
|
+
path: string;
|
|
11
|
+
tag: string;
|
|
12
|
+
scope: string;
|
|
13
|
+
auth: string;
|
|
14
|
+
rateTier: string;
|
|
15
|
+
}[];
|
|
16
|
+
export declare function registerV2CommerceMcpTools(server: McpServer): void;
|
|
@@ -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;
|