@liquidcommercedev/rmn-sdk 1.4.6-beta.5 → 1.4.6-beta.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.cjs +199 -181
- package/dist/index.esm.js +199 -181
- package/dist/types/enums.d.ts +0 -1
- package/dist/types/modules/element/component/utils.d.ts +1 -0
- package/dist/types/modules/element/element.interface.d.ts +2 -0
- package/dist/types/modules/event/event.interface.d.ts +0 -14
- package/dist/types/modules/event/index.d.ts +1 -0
- package/package.json +1 -1
- package/umd/liquidcommerce-rmn-sdk.min.js +1 -1
package/dist/types/enums.d.ts
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
export declare function calculateScaleFactor(elementScale: number): number;
|
@@ -13,6 +13,7 @@ export interface ISpotOverlay {
|
|
13
13
|
colorStop: string;
|
14
14
|
}
|
15
15
|
export interface IInjectSpotElementConfig {
|
16
|
+
fluid?: boolean;
|
16
17
|
url?: string;
|
17
18
|
colors?: ISpotColors;
|
18
19
|
minScale?: number;
|
@@ -27,6 +28,7 @@ export interface IInjectSpotElement {
|
|
27
28
|
filter?: Partial<RmnFilterType>;
|
28
29
|
}
|
29
30
|
export interface ICreateElementConfig {
|
31
|
+
spot?: RMN_SPOT_TYPE;
|
30
32
|
width: number;
|
31
33
|
height: number;
|
32
34
|
fluid?: boolean;
|
@@ -15,19 +15,6 @@ export interface IUnMountedEvent {
|
|
15
15
|
placementId: string;
|
16
16
|
spotId: string;
|
17
17
|
}
|
18
|
-
export interface IResizedEvent {
|
19
|
-
placementId: string;
|
20
|
-
spotId: string;
|
21
|
-
scale: number;
|
22
|
-
previousDimensions: {
|
23
|
-
width: number;
|
24
|
-
height: number;
|
25
|
-
};
|
26
|
-
currentDimensions: {
|
27
|
-
width: number;
|
28
|
-
height: number;
|
29
|
-
};
|
30
|
-
}
|
31
18
|
export interface IClickEvent {
|
32
19
|
placementId: string;
|
33
20
|
spotId: string;
|
@@ -57,7 +44,6 @@ export interface IBuyNowEvent {
|
|
57
44
|
export interface IEventMap {
|
58
45
|
[RMN_SPOT_EVENT.MOUNTED]: IMountedEvent;
|
59
46
|
[RMN_SPOT_EVENT.UNMOUNTED]: IUnMountedEvent;
|
60
|
-
[RMN_SPOT_EVENT.RESIZED]: IResizedEvent;
|
61
47
|
[RMN_SPOT_EVENT.CLICK]: IClickEvent;
|
62
48
|
[RMN_SPOT_EVENT.IMPRESSION]: IImpressionEvent;
|
63
49
|
[RMN_SPOT_EVENT.ADD_TO_CART]: IAddToCartEvent;
|
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "@liquidcommercedev/rmn-sdk",
|
3
3
|
"description": "LiquidCommerce RMN SDK",
|
4
4
|
"author": "LiquidCommerce Tech",
|
5
|
-
"version": "1.4.6-beta.
|
5
|
+
"version": "1.4.6-beta.6",
|
6
6
|
"homepage": "https://docs.liquidcommerce.co/rmn-sdk",
|
7
7
|
"main": "./dist/index.cjs",
|
8
8
|
"module": "./dist/index.esm.js",
|