@ujet/websdk-headless 3.5.0 → 3.6.1
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 +4 -3
- package/dist/index.d.ts +7 -2
- package/dist/index.js +44 -44
- package/dist/index.mjs +3509 -3495
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -76,6 +76,7 @@ interface CompanyResponse {
|
|
|
76
76
|
email_transcripts: boolean;
|
|
77
77
|
message_preview: boolean;
|
|
78
78
|
email_enhancement: boolean;
|
|
79
|
+
cobrowse_domain?: string;
|
|
79
80
|
}
|
|
80
81
|
```
|
|
81
82
|
|
|
@@ -743,7 +744,7 @@ client.on("cobrowse.ended", session => {
|
|
|
743
744
|
|
|
744
745
|
## Cobrowse
|
|
745
746
|
|
|
746
|
-
Headless WebSDK has built-in integration with
|
|
747
|
+
Headless WebSDK has built-in integration with Screen Share. It has a simple UI without
|
|
747
748
|
CSS, developers SHOULD add style for it.
|
|
748
749
|
|
|
749
750
|
The default template is:
|
|
@@ -831,9 +832,9 @@ for these variables are:
|
|
|
831
832
|
|
|
832
833
|
```
|
|
833
834
|
{
|
|
834
|
-
"confirmSessionTitle": "
|
|
835
|
+
"confirmSessionTitle": "Screen Share Session Request",
|
|
835
836
|
"confirmSessionContent": "Do you want to share your current screen with the agent?",
|
|
836
|
-
"endSessionText": "End
|
|
837
|
+
"endSessionText": "End Screen Share Session",
|
|
837
838
|
"confirmRemoteControlTitle": "Remote Access Request",
|
|
838
839
|
"confirmRemoteControlContent": "The agent would like to have access to your currently shared screen to further assist you. Do you want to allow this?",
|
|
839
840
|
"confirmFullDeviceTitle": "Screen Share Request",
|
package/dist/index.d.ts
CHANGED
|
@@ -111,6 +111,7 @@ interface CompanyResponse {
|
|
|
111
111
|
display_history: boolean;
|
|
112
112
|
use_recording: boolean;
|
|
113
113
|
use_web: boolean;
|
|
114
|
+
cobrowse_domain?: string;
|
|
114
115
|
}
|
|
115
116
|
interface MenuChannel {
|
|
116
117
|
enabled: boolean;
|
|
@@ -135,6 +136,7 @@ interface MenuItem {
|
|
|
135
136
|
enabled: boolean;
|
|
136
137
|
type: string;
|
|
137
138
|
};
|
|
139
|
+
hidden: boolean;
|
|
138
140
|
}
|
|
139
141
|
interface MenuResponse {
|
|
140
142
|
menus: MenuItem[];
|
|
@@ -277,7 +279,7 @@ interface ChatHistoryResponse {
|
|
|
277
279
|
};
|
|
278
280
|
}
|
|
279
281
|
interface UserProfile {
|
|
280
|
-
|
|
282
|
+
identifier?: string;
|
|
281
283
|
name?: string;
|
|
282
284
|
email?: string;
|
|
283
285
|
}
|
|
@@ -295,6 +297,8 @@ interface TriggerItem {
|
|
|
295
297
|
lang?: string;
|
|
296
298
|
keywords_included?: string[];
|
|
297
299
|
keywords_excluded?: string[];
|
|
300
|
+
keywords_included_or?: string[][];
|
|
301
|
+
keywords_excluded_or?: string[][];
|
|
298
302
|
}
|
|
299
303
|
|
|
300
304
|
type RequestMethod = (url: string, options: RequestInit | Record<string, any>) => Promise<RequestReturn>;
|
|
@@ -473,7 +477,7 @@ declare class Cobrowse {
|
|
|
473
477
|
private get lang();
|
|
474
478
|
private get messages();
|
|
475
479
|
private get template();
|
|
476
|
-
static create(options: CobrowseOption): Promise<Cobrowse>;
|
|
480
|
+
static create(options: CobrowseOption, script: string): Promise<Cobrowse>;
|
|
477
481
|
setCustomData(data: any): void;
|
|
478
482
|
on(eventName: string, eventHandler: EventHandler): void;
|
|
479
483
|
start(): Promise<void>;
|
|
@@ -542,6 +546,7 @@ declare class Client {
|
|
|
542
546
|
getMessageAttachment(message: MessageResponse): Promise<File>;
|
|
543
547
|
private initializeCobrowse;
|
|
544
548
|
private registerOngoingChat;
|
|
549
|
+
private getCobrowseScript;
|
|
545
550
|
}
|
|
546
551
|
|
|
547
552
|
declare abstract class BaseProvider {
|