@epam/ai-dial-skill-editor 1.2.7 → 1.2.9
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 ? x.current?.focus() : t.version ? S.current?.focus() : t.description && C.current?.focus();
|
|
372
372
|
};
|
|
373
|
-
|
|
374
|
-
b !== ee.current && (ee.current = b, e());
|
|
375
|
-
return;
|
|
376
|
-
}
|
|
377
|
-
k && !w.current && e(), w.current = k;
|
|
373
|
+
b === void 0 ? (k && !w.current && e(), w.current = k) : b !== ee.current && (ee.current = b, e());
|
|
378
374
|
}, [
|
|
379
375
|
b,
|
|
380
376
|
k,
|
|
@@ -614,7 +610,7 @@ var ve = {
|
|
|
614
610
|
}), Le = /* @__PURE__ */ function(e) {
|
|
615
611
|
return e.Required = "required", e.InvalidFormat = "invalid-format", e.TooLong = "too-long", e.ControlCharacters = "control-characters", e;
|
|
616
612
|
}({});
|
|
617
|
-
|
|
613
|
+
Le.TooLong, Le.ControlCharacters;
|
|
618
614
|
//#endregion
|
|
619
615
|
//#region src/constants/public-class-names.ts
|
|
620
616
|
var Re = {
|
|
@@ -644,19 +640,13 @@ var Re = {
|
|
|
644
640
|
};
|
|
645
641
|
return t.set(e, r), r;
|
|
646
642
|
};
|
|
647
|
-
for (let r of e) {
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
name: r.name,
|
|
655
|
-
nodeType: he.ITEM,
|
|
656
|
-
parentPath: J(r.path),
|
|
657
|
-
folderId: J(r.path) ?? ""
|
|
658
|
-
});
|
|
659
|
-
}
|
|
643
|
+
for (let r of e) r.kind === q.Folder ? n(r.path).name = r.name : t.set(r.path, {
|
|
644
|
+
path: r.path,
|
|
645
|
+
name: r.name,
|
|
646
|
+
nodeType: he.ITEM,
|
|
647
|
+
parentPath: J(r.path),
|
|
648
|
+
folderId: J(r.path) ?? ""
|
|
649
|
+
});
|
|
660
650
|
for (let t of [...e]) {
|
|
661
651
|
let e = J(t.path);
|
|
662
652
|
for (; e != null;) n(e), e = J(e);
|
|
@@ -836,11 +826,7 @@ var Re = {
|
|
|
836
826
|
r === M.current && j((e) => e - 1);
|
|
837
827
|
}
|
|
838
828
|
}, se = (e) => {
|
|
839
|
-
|
|
840
|
-
oe(e);
|
|
841
|
-
return;
|
|
842
|
-
}
|
|
843
|
-
ae(e.map((e) => Z(e, nt(e), i)));
|
|
829
|
+
N ? oe(e) : ae(e.map((e) => Z(e, nt(e), i)));
|
|
844
830
|
}, ce = (e) => {
|
|
845
831
|
d((t) => t.filter((t) => t.id !== e));
|
|
846
832
|
};
|
|
@@ -849,11 +835,8 @@ var Re = {
|
|
|
849
835
|
}, [e]), pe(() => {
|
|
850
836
|
if (!e) return;
|
|
851
837
|
let t = !1;
|
|
852
|
-
if (u.length === 0)
|
|
853
|
-
|
|
854
|
-
return;
|
|
855
|
-
}
|
|
856
|
-
return b(!0), n.validateBatch(u).then(({ results: e, batchErrors: n }) => {
|
|
838
|
+
if (u.length === 0) h(/* @__PURE__ */ new Map()), v([]);
|
|
839
|
+
else return b(!0), n.validateBatch(u).then(({ results: e, batchErrors: n }) => {
|
|
857
840
|
t || (h(new Map(e.map((e) => [e.candidateId, e]))), v(n.map((e) => e.message)));
|
|
858
841
|
}).finally(() => {
|
|
859
842
|
t || b(!1);
|
|
@@ -1089,7 +1072,7 @@ var Re = {
|
|
|
1089
1072
|
Q.folderNameInvalidError,
|
|
1090
1073
|
Q.folderNameDuplicateError
|
|
1091
1074
|
]), Rt = z((e) => {
|
|
1092
|
-
vt.has(e) || yt(new Set([...vt, e]));
|
|
1075
|
+
vt.has(e) || yt(/* @__PURE__ */ new Set([...vt, e]));
|
|
1093
1076
|
}, [vt, yt]), zt = Je({
|
|
1094
1077
|
files: i,
|
|
1095
1078
|
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.2.
|
|
4
|
+
"version": "1.2.9",
|
|
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.
|
|
23
|
+
"@epam/ai-dial-builder-form": "1.2.9"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@epam/ai-dial-chat-shared": "1.2.
|
|
26
|
+
"@epam/ai-dial-chat-shared": "1.2.9",
|
|
27
27
|
"@epam/ai-dial-ui-kit": "^0.15.4",
|
|
28
28
|
"@epam/ai-dial-react-file-manager": "^0.3.5",
|
|
29
29
|
"react": "^19.2.8"
|