@carbon/ai-chat 0.1.6 → 0.1.7-alpha0
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/cjs/{cds-aichat-internal.js → AppContainer.js} +615 -7203
- package/dist/cjs/Carousel.js +24 -16
- package/dist/cjs/Chat.js +813 -805
- package/dist/cjs/GenesysMessengerServiceDesk.js +60 -52
- package/dist/cjs/HumanAgentServiceImpl.js +103 -95
- package/dist/cjs/NiceDFOServiceDesk.js +56 -48
- package/dist/cjs/PDFViewerContainer.js +58 -149
- package/dist/cjs/ReactPlayer.js +2 -2
- package/dist/cjs/SFServiceDesk.js +66 -58
- package/dist/cjs/ServiceDeskImpl.js +2 -2
- package/dist/cjs/Table.js +457 -341
- package/dist/cjs/ZendeskServiceDesk.js +36 -28
- package/dist/cjs/_node-resolve_empty.js +2 -2
- package/dist/cjs/agentActions.js +5 -5
- package/dist/cjs/aiChatEntry.js +163 -144
- package/dist/cjs/anonymousUserIDStorage.js +8 -8
- package/dist/cjs/ar-dz.js +4 -4
- package/dist/cjs/ar-kw.js +4 -4
- package/dist/cjs/ar-ly.js +4 -4
- package/dist/cjs/ar-ma.js +4 -4
- package/dist/cjs/ar-sa.js +4 -4
- package/dist/cjs/ar-tn.js +4 -4
- package/dist/cjs/ar.js +4 -4
- package/dist/cjs/ar2.js +2 -2
- package/dist/cjs/cds-aichat-container.js +111 -23
- package/dist/cjs/cds-aichat-custom-element.js +42 -30
- package/dist/cjs/cs.js +4 -4
- package/dist/cjs/cs2.js +2 -2
- package/dist/cjs/de-at.js +4 -4
- package/dist/cjs/de-ch.js +4 -4
- package/dist/cjs/de.js +4 -4
- package/dist/cjs/de2.js +2 -2
- package/dist/cjs/en-au.js +4 -4
- package/dist/cjs/en-ca.js +4 -4
- package/dist/cjs/en-gb.js +4 -4
- package/dist/cjs/en-ie.js +4 -4
- package/dist/cjs/en-il.js +4 -4
- package/dist/cjs/en-nz.js +4 -4
- package/dist/cjs/es-do.js +4 -4
- package/dist/cjs/es-us.js +4 -4
- package/dist/cjs/es.js +4 -4
- package/dist/cjs/es2.js +2 -2
- package/dist/cjs/export.js +3 -3
- package/dist/cjs/export.legacy.js +3 -3
- package/dist/cjs/fontUtils.js +2 -2
- package/dist/cjs/fr-ca.js +4 -4
- package/dist/cjs/fr-ch.js +4 -4
- package/dist/cjs/fr.js +4 -4
- package/dist/cjs/fr2.js +2 -2
- package/dist/cjs/highlight_js.js +2 -2
- package/dist/cjs/it-ch.js +4 -4
- package/dist/cjs/it.js +4 -4
- package/dist/cjs/it2.js +2 -2
- package/dist/cjs/ja.js +4 -4
- package/dist/cjs/ja2.js +2 -2
- package/dist/cjs/ko.js +4 -4
- package/dist/cjs/ko2.js +2 -2
- package/dist/cjs/markdown.js +2362 -14
- package/dist/cjs/mockServiceDesk.js +42 -34
- package/dist/cjs/nl.js +4 -4
- package/dist/cjs/nl2.js +2 -2
- package/dist/cjs/pt-br.js +4 -4
- package/dist/cjs/pt-br2.js +2 -2
- package/dist/cjs/pt.js +4 -4
- package/dist/cjs/render.js +18 -10
- package/dist/cjs/zh-cn.js +4 -4
- package/dist/cjs/zh-tw.js +4 -4
- package/dist/cjs/zh-tw2.js +2 -2
- package/dist/cjs/zh.js +2 -2
- package/dist/es/{cds-aichat-internal.js → AppContainer.js} +1117 -7671
- package/dist/es/Carousel.js +16 -8
- package/dist/es/Chat.js +16 -8
- package/dist/es/GenesysMessengerServiceDesk.js +16 -8
- package/dist/es/HumanAgentServiceImpl.js +16 -8
- package/dist/es/NiceDFOServiceDesk.js +16 -8
- package/dist/es/PDFViewerContainer.js +16 -107
- package/dist/es/ReactPlayer.js +2 -2
- package/dist/es/SFServiceDesk.js +16 -8
- package/dist/es/ServiceDeskImpl.js +2 -2
- package/dist/es/Table.js +426 -310
- package/dist/es/ZendeskServiceDesk.js +16 -8
- package/dist/es/_node-resolve_empty.js +2 -2
- package/dist/es/agentActions.js +3 -3
- package/dist/es/aiChatEntry.js +136 -117
- package/dist/es/anonymousUserIDStorage.js +3 -3
- package/dist/es/ar-dz.js +3 -3
- package/dist/es/ar-kw.js +3 -3
- package/dist/es/ar-ly.js +3 -3
- package/dist/es/ar-ma.js +3 -3
- package/dist/es/ar-sa.js +3 -3
- package/dist/es/ar-tn.js +3 -3
- package/dist/es/ar.js +3 -3
- package/dist/es/ar2.js +2 -2
- package/dist/es/cds-aichat-container.js +103 -15
- package/dist/es/cds-aichat-custom-element.js +30 -18
- package/dist/es/cs.js +3 -3
- package/dist/es/cs2.js +2 -2
- package/dist/es/de-at.js +3 -3
- package/dist/es/de-ch.js +3 -3
- package/dist/es/de.js +3 -3
- package/dist/es/de2.js +2 -2
- package/dist/es/en-au.js +3 -3
- package/dist/es/en-ca.js +3 -3
- package/dist/es/en-gb.js +3 -3
- package/dist/es/en-ie.js +3 -3
- package/dist/es/en-il.js +3 -3
- package/dist/es/en-nz.js +3 -3
- package/dist/es/es-do.js +3 -3
- package/dist/es/es-us.js +3 -3
- package/dist/es/es.js +3 -3
- package/dist/es/es2.js +2 -2
- package/dist/es/export.js +3 -3
- package/dist/es/export.legacy.js +3 -3
- package/dist/es/fontUtils.js +2 -2
- package/dist/es/fr-ca.js +3 -3
- package/dist/es/fr-ch.js +3 -3
- package/dist/es/fr.js +3 -3
- package/dist/es/fr2.js +2 -2
- package/dist/es/highlight_js.js +2 -2
- package/dist/es/it-ch.js +3 -3
- package/dist/es/it.js +3 -3
- package/dist/es/it2.js +2 -2
- package/dist/es/ja.js +3 -3
- package/dist/es/ja2.js +2 -2
- package/dist/es/ko.js +3 -3
- package/dist/es/ko2.js +2 -2
- package/dist/es/markdown.js +2361 -15
- package/dist/es/mockServiceDesk.js +16 -8
- package/dist/es/nl.js +3 -3
- package/dist/es/nl2.js +2 -2
- package/dist/es/pt-br.js +3 -3
- package/dist/es/pt-br2.js +2 -2
- package/dist/es/pt.js +3 -3
- package/dist/es/render.js +17 -9
- package/dist/es/zh-cn.js +3 -3
- package/dist/es/zh-tw.js +3 -3
- package/dist/es/zh-tw2.js +2 -2
- package/dist/es/zh.js +2 -2
- package/dist/types/aiChatEntry.d.ts +69 -9
- package/package.json +27 -14
- package/dist/cjs/jstz.min.js +0 -43
- package/dist/cjs/markdown_attrs.js +0 -805
- package/dist/es/jstz.min.js +0 -41
- package/dist/es/markdown_attrs.js +0 -803
|
@@ -13,37 +13,45 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.7-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Feb
|
|
18
|
+
Built: Feb 12 2025 9:14 am -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
*/
|
|
23
23
|
'use strict';
|
|
24
24
|
|
|
25
|
-
var
|
|
26
|
-
require('lit');
|
|
27
|
-
require('lit/decorators.js');
|
|
25
|
+
var AppContainer = require('./AppContainer.js');
|
|
28
26
|
require('react');
|
|
29
|
-
require('react-dom');
|
|
30
27
|
require('./highlight_js.js');
|
|
31
28
|
require('@carbon/react');
|
|
29
|
+
require('classnames');
|
|
32
30
|
require('react-intl');
|
|
33
31
|
require('react-redux');
|
|
32
|
+
require('tabbable');
|
|
33
|
+
require('@carbon/icons-react');
|
|
34
34
|
require('./markdown.js');
|
|
35
|
-
require('
|
|
35
|
+
require('tslib');
|
|
36
|
+
require('lit');
|
|
37
|
+
require('lit/decorators.js');
|
|
36
38
|
require('@carbon/web-components/es/components/button/index.js');
|
|
37
39
|
require('@carbon/web-components/es/components/overflow-menu/index.js');
|
|
38
40
|
require('lit/directives/unsafe-html.js');
|
|
41
|
+
require('prop-types');
|
|
39
42
|
require('@carbon/web-components/es/components/slug/index.js');
|
|
40
43
|
require('@carbon/web-components/es/components/popover/defs.js');
|
|
41
44
|
require('@carbon/web-components/es/components/slug/defs.js');
|
|
45
|
+
require('@floating-ui/react');
|
|
46
|
+
require('react-dom');
|
|
42
47
|
require('@carbon/web-components/es/components/slug/slug-action-button.js');
|
|
43
48
|
require('@carbon/web-components/es/components/slug/slug.js');
|
|
49
|
+
require('@carbon/web-components/es/components/inline-loading/index.js');
|
|
50
|
+
require('@carbon/icon-helpers');
|
|
51
|
+
require('@carbon/icons');
|
|
52
|
+
require('lit/directives/unsafe-svg.js');
|
|
44
53
|
require('@carbon/web-components/es/components/textarea/index.js');
|
|
45
54
|
require('@carbon/web-components/es/components/icon-button/index.js');
|
|
46
|
-
require('lit/directives/unsafe-svg.js');
|
|
47
55
|
require('@carbon/web-components/es/components/tag/index.js');
|
|
48
56
|
require('@carbon/web-components/es/components/chat-button/index.js');
|
|
49
57
|
require('@carbon/web-components/es/components/button/button.js');
|
|
@@ -197,7 +205,7 @@ class MockServiceDesk {
|
|
|
197
205
|
}
|
|
198
206
|
if (surveyResponse) {
|
|
199
207
|
const text = `Thank you for responding to our survey. ${surveyResponse}`;
|
|
200
|
-
this.sendMessageToUser(
|
|
208
|
+
this.sendMessageToUser(AppContainer.createMessageResponseForText(text), this.mockState.currentAgent.id);
|
|
201
209
|
}
|
|
202
210
|
return Promise.resolve();
|
|
203
211
|
}
|
|
@@ -324,7 +332,7 @@ class MockServiceDesk {
|
|
|
324
332
|
}
|
|
325
333
|
async areAnyAgentsOnline() {
|
|
326
334
|
if (this.mockState.agentAvailabilityDelay) {
|
|
327
|
-
await
|
|
335
|
+
await AppContainer.sleep(this.mockState.agentAvailabilityDelay * 1000);
|
|
328
336
|
}
|
|
329
337
|
return this.mockState.agentAvailability;
|
|
330
338
|
}
|
|
@@ -332,7 +340,7 @@ class MockServiceDesk {
|
|
|
332
340
|
this.callback.sendMessageToUser('Alright, you have stopped sharing your screen.', this.mockState.currentAgent.id);
|
|
333
341
|
}
|
|
334
342
|
async reconnect() {
|
|
335
|
-
await
|
|
343
|
+
await AppContainer.sleep(2000);
|
|
336
344
|
this.hasStarted = true;
|
|
337
345
|
return true;
|
|
338
346
|
}
|
|
@@ -398,7 +406,7 @@ function START_CHAT_CONNECT_ERROR(mockState) {
|
|
|
398
406
|
callback: (instance) => {
|
|
399
407
|
mockState.currentAgent = MOCK_AGENT_PROFILE_SHEPARD;
|
|
400
408
|
instance.callback.setErrorStatus({
|
|
401
|
-
type:
|
|
409
|
+
type: AppContainer.ErrorType.CONNECTING,
|
|
402
410
|
logInfo: 'Error!',
|
|
403
411
|
messageToUser: 'Apparently all our agents are taking naps',
|
|
404
412
|
});
|
|
@@ -653,8 +661,8 @@ function MESSAGE_IMAGE() {
|
|
|
653
661
|
id: null,
|
|
654
662
|
output: {
|
|
655
663
|
generic: [
|
|
656
|
-
|
|
657
|
-
response_type:
|
|
664
|
+
AppContainer.assertType({
|
|
665
|
+
response_type: AppContainer.MessageResponseTypes.IMAGE,
|
|
658
666
|
source: 'https://web-chat.global.assistant.test.watson.appdomain.cloud/assets/cat-1950632_1280.jpg',
|
|
659
667
|
title: 'Grump cat',
|
|
660
668
|
}),
|
|
@@ -675,18 +683,18 @@ function MESSAGE_FILES() {
|
|
|
675
683
|
id: null,
|
|
676
684
|
output: {
|
|
677
685
|
generic: [
|
|
678
|
-
|
|
679
|
-
response_type:
|
|
680
|
-
kind:
|
|
681
|
-
button_type:
|
|
686
|
+
AppContainer.assertType({
|
|
687
|
+
response_type: AppContainer.MessageResponseTypes.BUTTON,
|
|
688
|
+
kind: AppContainer.ButtonItemKind.LINK,
|
|
689
|
+
button_type: AppContainer.ButtonItemType.URL,
|
|
682
690
|
url: 'https://web-chat.global.assistant.test.watson.appdomain.cloud/assets/cat-1950632_1280.jpg',
|
|
683
691
|
label: 'Grump Cat.png',
|
|
684
692
|
target: '_blank',
|
|
685
693
|
}),
|
|
686
|
-
|
|
687
|
-
response_type:
|
|
688
|
-
kind:
|
|
689
|
-
button_type:
|
|
694
|
+
AppContainer.assertType({
|
|
695
|
+
response_type: AppContainer.MessageResponseTypes.BUTTON,
|
|
696
|
+
kind: AppContainer.ButtonItemKind.LINK,
|
|
697
|
+
button_type: AppContainer.ButtonItemType.URL,
|
|
690
698
|
url: 'https://web-chat.global.assistant.test.watson.appdomain.cloud/assets/maine-coon-694730_1280.jpg',
|
|
691
699
|
target: '_blank',
|
|
692
700
|
}),
|
|
@@ -707,8 +715,8 @@ function MESSAGE_VIDEO() {
|
|
|
707
715
|
id: null,
|
|
708
716
|
output: {
|
|
709
717
|
generic: [
|
|
710
|
-
|
|
711
|
-
response_type:
|
|
718
|
+
AppContainer.assertType({
|
|
719
|
+
response_type: AppContainer.MessageResponseTypes.VIDEO,
|
|
712
720
|
title: 'The video title',
|
|
713
721
|
source: 'https://web-chat.global.assistant.test.watson.appdomain.cloud/assets/lake%20(720p).mp4',
|
|
714
722
|
alt_text: 'The video alternate text',
|
|
@@ -732,12 +740,12 @@ function MESSAGE_CUSTOM() {
|
|
|
732
740
|
id: null,
|
|
733
741
|
output: {
|
|
734
742
|
generic: [
|
|
735
|
-
|
|
736
|
-
response_type:
|
|
743
|
+
AppContainer.assertType({
|
|
744
|
+
response_type: AppContainer.MessageResponseTypes.TEXT,
|
|
737
745
|
text: 'Below is a custom response but you may not see it if no handler has been created.',
|
|
738
746
|
}),
|
|
739
|
-
|
|
740
|
-
response_type:
|
|
747
|
+
AppContainer.assertType({
|
|
748
|
+
response_type: AppContainer.MessageResponseTypes.USER_DEFINED,
|
|
741
749
|
user_defined: { user_defined_type: 'agent_custom' },
|
|
742
750
|
}),
|
|
743
751
|
],
|
|
@@ -757,16 +765,16 @@ function MESSAGE_TO_AGENT_MULTIPLE() {
|
|
|
757
765
|
id: null,
|
|
758
766
|
output: {
|
|
759
767
|
generic: [
|
|
760
|
-
|
|
761
|
-
response_type:
|
|
768
|
+
AppContainer.assertType({
|
|
769
|
+
response_type: AppContainer.MessageResponseTypes.TEXT,
|
|
762
770
|
text: 'This is a text item in this response.',
|
|
763
771
|
}),
|
|
764
|
-
|
|
765
|
-
response_type:
|
|
772
|
+
AppContainer.assertType({
|
|
773
|
+
response_type: AppContainer.MessageResponseTypes.TEXT,
|
|
766
774
|
text: 'This is a second text item.',
|
|
767
775
|
}),
|
|
768
|
-
|
|
769
|
-
response_type:
|
|
776
|
+
AppContainer.assertType({
|
|
777
|
+
response_type: AppContainer.MessageResponseTypes.IMAGE,
|
|
770
778
|
source: 'https://web-chat.global.assistant.test.watson.appdomain.cloud/assets/cat-1950632_1280.jpg',
|
|
771
779
|
}),
|
|
772
780
|
],
|
package/dist/cjs/nl.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.7-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Feb
|
|
18
|
+
Built: Feb 12 2025 9:14 am -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -23,7 +23,7 @@ Built: Feb 3 2025 9:58 am -05:00
|
|
|
23
23
|
'use strict';
|
|
24
24
|
|
|
25
25
|
var highlight_js = require('./highlight_js.js');
|
|
26
|
-
var
|
|
26
|
+
var AppContainer = require('./AppContainer.js');
|
|
27
27
|
|
|
28
28
|
function _mergeNamespaces(n, m) {
|
|
29
29
|
m.forEach(function (e) {
|
|
@@ -43,7 +43,7 @@ function _mergeNamespaces(n, m) {
|
|
|
43
43
|
var nl$2 = {exports: {}};
|
|
44
44
|
|
|
45
45
|
(function (module, exports) {
|
|
46
|
-
!function(e,a){module.exports=a(
|
|
46
|
+
!function(e,a){module.exports=a(AppContainer.dayjs_minExports);}(highlight_js.commonjsGlobal,(function(e){function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=a(e),n={name:"nl",weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),ordinal:function(e){return "["+e+(1===e||8===e||e>=20?"ste":"de")+"]"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"een minuut",mm:"%d minuten",h:"een uur",hh:"%d uur",d:"een dag",dd:"%d dagen",M:"een maand",MM:"%d maanden",y:"een jaar",yy:"%d jaar"}};return d.default.locale(n,null,!0),n}));
|
|
47
47
|
} (nl$2));
|
|
48
48
|
|
|
49
49
|
var nlExports = nl$2.exports;
|
package/dist/cjs/nl2.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.7-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Feb
|
|
18
|
+
Built: Feb 12 2025 9:14 am -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
package/dist/cjs/pt-br.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.7-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Feb
|
|
18
|
+
Built: Feb 12 2025 9:14 am -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -23,7 +23,7 @@ Built: Feb 3 2025 9:58 am -05:00
|
|
|
23
23
|
'use strict';
|
|
24
24
|
|
|
25
25
|
var highlight_js = require('./highlight_js.js');
|
|
26
|
-
var
|
|
26
|
+
var AppContainer = require('./AppContainer.js');
|
|
27
27
|
|
|
28
28
|
function _mergeNamespaces(n, m) {
|
|
29
29
|
m.forEach(function (e) {
|
|
@@ -43,7 +43,7 @@ function _mergeNamespaces(n, m) {
|
|
|
43
43
|
var ptBr$2 = {exports: {}};
|
|
44
44
|
|
|
45
45
|
(function (module, exports) {
|
|
46
|
-
!function(e,o){module.exports=o(
|
|
46
|
+
!function(e,o){module.exports=o(AppContainer.dayjs_minExports);}(highlight_js.commonjsGlobal,(function(e){function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=o(e),s={name:"pt-br",weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),ordinal:function(e){return e+"º"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"}};return a.default.locale(s,null,!0),s}));
|
|
47
47
|
} (ptBr$2));
|
|
48
48
|
|
|
49
49
|
var ptBrExports = ptBr$2.exports;
|
package/dist/cjs/pt-br2.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.7-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Feb
|
|
18
|
+
Built: Feb 12 2025 9:14 am -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
package/dist/cjs/pt.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.7-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Feb
|
|
18
|
+
Built: Feb 12 2025 9:14 am -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -23,7 +23,7 @@ Built: Feb 3 2025 9:58 am -05:00
|
|
|
23
23
|
'use strict';
|
|
24
24
|
|
|
25
25
|
var highlight_js = require('./highlight_js.js');
|
|
26
|
-
var
|
|
26
|
+
var AppContainer = require('./AppContainer.js');
|
|
27
27
|
|
|
28
28
|
function _mergeNamespaces(n, m) {
|
|
29
29
|
m.forEach(function (e) {
|
|
@@ -43,7 +43,7 @@ function _mergeNamespaces(n, m) {
|
|
|
43
43
|
var pt$2 = {exports: {}};
|
|
44
44
|
|
|
45
45
|
(function (module, exports) {
|
|
46
|
-
!function(e,a){module.exports=a(
|
|
46
|
+
!function(e,a){module.exports=a(AppContainer.dayjs_minExports);}(highlight_js.commonjsGlobal,(function(e){function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=a(e),t={name:"pt",weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sab".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sa".split("_"),months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),ordinal:function(e){return e+"º"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},relativeTime:{future:"em %s",past:"há %s",s:"alguns segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"}};return o.default.locale(t,null,!0),t}));
|
|
47
47
|
} (pt$2));
|
|
48
48
|
|
|
49
49
|
var ptExports = pt$2.exports;
|
package/dist/cjs/render.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.7-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Feb
|
|
18
|
+
Built: Feb 12 2025 9:14 am -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -24,26 +24,34 @@ Built: Feb 3 2025 9:58 am -05:00
|
|
|
24
24
|
|
|
25
25
|
var React = require('react');
|
|
26
26
|
var ReactDOM = require('react-dom');
|
|
27
|
-
var
|
|
28
|
-
require('lit');
|
|
29
|
-
require('lit/decorators.js');
|
|
27
|
+
var AppContainer = require('./AppContainer.js');
|
|
30
28
|
require('./highlight_js.js');
|
|
31
29
|
require('@carbon/react');
|
|
30
|
+
require('classnames');
|
|
32
31
|
require('react-intl');
|
|
33
32
|
require('react-redux');
|
|
33
|
+
require('tabbable');
|
|
34
|
+
require('@carbon/icons-react');
|
|
34
35
|
require('./markdown.js');
|
|
35
|
-
require('
|
|
36
|
+
require('tslib');
|
|
37
|
+
require('lit');
|
|
38
|
+
require('lit/decorators.js');
|
|
36
39
|
require('@carbon/web-components/es/components/button/index.js');
|
|
37
40
|
require('@carbon/web-components/es/components/overflow-menu/index.js');
|
|
38
41
|
require('lit/directives/unsafe-html.js');
|
|
42
|
+
require('prop-types');
|
|
39
43
|
require('@carbon/web-components/es/components/slug/index.js');
|
|
40
44
|
require('@carbon/web-components/es/components/popover/defs.js');
|
|
41
45
|
require('@carbon/web-components/es/components/slug/defs.js');
|
|
46
|
+
require('@floating-ui/react');
|
|
42
47
|
require('@carbon/web-components/es/components/slug/slug-action-button.js');
|
|
43
48
|
require('@carbon/web-components/es/components/slug/slug.js');
|
|
49
|
+
require('@carbon/web-components/es/components/inline-loading/index.js');
|
|
50
|
+
require('@carbon/icon-helpers');
|
|
51
|
+
require('@carbon/icons');
|
|
52
|
+
require('lit/directives/unsafe-svg.js');
|
|
44
53
|
require('@carbon/web-components/es/components/textarea/index.js');
|
|
45
54
|
require('@carbon/web-components/es/components/icon-button/index.js');
|
|
46
|
-
require('lit/directives/unsafe-svg.js');
|
|
47
55
|
require('@carbon/web-components/es/components/tag/index.js');
|
|
48
56
|
require('@carbon/web-components/es/components/chat-button/index.js');
|
|
49
57
|
require('@carbon/web-components/es/components/button/button.js');
|
|
@@ -67,8 +75,8 @@ require('@carbon/web-components/es/components/layer/index.js');
|
|
|
67
75
|
async function render({ serviceManager }) {
|
|
68
76
|
const { config } = serviceManager.store.getState();
|
|
69
77
|
const [applicationStyles, fontStyles] = await Promise.all([
|
|
70
|
-
config.public.__ibm__?.useShadowRoot ?
|
|
71
|
-
|
|
78
|
+
config.public.__ibm__?.useShadowRoot ? AppContainer.loadStyles() : AppContainer.loadStylesWithReset(),
|
|
79
|
+
AppContainer.loadFontFace(config.public),
|
|
72
80
|
]);
|
|
73
81
|
const container = document.createElement('div');
|
|
74
82
|
serviceManager.container = container;
|
|
@@ -88,7 +96,7 @@ async function render({ serviceManager }) {
|
|
|
88
96
|
// a size that break out of the container.
|
|
89
97
|
container.setAttribute('style', 'width:0 !important;height:0 !important');
|
|
90
98
|
}
|
|
91
|
-
ReactDOM.render(React.createElement(
|
|
99
|
+
ReactDOM.render(React.createElement(AppContainer.App, { serviceManager: serviceManager, hostElement: serviceManager.customHostElement, applicationStyles: applicationStyles, fontStyles: fontStyles }), container);
|
|
92
100
|
}
|
|
93
101
|
|
|
94
102
|
exports.render = render;
|
package/dist/cjs/zh-cn.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.7-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Feb
|
|
18
|
+
Built: Feb 12 2025 9:14 am -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -23,7 +23,7 @@ Built: Feb 3 2025 9:58 am -05:00
|
|
|
23
23
|
'use strict';
|
|
24
24
|
|
|
25
25
|
var highlight_js = require('./highlight_js.js');
|
|
26
|
-
var
|
|
26
|
+
var AppContainer = require('./AppContainer.js');
|
|
27
27
|
|
|
28
28
|
function _mergeNamespaces(n, m) {
|
|
29
29
|
m.forEach(function (e) {
|
|
@@ -43,7 +43,7 @@ function _mergeNamespaces(n, m) {
|
|
|
43
43
|
var zhCn$2 = {exports: {}};
|
|
44
44
|
|
|
45
45
|
(function (module, exports) {
|
|
46
|
-
!function(e,_){module.exports=_(
|
|
46
|
+
!function(e,_){module.exports=_(AppContainer.dayjs_minExports);}(highlight_js.commonjsGlobal,(function(e){function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=_(e),d={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(e,_){return "W"===_?e+"周":e+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(e,_){var t=100*e+_;return t<600?"凌晨":t<900?"早上":t<1100?"上午":t<1300?"中午":t<1800?"下午":"晚上"}};return t.default.locale(d,null,!0),d}));
|
|
47
47
|
} (zhCn$2));
|
|
48
48
|
|
|
49
49
|
var zhCnExports = zhCn$2.exports;
|
package/dist/cjs/zh-tw.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.7-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Feb
|
|
18
|
+
Built: Feb 12 2025 9:14 am -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -23,7 +23,7 @@ Built: Feb 3 2025 9:58 am -05:00
|
|
|
23
23
|
'use strict';
|
|
24
24
|
|
|
25
25
|
var highlight_js = require('./highlight_js.js');
|
|
26
|
-
var
|
|
26
|
+
var AppContainer = require('./AppContainer.js');
|
|
27
27
|
|
|
28
28
|
function _mergeNamespaces(n, m) {
|
|
29
29
|
m.forEach(function (e) {
|
|
@@ -43,7 +43,7 @@ function _mergeNamespaces(n, m) {
|
|
|
43
43
|
var zhTw$2 = {exports: {}};
|
|
44
44
|
|
|
45
45
|
(function (module, exports) {
|
|
46
|
-
!function(_,e){module.exports=e(
|
|
46
|
+
!function(_,e){module.exports=e(AppContainer.dayjs_minExports);}(highlight_js.commonjsGlobal,(function(_){function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"zh-tw",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(_,e){return "W"===e?_+"週":_+"日"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"},meridiem:function(_,e){var t=100*_+e;return t<600?"凌晨":t<900?"早上":t<1100?"上午":t<1300?"中午":t<1800?"下午":"晚上"}};return t.default.locale(d,null,!0),d}));
|
|
47
47
|
} (zhTw$2));
|
|
48
48
|
|
|
49
49
|
var zhTwExports = zhTw$2.exports;
|
package/dist/cjs/zh-tw2.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.7-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Feb
|
|
18
|
+
Built: Feb 12 2025 9:14 am -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
package/dist/cjs/zh.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.7-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Feb
|
|
18
|
+
Built: Feb 12 2025 9:14 am -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|