@arcadeai/design-system 3.39.2 → 3.39.4

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 (28) hide show
  1. package/dist/{DialogRoot-DDokfJcO.js → DialogRoot-DPdhw92q.js} +1 -1
  2. package/dist/{DialogTrigger-CFUE8YsM.js → DialogTrigger-C5WbKc3Z.js} +1 -1
  3. package/dist/components/index.js +2 -2
  4. package/dist/components/ui/atoms/alert-dialog.js +1 -1
  5. package/dist/components/ui/atoms/dialog.js +2 -2
  6. package/dist/components/ui/atoms/dropdown-menu.js +2 -2
  7. package/dist/components/ui/atoms/hover-card.js +17 -17
  8. package/dist/components/ui/atoms/index.js +1 -1
  9. package/dist/components/ui/atoms/markdown.js +1 -1
  10. package/dist/components/ui/atoms/popover.js +1 -1
  11. package/dist/components/ui/atoms/sheet.js +2 -2
  12. package/dist/components/ui/atoms/sidebar.js +1 -1
  13. package/dist/components/ui/atoms/tabs.js +5 -5
  14. package/dist/components/ui/index.js +2 -2
  15. package/dist/components/ui/molecules/index.js +1 -1
  16. package/dist/components/ui/molecules/message.js +1 -1
  17. package/dist/components/ui/molecules/prompt-input.d.ts.map +1 -1
  18. package/dist/components/ui/molecules/prompt-input.js +60 -59
  19. package/dist/components/ui/molecules/requirement-badges.js +2 -2
  20. package/dist/components/ui/molecules/toolkit-card.js +1 -1
  21. package/dist/{highlighted-body-OFNGDK62-Df6AJMbs.js → highlighted-body-OFNGDK62-BiqCpm9-.js} +1 -1
  22. package/dist/main.js +2 -2
  23. package/dist/{markdown-B71Eurda.js → markdown-Cv6uZPhi.js} +27 -30
  24. package/dist/mermaid-GHXKKRXX-4WUOeY7t.js +5 -0
  25. package/dist/{toolkit-card-DhpOY80l.js → toolkit-card-Dc104Z9e.js} +1 -1
  26. package/dist/{useRole-N-RCRzo1.js → useRole-BQ8R4yU3.js} +3 -3
  27. package/package.json +1 -1
  28. package/dist/mermaid-GHXKKRXX-BkplG-MI.js +0 -5
@@ -2,7 +2,7 @@
2
2
  import * as x from "react";
3
3
  import { a as h } from "./useRenderElement-DNB2vtF1.js";
4
4
  import { u as P } from "./useOnFirstRender-B4aruaIA.js";
5
- import { u as R, g as D, h as I, i as O } from "./DialogTrigger-CFUE8YsM.js";
5
+ import { u as R, g as D, h as I, i as O } from "./DialogTrigger-C5WbKc3Z.js";
6
6
  import { jsx as v } from "react/jsx-runtime";
7
7
  function k(u) {
8
8
  const {
@@ -4,7 +4,7 @@ import { u as L } from "./useStableCallback-CudqoENs.js";
4
4
  import { u as q, a as z, F as H, I as Y, b as $ } from "./InternalBackdrop-BVEfe6O1.js";
5
5
  import { c as _, i as A, d as J } from "./createBaseUIEventDetails-CqidROtw.js";
6
6
  import { a as Q, b as X, u as Z, p as ee, c as te, d as oe } from "./useSyncedFloatingRootContext-Bc90zSTy.js";
7
- import { u as ne } from "./useRole-N-RCRzo1.js";
7
+ import { u as ne } from "./useRole-BQ8R4yU3.js";
8
8
  import { p as se, q as U, R as re, P as ae, d as S, x as K, y as w, z as ie, C as le, r as ce } from "./popupStateMapping-BT9Y_jIq.js";
9
9
  import { b as ue, c as de } from "./element-DSo91iOi.js";
10
10
  import { f as B, u as I } from "./useRenderElement-DNB2vtF1.js";
@@ -179,7 +179,7 @@ import { InputGroup as ii, InputGroupAddon as li, InputGroupButton as ni, InputG
179
179
  import { JsonHighlight as ui, jsonHighlightVariants as gi } from "./ui/atoms/json-highlight.js";
180
180
  import { Label as ci } from "./ui/atoms/label.js";
181
181
  import { Loader as Si } from "./ui/atoms/loader.js";
182
- import { M as bi } from "../markdown-B71Eurda.js";
182
+ import { M as bi } from "../markdown-Cv6uZPhi.js";
183
183
  import { MobileTooltip as Di, MobileTooltipContent as Mi, MobileTooltipProvider as ki, MobileTooltipTrigger as Bi } from "./ui/atoms/mobile-tooltip.js";
184
184
  import { Popover as Pi, PopoverContent as Ii, PopoverDescription as vi, PopoverHeader as Li, PopoverTitle as yi, PopoverTrigger as wi } from "./ui/atoms/popover.js";
185
185
  import { ProBadge as Ei } from "./ui/atoms/pro-badge.js";
@@ -214,7 +214,7 @@ import { EmptyState as $n } from "./ui/molecules/empty-state.js";
214
214
  import { ErrorState as rf } from "./ui/molecules/error-state.js";
215
215
  import { Message as tf, MessageAction as af, MessageActions as pf, MessageAvatar as mf, MessageContent as lf } from "./ui/molecules/message.js";
216
216
  import { PromptInput as ff, PromptInputAction as xf, PromptInputActions as df, PromptInputTextarea as sf } from "./ui/molecules/prompt-input.js";
217
- import { R as gf, T as Cf } from "../toolkit-card-DhpOY80l.js";
217
+ import { R as gf, T as Cf } from "../toolkit-card-Dc104Z9e.js";
218
218
  import { StepsProgress as Tf } from "./ui/molecules/steps-progress.js";
219
219
  import { SuggestionCard as hf, SuggestionCardSkeleton as bf } from "./ui/molecules/suggestion-card.js";
220
220
  import { ToolAuthorization as Df, ToolAuthorizationArgs as Mf, ToolAuthorizationContent as kf, ToolAuthorizationHeader as Bf, ToolAuthorizationMessage as Gf } from "./ui/molecules/tool-authorization.js";
@@ -4,7 +4,7 @@ import { Button as g } from "./button.js";
4
4
  import { cn as l } from "../../../lib/utils.js";
5
5
  import * as z from "react";
6
6
  import { a as h } from "../../../useRenderElement-DNB2vtF1.js";
7
- import { u as A, g as b, h as v, i as P, D as w, a as y, b as N, c as R, d as I, e as T, f as k } from "../../../DialogTrigger-CFUE8YsM.js";
7
+ import { u as A, g as b, h as v, i as P, D as w, a as y, b as N, c as R, d as I, e as T, f as k } from "../../../DialogTrigger-C5WbKc3Z.js";
8
8
  function O(t) {
9
9
  const {
10
10
  children: e,
@@ -3,8 +3,8 @@ import { jsx as o, jsxs as l } from "react/jsx-runtime";
3
3
  import { XIcon as s } from "lucide-react";
4
4
  import { Button as d } from "./button.js";
5
5
  import { cn as e } from "../../../lib/utils.js";
6
- import { D as g } from "../../../DialogRoot-DDokfJcO.js";
7
- import { D as n, a as u, b as c, c as m, d as f, e as p, f as D } from "../../../DialogTrigger-CFUE8YsM.js";
6
+ import { D as g } from "../../../DialogRoot-DPdhw92q.js";
7
+ import { D as n, a as u, b as c, c as m, d as f, e as p, f as D } from "../../../DialogTrigger-C5WbKc3Z.js";
8
8
  function $({ ...a }) {
9
9
  return /* @__PURE__ */ o(g, { "data-slot": "dialog", ...a });
10
10
  }
@@ -14,7 +14,7 @@ import { x as dt, z as on, L as rn, s as sn, w as an, R as un, P as cn, M as lt,
14
14
  import { u as Rn } from "../../../DirectionContext-BSOheMwC.js";
15
15
  import { r as Ee, c as ae, o as yn, b as ye, s as be, t as st, a as En, e as In, f as ke, l as Pn, i as Nn, q as Tn } from "../../../createBaseUIEventDetails-CqidROtw.js";
16
16
  import { p as wn, c as Sn, a as On, b as kn, u as Dn, d as _n, e as Vn } from "../../../useSyncedFloatingRootContext-Bc90zSTy.js";
17
- import { u as Fn } from "../../../useRole-N-RCRzo1.js";
17
+ import { u as Fn } from "../../../useRole-BQ8R4yU3.js";
18
18
  import { u as An, a as Un, g as Bn } from "../../../getPseudoElementBounds-B4_miSEJ.js";
19
19
  import { u as mt } from "../../../useControlled-Sx-_x7Sz.js";
20
20
  import { b as Gn } from "../../../detectBrowser-Dn2N72k1.js";
@@ -32,8 +32,8 @@ import * as at from "react-dom";
32
32
  import { o as De } from "../../../owner-rKN292Q9.js";
33
33
  import { C as Jn } from "../../../CompositeItem-CniPsjzP.js";
34
34
  import { i as Qn, n as Zn, m as eo } from "../../../floating-ui.utils.dom-jr2suqy2.js";
35
- import { u as to } from "../../../useFocus-Aj9ShMQu.js";
36
35
  import { c as Se } from "../../../element-DSo91iOi.js";
36
+ import { u as to } from "../../../useFocus-Aj9ShMQu.js";
37
37
  const Ae = /* @__PURE__ */ n.createContext(void 0);
38
38
  process.env.NODE_ENV !== "production" && (Ae.displayName = "MenuPositionerContext");
39
39
  function Me(e) {
@@ -7,8 +7,8 @@ import { u as ee } from "../../../useOnFirstRender-B4aruaIA.js";
7
7
  import { f as N, a as te, u as b } from "../../../useRenderElement-DNB2vtF1.js";
8
8
  import { b as H, t as oe, a as ne, e as re, c as se, i as ie } from "../../../createBaseUIEventDetails-CqidROtw.js";
9
9
  import * as ae from "react-dom";
10
- import { p as de, u as ce, c as ue, a as pe, b as le, d as ge } from "../../../useSyncedFloatingRootContext-Bc90zSTy.js";
11
- import { R as fe, P as me, d as B, o as Ce, p as ve, q as Pe, r as we, s as he, v as Se, w as ye, x as z } from "../../../popupStateMapping-BT9Y_jIq.js";
10
+ import { R as de, P as ce, d as B, o as ue, p as pe, q as le, r as ge, s as fe, v as me, w as Ce, x as z } from "../../../popupStateMapping-BT9Y_jIq.js";
11
+ import { p as ve, u as Pe, c as we, a as he, b as Se, d as ye } from "../../../useSyncedFloatingRootContext-Bc90zSTy.js";
12
12
  import { F as Re } from "../../../FloatingPortalLite-BHsRx4XN.js";
13
13
  import { u as Te, a as Oe, g as W } from "../../../getDisabledMountTransitionStyles-fmnaQYVj.js";
14
14
  import { u as Ee } from "../../../useStableCallback-CudqoENs.js";
@@ -25,11 +25,11 @@ function x(t) {
25
25
  return e;
26
26
  }
27
27
  const Ae = 600, Y = 300, Ue = {
28
- ...de,
28
+ ...ve,
29
29
  instantType: B((t) => t.instantType),
30
30
  hasViewport: B((t) => t.hasViewport)
31
31
  };
32
- class V extends fe {
32
+ class V extends de {
33
33
  constructor(e) {
34
34
  super({
35
35
  ..._e(),
@@ -38,7 +38,7 @@ class V extends fe {
38
38
  popupRef: /* @__PURE__ */ s.createRef(),
39
39
  onOpenChange: void 0,
40
40
  onOpenChangeComplete: void 0,
41
- triggerElements: new me(),
41
+ triggerElements: new ce(),
42
42
  closeDelayRef: {
43
43
  current: Y
44
44
  }
@@ -61,7 +61,7 @@ class V extends fe {
61
61
  a ? ae.flushSync(m) : m();
62
62
  };
63
63
  static useStore(e, n) {
64
- const i = te(() => new V(n)).current, a = e ?? i, p = ce({
64
+ const i = te(() => new V(n)).current, a = e ?? i, p = Pe({
65
65
  popupStore: a,
66
66
  onOpenChange: a.setOpen
67
67
  });
@@ -70,7 +70,7 @@ class V extends fe {
70
70
  }
71
71
  function _e() {
72
72
  return {
73
- ...ue(),
73
+ ...we(),
74
74
  instantType: void 0,
75
75
  hasViewport: !1
76
76
  };
@@ -99,10 +99,10 @@ function k(t) {
99
99
  });
100
100
  }), o.useControlledProp("openProp", e), o.useControlledProp("triggerIdProp", m), o.useContextCallback("onOpenChange", i), o.useContextCallback("onOpenChangeComplete", a);
101
101
  const C = o.useState("open"), c = o.useState("activeTriggerId"), v = o.useState("payload");
102
- pe(o);
102
+ he(o);
103
103
  const {
104
104
  forceUnmount: w
105
- } = le(C, o);
105
+ } = Se(C, o);
106
106
  L(() => {
107
107
  C && c == null && o.set("payload", void 0);
108
108
  }, [o, c, C]);
@@ -113,11 +113,11 @@ function k(t) {
113
113
  unmount: w,
114
114
  close: S
115
115
  }), [w, S]);
116
- const y = o.useState("floatingRootContext"), R = ve(y), {
116
+ const y = o.useState("floatingRootContext"), R = pe(y), {
117
117
  getReferenceProps: g,
118
118
  getTriggerProps: h,
119
119
  getFloatingProps: T
120
- } = Pe([R]), P = s.useMemo(() => g(), [g]), O = s.useMemo(() => h(), [h]), E = s.useMemo(() => T(), [T]);
120
+ } = le([R]), P = s.useMemo(() => g(), [g]), O = s.useMemo(() => h(), [h]), E = s.useMemo(() => T(), [T]);
121
121
  return o.useSyncedValues({
122
122
  activeTriggerProps: P,
123
123
  inactiveTriggerProps: O,
@@ -132,7 +132,7 @@ function k(t) {
132
132
  function Fe(t) {
133
133
  return x(!0) ? /* @__PURE__ */ f(k, {
134
134
  ...t
135
- }) : /* @__PURE__ */ f(Ce, {
135
+ }) : /* @__PURE__ */ f(ue, {
136
136
  children: /* @__PURE__ */ f(k, {
137
137
  ...t
138
138
  })
@@ -182,7 +182,7 @@ const q = /* @__PURE__ */ s.forwardRef(function(e, n) {
182
182
  const v = Me(m), w = c.useState("isTriggerActive", v), S = c.useState("isOpenedByTrigger", v), y = c.useState("floatingRootContext"), R = s.useRef(null), g = p ?? Ae, h = r ?? Y, {
183
183
  registerTrigger: T,
184
184
  isMountedByThisTrigger: P
185
- } = ge(v, R, c, {
185
+ } = ye(v, R, c, {
186
186
  payload: d
187
187
  });
188
188
  L(() => {
@@ -209,7 +209,7 @@ const q = /* @__PURE__ */ s.forwardRef(function(e, n) {
209
209
  props: [O, E.reference, D, {
210
210
  id: v
211
211
  }, o],
212
- stateAttributesMapping: we
212
+ stateAttributesMapping: ge
213
213
  });
214
214
  });
215
215
  process.env.NODE_ENV !== "production" && (q.displayName = "PreviewCardTrigger");
@@ -236,9 +236,9 @@ const K = /* @__PURE__ */ s.forwardRef(function(e, n) {
236
236
  arrowPadding: v = 5,
237
237
  sticky: w = !1,
238
238
  disableAnchorTracking: S = !1,
239
- collisionAvoidance: y = he,
239
+ collisionAvoidance: y = fe,
240
240
  ...R
241
- } = e, g = x(), h = Be(), T = Se(), P = g.useState("open"), O = g.useState("mounted"), E = g.useState("floatingRootContext"), I = g.useState("instantType"), D = g.useState("transitionStatus"), _ = g.useState("hasViewport"), u = Te({
241
+ } = e, g = x(), h = Be(), T = me(), P = g.useState("open"), O = g.useState("mounted"), E = g.useState("floatingRootContext"), I = g.useState("instantType"), D = g.useState("transitionStatus"), _ = g.useState("hasViewport"), u = Te({
242
242
  anchor: p,
243
243
  floatingRootContext: E,
244
244
  positionMethod: r,
@@ -286,7 +286,7 @@ const K = /* @__PURE__ */ s.forwardRef(function(e, n) {
286
286
  });
287
287
  return /* @__PURE__ */ f(U.Provider, {
288
288
  value: X,
289
- children: /* @__PURE__ */ f(ye, {
289
+ children: /* @__PURE__ */ f(Ce, {
290
290
  id: T,
291
291
  children: Z
292
292
  })
@@ -179,7 +179,7 @@ import { InputGroup as ii, InputGroupAddon as fi, InputGroupButton as xi, InputG
179
179
  import { JsonHighlight as gi, jsonHighlightVariants as si } from "./json-highlight.js";
180
180
  import { Label as Ci } from "./label.js";
181
181
  import { Loader as Si } from "./loader.js";
182
- import { M as Ti } from "../../../markdown-B71Eurda.js";
182
+ import { M as Ti } from "../../../markdown-Cv6uZPhi.js";
183
183
  import { MobileTooltip as Mi, MobileTooltipContent as Ai, MobileTooltipProvider as Gi, MobileTooltipTrigger as Bi } from "./mobile-tooltip.js";
184
184
  import { Popover as Ii, PopoverContent as Pi, PopoverDescription as vi, PopoverHeader as wi, PopoverTitle as yi, PopoverTrigger as Li } from "./popover.js";
185
185
  import { ProBadge as Vi } from "./pro-badge.js";
@@ -1,5 +1,5 @@
1
1
  import "react/jsx-runtime";
2
- import { M as t } from "../../../markdown-B71Eurda.js";
2
+ import { M as t } from "../../../markdown-Cv6uZPhi.js";
3
3
  import "react";
4
4
  export {
5
5
  t as Markdown
@@ -11,7 +11,7 @@ import { u as Ne } from "../../../useOnMount-JHtE6teb.js";
11
11
  import { R as Fe, P as Me, A as ke, d as R, o as we, p as De, q as le, u as Ve, B as _e, r as Ae, C as Be, E as He, j as Ue, G as Ge, k as Le, i as ce, z as Ke, s as ze, v as je, w as $e, x as de } from "../../../popupStateMapping-BT9Y_jIq.js";
12
12
  import { p as Ye, c as qe, a as We, b as Je, u as Qe, d as Xe } from "../../../useSyncedFloatingRootContext-Bc90zSTy.js";
13
13
  import { b as q, a as Q, e as Ze, f as X, c as Z, i as et } from "../../../createBaseUIEventDetails-CqidROtw.js";
14
- import { u as tt } from "../../../useRole-N-RCRzo1.js";
14
+ import { u as tt } from "../../../useRole-BQ8R4yU3.js";
15
15
  import { u as ee } from "../../../useStableCallback-CudqoENs.js";
16
16
  import { a as ot } from "../../../useButton-JYPKQKj4.js";
17
17
  import { u as te } from "../../../useBaseUiId-C8Dq0BQq.js";
@@ -3,8 +3,8 @@ import { jsx as e, jsxs as i } from "react/jsx-runtime";
3
3
  import { XIcon as n } from "lucide-react";
4
4
  import { Button as g } from "./button.js";
5
5
  import { cn as s } from "../../../lib/utils.js";
6
- import { D as m } from "../../../DialogRoot-DDokfJcO.js";
7
- import { D as o, a as c, b as h, e as f, f as p, d as u, c as x } from "../../../DialogTrigger-CFUE8YsM.js";
6
+ import { D as m } from "../../../DialogRoot-DPdhw92q.js";
7
+ import { D as o, a as c, b as h, e as f, f as p, d as u, c as x } from "../../../DialogTrigger-C5WbKc3Z.js";
8
8
  function C({ ...t }) {
9
9
  return /* @__PURE__ */ e(m, { "data-slot": "sheet", ...t });
10
10
  }
@@ -216,7 +216,7 @@ function be({ className: e, ...a }) {
216
216
  "main",
217
217
  {
218
218
  className: r(
219
- "relative flex w-full flex-1 flex-col bg-background md:peer-data-[variant=inset]:peer-data-collapsed:ml-2 md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",
219
+ "relative flex w-full min-w-0 flex-1 flex-col bg-background md:peer-data-[variant=inset]:peer-data-collapsed:ml-2 md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",
220
220
  e
221
221
  ),
222
222
  "data-slot": "sidebar-inset",
@@ -17,8 +17,8 @@ import { A as vt, C as mt } from "../../../CompositeRoot-Dy-5A-Je.js";
17
17
  import { o as J } from "../../../owner-rKN292Q9.js";
18
18
  import { u as ht } from "../../../useCompositeItem-D00ALGkT.js";
19
19
  import { c as Q, n as X } from "../../../createBaseUIEventDetails-CqidROtw.js";
20
- import { a as Tt } from "../../../useButton-JYPKQKj4.js";
21
- import { a as xt, c as Et } from "../../../element-DSo91iOi.js";
20
+ import { a as Tt, c as xt } from "../../../element-DSo91iOi.js";
21
+ import { a as Et } from "../../../useButton-JYPKQKj4.js";
22
22
  const Y = /* @__PURE__ */ e.createContext(void 0);
23
23
  process.env.NODE_ENV !== "production" && (Y.displayName = "TabsRootContext");
24
24
  function W() {
@@ -177,8 +177,8 @@ const at = /* @__PURE__ */ e.forwardRef(function(o, u) {
177
177
  return;
178
178
  const h = i;
179
179
  if (h != null) {
180
- const U = xt(J(h));
181
- if (U && Et(h, U))
180
+ const U = Tt(J(h));
181
+ if (U && xt(h, U))
182
182
  return;
183
183
  }
184
184
  n || S(v);
@@ -186,7 +186,7 @@ const at = /* @__PURE__ */ e.forwardRef(function(o, u) {
186
186
  const {
187
187
  getButtonProps: k,
188
188
  buttonRef: A
189
- } = Tt({
189
+ } = Et({
190
190
  disabled: n,
191
191
  native: b,
192
192
  focusableWhenDisabled: !0
@@ -179,7 +179,7 @@ import { InputGroup as ii, InputGroupAddon as li, InputGroupButton as ni, InputG
179
179
  import { JsonHighlight as ui, jsonHighlightVariants as gi } from "./atoms/json-highlight.js";
180
180
  import { Label as ci } from "./atoms/label.js";
181
181
  import { Loader as Si } from "./atoms/loader.js";
182
- import { M as bi } from "../../markdown-B71Eurda.js";
182
+ import { M as bi } from "../../markdown-Cv6uZPhi.js";
183
183
  import { MobileTooltip as Di, MobileTooltipContent as Mi, MobileTooltipProvider as ki, MobileTooltipTrigger as Bi } from "./atoms/mobile-tooltip.js";
184
184
  import { Popover as Pi, PopoverContent as Ii, PopoverDescription as vi, PopoverHeader as Li, PopoverTitle as yi, PopoverTrigger as wi } from "./atoms/popover.js";
185
185
  import { ProBadge as Ei } from "./atoms/pro-badge.js";
@@ -214,7 +214,7 @@ import { EmptyState as $n } from "./molecules/empty-state.js";
214
214
  import { ErrorState as rf } from "./molecules/error-state.js";
215
215
  import { Message as tf, MessageAction as af, MessageActions as pf, MessageAvatar as mf, MessageContent as lf } from "./molecules/message.js";
216
216
  import { PromptInput as ff, PromptInputAction as xf, PromptInputActions as df, PromptInputTextarea as sf } from "./molecules/prompt-input.js";
217
- import { R as gf, T as Cf } from "../../toolkit-card-DhpOY80l.js";
217
+ import { R as gf, T as Cf } from "../../toolkit-card-Dc104Z9e.js";
218
218
  import { StepsProgress as Tf } from "./molecules/steps-progress.js";
219
219
  import { SuggestionCard as hf, SuggestionCardSkeleton as bf } from "./molecules/suggestion-card.js";
220
220
  import { ToolAuthorization as Df, ToolAuthorizationArgs as Mf, ToolAuthorizationContent as kf, ToolAuthorizationHeader as Bf, ToolAuthorizationMessage as Gf } from "./molecules/tool-authorization.js";
@@ -8,7 +8,7 @@ import { EmptyState as u } from "./empty-state.js";
8
8
  import { ErrorState as h } from "./error-state.js";
9
9
  import { Message as S, MessageAction as I, MessageActions as P, MessageAvatar as z, MessageContent as k } from "./message.js";
10
10
  import { PromptInput as y, PromptInputAction as B, PromptInputActions as E, PromptInputTextarea as H } from "./prompt-input.js";
11
- import { R, T as U } from "../../../toolkit-card-DhpOY80l.js";
11
+ import { R, T as U } from "../../../toolkit-card-Dc104Z9e.js";
12
12
  import { StepsProgress as D } from "./steps-progress.js";
13
13
  import { SuggestionCard as b, SuggestionCardSkeleton as j } from "./suggestion-card.js";
14
14
  import { ToolAuthorization as F, ToolAuthorizationArgs as G, ToolAuthorizationContent as J, ToolAuthorizationHeader as K, ToolAuthorizationMessage as O } from "./tool-authorization.js";
@@ -1,6 +1,6 @@
1
1
  import { jsx as o, jsxs as i } from "react/jsx-runtime";
2
2
  import { Avatar as c, AvatarImage as m, AvatarFallback as l } from "../atoms/avatar.js";
3
- import { M as d } from "../../../markdown-B71Eurda.js";
3
+ import { M as d } from "../../../markdown-Cv6uZPhi.js";
4
4
  import { TooltipProvider as p, Tooltip as f, TooltipTrigger as g, TooltipContent as u } from "../atoms/tooltip.js";
5
5
  import { cn as n } from "../../../lib/utils.js";
6
6
  function N({ children: e, className: t, ...r }) {
@@ -1 +1 @@
1
- {"version":3,"file":"prompt-input.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/molecules/prompt-input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EACL,OAAO,EAIR,MAAM,+BAA+B,CAAC;AA6BvC,MAAM,MAAM,gBAAgB,GAAG;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AAEhC,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,SAAiB,EACjB,SAAe,EACf,KAAK,EACL,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,QAAgB,EAChB,OAAO,EACP,GAAG,KAAK,EACT,EAAE,gBAAgB,2CA8ClB;AAED,MAAM,MAAM,wBAAwB,GAAG;IACrC,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,CAAC;AAE1C,iBAAS,mBAAmB,CAAC,EAC3B,SAAS,EACT,SAAS,EACT,eAAuB,EACvB,GAAG,KAAK,EACT,EAAE,wBAAwB,2CAqE1B;AAED,MAAM,MAAM,uBAAuB,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AAElE,iBAAS,kBAAkB,CAAC,EAC1B,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,uBAAuB,2CAUzB;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC;IAC7B,IAAI,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;CAC5C,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,OAAO,CAAC,CAAC;AAEzC,iBAAS,iBAAiB,CAAC,EACzB,OAAO,EACP,QAAQ,EACR,SAAS,EACT,IAAY,EACZ,GAAG,KAAK,EACT,EAAE,sBAAsB,2CAsBxB;AAED,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,GACpB,CAAC"}
1
+ {"version":3,"file":"prompt-input.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/molecules/prompt-input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EACL,OAAO,EAIR,MAAM,+BAA+B,CAAC;AA6BvC,MAAM,MAAM,gBAAgB,GAAG;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AAEhC,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,SAAiB,EACjB,SAAe,EACf,KAAK,EACL,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,QAAgB,EAChB,OAAO,EACP,GAAG,KAAK,EACT,EAAE,gBAAgB,2CAgDlB;AAED,MAAM,MAAM,wBAAwB,GAAG;IACrC,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,CAAC;AAE1C,iBAAS,mBAAmB,CAAC,EAC3B,SAAS,EACT,SAAS,EACT,eAAuB,EACvB,GAAG,KAAK,EACT,EAAE,wBAAwB,2CAqE1B;AAED,MAAM,MAAM,uBAAuB,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AAElE,iBAAS,kBAAkB,CAAC,EAC1B,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,uBAAuB,2CAUzB;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC;IAC7B,IAAI,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;CAC5C,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,OAAO,CAAC,CAAC;AAEzC,iBAAS,iBAAiB,CAAC,EACzB,OAAO,EACP,QAAQ,EACR,SAAS,EACT,IAAY,EACZ,GAAG,KAAK,EACT,EAAE,sBAAsB,2CAsBxB;AAED,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,GACpB,CAAC"}
@@ -1,9 +1,9 @@
1
- import { jsx as a, jsxs as y } from "react/jsx-runtime";
2
- import w, { createContext as _, useState as P, useRef as k, useLayoutEffect as C, useContext as T } from "react";
3
- import { Textarea as H } from "../atoms/textarea.js";
4
- import { TooltipProvider as I, Tooltip as R, TooltipTrigger as $, TooltipContent as D } from "../atoms/tooltip.js";
1
+ import { jsx as a, jsxs as _ } from "react/jsx-runtime";
2
+ import P, { createContext as k, useState as C, useRef as T, useLayoutEffect as I, useContext as H } from "react";
3
+ import { Textarea as R } from "../atoms/textarea.js";
4
+ import { TooltipProvider as $, Tooltip as D, TooltipTrigger as j, TooltipContent as K } from "../atoms/tooltip.js";
5
5
  import { cn as x } from "../../../lib/utils.js";
6
- const b = _({
6
+ const v = k({
7
7
  isLoading: !1,
8
8
  value: "",
9
9
  setValue: () => {
@@ -11,87 +11,88 @@ const b = _({
11
11
  maxHeight: 240,
12
12
  onSubmit: void 0,
13
13
  disabled: !1,
14
- textareaRef: w.createRef()
14
+ textareaRef: P.createRef()
15
15
  });
16
- function v() {
17
- return T(b);
16
+ function y() {
17
+ return H(v);
18
18
  }
19
- function E({
20
- className: o,
21
- isLoading: r = !1,
19
+ function M({
20
+ className: r,
21
+ isLoading: o = !1,
22
22
  maxHeight: n = 240,
23
23
  value: s,
24
24
  onValueChange: i,
25
- onSubmit: l,
25
+ onSubmit: u,
26
26
  children: e,
27
- disabled: c = !1,
27
+ disabled: p = !1,
28
28
  onClick: d,
29
- ...u
29
+ ...c
30
30
  }) {
31
- const [p, m] = P(s || ""), f = k(null), g = (h) => {
32
- m(h), i?.(h);
33
- }, t = (h) => {
34
- c || f.current?.focus(), d?.(h);
31
+ const [f, m] = C(s || ""), h = T(null), g = (l) => {
32
+ m(l), i?.(l);
33
+ }, t = (l) => {
34
+ const b = l.target, w = b ? l.currentTarget.contains(b) : !1;
35
+ !p && w && h.current?.focus(), d?.(l);
35
36
  };
36
- return /* @__PURE__ */ a(I, { children: /* @__PURE__ */ a(
37
- b.Provider,
37
+ return /* @__PURE__ */ a($, { children: /* @__PURE__ */ a(
38
+ v.Provider,
38
39
  {
39
40
  value: {
40
- isLoading: r,
41
- value: s ?? p,
41
+ isLoading: o,
42
+ value: s ?? f,
42
43
  setValue: i ?? g,
43
44
  maxHeight: n,
44
- onSubmit: l,
45
- disabled: c,
46
- textareaRef: f
45
+ onSubmit: u,
46
+ disabled: p,
47
+ textareaRef: h
47
48
  },
48
49
  children: /* @__PURE__ */ a(
49
50
  "div",
50
51
  {
51
52
  className: x(
52
53
  "cursor-text rounded-lg border border-input bg-background p-2 shadow-xs transition-[box-shadow,border-color] focus-within:border focus-within:border-muted-foreground focus-within:shadow-[0_0_4px_color-mix(in_oklch,var(--ring)_4%,transparent)] dark:focus-within:shadow-[0_0_4px_color-mix(in_oklch,var(--ring)_8%,transparent)]",
53
- o
54
+ r
54
55
  ),
55
56
  "data-slot": "prompt-input",
56
57
  onClick: t,
57
- ...u,
58
+ ...c,
58
59
  children: e
59
60
  }
60
61
  )
61
62
  }
62
63
  ) });
63
64
  }
64
- function L({
65
- className: o,
66
- onKeyDown: r,
65
+ function W({
66
+ className: r,
67
+ onKeyDown: o,
67
68
  disableAutosize: n = !1,
68
69
  ...s
69
70
  }) {
70
- const { value: i, setValue: l, maxHeight: e, onSubmit: c, disabled: d, textareaRef: u } = v(), p = (t) => {
71
+ const { value: i, setValue: u, maxHeight: e, onSubmit: p, disabled: d, textareaRef: c } = y(), f = (t) => {
71
72
  !t || n || (t.style.height = "auto", typeof e == "number" ? t.style.height = `${Math.min(t.scrollHeight, e)}px` : t.style.height = `min(${t.scrollHeight}px, ${e})`);
72
73
  }, m = (t) => {
73
- u.current = t, p(t);
74
+ c.current = t, f(t);
74
75
  };
75
- C(() => {
76
- if (!u.current || n)
76
+ I(() => {
77
+ if (!c.current || n)
77
78
  return;
78
- const t = u.current;
79
+ const t = c.current;
79
80
  t.style.height = "auto", typeof e == "number" ? t.style.height = `${Math.min(t.scrollHeight, e)}px` : t.style.height = `min(${t.scrollHeight}px, ${e})`;
80
81
  }, [i, e, n]);
81
- const f = (t) => {
82
- p(t.target), l(t.target.value);
82
+ const h = (t) => {
83
+ f(t.target), u(t.target.value);
83
84
  }, g = (t) => {
84
- t.key === "Enter" && !t.shiftKey && (t.preventDefault(), d || c?.()), r?.(t);
85
+ t.key === "Enter" && !t.shiftKey && (t.preventDefault(), d || p?.()), o?.(t);
85
86
  };
86
87
  return /* @__PURE__ */ a(
87
- H,
88
+ R,
88
89
  {
89
90
  className: x(
90
91
  "min-h-[56px] w-full resize-none border-none bg-transparent text-foreground shadow-none outline-none focus-visible:ring-0 focus-visible:ring-offset-0 dark:bg-transparent",
91
- o
92
+ r
92
93
  ),
93
94
  "data-slot": "prompt-input-textarea",
94
- onChange: f,
95
+ onChange: h,
95
96
  onKeyDown: g,
96
97
  ref: m,
97
98
  rows: 1,
@@ -100,47 +101,47 @@ function L({
100
101
  }
101
102
  );
102
103
  }
103
- function M({
104
- children: o,
105
- className: r,
104
+ function q({
105
+ children: r,
106
+ className: o,
106
107
  ...n
107
108
  }) {
108
109
  return /* @__PURE__ */ a(
109
110
  "div",
110
111
  {
111
- className: x("flex items-center gap-2", r),
112
+ className: x("flex items-center gap-2", o),
112
113
  "data-slot": "prompt-input-actions",
113
114
  ...n,
114
- children: o
115
+ children: r
115
116
  }
116
117
  );
117
118
  }
118
- function q({
119
- tooltip: o,
120
- children: r,
119
+ function A({
120
+ tooltip: r,
121
+ children: o,
121
122
  className: n,
122
123
  side: s = "top",
123
124
  ...i
124
125
  }) {
125
- const { disabled: l } = v();
126
- return /* @__PURE__ */ y(R, { ...i, children: [
126
+ const { disabled: u } = y();
127
+ return /* @__PURE__ */ _(D, { ...i, children: [
127
128
  /* @__PURE__ */ a(
128
- $,
129
+ j,
129
130
  {
130
- disabled: l,
131
+ disabled: u,
131
132
  onClick: (e) => e.stopPropagation(),
132
133
  onPointerDown: (e) => {
133
134
  e.pointerType !== "touch" && e.preventDefault();
134
135
  },
135
- render: r
136
+ render: o
136
137
  }
137
138
  ),
138
- /* @__PURE__ */ a(D, { className: n, side: s, children: o })
139
+ /* @__PURE__ */ a(K, { className: n, side: s, children: r })
139
140
  ] });
140
141
  }
141
142
  export {
142
- E as PromptInput,
143
- q as PromptInputAction,
144
- M as PromptInputActions,
145
- L as PromptInputTextarea
143
+ M as PromptInput,
144
+ A as PromptInputAction,
145
+ q as PromptInputActions,
146
+ W as PromptInputTextarea
146
147
  };
@@ -6,7 +6,7 @@ import "../atoms/badge.js";
6
6
  import "../atoms/byoc-badge.js";
7
7
  import "../atoms/chart.js";
8
8
  import "../atoms/json-highlight.js";
9
- import "../../../markdown-B71Eurda.js";
9
+ import "../../../markdown-Cv6uZPhi.js";
10
10
  import "../atoms/mobile-tooltip.js";
11
11
  import "../atoms/pro-badge.js";
12
12
  import "../../../react-resizable-panels-BqIpIFl2.js";
@@ -15,7 +15,7 @@ import "../atoms/sidebar.js";
15
15
  import "../atoms/view-tools-control.js";
16
16
  import "./date-time-picker.js";
17
17
  import "./prompt-input.js";
18
- import { O as A, R as b, S as j } from "../../../toolkit-card-DhpOY80l.js";
18
+ import { O as A, R as b, S as j } from "../../../toolkit-card-Dc104Z9e.js";
19
19
  import "./tool-call-accordion.js";
20
20
  import "./tool-card.js";
21
21
  import "../utils/memo.js";
@@ -6,7 +6,7 @@ import "../atoms/card.js";
6
6
  import "../atoms/checkbox.js";
7
7
  import "../atoms/view-tools-control.js";
8
8
  import "../../../lib/utils.js";
9
- import { T as k } from "../../../toolkit-card-DhpOY80l.js";
9
+ import { T as k } from "../../../toolkit-card-Dc104Z9e.js";
10
10
  import "../utils/memo.js";
11
11
  export {
12
12
  k as ToolkitCard
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { R as c, L as f, A as d } from "./markdown-B71Eurda.js";
2
+ import { R as c, L as f, A as d } from "./markdown-Cv6uZPhi.js";
3
3
  import { useContext as p, useState as L, useEffect as N } from "react";
4
4
  import { jsx as x } from "react/jsx-runtime";
5
5
  var A = ({ code: s, language: e, raw: t, className: o, startLine: m, lineNumbers: u, ...n }) => {
package/dist/main.js CHANGED
@@ -179,7 +179,7 @@ import { InputGroup as ii, InputGroupAddon as li, InputGroupButton as ni, InputG
179
179
  import { JsonHighlight as ui, jsonHighlightVariants as gi } from "./components/ui/atoms/json-highlight.js";
180
180
  import { Label as Ti } from "./components/ui/atoms/label.js";
181
181
  import { Loader as Si } from "./components/ui/atoms/loader.js";
182
- import { M as Ai } from "./markdown-B71Eurda.js";
182
+ import { M as Ai } from "./markdown-Cv6uZPhi.js";
183
183
  import { MobileTooltip as Di, MobileTooltipContent as Ii, MobileTooltipProvider as Mi, MobileTooltipTrigger as Pi } from "./components/ui/atoms/mobile-tooltip.js";
184
184
  import { Popover as ki, PopoverContent as Gi, PopoverDescription as Li, PopoverHeader as vi, PopoverTitle as Oi, PopoverTrigger as yi } from "./components/ui/atoms/popover.js";
185
185
  import { ProBadge as wi } from "./components/ui/atoms/pro-badge.js";
@@ -214,7 +214,7 @@ import { EmptyState as $n } from "./components/ui/molecules/empty-state.js";
214
214
  import { ErrorState as rf } from "./components/ui/molecules/error-state.js";
215
215
  import { Message as tf, MessageAction as af, MessageActions as pf, MessageAvatar as mf, MessageContent as lf } from "./components/ui/molecules/message.js";
216
216
  import { PromptInput as ff, PromptInputAction as xf, PromptInputActions as df, PromptInputTextarea as sf } from "./components/ui/molecules/prompt-input.js";
217
- import { R as gf, T as Cf } from "./toolkit-card-DhpOY80l.js";
217
+ import { R as gf, T as Cf } from "./toolkit-card-Dc104Z9e.js";
218
218
  import { StepsProgress as cf } from "./components/ui/molecules/steps-progress.js";
219
219
  import { SuggestionCard as hf, SuggestionCardSkeleton as Af } from "./components/ui/molecules/suggestion-card.js";
220
220
  import { ToolAuthorization as Df, ToolAuthorizationArgs as If, ToolAuthorizationContent as Mf, ToolAuthorizationHeader as Pf, ToolAuthorizationMessage as Bf } from "./components/ui/molecules/tool-authorization.js";
@@ -599,18 +599,18 @@ function Xf(e, t, n) {
599
599
  return Jr(_n("-"));
600
600
  }
601
601
  function Zf({ negate: e }, t, n) {
602
- const { tokens: r, walk: i } = t, a = r[t.nextIndex], s = [Nr()];
603
- let u = Bs(a);
602
+ const { tokens: r, walk: i } = t, a = [Nr()], s = r[t.nextIndex];
603
+ let u = Bs(s);
604
604
  for (; u.type !== "CharacterClassClose"; ) {
605
- if (u.type === "CharacterClassIntersector") s.push(Nr()), t.nextIndex++;
605
+ if (u.type === "CharacterClassIntersector") a.push(Nr()), t.nextIndex++;
606
606
  else {
607
- const l = s.at(-1);
607
+ const l = a.at(-1);
608
608
  l.body.push(i(l, n));
609
609
  }
610
- u = Bs(r[t.nextIndex], a);
610
+ u = Bs(r[t.nextIndex], s);
611
611
  }
612
612
  const o = Nr({ negate: e });
613
- return s.length === 1 ? o.body = s[0].body : (o.kind = "intersection", o.body = s.map((l) => l.body.length === 1 ? l.body[0] : l)), t.nextIndex++, o;
613
+ return a.length === 1 ? o.body = a[0].body : (o.kind = "intersection", o.body = a.map((l) => l.body.length === 1 ? l.body[0] : l)), t.nextIndex++, o;
614
614
  }
615
615
  function Jf({ kind: e, negate: t, value: n }, r) {
616
616
  const { normalizeUnknownPropertyNames: i, skipPropertyNameValidation: a, unicodePropertyMap: s } = r;
@@ -784,7 +784,8 @@ function ei(e) {
784
784
  return e.replace(/[- _]+/g, "").toLowerCase();
785
785
  }
786
786
  function Bs(e, t) {
787
- return An(e, `${t?.type === "Character" && t.value === 93 ? "Empty" : "Unclosed"} character class`);
787
+ const n = t;
788
+ return An(e, `Unclosed character class${n?.type === "Character" && n.value === 93 && n.raw === "]" ? ' (started with "]")' : ""}`);
788
789
  }
789
790
  function Fs(e) {
790
791
  return An(e, "Unclosed group");
@@ -820,12 +821,11 @@ function jn(e, t, n = null) {
820
821
  } }, { type: h } = a, p = t["*"], m = t[h], T = typeof p == "function" ? p : p?.enter, A = typeof m == "function" ? m : m?.enter;
821
822
  if (T?.(d, n), A?.(d, n), !c) switch (h) {
822
823
  case "AbsenceFunction":
823
- case "CapturingGroup":
824
- case "Group":
825
- r(a.body, a);
826
- break;
827
824
  case "Alternative":
825
+ case "CapturingGroup":
828
826
  case "CharacterClass":
827
+ case "Group":
828
+ case "LookaroundAssertion":
829
829
  r(a.body, a);
830
830
  break;
831
831
  case "Assertion":
@@ -840,9 +840,6 @@ function jn(e, t, n = null) {
840
840
  case "CharacterClassRange":
841
841
  i(a.min, a, "min"), i(a.max, a, "max");
842
842
  break;
843
- case "LookaroundAssertion":
844
- r(a.body, a);
845
- break;
846
843
  case "Quantifier":
847
844
  i(a.body, a, "body");
848
845
  break;
@@ -1866,7 +1863,7 @@ var Dh = {
1866
1863
  }
1867
1864
  },
1868
1865
  exit({ node: e }, { openRefs: t }) {
1869
- t.delete(e.number);
1866
+ t.get(e.number) === e && t.delete(e.number);
1870
1867
  }
1871
1868
  },
1872
1869
  Group: {
@@ -20753,7 +20750,7 @@ ${c}` : c;
20753
20750
  let r = this.rules.inline.emStrongLDelim.exec(e);
20754
20751
  if (!(!r || !r[1] && !r[2] && !r[3] && !r[4] || r[4] && n.match(this.rules.other.unicodeAlphaNumeric)) && (!(r[1] || r[3]) || !n || this.rules.inline.punctuation.exec(n))) {
20755
20752
  let i = [...r[0]].length - 1, a, s, u = i, o = 0, l = r[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
20756
- for (l.lastIndex = 0, t = t.slice(-1 * e.length + i); (r = l.exec(t)) != null; ) {
20753
+ for (l.lastIndex = 0, t = t.slice(-1 * e.length + i); (r = l.exec(t)) !== null; ) {
20757
20754
  if (a = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !a) continue;
20758
20755
  if (s = [...a].length, r[3] || r[4]) {
20759
20756
  u += s;
@@ -20789,7 +20786,7 @@ ${c}` : c;
20789
20786
  let r = this.rules.inline.delLDelim.exec(e);
20790
20787
  if (r && (!r[1] || !n || this.rules.inline.punctuation.exec(n))) {
20791
20788
  let i = [...r[0]].length - 1, a, s, u = i, o = this.rules.inline.delRDelim;
20792
- for (o.lastIndex = 0, t = t.slice(-1 * e.length + i); (r = o.exec(t)) != null; ) {
20789
+ for (o.lastIndex = 0, t = t.slice(-1 * e.length + i); (r = o.exec(t)) !== null; ) {
20793
20790
  if (a = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !a || (s = [...a].length, s !== i)) continue;
20794
20791
  if (r[3] || r[4]) {
20795
20792
  u += s;
@@ -20963,11 +20960,11 @@ ${c}` : c;
20963
20960
  let r = t, i = null;
20964
20961
  if (this.tokens.links) {
20965
20962
  let o = Object.keys(this.tokens.links);
20966
- if (o.length > 0) for (; (i = this.tokenizer.rules.inline.reflinkSearch.exec(r)) != null; ) o.includes(i[0].slice(i[0].lastIndexOf("[") + 1, -1)) && (r = r.slice(0, i.index) + "[" + "a".repeat(i[0].length - 2) + "]" + r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));
20963
+ if (o.length > 0) for (; (i = this.tokenizer.rules.inline.reflinkSearch.exec(r)) !== null; ) o.includes(i[0].slice(i[0].lastIndexOf("[") + 1, -1)) && (r = r.slice(0, i.index) + "[" + "a".repeat(i[0].length - 2) + "]" + r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));
20967
20964
  }
20968
- for (; (i = this.tokenizer.rules.inline.anyPunctuation.exec(r)) != null; ) r = r.slice(0, i.index) + "++" + r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
20965
+ for (; (i = this.tokenizer.rules.inline.anyPunctuation.exec(r)) !== null; ) r = r.slice(0, i.index) + "++" + r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
20969
20966
  let a;
20970
- for (; (i = this.tokenizer.rules.inline.blockSkip.exec(r)) != null; ) a = i[2] ? i[2].length : 0, r = r.slice(0, i.index + a) + "[" + "a".repeat(i[0].length - a - 2) + "]" + r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
20967
+ for (; (i = this.tokenizer.rules.inline.blockSkip.exec(r)) !== null; ) a = i[2] ? i[2].length : 0, r = r.slice(0, i.index + a) + "[" + "a".repeat(i[0].length - a - 2) + "]" + r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
20971
20968
  r = this.options.hooks?.emStrongMask?.call({ lexer: this }, r) ?? r;
20972
20969
  let s = !1, u = "";
20973
20970
  for (; t; ) {
@@ -21358,11 +21355,11 @@ ${t}</tr>
21358
21355
  emStrongMask(e) {
21359
21356
  return e;
21360
21357
  }
21361
- provideLexer() {
21362
- return this.block ? Ke.lex : Ke.lexInline;
21358
+ provideLexer(e = this.block) {
21359
+ return e ? Ke.lex : Ke.lexInline;
21363
21360
  }
21364
- provideParser() {
21365
- return this.block ? et.parse : et.parseInline;
21361
+ provideParser(e = this.block) {
21362
+ return e ? et.parse : et.parseInline;
21366
21363
  }
21367
21364
  }, p_ = class {
21368
21365
  defaults = ls();
@@ -21497,16 +21494,16 @@ ${t}</tr>
21497
21494
  if (typeof n > "u" || n === null) return s(new Error("marked(): input parameter is undefined or null"));
21498
21495
  if (typeof n != "string") return s(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(n) + ", string expected"));
21499
21496
  if (a.hooks && (a.hooks.options = a, a.hooks.block = t), a.async) return (async () => {
21500
- let u = a.hooks ? await a.hooks.preprocess(n) : n, o = await (a.hooks ? await a.hooks.provideLexer() : t ? Ke.lex : Ke.lexInline)(u, a), l = a.hooks ? await a.hooks.processAllTokens(o) : o;
21497
+ let u = a.hooks ? await a.hooks.preprocess(n) : n, o = await (a.hooks ? await a.hooks.provideLexer(t) : t ? Ke.lex : Ke.lexInline)(u, a), l = a.hooks ? await a.hooks.processAllTokens(o) : o;
21501
21498
  a.walkTokens && await Promise.all(this.walkTokens(l, a.walkTokens));
21502
- let c = await (a.hooks ? await a.hooks.provideParser() : t ? et.parse : et.parseInline)(l, a);
21499
+ let c = await (a.hooks ? await a.hooks.provideParser(t) : t ? et.parse : et.parseInline)(l, a);
21503
21500
  return a.hooks ? await a.hooks.postprocess(c) : c;
21504
21501
  })().catch(s);
21505
21502
  try {
21506
21503
  a.hooks && (n = a.hooks.preprocess(n));
21507
- let u = (a.hooks ? a.hooks.provideLexer() : t ? Ke.lex : Ke.lexInline)(n, a);
21504
+ let u = (a.hooks ? a.hooks.provideLexer(t) : t ? Ke.lex : Ke.lexInline)(n, a);
21508
21505
  a.hooks && (u = a.hooks.processAllTokens(u)), a.walkTokens && this.walkTokens(u, a.walkTokens);
21509
- let o = (a.hooks ? a.hooks.provideParser() : t ? et.parse : et.parseInline)(u, a);
21506
+ let o = (a.hooks ? a.hooks.provideParser(t) : t ? et.parse : et.parseInline)(u, a);
21510
21507
  return a.hooks && (o = a.hooks.postprocess(o)), o;
21511
21508
  } catch (u) {
21512
21509
  return s(u);
@@ -21684,7 +21681,7 @@ var gd = en(!1), N_ = () => Ce(gd), Es = (...e) => Po(Mo(e)), I_ = (e, t) => {
21684
21681
  for (; t > 0 && e[t - 1] === `
21685
21682
  `; ) t--;
21686
21683
  return e.slice(0, t);
21687
- }, B_ = Do(() => import("./highlighted-body-OFNGDK62-Df6AJMbs.js").then((e) => ({ default: e.HighlightedCodeBlockBody }))), F_ = ({ code: e, language: t, className: n, children: r, isIncomplete: i = !1, startLine: a, lineNumbers: s, ...u }) => {
21684
+ }, B_ = Do(() => import("./highlighted-body-OFNGDK62-BiqCpm9-.js").then((e) => ({ default: e.HighlightedCodeBlockBody }))), F_ = ({ code: e, language: t, className: n, children: r, isIncomplete: i = !1, startLine: a, lineNumbers: s, ...u }) => {
21688
21685
  let o = Q(), l = ce(() => v_(e), [e]), c = ce(() => ({ bg: "transparent", fg: "inherit", tokens: l.split(`
21689
21686
  `).map((d) => [{ content: d, color: "inherit", bgColor: "transparent", htmlStyle: {}, offset: 0 }]) }), [l]);
21690
21687
  return C(bd.Provider, { value: { code: e }, children: J(P_, { isIncomplete: i, language: t, children: [C(M_, { language: t }), r ? C("div", { className: o("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"), children: C("div", { className: o("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"), "data-streamdown": "code-block-actions", children: r }) }) : null, C(Xi, { fallback: C(D_, { className: n, language: t, lineNumbers: s, result: c, startLine: a, ...u }), children: C(B_, { className: n, code: l, language: t, lineNumbers: s, raw: c, startLine: a, ...u }) })] }) });
@@ -22026,7 +22023,7 @@ var gd = en(!1), N_ = () => Ce(gd), Es = (...e) => Po(Mo(e)), I_ = (e, t) => {
22026
22023
  }, sA = ({ children: e, className: t, showControls: n, showCopy: r = !0, showDownload: i = !0, showFullscreen: a = !0, ...s }) => {
22027
22024
  let u = Q(), o = n && r, l = n && i, c = n && a, d = o || l || c;
22028
22025
  return J("div", { className: u("my-4 flex flex-col gap-2 rounded-lg border border-border bg-sidebar p-2"), "data-streamdown": "table-wrapper", children: [d ? J("div", { className: u("flex items-center justify-end gap-1"), children: [o ? C(Ad, {}) : null, l ? C(xd, {}) : null, c ? C(aA, { showCopy: o, showDownload: l, children: e }) : null] }) : null, C("div", { className: u("border-collapse overflow-x-auto overflow-y-auto rounded-md border border-border bg-background"), children: C("table", { className: u("w-full divide-y divide-border", t), "data-streamdown": "table", ...s, children: e }) })] });
22029
- }, uA = /startLine=(\d+)/, oA = /\bnoLineNumbers\b/, lA = Do(() => import("./mermaid-GHXKKRXX-BkplG-MI.js").then((e) => ({ default: e.Mermaid }))), cA = /language-([^\s]+)/;
22026
+ }, uA = /startLine=(\d+)/, oA = /\bnoLineNumbers\b/, lA = Do(() => import("./mermaid-GHXKKRXX-4WUOeY7t.js").then((e) => ({ default: e.Mermaid }))), cA = /language-([^\s]+)/;
22030
22027
  function bi(e, t) {
22031
22028
  if (!(e != null && e.position || t != null && t.position)) return !0;
22032
22029
  if (!(e != null && e.position && t != null && t.position)) return !1;
@@ -0,0 +1,5 @@
1
+ "use client";
2
+ import { p as o } from "./markdown-Cv6uZPhi.js";
3
+ export {
4
+ o as Mermaid
5
+ };
@@ -11,7 +11,7 @@ import { Badge as N } from "./components/ui/atoms/badge.js";
11
11
  import { ByocBadge as U } from "./components/ui/atoms/byoc-badge.js";
12
12
  import "./components/ui/atoms/chart.js";
13
13
  import "./components/ui/atoms/json-highlight.js";
14
- import "./markdown-B71Eurda.js";
14
+ import "./markdown-Cv6uZPhi.js";
15
15
  import "./components/ui/atoms/mobile-tooltip.js";
16
16
  import { ProBadge as _ } from "./components/ui/atoms/pro-badge.js";
17
17
  import "./react-resizable-panels-BqIpIFl2.js";
@@ -1,13 +1,13 @@
1
1
  import * as r from "react";
2
2
  import { a as E } from "./useBaseUiId-C8Dq0BQq.js";
3
3
  import { u as P } from "./popupStateMapping-BT9Y_jIq.js";
4
- import { E as S } from "./useRenderElement-DNB2vtF1.js";
5
- import { g as F } from "./element-DSo91iOi.js";
4
+ import { g as S } from "./element-DSo91iOi.js";
5
+ import { E as F } from "./useRenderElement-DNB2vtF1.js";
6
6
  const y = /* @__PURE__ */ new Map([["select", "listbox"], ["combobox", "listbox"], ["label", !1]]);
7
7
  function $(c, g = {}) {
8
8
  const a = "rootStore" in c ? c.rootStore : c, l = a.useState("open"), u = a.useState("floatingId"), I = a.useState("domReferenceElement"), d = a.useState("floatingElement"), {
9
9
  role: o = "dialog"
10
- } = g, x = E(), s = I?.id || x, t = r.useMemo(() => F(d)?.id || u, [d, u]), e = y.get(o) ?? o, m = P() != null, i = r.useMemo(() => e === "tooltip" || o === "label" ? S : {
10
+ } = g, x = E(), s = I?.id || x, t = r.useMemo(() => S(d)?.id || u, [d, u]), e = y.get(o) ?? o, m = P() != null, i = r.useMemo(() => e === "tooltip" || o === "label" ? F : {
11
11
  "aria-haspopup": e === "alertdialog" ? "dialog" : e,
12
12
  "aria-expanded": "false",
13
13
  ...e === "listbox" && {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arcadeai/design-system",
3
3
  "private": false,
4
- "version": "3.39.2",
4
+ "version": "3.39.4",
5
5
  "type": "module",
6
6
  "main": "./dist/main.js",
7
7
  "types": "./dist/main.d.ts",
@@ -1,5 +0,0 @@
1
- "use client";
2
- import { p as o } from "./markdown-B71Eurda.js";
3
- export {
4
- o as Mermaid
5
- };