@animaapp/anima-sdk 0.6.23 → 0.6.25
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 +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +10 -8
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -327,6 +327,7 @@ export declare type GetCodeFromPromptHandler = ((message: SSEGetCodeFromPromptMe
|
|
|
327
327
|
|
|
328
328
|
export declare type GetCodeFromPromptParams = {
|
|
329
329
|
prompt: string;
|
|
330
|
+
images?: string[];
|
|
330
331
|
assetsStorage?: AssetsStorage;
|
|
331
332
|
settings: GetCodeFromPromptSettings;
|
|
332
333
|
tracking?: TrackingInfos;
|
|
@@ -374,6 +375,7 @@ export declare type GetCodeFromWebsiteParams = {
|
|
|
374
375
|
settings: GetCodeFromWebsiteSettings;
|
|
375
376
|
tracking?: TrackingInfos;
|
|
376
377
|
webhookUrl?: string;
|
|
378
|
+
experimental_useNewReactEngine?: boolean;
|
|
377
379
|
};
|
|
378
380
|
|
|
379
381
|
export declare type GetCodeFromWebsiteSettings = BaseSettings & {
|
|
@@ -515,7 +517,7 @@ export declare type L2CParams = {
|
|
|
515
517
|
input: L2CParamsInput;
|
|
516
518
|
conventions: L2CParamsConvention;
|
|
517
519
|
assetsStorage: L2CParamsAssetsStorage;
|
|
518
|
-
viewports?: Array<
|
|
520
|
+
viewports?: Array<'desktop' | 'tablet' | 'mobile'>;
|
|
519
521
|
};
|
|
520
522
|
|
|
521
523
|
/**
|
|
@@ -527,9 +529,9 @@ export declare type L2CParamsAssetsStorage = L2CParamsBundledAssetsStorage;
|
|
|
527
529
|
* @deprecated This type is deprecated and will be removed soon.
|
|
528
530
|
*/
|
|
529
531
|
export declare type L2CParamsBundledAssetsStorage = {
|
|
530
|
-
type:
|
|
532
|
+
type: 'bundled';
|
|
531
533
|
referencePath?: string;
|
|
532
|
-
importMode?:
|
|
534
|
+
importMode?: 'watermarked' | 'original';
|
|
533
535
|
};
|
|
534
536
|
|
|
535
537
|
/**
|
|
@@ -540,13 +542,13 @@ export declare type L2CParamsConvention = L2CParamsHtmlConvention | L2CParamsRea
|
|
|
540
542
|
/**
|
|
541
543
|
* @deprecated This type is deprecated and will be removed soon.
|
|
542
544
|
*/
|
|
543
|
-
export declare type L2CParamsFramework =
|
|
545
|
+
export declare type L2CParamsFramework = 'html' | 'react';
|
|
544
546
|
|
|
545
547
|
/**
|
|
546
548
|
* @deprecated This type is deprecated and will be removed soon.
|
|
547
549
|
*/
|
|
548
550
|
export declare type L2CParamsHtmlConvention = {
|
|
549
|
-
framework:
|
|
551
|
+
framework: 'html';
|
|
550
552
|
styling: L2CParamsStyling;
|
|
551
553
|
};
|
|
552
554
|
|
|
@@ -558,13 +560,13 @@ export declare type L2CParamsInput = L2CParamsUrlInput;
|
|
|
558
560
|
/**
|
|
559
561
|
* @deprecated This type is deprecated and will be removed soon.
|
|
560
562
|
*/
|
|
561
|
-
export declare type L2CParamsLanguage =
|
|
563
|
+
export declare type L2CParamsLanguage = 'typescript';
|
|
562
564
|
|
|
563
565
|
/**
|
|
564
566
|
* @deprecated This type is deprecated and will be removed soon.
|
|
565
567
|
*/
|
|
566
568
|
export declare type L2CParamsReactConvention = {
|
|
567
|
-
framework:
|
|
569
|
+
framework: 'react';
|
|
568
570
|
language: L2CParamsLanguage;
|
|
569
571
|
styling: L2CParamsStyling;
|
|
570
572
|
enableGeneratePackageLock?: boolean;
|
|
@@ -573,7 +575,7 @@ export declare type L2CParamsReactConvention = {
|
|
|
573
575
|
/**
|
|
574
576
|
* @deprecated This type is deprecated and will be removed soon.
|
|
575
577
|
*/
|
|
576
|
-
export declare type L2CParamsStyling =
|
|
578
|
+
export declare type L2CParamsStyling = 'tailwind' | 'inline-styles';
|
|
577
579
|
|
|
578
580
|
/**
|
|
579
581
|
* @deprecated This type is deprecated and will be removed soon.
|
package/dist/index.js
CHANGED
|
@@ -3938,7 +3938,9 @@ class ta {
|
|
|
3938
3938
|
};
|
|
3939
3939
|
else
|
|
3940
3940
|
throw new Error("Either 'url' or 'mhtml' must be provided");
|
|
3941
|
-
|
|
3941
|
+
let o;
|
|
3942
|
+
e.experimental_useNewReactEngine && (o = "react-v2");
|
|
3943
|
+
const c = {
|
|
3942
3944
|
tracking: a,
|
|
3943
3945
|
assetsStorage: e.assetsStorage,
|
|
3944
3946
|
params: {
|
|
@@ -3950,10 +3952,11 @@ class ta {
|
|
|
3950
3952
|
},
|
|
3951
3953
|
assetsStorage: {
|
|
3952
3954
|
type: "bundled"
|
|
3953
|
-
}
|
|
3955
|
+
},
|
|
3956
|
+
engine: o
|
|
3954
3957
|
}
|
|
3955
3958
|
};
|
|
3956
|
-
return Te(this, ne, Fe).call(this, "/v1/l2c",
|
|
3959
|
+
return Te(this, ne, Fe).call(this, "/v1/l2c", c, t, "l2c", r);
|
|
3957
3960
|
});
|
|
3958
3961
|
}
|
|
3959
3962
|
/**
|
|
@@ -3998,6 +4001,7 @@ class ta {
|
|
|
3998
4001
|
assetsStorage: e.assetsStorage,
|
|
3999
4002
|
params: d({
|
|
4000
4003
|
prompt: e.prompt,
|
|
4004
|
+
images: e.images,
|
|
4001
4005
|
conventions: {
|
|
4002
4006
|
language: e.settings.language,
|
|
4003
4007
|
framework: e.settings.framework,
|