@animaapp/anima-sdk 0.26.0 → 0.27.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 +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.js +1145 -1136
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -67,6 +67,11 @@ export declare type AnimaSDKResult = BaseResult & {
|
|
|
67
67
|
name: string;
|
|
68
68
|
url: string;
|
|
69
69
|
}>;
|
|
70
|
+
/**
|
|
71
|
+
* Image-mode only.
|
|
72
|
+
*/
|
|
73
|
+
viewport?: ImageToCodeViewport;
|
|
74
|
+
viewportReason?: string;
|
|
70
75
|
};
|
|
71
76
|
|
|
72
77
|
export declare type AssetsStorage = {
|
|
@@ -549,6 +554,8 @@ export declare const getRelatedScreenFiles: ({ files, screenPath, }: {
|
|
|
549
554
|
screenPath?: string;
|
|
550
555
|
}) => AnimaFiles;
|
|
551
556
|
|
|
557
|
+
export declare type ImageToCodeViewport = "desktop" | "mobile" | "tablet";
|
|
558
|
+
|
|
552
559
|
declare type InvalidNodeForCodegenReason = "Selected node is a page with multiple children" | "Selected node is a page with no valid children" | "There is no node with the given id" | "Selected node type is not supported";
|
|
553
560
|
|
|
554
561
|
/**
|