@epam/ai-dial-toolset-editor 1.2.0-dev.164 → 1.2.0-dev.173
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/GeneralForm/GeneralForm.d.ts.map +1 -1
- package/components/ToolsetEditor/ToolsetEditor.d.ts.map +1 -1
- package/index.js +260 -261
- package/models/toolset-editor-props.d.ts +6 -0
- package/models/toolset-editor-props.d.ts.map +1 -1
- package/models/toolset-form.d.ts +2 -0
- package/models/toolset-form.d.ts.map +1 -1
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeneralForm.d.ts","sourceRoot":"","sources":["../../../src/components/GeneralForm/GeneralForm.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"GeneralForm.d.ts","sourceRoot":"","sources":["../../../src/components/GeneralForm/GeneralForm.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AA+DxE,8IAA8I;AAC9I,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAuE5C,CAAC"}
|
|
@@ -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",
|
|
@@ -118,12 +118,10 @@ var z = {
|
|
|
118
118
|
deleteConfirmMultipleText: "Do you want to delete following",
|
|
119
119
|
deleteConfirmItemsLabel: "items?",
|
|
120
120
|
deleteConfirmLabel: "Delete",
|
|
121
|
-
deleteCancelLabel: "Cancel"
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
let [h, g] = M(!1), _ = m?.form ?? ie, v = m?.avatarPicker ?? ae, y = A(() => o(t.iconUrl), [t.iconUrl, o]);
|
|
126
|
-
return /* @__PURE__ */ R(ne, { children: [/* @__PURE__ */ L(n, {
|
|
121
|
+
deleteCancelLabel: "Cancel"
|
|
122
|
+
}, 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 }) => {
|
|
123
|
+
let [h, g] = M(!1), _ = m?.form ?? oe, v = m?.avatarPicker ?? se, y = j(() => o(t.iconUrl), [t.iconUrl, o]);
|
|
124
|
+
return /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(n, {
|
|
127
125
|
values: {
|
|
128
126
|
name: t.name,
|
|
129
127
|
description: t.description,
|
|
@@ -140,7 +138,7 @@ var z = {
|
|
|
140
138
|
onAddAvatarClick: () => g(!0),
|
|
141
139
|
labels: _,
|
|
142
140
|
availableLocaleOptions: u
|
|
143
|
-
}), /* @__PURE__ */
|
|
141
|
+
}), /* @__PURE__ */ R(e, {
|
|
144
142
|
isOpen: h,
|
|
145
143
|
onClose: () => g(!1),
|
|
146
144
|
onAttach: (e) => {
|
|
@@ -155,47 +153,47 @@ var z = {
|
|
|
155
153
|
})] });
|
|
156
154
|
}, $ = /* @__PURE__ */ function(e) {
|
|
157
155
|
return e.Success = "success", e.Cancelled = "cancelled", e.PopupBlocked = "popup-blocked", e.InvalidConfig = "invalid-config", e.Failed = "failed", e;
|
|
158
|
-
}({}),
|
|
159
|
-
let [
|
|
160
|
-
|
|
156
|
+
}({}), 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 }) => {
|
|
157
|
+
let [T, E] = M(!1), [O, k] = M(!1), A = e.isLoggedIn || n || T, j = J(a) && Q(e, i) && !A, ne = (t) => {
|
|
158
|
+
A || t === e.authenticationType || h({
|
|
161
159
|
authenticationType: t,
|
|
162
|
-
withLogin:
|
|
160
|
+
withLogin: le(t, !!e.clientId?.trim())
|
|
163
161
|
});
|
|
164
|
-
},
|
|
165
|
-
|
|
166
|
-
},
|
|
167
|
-
switch (e.auth != null &&
|
|
162
|
+
}, N = (e) => {
|
|
163
|
+
h({ withLogin: e });
|
|
164
|
+
}, P = (e) => {
|
|
165
|
+
switch (e.auth != null && h(e.auth), e.status) {
|
|
168
166
|
case $.Success:
|
|
169
|
-
|
|
167
|
+
h({ isLoggedIn: !0 }), f(C?.loginSuccessMessage ?? "Successfully logged in.");
|
|
170
168
|
return;
|
|
171
169
|
case $.PopupBlocked:
|
|
172
|
-
|
|
170
|
+
p(C?.errorPopupBlocked ?? "The login popup was blocked by your browser. Please allow popups for this site and try again.");
|
|
173
171
|
return;
|
|
174
172
|
case $.InvalidConfig:
|
|
175
|
-
|
|
173
|
+
p(C?.errorOAuthConfigMissing ?? "The OAuth provider did not return a valid client configuration. Please check the endpoint or contact your administrator.");
|
|
176
174
|
return;
|
|
177
175
|
case $.Failed:
|
|
178
|
-
|
|
176
|
+
p(C?.errorLoginFailed ?? "Failed to log in. Please check your credentials and try again.", e.traceId);
|
|
179
177
|
return;
|
|
180
178
|
case $.Cancelled: return;
|
|
181
179
|
}
|
|
182
|
-
},
|
|
183
|
-
if (!
|
|
180
|
+
}, F = async () => {
|
|
181
|
+
if (!j) return;
|
|
184
182
|
if (e.authenticationType === o.OAuth) {
|
|
185
|
-
|
|
183
|
+
E(!0);
|
|
186
184
|
try {
|
|
187
|
-
|
|
185
|
+
P(await d({
|
|
188
186
|
auth: e,
|
|
189
|
-
ensureSaved:
|
|
187
|
+
ensureSaved: g
|
|
190
188
|
}));
|
|
191
189
|
} finally {
|
|
192
|
-
|
|
190
|
+
E(!1);
|
|
193
191
|
}
|
|
194
192
|
return;
|
|
195
193
|
}
|
|
196
|
-
let t = await
|
|
194
|
+
let t = await g();
|
|
197
195
|
if (t) {
|
|
198
|
-
|
|
196
|
+
E(!0);
|
|
199
197
|
try {
|
|
200
198
|
let n = {
|
|
201
199
|
url: t,
|
|
@@ -203,273 +201,273 @@ var z = {
|
|
|
203
201
|
authenticationType: e.authenticationType,
|
|
204
202
|
apiKey: e.apiKey?.trim()
|
|
205
203
|
};
|
|
206
|
-
await l.login(t, n),
|
|
204
|
+
await l.login(t, n), h({ isLoggedIn: !0 }), f(C?.loginSuccessMessage ?? "Successfully logged in.");
|
|
207
205
|
} catch (e) {
|
|
208
206
|
let { traceId: t } = await u(e);
|
|
209
|
-
|
|
207
|
+
p(C?.errorLoginFailed ?? "Failed to log in. Please check your credentials and try again.", t);
|
|
210
208
|
} finally {
|
|
211
|
-
|
|
209
|
+
E(!1);
|
|
212
210
|
}
|
|
213
211
|
}
|
|
214
|
-
},
|
|
215
|
-
|
|
212
|
+
}, L = async () => {
|
|
213
|
+
E(!0);
|
|
216
214
|
try {
|
|
217
215
|
let t = {
|
|
218
216
|
url: r,
|
|
219
217
|
credentialsLevel: s.User,
|
|
220
218
|
authenticationType: e.authenticationType
|
|
221
219
|
};
|
|
222
|
-
await l.logout(r, t),
|
|
220
|
+
await l.logout(r, t), h({ isLoggedIn: !1 }), k(!1), f(C?.logoutSuccessMessage ?? "Successfully logged out.");
|
|
223
221
|
} catch (e) {
|
|
224
222
|
let { traceId: t } = await u(e);
|
|
225
|
-
|
|
223
|
+
p(C?.errorLogoutFailed ?? "Failed to log out. Please try again.", t);
|
|
226
224
|
} finally {
|
|
227
|
-
|
|
225
|
+
E(!1);
|
|
228
226
|
}
|
|
229
|
-
},
|
|
227
|
+
}, B = () => e.isLoggedIn ? /* @__PURE__ */ R("div", {
|
|
230
228
|
className: "flex",
|
|
231
|
-
children: /* @__PURE__ */
|
|
232
|
-
label:
|
|
233
|
-
iconBefore: /* @__PURE__ */
|
|
234
|
-
size:
|
|
235
|
-
stroke:
|
|
229
|
+
children: /* @__PURE__ */ R(S, {
|
|
230
|
+
label: C?.logOutLabel ?? "Log out",
|
|
231
|
+
iconBefore: /* @__PURE__ */ R(I, {
|
|
232
|
+
size: y.MD,
|
|
233
|
+
stroke: b
|
|
236
234
|
}),
|
|
237
|
-
onClick: () =>
|
|
238
|
-
disabled: n ||
|
|
235
|
+
onClick: () => k(!0),
|
|
236
|
+
disabled: n || T
|
|
239
237
|
})
|
|
240
|
-
}) : /* @__PURE__ */
|
|
238
|
+
}) : /* @__PURE__ */ R("div", {
|
|
241
239
|
className: "flex",
|
|
242
|
-
children: /* @__PURE__ */
|
|
243
|
-
label:
|
|
244
|
-
iconBefore: /* @__PURE__ */
|
|
245
|
-
size:
|
|
246
|
-
stroke:
|
|
240
|
+
children: /* @__PURE__ */ R(S, {
|
|
241
|
+
label: C?.logInLabel ?? "Log in",
|
|
242
|
+
iconBefore: /* @__PURE__ */ R(re, {
|
|
243
|
+
size: y.MD,
|
|
244
|
+
stroke: b
|
|
247
245
|
}),
|
|
248
|
-
onClick:
|
|
249
|
-
disabled: !
|
|
246
|
+
onClick: F,
|
|
247
|
+
disabled: !j
|
|
250
248
|
})
|
|
251
249
|
});
|
|
252
|
-
return /* @__PURE__ */
|
|
250
|
+
return /* @__PURE__ */ z("section", {
|
|
253
251
|
className: "flex flex-col gap-2",
|
|
254
252
|
children: [
|
|
255
|
-
/* @__PURE__ */
|
|
253
|
+
/* @__PURE__ */ R("h3", {
|
|
256
254
|
className: "dial-h3-text",
|
|
257
|
-
children:
|
|
255
|
+
children: C?.sectionTitle ?? "Authentication"
|
|
258
256
|
}),
|
|
259
|
-
/* @__PURE__ */
|
|
260
|
-
"aria-label":
|
|
257
|
+
/* @__PURE__ */ R(te, {
|
|
258
|
+
"aria-label": C?.sectionTitle ?? "Authentication",
|
|
261
259
|
value: e.authenticationType,
|
|
262
|
-
onChange: (e) =>
|
|
260
|
+
onChange: (e) => ne(e),
|
|
263
261
|
segmentClassName: "px-2",
|
|
264
262
|
items: [
|
|
265
263
|
o.None,
|
|
266
264
|
o.OAuth,
|
|
267
265
|
o.ApiKey
|
|
268
266
|
].map((t) => {
|
|
269
|
-
let n =
|
|
267
|
+
let n = W[t];
|
|
270
268
|
return {
|
|
271
269
|
value: t,
|
|
272
|
-
label: /* @__PURE__ */
|
|
270
|
+
label: /* @__PURE__ */ z("div", {
|
|
273
271
|
className: "flex items-center gap-2",
|
|
274
|
-
children: [/* @__PURE__ */
|
|
272
|
+
children: [/* @__PURE__ */ R(n, {
|
|
275
273
|
className: "shrink-0",
|
|
276
|
-
size:
|
|
277
|
-
stroke:
|
|
274
|
+
size: y.SM,
|
|
275
|
+
stroke: b,
|
|
278
276
|
"aria-hidden": !0
|
|
279
|
-
}), /* @__PURE__ */
|
|
277
|
+
}), /* @__PURE__ */ R("span", {
|
|
280
278
|
className: "sr-only desktop:not-sr-only",
|
|
281
|
-
children:
|
|
279
|
+
children: ue(t, C)
|
|
282
280
|
})]
|
|
283
281
|
}),
|
|
284
|
-
disabled:
|
|
282
|
+
disabled: A && e.authenticationType !== t
|
|
285
283
|
};
|
|
286
284
|
})
|
|
287
285
|
}),
|
|
288
|
-
e.authenticationType === o.None && /* @__PURE__ */
|
|
286
|
+
e.authenticationType === o.None && /* @__PURE__ */ R("p", {
|
|
289
287
|
className: "dial-small-text pt-2 text-secondary",
|
|
290
|
-
children:
|
|
288
|
+
children: C?.openAccessDescription ?? "Open endpoint, no credentials"
|
|
291
289
|
}),
|
|
292
|
-
e.authenticationType === o.OAuth && /* @__PURE__ */
|
|
290
|
+
e.authenticationType === o.OAuth && /* @__PURE__ */ z("div", {
|
|
293
291
|
className: "flex flex-col gap-3 pt-2",
|
|
294
292
|
children: [
|
|
295
|
-
/* @__PURE__ */
|
|
293
|
+
/* @__PURE__ */ z("div", {
|
|
296
294
|
className: "flex flex-col gap-2",
|
|
297
|
-
children: [/* @__PURE__ */
|
|
295
|
+
children: [/* @__PURE__ */ R(w, {
|
|
298
296
|
name: "oauth-login-mode",
|
|
299
297
|
id: "oauth-with-login",
|
|
300
298
|
value: c.WithLogin,
|
|
301
|
-
labelProps: { label:
|
|
299
|
+
labelProps: { label: C?.withLoginOAuthLabel ?? "Standard login" },
|
|
302
300
|
isSelected: e.withLogin === c.WithLogin,
|
|
303
|
-
disabled:
|
|
304
|
-
onChange:
|
|
305
|
-
}), /* @__PURE__ */
|
|
301
|
+
disabled: A,
|
|
302
|
+
onChange: N
|
|
303
|
+
}), /* @__PURE__ */ R(w, {
|
|
306
304
|
name: "oauth-login-mode",
|
|
307
305
|
id: "oauth-with-config",
|
|
308
306
|
value: c.WithConfig,
|
|
309
|
-
labelProps: { label:
|
|
307
|
+
labelProps: { label: C?.withConfigOAuthLabel ?? "Custom login" },
|
|
310
308
|
isSelected: e.withLogin === c.WithConfig,
|
|
311
|
-
disabled:
|
|
312
|
-
onChange:
|
|
309
|
+
disabled: A,
|
|
310
|
+
onChange: N
|
|
313
311
|
})]
|
|
314
312
|
}),
|
|
315
|
-
e.withLogin === c.WithConfig && /* @__PURE__ */
|
|
313
|
+
e.withLogin === c.WithConfig && /* @__PURE__ */ z("div", {
|
|
316
314
|
className: "flex flex-col gap-3",
|
|
317
315
|
children: [
|
|
318
|
-
/* @__PURE__ */
|
|
316
|
+
/* @__PURE__ */ R(x, {
|
|
319
317
|
id: "toolset-client-id",
|
|
320
318
|
value: e.clientId ?? "",
|
|
321
|
-
onChange: (e) =>
|
|
319
|
+
onChange: (e) => h({ clientId: e ?? "" }),
|
|
322
320
|
labelProps: {
|
|
323
|
-
label:
|
|
321
|
+
label: C?.clientIdLabel ?? "Client ID",
|
|
324
322
|
required: !0
|
|
325
323
|
},
|
|
326
|
-
placeholder:
|
|
324
|
+
placeholder: C?.clientIdPlaceholder ?? "Enter client ID",
|
|
327
325
|
error: t.clientId || void 0,
|
|
328
326
|
invalid: !!t.clientId,
|
|
329
|
-
disabled:
|
|
327
|
+
disabled: A
|
|
330
328
|
}),
|
|
331
|
-
/* @__PURE__ */
|
|
329
|
+
/* @__PURE__ */ R(ee, {
|
|
332
330
|
id: "toolset-client-secret",
|
|
333
331
|
value: e.clientSecret ?? "",
|
|
334
|
-
onChange: (e) =>
|
|
332
|
+
onChange: (e) => h({ clientSecret: e ?? "" }),
|
|
335
333
|
labelProps: {
|
|
336
|
-
label:
|
|
334
|
+
label: C?.clientSecretLabel ?? "Client secret",
|
|
337
335
|
required: !i
|
|
338
336
|
},
|
|
339
|
-
placeholder:
|
|
340
|
-
showPasswordLabel:
|
|
341
|
-
hidePasswordLabel:
|
|
337
|
+
placeholder: C?.clientSecretPlaceholder ?? "Enter client secret",
|
|
338
|
+
showPasswordLabel: C?.showClientSecretLabel ?? "Show client secret",
|
|
339
|
+
hidePasswordLabel: C?.hideClientSecretLabel ?? "Hide client secret",
|
|
342
340
|
error: t.clientSecret || void 0,
|
|
343
341
|
invalid: !!t.clientSecret,
|
|
344
|
-
disabled:
|
|
342
|
+
disabled: A
|
|
345
343
|
}),
|
|
346
|
-
/* @__PURE__ */
|
|
344
|
+
/* @__PURE__ */ R(x, {
|
|
347
345
|
id: "toolset-authorization-endpoint",
|
|
348
346
|
value: e.authorizationEndpoint ?? "",
|
|
349
|
-
onChange: (e) =>
|
|
350
|
-
labelProps: { label:
|
|
351
|
-
placeholder:
|
|
347
|
+
onChange: (e) => h({ authorizationEndpoint: e ?? "" }),
|
|
348
|
+
labelProps: { label: C?.authorizationEndpointLabel ?? "Authorization endpoint" },
|
|
349
|
+
placeholder: C?.authorizationEndpointPlaceholder ?? "Enter authorization endpoint",
|
|
352
350
|
error: t.authorizationEndpoint || void 0,
|
|
353
351
|
invalid: !!t.authorizationEndpoint,
|
|
354
|
-
disabled:
|
|
352
|
+
disabled: A
|
|
355
353
|
}),
|
|
356
|
-
/* @__PURE__ */
|
|
354
|
+
/* @__PURE__ */ R(x, {
|
|
357
355
|
id: "toolset-token-endpoint",
|
|
358
356
|
value: e.tokenEndpoint ?? "",
|
|
359
|
-
onChange: (e) =>
|
|
360
|
-
labelProps: { label:
|
|
361
|
-
placeholder:
|
|
357
|
+
onChange: (e) => h({ tokenEndpoint: e ?? "" }),
|
|
358
|
+
labelProps: { label: C?.tokenEndpointLabel ?? "Token endpoint" },
|
|
359
|
+
placeholder: C?.tokenEndpointPlaceholder ?? "Enter token endpoint",
|
|
362
360
|
error: t.tokenEndpoint || void 0,
|
|
363
361
|
invalid: !!t.tokenEndpoint,
|
|
364
|
-
disabled:
|
|
362
|
+
disabled: A
|
|
365
363
|
}),
|
|
366
|
-
/* @__PURE__ */
|
|
364
|
+
/* @__PURE__ */ R(D, {
|
|
367
365
|
id: "toolset-scopes",
|
|
368
|
-
labelProps: { label:
|
|
369
|
-
placeholder:
|
|
366
|
+
labelProps: { label: C?.scopesLabel ?? "Scopes" },
|
|
367
|
+
placeholder: C?.scopesPlaceholder ?? "Enter scopes",
|
|
370
368
|
value: e.scopes ?? [],
|
|
371
|
-
onChange: (e) =>
|
|
372
|
-
disabled:
|
|
373
|
-
tagClassName:
|
|
369
|
+
onChange: (e) => h({ scopes: e }),
|
|
370
|
+
disabled: A,
|
|
371
|
+
tagClassName: m
|
|
374
372
|
})
|
|
375
373
|
]
|
|
376
374
|
}),
|
|
377
|
-
|
|
375
|
+
B()
|
|
378
376
|
]
|
|
379
377
|
}),
|
|
380
|
-
e.authenticationType === o.ApiKey && /* @__PURE__ */
|
|
378
|
+
e.authenticationType === o.ApiKey && /* @__PURE__ */ z("div", {
|
|
381
379
|
className: "flex flex-col gap-3 pt-2",
|
|
382
380
|
children: [
|
|
383
|
-
/* @__PURE__ */
|
|
381
|
+
/* @__PURE__ */ z("div", {
|
|
384
382
|
className: "flex flex-col gap-2",
|
|
385
|
-
children: [/* @__PURE__ */
|
|
383
|
+
children: [/* @__PURE__ */ R(w, {
|
|
386
384
|
name: "apikey-login-mode",
|
|
387
385
|
id: "apikey-with-login",
|
|
388
386
|
value: c.WithLogin,
|
|
389
|
-
labelProps: { label:
|
|
387
|
+
labelProps: { label: C?.withLoginLabel ?? "With login" },
|
|
390
388
|
isSelected: e.withLogin === c.WithLogin,
|
|
391
|
-
disabled:
|
|
392
|
-
onChange:
|
|
393
|
-
}), /* @__PURE__ */
|
|
389
|
+
disabled: A,
|
|
390
|
+
onChange: N
|
|
391
|
+
}), /* @__PURE__ */ R(w, {
|
|
394
392
|
name: "apikey-login-mode",
|
|
395
393
|
id: "apikey-without-login",
|
|
396
394
|
value: c.WithoutLogin,
|
|
397
|
-
labelProps: { label:
|
|
395
|
+
labelProps: { label: C?.withoutLoginLabel ?? "Without login" },
|
|
398
396
|
isSelected: e.withLogin === c.WithoutLogin,
|
|
399
|
-
disabled:
|
|
400
|
-
onChange:
|
|
397
|
+
disabled: A,
|
|
398
|
+
onChange: N
|
|
401
399
|
})]
|
|
402
400
|
}),
|
|
403
|
-
/* @__PURE__ */
|
|
401
|
+
/* @__PURE__ */ z("div", {
|
|
404
402
|
className: "flex flex-col gap-3",
|
|
405
|
-
children: [/* @__PURE__ */
|
|
403
|
+
children: [/* @__PURE__ */ R(x, {
|
|
406
404
|
id: "toolset-key-header",
|
|
407
405
|
value: e.keyHeader ?? "",
|
|
408
|
-
onChange: (e) =>
|
|
406
|
+
onChange: (e) => h({ keyHeader: e ?? "" }),
|
|
409
407
|
labelProps: {
|
|
410
|
-
label:
|
|
408
|
+
label: C?.keyHeaderLabel ?? "API Key parameter name",
|
|
411
409
|
required: !0
|
|
412
410
|
},
|
|
413
|
-
placeholder:
|
|
411
|
+
placeholder: C?.keyHeaderPlaceholder ?? "Enter API key parameter name",
|
|
414
412
|
error: t.keyHeader || void 0,
|
|
415
413
|
invalid: !!t.keyHeader,
|
|
416
|
-
disabled:
|
|
417
|
-
}), e.withLogin === c.WithLogin && /* @__PURE__ */
|
|
414
|
+
disabled: A
|
|
415
|
+
}), e.withLogin === c.WithLogin && /* @__PURE__ */ R(ee, {
|
|
418
416
|
id: "toolset-api-key",
|
|
419
417
|
value: e.apiKey ?? "",
|
|
420
|
-
onChange: (e) =>
|
|
418
|
+
onChange: (e) => h({ apiKey: e ?? "" }),
|
|
421
419
|
labelProps: {
|
|
422
|
-
label:
|
|
420
|
+
label: C?.apiKeyLabel ?? "API key",
|
|
423
421
|
required: !0
|
|
424
422
|
},
|
|
425
|
-
placeholder:
|
|
426
|
-
showPasswordLabel:
|
|
427
|
-
hidePasswordLabel:
|
|
423
|
+
placeholder: C?.apiKeyPlaceholder ?? "Enter API key",
|
|
424
|
+
showPasswordLabel: C?.showApiKeyLabel ?? "Show API key",
|
|
425
|
+
hidePasswordLabel: C?.hideApiKeyLabel ?? "Hide API key",
|
|
428
426
|
error: t.apiKey || void 0,
|
|
429
427
|
invalid: !!t.apiKey,
|
|
430
|
-
disabled:
|
|
428
|
+
disabled: A
|
|
431
429
|
})]
|
|
432
430
|
}),
|
|
433
|
-
e.withLogin !== c.WithoutLogin &&
|
|
431
|
+
e.withLogin !== c.WithoutLogin && B()
|
|
434
432
|
]
|
|
435
433
|
}),
|
|
436
|
-
|
|
437
|
-
open:
|
|
438
|
-
header:
|
|
439
|
-
description:
|
|
440
|
-
confirmLabel:
|
|
441
|
-
cancelLabel:
|
|
442
|
-
variant:
|
|
443
|
-
isLoading:
|
|
444
|
-
disableConfirmButton:
|
|
445
|
-
onConfirm:
|
|
446
|
-
onCancel: () =>
|
|
447
|
-
onClose: () =>
|
|
434
|
+
O && /* @__PURE__ */ R(_, {
|
|
435
|
+
open: O,
|
|
436
|
+
header: C?.logoutConfirmTitle ?? "Log out?",
|
|
437
|
+
description: C?.logoutConfirmDescription ?? "Are you sure you want to log out? You will need to re-enter your credentials to use this toolset again.",
|
|
438
|
+
confirmLabel: C?.logOutLabel ?? "Log out",
|
|
439
|
+
cancelLabel: C?.cancelLabel ?? "Cancel",
|
|
440
|
+
variant: v.Danger,
|
|
441
|
+
isLoading: T,
|
|
442
|
+
disableConfirmButton: T,
|
|
443
|
+
onConfirm: L,
|
|
444
|
+
onCancel: () => k(!1),
|
|
445
|
+
onClose: () => k(!1)
|
|
448
446
|
})
|
|
449
447
|
]
|
|
450
448
|
});
|
|
451
|
-
},
|
|
452
|
-
let { isCopied: r, copy: i } =
|
|
453
|
-
return /* @__PURE__ */
|
|
454
|
-
className:
|
|
449
|
+
}, fe = O(({ url: e, className: t, labels: n }) => {
|
|
450
|
+
let { isCopied: r, copy: i } = g(e), a = n?.copiedLabel ?? "Copied!";
|
|
451
|
+
return /* @__PURE__ */ z("div", {
|
|
452
|
+
className: h("flex flex-col gap-3", t),
|
|
455
453
|
children: [
|
|
456
|
-
/* @__PURE__ */
|
|
454
|
+
/* @__PURE__ */ z("div", {
|
|
457
455
|
className: "flex flex-col gap-1",
|
|
458
|
-
children: [/* @__PURE__ */
|
|
456
|
+
children: [/* @__PURE__ */ R("p", {
|
|
459
457
|
className: "dial-body-semi-text text-start text-primary",
|
|
460
458
|
children: n?.title ?? "Connect toolset"
|
|
461
|
-
}), /* @__PURE__ */
|
|
459
|
+
}), /* @__PURE__ */ R("p", {
|
|
462
460
|
className: "dial-small-text text-start text-secondary",
|
|
463
461
|
children: n?.description ?? "Copy endpoint URL to easily integrate toolset into your workflows"
|
|
464
462
|
})]
|
|
465
463
|
}),
|
|
466
|
-
/* @__PURE__ */
|
|
464
|
+
/* @__PURE__ */ R("div", { children: /* @__PURE__ */ R(d, {
|
|
467
465
|
copiedLabel: a,
|
|
468
466
|
copyLabel: n?.copyLabel ?? "Copy URL",
|
|
469
467
|
isCopied: r,
|
|
470
468
|
onClick: i
|
|
471
469
|
}) }),
|
|
472
|
-
/* @__PURE__ */
|
|
470
|
+
/* @__PURE__ */ R("span", {
|
|
473
471
|
role: "status",
|
|
474
472
|
"aria-live": "polite",
|
|
475
473
|
className: "sr-only",
|
|
@@ -477,15 +475,15 @@ var z = {
|
|
|
477
475
|
})
|
|
478
476
|
]
|
|
479
477
|
});
|
|
480
|
-
}),
|
|
481
|
-
let [g, _] = M(null), v = !!a && !!r,
|
|
482
|
-
value:
|
|
478
|
+
}), 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 }) => {
|
|
479
|
+
let [g, _] = M(null), v = !!a && !!r, y = j(() => [{
|
|
480
|
+
value: V.Http,
|
|
483
481
|
label: "HTTP"
|
|
484
482
|
}, {
|
|
485
|
-
value:
|
|
483
|
+
value: V.Sse,
|
|
486
484
|
label: "SSE"
|
|
487
485
|
}], []);
|
|
488
|
-
return
|
|
486
|
+
return A(() => {
|
|
489
487
|
if (!r || !o || !Q(e.auth, i)) {
|
|
490
488
|
_(null);
|
|
491
489
|
return;
|
|
@@ -507,10 +505,10 @@ var z = {
|
|
|
507
505
|
e.auth,
|
|
508
506
|
e.endpoint,
|
|
509
507
|
o
|
|
510
|
-
]), /* @__PURE__ */
|
|
508
|
+
]), /* @__PURE__ */ z("div", {
|
|
511
509
|
className: "flex max-w-[1060px] flex-col gap-4",
|
|
512
510
|
children: [
|
|
513
|
-
/* @__PURE__ */
|
|
511
|
+
/* @__PURE__ */ R(x, {
|
|
514
512
|
id: "toolset-endpoint",
|
|
515
513
|
value: e.endpoint,
|
|
516
514
|
onChange: (e) => d({ endpoint: e ?? "" }),
|
|
@@ -523,19 +521,19 @@ var z = {
|
|
|
523
521
|
error: t.endpoint || void 0,
|
|
524
522
|
invalid: !!t.endpoint
|
|
525
523
|
}),
|
|
526
|
-
/* @__PURE__ */
|
|
524
|
+
/* @__PURE__ */ R(T, {
|
|
527
525
|
labelProps: {
|
|
528
526
|
label: h?.protocolLabel ?? "Protocol",
|
|
529
527
|
required: !0
|
|
530
528
|
},
|
|
531
529
|
id: "toolset-protocol",
|
|
532
|
-
items:
|
|
530
|
+
items: y,
|
|
533
531
|
value: e.protocol,
|
|
534
532
|
onChange: (e) => {
|
|
535
533
|
d({ protocol: e });
|
|
536
534
|
}
|
|
537
535
|
}),
|
|
538
|
-
g ? /* @__PURE__ */
|
|
536
|
+
g ? /* @__PURE__ */ R(E, {
|
|
539
537
|
id: "toolset-allowed-tools",
|
|
540
538
|
multiple: !0,
|
|
541
539
|
searchable: !0,
|
|
@@ -548,15 +546,15 @@ var z = {
|
|
|
548
546
|
})),
|
|
549
547
|
value: e.allowedTools,
|
|
550
548
|
onChange: (e) => d({ allowedTools: e })
|
|
551
|
-
}) : /* @__PURE__ */
|
|
549
|
+
}) : /* @__PURE__ */ R(D, {
|
|
552
550
|
id: "toolset-allowed-tools",
|
|
553
551
|
labelProps: { label: h?.allowedToolsLabel ?? "Allowed tools" },
|
|
554
552
|
placeholder: h?.allowedToolsPlaceholder ?? "Add tools, comma separated",
|
|
555
553
|
value: e.allowedTools,
|
|
556
554
|
onChange: (e) => d({ allowedTools: e }),
|
|
557
|
-
tagClassName:
|
|
555
|
+
tagClassName: m
|
|
558
556
|
}),
|
|
559
|
-
/* @__PURE__ */
|
|
557
|
+
/* @__PURE__ */ R(de, {
|
|
560
558
|
auth: e.auth,
|
|
561
559
|
errors: t,
|
|
562
560
|
isSaving: n,
|
|
@@ -567,52 +565,53 @@ var z = {
|
|
|
567
565
|
onOAuthLogin: c,
|
|
568
566
|
onNotifySuccess: l,
|
|
569
567
|
onNotifyError: u,
|
|
570
|
-
onAuthChange:
|
|
571
|
-
onEnsureSaved:
|
|
568
|
+
onAuthChange: f,
|
|
569
|
+
onEnsureSaved: p,
|
|
572
570
|
labels: h?.auth
|
|
573
571
|
}),
|
|
574
|
-
v && /* @__PURE__ */
|
|
572
|
+
v && /* @__PURE__ */ R(fe, {
|
|
575
573
|
url: a ?? "",
|
|
576
574
|
labels: h?.connect,
|
|
577
575
|
className: "border-t border-tertiary pt-4"
|
|
578
576
|
})
|
|
579
577
|
]
|
|
580
578
|
});
|
|
581
|
-
},
|
|
579
|
+
}, me = [
|
|
582
580
|
"keyHeader",
|
|
583
581
|
"apiKey",
|
|
584
582
|
"clientId",
|
|
585
583
|
"clientSecret",
|
|
586
584
|
"authorizationEndpoint",
|
|
587
585
|
"tokenEndpoint"
|
|
588
|
-
],
|
|
586
|
+
], he = [
|
|
589
587
|
"name",
|
|
590
588
|
"version",
|
|
589
|
+
"description",
|
|
591
590
|
"endpoint",
|
|
592
|
-
...
|
|
593
|
-
],
|
|
591
|
+
...me
|
|
592
|
+
], ge = new Set(he), _e = (e) => {
|
|
594
593
|
let t = {};
|
|
595
|
-
for (let n of Object.keys(e))
|
|
594
|
+
for (let n of Object.keys(e)) ge.has(n) && (t[n] = !0);
|
|
596
595
|
return t;
|
|
597
|
-
},
|
|
598
|
-
let F = !!n, [
|
|
599
|
-
|
|
600
|
-
|
|
596
|
+
}, 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 }) => {
|
|
597
|
+
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);
|
|
598
|
+
A(() => {
|
|
599
|
+
U(e), X.current = e, K({}), Y({}), I("");
|
|
601
600
|
}, [e]);
|
|
602
|
-
let Z =
|
|
603
|
-
|
|
601
|
+
let Z = k((e) => {
|
|
602
|
+
U((t) => ({
|
|
604
603
|
...t,
|
|
605
604
|
...e
|
|
606
605
|
})), Y((t) => ({
|
|
607
606
|
...t,
|
|
608
|
-
...
|
|
607
|
+
..._e(e)
|
|
609
608
|
})), K((t) => {
|
|
610
609
|
let n = { ...t };
|
|
611
610
|
for (let t of Object.keys(e)) delete n[t];
|
|
612
611
|
return n;
|
|
613
612
|
});
|
|
614
|
-
}, []), Q =
|
|
615
|
-
|
|
613
|
+
}, []), Q = k((e) => {
|
|
614
|
+
U((t) => ({
|
|
616
615
|
...t,
|
|
617
616
|
auth: {
|
|
618
617
|
...t.auth,
|
|
@@ -620,66 +619,66 @@ var z = {
|
|
|
620
619
|
}
|
|
621
620
|
})), Y((t) => ({
|
|
622
621
|
...t,
|
|
623
|
-
...
|
|
622
|
+
..._e(e)
|
|
624
623
|
})), K((t) => {
|
|
625
624
|
let n = { ...t };
|
|
626
|
-
if ("authenticationType" in e || "withLogin" in e || "isLoggedIn" in e) for (let e of
|
|
625
|
+
if ("authenticationType" in e || "withLogin" in e || "isLoggedIn" in e) for (let e of me) delete n[e];
|
|
627
626
|
else for (let t of Object.keys(e)) delete n[t];
|
|
628
627
|
return n;
|
|
629
628
|
}), "isLoggedIn" in e && d();
|
|
630
|
-
}, [d]),
|
|
631
|
-
if (
|
|
632
|
-
|
|
629
|
+
}, [d]), oe = k(async () => {
|
|
630
|
+
if (V && X.current != null && JSON.stringify(X.current) === JSON.stringify(H)) return V;
|
|
631
|
+
G(!0);
|
|
633
632
|
try {
|
|
634
|
-
let e = await s(
|
|
635
|
-
return e ? (
|
|
633
|
+
let e = await s(H, V);
|
|
634
|
+
return e ? (V || I(e), X.current = H, await d(), e) : null;
|
|
636
635
|
} catch {
|
|
637
636
|
return null;
|
|
638
637
|
} finally {
|
|
639
|
-
|
|
638
|
+
G(!1);
|
|
640
639
|
}
|
|
641
640
|
}, [
|
|
641
|
+
H,
|
|
642
642
|
V,
|
|
643
|
-
B,
|
|
644
643
|
s,
|
|
645
644
|
d
|
|
646
|
-
]),
|
|
645
|
+
]), se = k(async () => await oe() ?? !1, [oe]), $ = k((e) => {
|
|
647
646
|
let n = P?.validation, r = {}, i = a(e, { validateVersionPattern: !0 });
|
|
648
|
-
return i.name === t.Required
|
|
649
|
-
}, [P, F]),
|
|
650
|
-
let e = $(
|
|
647
|
+
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;
|
|
648
|
+
}, [P, F]), le = k(async () => {
|
|
649
|
+
let e = $(H);
|
|
651
650
|
if (Object.keys(e).length > 0) {
|
|
652
651
|
K(e);
|
|
653
652
|
return;
|
|
654
653
|
}
|
|
655
|
-
K({}),
|
|
654
|
+
K({}), G(!0);
|
|
656
655
|
try {
|
|
657
|
-
let e = await s(
|
|
656
|
+
let e = await s(H, V);
|
|
658
657
|
if (!e) return;
|
|
659
|
-
await d(),
|
|
658
|
+
await d(), m(H);
|
|
660
659
|
try {
|
|
661
|
-
await l(e,
|
|
660
|
+
await l(e, H.auth), g();
|
|
662
661
|
} catch (e) {
|
|
663
662
|
let { traceId: t } = await u(e);
|
|
664
|
-
|
|
663
|
+
w(P?.settings?.auth?.errorLoginFailed ?? "Failed to log in. Please check your credentials and try again.", t);
|
|
665
664
|
}
|
|
666
665
|
} catch {} finally {
|
|
667
|
-
|
|
666
|
+
G(!1);
|
|
668
667
|
}
|
|
669
668
|
}, [
|
|
670
|
-
|
|
669
|
+
H,
|
|
671
670
|
$,
|
|
672
|
-
|
|
671
|
+
V,
|
|
673
672
|
s,
|
|
674
673
|
d,
|
|
675
|
-
f,
|
|
676
674
|
m,
|
|
675
|
+
g,
|
|
677
676
|
l,
|
|
678
|
-
|
|
677
|
+
w,
|
|
679
678
|
P
|
|
680
|
-
]),
|
|
681
|
-
let e = $(
|
|
682
|
-
for (let n of
|
|
679
|
+
]), ue = j(() => !ae(H, F), [H, F]), de = j(() => {
|
|
680
|
+
let e = $(H), t = { ...ie };
|
|
681
|
+
for (let n of he) {
|
|
683
682
|
if (!q[n]) continue;
|
|
684
683
|
let r = e[n];
|
|
685
684
|
r ? t[n] = r : delete t[n];
|
|
@@ -687,62 +686,62 @@ var z = {
|
|
|
687
686
|
return t;
|
|
688
687
|
}, [
|
|
689
688
|
q,
|
|
690
|
-
|
|
691
|
-
|
|
689
|
+
ie,
|
|
690
|
+
H,
|
|
692
691
|
$
|
|
693
|
-
]),
|
|
694
|
-
return /* @__PURE__ */
|
|
692
|
+
]), fe = v && V ? v(V) : void 0;
|
|
693
|
+
return /* @__PURE__ */ R(r, {
|
|
695
694
|
title: F ? P?.layout?.editTitle ?? "Edit toolset" : P?.layout?.createTitle ?? "Create toolset",
|
|
696
|
-
onBack:
|
|
695
|
+
onBack: _,
|
|
697
696
|
backAriaLabel: P?.layout?.backAriaLabel ?? "Back to catalog",
|
|
698
|
-
isSaving:
|
|
697
|
+
isSaving: W,
|
|
699
698
|
labels: { savingStatusLabel: P?.layout?.savingStatusLabel ?? "Saving" },
|
|
700
|
-
actions: /* @__PURE__ */
|
|
699
|
+
actions: /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(S, {
|
|
701
700
|
label: P?.layout?.cancelLabel ?? "Cancel",
|
|
702
|
-
onClick:
|
|
703
|
-
}), /* @__PURE__ */
|
|
701
|
+
onClick: _
|
|
702
|
+
}), /* @__PURE__ */ R(C, {
|
|
704
703
|
label: F ? P?.layout?.saveLabel ?? "Save" : P?.layout?.createLabel ?? "Create",
|
|
705
|
-
disabled:
|
|
706
|
-
onClick:
|
|
704
|
+
disabled: ue,
|
|
705
|
+
onClick: le
|
|
707
706
|
})] }),
|
|
708
|
-
leftContent: /* @__PURE__ */
|
|
707
|
+
leftContent: /* @__PURE__ */ R(i, {
|
|
709
708
|
title: P?.layout?.metadataSectionTitle ?? "Metadata",
|
|
710
|
-
className:
|
|
711
|
-
children: /* @__PURE__ */
|
|
712
|
-
form:
|
|
713
|
-
errors:
|
|
714
|
-
bucket:
|
|
715
|
-
FileManagerModal:
|
|
716
|
-
resolveIconUrl:
|
|
717
|
-
allowedMimeTypes:
|
|
718
|
-
maxFileSizeBytes:
|
|
709
|
+
className: h("border-0 p-4 desktop:p-6", B.metadataSection),
|
|
710
|
+
children: /* @__PURE__ */ R(ce, {
|
|
711
|
+
form: H,
|
|
712
|
+
errors: de,
|
|
713
|
+
bucket: T,
|
|
714
|
+
FileManagerModal: te,
|
|
715
|
+
resolveIconUrl: E,
|
|
716
|
+
allowedMimeTypes: D,
|
|
717
|
+
maxFileSizeBytes: O,
|
|
719
718
|
availableLocaleOptions: N,
|
|
720
719
|
onChange: Z,
|
|
721
720
|
labels: P?.general
|
|
722
721
|
})
|
|
723
722
|
}),
|
|
724
|
-
rightContent: /* @__PURE__ */
|
|
723
|
+
rightContent: /* @__PURE__ */ R(i, {
|
|
725
724
|
title: P?.layout?.setupSectionTitle ?? "Setup",
|
|
726
|
-
className:
|
|
727
|
-
children: /* @__PURE__ */
|
|
728
|
-
form:
|
|
729
|
-
errors:
|
|
730
|
-
isSaving:
|
|
731
|
-
toolsetId:
|
|
725
|
+
className: h("border-0 p-4 desktop:p-6", B.setupSection),
|
|
726
|
+
children: /* @__PURE__ */ R(pe, {
|
|
727
|
+
form: H,
|
|
728
|
+
errors: de,
|
|
729
|
+
isSaving: W,
|
|
730
|
+
toolsetId: V,
|
|
732
731
|
isEditMode: F,
|
|
733
|
-
connectUrl:
|
|
734
|
-
listToolNames:
|
|
735
|
-
authActions:
|
|
736
|
-
onOAuthLogin:
|
|
737
|
-
onNotifySuccess:
|
|
738
|
-
onNotifyError:
|
|
732
|
+
connectUrl: fe,
|
|
733
|
+
listToolNames: y,
|
|
734
|
+
authActions: b,
|
|
735
|
+
onOAuthLogin: x,
|
|
736
|
+
onNotifySuccess: ee,
|
|
737
|
+
onNotifyError: w,
|
|
739
738
|
onChange: Z,
|
|
740
739
|
onAuthChange: Q,
|
|
741
|
-
onEnsureSaved:
|
|
740
|
+
onEnsureSaved: se,
|
|
742
741
|
labels: P?.settings
|
|
743
742
|
})
|
|
744
743
|
})
|
|
745
744
|
});
|
|
746
745
|
};
|
|
747
746
|
//#endregion
|
|
748
|
-
export {
|
|
747
|
+
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;AACzF,MAAM,WAAW,6BAA6B;IAC5C,oEAAoE;IACpE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gIAAgI;IAChI,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,4EAA4E;IAC5E,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,mFAAmF;IACnF,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,0FAA0F;IAC1F,iBAAiB,CAAC,EAAE,MAAM,CAA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MAAM,IAAI,CAAC;IAC3B,+DAA+D;IAC/D,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB;;;;OAIG;IACH,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,CAAC;IAC5C;;;;OAIG;IACH,aAAa,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IACzD,gFAAgF;IAChF,WAAW,EAAE,kBAAkB,CAAC;IAChC,mEAAmE;IACnE,YAAY,EAAE,wBAAwB,CAAC;IACvC,2DAA2D;IAC3D,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,gFAAgF;IAChF,aAAa,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7D,4DAA4D;IAC5D,MAAM,EAAE,MAAM,CAAC;IACf,iEAAiE;IACjE,gBAAgB,EAAE,aAAa,CAAC,iCAAiC,CAAC,CAAC;IACnE,sEAAsE;IACtE,cAAc,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;IACxC,4CAA4C;IAC5C,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,yCAAyC;IACzC,gBAAgB,EAAE,MAAM,CAAC;IACzB,wDAAwD;IACxD,sBAAsB,EAAE,kCAAkC,EAAE,CAAC;IAC7D,wEAAwE;IACxE,MAAM,CAAC,EAAE,mBAAmB,CAAC;CAC9B"}
|
package/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,MAAM,WAAW,yBAAyB;IACxC,wDAAwD;IACxD,IAAI,EAAE,MAAM,CAAC;IACb,qCAAqC;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,sEAAsE;IACtE,OAAO,EAAE,MAAM,CAAC;IAChB,uDAAuD;IACvD,WAAW,EAAE,MAAM,CAAC;IACpB,wCAAwC;IACxC,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,uGAAuG;IACvG,YAAY,EAAE,iCAAi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;CACxB;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,+DAA+D;IAC/D,GAAG,EAAE,MAAM,CAAC;IACZ,4DAA4D;IAC5D,gBAAgB,EAAE,uBAAuB,CAAC;IAC1C,qDAAqD;IACrD,kBAAkB,EAAE,gBAAgB,CAAC;IACrC,oEAAoE;IACpE,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,+DAA+D;IAC/D,GAAG,EAAE,MAAM,CAAC;IACZ,0CAA0C;IAC1C,gBAAgB,EAAE,uBAAuB,CAAC;IAC1C,iDAAiD;IACjD,kBAAkB,EAAE,gBAAgB,CAAC;CACtC;AAED,gEAAgE;AAChE,MAAM,WAAW,kBAAkB;IACjC,oEAAoE;IACpE,KAAK,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAC1E,0EAA0E;IAC1E,MAAM,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAC5E,8EAA8E;IAC9E,iBAAiB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,mBAAmB,CAAC,CAAC;CACxE"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-toolset-editor",
|
|
3
3
|
"description": "Host-agnostic form for authoring and editing a DIAL MCP toolset",
|
|
4
|
-
"version": "1.2.0-dev.
|
|
4
|
+
"version": "1.2.0-dev.173",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -18,12 +18,12 @@
|
|
|
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.173"
|
|
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.
|
|
26
|
-
"@epam/ai-dial-ui-kit": "^0.15.0-dev.
|
|
24
|
+
"@epam/ai-dial-chat-hooks": "1.2.0-dev.173",
|
|
25
|
+
"@epam/ai-dial-chat-shared": "1.2.0-dev.173",
|
|
26
|
+
"@epam/ai-dial-ui-kit": "^0.15.0-dev.21",
|
|
27
27
|
"react": "^19.2.8"
|
|
28
28
|
},
|
|
29
29
|
"repository": {
|