@liquidcommercedev/rmn-sdk 1.5.0-beta.7 → 1.5.0-beta.9
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.cjs +385 -293
- package/dist/index.esm.js +386 -294
- package/dist/types/common/helpers/utils.helper.d.ts +50 -0
- package/dist/types/enums.d.ts +4 -1
- package/dist/types/modules/event/event.interface.d.ts +6 -36
- package/dist/types/modules/event/event.service.d.ts +5 -23
- package/dist/types/modules/event/index.d.ts +0 -2
- package/dist/types/modules/{event/helpers → helper-service}/index.d.ts +1 -1
- package/dist/types/modules/{event/helpers → helper-service}/localstorage.service.d.ts +2 -2
- package/dist/types/modules/{event/pubsub.d.ts → helper-service/pubsub.service.d.ts} +4 -4
- 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 +12 -0
- package/dist/types/modules/monitor/monitor.service.d.ts +12 -0
- package/dist/types/modules/{event/helpers → monitor/monitors}/datalayer.monitor.d.ts +1 -10
- package/dist/types/types.d.ts +4 -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/utils.d.ts +0 -24
- package/dist/types/modules/event/user.monitor.d.ts +0 -14
- /package/dist/types/modules/{event/helpers → helper-service}/intersection.service.d.ts +0 -0
- /package/dist/types/modules/{event/helpers → helper-service}/resize.service.d.ts +0 -0
@@ -1 +0,0 @@
|
|
1
|
-
export declare function calculateScaleFactor(elementScale: number): number;
|
@@ -1,24 +0,0 @@
|
|
1
|
-
import { RMN_SPOT_EVENT } from 'enums';
|
2
|
-
export interface IExtractIdsProps {
|
3
|
-
id?: string | number;
|
4
|
-
upc?: string | number;
|
5
|
-
[key: string]: string | number | undefined;
|
6
|
-
}
|
7
|
-
export declare function getEventTypeFromRawEvent(event?: string): RMN_SPOT_EVENT | null;
|
8
|
-
/**
|
9
|
-
* Recursively extracts ID values from a nested data structure.
|
10
|
-
* Searches for specified property names and collects their primitive values (strings/numbers).
|
11
|
-
*
|
12
|
-
* @param data - The data structure to search through (can be nested objects/arrays)
|
13
|
-
* @param propertyNames - Array of property names to look for (defaults to ['id', 'upc', 'groupingId', 'sku', 'productId'])
|
14
|
-
* @returns Array of extracted ID values (strings/numbers only)
|
15
|
-
*
|
16
|
-
* @example
|
17
|
-
* const data = {
|
18
|
-
* id: [1, 2, 3],
|
19
|
-
* nested: { id: 'abc' },
|
20
|
-
* items: [{ id: 456 }]
|
21
|
-
* };
|
22
|
-
* extractDeepIds(data); // Returns [1, 2, 3, 'abc', 456]
|
23
|
-
*/
|
24
|
-
export declare function extractDeepIds(data: any, propertyNames?: readonly string[]): Array<string | number>;
|
@@ -1,14 +0,0 @@
|
|
1
|
-
export declare enum AnalyticsTool {
|
2
|
-
GoogleAnalytics = "google-analytics",
|
3
|
-
Other = "Other"
|
4
|
-
}
|
5
|
-
export declare class UserMonitor {
|
6
|
-
private static instance;
|
7
|
-
private readonly implementedMonitor?;
|
8
|
-
private readonly localStorage?;
|
9
|
-
private constructor();
|
10
|
-
static getInstance(): UserMonitor;
|
11
|
-
start(): void;
|
12
|
-
private matchAndFireEvent;
|
13
|
-
private detectAnalyticsTool;
|
14
|
-
}
|
File without changes
|
File without changes
|