@epam/ai-dial-skill-editor 1.3.0-dev.118 → 1.3.0-dev.126
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/index.js +13 -30
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -370,11 +370,7 @@ var ve = {
|
|
|
370
370
|
let e = () => {
|
|
371
371
|
t.name ? b.current?.focus() : t.version ? x.current?.focus() : t.description && S.current?.focus();
|
|
372
372
|
};
|
|
373
|
-
|
|
374
|
-
y !== k.current && (k.current = y, e());
|
|
375
|
-
return;
|
|
376
|
-
}
|
|
377
|
-
O && !C.current && e(), C.current = O;
|
|
373
|
+
y === void 0 ? (O && !C.current && e(), C.current = O) : y !== k.current && (k.current = y, e());
|
|
378
374
|
}, [
|
|
379
375
|
y,
|
|
380
376
|
O,
|
|
@@ -612,7 +608,7 @@ var ve = {
|
|
|
612
608
|
}), Le = /* @__PURE__ */ function(e) {
|
|
613
609
|
return e.Required = "required", e.InvalidFormat = "invalid-format", e.TooLong = "too-long", e.ControlCharacters = "control-characters", e;
|
|
614
610
|
}({});
|
|
615
|
-
|
|
611
|
+
Le.TooLong, Le.ControlCharacters;
|
|
616
612
|
//#endregion
|
|
617
613
|
//#region src/constants/public-class-names.ts
|
|
618
614
|
var Re = {
|
|
@@ -642,19 +638,13 @@ var Re = {
|
|
|
642
638
|
};
|
|
643
639
|
return t.set(e, r), r;
|
|
644
640
|
};
|
|
645
|
-
for (let r of e) {
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
name: r.name,
|
|
653
|
-
nodeType: he.ITEM,
|
|
654
|
-
parentPath: J(r.path),
|
|
655
|
-
folderId: J(r.path) ?? ""
|
|
656
|
-
});
|
|
657
|
-
}
|
|
641
|
+
for (let r of e) r.kind === q.Folder ? n(r.path).name = r.name : t.set(r.path, {
|
|
642
|
+
path: r.path,
|
|
643
|
+
name: r.name,
|
|
644
|
+
nodeType: he.ITEM,
|
|
645
|
+
parentPath: J(r.path),
|
|
646
|
+
folderId: J(r.path) ?? ""
|
|
647
|
+
});
|
|
658
648
|
for (let t of [...e]) {
|
|
659
649
|
let e = J(t.path);
|
|
660
650
|
for (; e != null;) n(e), e = J(e);
|
|
@@ -833,11 +823,7 @@ var Re = {
|
|
|
833
823
|
r === M.current && j((e) => e - 1);
|
|
834
824
|
}
|
|
835
825
|
}, se = (e) => {
|
|
836
|
-
|
|
837
|
-
oe(e);
|
|
838
|
-
return;
|
|
839
|
-
}
|
|
840
|
-
ae(e.map((e) => Z(e, tt(e), i)));
|
|
826
|
+
N ? oe(e) : ae(e.map((e) => Z(e, tt(e), i)));
|
|
841
827
|
}, R = (e) => {
|
|
842
828
|
d((t) => t.filter((t) => t.id !== e));
|
|
843
829
|
};
|
|
@@ -846,11 +832,8 @@ var Re = {
|
|
|
846
832
|
}, [e]), pe(() => {
|
|
847
833
|
if (!e) return;
|
|
848
834
|
let t = !1;
|
|
849
|
-
if (u.length === 0)
|
|
850
|
-
|
|
851
|
-
return;
|
|
852
|
-
}
|
|
853
|
-
return b(!0), n.validateBatch(u).then(({ results: e, batchErrors: n }) => {
|
|
835
|
+
if (u.length === 0) h(/* @__PURE__ */ new Map()), v([]);
|
|
836
|
+
else return b(!0), n.validateBatch(u).then(({ results: e, batchErrors: n }) => {
|
|
854
837
|
t || (h(new Map(e.map((e) => [e.candidateId, e]))), v(n.map((e) => e.message)));
|
|
855
838
|
}).finally(() => {
|
|
856
839
|
t || b(!1);
|
|
@@ -1086,7 +1069,7 @@ var Re = {
|
|
|
1086
1069
|
Q.folderNameInvalidError,
|
|
1087
1070
|
Q.folderNameDuplicateError
|
|
1088
1071
|
]), Lt = z((e) => {
|
|
1089
|
-
_t.has(e) || vt(new Set([..._t, e]));
|
|
1072
|
+
_t.has(e) || vt(/* @__PURE__ */ new Set([..._t, e]));
|
|
1090
1073
|
}, [_t, vt]), Rt = qe({
|
|
1091
1074
|
files: i,
|
|
1092
1075
|
fileActions: R,
|
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.126",
|
|
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.3.0-dev.
|
|
23
|
+
"@epam/ai-dial-builder-form": "1.3.0-dev.126"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@epam/ai-dial-chat-shared": "1.3.0-dev.
|
|
26
|
+
"@epam/ai-dial-chat-shared": "1.3.0-dev.126",
|
|
27
27
|
"@epam/ai-dial-ui-kit": "^0.16.0-dev.20",
|
|
28
28
|
"@epam/ai-dial-react-file-manager": "^0.4.0-dev.11",
|
|
29
29
|
"react": "^19.2.8"
|