@epam/ai-dial-sidebar 1.1.0-dev.162 → 1.1.0-dev.168

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 (2) hide show
  1. package/index.js +37 -37
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -106580,10 +106580,10 @@ var ude = 2e3, dde = (e, t = ude) => {
106580
106580
  ], vde = [[Vle, {
106581
106581
  output: "mathml",
106582
106582
  strict: !1
106583
- }]], yde = {}, bde = { li: ({ children: e }) => /* @__PURE__ */ M("li", {
106583
+ }]], yde = [], bde = {}, xde = { li: ({ children: e }) => /* @__PURE__ */ M("li", {
106584
106584
  className: "mb-1.5 last:mb-0",
106585
106585
  children: e
106586
- }) }, Z9 = (e) => e ? e.type === "text" ? e.value ?? "" : (e.children ?? []).map(Z9).join("") : "", xde = (e, t, n, r, i, a) => ({
106586
+ }) }, Z9 = (e) => e ? e.type === "text" ? e.value ?? "" : (e.children ?? []).map(Z9).join("") : "", Sde = (e, t, n, r, i, a) => ({
106587
106587
  h1: ({ children: t }) => /* @__PURE__ */ M("h1", {
106588
106588
  className: e.h1,
106589
106589
  children: t
@@ -106684,46 +106684,46 @@ var ude = 2e3, dde = (e, t = ude) => {
106684
106684
  className: IR("max-w-96 whitespace-normal break-words border-b px-3 py-2.5 align-top [overflow-wrap:anywhere]", X9.rowDivider, e.tableBodyCell, e.tableCell),
106685
106685
  children: t
106686
106686
  })
106687
- }), Sde = S(({ content: e, isStreaming: t, streamCharactersPerSecond: n, classNames: r = yde, components: i, thinkingLabel: a = "Thinking", codeBlockCopyLabel: o, codeBlockCopiedLabel: s, codeBlockTheme: c, colors: l, tableScrollRegionAriaLabel: u }) => {
106688
- let d = mue(e, t, n), f = O(() => xue(d), [d]), p = LR({
106689
- "--cm-thinking-inverted": l?.thinkingPrimary,
106690
- "--cm-thinking-secondary": l?.thinkingSecondary,
106691
- "--cm-markdown-border": l?.border,
106692
- "--cm-blockquote-border": l?.blockquoteBorder,
106693
- "--cm-blockquote-text": l?.blockquoteText,
106694
- "--cm-link-text": l?.linkText,
106695
- "--cm-link-focus": l?.linkFocus,
106696
- "--cm-table-header-text": l?.tableHeaderText,
106697
- "--cm-h6-text": l?.headingSixText,
106698
- "--cm-code-inline-bg": l?.inlineCodeBackground,
106699
- "--cm-code-inline-text": l?.inlineCodeText
106700
- }), m = O(() => ({
106701
- ...xde(r, t, o, s, c, u),
106702
- ...bde,
106687
+ }), Cde = S(({ content: e, isStreaming: t, streamCharactersPerSecond: n, classNames: r = bde, components: i, rehypePlugins: a = yde, thinkingLabel: o = "Thinking", codeBlockCopyLabel: s, codeBlockCopiedLabel: c, codeBlockTheme: l, colors: u, tableScrollRegionAriaLabel: d }) => {
106688
+ let f = mue(e, t, n), p = O(() => xue(f), [f]), m = LR({
106689
+ "--cm-thinking-inverted": u?.thinkingPrimary,
106690
+ "--cm-thinking-secondary": u?.thinkingSecondary,
106691
+ "--cm-markdown-border": u?.border,
106692
+ "--cm-blockquote-border": u?.blockquoteBorder,
106693
+ "--cm-blockquote-text": u?.blockquoteText,
106694
+ "--cm-link-text": u?.linkText,
106695
+ "--cm-link-focus": u?.linkFocus,
106696
+ "--cm-table-header-text": u?.tableHeaderText,
106697
+ "--cm-h6-text": u?.headingSixText,
106698
+ "--cm-code-inline-bg": u?.inlineCodeBackground,
106699
+ "--cm-code-inline-text": u?.inlineCodeText
106700
+ }), h = O(() => ({
106701
+ ...Sde(r, t, s, c, l, d),
106702
+ ...xde,
106703
106703
  ...i
106704
106704
  }), [
106705
106705
  r,
106706
106706
  t,
106707
- o,
106708
106707
  s,
106709
106708
  c,
106710
- u,
106709
+ l,
106710
+ d,
106711
106711
  i
106712
106712
  ]);
106713
- return t && !d ? /* @__PURE__ */ M("span", {
106713
+ return t && !f ? /* @__PURE__ */ M("span", {
106714
106714
  className: J9.thinking,
106715
- style: p,
106716
- children: a
106715
+ style: m,
106716
+ children: o
106717
106717
  }) : /* @__PURE__ */ M("div", {
106718
- style: p,
106718
+ style: m,
106719
106719
  children: /* @__PURE__ */ M(mZ, {
106720
106720
  remarkPlugins: _de,
106721
- rehypePlugins: vde,
106722
- components: m,
106723
- children: f
106721
+ rehypePlugins: [...vde, ...a],
106722
+ components: h,
106723
+ children: p
106724
106724
  })
106725
106725
  });
106726
- }), Cde = {
106726
+ }), wde = {
106727
106727
  h1: "dial-h1-text mb-3 mt-6 first:mt-0 [text-wrap:balance]",
106728
106728
  h2: "dial-h2-text mb-2 mt-5 first:mt-0 [text-wrap:balance]",
106729
106729
  h3: "dial-h3-text mb-2 mt-4 first:mt-0 [text-wrap:balance]",
@@ -106738,7 +106738,7 @@ var ude = 2e3, dde = (e, t = ude) => {
106738
106738
  link: "break-words [overflow-wrap:anywhere]",
106739
106739
  tableWrapper: "my-4"
106740
106740
  };
106741
- S(({ content: e, isStreaming: t, thinkingLabel: n, components: r, codeBlockCopyLabel: i, codeBlockCopiedLabel: a, codeBlockTheme: o }) => /* @__PURE__ */ M(Sde, {
106741
+ S(({ content: e, isStreaming: t, thinkingLabel: n, components: r, codeBlockCopyLabel: i, codeBlockCopiedLabel: a, codeBlockTheme: o }) => /* @__PURE__ */ M(Cde, {
106742
106742
  content: e,
106743
106743
  isStreaming: t,
106744
106744
  thinkingLabel: n,
@@ -106746,13 +106746,13 @@ S(({ content: e, isStreaming: t, thinkingLabel: n, components: r, codeBlockCopyL
106746
106746
  codeBlockCopyLabel: i,
106747
106747
  codeBlockCopiedLabel: a,
106748
106748
  codeBlockTheme: o,
106749
- classNames: Cde
106749
+ classNames: wde
106750
106750
  }));
106751
106751
  var Q9 = {
106752
106752
  container: "_container_1kcxu_2",
106753
106753
  icon: "_icon_1kcxu_25",
106754
106754
  input: "_input_1kcxu_29"
106755
- }, wde = ({ value: e, onChange: t, labels: n, iconSize: r = lc.MD, iconStrokeWidth: i, styles: a }) => {
106755
+ }, Tde = ({ value: e, onChange: t, labels: n, iconSize: r = lc.MD, iconStrokeWidth: i, styles: a }) => {
106756
106756
  let { placeholder: o = "Search", ariaLabel: s, clearLabel: c = "Clear search" } = n ?? {}, { colors: l, containerClassName: u, iconClassName: d, inputClassName: f, clearButtonClassName: p } = a ?? {}, m = s ?? o;
106757
106757
  return /* @__PURE__ */ M("div", {
106758
106758
  role: "search",
@@ -106825,12 +106825,12 @@ S(({ tabs: e, activeTabId: t, onTabChange: n, styles: r }) => {
106825
106825
  })
106826
106826
  });
106827
106827
  });
106828
- var Tde = { icon: "_icon_nu4hc_1" }, Ede = S(({ value: e, onChange: i, labels: a, styles: o }) => {
106829
- let { colors: s, iconClassName: c = Tde.icon, wrapperClassName: l, rowClassName: u } = o ?? {}, d = O(() => t({ "--si-icon": s?.icon }), [s]);
106828
+ var Ede = { icon: "_icon_nu4hc_1" }, Dde = S(({ value: e, onChange: i, labels: a, styles: o }) => {
106829
+ let { colors: s, iconClassName: c = Ede.icon, wrapperClassName: l, rowClassName: u } = o ?? {}, d = O(() => t({ "--si-icon": s?.icon }), [s]);
106830
106830
  return /* @__PURE__ */ M("div", {
106831
106831
  className: n("px-3 py-2", l),
106832
106832
  style: d,
106833
- children: /* @__PURE__ */ M(wde, {
106833
+ children: /* @__PURE__ */ M(Tde, {
106834
106834
  value: e,
106835
106835
  onChange: i,
106836
106836
  labels: {
@@ -106847,14 +106847,14 @@ var Tde = { icon: "_icon_nu4hc_1" }, Ede = S(({ value: e, onChange: i, labels: a
106847
106847
  }
106848
106848
  })
106849
106849
  });
106850
- }), Dde = S(({ label: t, icon: n = c, iconSize: r = 48 }) => /* @__PURE__ */ M(e, {
106850
+ }), Ode = S(({ label: t, icon: n = c, iconSize: r = 48 }) => /* @__PURE__ */ M(e, {
106851
106851
  icon: /* @__PURE__ */ M(n, {
106852
106852
  "aria-hidden": !0,
106853
106853
  size: r,
106854
106854
  stroke: 1
106855
106855
  }),
106856
106856
  label: t
106857
- })), Ode = S(({ label: t, icon: n = u, iconSize: r = 45 }) => /* @__PURE__ */ M(e, {
106857
+ })), kde = S(({ label: t, icon: n = u, iconSize: r = 45 }) => /* @__PURE__ */ M(e, {
106858
106858
  icon: /* @__PURE__ */ M(n, {
106859
106859
  "aria-hidden": !0,
106860
106860
  size: r,
@@ -106863,4 +106863,4 @@ var Tde = { icon: "_icon_nu4hc_1" }, Ede = S(({ value: e, onChange: i, labels: a
106863
106863
  label: t
106864
106864
  }));
106865
106865
  //#endregion
106866
- export { Dde as PanelEmpty, Ode as PanelNoResults, Ede as SearchInput, ie as SidebarOrientation, se as SidebarPanel };
106866
+ export { Ode as PanelEmpty, kde as PanelNoResults, Dde as SearchInput, ie as SidebarOrientation, se as SidebarPanel };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-sidebar",
3
3
  "description": "Resizable sidebar panel shell with header, search, and empty state components",
4
- "version": "1.1.0-dev.162",
4
+ "version": "1.1.0-dev.168",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -17,8 +17,8 @@
17
17
  }
18
18
  },
19
19
  "peerDependencies": {
20
- "@epam/ai-dial-chat-shared": "1.1.0-dev.162",
21
- "@epam/ai-dial-kit": "1.1.0-dev.162",
20
+ "@epam/ai-dial-chat-shared": "1.1.0-dev.168",
21
+ "@epam/ai-dial-kit": "1.1.0-dev.168",
22
22
  "@tabler/icons-react": "^3.44.0",
23
23
  "react": "^19.0.0",
24
24
  "@epam/ai-dial-ui-kit": "^0.13.0-dev.26"