@epam/ai-dial-toolset-editor 1.1.0-dev.471 → 1.1.0-dev.472

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":"AuthSection.d.ts","sourceRoot":"","sources":["../../../src/components/AuthSection/AuthSection.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAEV,gBAAgB,EACjB,MAAM,iCAAiC,CAAC;AAwCzC,uIAAuI;AACvI,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CA4a5C,CAAC"}
1
+ {"version":3,"file":"AuthSection.d.ts","sourceRoot":"","sources":["../../../src/components/AuthSection/AuthSection.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAEV,gBAAgB,EACjB,MAAM,iCAAiC,CAAC;AAwCzC,uIAAuI;AACvI,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAob5C,CAAC"}
package/index.js CHANGED
@@ -1,59 +1,59 @@
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 { ConfirmationPopup as d, ConfirmationPopupVariant as f, DIAL_ICON_SIZE as p, DIAL_KIT_ICON_STROKE as m, Input as h, NeutralButton as g, PrimaryButton as _, Radio as v, RadioGroup as y, SegmentedControl as b, Select as x, TagInput as S } from "@epam/ai-dial-ui-kit";
3
+ import { ConfirmationPopup as d, ConfirmationPopupVariant as f, DIAL_ICON_SIZE as p, DIAL_KIT_ICON_STROKE as m, Input as h, NeutralButton as g, PasswordInput as _, PrimaryButton as v, Radio as y, RadioGroup as b, SegmentedControl as ee, Select as x, TagInput as S } from "@epam/ai-dial-ui-kit";
4
4
  import { memo as C, useCallback as w, useEffect as T, useMemo as E, useRef as D, useState as O } from "react";
5
- import { IconBrandOauth as k, IconKey as A, IconLockOff as j, IconLogin as ee, IconLogout as te } from "@tabler/icons-react";
6
- import { Fragment as M, jsx as N, jsxs as P } from "react/jsx-runtime";
7
- import { CopyButton as F, TAG_INPUT_TAG_CLASS_NAME as I, mergeClasses as L, useCodeCopy as R } from "@epam/ai-dial-chat-shared";
5
+ import { IconBrandOauth as k, IconKey as A, IconLockOff as j, IconLogin as te, IconLogout as M } from "@tabler/icons-react";
6
+ import { Fragment as N, jsx as P, jsxs as F } from "react/jsx-runtime";
7
+ import { CopyButton as I, TAG_INPUT_TAG_CLASS_NAME as L, mergeClasses as R, useCodeCopy as z } from "@epam/ai-dial-chat-shared";
8
8
  //#region src/constants/toolsets.ts
9
- var z = /* @__PURE__ */ function(e) {
9
+ var B = /* @__PURE__ */ function(e) {
10
10
  return e.Http = "HTTP", e.Sse = "SSE", e;
11
- }({}), B = "New toolset", V = "0.0.1", H = {
11
+ }({}), V = "New toolset", H = "0.0.1", U = {
12
12
  [o.OAuth]: k,
13
13
  [o.ApiKey]: A,
14
14
  [o.None]: j
15
- }, U = ({ defaultName: e = B, existingNames: t }) => {
15
+ }, W = ({ defaultName: e = V, existingNames: t }) => {
16
16
  let n = new Set(t);
17
17
  if (!n.has(e)) return e;
18
18
  let r = 1;
19
19
  for (; n.has(`${e} ${r}`);) r += 1;
20
20
  return `${e} ${r}`;
21
- }, W = () => ({
21
+ }, G = () => ({
22
22
  authenticationType: o.None,
23
23
  withLogin: c.WithoutLogin,
24
24
  isLoggedIn: !1
25
- }), G = (e = []) => ({
26
- name: U({ existingNames: e }),
27
- version: V,
25
+ }), K = (e = []) => ({
26
+ name: W({ existingNames: e }),
27
+ version: H,
28
28
  iconUrl: "",
29
29
  description: "",
30
30
  topics: [],
31
31
  otherLocales: [],
32
32
  endpoint: "",
33
- protocol: z.Http,
33
+ protocol: B.Http,
34
34
  allowedTools: [],
35
- auth: W()
36
- }), K = (e) => {
35
+ auth: G()
36
+ }), q = (e) => {
37
37
  if (!/^(https?|sse):\/\//.test(e) || e.endsWith(".") || e.endsWith("//")) return !1;
38
38
  try {
39
39
  return !!new URL(e);
40
40
  } catch {
41
41
  return !1;
42
42
  }
43
- }, q = (e) => K(e.trim()), J = (e) => e.replace(/^(https?|sse):\/([^/])/, "$1://$2"), Y = (e) => {
43
+ }, J = (e) => q(e.trim()), Y = (e) => e.replace(/^(https?|sse):\/([^/])/, "$1://$2"), X = (e) => {
44
44
  let t = e?.trim() ?? "";
45
- if (!t || K(t)) return t;
45
+ if (!t || q(t)) return t;
46
46
  let n = [t];
47
47
  try {
48
48
  let e = decodeURIComponent(t);
49
49
  e !== t && n.push(e);
50
50
  } catch {}
51
51
  for (let e of n) {
52
- let t = J(e);
53
- if (K(t)) return t;
52
+ let t = Y(e);
53
+ if (q(t)) return t;
54
54
  }
55
55
  return t;
56
- }, X = (e) => !e?.trim() || q(e), Z = (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()) && X(e.authorizationEndpoint) && X(e.tokenEndpoint) : !0, ne = (e, t = !1) => Object.keys(a(e, { validateVersionPattern: !0 })).length === 0 && q(e.endpoint) && Z(e.auth, t), re = {
56
+ }, ne = (e) => !e?.trim() || J(e), Z = (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()) && ne(e.authorizationEndpoint) && ne(e.tokenEndpoint) : !0, re = (e, t = !1) => Object.keys(a(e, { validateVersionPattern: !0 })).length === 0 && J(e.endpoint) && Z(e.auth, t), ie = {
57
57
  name: {
58
58
  label: "Name",
59
59
  placeholder: "Enter name"
@@ -92,7 +92,7 @@ var z = /* @__PURE__ */ function(e) {
92
92
  saveLabel: "Save"
93
93
  },
94
94
  ariaLabel: "General"
95
- }, ie = {
95
+ }, Q = {
96
96
  title: "Add avatar",
97
97
  attachLabel: "Attach",
98
98
  emptyTitle: "This folder is empty",
@@ -119,8 +119,8 @@ var z = /* @__PURE__ */ function(e) {
119
119
  uploadProgressTitle: "Uploading files",
120
120
  cancelLabel: "Cancel"
121
121
  }, ae = ({ form: t, errors: r, bucket: i, FileManagerModal: a, resolveIconUrl: o, allowedMimeTypes: s, maxFileSizeBytes: c, availableLocaleOptions: u, onChange: d, onNameBlur: f, onVersionBlur: p, labels: m }) => {
122
- let [h, g] = O(!1), _ = m?.form ?? re, v = m?.avatarPicker ?? ie, y = E(() => o(t.iconUrl), [t.iconUrl, o]);
123
- return /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ N(n, {
122
+ let [h, g] = O(!1), _ = m?.form ?? ie, v = m?.avatarPicker ?? Q, y = E(() => o(t.iconUrl), [t.iconUrl, o]);
123
+ return /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ P(n, {
124
124
  values: {
125
125
  name: t.name,
126
126
  description: t.description,
@@ -137,7 +137,7 @@ var z = /* @__PURE__ */ function(e) {
137
137
  onAddAvatarClick: () => g(!0),
138
138
  labels: _,
139
139
  availableLocaleOptions: u
140
- }), /* @__PURE__ */ N(e, {
140
+ }), /* @__PURE__ */ P(e, {
141
141
  isOpen: h,
142
142
  onClose: () => g(!1),
143
143
  onAttach: (e) => {
@@ -150,38 +150,38 @@ var z = /* @__PURE__ */ function(e) {
150
150
  maxFileSizeBytes: c,
151
151
  labels: v
152
152
  })] });
153
- }, Q = /* @__PURE__ */ function(e) {
153
+ }, $ = /* @__PURE__ */ function(e) {
154
154
  return e.Success = "success", e.Cancelled = "cancelled", e.PopupBlocked = "popup-blocked", e.InvalidConfig = "invalid-config", e.Failed = "failed", e;
155
- }({}), oe = (e, t) => e === o.None ? c.WithoutLogin : e === o.OAuth && !t ? c.WithConfig : c.WithLogin, se = (e, t) => e === o.None ? t?.typeNone ?? "Open access" : e === o.OAuth ? t?.typeOAuth ?? "OAuth" : t?.typeApiKey ?? "API Key", $ = ({ auth: e, errors: t, isSaving: n, toolsetId: r, isEditMode: i, endpoint: a, authActions: l, onOAuthLogin: _, onNotifySuccess: y, onNotifyError: x, onAuthChange: C, onEnsureSaved: w, labels: T }) => {
156
- let [E, D] = O(!1), [k, A] = O(!1), j = e.isLoggedIn || n || E, M = q(a) && Z(e, i) && !j, F = (t) => {
155
+ }({}), oe = (e, t) => e === o.None ? c.WithoutLogin : e === o.OAuth && !t ? c.WithConfig : c.WithLogin, se = (e, t) => e === o.None ? t?.typeNone ?? "Open access" : e === o.OAuth ? t?.typeOAuth ?? "OAuth" : t?.typeApiKey ?? "API Key", ce = ({ auth: e, errors: t, isSaving: n, toolsetId: r, isEditMode: i, endpoint: a, authActions: l, onOAuthLogin: v, onNotifySuccess: b, onNotifyError: x, onAuthChange: C, onEnsureSaved: w, labels: T }) => {
156
+ let [E, D] = O(!1), [k, A] = O(!1), j = e.isLoggedIn || n || E, N = J(a) && Z(e, i) && !j, I = (t) => {
157
157
  j || t === e.authenticationType || C({
158
158
  authenticationType: t,
159
159
  withLogin: oe(t, !!e.clientId?.trim())
160
160
  });
161
- }, L = (e) => {
162
- C({ withLogin: e });
163
161
  }, R = (e) => {
162
+ C({ withLogin: e });
163
+ }, z = (e) => {
164
164
  switch (e.auth != null && C(e.auth), e.status) {
165
- case Q.Success:
166
- C({ isLoggedIn: !0 }), y(T?.loginSuccessMessage ?? "Successfully logged in.");
165
+ case $.Success:
166
+ C({ isLoggedIn: !0 }), b(T?.loginSuccessMessage ?? "Successfully logged in.");
167
167
  return;
168
- case Q.PopupBlocked:
168
+ case $.PopupBlocked:
169
169
  x(T?.errorPopupBlocked ?? "The login popup was blocked by your browser. Please allow popups for this site and try again.");
170
170
  return;
171
- case Q.InvalidConfig:
171
+ case $.InvalidConfig:
172
172
  x(T?.errorOAuthConfigMissing ?? "The OAuth provider did not return a valid client configuration. Please check the endpoint or contact your administrator.");
173
173
  return;
174
- case Q.Failed:
174
+ case $.Failed:
175
175
  x(T?.errorLoginFailed ?? "Failed to log in. Please check your credentials and try again.", e.traceId);
176
176
  return;
177
- case Q.Cancelled: return;
177
+ case $.Cancelled: return;
178
178
  }
179
- }, z = async () => {
180
- if (!M) return;
179
+ }, B = async () => {
180
+ if (!N) return;
181
181
  if (e.authenticationType === o.OAuth) {
182
182
  D(!0);
183
183
  try {
184
- R(await _({
184
+ z(await v({
185
185
  auth: e,
186
186
  ensureSaved: w
187
187
  }));
@@ -200,7 +200,7 @@ var z = /* @__PURE__ */ function(e) {
200
200
  authenticationType: e.authenticationType,
201
201
  apiKey: e.apiKey?.trim()
202
202
  };
203
- await l.login(t, n), C({ isLoggedIn: !0 }), y(T?.loginSuccessMessage ?? "Successfully logged in.");
203
+ await l.login(t, n), C({ isLoggedIn: !0 }), b(T?.loginSuccessMessage ?? "Successfully logged in.");
204
204
  } catch (e) {
205
205
  let { traceId: t } = await u(e);
206
206
  x(T?.errorLoginFailed ?? "Failed to log in. Please check your credentials and try again.", t);
@@ -208,7 +208,7 @@ var z = /* @__PURE__ */ function(e) {
208
208
  D(!1);
209
209
  }
210
210
  }
211
- }, B = async () => {
211
+ }, V = async () => {
212
212
  D(!0);
213
213
  try {
214
214
  let t = {
@@ -216,64 +216,64 @@ var z = /* @__PURE__ */ function(e) {
216
216
  credentialsLevel: s.User,
217
217
  authenticationType: e.authenticationType
218
218
  };
219
- await l.logout(r, t), C({ isLoggedIn: !1 }), A(!1), y(T?.logoutSuccessMessage ?? "Successfully logged out.");
219
+ await l.logout(r, t), C({ isLoggedIn: !1 }), A(!1), b(T?.logoutSuccessMessage ?? "Successfully logged out.");
220
220
  } catch (e) {
221
221
  let { traceId: t } = await u(e);
222
222
  x(T?.errorLogoutFailed ?? "Failed to log out. Please try again.", t);
223
223
  } finally {
224
224
  D(!1);
225
225
  }
226
- }, V = () => e.isLoggedIn ? /* @__PURE__ */ N("div", {
226
+ }, H = () => e.isLoggedIn ? /* @__PURE__ */ P("div", {
227
227
  className: "flex",
228
- children: /* @__PURE__ */ N(g, {
228
+ children: /* @__PURE__ */ P(g, {
229
229
  label: T?.logOutLabel ?? "Log out",
230
- iconBefore: /* @__PURE__ */ N(te, {
230
+ iconBefore: /* @__PURE__ */ P(M, {
231
231
  size: p.MD,
232
232
  stroke: m
233
233
  }),
234
234
  onClick: () => A(!0),
235
235
  disabled: n || E
236
236
  })
237
- }) : /* @__PURE__ */ N("div", {
237
+ }) : /* @__PURE__ */ P("div", {
238
238
  className: "flex",
239
- children: /* @__PURE__ */ N(g, {
239
+ children: /* @__PURE__ */ P(g, {
240
240
  label: T?.logInLabel ?? "Log in",
241
- iconBefore: /* @__PURE__ */ N(ee, {
241
+ iconBefore: /* @__PURE__ */ P(te, {
242
242
  size: p.MD,
243
243
  stroke: m
244
244
  }),
245
- onClick: z,
246
- disabled: !M
245
+ onClick: B,
246
+ disabled: !N
247
247
  })
248
248
  });
249
- return /* @__PURE__ */ P("section", {
249
+ return /* @__PURE__ */ F("section", {
250
250
  className: "flex flex-col gap-2",
251
251
  children: [
252
- /* @__PURE__ */ N("h3", {
252
+ /* @__PURE__ */ P("h3", {
253
253
  className: "dial-h3-text",
254
254
  children: T?.sectionTitle ?? "Authentication"
255
255
  }),
256
- /* @__PURE__ */ N(b, {
256
+ /* @__PURE__ */ P(ee, {
257
257
  "aria-label": T?.sectionTitle ?? "Authentication",
258
258
  value: e.authenticationType,
259
- onChange: (e) => F(e),
259
+ onChange: (e) => I(e),
260
260
  segmentClassName: "px-2",
261
261
  items: [
262
262
  o.None,
263
263
  o.OAuth,
264
264
  o.ApiKey
265
265
  ].map((t) => {
266
- let n = H[t];
266
+ let n = U[t];
267
267
  return {
268
268
  value: t,
269
- label: /* @__PURE__ */ P("div", {
269
+ label: /* @__PURE__ */ F("div", {
270
270
  className: "flex items-center gap-2",
271
- children: [/* @__PURE__ */ N(n, {
271
+ children: [/* @__PURE__ */ P(n, {
272
272
  className: "shrink-0",
273
273
  size: p.SM,
274
274
  stroke: m,
275
275
  "aria-hidden": !0
276
- }), /* @__PURE__ */ N("span", {
276
+ }), /* @__PURE__ */ P("span", {
277
277
  className: "sr-only desktop:not-sr-only",
278
278
  children: se(t, T)
279
279
  })]
@@ -282,37 +282,37 @@ var z = /* @__PURE__ */ function(e) {
282
282
  };
283
283
  })
284
284
  }),
285
- e.authenticationType === o.None && /* @__PURE__ */ N("p", {
285
+ e.authenticationType === o.None && /* @__PURE__ */ P("p", {
286
286
  className: "dial-small-text pt-2 text-secondary",
287
287
  children: T?.openAccessDescription ?? "Open endpoint, no credentials"
288
288
  }),
289
- e.authenticationType === o.OAuth && /* @__PURE__ */ P("div", {
289
+ e.authenticationType === o.OAuth && /* @__PURE__ */ F("div", {
290
290
  className: "flex flex-col gap-3 pt-2",
291
291
  children: [
292
- /* @__PURE__ */ P("div", {
292
+ /* @__PURE__ */ F("div", {
293
293
  className: "flex flex-col gap-2",
294
- children: [/* @__PURE__ */ N(v, {
294
+ children: [/* @__PURE__ */ P(y, {
295
295
  name: "oauth-login-mode",
296
296
  id: "oauth-with-login",
297
297
  value: c.WithLogin,
298
298
  labelProps: { label: T?.withLoginOAuthLabel ?? "Standard login" },
299
299
  isSelected: e.withLogin === c.WithLogin,
300
300
  disabled: j,
301
- onChange: L
302
- }), /* @__PURE__ */ N(v, {
301
+ onChange: R
302
+ }), /* @__PURE__ */ P(y, {
303
303
  name: "oauth-login-mode",
304
304
  id: "oauth-with-config",
305
305
  value: c.WithConfig,
306
306
  labelProps: { label: T?.withConfigOAuthLabel ?? "Custom login" },
307
307
  isSelected: e.withLogin === c.WithConfig,
308
308
  disabled: j,
309
- onChange: L
309
+ onChange: R
310
310
  })]
311
311
  }),
312
- e.withLogin === c.WithConfig && /* @__PURE__ */ P("div", {
312
+ e.withLogin === c.WithConfig && /* @__PURE__ */ F("div", {
313
313
  className: "flex flex-col gap-3",
314
314
  children: [
315
- /* @__PURE__ */ N(h, {
315
+ /* @__PURE__ */ P(h, {
316
316
  id: "toolset-client-id",
317
317
  value: e.clientId ?? "",
318
318
  onChange: (e) => C({ clientId: e ?? "" }),
@@ -325,7 +325,7 @@ var z = /* @__PURE__ */ function(e) {
325
325
  invalid: !!t.clientId,
326
326
  disabled: j
327
327
  }),
328
- /* @__PURE__ */ N(h, {
328
+ /* @__PURE__ */ P(_, {
329
329
  id: "toolset-client-secret",
330
330
  value: e.clientSecret ?? "",
331
331
  onChange: (e) => C({ clientSecret: e ?? "" }),
@@ -334,11 +334,13 @@ var z = /* @__PURE__ */ function(e) {
334
334
  required: !i
335
335
  },
336
336
  placeholder: T?.clientSecretPlaceholder ?? "Enter client secret",
337
+ showPasswordLabel: T?.showClientSecretLabel ?? "Show client secret",
338
+ hidePasswordLabel: T?.hideClientSecretLabel ?? "Hide client secret",
337
339
  error: t.clientSecret || void 0,
338
340
  invalid: !!t.clientSecret,
339
341
  disabled: j
340
342
  }),
341
- /* @__PURE__ */ N(h, {
343
+ /* @__PURE__ */ P(h, {
342
344
  id: "toolset-authorization-endpoint",
343
345
  value: e.authorizationEndpoint ?? "",
344
346
  onChange: (e) => C({ authorizationEndpoint: e ?? "" }),
@@ -348,7 +350,7 @@ var z = /* @__PURE__ */ function(e) {
348
350
  invalid: !!t.authorizationEndpoint,
349
351
  disabled: j
350
352
  }),
351
- /* @__PURE__ */ N(h, {
353
+ /* @__PURE__ */ P(h, {
352
354
  id: "toolset-token-endpoint",
353
355
  value: e.tokenEndpoint ?? "",
354
356
  onChange: (e) => C({ tokenEndpoint: e ?? "" }),
@@ -358,46 +360,46 @@ var z = /* @__PURE__ */ function(e) {
358
360
  invalid: !!t.tokenEndpoint,
359
361
  disabled: j
360
362
  }),
361
- /* @__PURE__ */ N(S, {
363
+ /* @__PURE__ */ P(S, {
362
364
  id: "toolset-scopes",
363
365
  labelProps: { label: T?.scopesLabel ?? "Scopes" },
364
366
  placeholder: T?.scopesPlaceholder ?? "Enter scopes",
365
367
  value: e.scopes ?? [],
366
368
  onChange: (e) => C({ scopes: e }),
367
369
  disabled: j,
368
- tagClassName: I
370
+ tagClassName: L
369
371
  })
370
372
  ]
371
373
  }),
372
- V()
374
+ H()
373
375
  ]
374
376
  }),
375
- e.authenticationType === o.ApiKey && /* @__PURE__ */ P("div", {
377
+ e.authenticationType === o.ApiKey && /* @__PURE__ */ F("div", {
376
378
  className: "flex flex-col gap-3 pt-2",
377
379
  children: [
378
- /* @__PURE__ */ P("div", {
380
+ /* @__PURE__ */ F("div", {
379
381
  className: "flex flex-col gap-2",
380
- children: [/* @__PURE__ */ N(v, {
382
+ children: [/* @__PURE__ */ P(y, {
381
383
  name: "apikey-login-mode",
382
384
  id: "apikey-with-login",
383
385
  value: c.WithLogin,
384
386
  labelProps: { label: T?.withLoginLabel ?? "With login" },
385
387
  isSelected: e.withLogin === c.WithLogin,
386
388
  disabled: j,
387
- onChange: L
388
- }), /* @__PURE__ */ N(v, {
389
+ onChange: R
390
+ }), /* @__PURE__ */ P(y, {
389
391
  name: "apikey-login-mode",
390
392
  id: "apikey-without-login",
391
393
  value: c.WithoutLogin,
392
394
  labelProps: { label: T?.withoutLoginLabel ?? "Without login" },
393
395
  isSelected: e.withLogin === c.WithoutLogin,
394
396
  disabled: j,
395
- onChange: L
397
+ onChange: R
396
398
  })]
397
399
  }),
398
- /* @__PURE__ */ P("div", {
400
+ /* @__PURE__ */ F("div", {
399
401
  className: "flex flex-col gap-3",
400
- children: [/* @__PURE__ */ N(h, {
402
+ children: [/* @__PURE__ */ P(h, {
401
403
  id: "toolset-key-header",
402
404
  value: e.keyHeader ?? "",
403
405
  onChange: (e) => C({ keyHeader: e ?? "" }),
@@ -409,7 +411,7 @@ var z = /* @__PURE__ */ function(e) {
409
411
  error: t.keyHeader || void 0,
410
412
  invalid: !!t.keyHeader,
411
413
  disabled: j
412
- }), e.withLogin === c.WithLogin && /* @__PURE__ */ N(h, {
414
+ }), e.withLogin === c.WithLogin && /* @__PURE__ */ P(_, {
413
415
  id: "toolset-api-key",
414
416
  value: e.apiKey ?? "",
415
417
  onChange: (e) => C({ apiKey: e ?? "" }),
@@ -418,15 +420,17 @@ var z = /* @__PURE__ */ function(e) {
418
420
  required: !0
419
421
  },
420
422
  placeholder: T?.apiKeyPlaceholder ?? "Enter API key",
423
+ showPasswordLabel: T?.showApiKeyLabel ?? "Show API key",
424
+ hidePasswordLabel: T?.hideApiKeyLabel ?? "Hide API key",
421
425
  error: t.apiKey || void 0,
422
426
  invalid: !!t.apiKey,
423
427
  disabled: j
424
428
  })]
425
429
  }),
426
- e.withLogin !== c.WithoutLogin && V()
430
+ e.withLogin !== c.WithoutLogin && H()
427
431
  ]
428
432
  }),
429
- k && /* @__PURE__ */ N(d, {
433
+ k && /* @__PURE__ */ P(d, {
430
434
  open: k,
431
435
  header: T?.logoutConfirmTitle ?? "Log out?",
432
436
  description: T?.logoutConfirmDescription ?? "Are you sure you want to log out? You will need to re-enter your credentials to use this toolset again.",
@@ -435,34 +439,34 @@ var z = /* @__PURE__ */ function(e) {
435
439
  variant: f.Danger,
436
440
  isLoading: E,
437
441
  disableConfirmButton: E,
438
- onConfirm: B,
442
+ onConfirm: V,
439
443
  onCancel: () => A(!1),
440
444
  onClose: () => A(!1)
441
445
  })
442
446
  ]
443
447
  });
444
- }, ce = C(({ url: e, className: t, labels: n }) => {
445
- let { isCopied: r, copy: i } = R(e), a = n?.copiedLabel ?? "Copied!";
446
- return /* @__PURE__ */ P("div", {
447
- className: L("flex flex-col gap-3", t),
448
+ }, le = C(({ url: e, className: t, labels: n }) => {
449
+ let { isCopied: r, copy: i } = z(e), a = n?.copiedLabel ?? "Copied!";
450
+ return /* @__PURE__ */ F("div", {
451
+ className: R("flex flex-col gap-3", t),
448
452
  children: [
449
- /* @__PURE__ */ P("div", {
453
+ /* @__PURE__ */ F("div", {
450
454
  className: "flex flex-col gap-1",
451
- children: [/* @__PURE__ */ N("p", {
455
+ children: [/* @__PURE__ */ P("p", {
452
456
  className: "dial-body-semi-text text-start text-primary",
453
457
  children: n?.title ?? "Connect toolset"
454
- }), /* @__PURE__ */ N("p", {
458
+ }), /* @__PURE__ */ P("p", {
455
459
  className: "dial-small-text text-start text-secondary",
456
460
  children: n?.description ?? "Copy endpoint URL to easily integrate toolset into your workflows"
457
461
  })]
458
462
  }),
459
- /* @__PURE__ */ N("div", { children: /* @__PURE__ */ N(F, {
463
+ /* @__PURE__ */ P("div", { children: /* @__PURE__ */ P(I, {
460
464
  copiedLabel: a,
461
465
  copyLabel: n?.copyLabel ?? "Copy URL",
462
466
  isCopied: r,
463
467
  onClick: i
464
468
  }) }),
465
- /* @__PURE__ */ N("span", {
469
+ /* @__PURE__ */ P("span", {
466
470
  role: "status",
467
471
  "aria-live": "polite",
468
472
  className: "sr-only",
@@ -470,12 +474,12 @@ var z = /* @__PURE__ */ function(e) {
470
474
  })
471
475
  ]
472
476
  });
473
- }), le = ({ 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: m }) => {
474
- let [g, _] = O(null), v = !!a && !!r, b = E(() => [{
475
- value: z.Http,
477
+ }), ue = ({ 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: m }) => {
478
+ let [g, _] = O(null), v = !!a && !!r, y = E(() => [{
479
+ value: B.Http,
476
480
  label: "HTTP"
477
481
  }, {
478
- value: z.Sse,
482
+ value: B.Sse,
479
483
  label: "SSE"
480
484
  }], []);
481
485
  return T(() => {
@@ -500,10 +504,10 @@ var z = /* @__PURE__ */ function(e) {
500
504
  e.auth,
501
505
  e.endpoint,
502
506
  o
503
- ]), /* @__PURE__ */ P("div", {
507
+ ]), /* @__PURE__ */ F("div", {
504
508
  className: "flex max-w-[1060px] flex-col gap-4",
505
509
  children: [
506
- /* @__PURE__ */ N(h, {
510
+ /* @__PURE__ */ P(h, {
507
511
  id: "toolset-endpoint",
508
512
  value: e.endpoint,
509
513
  onChange: (e) => d({ endpoint: e ?? "" }),
@@ -516,19 +520,19 @@ var z = /* @__PURE__ */ function(e) {
516
520
  error: t.endpoint || void 0,
517
521
  invalid: !!t.endpoint
518
522
  }),
519
- /* @__PURE__ */ N(y, {
523
+ /* @__PURE__ */ P(b, {
520
524
  labelProps: {
521
525
  label: m?.protocolLabel ?? "Protocol",
522
526
  required: !0
523
527
  },
524
528
  id: "toolset-protocol",
525
- items: b,
529
+ items: y,
526
530
  value: e.protocol,
527
531
  onChange: (e) => {
528
532
  d({ protocol: e });
529
533
  }
530
534
  }),
531
- g ? /* @__PURE__ */ N(x, {
535
+ g ? /* @__PURE__ */ P(x, {
532
536
  id: "toolset-allowed-tools",
533
537
  multiple: !0,
534
538
  searchable: !0,
@@ -541,15 +545,15 @@ var z = /* @__PURE__ */ function(e) {
541
545
  })),
542
546
  value: e.allowedTools,
543
547
  onChange: (e) => d({ allowedTools: e })
544
- }) : /* @__PURE__ */ N(S, {
548
+ }) : /* @__PURE__ */ P(S, {
545
549
  id: "toolset-allowed-tools",
546
550
  labelProps: { label: m?.allowedToolsLabel ?? "Allowed tools" },
547
551
  placeholder: m?.allowedToolsPlaceholder ?? "Add tools, comma separated",
548
552
  value: e.allowedTools,
549
553
  onChange: (e) => d({ allowedTools: e }),
550
- tagClassName: I
554
+ tagClassName: L
551
555
  }),
552
- /* @__PURE__ */ N($, {
556
+ /* @__PURE__ */ P(ce, {
553
557
  auth: e.auth,
554
558
  errors: t,
555
559
  isSaving: n,
@@ -564,63 +568,63 @@ var z = /* @__PURE__ */ function(e) {
564
568
  onEnsureSaved: p,
565
569
  labels: m?.auth
566
570
  }),
567
- v && /* @__PURE__ */ N(ce, {
571
+ v && /* @__PURE__ */ P(le, {
568
572
  url: a ?? "",
569
573
  labels: m?.connect,
570
574
  className: "border-t border-tertiary pt-4"
571
575
  })
572
576
  ]
573
577
  });
574
- }, ue = [
578
+ }, de = [
575
579
  "keyHeader",
576
580
  "apiKey",
577
581
  "clientId",
578
582
  "clientSecret",
579
583
  "authorizationEndpoint",
580
584
  "tokenEndpoint"
581
- ], de = [
585
+ ], fe = [
582
586
  "name",
583
587
  "version",
584
588
  "endpoint",
585
- ...ue
586
- ], fe = new Set(de), pe = (e) => {
589
+ ...de
590
+ ], pe = new Set(fe), me = (e) => {
587
591
  let t = {};
588
- for (let n of Object.keys(e)) fe.has(n) && (t[n] = !0);
592
+ for (let n of Object.keys(e)) pe.has(n) && (t[n] = !0);
589
593
  return t;
590
- }, me = ({ initialForm: e, toolsetId: n, onPersist: s, onPostSaveLogin: l, onToolsetsChanged: d, onSaveSuccess: f, onSaveComplete: p, onBack: m, buildMcpUrl: h, listToolNames: v, authActions: y, onOAuthLogin: b, onNotifySuccess: x, onNotifyError: S, bucket: C, FileManagerModal: k, resolveIconUrl: A, allowedMimeTypes: j, maxFileSizeBytes: ee, availableLocaleOptions: te, labels: F }) => {
591
- let I = !!n, [L, R] = O(""), z = n || L, [B, V] = O(e), [H, U] = O(!1), [W, G] = O({}), [K, J] = O({}), Y = D(null);
594
+ }, he = ({ initialForm: e, toolsetId: n, onPersist: s, onPostSaveLogin: l, onToolsetsChanged: d, onSaveSuccess: f, onSaveComplete: p, onBack: m, buildMcpUrl: h, listToolNames: _, authActions: y, onOAuthLogin: b, onNotifySuccess: ee, onNotifyError: x, bucket: S, FileManagerModal: C, resolveIconUrl: k, allowedMimeTypes: A, maxFileSizeBytes: j, availableLocaleOptions: te, labels: M }) => {
595
+ let I = !!n, [L, R] = O(""), z = n || L, [B, V] = O(e), [H, U] = O(!1), [W, G] = O({}), [K, q] = O({}), Y = D(null);
592
596
  T(() => {
593
- V(e), Y.current = e, G({}), J({}), R("");
597
+ V(e), Y.current = e, G({}), q({}), R("");
594
598
  }, [e]);
595
599
  let X = w((e) => {
596
600
  V((t) => ({
597
601
  ...t,
598
602
  ...e
599
- })), J((t) => ({
603
+ })), q((t) => ({
600
604
  ...t,
601
- ...pe(e)
605
+ ...me(e)
602
606
  })), G((t) => {
603
607
  let n = { ...t };
604
608
  for (let t of Object.keys(e)) delete n[t];
605
609
  return n;
606
610
  });
607
- }, []), Z = w((e) => {
611
+ }, []), ne = w((e) => {
608
612
  V((t) => ({
609
613
  ...t,
610
614
  auth: {
611
615
  ...t.auth,
612
616
  ...e
613
617
  }
614
- })), J((t) => ({
618
+ })), q((t) => ({
615
619
  ...t,
616
- ...pe(e)
620
+ ...me(e)
617
621
  })), G((t) => {
618
622
  let n = { ...t };
619
- if ("authenticationType" in e || "withLogin" in e || "isLoggedIn" in e) for (let e of ue) delete n[e];
623
+ if ("authenticationType" in e || "withLogin" in e || "isLoggedIn" in e) for (let e of de) delete n[e];
620
624
  else for (let t of Object.keys(e)) delete n[t];
621
625
  return n;
622
626
  }), "isLoggedIn" in e && d();
623
- }, [d]), re = w(async () => {
627
+ }, [d]), Z = w(async () => {
624
628
  if (z && Y.current != null && JSON.stringify(Y.current) === JSON.stringify(B)) return z;
625
629
  U(!0);
626
630
  try {
@@ -636,10 +640,10 @@ var z = /* @__PURE__ */ function(e) {
636
640
  z,
637
641
  s,
638
642
  d
639
- ]), ie = w(async () => await re() ?? !1, [re]), Q = w((e) => {
640
- let n = F?.validation, r = {}, i = a(e, { validateVersionPattern: !0 });
641
- 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() ? q(e.endpoint) || (r.endpoint = n?.endpointInvalid ?? "Enter a valid http(s) or sse 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"), !I && !e.auth.clientSecret?.trim() && (r.clientSecret = n?.clientSecretRequired ?? "Client secret is required"), e.auth.authorizationEndpoint?.trim() && !q(e.auth.authorizationEndpoint) && (r.authorizationEndpoint = n?.endpointInvalid ?? "Enter a valid http(s) or sse URL"), e.auth.tokenEndpoint?.trim() && !q(e.auth.tokenEndpoint) && (r.tokenEndpoint = n?.endpointInvalid ?? "Enter a valid http(s) or sse URL"))), r;
642
- }, [F, I]), oe = w(async () => {
643
+ ]), ie = w(async () => await Z() ?? !1, [Z]), Q = w((e) => {
644
+ let n = M?.validation, r = {}, i = a(e, { validateVersionPattern: !0 });
645
+ 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) or sse 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"), !I && !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) or sse URL"), e.auth.tokenEndpoint?.trim() && !J(e.auth.tokenEndpoint) && (r.tokenEndpoint = n?.endpointInvalid ?? "Enter a valid http(s) or sse URL"))), r;
646
+ }, [M, I]), $ = w(async () => {
643
647
  let e = Q(B);
644
648
  if (Object.keys(e).length > 0) {
645
649
  G(e);
@@ -654,7 +658,7 @@ var z = /* @__PURE__ */ function(e) {
654
658
  await l(e, B.auth), p();
655
659
  } catch (e) {
656
660
  let { traceId: t } = await u(e);
657
- S(F?.settings?.auth?.errorLoginFailed ?? "Failed to log in. Please check your credentials and try again.", t);
661
+ x(M?.settings?.auth?.errorLoginFailed ?? "Failed to log in. Please check your credentials and try again.", t);
658
662
  }
659
663
  } catch {} finally {
660
664
  U(!1);
@@ -668,11 +672,11 @@ var z = /* @__PURE__ */ function(e) {
668
672
  f,
669
673
  p,
670
674
  l,
671
- S,
672
- F
673
- ]), se = E(() => !ne(B, I), [B, I]), $ = E(() => {
675
+ x,
676
+ M
677
+ ]), oe = E(() => !re(B, I), [B, I]), se = E(() => {
674
678
  let e = Q(B), t = { ...W };
675
- for (let n of de) {
679
+ for (let n of fe) {
676
680
  if (!K[n]) continue;
677
681
  let r = e[n];
678
682
  r ? t[n] = r : delete t[n];
@@ -684,58 +688,58 @@ var z = /* @__PURE__ */ function(e) {
684
688
  B,
685
689
  Q
686
690
  ]), ce = h && z ? h(z) : void 0;
687
- return /* @__PURE__ */ N(r, {
688
- title: I ? F?.layout?.editTitle ?? "Edit toolset" : F?.layout?.createTitle ?? "Create toolset",
691
+ return /* @__PURE__ */ P(r, {
692
+ title: I ? M?.layout?.editTitle ?? "Edit toolset" : M?.layout?.createTitle ?? "Create toolset",
689
693
  onBack: m,
690
- backAriaLabel: F?.layout?.backAriaLabel ?? "Back to catalog",
694
+ backAriaLabel: M?.layout?.backAriaLabel ?? "Back to catalog",
691
695
  isSaving: H,
692
- labels: { savingStatusLabel: F?.layout?.savingStatusLabel ?? "Saving" },
693
- actions: /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ N(g, {
694
- label: F?.layout?.cancelLabel ?? "Cancel",
696
+ labels: { savingStatusLabel: M?.layout?.savingStatusLabel ?? "Saving" },
697
+ actions: /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ P(g, {
698
+ label: M?.layout?.cancelLabel ?? "Cancel",
695
699
  onClick: m
696
- }), /* @__PURE__ */ N(_, {
697
- label: I ? F?.layout?.saveLabel ?? "Save" : F?.layout?.createLabel ?? "Create",
698
- disabled: se,
699
- onClick: oe
700
+ }), /* @__PURE__ */ P(v, {
701
+ label: I ? M?.layout?.saveLabel ?? "Save" : M?.layout?.createLabel ?? "Create",
702
+ disabled: oe,
703
+ onClick: $
700
704
  })] }),
701
- leftContent: /* @__PURE__ */ N(i, {
702
- title: F?.layout?.metadataSectionTitle ?? "Metadata",
705
+ leftContent: /* @__PURE__ */ P(i, {
706
+ title: M?.layout?.metadataSectionTitle ?? "Metadata",
703
707
  className: "border-0 p-4 desktop:p-6",
704
- children: /* @__PURE__ */ N(ae, {
708
+ children: /* @__PURE__ */ P(ae, {
705
709
  form: B,
706
- errors: $,
707
- bucket: C,
708
- FileManagerModal: k,
709
- resolveIconUrl: A,
710
- allowedMimeTypes: j,
711
- maxFileSizeBytes: ee,
710
+ errors: se,
711
+ bucket: S,
712
+ FileManagerModal: C,
713
+ resolveIconUrl: k,
714
+ allowedMimeTypes: A,
715
+ maxFileSizeBytes: j,
712
716
  availableLocaleOptions: te,
713
717
  onChange: X,
714
- labels: F?.general
718
+ labels: M?.general
715
719
  })
716
720
  }),
717
- rightContent: /* @__PURE__ */ N(i, {
718
- title: F?.layout?.setupSectionTitle ?? "Setup",
721
+ rightContent: /* @__PURE__ */ P(i, {
722
+ title: M?.layout?.setupSectionTitle ?? "Setup",
719
723
  className: "border-0 p-4 desktop:p-6",
720
- children: /* @__PURE__ */ N(le, {
724
+ children: /* @__PURE__ */ P(ue, {
721
725
  form: B,
722
- errors: $,
726
+ errors: se,
723
727
  isSaving: H,
724
728
  toolsetId: z,
725
729
  isEditMode: I,
726
730
  connectUrl: ce,
727
- listToolNames: v,
731
+ listToolNames: _,
728
732
  authActions: y,
729
733
  onOAuthLogin: b,
730
- onNotifySuccess: x,
731
- onNotifyError: S,
734
+ onNotifySuccess: ee,
735
+ onNotifyError: x,
732
736
  onChange: X,
733
- onAuthChange: Z,
737
+ onAuthChange: ne,
734
738
  onEnsureSaved: ie,
735
- labels: F?.settings
739
+ labels: M?.settings
736
740
  })
737
741
  })
738
742
  });
739
743
  };
740
744
  //#endregion
741
- export { H as AUTH_TYPE_ICONS, B as DEFAULT_TOOLSET_NAME, V as DEFAULT_TOOLSET_VERSION, ae as GeneralForm, me as ToolsetEditor, Q as ToolsetOAuthLoginStatus, z as ToolsetTransportType, G as getDefaultToolsetForm, U as getStorageSafeUniqueToolsetName, Z as isToolsetAuthValid, ne as isToolsetFormValid, q as isValidEndpointUrl, Y as normalizeReturnedEndpointUrl };
745
+ export { U as AUTH_TYPE_ICONS, V as DEFAULT_TOOLSET_NAME, H as DEFAULT_TOOLSET_VERSION, ae as GeneralForm, he as ToolsetEditor, $ as ToolsetOAuthLoginStatus, B as ToolsetTransportType, K as getDefaultToolsetForm, W as getStorageSafeUniqueToolsetName, Z as isToolsetAuthValid, re as isToolsetFormValid, J as isValidEndpointUrl, X as normalizeReturnedEndpointUrl };
@@ -28,6 +28,10 @@ export interface AuthSectionLabels {
28
28
  apiKeyLabel?: string;
29
29
  /** Placeholder for the API key value field. Defaults to `'Enter API key'`. */
30
30
  apiKeyPlaceholder?: string;
31
+ /** Accessible name of the API key reveal toggle while the value is masked. Defaults to `'Show API key'`. */
32
+ showApiKeyLabel?: string;
33
+ /** Accessible name of the API key reveal toggle while the value is visible. Defaults to `'Hide API key'`. */
34
+ hideApiKeyLabel?: string;
31
35
  /** Label for the OAuth client id field. Defaults to `'Client ID'`. */
32
36
  clientIdLabel?: string;
33
37
  /** Placeholder for the OAuth client id field. Defaults to `'Enter client ID'`. */
@@ -36,6 +40,10 @@ export interface AuthSectionLabels {
36
40
  clientSecretLabel?: string;
37
41
  /** Placeholder for the OAuth client secret field. Defaults to `'Enter client secret'`. */
38
42
  clientSecretPlaceholder?: string;
43
+ /** Accessible name of the client secret reveal toggle while the value is masked. Defaults to `'Show client secret'`. */
44
+ showClientSecretLabel?: string;
45
+ /** Accessible name of the client secret reveal toggle while the value is visible. Defaults to `'Hide client secret'`. */
46
+ hideClientSecretLabel?: string;
39
47
  /** Label for the OAuth authorization endpoint field. Defaults to `'Authorization endpoint'`. */
40
48
  authorizationEndpointLabel?: string;
41
49
  /** Placeholder for the OAuth authorization endpoint field. Defaults to `'Enter authorization endpoint'`. */
@@ -1 +1 @@
1
- {"version":3,"file":"auth-section-props.d.ts","sourceRoot":"","sources":["../../src/models/auth-section-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EAClB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAEtE,oFAAoF;AACpF,MAAM,WAAW,iBAAiB;IAChC,6EAA6E;IAC7E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qEAAqE;IACrE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yEAAyE;IACzE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wEAAwE;IACxE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iFAAiF;IACjF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,uFAAuF;IACvF,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,qFAAqF;I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AAE,MAAM,CAAC;IACjB,gFAAgF;IAChF,WAAW,EAAE,kBAAkB,CAAC;IAChC;;;;OAIG;IACH,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,yDAAyD;IACzD,YAAY,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAC;IAC5D;;;OAGG;IACH,aAAa,EAAE,MAAM,OAAO,CAAC,MAAM,GAAG,KAAK,CAAC,CAAC;IAC7C,iEAAiE;IACjE,MAAM,CAAC,EAAE,iBAAiB,CAAC;CAC5B"}
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.1.0-dev.471",
4
+ "version": "1.1.0-dev.472",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -17,11 +17,11 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "@tabler/icons-react": "^3.44.0",
20
- "@epam/ai-dial-builder-form": "1.1.0-dev.471"
20
+ "@epam/ai-dial-builder-form": "1.1.0-dev.472"
21
21
  },
22
22
  "peerDependencies": {
23
- "@epam/ai-dial-chat-hooks": "1.1.0-dev.471",
24
- "@epam/ai-dial-chat-shared": "1.1.0-dev.471",
23
+ "@epam/ai-dial-chat-hooks": "1.1.0-dev.472",
24
+ "@epam/ai-dial-chat-shared": "1.1.0-dev.472",
25
25
  "@epam/ai-dial-ui-kit": "^0.14.0-dev.15",
26
26
  "react": "^19.0.0"
27
27
  },