@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.
@@ -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;AAiExE,8IAA8I;AAC9I,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAuE5C,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":"AAaA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAwC5E,uKAAuK;AACvK,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CA+WhD,CAAC"}
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, TAG_INPUT_TAG_CLASS_NAME as f, mergeClasses as p, useCodeCopy as m } from "@epam/ai-dial-chat-shared";
4
- import { ConfirmationPopup as h, ConfirmationPopupVariant as g, DIAL_ICON_SIZE as _, DIAL_KIT_ICON_STROKE as v, Input as y, NeutralButton as b, PasswordInput as x, PrimaryButton as S, Radio as C, RadioGroup as w, SegmentedControl as ee, Select as T, TagInput as E } from "@epam/ai-dial-ui-kit";
5
- import { memo as D, useCallback as O, useEffect as k, useMemo as A, useRef as j, useState as M } from "react";
6
- import { IconBrandOauth as N, IconKey as P, IconLockOff as F, IconLogin as te, IconLogout as I } from "@tabler/icons-react";
7
- import { Fragment as ne, jsx as L, jsxs as R } from "react/jsx-runtime";
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 z = {
9
+ var B = {
10
10
  metadataSection: "dial-toolset-editor-metadata-section",
11
11
  setupSection: "dial-toolset-editor-setup-section"
12
- }, B = /* @__PURE__ */ function(e) {
12
+ }, V = /* @__PURE__ */ function(e) {
13
13
  return e.Http = "HTTP", e.Sse = "SSE", e;
14
- }({}), V = "New toolset", H = "0.0.1", U = {
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
- }, W = ({ defaultName: e = V, existingNames: t }) => {
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
- }, G = () => ({
24
+ }, ie = () => ({
25
25
  authenticationType: o.None,
26
26
  withLogin: c.WithoutLogin,
27
27
  isLoggedIn: !1
28
28
  }), K = (e = []) => ({
29
- name: W({ existingNames: e }),
30
- version: H,
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: B.Http,
36
+ protocol: V.Http,
37
37
  allowedTools: [],
38
- auth: G()
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, re = (e, t = !1) => Object.keys(a(e, { validateVersionPattern: !0 })).length === 0 && J(e.endpoint) && Q(e.auth, t), ie = {
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
- }, ae = {
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 ? `${e} item selected` : `${e} items selected`,
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
- uploadProgressTitle: "Uploading files",
123
- cancelLabel: "Cancel"
124
- }, oe = ({ 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 ?? 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__ */ L(e, {
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
- }({}), se = (e, t) => e === o.None ? c.WithoutLogin : e === o.OAuth && !t ? c.WithConfig : c.WithLogin, ce = (e, t) => e === o.None ? t?.typeNone ?? "Open access" : e === o.OAuth ? t?.typeOAuth ?? "OAuth" : t?.typeApiKey ?? "API Key", le = ({ auth: e, errors: t, isSaving: n, toolsetId: r, isEditMode: i, endpoint: a, authActions: l, onOAuthLogin: d, onNotifySuccess: p, onNotifyError: m, onAuthChange: S, onEnsureSaved: w, labels: T }) => {
159
- let [D, O] = M(!1), [k, A] = M(!1), j = e.isLoggedIn || n || D, N = J(a) && Q(e, i) && !j, P = (t) => {
160
- j || t === e.authenticationType || S({
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: se(t, !!e.clientId?.trim())
160
+ withLogin: le(t, !!e.clientId?.trim())
163
161
  });
164
- }, F = (e) => {
165
- S({ withLogin: e });
166
- }, ne = (e) => {
167
- switch (e.auth != null && S(e.auth), e.status) {
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
- S({ isLoggedIn: !0 }), p(T?.loginSuccessMessage ?? "Successfully logged in.");
167
+ h({ isLoggedIn: !0 }), f(C?.loginSuccessMessage ?? "Successfully logged in.");
170
168
  return;
171
169
  case $.PopupBlocked:
172
- m(T?.errorPopupBlocked ?? "The login popup was blocked by your browser. Please allow popups for this site and try again.");
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
- m(T?.errorOAuthConfigMissing ?? "The OAuth provider did not return a valid client configuration. Please check the endpoint or contact your administrator.");
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
- m(T?.errorLoginFailed ?? "Failed to log in. Please check your credentials and try again.", e.traceId);
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
- }, z = async () => {
183
- if (!N) return;
180
+ }, F = async () => {
181
+ if (!j) return;
184
182
  if (e.authenticationType === o.OAuth) {
185
- O(!0);
183
+ E(!0);
186
184
  try {
187
- ne(await d({
185
+ P(await d({
188
186
  auth: e,
189
- ensureSaved: w
187
+ ensureSaved: g
190
188
  }));
191
189
  } finally {
192
- O(!1);
190
+ E(!1);
193
191
  }
194
192
  return;
195
193
  }
196
- let t = await w();
194
+ let t = await g();
197
195
  if (t) {
198
- O(!0);
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), S({ isLoggedIn: !0 }), p(T?.loginSuccessMessage ?? "Successfully logged in.");
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
- m(T?.errorLoginFailed ?? "Failed to log in. Please check your credentials and try again.", t);
207
+ p(C?.errorLoginFailed ?? "Failed to log in. Please check your credentials and try again.", t);
210
208
  } finally {
211
- O(!1);
209
+ E(!1);
212
210
  }
213
211
  }
214
- }, B = async () => {
215
- O(!0);
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), S({ isLoggedIn: !1 }), A(!1), p(T?.logoutSuccessMessage ?? "Successfully logged out.");
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
- m(T?.errorLogoutFailed ?? "Failed to log out. Please try again.", t);
223
+ p(C?.errorLogoutFailed ?? "Failed to log out. Please try again.", t);
226
224
  } finally {
227
- O(!1);
225
+ E(!1);
228
226
  }
229
- }, V = () => e.isLoggedIn ? /* @__PURE__ */ L("div", {
227
+ }, B = () => e.isLoggedIn ? /* @__PURE__ */ R("div", {
230
228
  className: "flex",
231
- children: /* @__PURE__ */ L(b, {
232
- label: T?.logOutLabel ?? "Log out",
233
- iconBefore: /* @__PURE__ */ L(I, {
234
- size: _.MD,
235
- stroke: v
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: () => A(!0),
238
- disabled: n || D
235
+ onClick: () => k(!0),
236
+ disabled: n || T
239
237
  })
240
- }) : /* @__PURE__ */ L("div", {
238
+ }) : /* @__PURE__ */ R("div", {
241
239
  className: "flex",
242
- children: /* @__PURE__ */ L(b, {
243
- label: T?.logInLabel ?? "Log in",
244
- iconBefore: /* @__PURE__ */ L(te, {
245
- size: _.MD,
246
- stroke: v
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: z,
249
- disabled: !N
246
+ onClick: F,
247
+ disabled: !j
250
248
  })
251
249
  });
252
- return /* @__PURE__ */ R("section", {
250
+ return /* @__PURE__ */ z("section", {
253
251
  className: "flex flex-col gap-2",
254
252
  children: [
255
- /* @__PURE__ */ L("h3", {
253
+ /* @__PURE__ */ R("h3", {
256
254
  className: "dial-h3-text",
257
- children: T?.sectionTitle ?? "Authentication"
255
+ children: C?.sectionTitle ?? "Authentication"
258
256
  }),
259
- /* @__PURE__ */ L(ee, {
260
- "aria-label": T?.sectionTitle ?? "Authentication",
257
+ /* @__PURE__ */ R(te, {
258
+ "aria-label": C?.sectionTitle ?? "Authentication",
261
259
  value: e.authenticationType,
262
- onChange: (e) => P(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 = U[t];
267
+ let n = W[t];
270
268
  return {
271
269
  value: t,
272
- label: /* @__PURE__ */ R("div", {
270
+ label: /* @__PURE__ */ z("div", {
273
271
  className: "flex items-center gap-2",
274
- children: [/* @__PURE__ */ L(n, {
272
+ children: [/* @__PURE__ */ R(n, {
275
273
  className: "shrink-0",
276
- size: _.SM,
277
- stroke: v,
274
+ size: y.SM,
275
+ stroke: b,
278
276
  "aria-hidden": !0
279
- }), /* @__PURE__ */ L("span", {
277
+ }), /* @__PURE__ */ R("span", {
280
278
  className: "sr-only desktop:not-sr-only",
281
- children: ce(t, T)
279
+ children: ue(t, C)
282
280
  })]
283
281
  }),
284
- disabled: j && e.authenticationType !== t
282
+ disabled: A && e.authenticationType !== t
285
283
  };
286
284
  })
287
285
  }),
288
- e.authenticationType === o.None && /* @__PURE__ */ L("p", {
286
+ e.authenticationType === o.None && /* @__PURE__ */ R("p", {
289
287
  className: "dial-small-text pt-2 text-secondary",
290
- children: T?.openAccessDescription ?? "Open endpoint, no credentials"
288
+ children: C?.openAccessDescription ?? "Open endpoint, no credentials"
291
289
  }),
292
- e.authenticationType === o.OAuth && /* @__PURE__ */ R("div", {
290
+ e.authenticationType === o.OAuth && /* @__PURE__ */ z("div", {
293
291
  className: "flex flex-col gap-3 pt-2",
294
292
  children: [
295
- /* @__PURE__ */ R("div", {
293
+ /* @__PURE__ */ z("div", {
296
294
  className: "flex flex-col gap-2",
297
- children: [/* @__PURE__ */ L(C, {
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: T?.withLoginOAuthLabel ?? "Standard login" },
299
+ labelProps: { label: C?.withLoginOAuthLabel ?? "Standard login" },
302
300
  isSelected: e.withLogin === c.WithLogin,
303
- disabled: j,
304
- onChange: F
305
- }), /* @__PURE__ */ L(C, {
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: T?.withConfigOAuthLabel ?? "Custom login" },
307
+ labelProps: { label: C?.withConfigOAuthLabel ?? "Custom login" },
310
308
  isSelected: e.withLogin === c.WithConfig,
311
- disabled: j,
312
- onChange: F
309
+ disabled: A,
310
+ onChange: N
313
311
  })]
314
312
  }),
315
- e.withLogin === c.WithConfig && /* @__PURE__ */ R("div", {
313
+ e.withLogin === c.WithConfig && /* @__PURE__ */ z("div", {
316
314
  className: "flex flex-col gap-3",
317
315
  children: [
318
- /* @__PURE__ */ L(y, {
316
+ /* @__PURE__ */ R(x, {
319
317
  id: "toolset-client-id",
320
318
  value: e.clientId ?? "",
321
- onChange: (e) => S({ clientId: e ?? "" }),
319
+ onChange: (e) => h({ clientId: e ?? "" }),
322
320
  labelProps: {
323
- label: T?.clientIdLabel ?? "Client ID",
321
+ label: C?.clientIdLabel ?? "Client ID",
324
322
  required: !0
325
323
  },
326
- placeholder: T?.clientIdPlaceholder ?? "Enter client ID",
324
+ placeholder: C?.clientIdPlaceholder ?? "Enter client ID",
327
325
  error: t.clientId || void 0,
328
326
  invalid: !!t.clientId,
329
- disabled: j
327
+ disabled: A
330
328
  }),
331
- /* @__PURE__ */ L(x, {
329
+ /* @__PURE__ */ R(ee, {
332
330
  id: "toolset-client-secret",
333
331
  value: e.clientSecret ?? "",
334
- onChange: (e) => S({ clientSecret: e ?? "" }),
332
+ onChange: (e) => h({ clientSecret: e ?? "" }),
335
333
  labelProps: {
336
- label: T?.clientSecretLabel ?? "Client secret",
334
+ label: C?.clientSecretLabel ?? "Client secret",
337
335
  required: !i
338
336
  },
339
- placeholder: T?.clientSecretPlaceholder ?? "Enter client secret",
340
- showPasswordLabel: T?.showClientSecretLabel ?? "Show client secret",
341
- hidePasswordLabel: T?.hideClientSecretLabel ?? "Hide client secret",
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: j
342
+ disabled: A
345
343
  }),
346
- /* @__PURE__ */ L(y, {
344
+ /* @__PURE__ */ R(x, {
347
345
  id: "toolset-authorization-endpoint",
348
346
  value: e.authorizationEndpoint ?? "",
349
- onChange: (e) => S({ authorizationEndpoint: e ?? "" }),
350
- labelProps: { label: T?.authorizationEndpointLabel ?? "Authorization endpoint" },
351
- placeholder: T?.authorizationEndpointPlaceholder ?? "Enter authorization endpoint",
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: j
352
+ disabled: A
355
353
  }),
356
- /* @__PURE__ */ L(y, {
354
+ /* @__PURE__ */ R(x, {
357
355
  id: "toolset-token-endpoint",
358
356
  value: e.tokenEndpoint ?? "",
359
- onChange: (e) => S({ tokenEndpoint: e ?? "" }),
360
- labelProps: { label: T?.tokenEndpointLabel ?? "Token endpoint" },
361
- placeholder: T?.tokenEndpointPlaceholder ?? "Enter token endpoint",
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: j
362
+ disabled: A
365
363
  }),
366
- /* @__PURE__ */ L(E, {
364
+ /* @__PURE__ */ R(D, {
367
365
  id: "toolset-scopes",
368
- labelProps: { label: T?.scopesLabel ?? "Scopes" },
369
- placeholder: T?.scopesPlaceholder ?? "Enter scopes",
366
+ labelProps: { label: C?.scopesLabel ?? "Scopes" },
367
+ placeholder: C?.scopesPlaceholder ?? "Enter scopes",
370
368
  value: e.scopes ?? [],
371
- onChange: (e) => S({ scopes: e }),
372
- disabled: j,
373
- tagClassName: f
369
+ onChange: (e) => h({ scopes: e }),
370
+ disabled: A,
371
+ tagClassName: m
374
372
  })
375
373
  ]
376
374
  }),
377
- V()
375
+ B()
378
376
  ]
379
377
  }),
380
- e.authenticationType === o.ApiKey && /* @__PURE__ */ R("div", {
378
+ e.authenticationType === o.ApiKey && /* @__PURE__ */ z("div", {
381
379
  className: "flex flex-col gap-3 pt-2",
382
380
  children: [
383
- /* @__PURE__ */ R("div", {
381
+ /* @__PURE__ */ z("div", {
384
382
  className: "flex flex-col gap-2",
385
- children: [/* @__PURE__ */ L(C, {
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: T?.withLoginLabel ?? "With login" },
387
+ labelProps: { label: C?.withLoginLabel ?? "With login" },
390
388
  isSelected: e.withLogin === c.WithLogin,
391
- disabled: j,
392
- onChange: F
393
- }), /* @__PURE__ */ L(C, {
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: T?.withoutLoginLabel ?? "Without login" },
395
+ labelProps: { label: C?.withoutLoginLabel ?? "Without login" },
398
396
  isSelected: e.withLogin === c.WithoutLogin,
399
- disabled: j,
400
- onChange: F
397
+ disabled: A,
398
+ onChange: N
401
399
  })]
402
400
  }),
403
- /* @__PURE__ */ R("div", {
401
+ /* @__PURE__ */ z("div", {
404
402
  className: "flex flex-col gap-3",
405
- children: [/* @__PURE__ */ L(y, {
403
+ children: [/* @__PURE__ */ R(x, {
406
404
  id: "toolset-key-header",
407
405
  value: e.keyHeader ?? "",
408
- onChange: (e) => S({ keyHeader: e ?? "" }),
406
+ onChange: (e) => h({ keyHeader: e ?? "" }),
409
407
  labelProps: {
410
- label: T?.keyHeaderLabel ?? "API Key parameter name",
408
+ label: C?.keyHeaderLabel ?? "API Key parameter name",
411
409
  required: !0
412
410
  },
413
- placeholder: T?.keyHeaderPlaceholder ?? "Enter API key parameter name",
411
+ placeholder: C?.keyHeaderPlaceholder ?? "Enter API key parameter name",
414
412
  error: t.keyHeader || void 0,
415
413
  invalid: !!t.keyHeader,
416
- disabled: j
417
- }), e.withLogin === c.WithLogin && /* @__PURE__ */ L(x, {
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) => S({ apiKey: e ?? "" }),
418
+ onChange: (e) => h({ apiKey: e ?? "" }),
421
419
  labelProps: {
422
- label: T?.apiKeyLabel ?? "API key",
420
+ label: C?.apiKeyLabel ?? "API key",
423
421
  required: !0
424
422
  },
425
- placeholder: T?.apiKeyPlaceholder ?? "Enter API key",
426
- showPasswordLabel: T?.showApiKeyLabel ?? "Show API key",
427
- hidePasswordLabel: T?.hideApiKeyLabel ?? "Hide API key",
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: j
428
+ disabled: A
431
429
  })]
432
430
  }),
433
- e.withLogin !== c.WithoutLogin && V()
431
+ e.withLogin !== c.WithoutLogin && B()
434
432
  ]
435
433
  }),
436
- k && /* @__PURE__ */ L(h, {
437
- open: k,
438
- header: T?.logoutConfirmTitle ?? "Log out?",
439
- description: T?.logoutConfirmDescription ?? "Are you sure you want to log out? You will need to re-enter your credentials to use this toolset again.",
440
- confirmLabel: T?.logOutLabel ?? "Log out",
441
- cancelLabel: T?.cancelLabel ?? "Cancel",
442
- variant: g.Danger,
443
- isLoading: D,
444
- disableConfirmButton: D,
445
- onConfirm: B,
446
- onCancel: () => A(!1),
447
- onClose: () => A(!1)
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
- }, ue = D(({ url: e, className: t, labels: n }) => {
452
- let { isCopied: r, copy: i } = m(e), a = n?.copiedLabel ?? "Copied!";
453
- return /* @__PURE__ */ R("div", {
454
- className: p("flex flex-col gap-3", t),
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__ */ R("div", {
454
+ /* @__PURE__ */ z("div", {
457
455
  className: "flex flex-col gap-1",
458
- children: [/* @__PURE__ */ L("p", {
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__ */ L("p", {
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__ */ L("div", { children: /* @__PURE__ */ L(d, {
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__ */ L("span", {
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
- }), de = ({ 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: p, onEnsureSaved: m, labels: h }) => {
481
- let [g, _] = M(null), v = !!a && !!r, b = A(() => [{
482
- value: B.Http,
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: B.Sse,
483
+ value: V.Sse,
486
484
  label: "SSE"
487
485
  }], []);
488
- return k(() => {
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__ */ R("div", {
508
+ ]), /* @__PURE__ */ z("div", {
511
509
  className: "flex max-w-[1060px] flex-col gap-4",
512
510
  children: [
513
- /* @__PURE__ */ L(y, {
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__ */ L(w, {
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: b,
530
+ items: y,
533
531
  value: e.protocol,
534
532
  onChange: (e) => {
535
533
  d({ protocol: e });
536
534
  }
537
535
  }),
538
- g ? /* @__PURE__ */ L(T, {
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__ */ L(E, {
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: f
555
+ tagClassName: m
558
556
  }),
559
- /* @__PURE__ */ L(le, {
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: p,
571
- onEnsureSaved: m,
568
+ onAuthChange: f,
569
+ onEnsureSaved: p,
572
570
  labels: h?.auth
573
571
  }),
574
- v && /* @__PURE__ */ L(ue, {
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
- }, fe = [
579
+ }, me = [
582
580
  "keyHeader",
583
581
  "apiKey",
584
582
  "clientId",
585
583
  "clientSecret",
586
584
  "authorizationEndpoint",
587
585
  "tokenEndpoint"
588
- ], pe = [
586
+ ], he = [
589
587
  "name",
590
588
  "version",
589
+ "description",
591
590
  "endpoint",
592
- ...fe
593
- ], me = new Set(pe), he = (e) => {
591
+ ...me
592
+ ], ge = new Set(he), _e = (e) => {
594
593
  let t = {};
595
- for (let n of Object.keys(e)) me.has(n) && (t[n] = !0);
594
+ for (let n of Object.keys(e)) ge.has(n) && (t[n] = !0);
596
595
  return t;
597
- }, ge = ({ initialForm: e, toolsetId: n, onPersist: s, onPostSaveLogin: l, onToolsetsChanged: d, onSaveSuccess: f, onSaveComplete: m, onBack: h, buildMcpUrl: g, listToolNames: _, authActions: v, onOAuthLogin: y, onNotifySuccess: x, onNotifyError: C, bucket: w, FileManagerModal: ee, resolveIconUrl: T, allowedMimeTypes: E, maxFileSizeBytes: D, availableLocaleOptions: N, labels: P }) => {
598
- let F = !!n, [te, I] = M(""), B = n || te, [V, H] = M(e), [U, W] = M(!1), [G, K] = M({}), [q, Y] = M({}), X = j(null);
599
- k(() => {
600
- H(e), X.current = e, K({}), Y({}), I("");
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 = O((e) => {
603
- H((t) => ({
601
+ let Z = k((e) => {
602
+ U((t) => ({
604
603
  ...t,
605
604
  ...e
606
605
  })), Y((t) => ({
607
606
  ...t,
608
- ...he(e)
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 = O((e) => {
615
- H((t) => ({
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
- ...he(e)
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 fe) delete n[e];
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]), ie = O(async () => {
631
- if (B && X.current != null && JSON.stringify(X.current) === JSON.stringify(V)) return B;
632
- W(!0);
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(V, B);
635
- return e ? (B || I(e), X.current = V, await d(), e) : null;
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
- W(!1);
638
+ G(!1);
640
639
  }
641
640
  }, [
641
+ H,
642
642
  V,
643
- B,
644
643
  s,
645
644
  d
646
- ]), ae = O(async () => await ie() ?? !1, [ie]), $ = O((e) => {
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 && (r.name = n?.nameRequired ?? "Name is required"), 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;
649
- }, [P, F]), se = O(async () => {
650
- let e = $(V);
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({}), W(!0);
654
+ K({}), G(!0);
656
655
  try {
657
- let e = await s(V, B);
656
+ let e = await s(H, V);
658
657
  if (!e) return;
659
- await d(), f(V);
658
+ await d(), m(H);
660
659
  try {
661
- await l(e, V.auth), m();
660
+ await l(e, H.auth), g();
662
661
  } catch (e) {
663
662
  let { traceId: t } = await u(e);
664
- C(P?.settings?.auth?.errorLoginFailed ?? "Failed to log in. Please check your credentials and try again.", t);
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
- W(!1);
666
+ G(!1);
668
667
  }
669
668
  }, [
670
- V,
669
+ H,
671
670
  $,
672
- B,
671
+ V,
673
672
  s,
674
673
  d,
675
- f,
676
674
  m,
675
+ g,
677
676
  l,
678
- C,
677
+ w,
679
678
  P
680
- ]), ce = A(() => !re(V, F), [V, F]), le = A(() => {
681
- let e = $(V), t = { ...G };
682
- for (let n of pe) {
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
- G,
691
- V,
689
+ ie,
690
+ H,
692
691
  $
693
- ]), ue = g && B ? g(B) : void 0;
694
- return /* @__PURE__ */ L(r, {
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: h,
695
+ onBack: _,
697
696
  backAriaLabel: P?.layout?.backAriaLabel ?? "Back to catalog",
698
- isSaving: U,
697
+ isSaving: W,
699
698
  labels: { savingStatusLabel: P?.layout?.savingStatusLabel ?? "Saving" },
700
- actions: /* @__PURE__ */ R(ne, { children: [/* @__PURE__ */ L(b, {
699
+ actions: /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(S, {
701
700
  label: P?.layout?.cancelLabel ?? "Cancel",
702
- onClick: h
703
- }), /* @__PURE__ */ L(S, {
701
+ onClick: _
702
+ }), /* @__PURE__ */ R(C, {
704
703
  label: F ? P?.layout?.saveLabel ?? "Save" : P?.layout?.createLabel ?? "Create",
705
- disabled: ce,
706
- onClick: se
704
+ disabled: ue,
705
+ onClick: le
707
706
  })] }),
708
- leftContent: /* @__PURE__ */ L(i, {
707
+ leftContent: /* @__PURE__ */ R(i, {
709
708
  title: P?.layout?.metadataSectionTitle ?? "Metadata",
710
- className: p("border-0 p-4 desktop:p-6", z.metadataSection),
711
- children: /* @__PURE__ */ L(oe, {
712
- form: V,
713
- errors: le,
714
- bucket: w,
715
- FileManagerModal: ee,
716
- resolveIconUrl: T,
717
- allowedMimeTypes: E,
718
- maxFileSizeBytes: D,
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__ */ L(i, {
723
+ rightContent: /* @__PURE__ */ R(i, {
725
724
  title: P?.layout?.setupSectionTitle ?? "Setup",
726
- className: p("border-0 p-4 desktop:p-6", z.setupSection),
727
- children: /* @__PURE__ */ L(de, {
728
- form: V,
729
- errors: le,
730
- isSaving: U,
731
- toolsetId: B,
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: ue,
734
- listToolNames: _,
735
- authActions: v,
736
- onOAuthLogin: y,
737
- onNotifySuccess: x,
738
- onNotifyError: C,
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: ae,
740
+ onEnsureSaved: se,
742
741
  labels: P?.settings
743
742
  })
744
743
  })
745
744
  });
746
745
  };
747
746
  //#endregion
748
- export { U as AUTH_TYPE_ICONS, V as DEFAULT_TOOLSET_NAME, H as DEFAULT_TOOLSET_VERSION, oe as GeneralForm, z as TOOLSET_EDITOR_CLASS, ge as ToolsetEditor, $ as ToolsetOAuthLoginStatus, B as ToolsetTransportType, K as getDefaultToolsetForm, W as getStorageSafeUniqueToolsetName, Q as isToolsetAuthValid, re as isToolsetFormValid, J as isValidEndpointUrl, X as normalizeReturnedEndpointUrl };
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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EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC9C;;;OAGG;IACH,aAAa,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC;IAC/C,8FAA8F;IAC9F,cAAc,EAAE,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"}
@@ -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,MAA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CAAC;IAC/B,6DAA6D;IAC7D,aAAa,CAAC,EAAE,MAAM,CAAC;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.164",
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.164"
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.164",
25
- "@epam/ai-dial-chat-shared": "1.2.0-dev.164",
26
- "@epam/ai-dial-ui-kit": "^0.15.0-dev.20",
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": {