@epam/ai-dial-skill-editor 1.1.0-dev.211 → 1.1.0-dev.215
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":"SkillEditor.d.ts","sourceRoot":"","sources":["../../../src/components/SkillEditor/SkillEditor.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SkillEditor.d.ts","sourceRoot":"","sources":["../../../src/components/SkillEditor/SkillEditor.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAEL,EAAE,EASH,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EACV,gBAAgB,EAGjB,MAAM,iCAAiC,CAAC;AAqBzC,qFAAqF;AACrF,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAmc5C,CAAC"}
|
package/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { buildCssVars as e, formatFileSize as t, mergeClasses as n } from "@epam/ai-dial-chat-shared";
|
|
2
2
|
import { DialFileNodeType as r, DialFoldersTree as i } from "@epam/ai-dial-react-file-manager";
|
|
3
|
-
import { Accordion as a, CaptionText as ee,
|
|
4
|
-
import { IconFileText as re, IconPlus as
|
|
5
|
-
import { Suspense as
|
|
3
|
+
import { Accordion as a, CaptionText as ee, DIAL_ICON_SIZE as o, EditorThemes as s, ErrorText as c, GhostButton as l, GhostIconButton as te, Input as u, LazyMarkdownEditor as d, NeutralButton as f, Popup as ne, PopupSize as p, PrimaryButton as m, Spinner as h, Textarea as g } from "@epam/ai-dial-ui-kit";
|
|
4
|
+
import { IconFileText as re, IconPlus as _, IconTrashX as ie, IconUpload as v } from "@tabler/icons-react";
|
|
5
|
+
import { Suspense as y, lazy as b, useCallback as x, useEffect as S, useId as C, useMemo as w, useRef as T, useState as E } from "react";
|
|
6
6
|
import { Fragment as D, jsx as O, jsxs as k } from "react/jsx-runtime";
|
|
7
7
|
//#region src/hooks/useSkillFileDropZone.ts
|
|
8
|
-
var A = (e) => !!e.dataTransfer?.types.includes("Files"),
|
|
8
|
+
var A = (e) => !!e.dataTransfer?.types.includes("Files"), ae = (e) => {
|
|
9
9
|
let [t, n] = E(!1), r = T(0);
|
|
10
10
|
return {
|
|
11
11
|
isDragActive: t,
|
|
@@ -35,7 +35,7 @@ var A = (e) => !!e.dataTransfer?.types.includes("Files"), oe = (e) => {
|
|
|
35
35
|
}, P = (e) => {
|
|
36
36
|
let t = e.lastIndexOf("/");
|
|
37
37
|
return t === -1 ? e : e.slice(t + 1);
|
|
38
|
-
},
|
|
38
|
+
}, oe = (e) => {
|
|
39
39
|
let t = /* @__PURE__ */ new Map(), n = (e) => {
|
|
40
40
|
let n = t.get(e);
|
|
41
41
|
if (n) return n;
|
|
@@ -76,7 +76,7 @@ var A = (e) => !!e.dataTransfer?.types.includes("Files"), oe = (e) => {
|
|
|
76
76
|
n ? n.items = [...n.items ?? [], e] : i.push(e);
|
|
77
77
|
}
|
|
78
78
|
return i;
|
|
79
|
-
},
|
|
79
|
+
}, se = ({ isVisible: e, labels: t }) => {
|
|
80
80
|
if (!e) return null;
|
|
81
81
|
let r = t ?? {};
|
|
82
82
|
return /* @__PURE__ */ O("div", {
|
|
@@ -86,7 +86,7 @@ var A = (e) => !!e.dataTransfer?.types.includes("Files"), oe = (e) => {
|
|
|
86
86
|
children: /* @__PURE__ */ k("div", {
|
|
87
87
|
className: "flex flex-col items-center text-center",
|
|
88
88
|
children: [
|
|
89
|
-
/* @__PURE__ */ O(
|
|
89
|
+
/* @__PURE__ */ O(v, {
|
|
90
90
|
size: 100,
|
|
91
91
|
className: "text-accent-primary",
|
|
92
92
|
"aria-hidden": !0
|
|
@@ -106,75 +106,75 @@ var A = (e) => !!e.dataTransfer?.types.includes("Files"), oe = (e) => {
|
|
|
106
106
|
return e.SupportingFile = "supporting-file", e.Manifest = "manifest", e;
|
|
107
107
|
}({}), I = /* @__PURE__ */ function(e) {
|
|
108
108
|
return e.Valid = "valid", e.Invalid = "invalid", e;
|
|
109
|
-
}({}), L = (e) => (e.webkitRelativePath || e.name).replace(/\\/g, "/"), R = 0, z = () => `skill-file-candidate-${++R}`,
|
|
110
|
-
let o = ee ?? {}, s = T(null), [
|
|
109
|
+
}({}), L = (e) => (e.webkitRelativePath || e.name).replace(/\\/g, "/"), R = 0, z = () => `skill-file-candidate-${++R}`, ce = ({ isOpen: e, onClose: r, fileActions: i, initialFiles: a, labels: ee }) => {
|
|
110
|
+
let o = ee ?? {}, s = T(null), [u, d] = E([]), [f, g] = E(/* @__PURE__ */ new Map()), [_, y] = E([]), [b, x] = E(!1), [w, D] = E(), [A, j] = E(!1), M = C(), N = (e) => {
|
|
111
111
|
let t = e.map((e) => ({
|
|
112
112
|
id: z(),
|
|
113
113
|
file: e,
|
|
114
114
|
path: L(e)
|
|
115
115
|
}));
|
|
116
|
-
|
|
117
|
-
},
|
|
116
|
+
D(void 0), d((e) => [...e, ...t]);
|
|
117
|
+
}, P = (e) => {
|
|
118
118
|
d((t) => t.filter((t) => t.id !== e));
|
|
119
|
-
}, { isDragActive:
|
|
119
|
+
}, { isDragActive: oe, dropZoneHandlers: se } = ae(N);
|
|
120
120
|
S(() => {
|
|
121
121
|
e && (d((a ?? []).map((e) => ({
|
|
122
122
|
id: z(),
|
|
123
123
|
file: e,
|
|
124
124
|
path: L(e)
|
|
125
|
-
}))),
|
|
125
|
+
}))), g(/* @__PURE__ */ new Map()), y([]), D(void 0));
|
|
126
126
|
}, [e]), S(() => {
|
|
127
127
|
if (!e) return;
|
|
128
128
|
let t = !1;
|
|
129
|
-
if (
|
|
130
|
-
|
|
129
|
+
if (u.length === 0) {
|
|
130
|
+
g(/* @__PURE__ */ new Map()), y([]);
|
|
131
131
|
return;
|
|
132
132
|
}
|
|
133
|
-
return
|
|
134
|
-
t || (
|
|
133
|
+
return x(!0), i.validateBatch(u).then(({ results: e, batchErrors: n }) => {
|
|
134
|
+
t || (g(new Map(e.map((e) => [e.candidateId, e]))), y(n.map((e) => e.message)));
|
|
135
135
|
}).finally(() => {
|
|
136
|
-
t ||
|
|
136
|
+
t || x(!1);
|
|
137
137
|
}), () => {
|
|
138
138
|
t = !0;
|
|
139
139
|
};
|
|
140
|
-
}, [
|
|
141
|
-
let
|
|
140
|
+
}, [u, e]);
|
|
141
|
+
let R = (e) => {
|
|
142
142
|
let t = Array.from(e.target.files ?? []);
|
|
143
|
-
e.target.value = "", t.length > 0 &&
|
|
144
|
-
},
|
|
145
|
-
|
|
143
|
+
e.target.value = "", t.length > 0 && N(t);
|
|
144
|
+
}, ce = u.some((e) => f.get(e.id)?.status === I.Invalid), B = u.length > 0 && u.every((e) => f.get(e.id)?.status === I.Invalid), le = u.length > 0 && !ce && _.length === 0 && !b && !A, V = async () => {
|
|
145
|
+
j(!0), D(void 0);
|
|
146
146
|
try {
|
|
147
|
-
let { results: e, batchErrors: t } = await i.validateBatch(
|
|
148
|
-
if (
|
|
149
|
-
let a = await i.commitBatch(
|
|
147
|
+
let { results: e, batchErrors: t } = await i.validateBatch(u), n = new Map(e.map((e) => [e.candidateId, e]));
|
|
148
|
+
if (g(n), y(t.map((e) => e.message)), u.some((e) => n.get(e.id)?.status === I.Invalid) || t.length > 0) return;
|
|
149
|
+
let a = await i.commitBatch(u);
|
|
150
150
|
if (a.error) {
|
|
151
|
-
|
|
151
|
+
D(a.error);
|
|
152
152
|
return;
|
|
153
153
|
}
|
|
154
154
|
r();
|
|
155
155
|
} finally {
|
|
156
|
-
|
|
156
|
+
j(!1);
|
|
157
157
|
}
|
|
158
158
|
};
|
|
159
159
|
return /* @__PURE__ */ O(ne, {
|
|
160
160
|
open: e,
|
|
161
161
|
header: o.uploadDialogTitle ?? "Upload files from device",
|
|
162
|
-
size:
|
|
162
|
+
size: p.Sm,
|
|
163
163
|
closeAriaLabel: o.uploadDialogCloseAriaLabel ?? "Close",
|
|
164
164
|
onClose: r,
|
|
165
165
|
footer: /* @__PURE__ */ k("div", {
|
|
166
166
|
className: "flex min-h-[44px] items-center justify-end gap-2 px-6 py-4",
|
|
167
|
-
children: [/* @__PURE__ */ O(
|
|
167
|
+
children: [/* @__PURE__ */ O(l, {
|
|
168
168
|
label: o.uploadCancelLabel ?? "Cancel",
|
|
169
169
|
onClick: r
|
|
170
|
-
}), /* @__PURE__ */ O(
|
|
170
|
+
}), /* @__PURE__ */ O(m, {
|
|
171
171
|
label: o.uploadConfirmLabel ?? "Add",
|
|
172
|
-
iconBefore:
|
|
172
|
+
iconBefore: A ? /* @__PURE__ */ O(h, {
|
|
173
173
|
size: 16,
|
|
174
174
|
ariaLabel: ""
|
|
175
175
|
}) : void 0,
|
|
176
|
-
onClick: () => void
|
|
177
|
-
disabled: !
|
|
176
|
+
onClick: () => void V(),
|
|
177
|
+
disabled: !le
|
|
178
178
|
})]
|
|
179
179
|
}),
|
|
180
180
|
children: /* @__PURE__ */ k("div", {
|
|
@@ -184,13 +184,13 @@ var A = (e) => !!e.dataTransfer?.types.includes("Files"), oe = (e) => {
|
|
|
184
184
|
role: "button",
|
|
185
185
|
tabIndex: 0,
|
|
186
186
|
"aria-label": o.uploadDropZoneAriaLabel ?? "Upload files",
|
|
187
|
-
className: n("bg-layer-2 flex min-h-[164px] cursor-pointer flex-col items-center justify-center gap-4 rounded-lg border border-dashed border-secondary px-6 py-9 focus-visible:outline focus-visible:outline-focus-black",
|
|
187
|
+
className: n("bg-layer-2 flex min-h-[164px] cursor-pointer flex-col items-center justify-center gap-4 rounded-lg border border-dashed border-secondary px-6 py-9 focus-visible:outline focus-visible:outline-focus-black", oe && "bg-layer-3 border-accent-primary", B && "border-error"),
|
|
188
188
|
onClick: () => s.current?.click(),
|
|
189
189
|
onKeyDown: (e) => {
|
|
190
190
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), s.current?.click());
|
|
191
191
|
},
|
|
192
192
|
...se,
|
|
193
|
-
children: [/* @__PURE__ */ O(
|
|
193
|
+
children: [/* @__PURE__ */ O(v, {
|
|
194
194
|
size: 32,
|
|
195
195
|
"aria-hidden": !0
|
|
196
196
|
}), /* @__PURE__ */ k("div", {
|
|
@@ -209,19 +209,19 @@ var A = (e) => !!e.dataTransfer?.types.includes("Files"), oe = (e) => {
|
|
|
209
209
|
type: "file",
|
|
210
210
|
multiple: !0,
|
|
211
211
|
className: "hidden",
|
|
212
|
-
onChange:
|
|
212
|
+
onChange: R
|
|
213
213
|
}),
|
|
214
214
|
/* @__PURE__ */ O("span", {
|
|
215
215
|
role: "status",
|
|
216
216
|
"aria-live": "polite",
|
|
217
217
|
className: "sr-only",
|
|
218
|
-
id:
|
|
218
|
+
id: M,
|
|
219
219
|
children: _.map((e) => `${o.uploadBatchErrorAriaPrefix ?? "Upload error: "}${e}`).join(" ")
|
|
220
220
|
}),
|
|
221
|
-
_.map((e) => /* @__PURE__ */ O(
|
|
222
|
-
|
|
221
|
+
_.map((e) => /* @__PURE__ */ O(c, { text: e }, e)),
|
|
222
|
+
u.length > 0 && /* @__PURE__ */ O("ul", {
|
|
223
223
|
className: "flex flex-col gap-2",
|
|
224
|
-
children:
|
|
224
|
+
children: u.map((e) => {
|
|
225
225
|
let n = f.get(e.id), r = n?.kind === F.Manifest, i = n?.status === I.Invalid;
|
|
226
226
|
return /* @__PURE__ */ k("li", {
|
|
227
227
|
className: "flex items-center gap-2 rounded-lg border border-tertiary p-2",
|
|
@@ -241,7 +241,7 @@ var A = (e) => !!e.dataTransfer?.types.includes("Files"), oe = (e) => {
|
|
|
241
241
|
className: "dial-tiny-text text-secondary",
|
|
242
242
|
children: t(e.file.size)
|
|
243
243
|
}),
|
|
244
|
-
i && n?.error && /* @__PURE__ */ O(
|
|
244
|
+
i && n?.error && /* @__PURE__ */ O(c, { text: n.error }),
|
|
245
245
|
r && !i && /* @__PURE__ */ O("span", {
|
|
246
246
|
className: "dial-tiny-text text-secondary",
|
|
247
247
|
children: o.uploadManifestRowNote ?? "Will replace this Skill's name, description, and instructions"
|
|
@@ -254,13 +254,13 @@ var A = (e) => !!e.dataTransfer?.types.includes("Files"), oe = (e) => {
|
|
|
254
254
|
"aria-hidden": !0
|
|
255
255
|
}),
|
|
256
256
|
"aria-label": o.uploadRemoveCandidateLabel?.(e.path) ?? `Remove ${e.path}`,
|
|
257
|
-
onClick: () =>
|
|
257
|
+
onClick: () => P(e.id)
|
|
258
258
|
})
|
|
259
259
|
]
|
|
260
260
|
}, e.id);
|
|
261
261
|
})
|
|
262
262
|
}),
|
|
263
|
-
|
|
263
|
+
w && /* @__PURE__ */ O(c, { text: w })
|
|
264
264
|
]
|
|
265
265
|
})
|
|
266
266
|
});
|
|
@@ -270,148 +270,154 @@ var A = (e) => !!e.dataTransfer?.types.includes("Files"), oe = (e) => {
|
|
|
270
270
|
headerBorder: "_headerBorder_l82ak_9",
|
|
271
271
|
sidebarBorder: "_sidebarBorder_l82ak_13",
|
|
272
272
|
actionBarBorder: "_actionBarBorder_l82ak_17"
|
|
273
|
-
},
|
|
274
|
-
let { MarkdownEditor: e } = await
|
|
273
|
+
}, le = b(async () => {
|
|
274
|
+
let { MarkdownEditor: e } = await d();
|
|
275
275
|
return { default: e };
|
|
276
|
-
}),
|
|
277
|
-
let [
|
|
276
|
+
}), V = ({ initialValues: t, files: r, selectedPath: te, onSelectedPathChange: d, expandedPaths: ne, onExpandedPathsChange: p, isLoading: re = !1, hasLoadError: v = !1, isSubmitting: b = !1, errors: A, submitError: N, conflict: P, onReloadLatest: F, isNameReadOnly: I = !1, onDirtyChange: L, fileActions: R, headerContent: z, supportingFileContent: V, onSubmit: ue, onCancel: de, onRetry: fe, labels: H, styles: pe, dir: me, instructionsEditorTheme: he = s.light }) => {
|
|
277
|
+
let [U, W] = E({
|
|
278
278
|
name: t?.name ?? "",
|
|
279
279
|
description: t?.description ?? "",
|
|
280
280
|
instructions: t?.instructions ?? ""
|
|
281
|
-
}),
|
|
281
|
+
}), ge = T(r);
|
|
282
282
|
S(() => {
|
|
283
|
-
|
|
283
|
+
W({
|
|
284
284
|
name: t?.name ?? "",
|
|
285
285
|
description: t?.description ?? "",
|
|
286
286
|
instructions: t?.instructions ?? ""
|
|
287
|
-
}),
|
|
287
|
+
}), ge.current = r;
|
|
288
288
|
}, [t]);
|
|
289
|
-
let
|
|
289
|
+
let _e = (e) => JSON.stringify([...e].sort((e, t) => e.path.localeCompare(t.path))), ve = T(!1);
|
|
290
290
|
S(() => {
|
|
291
291
|
let e = {
|
|
292
292
|
name: t?.name ?? "",
|
|
293
293
|
description: t?.description ?? "",
|
|
294
294
|
instructions: t?.instructions ?? ""
|
|
295
|
-
}, n = JSON.stringify(
|
|
296
|
-
n !==
|
|
295
|
+
}, n = JSON.stringify(U) !== JSON.stringify(e) || _e(r) !== _e(ge.current);
|
|
296
|
+
n !== ve.current && (ve.current = n, L?.(n));
|
|
297
297
|
}, [
|
|
298
|
-
|
|
298
|
+
U,
|
|
299
299
|
r,
|
|
300
300
|
t,
|
|
301
301
|
L
|
|
302
302
|
]);
|
|
303
|
-
let [
|
|
304
|
-
|
|
305
|
-
}, [
|
|
303
|
+
let [ye, be] = E(j), G = te ?? ye, K = x((e) => {
|
|
304
|
+
be(e), d?.(e);
|
|
305
|
+
}, [d]), [xe, Se] = E([]), Ce = ne ?? xe, we = w(() => new Set(Ce), [Ce]), Te = x((e) => {
|
|
306
306
|
let t = [...e];
|
|
307
|
-
|
|
308
|
-
}, [
|
|
309
|
-
|
|
310
|
-
}, [
|
|
311
|
-
"--se-title-color":
|
|
312
|
-
"--se-helper-text-color":
|
|
313
|
-
"--se-border-color":
|
|
314
|
-
}),
|
|
307
|
+
Se(t), p?.(t);
|
|
308
|
+
}, [p]), [q, J] = E(!1), [Ee, Y] = E(), [De, Oe] = E(!0), { isDragActive: ke, dropZoneHandlers: Ae } = ae(x((e) => {
|
|
309
|
+
q || (Y(e), J(!0));
|
|
310
|
+
}, [q])), X = H ?? {}, Z = pe?.colors, Q = pe?.typography ?? {}, je = Q.titleClassName ?? "dial-body-semi-text", Me = Q.helperTextClassName ?? "dial-tiny-semi-text", Ne = Q.removeIconClassName ?? "text-secondary", Pe = e({
|
|
311
|
+
"--se-title-color": Z?.title,
|
|
312
|
+
"--se-helper-text-color": Z?.helperText,
|
|
313
|
+
"--se-border-color": Z?.border
|
|
314
|
+
}), Fe = w(() => oe([{
|
|
315
315
|
path: j,
|
|
316
316
|
name: j,
|
|
317
317
|
kind: M.File
|
|
318
|
-
}, ...r]), [r]), $ = w(() => r.find((e) => e.path ===
|
|
319
|
-
|
|
320
|
-
}, [
|
|
318
|
+
}, ...r]), [r]), $ = w(() => r.find((e) => e.path === G), [r, G]), Ie = x((e) => {
|
|
319
|
+
K(e.path);
|
|
320
|
+
}, [K]), Le = x((e) => {
|
|
321
|
+
R.onRemoveNode(e), G === e && K(j);
|
|
322
|
+
}, [
|
|
323
|
+
R,
|
|
324
|
+
G,
|
|
325
|
+
K
|
|
326
|
+
]), Re = x((e) => e.path === "SKILL.md" ? [] : [{
|
|
321
327
|
key: "remove",
|
|
322
|
-
label:
|
|
323
|
-
className: "text-error",
|
|
324
|
-
children: Z.removeLabel ?? "Remove"
|
|
325
|
-
}),
|
|
326
|
-
danger: !0,
|
|
328
|
+
label: X.removeLabel ?? "Remove",
|
|
327
329
|
icon: /* @__PURE__ */ O(ie, {
|
|
328
|
-
size:
|
|
329
|
-
className:
|
|
330
|
+
size: o.SM,
|
|
331
|
+
className: Ne,
|
|
330
332
|
"aria-hidden": !0
|
|
331
333
|
}),
|
|
332
|
-
onClick: () =>
|
|
333
|
-
}], [
|
|
334
|
+
onClick: () => Le(e.path)
|
|
335
|
+
}], [
|
|
336
|
+
X.removeLabel,
|
|
337
|
+
Ne,
|
|
338
|
+
Le
|
|
339
|
+
]), ze = C(), Be = C(), Ve = /* @__PURE__ */ k("div", {
|
|
334
340
|
className: "flex flex-col gap-2 desktop:gap-5",
|
|
335
341
|
children: [/* @__PURE__ */ k("div", {
|
|
336
342
|
className: "flex items-center justify-between",
|
|
337
343
|
children: [/* @__PURE__ */ O("span", {
|
|
338
|
-
className: n(B.title,
|
|
339
|
-
children:
|
|
340
|
-
}), /* @__PURE__ */ O(
|
|
341
|
-
label:
|
|
342
|
-
iconBefore: /* @__PURE__ */ O(
|
|
344
|
+
className: n(B.title, je),
|
|
345
|
+
children: X.filesHeading ?? "Files"
|
|
346
|
+
}), /* @__PURE__ */ O(f, {
|
|
347
|
+
label: X.addUploadLabel ?? "Upload from device",
|
|
348
|
+
iconBefore: /* @__PURE__ */ O(_, {
|
|
343
349
|
size: 16,
|
|
344
350
|
"aria-hidden": !0
|
|
345
351
|
}),
|
|
346
352
|
onClick: () => {
|
|
347
|
-
|
|
353
|
+
Y(void 0), J(!0);
|
|
348
354
|
}
|
|
349
355
|
})]
|
|
350
356
|
}), /* @__PURE__ */ O("div", {
|
|
351
|
-
id:
|
|
357
|
+
id: ze,
|
|
352
358
|
role: "tree",
|
|
353
|
-
"aria-label":
|
|
359
|
+
"aria-label": X.filesTreeAriaLabel ?? "Skill files",
|
|
354
360
|
children: /* @__PURE__ */ O(i, {
|
|
355
|
-
items:
|
|
361
|
+
items: Fe,
|
|
356
362
|
showFiles: !0,
|
|
357
|
-
selectedPath:
|
|
358
|
-
expandedPaths:
|
|
359
|
-
onExpandedPathsChange:
|
|
360
|
-
onItemClick:
|
|
361
|
-
getContextMenuItems:
|
|
363
|
+
selectedPath: G,
|
|
364
|
+
expandedPaths: we,
|
|
365
|
+
onExpandedPathsChange: Te,
|
|
366
|
+
onItemClick: Ie,
|
|
367
|
+
getContextMenuItems: Re,
|
|
362
368
|
rootItemPath: ""
|
|
363
369
|
})
|
|
364
370
|
})]
|
|
365
|
-
}),
|
|
366
|
-
label:
|
|
367
|
-
onClick:
|
|
371
|
+
}), He = b ? X.savingStatusLabel ?? "Saving" : "", Ue = /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(l, {
|
|
372
|
+
label: X.cancelLabel ?? "Cancel",
|
|
373
|
+
onClick: de,
|
|
368
374
|
disabled: b
|
|
369
|
-
}), /* @__PURE__ */ O(
|
|
370
|
-
label:
|
|
371
|
-
iconBefore: b ? /* @__PURE__ */ O(
|
|
375
|
+
}), /* @__PURE__ */ O(m, {
|
|
376
|
+
label: X.createLabel ?? "Create",
|
|
377
|
+
iconBefore: b ? /* @__PURE__ */ O(h, {
|
|
372
378
|
size: 16,
|
|
373
379
|
ariaLabel: ""
|
|
374
380
|
}) : void 0,
|
|
375
|
-
onClick: () =>
|
|
381
|
+
onClick: () => ue(U),
|
|
376
382
|
disabled: b
|
|
377
383
|
})] });
|
|
378
384
|
return re ? /* @__PURE__ */ O("div", {
|
|
379
385
|
className: "flex h-full items-center justify-center",
|
|
380
|
-
children: /* @__PURE__ */ O(
|
|
381
|
-
}) :
|
|
386
|
+
children: /* @__PURE__ */ O(h, { ariaLabel: X.loadingAriaLabel ?? "Loading skill" })
|
|
387
|
+
}) : v ? /* @__PURE__ */ k("div", {
|
|
382
388
|
role: "alert",
|
|
383
389
|
className: "flex flex-col items-center gap-4 p-8",
|
|
384
|
-
children: [/* @__PURE__ */ O(
|
|
385
|
-
label:
|
|
386
|
-
onClick:
|
|
390
|
+
children: [/* @__PURE__ */ O(c, { text: X.loadErrorMessage ?? "Couldn't load this skill. Please try again." }), /* @__PURE__ */ O(m, {
|
|
391
|
+
label: X.retryLabel ?? "Retry",
|
|
392
|
+
onClick: fe
|
|
387
393
|
})]
|
|
388
394
|
}) : /* @__PURE__ */ k("div", {
|
|
389
|
-
dir:
|
|
395
|
+
dir: me,
|
|
390
396
|
className: "relative flex h-full flex-col",
|
|
391
|
-
style:
|
|
392
|
-
...
|
|
397
|
+
style: Pe,
|
|
398
|
+
...Ae,
|
|
393
399
|
children: [
|
|
394
|
-
/* @__PURE__ */ O(
|
|
395
|
-
isVisible:
|
|
396
|
-
labels:
|
|
400
|
+
/* @__PURE__ */ O(se, {
|
|
401
|
+
isVisible: ke && !q,
|
|
402
|
+
labels: H
|
|
397
403
|
}),
|
|
398
404
|
/* @__PURE__ */ O("span", {
|
|
399
405
|
role: "status",
|
|
400
406
|
"aria-live": "polite",
|
|
401
407
|
className: "sr-only",
|
|
402
|
-
id:
|
|
403
|
-
children:
|
|
408
|
+
id: Be,
|
|
409
|
+
children: He
|
|
404
410
|
}),
|
|
405
411
|
N && /* @__PURE__ */ O("div", {
|
|
406
412
|
role: "alert",
|
|
407
413
|
className: "px-4 pt-2",
|
|
408
|
-
children: /* @__PURE__ */ O(
|
|
414
|
+
children: /* @__PURE__ */ O(c, { text: N })
|
|
409
415
|
}),
|
|
410
416
|
P && /* @__PURE__ */ k("div", {
|
|
411
417
|
role: "alert",
|
|
412
418
|
className: "flex items-center gap-2 px-4 pt-2",
|
|
413
|
-
children: [/* @__PURE__ */ O(
|
|
414
|
-
label:
|
|
419
|
+
children: [/* @__PURE__ */ O(c, { text: P.message }), /* @__PURE__ */ O(l, {
|
|
420
|
+
label: X.reloadLatestLabel ?? "Reload latest",
|
|
415
421
|
onClick: F
|
|
416
422
|
})]
|
|
417
423
|
}),
|
|
@@ -422,7 +428,7 @@ var A = (e) => !!e.dataTransfer?.types.includes("Files"), oe = (e) => {
|
|
|
422
428
|
children: z
|
|
423
429
|
}), /* @__PURE__ */ O("div", {
|
|
424
430
|
className: "flex shrink-0 items-center gap-2",
|
|
425
|
-
children:
|
|
431
|
+
children: Ue
|
|
426
432
|
})]
|
|
427
433
|
}),
|
|
428
434
|
/* @__PURE__ */ k("div", {
|
|
@@ -431,48 +437,48 @@ var A = (e) => !!e.dataTransfer?.types.includes("Files"), oe = (e) => {
|
|
|
431
437
|
/* @__PURE__ */ O("div", {
|
|
432
438
|
className: "desktop:hidden",
|
|
433
439
|
children: /* @__PURE__ */ O(a, {
|
|
434
|
-
title:
|
|
440
|
+
title: X.editingFileLabel ?? "Editing file",
|
|
435
441
|
description: $?.name ?? "SKILL.md",
|
|
436
|
-
expanded:
|
|
437
|
-
onToggle:
|
|
438
|
-
ariaLabel:
|
|
439
|
-
children:
|
|
442
|
+
expanded: De,
|
|
443
|
+
onToggle: Oe,
|
|
444
|
+
ariaLabel: X.editingFileLabel ?? "Editing file",
|
|
445
|
+
children: Ve
|
|
440
446
|
})
|
|
441
447
|
}),
|
|
442
448
|
/* @__PURE__ */ O("div", {
|
|
443
449
|
className: n("hidden border-e desktop:block desktop:w-[360px] desktop:shrink-0 desktop:px-8 desktop:py-6", B.sidebarBorder),
|
|
444
|
-
children:
|
|
450
|
+
children: Ve
|
|
445
451
|
}),
|
|
446
452
|
/* @__PURE__ */ k("div", {
|
|
447
453
|
className: "flex min-w-0 flex-1 flex-col gap-4 desktop:gap-5 desktop:px-8 desktop:py-6",
|
|
448
454
|
children: [/* @__PURE__ */ O("h2", {
|
|
449
|
-
className: n(B.title,
|
|
450
|
-
children:
|
|
451
|
-
}),
|
|
452
|
-
/* @__PURE__ */ O(
|
|
455
|
+
className: n(B.title, je),
|
|
456
|
+
children: G === "SKILL.md" ? j : X.selectedFileHeading?.($?.name ?? G) ?? $?.name ?? G
|
|
457
|
+
}), G === "SKILL.md" ? /* @__PURE__ */ k(D, { children: [
|
|
458
|
+
/* @__PURE__ */ O(u, {
|
|
453
459
|
labelProps: {
|
|
454
|
-
label:
|
|
460
|
+
label: X.nameLabel ?? "Name",
|
|
455
461
|
required: !0
|
|
456
462
|
},
|
|
457
|
-
value:
|
|
458
|
-
onChange: (e) =>
|
|
463
|
+
value: U.name,
|
|
464
|
+
onChange: (e) => W((t) => ({
|
|
459
465
|
...t,
|
|
460
466
|
name: e ?? ""
|
|
461
467
|
})),
|
|
462
|
-
placeholder:
|
|
463
|
-
caption: A?.name ? void 0 :
|
|
468
|
+
placeholder: X.namePlaceholder ?? "good-morning-breakfast",
|
|
469
|
+
caption: A?.name ? void 0 : X.nameCaption ?? "Lowercase letters and hyphens only, no spaces. We'll reformat automatically if needed.",
|
|
464
470
|
error: A?.name,
|
|
465
471
|
invalid: !!A?.name,
|
|
466
472
|
disabled: I
|
|
467
473
|
}),
|
|
468
|
-
/* @__PURE__ */ O(
|
|
474
|
+
/* @__PURE__ */ O(g, {
|
|
469
475
|
labelProps: {
|
|
470
|
-
label:
|
|
476
|
+
label: X.descriptionLabel ?? "Description",
|
|
471
477
|
required: !0
|
|
472
478
|
},
|
|
473
|
-
value:
|
|
474
|
-
placeholder:
|
|
475
|
-
onChange: (e) =>
|
|
479
|
+
value: U.description,
|
|
480
|
+
placeholder: X.descriptionPlaceholder ?? "What this skill does and when to use it",
|
|
481
|
+
onChange: (e) => W((t) => ({
|
|
476
482
|
...t,
|
|
477
483
|
description: e
|
|
478
484
|
})),
|
|
@@ -485,58 +491,47 @@ var A = (e) => !!e.dataTransfer?.types.includes("Files"), oe = (e) => {
|
|
|
485
491
|
/* @__PURE__ */ k("span", {
|
|
486
492
|
className: "flex items-center gap-0.5",
|
|
487
493
|
children: [/* @__PURE__ */ O("span", {
|
|
488
|
-
className: n(B.helperText,
|
|
489
|
-
children:
|
|
494
|
+
className: n(B.helperText, Me),
|
|
495
|
+
children: X.instructionsLabel ?? "Instructions"
|
|
490
496
|
}), /* @__PURE__ */ O("span", {
|
|
491
497
|
className: "dial-tiny-text text-error",
|
|
492
498
|
children: "*"
|
|
493
499
|
})]
|
|
494
500
|
}),
|
|
495
|
-
/* @__PURE__ */ O(
|
|
496
|
-
fallback: /* @__PURE__ */ O(
|
|
497
|
-
children: /* @__PURE__ */ O(
|
|
498
|
-
value:
|
|
499
|
-
onChange: (e) =>
|
|
501
|
+
/* @__PURE__ */ O(y, {
|
|
502
|
+
fallback: /* @__PURE__ */ O(h, { ariaLabel: X.instructionsLoadingAriaLabel ?? "Loading" }),
|
|
503
|
+
children: /* @__PURE__ */ O(le, {
|
|
504
|
+
value: U.instructions,
|
|
505
|
+
onChange: (e) => W((t) => ({
|
|
500
506
|
...t,
|
|
501
507
|
instructions: e
|
|
502
508
|
})),
|
|
503
|
-
theme:
|
|
504
|
-
placeholder:
|
|
509
|
+
theme: he,
|
|
510
|
+
placeholder: X.instructionsPlaceholder ?? "Write the skill instructions in Markdown"
|
|
505
511
|
})
|
|
506
512
|
}),
|
|
507
|
-
A?.instructions && /* @__PURE__ */ O(
|
|
513
|
+
A?.instructions && /* @__PURE__ */ O(c, { text: A.instructions })
|
|
508
514
|
]
|
|
509
515
|
})
|
|
510
|
-
] }) : $?.kind === M.File && (
|
|
516
|
+
] }) : $?.kind === M.File && (V ?? /* @__PURE__ */ O(ee, { text: X.supportingFileNote ?? "This supporting file is included in the skill package as-is. Remove it from the Files panel to replace its content." }))]
|
|
511
517
|
})
|
|
512
518
|
]
|
|
513
519
|
}),
|
|
514
520
|
/* @__PURE__ */ O("div", {
|
|
515
521
|
className: n("fixed inset-x-0 bottom-0 flex items-center gap-2 border-t p-3 desktop:hidden", B.actionBarBorder),
|
|
516
|
-
children:
|
|
517
|
-
}),
|
|
518
|
-
K && /* @__PURE__ */ O(o, {
|
|
519
|
-
header: Z.removeConfirmTitle ?? "Remove file",
|
|
520
|
-
description: Z.removeConfirmMessage?.(K) ?? `Remove "${K}"? This cannot be undone.`,
|
|
521
|
-
confirmLabel: Z.removeConfirmLabel ?? "Remove",
|
|
522
|
-
cancelLabel: Z.removeCancelLabel ?? "Cancel",
|
|
523
|
-
variant: s.Danger,
|
|
524
|
-
onConfirm: () => {
|
|
525
|
-
R.onRemoveNode(K), W === K && G("SKILL.md"), q(null);
|
|
526
|
-
},
|
|
527
|
-
onCancel: () => q(null)
|
|
522
|
+
children: Ue
|
|
528
523
|
}),
|
|
529
|
-
/* @__PURE__ */ O(
|
|
530
|
-
isOpen:
|
|
524
|
+
/* @__PURE__ */ O(ce, {
|
|
525
|
+
isOpen: q,
|
|
531
526
|
onClose: () => {
|
|
532
|
-
|
|
527
|
+
J(!1), Y(void 0);
|
|
533
528
|
},
|
|
534
529
|
fileActions: R,
|
|
535
|
-
initialFiles:
|
|
536
|
-
labels:
|
|
530
|
+
initialFiles: Ee,
|
|
531
|
+
labels: H
|
|
537
532
|
})
|
|
538
533
|
]
|
|
539
534
|
});
|
|
540
535
|
};
|
|
541
536
|
//#endregion
|
|
542
|
-
export {
|
|
537
|
+
export { V as SkillEditor, F as SkillFileCandidateKind, M as SkillFileNodeKind, I as SkillFileValidationStatus };
|
|
@@ -118,14 +118,6 @@ export interface SkillEditorLabels {
|
|
|
118
118
|
addUploadLabel?: string;
|
|
119
119
|
/** Accessible label of a node's remove action. Defaults to `'Remove'`. */
|
|
120
120
|
removeLabel?: string;
|
|
121
|
-
/** Title of the remove-confirmation prompt. Defaults to `'Remove file'`. */
|
|
122
|
-
removeConfirmTitle?: string;
|
|
123
|
-
/** Builds the remove-confirmation message for a given path. Defaults to a sentence naming the path. */
|
|
124
|
-
removeConfirmMessage?: (path: string) => string;
|
|
125
|
-
/** Confirm button label in the remove-confirmation prompt. Defaults to `'Remove'`. */
|
|
126
|
-
removeConfirmLabel?: string;
|
|
127
|
-
/** Cancel button label in the remove-confirmation prompt. Defaults to `'Cancel'`. */
|
|
128
|
-
removeCancelLabel?: string;
|
|
129
121
|
/** Collapsed mobile summary label. Defaults to `'Editing file'`. */
|
|
130
122
|
editingFileLabel?: string;
|
|
131
123
|
/** Main-pane heading, given the selected node's name. Defaults to the name itself. */
|
|
@@ -212,6 +204,8 @@ export interface SkillEditorTypography {
|
|
|
212
204
|
titleClassName?: string;
|
|
213
205
|
/** Typography class applied to the hand-rendered Instructions field label. Defaults to `'dial-tiny-semi-text'`. */
|
|
214
206
|
helperTextClassName?: string;
|
|
207
|
+
/** Color class applied to the file tree "Remove" context-menu icon. Defaults to `'text-secondary'`. */
|
|
208
|
+
removeIconClassName?: string;
|
|
215
209
|
}
|
|
216
210
|
/** Grouped style overrides for `SkillEditor`. */
|
|
217
211
|
export interface SkillEditorStyles {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill-editor-props.d.ts","sourceRoot":"","sources":["../../src/models/skill-editor-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OA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AC;CAChB;AAED,wGAAwG;AACxG,MAAM,WAAW,mBAAmB;IAClC,iEAAiE;IACjE,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,0DAA0D;AAC1D,MAAM,WAAW,qBAAqB;IACpC,0GAA0G;IAC1G,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,aAAa,EAAE,CAAC,UAAU,EAAE,wBAAwB,EAAE,KAAK,OAAO,CAAC;QACjE,mEAAmE;QACnE,OAAO,EAAE,yBAAyB,EAAE,CAAC;QACrC,mDAAmD;QACnD,WAAW,EAAE,mBAAmB,EAAE,CAAC;KACpC,CAAC,CAAC;IACH;;;;;OAKG;IACH,WAAW,EAAE,CACX,UAAU,EAAE,wBAAwB,EAAE,KACnC,OAAO,CAAC,qBAAqB,CAAC,CAAC;IACpC,gGAAgG;IAChG,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC;AAED,4EAA4E;AAC5E,MAAM,WAAW,iBAAiB;IAChC,iDAAiD;IACjD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,4EAA4E;IAC5E,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,0EAA0E;IAC1E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,
|
|
1
|
+
{"version":3,"file":"skill-editor-props.d.ts","sourceRoot":"","sources":["../../src/models/skill-editor-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAEvE;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC,+DAA+D;IAC/D,IAAI,EAAE,MAAM,CAAC;IAC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AAC,EAAE,iBAAiB,CAAC;IAC3B,gHAAgH;IAChH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IAC/B,kHAAkH;IAClH,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;OAIG;IACH,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3C,qCAAqC;IACrC,WAAW,EAAE,sBAAsB,CAAC;IACpC;;;;OAIG;IACH,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B;;;;;;OAMG;IACH,qBAAqB,CAAC,EAAE,SAAS,CAAC;IAClC,iEAAiE;IACjE,QAAQ,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC9C,wDAAwD;IACxD,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,yEAAyE;IACzE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,sBAAsB;IACtB,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,uBAAuB;IACvB,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,qFAAqF;IACrF,GAAG,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;IACpB,0IAA0I;IAC1I,uBAAuB,CAAC,EAAE,YAAY,CAAC;CACxC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-skill-editor",
|
|
3
3
|
"description": "Host-agnostic form for authoring a DIAL Skill, with an inline supporting-file tree",
|
|
4
|
-
"version": "1.1.0-dev.
|
|
4
|
+
"version": "1.1.0-dev.215",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"@epam/ai-dial-chat-shared": "1.1.0-dev.
|
|
19
|
+
"@epam/ai-dial-chat-shared": "1.1.0-dev.215",
|
|
20
20
|
"@epam/ai-dial-ui-kit": "^0.13.0-dev.26",
|
|
21
21
|
"@epam/ai-dial-react-file-manager": "^0.1.0-dev.22",
|
|
22
22
|
"@tabler/icons-react": "^3.0.0",
|