@epam/ai-dial-skills 1.3.0-dev.65 → 1.3.0-dev.68
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 +1 -1
- package/index.js +293 -288
- 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 +2 -0
- package/models/skill-selector-overlay.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -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,2 @@
|
|
|
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*/.sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.top-0{top:0}.-me-1{margin-inline-end:-.25rem}.-ms-1{margin-inline-start:-.25rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.hidden{display:none}.h-\[
|
|
2
|
+
/*$vite$:1*/.sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.top-0{top:0}.-me-1{margin-inline-end:-.25rem}.-ms-1{margin-inline-start:-.25rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.hidden{display:none}.h-\[min\(80vh\2c 840px\)\]{height:min(80vh,840px)}.h-\[min\(90vh\2c 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\)\2c calc\(100vw-2rem\)\)\]{width:min(var(--reference-width),calc(100vw - 2rem))}.w-full{width:100%}.min-w-0{min-width:0}.\!max-w-\[min\(95vw\2c 1200px\)\]{max-width:min(95vw,1200px)!important}.max-w-\[min\(420px\2c calc\(100vw-10px\)\)\]{max-width:min(420px,calc(100vw - 10px))}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.select-text{-webkit-user-select:text;-moz-user-select:text;user-select:text}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.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}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-t{border-top-width:1px}.border-transparent{border-color:transparent}.bg-error{background-color:var(--bg-error,#f3d6d8)}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1\.5{padding-bottom:.375rem;padding-top:.375rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.pb-0\.5{padding-bottom:.125rem}.pb-1{padding-bottom:.25rem}.pe-1{padding-inline-end:.25rem}.ps-1{padding-inline-start:.25rem}.pt-2{padding-top:.5rem}.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-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\:bg-info:hover{background-color:var(--bg-info,#e1eaf9)}.focus-visible\:bg-info:focus-visible{background-color:var(--bg-info,#e1eaf9)}.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\:inline{display:inline}.desktop\:hidden{display:none}.desktop\:w-\[280px\]{width:280px}}
|
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
82
|
className: r("relative -me-1 -ms-1 inline cursor-pointer select-text rounded-full pe-1 ps-1", 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
|
+
size: _.Lg,
|
|
267
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,216 +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
|
+
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;
|
|
528
529
|
r.push({
|
|
529
530
|
text: e.slice(n.start, n.start + n.length),
|
|
530
|
-
node: /* @__PURE__ */
|
|
531
|
+
node: /* @__PURE__ */ F(W, {
|
|
531
532
|
name: c,
|
|
532
533
|
path: a.url,
|
|
533
534
|
labelClassName: u,
|
|
534
535
|
description: s?.description,
|
|
535
536
|
unresolvedReason: l,
|
|
536
537
|
detailsTrigger: p,
|
|
537
|
-
onViewDetails:
|
|
538
|
+
onViewDetails: N,
|
|
538
539
|
labels: {
|
|
539
|
-
viewDetailsLabel:
|
|
540
|
-
deletedTooltipLabel:
|
|
541
|
-
notSharedTooltipLabel:
|
|
540
|
+
viewDetailsLabel: E?.viewDetailsLabel,
|
|
541
|
+
deletedTooltipLabel: x,
|
|
542
|
+
notSharedTooltipLabel: S
|
|
542
543
|
}
|
|
543
544
|
}, `${a.url}-${n.start}`)
|
|
544
545
|
}), i = n.start + n.length;
|
|
545
546
|
}), i < e.length && r.push(e.slice(i)), r;
|
|
546
547
|
}, [
|
|
547
|
-
|
|
548
|
+
U,
|
|
548
549
|
H,
|
|
549
550
|
u,
|
|
550
551
|
p,
|
|
551
|
-
|
|
552
|
+
E,
|
|
552
553
|
o,
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
]),
|
|
556
|
-
let t = H.get(e.url), n = t?.name ??
|
|
557
|
-
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, {
|
|
558
559
|
name: n,
|
|
559
560
|
path: e.url,
|
|
560
561
|
labelClassName: u,
|
|
561
562
|
description: t?.description,
|
|
562
563
|
unresolvedReason: r,
|
|
563
564
|
detailsTrigger: p,
|
|
564
|
-
onViewDetails:
|
|
565
|
+
onViewDetails: N,
|
|
565
566
|
labels: {
|
|
566
|
-
viewDetailsLabel:
|
|
567
|
-
deletedTooltipLabel:
|
|
568
|
-
notSharedTooltipLabel:
|
|
567
|
+
viewDetailsLabel: E?.viewDetailsLabel,
|
|
568
|
+
deletedTooltipLabel: x,
|
|
569
|
+
notSharedTooltipLabel: S
|
|
569
570
|
}
|
|
570
571
|
}, e.url);
|
|
571
572
|
}), [
|
|
572
573
|
H,
|
|
573
574
|
u,
|
|
574
575
|
p,
|
|
575
|
-
|
|
576
|
+
E,
|
|
576
577
|
o,
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
]),
|
|
578
|
+
x,
|
|
579
|
+
S
|
|
580
|
+
]), $ = w((e, t) => /* @__PURE__ */ F(q, {
|
|
580
581
|
favorites: G,
|
|
581
582
|
isMenu: !0,
|
|
582
583
|
onSelect: (n) => {
|
|
583
|
-
|
|
584
|
+
K(n.id, n.name, J(t)), e();
|
|
584
585
|
},
|
|
585
586
|
onToggleFavorite: s,
|
|
586
587
|
onBrowse: () => {
|
|
587
|
-
let n =
|
|
588
|
-
|
|
588
|
+
let n = Y(t);
|
|
589
|
+
P(J(t)), I.current = n ?? null, e(), j(!0);
|
|
589
590
|
},
|
|
590
591
|
onViewDetails: (n) => {
|
|
591
|
-
J(t), e(),
|
|
592
|
+
J(t), e(), N(n.id);
|
|
592
593
|
},
|
|
593
|
-
|
|
594
|
+
isRowTooltipHidden: m,
|
|
595
|
+
labels: E
|
|
594
596
|
}), [
|
|
595
597
|
G,
|
|
596
|
-
|
|
598
|
+
K,
|
|
597
599
|
J,
|
|
598
|
-
|
|
600
|
+
Y,
|
|
599
601
|
s,
|
|
600
|
-
|
|
602
|
+
m,
|
|
603
|
+
E
|
|
601
604
|
]);
|
|
602
605
|
return {
|
|
603
|
-
skillMenuOverlay:
|
|
606
|
+
skillMenuOverlay: D(() => e ? {
|
|
604
607
|
key: "skills",
|
|
605
|
-
title:
|
|
606
|
-
icon: /* @__PURE__ */
|
|
608
|
+
title: _,
|
|
609
|
+
icon: /* @__PURE__ */ F(A, {
|
|
607
610
|
size: i,
|
|
608
611
|
"aria-hidden": !0,
|
|
609
612
|
stroke: l
|
|
610
613
|
}),
|
|
611
|
-
renderOverlay:
|
|
612
|
-
backLabel:
|
|
614
|
+
renderOverlay: $,
|
|
615
|
+
backLabel: v
|
|
613
616
|
} : void 0, [
|
|
614
617
|
e,
|
|
615
|
-
g,
|
|
616
618
|
_,
|
|
617
|
-
|
|
619
|
+
v,
|
|
620
|
+
$
|
|
618
621
|
]),
|
|
619
|
-
commandMenu:
|
|
620
|
-
triggerPrefix:
|
|
621
|
-
menuLabel:
|
|
622
|
-
emptyQueryHint:
|
|
623
|
-
onTextPaste:
|
|
624
|
-
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, {
|
|
625
628
|
favorites: G,
|
|
626
629
|
searchQuery: e,
|
|
627
630
|
listboxId: r,
|
|
628
631
|
activeOptionId: i,
|
|
629
632
|
onSelect: (e) => {
|
|
630
|
-
n({ consumeQuery: !0 }),
|
|
633
|
+
n({ consumeQuery: !0 }), K(e.id, e.name, t);
|
|
631
634
|
},
|
|
632
635
|
onToggleFavorite: s,
|
|
633
636
|
onBrowse: () => {
|
|
634
|
-
let r = `${
|
|
637
|
+
let r = `${ye}${e}`, i = B.anchors.find((e) => e.start === t && e.length === r.length);
|
|
635
638
|
n({
|
|
636
639
|
consumeQuery: !0,
|
|
637
640
|
returnFocus: !1
|
|
638
|
-
}),
|
|
641
|
+
}), P(t), I.current = {
|
|
639
642
|
position: t,
|
|
640
643
|
text: r,
|
|
641
644
|
mentionUrl: i?.url
|
|
642
|
-
},
|
|
645
|
+
}, j(!0);
|
|
643
646
|
},
|
|
644
647
|
onViewDetails: (e) => {
|
|
645
|
-
n({ consumeQuery: !0 }),
|
|
648
|
+
n({ consumeQuery: !0 }), N(e.id);
|
|
646
649
|
},
|
|
647
|
-
|
|
650
|
+
isRowTooltipHidden: m,
|
|
651
|
+
labels: E
|
|
648
652
|
})
|
|
649
653
|
} : void 0, [
|
|
650
654
|
e,
|
|
651
|
-
|
|
652
|
-
|
|
655
|
+
_,
|
|
656
|
+
b,
|
|
653
657
|
G,
|
|
654
|
-
|
|
658
|
+
K,
|
|
655
659
|
B.anchors,
|
|
656
660
|
s,
|
|
657
|
-
|
|
658
|
-
|
|
661
|
+
m,
|
|
662
|
+
E,
|
|
663
|
+
Q
|
|
659
664
|
]),
|
|
660
|
-
skillCatalogModal: /* @__PURE__ */
|
|
665
|
+
skillCatalogModal: /* @__PURE__ */ F(ae, {
|
|
661
666
|
isOpen: ee,
|
|
662
|
-
onClose:
|
|
663
|
-
|
|
664
|
-
let e =
|
|
665
|
-
if (
|
|
667
|
+
onClose: w(() => {
|
|
668
|
+
j(!1);
|
|
669
|
+
let e = I.current;
|
|
670
|
+
if (I.current = null, e == null) return;
|
|
666
671
|
let { position: t, text: n, mentionUrl: r } = e;
|
|
667
|
-
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);
|
|
668
673
|
}, [B]),
|
|
669
674
|
onSelect: (e) => {
|
|
670
|
-
|
|
675
|
+
I.current = null, K(e, U(e), te), j(!1);
|
|
671
676
|
},
|
|
672
|
-
title:
|
|
673
|
-
renderContent:
|
|
677
|
+
title: y,
|
|
678
|
+
renderContent: h
|
|
674
679
|
}),
|
|
675
|
-
skillDetailsPanel: /* @__PURE__ */
|
|
680
|
+
skillDetailsPanel: /* @__PURE__ */ F(C, {
|
|
676
681
|
fallback: null,
|
|
677
|
-
children: /* @__PURE__ */
|
|
678
|
-
skillId:
|
|
679
|
-
onClose: () =>
|
|
682
|
+
children: /* @__PURE__ */ F(g, {
|
|
683
|
+
skillId: M,
|
|
684
|
+
onClose: () => N(null)
|
|
680
685
|
})
|
|
681
686
|
}),
|
|
682
687
|
message: B.draft,
|
|
683
|
-
messageRevision:
|
|
684
|
-
activeMentions:
|
|
688
|
+
messageRevision: L,
|
|
689
|
+
activeMentions: ie,
|
|
685
690
|
onDraftChange: B.onDraftChange,
|
|
686
691
|
onBackspaceAtCaret: B.onBackspaceAtCaret,
|
|
687
|
-
caretPositionOverride:
|
|
688
|
-
isSkillUnsupported:
|
|
692
|
+
caretPositionOverride: ne,
|
|
693
|
+
isSkillUnsupported: re,
|
|
689
694
|
selectedSkills: B.orderedSkills,
|
|
690
|
-
resetSkillMentions:
|
|
695
|
+
resetSkillMentions: X,
|
|
691
696
|
seedSkillMentions: oe,
|
|
692
|
-
recognizeMentionsInInsertion:
|
|
693
|
-
renderHistorySkillSegments:
|
|
694
|
-
renderHistorySkills:
|
|
697
|
+
recognizeMentionsInInsertion: Q,
|
|
698
|
+
renderHistorySkillSegments: le,
|
|
699
|
+
renderHistorySkills: ue
|
|
695
700
|
};
|
|
696
|
-
},
|
|
701
|
+
}, xe = {
|
|
697
702
|
background: "_background_1ult0_1",
|
|
698
703
|
border: "_border_1ult0_5",
|
|
699
704
|
value: "_value_1ult0_9",
|
|
700
705
|
clear: "_clear_1ult0_13",
|
|
701
706
|
invalid: "_invalid_1ult0_17"
|
|
702
|
-
},
|
|
703
|
-
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, {
|
|
704
709
|
id: e,
|
|
705
710
|
name: o?.[e] || e
|
|
706
711
|
}]));
|
|
707
|
-
s.forEach((e) =>
|
|
708
|
-
let
|
|
712
|
+
s.forEach((e) => N.set(e.id, e));
|
|
713
|
+
let te = [...N.values()].map((t) => ({
|
|
709
714
|
value: t.id,
|
|
710
715
|
label: t.name,
|
|
711
|
-
labelNode: y.trim() ? /* @__PURE__ */
|
|
716
|
+
labelNode: y.trim() ? /* @__PURE__ */ F(p, {
|
|
712
717
|
text: t.name,
|
|
713
718
|
query: y,
|
|
714
719
|
maxLines: 1
|
|
715
720
|
}) : void 0,
|
|
716
|
-
icon: /* @__PURE__ */
|
|
721
|
+
icon: /* @__PURE__ */ F(e, {
|
|
717
722
|
size: c.SM,
|
|
718
723
|
initialsName: t.name
|
|
719
724
|
}),
|
|
720
725
|
disabled: !l
|
|
721
|
-
})),
|
|
726
|
+
})), P = {
|
|
722
727
|
...t({
|
|
723
728
|
"--ssf-text": h?.colors?.text,
|
|
724
729
|
"--ssf-bg": h?.colors?.background,
|
|
@@ -729,55 +734,55 @@ var B = {
|
|
|
729
734
|
};
|
|
730
735
|
return ee(() => {
|
|
731
736
|
let e = S.current?.querySelector("[role=\"combobox\"]");
|
|
732
|
-
e && (
|
|
737
|
+
e && (M ? e.setAttribute("aria-describedby", C) : e.removeAttribute("aria-describedby"), d || w ? e.setAttribute("aria-invalid", "true") : e.removeAttribute("aria-invalid"));
|
|
733
738
|
}, [
|
|
734
|
-
|
|
739
|
+
M,
|
|
735
740
|
C,
|
|
736
741
|
d,
|
|
737
742
|
u,
|
|
738
743
|
w
|
|
739
|
-
]), /* @__PURE__ */
|
|
744
|
+
]), /* @__PURE__ */ I("div", {
|
|
740
745
|
ref: S,
|
|
741
746
|
className: r("min-w-0", m, B.selectorField),
|
|
742
|
-
style:
|
|
743
|
-
children: [/* @__PURE__ */
|
|
744
|
-
tooltip:
|
|
747
|
+
style: P,
|
|
748
|
+
children: [/* @__PURE__ */ F(x, {
|
|
749
|
+
tooltip: A,
|
|
745
750
|
hideTooltip: l,
|
|
746
751
|
triggerClassName: "block w-full min-w-0",
|
|
747
|
-
children: /* @__PURE__ */
|
|
752
|
+
children: /* @__PURE__ */ F("div", {
|
|
748
753
|
inert: u ? !0 : void 0,
|
|
749
|
-
children: /* @__PURE__ */
|
|
754
|
+
children: /* @__PURE__ */ F(v, {
|
|
750
755
|
multiple: !0,
|
|
751
756
|
searchable: !0,
|
|
752
|
-
open:
|
|
757
|
+
open: D,
|
|
753
758
|
onOpenChange: (e) => {
|
|
754
|
-
e && !
|
|
759
|
+
e && !T || _(e);
|
|
755
760
|
},
|
|
756
|
-
onSearchQueryChange:
|
|
761
|
+
onSearchQueryChange: b,
|
|
757
762
|
value: i,
|
|
758
763
|
onChange: (e) => {
|
|
759
764
|
u || a(Array.isArray(e) ? e : [e]);
|
|
760
765
|
},
|
|
761
|
-
options:
|
|
762
|
-
placeholder:
|
|
763
|
-
labelProps: { label:
|
|
766
|
+
options: te,
|
|
767
|
+
placeholder: f.placeholder,
|
|
768
|
+
labelProps: { label: f.fieldLabel },
|
|
764
769
|
error: d,
|
|
765
|
-
caption:
|
|
766
|
-
searchPlaceholder:
|
|
767
|
-
emptyStateTitle: y.trim() ?
|
|
768
|
-
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,
|
|
769
774
|
invalid: !!d || w,
|
|
770
775
|
className: "w-full min-w-0",
|
|
771
|
-
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),
|
|
772
777
|
listClassName: "w-[min(var(--reference-width),calc(100vw-2rem))] max-w-full"
|
|
773
778
|
})
|
|
774
779
|
})
|
|
775
|
-
}),
|
|
780
|
+
}), M && /* @__PURE__ */ F("span", {
|
|
776
781
|
id: C,
|
|
777
782
|
className: "sr-only",
|
|
778
|
-
children:
|
|
783
|
+
children: M
|
|
779
784
|
})]
|
|
780
785
|
});
|
|
781
786
|
};
|
|
782
787
|
//#endregion
|
|
783
|
-
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-sk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AE,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;I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illInfoTooltipContentProps {
|
|
|
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"}
|
|
@@ -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
|
|
@@ -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,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC3E,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,+B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AC,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.3.0-dev.
|
|
4
|
+
"version": "1.3.0-dev.68",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@tabler/icons-react": "^3.44.0",
|
|
21
|
-
"@epam/ai-dial-catalog": "1.3.0-dev.
|
|
22
|
-
"@epam/ai-dial-conversation-input": "1.3.0-dev.
|
|
21
|
+
"@epam/ai-dial-catalog": "1.3.0-dev.68",
|
|
22
|
+
"@epam/ai-dial-conversation-input": "1.3.0-dev.68"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@epam/ai-dial-chat-shared": "1.3.0-dev.
|
|
25
|
+
"@epam/ai-dial-chat-shared": "1.3.0-dev.68",
|
|
26
26
|
"@epam/ai-dial-react-file-manager": "^0.3.5",
|
|
27
27
|
"@epam/ai-dial-ui-kit": "^0.15.4",
|
|
28
28
|
"react": "^19.2.8"
|