@epam/ai-dial-skill-editor 1.1.0-dev.433 → 1.1.0-dev.438
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 +287 -284
- package/package.json +3 -3
|
@@ -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":"AAiCA,OAAO,0CAA0C,CAAC;AAClD,OAAO,0CAA0C,CAAC;AAClD,OAAO,EAEL,EAAE,EAQH,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EACV,gBAAgB,EAGjB,MAAM,iCAAiC,CAAC;AAsBzC,qFAAqF;AACrF,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CA2e5C,CAAC"}
|
package/index.js
CHANGED
|
@@ -1,97 +1,97 @@
|
|
|
1
|
-
import { MARKDOWN_EDITOR_MAX_HEIGHT_CLASS_NAME as e,
|
|
2
|
-
import { Fragment as
|
|
3
|
-
import { Accordion as
|
|
4
|
-
import { IconArrowNarrowLeft as x, IconFileText as
|
|
5
|
-
import { Suspense as
|
|
6
|
-
import { DialFileNodeType as
|
|
7
|
-
import { LazyMarkdownEditor as
|
|
8
|
-
var
|
|
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
|
+
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
3
|
+
import { Accordion as l, CaptionText as u, DIAL_ICON_SIZE as d, DIAL_KIT_ICON_STROKE as f, EditorThemes as p, ErrorText as m, FileDropzone as h, GhostButton as ee, GhostIconButton as g, Input as _, NeutralButton as v, Popup as te, PopupSize as ne, PrimaryButton as re, Spinner as y, Textarea as b } from "@epam/ai-dial-ui-kit";
|
|
4
|
+
import { IconArrowNarrowLeft as x, IconFileText as ie, IconPlus as S, 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";
|
|
8
|
+
var P = {
|
|
9
9
|
headerBorder: "_headerBorder_1kidu_1",
|
|
10
10
|
footerBorder: "_footerBorder_1kidu_5",
|
|
11
11
|
sidebarBorder: "_sidebarBorder_1kidu_9"
|
|
12
|
-
},
|
|
13
|
-
let
|
|
14
|
-
return /* @__PURE__ */
|
|
15
|
-
dir:
|
|
12
|
+
}, F = ({ title: e, onBack: t, backAriaLabel: r = "Back", actions: a, leftContent: o, rightContent: l, isSaving: u = !1, labels: p, styles: m, dir: h }) => {
|
|
13
|
+
let ee = O(), _ = u ? p?.savingStatusLabel ?? "Saving" : "";
|
|
14
|
+
return /* @__PURE__ */ c("div", {
|
|
15
|
+
dir: h,
|
|
16
16
|
className: "flex min-h-0 flex-1 flex-col",
|
|
17
|
-
style:
|
|
17
|
+
style: n({
|
|
18
18
|
"--el-header-border-color": m?.colors?.headerBorderColor,
|
|
19
19
|
"--el-sidebar-border-color": m?.colors?.sidebarBorderColor
|
|
20
20
|
}),
|
|
21
21
|
children: [
|
|
22
|
-
/* @__PURE__ */
|
|
22
|
+
/* @__PURE__ */ s("span", {
|
|
23
23
|
role: "status",
|
|
24
24
|
"aria-live": "polite",
|
|
25
25
|
className: "sr-only",
|
|
26
|
-
id:
|
|
27
|
-
children:
|
|
26
|
+
id: ee,
|
|
27
|
+
children: _
|
|
28
28
|
}),
|
|
29
|
-
/* @__PURE__ */
|
|
30
|
-
className:
|
|
31
|
-
children: [/* @__PURE__ */
|
|
29
|
+
/* @__PURE__ */ c("div", {
|
|
30
|
+
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),
|
|
31
|
+
children: [/* @__PURE__ */ c("div", {
|
|
32
32
|
className: "flex min-w-0 flex-1 items-center gap-2",
|
|
33
|
-
children: [/* @__PURE__ */
|
|
34
|
-
icon: /* @__PURE__ */
|
|
35
|
-
size:
|
|
36
|
-
stroke:
|
|
33
|
+
children: [/* @__PURE__ */ s(g, {
|
|
34
|
+
icon: /* @__PURE__ */ s(x, {
|
|
35
|
+
size: d.LG,
|
|
36
|
+
stroke: f,
|
|
37
37
|
"aria-hidden": !0,
|
|
38
38
|
className: "rtl:scale-x-[-1]"
|
|
39
39
|
}),
|
|
40
|
-
"aria-label":
|
|
41
|
-
onClick:
|
|
42
|
-
}), /* @__PURE__ */
|
|
40
|
+
"aria-label": r,
|
|
41
|
+
onClick: t
|
|
42
|
+
}), /* @__PURE__ */ s("h1", {
|
|
43
43
|
className: "dial-h2-text min-w-0 truncate",
|
|
44
44
|
children: e
|
|
45
45
|
})]
|
|
46
|
-
}),
|
|
46
|
+
}), a != null && /* @__PURE__ */ s("div", {
|
|
47
47
|
className: "hidden shrink-0 items-center gap-2 desktop:flex",
|
|
48
|
-
children:
|
|
48
|
+
children: a
|
|
49
49
|
})]
|
|
50
50
|
}),
|
|
51
|
-
/* @__PURE__ */
|
|
51
|
+
/* @__PURE__ */ c("div", {
|
|
52
52
|
className: "flex flex-1 flex-col overflow-y-auto desktop:flex-row desktop:overflow-hidden",
|
|
53
|
-
children: [/* @__PURE__ */
|
|
54
|
-
className:
|
|
55
|
-
children:
|
|
56
|
-
}),
|
|
53
|
+
children: [/* @__PURE__ */ s("div", {
|
|
54
|
+
className: i(l == null ? "desktop:flex-1" : "desktop:w-[360px] desktop:shrink-0 desktop:overflow-y-auto desktop:border-e", "desktop:overflow-y-auto", l == null ? void 0 : P.sidebarBorder),
|
|
55
|
+
children: o
|
|
56
|
+
}), l != null && /* @__PURE__ */ s("div", {
|
|
57
57
|
className: "desktop:flex-1 desktop:overflow-y-auto",
|
|
58
|
-
children:
|
|
58
|
+
children: l
|
|
59
59
|
})]
|
|
60
60
|
}),
|
|
61
|
-
|
|
62
|
-
className:
|
|
63
|
-
children:
|
|
61
|
+
a != null && /* @__PURE__ */ s("div", {
|
|
62
|
+
className: i("flex shrink-0 flex-row-reverse items-center gap-2 border-t px-4 py-2 desktop:hidden [&>*]:flex-1", P.footerBorder),
|
|
63
|
+
children: a
|
|
64
64
|
})
|
|
65
65
|
]
|
|
66
66
|
});
|
|
67
|
-
},
|
|
68
|
-
let [t, n] =
|
|
67
|
+
}, I = (e) => !!e.dataTransfer?.types.includes("Files"), se = (e) => {
|
|
68
|
+
let [t, n] = j(!1), r = A(0);
|
|
69
69
|
return {
|
|
70
70
|
isDragActive: t,
|
|
71
71
|
dropZoneHandlers: {
|
|
72
|
-
onDragEnter:
|
|
73
|
-
|
|
72
|
+
onDragEnter: E((e) => {
|
|
73
|
+
I(e) && (e.preventDefault(), r.current += 1, n(!0));
|
|
74
74
|
}, []),
|
|
75
|
-
onDragLeave:
|
|
76
|
-
|
|
75
|
+
onDragLeave: E((e) => {
|
|
76
|
+
I(e) && (--r.current, r.current <= 0 && (r.current = 0, n(!1)));
|
|
77
77
|
}, []),
|
|
78
|
-
onDragOver:
|
|
79
|
-
|
|
78
|
+
onDragOver: E((e) => {
|
|
79
|
+
I(e) && e.preventDefault();
|
|
80
80
|
}, []),
|
|
81
|
-
onDrop:
|
|
82
|
-
if (!
|
|
81
|
+
onDrop: E((t) => {
|
|
82
|
+
if (!I(t)) return;
|
|
83
83
|
t.preventDefault(), r.current = 0, n(!1);
|
|
84
84
|
let i = Array.from(t.dataTransfer?.files ?? []);
|
|
85
85
|
i.length > 0 && e(i);
|
|
86
86
|
}, [e])
|
|
87
87
|
}
|
|
88
88
|
};
|
|
89
|
-
},
|
|
89
|
+
}, L = "SKILL.md", R = /* @__PURE__ */ function(e) {
|
|
90
90
|
return e.File = "file", e.Folder = "folder", e;
|
|
91
|
-
}({}),
|
|
91
|
+
}({}), z = (e) => {
|
|
92
92
|
let t = e.lastIndexOf("/");
|
|
93
93
|
return t === -1 ? null : e.slice(0, t);
|
|
94
|
-
},
|
|
94
|
+
}, B = (e) => {
|
|
95
95
|
let t = e.lastIndexOf("/");
|
|
96
96
|
return t === -1 ? e : e.slice(t + 1);
|
|
97
97
|
}, ce = (e) => {
|
|
@@ -100,30 +100,30 @@ var M = {
|
|
|
100
100
|
if (n) return n;
|
|
101
101
|
let r = {
|
|
102
102
|
path: e,
|
|
103
|
-
name:
|
|
104
|
-
nodeType:
|
|
105
|
-
parentPath:
|
|
103
|
+
name: B(e),
|
|
104
|
+
nodeType: M.FOLDER,
|
|
105
|
+
parentPath: z(e),
|
|
106
106
|
folderId: e,
|
|
107
107
|
items: []
|
|
108
108
|
};
|
|
109
109
|
return t.set(e, r), r;
|
|
110
110
|
};
|
|
111
111
|
for (let r of e) {
|
|
112
|
-
if (r.kind ===
|
|
112
|
+
if (r.kind === R.Folder) {
|
|
113
113
|
n(r.path);
|
|
114
114
|
continue;
|
|
115
115
|
}
|
|
116
116
|
t.set(r.path, {
|
|
117
117
|
path: r.path,
|
|
118
118
|
name: r.name,
|
|
119
|
-
nodeType:
|
|
120
|
-
parentPath:
|
|
121
|
-
folderId:
|
|
119
|
+
nodeType: M.ITEM,
|
|
120
|
+
parentPath: z(r.path),
|
|
121
|
+
folderId: z(r.path) ?? ""
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
124
|
for (let t of [...e]) {
|
|
125
|
-
let e =
|
|
126
|
-
for (; e != null;) n(e), e =
|
|
125
|
+
let e = z(t.path);
|
|
126
|
+
for (; e != null;) n(e), e = z(e);
|
|
127
127
|
}
|
|
128
128
|
let r = [];
|
|
129
129
|
for (let e of t.values()) {
|
|
@@ -138,383 +138,383 @@ var M = {
|
|
|
138
138
|
}, le = ({ isVisible: e, labels: t }) => {
|
|
139
139
|
if (!e) return null;
|
|
140
140
|
let n = t ?? {};
|
|
141
|
-
return /* @__PURE__ */
|
|
141
|
+
return /* @__PURE__ */ s("div", {
|
|
142
142
|
role: "status",
|
|
143
143
|
"aria-live": "polite",
|
|
144
|
-
className:
|
|
145
|
-
children: /* @__PURE__ */
|
|
144
|
+
className: i("pointer-events-none absolute inset-0 z-[100] flex items-center justify-center backdrop-blur-sm"),
|
|
145
|
+
children: /* @__PURE__ */ c("div", {
|
|
146
146
|
className: "flex flex-col items-center text-center",
|
|
147
147
|
children: [
|
|
148
|
-
/* @__PURE__ */
|
|
148
|
+
/* @__PURE__ */ s(C, {
|
|
149
149
|
size: 100,
|
|
150
150
|
className: "text-accent-primary",
|
|
151
151
|
"aria-hidden": !0,
|
|
152
|
-
stroke:
|
|
152
|
+
stroke: f
|
|
153
153
|
}),
|
|
154
|
-
/* @__PURE__ */
|
|
154
|
+
/* @__PURE__ */ s("span", {
|
|
155
155
|
className: "dial-h3-text mt-5",
|
|
156
156
|
children: n.dropOverlayTitle ?? "Upload files"
|
|
157
157
|
}),
|
|
158
|
-
/* @__PURE__ */
|
|
158
|
+
/* @__PURE__ */ s("span", {
|
|
159
159
|
className: "dial-small-text mt-4",
|
|
160
160
|
children: n.dropOverlaySubtitle ?? "Drop files here to add them to this skill"
|
|
161
161
|
})
|
|
162
162
|
]
|
|
163
163
|
})
|
|
164
164
|
});
|
|
165
|
-
},
|
|
165
|
+
}, V = /* @__PURE__ */ function(e) {
|
|
166
166
|
return e.SupportingFile = "supporting-file", e.Manifest = "manifest", e;
|
|
167
|
-
}({}),
|
|
167
|
+
}({}), H = /* @__PURE__ */ function(e) {
|
|
168
168
|
return e.Valid = "valid", e.Invalid = "invalid", e;
|
|
169
|
-
}({}),
|
|
170
|
-
let l =
|
|
169
|
+
}({}), ue = (e) => (e.webkitRelativePath || e.name).replace(/\\/g, "/"), U = 0, W = () => `skill-file-candidate-${++U}`, de = ({ isOpen: e, onClose: t, fileActions: n, initialFiles: i, labels: a }) => {
|
|
170
|
+
let l = a ?? {}, [u, d] = j([]), [p, _] = j(/* @__PURE__ */ new Map()), [v, b] = j([]), [x, S] = j(!1), [C, w] = j(), [T, E] = j(!1), k = O(), A = (e) => {
|
|
171
171
|
let t = e.map((e) => ({
|
|
172
|
-
id:
|
|
172
|
+
id: W(),
|
|
173
173
|
file: e,
|
|
174
|
-
path:
|
|
174
|
+
path: ue(e)
|
|
175
175
|
}));
|
|
176
|
-
w(void 0),
|
|
177
|
-
},
|
|
178
|
-
|
|
176
|
+
w(void 0), d((e) => [...e, ...t]);
|
|
177
|
+
}, M = (e) => {
|
|
178
|
+
d((t) => t.filter((t) => t.id !== e));
|
|
179
179
|
};
|
|
180
|
-
|
|
181
|
-
e && (
|
|
182
|
-
id:
|
|
180
|
+
D(() => {
|
|
181
|
+
e && (d((i ?? []).map((e) => ({
|
|
182
|
+
id: W(),
|
|
183
183
|
file: e,
|
|
184
|
-
path:
|
|
185
|
-
}))),
|
|
186
|
-
}, [e]),
|
|
184
|
+
path: ue(e)
|
|
185
|
+
}))), _(/* @__PURE__ */ new Map()), b([]), w(void 0));
|
|
186
|
+
}, [e]), D(() => {
|
|
187
187
|
if (!e) return;
|
|
188
188
|
let t = !1;
|
|
189
|
-
if (
|
|
190
|
-
|
|
189
|
+
if (u.length === 0) {
|
|
190
|
+
_(/* @__PURE__ */ new Map()), b([]);
|
|
191
191
|
return;
|
|
192
192
|
}
|
|
193
|
-
return
|
|
194
|
-
t || (
|
|
193
|
+
return S(!0), n.validateBatch(u).then(({ results: e, batchErrors: n }) => {
|
|
194
|
+
t || (_(new Map(e.map((e) => [e.candidateId, e]))), b(n.map((e) => e.message)));
|
|
195
195
|
}).finally(() => {
|
|
196
|
-
t ||
|
|
196
|
+
t || S(!1);
|
|
197
197
|
}), () => {
|
|
198
198
|
t = !0;
|
|
199
199
|
};
|
|
200
|
-
}, [
|
|
201
|
-
let
|
|
202
|
-
|
|
200
|
+
}, [u, e]);
|
|
201
|
+
let oe = u.some((e) => p.get(e.id)?.status === H.Invalid), N = u.length > 0 && u.every((e) => p.get(e.id)?.status === H.Invalid), P = u.length > 0 && !oe && v.length === 0 && !x && !T, F = async () => {
|
|
202
|
+
E(!0), w(void 0);
|
|
203
203
|
try {
|
|
204
|
-
let { results: e, batchErrors:
|
|
205
|
-
if (
|
|
206
|
-
let a = await
|
|
204
|
+
let { results: e, batchErrors: r } = await n.validateBatch(u), i = new Map(e.map((e) => [e.candidateId, e]));
|
|
205
|
+
if (_(i), b(r.map((e) => e.message)), u.some((e) => i.get(e.id)?.status === H.Invalid) || r.length > 0) return;
|
|
206
|
+
let a = await n.commitBatch(u);
|
|
207
207
|
if (a.error) {
|
|
208
208
|
w(a.error);
|
|
209
209
|
return;
|
|
210
210
|
}
|
|
211
211
|
t();
|
|
212
212
|
} finally {
|
|
213
|
-
|
|
213
|
+
E(!1);
|
|
214
214
|
}
|
|
215
215
|
};
|
|
216
|
-
return /* @__PURE__ */
|
|
216
|
+
return /* @__PURE__ */ s(te, {
|
|
217
217
|
open: e,
|
|
218
218
|
header: l.uploadDialogTitle ?? "Upload files from device",
|
|
219
|
-
size:
|
|
219
|
+
size: ne.Sm,
|
|
220
220
|
closeAriaLabel: l.uploadDialogCloseAriaLabel ?? "Close",
|
|
221
221
|
onClose: t,
|
|
222
|
-
footer: /* @__PURE__ */
|
|
222
|
+
footer: /* @__PURE__ */ c("div", {
|
|
223
223
|
className: "flex min-h-[44px] items-center justify-end gap-2 px-6 py-4",
|
|
224
|
-
children: [/* @__PURE__ */
|
|
224
|
+
children: [/* @__PURE__ */ s(ee, {
|
|
225
225
|
label: l.uploadCancelLabel ?? "Cancel",
|
|
226
226
|
onClick: t
|
|
227
|
-
}), /* @__PURE__ */
|
|
227
|
+
}), /* @__PURE__ */ s(re, {
|
|
228
228
|
label: l.uploadConfirmLabel ?? "Add",
|
|
229
|
-
iconBefore:
|
|
229
|
+
iconBefore: T ? /* @__PURE__ */ s(y, {
|
|
230
230
|
size: 16,
|
|
231
231
|
ariaLabel: ""
|
|
232
232
|
}) : void 0,
|
|
233
|
-
onClick: () => void
|
|
233
|
+
onClick: () => void F(),
|
|
234
234
|
disabled: !P
|
|
235
235
|
})]
|
|
236
236
|
}),
|
|
237
|
-
children: /* @__PURE__ */
|
|
237
|
+
children: /* @__PURE__ */ c("div", {
|
|
238
238
|
className: "flex flex-col gap-4 px-6 py-4",
|
|
239
239
|
children: [
|
|
240
|
-
/* @__PURE__ */
|
|
241
|
-
label: /* @__PURE__ */ o
|
|
240
|
+
/* @__PURE__ */ s(h, {
|
|
241
|
+
label: /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s("span", {
|
|
242
242
|
className: "desktop:hidden",
|
|
243
243
|
children: l.uploadDropZoneMobileLabel ?? "Click here to upload"
|
|
244
|
-
}), /* @__PURE__ */
|
|
244
|
+
}), /* @__PURE__ */ s("span", {
|
|
245
245
|
className: "hidden desktop:inline",
|
|
246
246
|
children: l.uploadDropZoneLabel ?? "Drag and drop it or click here to upload"
|
|
247
247
|
})] }),
|
|
248
248
|
ariaLabel: l.uploadDropZoneAriaLabel ?? "Upload files",
|
|
249
249
|
multiple: !0,
|
|
250
250
|
className: N ? "border-error hover:border-error" : void 0,
|
|
251
|
-
onChange:
|
|
251
|
+
onChange: A
|
|
252
252
|
}),
|
|
253
|
-
/* @__PURE__ */
|
|
253
|
+
/* @__PURE__ */ s("span", {
|
|
254
254
|
role: "status",
|
|
255
255
|
"aria-live": "polite",
|
|
256
256
|
className: "sr-only",
|
|
257
|
-
id:
|
|
258
|
-
children:
|
|
257
|
+
id: k,
|
|
258
|
+
children: v.map((e) => `${l.uploadBatchErrorAriaPrefix ?? "Upload error: "}${e}`).join(" ")
|
|
259
259
|
}),
|
|
260
|
-
|
|
261
|
-
|
|
260
|
+
v.map((e) => /* @__PURE__ */ s(m, { text: e }, e)),
|
|
261
|
+
u.length > 0 && /* @__PURE__ */ s("ul", {
|
|
262
262
|
className: "flex flex-col gap-2",
|
|
263
|
-
children:
|
|
264
|
-
let t =
|
|
265
|
-
return /* @__PURE__ */
|
|
263
|
+
children: u.map((e) => {
|
|
264
|
+
let t = p.get(e.id), n = t?.kind === V.Manifest, i = t?.status === H.Invalid;
|
|
265
|
+
return /* @__PURE__ */ c("li", {
|
|
266
266
|
className: "flex items-center gap-2 rounded-lg border border-tertiary p-2",
|
|
267
267
|
children: [
|
|
268
|
-
/* @__PURE__ */
|
|
268
|
+
/* @__PURE__ */ s(ie, {
|
|
269
269
|
size: 20,
|
|
270
270
|
"aria-hidden": !0,
|
|
271
|
-
stroke:
|
|
271
|
+
stroke: f
|
|
272
272
|
}),
|
|
273
|
-
/* @__PURE__ */
|
|
273
|
+
/* @__PURE__ */ c("div", {
|
|
274
274
|
className: "flex min-w-0 flex-1 flex-col",
|
|
275
275
|
children: [
|
|
276
|
-
/* @__PURE__ */
|
|
276
|
+
/* @__PURE__ */ s("span", {
|
|
277
277
|
className: "dial-small-text truncate",
|
|
278
278
|
children: e.path
|
|
279
279
|
}),
|
|
280
|
-
/* @__PURE__ */
|
|
280
|
+
/* @__PURE__ */ s("span", {
|
|
281
281
|
className: "dial-tiny-text text-secondary",
|
|
282
|
-
children:
|
|
282
|
+
children: r(e.file.size)
|
|
283
283
|
}),
|
|
284
|
-
i && t?.error && /* @__PURE__ */
|
|
285
|
-
|
|
284
|
+
i && t?.error && /* @__PURE__ */ s(m, { text: t.error }),
|
|
285
|
+
n && !i && /* @__PURE__ */ s("span", {
|
|
286
286
|
className: "dial-tiny-text text-secondary",
|
|
287
287
|
children: l.uploadManifestRowNote ?? "Will replace this Skill's name, description, and instructions"
|
|
288
288
|
})
|
|
289
289
|
]
|
|
290
290
|
}),
|
|
291
|
-
/* @__PURE__ */
|
|
292
|
-
icon: /* @__PURE__ */
|
|
291
|
+
/* @__PURE__ */ s(g, {
|
|
292
|
+
icon: /* @__PURE__ */ s(ae, {
|
|
293
293
|
size: 16,
|
|
294
294
|
"aria-hidden": !0,
|
|
295
|
-
stroke:
|
|
295
|
+
stroke: f
|
|
296
296
|
}),
|
|
297
297
|
"aria-label": l.uploadRemoveCandidateLabel?.(e.path) ?? `Remove ${e.path}`,
|
|
298
|
-
onClick: () =>
|
|
298
|
+
onClick: () => M(e.id)
|
|
299
299
|
})
|
|
300
300
|
]
|
|
301
301
|
}, e.id);
|
|
302
302
|
})
|
|
303
303
|
}),
|
|
304
|
-
C && /* @__PURE__ */
|
|
304
|
+
C && /* @__PURE__ */ s(m, { text: C })
|
|
305
305
|
]
|
|
306
306
|
})
|
|
307
307
|
});
|
|
308
|
-
},
|
|
308
|
+
}, fe = {
|
|
309
309
|
title: "_title_65glc_1",
|
|
310
310
|
helperText: "_helperText_65glc_5"
|
|
311
|
-
},
|
|
312
|
-
let { MarkdownEditor: e } = await
|
|
311
|
+
}, pe = T(async () => {
|
|
312
|
+
let { MarkdownEditor: e } = await N();
|
|
313
313
|
return { default: e };
|
|
314
|
-
}),
|
|
315
|
-
let [K, q] =
|
|
316
|
-
name:
|
|
317
|
-
description:
|
|
318
|
-
instructions:
|
|
319
|
-
}),
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
name:
|
|
323
|
-
description:
|
|
324
|
-
instructions:
|
|
325
|
-
}),
|
|
326
|
-
}, [
|
|
327
|
-
let
|
|
328
|
-
|
|
329
|
-
if (
|
|
314
|
+
}), G = ({ initialValues: r, files: h, selectedPath: g, onSelectedPathChange: te, expandedPaths: ne, onExpandedPathsChange: x, isLoading: ie = !1, hasLoadError: C = !1, isSubmitting: T = !1, errors: O, submitError: M, conflict: N, onReloadLatest: P, isNameReadOnly: I = !1, onDirtyChange: z, fileActions: B, supportingFileContent: V, onSubmit: H, onCancel: ue, onBack: U, backAriaLabel: W, title: G, onRetry: me, labels: he, styles: ge, dir: _e, instructionsEditorTheme: ve = p.light }) => {
|
|
315
|
+
let [K, q] = j({
|
|
316
|
+
name: r?.name ?? "",
|
|
317
|
+
description: r?.description ?? "",
|
|
318
|
+
instructions: r?.instructions ?? ""
|
|
319
|
+
}), ye = a(), be = A(r), xe = be.current !== r, Se = A(h);
|
|
320
|
+
D(() => {
|
|
321
|
+
be.current = r, q({
|
|
322
|
+
name: r?.name ?? "",
|
|
323
|
+
description: r?.description ?? "",
|
|
324
|
+
instructions: r?.instructions ?? ""
|
|
325
|
+
}), Se.current = h;
|
|
326
|
+
}, [r]);
|
|
327
|
+
let Ce = (e) => JSON.stringify([...e].sort((e, t) => e.path.localeCompare(t.path))), we = A(!1);
|
|
328
|
+
D(() => {
|
|
329
|
+
if (xe) return;
|
|
330
330
|
let e = {
|
|
331
|
-
name:
|
|
332
|
-
description:
|
|
333
|
-
instructions:
|
|
334
|
-
}, t = JSON.stringify(K) !== JSON.stringify(e) ||
|
|
335
|
-
t !==
|
|
331
|
+
name: r?.name ?? "",
|
|
332
|
+
description: r?.description ?? "",
|
|
333
|
+
instructions: r?.instructions ?? ""
|
|
334
|
+
}, t = JSON.stringify(K) !== JSON.stringify(e) || Ce(h) !== Ce(Se.current);
|
|
335
|
+
t !== we.current && (we.current = t, z?.(t));
|
|
336
336
|
}, [
|
|
337
337
|
K,
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
338
|
+
h,
|
|
339
|
+
r,
|
|
340
|
+
xe,
|
|
341
|
+
z
|
|
342
342
|
]);
|
|
343
|
-
let [
|
|
344
|
-
|
|
345
|
-
}, [
|
|
343
|
+
let [Te, Ee] = j(L), J = g ?? Te, Y = E((e) => {
|
|
344
|
+
Ee(e), te?.(e);
|
|
345
|
+
}, [te]), [De, Oe] = j([]), ke = ne ?? De, Ae = k(() => new Set(ke), [ke]), je = E((e) => {
|
|
346
346
|
let t = [...e];
|
|
347
|
-
|
|
348
|
-
}, [x]), [X,
|
|
349
|
-
X || (
|
|
350
|
-
}, [X])), Z =
|
|
347
|
+
Oe(t), x?.(t);
|
|
348
|
+
}, [x]), [X, Me] = j(!1), [Ne, Pe] = j(), [Fe, Ie] = j(!1), { isDragActive: Le, dropZoneHandlers: Re } = se(E((e) => {
|
|
349
|
+
X || (Pe(e), Me(!0));
|
|
350
|
+
}, [X])), Z = he ?? {}, Q = ge?.colors, ze = ge?.typography ?? {}, Be = ze.titleClassName ?? "dial-body-semi-text", Ve = ze.helperTextClassName ?? "dial-tiny-semi-text", He = ze.removeIconClassName ?? "text-secondary", Ue = n({
|
|
351
351
|
"--se-title-color": Q?.title,
|
|
352
352
|
"--se-helper-text-color": Q?.helperText
|
|
353
|
-
}),
|
|
353
|
+
}), We = Q?.border ? { colors: {
|
|
354
354
|
headerBorderColor: Q.border,
|
|
355
355
|
sidebarBorderColor: Q.border
|
|
356
|
-
} } : void 0,
|
|
357
|
-
path:
|
|
358
|
-
name:
|
|
359
|
-
kind:
|
|
360
|
-
}, ...
|
|
356
|
+
} } : void 0, Ge = k(() => ce([{
|
|
357
|
+
path: L,
|
|
358
|
+
name: L,
|
|
359
|
+
kind: R.File
|
|
360
|
+
}, ...h]), [h]), $ = k(() => h.find((e) => e.path === J), [h, J]), Ke = E((e) => {
|
|
361
361
|
Y(e.path);
|
|
362
|
-
}, [Y]),
|
|
363
|
-
|
|
362
|
+
}, [Y]), qe = E((e) => {
|
|
363
|
+
B.onRemoveNode(e), J === e && Y(L);
|
|
364
364
|
}, [
|
|
365
|
-
|
|
365
|
+
B,
|
|
366
366
|
J,
|
|
367
367
|
Y
|
|
368
|
-
]),
|
|
368
|
+
]), Je = E((e) => e.path === "SKILL.md" ? [] : [{
|
|
369
369
|
key: "remove",
|
|
370
370
|
label: Z.removeLabel ?? "Remove",
|
|
371
|
-
icon: /* @__PURE__ */
|
|
372
|
-
size:
|
|
373
|
-
className:
|
|
371
|
+
icon: /* @__PURE__ */ s(ae, {
|
|
372
|
+
size: d.SM,
|
|
373
|
+
className: He,
|
|
374
374
|
"aria-hidden": !0,
|
|
375
|
-
stroke:
|
|
375
|
+
stroke: f
|
|
376
376
|
}),
|
|
377
|
-
onClick: () =>
|
|
377
|
+
onClick: () => qe(e.path)
|
|
378
378
|
}], [
|
|
379
379
|
Z.removeLabel,
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
]),
|
|
380
|
+
He,
|
|
381
|
+
qe
|
|
382
|
+
]), Ye = /* @__PURE__ */ c("div", {
|
|
383
383
|
className: "flex flex-col gap-2 desktop:gap-5",
|
|
384
|
-
children: [/* @__PURE__ */
|
|
384
|
+
children: [/* @__PURE__ */ c("div", {
|
|
385
385
|
className: "flex items-center justify-between",
|
|
386
|
-
children: [/* @__PURE__ */
|
|
387
|
-
className:
|
|
386
|
+
children: [/* @__PURE__ */ s("span", {
|
|
387
|
+
className: i(fe.title, Be),
|
|
388
388
|
children: Z.filesHeading ?? "Files"
|
|
389
|
-
}), /* @__PURE__ */
|
|
389
|
+
}), /* @__PURE__ */ s(v, {
|
|
390
390
|
label: Z.addUploadLabel ?? "Upload from device",
|
|
391
|
-
iconBefore: /* @__PURE__ */
|
|
391
|
+
iconBefore: /* @__PURE__ */ s(S, {
|
|
392
392
|
size: 16,
|
|
393
393
|
"aria-hidden": !0,
|
|
394
|
-
stroke:
|
|
394
|
+
stroke: f
|
|
395
395
|
}),
|
|
396
396
|
onClick: () => {
|
|
397
|
-
|
|
397
|
+
Pe(void 0), Me(!0);
|
|
398
398
|
}
|
|
399
399
|
})]
|
|
400
|
-
}), /* @__PURE__ */
|
|
400
|
+
}), /* @__PURE__ */ s("div", {
|
|
401
401
|
role: "tree",
|
|
402
402
|
"aria-label": Z.filesTreeAriaLabel ?? "Skill files",
|
|
403
|
-
children: /* @__PURE__ */
|
|
404
|
-
items:
|
|
403
|
+
children: /* @__PURE__ */ s(oe, {
|
|
404
|
+
items: Ge,
|
|
405
405
|
showFiles: !0,
|
|
406
406
|
selectedPath: J,
|
|
407
|
-
expandedPaths:
|
|
408
|
-
onExpandedPathsChange:
|
|
409
|
-
onItemClick:
|
|
410
|
-
getContextMenuItems:
|
|
407
|
+
expandedPaths: Ae,
|
|
408
|
+
onExpandedPathsChange: je,
|
|
409
|
+
onItemClick: Ke,
|
|
410
|
+
getContextMenuItems: Je,
|
|
411
411
|
rootItemPath: ""
|
|
412
412
|
})
|
|
413
413
|
})]
|
|
414
|
-
}),
|
|
414
|
+
}), Xe = /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s(v, {
|
|
415
415
|
label: Z.cancelLabel ?? "Cancel",
|
|
416
|
-
onClick:
|
|
417
|
-
disabled:
|
|
418
|
-
}), /* @__PURE__ */
|
|
416
|
+
onClick: ue,
|
|
417
|
+
disabled: T
|
|
418
|
+
}), /* @__PURE__ */ s(re, {
|
|
419
419
|
label: Z.createLabel ?? "Create",
|
|
420
|
-
iconBefore:
|
|
420
|
+
iconBefore: T ? /* @__PURE__ */ s(y, {
|
|
421
421
|
size: 16,
|
|
422
422
|
ariaLabel: ""
|
|
423
423
|
}) : void 0,
|
|
424
|
-
onClick: () =>
|
|
425
|
-
disabled:
|
|
424
|
+
onClick: () => H(K),
|
|
425
|
+
disabled: T
|
|
426
426
|
})] });
|
|
427
|
-
return
|
|
428
|
-
dir:
|
|
427
|
+
return ie ? /* @__PURE__ */ s("div", {
|
|
428
|
+
dir: _e,
|
|
429
429
|
className: "relative flex min-h-0 flex-1 flex-col",
|
|
430
|
-
children: /* @__PURE__ */
|
|
431
|
-
title:
|
|
432
|
-
onBack:
|
|
433
|
-
backAriaLabel:
|
|
434
|
-
actions:
|
|
430
|
+
children: /* @__PURE__ */ s(F, {
|
|
431
|
+
title: G,
|
|
432
|
+
onBack: U,
|
|
433
|
+
backAriaLabel: W,
|
|
434
|
+
actions: Xe,
|
|
435
435
|
isSaving: !1,
|
|
436
436
|
labels: { savingStatusLabel: Z.savingStatusLabel },
|
|
437
|
-
styles:
|
|
438
|
-
leftContent: /* @__PURE__ */
|
|
437
|
+
styles: We,
|
|
438
|
+
leftContent: /* @__PURE__ */ s("div", {
|
|
439
439
|
role: "status",
|
|
440
440
|
"aria-label": Z.loadingAriaLabel ?? "Loading skill",
|
|
441
441
|
className: "flex flex-1 items-center justify-center p-8",
|
|
442
|
-
children: /* @__PURE__ */
|
|
442
|
+
children: /* @__PURE__ */ s(y, {})
|
|
443
443
|
})
|
|
444
444
|
})
|
|
445
|
-
}) :
|
|
446
|
-
dir:
|
|
445
|
+
}) : C ? /* @__PURE__ */ s("div", {
|
|
446
|
+
dir: _e,
|
|
447
447
|
className: "relative flex min-h-0 flex-1 flex-col",
|
|
448
|
-
children: /* @__PURE__ */
|
|
449
|
-
title:
|
|
450
|
-
onBack:
|
|
451
|
-
backAriaLabel:
|
|
452
|
-
actions:
|
|
448
|
+
children: /* @__PURE__ */ s(F, {
|
|
449
|
+
title: G,
|
|
450
|
+
onBack: U,
|
|
451
|
+
backAriaLabel: W,
|
|
452
|
+
actions: Xe,
|
|
453
453
|
isSaving: !1,
|
|
454
454
|
labels: { savingStatusLabel: Z.savingStatusLabel },
|
|
455
|
-
styles:
|
|
456
|
-
leftContent: /* @__PURE__ */
|
|
455
|
+
styles: We,
|
|
456
|
+
leftContent: /* @__PURE__ */ c("div", {
|
|
457
457
|
role: "alert",
|
|
458
458
|
className: "flex flex-col items-center gap-4 p-8",
|
|
459
|
-
children: [/* @__PURE__ */
|
|
459
|
+
children: [/* @__PURE__ */ s(m, { text: Z.loadErrorMessage ?? "Couldn't load this skill. Please try again." }), /* @__PURE__ */ s(re, {
|
|
460
460
|
label: Z.retryLabel ?? "Retry",
|
|
461
|
-
onClick:
|
|
461
|
+
onClick: me
|
|
462
462
|
})]
|
|
463
463
|
})
|
|
464
464
|
})
|
|
465
|
-
}) : /* @__PURE__ */
|
|
466
|
-
dir:
|
|
465
|
+
}) : /* @__PURE__ */ c("div", {
|
|
466
|
+
dir: _e,
|
|
467
467
|
className: "relative flex min-h-0 flex-1 flex-col",
|
|
468
|
-
style:
|
|
469
|
-
...
|
|
468
|
+
style: Ue,
|
|
469
|
+
...Re,
|
|
470
470
|
children: [
|
|
471
|
-
/* @__PURE__ */
|
|
472
|
-
isVisible:
|
|
473
|
-
labels:
|
|
471
|
+
/* @__PURE__ */ s(le, {
|
|
472
|
+
isVisible: Le && !X,
|
|
473
|
+
labels: he
|
|
474
474
|
}),
|
|
475
|
-
/* @__PURE__ */
|
|
476
|
-
title:
|
|
477
|
-
onBack:
|
|
478
|
-
backAriaLabel:
|
|
479
|
-
actions:
|
|
480
|
-
isSaving:
|
|
475
|
+
/* @__PURE__ */ s(F, {
|
|
476
|
+
title: G,
|
|
477
|
+
onBack: U,
|
|
478
|
+
backAriaLabel: W,
|
|
479
|
+
actions: Xe,
|
|
480
|
+
isSaving: T,
|
|
481
481
|
labels: { savingStatusLabel: Z.savingStatusLabel },
|
|
482
|
-
styles:
|
|
483
|
-
leftContent: /* @__PURE__ */ o
|
|
482
|
+
styles: We,
|
|
483
|
+
leftContent: /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s("div", {
|
|
484
484
|
className: "px-4 py-4 desktop:hidden",
|
|
485
|
-
children: /* @__PURE__ */
|
|
485
|
+
children: /* @__PURE__ */ s(l, {
|
|
486
486
|
title: Z.editingFileLabel ?? "Editing file",
|
|
487
487
|
description: $?.name ?? "SKILL.md",
|
|
488
|
-
expanded:
|
|
489
|
-
onToggle:
|
|
488
|
+
expanded: Fe,
|
|
489
|
+
onToggle: Ie,
|
|
490
490
|
ariaLabel: Z.editingFileLabel ?? "Editing file",
|
|
491
|
-
children:
|
|
491
|
+
children: Ye
|
|
492
492
|
})
|
|
493
|
-
}), /* @__PURE__ */
|
|
493
|
+
}), /* @__PURE__ */ s("div", {
|
|
494
494
|
className: "hidden px-8 py-6 desktop:block",
|
|
495
|
-
children:
|
|
495
|
+
children: Ye
|
|
496
496
|
})] }),
|
|
497
|
-
rightContent: /* @__PURE__ */
|
|
497
|
+
rightContent: /* @__PURE__ */ c("div", {
|
|
498
498
|
className: "flex flex-1 flex-col gap-4 px-4 py-6 desktop:gap-5 desktop:px-8",
|
|
499
499
|
children: [
|
|
500
|
-
|
|
500
|
+
M != null && /* @__PURE__ */ s("div", {
|
|
501
501
|
role: "alert",
|
|
502
|
-
children: /* @__PURE__ */
|
|
502
|
+
children: /* @__PURE__ */ s(m, { text: M })
|
|
503
503
|
}),
|
|
504
|
-
|
|
504
|
+
N != null && /* @__PURE__ */ c("div", {
|
|
505
505
|
role: "alert",
|
|
506
506
|
className: "flex items-center gap-2",
|
|
507
|
-
children: [/* @__PURE__ */
|
|
507
|
+
children: [/* @__PURE__ */ s(m, { text: N.message }), /* @__PURE__ */ s(ee, {
|
|
508
508
|
label: Z.reloadLatestLabel ?? "Reload latest",
|
|
509
|
-
onClick:
|
|
509
|
+
onClick: P
|
|
510
510
|
})]
|
|
511
511
|
}),
|
|
512
|
-
/* @__PURE__ */
|
|
513
|
-
className:
|
|
514
|
-
children: J === "SKILL.md" ?
|
|
512
|
+
/* @__PURE__ */ s("h2", {
|
|
513
|
+
className: i(fe.title, Be),
|
|
514
|
+
children: J === "SKILL.md" ? L : Z.selectedFileHeading?.($?.name ?? J) ?? $?.name ?? J
|
|
515
515
|
}),
|
|
516
|
-
J === "SKILL.md" ? /* @__PURE__ */ o
|
|
517
|
-
/* @__PURE__ */
|
|
516
|
+
J === "SKILL.md" ? /* @__PURE__ */ c(o, { children: [
|
|
517
|
+
/* @__PURE__ */ s(_, {
|
|
518
518
|
labelProps: {
|
|
519
519
|
label: Z.nameLabel ?? "Name",
|
|
520
520
|
required: !0
|
|
@@ -525,12 +525,12 @@ var M = {
|
|
|
525
525
|
name: e ?? ""
|
|
526
526
|
})),
|
|
527
527
|
placeholder: Z.namePlaceholder ?? "good-morning-breakfast",
|
|
528
|
-
caption:
|
|
529
|
-
error:
|
|
530
|
-
invalid: !!
|
|
531
|
-
disabled:
|
|
528
|
+
caption: O?.name ? void 0 : Z.nameCaption ?? "Lowercase letters and hyphens only, no spaces. We'll reformat automatically if needed.",
|
|
529
|
+
error: O?.name,
|
|
530
|
+
invalid: !!O?.name,
|
|
531
|
+
disabled: I
|
|
532
532
|
}),
|
|
533
|
-
/* @__PURE__ */
|
|
533
|
+
/* @__PURE__ */ s(b, {
|
|
534
534
|
labelProps: {
|
|
535
535
|
label: Z.descriptionLabel ?? "Description",
|
|
536
536
|
required: !0
|
|
@@ -541,53 +541,56 @@ var M = {
|
|
|
541
541
|
...t,
|
|
542
542
|
description: e
|
|
543
543
|
})),
|
|
544
|
-
error:
|
|
545
|
-
invalid: !!
|
|
544
|
+
error: O?.description,
|
|
545
|
+
invalid: !!O?.description
|
|
546
546
|
}),
|
|
547
|
-
/* @__PURE__ */
|
|
547
|
+
/* @__PURE__ */ c("div", {
|
|
548
548
|
className: "flex flex-1 flex-col gap-2",
|
|
549
549
|
children: [
|
|
550
|
-
/* @__PURE__ */
|
|
550
|
+
/* @__PURE__ */ c("span", {
|
|
551
551
|
className: "flex items-center gap-0.5",
|
|
552
|
-
children: [/* @__PURE__ */
|
|
553
|
-
className:
|
|
552
|
+
children: [/* @__PURE__ */ s("span", {
|
|
553
|
+
className: i(fe.helperText, Ve),
|
|
554
554
|
children: Z.instructionsLabel ?? "Instructions"
|
|
555
|
-
}), /* @__PURE__ */
|
|
555
|
+
}), /* @__PURE__ */ s("span", {
|
|
556
556
|
className: "dial-tiny-text text-error",
|
|
557
557
|
children: "*"
|
|
558
558
|
})]
|
|
559
559
|
}),
|
|
560
|
-
/* @__PURE__ */
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
560
|
+
/* @__PURE__ */ s("div", {
|
|
561
|
+
ref: ye,
|
|
562
|
+
className: i(e, t),
|
|
563
|
+
children: /* @__PURE__ */ s(w, {
|
|
564
|
+
fallback: /* @__PURE__ */ s(y, { ariaLabel: Z.instructionsLoadingAriaLabel ?? "Loading" }),
|
|
565
|
+
children: /* @__PURE__ */ s(pe, {
|
|
566
|
+
value: K.instructions,
|
|
567
|
+
onChange: (e) => q((t) => ({
|
|
568
|
+
...t,
|
|
569
|
+
instructions: e
|
|
570
|
+
})),
|
|
571
|
+
theme: ve,
|
|
572
|
+
placeholder: Z.instructionsPlaceholder ?? "Write the skill instructions in Markdown"
|
|
573
|
+
})
|
|
571
574
|
})
|
|
572
575
|
}),
|
|
573
|
-
|
|
576
|
+
O?.instructions != null && /* @__PURE__ */ s(m, { text: O.instructions })
|
|
574
577
|
]
|
|
575
578
|
})
|
|
576
|
-
] }) : $?.kind ===
|
|
579
|
+
] }) : $?.kind === R.File && (V ?? /* @__PURE__ */ s(u, { text: Z.supportingFileNote ?? "This supporting file is included in the skill package as-is. Remove it from the Files panel to replace its content." }))
|
|
577
580
|
]
|
|
578
581
|
})
|
|
579
582
|
}),
|
|
580
|
-
/* @__PURE__ */
|
|
583
|
+
/* @__PURE__ */ s(de, {
|
|
581
584
|
isOpen: X,
|
|
582
585
|
onClose: () => {
|
|
583
|
-
|
|
586
|
+
Me(!1), Pe(void 0);
|
|
584
587
|
},
|
|
585
|
-
fileActions:
|
|
586
|
-
initialFiles:
|
|
587
|
-
labels:
|
|
588
|
+
fileActions: B,
|
|
589
|
+
initialFiles: Ne,
|
|
590
|
+
labels: he
|
|
588
591
|
})
|
|
589
592
|
]
|
|
590
593
|
});
|
|
591
594
|
};
|
|
592
595
|
//#endregion
|
|
593
|
-
export {
|
|
596
|
+
export { G as SkillEditor, V as SkillFileCandidateKind, R as SkillFileNodeKind, H as SkillFileValidationStatus };
|
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.438",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"@epam/ai-dial-chat-shared": "1.1.0-dev.
|
|
20
|
-
"@epam/ai-dial-editor-builder": "1.1.0-dev.
|
|
19
|
+
"@epam/ai-dial-chat-shared": "1.1.0-dev.438",
|
|
20
|
+
"@epam/ai-dial-editor-builder": "1.1.0-dev.438",
|
|
21
21
|
"@epam/ai-dial-ui-kit": "^0.14.0-dev.30",
|
|
22
22
|
"@epam/ai-dial-react-file-manager": "^0.2.0-dev.10",
|
|
23
23
|
"@tabler/icons-react": "^3.0.0",
|