@fyul/embed-sdk 2.7.5 → 2.7.52
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/cjs/modules/events.d.ts +2 -0
- package/dist/cjs/modules/mockup-generation/types/data.types.d.ts +2 -0
- package/dist/cjs/modules/white-label/events.d.ts +2 -0
- package/dist/cjs/modules/white-label/events.js +1 -0
- package/dist/cjs/modules/white-label/types/event/resultEventPayload.types.d.ts +3 -0
- package/dist/cjs/modules/white-label/types/event/resultEventPayload.types.js +0 -1
- package/dist/cjs/modules/white-label/whiteLabelModule.d.ts +4 -5
- package/dist/cjs/modules/white-label/whiteLabelModule.js +5 -2
- package/dist/cjs/services/whiteLabel.d.ts +3 -1
- package/dist/cjs/services/whiteLabel.js +4 -4
- package/dist/cjs/types/module/module.types.d.ts +2 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/modules/events.d.ts +2 -0
- package/dist/esm/modules/mockup-generation/types/data.types.d.ts +2 -0
- package/dist/esm/modules/white-label/events.d.ts +2 -0
- package/dist/esm/modules/white-label/events.js +1 -0
- package/dist/esm/modules/white-label/types/event/resultEventPayload.types.d.ts +3 -0
- package/dist/esm/modules/white-label/types/event/resultEventPayload.types.js +0 -1
- package/dist/esm/modules/white-label/whiteLabelModule.d.ts +4 -5
- package/dist/esm/modules/white-label/whiteLabelModule.js +6 -3
- package/dist/esm/services/whiteLabel.d.ts +3 -1
- package/dist/esm/services/whiteLabel.js +4 -4
- package/dist/esm/types/module/module.types.d.ts +2 -2
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +1 -1
|
@@ -23,6 +23,7 @@ export declare const ALL_ACTION_EVENTS: {
|
|
|
23
23
|
readonly LOAD_MODULE: "actionLoadModule";
|
|
24
24
|
};
|
|
25
25
|
export declare const ALL_NOTIFICATION_EVENTS: {
|
|
26
|
+
readonly WHITE_LABEL_INITIALIZATION_FAILURE: "notificationWhiteLabelInitializationFailure";
|
|
26
27
|
readonly WHITE_LABEL_INITIALIZATION_SUCCESS: "notificationWhiteLabelInitializationSuccess";
|
|
27
28
|
readonly GO_TO_VIEW_FAILURE: "actionGoToViewFailure";
|
|
28
29
|
readonly EMBED_STUDIO_INITIALIZATION_SUCCESS: "notificationEdmInitializationSuccess";
|
|
@@ -94,6 +95,7 @@ export declare const ALL_EVENTS: {
|
|
|
94
95
|
readonly GET_CATALOG_PRODUCTS_RESULT: "resultGetCatalogProducts";
|
|
95
96
|
readonly GET_SINGLE_CATALOG_PRODUCT_RESULT: "resultGetSingleCatalogProduct";
|
|
96
97
|
readonly GET_CATALOG_CATEGORIES_RESULT: "resultGetCatalogCategories";
|
|
98
|
+
readonly WHITE_LABEL_INITIALIZATION_FAILURE: "notificationWhiteLabelInitializationFailure";
|
|
97
99
|
readonly WHITE_LABEL_INITIALIZATION_SUCCESS: "notificationWhiteLabelInitializationSuccess";
|
|
98
100
|
readonly GO_TO_VIEW_FAILURE: "actionGoToViewFailure";
|
|
99
101
|
readonly EMBED_STUDIO_INITIALIZATION_SUCCESS: "notificationEdmInitializationSuccess";
|
|
@@ -3,6 +3,7 @@ export declare const EVENTS_ACTION: {
|
|
|
3
3
|
readonly GO_TO_VIEW: "actionGoToView";
|
|
4
4
|
};
|
|
5
5
|
export declare const EVENTS_NOTIFICATION: {
|
|
6
|
+
readonly WHITE_LABEL_INITIALIZATION_FAILURE: "notificationWhiteLabelInitializationFailure";
|
|
6
7
|
readonly WHITE_LABEL_INITIALIZATION_SUCCESS: "notificationWhiteLabelInitializationSuccess";
|
|
7
8
|
readonly GO_TO_VIEW_FAILURE: "actionGoToViewFailure";
|
|
8
9
|
};
|
|
@@ -17,6 +18,7 @@ export declare const EVENTS: {
|
|
|
17
18
|
readonly ON_SHOPPING_CART_UPDATE: "onShoppingCartUpdate";
|
|
18
19
|
readonly ON_CONTENT_SIZE_CHANGE: "onContentSizeChange";
|
|
19
20
|
readonly GO_TO_VIEW_RESULT: "resultGoToView";
|
|
21
|
+
readonly WHITE_LABEL_INITIALIZATION_FAILURE: "notificationWhiteLabelInitializationFailure";
|
|
20
22
|
readonly WHITE_LABEL_INITIALIZATION_SUCCESS: "notificationWhiteLabelInitializationSuccess";
|
|
21
23
|
readonly GO_TO_VIEW_FAILURE: "actionGoToViewFailure";
|
|
22
24
|
readonly INITIALIZE_WHITE_LABEL: "actionInitializeWhiteLabel";
|
|
@@ -6,6 +6,7 @@ exports.EVENTS_ACTION = {
|
|
|
6
6
|
GO_TO_VIEW: 'actionGoToView',
|
|
7
7
|
};
|
|
8
8
|
exports.EVENTS_NOTIFICATION = {
|
|
9
|
+
WHITE_LABEL_INITIALIZATION_FAILURE: 'notificationWhiteLabelInitializationFailure',
|
|
9
10
|
WHITE_LABEL_INITIALIZATION_SUCCESS: 'notificationWhiteLabelInitializationSuccess',
|
|
10
11
|
GO_TO_VIEW_FAILURE: 'actionGoToViewFailure',
|
|
11
12
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { IWhiteLabelModule } from '../../types/module/module.types';
|
|
2
2
|
import { BaseModule } from '../../modules/baseModule';
|
|
3
|
-
import { InitializeWhiteLabelPayload, GoToViewPayload, GoToViewResultPayload } from './types';
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
export declare class WhiteLabelModule extends BaseModule implements WithHandledResponses<IWhiteLabelModule> {
|
|
3
|
+
import { InitializeWhiteLabelPayload, GoToViewPayload, GoToViewResultPayload, SetupNotificationPayload } from './types';
|
|
4
|
+
import { PromisifyMethods, WithHandledResponses } from '../../helpers/typeHelper.types';
|
|
5
|
+
export declare class WhiteLabelModule extends BaseModule implements Omit<WithHandledResponses<IWhiteLabelModule>, 'setup'>, Pick<PromisifyMethods<IWhiteLabelModule>, 'setup'> {
|
|
7
6
|
constructor();
|
|
8
|
-
setup(payload
|
|
7
|
+
setup(payload: InitializeWhiteLabelPayload): Promise<SetupNotificationPayload>;
|
|
9
8
|
goToView(event: GoToViewPayload): Promise<import("../..").HandledResponse<GoToViewResultPayload, Error>>;
|
|
10
9
|
}
|
|
@@ -9,9 +9,12 @@ class WhiteLabelModule extends baseModule_1.BaseModule {
|
|
|
9
9
|
constructor() {
|
|
10
10
|
super(modules_1.MODULE_NAMES.WHITE_LABEL);
|
|
11
11
|
}
|
|
12
|
-
// @ts-expect-error setup does not return data
|
|
13
12
|
async setup(payload) {
|
|
14
|
-
|
|
13
|
+
const response = await this.sendRequest(events_1.EVENTS_ACTION.INITIALIZE_WHITE_LABEL, payload).catch((e) => e);
|
|
14
|
+
if ((0, responseHandler_1.isNotificationPayload)(response) && (0, responseHandler_1.isErrorNotification)(response)) {
|
|
15
|
+
return { error: response.error || new Error(response.message) };
|
|
16
|
+
}
|
|
17
|
+
return { error: null };
|
|
15
18
|
}
|
|
16
19
|
async goToView(event) {
|
|
17
20
|
const response = await this.sendRequest(events_1.EVENTS_ACTION.GO_TO_VIEW, event).catch((e) => e);
|
|
@@ -14,7 +14,9 @@ export declare class WhiteLabel {
|
|
|
14
14
|
private initialized;
|
|
15
15
|
constructor(params: WhiteLabelParams, config?: WhiteLabelConfig | undefined, callbacks?: Partial<BroadcastListeners>);
|
|
16
16
|
init(): Promise<{
|
|
17
|
-
error:
|
|
17
|
+
error: Error;
|
|
18
|
+
} | {
|
|
19
|
+
error: null;
|
|
18
20
|
}>;
|
|
19
21
|
destroy(): void;
|
|
20
22
|
goToView(payload: GoToViewPayload): Promise<import("..").HandledResponse<import("../modules/white-label/types").GoToViewResultPayload, Error>>;
|
|
@@ -34,7 +34,7 @@ class WhiteLabel {
|
|
|
34
34
|
message,
|
|
35
35
|
logType: messageLogger_1.LOG_TYPES.WARN,
|
|
36
36
|
});
|
|
37
|
-
return { error: message };
|
|
37
|
+
return { error: new Error(message) };
|
|
38
38
|
}
|
|
39
39
|
const elementToBindTo = this.params.element ?? document.getElementById(this.params.elementId);
|
|
40
40
|
if (!elementToBindTo) {
|
|
@@ -43,7 +43,7 @@ class WhiteLabel {
|
|
|
43
43
|
message,
|
|
44
44
|
logType: messageLogger_1.LOG_TYPES.ERROR,
|
|
45
45
|
});
|
|
46
|
-
return { error: message };
|
|
46
|
+
return { error: new Error(message) };
|
|
47
47
|
}
|
|
48
48
|
const { data, error } = (0, jwtDecoder_1.parseJwt)(this.jwt);
|
|
49
49
|
if (error) {
|
|
@@ -52,7 +52,7 @@ class WhiteLabel {
|
|
|
52
52
|
message,
|
|
53
53
|
logType: messageLogger_1.LOG_TYPES.ERROR,
|
|
54
54
|
});
|
|
55
|
-
return { error: message };
|
|
55
|
+
return { error: new Error(message) };
|
|
56
56
|
}
|
|
57
57
|
this.iFrameManager = new iFrameManager_1.iFrameManager({
|
|
58
58
|
baseUrl: WhiteLabel.BASE_URL + `/${data.tid}`,
|
|
@@ -69,7 +69,7 @@ class WhiteLabel {
|
|
|
69
69
|
message,
|
|
70
70
|
logType: messageLogger_1.LOG_TYPES.ERROR,
|
|
71
71
|
});
|
|
72
|
-
return { error: message };
|
|
72
|
+
return { error: new Error(message) };
|
|
73
73
|
}
|
|
74
74
|
this.communicator.setIFrameManager(moduleNames_1.MODULE_NAMES.WHITE_LABEL, this.iFrameManager);
|
|
75
75
|
this.communicator.setupListener();
|
|
@@ -8,7 +8,7 @@ import { OnDesignStatusEventPayload, OnErrorEventPayload, OnFilePickerRequestedE
|
|
|
8
8
|
import { OnDesignStatusEventPayload as EmbedStudioOnDesignStatusEventPayload, OnErrorEventPayload as EmbedStudioOnErrorEventPayload } from '../../modules/embed-studio/types/event/broadcastEventPayload.types';
|
|
9
9
|
import { AddImagePayload, AddImageResultPayload, InitializeEdmPayload, NavigateStepPayload, NavigateStepResultPayload, SaveDesignResultPayload, SetStylePayload, SetStyleResultPayload } from '../../modules/edm/types';
|
|
10
10
|
import { InitializeEmbedStudioPayload, SaveDesignResultPayload as EmbedStudioSaveDesignResultPayload, SetStoreContextPayload, SetStoreContextResultPayload as EmbedStudioSetStoreContextResultPayload } from '../../modules/embed-studio/types';
|
|
11
|
-
import { InitializeWhiteLabelPayload, GoToViewResultPayload, GoToViewPayload } from '../../modules/white-label/types';
|
|
11
|
+
import { InitializeWhiteLabelPayload, GoToViewResultPayload, GoToViewPayload, SetupNotificationPayload } from '../../modules/white-label/types';
|
|
12
12
|
import { OnShoppingCartUpdateEventPayload, OnContentSizeChangeEventPayload } from '../../modules/white-label/types/event/broadcastEventPayload.types';
|
|
13
13
|
/** This file ensures that Iframe and SDK has the same source of truth for return values */
|
|
14
14
|
export type ModuleName = (typeof MODULE_NAMES)[keyof typeof MODULE_NAMES];
|
|
@@ -54,7 +54,7 @@ export interface IEmbedStudioBroadcastModule {
|
|
|
54
54
|
onErrorUpdate(event: EmbedStudioOnErrorEventPayload): void;
|
|
55
55
|
}
|
|
56
56
|
export interface IWhiteLabelModule {
|
|
57
|
-
setup(config: InitializeWhiteLabelPayload):
|
|
57
|
+
setup(config: InitializeWhiteLabelPayload): SetupNotificationPayload;
|
|
58
58
|
goToView(event: GoToViewPayload): GoToViewResultPayload;
|
|
59
59
|
}
|
|
60
60
|
export interface IWhiteLabelBroadcastModule {
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION: "2.7.
|
|
1
|
+
export declare const VERSION: "2.7.52";
|
package/dist/cjs/version.js
CHANGED
|
@@ -23,6 +23,7 @@ export declare const ALL_ACTION_EVENTS: {
|
|
|
23
23
|
readonly LOAD_MODULE: "actionLoadModule";
|
|
24
24
|
};
|
|
25
25
|
export declare const ALL_NOTIFICATION_EVENTS: {
|
|
26
|
+
readonly WHITE_LABEL_INITIALIZATION_FAILURE: "notificationWhiteLabelInitializationFailure";
|
|
26
27
|
readonly WHITE_LABEL_INITIALIZATION_SUCCESS: "notificationWhiteLabelInitializationSuccess";
|
|
27
28
|
readonly GO_TO_VIEW_FAILURE: "actionGoToViewFailure";
|
|
28
29
|
readonly EMBED_STUDIO_INITIALIZATION_SUCCESS: "notificationEdmInitializationSuccess";
|
|
@@ -94,6 +95,7 @@ export declare const ALL_EVENTS: {
|
|
|
94
95
|
readonly GET_CATALOG_PRODUCTS_RESULT: "resultGetCatalogProducts";
|
|
95
96
|
readonly GET_SINGLE_CATALOG_PRODUCT_RESULT: "resultGetSingleCatalogProduct";
|
|
96
97
|
readonly GET_CATALOG_CATEGORIES_RESULT: "resultGetCatalogCategories";
|
|
98
|
+
readonly WHITE_LABEL_INITIALIZATION_FAILURE: "notificationWhiteLabelInitializationFailure";
|
|
97
99
|
readonly WHITE_LABEL_INITIALIZATION_SUCCESS: "notificationWhiteLabelInitializationSuccess";
|
|
98
100
|
readonly GO_TO_VIEW_FAILURE: "actionGoToViewFailure";
|
|
99
101
|
readonly EMBED_STUDIO_INITIALIZATION_SUCCESS: "notificationEdmInitializationSuccess";
|
|
@@ -3,6 +3,7 @@ export declare const EVENTS_ACTION: {
|
|
|
3
3
|
readonly GO_TO_VIEW: "actionGoToView";
|
|
4
4
|
};
|
|
5
5
|
export declare const EVENTS_NOTIFICATION: {
|
|
6
|
+
readonly WHITE_LABEL_INITIALIZATION_FAILURE: "notificationWhiteLabelInitializationFailure";
|
|
6
7
|
readonly WHITE_LABEL_INITIALIZATION_SUCCESS: "notificationWhiteLabelInitializationSuccess";
|
|
7
8
|
readonly GO_TO_VIEW_FAILURE: "actionGoToViewFailure";
|
|
8
9
|
};
|
|
@@ -17,6 +18,7 @@ export declare const EVENTS: {
|
|
|
17
18
|
readonly ON_SHOPPING_CART_UPDATE: "onShoppingCartUpdate";
|
|
18
19
|
readonly ON_CONTENT_SIZE_CHANGE: "onContentSizeChange";
|
|
19
20
|
readonly GO_TO_VIEW_RESULT: "resultGoToView";
|
|
21
|
+
readonly WHITE_LABEL_INITIALIZATION_FAILURE: "notificationWhiteLabelInitializationFailure";
|
|
20
22
|
readonly WHITE_LABEL_INITIALIZATION_SUCCESS: "notificationWhiteLabelInitializationSuccess";
|
|
21
23
|
readonly GO_TO_VIEW_FAILURE: "actionGoToViewFailure";
|
|
22
24
|
readonly INITIALIZE_WHITE_LABEL: "actionInitializeWhiteLabel";
|
|
@@ -3,6 +3,7 @@ export const EVENTS_ACTION = {
|
|
|
3
3
|
GO_TO_VIEW: 'actionGoToView',
|
|
4
4
|
};
|
|
5
5
|
export const EVENTS_NOTIFICATION = {
|
|
6
|
+
WHITE_LABEL_INITIALIZATION_FAILURE: 'notificationWhiteLabelInitializationFailure',
|
|
6
7
|
WHITE_LABEL_INITIALIZATION_SUCCESS: 'notificationWhiteLabelInitializationSuccess',
|
|
7
8
|
GO_TO_VIEW_FAILURE: 'actionGoToViewFailure',
|
|
8
9
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { IWhiteLabelModule } from '../../types/module/module.types';
|
|
2
2
|
import { BaseModule } from '../../modules/baseModule';
|
|
3
|
-
import { InitializeWhiteLabelPayload, GoToViewPayload, GoToViewResultPayload } from './types';
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
export declare class WhiteLabelModule extends BaseModule implements WithHandledResponses<IWhiteLabelModule> {
|
|
3
|
+
import { InitializeWhiteLabelPayload, GoToViewPayload, GoToViewResultPayload, SetupNotificationPayload } from './types';
|
|
4
|
+
import { PromisifyMethods, WithHandledResponses } from '../../helpers/typeHelper.types';
|
|
5
|
+
export declare class WhiteLabelModule extends BaseModule implements Omit<WithHandledResponses<IWhiteLabelModule>, 'setup'>, Pick<PromisifyMethods<IWhiteLabelModule>, 'setup'> {
|
|
7
6
|
constructor();
|
|
8
|
-
setup(payload
|
|
7
|
+
setup(payload: InitializeWhiteLabelPayload): Promise<SetupNotificationPayload>;
|
|
9
8
|
goToView(event: GoToViewPayload): Promise<import("../..").HandledResponse<GoToViewResultPayload, Error>>;
|
|
10
9
|
}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { BaseModule } from '../../modules/baseModule';
|
|
2
2
|
import { EVENTS_ACTION } from './events';
|
|
3
3
|
import { MODULE_NAMES } from '../../modules/modules';
|
|
4
|
-
import { handleResponse } from '../../helpers/responseHandler';
|
|
4
|
+
import { handleResponse, isErrorNotification, isNotificationPayload, } from '../../helpers/responseHandler';
|
|
5
5
|
export class WhiteLabelModule extends BaseModule {
|
|
6
6
|
constructor() {
|
|
7
7
|
super(MODULE_NAMES.WHITE_LABEL);
|
|
8
8
|
}
|
|
9
|
-
// @ts-expect-error setup does not return data
|
|
10
9
|
async setup(payload) {
|
|
11
|
-
|
|
10
|
+
const response = await this.sendRequest(EVENTS_ACTION.INITIALIZE_WHITE_LABEL, payload).catch((e) => e);
|
|
11
|
+
if (isNotificationPayload(response) && isErrorNotification(response)) {
|
|
12
|
+
return { error: response.error || new Error(response.message) };
|
|
13
|
+
}
|
|
14
|
+
return { error: null };
|
|
12
15
|
}
|
|
13
16
|
async goToView(event) {
|
|
14
17
|
const response = await this.sendRequest(EVENTS_ACTION.GO_TO_VIEW, event).catch((e) => e);
|
|
@@ -14,7 +14,9 @@ export declare class WhiteLabel {
|
|
|
14
14
|
private initialized;
|
|
15
15
|
constructor(params: WhiteLabelParams, config?: WhiteLabelConfig | undefined, callbacks?: Partial<BroadcastListeners>);
|
|
16
16
|
init(): Promise<{
|
|
17
|
-
error:
|
|
17
|
+
error: Error;
|
|
18
|
+
} | {
|
|
19
|
+
error: null;
|
|
18
20
|
}>;
|
|
19
21
|
destroy(): void;
|
|
20
22
|
goToView(payload: GoToViewPayload): Promise<import("..").HandledResponse<import("../modules/white-label/types").GoToViewResultPayload, Error>>;
|
|
@@ -31,7 +31,7 @@ export class WhiteLabel {
|
|
|
31
31
|
message,
|
|
32
32
|
logType: LOG_TYPES.WARN,
|
|
33
33
|
});
|
|
34
|
-
return { error: message };
|
|
34
|
+
return { error: new Error(message) };
|
|
35
35
|
}
|
|
36
36
|
const elementToBindTo = this.params.element ?? document.getElementById(this.params.elementId);
|
|
37
37
|
if (!elementToBindTo) {
|
|
@@ -40,7 +40,7 @@ export class WhiteLabel {
|
|
|
40
40
|
message,
|
|
41
41
|
logType: LOG_TYPES.ERROR,
|
|
42
42
|
});
|
|
43
|
-
return { error: message };
|
|
43
|
+
return { error: new Error(message) };
|
|
44
44
|
}
|
|
45
45
|
const { data, error } = parseJwt(this.jwt);
|
|
46
46
|
if (error) {
|
|
@@ -49,7 +49,7 @@ export class WhiteLabel {
|
|
|
49
49
|
message,
|
|
50
50
|
logType: LOG_TYPES.ERROR,
|
|
51
51
|
});
|
|
52
|
-
return { error: message };
|
|
52
|
+
return { error: new Error(message) };
|
|
53
53
|
}
|
|
54
54
|
this.iFrameManager = new iFrameManager({
|
|
55
55
|
baseUrl: WhiteLabel.BASE_URL + `/${data.tid}`,
|
|
@@ -66,7 +66,7 @@ export class WhiteLabel {
|
|
|
66
66
|
message,
|
|
67
67
|
logType: LOG_TYPES.ERROR,
|
|
68
68
|
});
|
|
69
|
-
return { error: message };
|
|
69
|
+
return { error: new Error(message) };
|
|
70
70
|
}
|
|
71
71
|
this.communicator.setIFrameManager(MODULE_NAMES.WHITE_LABEL, this.iFrameManager);
|
|
72
72
|
this.communicator.setupListener();
|
|
@@ -8,7 +8,7 @@ import { OnDesignStatusEventPayload, OnErrorEventPayload, OnFilePickerRequestedE
|
|
|
8
8
|
import { OnDesignStatusEventPayload as EmbedStudioOnDesignStatusEventPayload, OnErrorEventPayload as EmbedStudioOnErrorEventPayload } from '../../modules/embed-studio/types/event/broadcastEventPayload.types';
|
|
9
9
|
import { AddImagePayload, AddImageResultPayload, InitializeEdmPayload, NavigateStepPayload, NavigateStepResultPayload, SaveDesignResultPayload, SetStylePayload, SetStyleResultPayload } from '../../modules/edm/types';
|
|
10
10
|
import { InitializeEmbedStudioPayload, SaveDesignResultPayload as EmbedStudioSaveDesignResultPayload, SetStoreContextPayload, SetStoreContextResultPayload as EmbedStudioSetStoreContextResultPayload } from '../../modules/embed-studio/types';
|
|
11
|
-
import { InitializeWhiteLabelPayload, GoToViewResultPayload, GoToViewPayload } from '../../modules/white-label/types';
|
|
11
|
+
import { InitializeWhiteLabelPayload, GoToViewResultPayload, GoToViewPayload, SetupNotificationPayload } from '../../modules/white-label/types';
|
|
12
12
|
import { OnShoppingCartUpdateEventPayload, OnContentSizeChangeEventPayload } from '../../modules/white-label/types/event/broadcastEventPayload.types';
|
|
13
13
|
/** This file ensures that Iframe and SDK has the same source of truth for return values */
|
|
14
14
|
export type ModuleName = (typeof MODULE_NAMES)[keyof typeof MODULE_NAMES];
|
|
@@ -54,7 +54,7 @@ export interface IEmbedStudioBroadcastModule {
|
|
|
54
54
|
onErrorUpdate(event: EmbedStudioOnErrorEventPayload): void;
|
|
55
55
|
}
|
|
56
56
|
export interface IWhiteLabelModule {
|
|
57
|
-
setup(config: InitializeWhiteLabelPayload):
|
|
57
|
+
setup(config: InitializeWhiteLabelPayload): SetupNotificationPayload;
|
|
58
58
|
goToView(event: GoToViewPayload): GoToViewResultPayload;
|
|
59
59
|
}
|
|
60
60
|
export interface IWhiteLabelBroadcastModule {
|
package/dist/esm/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION: "2.7.
|
|
1
|
+
export declare const VERSION: "2.7.52";
|
package/dist/esm/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// AUTO-GENERATED
|
|
2
|
-
export const VERSION = '2.7.
|
|
2
|
+
export const VERSION = '2.7.52';
|