@animaapp/anima-sdk 0.23.5 → 0.24.0-wip

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
@@ -446,7 +446,7 @@ export declare type GetCodeFromWebsiteParams = {
446
446
  export declare type GetCodeFromWebsiteSettings = BaseSettings & {
447
447
  language?: "typescript";
448
448
  framework: "react" | "html";
449
- styling: "tailwind" | "inline_styles" | "vanilla_css";
449
+ styling: "tailwind" | "inline_styles" | "vanilla_css" | "semantic_css";
450
450
  uiLibrary?: "shadcn";
451
451
  };
452
452
 
@@ -605,7 +605,7 @@ export declare type L2CParamsReactConvention = {
605
605
  /**
606
606
  * @deprecated This type is deprecated and will be removed soon.
607
607
  */
608
- export declare type L2CParamsStyling = "tailwind" | "inline-styles" | "inline_styles" | "vanilla_css";
608
+ export declare type L2CParamsStyling = "tailwind" | "inline-styles" | "inline_styles" | "vanilla_css" | "semantic_css";
609
609
 
610
610
  /**
611
611
  * @deprecated This type is deprecated and will be removed soon.
package/dist/index.js CHANGED
@@ -4537,6 +4537,7 @@ class Gf {
4537
4537
  }
4538
4538
  generateCodeFromWebsite(o) {
4539
4539
  return k(this, arguments, function* (t, n = {}, r) {
4540
+ var u;
4540
4541
  let i = t.tracking;
4541
4542
  v(this, x) && "userId" in v(this, x) && v(this, x).userId && (i != null && i.externalId || (i = { externalId: v(this, x).userId }));
4542
4543
  let a;
@@ -4567,7 +4568,7 @@ class Gf {
4567
4568
  prompt: t.prompt,
4568
4569
  images: t.images,
4569
4570
  dsId: t.dsId,
4570
- params: {
4571
+ params: p({
4571
4572
  input: a,
4572
4573
  conventions: {
4573
4574
  framework: t.settings.framework,
@@ -4579,7 +4580,7 @@ class Gf {
4579
4580
  },
4580
4581
  engine: s,
4581
4582
  htmlOptimizations: t.htmlOptimizations
4582
- }
4583
+ }, (u = t.settings.codegenSettings) != null ? u : {})
4583
4584
  };
4584
4585
  return j(this, ae, Ie).call(this, "POST", "/v1/l2c", c, n, "l2c", r);
4585
4586
  });