@animaapp/anima-sdk 0.6.22 → 0.6.23
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 +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +27 -12
- package/dist/index.js +1318 -1312
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -304,7 +304,9 @@ export declare type GetCodeFromFigmaErrorReason = "Selected node type is not sup
|
|
|
304
304
|
export declare type GetCodeFromPromptErrorReason = "Invalid prompt" | "Generation failed" | "Unknown";
|
|
305
305
|
|
|
306
306
|
export declare type GetCodeFromPromptHandler = ((message: SSEGetCodeFromPromptMessage) => void) | {
|
|
307
|
-
onQueueing?: (
|
|
307
|
+
onQueueing?: ({ sessionId }: {
|
|
308
|
+
sessionId: string;
|
|
309
|
+
}) => void;
|
|
308
310
|
onStart?: ({ sessionId }: {
|
|
309
311
|
sessionId: string;
|
|
310
312
|
}) => void;
|
|
@@ -344,7 +346,9 @@ export declare type GetCodeFromPromptSettings = BaseSettings & {
|
|
|
344
346
|
export declare type GetCodeFromWebsiteErrorReason = "Scraping is blocked" | "Unknown";
|
|
345
347
|
|
|
346
348
|
export declare type GetCodeFromWebsiteHandler = ((message: SSEGetCodeFromWebsiteMessage) => void) | {
|
|
347
|
-
onQueueing?: (
|
|
349
|
+
onQueueing?: ({ sessionId }: {
|
|
350
|
+
sessionId: string;
|
|
351
|
+
}) => void;
|
|
348
352
|
onStart?: ({ sessionId }: {
|
|
349
353
|
sessionId: string;
|
|
350
354
|
}) => void;
|
|
@@ -380,7 +384,9 @@ export declare type GetCodeFromWebsiteSettings = BaseSettings & {
|
|
|
380
384
|
};
|
|
381
385
|
|
|
382
386
|
export declare type GetCodeHandler = ((message: SSEGetCodeFromFigmaMessage) => void) | {
|
|
383
|
-
onQueueing?: (
|
|
387
|
+
onQueueing?: ({ sessionId }: {
|
|
388
|
+
sessionId: string;
|
|
389
|
+
}) => void;
|
|
384
390
|
onStart?: ({ sessionId }: {
|
|
385
391
|
sessionId: string;
|
|
386
392
|
}) => void;
|
|
@@ -509,7 +515,7 @@ export declare type L2CParams = {
|
|
|
509
515
|
input: L2CParamsInput;
|
|
510
516
|
conventions: L2CParamsConvention;
|
|
511
517
|
assetsStorage: L2CParamsAssetsStorage;
|
|
512
|
-
viewports?: Array<
|
|
518
|
+
viewports?: Array<"desktop" | "tablet" | "mobile">;
|
|
513
519
|
};
|
|
514
520
|
|
|
515
521
|
/**
|
|
@@ -521,9 +527,9 @@ export declare type L2CParamsAssetsStorage = L2CParamsBundledAssetsStorage;
|
|
|
521
527
|
* @deprecated This type is deprecated and will be removed soon.
|
|
522
528
|
*/
|
|
523
529
|
export declare type L2CParamsBundledAssetsStorage = {
|
|
524
|
-
type:
|
|
530
|
+
type: "bundled";
|
|
525
531
|
referencePath?: string;
|
|
526
|
-
importMode?:
|
|
532
|
+
importMode?: "watermarked" | "original";
|
|
527
533
|
};
|
|
528
534
|
|
|
529
535
|
/**
|
|
@@ -534,13 +540,13 @@ export declare type L2CParamsConvention = L2CParamsHtmlConvention | L2CParamsRea
|
|
|
534
540
|
/**
|
|
535
541
|
* @deprecated This type is deprecated and will be removed soon.
|
|
536
542
|
*/
|
|
537
|
-
export declare type L2CParamsFramework =
|
|
543
|
+
export declare type L2CParamsFramework = "html" | "react";
|
|
538
544
|
|
|
539
545
|
/**
|
|
540
546
|
* @deprecated This type is deprecated and will be removed soon.
|
|
541
547
|
*/
|
|
542
548
|
export declare type L2CParamsHtmlConvention = {
|
|
543
|
-
framework:
|
|
549
|
+
framework: "html";
|
|
544
550
|
styling: L2CParamsStyling;
|
|
545
551
|
};
|
|
546
552
|
|
|
@@ -552,13 +558,13 @@ export declare type L2CParamsInput = L2CParamsUrlInput;
|
|
|
552
558
|
/**
|
|
553
559
|
* @deprecated This type is deprecated and will be removed soon.
|
|
554
560
|
*/
|
|
555
|
-
export declare type L2CParamsLanguage =
|
|
561
|
+
export declare type L2CParamsLanguage = "typescript";
|
|
556
562
|
|
|
557
563
|
/**
|
|
558
564
|
* @deprecated This type is deprecated and will be removed soon.
|
|
559
565
|
*/
|
|
560
566
|
export declare type L2CParamsReactConvention = {
|
|
561
|
-
framework:
|
|
567
|
+
framework: "react";
|
|
562
568
|
language: L2CParamsLanguage;
|
|
563
569
|
styling: L2CParamsStyling;
|
|
564
570
|
enableGeneratePackageLock?: boolean;
|
|
@@ -567,7 +573,7 @@ export declare type L2CParamsReactConvention = {
|
|
|
567
573
|
/**
|
|
568
574
|
* @deprecated This type is deprecated and will be removed soon.
|
|
569
575
|
*/
|
|
570
|
-
export declare type L2CParamsStyling =
|
|
576
|
+
export declare type L2CParamsStyling = "tailwind" | "inline-styles";
|
|
571
577
|
|
|
572
578
|
/**
|
|
573
579
|
* @deprecated This type is deprecated and will be removed soon.
|
|
@@ -587,7 +593,8 @@ export declare class NotFound extends Error {
|
|
|
587
593
|
|
|
588
594
|
export declare type ProgressMessage = {
|
|
589
595
|
id: string;
|
|
590
|
-
|
|
596
|
+
title: string;
|
|
597
|
+
body: string;
|
|
591
598
|
attachments?: {
|
|
592
599
|
images?: string[];
|
|
593
600
|
};
|
|
@@ -626,11 +633,19 @@ export declare type SSECodegenMessage = SSEGetCodeFromFigmaMessage;
|
|
|
626
633
|
|
|
627
634
|
export declare type SSECommonMessage = {
|
|
628
635
|
type: "queueing";
|
|
636
|
+
payload: {
|
|
637
|
+
sessionId: string;
|
|
638
|
+
};
|
|
629
639
|
} | {
|
|
630
640
|
type: "progress_messages_updated";
|
|
631
641
|
payload: {
|
|
632
642
|
progressMessages: ProgressMessage[];
|
|
633
643
|
};
|
|
644
|
+
} | {
|
|
645
|
+
type: "job_status_updated";
|
|
646
|
+
payload: {
|
|
647
|
+
jobStatus: Record<string, any>;
|
|
648
|
+
};
|
|
634
649
|
} | {
|
|
635
650
|
type: "aborted";
|
|
636
651
|
};
|