@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.
@@ -51,7 +51,6 @@ export declare enum RMN_FILTER_PROPERTIES {
51
51
  export declare enum RMN_SPOT_EVENT {
52
52
  MOUNTED = "MOUNTED",
53
53
  UNMOUNTED = "UNMOUNTED",
54
- RESIZED = "RESIZED",
55
54
  IMPRESSION = "IMPRESSION",
56
55
  CLICK = "CLICK",
57
56
  PURCHASE = "PURCHASE",
@@ -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;
@@ -1,3 +1,4 @@
1
1
  export * from './event.constant';
2
2
  export * from './event.interface';
3
3
  export * from './event.service';
4
+ export * from './helpers';
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",
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",