@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
package/dist/cjs/ar-sa.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 arSa$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:"ar-sa",weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),ordinal:function(_){return _},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"},meridiem:function(_){return _>12?"م":"ص"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"}};return t.default.locale(d,null,!0),d}));
|
|
47
47
|
} (arSa$2));
|
|
48
48
|
|
|
49
49
|
var arSaExports = arSa$2.exports;
|
package/dist/cjs/ar-tn.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 arTn$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:"ar-tn",weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekStart:1,weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),ordinal:function(e){return e},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"},meridiem:function(e){return e>12?"م":"ص"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"}};return t.default.locale(d,null,!0),d}));
|
|
47
47
|
} (arTn$2));
|
|
48
48
|
|
|
49
49
|
var arTnExports = arTn$2.exports;
|
package/dist/cjs/ar.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 ar$2 = {exports: {}};
|
|
44
44
|
|
|
45
45
|
(function (module, exports) {
|
|
46
|
-
!function(e,t){module.exports=t(
|
|
46
|
+
!function(e,t){module.exports=t(AppContainer.dayjs_minExports);}(highlight_js.commonjsGlobal,(function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),r="يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),d={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},_={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},o={name:"ar",weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),months:r,monthsShort:r,weekStart:6,meridiem:function(e){return e>12?"م":"ص"},relativeTime:{future:"بعد %s",past:"منذ %s",s:"ثانية واحدة",m:"دقيقة واحدة",mm:"%d دقائق",h:"ساعة واحدة",hh:"%d ساعات",d:"يوم واحد",dd:"%d أيام",M:"شهر واحد",MM:"%d أشهر",y:"عام واحد",yy:"%d أعوام"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return _[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return d[e]})).replace(/,/g,"،")},ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"}};return n.default.locale(o,null,!0),o}));
|
|
47
47
|
} (ar$2));
|
|
48
48
|
|
|
49
49
|
var arExports = ar$2.exports;
|
package/dist/cjs/ar2.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
|
|
|
@@ -13,42 +13,128 @@ 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
|
|
25
|
+
var tslib = require('tslib');
|
|
26
26
|
var lit = require('lit');
|
|
27
27
|
var decorators_js = require('lit/decorators.js');
|
|
28
|
-
require('
|
|
29
|
-
require('react
|
|
28
|
+
var AppContainer = require('./AppContainer.js');
|
|
29
|
+
var React = require('react');
|
|
30
|
+
var client = require('react-dom/client');
|
|
30
31
|
require('./highlight_js.js');
|
|
31
32
|
require('@carbon/react');
|
|
33
|
+
require('classnames');
|
|
32
34
|
require('react-intl');
|
|
33
35
|
require('react-redux');
|
|
36
|
+
require('tabbable');
|
|
37
|
+
require('@carbon/icons-react');
|
|
34
38
|
require('./markdown.js');
|
|
35
|
-
require('./markdown_attrs.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');
|
|
47
|
+
require('react-dom');
|
|
42
48
|
require('@carbon/web-components/es/components/slug/slug-action-button.js');
|
|
43
49
|
require('@carbon/web-components/es/components/slug/slug.js');
|
|
50
|
+
require('@carbon/web-components/es/components/inline-loading/index.js');
|
|
51
|
+
require('@carbon/icon-helpers');
|
|
52
|
+
require('@carbon/icons');
|
|
53
|
+
require('lit/directives/unsafe-svg.js');
|
|
44
54
|
require('@carbon/web-components/es/components/textarea/index.js');
|
|
45
55
|
require('@carbon/web-components/es/components/icon-button/index.js');
|
|
46
|
-
require('lit/directives/unsafe-svg.js');
|
|
47
56
|
require('@carbon/web-components/es/components/tag/index.js');
|
|
48
57
|
require('@carbon/web-components/es/components/chat-button/index.js');
|
|
49
58
|
require('@carbon/web-components/es/components/button/button.js');
|
|
50
59
|
require('@carbon/web-components/es/components/layer/index.js');
|
|
51
60
|
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* IBM Confidential
|
|
64
|
+
*
|
|
65
|
+
* (C) Copyright IBM Corp. 2024
|
|
66
|
+
*
|
|
67
|
+
* The source code for this program is not published or otherwise
|
|
68
|
+
* divested of its trade secrets, irrespective of what has been
|
|
69
|
+
* deposited with the U. S. Copyright Office
|
|
70
|
+
*
|
|
71
|
+
* US Government Users Restricted Rights - Use, duplication or
|
|
72
|
+
* disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
|
|
73
|
+
*
|
|
74
|
+
*/
|
|
75
|
+
let ChatContainerInternal = class ChatContainerInternal extends lit.LitElement {
|
|
76
|
+
firstUpdated() {
|
|
77
|
+
// Render the React component with any updated properties if necessary
|
|
78
|
+
const style = document.createElement('style');
|
|
79
|
+
style.textContent = `
|
|
80
|
+
:host {
|
|
81
|
+
display: block;
|
|
82
|
+
width: 100%;
|
|
83
|
+
height: 100%;
|
|
84
|
+
box-sizing: border-box;
|
|
85
|
+
${this.config?.element ? '' : 'z-index: var(--cds-chat-BASE-z-index);'}
|
|
86
|
+
}
|
|
87
|
+
`;
|
|
88
|
+
this.appendChild(style);
|
|
89
|
+
if (this.config) {
|
|
90
|
+
this.renderReactApp();
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
updated(changedProperties) {
|
|
94
|
+
// Render the React component with any updated properties if necessary. isEqual performs a deep check, but for
|
|
95
|
+
// elements only checks the reference.
|
|
96
|
+
if (changedProperties.has('config') && !AppContainer.isEqual(this.config, changedProperties.get('config'))) {
|
|
97
|
+
if (changedProperties.get('config')) {
|
|
98
|
+
AppContainer.consoleWarn('The config object you have passed to AI chat has updated. Tearing down and re-starting the chat.');
|
|
99
|
+
}
|
|
100
|
+
if (this.config) {
|
|
101
|
+
this.renderReactApp();
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
async renderReactApp() {
|
|
106
|
+
const previousContainer = this.shadowRoot.querySelector('.cds--aichat-react-app');
|
|
107
|
+
previousContainer?.remove();
|
|
108
|
+
const container = document.createElement('div');
|
|
109
|
+
container.classList.add('cds--aichat-react-app');
|
|
110
|
+
this.shadowRoot.appendChild(container);
|
|
111
|
+
// Make sure we only have one root.
|
|
112
|
+
if (this.root) {
|
|
113
|
+
this.root.unmount();
|
|
114
|
+
}
|
|
115
|
+
this.root = client.createRoot(container);
|
|
116
|
+
this.root.render(React.createElement(AppContainer.AppContainerExport, { config: this.config, renderUserDefinedResponse: this.renderUserDefinedResponse, renderWriteableElements: this.renderWriteableElements, onBeforeRender: this.onBeforeRender, onAfterRender: this.onAfterRender, container: container }));
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
tslib.__decorate([
|
|
120
|
+
decorators_js.property({ type: Object })
|
|
121
|
+
], ChatContainerInternal.prototype, "config", void 0);
|
|
122
|
+
tslib.__decorate([
|
|
123
|
+
decorators_js.property()
|
|
124
|
+
], ChatContainerInternal.prototype, "onBeforeRender", void 0);
|
|
125
|
+
tslib.__decorate([
|
|
126
|
+
decorators_js.property()
|
|
127
|
+
], ChatContainerInternal.prototype, "onAfterRender", void 0);
|
|
128
|
+
tslib.__decorate([
|
|
129
|
+
decorators_js.property()
|
|
130
|
+
], ChatContainerInternal.prototype, "renderUserDefinedResponse", void 0);
|
|
131
|
+
tslib.__decorate([
|
|
132
|
+
decorators_js.property({ type: Object })
|
|
133
|
+
], ChatContainerInternal.prototype, "renderWriteableElements", void 0);
|
|
134
|
+
ChatContainerInternal = tslib.__decorate([
|
|
135
|
+
AppContainer.carbonElement('cds-aichat-internal')
|
|
136
|
+
], ChatContainerInternal);
|
|
137
|
+
|
|
52
138
|
/**
|
|
53
139
|
*
|
|
54
140
|
* IBM Confidential
|
|
@@ -64,7 +150,9 @@ require('@carbon/web-components/es/components/layer/index.js');
|
|
|
64
150
|
*
|
|
65
151
|
*/
|
|
66
152
|
/**
|
|
67
|
-
* cds-aichat-container
|
|
153
|
+
* The cds-aichat-container managing creating slotted elements for user_defined responses and writable elements.
|
|
154
|
+
* It then passes that slotted content into cds-aichat-internal. That component will boot up the full chat application
|
|
155
|
+
* and pass the slotted elements into their slots.
|
|
68
156
|
*/
|
|
69
157
|
let ChatContainer = class ChatContainer extends lit.LitElement {
|
|
70
158
|
constructor() {
|
|
@@ -81,22 +169,22 @@ let ChatContainer = class ChatContainer extends lit.LitElement {
|
|
|
81
169
|
* Adds the slot attribute to the element for the user_defined response type and then injects it into the component by
|
|
82
170
|
* updating this._userDefinedSlotNames;
|
|
83
171
|
*/
|
|
84
|
-
this.
|
|
172
|
+
this.userDefinedHandler = (event) => {
|
|
85
173
|
// This element already has `slot` as an attribute.
|
|
86
174
|
const { slot } = event.data;
|
|
87
175
|
if (!this._userDefinedSlotNames.includes(slot)) {
|
|
88
176
|
this._userDefinedSlotNames = [...this._userDefinedSlotNames, slot];
|
|
89
177
|
}
|
|
90
178
|
};
|
|
91
|
-
this.
|
|
179
|
+
this.onBeforeRenderOverride = async (instance) => {
|
|
92
180
|
this._instance = instance;
|
|
93
|
-
this._instance.on({ type: "userDefinedResponse" /* BusEventType.USER_DEFINED_RESPONSE */, handler: this.
|
|
94
|
-
this._instance.on({ type: "chunk:userDefinedResponse" /* BusEventType.CHUNK_USER_DEFINED_RESPONSE */, handler: this.
|
|
95
|
-
this.
|
|
181
|
+
this._instance.on({ type: "userDefinedResponse" /* BusEventType.USER_DEFINED_RESPONSE */, handler: this.userDefinedHandler });
|
|
182
|
+
this._instance.on({ type: "chunk:userDefinedResponse" /* BusEventType.CHUNK_USER_DEFINED_RESPONSE */, handler: this.userDefinedHandler });
|
|
183
|
+
this.addWriteableElementSlots();
|
|
96
184
|
await this.onBeforeRender?.(instance);
|
|
97
185
|
};
|
|
98
186
|
}
|
|
99
|
-
|
|
187
|
+
addWriteableElementSlots() {
|
|
100
188
|
const writeableElementSlots = [this._instance.customPanels.getPanel().hostElement.getAttribute('slot')];
|
|
101
189
|
Object.keys(this._instance.writeableElements).forEach(writeableElementKey => {
|
|
102
190
|
writeableElementSlots.push(writeableElementKey);
|
|
@@ -110,33 +198,33 @@ let ChatContainer = class ChatContainer extends lit.LitElement {
|
|
|
110
198
|
return lit.html `<cds-aichat-internal
|
|
111
199
|
.config=${this.config}
|
|
112
200
|
.onAfterRender=${this.onAfterRender}
|
|
113
|
-
.onBeforeRender=${this.
|
|
201
|
+
.onBeforeRender=${this.onBeforeRenderOverride}
|
|
114
202
|
>
|
|
115
203
|
${this._writeableElementSlots.map(slot => lit.html `<div slot=${slot}><slot name=${slot}></slot></div>`)}
|
|
116
204
|
${this._userDefinedSlotNames.map(slot => lit.html `<div slot=${slot}><slot name=${slot}></slot></div>`)}
|
|
117
205
|
</cds-aichat-internal>`;
|
|
118
206
|
}
|
|
119
207
|
};
|
|
120
|
-
|
|
208
|
+
tslib.__decorate([
|
|
121
209
|
decorators_js.property({ type: Object })
|
|
122
210
|
], ChatContainer.prototype, "config", void 0);
|
|
123
|
-
|
|
211
|
+
tslib.__decorate([
|
|
124
212
|
decorators_js.property()
|
|
125
213
|
], ChatContainer.prototype, "onBeforeRender", void 0);
|
|
126
|
-
|
|
214
|
+
tslib.__decorate([
|
|
127
215
|
decorators_js.property()
|
|
128
216
|
], ChatContainer.prototype, "onAfterRender", void 0);
|
|
129
|
-
|
|
217
|
+
tslib.__decorate([
|
|
130
218
|
decorators_js.state()
|
|
131
219
|
], ChatContainer.prototype, "_userDefinedSlotNames", void 0);
|
|
132
|
-
|
|
220
|
+
tslib.__decorate([
|
|
133
221
|
decorators_js.state()
|
|
134
222
|
], ChatContainer.prototype, "_writeableElementSlots", void 0);
|
|
135
|
-
|
|
223
|
+
tslib.__decorate([
|
|
136
224
|
decorators_js.state()
|
|
137
225
|
], ChatContainer.prototype, "_instance", void 0);
|
|
138
|
-
ChatContainer =
|
|
139
|
-
|
|
226
|
+
ChatContainer = tslib.__decorate([
|
|
227
|
+
AppContainer.carbonElement('cds-aichat-container')
|
|
140
228
|
], ChatContainer);
|
|
141
229
|
var ChatContainer$1 = ChatContainer;
|
|
142
230
|
|
|
@@ -13,38 +13,47 @@ 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
|
|
25
|
+
var tslib = require('tslib');
|
|
26
26
|
require('./cds-aichat-container.js');
|
|
27
27
|
var lit = require('lit');
|
|
28
28
|
var decorators_js = require('lit/decorators.js');
|
|
29
|
+
var AppContainer = require('./AppContainer.js');
|
|
29
30
|
require('react');
|
|
30
|
-
require('react-dom');
|
|
31
|
+
require('react-dom/client');
|
|
31
32
|
require('./highlight_js.js');
|
|
32
33
|
require('@carbon/react');
|
|
34
|
+
require('classnames');
|
|
33
35
|
require('react-intl');
|
|
34
36
|
require('react-redux');
|
|
37
|
+
require('tabbable');
|
|
38
|
+
require('@carbon/icons-react');
|
|
35
39
|
require('./markdown.js');
|
|
36
|
-
require('./markdown_attrs.js');
|
|
37
40
|
require('@carbon/web-components/es/components/button/index.js');
|
|
38
41
|
require('@carbon/web-components/es/components/overflow-menu/index.js');
|
|
39
42
|
require('lit/directives/unsafe-html.js');
|
|
43
|
+
require('prop-types');
|
|
40
44
|
require('@carbon/web-components/es/components/slug/index.js');
|
|
41
45
|
require('@carbon/web-components/es/components/popover/defs.js');
|
|
42
46
|
require('@carbon/web-components/es/components/slug/defs.js');
|
|
47
|
+
require('@floating-ui/react');
|
|
48
|
+
require('react-dom');
|
|
43
49
|
require('@carbon/web-components/es/components/slug/slug-action-button.js');
|
|
44
50
|
require('@carbon/web-components/es/components/slug/slug.js');
|
|
51
|
+
require('@carbon/web-components/es/components/inline-loading/index.js');
|
|
52
|
+
require('@carbon/icon-helpers');
|
|
53
|
+
require('@carbon/icons');
|
|
54
|
+
require('lit/directives/unsafe-svg.js');
|
|
45
55
|
require('@carbon/web-components/es/components/textarea/index.js');
|
|
46
56
|
require('@carbon/web-components/es/components/icon-button/index.js');
|
|
47
|
-
require('lit/directives/unsafe-svg.js');
|
|
48
57
|
require('@carbon/web-components/es/components/tag/index.js');
|
|
49
58
|
require('@carbon/web-components/es/components/chat-button/index.js');
|
|
50
59
|
require('@carbon/web-components/es/components/button/button.js');
|
|
@@ -65,7 +74,10 @@ require('@carbon/web-components/es/components/layer/index.js');
|
|
|
65
74
|
*
|
|
66
75
|
*/
|
|
67
76
|
/**
|
|
68
|
-
* cds-aichat-container
|
|
77
|
+
* cds-aichat-custom-element will is a pass through to cds-aichat-container. It takes any user_defined and writeable element
|
|
78
|
+
* slotted content and forwards it to cds-aichat-container. It also will setup the custom element with a default viewChange
|
|
79
|
+
* pattern (e.g. hiding and showing the custom element when the chat should be open/closed) if a onViewChange property is not
|
|
80
|
+
* defined. Finally, it registers the custom element with cds-aichat-container so a default "floating" element will not be created.
|
|
69
81
|
*/
|
|
70
82
|
let ChatCustomElement = class ChatCustomElement extends lit.LitElement {
|
|
71
83
|
constructor() {
|
|
@@ -98,23 +110,23 @@ let ChatCustomElement = class ChatCustomElement extends lit.LitElement {
|
|
|
98
110
|
* Adds the slot attribute to the element for the user_defined response type and then injects it into the component by
|
|
99
111
|
* updating this._userDefinedSlotNames;
|
|
100
112
|
*/
|
|
101
|
-
this.
|
|
113
|
+
this.userDefinedHandler = (event) => {
|
|
102
114
|
// This element already has `slot` as an attribute.
|
|
103
115
|
const { slot } = event.data;
|
|
104
116
|
if (!this._userDefinedSlotNames.includes(slot)) {
|
|
105
117
|
this._userDefinedSlotNames = [...this._userDefinedSlotNames, slot];
|
|
106
118
|
}
|
|
107
119
|
};
|
|
108
|
-
this.
|
|
120
|
+
this.onBeforeRenderOverride = async (instance) => {
|
|
109
121
|
this._instance = instance;
|
|
110
122
|
this._instance.on({ type: "view:change" /* BusEventType.VIEW_CHANGE */, handler: this.onViewChange || this.defaultViewChangeHandler });
|
|
111
|
-
this._instance.on({ type: "userDefinedResponse" /* BusEventType.USER_DEFINED_RESPONSE */, handler: this.
|
|
112
|
-
this._instance.on({ type: "chunk:userDefinedResponse" /* BusEventType.CHUNK_USER_DEFINED_RESPONSE */, handler: this.
|
|
113
|
-
this.
|
|
123
|
+
this._instance.on({ type: "userDefinedResponse" /* BusEventType.USER_DEFINED_RESPONSE */, handler: this.userDefinedHandler });
|
|
124
|
+
this._instance.on({ type: "chunk:userDefinedResponse" /* BusEventType.CHUNK_USER_DEFINED_RESPONSE */, handler: this.userDefinedHandler });
|
|
125
|
+
this.addWriteableElementSlots();
|
|
114
126
|
await this.onBeforeRender?.(instance);
|
|
115
127
|
};
|
|
116
128
|
}
|
|
117
|
-
|
|
129
|
+
addWriteableElementSlots() {
|
|
118
130
|
const writeableElementSlots = [this._instance.customPanels.getPanel().hostElement.getAttribute('slot')];
|
|
119
131
|
Object.keys(this._instance.writeableElements).forEach(writeableElementKey => {
|
|
120
132
|
writeableElementSlots.push(writeableElementKey);
|
|
@@ -122,14 +134,14 @@ let ChatCustomElement = class ChatCustomElement extends lit.LitElement {
|
|
|
122
134
|
this._writeableElementSlots = writeableElementSlots;
|
|
123
135
|
}
|
|
124
136
|
firstUpdated() {
|
|
125
|
-
this.
|
|
137
|
+
this._configOverride = {
|
|
126
138
|
...this.config,
|
|
127
139
|
element: this,
|
|
128
140
|
};
|
|
129
141
|
}
|
|
130
142
|
updated(changedProperties) {
|
|
131
143
|
if (changedProperties.has('config')) {
|
|
132
|
-
this.
|
|
144
|
+
this._configOverride = {
|
|
133
145
|
...this.config,
|
|
134
146
|
element: this,
|
|
135
147
|
};
|
|
@@ -153,47 +165,47 @@ let ChatCustomElement = class ChatCustomElement extends lit.LitElement {
|
|
|
153
165
|
render() {
|
|
154
166
|
return lit.html `${this.renderStyles()}
|
|
155
167
|
<cds-aichat-container
|
|
156
|
-
.config=${this.
|
|
168
|
+
.config=${this._configOverride}
|
|
157
169
|
.onAfterRender=${this.onAfterRender}
|
|
158
|
-
.onBeforeRender=${this.
|
|
170
|
+
.onBeforeRender=${this.onBeforeRenderOverride}
|
|
159
171
|
>
|
|
160
172
|
${this._writeableElementSlots.map(slot => lit.html `<div slot=${slot}><slot name=${slot}></slot></div>`)}
|
|
161
173
|
${this._userDefinedSlotNames.map(slot => lit.html `<div slot=${slot}><slot name=${slot}></slot></div>`)}
|
|
162
174
|
</cds-aichat-container>`;
|
|
163
175
|
}
|
|
164
176
|
};
|
|
165
|
-
|
|
177
|
+
tslib.__decorate([
|
|
166
178
|
decorators_js.property({ type: Object })
|
|
167
179
|
], ChatCustomElement.prototype, "config", void 0);
|
|
168
|
-
|
|
180
|
+
tslib.__decorate([
|
|
169
181
|
decorators_js.property()
|
|
170
182
|
], ChatCustomElement.prototype, "onBeforeRender", void 0);
|
|
171
|
-
|
|
183
|
+
tslib.__decorate([
|
|
172
184
|
decorators_js.property()
|
|
173
185
|
], ChatCustomElement.prototype, "onAfterRender", void 0);
|
|
174
|
-
|
|
186
|
+
tslib.__decorate([
|
|
175
187
|
decorators_js.property()
|
|
176
188
|
], ChatCustomElement.prototype, "onViewChange", void 0);
|
|
177
|
-
|
|
189
|
+
tslib.__decorate([
|
|
178
190
|
decorators_js.state()
|
|
179
|
-
], ChatCustomElement.prototype, "
|
|
180
|
-
|
|
191
|
+
], ChatCustomElement.prototype, "_configOverride", void 0);
|
|
192
|
+
tslib.__decorate([
|
|
181
193
|
decorators_js.state()
|
|
182
194
|
], ChatCustomElement.prototype, "_originalStyles", void 0);
|
|
183
|
-
|
|
195
|
+
tslib.__decorate([
|
|
184
196
|
decorators_js.state()
|
|
185
197
|
], ChatCustomElement.prototype, "_styles", void 0);
|
|
186
|
-
|
|
198
|
+
tslib.__decorate([
|
|
187
199
|
decorators_js.state()
|
|
188
200
|
], ChatCustomElement.prototype, "_userDefinedSlotNames", void 0);
|
|
189
|
-
|
|
201
|
+
tslib.__decorate([
|
|
190
202
|
decorators_js.state()
|
|
191
203
|
], ChatCustomElement.prototype, "_writeableElementSlots", void 0);
|
|
192
|
-
|
|
204
|
+
tslib.__decorate([
|
|
193
205
|
decorators_js.state()
|
|
194
206
|
], ChatCustomElement.prototype, "_instance", void 0);
|
|
195
|
-
ChatCustomElement =
|
|
196
|
-
|
|
207
|
+
ChatCustomElement = tslib.__decorate([
|
|
208
|
+
AppContainer.carbonElement('cds-aichat-custom-element')
|
|
197
209
|
], ChatCustomElement);
|
|
198
210
|
var ChatCustomElement$1 = ChatCustomElement;
|
|
199
211
|
|
package/dist/cjs/cs.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 cs$2 = {exports: {}};
|
|
44
44
|
|
|
45
45
|
(function (module, exports) {
|
|
46
|
-
!function(e,n){module.exports=n(
|
|
46
|
+
!function(e,n){module.exports=n(AppContainer.dayjs_minExports);}(highlight_js.commonjsGlobal,(function(e){function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=n(e);function s(e){return e>1&&e<5&&1!=~~(e/10)}function r(e,n,t,r){var d=e+" ";switch(t){case"s":return n||r?"pár sekund":"pár sekundami";case"m":return n?"minuta":r?"minutu":"minutou";case"mm":return n||r?d+(s(e)?"minuty":"minut"):d+"minutami";case"h":return n?"hodina":r?"hodinu":"hodinou";case"hh":return n||r?d+(s(e)?"hodiny":"hodin"):d+"hodinami";case"d":return n||r?"den":"dnem";case"dd":return n||r?d+(s(e)?"dny":"dní"):d+"dny";case"M":return n||r?"měsíc":"měsícem";case"MM":return n||r?d+(s(e)?"měsíce":"měsíců"):d+"měsíci";case"y":return n||r?"rok":"rokem";case"yy":return n||r?d+(s(e)?"roky":"let"):d+"lety"}}var d={name:"cs",weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),months:"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),monthsShort:"led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),weekStart:1,yearStart:4,ordinal:function(e){return e+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},relativeTime:{future:"za %s",past:"před %s",s:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r}};return t.default.locale(d,null,!0),d}));
|
|
47
47
|
} (cs$2));
|
|
48
48
|
|
|
49
49
|
var csExports = cs$2.exports;
|
package/dist/cjs/cs2.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/de-at.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 deAt$2 = {exports: {}};
|
|
44
44
|
|
|
45
45
|
(function (module, exports) {
|
|
46
|
-
!function(e,n){module.exports=n(
|
|
46
|
+
!function(e,n){module.exports=n(AppContainer.dayjs_minExports);}(highlight_js.commonjsGlobal,(function(e){function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=n(e),i={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function a(e,n,t){var a=i[t];return Array.isArray(a)&&(a=a[n?0:1]),a.replace("%d",e)}var r={name:"de-at",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),ordinal:function(e){return e+"."},weekStart:1,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a}};return t.default.locale(r,null,!0),r}));
|
|
47
47
|
} (deAt$2));
|
|
48
48
|
|
|
49
49
|
var deAtExports = deAt$2.exports;
|
package/dist/cjs/de-ch.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 deCh$2 = {exports: {}};
|
|
44
44
|
|
|
45
45
|
(function (module, exports) {
|
|
46
|
-
!function(e,n){module.exports=n(
|
|
46
|
+
!function(e,n){module.exports=n(AppContainer.dayjs_minExports);}(highlight_js.commonjsGlobal,(function(e){function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=n(e),a={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function i(e,n,t){var i=a[t];return Array.isArray(i)&&(i=i[n?0:1]),i.replace("%d",e)}var r={name:"de-ch",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),ordinal:function(e){return e+"."},weekStart:1,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:"in %s",past:"vor %s",s:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i}};return t.default.locale(r,null,!0),r}));
|
|
47
47
|
} (deCh$2));
|
|
48
48
|
|
|
49
49
|
var deChExports = deCh$2.exports;
|