@epam/ai-dial-skills 1.2.5 → 1.3.0-dev.102
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.
- package/components/ChatSkill/ChatSkill.d.ts.map +1 -1
- package/components/FavoriteSkillsPanel/FavoriteSkillsPanel.d.ts.map +1 -1
- package/components/SkillInfoTooltipContent/SkillInfoTooltipContent.d.ts.map +1 -1
- package/constants/skill-info-tooltip.d.ts +2 -0
- package/constants/skill-info-tooltip.d.ts.map +1 -0
- package/hooks/useSkillSelectorOverlay/useSkillSelectorOverlay.d.ts +1 -1
- package/hooks/useSkillSelectorOverlay/useSkillSelectorOverlay.d.ts.map +1 -1
- package/index.css +2 -1
- package/index.js +307 -299
- package/models/favorite-skills-panel-props.d.ts +2 -0
- package/models/favorite-skills-panel-props.d.ts.map +1 -1
- package/models/skill-info-tooltip-content-props.d.ts +2 -0
- package/models/skill-info-tooltip-content-props.d.ts.map +1 -1
- package/models/skill-selector-overlay.d.ts +5 -3
- package/models/skill-selector-overlay.d.ts.map +1 -1
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatSkill.d.ts","sourceRoot":"","sources":["../../../src/components/ChatSkill/ChatSkill.tsx"],"names":[],"mappings":"AAMA,OAAO,EAA6B,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ChatSkill.d.ts","sourceRoot":"","sources":["../../../src/components/ChatSkill/ChatSkill.tsx"],"names":[],"mappings":"AAMA,OAAO,EAA6B,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAG3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAGpE;;;;GAIG;AACH,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CAyJxC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FavoriteSkillsPanel.d.ts","sourceRoot":"","sources":["../../../src/components/FavoriteSkillsPanel/FavoriteSkillsPanel.tsx"],"names":[],"mappings":"AAaA,OAAO,EAML,KAAK,EAAE,EAER,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"FavoriteSkillsPanel.d.ts","sourceRoot":"","sources":["../../../src/components/FavoriteSkillsPanel/FavoriteSkillsPanel.tsx"],"names":[],"mappings":"AAaA,OAAO,EAML,KAAK,EAAE,EAER,MAAM,OAAO,CAAC;AAIf,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AAYzF,sHAAsH;AACtH,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,CAsT5D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SkillInfoTooltipContent.d.ts","sourceRoot":"","sources":["../../../src/components/SkillInfoTooltipContent/SkillInfoTooltipContent.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SkillInfoTooltipContent.d.ts","sourceRoot":"","sources":["../../../src/components/SkillInfoTooltipContent/SkillInfoTooltipContent.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAGlG,qLAAqL;AACrL,eAAO,MAAM,uBAAuB,EAAE,EAAE,CAAC,4BAA4B,CAoFpE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill-info-tooltip.d.ts","sourceRoot":"","sources":["../../src/constants/skill-info-tooltip.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,qCAAqC,sEACmB,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: ({ isSkillsSupported, skills, sharedWithMe, publicSkills, favoriteIds, viewerBucket, onToggleFavorite, labels, historyChipLabelClassName, activeMentionLabelClassName, activeMentionDetailsTrigger, historyDetailsTrigger, renderCatalogContent, detailsPanelComponent: DetailsPanelComponent, }: UseSkillSelectorOverlayOptions) => UseSkillSelectorOverlayResult;
|
|
10
|
+
export declare const useSkillSelectorOverlay: ({ isSkillsSupported, skills, sharedWithMe, publicSkills, favoriteIds, viewerBucket, onToggleFavorite, labels, historyChipLabelClassName, activeMentionLabelClassName, activeMentionDetailsTrigger, historyDetailsTrigger, isRowTooltipHidden, 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":"AAwBA,OAAO,KAAK,EACV,8BAA8B,EAC9B,6BAA6B,EAC9B,MAAM,qCAAqC,CAAC;AAsB7C;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,GAAI,
|
|
1
|
+
{"version":3,"file":"useSkillSelectorOverlay.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSkillSelectorOverlay/useSkillSelectorOverlay.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EACV,8BAA8B,EAC9B,6BAA6B,EAC9B,MAAM,qCAAqC,CAAC;AAsB7C;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,GAAI,qTAgBrC,8BAA8B,KAAG,6BAujBnC,CAAC"}
|
package/index.css
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
._row_1v431_1:hover,._row_1v431_1:focus-visible,._row_1v431_1[aria-selected=true]{background:var(--fs-row-hover-bg,var(--bg-layer-sunken,#eef1f7))}._header_1v431_8{color:var(--fs-header-text,var(--text-tertiary,#848e9c))}._emptyHint_1v431_12{color:var(--fs-empty-hint-text,var(--text-icon-tertiary,#848e9c))}._star_1v431_16{color:var(--fs-star-color,var(--text-warning-icon,#eec840))}._footer_1v431_20{border-top-color:var(--fs-footer-border,var(--stroke-tertiary,#e0e6f0))}._rowEnter_1v431_28{animation:.2s ease-out _rowFadeIn_1v431_1}._rowLeaving_1v431_32{pointer-events:none;animation:.18s ease-out forwards _rowFadeOut_1v431_1}@keyframes _rowFadeIn_1v431_1{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@keyframes _rowFadeOut_1v431_1{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.96)}}._listContent_1v431_60{transition:max-height .2s}@media (prefers-reduced-motion:reduce){._rowEnter_1v431_28,._rowLeaving_1v431_32{animation:none}._listContent_1v431_60{transition:none}}._background_1ult0_1{background:var(--ssf-bg)}._border_1ult0_5{border-color:var(--ssf-border)}._value_1ult0_9{color:var(--ssf-text)}._clear_1ult0_13{margin-block:-.5rem}._invalid_1ult0_17{color:var(--ssf-error,var(--text-error,#ae2f2f));border-color:var(--ssf-error,var(--text-error,#ae2f2f))}._invalid_1ult0_17 input{color:var(--ssf-error,var(--text-error,#ae2f2f))}
|
|
2
|
-
/*$vite$:1
|
|
2
|
+
/*$vite$:1*//*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
3
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.top-0{top:0}.-ms-1{margin-inline-start:-.25rem}.-me-1{margin-inline-end:-.25rem}.block{display:block}.flex{display:flex}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.h-\[min\(80vh\,840px\)\]{height:min(80vh,840px)}.h-\[min\(90vh\,860px\)\]{height:min(90vh,860px)}.max-h-72{max-height:18rem}.max-h-\[280px\]{max-height:280px}.min-h-0{min-height:0}.w-\[min\(var\(--reference-width\)\,calc\(100vw-2rem\)\)\]{width:min(var(--reference-width), calc(100vw - 2rem))}.w-full{width:100%}.max-w-\[min\(95vw\,1200px\)\]\!{max-width:min(95vw,1200px)!important}.max-w-\[min\(420px\,calc\(100vw-10px\)\)\]{max-width:min(420px,100vw - 10px)}.max-w-full{max-width:100%}.min-w-0{min-width:0}.flex-1{flex:1}.shrink-0{flex-shrink:0}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:.5rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-transparent{border-color:#0000}.bg-error{background-color:var(--bg-error,#f3d6d8)}.px-1{padding-inline:.25rem}.px-2{padding-inline:.5rem}.px-3{padding-inline:.75rem}.px-4{padding-inline:1rem}.px-6{padding-inline:1.5rem}.py-1\.5{padding-block:.375rem}.py-3{padding-block:.75rem}.py-4{padding-block:1rem}.ps-1{padding-inline-start:.25rem}.pe-1{padding-inline-end:.25rem}.pt-2{padding-top:.5rem}.pb-0\.5{padding-bottom:.125rem}.pb-1{padding-bottom:.25rem}.text-start{text-align:start}.text-accent{color:var(--text-accent,#1d4ed8)}.text-error{color:var(--text-error,#ae2f2f)}.text-primary{color:var(--text-primary,#161b2d)}.text-secondary{color:var(--text-secondary,#57647a)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,cubic-bezier(.4, 0, .2, 1));transition-duration:var(--tw-duration,.15s)}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,cubic-bezier(.4, 0, .2, 1));transition-duration:var(--tw-duration,.15s)}.select-none{-webkit-user-select:none;user-select:none}.select-text{-webkit-user-select:text;user-select:text}@media (hover:hover){.hover\:bg-info:hover{background-color:var(--bg-info,#e1eaf9)}}.focus-visible\:bg-info:focus-visible,.active\:bg-info:active{background-color:var(--bg-info,#e1eaf9)}@media (max-width:1279px){.mobile\:h-full{height:100%}.mobile\:max-w-full\!{max-width:100%!important}.mobile\:rounded-none{border-radius:0}.mobile\:p-0{padding:0}}@media (min-width:1280px){.desktop\:hidden{display:none}.desktop\:inline{display:inline}.desktop\:w-\[280px\]{width:280px}}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}
|
package/index.js
CHANGED
|
@@ -1,59 +1,60 @@
|
|
|
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,
|
|
3
|
-
import { Suspense as
|
|
4
|
-
import { IconBlocks as
|
|
5
|
-
import { Fragment as
|
|
6
|
-
import { DialFileNodeType as
|
|
7
|
-
import { CatalogContentNodeType as
|
|
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, ElementSize as u, FileDropzone as d, GhostButton as f, Highlight as p, InteractiveTooltip as m, InteractiveTooltipTrigger as h, Popup as g, PopupSize as _, Select as v, Spinner as y, ToggleIconButton as b, Tooltip as x, TooltipPlacement as S } from "@epam/ai-dial-ui-kit";
|
|
3
|
+
import { Suspense as C, useCallback as w, useEffect as T, useId as E, useLayoutEffect as ee, useMemo as D, useRef as O, useState as k } from "react";
|
|
4
|
+
import { IconBlocks as A, IconEye as j, IconLock as M, IconStarFilled as N, IconTrash as te } from "@tabler/icons-react";
|
|
5
|
+
import { Fragment as P, jsx as F, jsxs as I } from "react/jsx-runtime";
|
|
6
|
+
import { DialFileNodeType as L, DialFoldersTree as R } from "@epam/ai-dial-react-file-manager";
|
|
7
|
+
import { CatalogContentNodeType as ne, DetailsPanel as z } from "@epam/ai-dial-catalog";
|
|
8
8
|
//#region src/constants/public-class-names.ts
|
|
9
9
|
var B = {
|
|
10
10
|
selectorField: "dial-skills-selector-field",
|
|
11
11
|
favoritesPanel: "dial-skills-favorites-panel",
|
|
12
12
|
chip: "dial-skills-chip"
|
|
13
|
-
}, V = /* @__PURE__ */ function(e) {
|
|
13
|
+
}, V = "max-h-[280px] max-w-[min(420px,calc(100vw-10px))] overflow-y-auto", H = /* @__PURE__ */ function(e) {
|
|
14
14
|
return e.Deleted = "deleted", e.NotShared = "not-shared", e;
|
|
15
|
-
}({}),
|
|
15
|
+
}({}), U = ({ description: e, unsupportedMessage: t, unresolvedReason: n, deletedMessage: i, notSharedMessage: d, viewDetailsLabel: f = "View details", onViewDetails: p, viewDetailsTabIndex: m, textClassName: h = "dial-tiny-text" }) => {
|
|
16
16
|
if (n != null) {
|
|
17
|
-
let e = n ===
|
|
18
|
-
return /* @__PURE__ */
|
|
17
|
+
let e = n === H.Deleted, t = e ? te : M, a = e ? i : d;
|
|
18
|
+
return /* @__PURE__ */ I("div", {
|
|
19
19
|
className: "flex flex-row items-center gap-2",
|
|
20
|
-
children: [/* @__PURE__ */
|
|
20
|
+
children: [/* @__PURE__ */ F(t, {
|
|
21
21
|
size: c.MD,
|
|
22
22
|
stroke: l,
|
|
23
23
|
"aria-hidden": !0,
|
|
24
24
|
className: "shrink-0 text-secondary"
|
|
25
|
-
}), /* @__PURE__ */
|
|
26
|
-
className: "
|
|
25
|
+
}), /* @__PURE__ */ F("p", {
|
|
26
|
+
className: r(h, "text-start text-primary"),
|
|
27
27
|
children: a
|
|
28
28
|
})]
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
|
-
return t == null ? /* @__PURE__ */
|
|
31
|
+
return t == null ? /* @__PURE__ */ I("div", {
|
|
32
32
|
className: "flex flex-col gap-3",
|
|
33
|
-
children: [e != null && e !== "" && /* @__PURE__ */
|
|
34
|
-
className: "text-start",
|
|
33
|
+
children: [e != null && e !== "" && /* @__PURE__ */ F("p", {
|
|
34
|
+
className: r(h, "text-start"),
|
|
35
35
|
children: e
|
|
36
|
-
}), /* @__PURE__ */
|
|
36
|
+
}), /* @__PURE__ */ F(a, {
|
|
37
37
|
variant: s.Primary,
|
|
38
38
|
appearance: o.Link,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
size: u.Small,
|
|
40
|
+
className: "self-start",
|
|
41
|
+
label: f,
|
|
42
|
+
iconBefore: /* @__PURE__ */ F(j, {
|
|
42
43
|
size: c.SM,
|
|
43
44
|
stroke: l,
|
|
44
45
|
"aria-hidden": !0
|
|
45
46
|
}),
|
|
46
|
-
onClick:
|
|
47
|
-
tabIndex:
|
|
47
|
+
onClick: p,
|
|
48
|
+
tabIndex: m
|
|
48
49
|
})]
|
|
49
|
-
}) : /* @__PURE__ */
|
|
50
|
-
className: "text-start",
|
|
50
|
+
}) : /* @__PURE__ */ F("p", {
|
|
51
|
+
className: r(h, "text-start"),
|
|
51
52
|
children: t
|
|
52
53
|
});
|
|
53
|
-
},
|
|
54
|
-
let { viewDetailsLabel: f = "View details", unsupportedTooltipLabel:
|
|
54
|
+
}, W = ({ name: e, path: t, description: n, isUnsupported: i = !1, unresolvedReason: a, labelClassName: o = "dial-body-paragraph-text text-accent", unsupportedLabelClassName: s = "text-error", unsupportedClassName: c = "bg-error", detailsTrigger: l = "hover", onViewDetails: u, labels: d = {} }) => {
|
|
55
|
+
let { viewDetailsLabel: f = "View details", unsupportedTooltipLabel: p = "Selected model does not support skills. Remove the skill or select different model to proceed.", deletedTooltipLabel: g = "This skill has been deleted. Its details are no longer available.", notSharedTooltipLabel: _ = "You don't have access to this skill, so its details aren't shown. Ask the chat owner to share it with you." } = d, [v, y] = k(0), b = l === "click", x = () => {
|
|
55
56
|
y((e) => e + 1), u(t);
|
|
56
|
-
}, [C, w] =
|
|
57
|
+
}, [C, w] = k(null), [T, E] = k(null);
|
|
57
58
|
return ee(() => {
|
|
58
59
|
if (!C) return;
|
|
59
60
|
let e = () => {
|
|
@@ -62,30 +63,30 @@ var B = {
|
|
|
62
63
|
if (e(), typeof ResizeObserver > "u") return;
|
|
63
64
|
let t = new ResizeObserver(e);
|
|
64
65
|
return t.observe(C), () => t.disconnect();
|
|
65
|
-
}, [C, o]), /* @__PURE__ */
|
|
66
|
+
}, [C, o]), /* @__PURE__ */ F(m, {
|
|
66
67
|
asChild: !0,
|
|
67
|
-
placement:
|
|
68
|
-
trigger: b ?
|
|
69
|
-
contentClassName:
|
|
70
|
-
content: a == null ? i ? /* @__PURE__ */
|
|
68
|
+
placement: S.Top,
|
|
69
|
+
trigger: b ? h.Click : h.Hover,
|
|
70
|
+
contentClassName: V,
|
|
71
|
+
content: a == null ? i ? /* @__PURE__ */ F(U, { unsupportedMessage: p }) : /* @__PURE__ */ F(U, {
|
|
71
72
|
description: n,
|
|
72
73
|
viewDetailsLabel: f,
|
|
73
|
-
onViewDetails:
|
|
74
|
-
}) : /* @__PURE__ */
|
|
74
|
+
onViewDetails: x
|
|
75
|
+
}) : /* @__PURE__ */ F(U, {
|
|
75
76
|
unresolvedReason: a,
|
|
76
77
|
deletedMessage: g,
|
|
77
78
|
notSharedMessage: _
|
|
78
79
|
}),
|
|
79
|
-
children: /* @__PURE__ */
|
|
80
|
+
children: /* @__PURE__ */ I("span", {
|
|
80
81
|
tabIndex: 0,
|
|
81
|
-
className: r("relative -
|
|
82
|
+
className: r("relative -ms-1 -me-1 inline cursor-pointer rounded-full ps-1 pe-1 select-text", i ? c : "hover:bg-info focus-visible:bg-info active:bg-info", i ? r(o, s) : o, B.chip),
|
|
82
83
|
"aria-label": `/${e}`,
|
|
83
|
-
children: [/* @__PURE__ */
|
|
84
|
+
children: [/* @__PURE__ */ F("span", {
|
|
84
85
|
ref: w,
|
|
85
86
|
"aria-hidden": !0,
|
|
86
87
|
className: "inset-inline-start-0 pointer-events-none absolute select-none",
|
|
87
88
|
children: "/"
|
|
88
|
-
}), /* @__PURE__ */
|
|
89
|
+
}), /* @__PURE__ */ F("span", {
|
|
89
90
|
"aria-hidden": !0,
|
|
90
91
|
className: "select-none",
|
|
91
92
|
style: { paddingInlineStart: T ?? void 0 },
|
|
@@ -93,7 +94,7 @@ var B = {
|
|
|
93
94
|
})]
|
|
94
95
|
})
|
|
95
96
|
}, v);
|
|
96
|
-
},
|
|
97
|
+
}, G = {
|
|
97
98
|
row: "_row_1v431_1",
|
|
98
99
|
header: "_header_1v431_8",
|
|
99
100
|
emptyHint: "_emptyHint_1v431_12",
|
|
@@ -104,149 +105,149 @@ var B = {
|
|
|
104
105
|
rowLeaving: "_rowLeaving_1v431_32",
|
|
105
106
|
rowFadeOut: "_rowFadeOut_1v431_1",
|
|
106
107
|
listContent: "_listContent_1v431_60"
|
|
107
|
-
},
|
|
108
|
-
let { myCollectionLabel:
|
|
109
|
-
"--fs-row-hover-bg":
|
|
110
|
-
"--fs-header-text":
|
|
111
|
-
"--fs-empty-hint-text":
|
|
112
|
-
"--fs-star-color":
|
|
113
|
-
"--fs-footer-border":
|
|
114
|
-
}), [
|
|
115
|
-
|
|
108
|
+
}, re = "px-3 pb-0.5 pt-2", ie = 180, K = 288, q = ({ favorites: n, onSelect: i, onToggleFavorite: a, onBrowse: o, onViewDetails: s, isRowTooltipHidden: l = !1, className: u, rowClassName: d, searchQuery: h, listboxId: g, activeOptionId: _, isMenu: v = !1, labels: y = {}, colors: x, nameClassName: S = "dial-small-text", headerClassName: C = "dial-tiny-lead-semi-text", emptyHintClassName: w = "dial-small-text" }) => {
|
|
109
|
+
let { myCollectionLabel: D = "My Collection", emptyHintLabel: A = "Star a skill to pin it here", browseLabel: j = "Browse", removeFromFavoritesLabel: M = "Remove from favorites", viewDetailsLabel: te = "View details", noMatchingSkillsLabel: P = "No matching skills" } = y, L = t({
|
|
110
|
+
"--fs-row-hover-bg": x?.rowHoverBackground,
|
|
111
|
+
"--fs-header-text": x?.headerText,
|
|
112
|
+
"--fs-empty-hint-text": x?.emptyHintText,
|
|
113
|
+
"--fs-star-color": x?.starColor,
|
|
114
|
+
"--fs-footer-border": x?.footerBorder
|
|
115
|
+
}), [R, ne] = k(/* @__PURE__ */ new Set()), z = O(/* @__PURE__ */ new Map());
|
|
116
|
+
T(() => {
|
|
116
117
|
let e = z.current;
|
|
117
118
|
return () => {
|
|
118
119
|
e.forEach((e) => clearTimeout(e)), e.clear();
|
|
119
120
|
};
|
|
120
121
|
}, []);
|
|
121
|
-
let
|
|
122
|
-
|
|
123
|
-
let
|
|
122
|
+
let H = g != null, W = v && !H, q = H || W ? "none" : void 0, J = "button";
|
|
123
|
+
H ? J = "option" : W && (J = "menuitem");
|
|
124
|
+
let Y = E(), ae = h != null, X = h?.toLowerCase() ?? "", Z = ae ? n.filter((e) => e.name.toLowerCase().includes(X)) : n, Q = O(null), [oe, se] = k();
|
|
124
125
|
ee(() => {
|
|
125
|
-
Q.current &&
|
|
126
|
-
}, [n,
|
|
127
|
-
let
|
|
126
|
+
Q.current && se(Math.min(Q.current.scrollHeight, K));
|
|
127
|
+
}, [n, h]);
|
|
128
|
+
let ce = (e, t) => {
|
|
128
129
|
e.target === e.currentTarget && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), i(t));
|
|
129
|
-
},
|
|
130
|
-
|
|
130
|
+
}, le = (e) => {
|
|
131
|
+
ne((t) => new Set(t).add(e));
|
|
131
132
|
let t = setTimeout(() => {
|
|
132
|
-
a?.(e),
|
|
133
|
+
a?.(e), ne((t) => {
|
|
133
134
|
let n = new Set(t);
|
|
134
135
|
return n.delete(e), n;
|
|
135
136
|
}), z.current.delete(e);
|
|
136
|
-
},
|
|
137
|
+
}, ie);
|
|
137
138
|
z.current.set(e, t);
|
|
138
139
|
};
|
|
139
|
-
return /* @__PURE__ */
|
|
140
|
-
className: r("flex w-full flex-col desktop:w-[280px]",
|
|
141
|
-
style:
|
|
140
|
+
return /* @__PURE__ */ I("div", {
|
|
141
|
+
className: r("flex w-full flex-col desktop:w-[280px]", u, B.favoritesPanel),
|
|
142
|
+
style: L,
|
|
142
143
|
children: [
|
|
143
|
-
/* @__PURE__ */
|
|
144
|
-
id:
|
|
145
|
-
className: r(
|
|
146
|
-
children:
|
|
144
|
+
/* @__PURE__ */ F("p", {
|
|
145
|
+
id: Y,
|
|
146
|
+
className: r(C, re, G.header),
|
|
147
|
+
children: D
|
|
147
148
|
}),
|
|
148
|
-
/* @__PURE__ */
|
|
149
|
-
className: r("max-h-72 min-h-0 flex-1 overflow-y-auto",
|
|
150
|
-
style: { maxHeight:
|
|
151
|
-
children: /* @__PURE__ */
|
|
149
|
+
/* @__PURE__ */ F("div", {
|
|
150
|
+
className: r("max-h-72 min-h-0 flex-1 overflow-y-auto", G.listContent),
|
|
151
|
+
style: { maxHeight: oe },
|
|
152
|
+
children: /* @__PURE__ */ F("div", {
|
|
152
153
|
ref: Q,
|
|
153
|
-
children: Z.length > 0 ? /* @__PURE__ */
|
|
154
|
-
id:
|
|
155
|
-
role:
|
|
156
|
-
"aria-labelledby":
|
|
154
|
+
children: Z.length > 0 ? /* @__PURE__ */ F("ul", {
|
|
155
|
+
id: g,
|
|
156
|
+
role: H ? "listbox" : q,
|
|
157
|
+
"aria-labelledby": H ? Y : void 0,
|
|
157
158
|
className: "flex flex-col gap-1 px-1 pb-1",
|
|
158
159
|
children: Z.map((t) => {
|
|
159
|
-
let n =
|
|
160
|
-
role:
|
|
160
|
+
let n = H ? `${g}-${encodeURIComponent(t.id)}` : void 0, o = H ? -1 : void 0, u = /* @__PURE__ */ I("div", {
|
|
161
|
+
role: J,
|
|
161
162
|
id: n,
|
|
162
|
-
"aria-selected":
|
|
163
|
+
"aria-selected": H ? n === _ : void 0,
|
|
163
164
|
"aria-label": t.name,
|
|
164
165
|
tabIndex: 0,
|
|
165
|
-
className: r("flex cursor-pointer items-center gap-2 rounded-lg border border-transparent px-2 py-1.5 transition-colors",
|
|
166
|
+
className: r("flex cursor-pointer items-center gap-2 rounded-lg border border-transparent px-2 py-1.5 transition-colors", G.row, d),
|
|
166
167
|
onClick: () => i(t),
|
|
167
|
-
onKeyDown: (e) =>
|
|
168
|
+
onKeyDown: (e) => ce(e, t),
|
|
168
169
|
children: [
|
|
169
|
-
/* @__PURE__ */
|
|
170
|
+
/* @__PURE__ */ F(e, {
|
|
170
171
|
size: c.MD,
|
|
171
172
|
initialsName: t.name
|
|
172
173
|
}),
|
|
173
|
-
|
|
174
|
-
className: r(
|
|
174
|
+
h == null ? /* @__PURE__ */ F("span", {
|
|
175
|
+
className: r(S, "min-w-0 flex-1 truncate text-start"),
|
|
175
176
|
children: t.name
|
|
176
|
-
}) : /* @__PURE__ */
|
|
177
|
+
}) : /* @__PURE__ */ F(p, {
|
|
177
178
|
text: t.name,
|
|
178
|
-
query:
|
|
179
|
+
query: h,
|
|
179
180
|
maxLines: 1,
|
|
180
|
-
className: r(
|
|
181
|
+
className: r(S, "min-w-0 flex-1 text-start")
|
|
181
182
|
}),
|
|
182
|
-
a && /* @__PURE__ */
|
|
183
|
-
icon: /* @__PURE__ */
|
|
183
|
+
a && /* @__PURE__ */ F(b, {
|
|
184
|
+
icon: /* @__PURE__ */ F(N, {
|
|
184
185
|
size: c.SM,
|
|
185
|
-
className:
|
|
186
|
+
className: G.star,
|
|
186
187
|
"aria-hidden": !0
|
|
187
188
|
}),
|
|
188
|
-
"aria-label":
|
|
189
|
+
"aria-label": M,
|
|
189
190
|
isSelected: !0,
|
|
190
191
|
tabIndex: o,
|
|
191
192
|
onClick: (e) => {
|
|
192
|
-
e.stopPropagation(),
|
|
193
|
+
e.stopPropagation(), le(t.id);
|
|
193
194
|
}
|
|
194
195
|
})
|
|
195
196
|
]
|
|
196
197
|
});
|
|
197
|
-
return /* @__PURE__ */
|
|
198
|
-
role:
|
|
199
|
-
className:
|
|
200
|
-
children: s ? /* @__PURE__ */
|
|
198
|
+
return /* @__PURE__ */ F("li", {
|
|
199
|
+
role: q,
|
|
200
|
+
className: R.has(t.id) ? G.rowLeaving : G.rowEnter,
|
|
201
|
+
children: s && !l ? /* @__PURE__ */ F(m, {
|
|
201
202
|
asChild: !0,
|
|
202
|
-
contentClassName:
|
|
203
|
-
content: /* @__PURE__ */
|
|
203
|
+
contentClassName: V,
|
|
204
|
+
content: /* @__PURE__ */ F(U, {
|
|
204
205
|
description: t.description,
|
|
205
|
-
viewDetailsLabel:
|
|
206
|
+
viewDetailsLabel: te,
|
|
206
207
|
onViewDetails: () => s(t),
|
|
207
208
|
viewDetailsTabIndex: o
|
|
208
209
|
}),
|
|
209
|
-
children:
|
|
210
|
-
}) :
|
|
210
|
+
children: u
|
|
211
|
+
}) : u
|
|
211
212
|
}, t.id);
|
|
212
213
|
})
|
|
213
|
-
}) :
|
|
214
|
+
}) : ae && X !== "" ? /* @__PURE__ */ F("p", {
|
|
214
215
|
role: "status",
|
|
215
216
|
"aria-live": "polite",
|
|
216
|
-
className: r(
|
|
217
|
-
children:
|
|
218
|
-
}) : /* @__PURE__ */
|
|
219
|
-
className: r(
|
|
220
|
-
children:
|
|
217
|
+
className: r(w, "px-4 py-4 text-start", G.emptyHint),
|
|
218
|
+
children: P
|
|
219
|
+
}) : /* @__PURE__ */ F("p", {
|
|
220
|
+
className: r(w, "px-4 py-4 text-start", G.emptyHint),
|
|
221
|
+
children: A
|
|
221
222
|
})
|
|
222
223
|
})
|
|
223
224
|
}),
|
|
224
|
-
/* @__PURE__ */
|
|
225
|
-
className: r("border-t px-2 py-3",
|
|
226
|
-
children: /* @__PURE__ */
|
|
227
|
-
role:
|
|
228
|
-
label:
|
|
225
|
+
/* @__PURE__ */ F("div", {
|
|
226
|
+
className: r("border-t px-2 py-3", G.footer),
|
|
227
|
+
children: /* @__PURE__ */ F(f, {
|
|
228
|
+
role: W ? "menuitem" : void 0,
|
|
229
|
+
label: j,
|
|
229
230
|
className: "w-full justify-center",
|
|
230
231
|
onClick: o
|
|
231
232
|
})
|
|
232
233
|
})
|
|
233
234
|
]
|
|
234
235
|
});
|
|
235
|
-
},
|
|
236
|
-
let { dialogTitle: c = "Upload skill", dropZoneLabel: l = "Drag and drop it or click here to upload", dropZoneMobileLabel:
|
|
237
|
-
return /* @__PURE__ */
|
|
236
|
+
}, J = ".zip,.md", Y = ({ isOpen: e, errorText: t, isUploading: n = !1, accept: r = J, labels: i, onClose: a, onFilesSelected: o, onFilesRejected: s }) => {
|
|
237
|
+
let { dialogTitle: c = "Upload skill", dropZoneLabel: l = "Drag and drop it or click here to upload", dropZoneMobileLabel: u = "Click here to upload", formatsLabel: f = "File formats .zip and SKILL.md", fileInputAriaLabel: p = "Upload a skill ZIP archive or a SKILL.md file", closeAriaLabel: m = "Close", uploadingAriaLabel: h = "Uploading skill" } = i ?? {};
|
|
238
|
+
return /* @__PURE__ */ F(g, {
|
|
238
239
|
open: e,
|
|
239
|
-
size:
|
|
240
|
+
size: _.Sm,
|
|
240
241
|
header: c,
|
|
241
242
|
closeAriaLabel: m,
|
|
242
243
|
onClose: a,
|
|
243
|
-
children: /* @__PURE__ */
|
|
244
|
+
children: /* @__PURE__ */ I("div", {
|
|
244
245
|
className: "flex flex-col gap-4 px-6 py-4",
|
|
245
|
-
children: [/* @__PURE__ */
|
|
246
|
-
label: /* @__PURE__ */
|
|
246
|
+
children: [/* @__PURE__ */ F(d, {
|
|
247
|
+
label: /* @__PURE__ */ I(P, { children: [/* @__PURE__ */ F("span", {
|
|
247
248
|
className: "desktop:hidden",
|
|
248
|
-
children:
|
|
249
|
-
}), /* @__PURE__ */
|
|
249
|
+
children: u
|
|
250
|
+
}), /* @__PURE__ */ F("span", {
|
|
250
251
|
className: "hidden desktop:inline",
|
|
251
252
|
children: l
|
|
252
253
|
})] }),
|
|
@@ -257,56 +258,56 @@ var B = {
|
|
|
257
258
|
errorText: n ? void 0 : t,
|
|
258
259
|
onChange: o,
|
|
259
260
|
onReject: s
|
|
260
|
-
}), n && /* @__PURE__ */
|
|
261
|
+
}), n && /* @__PURE__ */ F(y, { ariaLabel: h })]
|
|
261
262
|
})
|
|
262
263
|
});
|
|
263
|
-
},
|
|
264
|
+
}, ae = ({ isOpen: e, onClose: t, onSelect: n, title: r, renderContent: i }) => /* @__PURE__ */ F(g, {
|
|
264
265
|
open: e,
|
|
265
266
|
header: r,
|
|
266
|
-
size:
|
|
267
|
-
className: "h-[min(90vh,860px)]
|
|
267
|
+
size: _.Lg,
|
|
268
|
+
className: "h-[min(90vh,860px)] max-w-[min(95vw,1200px)]! overflow-hidden mobile:h-full mobile:max-w-full! mobile:rounded-none",
|
|
268
269
|
overlayClassName: "mobile:p-0",
|
|
269
270
|
onClose: t,
|
|
270
|
-
children: /* @__PURE__ */
|
|
271
|
+
children: /* @__PURE__ */ F("div", {
|
|
271
272
|
className: "h-[min(80vh,840px)] overflow-auto mobile:h-full",
|
|
272
|
-
children: /* @__PURE__ */
|
|
273
|
+
children: /* @__PURE__ */ F(C, {
|
|
273
274
|
fallback: null,
|
|
274
275
|
children: e && i(n, t)
|
|
275
276
|
})
|
|
276
277
|
})
|
|
277
|
-
}), X = (e, t = null) => e.map((e) => e.type ===
|
|
278
|
+
}), X = (e, t = null) => e.map((e) => e.type === ne.Folder ? {
|
|
278
279
|
path: e.id,
|
|
279
280
|
name: e.name,
|
|
280
|
-
nodeType:
|
|
281
|
+
nodeType: L.FOLDER,
|
|
281
282
|
parentPath: t,
|
|
282
283
|
folderId: e.id,
|
|
283
284
|
items: X(e.items, e.id)
|
|
284
285
|
} : {
|
|
285
286
|
path: e.id,
|
|
286
287
|
name: e.name,
|
|
287
|
-
nodeType:
|
|
288
|
+
nodeType: L.ITEM,
|
|
288
289
|
parentPath: t,
|
|
289
290
|
folderId: t ?? ""
|
|
290
|
-
}), Z = ({ nodes: e, selectedFileId: t, expandedFolderIds: n, onToggleFolder: r, onSelectFile: i, onClose: a, ariaLabel: o }) => /* @__PURE__ */
|
|
291
|
-
items:
|
|
291
|
+
}), Z = ({ nodes: e, selectedFileId: t, expandedFolderIds: n, onToggleFolder: r, onSelectFile: i, onClose: a, ariaLabel: o }) => /* @__PURE__ */ F(R, {
|
|
292
|
+
items: D(() => X(e), [e]),
|
|
292
293
|
showFiles: !0,
|
|
293
294
|
areHiddenFilesVisible: !0,
|
|
294
295
|
selectedPath: t,
|
|
295
|
-
expandedPaths:
|
|
296
|
+
expandedPaths: D(() => new Set(n), [n]),
|
|
296
297
|
onExpandedPathsChange: (e) => {
|
|
297
298
|
for (let t of e) n.has(t) || r(t);
|
|
298
299
|
for (let t of n) e.has(t) || r(t);
|
|
299
300
|
},
|
|
300
301
|
onItemClick: (e) => {
|
|
301
|
-
e.nodeType ===
|
|
302
|
+
e.nodeType === L.ITEM && i(e.path);
|
|
302
303
|
},
|
|
303
304
|
ariaLabel: o,
|
|
304
305
|
autoFocus: !0,
|
|
305
306
|
onEscape: a
|
|
306
|
-
}), Q = (e) => /* @__PURE__ */
|
|
307
|
+
}), Q = (e) => /* @__PURE__ */ F(z, {
|
|
307
308
|
...e,
|
|
308
|
-
renderContentFileTree: (e) => /* @__PURE__ */
|
|
309
|
-
}),
|
|
309
|
+
renderContentFileTree: (e) => /* @__PURE__ */ F(Z, { ...e })
|
|
310
|
+
}), oe = (e) => e == null || /[\s/]/.test(e), se = (e, t, n) => {
|
|
310
311
|
let r = [], i = 0;
|
|
311
312
|
return t.forEach((t, a) => {
|
|
312
313
|
let o = `/${n(t.url)}`, s = i;
|
|
@@ -314,7 +315,7 @@ var B = {
|
|
|
314
315
|
let t = e.indexOf(o, s);
|
|
315
316
|
if (t === -1) return;
|
|
316
317
|
let n = t + o.length;
|
|
317
|
-
if (
|
|
318
|
+
if (oe(e[n])) {
|
|
318
319
|
r.push({
|
|
319
320
|
skillIndex: a,
|
|
320
321
|
start: t,
|
|
@@ -325,14 +326,14 @@ var B = {
|
|
|
325
326
|
s = t + 1;
|
|
326
327
|
}
|
|
327
328
|
}), r;
|
|
328
|
-
},
|
|
329
|
+
}, ce = (e, t) => {
|
|
329
330
|
let n = /* @__PURE__ */ new Map();
|
|
330
331
|
t.forEach((e) => {
|
|
331
332
|
e.name !== "" && !n.has(e.name) && n.set(e.name, e.url);
|
|
332
333
|
});
|
|
333
334
|
let r = [...n.keys()].sort((e, t) => t.length - e.length), i = [], a = e.indexOf("/");
|
|
334
335
|
for (; a !== -1;) {
|
|
335
|
-
let t = a === 0 || /\s/.test(e[a - 1]), o = a + 1, s = t ? r.find((t) => e.startsWith(t, o) &&
|
|
336
|
+
let t = a === 0 || /\s/.test(e[a - 1]), o = a + 1, s = t ? r.find((t) => e.startsWith(t, o) && oe(e[o + t.length])) : void 0, c = s == null ? void 0 : n.get(s);
|
|
336
337
|
s != null && c != null ? (i.push({
|
|
337
338
|
url: c,
|
|
338
339
|
name: s,
|
|
@@ -341,7 +342,7 @@ var B = {
|
|
|
341
342
|
}), a = e.indexOf("/", o + s.length)) : a = e.indexOf("/", o);
|
|
342
343
|
}
|
|
343
344
|
return i;
|
|
344
|
-
},
|
|
345
|
+
}, le = (e, t) => {
|
|
345
346
|
let n = Math.min(e.length, t.length), r = 0;
|
|
346
347
|
for (; r < n && e[r] === t[r];) r += 1;
|
|
347
348
|
let i = n - r, a = 0;
|
|
@@ -351,13 +352,13 @@ var B = {
|
|
|
351
352
|
deletedLength: e.length - r - a,
|
|
352
353
|
insertedLength: t.length - r - a
|
|
353
354
|
};
|
|
354
|
-
},
|
|
355
|
+
}, ue = (e, t) => {
|
|
355
356
|
let n = t.start + t.deletedLength, r = t.insertedLength - t.deletedLength;
|
|
356
357
|
return e.reduce((e, i) => i.start + i.length <= t.start ? (e.push(i), e) : (i.start >= n && e.push({
|
|
357
358
|
...i,
|
|
358
359
|
start: i.start + r
|
|
359
360
|
}), e), []);
|
|
360
|
-
},
|
|
361
|
+
}, $ = (e, t, n, r, i) => {
|
|
361
362
|
let a = r.length + 1, o = a + +!!i, s = e.map((e) => e.start >= t ? {
|
|
362
363
|
...e,
|
|
363
364
|
start: e.start + o
|
|
@@ -368,7 +369,7 @@ var B = {
|
|
|
368
369
|
length: a
|
|
369
370
|
};
|
|
370
371
|
return [...s, c].sort((e, t) => e.start - t.start);
|
|
371
|
-
},
|
|
372
|
+
}, de = (e, t) => e.find((e) => e.start + e.length === t), fe = (e, t, n) => {
|
|
372
373
|
let r = t;
|
|
373
374
|
for (; r > 0 && !/\s/.test(e[r - 1]);) r--;
|
|
374
375
|
let i = r;
|
|
@@ -378,21 +379,21 @@ var B = {
|
|
|
378
379
|
start: r,
|
|
379
380
|
end: i
|
|
380
381
|
};
|
|
381
|
-
},
|
|
382
|
+
}, pe = (e, t, n) => {
|
|
382
383
|
if (n === "" || t.insertedLength < n.length) return;
|
|
383
384
|
let r = e.indexOf(n, Math.max(0, t.start - n.length)), i = t.start + t.insertedLength - n.length;
|
|
384
385
|
return r !== -1 && r <= i ? r : void 0;
|
|
385
|
-
},
|
|
386
|
-
let [e, t] =
|
|
386
|
+
}, me = () => {
|
|
387
|
+
let [e, t] = k(""), [n, r] = k([]), i = O(e);
|
|
387
388
|
i.current = e;
|
|
388
|
-
let a =
|
|
389
|
+
let a = O(n);
|
|
389
390
|
a.current = n;
|
|
390
|
-
let o =
|
|
391
|
-
let n =
|
|
391
|
+
let o = O(null), s = w((e) => {
|
|
392
|
+
let n = le(i.current, e), a = o.current;
|
|
392
393
|
o.current = null;
|
|
393
|
-
let s = a == null ? void 0 :
|
|
394
|
+
let s = a == null ? void 0 : pe(e, n, a.text);
|
|
394
395
|
r((t) => {
|
|
395
|
-
let r =
|
|
396
|
+
let r = ue(t, n);
|
|
396
397
|
if (a == null || s == null) return r;
|
|
397
398
|
let i = a.mentions.map((e) => ({
|
|
398
399
|
...e,
|
|
@@ -400,23 +401,23 @@ var B = {
|
|
|
400
401
|
})).filter((t) => e.startsWith(`/${t.name}`, t.start) && !r.some((e) => e.start < t.start + t.length && t.start < e.start + e.length));
|
|
401
402
|
return [...r, ...i].sort((e, t) => e.start - t.start);
|
|
402
403
|
}), i.current = e, t(e);
|
|
403
|
-
}, []), c =
|
|
404
|
+
}, []), c = w((e, n, a) => {
|
|
404
405
|
let o = i.current, s = !/^\s/.test(o.slice(a)), c = `/${n}${s ? " " : ""}`, l = o.slice(0, a) + c + o.slice(a);
|
|
405
|
-
return i.current = l, t(l), r((t) =>
|
|
406
|
-
}, []), l =
|
|
406
|
+
return i.current = l, t(l), r((t) => $(t, a, e, n, s)), s;
|
|
407
|
+
}, []), l = w((e, n, a) => {
|
|
407
408
|
let o = i.current, s = `/${n}`, c = o.slice(0, a) + s + o.slice(a);
|
|
408
|
-
i.current = c, t(c), r((t) =>
|
|
409
|
-
}, []), u =
|
|
409
|
+
i.current = c, t(c), r((t) => $(t, a, e, n, !1));
|
|
410
|
+
}, []), u = w((e) => de(a.current, e), []), d = D(() => {
|
|
410
411
|
if (n.length !== 0) return n.map((e) => ({ url: e.url }));
|
|
411
|
-
}, [n]), f =
|
|
412
|
+
}, [n]), f = w((e, t) => {
|
|
412
413
|
o.current = t.length > 0 ? {
|
|
413
414
|
text: e,
|
|
414
415
|
mentions: t
|
|
415
416
|
} : null;
|
|
416
|
-
}, []), p =
|
|
417
|
+
}, []), p = w(() => {
|
|
417
418
|
t(""), r([]);
|
|
418
|
-
}, []), m =
|
|
419
|
-
let a = n ?? [], o =
|
|
419
|
+
}, []), m = w((e, n, i) => {
|
|
420
|
+
let a = n ?? [], o = se(e, a, i);
|
|
420
421
|
t(e), r(o.map((e) => {
|
|
421
422
|
let t = a[e.skillIndex];
|
|
422
423
|
return {
|
|
@@ -427,7 +428,7 @@ var B = {
|
|
|
427
428
|
};
|
|
428
429
|
}));
|
|
429
430
|
}, []);
|
|
430
|
-
return
|
|
431
|
+
return D(() => ({
|
|
431
432
|
draft: e,
|
|
432
433
|
anchors: n,
|
|
433
434
|
onDraftChange: s,
|
|
@@ -450,18 +451,18 @@ var B = {
|
|
|
450
451
|
p,
|
|
451
452
|
m
|
|
452
453
|
]);
|
|
453
|
-
},
|
|
454
|
+
}, he = (e) => ({
|
|
454
455
|
id: e.url,
|
|
455
456
|
name: e.name,
|
|
456
457
|
description: e.description
|
|
457
|
-
}),
|
|
458
|
+
}), ge = (e) => {
|
|
458
459
|
let t = e.split("/").filter((e) => e.length > 0);
|
|
459
460
|
return t[t.length - 1] ?? e;
|
|
460
|
-
},
|
|
461
|
+
}, _e = (e) => {
|
|
461
462
|
let t = e.split("/").filter((e) => e.length > 0);
|
|
462
463
|
return t[0] !== "skills" || t.length < 3 ? null : t[1];
|
|
463
|
-
},
|
|
464
|
-
let { addMenuLabel:
|
|
464
|
+
}, ve = (e, t) => _e(e) === t ? H.Deleted : H.NotShared, ye = "/", be = ({ isSkillsSupported: e, skills: t, sharedWithMe: n, publicSkills: r, favoriteIds: a, viewerBucket: o, onToggleFavorite: s, labels: c, historyChipLabelClassName: u, activeMentionLabelClassName: d = "text-accent", activeMentionDetailsTrigger: f, historyDetailsTrigger: p, isRowTooltipHidden: m = !1, renderCatalogContent: h, detailsPanelComponent: g }) => {
|
|
465
|
+
let { addMenuLabel: _ = "Skills", backLabel: v = "Back", catalogModalTitleLabel: y = "Use skill", emptyQueryHintLabel: b = "Type to filter", deletedTooltipLabel: x, notSharedTooltipLabel: S, unsupportedTooltipLabel: T, panelLabels: E } = c ?? {}, [ee, j] = k(!1), [M, N] = k(null), [te, P] = k(0), I = O(null), [L, R] = k(0), [ne, z] = k(void 0), B = me(), V = D(() => [
|
|
465
466
|
...t,
|
|
466
467
|
...n ?? [],
|
|
467
468
|
...r ?? []
|
|
@@ -469,21 +470,21 @@ var B = {
|
|
|
469
470
|
t,
|
|
470
471
|
n,
|
|
471
472
|
r
|
|
472
|
-
]), H =
|
|
473
|
+
]), H = D(() => new Map(V.map((e) => [e.url, e])), [V]), U = w((e) => H.get(e)?.name ?? ge(e), [H]), G = D(() => V.filter((e) => a.has(e.url)).map((e) => he(e)), [V, a]), re = B.anchors.length > 0 && !e, ie = D(() => B.anchors.map((t) => ({
|
|
473
474
|
start: t.start,
|
|
474
475
|
length: t.length,
|
|
475
476
|
isUnsupported: !e,
|
|
476
|
-
render: () => /* @__PURE__ */
|
|
477
|
+
render: () => /* @__PURE__ */ F(W, {
|
|
477
478
|
name: t.name,
|
|
478
479
|
path: t.url,
|
|
479
480
|
labelClassName: d,
|
|
480
481
|
description: H.get(t.url)?.description,
|
|
481
482
|
isUnsupported: !e,
|
|
482
483
|
detailsTrigger: f,
|
|
483
|
-
onViewDetails:
|
|
484
|
+
onViewDetails: N,
|
|
484
485
|
labels: {
|
|
485
|
-
viewDetailsLabel:
|
|
486
|
-
unsupportedTooltipLabel:
|
|
486
|
+
viewDetailsLabel: E?.viewDetailsLabel,
|
|
487
|
+
unsupportedTooltipLabel: T
|
|
487
488
|
}
|
|
488
489
|
})
|
|
489
490
|
})), [
|
|
@@ -492,16 +493,16 @@ var B = {
|
|
|
492
493
|
H,
|
|
493
494
|
d,
|
|
494
495
|
f,
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
]),
|
|
496
|
+
E,
|
|
497
|
+
T
|
|
498
|
+
]), K = w((e, t, n) => {
|
|
498
499
|
let r = B.insertMention(e, t, n);
|
|
499
|
-
|
|
500
|
-
}, [B]), J =
|
|
501
|
-
let t =
|
|
500
|
+
R((e) => e + 1), z(n + 1 + t.length + +!!r);
|
|
501
|
+
}, [B]), J = w((e) => {
|
|
502
|
+
let t = fe(B.draft, e, ye);
|
|
502
503
|
return t == null ? e : (B.onDraftChange(B.draft.slice(0, t.start) + B.draft.slice(t.end)), t.start);
|
|
503
|
-
}, [B]),
|
|
504
|
-
let t =
|
|
504
|
+
}, [B]), Y = w((e) => {
|
|
505
|
+
let t = fe(B.draft, e, ye);
|
|
505
506
|
if (t == null) return;
|
|
506
507
|
let n = B.anchors.find((e) => e.start === t.start && e.start + e.length === t.end);
|
|
507
508
|
return {
|
|
@@ -509,213 +510,220 @@ var B = {
|
|
|
509
510
|
text: B.draft.slice(t.start, t.end),
|
|
510
511
|
mentionUrl: n?.url
|
|
511
512
|
};
|
|
512
|
-
}, [B]),
|
|
513
|
-
B.reset(),
|
|
514
|
-
}, [B]), { expectInsertion:
|
|
515
|
-
|
|
513
|
+
}, [B]), X = w(() => {
|
|
514
|
+
B.reset(), R((e) => e + 1), z(void 0);
|
|
515
|
+
}, [B]), { expectInsertion: Z } = B, Q = w((t) => {
|
|
516
|
+
Z(t, e ? ce(t, V) : []);
|
|
516
517
|
}, [
|
|
517
|
-
|
|
518
|
+
Z,
|
|
518
519
|
e,
|
|
519
520
|
V
|
|
520
|
-
]), oe =
|
|
521
|
-
B.seedFromMessage(e, t,
|
|
522
|
-
}, [B,
|
|
521
|
+
]), oe = w((e, t) => {
|
|
522
|
+
B.seedFromMessage(e, t, U), R((e) => e + 1), z(void 0);
|
|
523
|
+
}, [B, U]), le = w((e, t) => {
|
|
523
524
|
if (t == null || t.length === 0) return null;
|
|
524
|
-
let n =
|
|
525
|
+
let n = se(e, t, U), r = [], i = 0;
|
|
525
526
|
return n.forEach((n) => {
|
|
526
527
|
n.start > i && r.push(e.slice(i, n.start));
|
|
527
|
-
let a = t[n.skillIndex], s = H.get(a.url), c = s?.name ??
|
|
528
|
-
r.push(
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
528
|
+
let a = t[n.skillIndex], s = H.get(a.url), c = s?.name ?? ge(a.url), l = s == null ? ve(a.url, o) : void 0;
|
|
529
|
+
r.push({
|
|
530
|
+
text: e.slice(n.start, n.start + n.length),
|
|
531
|
+
node: /* @__PURE__ */ F(W, {
|
|
532
|
+
name: c,
|
|
533
|
+
path: a.url,
|
|
534
|
+
labelClassName: u,
|
|
535
|
+
description: s?.description,
|
|
536
|
+
unresolvedReason: l,
|
|
537
|
+
detailsTrigger: p,
|
|
538
|
+
onViewDetails: N,
|
|
539
|
+
labels: {
|
|
540
|
+
viewDetailsLabel: E?.viewDetailsLabel,
|
|
541
|
+
deletedTooltipLabel: x,
|
|
542
|
+
notSharedTooltipLabel: S
|
|
543
|
+
}
|
|
544
|
+
}, `${a.url}-${n.start}`)
|
|
545
|
+
}), i = n.start + n.length;
|
|
542
546
|
}), i < e.length && r.push(e.slice(i)), r;
|
|
543
547
|
}, [
|
|
544
|
-
|
|
548
|
+
U,
|
|
545
549
|
H,
|
|
546
550
|
u,
|
|
547
551
|
p,
|
|
548
|
-
|
|
552
|
+
E,
|
|
549
553
|
o,
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
]),
|
|
553
|
-
let t = H.get(e.url), n = t?.name ??
|
|
554
|
-
return /* @__PURE__ */
|
|
554
|
+
x,
|
|
555
|
+
S
|
|
556
|
+
]), ue = w((e) => e == null || e.length === 0 ? null : e.map((e) => {
|
|
557
|
+
let t = H.get(e.url), n = t?.name ?? ge(e.url), r = t == null ? ve(e.url, o) : void 0;
|
|
558
|
+
return /* @__PURE__ */ F(W, {
|
|
555
559
|
name: n,
|
|
556
560
|
path: e.url,
|
|
557
561
|
labelClassName: u,
|
|
558
562
|
description: t?.description,
|
|
559
563
|
unresolvedReason: r,
|
|
560
564
|
detailsTrigger: p,
|
|
561
|
-
onViewDetails:
|
|
565
|
+
onViewDetails: N,
|
|
562
566
|
labels: {
|
|
563
|
-
viewDetailsLabel:
|
|
564
|
-
deletedTooltipLabel:
|
|
565
|
-
notSharedTooltipLabel:
|
|
567
|
+
viewDetailsLabel: E?.viewDetailsLabel,
|
|
568
|
+
deletedTooltipLabel: x,
|
|
569
|
+
notSharedTooltipLabel: S
|
|
566
570
|
}
|
|
567
571
|
}, e.url);
|
|
568
572
|
}), [
|
|
569
573
|
H,
|
|
570
574
|
u,
|
|
571
575
|
p,
|
|
572
|
-
|
|
576
|
+
E,
|
|
573
577
|
o,
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
]),
|
|
578
|
+
x,
|
|
579
|
+
S
|
|
580
|
+
]), $ = w((e, t) => /* @__PURE__ */ F(q, {
|
|
577
581
|
favorites: G,
|
|
578
582
|
isMenu: !0,
|
|
579
583
|
onSelect: (n) => {
|
|
580
|
-
|
|
584
|
+
K(n.id, n.name, J(t)), e();
|
|
581
585
|
},
|
|
582
586
|
onToggleFavorite: s,
|
|
583
587
|
onBrowse: () => {
|
|
584
|
-
let n =
|
|
585
|
-
|
|
588
|
+
let n = Y(t);
|
|
589
|
+
P(J(t)), I.current = n ?? null, e(), j(!0);
|
|
586
590
|
},
|
|
587
591
|
onViewDetails: (n) => {
|
|
588
|
-
J(t), e(),
|
|
592
|
+
J(t), e(), N(n.id);
|
|
589
593
|
},
|
|
590
|
-
|
|
594
|
+
isRowTooltipHidden: m,
|
|
595
|
+
labels: E
|
|
591
596
|
}), [
|
|
592
597
|
G,
|
|
593
|
-
|
|
598
|
+
K,
|
|
594
599
|
J,
|
|
595
|
-
|
|
600
|
+
Y,
|
|
596
601
|
s,
|
|
597
|
-
|
|
602
|
+
m,
|
|
603
|
+
E
|
|
598
604
|
]);
|
|
599
605
|
return {
|
|
600
|
-
skillMenuOverlay:
|
|
606
|
+
skillMenuOverlay: D(() => e ? {
|
|
601
607
|
key: "skills",
|
|
602
|
-
title:
|
|
603
|
-
icon: /* @__PURE__ */
|
|
608
|
+
title: _,
|
|
609
|
+
icon: /* @__PURE__ */ F(A, {
|
|
604
610
|
size: i,
|
|
605
611
|
"aria-hidden": !0,
|
|
606
612
|
stroke: l
|
|
607
613
|
}),
|
|
608
|
-
renderOverlay:
|
|
609
|
-
backLabel:
|
|
614
|
+
renderOverlay: $,
|
|
615
|
+
backLabel: v
|
|
610
616
|
} : void 0, [
|
|
611
617
|
e,
|
|
612
|
-
g,
|
|
613
618
|
_,
|
|
614
|
-
|
|
619
|
+
v,
|
|
620
|
+
$
|
|
615
621
|
]),
|
|
616
|
-
commandMenu:
|
|
617
|
-
triggerPrefix:
|
|
618
|
-
menuLabel:
|
|
619
|
-
emptyQueryHint:
|
|
620
|
-
onTextPaste:
|
|
621
|
-
renderMenu: ({ query: e, caretPosition: t, close: n, listboxId: r, activeOptionId: i }) => /* @__PURE__ */
|
|
622
|
+
commandMenu: D(() => e ? {
|
|
623
|
+
triggerPrefix: ye,
|
|
624
|
+
menuLabel: _,
|
|
625
|
+
emptyQueryHint: b,
|
|
626
|
+
onTextPaste: Q,
|
|
627
|
+
renderMenu: ({ query: e, caretPosition: t, close: n, listboxId: r, activeOptionId: i }) => /* @__PURE__ */ F(q, {
|
|
622
628
|
favorites: G,
|
|
623
629
|
searchQuery: e,
|
|
624
630
|
listboxId: r,
|
|
625
631
|
activeOptionId: i,
|
|
626
632
|
onSelect: (e) => {
|
|
627
|
-
n({ consumeQuery: !0 }),
|
|
633
|
+
n({ consumeQuery: !0 }), K(e.id, e.name, t);
|
|
628
634
|
},
|
|
629
635
|
onToggleFavorite: s,
|
|
630
636
|
onBrowse: () => {
|
|
631
|
-
let r = `${
|
|
637
|
+
let r = `${ye}${e}`, i = B.anchors.find((e) => e.start === t && e.length === r.length);
|
|
632
638
|
n({
|
|
633
639
|
consumeQuery: !0,
|
|
634
640
|
returnFocus: !1
|
|
635
|
-
}),
|
|
641
|
+
}), P(t), I.current = {
|
|
636
642
|
position: t,
|
|
637
643
|
text: r,
|
|
638
644
|
mentionUrl: i?.url
|
|
639
|
-
},
|
|
645
|
+
}, j(!0);
|
|
640
646
|
},
|
|
641
647
|
onViewDetails: (e) => {
|
|
642
|
-
n({ consumeQuery: !0 }),
|
|
648
|
+
n({ consumeQuery: !0 }), N(e.id);
|
|
643
649
|
},
|
|
644
|
-
|
|
650
|
+
isRowTooltipHidden: m,
|
|
651
|
+
labels: E
|
|
645
652
|
})
|
|
646
653
|
} : void 0, [
|
|
647
654
|
e,
|
|
648
|
-
|
|
649
|
-
|
|
655
|
+
_,
|
|
656
|
+
b,
|
|
650
657
|
G,
|
|
651
|
-
|
|
658
|
+
K,
|
|
652
659
|
B.anchors,
|
|
653
660
|
s,
|
|
654
|
-
|
|
655
|
-
|
|
661
|
+
m,
|
|
662
|
+
E,
|
|
663
|
+
Q
|
|
656
664
|
]),
|
|
657
|
-
skillCatalogModal: /* @__PURE__ */
|
|
665
|
+
skillCatalogModal: /* @__PURE__ */ F(ae, {
|
|
658
666
|
isOpen: ee,
|
|
659
|
-
onClose:
|
|
660
|
-
|
|
661
|
-
let e =
|
|
662
|
-
if (
|
|
667
|
+
onClose: w(() => {
|
|
668
|
+
j(!1);
|
|
669
|
+
let e = I.current;
|
|
670
|
+
if (I.current = null, e == null) return;
|
|
663
671
|
let { position: t, text: n, mentionUrl: r } = e;
|
|
664
|
-
r == null ? B.onDraftChange(B.draft.slice(0, t) + n + B.draft.slice(t)) : B.restoreMention(r, n.slice(1), t),
|
|
672
|
+
r == null ? B.onDraftChange(B.draft.slice(0, t) + n + B.draft.slice(t)) : B.restoreMention(r, n.slice(1), t), R((e) => e + 1), z(t + n.length);
|
|
665
673
|
}, [B]),
|
|
666
674
|
onSelect: (e) => {
|
|
667
|
-
|
|
675
|
+
I.current = null, K(e, U(e), te), j(!1);
|
|
668
676
|
},
|
|
669
|
-
title:
|
|
670
|
-
renderContent:
|
|
677
|
+
title: y,
|
|
678
|
+
renderContent: h
|
|
671
679
|
}),
|
|
672
|
-
skillDetailsPanel: /* @__PURE__ */
|
|
680
|
+
skillDetailsPanel: /* @__PURE__ */ F(C, {
|
|
673
681
|
fallback: null,
|
|
674
|
-
children: /* @__PURE__ */
|
|
675
|
-
skillId:
|
|
676
|
-
onClose: () =>
|
|
682
|
+
children: /* @__PURE__ */ F(g, {
|
|
683
|
+
skillId: M,
|
|
684
|
+
onClose: () => N(null)
|
|
677
685
|
})
|
|
678
686
|
}),
|
|
679
687
|
message: B.draft,
|
|
680
|
-
messageRevision:
|
|
681
|
-
activeMentions:
|
|
688
|
+
messageRevision: L,
|
|
689
|
+
activeMentions: ie,
|
|
682
690
|
onDraftChange: B.onDraftChange,
|
|
683
691
|
onBackspaceAtCaret: B.onBackspaceAtCaret,
|
|
684
|
-
caretPositionOverride:
|
|
685
|
-
isSkillUnsupported:
|
|
692
|
+
caretPositionOverride: ne,
|
|
693
|
+
isSkillUnsupported: re,
|
|
686
694
|
selectedSkills: B.orderedSkills,
|
|
687
|
-
resetSkillMentions:
|
|
695
|
+
resetSkillMentions: X,
|
|
688
696
|
seedSkillMentions: oe,
|
|
689
|
-
recognizeMentionsInInsertion:
|
|
690
|
-
renderHistorySkillSegments:
|
|
691
|
-
renderHistorySkills:
|
|
697
|
+
recognizeMentionsInInsertion: Q,
|
|
698
|
+
renderHistorySkillSegments: le,
|
|
699
|
+
renderHistorySkills: ue
|
|
692
700
|
};
|
|
693
|
-
},
|
|
701
|
+
}, xe = {
|
|
694
702
|
background: "_background_1ult0_1",
|
|
695
703
|
border: "_border_1ult0_5",
|
|
696
704
|
value: "_value_1ult0_9",
|
|
697
705
|
clear: "_clear_1ult0_13",
|
|
698
706
|
invalid: "_invalid_1ult0_17"
|
|
699
|
-
},
|
|
700
|
-
let [g,
|
|
707
|
+
}, Se = [], Ce = "Selected model does not support skills. Select a different model to use a skill.", we = ({ value: i, onChange: a, displayNames: o, skills: s = Se, isSkillsSupported: l, isDisabled: u = !1, error: d, labels: f, className: m, styles: h }) => {
|
|
708
|
+
let [g, _] = k(!1), [y, b] = k(""), S = O(null), C = E(), w = i.some((e) => n(e, l)), T = l && !u, D = g && T, A = i.length > 0 ? f.unsupportedTooltipLabel : f.unavailableTooltipLabel ?? Ce, j = !l && i.length === 0, M = d ?? (j ? A : void 0), N = new Map(i.map((e) => [e, {
|
|
701
709
|
id: e,
|
|
702
710
|
name: o?.[e] || e
|
|
703
711
|
}]));
|
|
704
|
-
s.forEach((e) =>
|
|
705
|
-
let
|
|
712
|
+
s.forEach((e) => N.set(e.id, e));
|
|
713
|
+
let te = [...N.values()].map((t) => ({
|
|
706
714
|
value: t.id,
|
|
707
715
|
label: t.name,
|
|
708
|
-
labelNode: y.trim() ? /* @__PURE__ */
|
|
716
|
+
labelNode: y.trim() ? /* @__PURE__ */ F(p, {
|
|
709
717
|
text: t.name,
|
|
710
718
|
query: y,
|
|
711
719
|
maxLines: 1
|
|
712
720
|
}) : void 0,
|
|
713
|
-
icon: /* @__PURE__ */
|
|
721
|
+
icon: /* @__PURE__ */ F(e, {
|
|
714
722
|
size: c.SM,
|
|
715
723
|
initialsName: t.name
|
|
716
724
|
}),
|
|
717
725
|
disabled: !l
|
|
718
|
-
})),
|
|
726
|
+
})), P = {
|
|
719
727
|
...t({
|
|
720
728
|
"--ssf-text": h?.colors?.text,
|
|
721
729
|
"--ssf-bg": h?.colors?.background,
|
|
@@ -726,55 +734,55 @@ var B = {
|
|
|
726
734
|
};
|
|
727
735
|
return ee(() => {
|
|
728
736
|
let e = S.current?.querySelector("[role=\"combobox\"]");
|
|
729
|
-
e && (
|
|
737
|
+
e && (M ? e.setAttribute("aria-describedby", C) : e.removeAttribute("aria-describedby"), d || w ? e.setAttribute("aria-invalid", "true") : e.removeAttribute("aria-invalid"));
|
|
730
738
|
}, [
|
|
731
|
-
|
|
739
|
+
M,
|
|
732
740
|
C,
|
|
733
741
|
d,
|
|
734
742
|
u,
|
|
735
743
|
w
|
|
736
|
-
]), /* @__PURE__ */
|
|
744
|
+
]), /* @__PURE__ */ I("div", {
|
|
737
745
|
ref: S,
|
|
738
746
|
className: r("min-w-0", m, B.selectorField),
|
|
739
|
-
style:
|
|
740
|
-
children: [/* @__PURE__ */
|
|
741
|
-
tooltip:
|
|
747
|
+
style: P,
|
|
748
|
+
children: [/* @__PURE__ */ F(x, {
|
|
749
|
+
tooltip: A,
|
|
742
750
|
hideTooltip: l,
|
|
743
751
|
triggerClassName: "block w-full min-w-0",
|
|
744
|
-
children: /* @__PURE__ */
|
|
752
|
+
children: /* @__PURE__ */ F("div", {
|
|
745
753
|
inert: u ? !0 : void 0,
|
|
746
|
-
children: /* @__PURE__ */
|
|
754
|
+
children: /* @__PURE__ */ F(v, {
|
|
747
755
|
multiple: !0,
|
|
748
756
|
searchable: !0,
|
|
749
|
-
open:
|
|
757
|
+
open: D,
|
|
750
758
|
onOpenChange: (e) => {
|
|
751
|
-
e && !
|
|
759
|
+
e && !T || _(e);
|
|
752
760
|
},
|
|
753
|
-
onSearchQueryChange:
|
|
761
|
+
onSearchQueryChange: b,
|
|
754
762
|
value: i,
|
|
755
763
|
onChange: (e) => {
|
|
756
764
|
u || a(Array.isArray(e) ? e : [e]);
|
|
757
765
|
},
|
|
758
|
-
options:
|
|
759
|
-
placeholder:
|
|
760
|
-
labelProps: { label:
|
|
766
|
+
options: te,
|
|
767
|
+
placeholder: f.placeholder,
|
|
768
|
+
labelProps: { label: f.fieldLabel },
|
|
761
769
|
error: d,
|
|
762
|
-
caption:
|
|
763
|
-
searchPlaceholder:
|
|
764
|
-
emptyStateTitle: y.trim() ?
|
|
765
|
-
disabled: u ||
|
|
770
|
+
caption: j ? A : void 0,
|
|
771
|
+
searchPlaceholder: f.searchPlaceholder ?? "Search skills",
|
|
772
|
+
emptyStateTitle: y.trim() ? f.noMatchingSkillsLabel ?? "No matching skills" : f.emptyLabel ?? "No skills available",
|
|
773
|
+
disabled: u || j,
|
|
766
774
|
invalid: !!d || w,
|
|
767
775
|
className: "w-full min-w-0",
|
|
768
|
-
fieldClassName: r(
|
|
776
|
+
fieldClassName: r(T ? "cursor-pointer" : "cursor-not-allowed", "--ssf-bg" in P && xe.background, "--ssf-border" in P && xe.border, "--ssf-text" in P && xe.value, (d || w) && xe.invalid, h?.typography?.fontClassName ?? "dial-small-text", h?.triggerClassName),
|
|
769
777
|
listClassName: "w-[min(var(--reference-width),calc(100vw-2rem))] max-w-full"
|
|
770
778
|
})
|
|
771
779
|
})
|
|
772
|
-
}),
|
|
780
|
+
}), M && /* @__PURE__ */ F("span", {
|
|
773
781
|
id: C,
|
|
774
782
|
className: "sr-only",
|
|
775
|
-
children:
|
|
783
|
+
children: M
|
|
776
784
|
})]
|
|
777
785
|
});
|
|
778
786
|
};
|
|
779
787
|
//#endregion
|
|
780
|
-
export {
|
|
788
|
+
export { W as ChatSkill, q as FavoriteSkillsPanel, B as SKILLS_CLASS, Y as SkillArchiveUploadDialog, ae as SkillCatalogModal, Z as SkillContentFileTree, Q as SkillDetailsSidePanel, U as SkillInfoTooltipContent, we as SkillSelectorField, H as SkillUnresolvedReason, he as buildFavoriteSkillItem, le as diffTextChange, de as findMentionAtCaret, ge as getSkillFallbackName, $ as insertAnchor, se as matchSkillMentions, ue as reconcileAnchors, me as useSkillMentions, be as useSkillSelectorOverlay };
|
|
@@ -39,6 +39,8 @@ export interface FavoriteSkillsPanelProps {
|
|
|
39
39
|
onBrowse: () => void;
|
|
40
40
|
/** Opens skill details; omitted hides the details tooltip. */
|
|
41
41
|
onViewDetails?: (item: FavoriteSkillItem) => void;
|
|
42
|
+
/** Whether rows render without the hover/focus details tooltip, even when `onViewDetails` is set. Defaults to `false`. */
|
|
43
|
+
isRowTooltipHidden?: boolean;
|
|
42
44
|
/** Additional classes applied to the panel root. */
|
|
43
45
|
className?: string;
|
|
44
46
|
/** Additional classes applied to each favorite row. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"favorite-skills-panel-props.d.ts","sourceRoot":"","sources":["../../src/models/favorite-skills-panel-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,kFAAkF;AAClF,MAAM,WAAW,yBAAyB;IACxC,sEAAsE;IACtE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,2FAA2F;IAC3F,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kEAAkE;IAClE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,6GAA6G;IAC7G,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,qFAAqF;IACrF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,oGAAoG;IACpG,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,6DAA6D;AAC7D,MAAM,WAAW,yBAAyB;IACxC,2EAA2E;IAC3E,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,+EAA+E;IAC/E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kFAAkF;IAClF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,0EAA0E;IAC1E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sFAAsF;IACtF,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,+CAA+C;AAC/C,MAAM,WAAW,wBAAwB;IACvC,iEAAiE;IACjE,SAAS,EAAE,iBAAiB,EAAE,CAAC;IAC/B,6IAA6I;IAC7I,QAAQ,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC5C,+DAA+D;IAC/D,gBAAgB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,kDAAkD;IAClD,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,8DAA8D;IAC9D,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAClD,oDAAoD;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uDAAuD;IACvD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;;OAKG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,oCAAoC;IACpC,MAAM,CAAC,EAAE,yBAAyB,CAAC;IACnC,wDAAwD;IACxD,MAAM,CAAC,EAAE,yBAAyB,CAAC;IACnC,gFAAgF;IAChF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oIAAoI;IACpI,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,sFAAsF;IACtF,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B"}
|
|
1
|
+
{"version":3,"file":"favorite-skills-panel-props.d.ts","sourceRoot":"","sources":["../../src/models/favorite-skills-panel-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,kFAAkF;AAClF,MAAM,WAAW,yBAAyB;IACxC,sEAAsE;IACtE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,2FAA2F;IAC3F,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kEAAkE;IAClE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,6GAA6G;IAC7G,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,qFAAqF;IACrF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,oGAAoG;IACpG,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,6DAA6D;AAC7D,MAAM,WAAW,yBAAyB;IACxC,2EAA2E;IAC3E,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,+EAA+E;IAC/E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kFAAkF;IAClF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,0EAA0E;IAC1E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sFAAsF;IACtF,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,+CAA+C;AAC/C,MAAM,WAAW,wBAAwB;IACvC,iEAAiE;IACjE,SAAS,EAAE,iBAAiB,EAAE,CAAC;IAC/B,6IAA6I;IAC7I,QAAQ,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC5C,+DAA+D;IAC/D,gBAAgB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,kDAAkD;IAClD,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,8DAA8D;IAC9D,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAClD,0HAA0H;IAC1H,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,oDAAoD;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uDAAuD;IACvD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;;OAKG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,oCAAoC;IACpC,MAAM,CAAC,EAAE,yBAAyB,CAAC;IACnC,wDAAwD;IACxD,MAAM,CAAC,EAAE,yBAAyB,CAAC;IACnC,gFAAgF;IAChF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oIAAoI;IACpI,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,sFAAsF;IACtF,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B"}
|
|
@@ -30,5 +30,7 @@ export interface SkillInfoTooltipContentProps {
|
|
|
30
30
|
* Tab should move from row to row. Unset keeps the button's default.
|
|
31
31
|
*/
|
|
32
32
|
viewDetailsTabIndex?: number;
|
|
33
|
+
/** CSS class applied to the description and message paragraphs. Defaults to `'dial-tiny-text'`. */
|
|
34
|
+
textClassName?: string;
|
|
33
35
|
}
|
|
34
36
|
//# sourceMappingURL=skill-info-tooltip-content-props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill-info-tooltip-content-props.d.ts","sourceRoot":"","sources":["../../src/models/skill-info-tooltip-content-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAE9E,iEAAiE;AACjE,MAAM,WAAW,4BAA4B;IAC3C,sFAAsF;IACtF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,qBAAqB,CAAC;IACzC,+GAA+G;IAC/G,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,4GAA4G;IAC5G,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,yEAAyE;IACzE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kGAAkG;IAClG,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"skill-info-tooltip-content-props.d.ts","sourceRoot":"","sources":["../../src/models/skill-info-tooltip-content-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAE9E,iEAAiE;AACjE,MAAM,WAAW,4BAA4B;IAC3C,sFAAsF;IACtF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,qBAAqB,CAAC;IACzC,+GAA+G;IAC/G,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,4GAA4G;IAC5G,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,yEAAyE;IACzE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kGAAkG;IAClG,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mGAAmG;IACnG,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RequestSkill } from '@epam/ai-dial-chat-shared';
|
|
1
|
+
import { RequestSkill, TextSegment } 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
4
|
import { ChatSkillDetailsTrigger } from './chat-skill-props';
|
|
@@ -111,6 +111,8 @@ export interface UseSkillSelectorOverlayOptions {
|
|
|
111
111
|
* layouts, where hover never fires.
|
|
112
112
|
*/
|
|
113
113
|
historyDetailsTrigger?: ChatSkillDetailsTrigger;
|
|
114
|
+
/** Forwarded to the Add-menu and slash-menu favorites panels' `isRowTooltipHidden`. Defaults to `false`. */
|
|
115
|
+
isRowTooltipHidden?: boolean;
|
|
114
116
|
/**
|
|
115
117
|
* Renders the browse modal's picker content (e.g. a host catalog view);
|
|
116
118
|
* receives the selection and close callbacks to wire into it, and is
|
|
@@ -235,7 +237,7 @@ export interface UseSkillSelectorOverlayResult {
|
|
|
235
237
|
recognizeMentionsInInsertion: (text: string) => void;
|
|
236
238
|
/**
|
|
237
239
|
* Renders a user message's `content` and `custom_content.skills` as an
|
|
238
|
-
* ordered array interleaving
|
|
240
|
+
* ordered array interleaving markdown string runs and `ChatSkill` segments (each with its matched `/{name}` text) at
|
|
239
241
|
* each mention's actual text position — for `UserMessageBubble`'s
|
|
240
242
|
* `textSegments` prop. Resolves each entry's name from the listing pools
|
|
241
243
|
* matched on its url, falling back to the url's last non-empty segment;
|
|
@@ -248,7 +250,7 @@ export interface UseSkillSelectorOverlayResult {
|
|
|
248
250
|
* `matchSkillMentions` cannot locate in `content` is simply omitted from
|
|
249
251
|
* the render (see `matchSkillMentions`'s own doc for that heuristic).
|
|
250
252
|
*/
|
|
251
|
-
renderHistorySkillSegments: (content: string, skills: RequestSkill[] | undefined) =>
|
|
253
|
+
renderHistorySkillSegments: (content: string, skills: RequestSkill[] | undefined) => TextSegment[] | null;
|
|
252
254
|
/**
|
|
253
255
|
* Renders every entry of `skills` as a flat list of `ChatSkill` elements,
|
|
254
256
|
* ignoring text position — for `AssistantMessageBubble`'s `beforeContent`
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
1
|
+
{"version":3,"file":"skill-selector-overlay.d.ts","sourceRoot":"","sources":["../../src/models/skill-selector-overlay.ts"],"names":[],"mappings":"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"}
|
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.
|
|
4
|
+
"version": "1.3.0-dev.102",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@tabler/icons-react": "^3.44.0",
|
|
21
|
-
"@epam/ai-dial-catalog": "1.
|
|
22
|
-
"@epam/ai-dial-conversation-input": "1.
|
|
21
|
+
"@epam/ai-dial-catalog": "1.3.0-dev.102",
|
|
22
|
+
"@epam/ai-dial-conversation-input": "1.3.0-dev.102"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@epam/ai-dial-chat-shared": "1.
|
|
26
|
-
"@epam/ai-dial-react-file-manager": "^0.
|
|
27
|
-
"@epam/ai-dial-ui-kit": "^0.
|
|
25
|
+
"@epam/ai-dial-chat-shared": "1.3.0-dev.102",
|
|
26
|
+
"@epam/ai-dial-react-file-manager": "^0.4.0-dev.9",
|
|
27
|
+
"@epam/ai-dial-ui-kit": "^0.16.0-dev.16",
|
|
28
28
|
"react": "^19.2.8"
|
|
29
29
|
},
|
|
30
30
|
"repository": {
|