@unblu/embedded-app-component 8.26.2 → 8.28.4
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/lib/index.d.ts +3 -1
- package/dist/lib/index.js +1 -0
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/shared/conversation.d.ts +25 -0
- package/dist/lib/shared/conversation.js +25 -0
- package/dist/lib/shared/conversation.js.map +1 -1
- package/dist/lib/shared/internal/module/conversation-module.d.ts +8 -1
- package/dist/lib/shared/internal/module/conversation-module.js +3 -0
- package/dist/lib/shared/internal/module/conversation-module.js.map +1 -1
- package/dist/lib/shared/internal/unblu-util.js +1 -1
- package/dist/lib/shared/model/authentication-role.d.ts +34 -0
- package/dist/lib/shared/model/authentication-role.js +36 -0
- package/dist/lib/shared/model/authentication-role.js.map +1 -0
- package/dist/lib/shared/model/current-conversation-participant.d.ts +36 -0
- package/dist/lib/shared/model/current-conversation-participant.js +2 -0
- package/dist/lib/shared/model/current-conversation-participant.js.map +1 -0
- package/dist/lib/web-types.json +1 -1
- package/package.json +1 -1
package/dist/lib/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export { ConversationState } from "./shared/model/conversation-state";
|
|
|
12
12
|
export { ConversationEventType } from "./shared/internal/module/conversation-module";
|
|
13
13
|
export { ConnectionStateContainer } from "./shared/model/connection-state-container";
|
|
14
14
|
export { ErrorReason } from "./shared/model/error-reason";
|
|
15
|
-
export { CallStateListener, ConversationConnectionStateListener, ConversationStateListener, CustomActionInvocationListener, Conversation, QueueStatusChangeListener, CallConnectionStateChangeListener, DisplayedCollaborationLayerChangeListener, CollaborationLayersChangeListener } from "./shared/conversation";
|
|
15
|
+
export { CallStateListener, ConversationConnectionStateListener, ConversationStateListener, CustomActionInvocationListener, Conversation, QueueStatusChangeListener, CallConnectionStateChangeListener, DisplayedCollaborationLayerChangeListener, CollaborationLayersChangeListener, ParticipantsChangeListener } from "./shared/conversation";
|
|
16
16
|
export { UnbluEmbeddedAppElement, StateChangeEvent, ReadyEvent, ErrorEvent, DeinitializationStartedEvent, DeinitializationFinishedEvent, ActiveConversationChangeEvent, FullscreenChangeEvent, ViewModeChangeEvent } from "./unblu-embedded-app-element";
|
|
17
17
|
export { UnbluEmbeddedApi, ActiveConversationChangeListener, AgentAvailabilityChangeListener, AgentAvailableChangeListener, ConversationsChangeListener, DeinitializationListener, NotificationCountChangeListener, PersonChangeListener, PersonActivityListener, FullscreenChangeListener, ViewModeChangeListener, ConnectionStateChangeListener } from "./unblu-embedded-api";
|
|
18
18
|
export { PersonInfo } from "./shared/model/person-info";
|
|
@@ -23,6 +23,8 @@ export { NewConversationInterceptorResult } from "./shared/model/new-conversatio
|
|
|
23
23
|
export { ConversationRecipient } from "./shared/model/conversation-recipient";
|
|
24
24
|
export { NewConversationRecipient } from "./shared/model/new-conversation-recipient";
|
|
25
25
|
export { ConversationParticipant } from "./shared/model/conversation-participant";
|
|
26
|
+
export { CurrentConversationParticipant } from "./shared/model/current-conversation-participant";
|
|
27
|
+
export { AuthenticationRole } from "./shared/model/authentication-role";
|
|
26
28
|
export { CustomActionInvocation } from "./shared/model/customaction/custom-action-invocation";
|
|
27
29
|
export { ConversationQueueStatus } from "./shared/model/conversation-queue-status";
|
|
28
30
|
export { CollaborationLayer } from "./shared/model/collaboration-layer";
|
package/dist/lib/index.js
CHANGED
|
@@ -14,6 +14,7 @@ export { Conversation } from "./shared/conversation";
|
|
|
14
14
|
export { UnbluEmbeddedAppElement } from "./unblu-embedded-app-element";
|
|
15
15
|
export { UnbluEmbeddedApi } from "./unblu-embedded-api";
|
|
16
16
|
export { CallConnectionState } from "./shared/model/call-connection-state";
|
|
17
|
+
export { AuthenticationRole } from "./shared/model/authentication-role";
|
|
17
18
|
export { ConversationQueueStatus } from "./shared/model/conversation-queue-status";
|
|
18
19
|
export { CollaborationLayerState } from "./shared/model/collaboration-layer-state";
|
|
19
20
|
export { CollaborationLayerType } from "./shared/model/collaboration-layer-type";
|
package/dist/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,oBAAoB,CAAA;AAC3C,OAAO,EAAC,SAAS,EAAC,MAAM,2BAA2B,CAAA;AACnD,OAAO,EAAC,eAAe,EAAC,MAAM,iCAAiC,CAAA;AAC/D,OAAO,EAAC,gBAAgB,EAAC,MAAM,kCAAkC,CAAA;AACjE,OAAO,EAAC,yBAAyB,EAAC,MAAM,4CAA4C,CAAA;AACpF,OAAO,EAAC,4BAA4B,EAAC,MAAM,gDAAgD,CAAA;AAC3F,OAAO,EAAC,6BAA6B,EAAC,MAAM,gDAAgD,CAAA;AAC5F,OAAO,EAAC,sBAAsB,EAAC,MAAM,yCAAyC,CAAA;AAC9E,OAAO,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;AACpC,OAAO,EAAC,aAAa,EAAE,cAAc,EAAC,MAAM,0BAA0B,CAAA;AACtE,OAAO,EAAC,iBAAiB,EAAC,MAAM,mCAAmC,CAAC;AAGpE,OAAO,EAAC,WAAW,EAAC,MAAM,6BAA6B,CAAA;AACvD,OAAO,EAKH,YAAY,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,oBAAoB,CAAA;AAC3C,OAAO,EAAC,SAAS,EAAC,MAAM,2BAA2B,CAAA;AACnD,OAAO,EAAC,eAAe,EAAC,MAAM,iCAAiC,CAAA;AAC/D,OAAO,EAAC,gBAAgB,EAAC,MAAM,kCAAkC,CAAA;AACjE,OAAO,EAAC,yBAAyB,EAAC,MAAM,4CAA4C,CAAA;AACpF,OAAO,EAAC,4BAA4B,EAAC,MAAM,gDAAgD,CAAA;AAC3F,OAAO,EAAC,6BAA6B,EAAC,MAAM,gDAAgD,CAAA;AAC5F,OAAO,EAAC,sBAAsB,EAAC,MAAM,yCAAyC,CAAA;AAC9E,OAAO,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;AACpC,OAAO,EAAC,aAAa,EAAE,cAAc,EAAC,MAAM,0BAA0B,CAAA;AACtE,OAAO,EAAC,iBAAiB,EAAC,MAAM,mCAAmC,CAAC;AAGpE,OAAO,EAAC,WAAW,EAAC,MAAM,6BAA6B,CAAA;AACvD,OAAO,EAKH,YAAY,EAMf,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACH,uBAAuB,EAS1B,MAAM,8BAA8B,CAAA;AAErC,OAAO,EACH,gBAAgB,EAYnB,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EAAC,mBAAmB,EAAC,MAAM,sCAAsC,CAAC;AAQzE,OAAO,EAAC,kBAAkB,EAAC,MAAM,oCAAoC,CAAC;AAEtE,OAAO,EAAC,uBAAuB,EAAC,MAAM,0CAA0C,CAAA;AAEhF,OAAO,EAAC,uBAAuB,EAAC,MAAM,0CAA0C,CAAC;AACjF,OAAO,EAAC,sBAAsB,EAAC,MAAM,yCAAyC,CAAC"}
|
|
@@ -7,6 +7,7 @@ import { CustomActionInvocation } from './model/customaction/custom-action-invoc
|
|
|
7
7
|
import { CallConnectionState } from "./model/call-connection-state";
|
|
8
8
|
import { ConversationQueueStatus } from "./model/conversation-queue-status";
|
|
9
9
|
import { CollaborationLayer } from "./model/collaboration-layer";
|
|
10
|
+
import { CurrentConversationParticipant } from "./model/current-conversation-participant";
|
|
10
11
|
export type ConversationConnectionStateListener = (connectionState: ConnectionState) => void;
|
|
11
12
|
export type ConversationStateListener = (conversationState: ConversationState) => void;
|
|
12
13
|
export type CallStateListener = (callState: CallState) => void;
|
|
@@ -14,6 +15,7 @@ export type QueueStatusChangeListener = (conversationQueueStatus: ConversationQu
|
|
|
14
15
|
export type CallConnectionStateChangeListener = (callConnectionState: CallConnectionState) => void;
|
|
15
16
|
export type DisplayedCollaborationLayerChangeListener = (conversationLayer: CollaborationLayer | null) => void;
|
|
16
17
|
export type CollaborationLayersChangeListener = (conversationLayers: CollaborationLayer[]) => void;
|
|
18
|
+
export type ParticipantsChangeListener = (conversationLayers: CurrentConversationParticipant[]) => void;
|
|
17
19
|
/**
|
|
18
20
|
* Listener called whenever a custom action invocation triggers an API event for the client
|
|
19
21
|
* @param customActionInvocation The details of the custom action invocation
|
|
@@ -77,6 +79,14 @@ export declare class Conversation {
|
|
|
77
79
|
* @private
|
|
78
80
|
*/
|
|
79
81
|
static readonly COLLABORATION_LAYERS_CHANGE: 'collaborationLayersChange';
|
|
82
|
+
/**
|
|
83
|
+
* Event emitted when the {@link CurrentConversationParticipant}s of the conversation change, that is, when:
|
|
84
|
+
* - A participant is added to or removed from the conversation
|
|
85
|
+
* - If any participant data changes
|
|
86
|
+
* @event collaborationLayersChange
|
|
87
|
+
* @see {@link on} for listener registration
|
|
88
|
+
*/
|
|
89
|
+
static readonly PARTICIPANTS_CHANGE: 'participantsChange';
|
|
80
90
|
/**
|
|
81
91
|
* Event emitted when the conversation ends.
|
|
82
92
|
* @deprecated The end event is not always available, depending on the configuration. Use the {@link CONVERSATION_STATE_CHANGE} event instead.
|
|
@@ -152,6 +162,13 @@ export declare class Conversation {
|
|
|
152
162
|
* @see {@link COLLABORATION_LAYERS_CHANGE}
|
|
153
163
|
*/
|
|
154
164
|
on(event: typeof Conversation.COLLABORATION_LAYERS_CHANGE, listener: CollaborationLayersChangeListener): void;
|
|
165
|
+
/**
|
|
166
|
+
* Registers an event listener for the given event
|
|
167
|
+
* @param event The participants change event
|
|
168
|
+
* @param listener The listener to be called
|
|
169
|
+
* @see {@link PARTICIPANTS_CHANGE}
|
|
170
|
+
*/
|
|
171
|
+
on(event: typeof Conversation.PARTICIPANTS_CHANGE, listener: ParticipantsChangeListener): void;
|
|
155
172
|
/**
|
|
156
173
|
* Registers an event listener for the given event
|
|
157
174
|
* @param event The displayed collaboration layer change event
|
|
@@ -258,6 +275,14 @@ export declare class Conversation {
|
|
|
258
275
|
* The promise is rejected with a {@link UnbluApiError} if the call fails.
|
|
259
276
|
*/
|
|
260
277
|
getCollaborationLayers(): Promise<CollaborationLayer[]>;
|
|
278
|
+
/**
|
|
279
|
+
* Returns the list of participants in the current conversation.
|
|
280
|
+
* As participants can join and leave a conversation, subsequent calls may return a different collection.
|
|
281
|
+
* @see {@link PARTICIPANTS_CHANGED} if you need to listen to changes.
|
|
282
|
+
* @return A promise that resolves to the list of participants.
|
|
283
|
+
* The promise is rejected with a {@link UnbluApiError} if the call fails.
|
|
284
|
+
*/
|
|
285
|
+
getParticipants(): Promise<CurrentConversationParticipant[]>;
|
|
261
286
|
/**
|
|
262
287
|
* Set custom visitor data on the conversation. Don't use for confidential information. Security-related
|
|
263
288
|
* data should be stored in the conversation metadata.
|
|
@@ -103,6 +103,12 @@ export class Conversation {
|
|
|
103
103
|
this.eventEmitter.emit(event.name, event.data.displayedLayer);
|
|
104
104
|
};
|
|
105
105
|
break;
|
|
106
|
+
case Conversation.PARTICIPANTS_CHANGE:
|
|
107
|
+
internalListener = (event) => {
|
|
108
|
+
if (event.data.conversationId == this.conversationId)
|
|
109
|
+
this.eventEmitter.emit(event.name, event.data.participants);
|
|
110
|
+
};
|
|
111
|
+
break;
|
|
106
112
|
default:
|
|
107
113
|
internalListener = (event) => {
|
|
108
114
|
if (event.data == this.conversationId) {
|
|
@@ -221,6 +227,17 @@ export class Conversation {
|
|
|
221
227
|
this.checkNotDestroyed();
|
|
222
228
|
return this.conversationModule.getCollaborationLayers(this.conversationId);
|
|
223
229
|
}
|
|
230
|
+
/**
|
|
231
|
+
* Returns the list of participants in the current conversation.
|
|
232
|
+
* As participants can join and leave a conversation, subsequent calls may return a different collection.
|
|
233
|
+
* @see {@link PARTICIPANTS_CHANGED} if you need to listen to changes.
|
|
234
|
+
* @return A promise that resolves to the list of participants.
|
|
235
|
+
* The promise is rejected with a {@link UnbluApiError} if the call fails.
|
|
236
|
+
*/
|
|
237
|
+
async getParticipants() {
|
|
238
|
+
this.checkNotDestroyed();
|
|
239
|
+
return this.conversationModule.getParticipants(this.conversationId);
|
|
240
|
+
}
|
|
224
241
|
/**
|
|
225
242
|
* Set custom visitor data on the conversation. Don't use for confidential information. Security-related
|
|
226
243
|
* data should be stored in the conversation metadata.
|
|
@@ -407,6 +424,14 @@ Conversation.DISPLAYED_COLLABORATION_LAYER_CHANGE = 'displayedCollaborationLayer
|
|
|
407
424
|
* @private
|
|
408
425
|
*/
|
|
409
426
|
Conversation.COLLABORATION_LAYERS_CHANGE = 'collaborationLayersChange';
|
|
427
|
+
/**
|
|
428
|
+
* Event emitted when the {@link CurrentConversationParticipant}s of the conversation change, that is, when:
|
|
429
|
+
* - A participant is added to or removed from the conversation
|
|
430
|
+
* - If any participant data changes
|
|
431
|
+
* @event collaborationLayersChange
|
|
432
|
+
* @see {@link on} for listener registration
|
|
433
|
+
*/
|
|
434
|
+
Conversation.PARTICIPANTS_CHANGE = 'participantsChange';
|
|
410
435
|
/**
|
|
411
436
|
* Event emitted when the conversation ends.
|
|
412
437
|
* @deprecated The end event is not always available, depending on the configuration. Use the {@link CONVERSATION_STATE_CHANGE} event instead.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation.js","sourceRoot":"","sources":["../../../src/shared/conversation.ts"],"names":[],"mappings":"AAaA,OAAO,EAAC,aAAa,EAAE,cAAc,EAAC,MAAM,mBAAmB,CAAA;AAC/D,OAAO,EAAC,YAAY,EAAW,MAAM,+BAA+B,CAAA;AAKpE,OAAO,EAAC,uBAAuB,EAAC,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"conversation.js","sourceRoot":"","sources":["../../../src/shared/conversation.ts"],"names":[],"mappings":"AAaA,OAAO,EAAC,aAAa,EAAE,cAAc,EAAC,MAAM,mBAAmB,CAAA;AAC/D,OAAO,EAAC,YAAY,EAAW,MAAM,+BAA+B,CAAA;AAKpE,OAAO,EAAC,uBAAuB,EAAC,MAAM,mCAAmC,CAAC;AAmB1E;;;;;;;;;G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,yCAA4B,GAAgC,2BAA2B,AAA3D,CAA2D;AAE9G;;;;GAIG;AACoB,iDAAoC,GAAwC,mCAAmC,AAA3E,CAA2E;AAEtI;;;;;;;GAOG;AACoB,wCAA2B,GAAgC,2BAA2B,AAA3D,CAA2D;AAE7G;;;;;;GAMG;AACoB,gCAAmB,GAAyB,oBAAoB,AAA7C,CAA6C;AAEvF;;;;;GAKG;AACoB,gBAAG,GAAU,KAAK,AAAf,CAAe;AAEzC;;;;;;;;;GASG;AACoB,kBAAK,GAAY,OAAO,AAAnB,CAAmB;AAE/C;;;;;;GAMG;AACoB,qCAAwB,GAA6B,wBAAwB,AAArD,CAAqD"}
|
|
@@ -5,6 +5,7 @@ import { ConversationState } from '../../model/conversation-state';
|
|
|
5
5
|
import { ConnectionState } from '../../model/connection-state';
|
|
6
6
|
import { CallConnectionState } from "../../model/call-connection-state";
|
|
7
7
|
import { CollaborationLayer } from "../../model/collaboration-layer";
|
|
8
|
+
import { CurrentConversationParticipant } from "../../model/current-conversation-participant";
|
|
8
9
|
export interface ConversationCallState {
|
|
9
10
|
conversationId: string;
|
|
10
11
|
callState: CallState;
|
|
@@ -36,11 +37,15 @@ export type InternalDisplayedCollaborationLayer = {
|
|
|
36
37
|
conversationId: string;
|
|
37
38
|
displayedLayer: CollaborationLayer | null;
|
|
38
39
|
};
|
|
40
|
+
export type InternalParticipants = {
|
|
41
|
+
conversationId: string;
|
|
42
|
+
participants: CurrentConversationParticipant[];
|
|
43
|
+
};
|
|
39
44
|
export interface ConversationCallConnectionState {
|
|
40
45
|
conversationId: string;
|
|
41
46
|
callConnectionState: CallConnectionState;
|
|
42
47
|
}
|
|
43
|
-
export type ConversationEventType = 'connectionStateChange' | 'conversationStateChange' | 'end' | 'close' | 'personChange' | 'callStateChange' | 'invitationsChange' | 'customActionInvocation' | 'queueStatusChange' | 'callConnectionStateChange' | 'collaborationLayersChange' | 'displayedCollaborationLayerChange';
|
|
48
|
+
export type ConversationEventType = 'connectionStateChange' | 'conversationStateChange' | 'end' | 'close' | 'personChange' | 'callStateChange' | 'invitationsChange' | 'customActionInvocation' | 'queueStatusChange' | 'callConnectionStateChange' | 'collaborationLayersChange' | 'displayedCollaborationLayerChange' | 'participantsChange';
|
|
44
49
|
declare const enum ConversationFunction {
|
|
45
50
|
getConnectionState = "getConnectionState",
|
|
46
51
|
getConversationState = "getConversationState",
|
|
@@ -55,6 +60,7 @@ declare const enum ConversationFunction {
|
|
|
55
60
|
getQueueStatus = "getQueueStatus",
|
|
56
61
|
getCallConnectionState = "getCallConnectionState",
|
|
57
62
|
getCollaborationLayers = "getCollaborationLayers",
|
|
63
|
+
getParticipants = "getParticipants",
|
|
58
64
|
getDisplayedCollaborationLayer = "getDisplayedCollaborationLayer"
|
|
59
65
|
}
|
|
60
66
|
export declare class ConversationModule extends InternalModule<ConversationFunction, ConversationEventType> {
|
|
@@ -73,5 +79,6 @@ export declare class ConversationModule extends InternalModule<ConversationFunct
|
|
|
73
79
|
getCallConnectionState(conversationId: string): Promise<CallConnectionState>;
|
|
74
80
|
getCollaborationLayers(conversationId: string): Promise<CollaborationLayer[]>;
|
|
75
81
|
getDisplayedCollaborationLayer(conversationId: string): Promise<CollaborationLayer | null>;
|
|
82
|
+
getParticipants(conversationId: string): Promise<CurrentConversationParticipant[]>;
|
|
76
83
|
}
|
|
77
84
|
export {};
|
|
@@ -45,5 +45,8 @@ export class ConversationModule extends InternalModule {
|
|
|
45
45
|
async getDisplayedCollaborationLayer(conversationId) {
|
|
46
46
|
return this.callApiFunction("getDisplayedCollaborationLayer" /* ConversationFunction.getDisplayedCollaborationLayer */, [conversationId]);
|
|
47
47
|
}
|
|
48
|
+
async getParticipants(conversationId) {
|
|
49
|
+
return this.callApiFunction("getParticipants" /* ConversationFunction.getParticipants */, [conversationId]);
|
|
50
|
+
}
|
|
48
51
|
}
|
|
49
52
|
//# sourceMappingURL=conversation-module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-module.js","sourceRoot":"","sources":["../../../../../src/shared/internal/module/conversation-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"conversation-module.js","sourceRoot":"","sources":["../../../../../src/shared/internal/module/conversation-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,UAAU,CAAA;AA4FvC,MAAM,OAAO,kBAAmB,SAAQ,cAA2D;IAC/F,YAAY,MAAiB;QACzB,KAAK,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;IACjC,CAAC;IAEM,kBAAkB,CAAC,cAAsB;QAC5C,OAAO,IAAI,CAAC,eAAe,qEAA0C,CAAC,cAAc,CAAC,CAAC,CAAA;IAC1F,CAAC;IAEM,oBAAoB,CAAC,cAAsB;QAC9C,OAAO,IAAI,CAAC,eAAe,yEAA4C,CAAC,cAAc,CAAC,CAAC,CAAA;IAC5F,CAAC;IAEM,YAAY,CAAC,cAAsB;QACtC,OAAO,IAAI,CAAC,eAAe,yDAAoC,CAAC,cAAc,CAAC,CAAC,CAAA;IACpF,CAAC;IAEM,cAAc,CAAC,cAAsB;QACxC,OAAO,IAAI,CAAC,eAAe,6DAAsC,CAAC,cAAc,CAAC,CAAC,CAAA;IACtF,CAAC;IAEM,cAAc,CAAC,cAAsB;QACxC,OAAO,IAAI,CAAC,eAAe,6DAAsC,CAAC,cAAc,CAAC,CAAC,CAAA;IACtF,CAAC;IAEM,eAAe,CAAC,cAAsB;QACzC,OAAO,IAAI,CAAC,eAAe,+DAAuC,CAAC,cAAc,CAAC,CAAC,CAAA;IACvF,CAAC;IAEM,iBAAiB,CAAC,cAAsB;QAC3C,OAAO,IAAI,CAAC,eAAe,mEAAyC,CAAC,cAAc,CAAC,CAAC,CAAA;IACzF,CAAC;IAEM,iBAAiB,CAAC,cAAsB;QAC3C,OAAO,IAAI,CAAC,eAAe,mEAAyC,CAAC,cAAc,CAAC,CAAC,CAAA;IACzF,CAAC;IAEM,KAAK,CAAC,cAAc,CAAC,WAAmB;QAC3C,OAAO,IAAI,CAAC,eAAe,6DAAsC,CAAC,WAAW,CAAC,CAAC,CAAC;IACpF,CAAC;IAEM,KAAK,CAAC,cAAc;QACvB,OAAO,IAAI,CAAC,eAAe,6DAAsC,IAAI,CAAC,CAAC;IAC3E,CAAC;IACM,KAAK,CAAC,cAAc,CAAC,cAAsB;QAC9C,OAAO,IAAI,CAAC,eAAe,6DAAsC,CAAC,cAAc,CAAC,CAAC,CAAC;IACvF,CAAC;IAEM,KAAK,CAAC,sBAAsB,CAAC,cAAsB;QACtD,OAAO,IAAI,CAAC,eAAe,6EAA8C,CAAC,cAAc,CAAC,CAAC,CAAC;IAC/F,CAAC;IAEM,KAAK,CAAC,sBAAsB,CAAC,cAAsB;QACtD,OAAO,IAAI,CAAC,eAAe,6EAA8C,CAAC,cAAc,CAAC,CAAC,CAAC;IAC/F,CAAC;IAEM,KAAK,CAAC,8BAA8B,CAAC,cAAsB;QAC9D,OAAO,IAAI,CAAC,eAAe,6FAAsD,CAAC,cAAc,CAAC,CAAC,CAAC;IACvG,CAAC;IAEM,KAAK,CAAC,eAAe,CAAC,cAAsB;QAC/C,OAAO,IAAI,CAAC,eAAe,+DAAuC,CAAC,cAAc,CAAC,CAAC,CAAC;IACxF,CAAC;CACJ"}
|
|
@@ -82,7 +82,7 @@ export class UnbluUtil {
|
|
|
82
82
|
UnbluUtil.getOrCreateUnbluObject().l = locale;
|
|
83
83
|
}
|
|
84
84
|
static async loginWithSecureToken(serverUrl, apiKey, entryPath, accessToken) {
|
|
85
|
-
const url = `${serverUrl}${entryPath}/rest/
|
|
85
|
+
const url = `${serverUrl}${entryPath}/rest/v4/authenticator/loginWithSecureToken?x-unblu-apikey=${apiKey}`;
|
|
86
86
|
let response;
|
|
87
87
|
try {
|
|
88
88
|
response = await fetch(url, {
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare enum AuthenticationRole {
|
|
2
|
+
/**
|
|
3
|
+
* Super admin role. Only for unblu or system admins
|
|
4
|
+
*/
|
|
5
|
+
SUPER_ADMIN = "SUPER_ADMIN",
|
|
6
|
+
/**
|
|
7
|
+
* Technical admin role.
|
|
8
|
+
*/
|
|
9
|
+
TECHNICAL_ADMIN = "TECHNICAL_ADMIN",
|
|
10
|
+
/**
|
|
11
|
+
* Admin role. For Admins of the system
|
|
12
|
+
*/
|
|
13
|
+
ADMIN = "ADMIN",
|
|
14
|
+
/**
|
|
15
|
+
* Supervisor role. For users which manage teams
|
|
16
|
+
*/
|
|
17
|
+
SUPERVISOR = "SUPERVISOR",
|
|
18
|
+
/**
|
|
19
|
+
* User role. For normal users (agents)
|
|
20
|
+
*/
|
|
21
|
+
REGISTERED_USER = "REGISTERED_USER",
|
|
22
|
+
/**
|
|
23
|
+
* Webuser role. For internal representation of users from the outside
|
|
24
|
+
*/
|
|
25
|
+
WEBUSER = "WEBUSER",
|
|
26
|
+
/**
|
|
27
|
+
* Partially authenticated. For users who have logged in but haven't completed 2FA.
|
|
28
|
+
*/
|
|
29
|
+
PARTIALLY_AUTHENTICATED = "PARTIALLY_AUTHENTICATED",
|
|
30
|
+
/**
|
|
31
|
+
* Anonymous role. For internal representation of unknown users
|
|
32
|
+
*/
|
|
33
|
+
ANONYMOUS_USER = "ANONYMOUS_USER"
|
|
34
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export var AuthenticationRole;
|
|
2
|
+
(function (AuthenticationRole) {
|
|
3
|
+
/**
|
|
4
|
+
* Super admin role. Only for unblu or system admins
|
|
5
|
+
*/
|
|
6
|
+
AuthenticationRole["SUPER_ADMIN"] = "SUPER_ADMIN";
|
|
7
|
+
/**
|
|
8
|
+
* Technical admin role.
|
|
9
|
+
*/
|
|
10
|
+
AuthenticationRole["TECHNICAL_ADMIN"] = "TECHNICAL_ADMIN";
|
|
11
|
+
/**
|
|
12
|
+
* Admin role. For Admins of the system
|
|
13
|
+
*/
|
|
14
|
+
AuthenticationRole["ADMIN"] = "ADMIN";
|
|
15
|
+
/**
|
|
16
|
+
* Supervisor role. For users which manage teams
|
|
17
|
+
*/
|
|
18
|
+
AuthenticationRole["SUPERVISOR"] = "SUPERVISOR";
|
|
19
|
+
/**
|
|
20
|
+
* User role. For normal users (agents)
|
|
21
|
+
*/
|
|
22
|
+
AuthenticationRole["REGISTERED_USER"] = "REGISTERED_USER";
|
|
23
|
+
/**
|
|
24
|
+
* Webuser role. For internal representation of users from the outside
|
|
25
|
+
*/
|
|
26
|
+
AuthenticationRole["WEBUSER"] = "WEBUSER";
|
|
27
|
+
/**
|
|
28
|
+
* Partially authenticated. For users who have logged in but haven't completed 2FA.
|
|
29
|
+
*/
|
|
30
|
+
AuthenticationRole["PARTIALLY_AUTHENTICATED"] = "PARTIALLY_AUTHENTICATED";
|
|
31
|
+
/**
|
|
32
|
+
* Anonymous role. For internal representation of unknown users
|
|
33
|
+
*/
|
|
34
|
+
AuthenticationRole["ANONYMOUS_USER"] = "ANONYMOUS_USER";
|
|
35
|
+
})(AuthenticationRole || (AuthenticationRole = {}));
|
|
36
|
+
//# sourceMappingURL=authentication-role.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authentication-role.js","sourceRoot":"","sources":["../../../../src/shared/model/authentication-role.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,kBAyCX;AAzCD,WAAY,kBAAkB;IAE1B;;OAEG;IACH,iDAA2B,CAAA;IAE3B;;OAEG;IACH,yDAAmC,CAAA;IAEnC;;OAEG;IACH,qCAAe,CAAA;IAEf;;OAEG;IACH,+CAAyB,CAAA;IAEzB;;OAEG;IACH,yDAAmC,CAAA;IAEnC;;OAEG;IACH,yCAAmB,CAAA;IAEnB;;OAEG;IACH,yEAAmD,CAAA;IAEnD;;OAEG;IACH,uDAAiC,CAAA;AACrC,CAAC,EAzCW,kBAAkB,KAAlB,kBAAkB,QAyC7B"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ConversationParticipationType } from "./conversation-participation-type";
|
|
2
|
+
import { AuthenticationRole } from "./authentication-role";
|
|
3
|
+
export interface CurrentConversationParticipant {
|
|
4
|
+
/**
|
|
5
|
+
* Person ID of the participant
|
|
6
|
+
*/
|
|
7
|
+
personId: string;
|
|
8
|
+
/**
|
|
9
|
+
* Name of the participant
|
|
10
|
+
*/
|
|
11
|
+
name: string;
|
|
12
|
+
/**
|
|
13
|
+
* Participation type of the participant
|
|
14
|
+
*/
|
|
15
|
+
participationType: ConversationParticipationType;
|
|
16
|
+
/**
|
|
17
|
+
* Username of the participant. Only set if it's configured to be exposed
|
|
18
|
+
*/
|
|
19
|
+
username?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Authentication role of the participant. Only set if it's configured to be exposed
|
|
22
|
+
*/
|
|
23
|
+
authenticationRole?: AuthenticationRole;
|
|
24
|
+
/**
|
|
25
|
+
* Source ID of the participant. Only set if it's configured to be exposed
|
|
26
|
+
*/
|
|
27
|
+
sourceId?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Email address of the participant. Only set if it's configured to be exposed
|
|
30
|
+
*/
|
|
31
|
+
email?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Phone number of the participant. Only set if it's configured to be exposed
|
|
34
|
+
*/
|
|
35
|
+
phoneNumber?: string;
|
|
36
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"current-conversation-participant.js","sourceRoot":"","sources":["../../../../src/shared/model/current-conversation-participant.ts"],"names":[],"mappings":""}
|
package/dist/lib/web-types.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json","name":"@unblu/embedded-app-component","version":"8.26.2","js-types-syntax":"typescript","description-markup":"markdown","contributions":{"html":{"elements":[{"name":"unblu-embedded-app","description":"Unblu Embedded App Component allows to integrate Unblu into a website using a web component","attributes":[{"name":"server-url","description":"The URL to the collaboration server.\n\nIf not specified it is assumed that the server is reachable on the domain of the current webpage at the defined {@link UnbluEmbeddedAppElement.entryPath}\n\n**Note**: Changes to this attribute trigger a reinitialization of Unblu if {@link UnbluEmbeddedAppElement.ATTR_AUTO_INIT} is true.\n\n@see {@link UnbluEmbeddedAppElement.serverUrl} to set or get this via a property\n"},{"name":"entry-path","description":"The path pointing to the root of the Unblu collaboration server.\n\n@default \"/unblu\".\n\n**Note**: Changes to this attribute trigger a reinitialization of Unblu if {@link UnbluEmbeddedAppElement.ATTR_AUTO_INIT} is true.\n\n@see {@link UnbluEmbeddedAppElement.entryPath} to set or get this via a property\n"},{"name":"api-key","description":"The API Key to connect this app with a specific Unblu account\nThis is the minimum configuration that has to be done to trigger the initialization of Unblu.\n\n**Note**: Changes to this attribute trigger a reinitialization of Unblu if {@link UnbluEmbeddedAppElement.ATTR_AUTO_INIT} is true.\n\n@see {@link UnbluEmbeddedAppElement.apiKey} to set or get this via a property\n"},{"name":"locale","description":"The locale (language) used for all Unblu UIs.\nIf not specified this is derived from the webpage or the browser.\n\n**Note**: Changes to this attribute trigger a reinitialization of Unblu if {@link UnbluEmbeddedAppElement.ATTR_AUTO_INIT} is true.\n\n@see [https://www.unblu.com/en/docs/4.3/articles/installation-and-operation/selecting-the-language.html | Setting the Language / Locale] for more information on the detection.\n@see {@link UnbluEmbeddedAppElement.locale} to set or get this via a property\n"},{"name":"named-area","description":"The named area for which the configuration should be loaded and with which new queue requests will be labeled.\nIf not specified this can be derived from the corresponding meta tag on the webpage or the domain.\n\n**Note**: Changes to this attribute trigger a reinitialization of Unblu if {@link UnbluEmbeddedAppElement.ATTR_AUTO_INIT} is true.\nIf this is not desired it can be prevented by changing the named area via a meta tag, however in this case this will only effect the queue routing and not the configuration.\nAlternatively you can disable the automatic initialization.\n\n@see {@link https://www.unblu.com/en/docs/latest/knowledge-base/named-areas.html | Named Area} for further details.\n@see {@link UnbluEmbeddedAppElement.namedArea} to set or get this via a property\n"},{"name":"access-token","description":"The access token used to log the user in before initializing Unblu.\n\n**Note**: Changes to this attribute trigger a reinitialization of Unblu if {@link UnbluEmbeddedAppElement.ATTR_AUTO_INIT} is true.\n\n@see {@link UnbluEmbeddedAppElement.accessToken} to set or get this via a property\n"},{"name":"conversation-id","description":"Opens the conversation with the specified ID.\nIf Unblu is not initialized yet, it will wait for the initialization and then automatically open the specified conversation.\nIf Unblu is already initialized, the conversation will be opened directly.\n\nIf the conversation doesn't exist or the user doesn't have the right to access it, a dialog will be displayed with the respective error message.\n\n@see {@link UnbluEmbeddedApi.openConversation} to set this value and also retrieve a promise to know when the conversation was opened.\n@see {@link UnbluEmbeddedAppElement.conversationId} to read the value as property. This will always represent the currently opened conversation.\n"},{"name":"view-mode","description":"Sets the view mode of the embedded app element.\n\nDepending on the view mode the UI is displayed the following way:\n- {@link ViewMode.SPLIT}: The UI will be divided into two parts.\nThe list of conversations is displayed on the left and the active conversation on the right side.\n\n- {@link ViewMode.SINGLE}: Both the conversation list and the active conversation will be displayed in the same view using UI navigation to switch between them.\n\n- {@link ViewMode.AUTO}: The UI will automatically switch back and forth between the two other modes depending on the available width.\nThe trigger point when to switch between the two modes can be configured on the Unblu collaboration server.\n\nThis value can be set even if the API is not initialized yet.\nThe value will then be applied on initialization.\n\n@see {@link UnbluEmbeddedAppElement.viewMode} to set or get this via a property\n@default {@link ViewMode.AUTO}\n"},{"name":"fullscreen","description":"When this attribute is set to true, the embedded app will ignore the position and size set to its element and will used fixed positioning to display itself to cover the whole website.\n\nThis is useful when the user is currently in a call.\n\nThis can be set even if the API is not initialized yet.\nThe value will then be applied on initialization.\n\n**Note**: The user itself can also toggle this inside the UI.\n\n@see {@link UnbluEmbeddedAppElement.fullscreen} to set or get this via a property\n@default false\n"},{"name":"init-timeout","description":"The timeout im milliseconds that should be waited for the Unblu integration to load.\n\n@default 30'000 (30 seconds).\n\n@see {@link UnbluEmbeddedAppElement.initTimeout} to set or get this via a property\n"},{"name":"auto-init","description":"Defines if Unblu automatically tries to (re-)initialize as soon as an attribute or property changes that triggers (re-)initialization.\n\nTo trigger a initialization at least the attribute {@link ATTR_API_KEY} or property {@link UnbluEmbeddedAppElement.apiKey}.\n\n@default true.\n\n@see {@link UnbluEmbeddedAppElement.autoInit} to set or get this via a property\n"}],"js":{"events":[{"name":"stateChange","description":"Event emitted whenever the API state changes\n\n@see {@link StateChangeEvent} for the event type\n@see {@link UnbluEmbeddedAppElement.addEventListener} for listener registration\n@see {@link UnbluEmbeddedAppElement.removeEventListener} to remove a listener\n"},{"name":"stateChange","description":"Event emitted whenever the connection state changes\n\n@see {@link ConnectionStateChangeEvent} for the event type\n@see {@link UnbluEmbeddedAppElement.addEventListener} for listener registration\n@see {@link UnbluEmbeddedAppElement.removeEventListener} to remove a listener\n"},{"name":"ready","description":"Event emitted as soon as the API is initialized.\n\nIt usually makes sense to use this event to wait for APIs to be ready. E.g. the {@link UnbluEmbeddedApi.getPersonInfo} or {@link UnbluEmbeddedApi.isAgentAvailable}.\n\n@see {@link ReadyEvent} for the event type\n@see {@link UnbluEmbeddedAppElement.addEventListener} for listener registration\n@see {@link UnbluEmbeddedAppElement.removeEventListener} to remove a listener\n"},{"name":"error","description":"Event emitted if the API initialization fails.\n\nIt usually makes sense to use this event if there is some general action that has to be triggered when the API initialization fails.\n\n@see {@link ErrorEvent} for the event type\n@see {@link UnbluEmbeddedAppElement.addEventListener} for listener registration\n@see {@link UnbluEmbeddedAppElement.removeEventListener} to remove a listener\n"},{"name":"deinitializing","description":"Event emitted when the de-initialization of the API is started..\n\nIt usually makes sense to use this event to clean up resources and/or unregistering of listeners so they don't try to use the API again until it is initialized again.\n\n@see {@link DeinitializationStartedEvent} for the event type\n@see {@link UnbluEmbeddedAppElement.addEventListener} for listener registration\n@see {@link UnbluEmbeddedAppElement.removeEventListener} to remove a listener\n@see {@link UnbluEmbeddedApi.DEINITIALIZING} for the event on the initialized {@link UnbluEmbeddedApi} instance\n"},{"name":"deinitialized","description":"Event emitted when the de-initialization of the API has finished.\n\nIt usually makes sense to use this event if a re-initialization is required after de-init.\n\n@see {@link DeinitializationFinishedEvent} for the event type\n@see {@link UnbluEmbeddedAppElement.addEventListener} for listener registration\n@see {@link UnbluEmbeddedAppElement.removeEventListener} to remove a listener\n@see {@link UnbluEmbeddedApi.DEINITIALIZED} for the event on the initialized {@link UnbluEmbeddedApi} instance\n"},{"name":"activeConversationChange","description":"Event emitted every time one of the conversations accessible to the current user changes or one is added or removed.\n\n@see {@link ActiveConversationChangeEvent} for the event type\n@see {@link UnbluEmbeddedAppElement.addEventListener} for listener registration\n@see {@link UnbluEmbeddedAppElement.removeEventListener} to remove a listener\n@see {@link UnbluEmbeddedApi.ACTIVE_CONVERSATION_CHANGE} for the event on the initialized {@link UnbluEmbeddedApi} instance\n"},{"name":"fullscreenChange","description":"Event emitted every time the embedded app switches to fullscreen mode or back.\n\n@see {@link UnbluEmbeddedAppElement.FULLSCREEN_CHANGE}\n@see {@link UnbluEmbeddedAppElement.addEventListener}\n@see {@link UnbluEmbeddedAppElement.removeEventListener}\n@see {@link UnbluEmbeddedApi.FULLSCREEN_CHANGE} for the event on the initialized {@link UnbluEmbeddedApi} instance\n"},{"name":"viewModeChange","description":"Event emitted every time the view mode changes.\n\n@see {@link UnbluEmbeddedAppElement.VIEW_MODE_CHANGE}\n@see {@link UnbluEmbeddedAppElement.addEventListener}\n@see {@link UnbluEmbeddedAppElement.removeEventListener}\n@see {@link UnbluEmbeddedApi.VIEW_MODE_CHANGE} for the event on the initialized {@link UnbluEmbeddedApi} instance\n"}]}}]}}}
|
|
1
|
+
{"$schema":"https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json","name":"@unblu/embedded-app-component","version":"8.28.4","js-types-syntax":"typescript","description-markup":"markdown","contributions":{"html":{"elements":[{"name":"unblu-embedded-app","description":"Unblu Embedded App Component allows to integrate Unblu into a website using a web component","attributes":[{"name":"server-url","description":"The URL to the collaboration server.\n\nIf not specified it is assumed that the server is reachable on the domain of the current webpage at the defined {@link UnbluEmbeddedAppElement.entryPath}\n\n**Note**: Changes to this attribute trigger a reinitialization of Unblu if {@link UnbluEmbeddedAppElement.ATTR_AUTO_INIT} is true.\n\n@see {@link UnbluEmbeddedAppElement.serverUrl} to set or get this via a property\n"},{"name":"entry-path","description":"The path pointing to the root of the Unblu collaboration server.\n\n@default \"/unblu\".\n\n**Note**: Changes to this attribute trigger a reinitialization of Unblu if {@link UnbluEmbeddedAppElement.ATTR_AUTO_INIT} is true.\n\n@see {@link UnbluEmbeddedAppElement.entryPath} to set or get this via a property\n"},{"name":"api-key","description":"The API Key to connect this app with a specific Unblu account\nThis is the minimum configuration that has to be done to trigger the initialization of Unblu.\n\n**Note**: Changes to this attribute trigger a reinitialization of Unblu if {@link UnbluEmbeddedAppElement.ATTR_AUTO_INIT} is true.\n\n@see {@link UnbluEmbeddedAppElement.apiKey} to set or get this via a property\n"},{"name":"locale","description":"The locale (language) used for all Unblu UIs.\nIf not specified this is derived from the webpage or the browser.\n\n**Note**: Changes to this attribute trigger a reinitialization of Unblu if {@link UnbluEmbeddedAppElement.ATTR_AUTO_INIT} is true.\n\n@see [https://www.unblu.com/en/docs/4.3/articles/installation-and-operation/selecting-the-language.html | Setting the Language / Locale] for more information on the detection.\n@see {@link UnbluEmbeddedAppElement.locale} to set or get this via a property\n"},{"name":"named-area","description":"The named area for which the configuration should be loaded and with which new queue requests will be labeled.\nIf not specified this can be derived from the corresponding meta tag on the webpage or the domain.\n\n**Note**: Changes to this attribute trigger a reinitialization of Unblu if {@link UnbluEmbeddedAppElement.ATTR_AUTO_INIT} is true.\nIf this is not desired it can be prevented by changing the named area via a meta tag, however in this case this will only effect the queue routing and not the configuration.\nAlternatively you can disable the automatic initialization.\n\n@see {@link https://www.unblu.com/en/docs/latest/knowledge-base/named-areas.html | Named Area} for further details.\n@see {@link UnbluEmbeddedAppElement.namedArea} to set or get this via a property\n"},{"name":"access-token","description":"The access token used to log the user in before initializing Unblu.\n\n**Note**: Changes to this attribute trigger a reinitialization of Unblu if {@link UnbluEmbeddedAppElement.ATTR_AUTO_INIT} is true.\n\n@see {@link UnbluEmbeddedAppElement.accessToken} to set or get this via a property\n"},{"name":"conversation-id","description":"Opens the conversation with the specified ID.\nIf Unblu is not initialized yet, it will wait for the initialization and then automatically open the specified conversation.\nIf Unblu is already initialized, the conversation will be opened directly.\n\nIf the conversation doesn't exist or the user doesn't have the right to access it, a dialog will be displayed with the respective error message.\n\n@see {@link UnbluEmbeddedApi.openConversation} to set this value and also retrieve a promise to know when the conversation was opened.\n@see {@link UnbluEmbeddedAppElement.conversationId} to read the value as property. This will always represent the currently opened conversation.\n"},{"name":"view-mode","description":"Sets the view mode of the embedded app element.\n\nDepending on the view mode the UI is displayed the following way:\n- {@link ViewMode.SPLIT}: The UI will be divided into two parts.\nThe list of conversations is displayed on the left and the active conversation on the right side.\n\n- {@link ViewMode.SINGLE}: Both the conversation list and the active conversation will be displayed in the same view using UI navigation to switch between them.\n\n- {@link ViewMode.AUTO}: The UI will automatically switch back and forth between the two other modes depending on the available width.\nThe trigger point when to switch between the two modes can be configured on the Unblu collaboration server.\n\nThis value can be set even if the API is not initialized yet.\nThe value will then be applied on initialization.\n\n@see {@link UnbluEmbeddedAppElement.viewMode} to set or get this via a property\n@default {@link ViewMode.AUTO}\n"},{"name":"fullscreen","description":"When this attribute is set to true, the embedded app will ignore the position and size set to its element and will used fixed positioning to display itself to cover the whole website.\n\nThis is useful when the user is currently in a call.\n\nThis can be set even if the API is not initialized yet.\nThe value will then be applied on initialization.\n\n**Note**: The user itself can also toggle this inside the UI.\n\n@see {@link UnbluEmbeddedAppElement.fullscreen} to set or get this via a property\n@default false\n"},{"name":"init-timeout","description":"The timeout im milliseconds that should be waited for the Unblu integration to load.\n\n@default 30'000 (30 seconds).\n\n@see {@link UnbluEmbeddedAppElement.initTimeout} to set or get this via a property\n"},{"name":"auto-init","description":"Defines if Unblu automatically tries to (re-)initialize as soon as an attribute or property changes that triggers (re-)initialization.\n\nTo trigger a initialization at least the attribute {@link ATTR_API_KEY} or property {@link UnbluEmbeddedAppElement.apiKey}.\n\n@default true.\n\n@see {@link UnbluEmbeddedAppElement.autoInit} to set or get this via a property\n"}],"js":{"events":[{"name":"stateChange","description":"Event emitted whenever the API state changes\n\n@see {@link StateChangeEvent} for the event type\n@see {@link UnbluEmbeddedAppElement.addEventListener} for listener registration\n@see {@link UnbluEmbeddedAppElement.removeEventListener} to remove a listener\n"},{"name":"stateChange","description":"Event emitted whenever the connection state changes\n\n@see {@link ConnectionStateChangeEvent} for the event type\n@see {@link UnbluEmbeddedAppElement.addEventListener} for listener registration\n@see {@link UnbluEmbeddedAppElement.removeEventListener} to remove a listener\n"},{"name":"ready","description":"Event emitted as soon as the API is initialized.\n\nIt usually makes sense to use this event to wait for APIs to be ready. E.g. the {@link UnbluEmbeddedApi.getPersonInfo} or {@link UnbluEmbeddedApi.isAgentAvailable}.\n\n@see {@link ReadyEvent} for the event type\n@see {@link UnbluEmbeddedAppElement.addEventListener} for listener registration\n@see {@link UnbluEmbeddedAppElement.removeEventListener} to remove a listener\n"},{"name":"error","description":"Event emitted if the API initialization fails.\n\nIt usually makes sense to use this event if there is some general action that has to be triggered when the API initialization fails.\n\n@see {@link ErrorEvent} for the event type\n@see {@link UnbluEmbeddedAppElement.addEventListener} for listener registration\n@see {@link UnbluEmbeddedAppElement.removeEventListener} to remove a listener\n"},{"name":"deinitializing","description":"Event emitted when the de-initialization of the API is started..\n\nIt usually makes sense to use this event to clean up resources and/or unregistering of listeners so they don't try to use the API again until it is initialized again.\n\n@see {@link DeinitializationStartedEvent} for the event type\n@see {@link UnbluEmbeddedAppElement.addEventListener} for listener registration\n@see {@link UnbluEmbeddedAppElement.removeEventListener} to remove a listener\n@see {@link UnbluEmbeddedApi.DEINITIALIZING} for the event on the initialized {@link UnbluEmbeddedApi} instance\n"},{"name":"deinitialized","description":"Event emitted when the de-initialization of the API has finished.\n\nIt usually makes sense to use this event if a re-initialization is required after de-init.\n\n@see {@link DeinitializationFinishedEvent} for the event type\n@see {@link UnbluEmbeddedAppElement.addEventListener} for listener registration\n@see {@link UnbluEmbeddedAppElement.removeEventListener} to remove a listener\n@see {@link UnbluEmbeddedApi.DEINITIALIZED} for the event on the initialized {@link UnbluEmbeddedApi} instance\n"},{"name":"activeConversationChange","description":"Event emitted every time one of the conversations accessible to the current user changes or one is added or removed.\n\n@see {@link ActiveConversationChangeEvent} for the event type\n@see {@link UnbluEmbeddedAppElement.addEventListener} for listener registration\n@see {@link UnbluEmbeddedAppElement.removeEventListener} to remove a listener\n@see {@link UnbluEmbeddedApi.ACTIVE_CONVERSATION_CHANGE} for the event on the initialized {@link UnbluEmbeddedApi} instance\n"},{"name":"fullscreenChange","description":"Event emitted every time the embedded app switches to fullscreen mode or back.\n\n@see {@link UnbluEmbeddedAppElement.FULLSCREEN_CHANGE}\n@see {@link UnbluEmbeddedAppElement.addEventListener}\n@see {@link UnbluEmbeddedAppElement.removeEventListener}\n@see {@link UnbluEmbeddedApi.FULLSCREEN_CHANGE} for the event on the initialized {@link UnbluEmbeddedApi} instance\n"},{"name":"viewModeChange","description":"Event emitted every time the view mode changes.\n\n@see {@link UnbluEmbeddedAppElement.VIEW_MODE_CHANGE}\n@see {@link UnbluEmbeddedAppElement.addEventListener}\n@see {@link UnbluEmbeddedAppElement.removeEventListener}\n@see {@link UnbluEmbeddedApi.VIEW_MODE_CHANGE} for the event on the initialized {@link UnbluEmbeddedApi} instance\n"}]}}]}}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unblu/embedded-app-component",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.28.4",
|
|
4
4
|
"description": "Unblu Embedded App Component allows to integrate Unblu into a website using a web component",
|
|
5
5
|
"homepage": "https://www.unblu.com/en/docs/latest/reference/unblu-embedded-js-api/",
|
|
6
6
|
"author": "Denis Trueby",
|