@koredev/kore-web-sdk 11.19.0-rc.f08d30b → 11.19.1-rc.9c9e629
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/README.md +1 -1
- package/dist/esm/kore-web-sdk-chat.min.js +1 -1
- package/dist/esm/plugins/agent-desktop.js +1 -1
- package/dist/esm/plugins/answers-template.js +1 -1
- package/dist/esm/plugins/kore-i18n.js +1 -1
- package/dist/esm/plugins/proactive-web-campaign.js +1 -1
- package/dist/plugins/i18n.d.ts +20 -0
- package/dist/plugins/proactiveWebCampaign/proactiveWebCampaign.d.ts +36 -0
- package/dist/templatemanager/templates/clockPicker/clockPicker.d.ts +1 -0
- package/dist/umd/kore-web-sdk-umd-chat.min.js +1 -1
- package/dist/umd/plugins/agent-desktop-umd.js +1 -1
- package/dist/umd/plugins/answers-template.js +1 -1
- package/dist/umd/plugins/kore-i18n.js +1 -1
- package/dist/umd/plugins/proactive-web-campaign.js +1 -1
- package/package.json +1 -1
package/dist/plugins/i18n.d.ts
CHANGED
|
@@ -39,6 +39,10 @@ declare class Korei18nPlugin {
|
|
|
39
39
|
today: string;
|
|
40
40
|
yesterday: string;
|
|
41
41
|
clickToCall: string;
|
|
42
|
+
read: string;
|
|
43
|
+
delivered: string;
|
|
44
|
+
sent: string;
|
|
45
|
+
you: string;
|
|
42
46
|
};
|
|
43
47
|
ja: {
|
|
44
48
|
message: string;
|
|
@@ -75,6 +79,10 @@ declare class Korei18nPlugin {
|
|
|
75
79
|
today: string;
|
|
76
80
|
yesterday: string;
|
|
77
81
|
clickToCall: string;
|
|
82
|
+
read: string;
|
|
83
|
+
delivered: string;
|
|
84
|
+
sent: string;
|
|
85
|
+
you: string;
|
|
78
86
|
};
|
|
79
87
|
ko: {
|
|
80
88
|
message: string;
|
|
@@ -111,6 +119,10 @@ declare class Korei18nPlugin {
|
|
|
111
119
|
today: string;
|
|
112
120
|
yesterday: string;
|
|
113
121
|
clickToCall: string;
|
|
122
|
+
read: string;
|
|
123
|
+
delivered: string;
|
|
124
|
+
sent: string;
|
|
125
|
+
you: string;
|
|
114
126
|
};
|
|
115
127
|
zh: {
|
|
116
128
|
message: string;
|
|
@@ -147,6 +159,10 @@ declare class Korei18nPlugin {
|
|
|
147
159
|
today: string;
|
|
148
160
|
yesterday: string;
|
|
149
161
|
clickToCall: string;
|
|
162
|
+
read: string;
|
|
163
|
+
delivered: string;
|
|
164
|
+
sent: string;
|
|
165
|
+
you: string;
|
|
150
166
|
};
|
|
151
167
|
de: {
|
|
152
168
|
message: string;
|
|
@@ -183,6 +199,10 @@ declare class Korei18nPlugin {
|
|
|
183
199
|
today: string;
|
|
184
200
|
yesterday: string;
|
|
185
201
|
clickToCall: string;
|
|
202
|
+
read: string;
|
|
203
|
+
delivered: string;
|
|
204
|
+
sent: string;
|
|
205
|
+
you: string;
|
|
186
206
|
};
|
|
187
207
|
};
|
|
188
208
|
};
|
|
@@ -15,6 +15,7 @@ declare class ProactiveWebCampaignPlugin {
|
|
|
15
15
|
customDataObject: any;
|
|
16
16
|
isInitialPageLoaded: boolean;
|
|
17
17
|
browserSessionId: string;
|
|
18
|
+
isPWEChatTriggered: string;
|
|
18
19
|
flattenedCustomData: any;
|
|
19
20
|
previousFlattenedCustomData: any;
|
|
20
21
|
customColumnConfig: Set<string>;
|
|
@@ -26,7 +27,10 @@ declare class ProactiveWebCampaignPlugin {
|
|
|
26
27
|
private static readonly CHAT_CONTAINER_SELECTOR;
|
|
27
28
|
private static readonly MAX_API_RETRIES;
|
|
28
29
|
private static readonly RETRY_DELAY_MS;
|
|
30
|
+
private static readonly TEMPLATE_PERSIST_DURATION;
|
|
29
31
|
isPendingSendAPIEvent: boolean;
|
|
32
|
+
private currentPersistedTemplate;
|
|
33
|
+
private isTemplateRestored;
|
|
30
34
|
coolDownTime: number;
|
|
31
35
|
cooldownState: {
|
|
32
36
|
isActive: boolean;
|
|
@@ -41,6 +45,12 @@ declare class ProactiveWebCampaignPlugin {
|
|
|
41
45
|
generateBrowserSessionId(): string;
|
|
42
46
|
onHostCreate(): void;
|
|
43
47
|
onInit(): void;
|
|
48
|
+
handleAvatarClick(): void;
|
|
49
|
+
/**
|
|
50
|
+
* Called when view is initialized (DOM ready)
|
|
51
|
+
* Attempts template restoration for chat templates that need DOM access
|
|
52
|
+
*/
|
|
53
|
+
onViewInit(): void;
|
|
44
54
|
onUrlChange(callback: () => void): void;
|
|
45
55
|
onTitleChange(callback: (newTitle: string) => void): void;
|
|
46
56
|
/**
|
|
@@ -322,6 +332,32 @@ declare class ProactiveWebCampaignPlugin {
|
|
|
322
332
|
* @param responseData - API response data
|
|
323
333
|
*/
|
|
324
334
|
handlePweEventResponse(responseData: any): void;
|
|
335
|
+
/**
|
|
336
|
+
* Persists template data to sessionStorage for multi-page persistence
|
|
337
|
+
* @param templateData - Template data to persist
|
|
338
|
+
*/
|
|
339
|
+
private persistTemplate;
|
|
340
|
+
/**
|
|
341
|
+
* Public method for templates to call when closing
|
|
342
|
+
* Clears persisted template from both memory and sessionStorage
|
|
343
|
+
*/
|
|
344
|
+
clearPersistedTemplateFromStorage(): void;
|
|
345
|
+
/**
|
|
346
|
+
* Checks if a persisted template has expired
|
|
347
|
+
* @param template - Persisted template to check
|
|
348
|
+
* @returns Boolean indicating if template has expired
|
|
349
|
+
*/
|
|
350
|
+
private isTemplateExpired;
|
|
351
|
+
/**
|
|
352
|
+
* Restores persisted template from sessionStorage if valid
|
|
353
|
+
* Called during onInit after PWC state restoration
|
|
354
|
+
*/
|
|
355
|
+
private restorePersistedTemplate;
|
|
356
|
+
/**
|
|
357
|
+
* Re-renders a persisted template in the DOM
|
|
358
|
+
* @param template - Persisted template to render
|
|
359
|
+
*/
|
|
360
|
+
private renderPersistedTemplate;
|
|
325
361
|
/**
|
|
326
362
|
* Constructs the pwe_data object based on the new campaign structure
|
|
327
363
|
* Extracts custom column configurations and initializes custom data
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import BaseChatTemplate from '../baseChatTemplate';
|
|
2
2
|
import './clockPicker.scss';
|
|
3
3
|
import { h } from 'preact';
|
|
4
|
+
export declare function ClockPickerInline(props: any): h.JSX.Element;
|
|
4
5
|
export declare function ClockPicker(props: any): h.JSX.Element | undefined;
|
|
5
6
|
declare class TemplateClockPicker extends BaseChatTemplate {
|
|
6
7
|
hostInstance: any;
|