@epam/ai-dial-toolset-editor 1.3.0-dev.326 → 1.3.0-dev.331
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolsetEditor.d.ts","sourceRoot":"","sources":["../../../src/components/ToolsetEditor/ToolsetEditor.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;AAI3C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAiD5E,uKAAuK;AACvK,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,
|
|
1
|
+
{"version":3,"file":"ToolsetEditor.d.ts","sourceRoot":"","sources":["../../../src/components/ToolsetEditor/ToolsetEditor.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;AAI3C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAiD5E,uKAAuK;AACvK,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAkehD,CAAC"}
|
package/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { DEFAULT_DEPLOYMENT_VERSION as e, DeploymentCreationFieldErrorCode as t, EntityEditor as n, MetadataField as r, MetadataForm as i, useMetadataForm as a, validateDeploymentCreationFields as o } from "@epam/ai-dial-builder-form";
|
|
2
|
-
import { ToolsetAuthTypes as s, ToolsetCredentialsLevel as c, WithLogin as l, getApiErrorDetails as
|
|
3
|
-
import { CopyButton as
|
|
4
|
-
import { memo as
|
|
5
|
-
import { IconBrandOauth as
|
|
6
|
-
import { CaptionText as
|
|
7
|
-
import { jsx as
|
|
2
|
+
import { ToolsetAuthTypes as s, ToolsetCredentialsLevel as c, WithLogin as l, getApiErrorDetails as u } from "@epam/ai-dial-chat-hooks";
|
|
3
|
+
import { CopyButton as d, ENTITY_DESCRIPTION_MAX_LENGTH as f, ENTITY_NAME_MAX_LENGTH as p, TAG_INPUT_TAG_CLASS_NAME as m, TextRefinementField as h, buildCssVars as g, mergeClasses as _, useCodeCopy as v, useTextRefinement as y } from "@epam/ai-dial-chat-shared";
|
|
4
|
+
import { memo as b, useCallback as x, useEffect as S, useMemo as C, useRef as w, useState as T } from "react";
|
|
5
|
+
import { IconBrandOauth as E, IconKey as D, IconLockOff as O, IconLogin as ee, IconLogout as te } from "@tabler/icons-react";
|
|
6
|
+
import { CaptionText as k, ConfirmationPopup as ne, ConfirmationPopupVariant as re, DIAL_ICON_SIZE as ie, DIAL_KIT_ICON_STROKE as A, Input as j, LiveRegion as ae, LiveRegionElement as M, NeutralButton as oe, PasswordInput as N, Radio as P, RadioGroup as F, SegmentedControl as I, Select as L, TagInput as se } from "@epam/ai-dial-ui-kit";
|
|
7
|
+
import { 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
|
+
}({}), ce = e, le = {
|
|
15
15
|
name: {
|
|
16
16
|
label: "Name",
|
|
17
17
|
placeholder: "Enter name"
|
|
@@ -50,25 +50,25 @@ var R = {
|
|
|
50
50
|
saveLabel: "Save"
|
|
51
51
|
},
|
|
52
52
|
ariaLabel: "General"
|
|
53
|
-
},
|
|
54
|
-
[s.OAuth]:
|
|
55
|
-
[s.ApiKey]:
|
|
56
|
-
[s.None]:
|
|
57
|
-
},
|
|
53
|
+
}, H = {
|
|
54
|
+
[s.OAuth]: E,
|
|
55
|
+
[s.ApiKey]: D,
|
|
56
|
+
[s.None]: O
|
|
57
|
+
}, ue = () => ({
|
|
58
58
|
authenticationType: s.None,
|
|
59
59
|
withLogin: l.WithoutLogin,
|
|
60
60
|
isLoggedIn: !1
|
|
61
61
|
}), U = () => ({
|
|
62
62
|
name: "",
|
|
63
|
-
version:
|
|
63
|
+
version: ce,
|
|
64
64
|
iconUrl: "",
|
|
65
65
|
description: "",
|
|
66
66
|
topics: [],
|
|
67
67
|
otherLocales: [],
|
|
68
68
|
endpoint: "",
|
|
69
|
-
protocol:
|
|
69
|
+
protocol: V.Http,
|
|
70
70
|
allowedTools: [],
|
|
71
|
-
auth:
|
|
71
|
+
auth: ue()
|
|
72
72
|
}), W = (e) => {
|
|
73
73
|
if (!/^https?:\/\//.test(e) || e.endsWith(".") || e.endsWith("//")) return !1;
|
|
74
74
|
try {
|
|
@@ -76,16 +76,16 @@ var R = {
|
|
|
76
76
|
} catch {
|
|
77
77
|
return !1;
|
|
78
78
|
}
|
|
79
|
-
}, G = (e) => W(e.trim()), de = /^[A-Za-z][A-Za-z0-9+.-]*:[^\s#]+$/,
|
|
79
|
+
}, G = (e) => W(e.trim()), de = /^[A-Za-z][A-Za-z0-9+.-]*:[^\s#]+$/, fe = 2048, pe = (e) => {
|
|
80
80
|
let t = e?.trim() ?? "";
|
|
81
81
|
if (!t) return !0;
|
|
82
|
-
if (t.length >
|
|
82
|
+
if (t.length > fe || !de.test(t)) return !1;
|
|
83
83
|
try {
|
|
84
84
|
return !!new URL(t);
|
|
85
85
|
} catch {
|
|
86
86
|
return !1;
|
|
87
87
|
}
|
|
88
|
-
},
|
|
88
|
+
}, K = (e) => e.replace(/^(https?):\/([^/])/, "$1://$2"), q = (e) => {
|
|
89
89
|
let t = e?.trim() ?? "";
|
|
90
90
|
if (!t || W(t)) return t;
|
|
91
91
|
let n = [t];
|
|
@@ -94,11 +94,11 @@ var R = {
|
|
|
94
94
|
e !== t && n.push(e);
|
|
95
95
|
} catch {}
|
|
96
96
|
for (let e of n) {
|
|
97
|
-
let t =
|
|
97
|
+
let t = K(e);
|
|
98
98
|
if (W(t)) return t;
|
|
99
99
|
}
|
|
100
100
|
return t;
|
|
101
|
-
}, J = (e, t = !1) => e.isLoggedIn ? !0 : e.authenticationType === s.ApiKey ? e.keyHeader?.trim() ? e.withLogin === l.WithoutLogin || !!(e.keyHeader?.trim() && e.apiKey?.trim()) : !1 : e.authenticationType === s.OAuth && e.withLogin === l.WithConfig ? !!e.clientId?.trim() && (t || !!e.clientSecret?.trim()) && G(e.authorizationEndpoint ?? "") && G(e.tokenEndpoint ?? "") &&
|
|
101
|
+
}, J = (e, t = !1) => e.isLoggedIn ? !0 : e.authenticationType === s.ApiKey ? e.keyHeader?.trim() ? e.withLogin === l.WithoutLogin || !!(e.keyHeader?.trim() && e.apiKey?.trim()) : !1 : e.authenticationType === s.OAuth && e.withLogin === l.WithConfig ? !!e.clientId?.trim() && (t || !!e.clientSecret?.trim()) && G(e.authorizationEndpoint ?? "") && G(e.tokenEndpoint ?? "") && pe(e.resource) : !0, me = (e, t = !1) => Object.keys(o(e, { validateVersionPattern: !0 })).length === 0 && G(e.endpoint) && J(e.auth, t), Y = /* @__PURE__ */ new Set([
|
|
102
102
|
"name",
|
|
103
103
|
"description",
|
|
104
104
|
"iconUrl",
|
|
@@ -121,47 +121,47 @@ var R = {
|
|
|
121
121
|
};
|
|
122
122
|
}, X = /* @__PURE__ */ function(e) {
|
|
123
123
|
return e.Success = "success", e.Cancelled = "cancelled", e.PopupBlocked = "popup-blocked", e.InvalidConfig = "invalid-config", e.Failed = "failed", e;
|
|
124
|
-
}({}),
|
|
125
|
-
let [
|
|
126
|
-
|
|
124
|
+
}({}), _e = { openAccessDescription: "_openAccessDescription_1ltst_1" }, Z = "toolset-client-secret-keep-caption", ve = (e) => `******${e}`, ye = (e) => e === s.None ? l.WithoutLogin : l.WithLogin, Q = (e, t) => e === s.None ? t?.typeNone ?? "Open access" : e === s.OAuth ? t?.typeOAuth ?? "OAuth" : t?.typeApiKey ?? "API Key", be = ({ auth: e, errors: t, isSaving: n, toolsetId: r, isEditMode: i, endpoint: a, authActions: o, onOAuthLogin: d, onNotifySuccess: f, onNotifyError: p, onAuthChange: h, onEnsureSaved: g, labels: v, titleClassName: y = "dial-h3-text", openAccessDescriptionClassName: b = "dial-small-text" }) => {
|
|
125
|
+
let [x, S] = T(!1), [C, w] = T(!1), E = e.isLoggedIn || n || x, D = i && e.clientSecretHint && !e.clientSecret ? e.clientSecretHint : void 0, O = G(a) && J(e, i) && !E, ae = (t) => {
|
|
126
|
+
E || t === e.authenticationType || h({
|
|
127
127
|
authenticationType: t,
|
|
128
|
-
withLogin:
|
|
128
|
+
withLogin: ye(t)
|
|
129
129
|
});
|
|
130
|
-
},
|
|
131
|
-
|
|
132
|
-
},
|
|
133
|
-
switch (e.auth != null &&
|
|
130
|
+
}, M = (e) => {
|
|
131
|
+
h({ withLogin: e });
|
|
132
|
+
}, F = (e) => {
|
|
133
|
+
switch (e.auth != null && h(e.auth), e.status) {
|
|
134
134
|
case X.Success:
|
|
135
|
-
|
|
135
|
+
h({ isLoggedIn: !0 }), f(v?.loginSuccessMessage ?? "Successfully logged in.");
|
|
136
136
|
return;
|
|
137
137
|
case X.PopupBlocked:
|
|
138
|
-
|
|
138
|
+
p(v?.errorPopupBlocked ?? "The login popup was blocked by your browser. Please allow popups for this site and try again.");
|
|
139
139
|
return;
|
|
140
140
|
case X.InvalidConfig:
|
|
141
|
-
|
|
141
|
+
p(v?.errorOAuthConfigMissing ?? "The OAuth provider did not return a valid client configuration. Please check the endpoint or contact your administrator.");
|
|
142
142
|
return;
|
|
143
143
|
case X.Failed:
|
|
144
|
-
|
|
144
|
+
p(v?.errorLoginFailed ?? "Failed to log in. Please check your credentials and try again.", e.traceId);
|
|
145
145
|
return;
|
|
146
146
|
case X.Cancelled: return;
|
|
147
147
|
}
|
|
148
|
-
},
|
|
149
|
-
if (!
|
|
148
|
+
}, L = async () => {
|
|
149
|
+
if (!O) return;
|
|
150
150
|
if (e.authenticationType === s.OAuth) {
|
|
151
|
-
|
|
151
|
+
S(!0);
|
|
152
152
|
try {
|
|
153
|
-
|
|
153
|
+
F(await d({
|
|
154
154
|
auth: e,
|
|
155
|
-
ensureSaved:
|
|
155
|
+
ensureSaved: g
|
|
156
156
|
}));
|
|
157
157
|
} finally {
|
|
158
|
-
|
|
158
|
+
S(!1);
|
|
159
159
|
}
|
|
160
160
|
return;
|
|
161
161
|
}
|
|
162
|
-
let t = await
|
|
162
|
+
let t = await g();
|
|
163
163
|
if (t) {
|
|
164
|
-
|
|
164
|
+
S(!0);
|
|
165
165
|
try {
|
|
166
166
|
let n = {
|
|
167
167
|
url: t,
|
|
@@ -169,325 +169,325 @@ var R = {
|
|
|
169
169
|
authenticationType: e.authenticationType,
|
|
170
170
|
apiKey: e.apiKey?.trim()
|
|
171
171
|
};
|
|
172
|
-
await o.login(t, n),
|
|
172
|
+
await o.login(t, n), h({ isLoggedIn: !0 }), f(v?.loginSuccessMessage ?? "Successfully logged in.");
|
|
173
173
|
} catch (e) {
|
|
174
|
-
let { traceId: t } = await
|
|
175
|
-
|
|
174
|
+
let { traceId: t } = await u(e);
|
|
175
|
+
p(v?.errorLoginFailed ?? "Failed to log in. Please check your credentials and try again.", t);
|
|
176
176
|
} finally {
|
|
177
|
-
|
|
177
|
+
S(!1);
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
|
-
},
|
|
181
|
-
|
|
180
|
+
}, B = async () => {
|
|
181
|
+
S(!0);
|
|
182
182
|
try {
|
|
183
183
|
let t = {
|
|
184
184
|
url: r,
|
|
185
185
|
credentialsLevel: c.User,
|
|
186
186
|
authenticationType: e.authenticationType
|
|
187
187
|
};
|
|
188
|
-
await o.logout(r, t),
|
|
188
|
+
await o.logout(r, t), h({ isLoggedIn: !1 }), w(!1), f(v?.logoutSuccessMessage ?? "Successfully logged out.");
|
|
189
189
|
} catch (e) {
|
|
190
|
-
let { traceId: t } = await
|
|
191
|
-
|
|
190
|
+
let { traceId: t } = await u(e);
|
|
191
|
+
p(v?.errorLogoutFailed ?? "Failed to log out. Please try again.", t);
|
|
192
192
|
} finally {
|
|
193
|
-
|
|
193
|
+
S(!1);
|
|
194
194
|
}
|
|
195
|
-
},
|
|
195
|
+
}, V = () => e.isLoggedIn ? /* @__PURE__ */ R("div", {
|
|
196
196
|
className: "flex",
|
|
197
|
-
children: /* @__PURE__ */
|
|
198
|
-
label:
|
|
199
|
-
iconBefore: /* @__PURE__ */
|
|
200
|
-
size:
|
|
201
|
-
stroke:
|
|
197
|
+
children: /* @__PURE__ */ R(oe, {
|
|
198
|
+
label: v?.logOutLabel ?? "Log out",
|
|
199
|
+
iconBefore: /* @__PURE__ */ R(te, {
|
|
200
|
+
size: ie.MD,
|
|
201
|
+
stroke: A
|
|
202
202
|
}),
|
|
203
|
-
onClick: () =>
|
|
204
|
-
disabled: n ||
|
|
203
|
+
onClick: () => w(!0),
|
|
204
|
+
disabled: n || x
|
|
205
205
|
})
|
|
206
|
-
}) : /* @__PURE__ */
|
|
206
|
+
}) : /* @__PURE__ */ R("div", {
|
|
207
207
|
className: "flex",
|
|
208
|
-
children: /* @__PURE__ */
|
|
209
|
-
label:
|
|
210
|
-
iconBefore: /* @__PURE__ */
|
|
211
|
-
size:
|
|
212
|
-
stroke:
|
|
208
|
+
children: /* @__PURE__ */ R(oe, {
|
|
209
|
+
label: v?.logInLabel ?? "Log in",
|
|
210
|
+
iconBefore: /* @__PURE__ */ R(ee, {
|
|
211
|
+
size: ie.MD,
|
|
212
|
+
stroke: A
|
|
213
213
|
}),
|
|
214
|
-
onClick:
|
|
215
|
-
disabled: !
|
|
214
|
+
onClick: L,
|
|
215
|
+
disabled: !O
|
|
216
216
|
})
|
|
217
217
|
});
|
|
218
|
-
return /* @__PURE__ */
|
|
218
|
+
return /* @__PURE__ */ z("section", {
|
|
219
219
|
className: "flex flex-col gap-2",
|
|
220
220
|
children: [
|
|
221
|
-
/* @__PURE__ */
|
|
222
|
-
className:
|
|
223
|
-
children:
|
|
221
|
+
/* @__PURE__ */ R("h3", {
|
|
222
|
+
className: y,
|
|
223
|
+
children: v?.sectionTitle ?? "Authentication"
|
|
224
224
|
}),
|
|
225
|
-
/* @__PURE__ */ I
|
|
226
|
-
"aria-label":
|
|
225
|
+
/* @__PURE__ */ R(I, {
|
|
226
|
+
"aria-label": v?.sectionTitle ?? "Authentication",
|
|
227
227
|
value: e.authenticationType,
|
|
228
|
-
onChange: (e) =>
|
|
228
|
+
onChange: (e) => ae(e),
|
|
229
229
|
segmentClassName: "px-2",
|
|
230
230
|
items: [
|
|
231
231
|
s.None,
|
|
232
232
|
s.OAuth,
|
|
233
233
|
s.ApiKey
|
|
234
234
|
].map((t) => {
|
|
235
|
-
let n =
|
|
235
|
+
let n = H[t];
|
|
236
236
|
return {
|
|
237
237
|
value: t,
|
|
238
|
-
label: /* @__PURE__ */
|
|
238
|
+
label: /* @__PURE__ */ z("div", {
|
|
239
239
|
className: "flex items-center gap-2",
|
|
240
|
-
children: [/* @__PURE__ */
|
|
240
|
+
children: [/* @__PURE__ */ R(n, {
|
|
241
241
|
className: "shrink-0",
|
|
242
|
-
size:
|
|
243
|
-
stroke:
|
|
242
|
+
size: ie.SM,
|
|
243
|
+
stroke: A,
|
|
244
244
|
"aria-hidden": !0
|
|
245
|
-
}), /* @__PURE__ */
|
|
245
|
+
}), /* @__PURE__ */ R("span", {
|
|
246
246
|
className: "sr-only desktop:not-sr-only",
|
|
247
|
-
children:
|
|
247
|
+
children: Q(t, v)
|
|
248
248
|
})]
|
|
249
249
|
}),
|
|
250
|
-
disabled:
|
|
250
|
+
disabled: E && e.authenticationType !== t
|
|
251
251
|
};
|
|
252
252
|
})
|
|
253
253
|
}),
|
|
254
|
-
e.authenticationType === s.None && /* @__PURE__ */
|
|
255
|
-
className:
|
|
256
|
-
children:
|
|
254
|
+
e.authenticationType === s.None && /* @__PURE__ */ R("p", {
|
|
255
|
+
className: _("pt-2", b, _e.openAccessDescription),
|
|
256
|
+
children: v?.openAccessDescription ?? "Open endpoint, no credentials"
|
|
257
257
|
}),
|
|
258
|
-
e.authenticationType === s.OAuth && /* @__PURE__ */
|
|
258
|
+
e.authenticationType === s.OAuth && /* @__PURE__ */ z("div", {
|
|
259
259
|
className: "flex flex-col gap-3 pt-2",
|
|
260
260
|
children: [
|
|
261
|
-
/* @__PURE__ */
|
|
261
|
+
/* @__PURE__ */ z("div", {
|
|
262
262
|
className: "flex flex-col gap-2",
|
|
263
|
-
children: [/* @__PURE__ */
|
|
263
|
+
children: [/* @__PURE__ */ R(P, {
|
|
264
264
|
name: "oauth-login-mode",
|
|
265
265
|
id: "oauth-with-login",
|
|
266
266
|
value: l.WithLogin,
|
|
267
|
-
labelProps: { label:
|
|
267
|
+
labelProps: { label: v?.withLoginOAuthLabel ?? "Standard login" },
|
|
268
268
|
isSelected: e.withLogin === l.WithLogin,
|
|
269
|
-
disabled:
|
|
270
|
-
onChange:
|
|
271
|
-
}), /* @__PURE__ */
|
|
269
|
+
disabled: E,
|
|
270
|
+
onChange: M
|
|
271
|
+
}), /* @__PURE__ */ R(P, {
|
|
272
272
|
name: "oauth-login-mode",
|
|
273
273
|
id: "oauth-with-config",
|
|
274
274
|
value: l.WithConfig,
|
|
275
|
-
labelProps: { label:
|
|
275
|
+
labelProps: { label: v?.withConfigOAuthLabel ?? "Custom login" },
|
|
276
276
|
isSelected: e.withLogin === l.WithConfig,
|
|
277
|
-
disabled:
|
|
278
|
-
onChange:
|
|
277
|
+
disabled: E,
|
|
278
|
+
onChange: M
|
|
279
279
|
})]
|
|
280
280
|
}),
|
|
281
|
-
e.withLogin === l.WithConfig && /* @__PURE__ */
|
|
281
|
+
e.withLogin === l.WithConfig && /* @__PURE__ */ z("div", {
|
|
282
282
|
className: "flex flex-col gap-3",
|
|
283
283
|
children: [
|
|
284
|
-
/* @__PURE__ */
|
|
284
|
+
/* @__PURE__ */ R(j, {
|
|
285
285
|
id: "toolset-client-id",
|
|
286
286
|
value: e.clientId ?? "",
|
|
287
|
-
onChange: (e) =>
|
|
287
|
+
onChange: (e) => h({ clientId: e ?? "" }),
|
|
288
288
|
labelProps: {
|
|
289
|
-
label:
|
|
289
|
+
label: v?.clientIdLabel ?? "Client ID",
|
|
290
290
|
required: !0
|
|
291
291
|
},
|
|
292
|
-
placeholder:
|
|
292
|
+
placeholder: v?.clientIdPlaceholder ?? "Enter client ID",
|
|
293
293
|
error: t.clientId || void 0,
|
|
294
294
|
invalid: !!t.clientId,
|
|
295
|
-
disabled:
|
|
295
|
+
disabled: E
|
|
296
296
|
}),
|
|
297
|
-
/* @__PURE__ */
|
|
297
|
+
/* @__PURE__ */ z("div", {
|
|
298
298
|
className: "flex flex-col gap-1",
|
|
299
|
-
children: [/* @__PURE__ */
|
|
299
|
+
children: [/* @__PURE__ */ R(N, {
|
|
300
300
|
id: "toolset-client-secret",
|
|
301
301
|
value: e.clientSecret ?? "",
|
|
302
|
-
onChange: (e) =>
|
|
302
|
+
onChange: (e) => h({ clientSecret: e ?? "" }),
|
|
303
303
|
labelProps: {
|
|
304
|
-
label:
|
|
304
|
+
label: v?.clientSecretLabel ?? "Client secret",
|
|
305
305
|
required: !i
|
|
306
306
|
},
|
|
307
|
-
placeholder:
|
|
308
|
-
"aria-describedby":
|
|
309
|
-
showPasswordLabel:
|
|
310
|
-
hidePasswordLabel:
|
|
307
|
+
placeholder: D == null ? v?.clientSecretPlaceholder ?? "Enter client secret" : (v?.clientSecretHintPlaceholder ?? ve)(D),
|
|
308
|
+
"aria-describedby": D == null ? void 0 : Z,
|
|
309
|
+
showPasswordLabel: v?.showClientSecretLabel ?? "Show client secret",
|
|
310
|
+
hidePasswordLabel: v?.hideClientSecretLabel ?? "Hide client secret",
|
|
311
311
|
error: t.clientSecret || void 0,
|
|
312
312
|
invalid: !!t.clientSecret,
|
|
313
|
-
disabled:
|
|
314
|
-
}),
|
|
315
|
-
id:
|
|
316
|
-
text:
|
|
313
|
+
disabled: E
|
|
314
|
+
}), D != null && /* @__PURE__ */ R(k, {
|
|
315
|
+
id: Z,
|
|
316
|
+
text: v?.clientSecretKeepCaption ?? "Leave empty to keep the saved secret."
|
|
317
317
|
})]
|
|
318
318
|
}),
|
|
319
|
-
/* @__PURE__ */
|
|
319
|
+
/* @__PURE__ */ R(j, {
|
|
320
320
|
id: "toolset-authorization-endpoint",
|
|
321
321
|
value: e.authorizationEndpoint ?? "",
|
|
322
|
-
onChange: (e) =>
|
|
322
|
+
onChange: (e) => h({ authorizationEndpoint: e ?? "" }),
|
|
323
323
|
labelProps: {
|
|
324
|
-
label:
|
|
324
|
+
label: v?.authorizationEndpointLabel ?? "Authorization endpoint",
|
|
325
325
|
required: !0
|
|
326
326
|
},
|
|
327
|
-
placeholder:
|
|
327
|
+
placeholder: v?.authorizationEndpointPlaceholder ?? "Enter authorization endpoint",
|
|
328
328
|
error: t.authorizationEndpoint || void 0,
|
|
329
329
|
invalid: !!t.authorizationEndpoint,
|
|
330
|
-
disabled:
|
|
330
|
+
disabled: E
|
|
331
331
|
}),
|
|
332
|
-
/* @__PURE__ */
|
|
332
|
+
/* @__PURE__ */ R(j, {
|
|
333
333
|
id: "toolset-token-endpoint",
|
|
334
334
|
value: e.tokenEndpoint ?? "",
|
|
335
|
-
onChange: (e) =>
|
|
335
|
+
onChange: (e) => h({ tokenEndpoint: e ?? "" }),
|
|
336
336
|
labelProps: {
|
|
337
|
-
label:
|
|
337
|
+
label: v?.tokenEndpointLabel ?? "Token endpoint",
|
|
338
338
|
required: !0
|
|
339
339
|
},
|
|
340
|
-
placeholder:
|
|
340
|
+
placeholder: v?.tokenEndpointPlaceholder ?? "Enter token endpoint",
|
|
341
341
|
error: t.tokenEndpoint || void 0,
|
|
342
342
|
invalid: !!t.tokenEndpoint,
|
|
343
|
-
disabled:
|
|
343
|
+
disabled: E
|
|
344
344
|
}),
|
|
345
|
-
/* @__PURE__ */
|
|
345
|
+
/* @__PURE__ */ R(se, {
|
|
346
346
|
id: "toolset-scopes",
|
|
347
|
-
labelProps: { label:
|
|
348
|
-
placeholder:
|
|
347
|
+
labelProps: { label: v?.scopesLabel ?? "Scopes" },
|
|
348
|
+
placeholder: v?.scopesPlaceholder ?? "Enter scopes",
|
|
349
349
|
value: e.scopes ?? [],
|
|
350
|
-
onChange: (e) =>
|
|
351
|
-
disabled:
|
|
352
|
-
tagClassName:
|
|
350
|
+
onChange: (e) => h({ scopes: e }),
|
|
351
|
+
disabled: E,
|
|
352
|
+
tagClassName: m
|
|
353
353
|
}),
|
|
354
|
-
/* @__PURE__ */
|
|
354
|
+
/* @__PURE__ */ R(j, {
|
|
355
355
|
id: "toolset-resource",
|
|
356
356
|
value: e.resource ?? "",
|
|
357
|
-
onChange: (e) =>
|
|
358
|
-
labelProps: { label:
|
|
359
|
-
placeholder:
|
|
357
|
+
onChange: (e) => h({ resource: e ?? "" }),
|
|
358
|
+
labelProps: { label: v?.resourceLabel ?? "Resource" },
|
|
359
|
+
placeholder: v?.resourcePlaceholder ?? "Enter resource URI",
|
|
360
360
|
error: t.resource || void 0,
|
|
361
361
|
invalid: !!t.resource,
|
|
362
|
-
disabled:
|
|
362
|
+
disabled: E
|
|
363
363
|
})
|
|
364
364
|
]
|
|
365
365
|
}),
|
|
366
|
-
|
|
366
|
+
V()
|
|
367
367
|
]
|
|
368
368
|
}),
|
|
369
|
-
e.authenticationType === s.ApiKey && /* @__PURE__ */
|
|
369
|
+
e.authenticationType === s.ApiKey && /* @__PURE__ */ z("div", {
|
|
370
370
|
className: "flex flex-col gap-3 pt-2",
|
|
371
371
|
children: [
|
|
372
|
-
/* @__PURE__ */
|
|
372
|
+
/* @__PURE__ */ z("div", {
|
|
373
373
|
className: "flex flex-col gap-2",
|
|
374
|
-
children: [/* @__PURE__ */
|
|
374
|
+
children: [/* @__PURE__ */ R(P, {
|
|
375
375
|
name: "apikey-login-mode",
|
|
376
376
|
id: "apikey-with-login",
|
|
377
377
|
value: l.WithLogin,
|
|
378
|
-
labelProps: { label:
|
|
378
|
+
labelProps: { label: v?.withLoginLabel ?? "With login" },
|
|
379
379
|
isSelected: e.withLogin === l.WithLogin,
|
|
380
|
-
disabled:
|
|
381
|
-
onChange:
|
|
382
|
-
}), /* @__PURE__ */
|
|
380
|
+
disabled: E,
|
|
381
|
+
onChange: M
|
|
382
|
+
}), /* @__PURE__ */ R(P, {
|
|
383
383
|
name: "apikey-login-mode",
|
|
384
384
|
id: "apikey-without-login",
|
|
385
385
|
value: l.WithoutLogin,
|
|
386
|
-
labelProps: { label:
|
|
386
|
+
labelProps: { label: v?.withoutLoginLabel ?? "Without login" },
|
|
387
387
|
isSelected: e.withLogin === l.WithoutLogin,
|
|
388
|
-
disabled:
|
|
389
|
-
onChange:
|
|
388
|
+
disabled: E,
|
|
389
|
+
onChange: M
|
|
390
390
|
})]
|
|
391
391
|
}),
|
|
392
|
-
/* @__PURE__ */
|
|
392
|
+
/* @__PURE__ */ z("div", {
|
|
393
393
|
className: "flex flex-col gap-3",
|
|
394
|
-
children: [/* @__PURE__ */
|
|
394
|
+
children: [/* @__PURE__ */ R(j, {
|
|
395
395
|
id: "toolset-key-header",
|
|
396
396
|
value: e.keyHeader ?? "",
|
|
397
|
-
onChange: (e) =>
|
|
397
|
+
onChange: (e) => h({ keyHeader: e ?? "" }),
|
|
398
398
|
labelProps: {
|
|
399
|
-
label:
|
|
399
|
+
label: v?.keyHeaderLabel ?? "API Key parameter name",
|
|
400
400
|
required: !0
|
|
401
401
|
},
|
|
402
|
-
placeholder:
|
|
402
|
+
placeholder: v?.keyHeaderPlaceholder ?? "Enter API key parameter name",
|
|
403
403
|
error: t.keyHeader || void 0,
|
|
404
404
|
invalid: !!t.keyHeader,
|
|
405
|
-
disabled:
|
|
406
|
-
}), e.withLogin === l.WithLogin && /* @__PURE__ */
|
|
405
|
+
disabled: E
|
|
406
|
+
}), e.withLogin === l.WithLogin && /* @__PURE__ */ R(N, {
|
|
407
407
|
id: "toolset-api-key",
|
|
408
408
|
value: e.apiKey ?? "",
|
|
409
|
-
onChange: (e) =>
|
|
409
|
+
onChange: (e) => h({ apiKey: e ?? "" }),
|
|
410
410
|
labelProps: {
|
|
411
|
-
label:
|
|
411
|
+
label: v?.apiKeyLabel ?? "API key",
|
|
412
412
|
required: !0
|
|
413
413
|
},
|
|
414
|
-
placeholder:
|
|
415
|
-
showPasswordLabel:
|
|
416
|
-
hidePasswordLabel:
|
|
414
|
+
placeholder: v?.apiKeyPlaceholder ?? "Enter API key",
|
|
415
|
+
showPasswordLabel: v?.showApiKeyLabel ?? "Show API key",
|
|
416
|
+
hidePasswordLabel: v?.hideApiKeyLabel ?? "Hide API key",
|
|
417
417
|
error: t.apiKey || void 0,
|
|
418
418
|
invalid: !!t.apiKey,
|
|
419
|
-
disabled:
|
|
419
|
+
disabled: E
|
|
420
420
|
})]
|
|
421
421
|
}),
|
|
422
|
-
e.withLogin !== l.WithoutLogin &&
|
|
422
|
+
e.withLogin !== l.WithoutLogin && V()
|
|
423
423
|
]
|
|
424
424
|
}),
|
|
425
|
-
|
|
426
|
-
open:
|
|
427
|
-
header:
|
|
428
|
-
description:
|
|
429
|
-
confirmLabel:
|
|
430
|
-
cancelLabel:
|
|
431
|
-
variant:
|
|
432
|
-
isLoading:
|
|
433
|
-
disableConfirmButton:
|
|
434
|
-
onConfirm:
|
|
435
|
-
onCancel: () =>
|
|
436
|
-
onClose: () =>
|
|
425
|
+
C && /* @__PURE__ */ R(ne, {
|
|
426
|
+
open: C,
|
|
427
|
+
header: v?.logoutConfirmTitle ?? "Log out?",
|
|
428
|
+
description: v?.logoutConfirmDescription ?? "Are you sure you want to log out? You will need to re-enter your credentials to use this toolset again.",
|
|
429
|
+
confirmLabel: v?.logOutLabel ?? "Log out",
|
|
430
|
+
cancelLabel: v?.cancelLabel ?? "Cancel",
|
|
431
|
+
variant: re.Danger,
|
|
432
|
+
isLoading: x,
|
|
433
|
+
disableConfirmButton: x,
|
|
434
|
+
onConfirm: B,
|
|
435
|
+
onCancel: () => w(!1),
|
|
436
|
+
onClose: () => w(!1)
|
|
437
437
|
})
|
|
438
438
|
]
|
|
439
439
|
});
|
|
440
440
|
}, xe = {
|
|
441
441
|
title: "_title_17wsg_1",
|
|
442
442
|
description: "_description_17wsg_5"
|
|
443
|
-
}, Se =
|
|
444
|
-
let { isCopied: a, copy: o } =
|
|
445
|
-
return /* @__PURE__ */
|
|
446
|
-
className:
|
|
443
|
+
}, Se = b(({ url: e, className: t, labels: n, titleClassName: r = "dial-body-semi-text", descriptionClassName: i = "dial-small-text" }) => {
|
|
444
|
+
let { isCopied: a, copy: o } = v(e), s = n?.copiedLabel ?? "Copied!";
|
|
445
|
+
return /* @__PURE__ */ z("div", {
|
|
446
|
+
className: _("flex flex-col gap-3", t),
|
|
447
447
|
children: [
|
|
448
|
-
/* @__PURE__ */
|
|
448
|
+
/* @__PURE__ */ z("div", {
|
|
449
449
|
className: "flex flex-col gap-1",
|
|
450
|
-
children: [/* @__PURE__ */
|
|
451
|
-
className:
|
|
450
|
+
children: [/* @__PURE__ */ R("p", {
|
|
451
|
+
className: _("text-start", r, xe.title),
|
|
452
452
|
children: n?.title ?? "Connect toolset"
|
|
453
|
-
}), /* @__PURE__ */
|
|
454
|
-
className:
|
|
453
|
+
}), /* @__PURE__ */ R("p", {
|
|
454
|
+
className: _("text-start", i, xe.description),
|
|
455
455
|
children: n?.description ?? "Copy endpoint URL to easily integrate toolset into your workflows"
|
|
456
456
|
})]
|
|
457
457
|
}),
|
|
458
|
-
/* @__PURE__ */
|
|
458
|
+
/* @__PURE__ */ R("div", { children: /* @__PURE__ */ R(d, {
|
|
459
459
|
copiedLabel: s,
|
|
460
460
|
copyLabel: n?.copyLabel ?? "Copy URL",
|
|
461
461
|
isCopied: a,
|
|
462
462
|
onClick: o
|
|
463
463
|
}) }),
|
|
464
|
-
/* @__PURE__ */
|
|
464
|
+
/* @__PURE__ */ R(ae, {
|
|
465
465
|
visuallyHidden: !0,
|
|
466
|
-
as:
|
|
466
|
+
as: M.Span,
|
|
467
467
|
children: a ? s : ""
|
|
468
468
|
})
|
|
469
469
|
]
|
|
470
470
|
});
|
|
471
|
-
}),
|
|
472
|
-
let [
|
|
473
|
-
value:
|
|
471
|
+
}), Ce = { connectDivider: "_connectDivider_obfkd_1" }, we = ({ 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, colors: v, typography: y }) => {
|
|
472
|
+
let [b, x] = T(null), w = !!a && !!r, E = C(() => [{
|
|
473
|
+
value: V.Http,
|
|
474
474
|
label: "HTTP"
|
|
475
475
|
}, {
|
|
476
|
-
value:
|
|
476
|
+
value: V.Sse,
|
|
477
477
|
label: "SSE"
|
|
478
478
|
}], []);
|
|
479
|
-
return
|
|
479
|
+
return S(() => {
|
|
480
480
|
if (!r || !o || !J(e.auth, i)) {
|
|
481
|
-
|
|
481
|
+
x(null);
|
|
482
482
|
return;
|
|
483
483
|
}
|
|
484
484
|
let t = !1;
|
|
485
485
|
return (async () => {
|
|
486
486
|
try {
|
|
487
487
|
let e = await o(r);
|
|
488
|
-
t ||
|
|
488
|
+
t || x(e.length > 0 ? e : null);
|
|
489
489
|
} catch {
|
|
490
|
-
t ||
|
|
490
|
+
t || x(null);
|
|
491
491
|
}
|
|
492
492
|
})(), () => {
|
|
493
493
|
t = !0;
|
|
@@ -498,62 +498,62 @@ var R = {
|
|
|
498
498
|
e.auth,
|
|
499
499
|
e.endpoint,
|
|
500
500
|
o
|
|
501
|
-
]), /* @__PURE__ */
|
|
501
|
+
]), /* @__PURE__ */ z("div", {
|
|
502
502
|
className: "flex max-w-[1060px] flex-col gap-4",
|
|
503
|
-
style:
|
|
504
|
-
"--te-connect-title":
|
|
505
|
-
"--te-connect-description":
|
|
506
|
-
"--te-connect-divider":
|
|
507
|
-
"--te-open-access-description":
|
|
503
|
+
style: g({
|
|
504
|
+
"--te-connect-title": v?.connectTitle,
|
|
505
|
+
"--te-connect-description": v?.connectDescription,
|
|
506
|
+
"--te-connect-divider": v?.connectDivider,
|
|
507
|
+
"--te-open-access-description": v?.openAccessDescription
|
|
508
508
|
}),
|
|
509
509
|
children: [
|
|
510
|
-
/* @__PURE__ */
|
|
510
|
+
/* @__PURE__ */ R(j, {
|
|
511
511
|
id: "toolset-endpoint",
|
|
512
512
|
value: e.endpoint,
|
|
513
|
-
onChange: (e) =>
|
|
513
|
+
onChange: (e) => d({ endpoint: e ?? "" }),
|
|
514
514
|
labelProps: {
|
|
515
|
-
label:
|
|
515
|
+
label: h?.endpointLabel ?? "Endpoint",
|
|
516
516
|
required: !0
|
|
517
517
|
},
|
|
518
|
-
placeholder:
|
|
519
|
-
caption:
|
|
518
|
+
placeholder: h?.endpointPlaceholder ?? "https://...",
|
|
519
|
+
caption: h?.endpointCaption ?? "The HTTPS address where the server accepts MCP requests. Choose the transport under Protocol below.",
|
|
520
520
|
error: t.endpoint || void 0,
|
|
521
521
|
invalid: !!t.endpoint
|
|
522
522
|
}),
|
|
523
|
-
/* @__PURE__ */
|
|
523
|
+
/* @__PURE__ */ R(F, {
|
|
524
524
|
labelProps: {
|
|
525
|
-
label:
|
|
525
|
+
label: h?.protocolLabel ?? "Protocol",
|
|
526
526
|
required: !0
|
|
527
527
|
},
|
|
528
528
|
id: "toolset-protocol",
|
|
529
|
-
items:
|
|
529
|
+
items: E,
|
|
530
530
|
value: e.protocol,
|
|
531
531
|
onChange: (e) => {
|
|
532
|
-
|
|
532
|
+
d({ protocol: e });
|
|
533
533
|
}
|
|
534
534
|
}),
|
|
535
|
-
|
|
535
|
+
b ? /* @__PURE__ */ R(L, {
|
|
536
536
|
id: "toolset-allowed-tools",
|
|
537
537
|
multiple: !0,
|
|
538
538
|
searchable: !0,
|
|
539
539
|
selectAll: !0,
|
|
540
|
-
labelProps: { label:
|
|
541
|
-
placeholder:
|
|
542
|
-
options:
|
|
540
|
+
labelProps: { label: h?.allowedToolsLabel ?? "Allowed tools" },
|
|
541
|
+
placeholder: h?.allowedToolsSelectPlaceholder ?? "Select allowed tools",
|
|
542
|
+
options: b.map((e) => ({
|
|
543
543
|
value: e,
|
|
544
544
|
label: e
|
|
545
545
|
})),
|
|
546
546
|
value: e.allowedTools,
|
|
547
|
-
onChange: (e) =>
|
|
548
|
-
}) : /* @__PURE__ */
|
|
547
|
+
onChange: (e) => d({ allowedTools: e })
|
|
548
|
+
}) : /* @__PURE__ */ R(se, {
|
|
549
549
|
id: "toolset-allowed-tools",
|
|
550
|
-
labelProps: { label:
|
|
551
|
-
placeholder:
|
|
550
|
+
labelProps: { label: h?.allowedToolsLabel ?? "Allowed tools" },
|
|
551
|
+
placeholder: h?.allowedToolsPlaceholder ?? "Add tools, comma separated",
|
|
552
552
|
value: e.allowedTools,
|
|
553
|
-
onChange: (e) =>
|
|
554
|
-
tagClassName:
|
|
553
|
+
onChange: (e) => d({ allowedTools: e }),
|
|
554
|
+
tagClassName: m
|
|
555
555
|
}),
|
|
556
|
-
/* @__PURE__ */
|
|
556
|
+
/* @__PURE__ */ R(be, {
|
|
557
557
|
auth: e.auth,
|
|
558
558
|
errors: t,
|
|
559
559
|
isSaving: n,
|
|
@@ -563,23 +563,23 @@ var R = {
|
|
|
563
563
|
authActions: s,
|
|
564
564
|
onOAuthLogin: c,
|
|
565
565
|
onNotifySuccess: l,
|
|
566
|
-
onNotifyError:
|
|
567
|
-
onAuthChange:
|
|
568
|
-
onEnsureSaved:
|
|
569
|
-
labels:
|
|
570
|
-
titleClassName:
|
|
571
|
-
openAccessDescriptionClassName:
|
|
566
|
+
onNotifyError: u,
|
|
567
|
+
onAuthChange: f,
|
|
568
|
+
onEnsureSaved: p,
|
|
569
|
+
labels: h?.auth,
|
|
570
|
+
titleClassName: y?.authTitleClassName,
|
|
571
|
+
openAccessDescriptionClassName: y?.openAccessDescriptionClassName
|
|
572
572
|
}),
|
|
573
|
-
|
|
573
|
+
w && /* @__PURE__ */ R(Se, {
|
|
574
574
|
url: a ?? "",
|
|
575
|
-
labels:
|
|
576
|
-
titleClassName:
|
|
577
|
-
descriptionClassName:
|
|
578
|
-
className:
|
|
575
|
+
labels: h?.connect,
|
|
576
|
+
titleClassName: y?.connectTitleClassName,
|
|
577
|
+
descriptionClassName: y?.connectDescriptionClassName,
|
|
578
|
+
className: _("border-t pt-4", Ce.connectDivider)
|
|
579
579
|
})
|
|
580
580
|
]
|
|
581
581
|
});
|
|
582
|
-
},
|
|
582
|
+
}, Te = [
|
|
583
583
|
"keyHeader",
|
|
584
584
|
"apiKey",
|
|
585
585
|
"clientId",
|
|
@@ -587,40 +587,40 @@ var R = {
|
|
|
587
587
|
"authorizationEndpoint",
|
|
588
588
|
"tokenEndpoint",
|
|
589
589
|
"resource"
|
|
590
|
-
],
|
|
590
|
+
], Ee = ["endpoint", ...Te], $ = new Set(Ee), De = { validateVersionPattern: !0 }, Oe = (e) => {
|
|
591
591
|
let t = {};
|
|
592
|
-
for (let n of Object.keys(e))
|
|
592
|
+
for (let n of Object.keys(e)) $.has(n) && (t[n] = !0);
|
|
593
593
|
return t;
|
|
594
|
-
}, ke = ({ initialForm: e, toolsetId: o, onPersist: c, onPostSaveLogin:
|
|
595
|
-
let
|
|
594
|
+
}, ke = ({ initialForm: e, toolsetId: o, onPersist: c, onPostSaveLogin: d, onToolsetsChanged: m, onSaveSuccess: g, onSaveComplete: _, onBack: v, onDirtyChange: b, buildMcpUrl: E, listToolNames: D, authActions: O, onOAuthLogin: ee, onNotifySuccess: te, onNotifyError: k, avatarPicker: ne, availableLocaleOptions: re, formatLocaleLabel: ie, onRefineDescription: A, labels: j, colors: ae, typography: M, isVersionReadOnly: oe = !1 }) => {
|
|
595
|
+
let N = !!o, [P, F] = T(""), I = o || P, [L, se] = T({
|
|
596
596
|
initialForm: e,
|
|
597
597
|
key: 0
|
|
598
|
-
}), [
|
|
599
|
-
|
|
598
|
+
}), [z, V] = T(e);
|
|
599
|
+
L.initialForm !== e && (se({
|
|
600
600
|
initialForm: e,
|
|
601
|
-
key:
|
|
602
|
-
}),
|
|
603
|
-
let
|
|
604
|
-
initialValues:
|
|
601
|
+
key: L.key + 1
|
|
602
|
+
}), V(e));
|
|
603
|
+
let ce = C(() => he(e), [e]), { values: H, setValues: ue, markTouched: U, visibleErrorCodes: W, attemptSubmit: de } = a({
|
|
604
|
+
initialValues: ce,
|
|
605
605
|
validationOptions: De,
|
|
606
|
-
reseedKey:
|
|
607
|
-
}), [
|
|
608
|
-
...
|
|
609
|
-
...
|
|
610
|
-
}), [
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
}, [
|
|
614
|
-
let [
|
|
615
|
-
|
|
616
|
-
K(e), Q.current = e, Z({}),
|
|
606
|
+
reseedKey: L.key
|
|
607
|
+
}), [fe, K] = T(e), q = C(() => ({
|
|
608
|
+
...fe,
|
|
609
|
+
...H
|
|
610
|
+
}), [fe, H]), J = C(() => JSON.stringify(q) !== JSON.stringify(z), [q, z]);
|
|
611
|
+
S(() => {
|
|
612
|
+
b?.(J);
|
|
613
|
+
}, [J, b]);
|
|
614
|
+
let [Y, X] = T(!1), [_e, Z] = T({}), [ve, ye] = T({}), Q = w(null);
|
|
615
|
+
S(() => {
|
|
616
|
+
K(e), Q.current = e, Z({}), ye({}), F("");
|
|
617
617
|
}, [e]);
|
|
618
|
-
let
|
|
618
|
+
let be = x((e) => {
|
|
619
619
|
let { metadata: t, setup: n } = ge(e);
|
|
620
|
-
Object.keys(t).length > 0 && (
|
|
620
|
+
Object.keys(t).length > 0 && (ue(t), "name" in t && U(r.Name), "version" in t && U(r.Version)), Object.keys(n).length !== 0 && (K((e) => ({
|
|
621
621
|
...e,
|
|
622
622
|
...n
|
|
623
|
-
})),
|
|
623
|
+
})), ye((e) => ({
|
|
624
624
|
...e,
|
|
625
625
|
...Oe(n)
|
|
626
626
|
})), Z((e) => {
|
|
@@ -628,153 +628,155 @@ var R = {
|
|
|
628
628
|
for (let e of Object.keys(n)) delete t[e];
|
|
629
629
|
return t;
|
|
630
630
|
}));
|
|
631
|
-
}, [
|
|
631
|
+
}, [ue, U]), xe = x((e) => {
|
|
632
632
|
K((t) => ({
|
|
633
633
|
...t,
|
|
634
634
|
auth: {
|
|
635
635
|
...t.auth,
|
|
636
636
|
...e
|
|
637
637
|
}
|
|
638
|
-
})),
|
|
638
|
+
})), ye((t) => ({
|
|
639
639
|
...t,
|
|
640
640
|
...Oe(e)
|
|
641
641
|
})), Z((t) => {
|
|
642
642
|
let n = { ...t };
|
|
643
|
-
if ("authenticationType" in e || "withLogin" in e || "isLoggedIn" in e) for (let e of
|
|
643
|
+
if ("authenticationType" in e || "withLogin" in e || "isLoggedIn" in e) for (let e of Te) delete n[e];
|
|
644
644
|
else for (let t of Object.keys(e)) delete n[t];
|
|
645
645
|
return n;
|
|
646
|
-
}), "isLoggedIn" in e &&
|
|
647
|
-
}, [
|
|
648
|
-
if (
|
|
649
|
-
|
|
646
|
+
}), "isLoggedIn" in e && m();
|
|
647
|
+
}, [m]), Se = x(async () => {
|
|
648
|
+
if (I && Q.current != null && JSON.stringify(Q.current) === JSON.stringify(q)) return I;
|
|
649
|
+
X(!0);
|
|
650
650
|
try {
|
|
651
|
-
let e = await c(q,
|
|
652
|
-
return e ? (
|
|
651
|
+
let e = await c(q, I);
|
|
652
|
+
return e ? (I || F(e), Q.current = q, V(q), b?.(!1), await m(), e) : null;
|
|
653
653
|
} catch {
|
|
654
654
|
return null;
|
|
655
655
|
} finally {
|
|
656
|
-
|
|
656
|
+
X(!1);
|
|
657
657
|
}
|
|
658
658
|
}, [
|
|
659
659
|
q,
|
|
660
|
-
|
|
660
|
+
I,
|
|
661
661
|
c,
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
]),
|
|
665
|
-
let t =
|
|
666
|
-
return e.endpoint.trim() ? G(e.endpoint) || (n.endpoint = t?.endpointInvalid ?? "Enter a valid http(s) URL") : n.endpoint = t?.endpointRequired ?? "Endpoint is required", e.auth.isLoggedIn || (e.auth.authenticationType === s.ApiKey && (e.auth.keyHeader?.trim() || (n.keyHeader = t?.keyHeaderRequired ?? "Key name is required"), e.auth.withLogin === l.WithLogin && !e.auth.apiKey?.trim() && (n.apiKey = t?.apiKeyRequired ?? "API key is required")), e.auth.authenticationType === s.OAuth && e.auth.withLogin === l.WithConfig && (e.auth.clientId?.trim() || (n.clientId = t?.clientIdRequired ?? "Client ID is required"), !
|
|
667
|
-
}, [
|
|
668
|
-
let e =
|
|
662
|
+
m,
|
|
663
|
+
b
|
|
664
|
+
]), Ce = x(async () => await Se() ?? !1, [Se]), $ = x((e) => {
|
|
665
|
+
let t = j?.validation, n = {};
|
|
666
|
+
return e.endpoint.trim() ? G(e.endpoint) || (n.endpoint = t?.endpointInvalid ?? "Enter a valid http(s) URL") : n.endpoint = t?.endpointRequired ?? "Endpoint is required", e.auth.isLoggedIn || (e.auth.authenticationType === s.ApiKey && (e.auth.keyHeader?.trim() || (n.keyHeader = t?.keyHeaderRequired ?? "Key name is required"), e.auth.withLogin === l.WithLogin && !e.auth.apiKey?.trim() && (n.apiKey = t?.apiKeyRequired ?? "API key is required")), e.auth.authenticationType === s.OAuth && e.auth.withLogin === l.WithConfig && (e.auth.clientId?.trim() || (n.clientId = t?.clientIdRequired ?? "Client ID is required"), !N && !e.auth.clientSecret?.trim() && (n.clientSecret = t?.clientSecretRequired ?? "Client secret is required"), e.auth.authorizationEndpoint?.trim() ? G(e.auth.authorizationEndpoint) || (n.authorizationEndpoint = t?.endpointInvalid ?? "Enter a valid http(s) URL") : n.authorizationEndpoint = t?.authorizationEndpointRequired ?? "Authorization endpoint is required", e.auth.tokenEndpoint?.trim() ? G(e.auth.tokenEndpoint) || (n.tokenEndpoint = t?.endpointInvalid ?? "Enter a valid http(s) URL") : n.tokenEndpoint = t?.tokenEndpointRequired ?? "Token endpoint is required", pe(e.auth.resource) || (n.resource = t?.resourceInvalid ?? "Enter an absolute URI without a fragment"))), n;
|
|
667
|
+
}, [j, N]), ke = x(async () => {
|
|
668
|
+
let e = de(), t = $(q);
|
|
669
669
|
if (!e || Object.keys(t).length > 0) Z(t);
|
|
670
670
|
else {
|
|
671
|
-
Z({}),
|
|
671
|
+
Z({}), X(!0);
|
|
672
672
|
try {
|
|
673
|
-
let e = await c(q,
|
|
673
|
+
let e = await c(q, I);
|
|
674
674
|
if (!e) return;
|
|
675
|
-
|
|
675
|
+
V(q), await m(), g(q);
|
|
676
676
|
try {
|
|
677
|
-
await
|
|
677
|
+
await d(e, q.auth), _();
|
|
678
678
|
} catch (e) {
|
|
679
|
-
let { traceId: t } = await
|
|
680
|
-
|
|
679
|
+
let { traceId: t } = await u(e);
|
|
680
|
+
k(j?.settings?.auth?.errorLoginFailed ?? "Failed to log in. Please check your credentials and try again.", t);
|
|
681
681
|
}
|
|
682
682
|
} catch {} finally {
|
|
683
|
-
|
|
683
|
+
X(!1);
|
|
684
684
|
}
|
|
685
685
|
}
|
|
686
686
|
}, [
|
|
687
|
-
|
|
687
|
+
de,
|
|
688
688
|
q,
|
|
689
689
|
$,
|
|
690
|
-
|
|
690
|
+
I,
|
|
691
691
|
c,
|
|
692
|
-
|
|
693
|
-
h,
|
|
692
|
+
m,
|
|
694
693
|
g,
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
694
|
+
_,
|
|
695
|
+
d,
|
|
696
|
+
k,
|
|
697
|
+
j
|
|
698
|
+
]), Ae = y({
|
|
699
|
+
value: H.description,
|
|
700
|
+
onChange: (e) => be({ description: e }),
|
|
701
|
+
onRefine: A,
|
|
702
|
+
disabled: Y,
|
|
703
|
+
resetKey: L.key
|
|
704
|
+
}), je = A ? (e, t) => /* @__PURE__ */ R(h, {
|
|
705
705
|
isEnabled: !0,
|
|
706
706
|
fieldId: t,
|
|
707
|
-
label:
|
|
708
|
-
labels:
|
|
709
|
-
refinement:
|
|
710
|
-
disabled:
|
|
707
|
+
label: j?.general?.form?.description.label ?? "Description",
|
|
708
|
+
labels: j?.refinement,
|
|
709
|
+
refinement: Ae,
|
|
710
|
+
disabled: Ae.isPending || Y,
|
|
711
711
|
children: e
|
|
712
|
-
}) : void 0,
|
|
713
|
-
form:
|
|
714
|
-
avatarPicker:
|
|
715
|
-
}), [
|
|
716
|
-
let e =
|
|
717
|
-
for (let e of
|
|
718
|
-
if (!
|
|
712
|
+
}) : void 0, Me = C(() => ({
|
|
713
|
+
form: j?.general?.form ?? le,
|
|
714
|
+
avatarPicker: j?.general?.avatarPicker
|
|
715
|
+
}), [j?.general?.form, j?.general?.avatarPicker]), Ne = C(() => !me(q, N), [q, N]), Pe = C(() => {
|
|
716
|
+
let e = j?.validation, n = $(q), r = { ..._e };
|
|
717
|
+
for (let e of Ee) {
|
|
718
|
+
if (!ve[e]) continue;
|
|
719
719
|
let t = n[e];
|
|
720
720
|
t ? r[e] = t : delete r[e];
|
|
721
721
|
}
|
|
722
|
-
return
|
|
722
|
+
return W.name === t.Required ? r.name = e?.nameRequired ?? "Name is required" : W.name === t.TooLong ? r.name = e?.nameTooLong ?? `Use ${p} characters or fewer.` : W.name === t.ControlCharacters && (r.name = e?.nameControlCharacters ?? "Remove line breaks, tabs and other control characters."), W.description === t.TooLong && (r.description = e?.descriptionTooLong ?? `Use ${f} characters or fewer.`), W.version === t.InvalidFormat && (r.version = e?.versionInvalid ?? "Version may only contain letters, digits, dots, underscores, and dashes"), r;
|
|
723
723
|
}, [
|
|
724
|
+
ve,
|
|
724
725
|
_e,
|
|
725
|
-
X,
|
|
726
726
|
q,
|
|
727
|
-
|
|
728
|
-
|
|
727
|
+
j,
|
|
728
|
+
W,
|
|
729
729
|
$
|
|
730
|
-
]),
|
|
731
|
-
return /* @__PURE__ */
|
|
732
|
-
title:
|
|
733
|
-
onBack:
|
|
734
|
-
onCancel:
|
|
735
|
-
onSubmit:
|
|
736
|
-
submitLabel:
|
|
737
|
-
isSubmitting:
|
|
738
|
-
isSubmitDisabled:
|
|
739
|
-
metadataSectionClassName:
|
|
740
|
-
setupSectionClassName:
|
|
730
|
+
]), Fe = E && I ? E(I) : void 0;
|
|
731
|
+
return /* @__PURE__ */ R(n, {
|
|
732
|
+
title: N ? j?.layout?.editTitle ?? "Edit toolset" : j?.layout?.createTitle ?? "Create toolset",
|
|
733
|
+
onBack: v,
|
|
734
|
+
onCancel: v,
|
|
735
|
+
onSubmit: ke,
|
|
736
|
+
submitLabel: N ? j?.layout?.saveLabel ?? "Save" : j?.layout?.createLabel ?? "Create",
|
|
737
|
+
isSubmitting: Y,
|
|
738
|
+
isSubmitDisabled: Ne || Ae.isPending,
|
|
739
|
+
metadataSectionClassName: B.metadataSection,
|
|
740
|
+
setupSectionClassName: B.setupSection,
|
|
741
741
|
labels: {
|
|
742
|
-
backAriaLabel:
|
|
743
|
-
savingStatusLabel:
|
|
744
|
-
metadataTitle:
|
|
745
|
-
setupTitle:
|
|
746
|
-
cancelLabel:
|
|
742
|
+
backAriaLabel: j?.layout?.backAriaLabel ?? "Back to catalog",
|
|
743
|
+
savingStatusLabel: j?.layout?.savingStatusLabel ?? "Saving",
|
|
744
|
+
metadataTitle: j?.layout?.metadataSectionTitle ?? "Metadata",
|
|
745
|
+
setupTitle: j?.layout?.setupSectionTitle ?? "Setup",
|
|
746
|
+
cancelLabel: j?.layout?.cancelLabel ?? "Cancel"
|
|
747
747
|
},
|
|
748
|
-
metadata: /* @__PURE__ */
|
|
748
|
+
metadata: /* @__PURE__ */ R(i, {
|
|
749
749
|
values: q,
|
|
750
|
-
errors:
|
|
751
|
-
onChange:
|
|
752
|
-
avatarPicker:
|
|
753
|
-
availableLocaleOptions:
|
|
754
|
-
formatLocaleLabel:
|
|
755
|
-
renderDescription:
|
|
756
|
-
labels:
|
|
750
|
+
errors: Pe,
|
|
751
|
+
onChange: be,
|
|
752
|
+
avatarPicker: ne,
|
|
753
|
+
availableLocaleOptions: re,
|
|
754
|
+
formatLocaleLabel: ie,
|
|
755
|
+
renderDescription: je,
|
|
756
|
+
labels: Me,
|
|
757
|
+
isVersionReadOnly: oe,
|
|
758
|
+
versionReadOnlyTooltip: j?.versionReadOnlyTooltip
|
|
757
759
|
}),
|
|
758
|
-
setup: /* @__PURE__ */
|
|
760
|
+
setup: /* @__PURE__ */ R(we, {
|
|
759
761
|
form: q,
|
|
760
|
-
errors:
|
|
761
|
-
isSaving:
|
|
762
|
-
toolsetId:
|
|
763
|
-
isEditMode:
|
|
764
|
-
connectUrl:
|
|
765
|
-
listToolNames:
|
|
766
|
-
authActions:
|
|
767
|
-
onOAuthLogin:
|
|
768
|
-
onNotifySuccess:
|
|
769
|
-
onNotifyError:
|
|
770
|
-
onChange:
|
|
771
|
-
onAuthChange:
|
|
772
|
-
onEnsureSaved:
|
|
773
|
-
labels:
|
|
774
|
-
colors:
|
|
775
|
-
typography:
|
|
762
|
+
errors: Pe,
|
|
763
|
+
isSaving: Y,
|
|
764
|
+
toolsetId: I,
|
|
765
|
+
isEditMode: N,
|
|
766
|
+
connectUrl: Fe,
|
|
767
|
+
listToolNames: D,
|
|
768
|
+
authActions: O,
|
|
769
|
+
onOAuthLogin: ee,
|
|
770
|
+
onNotifySuccess: te,
|
|
771
|
+
onNotifyError: k,
|
|
772
|
+
onChange: be,
|
|
773
|
+
onAuthChange: xe,
|
|
774
|
+
onEnsureSaved: Ce,
|
|
775
|
+
labels: j?.settings,
|
|
776
|
+
colors: ae?.settings,
|
|
777
|
+
typography: M?.settings
|
|
776
778
|
})
|
|
777
779
|
});
|
|
778
780
|
};
|
|
779
781
|
//#endregion
|
|
780
|
-
export {
|
|
782
|
+
export { H as AUTH_TYPE_ICONS, ce as DEFAULT_TOOLSET_VERSION, B as TOOLSET_EDITOR_CLASS, ke as ToolsetEditor, X as ToolsetOAuthLoginStatus, V as ToolsetTransportType, U as getDefaultToolsetForm, J as isToolsetAuthValid, me as isToolsetFormValid, G as isValidEndpointUrl, q as normalizeReturnedEndpointUrl };
|
|
@@ -72,6 +72,8 @@ export interface ToolsetEditorLabels {
|
|
|
72
72
|
settings?: SettingsFormLabels;
|
|
73
73
|
/** Validation messages keyed by field. */
|
|
74
74
|
validation?: ToolsetEditorValidationLabels;
|
|
75
|
+
/** Tooltip over the Version field while `isVersionReadOnly` is set. Defaults to `MetadataForm`'s own. */
|
|
76
|
+
versionReadOnlyTooltip?: string;
|
|
75
77
|
}
|
|
76
78
|
/** Color overrides for the composed Toolset editor, grouped like its labels. */
|
|
77
79
|
export interface ToolsetEditorColors {
|
|
@@ -152,6 +154,8 @@ export interface ToolsetEditorProps {
|
|
|
152
154
|
onRefineDescription?: TextRefinementCallback;
|
|
153
155
|
/** Pre-translated labels; each group falls back to English defaults. */
|
|
154
156
|
labels?: ToolsetEditorLabels;
|
|
157
|
+
/** Renders the Version field read-only, e.g. while editing, where the host changes versions another way. Defaults to `false`. */
|
|
158
|
+
isVersionReadOnly?: boolean;
|
|
155
159
|
/** Color overrides, applied as CSS custom properties. */
|
|
156
160
|
colors?: ToolsetEditorColors;
|
|
157
161
|
/** Typography class overrides. */
|
|
@@ -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,kCAAkC,EAClC,wBAAwB,EACzB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EACV,sBAAsB,EACtB,oBAAoB,EACrB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACvB,MAAM,uBAAuB,CAAC;AAC/B,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,qGAAqG;IACrG,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gIAAgI;IAChI,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,6GAA6G;IAC7G,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,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,CAAC;IAC3B,gFAAgF;IAChF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oFAAoF;IACpF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,2GAA2G;IAC3G,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,8GAA8G;IAC9G,6BAA6B,CAAC,EAAE,MAAM,CAAC;IACvC,8FAA8F;IAC9F,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,iJAAiJ;IACjJ,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,0GAA0G;AAC1G,MAAM,WAAW,yBAAyB;IACxC,mEAAmE;IACnE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+DAA+D;IAC/D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kFAAkF;IAClF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,sEAAsE;IACtE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,yEAAyE;IACzE,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,yDAAyD;IACzD,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,0DAA0D;IAC1D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mEAAmE;IACnE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uEAAuE;IACvE,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,+EAA+E;IAC/E,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,oCAAoC;IACpC,MAAM,CAAC,EAAE,yBAAyB,CAAC;IACnC,+DAA+D;IAC/D,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B,0CAA0C;IAC1C,UAAU,CAAC,EAAE,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"toolset-editor-props.d.ts","sourceRoot":"","sources":["../../src/models/toolset-editor-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kCAAkC,EAClC,wBAAwB,EACzB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EACV,sBAAsB,EACtB,oBAAoB,EACrB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACvB,MAAM,uBAAuB,CAAC;AAC/B,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,qGAAqG;IACrG,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gIAAgI;IAChI,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,6GAA6G;IAC7G,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,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,CAAC;IAC3B,gFAAgF;IAChF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oFAAoF;IACpF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,2GAA2G;IAC3G,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,8GAA8G;IAC9G,6BAA6B,CAAC,EAAE,MAAM,CAAC;IACvC,8FAA8F;IAC9F,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,iJAAiJ;IACjJ,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,0GAA0G;AAC1G,MAAM,WAAW,yBAAyB;IACxC,mEAAmE;IACnE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+DAA+D;IAC/D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kFAAkF;IAClF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,sEAAsE;IACtE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,yEAAyE;IACzE,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,yDAAyD;IACzD,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,0DAA0D;IAC1D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mEAAmE;IACnE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uEAAuE;IACvE,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,+EAA+E;IAC/E,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,oCAAoC;IACpC,MAAM,CAAC,EAAE,yBAAyB,CAAC;IACnC,+DAA+D;IAC/D,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B,0CAA0C;IAC1C,UAAU,CAAC,EAAE,6BAA6B,CAAC;IAC3C,yGAAyG;IACzG,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,gFAAgF;AAChF,MAAM,WAAW,mBAAmB;IAClC,wCAAwC;IACxC,QAAQ,CAAC,EAAE,kBAAkB,CAAC;CAC/B;AAED,2FAA2F;AAC3F,MAAM,WAAW,uBAAuB;IACtC,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,sBAAsB,CAAC;CACnC;AAED,4CAA4C;AAC5C,MAAM,WAAW,kBAAkB;IACjC;;;;OAIG;IACH,WAAW,EAAE,eAAe,CAAC;IAC7B,4DAA4D;IAC5D,SAAS,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,SAAS,EAAE,CACT,IAAI,EAAE,eAAe,EACrB,SAAS,EAAE,MAAM,KACd,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC5B;;;;OAIG;IACH,eAAe,EAAE,CACf,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,mBAAmB,KACtB,OAAO,CAAC,IAAI,CAAC,CAAC;IACnB;;;OAGG;IACH,iBAAiB,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,iLAAiL;IACjL,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3C;;;;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,4HAA4H;IAC5H,YAAY,EAAE,wBAAwB,CAAC;IACvC,wDAAwD;IACxD,sBAAsB,EAAE,kCAAkC,EAAE,CAAC;IAC7D,6GAA6G;IAC7G,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IAC7C,uFAAuF;IACvF,mBAAmB,CAAC,EAAE,sBAAsB,CAAC;IAC7C,wEAAwE;IACxE,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,iIAAiI;IACjI,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,yDAAyD;IACzD,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,kCAAkC;IAClC,UAAU,CAAC,EAAE,uBAAuB,CAAC;CACtC"}
|
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.3.0-dev.
|
|
4
|
+
"version": "1.3.0-dev.331",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@tabler/icons-react": "^3.50.0",
|
|
21
|
-
"@epam/ai-dial-builder-form": "1.3.0-dev.
|
|
21
|
+
"@epam/ai-dial-builder-form": "1.3.0-dev.331"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@epam/ai-dial-chat-hooks": "1.3.0-dev.
|
|
25
|
-
"@epam/ai-dial-chat-shared": "1.3.0-dev.
|
|
24
|
+
"@epam/ai-dial-chat-hooks": "1.3.0-dev.331",
|
|
25
|
+
"@epam/ai-dial-chat-shared": "1.3.0-dev.331",
|
|
26
26
|
"@epam/ai-dial-ui-kit": "^0.16.0-dev.72",
|
|
27
27
|
"react": "^19.2.8"
|
|
28
28
|
},
|