@animaapp/anima-sdk 0.23.1 → 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.d.ts CHANGED
@@ -389,6 +389,7 @@ export declare type GetCodeFromPromptSettings = BaseSettings & {
389
389
  styling: "tailwind" | "inline_styles";
390
390
  uiLibrary?: "shadcn" | "custom_design_system";
391
391
  dsId?: string;
392
+ fastMode?: boolean;
392
393
  };
393
394
 
394
395
  /**
@@ -418,6 +419,12 @@ export declare type GetCodeFromWebsiteHandler = ((message: SSEGetCodeFromWebsite
418
419
  onCodegenCompleted?: () => void;
419
420
  };
420
421
 
422
+ export declare type GetCodeFromWebsiteHTMLOptimizations = {
423
+ extractInlineAssets?: boolean;
424
+ pruneComputedCSSNoise?: boolean;
425
+ factorRepeatedCSSDeclarations?: boolean;
426
+ };
427
+
421
428
  export declare type GetCodeFromWebsiteParams = {
422
429
  url?: string;
423
430
  /** @deprecated Use `mhtmlUrl` instead. */
@@ -432,13 +439,14 @@ export declare type GetCodeFromWebsiteParams = {
432
439
  url: string;
433
440
  }>;
434
441
  dsId?: string;
442
+ htmlOptimizations?: GetCodeFromWebsiteHTMLOptimizations;
435
443
  experimental_useNewReactEngine?: boolean;
436
444
  };
437
445
 
438
446
  export declare type GetCodeFromWebsiteSettings = BaseSettings & {
439
447
  language?: "typescript";
440
448
  framework: "react" | "html";
441
- styling: "tailwind" | "inline_styles";
449
+ styling: "tailwind" | "inline_styles" | "vanilla_css";
442
450
  uiLibrary?: "shadcn";
443
451
  };
444
452
 
@@ -539,6 +547,7 @@ export declare type L2CParams = {
539
547
  conventions: L2CParamsConvention;
540
548
  assetsStorage: L2CParamsAssetsStorage;
541
549
  viewports?: Array<"desktop" | "tablet" | "mobile">;
550
+ htmlOptimizations?: GetCodeFromWebsiteHTMLOptimizations;
542
551
  };
543
552
 
544
553
  /**
@@ -596,7 +605,7 @@ export declare type L2CParamsReactConvention = {
596
605
  /**
597
606
  * @deprecated This type is deprecated and will be removed soon.
598
607
  */
599
- export declare type L2CParamsStyling = "tailwind" | "inline-styles";
608
+ export declare type L2CParamsStyling = "tailwind" | "inline-styles" | "inline_styles" | "vanilla_css";
600
609
 
601
610
  /**
602
611
  * @deprecated This type is deprecated and will be removed soon.
package/dist/index.js CHANGED
@@ -4577,7 +4577,8 @@ class Gf {
4577
4577
  assetsStorage: {
4578
4578
  type: "bundled"
4579
4579
  },
4580
- engine: s
4580
+ engine: s,
4581
+ htmlOptimizations: t.htmlOptimizations
4581
4582
  }
4582
4583
  };
4583
4584
  return j(this, ae, Ie).call(this, "POST", "/v1/l2c", c, n, "l2c", r);
@@ -4633,7 +4634,8 @@ class Gf {
4633
4634
  styling: t.settings.styling,
4634
4635
  uiLibrary: t.settings.uiLibrary
4635
4636
  },
4636
- dsId: t.settings.dsId
4637
+ dsId: t.settings.dsId,
4638
+ fastMode: t.settings.fastMode
4637
4639
  }, (s = t.settings.codegenSettings) != null ? s : {}),
4638
4640
  webhookUrl: t.webhookUrl
4639
4641
  };