@carbon/ai-chat 1.2.0-rc.0 → 1.2.0-rc.1
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.
|
@@ -1433,7 +1433,7 @@ function agentUpdateIsTyping(isTyping) {
|
|
|
1433
1433
|
};
|
|
1434
1434
|
}
|
|
1435
1435
|
|
|
1436
|
-
const VERSION = "1.
|
|
1436
|
+
const VERSION = "1.2.0";
|
|
1437
1437
|
|
|
1438
1438
|
const BOUNCING_ANIMATION_TIMEOUTS = [ 15e3, 6e4 ];
|
|
1439
1439
|
|
|
@@ -3616,7 +3616,7 @@ var CarbonThemeClassNames;
|
|
|
3616
3616
|
|
|
3617
3617
|
const CSS_VAR_PREFIX = "--cds-";
|
|
3618
3618
|
|
|
3619
|
-
const CSS_CHAT_PREFIX = "
|
|
3619
|
+
const CSS_CHAT_PREFIX = "aichat-";
|
|
3620
3620
|
|
|
3621
3621
|
const HEXADECIMAL_REGEX = /#([a-f0-9]{3}){1,2}\b/i;
|
|
3622
3622
|
|
|
@@ -3636,7 +3636,7 @@ function convertCSSVariablesToString(customProperties) {
|
|
|
3636
3636
|
const allValues = pieces.join("");
|
|
3637
3637
|
const prefix = "";
|
|
3638
3638
|
if (allValues.length > 0) {
|
|
3639
|
-
const rule = `${prefix}.cds-aichat--container .cds--white, ${prefix}.cds-aichat--container
|
|
3639
|
+
const rule = `${prefix} .cds-aichat--container--render.cds-aichat--container--render, ${prefix} .cds-aichat--container--render.cds--white, ${prefix} .cds-aichat--container--render.cds--g10, ${prefix} .cds-aichat--container--render.cds--g90, ${prefix} .cds-aichat--container--render.cds--g100`;
|
|
3640
3640
|
customPropertiesString = `${rule}${`, :host`}{${allValues}}`;
|
|
3641
3641
|
}
|
|
3642
3642
|
return customPropertiesString;
|
|
@@ -8383,7 +8383,7 @@ function renderWithStaticTag(tag, token, content, attrs, options, _context, node
|
|
|
8383
8383
|
case "ol":
|
|
8384
8384
|
{
|
|
8385
8385
|
const nested = token.level > 1;
|
|
8386
|
-
return html`<cds-ordered-list ?nested=${nested} ${spread(attrs)}>
|
|
8386
|
+
return html`<cds-ordered-list native ?nested=${nested} ${spread(attrs)}>
|
|
8387
8387
|
${content}
|
|
8388
8388
|
</cds-ordered-list>`;
|
|
8389
8389
|
}
|
|
@@ -11613,7 +11613,7 @@ const Dropdown = createComponent({
|
|
|
11613
11613
|
tagName: "cds-dropdown",
|
|
11614
11614
|
elementClass: CarbonDropdownElement,
|
|
11615
11615
|
events: {
|
|
11616
|
-
|
|
11616
|
+
onSelected: "cds-dropdown-selected",
|
|
11617
11617
|
onToggled: "cds-dropdown-toggled"
|
|
11618
11618
|
},
|
|
11619
11619
|
react: React
|
|
@@ -11645,11 +11645,12 @@ function SelectComponent(props) {
|
|
|
11645
11645
|
e.preventDefault();
|
|
11646
11646
|
}
|
|
11647
11647
|
};
|
|
11648
|
-
const
|
|
11648
|
+
const handleSelected = e => {
|
|
11649
|
+
const label = e.detail.item.textContent;
|
|
11649
11650
|
const text = e.detail.item.value;
|
|
11650
11651
|
onChange({
|
|
11651
11652
|
selectedItem: {
|
|
11652
|
-
label:
|
|
11653
|
+
label: label,
|
|
11653
11654
|
value: {
|
|
11654
11655
|
input: {
|
|
11655
11656
|
text: text
|
|
@@ -11687,11 +11688,11 @@ function SelectComponent(props) {
|
|
|
11687
11688
|
disabled: disableUserInputs,
|
|
11688
11689
|
onToggled: handleToggle,
|
|
11689
11690
|
onKeyDown: handleKeyDown,
|
|
11690
|
-
|
|
11691
|
+
onSelected: handleSelected
|
|
11691
11692
|
}, options.map(option => React.createElement(DropdownItem, {
|
|
11692
|
-
value: option.
|
|
11693
|
-
key: option.
|
|
11694
|
-
}, option.
|
|
11693
|
+
value: option.value.input.text,
|
|
11694
|
+
key: option.value.input.text
|
|
11695
|
+
}, option.label)))));
|
|
11695
11696
|
}
|
|
11696
11697
|
|
|
11697
11698
|
class OptionComponent extends Component {
|