@cimulate/copilot-widget 1.15.2 → 1.15.3
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/messaging.d.ts +13 -0
- package/dist/messaging.es.js +4618 -4578
- package/dist/messaging.umd.js +28 -28
- package/package.json +1 -1
package/dist/messaging.d.ts
CHANGED
|
@@ -156,6 +156,19 @@ declare type CimCopilotSdkConfig = {
|
|
|
156
156
|
tenantId?: string;
|
|
157
157
|
};
|
|
158
158
|
|
|
159
|
+
/**
|
|
160
|
+
* Fired before the widget creates or re-creates a conversation. Call
|
|
161
|
+
* `preventDefault()` to supply fields via `setHiddenPrechatFields()`
|
|
162
|
+
* asynchronously, then call `done()` to release the widget.
|
|
163
|
+
*/
|
|
164
|
+
export declare const CIMULATE_WIDGET_READY_EVENT = "onCimulateWidgetReady";
|
|
165
|
+
|
|
166
|
+
export declare interface CimulateWidgetReadyDetail {
|
|
167
|
+
routingAttributes?: Record<string, string>;
|
|
168
|
+
setHiddenPrechatFields: (fields: Record<string, string>) => void;
|
|
169
|
+
done: () => void;
|
|
170
|
+
}
|
|
171
|
+
|
|
159
172
|
declare interface ClientContext {
|
|
160
173
|
[key: string]: string | number;
|
|
161
174
|
}
|