@carbon/ai-chat-components 0.4.0 → 0.5.0
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/custom-elements.json +167 -0
- package/dist/carbon-element-CMR7BOhG.js +24 -0
- package/dist/chat-button.min.js +117 -0
- package/dist/class-map-h7IEvsL_.js +39 -0
- package/dist/processing.min.js +4 -18
- package/dist/{carbon-element-DAeGleIK.js → settings-XW6XylsZ.js} +7 -14
- package/dist/tile-container.min.js +4 -3
- package/es/components/chat-button/chat-button.d.ts +23 -0
- package/es/components/chat-button/chat-button.js +67 -0
- package/es/components/chat-button/chat-button.js.map +1 -0
- package/es/components/chat-button/index.d.ts +9 -0
- package/es/components/chat-button/index.js +9 -0
- package/es/components/chat-button/index.js.map +1 -0
- package/es/components/chat-button/src/chat-button.scss.js +13 -0
- package/es/components/chat-button/src/chat-button.scss.js.map +1 -0
- package/es/components/chat-button/src/chat-button.template.d.ts +16 -0
- package/es/components/chat-button/src/chat-button.template.js +27 -0
- package/es/components/chat-button/src/chat-button.template.js.map +1 -0
- package/es/react/chat-button.d.ts +13 -0
- package/es/react/chat-button.js +28 -0
- package/es/react/chat-button.js.map +1 -0
- package/package.json +8 -7
package/custom-elements.json
CHANGED
|
@@ -106,6 +106,66 @@
|
|
|
106
106
|
}
|
|
107
107
|
]
|
|
108
108
|
},
|
|
109
|
+
{
|
|
110
|
+
"kind": "javascript-module",
|
|
111
|
+
"path": "src/react/chat-button.ts",
|
|
112
|
+
"declarations": [
|
|
113
|
+
{
|
|
114
|
+
"kind": "variable",
|
|
115
|
+
"name": "ChatButton"
|
|
116
|
+
}
|
|
117
|
+
],
|
|
118
|
+
"exports": [
|
|
119
|
+
{
|
|
120
|
+
"kind": "js",
|
|
121
|
+
"name": "default",
|
|
122
|
+
"declaration": {
|
|
123
|
+
"name": "ChatButton",
|
|
124
|
+
"module": "src/react/chat-button.ts"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"kind": "js",
|
|
129
|
+
"name": "BUTTON_KIND",
|
|
130
|
+
"declaration": {
|
|
131
|
+
"name": "BUTTON_KIND",
|
|
132
|
+
"module": "src/react/chat-button.ts"
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"kind": "js",
|
|
137
|
+
"name": "BUTTON_TYPE",
|
|
138
|
+
"declaration": {
|
|
139
|
+
"name": "BUTTON_TYPE",
|
|
140
|
+
"module": "src/react/chat-button.ts"
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"kind": "js",
|
|
145
|
+
"name": "BUTTON_SIZE",
|
|
146
|
+
"declaration": {
|
|
147
|
+
"name": "BUTTON_SIZE",
|
|
148
|
+
"module": "src/react/chat-button.ts"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"kind": "js",
|
|
153
|
+
"name": "BUTTON_TOOLTIP_ALIGNMENT",
|
|
154
|
+
"declaration": {
|
|
155
|
+
"name": "BUTTON_TOOLTIP_ALIGNMENT",
|
|
156
|
+
"module": "src/react/chat-button.ts"
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"kind": "js",
|
|
161
|
+
"name": "BUTTON_TOOLTIP_POSITION",
|
|
162
|
+
"declaration": {
|
|
163
|
+
"name": "BUTTON_TOOLTIP_POSITION",
|
|
164
|
+
"module": "src/react/chat-button.ts"
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
]
|
|
168
|
+
},
|
|
109
169
|
{
|
|
110
170
|
"kind": "javascript-module",
|
|
111
171
|
"path": "src/react/icon-button.ts",
|
|
@@ -206,6 +266,87 @@
|
|
|
206
266
|
}
|
|
207
267
|
]
|
|
208
268
|
},
|
|
269
|
+
{
|
|
270
|
+
"kind": "javascript-module",
|
|
271
|
+
"path": "src/components/chat-button/chat-button.ts",
|
|
272
|
+
"declarations": [
|
|
273
|
+
{
|
|
274
|
+
"kind": "class",
|
|
275
|
+
"description": "Component extending the",
|
|
276
|
+
"name": "ChatButton",
|
|
277
|
+
"members": [
|
|
278
|
+
{
|
|
279
|
+
"kind": "field",
|
|
280
|
+
"name": "isQuickAction",
|
|
281
|
+
"type": {
|
|
282
|
+
"text": "boolean"
|
|
283
|
+
},
|
|
284
|
+
"default": "false",
|
|
285
|
+
"description": "Specify whether the `ChatButton` should be rendered as a quick action button",
|
|
286
|
+
"attribute": "is-quick-action"
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"kind": "field",
|
|
290
|
+
"name": "allowedSizes",
|
|
291
|
+
"type": {
|
|
292
|
+
"text": "BUTTON_SIZE[]"
|
|
293
|
+
},
|
|
294
|
+
"privacy": "private",
|
|
295
|
+
"readonly": true,
|
|
296
|
+
"default": "[ BUTTON_SIZE.SMALL, BUTTON_SIZE.MEDIUM, BUTTON_SIZE.LARGE, ]"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"kind": "method",
|
|
300
|
+
"name": "_normalizeButtonState",
|
|
301
|
+
"privacy": "private",
|
|
302
|
+
"return": {
|
|
303
|
+
"type": {
|
|
304
|
+
"text": "void"
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
],
|
|
309
|
+
"attributes": [
|
|
310
|
+
{
|
|
311
|
+
"name": "is-quick-action",
|
|
312
|
+
"type": {
|
|
313
|
+
"text": "boolean"
|
|
314
|
+
},
|
|
315
|
+
"default": "false",
|
|
316
|
+
"description": "Specify whether the `ChatButton` should be rendered as a quick action button",
|
|
317
|
+
"fieldName": "isQuickAction"
|
|
318
|
+
}
|
|
319
|
+
],
|
|
320
|
+
"superclass": {
|
|
321
|
+
"name": "chatButton",
|
|
322
|
+
"module": "/src/components/chat-button/src/chat-button.template.js"
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
],
|
|
326
|
+
"exports": [
|
|
327
|
+
{
|
|
328
|
+
"kind": "custom-element-definition",
|
|
329
|
+
"declaration": {
|
|
330
|
+
"name": "ChatButton",
|
|
331
|
+
"module": "src/components/chat-button/chat-button.ts"
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"kind": "js",
|
|
336
|
+
"name": "default",
|
|
337
|
+
"declaration": {
|
|
338
|
+
"name": "ChatButton",
|
|
339
|
+
"module": "src/components/chat-button/chat-button.ts"
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
]
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"kind": "javascript-module",
|
|
346
|
+
"path": "src/components/chat-button/index.ts",
|
|
347
|
+
"declarations": [],
|
|
348
|
+
"exports": []
|
|
349
|
+
},
|
|
209
350
|
{
|
|
210
351
|
"kind": "javascript-module",
|
|
211
352
|
"path": "src/components/processing/index.ts",
|
|
@@ -329,6 +470,32 @@
|
|
|
329
470
|
}
|
|
330
471
|
]
|
|
331
472
|
},
|
|
473
|
+
{
|
|
474
|
+
"kind": "javascript-module",
|
|
475
|
+
"path": "src/components/chat-button/src/chat-button.template.ts",
|
|
476
|
+
"declarations": [
|
|
477
|
+
{
|
|
478
|
+
"kind": "class",
|
|
479
|
+
"description": "Component extending the",
|
|
480
|
+
"name": "chatButton",
|
|
481
|
+
"members": [],
|
|
482
|
+
"superclass": {
|
|
483
|
+
"name": "CDSButton",
|
|
484
|
+
"package": "@carbon/web-components/es/components/button/button.js"
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
],
|
|
488
|
+
"exports": [
|
|
489
|
+
{
|
|
490
|
+
"kind": "js",
|
|
491
|
+
"name": "default",
|
|
492
|
+
"declaration": {
|
|
493
|
+
"name": "chatButton",
|
|
494
|
+
"module": "src/components/chat-button/src/chat-button.template.ts"
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
]
|
|
498
|
+
},
|
|
332
499
|
{
|
|
333
500
|
"kind": "javascript-module",
|
|
334
501
|
"path": "src/components/processing/src/processing.ts",
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Copyright IBM Corp. 2025
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @license
|
|
11
|
+
*
|
|
12
|
+
* This bundle contains the following third-party dependencies:
|
|
13
|
+
*
|
|
14
|
+
* Also refer to the following links for the license of other third-party dependencies:
|
|
15
|
+
*
|
|
16
|
+
* https://www.npmjs.com/package/tslib
|
|
17
|
+
* https://www.npmjs.com/package/lit
|
|
18
|
+
* https://www.npmjs.com/package/@carbon/web-components
|
|
19
|
+
* https://www.npmjs.com/package/lit-html
|
|
20
|
+
* https://www.npmjs.com/package/lit-element
|
|
21
|
+
* https://www.npmjs.com/package/@lit/reactive-element
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
function e(e){return t=>"function"==typeof t?((e,t)=>{try{customElements.define(e,t)}catch(e){}return t})(e,t):((e,t)=>{const{kind:n,elements:c}=t;return{kind:n,elements:c,finisher(t){try{customElements.define(e,t)}catch(e){}}}})(e,t)}export{e as c};
|