@animaapp/anima-sdk 0.23.2 → 0.23.5
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 +10 -2
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
|
@@ -419,6 +419,12 @@ export declare type GetCodeFromWebsiteHandler = ((message: SSEGetCodeFromWebsite
|
|
|
419
419
|
onCodegenCompleted?: () => void;
|
|
420
420
|
};
|
|
421
421
|
|
|
422
|
+
export declare type GetCodeFromWebsiteHTMLOptimizations = {
|
|
423
|
+
extractInlineAssets?: boolean;
|
|
424
|
+
pruneComputedCSSNoise?: boolean;
|
|
425
|
+
factorRepeatedCSSDeclarations?: boolean;
|
|
426
|
+
};
|
|
427
|
+
|
|
422
428
|
export declare type GetCodeFromWebsiteParams = {
|
|
423
429
|
url?: string;
|
|
424
430
|
/** @deprecated Use `mhtmlUrl` instead. */
|
|
@@ -433,13 +439,14 @@ export declare type GetCodeFromWebsiteParams = {
|
|
|
433
439
|
url: string;
|
|
434
440
|
}>;
|
|
435
441
|
dsId?: string;
|
|
442
|
+
htmlOptimizations?: GetCodeFromWebsiteHTMLOptimizations;
|
|
436
443
|
experimental_useNewReactEngine?: boolean;
|
|
437
444
|
};
|
|
438
445
|
|
|
439
446
|
export declare type GetCodeFromWebsiteSettings = BaseSettings & {
|
|
440
447
|
language?: "typescript";
|
|
441
448
|
framework: "react" | "html";
|
|
442
|
-
styling: "tailwind" | "inline_styles";
|
|
449
|
+
styling: "tailwind" | "inline_styles" | "vanilla_css";
|
|
443
450
|
uiLibrary?: "shadcn";
|
|
444
451
|
};
|
|
445
452
|
|
|
@@ -540,6 +547,7 @@ export declare type L2CParams = {
|
|
|
540
547
|
conventions: L2CParamsConvention;
|
|
541
548
|
assetsStorage: L2CParamsAssetsStorage;
|
|
542
549
|
viewports?: Array<"desktop" | "tablet" | "mobile">;
|
|
550
|
+
htmlOptimizations?: GetCodeFromWebsiteHTMLOptimizations;
|
|
543
551
|
};
|
|
544
552
|
|
|
545
553
|
/**
|
|
@@ -597,7 +605,7 @@ export declare type L2CParamsReactConvention = {
|
|
|
597
605
|
/**
|
|
598
606
|
* @deprecated This type is deprecated and will be removed soon.
|
|
599
607
|
*/
|
|
600
|
-
export declare type L2CParamsStyling = "tailwind" | "inline-styles";
|
|
608
|
+
export declare type L2CParamsStyling = "tailwind" | "inline-styles" | "inline_styles" | "vanilla_css";
|
|
601
609
|
|
|
602
610
|
/**
|
|
603
611
|
* @deprecated This type is deprecated and will be removed soon.
|
package/dist/index.js
CHANGED