@epam/ai-dial-conversation-messages 1.1.0-dev.56 → 1.1.0-dev.58

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.
Files changed (3) hide show
  1. package/index.css +1 -1
  2. package/index.js +10 -9
  3. package/package.json +3 -3
package/index.css CHANGED
@@ -1,2 +1,2 @@
1
- ._userBubble_1exhl_1{border-color:var(--cm-bubble-user-border,var(--stroke-secondary,#d1dbea));background:var(--cm-bubble-user-bg,var(--bg-layer-2,#eef1f7))}._collapsibleText_1exhl_6{max-height:var(--cm-bubble-collapsed-height);transition:max-height .2s ease-out}._expandedText_1exhl_11{max-height:var(--cm-bubble-expanded-height)}._collapsedText_1exhl_15:after{content:"";pointer-events:none;background:linear-gradient(to bottom, var(--cm-bubble-fade-start,var(--bg-transparent-black,#0000)), var(--cm-bubble-user-bg,var(--bg-layer-2,#eef1f7)));height:3rem;position:absolute;bottom:0;left:0;right:0}@media (prefers-reduced-motion:reduce){._collapsibleText_1exhl_6{transition:none}}._startersDivider_1exhl_26{border-color:var(--cm-starters-divider,var(--stroke-secondary,#d1dbea))}._text_1exhl_30{color:var(--cm-bubble-text,var(--text-primary,#161b2d))}
1
+ ._userBubble_1tjh8_1{border-color:var(--cm-bubble-user-border,var(--stroke-secondary,#d1dbea));background:var(--cm-bubble-user-bg,var(--bg-layer-sunken,#eef1f7))}._collapsibleText_1tjh8_6{max-height:var(--cm-bubble-collapsed-height);transition:max-height .2s ease-out}._expandedText_1tjh8_11{max-height:var(--cm-bubble-expanded-height)}._collapsedText_1tjh8_15:after{content:"";pointer-events:none;background:linear-gradient(to bottom, var(--cm-bubble-fade-start,var(--bg-transparent-black,#0000)), var(--cm-bubble-user-bg,var(--bg-layer-sunken,#eef1f7)));height:3rem;position:absolute;bottom:0;left:0;right:0}@media (prefers-reduced-motion:reduce){._collapsibleText_1tjh8_6{transition:none}}._startersDivider_1tjh8_26{border-color:var(--cm-starters-divider,var(--stroke-secondary,#d1dbea))}._text_1tjh8_30{color:var(--cm-bubble-text,var(--text-primary,#161b2d))}
2
2
  /*$vite$:1*/
package/index.js CHANGED
@@ -8,6 +8,7 @@ import { Fragment as K, jsx as q, jsxs as J } from "react/jsx-runtime";
8
8
  var Fe = "flex size-[84px] items-center justify-center rounded-xl border", Y = /* @__PURE__ */ function(e) {
9
9
  return e.None = "none", e.AllVisible = "all-visible", e.Collapsed = "collapsed", e;
10
10
  }({}), Ie = (e) => {
11
+ if (e == null) return "";
11
12
  let t = e.lastIndexOf(".");
12
13
  return t > 0 ? e.slice(0, t) : e;
13
14
  }, Le = (e) => {
@@ -463,7 +464,7 @@ var Fe = "flex size-[84px] items-center justify-center rounded-xl border", Y = /
463
464
  "aria-label": I,
464
465
  className: u("gap-3", N ? "grid grid-cols-[repeat(5,83px)] overflow-x-auto" : "flex flex-wrap"),
465
466
  children: [
466
- R.map((e) => /* @__PURE__ */ q("div", {
467
+ R.map((e, t) => /* @__PURE__ */ q("div", {
467
468
  role: "listitem",
468
469
  children: /* @__PURE__ */ q($e, {
469
470
  attachment: e,
@@ -479,7 +480,7 @@ var Fe = "flex size-[84px] items-center justify-center rounded-xl border", Y = /
479
480
  openInNewTabLabel: _
480
481
  }
481
482
  })
482
- }, e.id)),
483
+ }, `${e.id}-${t}`)),
483
484
  O.layout === Y.Collapsed && /* @__PURE__ */ q("div", {
484
485
  role: "listitem",
485
486
  children: /* @__PURE__ */ q(tt, {
@@ -749,12 +750,12 @@ var lt = 2e3, ut = ({ role: e = o.User, onEdit: t, onEditHover: n, onDelete: r,
749
750
  ] })]
750
751
  });
751
752
  }, $ = {
752
- userBubble: "_userBubble_1exhl_1",
753
- collapsibleText: "_collapsibleText_1exhl_6",
754
- expandedText: "_expandedText_1exhl_11",
755
- collapsedText: "_collapsedText_1exhl_15",
756
- startersDivider: "_startersDivider_1exhl_26",
757
- text: "_text_1exhl_30"
753
+ userBubble: "_userBubble_1tjh8_1",
754
+ collapsibleText: "_collapsibleText_1tjh8_6",
755
+ expandedText: "_expandedText_1tjh8_11",
756
+ collapsedText: "_collapsedText_1tjh8_15",
757
+ startersDivider: "_startersDivider_1tjh8_26",
758
+ text: "_text_1tjh8_30"
758
759
  }, dt = ({ text: e, styles: i, actions: a, hasAlwaysVisibleActions: s, isStreaming: c, attachments: d, afterContent: f, starters: p, onSelectStarter: m, deploymentIconUrl: h, deploymentDisplayName: g, markdownComponents: _, onAttachmentClick: v, onDownloadAll: b, onAttachmentRetry: x, codeBlockTheme: S, labels: C }) => {
759
760
  let { colors: w, typography: T, className: E, bubbleClassName: D } = i ?? {}, { attachmentClickLabel: O, attachmentRetryLabel: k, attachmentOpenInNewTabLabel: A, startersAriaLabel: j = "Quick reply buttons", thinkingLabel: M, codeBlockCopyLabel: N, codeBlockCopiedLabel: P, assistantMessageAriaLabel: F = "Assistant message", deploymentIconFallbackLabel: I = "AI" } = C ?? {}, L = c ? (d ?? []).filter((e) => e.type !== t.Audio) : d ?? [], R = l({
760
761
  "--cm-bubble-text": w?.text,
@@ -844,7 +845,7 @@ var lt = 2e3, ut = ({ role: e = o.User, onEdit: t, onEditHover: n, onDelete: r,
844
845
  "--cm-bubble-text": _?.text,
845
846
  "--cm-bubble-collapsed-height": P ? `${F}px` : void 0,
846
847
  "--cm-bubble-expanded-height": P ? `${I}px` : void 0
847
- }), B = t === pt.Top ? "rounded-ee-[6px] rounded-se-[16px]" : "rounded-se-[6px] rounded-ee-[16px]", V = u($.text, v?.fontClassName), ee = C ?? x, te = w ?? S, ne = L ? x : S, re = L ? ee : te, ie = L ? j : M, ae = Ne();
848
+ }), B = t === pt.Top ? "rounded-ee-md rounded-se-2xl" : "rounded-se-md rounded-ee-2xl", V = u($.text, v?.fontClassName), ee = C ?? x, te = w ?? S, ne = L ? x : S, re = L ? ee : te, ie = L ? j : M, ae = Ne();
848
849
  return /* @__PURE__ */ q("div", {
849
850
  role: "group",
850
851
  "aria-label": k,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-conversation-messages",
3
3
  "description": "Message bubble components for rendering conversation history with actions and source citations",
4
- "version": "1.1.0-dev.56",
4
+ "version": "1.1.0-dev.58",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -19,8 +19,8 @@
19
19
  "peerDependencies": {
20
20
  "react": "^19.0.0",
21
21
  "@tabler/icons-react": "^3.0.0",
22
- "@epam/ai-dial-chat-shared": "1.1.0-dev.56",
23
- "@epam/ai-dial-conversation-input": "1.1.0-dev.56",
22
+ "@epam/ai-dial-chat-shared": "1.1.0-dev.58",
23
+ "@epam/ai-dial-conversation-input": "1.1.0-dev.58",
24
24
  "react-markdown": "^10.1.0",
25
25
  "@epam/ai-dial-ui-kit": "^0.13.0-dev.17"
26
26
  },