@epam/ai-dial-skill-editor 1.3.0-dev.6 → 1.3.0-dev.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/SkillEditor/SkillEditor.d.ts.map +1 -1
- package/index.js +85 -76
- package/package.json +5 -5
- package/utils/icon.d.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SkillEditor.d.ts","sourceRoot":"","sources":["../../../src/components/SkillEditor/SkillEditor.tsx"],"names":[],"mappings":"AA0DA,OAAO,0CAA0C,CAAC;AAClD,OAAO,0CAA0C,CAAC;AAClD,OAAO,EAEL,EAAE,EAUH,MAAM,OAAO,CAAC;AAIf,OAAO,KAAK,EACV,gBAAgB,EAIjB,MAAM,iCAAiC,CAAC;AAuDzC,qFAAqF;AACrF,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,
|
|
1
|
+
{"version":3,"file":"SkillEditor.d.ts","sourceRoot":"","sources":["../../../src/components/SkillEditor/SkillEditor.tsx"],"names":[],"mappings":"AA0DA,OAAO,0CAA0C,CAAC;AAClD,OAAO,0CAA0C,CAAC;AAClD,OAAO,EAEL,EAAE,EAUH,MAAM,OAAO,CAAC;AAIf,OAAO,KAAK,EACV,gBAAgB,EAIjB,MAAM,iCAAiC,CAAC;AAuDzC,qFAAqF;AACrF,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAu1B5C,CAAC"}
|
package/index.js
CHANGED
|
@@ -364,38 +364,40 @@ var ve = {
|
|
|
364
364
|
})
|
|
365
365
|
]
|
|
366
366
|
});
|
|
367
|
-
}, Oe = "Add tags, comma separated", ke = "deployment-creation-form-description", G = ({ values: e, errors: t, onChange: n, onNameBlur: a, onVersionBlur: o, iconPreviewUrl: s, onAddAvatarClick: l, labels: u, styles: d, availableLocaleOptions: f = [], fields: p = Ee, isNameReadOnly: m = !1, nameCaption: h, isDescriptionRequired: g = !1,
|
|
368
|
-
let
|
|
367
|
+
}, Oe = "Add tags, comma separated", ke = "deployment-creation-form-description", G = ({ values: e, errors: t, onChange: n, onNameBlur: a, onVersionBlur: o, iconPreviewUrl: s, onAddAvatarClick: l, labels: u, styles: d, availableLocaleOptions: f = [], fields: p = Ee, isNameReadOnly: m = !1, nameCaption: h, isDescriptionRequired: g = !1, descriptionMaxLength: _, descriptionCaption: v, renderDescription: y, focusRequestKey: b }) => {
|
|
368
|
+
let x = V(null), S = V(null), C = V(null), w = V(!1), E = (e) => p.includes(e), D = E(U.Name), O = E(U.Version), k = !!(t.name || t.version || t.description), ee = V(b);
|
|
369
369
|
pe(() => {
|
|
370
370
|
let e = () => {
|
|
371
|
-
t.name ?
|
|
371
|
+
t.name ? x.current?.focus() : t.version ? S.current?.focus() : t.description && C.current?.focus();
|
|
372
372
|
};
|
|
373
|
-
if (
|
|
374
|
-
|
|
373
|
+
if (b !== void 0) {
|
|
374
|
+
b !== ee.current && (ee.current = b, e());
|
|
375
375
|
return;
|
|
376
376
|
}
|
|
377
|
-
|
|
377
|
+
k && !w.current && e(), w.current = k;
|
|
378
378
|
}, [
|
|
379
|
-
|
|
380
|
-
|
|
379
|
+
b,
|
|
380
|
+
k,
|
|
381
381
|
t.name,
|
|
382
382
|
t.version,
|
|
383
383
|
t.description
|
|
384
384
|
]);
|
|
385
|
-
let
|
|
385
|
+
let A = /* @__PURE__ */ F(M, {
|
|
386
386
|
id: ke,
|
|
387
|
-
ref:
|
|
387
|
+
ref: C,
|
|
388
388
|
value: e.description,
|
|
389
389
|
onChange: (e) => n({ description: e }),
|
|
390
390
|
"aria-required": g || void 0,
|
|
391
|
-
labelProps:
|
|
391
|
+
labelProps: y ? void 0 : {
|
|
392
392
|
label: u.description.label,
|
|
393
393
|
required: g
|
|
394
394
|
},
|
|
395
395
|
placeholder: u.description.placeholder,
|
|
396
|
+
maxLength: _,
|
|
397
|
+
caption: v,
|
|
396
398
|
error: t.description || void 0,
|
|
397
399
|
invalid: !!t.description,
|
|
398
|
-
containerClassName:
|
|
400
|
+
containerClassName: y ? void 0 : d?.field,
|
|
399
401
|
className: r,
|
|
400
402
|
resize: N.Vertical
|
|
401
403
|
});
|
|
@@ -404,7 +406,7 @@ var ve = {
|
|
|
404
406
|
"aria-label": u.ariaLabel,
|
|
405
407
|
className: c("flex flex-col gap-4", d?.root),
|
|
406
408
|
children: [
|
|
407
|
-
|
|
409
|
+
E(U.Avatar) && /* @__PURE__ */ F(we, {
|
|
408
410
|
label: u.iconUrl.label,
|
|
409
411
|
avatarUrl: s,
|
|
410
412
|
addAvatarLabel: u.iconUrl.addAvatarLabel,
|
|
@@ -412,11 +414,11 @@ var ve = {
|
|
|
412
414
|
onAddAvatarClick: l,
|
|
413
415
|
className: d?.field
|
|
414
416
|
}),
|
|
415
|
-
(
|
|
417
|
+
(D || O) && /* @__PURE__ */ I("div", {
|
|
416
418
|
className: c("flex items-start gap-4", d?.field),
|
|
417
|
-
children: [
|
|
419
|
+
children: [D && /* @__PURE__ */ F(T, {
|
|
418
420
|
id: "deployment-creation-form-name",
|
|
419
|
-
inputRef:
|
|
421
|
+
inputRef: x,
|
|
420
422
|
value: e.name,
|
|
421
423
|
onChange: (e) => n({ name: e ?? "" }),
|
|
422
424
|
onBlur: a,
|
|
@@ -429,10 +431,10 @@ var ve = {
|
|
|
429
431
|
caption: h,
|
|
430
432
|
error: t.name || void 0,
|
|
431
433
|
invalid: !!t.name,
|
|
432
|
-
containerClassName:
|
|
433
|
-
}),
|
|
434
|
+
containerClassName: O ? "min-w-0 basis-0 grow-[2]" : "min-w-0 flex-1"
|
|
435
|
+
}), O && /* @__PURE__ */ F(T, {
|
|
434
436
|
id: "deployment-creation-form-version",
|
|
435
|
-
inputRef:
|
|
437
|
+
inputRef: S,
|
|
436
438
|
value: e.version,
|
|
437
439
|
onChange: (e) => n({ version: e ?? "" }),
|
|
438
440
|
onBlur: o,
|
|
@@ -440,21 +442,21 @@ var ve = {
|
|
|
440
442
|
placeholder: u.version.placeholder,
|
|
441
443
|
error: t.version || void 0,
|
|
442
444
|
invalid: !!t.version,
|
|
443
|
-
containerClassName:
|
|
445
|
+
containerClassName: D ? "min-w-0 basis-0 grow-[1]" : "min-w-0 flex-1"
|
|
444
446
|
})]
|
|
445
447
|
}),
|
|
446
|
-
|
|
448
|
+
E(U.Description) && (y ? /* @__PURE__ */ F("div", {
|
|
447
449
|
className: d?.field,
|
|
448
|
-
children:
|
|
449
|
-
}) :
|
|
450
|
-
|
|
450
|
+
children: y(A, ke)
|
|
451
|
+
}) : A),
|
|
452
|
+
E(U.Locales) && /* @__PURE__ */ F(W, {
|
|
451
453
|
value: e.otherLocales,
|
|
452
454
|
onChange: (e) => n({ otherLocales: e }),
|
|
453
455
|
availableLocaleOptions: f,
|
|
454
456
|
labels: u.otherLocales,
|
|
455
457
|
className: d?.field
|
|
456
458
|
}),
|
|
457
|
-
|
|
459
|
+
E(U.Tags) && /* @__PURE__ */ F("div", {
|
|
458
460
|
className: d?.field,
|
|
459
461
|
children: /* @__PURE__ */ F(j, {
|
|
460
462
|
id: "deployment-creation-form-topics",
|
|
@@ -576,36 +578,38 @@ var ve = {
|
|
|
576
578
|
deleteConfirmItemsLabel: "items?",
|
|
577
579
|
deleteConfirmLabel: "Delete",
|
|
578
580
|
deleteCancelLabel: "Cancel"
|
|
579
|
-
}, Ie = fe(({ values: e, errors: t, onChange: n, onNameBlur: r, onVersionBlur: i, avatarPicker: a, availableLocaleOptions: o, fields: s = Ee, isNameReadOnly: c, nameCaption: l, isDescriptionRequired: u,
|
|
580
|
-
let [
|
|
581
|
-
let t =
|
|
582
|
-
t && n({ iconUrl: t }),
|
|
583
|
-
}, [n,
|
|
581
|
+
}, Ie = fe(({ values: e, errors: t, onChange: n, onNameBlur: r, onVersionBlur: i, avatarPicker: a, availableLocaleOptions: o, fields: s = Ee, isNameReadOnly: c, nameCaption: l, isDescriptionRequired: u, descriptionMaxLength: d, descriptionCaption: f, renderDescription: p, focusRequestKey: m, labels: h }) => {
|
|
582
|
+
let [g, _] = H(!1), v = B(() => a ? s : s.filter((e) => e !== U.Avatar), [a, s]), y = e.iconUrl, b = a?.resolveIconUrl, x = B(() => b ? b(y) : void 0, [y, b]), S = z(() => _(!0), []), C = z(() => _(!1), []), w = a?.resolveAttachedIconUrl, T = z((e) => {
|
|
583
|
+
let t = w?.(e);
|
|
584
|
+
t && n({ iconUrl: t }), _(!1);
|
|
585
|
+
}, [n, w]);
|
|
584
586
|
return /* @__PURE__ */ I(P, { children: [/* @__PURE__ */ F(G, {
|
|
585
587
|
values: e,
|
|
586
588
|
errors: t,
|
|
587
589
|
onChange: n,
|
|
588
590
|
onNameBlur: r,
|
|
589
591
|
onVersionBlur: i,
|
|
590
|
-
iconPreviewUrl:
|
|
591
|
-
onAddAvatarClick:
|
|
592
|
-
labels:
|
|
592
|
+
iconPreviewUrl: x,
|
|
593
|
+
onAddAvatarClick: S,
|
|
594
|
+
labels: h?.form ?? Pe,
|
|
593
595
|
availableLocaleOptions: o,
|
|
594
|
-
fields:
|
|
596
|
+
fields: v,
|
|
595
597
|
isNameReadOnly: c,
|
|
596
598
|
nameCaption: l,
|
|
597
599
|
isDescriptionRequired: u,
|
|
598
|
-
|
|
599
|
-
|
|
600
|
+
descriptionMaxLength: d,
|
|
601
|
+
descriptionCaption: f,
|
|
602
|
+
renderDescription: p,
|
|
603
|
+
focusRequestKey: m
|
|
600
604
|
}), a && /* @__PURE__ */ F(Te, {
|
|
601
|
-
isOpen:
|
|
602
|
-
onClose:
|
|
603
|
-
onAttach:
|
|
605
|
+
isOpen: g,
|
|
606
|
+
onClose: C,
|
|
607
|
+
onAttach: T,
|
|
604
608
|
bucket: a.bucket,
|
|
605
609
|
FileManagerModal: a.FileManagerModal,
|
|
606
610
|
allowedMimeTypes: a.allowedMimeTypes,
|
|
607
611
|
maxFileSizeBytes: a.maxFileSizeBytes,
|
|
608
|
-
labels:
|
|
612
|
+
labels: h?.avatarPicker ?? Fe
|
|
609
613
|
})] });
|
|
610
614
|
}), Le = /* @__PURE__ */ function(e) {
|
|
611
615
|
return e.Required = "required", e.InvalidFormat = "invalid-format", e.TooLong = "too-long", e.ControlCharacters = "control-characters", e;
|
|
@@ -982,7 +986,7 @@ var Re = {
|
|
|
982
986
|
}, ct = [U.Name, U.Description], lt = 24, ut = 300, dt = "desktop:px-8 desktop:py-6", ft = "desktop:px-8 desktop:py-6", pt = "gap-4 px-4 py-6 desktop:gap-5 desktop:px-8 desktop:py-6", mt = R(async () => {
|
|
983
987
|
let { MarkdownEditor: e } = await _e();
|
|
984
988
|
return { default: e };
|
|
985
|
-
}), ht = ({ initialValues: r, files: i, selectedPath: s, onSelectedPathChange:
|
|
989
|
+
}), ht = ({ initialValues: r, files: i, selectedPath: s, onSelectedPathChange: _, expandedPaths: v, onExpandedPathsChange: S, isLoading: T = !1, hasLoadError: D = !1, isSubmitting: O = !1, errors: k, submitError: ee, conflict: te, onReloadLatest: j, isNameReadOnly: M = !1, onDirtyChange: N, onValuesChange: L, onRefineDescription: ie, onRefineInstructions: se, fileActions: R, supportingFileContent: fe, asideData: _e, onSubmit: ve, onCancel: ye, onBack: be, backAriaLabel: xe, title: Se, onRetry: Ce, onRetrySubmit: we, labels: Te, styles: U, dir: Ee, instructionsEditorTheme: De = y.light }) => {
|
|
986
990
|
let [W, Oe] = H({
|
|
987
991
|
name: r?.name ?? "",
|
|
988
992
|
description: r?.description ?? "",
|
|
@@ -1051,11 +1055,11 @@ var Re = {
|
|
|
1051
1055
|
N
|
|
1052
1056
|
]);
|
|
1053
1057
|
let [rt, it] = H(K), X = s ?? rt, Z = z((e) => {
|
|
1054
|
-
it(e),
|
|
1055
|
-
}, [
|
|
1058
|
+
it(e), _?.(e);
|
|
1059
|
+
}, [_]), [ht, gt] = H([]), _t = v ?? ht, vt = B(() => new Set(_t), [_t]), yt = z((e) => {
|
|
1056
1060
|
let t = [...e];
|
|
1057
|
-
gt(t),
|
|
1058
|
-
}, [
|
|
1061
|
+
gt(t), S?.(t);
|
|
1062
|
+
}, [S]), [bt, xt] = H(!1), [St, Ct] = H(st), wt = z((e) => {
|
|
1059
1063
|
Ct(e), xt(!0);
|
|
1060
1064
|
}, []), [Tt, Et] = H(!1), { isDragActive: Dt, dropZoneHandlers: Ot } = Xe(z((e) => {
|
|
1061
1065
|
bt || wt({
|
|
@@ -1177,12 +1181,12 @@ var Re = {
|
|
|
1177
1181
|
i,
|
|
1178
1182
|
X
|
|
1179
1183
|
]), tn = z((e, t) => {
|
|
1180
|
-
if (e.path ===
|
|
1184
|
+
if (e.path === Vt || e.nodeType !== he.FOLDER) return [];
|
|
1181
1185
|
let n = {
|
|
1182
1186
|
path: e.path,
|
|
1183
1187
|
name: e.name,
|
|
1184
|
-
kind:
|
|
1185
|
-
}, r =
|
|
1188
|
+
kind: q.Folder
|
|
1189
|
+
}, r = $t(We(ze.Child, n), t);
|
|
1186
1190
|
return r.push({
|
|
1187
1191
|
key: "add-sibling",
|
|
1188
1192
|
icon: Qe(ce),
|
|
@@ -1205,7 +1209,16 @@ var Re = {
|
|
|
1205
1209
|
]), nn = B(() => ({
|
|
1206
1210
|
[Y.Mobile]: (e) => tn(e, Y.Mobile),
|
|
1207
1211
|
[Y.Desktop]: (e) => tn(e, Y.Desktop)
|
|
1208
|
-
}), [tn]), rn = (e) => /* @__PURE__ */
|
|
1212
|
+
}), [tn]), rn = z((e) => e.nodeType === he.FOLDER || e.path === "SKILL.md" ? null : /* @__PURE__ */ F(w, {
|
|
1213
|
+
size: b.Small,
|
|
1214
|
+
icon: Qe(le, Mt, g.SM),
|
|
1215
|
+
"aria-label": Q.deleteLabel ?? "Delete",
|
|
1216
|
+
onClick: () => qt(e.path)
|
|
1217
|
+
}), [
|
|
1218
|
+
Q.deleteLabel,
|
|
1219
|
+
Mt,
|
|
1220
|
+
qt
|
|
1221
|
+
]), an = (e) => /* @__PURE__ */ I("div", {
|
|
1209
1222
|
className: "flex flex-col gap-2 desktop:gap-5",
|
|
1210
1223
|
children: [/* @__PURE__ */ I("div", {
|
|
1211
1224
|
className: "flex items-center justify-between",
|
|
@@ -1217,11 +1230,6 @@ var Re = {
|
|
|
1217
1230
|
variant: m.Neutral,
|
|
1218
1231
|
appearance: f.Solid,
|
|
1219
1232
|
size: b.Small,
|
|
1220
|
-
iconBefore: /* @__PURE__ */ F(ce, {
|
|
1221
|
-
size: g.SM,
|
|
1222
|
-
"aria-hidden": !0,
|
|
1223
|
-
stroke: _
|
|
1224
|
-
}),
|
|
1225
1233
|
items: en[e]
|
|
1226
1234
|
})]
|
|
1227
1235
|
}), /* @__PURE__ */ F("div", {
|
|
@@ -1235,6 +1243,7 @@ var Re = {
|
|
|
1235
1243
|
onExpandedPathsChange: yt,
|
|
1236
1244
|
onItemClick: Kt,
|
|
1237
1245
|
getContextMenuItems: nn[e],
|
|
1246
|
+
renderItemActions: rn,
|
|
1238
1247
|
renamedPath: Ht === e ? Vt : void 0,
|
|
1239
1248
|
onRenameSave: zt.handleSave,
|
|
1240
1249
|
onRenameCancel: zt.handleCancel,
|
|
@@ -1242,17 +1251,17 @@ var Re = {
|
|
|
1242
1251
|
rootItemPath: ""
|
|
1243
1252
|
})
|
|
1244
1253
|
})]
|
|
1245
|
-
}),
|
|
1254
|
+
}), on = B(() => ({
|
|
1246
1255
|
name: W.name,
|
|
1247
1256
|
description: W.description,
|
|
1248
1257
|
iconUrl: "",
|
|
1249
1258
|
version: "",
|
|
1250
1259
|
topics: [],
|
|
1251
1260
|
otherLocales: []
|
|
1252
|
-
}), [W.name, W.description]),
|
|
1261
|
+
}), [W.name, W.description]), sn = B(() => ({
|
|
1253
1262
|
name: k?.name,
|
|
1254
1263
|
description: k?.description
|
|
1255
|
-
}), [k?.name, k?.description]),
|
|
1264
|
+
}), [k?.name, k?.description]), cn = B(() => ({ form: {
|
|
1256
1265
|
...Pe,
|
|
1257
1266
|
name: {
|
|
1258
1267
|
label: Q.nameLabel ?? "Name",
|
|
@@ -1268,9 +1277,9 @@ var Re = {
|
|
|
1268
1277
|
Q.namePlaceholder,
|
|
1269
1278
|
Q.descriptionLabel,
|
|
1270
1279
|
Q.descriptionPlaceholder
|
|
1271
|
-
]),
|
|
1280
|
+
]), ln = (e) => {
|
|
1272
1281
|
e.name !== void 0 && Me({ name: e.name }), e.description !== void 0 && (Le.reset(), Me({ description: e.description }));
|
|
1273
|
-
},
|
|
1282
|
+
}, un = ie ? (e, t) => /* @__PURE__ */ F(a, {
|
|
1274
1283
|
isEnabled: !0,
|
|
1275
1284
|
fieldId: t,
|
|
1276
1285
|
required: !0,
|
|
@@ -1280,7 +1289,7 @@ var Re = {
|
|
|
1280
1289
|
disabled: Be || O,
|
|
1281
1290
|
...Ft,
|
|
1282
1291
|
children: e
|
|
1283
|
-
}) : void 0,
|
|
1292
|
+
}) : void 0, dn = {
|
|
1284
1293
|
title: Se,
|
|
1285
1294
|
onBack: Ge,
|
|
1286
1295
|
onCancel: Ue,
|
|
@@ -1299,7 +1308,7 @@ var Re = {
|
|
|
1299
1308
|
dir: Ee,
|
|
1300
1309
|
className: "relative flex min-h-0 flex-1 flex-col",
|
|
1301
1310
|
children: /* @__PURE__ */ F(Ne, {
|
|
1302
|
-
...
|
|
1311
|
+
...dn,
|
|
1303
1312
|
metadata: /* @__PURE__ */ F("div", {
|
|
1304
1313
|
role: "status",
|
|
1305
1314
|
"aria-label": Q.loadingAriaLabel ?? "Loading skill",
|
|
@@ -1312,7 +1321,7 @@ var Re = {
|
|
|
1312
1321
|
dir: Ee,
|
|
1313
1322
|
className: "relative flex min-h-0 flex-1 flex-col",
|
|
1314
1323
|
children: /* @__PURE__ */ F(Ne, {
|
|
1315
|
-
...
|
|
1324
|
+
...dn,
|
|
1316
1325
|
metadata: /* @__PURE__ */ I("div", {
|
|
1317
1326
|
role: "alert",
|
|
1318
1327
|
className: "flex flex-col items-center gap-4 p-8",
|
|
@@ -1323,7 +1332,7 @@ var Re = {
|
|
|
1323
1332
|
})
|
|
1324
1333
|
})
|
|
1325
1334
|
});
|
|
1326
|
-
let
|
|
1335
|
+
let fn = X === K, pn = fn ? K : Q.selectedFileHeading?.(Gt?.name ?? X) ?? Gt?.name ?? X, mn = ee != null || te != null ? /* @__PURE__ */ I("div", {
|
|
1327
1336
|
className: "flex flex-col gap-2",
|
|
1328
1337
|
children: [ee != null && /* @__PURE__ */ I("div", {
|
|
1329
1338
|
className: "flex items-center gap-2",
|
|
@@ -1338,7 +1347,7 @@ var Re = {
|
|
|
1338
1347
|
onClick: j
|
|
1339
1348
|
})]
|
|
1340
1349
|
})]
|
|
1341
|
-
}) : void 0,
|
|
1350
|
+
}) : void 0, hn = /* @__PURE__ */ F(a, {
|
|
1342
1351
|
isEnabled: !!se,
|
|
1343
1352
|
fieldId: ke,
|
|
1344
1353
|
required: !0,
|
|
@@ -1390,7 +1399,7 @@ var Re = {
|
|
|
1390
1399
|
labels: Te
|
|
1391
1400
|
}),
|
|
1392
1401
|
/* @__PURE__ */ F(Ne, {
|
|
1393
|
-
...
|
|
1402
|
+
...dn,
|
|
1394
1403
|
asideData: _e,
|
|
1395
1404
|
asideSectionClassName: ft,
|
|
1396
1405
|
isSubmitting: O,
|
|
@@ -1403,26 +1412,26 @@ var Re = {
|
|
|
1403
1412
|
expanded: Tt,
|
|
1404
1413
|
onToggle: Et,
|
|
1405
1414
|
ariaLabel: Q.editingFileLabel ?? "Editing file",
|
|
1406
|
-
children:
|
|
1415
|
+
children: an(Y.Mobile)
|
|
1407
1416
|
})
|
|
1408
1417
|
}), /* @__PURE__ */ F("div", {
|
|
1409
1418
|
className: "hidden desktop:block",
|
|
1410
|
-
children:
|
|
1419
|
+
children: an(Y.Desktop)
|
|
1411
1420
|
})] }),
|
|
1412
|
-
alert:
|
|
1413
|
-
setupTitle:
|
|
1421
|
+
alert: mn,
|
|
1422
|
+
setupTitle: pn,
|
|
1414
1423
|
setupSectionClassName: pt,
|
|
1415
|
-
setup:
|
|
1416
|
-
values:
|
|
1417
|
-
errors:
|
|
1418
|
-
onChange:
|
|
1424
|
+
setup: fn ? /* @__PURE__ */ I(P, { children: [/* @__PURE__ */ F(Ie, {
|
|
1425
|
+
values: on,
|
|
1426
|
+
errors: sn,
|
|
1427
|
+
onChange: ln,
|
|
1419
1428
|
fields: ct,
|
|
1420
1429
|
isDescriptionRequired: !0,
|
|
1421
1430
|
isNameReadOnly: M,
|
|
1422
1431
|
nameCaption: k?.name ? void 0 : Q.nameCaption ?? "Lowercase letters and hyphens only, no spaces. We'll reformat automatically if needed.",
|
|
1423
|
-
renderDescription:
|
|
1424
|
-
labels:
|
|
1425
|
-
}),
|
|
1432
|
+
renderDescription: un,
|
|
1433
|
+
labels: cn
|
|
1434
|
+
}), hn] }) : /* @__PURE__ */ F(P, { children: Gt?.kind === q.File && /* @__PURE__ */ F("div", {
|
|
1426
1435
|
className: "flex min-h-0 flex-1 flex-col",
|
|
1427
1436
|
children: fe ?? /* @__PURE__ */ F(h, { text: Q.supportingFileNote ?? "This supporting file is included in the skill package as-is. Remove it from the Files panel to replace its content." })
|
|
1428
1437
|
}) })
|
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.3.0-dev.
|
|
4
|
+
"version": "1.3.0-dev.63",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -20,12 +20,12 @@
|
|
|
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.3.0-dev.
|
|
23
|
+
"@epam/ai-dial-builder-form": "1.3.0-dev.63"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@epam/ai-dial-chat-shared": "1.3.0-dev.
|
|
27
|
-
"@epam/ai-dial-ui-kit": "^0.15.
|
|
28
|
-
"@epam/ai-dial-react-file-manager": "^0.3.
|
|
26
|
+
"@epam/ai-dial-chat-shared": "1.3.0-dev.63",
|
|
27
|
+
"@epam/ai-dial-ui-kit": "^0.15.4",
|
|
28
|
+
"@epam/ai-dial-react-file-manager": "^0.3.5",
|
|
29
29
|
"react": "^19.2.8"
|
|
30
30
|
},
|
|
31
31
|
"repository": {
|
package/utils/icon.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { TablerIcon } from '@tabler/icons-react';
|
|
2
2
|
/** Returns a decorative Tabler icon at the kit stroke, sized `DIAL_ICON_SIZE.MD` unless `size` is given. */
|
|
3
|
-
export declare const renderIcon: (Icon: TablerIcon, className?: string, size?: number) => import(
|
|
3
|
+
export declare const renderIcon: (Icon: TablerIcon, className?: string, size?: number) => import('react').JSX.Element;
|
|
4
4
|
//# sourceMappingURL=icon.d.ts.map
|