@epam/ai-dial-sidebar 1.1.0-dev.179 → 1.1.0-dev.182

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.
@@ -1,6 +1,6 @@
1
- import { l as e, t } from "./index-B4fgly61-TIQWMLas-qEOnbKQH.js";
1
+ import { l as e, t } from "./index-BU5Qz5JM-BXYoqD6l-L4brbFsj.js";
2
2
  import n, { memo as r, useCallback as i, useEffect as a, useRef as o, useState as s } from "react";
3
- //#region ../ai-dial-kit/dist/JsonEditor-B5vfpxzh-DChCtV2-.js
3
+ //#region ../ai-dial-kit/dist/JsonEditor-oVyN8mBH-4_lVc0wh.js
4
4
  function c(e, t) {
5
5
  (t == null || t > e.length) && (t = e.length);
6
6
  for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
@@ -3,7 +3,7 @@ import t, { Children as n, Component as r, PureComponent as i, Suspense as a, cl
3
3
  import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
4
4
  import * as w from "react-dom";
5
5
  import T, { createPortal as E, flushSync as D } from "react-dom";
6
- //#region ../ai-dial-kit/dist/index-B4fgly61-TIQWMLas.js
6
+ //#region ../ai-dial-kit/dist/index-BU5Qz5JM-BXYoqD6l.js
7
7
  var O = Object.create, k = Object.defineProperty, A = Object.getOwnPropertyDescriptor, j = Object.getOwnPropertyNames, M = Object.getPrototypeOf, N = Object.prototype.hasOwnProperty, P = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), F = (e, t, n, r) => {
8
8
  if (t && typeof t == "object" || typeof t == "function") for (var i = j(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !N.call(e, s) && s !== n && k(e, s, {
9
9
  get: ((e) => t[e]).bind(null, s),
@@ -44024,11 +44024,11 @@ var PB = class extends fz {
44024
44024
  icon: /* @__PURE__ */ z.jsx(rt, { size: n }),
44025
44025
  ...i
44026
44026
  });
44027
- function XB(e, t = "menu", n = !1) {
44028
- let [r, i] = b(!1), { refs: a, floatingStyles: o, context: s } = ro({
44027
+ function XB(e, t = "menu", n = !1, r) {
44028
+ let [i, a] = b(!1), { refs: o, floatingStyles: s, context: c } = ro({
44029
44029
  placement: "right-start",
44030
- open: r,
44031
- onOpenChange: i,
44030
+ open: i,
44031
+ onOpenChange: a,
44032
44032
  whileElementsMounted: mi,
44033
44033
  middleware: [
44034
44034
  ki({
@@ -44038,8 +44038,8 @@ function XB(e, t = "menu", n = !1) {
44038
44038
  ji({ padding: e }),
44039
44039
  Ai({ padding: e })
44040
44040
  ]
44041
- }), { getReferenceProps: c, getFloatingProps: l } = so([
44042
- da(s, {
44041
+ }), { getReferenceProps: l, getFloatingProps: u } = so([
44042
+ da(c, {
44043
44043
  enabled: !n,
44044
44044
  move: !1,
44045
44045
  delay: {
@@ -44047,20 +44047,20 @@ function XB(e, t = "menu", n = !1) {
44047
44047
  close: 80
44048
44048
  }
44049
44049
  }),
44050
- Za(s, { enabled: !n }),
44051
- to(s, { bubbles: {
44050
+ Za(c, { enabled: !n }),
44051
+ to(c, { bubbles: {
44052
44052
  escapeKey: !1,
44053
44053
  outsidePress: !0
44054
44054
  } }),
44055
- lo(s, { role: t })
44055
+ lo(c, { role: t })
44056
44056
  ]);
44057
44057
  return {
44058
- isOpen: r,
44059
- refs: a,
44060
- floatingStyles: o,
44061
- context: s,
44062
- getReferenceProps: c,
44063
- getFloatingProps: l
44058
+ isOpen: i,
44059
+ refs: o,
44060
+ floatingStyles: s,
44061
+ context: c,
44062
+ getReferenceProps: l,
44063
+ getFloatingProps: u
44064
44064
  };
44065
44065
  }
44066
44066
  var ZB = "rounded bg-layer-0 shadow", QB = ({ refs: e, floatingStyles: t, context: n, getFloatingProps: r, role: i, surfaceClassName: a, className: o, children: s }) => /* @__PURE__ */ z.jsx(ja, { children: /* @__PURE__ */ z.jsx(Ha, {
@@ -58205,7 +58205,7 @@ var HG = ({ title: e, description: t, summary: n, errorCount: r = 0, level: i =
58205
58205
  }, $G = ({ value: e, onChange: t, theme: n = SG.dark, height: r = 240 }) => {
58206
58206
  let { readonly: i } = OG(), [a, o] = b(null), [s, c] = b(() => JSON.stringify(e, null, 2));
58207
58207
  return m(() => {
58208
- typeof window < "u" && import("./JsonEditor-B5vfpxzh-DChCtV2--CY4WZlx-.js").then((e) => {
58208
+ typeof window < "u" && import("./JsonEditor-oVyN8mBH-4_lVc0wh-B2lYzGFt.js").then((e) => {
58209
58209
  o(() => e.DialJsonEditor);
58210
58210
  });
58211
58211
  }, []), /* @__PURE__ */ z.jsx("div", {
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as e, c as t, i as n, n as r, o as i, r as a, s as o } from "./index-B4fgly61-TIQWMLas-qEOnbKQH.js";
1
+ import { a as e, c as t, i as n, n as r, o as i, r as a, s as o } from "./index-BU5Qz5JM-BXYoqD6l-L4brbFsj.js";
2
2
  import { PanelEmptyState as s, buildCssVars as c, mergeClasses as l } from "@epam/ai-dial-chat-shared";
3
3
  import { DIAL_ICON_SIZE as u, DialConditionalResizableContainer as d, DialEllipsisTooltip as f, GhostIconButton as p, ResizableContainerSide as m } from "@epam/ai-dial-ui-kit";
4
4
  import { IconMessageCircle as h, IconX as g, IconZoomCancel as _ } from "@tabler/icons-react";
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.179",
4
+ "version": "1.1.0-dev.182",
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.179",
21
- "@epam/ai-dial-kit": "1.1.0-dev.179",
20
+ "@epam/ai-dial-chat-shared": "1.1.0-dev.182",
21
+ "@epam/ai-dial-kit": "1.1.0-dev.182",
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"