@epam/ai-dial-toolset-editor 1.2.0-dev.163 → 1.2.0-dev.170
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":"ToolsetEditor.d.ts","sourceRoot":"","sources":["../../../src/components/ToolsetEditor/ToolsetEditor.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ToolsetEditor.d.ts","sourceRoot":"","sources":["../../../src/components/ToolsetEditor/ToolsetEditor.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAyC5E,uKAAuK;AACvK,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAkYhD,CAAC"}
|
package/index.js
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import { AvatarPickerModal as e, DeploymentCreationFieldErrorCode as t, DeploymentCreationForm as n, EditorLayout as r, EditorSection as i, validateDeploymentCreationFields as a } from "@epam/ai-dial-builder-form";
|
|
2
2
|
import { ToolsetAuthTypes as o, ToolsetCredentialsLevel as s, WithLogin as c, dialFileToAttachment as l, getApiErrorDetails as u } from "@epam/ai-dial-chat-hooks";
|
|
3
|
-
import { CopyButton as d,
|
|
4
|
-
import { ConfirmationPopup as
|
|
5
|
-
import { memo as
|
|
6
|
-
import { IconBrandOauth as N, IconKey as P, IconLockOff as F, IconLogin as
|
|
7
|
-
import { Fragment as
|
|
3
|
+
import { CopyButton as d, ENTITY_DESCRIPTION_MAX_LENGTH as f, ENTITY_NAME_MAX_LENGTH as p, TAG_INPUT_TAG_CLASS_NAME as m, mergeClasses as h, useCodeCopy as g } from "@epam/ai-dial-chat-shared";
|
|
4
|
+
import { ConfirmationPopup as _, ConfirmationPopupVariant as v, DIAL_ICON_SIZE as y, DIAL_KIT_ICON_STROKE as b, Input as x, NeutralButton as S, PasswordInput as ee, PrimaryButton as C, Radio as w, RadioGroup as T, SegmentedControl as te, Select as E, TagInput as D } from "@epam/ai-dial-ui-kit";
|
|
5
|
+
import { memo as O, useCallback as k, useEffect as A, useMemo as j, useRef as ne, useState as M } from "react";
|
|
6
|
+
import { IconBrandOauth as N, IconKey as P, IconLockOff as F, IconLogin as re, IconLogout as I } from "@tabler/icons-react";
|
|
7
|
+
import { Fragment as L, jsx as R, jsxs as z } from "react/jsx-runtime";
|
|
8
8
|
//#region src/constants/public-class-names.ts
|
|
9
|
-
var
|
|
9
|
+
var B = {
|
|
10
10
|
metadataSection: "dial-toolset-editor-metadata-section",
|
|
11
11
|
setupSection: "dial-toolset-editor-setup-section"
|
|
12
|
-
},
|
|
12
|
+
}, V = /* @__PURE__ */ function(e) {
|
|
13
13
|
return e.Http = "HTTP", e.Sse = "SSE", e;
|
|
14
|
-
}({}),
|
|
14
|
+
}({}), H = "New toolset", U = "0.0.1", W = {
|
|
15
15
|
[o.OAuth]: N,
|
|
16
16
|
[o.ApiKey]: P,
|
|
17
17
|
[o.None]: F
|
|
18
|
-
},
|
|
18
|
+
}, G = ({ defaultName: e = H, existingNames: t }) => {
|
|
19
19
|
let n = new Set(t);
|
|
20
20
|
if (!n.has(e)) return e;
|
|
21
21
|
let r = 1;
|
|
22
22
|
for (; n.has(`${e} ${r}`);) r += 1;
|
|
23
23
|
return `${e} ${r}`;
|
|
24
|
-
},
|
|
24
|
+
}, ie = () => ({
|
|
25
25
|
authenticationType: o.None,
|
|
26
26
|
withLogin: c.WithoutLogin,
|
|
27
27
|
isLoggedIn: !1
|
|
28
28
|
}), K = (e = []) => ({
|
|
29
|
-
name:
|
|
30
|
-
version:
|
|
29
|
+
name: G({ existingNames: e }),
|
|
30
|
+
version: U,
|
|
31
31
|
iconUrl: "",
|
|
32
32
|
description: "",
|
|
33
33
|
topics: [],
|
|
34
34
|
otherLocales: [],
|
|
35
35
|
endpoint: "",
|
|
36
|
-
protocol:
|
|
36
|
+
protocol: V.Http,
|
|
37
37
|
allowedTools: [],
|
|
38
|
-
auth:
|
|
38
|
+
auth: ie()
|
|
39
39
|
}), q = (e) => {
|
|
40
40
|
if (!/^https?:\/\//.test(e) || e.endsWith(".") || e.endsWith("//")) return !1;
|
|
41
41
|
try {
|
|
@@ -56,7 +56,7 @@ var z = {
|
|
|
56
56
|
if (q(t)) return t;
|
|
57
57
|
}
|
|
58
58
|
return t;
|
|
59
|
-
}, Z = (e) => !e?.trim() || J(e), Q = (e, t = !1) => e.isLoggedIn ? !0 : e.authenticationType === o.ApiKey ? e.keyHeader?.trim() ? e.withLogin === c.WithoutLogin ? !0 : !!(e.keyHeader?.trim() && e.apiKey?.trim()) : !1 : e.authenticationType === o.OAuth && e.withLogin === c.WithConfig ? !!e.clientId?.trim() && (t || !!e.clientSecret?.trim()) && Z(e.authorizationEndpoint) && Z(e.tokenEndpoint) : !0,
|
|
59
|
+
}, Z = (e) => !e?.trim() || J(e), Q = (e, t = !1) => e.isLoggedIn ? !0 : e.authenticationType === o.ApiKey ? e.keyHeader?.trim() ? e.withLogin === c.WithoutLogin ? !0 : !!(e.keyHeader?.trim() && e.apiKey?.trim()) : !1 : e.authenticationType === o.OAuth && e.withLogin === c.WithConfig ? !!e.clientId?.trim() && (t || !!e.clientSecret?.trim()) && Z(e.authorizationEndpoint) && Z(e.tokenEndpoint) : !0, ae = (e, t = !1) => Object.keys(a(e, { validateVersionPattern: !0 })).length === 0 && J(e.endpoint) && Q(e.auth, t), oe = {
|
|
60
60
|
name: {
|
|
61
61
|
label: "Name",
|
|
62
62
|
placeholder: "Enter name"
|
|
@@ -95,7 +95,7 @@ var z = {
|
|
|
95
95
|
saveLabel: "Save"
|
|
96
96
|
},
|
|
97
97
|
ariaLabel: "General"
|
|
98
|
-
},
|
|
98
|
+
}, se = {
|
|
99
99
|
title: "Add avatar",
|
|
100
100
|
attachLabel: "Attach",
|
|
101
101
|
emptyTitle: "This folder is empty",
|
|
@@ -105,7 +105,7 @@ var z = {
|
|
|
105
105
|
hiddenFilesLabel: "Hidden files",
|
|
106
106
|
showHiddenFilesLabel: "Show hidden files",
|
|
107
107
|
hideHiddenFilesLabel: "Hide hidden files",
|
|
108
|
-
getSelectionLabel: (e) => e === 1 ?
|
|
108
|
+
getSelectionLabel: (e) => e === 1 ? "item selected" : "items selected",
|
|
109
109
|
uploadFilesLabel: "Files",
|
|
110
110
|
newFolderLabel: "Folder",
|
|
111
111
|
downloadLabel: "Download",
|
|
@@ -121,9 +121,9 @@ var z = {
|
|
|
121
121
|
deleteCancelLabel: "Cancel",
|
|
122
122
|
uploadProgressTitle: "Uploading files",
|
|
123
123
|
cancelLabel: "Cancel"
|
|
124
|
-
},
|
|
125
|
-
let [h, g] = M(!1), _ = m?.form ??
|
|
126
|
-
return /* @__PURE__ */
|
|
124
|
+
}, ce = ({ form: t, errors: r, bucket: i, FileManagerModal: a, resolveIconUrl: o, allowedMimeTypes: s, maxFileSizeBytes: c, availableLocaleOptions: u, onChange: d, onNameBlur: f, onVersionBlur: p, labels: m }) => {
|
|
125
|
+
let [h, g] = M(!1), _ = m?.form ?? oe, v = m?.avatarPicker ?? se, y = j(() => o(t.iconUrl), [t.iconUrl, o]);
|
|
126
|
+
return /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(n, {
|
|
127
127
|
values: {
|
|
128
128
|
name: t.name,
|
|
129
129
|
description: t.description,
|
|
@@ -140,7 +140,7 @@ var z = {
|
|
|
140
140
|
onAddAvatarClick: () => g(!0),
|
|
141
141
|
labels: _,
|
|
142
142
|
availableLocaleOptions: u
|
|
143
|
-
}), /* @__PURE__ */
|
|
143
|
+
}), /* @__PURE__ */ R(e, {
|
|
144
144
|
isOpen: h,
|
|
145
145
|
onClose: () => g(!1),
|
|
146
146
|
onAttach: (e) => {
|
|
@@ -155,47 +155,47 @@ var z = {
|
|
|
155
155
|
})] });
|
|
156
156
|
}, $ = /* @__PURE__ */ function(e) {
|
|
157
157
|
return e.Success = "success", e.Cancelled = "cancelled", e.PopupBlocked = "popup-blocked", e.InvalidConfig = "invalid-config", e.Failed = "failed", e;
|
|
158
|
-
}({}),
|
|
159
|
-
let [
|
|
160
|
-
|
|
158
|
+
}({}), le = (e, t) => e === o.None ? c.WithoutLogin : e === o.OAuth && !t ? c.WithConfig : c.WithLogin, ue = (e, t) => e === o.None ? t?.typeNone ?? "Open access" : e === o.OAuth ? t?.typeOAuth ?? "OAuth" : t?.typeApiKey ?? "API Key", de = ({ auth: e, errors: t, isSaving: n, toolsetId: r, isEditMode: i, endpoint: a, authActions: l, onOAuthLogin: d, onNotifySuccess: f, onNotifyError: p, onAuthChange: h, onEnsureSaved: g, labels: C }) => {
|
|
159
|
+
let [T, E] = M(!1), [O, k] = M(!1), A = e.isLoggedIn || n || T, j = J(a) && Q(e, i) && !A, ne = (t) => {
|
|
160
|
+
A || t === e.authenticationType || h({
|
|
161
161
|
authenticationType: t,
|
|
162
|
-
withLogin:
|
|
162
|
+
withLogin: le(t, !!e.clientId?.trim())
|
|
163
163
|
});
|
|
164
|
-
},
|
|
165
|
-
|
|
166
|
-
},
|
|
167
|
-
switch (e.auth != null &&
|
|
164
|
+
}, N = (e) => {
|
|
165
|
+
h({ withLogin: e });
|
|
166
|
+
}, P = (e) => {
|
|
167
|
+
switch (e.auth != null && h(e.auth), e.status) {
|
|
168
168
|
case $.Success:
|
|
169
|
-
|
|
169
|
+
h({ isLoggedIn: !0 }), f(C?.loginSuccessMessage ?? "Successfully logged in.");
|
|
170
170
|
return;
|
|
171
171
|
case $.PopupBlocked:
|
|
172
|
-
|
|
172
|
+
p(C?.errorPopupBlocked ?? "The login popup was blocked by your browser. Please allow popups for this site and try again.");
|
|
173
173
|
return;
|
|
174
174
|
case $.InvalidConfig:
|
|
175
|
-
|
|
175
|
+
p(C?.errorOAuthConfigMissing ?? "The OAuth provider did not return a valid client configuration. Please check the endpoint or contact your administrator.");
|
|
176
176
|
return;
|
|
177
177
|
case $.Failed:
|
|
178
|
-
|
|
178
|
+
p(C?.errorLoginFailed ?? "Failed to log in. Please check your credentials and try again.", e.traceId);
|
|
179
179
|
return;
|
|
180
180
|
case $.Cancelled: return;
|
|
181
181
|
}
|
|
182
|
-
},
|
|
183
|
-
if (!
|
|
182
|
+
}, F = async () => {
|
|
183
|
+
if (!j) return;
|
|
184
184
|
if (e.authenticationType === o.OAuth) {
|
|
185
|
-
|
|
185
|
+
E(!0);
|
|
186
186
|
try {
|
|
187
|
-
|
|
187
|
+
P(await d({
|
|
188
188
|
auth: e,
|
|
189
|
-
ensureSaved:
|
|
189
|
+
ensureSaved: g
|
|
190
190
|
}));
|
|
191
191
|
} finally {
|
|
192
|
-
|
|
192
|
+
E(!1);
|
|
193
193
|
}
|
|
194
194
|
return;
|
|
195
195
|
}
|
|
196
|
-
let t = await
|
|
196
|
+
let t = await g();
|
|
197
197
|
if (t) {
|
|
198
|
-
|
|
198
|
+
E(!0);
|
|
199
199
|
try {
|
|
200
200
|
let n = {
|
|
201
201
|
url: t,
|
|
@@ -203,273 +203,273 @@ var z = {
|
|
|
203
203
|
authenticationType: e.authenticationType,
|
|
204
204
|
apiKey: e.apiKey?.trim()
|
|
205
205
|
};
|
|
206
|
-
await l.login(t, n),
|
|
206
|
+
await l.login(t, n), h({ isLoggedIn: !0 }), f(C?.loginSuccessMessage ?? "Successfully logged in.");
|
|
207
207
|
} catch (e) {
|
|
208
208
|
let { traceId: t } = await u(e);
|
|
209
|
-
|
|
209
|
+
p(C?.errorLoginFailed ?? "Failed to log in. Please check your credentials and try again.", t);
|
|
210
210
|
} finally {
|
|
211
|
-
|
|
211
|
+
E(!1);
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
|
-
},
|
|
215
|
-
|
|
214
|
+
}, L = async () => {
|
|
215
|
+
E(!0);
|
|
216
216
|
try {
|
|
217
217
|
let t = {
|
|
218
218
|
url: r,
|
|
219
219
|
credentialsLevel: s.User,
|
|
220
220
|
authenticationType: e.authenticationType
|
|
221
221
|
};
|
|
222
|
-
await l.logout(r, t),
|
|
222
|
+
await l.logout(r, t), h({ isLoggedIn: !1 }), k(!1), f(C?.logoutSuccessMessage ?? "Successfully logged out.");
|
|
223
223
|
} catch (e) {
|
|
224
224
|
let { traceId: t } = await u(e);
|
|
225
|
-
|
|
225
|
+
p(C?.errorLogoutFailed ?? "Failed to log out. Please try again.", t);
|
|
226
226
|
} finally {
|
|
227
|
-
|
|
227
|
+
E(!1);
|
|
228
228
|
}
|
|
229
|
-
},
|
|
229
|
+
}, B = () => e.isLoggedIn ? /* @__PURE__ */ R("div", {
|
|
230
230
|
className: "flex",
|
|
231
|
-
children: /* @__PURE__ */
|
|
232
|
-
label:
|
|
233
|
-
iconBefore: /* @__PURE__ */
|
|
234
|
-
size:
|
|
235
|
-
stroke:
|
|
231
|
+
children: /* @__PURE__ */ R(S, {
|
|
232
|
+
label: C?.logOutLabel ?? "Log out",
|
|
233
|
+
iconBefore: /* @__PURE__ */ R(I, {
|
|
234
|
+
size: y.MD,
|
|
235
|
+
stroke: b
|
|
236
236
|
}),
|
|
237
|
-
onClick: () =>
|
|
238
|
-
disabled: n ||
|
|
237
|
+
onClick: () => k(!0),
|
|
238
|
+
disabled: n || T
|
|
239
239
|
})
|
|
240
|
-
}) : /* @__PURE__ */
|
|
240
|
+
}) : /* @__PURE__ */ R("div", {
|
|
241
241
|
className: "flex",
|
|
242
|
-
children: /* @__PURE__ */
|
|
243
|
-
label:
|
|
244
|
-
iconBefore: /* @__PURE__ */
|
|
245
|
-
size:
|
|
246
|
-
stroke:
|
|
242
|
+
children: /* @__PURE__ */ R(S, {
|
|
243
|
+
label: C?.logInLabel ?? "Log in",
|
|
244
|
+
iconBefore: /* @__PURE__ */ R(re, {
|
|
245
|
+
size: y.MD,
|
|
246
|
+
stroke: b
|
|
247
247
|
}),
|
|
248
|
-
onClick:
|
|
249
|
-
disabled: !
|
|
248
|
+
onClick: F,
|
|
249
|
+
disabled: !j
|
|
250
250
|
})
|
|
251
251
|
});
|
|
252
|
-
return /* @__PURE__ */
|
|
252
|
+
return /* @__PURE__ */ z("section", {
|
|
253
253
|
className: "flex flex-col gap-2",
|
|
254
254
|
children: [
|
|
255
|
-
/* @__PURE__ */
|
|
255
|
+
/* @__PURE__ */ R("h3", {
|
|
256
256
|
className: "dial-h3-text",
|
|
257
|
-
children:
|
|
257
|
+
children: C?.sectionTitle ?? "Authentication"
|
|
258
258
|
}),
|
|
259
|
-
/* @__PURE__ */
|
|
260
|
-
"aria-label":
|
|
259
|
+
/* @__PURE__ */ R(te, {
|
|
260
|
+
"aria-label": C?.sectionTitle ?? "Authentication",
|
|
261
261
|
value: e.authenticationType,
|
|
262
|
-
onChange: (e) =>
|
|
262
|
+
onChange: (e) => ne(e),
|
|
263
263
|
segmentClassName: "px-2",
|
|
264
264
|
items: [
|
|
265
265
|
o.None,
|
|
266
266
|
o.OAuth,
|
|
267
267
|
o.ApiKey
|
|
268
268
|
].map((t) => {
|
|
269
|
-
let n =
|
|
269
|
+
let n = W[t];
|
|
270
270
|
return {
|
|
271
271
|
value: t,
|
|
272
|
-
label: /* @__PURE__ */
|
|
272
|
+
label: /* @__PURE__ */ z("div", {
|
|
273
273
|
className: "flex items-center gap-2",
|
|
274
|
-
children: [/* @__PURE__ */
|
|
274
|
+
children: [/* @__PURE__ */ R(n, {
|
|
275
275
|
className: "shrink-0",
|
|
276
|
-
size:
|
|
277
|
-
stroke:
|
|
276
|
+
size: y.SM,
|
|
277
|
+
stroke: b,
|
|
278
278
|
"aria-hidden": !0
|
|
279
|
-
}), /* @__PURE__ */
|
|
279
|
+
}), /* @__PURE__ */ R("span", {
|
|
280
280
|
className: "sr-only desktop:not-sr-only",
|
|
281
|
-
children:
|
|
281
|
+
children: ue(t, C)
|
|
282
282
|
})]
|
|
283
283
|
}),
|
|
284
|
-
disabled:
|
|
284
|
+
disabled: A && e.authenticationType !== t
|
|
285
285
|
};
|
|
286
286
|
})
|
|
287
287
|
}),
|
|
288
|
-
e.authenticationType === o.None && /* @__PURE__ */
|
|
288
|
+
e.authenticationType === o.None && /* @__PURE__ */ R("p", {
|
|
289
289
|
className: "dial-small-text pt-2 text-secondary",
|
|
290
|
-
children:
|
|
290
|
+
children: C?.openAccessDescription ?? "Open endpoint, no credentials"
|
|
291
291
|
}),
|
|
292
|
-
e.authenticationType === o.OAuth && /* @__PURE__ */
|
|
292
|
+
e.authenticationType === o.OAuth && /* @__PURE__ */ z("div", {
|
|
293
293
|
className: "flex flex-col gap-3 pt-2",
|
|
294
294
|
children: [
|
|
295
|
-
/* @__PURE__ */
|
|
295
|
+
/* @__PURE__ */ z("div", {
|
|
296
296
|
className: "flex flex-col gap-2",
|
|
297
|
-
children: [/* @__PURE__ */
|
|
297
|
+
children: [/* @__PURE__ */ R(w, {
|
|
298
298
|
name: "oauth-login-mode",
|
|
299
299
|
id: "oauth-with-login",
|
|
300
300
|
value: c.WithLogin,
|
|
301
|
-
labelProps: { label:
|
|
301
|
+
labelProps: { label: C?.withLoginOAuthLabel ?? "Standard login" },
|
|
302
302
|
isSelected: e.withLogin === c.WithLogin,
|
|
303
|
-
disabled:
|
|
304
|
-
onChange:
|
|
305
|
-
}), /* @__PURE__ */
|
|
303
|
+
disabled: A,
|
|
304
|
+
onChange: N
|
|
305
|
+
}), /* @__PURE__ */ R(w, {
|
|
306
306
|
name: "oauth-login-mode",
|
|
307
307
|
id: "oauth-with-config",
|
|
308
308
|
value: c.WithConfig,
|
|
309
|
-
labelProps: { label:
|
|
309
|
+
labelProps: { label: C?.withConfigOAuthLabel ?? "Custom login" },
|
|
310
310
|
isSelected: e.withLogin === c.WithConfig,
|
|
311
|
-
disabled:
|
|
312
|
-
onChange:
|
|
311
|
+
disabled: A,
|
|
312
|
+
onChange: N
|
|
313
313
|
})]
|
|
314
314
|
}),
|
|
315
|
-
e.withLogin === c.WithConfig && /* @__PURE__ */
|
|
315
|
+
e.withLogin === c.WithConfig && /* @__PURE__ */ z("div", {
|
|
316
316
|
className: "flex flex-col gap-3",
|
|
317
317
|
children: [
|
|
318
|
-
/* @__PURE__ */
|
|
318
|
+
/* @__PURE__ */ R(x, {
|
|
319
319
|
id: "toolset-client-id",
|
|
320
320
|
value: e.clientId ?? "",
|
|
321
|
-
onChange: (e) =>
|
|
321
|
+
onChange: (e) => h({ clientId: e ?? "" }),
|
|
322
322
|
labelProps: {
|
|
323
|
-
label:
|
|
323
|
+
label: C?.clientIdLabel ?? "Client ID",
|
|
324
324
|
required: !0
|
|
325
325
|
},
|
|
326
|
-
placeholder:
|
|
326
|
+
placeholder: C?.clientIdPlaceholder ?? "Enter client ID",
|
|
327
327
|
error: t.clientId || void 0,
|
|
328
328
|
invalid: !!t.clientId,
|
|
329
|
-
disabled:
|
|
329
|
+
disabled: A
|
|
330
330
|
}),
|
|
331
|
-
/* @__PURE__ */
|
|
331
|
+
/* @__PURE__ */ R(ee, {
|
|
332
332
|
id: "toolset-client-secret",
|
|
333
333
|
value: e.clientSecret ?? "",
|
|
334
|
-
onChange: (e) =>
|
|
334
|
+
onChange: (e) => h({ clientSecret: e ?? "" }),
|
|
335
335
|
labelProps: {
|
|
336
|
-
label:
|
|
336
|
+
label: C?.clientSecretLabel ?? "Client secret",
|
|
337
337
|
required: !i
|
|
338
338
|
},
|
|
339
|
-
placeholder:
|
|
340
|
-
showPasswordLabel:
|
|
341
|
-
hidePasswordLabel:
|
|
339
|
+
placeholder: C?.clientSecretPlaceholder ?? "Enter client secret",
|
|
340
|
+
showPasswordLabel: C?.showClientSecretLabel ?? "Show client secret",
|
|
341
|
+
hidePasswordLabel: C?.hideClientSecretLabel ?? "Hide client secret",
|
|
342
342
|
error: t.clientSecret || void 0,
|
|
343
343
|
invalid: !!t.clientSecret,
|
|
344
|
-
disabled:
|
|
344
|
+
disabled: A
|
|
345
345
|
}),
|
|
346
|
-
/* @__PURE__ */
|
|
346
|
+
/* @__PURE__ */ R(x, {
|
|
347
347
|
id: "toolset-authorization-endpoint",
|
|
348
348
|
value: e.authorizationEndpoint ?? "",
|
|
349
|
-
onChange: (e) =>
|
|
350
|
-
labelProps: { label:
|
|
351
|
-
placeholder:
|
|
349
|
+
onChange: (e) => h({ authorizationEndpoint: e ?? "" }),
|
|
350
|
+
labelProps: { label: C?.authorizationEndpointLabel ?? "Authorization endpoint" },
|
|
351
|
+
placeholder: C?.authorizationEndpointPlaceholder ?? "Enter authorization endpoint",
|
|
352
352
|
error: t.authorizationEndpoint || void 0,
|
|
353
353
|
invalid: !!t.authorizationEndpoint,
|
|
354
|
-
disabled:
|
|
354
|
+
disabled: A
|
|
355
355
|
}),
|
|
356
|
-
/* @__PURE__ */
|
|
356
|
+
/* @__PURE__ */ R(x, {
|
|
357
357
|
id: "toolset-token-endpoint",
|
|
358
358
|
value: e.tokenEndpoint ?? "",
|
|
359
|
-
onChange: (e) =>
|
|
360
|
-
labelProps: { label:
|
|
361
|
-
placeholder:
|
|
359
|
+
onChange: (e) => h({ tokenEndpoint: e ?? "" }),
|
|
360
|
+
labelProps: { label: C?.tokenEndpointLabel ?? "Token endpoint" },
|
|
361
|
+
placeholder: C?.tokenEndpointPlaceholder ?? "Enter token endpoint",
|
|
362
362
|
error: t.tokenEndpoint || void 0,
|
|
363
363
|
invalid: !!t.tokenEndpoint,
|
|
364
|
-
disabled:
|
|
364
|
+
disabled: A
|
|
365
365
|
}),
|
|
366
|
-
/* @__PURE__ */
|
|
366
|
+
/* @__PURE__ */ R(D, {
|
|
367
367
|
id: "toolset-scopes",
|
|
368
|
-
labelProps: { label:
|
|
369
|
-
placeholder:
|
|
368
|
+
labelProps: { label: C?.scopesLabel ?? "Scopes" },
|
|
369
|
+
placeholder: C?.scopesPlaceholder ?? "Enter scopes",
|
|
370
370
|
value: e.scopes ?? [],
|
|
371
|
-
onChange: (e) =>
|
|
372
|
-
disabled:
|
|
373
|
-
tagClassName:
|
|
371
|
+
onChange: (e) => h({ scopes: e }),
|
|
372
|
+
disabled: A,
|
|
373
|
+
tagClassName: m
|
|
374
374
|
})
|
|
375
375
|
]
|
|
376
376
|
}),
|
|
377
|
-
|
|
377
|
+
B()
|
|
378
378
|
]
|
|
379
379
|
}),
|
|
380
|
-
e.authenticationType === o.ApiKey && /* @__PURE__ */
|
|
380
|
+
e.authenticationType === o.ApiKey && /* @__PURE__ */ z("div", {
|
|
381
381
|
className: "flex flex-col gap-3 pt-2",
|
|
382
382
|
children: [
|
|
383
|
-
/* @__PURE__ */
|
|
383
|
+
/* @__PURE__ */ z("div", {
|
|
384
384
|
className: "flex flex-col gap-2",
|
|
385
|
-
children: [/* @__PURE__ */
|
|
385
|
+
children: [/* @__PURE__ */ R(w, {
|
|
386
386
|
name: "apikey-login-mode",
|
|
387
387
|
id: "apikey-with-login",
|
|
388
388
|
value: c.WithLogin,
|
|
389
|
-
labelProps: { label:
|
|
389
|
+
labelProps: { label: C?.withLoginLabel ?? "With login" },
|
|
390
390
|
isSelected: e.withLogin === c.WithLogin,
|
|
391
|
-
disabled:
|
|
392
|
-
onChange:
|
|
393
|
-
}), /* @__PURE__ */
|
|
391
|
+
disabled: A,
|
|
392
|
+
onChange: N
|
|
393
|
+
}), /* @__PURE__ */ R(w, {
|
|
394
394
|
name: "apikey-login-mode",
|
|
395
395
|
id: "apikey-without-login",
|
|
396
396
|
value: c.WithoutLogin,
|
|
397
|
-
labelProps: { label:
|
|
397
|
+
labelProps: { label: C?.withoutLoginLabel ?? "Without login" },
|
|
398
398
|
isSelected: e.withLogin === c.WithoutLogin,
|
|
399
|
-
disabled:
|
|
400
|
-
onChange:
|
|
399
|
+
disabled: A,
|
|
400
|
+
onChange: N
|
|
401
401
|
})]
|
|
402
402
|
}),
|
|
403
|
-
/* @__PURE__ */
|
|
403
|
+
/* @__PURE__ */ z("div", {
|
|
404
404
|
className: "flex flex-col gap-3",
|
|
405
|
-
children: [/* @__PURE__ */
|
|
405
|
+
children: [/* @__PURE__ */ R(x, {
|
|
406
406
|
id: "toolset-key-header",
|
|
407
407
|
value: e.keyHeader ?? "",
|
|
408
|
-
onChange: (e) =>
|
|
408
|
+
onChange: (e) => h({ keyHeader: e ?? "" }),
|
|
409
409
|
labelProps: {
|
|
410
|
-
label:
|
|
410
|
+
label: C?.keyHeaderLabel ?? "API Key parameter name",
|
|
411
411
|
required: !0
|
|
412
412
|
},
|
|
413
|
-
placeholder:
|
|
413
|
+
placeholder: C?.keyHeaderPlaceholder ?? "Enter API key parameter name",
|
|
414
414
|
error: t.keyHeader || void 0,
|
|
415
415
|
invalid: !!t.keyHeader,
|
|
416
|
-
disabled:
|
|
417
|
-
}), e.withLogin === c.WithLogin && /* @__PURE__ */
|
|
416
|
+
disabled: A
|
|
417
|
+
}), e.withLogin === c.WithLogin && /* @__PURE__ */ R(ee, {
|
|
418
418
|
id: "toolset-api-key",
|
|
419
419
|
value: e.apiKey ?? "",
|
|
420
|
-
onChange: (e) =>
|
|
420
|
+
onChange: (e) => h({ apiKey: e ?? "" }),
|
|
421
421
|
labelProps: {
|
|
422
|
-
label:
|
|
422
|
+
label: C?.apiKeyLabel ?? "API key",
|
|
423
423
|
required: !0
|
|
424
424
|
},
|
|
425
|
-
placeholder:
|
|
426
|
-
showPasswordLabel:
|
|
427
|
-
hidePasswordLabel:
|
|
425
|
+
placeholder: C?.apiKeyPlaceholder ?? "Enter API key",
|
|
426
|
+
showPasswordLabel: C?.showApiKeyLabel ?? "Show API key",
|
|
427
|
+
hidePasswordLabel: C?.hideApiKeyLabel ?? "Hide API key",
|
|
428
428
|
error: t.apiKey || void 0,
|
|
429
429
|
invalid: !!t.apiKey,
|
|
430
|
-
disabled:
|
|
430
|
+
disabled: A
|
|
431
431
|
})]
|
|
432
432
|
}),
|
|
433
|
-
e.withLogin !== c.WithoutLogin &&
|
|
433
|
+
e.withLogin !== c.WithoutLogin && B()
|
|
434
434
|
]
|
|
435
435
|
}),
|
|
436
|
-
|
|
437
|
-
open:
|
|
438
|
-
header:
|
|
439
|
-
description:
|
|
440
|
-
confirmLabel:
|
|
441
|
-
cancelLabel:
|
|
442
|
-
variant:
|
|
443
|
-
isLoading:
|
|
444
|
-
disableConfirmButton:
|
|
445
|
-
onConfirm:
|
|
446
|
-
onCancel: () =>
|
|
447
|
-
onClose: () =>
|
|
436
|
+
O && /* @__PURE__ */ R(_, {
|
|
437
|
+
open: O,
|
|
438
|
+
header: C?.logoutConfirmTitle ?? "Log out?",
|
|
439
|
+
description: C?.logoutConfirmDescription ?? "Are you sure you want to log out? You will need to re-enter your credentials to use this toolset again.",
|
|
440
|
+
confirmLabel: C?.logOutLabel ?? "Log out",
|
|
441
|
+
cancelLabel: C?.cancelLabel ?? "Cancel",
|
|
442
|
+
variant: v.Danger,
|
|
443
|
+
isLoading: T,
|
|
444
|
+
disableConfirmButton: T,
|
|
445
|
+
onConfirm: L,
|
|
446
|
+
onCancel: () => k(!1),
|
|
447
|
+
onClose: () => k(!1)
|
|
448
448
|
})
|
|
449
449
|
]
|
|
450
450
|
});
|
|
451
|
-
},
|
|
452
|
-
let { isCopied: r, copy: i } =
|
|
453
|
-
return /* @__PURE__ */
|
|
454
|
-
className:
|
|
451
|
+
}, fe = O(({ url: e, className: t, labels: n }) => {
|
|
452
|
+
let { isCopied: r, copy: i } = g(e), a = n?.copiedLabel ?? "Copied!";
|
|
453
|
+
return /* @__PURE__ */ z("div", {
|
|
454
|
+
className: h("flex flex-col gap-3", t),
|
|
455
455
|
children: [
|
|
456
|
-
/* @__PURE__ */
|
|
456
|
+
/* @__PURE__ */ z("div", {
|
|
457
457
|
className: "flex flex-col gap-1",
|
|
458
|
-
children: [/* @__PURE__ */
|
|
458
|
+
children: [/* @__PURE__ */ R("p", {
|
|
459
459
|
className: "dial-body-semi-text text-start text-primary",
|
|
460
460
|
children: n?.title ?? "Connect toolset"
|
|
461
|
-
}), /* @__PURE__ */
|
|
461
|
+
}), /* @__PURE__ */ R("p", {
|
|
462
462
|
className: "dial-small-text text-start text-secondary",
|
|
463
463
|
children: n?.description ?? "Copy endpoint URL to easily integrate toolset into your workflows"
|
|
464
464
|
})]
|
|
465
465
|
}),
|
|
466
|
-
/* @__PURE__ */
|
|
466
|
+
/* @__PURE__ */ R("div", { children: /* @__PURE__ */ R(d, {
|
|
467
467
|
copiedLabel: a,
|
|
468
468
|
copyLabel: n?.copyLabel ?? "Copy URL",
|
|
469
469
|
isCopied: r,
|
|
470
470
|
onClick: i
|
|
471
471
|
}) }),
|
|
472
|
-
/* @__PURE__ */
|
|
472
|
+
/* @__PURE__ */ R("span", {
|
|
473
473
|
role: "status",
|
|
474
474
|
"aria-live": "polite",
|
|
475
475
|
className: "sr-only",
|
|
@@ -477,15 +477,15 @@ var z = {
|
|
|
477
477
|
})
|
|
478
478
|
]
|
|
479
479
|
});
|
|
480
|
-
}),
|
|
481
|
-
let [g, _] = M(null), v = !!a && !!r,
|
|
482
|
-
value:
|
|
480
|
+
}), pe = ({ form: e, errors: t, isSaving: n, toolsetId: r, isEditMode: i, connectUrl: a, listToolNames: o, authActions: s, onOAuthLogin: c, onNotifySuccess: l, onNotifyError: u, onChange: d, onAuthChange: f, onEnsureSaved: p, labels: h }) => {
|
|
481
|
+
let [g, _] = M(null), v = !!a && !!r, y = j(() => [{
|
|
482
|
+
value: V.Http,
|
|
483
483
|
label: "HTTP"
|
|
484
484
|
}, {
|
|
485
|
-
value:
|
|
485
|
+
value: V.Sse,
|
|
486
486
|
label: "SSE"
|
|
487
487
|
}], []);
|
|
488
|
-
return
|
|
488
|
+
return A(() => {
|
|
489
489
|
if (!r || !o || !Q(e.auth, i)) {
|
|
490
490
|
_(null);
|
|
491
491
|
return;
|
|
@@ -507,10 +507,10 @@ var z = {
|
|
|
507
507
|
e.auth,
|
|
508
508
|
e.endpoint,
|
|
509
509
|
o
|
|
510
|
-
]), /* @__PURE__ */
|
|
510
|
+
]), /* @__PURE__ */ z("div", {
|
|
511
511
|
className: "flex max-w-[1060px] flex-col gap-4",
|
|
512
512
|
children: [
|
|
513
|
-
/* @__PURE__ */
|
|
513
|
+
/* @__PURE__ */ R(x, {
|
|
514
514
|
id: "toolset-endpoint",
|
|
515
515
|
value: e.endpoint,
|
|
516
516
|
onChange: (e) => d({ endpoint: e ?? "" }),
|
|
@@ -523,19 +523,19 @@ var z = {
|
|
|
523
523
|
error: t.endpoint || void 0,
|
|
524
524
|
invalid: !!t.endpoint
|
|
525
525
|
}),
|
|
526
|
-
/* @__PURE__ */
|
|
526
|
+
/* @__PURE__ */ R(T, {
|
|
527
527
|
labelProps: {
|
|
528
528
|
label: h?.protocolLabel ?? "Protocol",
|
|
529
529
|
required: !0
|
|
530
530
|
},
|
|
531
531
|
id: "toolset-protocol",
|
|
532
|
-
items:
|
|
532
|
+
items: y,
|
|
533
533
|
value: e.protocol,
|
|
534
534
|
onChange: (e) => {
|
|
535
535
|
d({ protocol: e });
|
|
536
536
|
}
|
|
537
537
|
}),
|
|
538
|
-
g ? /* @__PURE__ */
|
|
538
|
+
g ? /* @__PURE__ */ R(E, {
|
|
539
539
|
id: "toolset-allowed-tools",
|
|
540
540
|
multiple: !0,
|
|
541
541
|
searchable: !0,
|
|
@@ -548,15 +548,15 @@ var z = {
|
|
|
548
548
|
})),
|
|
549
549
|
value: e.allowedTools,
|
|
550
550
|
onChange: (e) => d({ allowedTools: e })
|
|
551
|
-
}) : /* @__PURE__ */
|
|
551
|
+
}) : /* @__PURE__ */ R(D, {
|
|
552
552
|
id: "toolset-allowed-tools",
|
|
553
553
|
labelProps: { label: h?.allowedToolsLabel ?? "Allowed tools" },
|
|
554
554
|
placeholder: h?.allowedToolsPlaceholder ?? "Add tools, comma separated",
|
|
555
555
|
value: e.allowedTools,
|
|
556
556
|
onChange: (e) => d({ allowedTools: e }),
|
|
557
|
-
tagClassName:
|
|
557
|
+
tagClassName: m
|
|
558
558
|
}),
|
|
559
|
-
/* @__PURE__ */
|
|
559
|
+
/* @__PURE__ */ R(de, {
|
|
560
560
|
auth: e.auth,
|
|
561
561
|
errors: t,
|
|
562
562
|
isSaving: n,
|
|
@@ -567,52 +567,53 @@ var z = {
|
|
|
567
567
|
onOAuthLogin: c,
|
|
568
568
|
onNotifySuccess: l,
|
|
569
569
|
onNotifyError: u,
|
|
570
|
-
onAuthChange:
|
|
571
|
-
onEnsureSaved:
|
|
570
|
+
onAuthChange: f,
|
|
571
|
+
onEnsureSaved: p,
|
|
572
572
|
labels: h?.auth
|
|
573
573
|
}),
|
|
574
|
-
v && /* @__PURE__ */
|
|
574
|
+
v && /* @__PURE__ */ R(fe, {
|
|
575
575
|
url: a ?? "",
|
|
576
576
|
labels: h?.connect,
|
|
577
577
|
className: "border-t border-tertiary pt-4"
|
|
578
578
|
})
|
|
579
579
|
]
|
|
580
580
|
});
|
|
581
|
-
},
|
|
581
|
+
}, me = [
|
|
582
582
|
"keyHeader",
|
|
583
583
|
"apiKey",
|
|
584
584
|
"clientId",
|
|
585
585
|
"clientSecret",
|
|
586
586
|
"authorizationEndpoint",
|
|
587
587
|
"tokenEndpoint"
|
|
588
|
-
],
|
|
588
|
+
], he = [
|
|
589
589
|
"name",
|
|
590
590
|
"version",
|
|
591
|
+
"description",
|
|
591
592
|
"endpoint",
|
|
592
|
-
...
|
|
593
|
-
],
|
|
593
|
+
...me
|
|
594
|
+
], ge = new Set(he), _e = (e) => {
|
|
594
595
|
let t = {};
|
|
595
|
-
for (let n of Object.keys(e))
|
|
596
|
+
for (let n of Object.keys(e)) ge.has(n) && (t[n] = !0);
|
|
596
597
|
return t;
|
|
597
|
-
},
|
|
598
|
-
let F = !!n, [
|
|
599
|
-
|
|
600
|
-
|
|
598
|
+
}, ve = ({ initialForm: e, toolsetId: n, onPersist: s, onPostSaveLogin: l, onToolsetsChanged: d, onSaveSuccess: m, onSaveComplete: g, onBack: _, buildMcpUrl: v, listToolNames: y, authActions: b, onOAuthLogin: x, onNotifySuccess: ee, onNotifyError: w, bucket: T, FileManagerModal: te, resolveIconUrl: E, allowedMimeTypes: D, maxFileSizeBytes: O, availableLocaleOptions: N, labels: P }) => {
|
|
599
|
+
let F = !!n, [re, I] = M(""), V = n || re, [H, U] = M(e), [W, G] = M(!1), [ie, K] = M({}), [q, Y] = M({}), X = ne(null);
|
|
600
|
+
A(() => {
|
|
601
|
+
U(e), X.current = e, K({}), Y({}), I("");
|
|
601
602
|
}, [e]);
|
|
602
|
-
let Z =
|
|
603
|
-
|
|
603
|
+
let Z = k((e) => {
|
|
604
|
+
U((t) => ({
|
|
604
605
|
...t,
|
|
605
606
|
...e
|
|
606
607
|
})), Y((t) => ({
|
|
607
608
|
...t,
|
|
608
|
-
...
|
|
609
|
+
..._e(e)
|
|
609
610
|
})), K((t) => {
|
|
610
611
|
let n = { ...t };
|
|
611
612
|
for (let t of Object.keys(e)) delete n[t];
|
|
612
613
|
return n;
|
|
613
614
|
});
|
|
614
|
-
}, []), Q =
|
|
615
|
-
|
|
615
|
+
}, []), Q = k((e) => {
|
|
616
|
+
U((t) => ({
|
|
616
617
|
...t,
|
|
617
618
|
auth: {
|
|
618
619
|
...t.auth,
|
|
@@ -620,66 +621,66 @@ var z = {
|
|
|
620
621
|
}
|
|
621
622
|
})), Y((t) => ({
|
|
622
623
|
...t,
|
|
623
|
-
...
|
|
624
|
+
..._e(e)
|
|
624
625
|
})), K((t) => {
|
|
625
626
|
let n = { ...t };
|
|
626
|
-
if ("authenticationType" in e || "withLogin" in e || "isLoggedIn" in e) for (let e of
|
|
627
|
+
if ("authenticationType" in e || "withLogin" in e || "isLoggedIn" in e) for (let e of me) delete n[e];
|
|
627
628
|
else for (let t of Object.keys(e)) delete n[t];
|
|
628
629
|
return n;
|
|
629
630
|
}), "isLoggedIn" in e && d();
|
|
630
|
-
}, [d]),
|
|
631
|
-
if (
|
|
632
|
-
|
|
631
|
+
}, [d]), oe = k(async () => {
|
|
632
|
+
if (V && X.current != null && JSON.stringify(X.current) === JSON.stringify(H)) return V;
|
|
633
|
+
G(!0);
|
|
633
634
|
try {
|
|
634
|
-
let e = await s(
|
|
635
|
-
return e ? (
|
|
635
|
+
let e = await s(H, V);
|
|
636
|
+
return e ? (V || I(e), X.current = H, await d(), e) : null;
|
|
636
637
|
} catch {
|
|
637
638
|
return null;
|
|
638
639
|
} finally {
|
|
639
|
-
|
|
640
|
+
G(!1);
|
|
640
641
|
}
|
|
641
642
|
}, [
|
|
643
|
+
H,
|
|
642
644
|
V,
|
|
643
|
-
B,
|
|
644
645
|
s,
|
|
645
646
|
d
|
|
646
|
-
]),
|
|
647
|
+
]), se = k(async () => await oe() ?? !1, [oe]), $ = k((e) => {
|
|
647
648
|
let n = P?.validation, r = {}, i = a(e, { validateVersionPattern: !0 });
|
|
648
|
-
return i.name === t.Required
|
|
649
|
-
}, [P, F]),
|
|
650
|
-
let e = $(
|
|
649
|
+
return i.name === t.Required ? r.name = n?.nameRequired ?? "Name is required" : i.name === t.TooLong ? r.name = n?.nameTooLong ?? `Use ${p} characters or fewer.` : i.name === t.ControlCharacters && (r.name = n?.nameControlCharacters ?? "Remove line breaks, tabs and other control characters."), i.description === t.TooLong && (r.description = n?.descriptionTooLong ?? `Use ${f} characters or fewer.`), i.version === t.InvalidFormat && (r.version = n?.versionInvalid ?? "Version may only contain letters, digits, dots, underscores, and dashes"), e.endpoint.trim() ? J(e.endpoint) || (r.endpoint = n?.endpointInvalid ?? "Enter a valid http(s) URL") : r.endpoint = n?.endpointRequired ?? "Endpoint is required", e.auth.isLoggedIn || (e.auth.authenticationType === o.ApiKey && (e.auth.keyHeader?.trim() || (r.keyHeader = n?.keyHeaderRequired ?? "Key name is required"), e.auth.withLogin === c.WithLogin && !e.auth.apiKey?.trim() && (r.apiKey = n?.apiKeyRequired ?? "API key is required")), e.auth.authenticationType === o.OAuth && e.auth.withLogin === c.WithConfig && (e.auth.clientId?.trim() || (r.clientId = n?.clientIdRequired ?? "Client ID is required"), !F && !e.auth.clientSecret?.trim() && (r.clientSecret = n?.clientSecretRequired ?? "Client secret is required"), e.auth.authorizationEndpoint?.trim() && !J(e.auth.authorizationEndpoint) && (r.authorizationEndpoint = n?.endpointInvalid ?? "Enter a valid http(s) URL"), e.auth.tokenEndpoint?.trim() && !J(e.auth.tokenEndpoint) && (r.tokenEndpoint = n?.endpointInvalid ?? "Enter a valid http(s) URL"))), r;
|
|
650
|
+
}, [P, F]), le = k(async () => {
|
|
651
|
+
let e = $(H);
|
|
651
652
|
if (Object.keys(e).length > 0) {
|
|
652
653
|
K(e);
|
|
653
654
|
return;
|
|
654
655
|
}
|
|
655
|
-
K({}),
|
|
656
|
+
K({}), G(!0);
|
|
656
657
|
try {
|
|
657
|
-
let e = await s(
|
|
658
|
+
let e = await s(H, V);
|
|
658
659
|
if (!e) return;
|
|
659
|
-
await d(),
|
|
660
|
+
await d(), m(H);
|
|
660
661
|
try {
|
|
661
|
-
await l(e,
|
|
662
|
+
await l(e, H.auth), g();
|
|
662
663
|
} catch (e) {
|
|
663
664
|
let { traceId: t } = await u(e);
|
|
664
|
-
|
|
665
|
+
w(P?.settings?.auth?.errorLoginFailed ?? "Failed to log in. Please check your credentials and try again.", t);
|
|
665
666
|
}
|
|
666
667
|
} catch {} finally {
|
|
667
|
-
|
|
668
|
+
G(!1);
|
|
668
669
|
}
|
|
669
670
|
}, [
|
|
670
|
-
|
|
671
|
+
H,
|
|
671
672
|
$,
|
|
672
|
-
|
|
673
|
+
V,
|
|
673
674
|
s,
|
|
674
675
|
d,
|
|
675
|
-
f,
|
|
676
676
|
m,
|
|
677
|
+
g,
|
|
677
678
|
l,
|
|
678
|
-
|
|
679
|
+
w,
|
|
679
680
|
P
|
|
680
|
-
]),
|
|
681
|
-
let e = $(
|
|
682
|
-
for (let n of
|
|
681
|
+
]), ue = j(() => !ae(H, F), [H, F]), de = j(() => {
|
|
682
|
+
let e = $(H), t = { ...ie };
|
|
683
|
+
for (let n of he) {
|
|
683
684
|
if (!q[n]) continue;
|
|
684
685
|
let r = e[n];
|
|
685
686
|
r ? t[n] = r : delete t[n];
|
|
@@ -687,62 +688,62 @@ var z = {
|
|
|
687
688
|
return t;
|
|
688
689
|
}, [
|
|
689
690
|
q,
|
|
690
|
-
|
|
691
|
-
|
|
691
|
+
ie,
|
|
692
|
+
H,
|
|
692
693
|
$
|
|
693
|
-
]),
|
|
694
|
-
return /* @__PURE__ */
|
|
694
|
+
]), fe = v && V ? v(V) : void 0;
|
|
695
|
+
return /* @__PURE__ */ R(r, {
|
|
695
696
|
title: F ? P?.layout?.editTitle ?? "Edit toolset" : P?.layout?.createTitle ?? "Create toolset",
|
|
696
|
-
onBack:
|
|
697
|
+
onBack: _,
|
|
697
698
|
backAriaLabel: P?.layout?.backAriaLabel ?? "Back to catalog",
|
|
698
|
-
isSaving:
|
|
699
|
+
isSaving: W,
|
|
699
700
|
labels: { savingStatusLabel: P?.layout?.savingStatusLabel ?? "Saving" },
|
|
700
|
-
actions: /* @__PURE__ */
|
|
701
|
+
actions: /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(S, {
|
|
701
702
|
label: P?.layout?.cancelLabel ?? "Cancel",
|
|
702
|
-
onClick:
|
|
703
|
-
}), /* @__PURE__ */
|
|
703
|
+
onClick: _
|
|
704
|
+
}), /* @__PURE__ */ R(C, {
|
|
704
705
|
label: F ? P?.layout?.saveLabel ?? "Save" : P?.layout?.createLabel ?? "Create",
|
|
705
|
-
disabled:
|
|
706
|
-
onClick:
|
|
706
|
+
disabled: ue,
|
|
707
|
+
onClick: le
|
|
707
708
|
})] }),
|
|
708
|
-
leftContent: /* @__PURE__ */
|
|
709
|
+
leftContent: /* @__PURE__ */ R(i, {
|
|
709
710
|
title: P?.layout?.metadataSectionTitle ?? "Metadata",
|
|
710
|
-
className:
|
|
711
|
-
children: /* @__PURE__ */
|
|
712
|
-
form:
|
|
713
|
-
errors:
|
|
714
|
-
bucket:
|
|
715
|
-
FileManagerModal:
|
|
716
|
-
resolveIconUrl:
|
|
717
|
-
allowedMimeTypes:
|
|
718
|
-
maxFileSizeBytes:
|
|
711
|
+
className: h("border-0 p-4 desktop:p-6", B.metadataSection),
|
|
712
|
+
children: /* @__PURE__ */ R(ce, {
|
|
713
|
+
form: H,
|
|
714
|
+
errors: de,
|
|
715
|
+
bucket: T,
|
|
716
|
+
FileManagerModal: te,
|
|
717
|
+
resolveIconUrl: E,
|
|
718
|
+
allowedMimeTypes: D,
|
|
719
|
+
maxFileSizeBytes: O,
|
|
719
720
|
availableLocaleOptions: N,
|
|
720
721
|
onChange: Z,
|
|
721
722
|
labels: P?.general
|
|
722
723
|
})
|
|
723
724
|
}),
|
|
724
|
-
rightContent: /* @__PURE__ */
|
|
725
|
+
rightContent: /* @__PURE__ */ R(i, {
|
|
725
726
|
title: P?.layout?.setupSectionTitle ?? "Setup",
|
|
726
|
-
className:
|
|
727
|
-
children: /* @__PURE__ */
|
|
728
|
-
form:
|
|
729
|
-
errors:
|
|
730
|
-
isSaving:
|
|
731
|
-
toolsetId:
|
|
727
|
+
className: h("border-0 p-4 desktop:p-6", B.setupSection),
|
|
728
|
+
children: /* @__PURE__ */ R(pe, {
|
|
729
|
+
form: H,
|
|
730
|
+
errors: de,
|
|
731
|
+
isSaving: W,
|
|
732
|
+
toolsetId: V,
|
|
732
733
|
isEditMode: F,
|
|
733
|
-
connectUrl:
|
|
734
|
-
listToolNames:
|
|
735
|
-
authActions:
|
|
736
|
-
onOAuthLogin:
|
|
737
|
-
onNotifySuccess:
|
|
738
|
-
onNotifyError:
|
|
734
|
+
connectUrl: fe,
|
|
735
|
+
listToolNames: y,
|
|
736
|
+
authActions: b,
|
|
737
|
+
onOAuthLogin: x,
|
|
738
|
+
onNotifySuccess: ee,
|
|
739
|
+
onNotifyError: w,
|
|
739
740
|
onChange: Z,
|
|
740
741
|
onAuthChange: Q,
|
|
741
|
-
onEnsureSaved:
|
|
742
|
+
onEnsureSaved: se,
|
|
742
743
|
labels: P?.settings
|
|
743
744
|
})
|
|
744
745
|
})
|
|
745
746
|
});
|
|
746
747
|
};
|
|
747
748
|
//#endregion
|
|
748
|
-
export {
|
|
749
|
+
export { W as AUTH_TYPE_ICONS, H as DEFAULT_TOOLSET_NAME, U as DEFAULT_TOOLSET_VERSION, ce as GeneralForm, B as TOOLSET_EDITOR_CLASS, ve as ToolsetEditor, $ as ToolsetOAuthLoginStatus, V as ToolsetTransportType, K as getDefaultToolsetForm, G as getStorageSafeUniqueToolsetName, Q as isToolsetAuthValid, ae as isToolsetFormValid, J as isValidEndpointUrl, X as normalizeReturnedEndpointUrl };
|
|
@@ -8,6 +8,12 @@ import { ToolsetOAuthLoginHandler } from './toolset-oauth-login';
|
|
|
8
8
|
export interface ToolsetEditorValidationLabels {
|
|
9
9
|
/** Message for a missing name. Defaults to `'Name is required'`. */
|
|
10
10
|
nameRequired?: string;
|
|
11
|
+
/** Message for a name over the shared length limit. Defaults to `'Use 256 characters or fewer.'`. */
|
|
12
|
+
nameTooLong?: string;
|
|
13
|
+
/** Message for a name containing control characters. Defaults to `'Remove line breaks, tabs and other control characters.'`. */
|
|
14
|
+
nameControlCharacters?: string;
|
|
15
|
+
/** Message for a description over the shared length limit. Defaults to `'Use 2000 characters or fewer.'`. */
|
|
16
|
+
descriptionTooLong?: string;
|
|
11
17
|
/** Message for a malformed version. Defaults to `'Version may only contain letters, digits, dots, underscores, and dashes'`. */
|
|
12
18
|
versionInvalid?: string;
|
|
13
19
|
/** Message for a missing endpoint. Defaults to `'Endpoint is required'`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolset-editor-props.d.ts","sourceRoot":"","sources":["../../src/models/toolset-editor-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iCAAiC,EACjC,kCAAkC,EACnC,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,KAAK,EACV,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EAChB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAEtE,yFAAyF;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/models/toolset-form.d.ts
CHANGED
|
@@ -58,6 +58,8 @@ export interface ToolsetFormErrors {
|
|
|
58
58
|
name?: string;
|
|
59
59
|
/** Validation message for the Metadata version field. */
|
|
60
60
|
version?: string;
|
|
61
|
+
/** Validation message for the Metadata description field. */
|
|
62
|
+
description?: string;
|
|
61
63
|
/** Validation message for the Setup endpoint field. */
|
|
62
64
|
endpoint?: string;
|
|
63
65
|
/** Validation message for the API-key header field. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolset-form.d.ts","sourceRoot":"","sources":["../../src/models/toolset-form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,4BAA4B,CAAC;AACpF,OAAO,KAAK,EACV,gBAAgB,EAChB,uBAAuB,EACvB,SAAS,EACV,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAElE,MAAM,WAAW,mBAAmB;IAClC,yDAAyD;IACzD,kBAAkB,EAAE,gBAAgB,CAAC;IACrC,qFAAqF;IACrF,SAAS,EAAE,SAAS,CAAC;IACrB,uEAAuE;IACvE,UAAU,EAAE,OAAO,CAAC;IACpB,gEAAgE;IAChE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kDAAkD;IAClD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mEAAmE;IACnE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yCAAyC;IACzC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,iCAAiC;IACjC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,4CAA4C;IAC5C,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,uEAAuE;IACvE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wEAAwE;IACxE,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,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nostic form for authoring and editing a DIAL MCP toolset",
|
|
4
|
-
"version": "1.2.0-dev.
|
|
4
|
+
"version": "1.2.0-dev.170",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@tabler/icons-react": "^3.44.0",
|
|
21
|
-
"@epam/ai-dial-builder-form": "1.2.0-dev.
|
|
21
|
+
"@epam/ai-dial-builder-form": "1.2.0-dev.170"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@epam/ai-dial-chat-hooks": "1.2.0-dev.
|
|
25
|
-
"@epam/ai-dial-chat-shared": "1.2.0-dev.
|
|
24
|
+
"@epam/ai-dial-chat-hooks": "1.2.0-dev.170",
|
|
25
|
+
"@epam/ai-dial-chat-shared": "1.2.0-dev.170",
|
|
26
26
|
"@epam/ai-dial-ui-kit": "^0.15.0-dev.20",
|
|
27
27
|
"react": "^19.2.8"
|
|
28
28
|
},
|