@carbon/ai-chat 0.1.1-alpha5 → 0.1.1-react17
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/App.js +933 -55468
- package/dist/Carousel.js +1 -5705
- package/dist/Chat.js +1 -8339
- package/dist/GenesysMessengerServiceDesk.js +1 -579
- package/dist/HumanAgentServiceImpl.js +1 -1122
- package/dist/NiceDFOServiceDesk.js +2 -2097
- package/dist/PDFViewerContainer.js +2 -27439
- package/dist/SFServiceDesk.js +1 -1012
- package/dist/ServiceDeskImpl.js +1 -72
- package/dist/ZendeskServiceDesk.js +1 -649
- package/dist/_commonjsHelpers.js +1 -33
- package/dist/_node-resolve_empty.js +1 -25
- package/dist/agentActions.js +1 -187
- package/dist/aiChatEntry.js +1 -28
- package/dist/aiChatEntry2.js +4 -7022
- package/dist/anonymousUserIDStorage.js +2 -250
- package/dist/ar-dz.js +1 -55
- package/dist/ar-kw.js +1 -55
- package/dist/ar-ly.js +1 -55
- package/dist/ar-ma.js +1 -55
- package/dist/ar-sa.js +1 -55
- package/dist/ar-tn.js +1 -55
- package/dist/ar.js +1 -55
- package/dist/ar2.js +1 -470
- package/dist/cs.js +1 -55
- package/dist/cs2.js +1 -470
- package/dist/de-at.js +1 -55
- package/dist/de-ch.js +1 -55
- package/dist/de.js +1 -55
- package/dist/de2.js +1 -470
- package/dist/domUtils.js +2 -820
- package/dist/en-au.js +1 -55
- package/dist/en-ca.js +1 -55
- package/dist/en-gb.js +1 -55
- package/dist/en-ie.js +1 -55
- package/dist/en-il.js +1 -55
- package/dist/en-nz.js +1 -55
- package/dist/es-do.js +1 -55
- package/dist/es-us.js +1 -55
- package/dist/es.js +1 -55
- package/dist/es2.js +1 -470
- package/dist/export.js +1 -25
- package/dist/export.legacy.js +1 -25
- package/dist/fontUtils.js +1 -1036
- package/dist/fr-ca.js +1 -55
- package/dist/fr-ch.js +1 -55
- package/dist/fr.js +1 -55
- package/dist/fr2.js +1 -470
- package/dist/humanAgentUtils.js +1 -1393
- package/dist/it-ch.js +1 -55
- package/dist/it.js +1 -55
- package/dist/it2.js +1 -470
- package/dist/ja.js +1 -55
- package/dist/ja2.js +1 -470
- package/dist/jstz.min.js +1 -41
- package/dist/ko.js +1 -55
- package/dist/ko2.js +1 -470
- package/dist/messageUtils.js +1 -1338
- package/dist/mockServiceDesk.js +1 -851
- package/dist/moduleFederationPluginUtils.js +2 -5852
- package/dist/nl.js +1 -55
- package/dist/nl2.js +1 -470
- package/dist/pt-br.js +1 -55
- package/dist/pt-br2.js +1 -470
- package/dist/pt.js +1 -55
- package/dist/render.js +1 -88
- package/dist/web-components/cds-aichat-container/index.js +3 -3
- package/dist/web-components/cds-aichat-container/index.js.map +1 -1
- package/dist/web-components/cds-aichat-custom-element/index.js +2 -2
- package/dist/web-components/cds-aichat-custom-element/index.js.map +1 -1
- package/dist/zh-cn.js +1 -55
- package/dist/zh-tw.js +1 -55
- package/dist/zh-tw2.js +1 -470
- package/dist/zh.js +1 -470
- package/package.json +1 -1
package/dist/ServiceDeskImpl.js
CHANGED
|
@@ -1,72 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
(C) Copyright IBM Corp. 2017, 2024. All Rights Reserved.
|
|
5
|
-
|
|
6
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
|
|
7
|
-
in compliance with the License. You may obtain a copy of the License at
|
|
8
|
-
|
|
9
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
|
|
11
|
-
Unless required by applicable law or agreed to in writing, software distributed under the License
|
|
12
|
-
is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
13
|
-
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
|
-
the License.
|
|
15
|
-
|
|
16
|
-
@carbon/ai-chat 0.1.1-alpha5
|
|
17
|
-
|
|
18
|
-
Built: Oct 24 2024 10:59 am -04:00
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
*/
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
* IBM Confidential
|
|
26
|
-
*
|
|
27
|
-
* (C) Copyright IBM Corp. 2020, 2023
|
|
28
|
-
*
|
|
29
|
-
* The source code for this program is not published or otherwise
|
|
30
|
-
* divested of its trade secrets, irrespective of what has been
|
|
31
|
-
* deposited with the U. S. Copyright Office
|
|
32
|
-
*
|
|
33
|
-
* US Government Users Restricted Rights - Use, duplication or
|
|
34
|
-
* disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
|
|
35
|
-
*
|
|
36
|
-
*/
|
|
37
|
-
class ServiceDeskImpl {
|
|
38
|
-
constructor(callback, config, serviceManager) {
|
|
39
|
-
this.callback = callback;
|
|
40
|
-
this.serviceManager = serviceManager;
|
|
41
|
-
this.config = config;
|
|
42
|
-
this.eventBus = serviceManager?.eventBus;
|
|
43
|
-
this.instance = serviceManager?.instance;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Returns the language translation text for the given key.
|
|
47
|
-
*/
|
|
48
|
-
getIntlText(key) {
|
|
49
|
-
return this.serviceManager.intl.formatMessage({ id: key });
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Informs the service desk of a change in the state of the web chat that is relevant to the service desks. These
|
|
53
|
-
* values may change at any time.
|
|
54
|
-
*/
|
|
55
|
-
updateState(state) {
|
|
56
|
-
this.state = state;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Returns the persisted service desk state object.
|
|
60
|
-
*/
|
|
61
|
-
persistedState() {
|
|
62
|
-
return this.callback.persistedState();
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Sets the persisted state to the given object.
|
|
66
|
-
*/
|
|
67
|
-
updatePersistedState(state, mergeWithCurrent = true) {
|
|
68
|
-
this.callback.updatePersistedState(state, mergeWithCurrent);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export { ServiceDeskImpl as S };
|
|
1
|
+
class t{constructor(t,e,s){this.callback=t,this.serviceManager=s,this.config=e,this.eventBus=s?.eventBus,this.instance=s?.instance}getIntlText(t){return this.serviceManager.intl.formatMessage({id:t})}updateState(t){this.state=t}persistedState(){return this.callback.persistedState()}updatePersistedState(t,e=!0){this.callback.updatePersistedState(t,e)}}export{t as S};
|