@epam/ai-dial-skill-editor 1.2.0-dev.101 → 1.2.0-dev.102

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"SkillEditor.d.ts","sourceRoot":"","sources":["../../../src/components/SkillEditor/SkillEditor.tsx"],"names":[],"mappings":"AAiCA,OAAO,0CAA0C,CAAC;AAClD,OAAO,0CAA0C,CAAC;AAClD,OAAO,EAEL,EAAE,EAQH,MAAM,OAAO,CAAC;AAGf,OAAO,KAAK,EACV,gBAAgB,EAGjB,MAAM,iCAAiC,CAAC;AAsBzC,qFAAqF;AACrF,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAmf5C,CAAC"}
1
+ {"version":3,"file":"SkillEditor.d.ts","sourceRoot":"","sources":["../../../src/components/SkillEditor/SkillEditor.tsx"],"names":[],"mappings":"AAiCA,OAAO,0CAA0C,CAAC;AAClD,OAAO,0CAA0C,CAAC;AAClD,OAAO,EAEL,EAAE,EAQH,MAAM,OAAO,CAAC;AAGf,OAAO,KAAK,EACV,gBAAgB,EAGjB,MAAM,iCAAiC,CAAC;AAsBzC,qFAAqF;AACrF,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CA0f5C,CAAC"}
package/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { MARKDOWN_EDITOR_MAX_HEIGHT_CLASS_NAME as e, MARKDOWN_EDITOR_PREVIEW_LIST_CLASS_NAME as t, buildCssVars as n, formatFileSize as r, mergeClasses as i, useAvailableHeightCap as a } from "@epam/ai-dial-chat-shared";
2
2
  import { Accordion as o, CaptionText as s, DIAL_ICON_SIZE as c, DIAL_KIT_ICON_STROKE as l, EditorThemes as u, ErrorText as d, FileDropzone as f, GhostButton as p, GhostIconButton as ee, Input as m, NeutralButton as h, Popup as g, PopupSize as te, PrimaryButton as ne, Spinner as _, Textarea as v } from "@epam/ai-dial-ui-kit";
3
3
  import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
4
- import { IconArrowNarrowLeft as S, IconFileText as re, IconPlus as ie, IconTrashX as ae, IconUpload as C } from "@tabler/icons-react";
5
- import { Suspense as w, lazy as T, useCallback as E, useEffect as D, useId as O, useMemo as k, useRef as A, useState as j } from "react";
6
- import { DialFileNodeType as M, DialFoldersTree as oe } from "@epam/ai-dial-react-file-manager";
7
- import { LazyMarkdownEditor as N } from "@epam/ai-dial-ui-kit/editors";
4
+ import { IconArrowNarrowLeft as S, IconFileText as re, IconPlus as C, IconTrashX as ie, IconUpload as w } from "@tabler/icons-react";
5
+ import { Suspense as T, lazy as E, useCallback as D, useEffect as O, useId as k, useMemo as A, useRef as j, useState as M } from "react";
6
+ import { DialFileNodeType as N, DialFoldersTree as ae } from "@epam/ai-dial-react-file-manager";
7
+ import { LazyMarkdownEditor as P } from "@epam/ai-dial-ui-kit/editors";
8
8
  i("flex flex-col", {
9
9
  body: "_body_m2y60_2",
10
10
  sideColumn: "_sideColumn_m2y60_6",
@@ -12,21 +12,21 @@ i("flex flex-col", {
12
12
  }.sideColumn);
13
13
  //#endregion
14
14
  //#region ../builder-form/src/constants/public-class-names.ts
15
- var se = {
15
+ var oe = {
16
16
  layout: "dial-builder-form-layout",
17
17
  section: "dial-builder-form-section"
18
- }, P = {
18
+ }, F = {
19
19
  headerBorder: "_headerBorder_1kidu_1",
20
20
  footerBorder: "_footerBorder_1kidu_5",
21
21
  sidebarBorder: "_sidebarBorder_1kidu_9"
22
- }, ce = ({ title: e, onBack: t, backAriaLabel: r = "Back", actions: a, leftContent: o, rightContent: s, isSaving: u = !1, labels: d, styles: f, dir: p }) => {
23
- let m = O(), h = u ? d?.savingStatusLabel ?? "Saving" : "", g = n({
22
+ }, se = ({ title: e, onBack: t, backAriaLabel: r = "Back", actions: a, leftContent: o, rightContent: s, isSaving: u = !1, labels: d, styles: f, dir: p }) => {
23
+ let m = k(), h = u ? d?.savingStatusLabel ?? "Saving" : "", g = n({
24
24
  "--el-header-border-color": f?.colors?.headerBorderColor,
25
25
  "--el-sidebar-border-color": f?.colors?.sidebarBorderColor
26
26
  });
27
27
  return /* @__PURE__ */ x("div", {
28
28
  dir: p,
29
- className: i("flex min-h-0 flex-1 flex-col", se.layout),
29
+ className: i("flex min-h-0 flex-1 flex-col", oe.layout),
30
30
  style: g,
31
31
  children: [
32
32
  /* @__PURE__ */ b("span", {
@@ -37,7 +37,7 @@ var se = {
37
37
  children: h
38
38
  }),
39
39
  /* @__PURE__ */ x("div", {
40
- className: i("flex items-center justify-between gap-2 border-b px-4 py-2 desktop:px-8 desktop:pb-3 desktop:pt-3", P.headerBorder),
40
+ className: i("flex items-center justify-between gap-2 border-b px-4 py-2 desktop:px-8 desktop:pb-3 desktop:pt-3", F.headerBorder),
41
41
  children: [/* @__PURE__ */ x("div", {
42
42
  className: "flex min-w-0 flex-1 items-center gap-2",
43
43
  children: [/* @__PURE__ */ b(ee, {
@@ -61,7 +61,7 @@ var se = {
61
61
  /* @__PURE__ */ x("div", {
62
62
  className: "flex flex-1 flex-col overflow-y-auto desktop:flex-row desktop:overflow-hidden",
63
63
  children: [/* @__PURE__ */ b("div", {
64
- className: i(s == null ? "desktop:flex-1" : "desktop:w-[360px] desktop:shrink-0 desktop:overflow-y-auto desktop:border-e", "desktop:overflow-y-auto", s == null ? void 0 : P.sidebarBorder),
64
+ className: i(s == null ? "desktop:flex-1" : "desktop:w-[360px] desktop:shrink-0 desktop:overflow-y-auto desktop:border-e", "desktop:overflow-y-auto", s == null ? void 0 : F.sidebarBorder),
65
65
  children: o
66
66
  }), s != null && /* @__PURE__ */ b("div", {
67
67
  className: "desktop:flex-1 desktop:overflow-y-auto",
@@ -69,71 +69,71 @@ var se = {
69
69
  })]
70
70
  }),
71
71
  a != null && /* @__PURE__ */ b("div", {
72
- className: i("flex shrink-0 flex-row-reverse items-center gap-2 border-t px-4 py-2 desktop:hidden [&>*]:flex-1", P.footerBorder),
72
+ className: i("flex shrink-0 flex-row-reverse items-center gap-2 border-t px-4 py-2 desktop:hidden [&>*]:flex-1", F.footerBorder),
73
73
  children: a
74
74
  })
75
75
  ]
76
76
  });
77
- }, le = { root: "dial-skill-editor-root" }, F = (e) => !!e.dataTransfer?.types.includes("Files"), ue = (e) => {
78
- let [t, n] = j(!1), r = A(0);
77
+ }, ce = { root: "dial-skill-editor-root" }, I = (e) => !!e.dataTransfer?.types.includes("Files"), le = (e) => {
78
+ let [t, n] = M(!1), r = j(0);
79
79
  return {
80
80
  isDragActive: t,
81
81
  dropZoneHandlers: {
82
- onDragEnter: E((e) => {
83
- F(e) && (e.preventDefault(), r.current += 1, n(!0));
82
+ onDragEnter: D((e) => {
83
+ I(e) && (e.preventDefault(), r.current += 1, n(!0));
84
84
  }, []),
85
- onDragLeave: E((e) => {
86
- F(e) && (--r.current, r.current <= 0 && (r.current = 0, n(!1)));
85
+ onDragLeave: D((e) => {
86
+ I(e) && (--r.current, r.current <= 0 && (r.current = 0, n(!1)));
87
87
  }, []),
88
- onDragOver: E((e) => {
89
- F(e) && e.preventDefault();
88
+ onDragOver: D((e) => {
89
+ I(e) && e.preventDefault();
90
90
  }, []),
91
- onDrop: E((t) => {
92
- if (!F(t)) return;
91
+ onDrop: D((t) => {
92
+ if (!I(t)) return;
93
93
  t.preventDefault(), r.current = 0, n(!1);
94
94
  let i = Array.from(t.dataTransfer?.files ?? []);
95
95
  i.length > 0 && e(i);
96
96
  }, [e])
97
97
  }
98
98
  };
99
- }, I = "SKILL.md", L = /* @__PURE__ */ function(e) {
99
+ }, L = "SKILL.md", R = /* @__PURE__ */ function(e) {
100
100
  return e.File = "file", e.Folder = "folder", e;
101
- }({}), R = (e) => {
101
+ }({}), z = (e) => {
102
102
  let t = e.lastIndexOf("/");
103
103
  return t === -1 ? null : e.slice(0, t);
104
- }, z = (e) => {
104
+ }, B = (e) => {
105
105
  let t = e.lastIndexOf("/");
106
106
  return t === -1 ? e : e.slice(t + 1);
107
- }, de = (e) => {
107
+ }, ue = (e) => {
108
108
  let t = /* @__PURE__ */ new Map(), n = (e) => {
109
109
  let n = t.get(e);
110
110
  if (n) return n;
111
111
  let r = {
112
112
  path: e,
113
- name: z(e),
114
- nodeType: M.FOLDER,
115
- parentPath: R(e),
113
+ name: B(e),
114
+ nodeType: N.FOLDER,
115
+ parentPath: z(e),
116
116
  folderId: e,
117
117
  items: []
118
118
  };
119
119
  return t.set(e, r), r;
120
120
  };
121
121
  for (let r of e) {
122
- if (r.kind === L.Folder) {
122
+ if (r.kind === R.Folder) {
123
123
  n(r.path);
124
124
  continue;
125
125
  }
126
126
  t.set(r.path, {
127
127
  path: r.path,
128
128
  name: r.name,
129
- nodeType: M.ITEM,
130
- parentPath: R(r.path),
131
- folderId: R(r.path) ?? ""
129
+ nodeType: N.ITEM,
130
+ parentPath: z(r.path),
131
+ folderId: z(r.path) ?? ""
132
132
  });
133
133
  }
134
134
  for (let t of [...e]) {
135
- let e = R(t.path);
136
- for (; e != null;) n(e), e = R(e);
135
+ let e = z(t.path);
136
+ for (; e != null;) n(e), e = z(e);
137
137
  }
138
138
  let r = [];
139
139
  for (let e of t.values()) {
@@ -145,7 +145,7 @@ var se = {
145
145
  n ? n.items = [...n.items ?? [], e] : r.push(e);
146
146
  }
147
147
  return r;
148
- }, fe = ({ isVisible: e, labels: t }) => {
148
+ }, de = ({ isVisible: e, labels: t }) => {
149
149
  if (!e) return null;
150
150
  let n = t ?? {};
151
151
  return /* @__PURE__ */ b("div", {
@@ -155,7 +155,7 @@ var se = {
155
155
  children: /* @__PURE__ */ x("div", {
156
156
  className: "flex flex-col items-center text-center",
157
157
  children: [
158
- /* @__PURE__ */ b(C, {
158
+ /* @__PURE__ */ b(w, {
159
159
  size: 100,
160
160
  className: "text-accent-primary",
161
161
  "aria-hidden": !0,
@@ -172,55 +172,55 @@ var se = {
172
172
  ]
173
173
  })
174
174
  });
175
- }, B = /* @__PURE__ */ function(e) {
175
+ }, V = /* @__PURE__ */ function(e) {
176
176
  return e.SupportingFile = "supporting-file", e.Manifest = "manifest", e;
177
- }({}), V = /* @__PURE__ */ function(e) {
177
+ }({}), H = /* @__PURE__ */ function(e) {
178
178
  return e.Valid = "valid", e.Invalid = "invalid", e;
179
- }({}), H = (e) => (e.webkitRelativePath || e.name).replace(/\\/g, "/"), U = 0, W = () => `skill-file-candidate-${++U}`, pe = ({ isOpen: e, onClose: t, fileActions: n, initialFiles: i, labels: a }) => {
180
- let o = a ?? {}, [s, c] = j([]), [u, m] = j(/* @__PURE__ */ new Map()), [h, v] = j([]), [S, ie] = j(!1), [C, w] = j(), [T, E] = j(!1), k = O(), A = (e) => {
179
+ }({}), fe = (e) => (e.webkitRelativePath || e.name).replace(/\\/g, "/"), U = 0, W = () => `skill-file-candidate-${++U}`, pe = ({ isOpen: e, onClose: t, fileActions: n, initialFiles: i, labels: a }) => {
180
+ let o = a ?? {}, [s, c] = M([]), [u, m] = M(/* @__PURE__ */ new Map()), [h, v] = M([]), [S, C] = M(!1), [w, T] = M(), [E, D] = M(!1), A = k(), j = (e) => {
181
181
  let t = e.map((e) => ({
182
182
  id: W(),
183
183
  file: e,
184
- path: H(e)
184
+ path: fe(e)
185
185
  }));
186
- w(void 0), c((e) => [...e, ...t]);
187
- }, M = (e) => {
186
+ T(void 0), c((e) => [...e, ...t]);
187
+ }, N = (e) => {
188
188
  c((t) => t.filter((t) => t.id !== e));
189
189
  };
190
- D(() => {
190
+ O(() => {
191
191
  e && (c((i ?? []).map((e) => ({
192
192
  id: W(),
193
193
  file: e,
194
- path: H(e)
195
- }))), m(/* @__PURE__ */ new Map()), v([]), w(void 0));
196
- }, [e]), D(() => {
194
+ path: fe(e)
195
+ }))), m(/* @__PURE__ */ new Map()), v([]), T(void 0));
196
+ }, [e]), O(() => {
197
197
  if (!e) return;
198
198
  let t = !1;
199
199
  if (s.length === 0) {
200
200
  m(/* @__PURE__ */ new Map()), v([]);
201
201
  return;
202
202
  }
203
- return ie(!0), n.validateBatch(s).then(({ results: e, batchErrors: n }) => {
203
+ return C(!0), n.validateBatch(s).then(({ results: e, batchErrors: n }) => {
204
204
  t || (m(new Map(e.map((e) => [e.candidateId, e]))), v(n.map((e) => e.message)));
205
205
  }).finally(() => {
206
- t || ie(!1);
206
+ t || C(!1);
207
207
  }), () => {
208
208
  t = !0;
209
209
  };
210
210
  }, [s, e]);
211
- let oe = s.some((e) => u.get(e.id)?.status === V.Invalid), N = s.length > 0 && s.every((e) => u.get(e.id)?.status === V.Invalid), se = s.length > 0 && !oe && h.length === 0 && !S && !T, P = async () => {
212
- E(!0), w(void 0);
211
+ let ae = s.some((e) => u.get(e.id)?.status === H.Invalid), P = s.length > 0 && s.every((e) => u.get(e.id)?.status === H.Invalid), oe = s.length > 0 && !ae && h.length === 0 && !S && !E, F = async () => {
212
+ D(!0), T(void 0);
213
213
  try {
214
214
  let { results: e, batchErrors: r } = await n.validateBatch(s), i = new Map(e.map((e) => [e.candidateId, e]));
215
- if (m(i), v(r.map((e) => e.message)), s.some((e) => i.get(e.id)?.status === V.Invalid) || r.length > 0) return;
215
+ if (m(i), v(r.map((e) => e.message)), s.some((e) => i.get(e.id)?.status === H.Invalid) || r.length > 0) return;
216
216
  let a = await n.commitBatch(s);
217
217
  if (a.error) {
218
- w(a.error);
218
+ T(a.error);
219
219
  return;
220
220
  }
221
221
  t();
222
222
  } finally {
223
- E(!1);
223
+ D(!1);
224
224
  }
225
225
  };
226
226
  return /* @__PURE__ */ b(g, {
@@ -236,12 +236,12 @@ var se = {
236
236
  onClick: t
237
237
  }), /* @__PURE__ */ b(ne, {
238
238
  label: o.uploadConfirmLabel ?? "Add",
239
- iconBefore: T ? /* @__PURE__ */ b(_, {
239
+ iconBefore: E ? /* @__PURE__ */ b(_, {
240
240
  size: 16,
241
241
  ariaLabel: ""
242
242
  }) : void 0,
243
- onClick: () => void P(),
244
- disabled: !se
243
+ onClick: () => void F(),
244
+ disabled: !oe
245
245
  })]
246
246
  }),
247
247
  children: /* @__PURE__ */ x("div", {
@@ -257,21 +257,21 @@ var se = {
257
257
  })] }),
258
258
  ariaLabel: o.uploadDropZoneAriaLabel ?? "Upload files",
259
259
  multiple: !0,
260
- className: N ? "border-error hover:border-error" : void 0,
261
- onChange: A
260
+ className: P ? "border-error hover:border-error" : void 0,
261
+ onChange: j
262
262
  }),
263
263
  /* @__PURE__ */ b("span", {
264
264
  role: "status",
265
265
  "aria-live": "polite",
266
266
  className: "sr-only",
267
- id: k,
267
+ id: A,
268
268
  children: h.map((e) => `${o.uploadBatchErrorAriaPrefix ?? "Upload error: "}${e}`).join(" ")
269
269
  }),
270
270
  h.map((e) => /* @__PURE__ */ b(d, { text: e }, e)),
271
271
  s.length > 0 && /* @__PURE__ */ b("ul", {
272
272
  className: "flex flex-col gap-2",
273
273
  children: s.map((e) => {
274
- let t = u.get(e.id), n = t?.kind === B.Manifest, i = t?.status === V.Invalid;
274
+ let t = u.get(e.id), n = t?.kind === V.Manifest, i = t?.status === H.Invalid;
275
275
  return /* @__PURE__ */ x("li", {
276
276
  className: "flex items-center gap-2 rounded-lg border border-tertiary p-2",
277
277
  children: [
@@ -299,158 +299,158 @@ var se = {
299
299
  ]
300
300
  }),
301
301
  /* @__PURE__ */ b(ee, {
302
- icon: /* @__PURE__ */ b(ae, {
302
+ icon: /* @__PURE__ */ b(ie, {
303
303
  size: 16,
304
304
  "aria-hidden": !0,
305
305
  stroke: l
306
306
  }),
307
307
  "aria-label": o.uploadRemoveCandidateLabel?.(e.path) ?? `Remove ${e.path}`,
308
- onClick: () => M(e.id)
308
+ onClick: () => N(e.id)
309
309
  })
310
310
  ]
311
311
  }, e.id);
312
312
  })
313
313
  }),
314
- C && /* @__PURE__ */ b(d, { text: C })
314
+ w && /* @__PURE__ */ b(d, { text: w })
315
315
  ]
316
316
  })
317
317
  });
318
318
  }, G = {
319
319
  title: "_title_65glc_1",
320
320
  helperText: "_helperText_65glc_5"
321
- }, me = T(async () => {
322
- let { MarkdownEditor: e } = await N();
321
+ }, me = E(async () => {
322
+ let { MarkdownEditor: e } = await P();
323
323
  return { default: e };
324
- }), K = ({ initialValues: r, files: f, selectedPath: ee, onSelectedPathChange: g, expandedPaths: te, onExpandedPathsChange: S, isLoading: re = !1, hasLoadError: C = !1, isSubmitting: T = !1, errors: O, submitError: M, conflict: N, onReloadLatest: se, isNameReadOnly: P = !1, onDirtyChange: F, onValuesChange: R, fileActions: z, supportingFileContent: B, onSubmit: V, onCancel: H, onBack: U, backAriaLabel: W, title: K, onRetry: he, labels: ge, styles: _e, dir: ve, instructionsEditorTheme: ye = u.light }) => {
325
- let [q, be] = j({
324
+ }), K = ({ initialValues: r, files: f, selectedPath: ee, onSelectedPathChange: g, expandedPaths: te, onExpandedPathsChange: S, isLoading: re = !1, hasLoadError: w = !1, isSubmitting: E = !1, errors: k, submitError: N, conflict: P, onReloadLatest: oe, isNameReadOnly: F = !1, onDirtyChange: I, onValuesChange: z, fileActions: B, supportingFileContent: V, onSubmit: H, onCancel: fe, onBack: U, backAriaLabel: W, title: K, onRetry: he, onRetrySubmit: ge, labels: _e, styles: ve, dir: ye, instructionsEditorTheme: be = u.light }) => {
325
+ let [q, xe] = M({
326
326
  name: r?.name ?? "",
327
327
  description: r?.description ?? "",
328
328
  instructions: r?.instructions ?? ""
329
- }), xe = a(), Se = (e) => {
329
+ }), Se = a(), Ce = (e) => {
330
330
  let t = {
331
331
  ...q,
332
332
  ...e
333
333
  };
334
- be(t), R?.(t);
335
- }, Ce = A(r), we = Ce.current !== r, Te = A(f);
336
- D(() => {
337
- Ce.current = r, be({
334
+ xe(t), z?.(t);
335
+ }, we = j(r), Te = we.current !== r, Ee = j(f);
336
+ O(() => {
337
+ we.current = r, xe({
338
338
  name: r?.name ?? "",
339
339
  description: r?.description ?? "",
340
340
  instructions: r?.instructions ?? ""
341
- }), Te.current = f;
341
+ }), Ee.current = f;
342
342
  }, [r]);
343
- let Ee = (e) => JSON.stringify([...e].sort((e, t) => e.path.localeCompare(t.path))), De = A(!1);
344
- D(() => {
345
- if (we) return;
343
+ let De = (e) => JSON.stringify([...e].sort((e, t) => e.path.localeCompare(t.path))), Oe = j(!1);
344
+ O(() => {
345
+ if (Te) return;
346
346
  let e = {
347
347
  name: r?.name ?? "",
348
348
  description: r?.description ?? "",
349
349
  instructions: r?.instructions ?? ""
350
- }, t = JSON.stringify(q) !== JSON.stringify(e) || Ee(f) !== Ee(Te.current);
351
- t !== De.current && (De.current = t, F?.(t));
350
+ }, t = JSON.stringify(q) !== JSON.stringify(e) || De(f) !== De(Ee.current);
351
+ t !== Oe.current && (Oe.current = t, I?.(t));
352
352
  }, [
353
353
  q,
354
354
  f,
355
355
  r,
356
- we,
357
- F
356
+ Te,
357
+ I
358
358
  ]);
359
- let [Oe, ke] = j(I), J = ee ?? Oe, Y = E((e) => {
360
- ke(e), g?.(e);
361
- }, [g]), [Ae, je] = j([]), Me = te ?? Ae, Ne = k(() => new Set(Me), [Me]), Pe = E((e) => {
359
+ let [ke, Ae] = M(L), J = ee ?? ke, Y = D((e) => {
360
+ Ae(e), g?.(e);
361
+ }, [g]), [je, Me] = M([]), Ne = te ?? je, Pe = A(() => new Set(Ne), [Ne]), Fe = D((e) => {
362
362
  let t = [...e];
363
- je(t), S?.(t);
364
- }, [S]), [X, Fe] = j(!1), [Ie, Le] = j(), [Re, ze] = j(!1), { isDragActive: Be, dropZoneHandlers: Ve } = ue(E((e) => {
365
- X || (Le(e), Fe(!0));
366
- }, [X])), Z = ge ?? {}, Q = _e?.colors, He = _e?.typography ?? {}, Ue = He.titleClassName ?? "dial-body-semi-text", We = He.helperTextClassName ?? "dial-tiny-semi-text", Ge = He.removeIconClassName ?? "text-secondary", Ke = n({
363
+ Me(t), S?.(t);
364
+ }, [S]), [X, Ie] = M(!1), [Le, Re] = M(), [ze, Be] = M(!1), { isDragActive: Ve, dropZoneHandlers: He } = le(D((e) => {
365
+ X || (Re(e), Ie(!0));
366
+ }, [X])), Z = _e ?? {}, Q = ve?.colors, Ue = ve?.typography ?? {}, We = Ue.titleClassName ?? "dial-body-semi-text", Ge = Ue.helperTextClassName ?? "dial-tiny-semi-text", Ke = Ue.removeIconClassName ?? "text-secondary", qe = n({
367
367
  "--se-title-color": Q?.title,
368
368
  "--se-helper-text-color": Q?.helperText
369
- }), qe = Q?.border ? { colors: {
369
+ }), Je = Q?.border ? { colors: {
370
370
  headerBorderColor: Q.border,
371
371
  sidebarBorderColor: Q.border
372
- } } : void 0, Je = k(() => de([{
373
- path: I,
374
- name: I,
375
- kind: L.File
376
- }, ...f]), [f]), $ = k(() => f.find((e) => e.path === J), [f, J]), Ye = E((e) => {
372
+ } } : void 0, Ye = A(() => ue([{
373
+ path: L,
374
+ name: L,
375
+ kind: R.File
376
+ }, ...f]), [f]), $ = A(() => f.find((e) => e.path === J), [f, J]), Xe = D((e) => {
377
377
  Y(e.path);
378
- }, [Y]), Xe = E((e) => {
379
- z.onRemoveNode(e), J === e && Y(I);
378
+ }, [Y]), Ze = D((e) => {
379
+ B.onRemoveNode(e), J === e && Y(L);
380
380
  }, [
381
- z,
381
+ B,
382
382
  J,
383
383
  Y
384
- ]), Ze = E((e) => e.path === "SKILL.md" ? [] : [{
384
+ ]), Qe = D((e) => e.path === "SKILL.md" ? [] : [{
385
385
  key: "remove",
386
386
  label: Z.removeLabel ?? "Remove",
387
- icon: /* @__PURE__ */ b(ae, {
387
+ icon: /* @__PURE__ */ b(ie, {
388
388
  size: c.SM,
389
- className: Ge,
389
+ className: Ke,
390
390
  "aria-hidden": !0,
391
391
  stroke: l
392
392
  }),
393
- onClick: () => Xe(e.path)
393
+ onClick: () => Ze(e.path)
394
394
  }], [
395
395
  Z.removeLabel,
396
- Ge,
397
- Xe
398
- ]), Qe = /* @__PURE__ */ x("div", {
396
+ Ke,
397
+ Ze
398
+ ]), $e = /* @__PURE__ */ x("div", {
399
399
  className: "flex flex-col gap-2 desktop:gap-5",
400
400
  children: [/* @__PURE__ */ x("div", {
401
401
  className: "flex items-center justify-between",
402
402
  children: [/* @__PURE__ */ b("span", {
403
- className: i(G.title, Ue),
403
+ className: i(G.title, We),
404
404
  children: Z.filesHeading ?? "Files"
405
405
  }), /* @__PURE__ */ b(h, {
406
406
  label: Z.addUploadLabel ?? "Upload from device",
407
- iconBefore: /* @__PURE__ */ b(ie, {
407
+ iconBefore: /* @__PURE__ */ b(C, {
408
408
  size: 16,
409
409
  "aria-hidden": !0,
410
410
  stroke: l
411
411
  }),
412
412
  onClick: () => {
413
- Le(void 0), Fe(!0);
413
+ Re(void 0), Ie(!0);
414
414
  }
415
415
  })]
416
416
  }), /* @__PURE__ */ b("div", {
417
417
  role: "tree",
418
418
  "aria-label": Z.filesTreeAriaLabel ?? "Skill files",
419
- children: /* @__PURE__ */ b(oe, {
420
- items: Je,
419
+ children: /* @__PURE__ */ b(ae, {
420
+ items: Ye,
421
421
  showFiles: !0,
422
422
  selectedPath: J,
423
- expandedPaths: Ne,
424
- onExpandedPathsChange: Pe,
425
- onItemClick: Ye,
426
- getContextMenuItems: Ze,
423
+ expandedPaths: Pe,
424
+ onExpandedPathsChange: Fe,
425
+ onItemClick: Xe,
426
+ getContextMenuItems: Qe,
427
427
  rootItemPath: ""
428
428
  })
429
429
  })]
430
- }), $e = /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(h, {
430
+ }), et = /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(h, {
431
431
  label: Z.cancelLabel ?? "Cancel",
432
- onClick: H,
433
- disabled: T
432
+ onClick: fe,
433
+ disabled: E
434
434
  }), /* @__PURE__ */ b(ne, {
435
435
  label: Z.createLabel ?? "Create",
436
- iconBefore: T ? /* @__PURE__ */ b(_, {
436
+ iconBefore: E ? /* @__PURE__ */ b(_, {
437
437
  size: 16,
438
438
  ariaLabel: ""
439
439
  }) : void 0,
440
- onClick: () => V(q),
441
- disabled: T
440
+ onClick: () => H(q),
441
+ disabled: E
442
442
  })] });
443
443
  return re ? /* @__PURE__ */ b("div", {
444
- dir: ve,
444
+ dir: ye,
445
445
  className: "relative flex min-h-0 flex-1 flex-col",
446
- children: /* @__PURE__ */ b(ce, {
446
+ children: /* @__PURE__ */ b(se, {
447
447
  title: K,
448
448
  onBack: U,
449
449
  backAriaLabel: W,
450
- actions: $e,
450
+ actions: et,
451
451
  isSaving: !1,
452
452
  labels: { savingStatusLabel: Z.savingStatusLabel },
453
- styles: qe,
453
+ styles: Je,
454
454
  leftContent: /* @__PURE__ */ b("div", {
455
455
  role: "status",
456
456
  "aria-label": Z.loadingAriaLabel ?? "Loading skill",
@@ -458,17 +458,17 @@ var se = {
458
458
  children: /* @__PURE__ */ b(_, {})
459
459
  })
460
460
  })
461
- }) : C ? /* @__PURE__ */ b("div", {
462
- dir: ve,
461
+ }) : w ? /* @__PURE__ */ b("div", {
462
+ dir: ye,
463
463
  className: "relative flex min-h-0 flex-1 flex-col",
464
- children: /* @__PURE__ */ b(ce, {
464
+ children: /* @__PURE__ */ b(se, {
465
465
  title: K,
466
466
  onBack: U,
467
467
  backAriaLabel: W,
468
- actions: $e,
468
+ actions: et,
469
469
  isSaving: !1,
470
470
  labels: { savingStatusLabel: Z.savingStatusLabel },
471
- styles: qe,
471
+ styles: Je,
472
472
  leftContent: /* @__PURE__ */ x("div", {
473
473
  role: "alert",
474
474
  className: "flex flex-col items-center gap-4 p-8",
@@ -479,55 +479,59 @@ var se = {
479
479
  })
480
480
  })
481
481
  }) : /* @__PURE__ */ x("div", {
482
- dir: ve,
483
- className: i("relative flex min-h-0 flex-1 flex-col", le.root),
484
- style: Ke,
485
- ...Ve,
482
+ dir: ye,
483
+ className: i("relative flex min-h-0 flex-1 flex-col", ce.root),
484
+ style: qe,
485
+ ...He,
486
486
  children: [
487
- /* @__PURE__ */ b(fe, {
488
- isVisible: Be && !X,
489
- labels: ge
487
+ /* @__PURE__ */ b(de, {
488
+ isVisible: Ve && !X,
489
+ labels: _e
490
490
  }),
491
- /* @__PURE__ */ b(ce, {
491
+ /* @__PURE__ */ b(se, {
492
492
  title: K,
493
493
  onBack: U,
494
494
  backAriaLabel: W,
495
- actions: $e,
496
- isSaving: T,
495
+ actions: et,
496
+ isSaving: E,
497
497
  labels: { savingStatusLabel: Z.savingStatusLabel },
498
- styles: qe,
498
+ styles: Je,
499
499
  leftContent: /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("div", {
500
500
  className: "px-4 py-4 desktop:hidden",
501
501
  children: /* @__PURE__ */ b(o, {
502
502
  title: Z.editingFileLabel ?? "Editing file",
503
503
  description: $?.name ?? "SKILL.md",
504
- expanded: Re,
505
- onToggle: ze,
504
+ expanded: ze,
505
+ onToggle: Be,
506
506
  ariaLabel: Z.editingFileLabel ?? "Editing file",
507
- children: Qe
507
+ children: $e
508
508
  })
509
509
  }), /* @__PURE__ */ b("div", {
510
510
  className: "hidden px-8 py-6 desktop:block",
511
- children: Qe
511
+ children: $e
512
512
  })] }),
513
513
  rightContent: /* @__PURE__ */ x("div", {
514
514
  className: "flex flex-1 flex-col gap-4 px-4 py-6 desktop:gap-5 desktop:px-8",
515
515
  children: [
516
- M != null && /* @__PURE__ */ b("div", {
516
+ N != null && /* @__PURE__ */ x("div", {
517
517
  role: "alert",
518
- children: /* @__PURE__ */ b(d, { text: M })
518
+ className: "flex items-center gap-2",
519
+ children: [/* @__PURE__ */ b(d, { text: N }), ge != null && /* @__PURE__ */ b(p, {
520
+ label: Z.retryLabel ?? "Retry",
521
+ onClick: ge
522
+ })]
519
523
  }),
520
- N != null && /* @__PURE__ */ x("div", {
524
+ P != null && /* @__PURE__ */ x("div", {
521
525
  role: "alert",
522
526
  className: "flex items-center gap-2",
523
- children: [/* @__PURE__ */ b(d, { text: N.message }), /* @__PURE__ */ b(p, {
527
+ children: [/* @__PURE__ */ b(d, { text: P.message }), /* @__PURE__ */ b(p, {
524
528
  label: Z.reloadLatestLabel ?? "Reload latest",
525
- onClick: se
529
+ onClick: oe
526
530
  })]
527
531
  }),
528
532
  /* @__PURE__ */ b("h2", {
529
- className: i(G.title, Ue),
530
- children: J === "SKILL.md" ? I : Z.selectedFileHeading?.($?.name ?? J) ?? $?.name ?? J
533
+ className: i(G.title, We),
534
+ children: J === "SKILL.md" ? L : Z.selectedFileHeading?.($?.name ?? J) ?? $?.name ?? J
531
535
  }),
532
536
  J === "SKILL.md" ? /* @__PURE__ */ x(y, { children: [
533
537
  /* @__PURE__ */ b(m, {
@@ -536,12 +540,12 @@ var se = {
536
540
  required: !0
537
541
  },
538
542
  value: q.name,
539
- onChange: (e) => Se({ name: e ?? "" }),
543
+ onChange: (e) => Ce({ name: e ?? "" }),
540
544
  placeholder: Z.namePlaceholder ?? "good-morning-breakfast",
541
- caption: O?.name ? void 0 : Z.nameCaption ?? "Lowercase letters and hyphens only, no spaces. We'll reformat automatically if needed.",
542
- error: O?.name,
543
- invalid: !!O?.name,
544
- disabled: P
545
+ caption: k?.name ? void 0 : Z.nameCaption ?? "Lowercase letters and hyphens only, no spaces. We'll reformat automatically if needed.",
546
+ error: k?.name,
547
+ invalid: !!k?.name,
548
+ disabled: F
545
549
  }),
546
550
  /* @__PURE__ */ b(v, {
547
551
  labelProps: {
@@ -550,9 +554,9 @@ var se = {
550
554
  },
551
555
  value: q.description,
552
556
  placeholder: Z.descriptionPlaceholder ?? "What this skill does and when to use it",
553
- onChange: (e) => Se({ description: e }),
554
- error: O?.description,
555
- invalid: !!O?.description
557
+ onChange: (e) => Ce({ description: e }),
558
+ error: k?.description,
559
+ invalid: !!k?.description
556
560
  }),
557
561
  /* @__PURE__ */ x("div", {
558
562
  className: "flex flex-1 flex-col gap-2",
@@ -560,7 +564,7 @@ var se = {
560
564
  /* @__PURE__ */ x("span", {
561
565
  className: "flex items-center gap-0.5",
562
566
  children: [/* @__PURE__ */ b("span", {
563
- className: i(G.helperText, We),
567
+ className: i(G.helperText, Ge),
564
568
  children: Z.instructionsLabel ?? "Instructions"
565
569
  }), /* @__PURE__ */ b("span", {
566
570
  className: "dial-tiny-text text-error",
@@ -568,36 +572,36 @@ var se = {
568
572
  })]
569
573
  }),
570
574
  /* @__PURE__ */ b("div", {
571
- ref: xe,
575
+ ref: Se,
572
576
  className: i(e, t),
573
- children: /* @__PURE__ */ b(w, {
577
+ children: /* @__PURE__ */ b(T, {
574
578
  fallback: /* @__PURE__ */ b(_, { ariaLabel: Z.instructionsLoadingAriaLabel ?? "Loading" }),
575
579
  children: /* @__PURE__ */ b(me, {
576
580
  value: q.instructions,
577
- onChange: (e) => Se({ instructions: e }),
578
- theme: ye,
581
+ onChange: (e) => Ce({ instructions: e }),
582
+ theme: be,
579
583
  placeholder: Z.instructionsPlaceholder ?? "Write the skill instructions in Markdown"
580
584
  })
581
585
  })
582
586
  }),
583
- O?.instructions != null && /* @__PURE__ */ b(d, { text: O.instructions })
587
+ k?.instructions != null && /* @__PURE__ */ b(d, { text: k.instructions })
584
588
  ]
585
589
  })
586
- ] }) : $?.kind === L.File && (B ?? /* @__PURE__ */ b(s, { text: Z.supportingFileNote ?? "This supporting file is included in the skill package as-is. Remove it from the Files panel to replace its content." }))
590
+ ] }) : $?.kind === R.File && (V ?? /* @__PURE__ */ b(s, { text: Z.supportingFileNote ?? "This supporting file is included in the skill package as-is. Remove it from the Files panel to replace its content." }))
587
591
  ]
588
592
  })
589
593
  }),
590
594
  /* @__PURE__ */ b(pe, {
591
595
  isOpen: X,
592
596
  onClose: () => {
593
- Fe(!1), Le(void 0);
597
+ Ie(!1), Re(void 0);
594
598
  },
595
- fileActions: z,
596
- initialFiles: Ie,
597
- labels: ge
599
+ fileActions: B,
600
+ initialFiles: Le,
601
+ labels: _e
598
602
  })
599
603
  ]
600
604
  });
601
605
  };
602
606
  //#endregion
603
- export { le as SKILL_EDITOR_CLASS, K as SkillEditor, B as SkillFileCandidateKind, L as SkillFileNodeKind, V as SkillFileValidationStatus };
607
+ export { ce as SKILL_EDITOR_CLASS, K as SkillEditor, V as SkillFileCandidateKind, R as SkillFileNodeKind, H as SkillFileValidationStatus };
@@ -296,6 +296,12 @@ export interface SkillEditorProps {
296
296
  onCancel: () => void;
297
297
  /** Called when the retry button in the load-error state is activated. */
298
298
  onRetry?: () => void;
299
+ /**
300
+ * Called when the retry action beside `submitError` is activated. Supply it
301
+ * only for a failure a plain re-send can clear, such as an unavailable
302
+ * service; when omitted, the error renders as text with no action.
303
+ */
304
+ onRetrySubmit?: () => void;
299
305
  /** Text overrides. */
300
306
  labels?: SkillEditorLabels;
301
307
  /** Style overrides. */
@@ -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,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAEvE;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC,+DAA+D;IAC/D,IAAI,EAAE,MAAM,CAAC;IACb,6CAA6C;IAC7C,IAAI,EAAE,MAAM,CAAC;IACb,+CAA+C;IAC/C,IAAI,EAAE,iBAAiB,CAAC;CACzB;AAED,8CAA8C;AAC9C,MAAM,WAAW,iBAAiB;IAChC,uEAAuE;IACvE,IAAI,EAAE,MAAM,CAAC;IACb,gDAAgD;IAChD,WAAW,EAAE,MAAM,CAAC;IACpB,gDAAgD;IAChD,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,0CAA0C;IAC1C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mDAAmD;IACnD,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,8FAA8F;AAC9F,oBAAY,sBAAsB;IAChC,gEAAgE;IAChE,cAAc,oBAAoB;IAClC,uGAAuG;IACvG,QAAQ,aAAa;CACtB;AAED,yEAAyE;AACzE,oBAAY,yBAAyB;IACnC,iDAAiD;IACjD,KAAK,UAAU;IACf,sEAAsE;IACtE,OAAO,YAAY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,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"}
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;IACb,6CAA6C;IAC7C,IAAI,EAAE,MAAM,CAAC;IACb,+CAA+C;IAC/C,IAAI,EAAE,iBAAiB,CAAC;CACzB;AAED,8CAA8C;AAC9C,MAAM,WAAW,iBAAiB;IAChC,uEAAuE;IACvE,IAAI,EAAE,MAAM,CAAC;IACb,gDAAgD;IAChD,WAAW,EAAE,MAAM,CAAC;IACpB,gDAAgD;IAChD,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,0CAA0C;IAC1C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mDAAmD;IACnD,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,8FAA8F;AAC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AE,MAAM,IAAI,CAAC;IACnB,wEAAwE;IACxE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,0CAA0C;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd;;;;;;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;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,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.2.0-dev.101",
4
+ "version": "1.2.0-dev.102",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -20,10 +20,10 @@
20
20
  "@tabler/icons-react": "^3.44.0",
21
21
  "@uiw/react-markdown-preview": "^5.2.1",
22
22
  "@uiw/react-md-editor": "^4.1.1",
23
- "@epam/ai-dial-builder-form": "1.2.0-dev.101"
23
+ "@epam/ai-dial-builder-form": "1.2.0-dev.102"
24
24
  },
25
25
  "peerDependencies": {
26
- "@epam/ai-dial-chat-shared": "1.2.0-dev.101",
26
+ "@epam/ai-dial-chat-shared": "1.2.0-dev.102",
27
27
  "@epam/ai-dial-ui-kit": "^0.15.0-dev.12",
28
28
  "@epam/ai-dial-react-file-manager": "^0.3.0-dev.4",
29
29
  "react": "^19.2.8"