@epam/ai-dial-skills 1.2.0-dev.148 → 1.2.0-dev.152

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 +1 @@
1
- {"version":3,"file":"ChatSkill.d.ts","sourceRoot":"","sources":["../../../src/components/ChatSkill/ChatSkill.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAqC,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAEnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAGpE;;;;GAIG;AACH,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CAsGxC,CAAC"}
1
+ {"version":3,"file":"ChatSkill.d.ts","sourceRoot":"","sources":["../../../src/components/ChatSkill/ChatSkill.tsx"],"names":[],"mappings":"AAEA,OAAO,EAIL,KAAK,EAAE,EAER,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAGpE;;;;GAIG;AACH,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CAqHxC,CAAC"}
@@ -7,5 +7,5 @@ import { UseSkillSelectorOverlayOptions, UseSkillSelectorOverlayResult } from '.
7
7
  * listing data, favorites state, labels, the deployment-support signal, and
8
8
  * the modal/panel components.
9
9
  */
10
- export declare const useSkillSelectorOverlay: ({ isEnabled, isSkillsSupported, skills, sharedWithMe, publicSkills, favoriteIds, onToggleFavorite, labels, historyChipLabelClassName, renderCatalogContent, detailsPanelComponent: DetailsPanelComponent, }: UseSkillSelectorOverlayOptions) => UseSkillSelectorOverlayResult;
10
+ export declare const useSkillSelectorOverlay: ({ isEnabled, isSkillsSupported, skills, sharedWithMe, publicSkills, favoriteIds, onToggleFavorite, labels, historyChipLabelClassName, activeMentionDetailsTrigger, renderCatalogContent, detailsPanelComponent: DetailsPanelComponent, }: UseSkillSelectorOverlayOptions) => UseSkillSelectorOverlayResult;
11
11
  //# sourceMappingURL=useSkillSelectorOverlay.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSkillSelectorOverlay.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSkillSelectorOverlay/useSkillSelectorOverlay.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EACV,8BAA8B,EAC9B,6BAA6B,EAC9B,MAAM,qCAAqC,CAAC;AAK7C;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,GAAI,6MAYrC,8BAA8B,KAAG,6BAyZnC,CAAC"}
1
+ {"version":3,"file":"useSkillSelectorOverlay.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSkillSelectorOverlay/useSkillSelectorOverlay.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EACV,8BAA8B,EAC9B,6BAA6B,EAC9B,MAAM,qCAAqC,CAAC;AAK7C;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,GAAI,0OAarC,8BAA8B,KAAG,6BA2ZnC,CAAC"}
package/index.d.ts CHANGED
@@ -10,7 +10,7 @@ export { buildFavoriteSkillItem } from './models/favorite-skill-item';
10
10
  export { matchSkillMentions } from './utils/skill-mention-matching';
11
11
  export { getSkillFallbackName } from './utils/skill-url';
12
12
  export { diffTextChange, findMentionAtCaret, insertAnchor, reconcileAnchors, } from './utils/skill-mention-tracking';
13
- export type { ChatSkillLabels, ChatSkillProps, } from './models/chat-skill-props';
13
+ export type { ChatSkillDetailsTrigger, ChatSkillLabels, ChatSkillProps, } from './models/chat-skill-props';
14
14
  export type { FavoriteSkillItem, SkillListingEntry, } from './models/favorite-skill-item';
15
15
  export type { FavoriteSkillsPanelColors, FavoriteSkillsPanelLabels, FavoriteSkillsPanelProps, } from './models/favorite-skills-panel-props';
16
16
  export type { SkillArchiveUploadDialogLabels, SkillArchiveUploadDialogProps, } from './models/skill-archive-upload-dialog-props';
package/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],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,iBAAiB,GAClB,MAAM,8BAA8B,CAAC;AACtC,YAAY,EACV,yBAAyB,EACzB,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,sCAAsC,CAAC;AAC9C,YAAY,EACV,8BAA8B,EAC9B,6BAA6B,GAC9B,MAAM,4CAA4C,CAAC;AACpD,YAAY,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AACjF,YAAY,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAC1F,YAAY,EAAE,4BAA4B,EAAE,MAAM,2CAA2C,CAAC;AAC9F,YAAY,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACxE,YAAY,EACV,+BAA+B,EAC/B,0BAA0B,EAC1B,8BAA8B,EAC9B,6BAA6B,GAC9B,MAAM,iCAAiC,CAAC;AACzC,YAAY,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACxF,YAAY,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,YAAY,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,oDAAoD,CAAC;AACxF,YAAY,EACV,uBAAuB,EACvB,wBAAwB,EACxB,wBAAwB,GACzB,MAAM,qCAAqC,CAAC"}
package/index.js CHANGED
@@ -1,25 +1,25 @@
1
1
  import { DeploymentIcon as e, buildCssVars as t, isSkillSelectionUnsupported as n, mergeClasses as r } from "@epam/ai-dial-chat-shared";
2
- import { BASE_ICON_SIZE as i, Button as a, ButtonAppearance as o, ButtonVariant as s, DIAL_ICON_SIZE as c, DIAL_KIT_ICON_STROKE as l, Dropdown as u, FileDropzone as d, GhostButton as f, Highlight as p, Input as m, InteractiveTooltip as h, Popup as g, PopupSize as _, Search as v, ToggleIconButton as ee, TooltipPlacement as y } from "@epam/ai-dial-ui-kit";
3
- import { Suspense as b, useCallback as x, useEffect as te, useId as S, useLayoutEffect as C, useMemo as w, useRef as T, useState as E } from "react";
4
- import { IconBlocks as D, IconChevronDown as ne, IconEye as O, IconStarFilled as k, IconX as A } from "@tabler/icons-react";
5
- import { Fragment as j, jsx as M, jsxs as N } from "react/jsx-runtime";
6
- import { DetailsPanel as P } from "@epam/ai-dial-catalog";
2
+ import { BASE_ICON_SIZE as i, Button as a, ButtonAppearance as o, ButtonVariant as s, DIAL_ICON_SIZE as c, DIAL_KIT_ICON_STROKE as l, Dropdown as u, FileDropzone as d, GhostButton as f, Highlight as p, Input as m, InteractiveTooltip as h, Popup as g, PopupSize as _, Search as v, ToggleIconButton as y, TooltipPlacement as b } from "@epam/ai-dial-ui-kit";
3
+ import { Suspense as x, useCallback as S, useEffect as C, useId as ee, useLayoutEffect as w, useMemo as T, useRef as E, useState as D } from "react";
4
+ import { IconBlocks as O, IconChevronDown as te, IconEye as ne, IconStarFilled as k, IconX as re } from "@tabler/icons-react";
5
+ import { Fragment as A, jsx as j, jsxs as M } from "react/jsx-runtime";
6
+ import { DetailsPanel as N } from "@epam/ai-dial-catalog";
7
7
  //#region src/constants/public-class-names.ts
8
- var F = {
8
+ var P = {
9
9
  selectorField: "dial-skills-selector-field",
10
10
  favoritesPanel: "dial-skills-favorites-panel",
11
11
  chip: "dial-skills-chip"
12
- }, I = ({ description: e, unsupportedMessage: t, viewDetailsLabel: n = "View details", onViewDetails: r, viewDetailsTabIndex: i }) => t == null ? /* @__PURE__ */ N("div", {
12
+ }, F = ({ description: e, unsupportedMessage: t, viewDetailsLabel: n = "View details", onViewDetails: r, viewDetailsTabIndex: i }) => t == null ? /* @__PURE__ */ M("div", {
13
13
  className: "flex flex-col gap-3",
14
- children: [e != null && e !== "" && /* @__PURE__ */ M("p", {
14
+ children: [e != null && e !== "" && /* @__PURE__ */ j("p", {
15
15
  className: "text-start",
16
16
  children: e
17
- }), /* @__PURE__ */ M(a, {
17
+ }), /* @__PURE__ */ j(a, {
18
18
  variant: s.Primary,
19
19
  appearance: o.Link,
20
20
  className: "h-[24px] self-start",
21
21
  label: n,
22
- iconBefore: /* @__PURE__ */ M(O, {
22
+ iconBefore: /* @__PURE__ */ j(ne, {
23
23
  size: c.SM,
24
24
  stroke: l,
25
25
  "aria-hidden": !0
@@ -27,42 +27,48 @@ var F = {
27
27
  onClick: r,
28
28
  tabIndex: i
29
29
  })]
30
- }) : /* @__PURE__ */ M("p", {
30
+ }) : /* @__PURE__ */ j("p", {
31
31
  className: "text-start",
32
32
  children: t
33
- }), L = ({ name: e, path: t, description: n, isUnsupported: i = !1, labelClassName: a = "dial-body-paragraph-text text-accent", unsupportedLabelClassName: o = "text-error", unsupportedClassName: s = "bg-error", onViewDetails: c, labels: l = {} }) => {
34
- let { viewDetailsLabel: u = "View details", unsupportedTooltipLabel: d = "Selected model does not support skills. Remove the skill or select different model to proceed." } = l, [f, p] = E(0), m = () => {
35
- p((e) => e + 1), c(t);
36
- }, g = T(null), [_, v] = E(null);
37
- return C(() => {
38
- v(g.current?.getBoundingClientRect().width ?? null);
39
- }, [a]), /* @__PURE__ */ M(h, {
33
+ }), I = ({ name: e, path: t, description: n, isUnsupported: i = !1, labelClassName: a = "dial-body-paragraph-text text-accent", unsupportedLabelClassName: o = "text-error", unsupportedClassName: s = "bg-error", detailsTrigger: c = "hover", onViewDetails: l, labels: u = {} }) => {
34
+ let { viewDetailsLabel: d = "View details", unsupportedTooltipLabel: f = "Selected model does not support skills. Remove the skill or select different model to proceed." } = u, [p, m] = D(0), [g, _] = D(!1), v = c === "click", y = () => {
35
+ _(!1), m((e) => e + 1), l(t);
36
+ }, x = (e) => {
37
+ !v || e.key !== "Enter" && e.key !== " " || (e.preventDefault(), _(!0));
38
+ }, S = E(null), [C, ee] = D(null);
39
+ return w(() => {
40
+ ee(S.current?.getBoundingClientRect().width ?? null);
41
+ }, [a]), /* @__PURE__ */ j(h, {
40
42
  asChild: !0,
41
- placement: y.Top,
43
+ placement: b.Top,
44
+ open: v ? g : void 0,
45
+ onOpenChange: v ? _ : void 0,
42
46
  contentClassName: "max-w-[550px]",
43
- content: i ? /* @__PURE__ */ M(I, { unsupportedMessage: d }) : /* @__PURE__ */ M(I, {
47
+ content: i ? /* @__PURE__ */ j(F, { unsupportedMessage: f }) : /* @__PURE__ */ j(F, {
44
48
  description: n,
45
- viewDetailsLabel: u,
46
- onViewDetails: m
49
+ viewDetailsLabel: d,
50
+ onViewDetails: y
47
51
  }),
48
- children: /* @__PURE__ */ N("span", {
52
+ children: /* @__PURE__ */ M("span", {
49
53
  tabIndex: 0,
50
- className: r("relative -me-1 -ms-1 inline-block cursor-pointer select-text rounded-full pe-1 ps-1", i ? s : "hover:bg-info focus-visible:bg-info active:bg-info", i ? r(a, o) : a, F.chip),
54
+ className: r("relative -me-1 -ms-1 inline-block cursor-pointer select-text rounded-full pe-1 ps-1", i ? s : "hover:bg-info focus-visible:bg-info active:bg-info", i ? r(a, o) : a, P.chip),
51
55
  "aria-label": `/${e}`,
52
- children: [/* @__PURE__ */ M("span", {
53
- ref: g,
56
+ onClick: v ? () => _(!0) : void 0,
57
+ onKeyDown: x,
58
+ children: [/* @__PURE__ */ j("span", {
59
+ ref: S,
54
60
  "aria-hidden": !0,
55
61
  className: "inset-inline-start-0 pointer-events-none absolute top-0 select-none",
56
62
  children: "/"
57
- }), /* @__PURE__ */ M("span", {
63
+ }), /* @__PURE__ */ j("span", {
58
64
  "aria-hidden": !0,
59
65
  className: "select-none",
60
- style: { paddingInlineStart: _ ?? void 0 },
66
+ style: { paddingInlineStart: C ?? void 0 },
61
67
  children: e
62
68
  })]
63
69
  })
64
- }, f);
65
- }, R = {
70
+ }, p);
71
+ }, L = {
66
72
  row: "_row_1v431_1",
67
73
  header: "_header_1v431_8",
68
74
  emptyHint: "_emptyHint_1v431_12",
@@ -73,88 +79,88 @@ var F = {
73
79
  rowLeaving: "_rowLeaving_1v431_32",
74
80
  rowFadeOut: "_rowFadeOut_1v431_1",
75
81
  listContent: "_listContent_1v431_60"
76
- }, z = "px-3 pb-0.5 pt-2", B = 180, V = 288, H = ({ favorites: n, onSelect: i, onToggleFavorite: a, onBrowse: o, onViewDetails: s, className: l, rowClassName: u, searchQuery: d, listboxId: m, activeOptionId: g, isMenu: _ = !1, labels: v = {}, colors: y, nameClassName: b = "dial-small-text", headerClassName: x = "dial-tiny-lead-semi-text", emptyHintClassName: w = "dial-small-text" }) => {
77
- let { myCollectionLabel: D = "My Collection", emptyHintLabel: ne = "Star a skill to pin it here", browseLabel: O = "Browse", removeFromFavoritesLabel: A = "Remove from favorites", viewDetailsLabel: j = "View details", noMatchingSkillsLabel: P = "No matching skills" } = v, L = t({
78
- "--fs-row-hover-bg": y?.rowHoverBackground,
79
- "--fs-header-text": y?.headerText,
80
- "--fs-empty-hint-text": y?.emptyHintText,
81
- "--fs-star-color": y?.starColor,
82
- "--fs-footer-border": y?.footerBorder
83
- }), [H, U] = E(/* @__PURE__ */ new Set()), W = T(/* @__PURE__ */ new Map());
84
- te(() => {
85
- let e = W.current;
82
+ }, R = "px-3 pb-0.5 pt-2", ie = 180, z = 288, B = ({ favorites: n, onSelect: i, onToggleFavorite: a, onBrowse: o, onViewDetails: s, className: l, rowClassName: u, searchQuery: d, listboxId: m, activeOptionId: g, isMenu: _ = !1, labels: v = {}, colors: b, nameClassName: x = "dial-small-text", headerClassName: S = "dial-tiny-lead-semi-text", emptyHintClassName: T = "dial-small-text" }) => {
83
+ let { myCollectionLabel: O = "My Collection", emptyHintLabel: te = "Star a skill to pin it here", browseLabel: ne = "Browse", removeFromFavoritesLabel: re = "Remove from favorites", viewDetailsLabel: A = "View details", noMatchingSkillsLabel: N = "No matching skills" } = v, I = t({
84
+ "--fs-row-hover-bg": b?.rowHoverBackground,
85
+ "--fs-header-text": b?.headerText,
86
+ "--fs-empty-hint-text": b?.emptyHintText,
87
+ "--fs-star-color": b?.starColor,
88
+ "--fs-footer-border": b?.footerBorder
89
+ }), [B, V] = D(/* @__PURE__ */ new Set()), H = E(/* @__PURE__ */ new Map());
90
+ C(() => {
91
+ let e = H.current;
86
92
  return () => {
87
93
  e.forEach((e) => clearTimeout(e)), e.clear();
88
94
  };
89
95
  }, []);
90
- let G = m != null, K = _ && !G, q = G || K ? "none" : void 0, J = "button";
91
- G ? J = "option" : K && (J = "menuitem");
92
- let Y = S(), X = d != null, Z = d?.toLowerCase() ?? "", Q = X ? n.filter((e) => e.name.toLowerCase().includes(Z)) : n, re = T(null), [ie, ae] = E();
93
- C(() => {
94
- re.current && ae(Math.min(re.current.scrollHeight, V));
96
+ let U = m != null, W = _ && !U, G = U || W ? "none" : void 0, K = "button";
97
+ U ? K = "option" : W && (K = "menuitem");
98
+ let q = ee(), J = d != null, Y = d?.toLowerCase() ?? "", X = J ? n.filter((e) => e.name.toLowerCase().includes(Y)) : n, Z = E(null), [ae, Q] = D();
99
+ w(() => {
100
+ Z.current && Q(Math.min(Z.current.scrollHeight, z));
95
101
  }, [n, d]);
96
102
  let oe = (e, t) => {
97
103
  e.target === e.currentTarget && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), i(t));
98
104
  }, $ = (e) => {
99
- U((t) => new Set(t).add(e));
105
+ V((t) => new Set(t).add(e));
100
106
  let t = setTimeout(() => {
101
- a?.(e), U((t) => {
107
+ a?.(e), V((t) => {
102
108
  let n = new Set(t);
103
109
  return n.delete(e), n;
104
- }), W.current.delete(e);
105
- }, B);
106
- W.current.set(e, t);
110
+ }), H.current.delete(e);
111
+ }, ie);
112
+ H.current.set(e, t);
107
113
  };
108
- return /* @__PURE__ */ N("div", {
109
- className: r("flex w-full flex-col desktop:w-[280px]", l, F.favoritesPanel),
110
- style: L,
114
+ return /* @__PURE__ */ M("div", {
115
+ className: r("flex w-full flex-col desktop:w-[280px]", l, P.favoritesPanel),
116
+ style: I,
111
117
  children: [
112
- /* @__PURE__ */ M("p", {
113
- id: Y,
114
- className: r(x, z, R.header),
115
- children: D
118
+ /* @__PURE__ */ j("p", {
119
+ id: q,
120
+ className: r(S, R, L.header),
121
+ children: O
116
122
  }),
117
- /* @__PURE__ */ M("div", {
118
- className: r("max-h-72 min-h-0 flex-1 overflow-y-auto", R.listContent),
119
- style: { maxHeight: ie },
120
- children: /* @__PURE__ */ M("div", {
121
- ref: re,
122
- children: Q.length > 0 ? /* @__PURE__ */ M("ul", {
123
+ /* @__PURE__ */ j("div", {
124
+ className: r("max-h-72 min-h-0 flex-1 overflow-y-auto", L.listContent),
125
+ style: { maxHeight: ae },
126
+ children: /* @__PURE__ */ j("div", {
127
+ ref: Z,
128
+ children: X.length > 0 ? /* @__PURE__ */ j("ul", {
123
129
  id: m,
124
- role: G ? "listbox" : q,
125
- "aria-labelledby": G ? Y : void 0,
130
+ role: U ? "listbox" : G,
131
+ "aria-labelledby": U ? q : void 0,
126
132
  className: "flex flex-col gap-1 px-1 pb-1",
127
- children: Q.map((t) => {
128
- let n = G ? `${m}-${encodeURIComponent(t.id)}` : void 0, o = G ? -1 : void 0, l = /* @__PURE__ */ N("div", {
129
- role: J,
133
+ children: X.map((t) => {
134
+ let n = U ? `${m}-${encodeURIComponent(t.id)}` : void 0, o = U ? -1 : void 0, l = /* @__PURE__ */ M("div", {
135
+ role: K,
130
136
  id: n,
131
- "aria-selected": G ? n === g : void 0,
137
+ "aria-selected": U ? n === g : void 0,
132
138
  "aria-label": t.name,
133
139
  tabIndex: 0,
134
- className: r("flex cursor-pointer items-center gap-2 rounded-lg border border-transparent px-2 py-1.5 transition-colors", R.row, u),
140
+ className: r("flex cursor-pointer items-center gap-2 rounded-lg border border-transparent px-2 py-1.5 transition-colors", L.row, u),
135
141
  onClick: () => i(t),
136
142
  onKeyDown: (e) => oe(e, t),
137
143
  children: [
138
- /* @__PURE__ */ M(e, {
144
+ /* @__PURE__ */ j(e, {
139
145
  size: c.MD,
140
146
  initialsName: t.name
141
147
  }),
142
- d == null ? /* @__PURE__ */ M("span", {
143
- className: r(b, "min-w-0 flex-1 truncate text-start"),
148
+ d == null ? /* @__PURE__ */ j("span", {
149
+ className: r(x, "min-w-0 flex-1 truncate text-start"),
144
150
  children: t.name
145
- }) : /* @__PURE__ */ M(p, {
151
+ }) : /* @__PURE__ */ j(p, {
146
152
  text: t.name,
147
153
  query: d,
148
154
  maxLines: 1,
149
- className: r(b, "min-w-0 flex-1 text-start")
155
+ className: r(x, "min-w-0 flex-1 text-start")
150
156
  }),
151
- a && /* @__PURE__ */ M(ee, {
152
- icon: /* @__PURE__ */ M(k, {
157
+ a && /* @__PURE__ */ j(y, {
158
+ icon: /* @__PURE__ */ j(k, {
153
159
  size: c.SM,
154
- className: R.star,
160
+ className: L.star,
155
161
  "aria-hidden": !0
156
162
  }),
157
- "aria-label": A,
163
+ "aria-label": re,
158
164
  isSelected: !0,
159
165
  tabIndex: o,
160
166
  onClick: (e) => {
@@ -163,15 +169,15 @@ var F = {
163
169
  })
164
170
  ]
165
171
  });
166
- return /* @__PURE__ */ M("li", {
167
- role: q,
168
- className: H.has(t.id) ? R.rowLeaving : R.rowEnter,
169
- children: s ? /* @__PURE__ */ M(h, {
172
+ return /* @__PURE__ */ j("li", {
173
+ role: G,
174
+ className: B.has(t.id) ? L.rowLeaving : L.rowEnter,
175
+ children: s ? /* @__PURE__ */ j(h, {
170
176
  asChild: !0,
171
177
  contentClassName: "max-w-[550px]",
172
- content: /* @__PURE__ */ M(I, {
178
+ content: /* @__PURE__ */ j(F, {
173
179
  description: t.description,
174
- viewDetailsLabel: j,
180
+ viewDetailsLabel: A,
175
181
  onViewDetails: () => s(t),
176
182
  viewDetailsTabIndex: o
177
183
  }),
@@ -179,43 +185,43 @@ var F = {
179
185
  }) : l
180
186
  }, t.id);
181
187
  })
182
- }) : X && Z !== "" ? /* @__PURE__ */ M("p", {
188
+ }) : J && Y !== "" ? /* @__PURE__ */ j("p", {
183
189
  role: "status",
184
190
  "aria-live": "polite",
185
- className: r(w, "px-4 py-4 text-start", R.emptyHint),
186
- children: P
187
- }) : /* @__PURE__ */ M("p", {
188
- className: r(w, "px-4 py-4 text-start", R.emptyHint),
189
- children: ne
191
+ className: r(T, "px-4 py-4 text-start", L.emptyHint),
192
+ children: N
193
+ }) : /* @__PURE__ */ j("p", {
194
+ className: r(T, "px-4 py-4 text-start", L.emptyHint),
195
+ children: te
190
196
  })
191
197
  })
192
198
  }),
193
- /* @__PURE__ */ M("div", {
194
- className: r("border-t px-2 py-3", R.footer),
195
- children: /* @__PURE__ */ M(f, {
196
- role: K ? "menuitem" : void 0,
197
- label: O,
199
+ /* @__PURE__ */ j("div", {
200
+ className: r("border-t px-2 py-3", L.footer),
201
+ children: /* @__PURE__ */ j(f, {
202
+ role: W ? "menuitem" : void 0,
203
+ label: ne,
198
204
  className: "w-full justify-center",
199
205
  onClick: o
200
206
  })
201
207
  })
202
208
  ]
203
209
  });
204
- }, U = ".zip,.md", W = ({ isOpen: e, errorText: t, accept: n = U, labels: r, onClose: i, onFilesSelected: a, onFilesRejected: o }) => {
210
+ }, V = ".zip,.md", H = ({ isOpen: e, errorText: t, accept: n = V, labels: r, onClose: i, onFilesSelected: a, onFilesRejected: o }) => {
205
211
  let { dialogTitle: s = "Upload skill", dropZoneLabel: c = "Drag and drop it or click here to upload", dropZoneMobileLabel: l = "Click here to upload", formatsLabel: u = "File formats .zip and SKILL.md", fileInputAriaLabel: f = "Upload a skill ZIP archive or a SKILL.md file", closeAriaLabel: p = "Close" } = r ?? {};
206
- return /* @__PURE__ */ M(g, {
212
+ return /* @__PURE__ */ j(g, {
207
213
  open: e,
208
214
  size: _.Sm,
209
215
  header: s,
210
216
  closeAriaLabel: p,
211
217
  onClose: i,
212
- children: /* @__PURE__ */ M("div", {
218
+ children: /* @__PURE__ */ j("div", {
213
219
  className: "px-6 py-4",
214
- children: /* @__PURE__ */ M(d, {
215
- label: /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ M("span", {
220
+ children: /* @__PURE__ */ j(d, {
221
+ label: /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j("span", {
216
222
  className: "desktop:hidden",
217
223
  children: l
218
- }), /* @__PURE__ */ M("span", {
224
+ }), /* @__PURE__ */ j("span", {
219
225
  className: "hidden desktop:inline",
220
226
  children: c
221
227
  })] }),
@@ -228,20 +234,20 @@ var F = {
228
234
  })
229
235
  })
230
236
  });
231
- }, G = ({ isOpen: e, onClose: t, onSelect: n, title: r, renderContent: i }) => /* @__PURE__ */ M(g, {
237
+ }, U = ({ isOpen: e, onClose: t, onSelect: n, title: r, renderContent: i }) => /* @__PURE__ */ j(g, {
232
238
  open: e,
233
239
  header: r,
234
240
  size: _.Lg,
235
241
  className: "h-[min(90vh,860px)] !max-w-[min(95vw,1200px)] overflow-hidden",
236
242
  onClose: t,
237
- children: /* @__PURE__ */ M("div", {
243
+ children: /* @__PURE__ */ j("div", {
238
244
  className: "h-[min(80vh,840px)] overflow-auto",
239
- children: /* @__PURE__ */ M(b, {
245
+ children: /* @__PURE__ */ j(x, {
240
246
  fallback: null,
241
247
  children: e && i(n, t)
242
248
  })
243
249
  })
244
- }), K = (e) => /* @__PURE__ */ M(P, { ...e }), q = (e) => e == null || /[\s/]/.test(e), J = (e, t, n) => {
250
+ }), W = (e) => /* @__PURE__ */ j(N, { ...e }), G = (e) => e == null || /[\s/]/.test(e), K = (e, t, n) => {
245
251
  let r = [], i = 0;
246
252
  return t.forEach((t, a) => {
247
253
  let o = `/${n(t.url)}`, s = i;
@@ -249,7 +255,7 @@ var F = {
249
255
  let t = e.indexOf(o, s);
250
256
  if (t === -1) return;
251
257
  let n = t + o.length;
252
- if (q(e[n])) {
258
+ if (G(e[n])) {
253
259
  r.push({
254
260
  skillIndex: a,
255
261
  start: t,
@@ -260,7 +266,7 @@ var F = {
260
266
  s = t + 1;
261
267
  }
262
268
  }), r;
263
- }, Y = (e, t) => {
269
+ }, q = (e, t) => {
264
270
  let n = Math.min(e.length, t.length), r = 0;
265
271
  for (; r < n && e[r] === t[r];) r += 1;
266
272
  let i = n - r, a = 0;
@@ -270,13 +276,13 @@ var F = {
270
276
  deletedLength: e.length - r - a,
271
277
  insertedLength: t.length - r - a
272
278
  };
273
- }, X = (e, t) => {
279
+ }, J = (e, t) => {
274
280
  let n = t.start + t.deletedLength, r = t.insertedLength - t.deletedLength;
275
281
  return e.reduce((e, i) => i.start + i.length <= t.start ? (e.push(i), e) : (i.start >= n && e.push({
276
282
  ...i,
277
283
  start: i.start + r
278
284
  }), e), []);
279
- }, Z = (e, t, n, r, i) => {
285
+ }, Y = (e, t, n, r, i) => {
280
286
  let a = r.length + 1, o = a + +!!i, s = e.map((e) => e.start >= t ? {
281
287
  ...e,
282
288
  start: e.start + o
@@ -287,30 +293,30 @@ var F = {
287
293
  length: a
288
294
  };
289
295
  return [...s, c].sort((e, t) => e.start - t.start);
290
- }, Q = (e, t) => e.find((e) => e.start + e.length === t), re = () => {
291
- let [e, t] = E(""), [n, r] = E([]), i = T(e);
296
+ }, X = (e, t) => e.find((e) => e.start + e.length === t), Z = () => {
297
+ let [e, t] = D(""), [n, r] = D([]), i = E(e);
292
298
  i.current = e;
293
- let a = T(n);
299
+ let a = E(n);
294
300
  return a.current = n, {
295
301
  draft: e,
296
302
  anchors: n,
297
- onDraftChange: x((e) => {
298
- let n = Y(i.current, e);
299
- r((e) => X(e, n)), i.current = e, t(e);
303
+ onDraftChange: S((e) => {
304
+ let n = q(i.current, e);
305
+ r((e) => J(e, n)), i.current = e, t(e);
300
306
  }, []),
301
- insertMention: x((e, n, a) => {
307
+ insertMention: S((e, n, a) => {
302
308
  let o = i.current, s = !/^\s/.test(o.slice(a)), c = `/${n}${s ? " " : ""}`, l = o.slice(0, a) + c + o.slice(a);
303
- return i.current = l, t(l), r((t) => Z(t, a, e, n, s)), s;
309
+ return i.current = l, t(l), r((t) => Y(t, a, e, n, s)), s;
304
310
  }, []),
305
- onBackspaceAtCaret: x((e) => Q(a.current, e), []),
306
- orderedSkills: w(() => {
311
+ onBackspaceAtCaret: S((e) => X(a.current, e), []),
312
+ orderedSkills: T(() => {
307
313
  if (n.length !== 0) return n.map((e) => ({ url: e.url }));
308
314
  }, [n]),
309
- reset: x(() => {
315
+ reset: S(() => {
310
316
  t(""), r([]);
311
317
  }, []),
312
- seedFromMessage: x((e, n, i) => {
313
- let a = n ?? [], o = J(e, a, i);
318
+ seedFromMessage: S((e, n, i) => {
319
+ let a = n ?? [], o = K(e, a, i);
314
320
  t(e), r(o.map((e) => {
315
321
  let t = a[e.skillIndex];
316
322
  return {
@@ -322,15 +328,15 @@ var F = {
322
328
  }));
323
329
  }, [])
324
330
  };
325
- }, ie = (e) => ({
331
+ }, ae = (e) => ({
326
332
  id: e.url,
327
333
  name: e.name,
328
334
  description: e.description
329
- }), ae = (e) => {
335
+ }), Q = (e) => {
330
336
  let t = e.split("/").filter((e) => e.length > 0);
331
337
  return t[t.length - 1] ?? e;
332
- }, oe = ({ isEnabled: e, isSkillsSupported: t, skills: n, sharedWithMe: r, publicSkills: a, favoriteIds: o, onToggleFavorite: s, labels: c, historyChipLabelClassName: u, renderCatalogContent: d, detailsPanelComponent: f }) => {
333
- let { addMenuLabel: p = "Skills", backLabel: m = "Back", catalogModalTitleLabel: h = "Use skill", emptyQueryHintLabel: g = "Type to filter", panelLabels: _ } = c ?? {}, v = e && t, [ee, y] = E(!1), [te, S] = E(null), [C, T] = E(0), [ne, O] = E(0), [k, A] = E(void 0), j = re(), N = w(() => [
338
+ }, oe = ({ isEnabled: e, isSkillsSupported: t, skills: n, sharedWithMe: r, publicSkills: a, favoriteIds: o, onToggleFavorite: s, labels: c, historyChipLabelClassName: u, activeMentionDetailsTrigger: d, renderCatalogContent: f, detailsPanelComponent: p }) => {
339
+ let { addMenuLabel: m = "Skills", backLabel: h = "Back", catalogModalTitleLabel: g = "Use skill", emptyQueryHintLabel: _ = "Type to filter", panelLabels: v } = c ?? {}, y = e && t, [b, C] = D(!1), [ee, w] = D(null), [E, te] = D(0), [ne, k] = D(0), [re, A] = D(void 0), M = Z(), N = T(() => [
334
340
  ...n,
335
341
  ...r ?? [],
336
342
  ...a ?? []
@@ -338,161 +344,163 @@ var F = {
338
344
  n,
339
345
  r,
340
346
  a
341
- ]), P = w(() => new Map(N.map((e) => [e.url, e])), [N]), F = x((e) => P.get(e)?.name ?? ae(e), [P]), I = w(() => N.filter((e) => o.has(e.url)).map((e) => ie(e)), [N, o]), R = j.anchors.length > 0 && !t, z = w(() => j.anchors.map((e) => ({
347
+ ]), P = T(() => new Map(N.map((e) => [e.url, e])), [N]), F = S((e) => P.get(e)?.name ?? Q(e), [P]), L = T(() => N.filter((e) => o.has(e.url)).map((e) => ae(e)), [N, o]), R = M.anchors.length > 0 && !t, ie = T(() => M.anchors.map((e) => ({
342
348
  start: e.start,
343
349
  length: e.length,
344
350
  isUnsupported: !t,
345
- render: () => /* @__PURE__ */ M(L, {
351
+ render: () => /* @__PURE__ */ j(I, {
346
352
  name: e.name,
347
353
  path: e.url,
348
354
  labelClassName: u,
349
355
  description: P.get(e.url)?.description,
350
356
  isUnsupported: !t,
351
- onViewDetails: S,
352
- labels: { viewDetailsLabel: _?.viewDetailsLabel }
357
+ detailsTrigger: d,
358
+ onViewDetails: w,
359
+ labels: { viewDetailsLabel: v?.viewDetailsLabel }
353
360
  })
354
361
  })), [
355
- j.anchors,
362
+ M.anchors,
356
363
  t,
357
364
  P,
358
365
  u,
359
- _
360
- ]), B = x((e, t, n) => {
361
- let r = j.insertMention(e, t, n);
362
- O((e) => e + 1), A(n + 1 + t.length + +!!r);
363
- }, [j]), V = x(() => {
364
- j.reset(), O((e) => e + 1), A(void 0);
365
- }, [j]), U = x((e, t) => {
366
- j.seedFromMessage(e, t, F), O((e) => e + 1), A(void 0);
367
- }, [j, F]), W = x((e, t) => {
366
+ d,
367
+ v
368
+ ]), z = S((e, t, n) => {
369
+ let r = M.insertMention(e, t, n);
370
+ k((e) => e + 1), A(n + 1 + t.length + +!!r);
371
+ }, [M]), V = S(() => {
372
+ M.reset(), k((e) => e + 1), A(void 0);
373
+ }, [M]), H = S((e, t) => {
374
+ M.seedFromMessage(e, t, F), k((e) => e + 1), A(void 0);
375
+ }, [M, F]), W = S((e, t) => {
368
376
  if (t == null || t.length === 0) return null;
369
- let n = J(e, t, F), r = [], i = 0;
377
+ let n = K(e, t, F), r = [], i = 0;
370
378
  return n.forEach((n) => {
371
379
  n.start > i && r.push(e.slice(i, n.start));
372
- let a = t[n.skillIndex], o = P.get(a.url), s = o?.name ?? ae(a.url);
373
- r.push(/* @__PURE__ */ M(L, {
380
+ let a = t[n.skillIndex], o = P.get(a.url), s = o?.name ?? Q(a.url);
381
+ r.push(/* @__PURE__ */ j(I, {
374
382
  name: s,
375
383
  path: a.url,
376
384
  labelClassName: u,
377
385
  description: o?.description,
378
- onViewDetails: S,
379
- labels: { viewDetailsLabel: _?.viewDetailsLabel }
386
+ onViewDetails: w,
387
+ labels: { viewDetailsLabel: v?.viewDetailsLabel }
380
388
  }, `${a.url}-${n.start}`)), i = n.start + n.length;
381
389
  }), i < e.length && r.push(e.slice(i)), r;
382
390
  }, [
383
391
  F,
384
392
  P,
385
393
  u,
386
- _
387
- ]), K = x((e) => e == null || e.length === 0 ? null : e.map((e) => {
394
+ v
395
+ ]), G = S((e) => e == null || e.length === 0 ? null : e.map((e) => {
388
396
  let t = P.get(e.url);
389
- return /* @__PURE__ */ M(L, {
390
- name: t?.name ?? ae(e.url),
397
+ return /* @__PURE__ */ j(I, {
398
+ name: t?.name ?? Q(e.url),
391
399
  path: e.url,
392
400
  labelClassName: u,
393
401
  description: t?.description,
394
- onViewDetails: S,
395
- labels: { viewDetailsLabel: _?.viewDetailsLabel }
402
+ onViewDetails: w,
403
+ labels: { viewDetailsLabel: v?.viewDetailsLabel }
396
404
  }, e.url);
397
405
  }), [
398
406
  P,
399
407
  u,
400
- _
401
- ]), q = x((e, t) => /* @__PURE__ */ M(H, {
402
- favorites: I,
408
+ v
409
+ ]), q = S((e, t) => /* @__PURE__ */ j(B, {
410
+ favorites: L,
403
411
  isMenu: !0,
404
412
  onSelect: (n) => {
405
- B(n.id, n.name, t), e();
413
+ z(n.id, n.name, t), e();
406
414
  },
407
415
  onToggleFavorite: s,
408
416
  onBrowse: () => {
409
- T(t), e(), y(!0);
417
+ te(t), e(), C(!0);
410
418
  },
411
419
  onViewDetails: (t) => {
412
- e(), S(t.id);
420
+ e(), w(t.id);
413
421
  },
414
- labels: _
422
+ labels: v
415
423
  }), [
416
- I,
417
- B,
424
+ L,
425
+ z,
418
426
  s,
419
- _
420
- ]), Y = w(() => v ? {
427
+ v
428
+ ]), J = T(() => y ? {
421
429
  key: "skills",
422
- title: p,
423
- icon: /* @__PURE__ */ M(D, {
430
+ title: m,
431
+ icon: /* @__PURE__ */ j(O, {
424
432
  size: i,
425
433
  "aria-hidden": !0,
426
434
  stroke: l
427
435
  }),
428
436
  renderOverlay: q,
429
- backLabel: m
437
+ backLabel: h
430
438
  } : void 0, [
431
- v,
432
- p,
439
+ y,
433
440
  m,
441
+ h,
434
442
  q
435
- ]), X = w(() => v ? {
443
+ ]), Y = T(() => y ? {
436
444
  triggerPrefix: "/",
437
- menuLabel: p,
438
- emptyQueryHint: g,
439
- renderMenu: ({ query: e, caretPosition: t, close: n, listboxId: r, activeOptionId: i }) => /* @__PURE__ */ M(H, {
440
- favorites: I,
445
+ menuLabel: m,
446
+ emptyQueryHint: _,
447
+ renderMenu: ({ query: e, caretPosition: t, close: n, listboxId: r, activeOptionId: i }) => /* @__PURE__ */ j(B, {
448
+ favorites: L,
441
449
  searchQuery: e,
442
450
  listboxId: r,
443
451
  activeOptionId: i,
444
452
  onSelect: (e) => {
445
- n({ consumeQuery: !0 }), B(e.id, e.name, t);
453
+ n({ consumeQuery: !0 }), z(e.id, e.name, t);
446
454
  },
447
455
  onToggleFavorite: s,
448
456
  onBrowse: () => {
449
- n({ consumeQuery: !0 }), T(t), y(!0);
457
+ n({ consumeQuery: !0 }), te(t), C(!0);
450
458
  },
451
459
  onViewDetails: (e) => {
452
- n({ consumeQuery: !0 }), S(e.id);
460
+ n({ consumeQuery: !0 }), w(e.id);
453
461
  },
454
- labels: _
462
+ labels: v
455
463
  })
456
464
  } : void 0, [
457
- v,
458
- p,
459
- g,
460
- I,
461
- B,
465
+ y,
466
+ m,
467
+ _,
468
+ L,
469
+ z,
462
470
  s,
463
- _
471
+ v
464
472
  ]);
465
473
  return e ? {
466
- skillMenuOverlay: Y,
467
- commandMenu: X,
468
- skillCatalogModal: /* @__PURE__ */ M(G, {
469
- isOpen: ee,
470
- onClose: () => y(!1),
474
+ skillMenuOverlay: J,
475
+ commandMenu: Y,
476
+ skillCatalogModal: /* @__PURE__ */ j(U, {
477
+ isOpen: b,
478
+ onClose: () => C(!1),
471
479
  onSelect: (e) => {
472
- B(e, F(e), C), y(!1);
480
+ z(e, F(e), E), C(!1);
473
481
  },
474
- title: h,
475
- renderContent: d
482
+ title: g,
483
+ renderContent: f
476
484
  }),
477
- skillDetailsPanel: /* @__PURE__ */ M(b, {
485
+ skillDetailsPanel: /* @__PURE__ */ j(x, {
478
486
  fallback: null,
479
- children: /* @__PURE__ */ M(f, {
480
- skillId: te,
481
- onClose: () => S(null)
487
+ children: /* @__PURE__ */ j(p, {
488
+ skillId: ee,
489
+ onClose: () => w(null)
482
490
  })
483
491
  }),
484
- message: j.draft,
492
+ message: M.draft,
485
493
  messageRevision: ne,
486
- activeMentions: z,
487
- onDraftChange: j.onDraftChange,
488
- onBackspaceAtCaret: j.onBackspaceAtCaret,
489
- caretPositionOverride: k,
494
+ activeMentions: ie,
495
+ onDraftChange: M.onDraftChange,
496
+ onBackspaceAtCaret: M.onBackspaceAtCaret,
497
+ caretPositionOverride: re,
490
498
  isSkillUnsupported: R,
491
- selectedSkills: j.orderedSkills,
499
+ selectedSkills: M.orderedSkills,
492
500
  resetSkillMentions: V,
493
- seedSkillMentions: U,
501
+ seedSkillMentions: H,
494
502
  renderHistorySkillSegments: W,
495
- renderHistorySkills: K
503
+ renderHistorySkills: G
496
504
  } : {
497
505
  skillMenuOverlay: void 0,
498
506
  commandMenu: void 0,
@@ -517,133 +525,133 @@ var F = {
517
525
  value: "_value_14zdf_9",
518
526
  clear: "_clear_14zdf_13",
519
527
  invalid: "_invalid_14zdf_17"
520
- }, se = [], ce = ({ value: e, onChange: i, displayName: a, favorites: o = se, onToggleFavorite: s, onViewDetails: c, renderOverlay: d, isSkillsSupported: p, isDisabled: h = !1, isInvalid: g = !1, labelledById: _, describedById: ee, labels: y, renderCatalogContent: b, className: x, styles: C }) => {
521
- let [w, D] = E(!1), [O, k] = E(!1), [P, I] = E(""), L = T(null), R = S(), z = T(null), B = T(!1), V = n(e, p), U = p && !h, W = w && U, K = O && U, q = () => {
522
- z.current && !z.current.disabled ? z.current.focus() : L.current?.querySelector("button:not(:disabled)")?.focus();
528
+ }, se = [], ce = ({ value: e, onChange: i, displayName: a, favorites: o = se, onToggleFavorite: s, onViewDetails: c, renderOverlay: d, isSkillsSupported: p, isDisabled: h = !1, isInvalid: g = !1, labelledById: _, describedById: y, labels: b, renderCatalogContent: x, className: S, styles: w }) => {
529
+ let [T, O] = D(!1), [ne, k] = D(!1), [N, F] = D(""), I = E(null), L = ee(), R = E(null), ie = E(!1), z = n(e, p), V = p && !h, H = T && V, W = ne && V, G = () => {
530
+ R.current && !R.current.disabled ? R.current.focus() : I.current?.querySelector("button:not(:disabled)")?.focus();
523
531
  };
524
- te(() => {
525
- B.current && !W && !K && ((document.activeElement === document.body || L.current?.contains(document.activeElement)) && q(), D(!1), k(!1)), B.current = W || K;
526
- }, [W, K]);
527
- let J = (e) => {
528
- e && !U || (I(""), D(e));
529
- }, Y = (e) => {
530
- U && i(e), D(!1), k(!1);
531
- }, X = {
532
+ C(() => {
533
+ ie.current && !H && !W && ((document.activeElement === document.body || I.current?.contains(document.activeElement)) && G(), O(!1), k(!1)), ie.current = H || W;
534
+ }, [H, W]);
535
+ let K = (e) => {
536
+ e && !V || (F(""), O(e));
537
+ }, q = (e) => {
538
+ V && i(e), O(!1), k(!1);
539
+ }, J = {
532
540
  ...t({
533
- "--ssf-text": C?.colors?.text,
534
- "--ssf-bg": C?.colors?.background,
535
- "--ssf-border": C?.colors?.border,
536
- "--ssf-error": C?.colors?.error
541
+ "--ssf-text": w?.colors?.text,
542
+ "--ssf-bg": w?.colors?.background,
543
+ "--ssf-border": w?.colors?.border,
544
+ "--ssf-error": w?.colors?.error
537
545
  }),
538
- ...C?.cssVars
539
- }, Z = /* @__PURE__ */ N("div", {
540
- id: R,
546
+ ...w?.cssVars
547
+ }, Y = /* @__PURE__ */ M("div", {
548
+ id: L,
541
549
  className: "w-full min-w-0",
542
- children: [/* @__PURE__ */ M("div", {
550
+ children: [/* @__PURE__ */ j("div", {
543
551
  className: "p-2",
544
- children: /* @__PURE__ */ M(v, {
545
- value: P,
546
- onChange: (e) => I(e ?? ""),
547
- placeholder: y.searchPlaceholder ?? "Search skills",
548
- "aria-label": y.searchPlaceholder ?? "Search skills",
549
- clearLabel: y.clearSearchLabel ?? "Clear search"
552
+ children: /* @__PURE__ */ j(v, {
553
+ value: N,
554
+ onChange: (e) => F(e ?? ""),
555
+ placeholder: b.searchPlaceholder ?? "Search skills",
556
+ "aria-label": b.searchPlaceholder ?? "Search skills",
557
+ clearLabel: b.clearSearchLabel ?? "Clear search"
550
558
  })
551
- }), /* @__PURE__ */ M(H, {
559
+ }), /* @__PURE__ */ j(B, {
552
560
  className: "min-w-0 desktop:w-full",
553
561
  rowClassName: "min-h-11",
554
562
  favorites: o,
555
- searchQuery: P,
556
- labels: y.panelLabels,
557
- onSelect: (e) => Y(e.id),
563
+ searchQuery: N,
564
+ labels: b.panelLabels,
565
+ onSelect: (e) => q(e.id),
558
566
  onToggleFavorite: s,
559
567
  onViewDetails: c ? (e) => {
560
- D(!1), c(e);
568
+ O(!1), c(e);
561
569
  } : void 0,
562
570
  onBrowse: () => {
563
- D(!1), k(!0);
571
+ O(!1), k(!0);
564
572
  }
565
573
  })]
566
- }), Q = /* @__PURE__ */ M(m, {
567
- inputRef: z,
574
+ }), X = /* @__PURE__ */ j(m, {
575
+ inputRef: R,
568
576
  readOnly: !0,
569
577
  role: "combobox",
570
578
  "aria-haspopup": "dialog",
571
- "aria-expanded": W,
572
- "aria-controls": W ? R : void 0,
579
+ "aria-expanded": H,
580
+ "aria-controls": H ? L : void 0,
573
581
  "aria-labelledby": _,
574
- "aria-describedby": ee,
575
- "aria-invalid": g || V,
576
- disabled: !U,
577
- invalid: g || V,
582
+ "aria-describedby": y,
583
+ "aria-invalid": g || z,
584
+ disabled: !V,
585
+ invalid: g || z,
578
586
  value: e ? a || e : "",
579
- placeholder: y.placeholder,
580
- title: p ? e ? a || e : void 0 : y.unsupportedTooltipLabel,
587
+ placeholder: b.placeholder,
588
+ title: p ? e ? a || e : void 0 : b.unsupportedTooltipLabel,
581
589
  containerClassName: "w-full min-w-0",
582
- wrapperClassName: r("cursor-pointer", "--ssf-bg" in X && $.background, "--ssf-border" in X && $.border, (g || V) && $.invalid, C?.triggerClassName),
583
- className: r("min-w-0 cursor-pointer text-ellipsis", "--ssf-text" in X && $.value, C?.typography?.fontClassName ?? "dial-small-text"),
590
+ wrapperClassName: r("cursor-pointer", "--ssf-bg" in J && $.background, "--ssf-border" in J && $.border, (g || z) && $.invalid, w?.triggerClassName),
591
+ className: r("min-w-0 cursor-pointer text-ellipsis", "--ssf-text" in J && $.value, w?.typography?.fontClassName ?? "dial-small-text"),
584
592
  onKeyDown: (e) => {
585
593
  [
586
594
  "Enter",
587
595
  " ",
588
596
  "ArrowDown"
589
- ].includes(e.key) ? (e.preventDefault(), e.stopPropagation(), J(e.key === "ArrowDown" || !W)) : e.key === "Escape" && J(!1);
597
+ ].includes(e.key) ? (e.preventDefault(), e.stopPropagation(), K(e.key === "ArrowDown" || !H)) : e.key === "Escape" && K(!1);
590
598
  },
591
- iconAfter: /* @__PURE__ */ N("span", {
599
+ iconAfter: /* @__PURE__ */ M("span", {
592
600
  className: "flex shrink-0 items-center",
593
- children: [e && /* @__PURE__ */ M(f, {
601
+ children: [e && /* @__PURE__ */ j(f, {
594
602
  type: "button",
595
603
  className: r("size-11 shrink-0", $.clear),
596
604
  disabled: h,
597
- "aria-label": y.removeSkillLabel,
605
+ "aria-label": b.removeSkillLabel,
598
606
  onKeyDown: (e) => e.stopPropagation(),
599
607
  onClick: (e) => {
600
- e.stopPropagation(), i(void 0), D(!1), U ? z.current?.focus() : L.current?.focus();
608
+ e.stopPropagation(), i(void 0), O(!1), V ? R.current?.focus() : I.current?.focus();
601
609
  },
602
- iconBefore: /* @__PURE__ */ M(A, {
610
+ iconBefore: /* @__PURE__ */ j(re, {
603
611
  "aria-hidden": !0,
604
612
  size: 18,
605
613
  stroke: l
606
614
  })
607
- }), /* @__PURE__ */ M(ne, {
615
+ }), /* @__PURE__ */ j(te, {
608
616
  "aria-hidden": !0,
609
617
  size: 20,
610
618
  stroke: l,
611
- className: r("transition-transform", W && "rotate-180")
619
+ className: r("transition-transform", H && "rotate-180")
612
620
  })]
613
621
  })
614
622
  });
615
- return /* @__PURE__ */ N("div", {
616
- ref: L,
623
+ return /* @__PURE__ */ M("div", {
624
+ ref: I,
617
625
  role: "group",
618
626
  "aria-labelledby": _,
619
627
  tabIndex: -1,
620
- className: r("min-w-0", x, F.selectorField),
621
- style: X,
622
- children: [d ? /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ M("div", {
628
+ className: r("min-w-0", S, P.selectorField),
629
+ style: J,
630
+ children: [d ? /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j("div", {
623
631
  className: "w-full min-w-0",
624
- onClick: () => J(!W),
625
- children: Q
626
- }), d(Z, W, () => J(!1))] }) : /* @__PURE__ */ M(u, {
627
- open: W,
628
- onOpenChange: J,
629
- disabled: !U,
632
+ onClick: () => K(!H),
633
+ children: X
634
+ }), d(Y, H, () => K(!1))] }) : /* @__PURE__ */ j(u, {
635
+ open: H,
636
+ onOpenChange: K,
637
+ disabled: !V,
630
638
  className: "w-full min-w-0",
631
639
  listClassName: "w-[min(var(--reference-width),calc(100vw-2rem))] max-w-full",
632
- renderOverlay: () => /* @__PURE__ */ M("div", {
640
+ renderOverlay: () => /* @__PURE__ */ j("div", {
633
641
  role: "dialog",
634
642
  "aria-labelledby": _,
635
- children: Z
643
+ children: Y
636
644
  }),
637
645
  initialFocus: 0,
638
- children: Q
639
- }), K && /* @__PURE__ */ M(G, {
646
+ children: X
647
+ }), W && /* @__PURE__ */ j(U, {
640
648
  isOpen: !0,
641
649
  onClose: () => k(!1),
642
- title: y.modalTitle,
643
- onSelect: Y,
644
- renderContent: b
650
+ title: b.modalTitle,
651
+ onSelect: q,
652
+ renderContent: x
645
653
  })]
646
654
  });
647
655
  };
648
656
  //#endregion
649
- export { L as ChatSkill, H as FavoriteSkillsPanel, F as SKILLS_CLASS, W as SkillArchiveUploadDialog, G as SkillCatalogModal, K as SkillDetailsSidePanel, I as SkillInfoTooltipContent, ce as SkillSelectorField, ie as buildFavoriteSkillItem, Y as diffTextChange, Q as findMentionAtCaret, ae as getSkillFallbackName, Z as insertAnchor, J as matchSkillMentions, X as reconcileAnchors, re as useSkillMentions, oe as useSkillSelectorOverlay };
657
+ export { I as ChatSkill, B as FavoriteSkillsPanel, P as SKILLS_CLASS, H as SkillArchiveUploadDialog, U as SkillCatalogModal, W as SkillDetailsSidePanel, F as SkillInfoTooltipContent, ce as SkillSelectorField, ae as buildFavoriteSkillItem, q as diffTextChange, X as findMentionAtCaret, Q as getSkillFallbackName, Y as insertAnchor, K as matchSkillMentions, J as reconcileAnchors, Z as useSkillMentions, oe as useSkillSelectorOverlay };
@@ -9,6 +9,8 @@ export interface ChatSkillLabels {
9
9
  */
10
10
  unsupportedTooltipLabel?: string;
11
11
  }
12
+ /** How a skill chip opens its description card. */
13
+ export type ChatSkillDetailsTrigger = 'hover' | 'click';
12
14
  /** Props for the ChatSkill component. */
13
15
  export interface ChatSkillProps {
14
16
  /** Display name, rendered after the `/` prefix in the button's label. */
@@ -40,6 +42,11 @@ export interface ChatSkillProps {
40
42
  * `isUnsupported` is set. Defaults to `'bg-error'`.
41
43
  */
42
44
  unsupportedClassName?: string;
45
+ /**
46
+ * How the description card opens. Defaults to `'hover'` so existing hosts
47
+ * retain their hover-and-focus behaviour.
48
+ */
49
+ detailsTrigger?: ChatSkillDetailsTrigger;
43
50
  /** Called with the skill's path when the tooltip's "View details" button is clicked. */
44
51
  onViewDetails: (path: string) => void;
45
52
  /** Localizable string overrides. */
@@ -1 +1 @@
1
- {"version":3,"file":"chat-skill-props.d.ts","sourceRoot":"","sources":["../../src/models/chat-skill-props.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,MAAM,WAAW,eAAe;IAC9B,mFAAmF;IACnF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC;AAED,yCAAyC;AACzC,MAAM,WAAW,cAAc;IAC7B,yEAAyE;IACzE,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,yFAAyF;IACzF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,wFAAwF;IACxF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC;;;OAGG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,wFAAwF;IACxF,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,oCAAoC;IACpC,MAAM,CAAC,EAAE,eAAe,CAAC;CAC1B"}
1
+ {"version":3,"file":"chat-skill-props.d.ts","sourceRoot":"","sources":["../../src/models/chat-skill-props.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,MAAM,WAAW,eAAe;IAC9B,mFAAmF;IACnF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC;AAED,mDAAmD;AACnD,MAAM,MAAM,uBAAuB,GAAG,OAAO,GAAG,OAAO,CAAC;AAExD,yCAAyC;AACzC,MAAM,WAAW,cAAc;IAC7B,yEAAyE;IACzE,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,yFAAyF;IACzF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,wFAAwF;IACxF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC;;;OAGG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;;OAGG;IACH,cAAc,CAAC,EAAE,uBAAuB,CAAC;IACzC,wFAAwF;IACxF,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,oCAAoC;IACpC,MAAM,CAAC,EAAE,eAAe,CAAC;CAC1B"}
@@ -1,6 +1,7 @@
1
1
  import { RequestSkill } from '@epam/ai-dial-chat-shared';
2
2
  import { CommandMenuConfig, HighlightedTextRange, MenuOverlayConfig } from '@epam/ai-dial-conversation-input';
3
3
  import { ComponentType, ReactNode } from 'react';
4
+ import { ChatSkillDetailsTrigger } from './chat-skill-props';
4
5
  import { SkillListingEntry } from './favorite-skill-item';
5
6
  import { FavoriteSkillsPanelLabels } from './favorite-skills-panel-props';
6
7
  /**
@@ -70,6 +71,11 @@ export interface UseSkillSelectorOverlayOptions {
70
71
  * to that line. Unset falls back to the chip's own default label class.
71
72
  */
72
73
  historyChipLabelClassName?: string;
74
+ /**
75
+ * Trigger used by mentions rendered in an active composer. Unset retains
76
+ * `ChatSkill`'s hover-and-focus default; history chips are unaffected.
77
+ */
78
+ activeMentionDetailsTrigger?: ChatSkillDetailsTrigger;
73
79
  /**
74
80
  * Renders the browse modal's picker content (e.g. a host catalog view);
75
81
  * receives the selection and close callbacks to wire into it, and is
@@ -1 +1 @@
1
- {"version":3,"file":"skill-selector-overlay.d.ts","sourceRoot":"","sources":["../../src/models/skill-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ACf,MAAM,EAAE,YAAY,EAAE,GAAG,SAAS,KAC/B,IAAI,CAAC;IACV;;;;;;;;;;OAUG;IACH,0BAA0B,EAAE,CAC1B,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,YAAY,EAAE,GAAG,SAAS,KAC/B,SAAS,EAAE,GAAG,IAAI,CAAC;IACxB;;;;;;;OAOG;IACH,mBAAmB,EAAE,CAAC,MAAM,EAAE,YAAY,EAAE,GAAG,SAAS,KAAK,SAAS,CAAC;CACxE"}
1
+ {"version":3,"file":"skill-selector-overlay.d.ts","sourceRoot":"","sources":["../../src/models/skill-selector-overlay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EACV,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EAClB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAE/E;;;;;GAKG;AACH,MAAM,WAAW,+BAA+B;IAC9C,iFAAiF;IACjF,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,2EAA2E;IAC3E,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,qEAAqE;AACrE,MAAM,WAAW,0BAA0B;IACzC,2EAA2E;IAC3E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gFAAgF;IAChF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+EAA+E;IAC/E,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,uEAAuE;IACvE,WAAW,CAAC,EAA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AAoB,EAAE,CAAC;IACvC;;;;;;OAMG;IACH,aAAa,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C;;;;;;;OAOG;IACH,kBAAkB,EAAE,CAClB,aAAa,EAAE,MAAM,KAClB,oBAAoB,GAAG,SAAS,CAAC;IACtC;;;;;;OAMG;IACH,qBAAqB,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1C;;;;OAIG;IACH,kBAAkB,EAAE,OAAO,CAAC;IAC5B;;;;;;OAMG;IACH,cAAc,EAAE,YAAY,EAAE,GAAG,SAAS,CAAC;IAC3C;;;;OAIG;IACH,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B;;;;;;OAMG;IACH,iBAAiB,EAAE,CACjB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,YAAY,EAAE,GAAG,SAAS,KAC/B,IAAI,CAAC;IACV;;;;;;;;;;OAUG;IACH,0BAA0B,EAAE,CAC1B,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,YAAY,EAAE,GAAG,SAAS,KAC/B,SAAS,EAAE,GAAG,IAAI,CAAC;IACxB;;;;;;;OAOG;IACH,mBAAmB,EAAE,CAAC,MAAM,EAAE,YAAY,EAAE,GAAG,SAAS,KAAK,SAAS,CAAC;CACxE"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-skills",
3
3
  "description": "Host-agnostic UI for picking a favorite skill to attach to a chat input",
4
- "version": "1.2.0-dev.148",
4
+ "version": "1.2.0-dev.152",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -18,12 +18,12 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@tabler/icons-react": "^3.44.0",
21
- "@epam/ai-dial-catalog": "1.2.0-dev.148",
22
- "@epam/ai-dial-conversation-input": "1.2.0-dev.148"
21
+ "@epam/ai-dial-catalog": "1.2.0-dev.152",
22
+ "@epam/ai-dial-conversation-input": "1.2.0-dev.152"
23
23
  },
24
24
  "peerDependencies": {
25
- "@epam/ai-dial-chat-shared": "1.2.0-dev.148",
26
- "@epam/ai-dial-ui-kit": "^0.15.0-dev.18",
25
+ "@epam/ai-dial-chat-shared": "1.2.0-dev.152",
26
+ "@epam/ai-dial-ui-kit": "^0.15.0-dev.19",
27
27
  "react": "^19.2.8"
28
28
  },
29
29
  "repository": {