@koredev/kore-web-sdk 11.19.0-rc.f08d30b → 11.19.0-rc.fb4ca58
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/esm/kore-web-sdk-chat.min.js +1 -1
- package/dist/esm/plugins/agent-desktop.js +1 -1
- package/dist/esm/plugins/proactive-web-campaign.js +1 -1
- package/dist/plugins/proactiveWebCampaign/proactiveWebCampaign.d.ts +34 -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/proactive-web-campaign.js +1 -1
- package/package.json +1 -1
|
@@ -26,7 +26,10 @@ declare class ProactiveWebCampaignPlugin {
|
|
|
26
26
|
private static readonly CHAT_CONTAINER_SELECTOR;
|
|
27
27
|
private static readonly MAX_API_RETRIES;
|
|
28
28
|
private static readonly RETRY_DELAY_MS;
|
|
29
|
+
private static readonly TEMPLATE_PERSIST_DURATION;
|
|
29
30
|
isPendingSendAPIEvent: boolean;
|
|
31
|
+
private currentPersistedTemplate;
|
|
32
|
+
private isTemplateRestored;
|
|
30
33
|
coolDownTime: number;
|
|
31
34
|
cooldownState: {
|
|
32
35
|
isActive: boolean;
|
|
@@ -41,6 +44,11 @@ declare class ProactiveWebCampaignPlugin {
|
|
|
41
44
|
generateBrowserSessionId(): string;
|
|
42
45
|
onHostCreate(): void;
|
|
43
46
|
onInit(): void;
|
|
47
|
+
/**
|
|
48
|
+
* Called when view is initialized (DOM ready)
|
|
49
|
+
* Attempts template restoration for chat templates that need DOM access
|
|
50
|
+
*/
|
|
51
|
+
onViewInit(): void;
|
|
44
52
|
onUrlChange(callback: () => void): void;
|
|
45
53
|
onTitleChange(callback: (newTitle: string) => void): void;
|
|
46
54
|
/**
|
|
@@ -322,6 +330,32 @@ declare class ProactiveWebCampaignPlugin {
|
|
|
322
330
|
* @param responseData - API response data
|
|
323
331
|
*/
|
|
324
332
|
handlePweEventResponse(responseData: any): void;
|
|
333
|
+
/**
|
|
334
|
+
* Persists template data to sessionStorage for multi-page persistence
|
|
335
|
+
* @param templateData - Template data to persist
|
|
336
|
+
*/
|
|
337
|
+
private persistTemplate;
|
|
338
|
+
/**
|
|
339
|
+
* Public method for templates to call when closing
|
|
340
|
+
* Clears persisted template from both memory and sessionStorage
|
|
341
|
+
*/
|
|
342
|
+
clearPersistedTemplateFromStorage(): void;
|
|
343
|
+
/**
|
|
344
|
+
* Checks if a persisted template has expired
|
|
345
|
+
* @param template - Persisted template to check
|
|
346
|
+
* @returns Boolean indicating if template has expired
|
|
347
|
+
*/
|
|
348
|
+
private isTemplateExpired;
|
|
349
|
+
/**
|
|
350
|
+
* Restores persisted template from sessionStorage if valid
|
|
351
|
+
* Called during onInit after PWC state restoration
|
|
352
|
+
*/
|
|
353
|
+
private restorePersistedTemplate;
|
|
354
|
+
/**
|
|
355
|
+
* Re-renders a persisted template in the DOM
|
|
356
|
+
* @param template - Persisted template to render
|
|
357
|
+
*/
|
|
358
|
+
private renderPersistedTemplate;
|
|
325
359
|
/**
|
|
326
360
|
* Constructs the pwe_data object based on the new campaign structure
|
|
327
361
|
* 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;
|