@liquidcommercedev/rmn-sdk 1.5.0-beta.1 → 1.5.0-beta.10
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.cjs +1192 -407
- package/dist/index.esm.js +1193 -408
- package/dist/types/common/helpers/utils.helper.d.ts +50 -0
- package/dist/types/enums.d.ts +6 -1
- package/dist/types/modules/element/element.interface.d.ts +5 -2
- package/dist/types/modules/event/event.interface.d.ts +6 -32
- package/dist/types/modules/event/event.service.d.ts +7 -22
- package/dist/types/modules/event/index.d.ts +0 -1
- package/dist/types/modules/{event/helpers → helper-service}/index.d.ts +1 -0
- package/dist/types/modules/{event/helpers → helper-service}/intersection.service.d.ts +1 -1
- package/dist/types/modules/helper-service/localstorage.service.d.ts +56 -0
- package/dist/types/modules/{event/pubsub.d.ts → helper-service/pubsub.service.d.ts} +8 -8
- package/dist/types/modules/{event/helpers → helper-service}/resize.service.d.ts +1 -1
- package/dist/types/modules/monitor/index.d.ts +2 -0
- package/dist/types/modules/monitor/monitor.enums.d.ts +4 -0
- package/dist/types/modules/monitor/monitor.interface.d.ts +11 -0
- package/dist/types/modules/monitor/monitor.service.d.ts +12 -0
- package/dist/types/modules/monitor/monitors/datalayer.monitor.d.ts +12 -0
- package/dist/types/modules/selection/selection.interface.d.ts +3 -1
- package/dist/types/rmn-client.d.ts +1 -1
- package/dist/types/types.d.ts +5 -4
- package/package.json +1 -1
- package/umd/liquidcommerce-rmn-sdk.min.js +1 -1
- package/dist/types/modules/element/component/utils.d.ts +0 -1
- package/dist/types/modules/event/helpers/localstorage.service.d.ts +0 -26
- /package/dist/types/{static.constant.d.ts → example.constant.d.ts} +0 -0
@@ -1 +0,0 @@
|
|
1
|
-
export declare function calculateScaleFactor(elementScale: number): number;
|
@@ -1,26 +0,0 @@
|
|
1
|
-
import type { RMN_SPOT_TYPE } from 'enums';
|
2
|
-
import type { ISpotEvent } from 'modules/selection';
|
3
|
-
export interface ILocalStorageSpot {
|
4
|
-
spotId: string;
|
5
|
-
spotType: RMN_SPOT_TYPE;
|
6
|
-
events: ISpotEvent[];
|
7
|
-
productIds: Array<string | number>;
|
8
|
-
createdAt?: number;
|
9
|
-
}
|
10
|
-
export declare class LocalStorage {
|
11
|
-
private spots;
|
12
|
-
private static instance;
|
13
|
-
private static readonly localStorageKey;
|
14
|
-
private static readonly spotExpirationTime;
|
15
|
-
private constructor();
|
16
|
-
static getInstance(): LocalStorage;
|
17
|
-
private syncLocalStorage;
|
18
|
-
setSpot(spotId: string, data: ILocalStorageSpot): void;
|
19
|
-
getSpot(spotId: string): ILocalStorageSpot | undefined;
|
20
|
-
removeSpot(spotId: string): void;
|
21
|
-
private updateLocalStorage;
|
22
|
-
clearLocalStorage(): void;
|
23
|
-
private removeExpiredSpots;
|
24
|
-
private mapToObj;
|
25
|
-
private objToMap;
|
26
|
-
}
|
File without changes
|