@epam/ai-dial-skills 1.2.0-dev.265 → 1.2.0-dev.266
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SkillSelectorField.d.ts","sourceRoot":"","sources":["../../../src/components/SkillSelectorField/SkillSelectorField.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SkillSelectorField.d.ts","sourceRoot":"","sources":["../../../src/components/SkillSelectorField/SkillSelectorField.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAsC,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAGpE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AASvF,qFAAqF;AACrF,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,CA6P1D,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_14zdf_1{background:var(--ssf-bg)}._border_14zdf_5{border-color:var(--ssf-border)}._value_14zdf_9{color:var(--ssf-text)}._clear_14zdf_13{margin-block:-.5rem}._invalid_14zdf_17{color:var(--ssf-error,var(--text-error,#9c2222));border-color:var(--ssf-error,var(--text-error,#9c2222))}._invalid_14zdf_17 input{color:var(--ssf-error,var(--text-error,#9c2222))}
|
|
2
|
-
/*$vite$:1*/.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.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}.size-11{height:2.75rem;width:2.75rem}.h-\[24px\]{height:24px}.h-\[min\(80vh\2c 840px\)\]{height:min(80vh,840px)}.h-\[min\(90vh\2c 860px\)\]{height:min(90vh,860px)}.max-h-72{max-height:18rem}.min-h-0{min-height:0}.min-h-11{min-height:2.75rem}.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-\[550px\]{max-width:550px}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.rotate-180{--tw-rotate:180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.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}.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;white-space:nowrap}.text-ellipsis,.truncate{text-overflow:ellipsis}.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)}.p-2{padding:.5rem}.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{padding-bottom:.25rem;padding-top:.25rem}.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{padding-bottom:0}.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)}.transition-transform{transition-duration:.15s;transition-property:transform;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 (min-width:1280px){.desktop\:inline{display:inline}.desktop\:hidden{display:none}.desktop\:w-\[280px\]{width:280px}.desktop\:w-full{width:100%}}
|
|
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}.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}.size-11{height:2.75rem;width:2.75rem}.h-\[24px\]{height:24px}.h-\[min\(80vh\2c 840px\)\]{height:min(80vh,840px)}.h-\[min\(90vh\2c 860px\)\]{height:min(90vh,860px)}.max-h-72{max-height:18rem}.min-h-0{min-height:0}.min-h-11{min-height:2.75rem}.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-\[550px\]{max-width:550px}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.rotate-180{--tw-rotate:180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.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}.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;white-space:nowrap}.text-ellipsis,.truncate{text-overflow:ellipsis}.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)}.p-2{padding:.5rem}.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{padding-bottom:.25rem;padding-top:.25rem}.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{padding-bottom:0}.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)}.transition-transform{transition-duration:.15s;transition-property:transform;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 (min-width:1280px){.desktop\:inline{display:inline}.desktop\:hidden{display:none}.desktop\:w-\[280px\]{width:280px}.desktop\:w-full{width:100%}}
|
package/index.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
import { DeploymentIcon as e, buildCssVars as t, isSkillSelectionUnsupported as n, mergeClasses as r } from "@epam/ai-dial-chat-shared";
|
|
2
|
-
import { BASE_ICON_SIZE as i, Button as a, ButtonAppearance as o, ButtonVariant as s, DIAL_ICON_SIZE as c, DIAL_KIT_ICON_STROKE as l, Dropdown as u, FileDropzone as d, GhostButton as f, Highlight as p, Input as m, InteractiveTooltip as h, Popup as g, PopupSize as _, Search as v, Spinner as y, ToggleIconButton as b,
|
|
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, Dropdown as u, FileDropzone as d, GhostButton as f, Highlight as p, Input as m, InteractiveTooltip as h, Popup as g, PopupSize as _, Search as v, 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 te, IconChevronDown as ne, IconEye as A, IconLock as j, IconStarFilled as M, IconTrash as N, IconX as P } from "@tabler/icons-react";
|
|
5
|
+
import { Fragment as F, jsx as I, jsxs as L } from "react/jsx-runtime";
|
|
6
|
+
import { DialFileNodeType as R, DialFoldersTree as z } from "@epam/ai-dial-react-file-manager";
|
|
7
|
+
import { CatalogContentNodeType as B, DetailsPanel as V } from "@epam/ai-dial-catalog";
|
|
8
8
|
//#region src/constants/public-class-names.ts
|
|
9
|
-
var
|
|
9
|
+
var H = {
|
|
10
10
|
selectorField: "dial-skills-selector-field",
|
|
11
11
|
favoritesPanel: "dial-skills-favorites-panel",
|
|
12
12
|
chip: "dial-skills-chip"
|
|
13
|
-
},
|
|
13
|
+
}, U = /* @__PURE__ */ function(e) {
|
|
14
14
|
return e.Deleted = "deleted", e.NotShared = "not-shared", e;
|
|
15
|
-
}({}),
|
|
15
|
+
}({}), W = ({ description: e, unsupportedMessage: t, unresolvedReason: n, deletedMessage: r, notSharedMessage: i, viewDetailsLabel: u = "View details", onViewDetails: d, viewDetailsTabIndex: f }) => {
|
|
16
16
|
if (n != null) {
|
|
17
|
-
let e = n ===
|
|
18
|
-
return /* @__PURE__ */
|
|
17
|
+
let e = n === U.Deleted, t = e ? N : j, a = e ? r : i;
|
|
18
|
+
return /* @__PURE__ */ L("div", {
|
|
19
19
|
className: "flex flex-row items-center gap-2",
|
|
20
|
-
children: [/* @__PURE__ */
|
|
20
|
+
children: [/* @__PURE__ */ I(t, {
|
|
21
21
|
size: c.MD,
|
|
22
22
|
stroke: l,
|
|
23
23
|
"aria-hidden": !0,
|
|
24
24
|
className: "shrink-0 text-secondary"
|
|
25
|
-
}), /* @__PURE__ */
|
|
25
|
+
}), /* @__PURE__ */ I("p", {
|
|
26
26
|
className: "dial-tiny-text text-start text-primary",
|
|
27
27
|
children: a
|
|
28
28
|
})]
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
|
-
return t == null ? /* @__PURE__ */
|
|
31
|
+
return t == null ? /* @__PURE__ */ L("div", {
|
|
32
32
|
className: "flex flex-col gap-3",
|
|
33
|
-
children: [e != null && e !== "" && /* @__PURE__ */
|
|
33
|
+
children: [e != null && e !== "" && /* @__PURE__ */ I("p", {
|
|
34
34
|
className: "text-start",
|
|
35
35
|
children: e
|
|
36
|
-
}), /* @__PURE__ */
|
|
36
|
+
}), /* @__PURE__ */ I(a, {
|
|
37
37
|
variant: s.Primary,
|
|
38
38
|
appearance: o.Link,
|
|
39
39
|
className: "h-[24px] self-start",
|
|
40
40
|
label: u,
|
|
41
|
-
iconBefore: /* @__PURE__ */
|
|
41
|
+
iconBefore: /* @__PURE__ */ I(A, {
|
|
42
42
|
size: c.SM,
|
|
43
43
|
stroke: l,
|
|
44
44
|
"aria-hidden": !0
|
|
@@ -46,53 +46,53 @@ var V = {
|
|
|
46
46
|
onClick: d,
|
|
47
47
|
tabIndex: f
|
|
48
48
|
})]
|
|
49
|
-
}) : /* @__PURE__ */
|
|
49
|
+
}) : /* @__PURE__ */ I("p", {
|
|
50
50
|
className: "text-start",
|
|
51
51
|
children: t
|
|
52
52
|
});
|
|
53
|
-
},
|
|
54
|
-
let { viewDetailsLabel: f = "View details", unsupportedTooltipLabel: p = "Selected model does not support skills. Remove the skill or select different model to proceed.", deletedTooltipLabel: m = "This skill has been deleted. Its details are no longer available.", notSharedTooltipLabel: g = "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] = k(0), [y, b] = k(!1),
|
|
53
|
+
}, G = ({ 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 = {} }) => {
|
|
54
|
+
let { viewDetailsLabel: f = "View details", unsupportedTooltipLabel: p = "Selected model does not support skills. Remove the skill or select different model to proceed.", deletedTooltipLabel: m = "This skill has been deleted. Its details are no longer available.", notSharedTooltipLabel: g = "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] = k(0), [y, b] = k(!1), x = l === "click", C = () => {
|
|
55
55
|
b(!1), v((e) => e + 1), u(t);
|
|
56
56
|
}, w = (e) => {
|
|
57
|
-
!
|
|
58
|
-
}, T = O(null), [
|
|
59
|
-
return
|
|
60
|
-
|
|
61
|
-
}, [o]), /* @__PURE__ */
|
|
57
|
+
!x || e.key !== "Enter" && e.key !== " " || (e.preventDefault(), b(!0));
|
|
58
|
+
}, T = O(null), [E, D] = k(null);
|
|
59
|
+
return ee(() => {
|
|
60
|
+
D(T.current?.getBoundingClientRect().width ?? null);
|
|
61
|
+
}, [o]), /* @__PURE__ */ I(h, {
|
|
62
62
|
asChild: !0,
|
|
63
|
-
placement:
|
|
64
|
-
open:
|
|
65
|
-
onOpenChange:
|
|
63
|
+
placement: S.Top,
|
|
64
|
+
open: x ? y : void 0,
|
|
65
|
+
onOpenChange: x ? b : void 0,
|
|
66
66
|
contentClassName: "max-w-[550px]",
|
|
67
|
-
content: a == null ? i ? /* @__PURE__ */
|
|
67
|
+
content: a == null ? i ? /* @__PURE__ */ I(W, { unsupportedMessage: p }) : /* @__PURE__ */ I(W, {
|
|
68
68
|
description: n,
|
|
69
69
|
viewDetailsLabel: f,
|
|
70
70
|
onViewDetails: C
|
|
71
|
-
}) : /* @__PURE__ */
|
|
71
|
+
}) : /* @__PURE__ */ I(W, {
|
|
72
72
|
unresolvedReason: a,
|
|
73
73
|
deletedMessage: m,
|
|
74
74
|
notSharedMessage: g
|
|
75
75
|
}),
|
|
76
|
-
children: /* @__PURE__ */
|
|
76
|
+
children: /* @__PURE__ */ L("span", {
|
|
77
77
|
tabIndex: 0,
|
|
78
|
-
className: r("relative -me-1 -ms-1 inline-block 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,
|
|
78
|
+
className: r("relative -me-1 -ms-1 inline-block 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, H.chip),
|
|
79
79
|
"aria-label": `/${e}`,
|
|
80
|
-
onClick:
|
|
80
|
+
onClick: x ? () => b(!0) : void 0,
|
|
81
81
|
onKeyDown: w,
|
|
82
|
-
children: [/* @__PURE__ */
|
|
82
|
+
children: [/* @__PURE__ */ I("span", {
|
|
83
83
|
ref: T,
|
|
84
84
|
"aria-hidden": !0,
|
|
85
85
|
className: "inset-inline-start-0 pointer-events-none absolute top-0 select-none",
|
|
86
86
|
children: "/"
|
|
87
|
-
}), /* @__PURE__ */
|
|
87
|
+
}), /* @__PURE__ */ I("span", {
|
|
88
88
|
"aria-hidden": !0,
|
|
89
89
|
className: "select-none",
|
|
90
|
-
style: { paddingInlineStart:
|
|
90
|
+
style: { paddingInlineStart: E ?? void 0 },
|
|
91
91
|
children: e
|
|
92
92
|
})]
|
|
93
93
|
})
|
|
94
94
|
}, _);
|
|
95
|
-
},
|
|
95
|
+
}, K = {
|
|
96
96
|
row: "_row_1v431_1",
|
|
97
97
|
header: "_header_1v431_8",
|
|
98
98
|
emptyHint: "_emptyHint_1v431_12",
|
|
@@ -103,88 +103,88 @@ var V = {
|
|
|
103
103
|
rowLeaving: "_rowLeaving_1v431_32",
|
|
104
104
|
rowFadeOut: "_rowFadeOut_1v431_1",
|
|
105
105
|
listContent: "_listContent_1v431_60"
|
|
106
|
-
},
|
|
107
|
-
let { myCollectionLabel:
|
|
106
|
+
}, re = "px-3 pb-0.5 pt-2", ie = 180, ae = 288, q = ({ favorites: n, onSelect: i, onToggleFavorite: a, onBrowse: o, onViewDetails: s, className: l, rowClassName: u, searchQuery: d, listboxId: m, activeOptionId: g, isMenu: _ = !1, labels: v = {}, colors: y, nameClassName: x = "dial-small-text", headerClassName: S = "dial-tiny-lead-semi-text", emptyHintClassName: C = "dial-small-text" }) => {
|
|
107
|
+
let { myCollectionLabel: w = "My Collection", emptyHintLabel: D = "Star a skill to pin it here", browseLabel: te = "Browse", removeFromFavoritesLabel: ne = "Remove from favorites", viewDetailsLabel: A = "View details", noMatchingSkillsLabel: j = "No matching skills" } = v, N = t({
|
|
108
108
|
"--fs-row-hover-bg": y?.rowHoverBackground,
|
|
109
109
|
"--fs-header-text": y?.headerText,
|
|
110
110
|
"--fs-empty-hint-text": y?.emptyHintText,
|
|
111
111
|
"--fs-star-color": y?.starColor,
|
|
112
112
|
"--fs-footer-border": y?.footerBorder
|
|
113
|
-
}), [P,
|
|
114
|
-
|
|
113
|
+
}), [P, F] = k(/* @__PURE__ */ new Set()), R = O(/* @__PURE__ */ new Map());
|
|
114
|
+
T(() => {
|
|
115
115
|
let e = R.current;
|
|
116
116
|
return () => {
|
|
117
117
|
e.forEach((e) => clearTimeout(e)), e.clear();
|
|
118
118
|
};
|
|
119
119
|
}, []);
|
|
120
|
-
let z = m != null, B = _ && !z,
|
|
121
|
-
z ?
|
|
122
|
-
let
|
|
123
|
-
|
|
124
|
-
|
|
120
|
+
let z = m != null, B = _ && !z, V = z || B ? "none" : void 0, U = "button";
|
|
121
|
+
z ? U = "option" : B && (U = "menuitem");
|
|
122
|
+
let G = E(), q = d != null, J = d?.toLowerCase() ?? "", Y = q ? n.filter((e) => e.name.toLowerCase().includes(J)) : n, X = O(null), [Z, Q] = k();
|
|
123
|
+
ee(() => {
|
|
124
|
+
X.current && Q(Math.min(X.current.scrollHeight, ae));
|
|
125
125
|
}, [n, d]);
|
|
126
126
|
let oe = (e, t) => {
|
|
127
127
|
e.target === e.currentTarget && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), i(t));
|
|
128
128
|
}, se = (e) => {
|
|
129
|
-
|
|
129
|
+
F((t) => new Set(t).add(e));
|
|
130
130
|
let t = setTimeout(() => {
|
|
131
|
-
a?.(e),
|
|
131
|
+
a?.(e), F((t) => {
|
|
132
132
|
let n = new Set(t);
|
|
133
133
|
return n.delete(e), n;
|
|
134
134
|
}), R.current.delete(e);
|
|
135
|
-
},
|
|
135
|
+
}, ie);
|
|
136
136
|
R.current.set(e, t);
|
|
137
137
|
};
|
|
138
|
-
return /* @__PURE__ */
|
|
139
|
-
className: r("flex w-full flex-col desktop:w-[280px]", l,
|
|
140
|
-
style:
|
|
138
|
+
return /* @__PURE__ */ L("div", {
|
|
139
|
+
className: r("flex w-full flex-col desktop:w-[280px]", l, H.favoritesPanel),
|
|
140
|
+
style: N,
|
|
141
141
|
children: [
|
|
142
|
-
/* @__PURE__ */
|
|
143
|
-
id:
|
|
144
|
-
className: r(S,
|
|
145
|
-
children:
|
|
142
|
+
/* @__PURE__ */ I("p", {
|
|
143
|
+
id: G,
|
|
144
|
+
className: r(S, re, K.header),
|
|
145
|
+
children: w
|
|
146
146
|
}),
|
|
147
|
-
/* @__PURE__ */
|
|
148
|
-
className: r("max-h-72 min-h-0 flex-1 overflow-y-auto",
|
|
149
|
-
style: { maxHeight:
|
|
150
|
-
children: /* @__PURE__ */
|
|
151
|
-
ref:
|
|
152
|
-
children:
|
|
147
|
+
/* @__PURE__ */ I("div", {
|
|
148
|
+
className: r("max-h-72 min-h-0 flex-1 overflow-y-auto", K.listContent),
|
|
149
|
+
style: { maxHeight: Z },
|
|
150
|
+
children: /* @__PURE__ */ I("div", {
|
|
151
|
+
ref: X,
|
|
152
|
+
children: Y.length > 0 ? /* @__PURE__ */ I("ul", {
|
|
153
153
|
id: m,
|
|
154
|
-
role: z ? "listbox" :
|
|
155
|
-
"aria-labelledby": z ?
|
|
154
|
+
role: z ? "listbox" : V,
|
|
155
|
+
"aria-labelledby": z ? G : void 0,
|
|
156
156
|
className: "flex flex-col gap-1 px-1 pb-1",
|
|
157
|
-
children:
|
|
158
|
-
let n = z ? `${m}-${encodeURIComponent(t.id)}` : void 0, o = z ? -1 : void 0, l = /* @__PURE__ */
|
|
159
|
-
role:
|
|
157
|
+
children: Y.map((t) => {
|
|
158
|
+
let n = z ? `${m}-${encodeURIComponent(t.id)}` : void 0, o = z ? -1 : void 0, l = /* @__PURE__ */ L("div", {
|
|
159
|
+
role: U,
|
|
160
160
|
id: n,
|
|
161
161
|
"aria-selected": z ? n === g : void 0,
|
|
162
162
|
"aria-label": t.name,
|
|
163
163
|
tabIndex: 0,
|
|
164
|
-
className: r("flex cursor-pointer items-center gap-2 rounded-lg border border-transparent px-2 py-1.5 transition-colors",
|
|
164
|
+
className: r("flex cursor-pointer items-center gap-2 rounded-lg border border-transparent px-2 py-1.5 transition-colors", K.row, u),
|
|
165
165
|
onClick: () => i(t),
|
|
166
166
|
onKeyDown: (e) => oe(e, t),
|
|
167
167
|
children: [
|
|
168
|
-
/* @__PURE__ */
|
|
168
|
+
/* @__PURE__ */ I(e, {
|
|
169
169
|
size: c.MD,
|
|
170
170
|
initialsName: t.name
|
|
171
171
|
}),
|
|
172
|
-
d == null ? /* @__PURE__ */
|
|
172
|
+
d == null ? /* @__PURE__ */ I("span", {
|
|
173
173
|
className: r(x, "min-w-0 flex-1 truncate text-start"),
|
|
174
174
|
children: t.name
|
|
175
|
-
}) : /* @__PURE__ */
|
|
175
|
+
}) : /* @__PURE__ */ I(p, {
|
|
176
176
|
text: t.name,
|
|
177
177
|
query: d,
|
|
178
178
|
maxLines: 1,
|
|
179
179
|
className: r(x, "min-w-0 flex-1 text-start")
|
|
180
180
|
}),
|
|
181
|
-
a && /* @__PURE__ */
|
|
182
|
-
icon: /* @__PURE__ */
|
|
181
|
+
a && /* @__PURE__ */ I(b, {
|
|
182
|
+
icon: /* @__PURE__ */ I(M, {
|
|
183
183
|
size: c.SM,
|
|
184
|
-
className:
|
|
184
|
+
className: K.star,
|
|
185
185
|
"aria-hidden": !0
|
|
186
186
|
}),
|
|
187
|
-
"aria-label":
|
|
187
|
+
"aria-label": ne,
|
|
188
188
|
isSelected: !0,
|
|
189
189
|
tabIndex: o,
|
|
190
190
|
onClick: (e) => {
|
|
@@ -193,15 +193,15 @@ var V = {
|
|
|
193
193
|
})
|
|
194
194
|
]
|
|
195
195
|
});
|
|
196
|
-
return /* @__PURE__ */
|
|
197
|
-
role:
|
|
198
|
-
className: P.has(t.id) ?
|
|
199
|
-
children: s ? /* @__PURE__ */
|
|
196
|
+
return /* @__PURE__ */ I("li", {
|
|
197
|
+
role: V,
|
|
198
|
+
className: P.has(t.id) ? K.rowLeaving : K.rowEnter,
|
|
199
|
+
children: s ? /* @__PURE__ */ I(h, {
|
|
200
200
|
asChild: !0,
|
|
201
201
|
contentClassName: "max-w-[550px]",
|
|
202
|
-
content: /* @__PURE__ */
|
|
202
|
+
content: /* @__PURE__ */ I(W, {
|
|
203
203
|
description: t.description,
|
|
204
|
-
viewDetailsLabel:
|
|
204
|
+
viewDetailsLabel: A,
|
|
205
205
|
onViewDetails: () => s(t),
|
|
206
206
|
viewDetailsTabIndex: o
|
|
207
207
|
}),
|
|
@@ -209,20 +209,20 @@ var V = {
|
|
|
209
209
|
}) : l
|
|
210
210
|
}, t.id);
|
|
211
211
|
})
|
|
212
|
-
}) :
|
|
212
|
+
}) : q && J !== "" ? /* @__PURE__ */ I("p", {
|
|
213
213
|
role: "status",
|
|
214
214
|
"aria-live": "polite",
|
|
215
|
-
className: r(C, "px-4 py-4 text-start",
|
|
216
|
-
children:
|
|
217
|
-
}) : /* @__PURE__ */
|
|
218
|
-
className: r(C, "px-4 py-4 text-start",
|
|
219
|
-
children:
|
|
215
|
+
className: r(C, "px-4 py-4 text-start", K.emptyHint),
|
|
216
|
+
children: j
|
|
217
|
+
}) : /* @__PURE__ */ I("p", {
|
|
218
|
+
className: r(C, "px-4 py-4 text-start", K.emptyHint),
|
|
219
|
+
children: D
|
|
220
220
|
})
|
|
221
221
|
})
|
|
222
222
|
}),
|
|
223
|
-
/* @__PURE__ */
|
|
224
|
-
className: r("border-t px-2 py-3",
|
|
225
|
-
children: /* @__PURE__ */
|
|
223
|
+
/* @__PURE__ */ I("div", {
|
|
224
|
+
className: r("border-t px-2 py-3", K.footer),
|
|
225
|
+
children: /* @__PURE__ */ I(f, {
|
|
226
226
|
role: B ? "menuitem" : void 0,
|
|
227
227
|
label: te,
|
|
228
228
|
className: "w-full justify-center",
|
|
@@ -231,21 +231,21 @@ var V = {
|
|
|
231
231
|
})
|
|
232
232
|
]
|
|
233
233
|
});
|
|
234
|
-
},
|
|
234
|
+
}, J = ".zip,.md", Y = ({ isOpen: e, errorText: t, isUploading: n = !1, accept: r = J, labels: i, onClose: a, onFilesSelected: o, onFilesRejected: s }) => {
|
|
235
235
|
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 ?? {};
|
|
236
|
-
return /* @__PURE__ */
|
|
236
|
+
return /* @__PURE__ */ I(g, {
|
|
237
237
|
open: e,
|
|
238
238
|
size: _.Sm,
|
|
239
239
|
header: c,
|
|
240
240
|
closeAriaLabel: m,
|
|
241
241
|
onClose: a,
|
|
242
|
-
children: /* @__PURE__ */
|
|
242
|
+
children: /* @__PURE__ */ L("div", {
|
|
243
243
|
className: "flex flex-col gap-4 px-6 py-4",
|
|
244
|
-
children: [/* @__PURE__ */
|
|
245
|
-
label: /* @__PURE__ */
|
|
244
|
+
children: [/* @__PURE__ */ I(d, {
|
|
245
|
+
label: /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("span", {
|
|
246
246
|
className: "desktop:hidden",
|
|
247
247
|
children: u
|
|
248
|
-
}), /* @__PURE__ */
|
|
248
|
+
}), /* @__PURE__ */ I("span", {
|
|
249
249
|
className: "hidden desktop:inline",
|
|
250
250
|
children: l
|
|
251
251
|
})] }),
|
|
@@ -256,37 +256,37 @@ var V = {
|
|
|
256
256
|
errorText: n ? void 0 : t,
|
|
257
257
|
onChange: o,
|
|
258
258
|
onReject: s
|
|
259
|
-
}), n && /* @__PURE__ */
|
|
259
|
+
}), n && /* @__PURE__ */ I(y, { ariaLabel: h })]
|
|
260
260
|
})
|
|
261
261
|
});
|
|
262
|
-
},
|
|
262
|
+
}, X = ({ isOpen: e, onClose: t, onSelect: n, title: r, renderContent: i }) => /* @__PURE__ */ I(g, {
|
|
263
263
|
open: e,
|
|
264
264
|
header: r,
|
|
265
265
|
size: _.Lg,
|
|
266
266
|
className: "h-[min(90vh,860px)] !max-w-[min(95vw,1200px)] overflow-hidden",
|
|
267
267
|
onClose: t,
|
|
268
|
-
children: /* @__PURE__ */
|
|
268
|
+
children: /* @__PURE__ */ I("div", {
|
|
269
269
|
className: "h-[min(80vh,840px)] overflow-auto",
|
|
270
|
-
children: /* @__PURE__ */
|
|
270
|
+
children: /* @__PURE__ */ I(C, {
|
|
271
271
|
fallback: null,
|
|
272
272
|
children: e && i(n, t)
|
|
273
273
|
})
|
|
274
274
|
})
|
|
275
|
-
}),
|
|
275
|
+
}), Z = (e, t = null) => e.map((e) => e.type === B.Folder ? {
|
|
276
276
|
path: e.id,
|
|
277
277
|
name: e.name,
|
|
278
|
-
nodeType:
|
|
278
|
+
nodeType: R.FOLDER,
|
|
279
279
|
parentPath: t,
|
|
280
280
|
folderId: e.id,
|
|
281
|
-
items:
|
|
281
|
+
items: Z(e.items, e.id)
|
|
282
282
|
} : {
|
|
283
283
|
path: e.id,
|
|
284
284
|
name: e.name,
|
|
285
|
-
nodeType:
|
|
285
|
+
nodeType: R.ITEM,
|
|
286
286
|
parentPath: t,
|
|
287
287
|
folderId: t ?? ""
|
|
288
|
-
}),
|
|
289
|
-
items: D(() =>
|
|
288
|
+
}), Q = ({ nodes: e, selectedFileId: t, expandedFolderIds: n, onToggleFolder: r, onSelectFile: i, onClose: a, ariaLabel: o }) => /* @__PURE__ */ I(z, {
|
|
289
|
+
items: D(() => Z(e), [e]),
|
|
290
290
|
showFiles: !0,
|
|
291
291
|
areHiddenFilesVisible: !0,
|
|
292
292
|
selectedPath: t,
|
|
@@ -296,15 +296,15 @@ var V = {
|
|
|
296
296
|
for (let t of n) e.has(t) || r(t);
|
|
297
297
|
},
|
|
298
298
|
onItemClick: (e) => {
|
|
299
|
-
e.nodeType ===
|
|
299
|
+
e.nodeType === R.ITEM && i(e.path);
|
|
300
300
|
},
|
|
301
301
|
ariaLabel: o,
|
|
302
302
|
autoFocus: !0,
|
|
303
303
|
onEscape: a
|
|
304
|
-
}),
|
|
304
|
+
}), oe = (e) => /* @__PURE__ */ I(V, {
|
|
305
305
|
...e,
|
|
306
|
-
renderContentFileTree: (e) => /* @__PURE__ */
|
|
307
|
-
}),
|
|
306
|
+
renderContentFileTree: (e) => /* @__PURE__ */ I(Q, { ...e })
|
|
307
|
+
}), se = (e) => e == null || /[\s/]/.test(e), ce = (e, t, n) => {
|
|
308
308
|
let r = [], i = 0;
|
|
309
309
|
return t.forEach((t, a) => {
|
|
310
310
|
let o = `/${n(t.url)}`, s = i;
|
|
@@ -312,7 +312,7 @@ var V = {
|
|
|
312
312
|
let t = e.indexOf(o, s);
|
|
313
313
|
if (t === -1) return;
|
|
314
314
|
let n = t + o.length;
|
|
315
|
-
if (
|
|
315
|
+
if (se(e[n])) {
|
|
316
316
|
r.push({
|
|
317
317
|
skillIndex: a,
|
|
318
318
|
start: t,
|
|
@@ -323,7 +323,7 @@ var V = {
|
|
|
323
323
|
s = t + 1;
|
|
324
324
|
}
|
|
325
325
|
}), r;
|
|
326
|
-
},
|
|
326
|
+
}, le = (e, t) => {
|
|
327
327
|
let n = Math.min(e.length, t.length), r = 0;
|
|
328
328
|
for (; r < n && e[r] === t[r];) r += 1;
|
|
329
329
|
let i = n - r, a = 0;
|
|
@@ -333,13 +333,13 @@ var V = {
|
|
|
333
333
|
deletedLength: e.length - r - a,
|
|
334
334
|
insertedLength: t.length - r - a
|
|
335
335
|
};
|
|
336
|
-
},
|
|
336
|
+
}, ue = (e, t) => {
|
|
337
337
|
let n = t.start + t.deletedLength, r = t.insertedLength - t.deletedLength;
|
|
338
338
|
return e.reduce((e, i) => i.start + i.length <= t.start ? (e.push(i), e) : (i.start >= n && e.push({
|
|
339
339
|
...i,
|
|
340
340
|
start: i.start + r
|
|
341
341
|
}), e), []);
|
|
342
|
-
},
|
|
342
|
+
}, de = (e, t, n, r, i) => {
|
|
343
343
|
let a = r.length + 1, o = a + +!!i, s = e.map((e) => e.start >= t ? {
|
|
344
344
|
...e,
|
|
345
345
|
start: e.start + o
|
|
@@ -350,7 +350,7 @@ var V = {
|
|
|
350
350
|
length: a
|
|
351
351
|
};
|
|
352
352
|
return [...s, c].sort((e, t) => e.start - t.start);
|
|
353
|
-
},
|
|
353
|
+
}, fe = (e, t) => e.find((e) => e.start + e.length === t), pe = (e, t, n) => {
|
|
354
354
|
let r = t;
|
|
355
355
|
for (; r > 0 && !/\s/.test(e[r - 1]);) r--;
|
|
356
356
|
let i = r;
|
|
@@ -360,26 +360,26 @@ var V = {
|
|
|
360
360
|
start: r,
|
|
361
361
|
end: i
|
|
362
362
|
};
|
|
363
|
-
},
|
|
363
|
+
}, me = () => {
|
|
364
364
|
let [e, t] = k(""), [n, r] = k([]), i = O(e);
|
|
365
365
|
i.current = e;
|
|
366
366
|
let a = O(n);
|
|
367
367
|
a.current = n;
|
|
368
|
-
let o =
|
|
369
|
-
let n =
|
|
370
|
-
r((e) =>
|
|
371
|
-
}, []), s =
|
|
368
|
+
let o = w((e) => {
|
|
369
|
+
let n = le(i.current, e);
|
|
370
|
+
r((e) => ue(e, n)), i.current = e, t(e);
|
|
371
|
+
}, []), s = w((e, n, a) => {
|
|
372
372
|
let o = i.current, s = !/^\s/.test(o.slice(a)), c = `/${n}${s ? " " : ""}`, l = o.slice(0, a) + c + o.slice(a);
|
|
373
|
-
return i.current = l, t(l), r((t) =>
|
|
374
|
-
}, []), c =
|
|
373
|
+
return i.current = l, t(l), r((t) => de(t, a, e, n, s)), s;
|
|
374
|
+
}, []), c = w((e, n, a) => {
|
|
375
375
|
let o = i.current, s = `/${n}`, c = o.slice(0, a) + s + o.slice(a);
|
|
376
|
-
i.current = c, t(c), r((t) =>
|
|
377
|
-
}, []), l =
|
|
376
|
+
i.current = c, t(c), r((t) => de(t, a, e, n, !1));
|
|
377
|
+
}, []), l = w((e) => fe(a.current, e), []), u = D(() => {
|
|
378
378
|
if (n.length !== 0) return n.map((e) => ({ url: e.url }));
|
|
379
|
-
}, [n]), d =
|
|
379
|
+
}, [n]), d = w(() => {
|
|
380
380
|
t(""), r([]);
|
|
381
|
-
}, []), f =
|
|
382
|
-
let a = n ?? [], o =
|
|
381
|
+
}, []), f = w((e, n, i) => {
|
|
382
|
+
let a = n ?? [], o = ce(e, a, i);
|
|
383
383
|
t(e), r(o.map((e) => {
|
|
384
384
|
let t = a[e.skillIndex];
|
|
385
385
|
return {
|
|
@@ -411,18 +411,18 @@ var V = {
|
|
|
411
411
|
d,
|
|
412
412
|
f
|
|
413
413
|
]);
|
|
414
|
-
},
|
|
414
|
+
}, he = (e) => ({
|
|
415
415
|
id: e.url,
|
|
416
416
|
name: e.name,
|
|
417
417
|
description: e.description
|
|
418
|
-
}),
|
|
418
|
+
}), ge = (e) => {
|
|
419
419
|
let t = e.split("/").filter((e) => e.length > 0);
|
|
420
420
|
return t[t.length - 1] ?? e;
|
|
421
|
-
},
|
|
421
|
+
}, _e = (e) => {
|
|
422
422
|
let t = e.split("/").filter((e) => e.length > 0);
|
|
423
423
|
return t[0] !== "skills" || t.length < 3 ? null : t[1];
|
|
424
|
-
},
|
|
425
|
-
let { addMenuLabel: m = "Skills", backLabel: h = "Back", catalogModalTitleLabel: g = "Use skill", emptyQueryHintLabel: _ = "Type to filter", deletedTooltipLabel: v, notSharedTooltipLabel: y, panelLabels: b } = c ?? {}, [x,
|
|
424
|
+
}, ve = (e, t) => _e(e) === t ? U.Deleted : U.NotShared, ye = "/", be = ({ isSkillsSupported: e, skills: t, sharedWithMe: n, publicSkills: r, favoriteIds: a, viewerBucket: o, onToggleFavorite: s, labels: c, historyChipLabelClassName: u, activeMentionDetailsTrigger: d, renderCatalogContent: f, detailsPanelComponent: p }) => {
|
|
425
|
+
let { addMenuLabel: m = "Skills", backLabel: h = "Back", catalogModalTitleLabel: g = "Use skill", emptyQueryHintLabel: _ = "Type to filter", deletedTooltipLabel: v, notSharedTooltipLabel: y, panelLabels: b } = c ?? {}, [x, S] = k(!1), [T, E] = k(null), [ee, ne] = k(0), A = O(null), [j, M] = k(0), [N, P] = k(void 0), F = me(), L = D(() => [
|
|
426
426
|
...t,
|
|
427
427
|
...n ?? [],
|
|
428
428
|
...r ?? []
|
|
@@ -430,11 +430,11 @@ var V = {
|
|
|
430
430
|
t,
|
|
431
431
|
n,
|
|
432
432
|
r
|
|
433
|
-
]), R = D(() => new Map(L.map((e) => [e.url, e])), [L]), z =
|
|
433
|
+
]), R = D(() => new Map(L.map((e) => [e.url, e])), [L]), z = w((e) => R.get(e)?.name ?? ge(e), [R]), B = D(() => L.filter((e) => a.has(e.url)).map((e) => he(e)), [L, a]), V = F.anchors.length > 0 && !e, H = D(() => F.anchors.map((t) => ({
|
|
434
434
|
start: t.start,
|
|
435
435
|
length: t.length,
|
|
436
436
|
isUnsupported: !e,
|
|
437
|
-
render: () => /* @__PURE__ */
|
|
437
|
+
render: () => /* @__PURE__ */ I(G, {
|
|
438
438
|
name: t.name,
|
|
439
439
|
path: t.url,
|
|
440
440
|
labelClassName: u,
|
|
@@ -445,38 +445,38 @@ var V = {
|
|
|
445
445
|
labels: { viewDetailsLabel: b?.viewDetailsLabel }
|
|
446
446
|
})
|
|
447
447
|
})), [
|
|
448
|
-
|
|
448
|
+
F.anchors,
|
|
449
449
|
e,
|
|
450
450
|
R,
|
|
451
451
|
u,
|
|
452
452
|
d,
|
|
453
453
|
b
|
|
454
|
-
]), U =
|
|
455
|
-
let r =
|
|
456
|
-
|
|
457
|
-
}, [
|
|
458
|
-
let t =
|
|
459
|
-
return t == null ? e : (
|
|
460
|
-
}, [
|
|
461
|
-
let t =
|
|
454
|
+
]), U = w((e, t, n) => {
|
|
455
|
+
let r = F.insertMention(e, t, n);
|
|
456
|
+
M((e) => e + 1), P(n + 1 + t.length + +!!r);
|
|
457
|
+
}, [F]), W = w((e) => {
|
|
458
|
+
let t = pe(F.draft, e, ye);
|
|
459
|
+
return t == null ? e : (F.onDraftChange(F.draft.slice(0, t.start) + F.draft.slice(t.end)), t.start);
|
|
460
|
+
}, [F]), K = w((e) => {
|
|
461
|
+
let t = pe(F.draft, e, ye);
|
|
462
462
|
if (t == null) return;
|
|
463
|
-
let n =
|
|
463
|
+
let n = F.anchors.find((e) => e.start === t.start && e.start + e.length === t.end);
|
|
464
464
|
return {
|
|
465
465
|
position: t.start,
|
|
466
|
-
text:
|
|
466
|
+
text: F.draft.slice(t.start, t.end),
|
|
467
467
|
mentionUrl: n?.url
|
|
468
468
|
};
|
|
469
|
-
}, [
|
|
470
|
-
|
|
471
|
-
}, [
|
|
472
|
-
|
|
473
|
-
}, [
|
|
469
|
+
}, [F]), re = w(() => {
|
|
470
|
+
F.reset(), M((e) => e + 1), P(void 0);
|
|
471
|
+
}, [F]), ie = w((e, t) => {
|
|
472
|
+
F.seedFromMessage(e, t, z), M((e) => e + 1), P(void 0);
|
|
473
|
+
}, [F, z]), ae = w((e, t) => {
|
|
474
474
|
if (t == null || t.length === 0) return null;
|
|
475
|
-
let n =
|
|
475
|
+
let n = ce(e, t, z), r = [], i = 0;
|
|
476
476
|
return n.forEach((n) => {
|
|
477
477
|
n.start > i && r.push(e.slice(i, n.start));
|
|
478
|
-
let a = t[n.skillIndex], s = R.get(a.url), c = s?.name ??
|
|
479
|
-
r.push(/* @__PURE__ */
|
|
478
|
+
let a = t[n.skillIndex], s = R.get(a.url), c = s?.name ?? ge(a.url), l = s == null ? ve(a.url, o) : void 0;
|
|
479
|
+
r.push(/* @__PURE__ */ I(G, {
|
|
480
480
|
name: c,
|
|
481
481
|
path: a.url,
|
|
482
482
|
labelClassName: u,
|
|
@@ -498,9 +498,9 @@ var V = {
|
|
|
498
498
|
o,
|
|
499
499
|
v,
|
|
500
500
|
y
|
|
501
|
-
]),
|
|
502
|
-
let t = R.get(e.url), n = t?.name ??
|
|
503
|
-
return /* @__PURE__ */
|
|
501
|
+
]), J = w((e) => e == null || e.length === 0 ? null : e.map((e) => {
|
|
502
|
+
let t = R.get(e.url), n = t?.name ?? ge(e.url), r = t == null ? ve(e.url, o) : void 0;
|
|
503
|
+
return /* @__PURE__ */ I(G, {
|
|
504
504
|
name: n,
|
|
505
505
|
path: e.url,
|
|
506
506
|
labelClassName: u,
|
|
@@ -520,25 +520,25 @@ var V = {
|
|
|
520
520
|
o,
|
|
521
521
|
v,
|
|
522
522
|
y
|
|
523
|
-
]),
|
|
523
|
+
]), Y = w((e, t) => /* @__PURE__ */ I(q, {
|
|
524
524
|
favorites: B,
|
|
525
525
|
isMenu: !0,
|
|
526
526
|
onSelect: (n) => {
|
|
527
|
-
U(n.id, n.name,
|
|
527
|
+
U(n.id, n.name, W(t)), e();
|
|
528
528
|
},
|
|
529
529
|
onToggleFavorite: s,
|
|
530
530
|
onBrowse: () => {
|
|
531
531
|
let n = K(t);
|
|
532
|
-
|
|
532
|
+
ne(W(t)), A.current = n ?? null, e(), S(!0);
|
|
533
533
|
},
|
|
534
534
|
onViewDetails: (n) => {
|
|
535
|
-
|
|
535
|
+
W(t), e(), E(n.id);
|
|
536
536
|
},
|
|
537
537
|
labels: b
|
|
538
538
|
}), [
|
|
539
539
|
B,
|
|
540
540
|
U,
|
|
541
|
-
|
|
541
|
+
W,
|
|
542
542
|
K,
|
|
543
543
|
s,
|
|
544
544
|
b
|
|
@@ -547,24 +547,24 @@ var V = {
|
|
|
547
547
|
skillMenuOverlay: D(() => e ? {
|
|
548
548
|
key: "skills",
|
|
549
549
|
title: m,
|
|
550
|
-
icon: /* @__PURE__ */
|
|
550
|
+
icon: /* @__PURE__ */ I(te, {
|
|
551
551
|
size: i,
|
|
552
552
|
"aria-hidden": !0,
|
|
553
553
|
stroke: l
|
|
554
554
|
}),
|
|
555
|
-
renderOverlay:
|
|
555
|
+
renderOverlay: Y,
|
|
556
556
|
backLabel: h
|
|
557
557
|
} : void 0, [
|
|
558
558
|
e,
|
|
559
559
|
m,
|
|
560
560
|
h,
|
|
561
|
-
|
|
561
|
+
Y
|
|
562
562
|
]),
|
|
563
563
|
commandMenu: D(() => e ? {
|
|
564
|
-
triggerPrefix:
|
|
564
|
+
triggerPrefix: ye,
|
|
565
565
|
menuLabel: m,
|
|
566
566
|
emptyQueryHint: _,
|
|
567
|
-
renderMenu: ({ query: e, caretPosition: t, close: n, listboxId: r, activeOptionId: i }) => /* @__PURE__ */
|
|
567
|
+
renderMenu: ({ query: e, caretPosition: t, close: n, listboxId: r, activeOptionId: i }) => /* @__PURE__ */ I(q, {
|
|
568
568
|
favorites: B,
|
|
569
569
|
searchQuery: e,
|
|
570
570
|
listboxId: r,
|
|
@@ -574,15 +574,15 @@ var V = {
|
|
|
574
574
|
},
|
|
575
575
|
onToggleFavorite: s,
|
|
576
576
|
onBrowse: () => {
|
|
577
|
-
let r = `${
|
|
577
|
+
let r = `${ye}${e}`, i = F.anchors.find((e) => e.start === t && e.length === r.length);
|
|
578
578
|
n({
|
|
579
579
|
consumeQuery: !0,
|
|
580
580
|
returnFocus: !1
|
|
581
|
-
}),
|
|
581
|
+
}), ne(t), A.current = {
|
|
582
582
|
position: t,
|
|
583
583
|
text: r,
|
|
584
584
|
mentionUrl: i?.url
|
|
585
|
-
},
|
|
585
|
+
}, S(!0);
|
|
586
586
|
},
|
|
587
587
|
onViewDetails: (e) => {
|
|
588
588
|
n({ consumeQuery: !0 }), E(e.id);
|
|
@@ -595,44 +595,44 @@ var V = {
|
|
|
595
595
|
_,
|
|
596
596
|
B,
|
|
597
597
|
U,
|
|
598
|
-
|
|
598
|
+
F.anchors,
|
|
599
599
|
s,
|
|
600
600
|
b
|
|
601
601
|
]),
|
|
602
|
-
skillCatalogModal: /* @__PURE__ */
|
|
602
|
+
skillCatalogModal: /* @__PURE__ */ I(X, {
|
|
603
603
|
isOpen: x,
|
|
604
|
-
onClose:
|
|
605
|
-
|
|
606
|
-
let e =
|
|
607
|
-
if (
|
|
604
|
+
onClose: w(() => {
|
|
605
|
+
S(!1);
|
|
606
|
+
let e = A.current;
|
|
607
|
+
if (A.current = null, e == null) return;
|
|
608
608
|
let { position: t, text: n, mentionUrl: r } = e;
|
|
609
|
-
r == null ?
|
|
610
|
-
}, [
|
|
609
|
+
r == null ? F.onDraftChange(F.draft.slice(0, t) + n + F.draft.slice(t)) : F.restoreMention(r, n.slice(1), t), M((e) => e + 1), P(t + n.length);
|
|
610
|
+
}, [F]),
|
|
611
611
|
onSelect: (e) => {
|
|
612
|
-
|
|
612
|
+
A.current = null, U(e, z(e), ee), S(!1);
|
|
613
613
|
},
|
|
614
614
|
title: g,
|
|
615
615
|
renderContent: f
|
|
616
616
|
}),
|
|
617
|
-
skillDetailsPanel: /* @__PURE__ */
|
|
617
|
+
skillDetailsPanel: /* @__PURE__ */ I(C, {
|
|
618
618
|
fallback: null,
|
|
619
|
-
children: /* @__PURE__ */
|
|
619
|
+
children: /* @__PURE__ */ I(p, {
|
|
620
620
|
skillId: T,
|
|
621
621
|
onClose: () => E(null)
|
|
622
622
|
})
|
|
623
623
|
}),
|
|
624
|
-
message:
|
|
625
|
-
messageRevision:
|
|
624
|
+
message: F.draft,
|
|
625
|
+
messageRevision: j,
|
|
626
626
|
activeMentions: H,
|
|
627
|
-
onDraftChange:
|
|
628
|
-
onBackspaceAtCaret:
|
|
629
|
-
caretPositionOverride:
|
|
627
|
+
onDraftChange: F.onDraftChange,
|
|
628
|
+
onBackspaceAtCaret: F.onBackspaceAtCaret,
|
|
629
|
+
caretPositionOverride: N,
|
|
630
630
|
isSkillUnsupported: V,
|
|
631
|
-
selectedSkills:
|
|
631
|
+
selectedSkills: F.orderedSkills,
|
|
632
632
|
resetSkillMentions: re,
|
|
633
|
-
seedSkillMentions:
|
|
634
|
-
renderHistorySkillSegments:
|
|
635
|
-
renderHistorySkills:
|
|
633
|
+
seedSkillMentions: ie,
|
|
634
|
+
renderHistorySkillSegments: ae,
|
|
635
|
+
renderHistorySkills: J
|
|
636
636
|
};
|
|
637
637
|
}, $ = {
|
|
638
638
|
background: "_background_14zdf_1",
|
|
@@ -640,44 +640,44 @@ var V = {
|
|
|
640
640
|
value: "_value_14zdf_9",
|
|
641
641
|
clear: "_clear_14zdf_13",
|
|
642
642
|
invalid: "_invalid_14zdf_17"
|
|
643
|
-
},
|
|
644
|
-
let [
|
|
645
|
-
|
|
643
|
+
}, xe = [], Se = "Selected model does not support skills. Select a different model to use a skill.", Ce = ({ value: e, onChange: i, displayName: a, favorites: o = xe, onToggleFavorite: s, onViewDetails: c, renderOverlay: d, isSkillsSupported: p, isDisabled: h = !1, isInvalid: g = !1, labelledById: _, describedById: y, labels: b, renderCatalogContent: S, className: C, styles: w }) => {
|
|
644
|
+
let [ee, D] = k(!1), [te, A] = k(!1), [j, M] = k(""), N = O(null), R = E(), z = E(), B = O(null), V = O(!1), U = n(e, p), W = p && !h, G = ee && W, K = te && W, re = e ? b.unsupportedTooltipLabel : b.unavailableTooltipLabel ?? Se, ie = !p && !e, ae = [y, ie ? z : void 0].filter(Boolean).join(" ") || void 0, J = () => {
|
|
645
|
+
B.current && !B.current.disabled ? B.current.focus() : N.current?.querySelector("button:not(:disabled)")?.focus();
|
|
646
646
|
};
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
}, [
|
|
650
|
-
let
|
|
651
|
-
e && !
|
|
652
|
-
},
|
|
653
|
-
|
|
654
|
-
},
|
|
647
|
+
T(() => {
|
|
648
|
+
V.current && !G && !K && ((document.activeElement === document.body || N.current?.contains(document.activeElement)) && J(), D(!1), A(!1)), V.current = G || K;
|
|
649
|
+
}, [G, K]);
|
|
650
|
+
let Y = (e) => {
|
|
651
|
+
e && !W || (M(""), D(e));
|
|
652
|
+
}, Z = (e) => {
|
|
653
|
+
W && i(e), D(!1), A(!1);
|
|
654
|
+
}, Q = {
|
|
655
655
|
...t({
|
|
656
|
-
"--ssf-text":
|
|
657
|
-
"--ssf-bg":
|
|
658
|
-
"--ssf-border":
|
|
659
|
-
"--ssf-error":
|
|
656
|
+
"--ssf-text": w?.colors?.text,
|
|
657
|
+
"--ssf-bg": w?.colors?.background,
|
|
658
|
+
"--ssf-border": w?.colors?.border,
|
|
659
|
+
"--ssf-error": w?.colors?.error
|
|
660
660
|
}),
|
|
661
|
-
...
|
|
662
|
-
},
|
|
663
|
-
id:
|
|
661
|
+
...w?.cssVars
|
|
662
|
+
}, oe = /* @__PURE__ */ L("div", {
|
|
663
|
+
id: R,
|
|
664
664
|
className: "w-full min-w-0",
|
|
665
|
-
children: [/* @__PURE__ */
|
|
665
|
+
children: [/* @__PURE__ */ I("div", {
|
|
666
666
|
className: "p-2",
|
|
667
|
-
children: /* @__PURE__ */
|
|
667
|
+
children: /* @__PURE__ */ I(v, {
|
|
668
668
|
value: j,
|
|
669
669
|
onChange: (e) => M(e ?? ""),
|
|
670
670
|
placeholder: b.searchPlaceholder ?? "Search skills",
|
|
671
671
|
"aria-label": b.searchPlaceholder ?? "Search skills",
|
|
672
672
|
clearLabel: b.clearSearchLabel ?? "Clear search"
|
|
673
673
|
})
|
|
674
|
-
}), /* @__PURE__ */
|
|
674
|
+
}), /* @__PURE__ */ I(q, {
|
|
675
675
|
className: "min-w-0 desktop:w-full",
|
|
676
676
|
rowClassName: "min-h-11",
|
|
677
677
|
favorites: o,
|
|
678
678
|
searchQuery: j,
|
|
679
679
|
labels: b.panelLabels,
|
|
680
|
-
onSelect: (e) =>
|
|
680
|
+
onSelect: (e) => Z(e.id),
|
|
681
681
|
onToggleFavorite: s,
|
|
682
682
|
onViewDetails: c ? (e) => {
|
|
683
683
|
D(!1), c(e);
|
|
@@ -686,87 +686,100 @@ var V = {
|
|
|
686
686
|
D(!1), A(!0);
|
|
687
687
|
}
|
|
688
688
|
})]
|
|
689
|
-
}),
|
|
690
|
-
inputRef:
|
|
689
|
+
}), se = /* @__PURE__ */ I(m, {
|
|
690
|
+
inputRef: B,
|
|
691
691
|
readOnly: !0,
|
|
692
692
|
role: "combobox",
|
|
693
693
|
"aria-haspopup": "dialog",
|
|
694
|
-
"aria-expanded":
|
|
695
|
-
"aria-controls":
|
|
694
|
+
"aria-expanded": G,
|
|
695
|
+
"aria-controls": G ? R : void 0,
|
|
696
696
|
"aria-labelledby": _,
|
|
697
|
-
"aria-describedby":
|
|
698
|
-
"aria-invalid": g ||
|
|
699
|
-
disabled: !
|
|
700
|
-
invalid: g ||
|
|
697
|
+
"aria-describedby": ae,
|
|
698
|
+
"aria-invalid": g || U,
|
|
699
|
+
disabled: !W,
|
|
700
|
+
invalid: g || U,
|
|
701
701
|
value: e ? a || e : "",
|
|
702
702
|
placeholder: b.placeholder,
|
|
703
|
-
title: p
|
|
703
|
+
title: p && e ? a || e : void 0,
|
|
704
704
|
containerClassName: "w-full min-w-0",
|
|
705
|
-
wrapperClassName: r("cursor-pointer", "--ssf-bg" in
|
|
706
|
-
className: r("min-w-0 cursor-pointer text-ellipsis", "--ssf-text" in
|
|
705
|
+
wrapperClassName: r(W ? "cursor-pointer" : "cursor-not-allowed", "--ssf-bg" in Q && $.background, "--ssf-border" in Q && $.border, (g || U) && $.invalid, w?.triggerClassName),
|
|
706
|
+
className: r("min-w-0 cursor-pointer text-ellipsis", !W && "pointer-events-none", "--ssf-text" in Q && $.value, w?.typography?.fontClassName ?? "dial-small-text"),
|
|
707
707
|
onKeyDown: (e) => {
|
|
708
708
|
[
|
|
709
709
|
"Enter",
|
|
710
710
|
" ",
|
|
711
711
|
"ArrowDown"
|
|
712
|
-
].includes(e.key) ? (e.preventDefault(), e.stopPropagation(),
|
|
712
|
+
].includes(e.key) ? (e.preventDefault(), e.stopPropagation(), Y(e.key === "ArrowDown" || !G)) : e.key === "Escape" && Y(!1);
|
|
713
713
|
},
|
|
714
|
-
iconAfter: /* @__PURE__ */
|
|
714
|
+
iconAfter: /* @__PURE__ */ L("span", {
|
|
715
715
|
className: "flex shrink-0 items-center",
|
|
716
|
-
children: [e && /* @__PURE__ */
|
|
716
|
+
children: [e && /* @__PURE__ */ I(f, {
|
|
717
717
|
type: "button",
|
|
718
718
|
className: r("size-11 shrink-0", $.clear),
|
|
719
719
|
disabled: h,
|
|
720
720
|
"aria-label": b.removeSkillLabel,
|
|
721
721
|
onKeyDown: (e) => e.stopPropagation(),
|
|
722
722
|
onClick: (e) => {
|
|
723
|
-
e.stopPropagation(), i(void 0), D(!1),
|
|
723
|
+
e.stopPropagation(), i(void 0), D(!1), W ? B.current?.focus() : N.current?.focus();
|
|
724
724
|
},
|
|
725
|
-
iconBefore: /* @__PURE__ */
|
|
725
|
+
iconBefore: /* @__PURE__ */ I(P, {
|
|
726
726
|
"aria-hidden": !0,
|
|
727
727
|
size: 18,
|
|
728
728
|
stroke: l
|
|
729
729
|
})
|
|
730
|
-
}), /* @__PURE__ */
|
|
730
|
+
}), /* @__PURE__ */ I(ne, {
|
|
731
731
|
"aria-hidden": !0,
|
|
732
732
|
size: 20,
|
|
733
733
|
stroke: l,
|
|
734
|
-
className: r("transition-transform",
|
|
734
|
+
className: r("transition-transform", G && "rotate-180")
|
|
735
735
|
})]
|
|
736
736
|
})
|
|
737
737
|
});
|
|
738
|
-
return /* @__PURE__ */
|
|
738
|
+
return /* @__PURE__ */ L("div", {
|
|
739
739
|
ref: N,
|
|
740
740
|
role: "group",
|
|
741
741
|
"aria-labelledby": _,
|
|
742
742
|
tabIndex: -1,
|
|
743
|
-
className: r("min-w-0",
|
|
744
|
-
style:
|
|
745
|
-
children: [
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
743
|
+
className: r("min-w-0", C, H.selectorField),
|
|
744
|
+
style: Q,
|
|
745
|
+
children: [
|
|
746
|
+
/* @__PURE__ */ I(x, {
|
|
747
|
+
tooltip: re,
|
|
748
|
+
hideTooltip: p,
|
|
749
|
+
triggerClassName: "block w-full min-w-0",
|
|
750
|
+
children: d ? /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("div", {
|
|
751
|
+
className: "w-full min-w-0",
|
|
752
|
+
onClick: () => Y(!G),
|
|
753
|
+
children: se
|
|
754
|
+
}), d(oe, G, () => Y(!1))] }) : /* @__PURE__ */ I(u, {
|
|
755
|
+
open: G,
|
|
756
|
+
onOpenChange: Y,
|
|
757
|
+
disabled: !W,
|
|
758
|
+
className: "w-full min-w-0",
|
|
759
|
+
listClassName: "w-[min(var(--reference-width),calc(100vw-2rem))] max-w-full",
|
|
760
|
+
renderOverlay: () => /* @__PURE__ */ I("div", {
|
|
761
|
+
role: "dialog",
|
|
762
|
+
"aria-labelledby": _,
|
|
763
|
+
children: oe
|
|
764
|
+
}),
|
|
765
|
+
initialFocus: 0,
|
|
766
|
+
children: se
|
|
767
|
+
})
|
|
759
768
|
}),
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
+
ie && /* @__PURE__ */ I("span", {
|
|
770
|
+
id: z,
|
|
771
|
+
className: "sr-only",
|
|
772
|
+
children: re
|
|
773
|
+
}),
|
|
774
|
+
K && /* @__PURE__ */ I(X, {
|
|
775
|
+
isOpen: !0,
|
|
776
|
+
onClose: () => A(!1),
|
|
777
|
+
title: b.modalTitle,
|
|
778
|
+
onSelect: Z,
|
|
779
|
+
renderContent: S
|
|
780
|
+
})
|
|
781
|
+
]
|
|
769
782
|
});
|
|
770
783
|
};
|
|
771
784
|
//#endregion
|
|
772
|
-
export {
|
|
785
|
+
export { G as ChatSkill, q as FavoriteSkillsPanel, H as SKILLS_CLASS, Y as SkillArchiveUploadDialog, X as SkillCatalogModal, Q as SkillContentFileTree, oe as SkillDetailsSidePanel, W as SkillInfoTooltipContent, Ce as SkillSelectorField, U as SkillUnresolvedReason, he as buildFavoriteSkillItem, le as diffTextChange, fe as findMentionAtCaret, ge as getSkillFallbackName, de as insertAnchor, ce as matchSkillMentions, ue as reconcileAnchors, me as useSkillMentions, be as useSkillSelectorOverlay };
|
|
@@ -12,6 +12,8 @@ export interface SkillSelectorFieldLabels {
|
|
|
12
12
|
removeSkillLabel: string;
|
|
13
13
|
/** Explanation shown when the selected model cannot use skills. */
|
|
14
14
|
unsupportedTooltipLabel: string;
|
|
15
|
+
/** Explanation shown when the field is disabled because the model cannot use skills and no skill is selected. Defaults to 'Selected model does not support skills. Select a different model to use a skill.'. */
|
|
16
|
+
unavailableTooltipLabel?: string;
|
|
15
17
|
/** Favorites panel text; omitted entries use the panel's English defaults. */
|
|
16
18
|
panelLabels?: FavoriteSkillsPanelLabels;
|
|
17
19
|
/** Favorites search label and placeholder. Defaults to 'Search skills'. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill-selector-field-props.d.ts","sourceRoot":"","sources":["../../src/models/skill-selector-field-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC/E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAE1E,oDAAoD;AACpD,MAAM,WAAW,wBAAwB;IACvC,4BAA4B;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,2BAA2B;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,8CAA8C;IAC9C,gBAAgB,EAAE,MAAM,CAAC;IACzB,mEAAmE;IACnE,uBAAuB,EAAE,MAAM,CAAC;IAChC,8EAA8E;IAC9E,WAAW,CAAC,EAAE,yBAAyB,CAAC;IACxC,2EAA2E;IAC3E,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iEAAiE;IACjE,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,uEAAuE;AACvE,MAAM,WAAW,wBAAwB;IACvC,gEAAgE;IAChE,MAAM,CAAC,EAAE;QACP,kBAAkB;QAClB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,wBAAwB;QACxB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,oBAAoB;QACpB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,qCAAqC;QACrC,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,kCAAkC;IAClC,UAAU,CAAC,EAAE;QACX,uEAAuE;QACvE,aAAa,CAAC,EAAE,MAAM,CAAC;KACxB,CAAC;IACF,uDAAuD;IACvD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,8DAA8D;IAC9D,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAED,kFAAkF;AAClF,MAAM,WAAW,uBAAuB;IACtC,0DAA0D;IAC1D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0DAA0D;IAC1D,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;IAC9C,8DAA8D;IAC9D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gEAAgE;IAChE,SAAS,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAChC,qEAAqE;IACrE,gBAAgB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,yEAAyE;IACzE,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAClD,mFAAmF;IACnF,aAAa,CAAC,EAAE,CACd,KAAK,EAAE,SAAS,EAChB,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,MAAM,IAAI,KAChB,SAAS,CAAC;IACf,qDAAqD;IACrD,iBAAiB,EAAE,OAAO,CAAC;IAC3B,gDAAgD;IAChD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gDAAgD;IAChD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,qCAAqC;IACrC,YAAY,EAAE,MAAM,CAAC;IACrB,oCAAoC;IACpC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,8CAA8C;IAC9C,MAAM,EAAE,wBAAwB,CAAC;IACjC,mEAAmE;IACnE,oBAAoB,EAAE,sBAAsB,CAAC,eAAe,CAAC,CAAC;IAC9D,8CAA8C;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,MAAM,CAAC,EAAE,wBAAwB,CAAC;CACnC"}
|
|
1
|
+
{"version":3,"file":"skill-selector-field-props.d.ts","sourceRoot":"","sources":["../../src/models/skill-selector-field-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC/E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAE1E,oDAAoD;AACpD,MAAM,WAAW,wBAAwB;IACvC,4BAA4B;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,2BAA2B;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,8CAA8C;IAC9C,gBAAgB,EAAE,MAAM,CAAC;IACzB,mEAAmE;IACnE,uBAAuB,EAAE,MAAM,CAAC;IAChC,iNAAiN;IACjN,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,8EAA8E;IAC9E,WAAW,CAAC,EAAE,yBAAyB,CAAC;IACxC,2EAA2E;IAC3E,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iEAAiE;IACjE,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,uEAAuE;AACvE,MAAM,WAAW,wBAAwB;IACvC,gEAAgE;IAChE,MAAM,CAAC,EAAE;QACP,kBAAkB;QAClB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,wBAAwB;QACxB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,oBAAoB;QACpB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,qCAAqC;QACrC,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,kCAAkC;IAClC,UAAU,CAAC,EAAE;QACX,uEAAuE;QACvE,aAAa,CAAC,EAAE,MAAM,CAAC;KACxB,CAAC;IACF,uDAAuD;IACvD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,8DAA8D;IAC9D,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAED,kFAAkF;AAClF,MAAM,WAAW,uBAAuB;IACtC,0DAA0D;IAC1D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0DAA0D;IAC1D,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;IAC9C,8DAA8D;IAC9D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gEAAgE;IAChE,SAAS,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAChC,qEAAqE;IACrE,gBAAgB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,yEAAyE;IACzE,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAClD,mFAAmF;IACnF,aAAa,CAAC,EAAE,CACd,KAAK,EAAE,SAAS,EAChB,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,MAAM,IAAI,KAChB,SAAS,CAAC;IACf,qDAAqD;IACrD,iBAAiB,EAAE,OAAO,CAAC;IAC3B,gDAAgD;IAChD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gDAAgD;IAChD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,qCAAqC;IACrC,YAAY,EAAE,MAAM,CAAC;IACrB,oCAAoC;IACpC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,8CAA8C;IAC9C,MAAM,EAAE,wBAAwB,CAAC;IACjC,mEAAmE;IACnE,oBAAoB,EAAE,sBAAsB,CAAC,eAAe,CAAC,CAAC;IAC9D,8CAA8C;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,MAAM,CAAC,EAAE,wBAAwB,CAAC;CACnC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-skills",
|
|
3
3
|
"description": "Host-agnostic UI for picking a favorite skill to attach to a chat input",
|
|
4
|
-
"version": "1.2.0-dev.
|
|
4
|
+
"version": "1.2.0-dev.266",
|
|
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.2.0-dev.
|
|
22
|
-
"@epam/ai-dial-conversation-input": "1.2.0-dev.
|
|
21
|
+
"@epam/ai-dial-catalog": "1.2.0-dev.266",
|
|
22
|
+
"@epam/ai-dial-conversation-input": "1.2.0-dev.266"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@epam/ai-dial-chat-shared": "1.2.0-dev.
|
|
25
|
+
"@epam/ai-dial-chat-shared": "1.2.0-dev.266",
|
|
26
26
|
"@epam/ai-dial-react-file-manager": "^0.3.0-dev.22",
|
|
27
27
|
"@epam/ai-dial-ui-kit": "^0.15.0-dev.36",
|
|
28
28
|
"react": "^19.2.8"
|