@animaapp/anima-sdk 0.6.23 → 0.6.24
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 +9 -8
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -374,6 +374,7 @@ export declare type GetCodeFromWebsiteParams = {
|
|
|
374
374
|
settings: GetCodeFromWebsiteSettings;
|
|
375
375
|
tracking?: TrackingInfos;
|
|
376
376
|
webhookUrl?: string;
|
|
377
|
+
experimental_useNewReactEngine?: boolean;
|
|
377
378
|
};
|
|
378
379
|
|
|
379
380
|
export declare type GetCodeFromWebsiteSettings = BaseSettings & {
|
|
@@ -515,7 +516,7 @@ export declare type L2CParams = {
|
|
|
515
516
|
input: L2CParamsInput;
|
|
516
517
|
conventions: L2CParamsConvention;
|
|
517
518
|
assetsStorage: L2CParamsAssetsStorage;
|
|
518
|
-
viewports?: Array<
|
|
519
|
+
viewports?: Array<'desktop' | 'tablet' | 'mobile'>;
|
|
519
520
|
};
|
|
520
521
|
|
|
521
522
|
/**
|
|
@@ -527,9 +528,9 @@ export declare type L2CParamsAssetsStorage = L2CParamsBundledAssetsStorage;
|
|
|
527
528
|
* @deprecated This type is deprecated and will be removed soon.
|
|
528
529
|
*/
|
|
529
530
|
export declare type L2CParamsBundledAssetsStorage = {
|
|
530
|
-
type:
|
|
531
|
+
type: 'bundled';
|
|
531
532
|
referencePath?: string;
|
|
532
|
-
importMode?:
|
|
533
|
+
importMode?: 'watermarked' | 'original';
|
|
533
534
|
};
|
|
534
535
|
|
|
535
536
|
/**
|
|
@@ -540,13 +541,13 @@ export declare type L2CParamsConvention = L2CParamsHtmlConvention | L2CParamsRea
|
|
|
540
541
|
/**
|
|
541
542
|
* @deprecated This type is deprecated and will be removed soon.
|
|
542
543
|
*/
|
|
543
|
-
export declare type L2CParamsFramework =
|
|
544
|
+
export declare type L2CParamsFramework = 'html' | 'react';
|
|
544
545
|
|
|
545
546
|
/**
|
|
546
547
|
* @deprecated This type is deprecated and will be removed soon.
|
|
547
548
|
*/
|
|
548
549
|
export declare type L2CParamsHtmlConvention = {
|
|
549
|
-
framework:
|
|
550
|
+
framework: 'html';
|
|
550
551
|
styling: L2CParamsStyling;
|
|
551
552
|
};
|
|
552
553
|
|
|
@@ -558,13 +559,13 @@ export declare type L2CParamsInput = L2CParamsUrlInput;
|
|
|
558
559
|
/**
|
|
559
560
|
* @deprecated This type is deprecated and will be removed soon.
|
|
560
561
|
*/
|
|
561
|
-
export declare type L2CParamsLanguage =
|
|
562
|
+
export declare type L2CParamsLanguage = 'typescript';
|
|
562
563
|
|
|
563
564
|
/**
|
|
564
565
|
* @deprecated This type is deprecated and will be removed soon.
|
|
565
566
|
*/
|
|
566
567
|
export declare type L2CParamsReactConvention = {
|
|
567
|
-
framework:
|
|
568
|
+
framework: 'react';
|
|
568
569
|
language: L2CParamsLanguage;
|
|
569
570
|
styling: L2CParamsStyling;
|
|
570
571
|
enableGeneratePackageLock?: boolean;
|
|
@@ -573,7 +574,7 @@ export declare type L2CParamsReactConvention = {
|
|
|
573
574
|
/**
|
|
574
575
|
* @deprecated This type is deprecated and will be removed soon.
|
|
575
576
|
*/
|
|
576
|
-
export declare type L2CParamsStyling =
|
|
577
|
+
export declare type L2CParamsStyling = 'tailwind' | 'inline-styles';
|
|
577
578
|
|
|
578
579
|
/**
|
|
579
580
|
* @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
|
/**
|