@animaapp/anima-sdk 0.13.0 → 0.16.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.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +8 -2
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -153,7 +153,7 @@ export declare type CodegenSettings = BaseSettings & {
|
|
|
153
153
|
model?: string;
|
|
154
154
|
framework: "react" | "html";
|
|
155
155
|
styling: "plain_css" | "tailwind" | "inline_styles";
|
|
156
|
-
uiLibrary?: "mui" | "antd" | "radix" | "shadcn" | "clean_react";
|
|
156
|
+
uiLibrary?: "mui" | "antd" | "radix" | "shadcn" | "clean_react" | "custom_design_system";
|
|
157
157
|
responsivePages?: Array<{
|
|
158
158
|
name: string;
|
|
159
159
|
framesId: string[];
|
|
@@ -371,6 +371,7 @@ export declare type GetCodeFromPromptHandler = ((message: SSEGetCodeFromPromptMe
|
|
|
371
371
|
|
|
372
372
|
export declare type GetCodeFromPromptParams = {
|
|
373
373
|
prompt: string;
|
|
374
|
+
guidelines?: string;
|
|
374
375
|
images?: Array<{
|
|
375
376
|
url: string;
|
|
376
377
|
}>;
|
|
@@ -384,7 +385,7 @@ export declare type GetCodeFromPromptSettings = BaseSettings & {
|
|
|
384
385
|
language?: "typescript";
|
|
385
386
|
framework: "react" | "html";
|
|
386
387
|
styling: "tailwind" | "inline_styles";
|
|
387
|
-
uiLibrary?: "shadcn";
|
|
388
|
+
uiLibrary?: "shadcn" | "custom_design_system";
|
|
388
389
|
};
|
|
389
390
|
|
|
390
391
|
/**
|
|
@@ -742,6 +743,11 @@ export declare type SSEGetCodeFromFigmaMessage = SSECommonMessage<GetCodeFromFig
|
|
|
742
743
|
url: string;
|
|
743
744
|
}>;
|
|
744
745
|
};
|
|
746
|
+
} | {
|
|
747
|
+
type: "snapshots_urls";
|
|
748
|
+
payload: {
|
|
749
|
+
urls: Record<string, string>;
|
|
750
|
+
};
|
|
745
751
|
};
|
|
746
752
|
|
|
747
753
|
export declare type SSEGetCodeFromFigmaMessageErrorPayload = SSEErrorPayload<GetCodeFromFigmaErrorReason>;
|
package/dist/index.js
CHANGED
|
@@ -3492,7 +3492,7 @@ const ds = bt({
|
|
|
3492
3492
|
framework: Yn("react"),
|
|
3493
3493
|
model: vt().optional(),
|
|
3494
3494
|
styling: wt(["plain_css", "tailwind", "inline_styles"]),
|
|
3495
|
-
uiLibrary: wt(["mui", "antd", "radix", "shadcn", "clean_react"]).optional(),
|
|
3495
|
+
uiLibrary: wt(["mui", "antd", "radix", "shadcn", "clean_react", "custom_design_system"]).optional(),
|
|
3496
3496
|
responsivePages: Xn(
|
|
3497
3497
|
bt({
|
|
3498
3498
|
name: vt(),
|
|
@@ -4234,6 +4234,7 @@ class to {
|
|
|
4234
4234
|
assetsStorage: t.assetsStorage,
|
|
4235
4235
|
params: d({
|
|
4236
4236
|
prompt: t.prompt,
|
|
4237
|
+
guidelines: t.guidelines,
|
|
4237
4238
|
images: t.images,
|
|
4238
4239
|
conventions: {
|
|
4239
4240
|
language: t.settings.language,
|