@epam/ai-dial-toolset-editor 1.3.0-dev.253 → 1.3.0-dev.256
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/AuthSection/AuthSection.d.ts.map +1 -1
- package/components/ConnectMcpUrlContent/ConnectMcpUrlContent.d.ts +4 -0
- package/components/ConnectMcpUrlContent/ConnectMcpUrlContent.d.ts.map +1 -1
- package/components/SettingsForm/SettingsForm.d.ts.map +1 -1
- package/components/ToolsetEditor/ToolsetEditor.d.ts.map +1 -1
- package/index.css +3 -2
- package/index.d.ts +2 -2
- package/index.d.ts.map +1 -1
- package/index.js +302 -287
- package/models/auth-section-props.d.ts +4 -0
- package/models/auth-section-props.d.ts.map +1 -1
- package/models/settings-form-props.d.ts +26 -0
- package/models/settings-form-props.d.ts.map +1 -1
- package/models/toolset-editor-props.d.ts +15 -1
- package/models/toolset-editor-props.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthSection.d.ts","sourceRoot":"","sources":["../../../src/components/AuthSection/AuthSection.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AuthSection.d.ts","sourceRoot":"","sources":["../../../src/components/AuthSection/AuthSection.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAEV,gBAAgB,EACjB,MAAM,iCAAiC,CAAC;AAgCzC,uIAAuI;AACvI,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAyd5C,CAAC"}
|
|
@@ -6,6 +6,10 @@ interface ConnectMcpUrlContentProps {
|
|
|
6
6
|
className?: string;
|
|
7
7
|
/** Pre-translated labels, all optional with English defaults. */
|
|
8
8
|
labels?: ConnectMcpUrlContentLabels;
|
|
9
|
+
/** Typography class of the title. Defaults to `'dial-body-semi-text'`. */
|
|
10
|
+
titleClassName?: string;
|
|
11
|
+
/** Typography class of the description. Defaults to `'dial-small-text'`. */
|
|
12
|
+
descriptionClassName?: string;
|
|
9
13
|
}
|
|
10
14
|
declare const _default: import('react').NamedExoticComponent<ConnectMcpUrlContentProps>;
|
|
11
15
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectMcpUrlContent.d.ts","sourceRoot":"","sources":["../../../src/components/ConnectMcpUrlContent/ConnectMcpUrlContent.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"ConnectMcpUrlContent.d.ts","sourceRoot":"","sources":["../../../src/components/ConnectMcpUrlContent/ConnectMcpUrlContent.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAGnF,UAAU,yBAAyB;IACjC,yCAAyC;IACzC,GAAG,EAAE,MAAM,CAAC;IACZ,qCAAqC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iEAAiE;IACjE,MAAM,CAAC,EAAE,0BAA0B,CAAC;IACpC,0EAA0E;IAC1E,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,4EAA4E;IAC5E,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;;AA8CD,wBAA0C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SettingsForm.d.ts","sourceRoot":"","sources":["../../../src/components/SettingsForm/SettingsForm.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SettingsForm.d.ts","sourceRoot":"","sources":["../../../src/components/SettingsForm/SettingsForm.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAM1E,4GAA4G;AAC5G,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAiL9C,CAAC"}
|
|
@@ -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;AA+C5E,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;AA+C5E,uKAAuK;AACvK,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAwdhD,CAAC"}
|
package/index.css
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
._openAccessDescription_1ltst_1{color:var(--te-open-access-description,var(--text-secondary,#57647a))}._title_17wsg_1{color:var(--te-connect-title,var(--text-primary,#161b2d))}._description_17wsg_5{color:var(--te-connect-description,var(--text-secondary,#57647a))}._connectDivider_obfkd_1{border-color:var(--te-connect-divider,var(--stroke-tertiary,#e0e6f0))}
|
|
2
|
+
/*$vite$:1*//*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
3
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid}}}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.block{display:block}.flex{display:flex}.inline{display:inline}.max-w-\[1060px\]{max-width:1060px}.shrink-0{flex-shrink:0}.flex-col{flex-direction:column}.items-center{align-items:center}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.px-2{padding-inline:.5rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.text-start{text-align:start}@media (min-width:1280px){.desktop\:not-sr-only{clip-path:none;white-space:normal;width:auto;height:auto;margin:0;padding:0;position:static;overflow:visible}}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}
|
package/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { ToolsetEditor } from './components/ToolsetEditor/ToolsetEditor';
|
|
2
|
-
export type { ToolsetEditorLabels, ToolsetEditorLayoutLabels, ToolsetEditorProps, ToolsetEditorValidationLabels, } from './models/toolset-editor-props';
|
|
2
|
+
export type { ToolsetEditorColors, ToolsetEditorLabels, ToolsetEditorLayoutLabels, ToolsetEditorProps, ToolsetEditorTypography, ToolsetEditorValidationLabels, } from './models/toolset-editor-props';
|
|
3
3
|
export type { GeneralFormLabels } from './models/general-form-labels';
|
|
4
|
-
export type { ConnectMcpUrlContentLabels, SettingsFormLabels, } from './models/settings-form-props';
|
|
4
|
+
export type { ConnectMcpUrlContentLabels, SettingsFormColors, SettingsFormLabels, SettingsFormTypography, } from './models/settings-form-props';
|
|
5
5
|
export type { AuthSectionLabels } from './models/auth-section-props';
|
|
6
6
|
export { ToolsetOAuthLoginStatus } from './models/toolset-oauth-login';
|
|
7
7
|
export type { ToolsetOAuthLoginHandler, ToolsetOAuthLoginRequest, ToolsetOAuthLoginResult, } from './models/toolset-oauth-login';
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACzE,YAAY,EACV,mBAAmB,EACnB,yBAAyB,EACzB,kBAAkB,EAClB,6BAA6B,GAC9B,MAAM,+BAA+B,CAAC;AACvC,YAAY,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACtE,YAAY,EACV,0BAA0B,EAC1B,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACzE,YAAY,EACV,mBAAmB,EACnB,mBAAmB,EACnB,yBAAyB,EACzB,kBAAkB,EAClB,uBAAuB,EACvB,6BAA6B,GAC9B,MAAM,+BAA+B,CAAC;AACvC,YAAY,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACtE,YAAY,EACV,0BAA0B,EAC1B,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,GACvB,MAAM,8BAA8B,CAAC;AACtC,YAAY,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,YAAY,EACV,wBAAwB,EACxB,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,8BAA8B,CAAC;AACtC,YAAY,EACV,yBAAyB,EACzB,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,eAAe,EACf,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,qBAAqB,EACrB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,4BAA4B,GAC7B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,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
|
|
2
|
+
import { ToolsetAuthTypes as s, ToolsetCredentialsLevel as c, WithLogin as l, getApiErrorDetails as ee } from "@epam/ai-dial-chat-hooks";
|
|
3
|
+
import { CopyButton as u, ENTITY_DESCRIPTION_MAX_LENGTH as d, ENTITY_NAME_MAX_LENGTH as f, TAG_INPUT_TAG_CLASS_NAME as p, TextRefinementField as m, buildCssVars as h, mergeClasses as g, useCodeCopy as _, useTextRefinement as v } from "@epam/ai-dial-chat-shared";
|
|
4
4
|
import { memo as y, useCallback as b, useEffect as x, useMemo as S, useRef as C, useState as w } from "react";
|
|
5
|
-
import { IconBrandOauth as T, IconKey as E, IconLockOff as
|
|
6
|
-
import { CaptionText as
|
|
5
|
+
import { IconBrandOauth as T, IconKey as E, IconLockOff as te, IconLogin as ne, IconLogout as re } from "@tabler/icons-react";
|
|
6
|
+
import { CaptionText as D, ConfirmationPopup as ie, ConfirmationPopupVariant as ae, DIAL_ICON_SIZE as O, DIAL_KIT_ICON_STROKE as k, Input as A, LiveRegion as oe, LiveRegionElement as j, NeutralButton as se, PasswordInput as M, Radio as N, RadioGroup as P, SegmentedControl as ce, Select as F, TagInput as I } from "@epam/ai-dial-ui-kit";
|
|
7
7
|
import { jsx as L, jsxs as R } from "react/jsx-runtime";
|
|
8
8
|
//#region src/constants/public-class-names.ts
|
|
9
|
-
var
|
|
9
|
+
var le = {
|
|
10
10
|
metadataSection: "dial-toolset-editor-metadata-section",
|
|
11
11
|
setupSection: "dial-toolset-editor-setup-section"
|
|
12
|
-
},
|
|
12
|
+
}, z = /* @__PURE__ */ function(e) {
|
|
13
13
|
return e.Http = "HTTP", e.Sse = "SSE", e;
|
|
14
|
-
}({}),
|
|
14
|
+
}({}), B = e, ue = {
|
|
15
15
|
name: {
|
|
16
16
|
label: "Name",
|
|
17
17
|
placeholder: "Enter name"
|
|
@@ -50,25 +50,25 @@ var z = {
|
|
|
50
50
|
saveLabel: "Save"
|
|
51
51
|
},
|
|
52
52
|
ariaLabel: "General"
|
|
53
|
-
},
|
|
53
|
+
}, V = {
|
|
54
54
|
[s.OAuth]: T,
|
|
55
55
|
[s.ApiKey]: E,
|
|
56
|
-
[s.None]:
|
|
57
|
-
},
|
|
56
|
+
[s.None]: te
|
|
57
|
+
}, H = () => ({
|
|
58
58
|
authenticationType: s.None,
|
|
59
59
|
withLogin: l.WithoutLogin,
|
|
60
60
|
isLoggedIn: !1
|
|
61
|
-
}),
|
|
61
|
+
}), de = () => ({
|
|
62
62
|
name: "",
|
|
63
|
-
version:
|
|
63
|
+
version: B,
|
|
64
64
|
iconUrl: "",
|
|
65
65
|
description: "",
|
|
66
66
|
topics: [],
|
|
67
67
|
otherLocales: [],
|
|
68
68
|
endpoint: "",
|
|
69
|
-
protocol:
|
|
69
|
+
protocol: z.Http,
|
|
70
70
|
allowedTools: [],
|
|
71
|
-
auth:
|
|
71
|
+
auth: H()
|
|
72
72
|
}), U = (e) => {
|
|
73
73
|
if (!/^https?:\/\//.test(e) || e.endsWith(".") || e.endsWith("//")) return !1;
|
|
74
74
|
try {
|
|
@@ -76,7 +76,7 @@ var z = {
|
|
|
76
76
|
} catch {
|
|
77
77
|
return !1;
|
|
78
78
|
}
|
|
79
|
-
}, W = (e) => U(e.trim()), G = (e) => e.replace(/^(https?):\/([^/])/, "$1://$2"),
|
|
79
|
+
}, W = (e) => U(e.trim()), G = (e) => e.replace(/^(https?):\/([^/])/, "$1://$2"), K = (e) => {
|
|
80
80
|
let t = e?.trim() ?? "";
|
|
81
81
|
if (!t || U(t)) return t;
|
|
82
82
|
let n = [t];
|
|
@@ -89,7 +89,7 @@ var z = {
|
|
|
89
89
|
if (U(t)) return t;
|
|
90
90
|
}
|
|
91
91
|
return t;
|
|
92
|
-
},
|
|
92
|
+
}, q = (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()) && W(e.authorizationEndpoint ?? "") && W(e.tokenEndpoint ?? "") : !0, fe = (e, t = !1) => Object.keys(o(e, { validateVersionPattern: !0 })).length === 0 && W(e.endpoint) && q(e.auth, t), J = /* @__PURE__ */ new Set([
|
|
93
93
|
"name",
|
|
94
94
|
"description",
|
|
95
95
|
"iconUrl",
|
|
@@ -105,54 +105,54 @@ var z = {
|
|
|
105
105
|
otherLocales: e.otherLocales
|
|
106
106
|
}), me = (e) => {
|
|
107
107
|
let t = {}, n = {};
|
|
108
|
-
for (let [r, i] of Object.entries(e)) (
|
|
108
|
+
for (let [r, i] of Object.entries(e)) (J.has(r) ? t : n)[r] = i;
|
|
109
109
|
return {
|
|
110
110
|
metadata: t,
|
|
111
111
|
setup: n
|
|
112
112
|
};
|
|
113
|
-
},
|
|
113
|
+
}, Y = /* @__PURE__ */ function(e) {
|
|
114
114
|
return e.Success = "success", e.Cancelled = "cancelled", e.PopupBlocked = "popup-blocked", e.InvalidConfig = "invalid-config", e.Failed = "failed", e;
|
|
115
|
-
}({}),
|
|
116
|
-
let [
|
|
117
|
-
|
|
115
|
+
}({}), he = { openAccessDescription: "_openAccessDescription_1ltst_1" }, X = "toolset-client-secret-keep-caption", ge = (e) => `******${e}`, _e = (e) => e === s.None ? l.WithoutLogin : l.WithLogin, Z = (e, t) => e === s.None ? t?.typeNone ?? "Open access" : e === s.OAuth ? t?.typeOAuth ?? "OAuth" : t?.typeApiKey ?? "API Key", Q = ({ auth: e, errors: t, isSaving: n, toolsetId: r, isEditMode: i, endpoint: a, authActions: o, onOAuthLogin: u, onNotifySuccess: d, onNotifyError: f, onAuthChange: m, onEnsureSaved: h, labels: _, titleClassName: v = "dial-h3-text", openAccessDescriptionClassName: y = "dial-small-text" }) => {
|
|
116
|
+
let [b, x] = w(!1), [S, C] = w(!1), T = e.isLoggedIn || n || b, E = i && e.clientSecretHint && !e.clientSecret ? e.clientSecretHint : void 0, te = W(a) && q(e, i) && !T, oe = (t) => {
|
|
117
|
+
T || t === e.authenticationType || m({
|
|
118
118
|
authenticationType: t,
|
|
119
|
-
withLogin:
|
|
119
|
+
withLogin: _e(t)
|
|
120
120
|
});
|
|
121
|
-
},
|
|
122
|
-
|
|
123
|
-
},
|
|
124
|
-
switch (e.auth != null &&
|
|
125
|
-
case
|
|
126
|
-
|
|
121
|
+
}, j = (e) => {
|
|
122
|
+
m({ withLogin: e });
|
|
123
|
+
}, P = (e) => {
|
|
124
|
+
switch (e.auth != null && m(e.auth), e.status) {
|
|
125
|
+
case Y.Success:
|
|
126
|
+
m({ isLoggedIn: !0 }), d(_?.loginSuccessMessage ?? "Successfully logged in.");
|
|
127
127
|
return;
|
|
128
|
-
case
|
|
129
|
-
|
|
128
|
+
case Y.PopupBlocked:
|
|
129
|
+
f(_?.errorPopupBlocked ?? "The login popup was blocked by your browser. Please allow popups for this site and try again.");
|
|
130
130
|
return;
|
|
131
|
-
case
|
|
132
|
-
|
|
131
|
+
case Y.InvalidConfig:
|
|
132
|
+
f(_?.errorOAuthConfigMissing ?? "The OAuth provider did not return a valid client configuration. Please check the endpoint or contact your administrator.");
|
|
133
133
|
return;
|
|
134
|
-
case
|
|
135
|
-
|
|
134
|
+
case Y.Failed:
|
|
135
|
+
f(_?.errorLoginFailed ?? "Failed to log in. Please check your credentials and try again.", e.traceId);
|
|
136
136
|
return;
|
|
137
|
-
case
|
|
137
|
+
case Y.Cancelled: return;
|
|
138
138
|
}
|
|
139
|
-
},
|
|
140
|
-
if (!
|
|
139
|
+
}, F = async () => {
|
|
140
|
+
if (!te) return;
|
|
141
141
|
if (e.authenticationType === s.OAuth) {
|
|
142
|
-
|
|
142
|
+
x(!0);
|
|
143
143
|
try {
|
|
144
|
-
|
|
144
|
+
P(await u({
|
|
145
145
|
auth: e,
|
|
146
|
-
ensureSaved:
|
|
146
|
+
ensureSaved: h
|
|
147
147
|
}));
|
|
148
148
|
} finally {
|
|
149
|
-
|
|
149
|
+
x(!1);
|
|
150
150
|
}
|
|
151
151
|
return;
|
|
152
152
|
}
|
|
153
|
-
let t = await
|
|
153
|
+
let t = await h();
|
|
154
154
|
if (t) {
|
|
155
|
-
|
|
155
|
+
x(!0);
|
|
156
156
|
try {
|
|
157
157
|
let n = {
|
|
158
158
|
url: t,
|
|
@@ -160,90 +160,90 @@ var z = {
|
|
|
160
160
|
authenticationType: e.authenticationType,
|
|
161
161
|
apiKey: e.apiKey?.trim()
|
|
162
162
|
};
|
|
163
|
-
await o.login(t, n),
|
|
163
|
+
await o.login(t, n), m({ isLoggedIn: !0 }), d(_?.loginSuccessMessage ?? "Successfully logged in.");
|
|
164
164
|
} catch (e) {
|
|
165
|
-
let { traceId: t } = await
|
|
166
|
-
|
|
165
|
+
let { traceId: t } = await ee(e);
|
|
166
|
+
f(_?.errorLoginFailed ?? "Failed to log in. Please check your credentials and try again.", t);
|
|
167
167
|
} finally {
|
|
168
|
-
|
|
168
|
+
x(!1);
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
-
},
|
|
172
|
-
|
|
171
|
+
}, le = async () => {
|
|
172
|
+
x(!0);
|
|
173
173
|
try {
|
|
174
174
|
let t = {
|
|
175
175
|
url: r,
|
|
176
176
|
credentialsLevel: c.User,
|
|
177
177
|
authenticationType: e.authenticationType
|
|
178
178
|
};
|
|
179
|
-
await o.logout(r, t),
|
|
179
|
+
await o.logout(r, t), m({ isLoggedIn: !1 }), C(!1), d(_?.logoutSuccessMessage ?? "Successfully logged out.");
|
|
180
180
|
} catch (e) {
|
|
181
|
-
let { traceId: t } = await
|
|
182
|
-
|
|
181
|
+
let { traceId: t } = await ee(e);
|
|
182
|
+
f(_?.errorLogoutFailed ?? "Failed to log out. Please try again.", t);
|
|
183
183
|
} finally {
|
|
184
|
-
|
|
184
|
+
x(!1);
|
|
185
185
|
}
|
|
186
|
-
},
|
|
186
|
+
}, z = () => e.isLoggedIn ? /* @__PURE__ */ L("div", {
|
|
187
187
|
className: "flex",
|
|
188
|
-
children: /* @__PURE__ */ L(
|
|
188
|
+
children: /* @__PURE__ */ L(se, {
|
|
189
189
|
label: _?.logOutLabel ?? "Log out",
|
|
190
|
-
iconBefore: /* @__PURE__ */ L(
|
|
191
|
-
size:
|
|
192
|
-
stroke:
|
|
190
|
+
iconBefore: /* @__PURE__ */ L(re, {
|
|
191
|
+
size: O.MD,
|
|
192
|
+
stroke: k
|
|
193
193
|
}),
|
|
194
|
-
onClick: () =>
|
|
195
|
-
disabled: n ||
|
|
194
|
+
onClick: () => C(!0),
|
|
195
|
+
disabled: n || b
|
|
196
196
|
})
|
|
197
197
|
}) : /* @__PURE__ */ L("div", {
|
|
198
198
|
className: "flex",
|
|
199
|
-
children: /* @__PURE__ */ L(
|
|
199
|
+
children: /* @__PURE__ */ L(se, {
|
|
200
200
|
label: _?.logInLabel ?? "Log in",
|
|
201
|
-
iconBefore: /* @__PURE__ */ L(
|
|
202
|
-
size:
|
|
203
|
-
stroke:
|
|
201
|
+
iconBefore: /* @__PURE__ */ L(ne, {
|
|
202
|
+
size: O.MD,
|
|
203
|
+
stroke: k
|
|
204
204
|
}),
|
|
205
|
-
onClick:
|
|
206
|
-
disabled: !
|
|
205
|
+
onClick: F,
|
|
206
|
+
disabled: !te
|
|
207
207
|
})
|
|
208
208
|
});
|
|
209
209
|
return /* @__PURE__ */ R("section", {
|
|
210
210
|
className: "flex flex-col gap-2",
|
|
211
211
|
children: [
|
|
212
212
|
/* @__PURE__ */ L("h3", {
|
|
213
|
-
className:
|
|
213
|
+
className: v,
|
|
214
214
|
children: _?.sectionTitle ?? "Authentication"
|
|
215
215
|
}),
|
|
216
|
-
/* @__PURE__ */ L(
|
|
216
|
+
/* @__PURE__ */ L(ce, {
|
|
217
217
|
"aria-label": _?.sectionTitle ?? "Authentication",
|
|
218
218
|
value: e.authenticationType,
|
|
219
|
-
onChange: (e) =>
|
|
219
|
+
onChange: (e) => oe(e),
|
|
220
220
|
segmentClassName: "px-2",
|
|
221
221
|
items: [
|
|
222
222
|
s.None,
|
|
223
223
|
s.OAuth,
|
|
224
224
|
s.ApiKey
|
|
225
225
|
].map((t) => {
|
|
226
|
-
let n =
|
|
226
|
+
let n = V[t];
|
|
227
227
|
return {
|
|
228
228
|
value: t,
|
|
229
229
|
label: /* @__PURE__ */ R("div", {
|
|
230
230
|
className: "flex items-center gap-2",
|
|
231
231
|
children: [/* @__PURE__ */ L(n, {
|
|
232
232
|
className: "shrink-0",
|
|
233
|
-
size:
|
|
234
|
-
stroke:
|
|
233
|
+
size: O.SM,
|
|
234
|
+
stroke: k,
|
|
235
235
|
"aria-hidden": !0
|
|
236
236
|
}), /* @__PURE__ */ L("span", {
|
|
237
237
|
className: "sr-only desktop:not-sr-only",
|
|
238
238
|
children: Z(t, _)
|
|
239
239
|
})]
|
|
240
240
|
}),
|
|
241
|
-
disabled:
|
|
241
|
+
disabled: T && e.authenticationType !== t
|
|
242
242
|
};
|
|
243
243
|
})
|
|
244
244
|
}),
|
|
245
245
|
e.authenticationType === s.None && /* @__PURE__ */ L("p", {
|
|
246
|
-
className: "
|
|
246
|
+
className: g("pt-2", y, he.openAccessDescription),
|
|
247
247
|
children: _?.openAccessDescription ?? "Open endpoint, no credentials"
|
|
248
248
|
}),
|
|
249
249
|
e.authenticationType === s.OAuth && /* @__PURE__ */ R("div", {
|
|
@@ -251,31 +251,31 @@ var z = {
|
|
|
251
251
|
children: [
|
|
252
252
|
/* @__PURE__ */ R("div", {
|
|
253
253
|
className: "flex flex-col gap-2",
|
|
254
|
-
children: [/* @__PURE__ */ L(
|
|
254
|
+
children: [/* @__PURE__ */ L(N, {
|
|
255
255
|
name: "oauth-login-mode",
|
|
256
256
|
id: "oauth-with-login",
|
|
257
257
|
value: l.WithLogin,
|
|
258
258
|
labelProps: { label: _?.withLoginOAuthLabel ?? "Standard login" },
|
|
259
259
|
isSelected: e.withLogin === l.WithLogin,
|
|
260
|
-
disabled:
|
|
261
|
-
onChange:
|
|
262
|
-
}), /* @__PURE__ */ L(
|
|
260
|
+
disabled: T,
|
|
261
|
+
onChange: j
|
|
262
|
+
}), /* @__PURE__ */ L(N, {
|
|
263
263
|
name: "oauth-login-mode",
|
|
264
264
|
id: "oauth-with-config",
|
|
265
265
|
value: l.WithConfig,
|
|
266
266
|
labelProps: { label: _?.withConfigOAuthLabel ?? "Custom login" },
|
|
267
267
|
isSelected: e.withLogin === l.WithConfig,
|
|
268
|
-
disabled:
|
|
269
|
-
onChange:
|
|
268
|
+
disabled: T,
|
|
269
|
+
onChange: j
|
|
270
270
|
})]
|
|
271
271
|
}),
|
|
272
272
|
e.withLogin === l.WithConfig && /* @__PURE__ */ R("div", {
|
|
273
273
|
className: "flex flex-col gap-3",
|
|
274
274
|
children: [
|
|
275
|
-
/* @__PURE__ */ L(
|
|
275
|
+
/* @__PURE__ */ L(A, {
|
|
276
276
|
id: "toolset-client-id",
|
|
277
277
|
value: e.clientId ?? "",
|
|
278
|
-
onChange: (e) =>
|
|
278
|
+
onChange: (e) => m({ clientId: e ?? "" }),
|
|
279
279
|
labelProps: {
|
|
280
280
|
label: _?.clientIdLabel ?? "Client ID",
|
|
281
281
|
required: !0
|
|
@@ -283,34 +283,34 @@ var z = {
|
|
|
283
283
|
placeholder: _?.clientIdPlaceholder ?? "Enter client ID",
|
|
284
284
|
error: t.clientId || void 0,
|
|
285
285
|
invalid: !!t.clientId,
|
|
286
|
-
disabled:
|
|
286
|
+
disabled: T
|
|
287
287
|
}),
|
|
288
288
|
/* @__PURE__ */ R("div", {
|
|
289
289
|
className: "flex flex-col gap-1",
|
|
290
|
-
children: [/* @__PURE__ */ L(
|
|
290
|
+
children: [/* @__PURE__ */ L(M, {
|
|
291
291
|
id: "toolset-client-secret",
|
|
292
292
|
value: e.clientSecret ?? "",
|
|
293
|
-
onChange: (e) =>
|
|
293
|
+
onChange: (e) => m({ clientSecret: e ?? "" }),
|
|
294
294
|
labelProps: {
|
|
295
295
|
label: _?.clientSecretLabel ?? "Client secret",
|
|
296
296
|
required: !i
|
|
297
297
|
},
|
|
298
|
-
placeholder:
|
|
299
|
-
"aria-describedby":
|
|
298
|
+
placeholder: E == null ? _?.clientSecretPlaceholder ?? "Enter client secret" : (_?.clientSecretHintPlaceholder ?? ge)(E),
|
|
299
|
+
"aria-describedby": E == null ? void 0 : X,
|
|
300
300
|
showPasswordLabel: _?.showClientSecretLabel ?? "Show client secret",
|
|
301
301
|
hidePasswordLabel: _?.hideClientSecretLabel ?? "Hide client secret",
|
|
302
302
|
error: t.clientSecret || void 0,
|
|
303
303
|
invalid: !!t.clientSecret,
|
|
304
|
-
disabled:
|
|
305
|
-
}),
|
|
306
|
-
id:
|
|
304
|
+
disabled: T
|
|
305
|
+
}), E != null && /* @__PURE__ */ L(D, {
|
|
306
|
+
id: X,
|
|
307
307
|
text: _?.clientSecretKeepCaption ?? "Leave empty to keep the saved secret."
|
|
308
308
|
})]
|
|
309
309
|
}),
|
|
310
|
-
/* @__PURE__ */ L(
|
|
310
|
+
/* @__PURE__ */ L(A, {
|
|
311
311
|
id: "toolset-authorization-endpoint",
|
|
312
312
|
value: e.authorizationEndpoint ?? "",
|
|
313
|
-
onChange: (e) =>
|
|
313
|
+
onChange: (e) => m({ authorizationEndpoint: e ?? "" }),
|
|
314
314
|
labelProps: {
|
|
315
315
|
label: _?.authorizationEndpointLabel ?? "Authorization endpoint",
|
|
316
316
|
required: !0
|
|
@@ -318,12 +318,12 @@ var z = {
|
|
|
318
318
|
placeholder: _?.authorizationEndpointPlaceholder ?? "Enter authorization endpoint",
|
|
319
319
|
error: t.authorizationEndpoint || void 0,
|
|
320
320
|
invalid: !!t.authorizationEndpoint,
|
|
321
|
-
disabled:
|
|
321
|
+
disabled: T
|
|
322
322
|
}),
|
|
323
|
-
/* @__PURE__ */ L(
|
|
323
|
+
/* @__PURE__ */ L(A, {
|
|
324
324
|
id: "toolset-token-endpoint",
|
|
325
325
|
value: e.tokenEndpoint ?? "",
|
|
326
|
-
onChange: (e) =>
|
|
326
|
+
onChange: (e) => m({ tokenEndpoint: e ?? "" }),
|
|
327
327
|
labelProps: {
|
|
328
328
|
label: _?.tokenEndpointLabel ?? "Token endpoint",
|
|
329
329
|
required: !0
|
|
@@ -331,20 +331,20 @@ var z = {
|
|
|
331
331
|
placeholder: _?.tokenEndpointPlaceholder ?? "Enter token endpoint",
|
|
332
332
|
error: t.tokenEndpoint || void 0,
|
|
333
333
|
invalid: !!t.tokenEndpoint,
|
|
334
|
-
disabled:
|
|
334
|
+
disabled: T
|
|
335
335
|
}),
|
|
336
|
-
/* @__PURE__ */ L(
|
|
336
|
+
/* @__PURE__ */ L(I, {
|
|
337
337
|
id: "toolset-scopes",
|
|
338
338
|
labelProps: { label: _?.scopesLabel ?? "Scopes" },
|
|
339
339
|
placeholder: _?.scopesPlaceholder ?? "Enter scopes",
|
|
340
340
|
value: e.scopes ?? [],
|
|
341
|
-
onChange: (e) =>
|
|
342
|
-
disabled:
|
|
343
|
-
tagClassName:
|
|
341
|
+
onChange: (e) => m({ scopes: e }),
|
|
342
|
+
disabled: T,
|
|
343
|
+
tagClassName: p
|
|
344
344
|
})
|
|
345
345
|
]
|
|
346
346
|
}),
|
|
347
|
-
|
|
347
|
+
z()
|
|
348
348
|
]
|
|
349
349
|
}),
|
|
350
350
|
e.authenticationType === s.ApiKey && /* @__PURE__ */ R("div", {
|
|
@@ -352,30 +352,30 @@ var z = {
|
|
|
352
352
|
children: [
|
|
353
353
|
/* @__PURE__ */ R("div", {
|
|
354
354
|
className: "flex flex-col gap-2",
|
|
355
|
-
children: [/* @__PURE__ */ L(
|
|
355
|
+
children: [/* @__PURE__ */ L(N, {
|
|
356
356
|
name: "apikey-login-mode",
|
|
357
357
|
id: "apikey-with-login",
|
|
358
358
|
value: l.WithLogin,
|
|
359
359
|
labelProps: { label: _?.withLoginLabel ?? "With login" },
|
|
360
360
|
isSelected: e.withLogin === l.WithLogin,
|
|
361
|
-
disabled:
|
|
362
|
-
onChange:
|
|
363
|
-
}), /* @__PURE__ */ L(
|
|
361
|
+
disabled: T,
|
|
362
|
+
onChange: j
|
|
363
|
+
}), /* @__PURE__ */ L(N, {
|
|
364
364
|
name: "apikey-login-mode",
|
|
365
365
|
id: "apikey-without-login",
|
|
366
366
|
value: l.WithoutLogin,
|
|
367
367
|
labelProps: { label: _?.withoutLoginLabel ?? "Without login" },
|
|
368
368
|
isSelected: e.withLogin === l.WithoutLogin,
|
|
369
|
-
disabled:
|
|
370
|
-
onChange:
|
|
369
|
+
disabled: T,
|
|
370
|
+
onChange: j
|
|
371
371
|
})]
|
|
372
372
|
}),
|
|
373
373
|
/* @__PURE__ */ R("div", {
|
|
374
374
|
className: "flex flex-col gap-3",
|
|
375
|
-
children: [/* @__PURE__ */ L(
|
|
375
|
+
children: [/* @__PURE__ */ L(A, {
|
|
376
376
|
id: "toolset-key-header",
|
|
377
377
|
value: e.keyHeader ?? "",
|
|
378
|
-
onChange: (e) =>
|
|
378
|
+
onChange: (e) => m({ keyHeader: e ?? "" }),
|
|
379
379
|
labelProps: {
|
|
380
380
|
label: _?.keyHeaderLabel ?? "API Key parameter name",
|
|
381
381
|
required: !0
|
|
@@ -383,11 +383,11 @@ var z = {
|
|
|
383
383
|
placeholder: _?.keyHeaderPlaceholder ?? "Enter API key parameter name",
|
|
384
384
|
error: t.keyHeader || void 0,
|
|
385
385
|
invalid: !!t.keyHeader,
|
|
386
|
-
disabled:
|
|
387
|
-
}), e.withLogin === l.WithLogin && /* @__PURE__ */ L(
|
|
386
|
+
disabled: T
|
|
387
|
+
}), e.withLogin === l.WithLogin && /* @__PURE__ */ L(M, {
|
|
388
388
|
id: "toolset-api-key",
|
|
389
389
|
value: e.apiKey ?? "",
|
|
390
|
-
onChange: (e) =>
|
|
390
|
+
onChange: (e) => m({ apiKey: e ?? "" }),
|
|
391
391
|
labelProps: {
|
|
392
392
|
label: _?.apiKeyLabel ?? "API key",
|
|
393
393
|
required: !0
|
|
@@ -397,75 +397,78 @@ var z = {
|
|
|
397
397
|
hidePasswordLabel: _?.hideApiKeyLabel ?? "Hide API key",
|
|
398
398
|
error: t.apiKey || void 0,
|
|
399
399
|
invalid: !!t.apiKey,
|
|
400
|
-
disabled:
|
|
400
|
+
disabled: T
|
|
401
401
|
})]
|
|
402
402
|
}),
|
|
403
|
-
e.withLogin !== l.WithoutLogin &&
|
|
403
|
+
e.withLogin !== l.WithoutLogin && z()
|
|
404
404
|
]
|
|
405
405
|
}),
|
|
406
|
-
|
|
407
|
-
open:
|
|
406
|
+
S && /* @__PURE__ */ L(ie, {
|
|
407
|
+
open: S,
|
|
408
408
|
header: _?.logoutConfirmTitle ?? "Log out?",
|
|
409
409
|
description: _?.logoutConfirmDescription ?? "Are you sure you want to log out? You will need to re-enter your credentials to use this toolset again.",
|
|
410
410
|
confirmLabel: _?.logOutLabel ?? "Log out",
|
|
411
411
|
cancelLabel: _?.cancelLabel ?? "Cancel",
|
|
412
|
-
variant:
|
|
413
|
-
isLoading:
|
|
414
|
-
disableConfirmButton:
|
|
415
|
-
onConfirm:
|
|
416
|
-
onCancel: () =>
|
|
417
|
-
onClose: () =>
|
|
412
|
+
variant: ae.Danger,
|
|
413
|
+
isLoading: b,
|
|
414
|
+
disableConfirmButton: b,
|
|
415
|
+
onConfirm: le,
|
|
416
|
+
onCancel: () => C(!1),
|
|
417
|
+
onClose: () => C(!1)
|
|
418
418
|
})
|
|
419
419
|
]
|
|
420
420
|
});
|
|
421
|
-
},
|
|
422
|
-
|
|
421
|
+
}, ve = {
|
|
422
|
+
title: "_title_17wsg_1",
|
|
423
|
+
description: "_description_17wsg_5"
|
|
424
|
+
}, ye = y(({ url: e, className: t, labels: n, titleClassName: r = "dial-body-semi-text", descriptionClassName: i = "dial-small-text" }) => {
|
|
425
|
+
let { isCopied: a, copy: o } = _(e), s = n?.copiedLabel ?? "Copied!";
|
|
423
426
|
return /* @__PURE__ */ R("div", {
|
|
424
427
|
className: g("flex flex-col gap-3", t),
|
|
425
428
|
children: [
|
|
426
429
|
/* @__PURE__ */ R("div", {
|
|
427
430
|
className: "flex flex-col gap-1",
|
|
428
431
|
children: [/* @__PURE__ */ L("p", {
|
|
429
|
-
className: "
|
|
432
|
+
className: g("text-start", r, ve.title),
|
|
430
433
|
children: n?.title ?? "Connect toolset"
|
|
431
434
|
}), /* @__PURE__ */ L("p", {
|
|
432
|
-
className: "
|
|
435
|
+
className: g("text-start", i, ve.description),
|
|
433
436
|
children: n?.description ?? "Copy endpoint URL to easily integrate toolset into your workflows"
|
|
434
437
|
})]
|
|
435
438
|
}),
|
|
436
|
-
/* @__PURE__ */ L("div", { children: /* @__PURE__ */ L(
|
|
437
|
-
copiedLabel:
|
|
439
|
+
/* @__PURE__ */ L("div", { children: /* @__PURE__ */ L(u, {
|
|
440
|
+
copiedLabel: s,
|
|
438
441
|
copyLabel: n?.copyLabel ?? "Copy URL",
|
|
439
|
-
isCopied:
|
|
440
|
-
onClick:
|
|
442
|
+
isCopied: a,
|
|
443
|
+
onClick: o
|
|
441
444
|
}) }),
|
|
442
|
-
/* @__PURE__ */ L(
|
|
445
|
+
/* @__PURE__ */ L(oe, {
|
|
443
446
|
visuallyHidden: !0,
|
|
444
|
-
as:
|
|
445
|
-
children:
|
|
447
|
+
as: j.Span,
|
|
448
|
+
children: a ? s : ""
|
|
446
449
|
})
|
|
447
450
|
]
|
|
448
451
|
});
|
|
449
|
-
}),
|
|
450
|
-
let [
|
|
451
|
-
value:
|
|
452
|
+
}), be = { connectDivider: "_connectDivider_obfkd_1" }, xe = ({ form: e, errors: t, isSaving: n, toolsetId: r, isEditMode: i, connectUrl: a, listToolNames: o, authActions: s, onOAuthLogin: c, onNotifySuccess: l, onNotifyError: ee, onChange: u, onAuthChange: d, onEnsureSaved: f, labels: m, colors: _, typography: v }) => {
|
|
453
|
+
let [y, b] = w(null), C = !!a && !!r, T = S(() => [{
|
|
454
|
+
value: z.Http,
|
|
452
455
|
label: "HTTP"
|
|
453
456
|
}, {
|
|
454
|
-
value:
|
|
457
|
+
value: z.Sse,
|
|
455
458
|
label: "SSE"
|
|
456
459
|
}], []);
|
|
457
460
|
return x(() => {
|
|
458
|
-
if (!r || !o || !
|
|
459
|
-
|
|
461
|
+
if (!r || !o || !q(e.auth, i)) {
|
|
462
|
+
b(null);
|
|
460
463
|
return;
|
|
461
464
|
}
|
|
462
465
|
let t = !1;
|
|
463
466
|
return (async () => {
|
|
464
467
|
try {
|
|
465
468
|
let e = await o(r);
|
|
466
|
-
t ||
|
|
469
|
+
t || b(e.length > 0 ? e : null);
|
|
467
470
|
} catch {
|
|
468
|
-
t ||
|
|
471
|
+
t || b(null);
|
|
469
472
|
}
|
|
470
473
|
})(), () => {
|
|
471
474
|
t = !0;
|
|
@@ -478,52 +481,58 @@ var z = {
|
|
|
478
481
|
o
|
|
479
482
|
]), /* @__PURE__ */ R("div", {
|
|
480
483
|
className: "flex max-w-[1060px] flex-col gap-4",
|
|
484
|
+
style: h({
|
|
485
|
+
"--te-connect-title": _?.connectTitle,
|
|
486
|
+
"--te-connect-description": _?.connectDescription,
|
|
487
|
+
"--te-connect-divider": _?.connectDivider,
|
|
488
|
+
"--te-open-access-description": _?.openAccessDescription
|
|
489
|
+
}),
|
|
481
490
|
children: [
|
|
482
|
-
/* @__PURE__ */ L(
|
|
491
|
+
/* @__PURE__ */ L(A, {
|
|
483
492
|
id: "toolset-endpoint",
|
|
484
493
|
value: e.endpoint,
|
|
485
|
-
onChange: (e) =>
|
|
494
|
+
onChange: (e) => u({ endpoint: e ?? "" }),
|
|
486
495
|
labelProps: {
|
|
487
|
-
label:
|
|
496
|
+
label: m?.endpointLabel ?? "Endpoint",
|
|
488
497
|
required: !0
|
|
489
498
|
},
|
|
490
|
-
placeholder:
|
|
491
|
-
caption:
|
|
499
|
+
placeholder: m?.endpointPlaceholder ?? "https://...",
|
|
500
|
+
caption: m?.endpointCaption ?? "The HTTPS address where the server accepts MCP requests. Choose the transport under Protocol below.",
|
|
492
501
|
error: t.endpoint || void 0,
|
|
493
502
|
invalid: !!t.endpoint
|
|
494
503
|
}),
|
|
495
|
-
/* @__PURE__ */ L(
|
|
504
|
+
/* @__PURE__ */ L(P, {
|
|
496
505
|
labelProps: {
|
|
497
|
-
label:
|
|
506
|
+
label: m?.protocolLabel ?? "Protocol",
|
|
498
507
|
required: !0
|
|
499
508
|
},
|
|
500
509
|
id: "toolset-protocol",
|
|
501
|
-
items:
|
|
510
|
+
items: T,
|
|
502
511
|
value: e.protocol,
|
|
503
512
|
onChange: (e) => {
|
|
504
|
-
|
|
513
|
+
u({ protocol: e });
|
|
505
514
|
}
|
|
506
515
|
}),
|
|
507
|
-
|
|
516
|
+
y ? /* @__PURE__ */ L(F, {
|
|
508
517
|
id: "toolset-allowed-tools",
|
|
509
518
|
multiple: !0,
|
|
510
519
|
searchable: !0,
|
|
511
520
|
selectAll: !0,
|
|
512
|
-
labelProps: { label:
|
|
513
|
-
placeholder:
|
|
514
|
-
options:
|
|
521
|
+
labelProps: { label: m?.allowedToolsLabel ?? "Allowed tools" },
|
|
522
|
+
placeholder: m?.allowedToolsSelectPlaceholder ?? "Select allowed tools",
|
|
523
|
+
options: y.map((e) => ({
|
|
515
524
|
value: e,
|
|
516
525
|
label: e
|
|
517
526
|
})),
|
|
518
527
|
value: e.allowedTools,
|
|
519
|
-
onChange: (e) =>
|
|
520
|
-
}) : /* @__PURE__ */ L(
|
|
528
|
+
onChange: (e) => u({ allowedTools: e })
|
|
529
|
+
}) : /* @__PURE__ */ L(I, {
|
|
521
530
|
id: "toolset-allowed-tools",
|
|
522
|
-
labelProps: { label:
|
|
523
|
-
placeholder:
|
|
531
|
+
labelProps: { label: m?.allowedToolsLabel ?? "Allowed tools" },
|
|
532
|
+
placeholder: m?.allowedToolsPlaceholder ?? "Add tools, comma separated",
|
|
524
533
|
value: e.allowedTools,
|
|
525
|
-
onChange: (e) =>
|
|
526
|
-
tagClassName:
|
|
534
|
+
onChange: (e) => u({ allowedTools: e }),
|
|
535
|
+
tagClassName: p
|
|
527
536
|
}),
|
|
528
537
|
/* @__PURE__ */ L(Q, {
|
|
529
538
|
auth: e.auth,
|
|
@@ -535,210 +544,216 @@ var z = {
|
|
|
535
544
|
authActions: s,
|
|
536
545
|
onOAuthLogin: c,
|
|
537
546
|
onNotifySuccess: l,
|
|
538
|
-
onNotifyError:
|
|
539
|
-
onAuthChange:
|
|
540
|
-
onEnsureSaved:
|
|
541
|
-
labels:
|
|
547
|
+
onNotifyError: ee,
|
|
548
|
+
onAuthChange: d,
|
|
549
|
+
onEnsureSaved: f,
|
|
550
|
+
labels: m?.auth,
|
|
551
|
+
titleClassName: v?.authTitleClassName,
|
|
552
|
+
openAccessDescriptionClassName: v?.openAccessDescriptionClassName
|
|
542
553
|
}),
|
|
543
|
-
|
|
554
|
+
C && /* @__PURE__ */ L(ye, {
|
|
544
555
|
url: a ?? "",
|
|
545
|
-
labels:
|
|
546
|
-
|
|
556
|
+
labels: m?.connect,
|
|
557
|
+
titleClassName: v?.connectTitleClassName,
|
|
558
|
+
descriptionClassName: v?.connectDescriptionClassName,
|
|
559
|
+
className: g("border-t pt-4", be.connectDivider)
|
|
547
560
|
})
|
|
548
561
|
]
|
|
549
562
|
});
|
|
550
|
-
},
|
|
563
|
+
}, Se = [
|
|
551
564
|
"keyHeader",
|
|
552
565
|
"apiKey",
|
|
553
566
|
"clientId",
|
|
554
567
|
"clientSecret",
|
|
555
568
|
"authorizationEndpoint",
|
|
556
569
|
"tokenEndpoint"
|
|
557
|
-
],
|
|
570
|
+
], Ce = ["endpoint", ...Se], $ = new Set(Ce), we = { validateVersionPattern: !0 }, Te = (e) => {
|
|
558
571
|
let t = {};
|
|
559
|
-
for (let n of Object.keys(e))
|
|
572
|
+
for (let n of Object.keys(e)) $.has(n) && (t[n] = !0);
|
|
560
573
|
return t;
|
|
561
|
-
},
|
|
562
|
-
let
|
|
574
|
+
}, Ee = ({ initialForm: e, toolsetId: o, onPersist: c, onPostSaveLogin: u, onToolsetsChanged: p, onSaveSuccess: h, onSaveComplete: g, onBack: _, onDirtyChange: y, buildMcpUrl: T, listToolNames: E, authActions: te, onOAuthLogin: ne, onNotifySuccess: re, onNotifyError: D, avatarPicker: ie, availableLocaleOptions: ae, onRefineDescription: O, labels: k, colors: A, typography: oe }) => {
|
|
575
|
+
let j = !!o, [se, M] = w(""), N = o || se, [P, ce] = w({
|
|
563
576
|
initialForm: e,
|
|
564
577
|
key: 0
|
|
565
|
-
}), [
|
|
566
|
-
|
|
578
|
+
}), [F, I] = w(e);
|
|
579
|
+
P.initialForm !== e && (ce({
|
|
567
580
|
initialForm: e,
|
|
568
|
-
key:
|
|
581
|
+
key: P.key + 1
|
|
569
582
|
}), I(e));
|
|
570
|
-
let
|
|
571
|
-
initialValues:
|
|
572
|
-
validationOptions:
|
|
573
|
-
reseedKey:
|
|
574
|
-
}), [
|
|
575
|
-
...
|
|
576
|
-
...
|
|
577
|
-
}), [
|
|
583
|
+
let R = S(() => pe(e), [e]), { values: z, setValues: B, markTouched: V, visibleErrorCodes: H, attemptSubmit: de } = a({
|
|
584
|
+
initialValues: R,
|
|
585
|
+
validationOptions: we,
|
|
586
|
+
reseedKey: P.key
|
|
587
|
+
}), [U, G] = w(e), K = S(() => ({
|
|
588
|
+
...U,
|
|
589
|
+
...z
|
|
590
|
+
}), [U, z]), q = S(() => JSON.stringify(K) !== JSON.stringify(F), [K, F]);
|
|
578
591
|
x(() => {
|
|
579
|
-
|
|
580
|
-
}, [
|
|
581
|
-
let [
|
|
592
|
+
y?.(q);
|
|
593
|
+
}, [q, y]);
|
|
594
|
+
let [J, Y] = w(!1), [he, X] = w({}), [ge, _e] = w({}), Z = C(null);
|
|
582
595
|
x(() => {
|
|
583
|
-
|
|
596
|
+
G(e), Z.current = e, X({}), _e({}), M("");
|
|
584
597
|
}, [e]);
|
|
585
598
|
let Q = b((e) => {
|
|
586
599
|
let { metadata: t, setup: n } = me(e);
|
|
587
|
-
Object.keys(t).length > 0 && (B(t), "name" in t && V(r.Name), "version" in t && V(r.Version)), Object.keys(n).length !== 0 && (
|
|
600
|
+
Object.keys(t).length > 0 && (B(t), "name" in t && V(r.Name), "version" in t && V(r.Version)), Object.keys(n).length !== 0 && (G((e) => ({
|
|
588
601
|
...e,
|
|
589
602
|
...n
|
|
590
|
-
})),
|
|
603
|
+
})), _e((e) => ({
|
|
591
604
|
...e,
|
|
592
|
-
...
|
|
593
|
-
})),
|
|
605
|
+
...Te(n)
|
|
606
|
+
})), X((e) => {
|
|
594
607
|
let t = { ...e };
|
|
595
608
|
for (let e of Object.keys(n)) delete t[e];
|
|
596
609
|
return t;
|
|
597
610
|
}));
|
|
598
|
-
}, [B, V]),
|
|
599
|
-
|
|
611
|
+
}, [B, V]), ve = b((e) => {
|
|
612
|
+
G((t) => ({
|
|
600
613
|
...t,
|
|
601
614
|
auth: {
|
|
602
615
|
...t.auth,
|
|
603
616
|
...e
|
|
604
617
|
}
|
|
605
|
-
})),
|
|
618
|
+
})), _e((t) => ({
|
|
606
619
|
...t,
|
|
607
|
-
...
|
|
608
|
-
})),
|
|
620
|
+
...Te(e)
|
|
621
|
+
})), X((t) => {
|
|
609
622
|
let n = { ...t };
|
|
610
|
-
if ("authenticationType" in e || "withLogin" in e || "isLoggedIn" in e) for (let e of
|
|
623
|
+
if ("authenticationType" in e || "withLogin" in e || "isLoggedIn" in e) for (let e of Se) delete n[e];
|
|
611
624
|
else for (let t of Object.keys(e)) delete n[t];
|
|
612
625
|
return n;
|
|
613
|
-
}), "isLoggedIn" in e &&
|
|
614
|
-
}, [
|
|
615
|
-
if (
|
|
616
|
-
|
|
626
|
+
}), "isLoggedIn" in e && p();
|
|
627
|
+
}, [p]), ye = b(async () => {
|
|
628
|
+
if (N && Z.current != null && JSON.stringify(Z.current) === JSON.stringify(K)) return N;
|
|
629
|
+
Y(!0);
|
|
617
630
|
try {
|
|
618
|
-
let e = await c(
|
|
619
|
-
return e ? (
|
|
631
|
+
let e = await c(K, N);
|
|
632
|
+
return e ? (N || M(e), Z.current = K, I(K), y?.(!1), await p(), e) : null;
|
|
620
633
|
} catch {
|
|
621
634
|
return null;
|
|
622
635
|
} finally {
|
|
623
|
-
|
|
636
|
+
Y(!1);
|
|
624
637
|
}
|
|
625
638
|
}, [
|
|
626
|
-
|
|
627
|
-
|
|
639
|
+
K,
|
|
640
|
+
N,
|
|
628
641
|
c,
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
]),
|
|
632
|
-
let t =
|
|
633
|
-
return e.endpoint.trim() ? W(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"), !
|
|
634
|
-
}, [
|
|
635
|
-
let e =
|
|
636
|
-
if (!e || Object.keys(t).length > 0)
|
|
642
|
+
p,
|
|
643
|
+
y
|
|
644
|
+
]), be = b(async () => await ye() ?? !1, [ye]), $ = b((e) => {
|
|
645
|
+
let t = k?.validation, n = {};
|
|
646
|
+
return e.endpoint.trim() ? W(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"), !j && !e.auth.clientSecret?.trim() && (n.clientSecret = t?.clientSecretRequired ?? "Client secret is required"), e.auth.authorizationEndpoint?.trim() ? W(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() ? W(e.auth.tokenEndpoint) || (n.tokenEndpoint = t?.endpointInvalid ?? "Enter a valid http(s) URL") : n.tokenEndpoint = t?.tokenEndpointRequired ?? "Token endpoint is required")), n;
|
|
647
|
+
}, [k, j]), Ee = b(async () => {
|
|
648
|
+
let e = de(), t = $(K);
|
|
649
|
+
if (!e || Object.keys(t).length > 0) X(t);
|
|
637
650
|
else {
|
|
638
|
-
|
|
651
|
+
X({}), Y(!0);
|
|
639
652
|
try {
|
|
640
|
-
let e = await c(
|
|
653
|
+
let e = await c(K, N);
|
|
641
654
|
if (!e) return;
|
|
642
|
-
I(
|
|
655
|
+
I(K), await p(), h(K);
|
|
643
656
|
try {
|
|
644
|
-
await
|
|
657
|
+
await u(e, K.auth), g();
|
|
645
658
|
} catch (e) {
|
|
646
|
-
let { traceId: t } = await
|
|
647
|
-
|
|
659
|
+
let { traceId: t } = await ee(e);
|
|
660
|
+
D(k?.settings?.auth?.errorLoginFailed ?? "Failed to log in. Please check your credentials and try again.", t);
|
|
648
661
|
}
|
|
649
662
|
} catch {} finally {
|
|
650
|
-
|
|
663
|
+
Y(!1);
|
|
651
664
|
}
|
|
652
665
|
}
|
|
653
666
|
}, [
|
|
654
|
-
|
|
655
|
-
|
|
667
|
+
de,
|
|
668
|
+
K,
|
|
656
669
|
$,
|
|
657
|
-
|
|
670
|
+
N,
|
|
658
671
|
c,
|
|
659
|
-
|
|
672
|
+
p,
|
|
673
|
+
h,
|
|
660
674
|
g,
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
value: R.description,
|
|
675
|
+
u,
|
|
676
|
+
D,
|
|
677
|
+
k
|
|
678
|
+
]), De = v({
|
|
679
|
+
value: z.description,
|
|
667
680
|
onChange: (e) => Q({ description: e }),
|
|
668
|
-
onRefine:
|
|
669
|
-
disabled:
|
|
670
|
-
resetKey:
|
|
671
|
-
}),
|
|
681
|
+
onRefine: O,
|
|
682
|
+
disabled: J,
|
|
683
|
+
resetKey: P.key
|
|
684
|
+
}), Oe = O ? (e, t) => /* @__PURE__ */ L(m, {
|
|
672
685
|
isEnabled: !0,
|
|
673
686
|
fieldId: t,
|
|
674
|
-
label:
|
|
675
|
-
labels:
|
|
676
|
-
refinement:
|
|
677
|
-
disabled:
|
|
687
|
+
label: k?.general?.form?.description.label ?? "Description",
|
|
688
|
+
labels: k?.refinement,
|
|
689
|
+
refinement: De,
|
|
690
|
+
disabled: De.isPending || J,
|
|
678
691
|
children: e
|
|
679
|
-
}) : void 0,
|
|
680
|
-
form:
|
|
681
|
-
avatarPicker:
|
|
682
|
-
}), [
|
|
683
|
-
let e =
|
|
684
|
-
for (let e of
|
|
685
|
-
if (!
|
|
692
|
+
}) : void 0, ke = S(() => ({
|
|
693
|
+
form: k?.general?.form ?? ue,
|
|
694
|
+
avatarPicker: k?.general?.avatarPicker
|
|
695
|
+
}), [k?.general?.form, k?.general?.avatarPicker]), Ae = S(() => !fe(K, j), [K, j]), je = S(() => {
|
|
696
|
+
let e = k?.validation, n = $(K), r = { ...he };
|
|
697
|
+
for (let e of Ce) {
|
|
698
|
+
if (!ge[e]) continue;
|
|
686
699
|
let t = n[e];
|
|
687
700
|
t ? r[e] = t : delete r[e];
|
|
688
701
|
}
|
|
689
|
-
return H.name === t.Required ? r.name = e?.nameRequired ?? "Name is required" : H.name === t.TooLong ? r.name = e?.nameTooLong ?? `Use ${
|
|
702
|
+
return H.name === t.Required ? r.name = e?.nameRequired ?? "Name is required" : H.name === t.TooLong ? r.name = e?.nameTooLong ?? `Use ${f} characters or fewer.` : H.name === t.ControlCharacters && (r.name = e?.nameControlCharacters ?? "Remove line breaks, tabs and other control characters."), H.description === t.TooLong && (r.description = e?.descriptionTooLong ?? `Use ${d} characters or fewer.`), H.version === t.InvalidFormat && (r.version = e?.versionInvalid ?? "Version may only contain letters, digits, dots, underscores, and dashes"), r;
|
|
690
703
|
}, [
|
|
704
|
+
ge,
|
|
691
705
|
he,
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
j,
|
|
706
|
+
K,
|
|
707
|
+
k,
|
|
695
708
|
H,
|
|
696
709
|
$
|
|
697
|
-
]),
|
|
710
|
+
]), Me = T && N ? T(N) : void 0;
|
|
698
711
|
return /* @__PURE__ */ L(n, {
|
|
699
|
-
title:
|
|
700
|
-
onBack:
|
|
701
|
-
onCancel:
|
|
702
|
-
onSubmit:
|
|
703
|
-
submitLabel:
|
|
704
|
-
isSubmitting:
|
|
705
|
-
isSubmitDisabled:
|
|
706
|
-
metadataSectionClassName:
|
|
707
|
-
setupSectionClassName:
|
|
712
|
+
title: j ? k?.layout?.editTitle ?? "Edit toolset" : k?.layout?.createTitle ?? "Create toolset",
|
|
713
|
+
onBack: _,
|
|
714
|
+
onCancel: _,
|
|
715
|
+
onSubmit: Ee,
|
|
716
|
+
submitLabel: j ? k?.layout?.saveLabel ?? "Save" : k?.layout?.createLabel ?? "Create",
|
|
717
|
+
isSubmitting: J,
|
|
718
|
+
isSubmitDisabled: Ae || De.isPending,
|
|
719
|
+
metadataSectionClassName: le.metadataSection,
|
|
720
|
+
setupSectionClassName: le.setupSection,
|
|
708
721
|
labels: {
|
|
709
|
-
backAriaLabel:
|
|
710
|
-
savingStatusLabel:
|
|
711
|
-
metadataTitle:
|
|
712
|
-
setupTitle:
|
|
713
|
-
cancelLabel:
|
|
722
|
+
backAriaLabel: k?.layout?.backAriaLabel ?? "Back to catalog",
|
|
723
|
+
savingStatusLabel: k?.layout?.savingStatusLabel ?? "Saving",
|
|
724
|
+
metadataTitle: k?.layout?.metadataSectionTitle ?? "Metadata",
|
|
725
|
+
setupTitle: k?.layout?.setupSectionTitle ?? "Setup",
|
|
726
|
+
cancelLabel: k?.layout?.cancelLabel ?? "Cancel"
|
|
714
727
|
},
|
|
715
728
|
metadata: /* @__PURE__ */ L(i, {
|
|
716
|
-
values:
|
|
717
|
-
errors:
|
|
729
|
+
values: K,
|
|
730
|
+
errors: je,
|
|
718
731
|
onChange: Q,
|
|
719
|
-
avatarPicker:
|
|
720
|
-
availableLocaleOptions:
|
|
721
|
-
renderDescription:
|
|
722
|
-
labels:
|
|
732
|
+
avatarPicker: ie,
|
|
733
|
+
availableLocaleOptions: ae,
|
|
734
|
+
renderDescription: Oe,
|
|
735
|
+
labels: ke
|
|
723
736
|
}),
|
|
724
|
-
setup: /* @__PURE__ */ L(
|
|
725
|
-
form:
|
|
726
|
-
errors:
|
|
727
|
-
isSaving:
|
|
728
|
-
toolsetId:
|
|
729
|
-
isEditMode:
|
|
730
|
-
connectUrl:
|
|
731
|
-
listToolNames:
|
|
732
|
-
authActions:
|
|
733
|
-
onOAuthLogin:
|
|
734
|
-
onNotifySuccess:
|
|
735
|
-
onNotifyError:
|
|
737
|
+
setup: /* @__PURE__ */ L(xe, {
|
|
738
|
+
form: K,
|
|
739
|
+
errors: je,
|
|
740
|
+
isSaving: J,
|
|
741
|
+
toolsetId: N,
|
|
742
|
+
isEditMode: j,
|
|
743
|
+
connectUrl: Me,
|
|
744
|
+
listToolNames: E,
|
|
745
|
+
authActions: te,
|
|
746
|
+
onOAuthLogin: ne,
|
|
747
|
+
onNotifySuccess: re,
|
|
748
|
+
onNotifyError: D,
|
|
736
749
|
onChange: Q,
|
|
737
|
-
onAuthChange:
|
|
738
|
-
onEnsureSaved:
|
|
739
|
-
labels:
|
|
750
|
+
onAuthChange: ve,
|
|
751
|
+
onEnsureSaved: be,
|
|
752
|
+
labels: k?.settings,
|
|
753
|
+
colors: A?.settings,
|
|
754
|
+
typography: oe?.settings
|
|
740
755
|
})
|
|
741
756
|
});
|
|
742
757
|
};
|
|
743
758
|
//#endregion
|
|
744
|
-
export {
|
|
759
|
+
export { V as AUTH_TYPE_ICONS, B as DEFAULT_TOOLSET_VERSION, le as TOOLSET_EDITOR_CLASS, Ee as ToolsetEditor, Y as ToolsetOAuthLoginStatus, z as ToolsetTransportType, de as getDefaultToolsetForm, q as isToolsetAuthValid, fe as isToolsetFormValid, W as isValidEndpointUrl, K as normalizeReturnedEndpointUrl };
|
|
@@ -118,5 +118,9 @@ export interface AuthSectionProps {
|
|
|
118
118
|
onEnsureSaved: () => Promise<string | false>;
|
|
119
119
|
/** Pre-translated labels, all optional with English defaults. */
|
|
120
120
|
labels?: AuthSectionLabels;
|
|
121
|
+
/** Typography class of the "Authentication" heading. Defaults to `'dial-h3-text'`. */
|
|
122
|
+
titleClassName?: string;
|
|
123
|
+
/** Typography class of the open-access ("None" auth) description. Defaults to `'dial-small-text'`. */
|
|
124
|
+
openAccessDescriptionClassName?: string;
|
|
121
125
|
}
|
|
122
126
|
//# sourceMappingURL=auth-section-props.d.ts.map
|
|
@@ -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,EA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AAE,MAAM,CAAC;CACzC"}
|
|
@@ -33,6 +33,28 @@ export interface SettingsFormLabels {
|
|
|
33
33
|
/** Labels threaded to the embedded auth block. */
|
|
34
34
|
auth?: AuthSectionLabels;
|
|
35
35
|
}
|
|
36
|
+
/** Color overrides for the Setup section form, applied as CSS custom properties. */
|
|
37
|
+
export interface SettingsFormColors {
|
|
38
|
+
/** Text color of the "Connect toolset" title. Defaults to `--text-primary`. */
|
|
39
|
+
connectTitle?: string;
|
|
40
|
+
/** Text color of the "Connect toolset" description. Defaults to `--text-secondary`. */
|
|
41
|
+
connectDescription?: string;
|
|
42
|
+
/** Color of the divider above the "Connect toolset" block. Defaults to `--stroke-tertiary`. */
|
|
43
|
+
connectDivider?: string;
|
|
44
|
+
/** Text color of the open-access ("None" auth) description. Defaults to `--text-secondary`. */
|
|
45
|
+
openAccessDescription?: string;
|
|
46
|
+
}
|
|
47
|
+
/** Typography class overrides for the Setup section form. */
|
|
48
|
+
export interface SettingsFormTypography {
|
|
49
|
+
/** Typography class of the "Authentication" heading. Defaults to `'dial-h3-text'`. */
|
|
50
|
+
authTitleClassName?: string;
|
|
51
|
+
/** Typography class of the open-access ("None" auth) description. Defaults to `'dial-small-text'`. */
|
|
52
|
+
openAccessDescriptionClassName?: string;
|
|
53
|
+
/** Typography class of the "Connect toolset" title. Defaults to `'dial-body-semi-text'`. */
|
|
54
|
+
connectTitleClassName?: string;
|
|
55
|
+
/** Typography class of the "Connect toolset" description. Defaults to `'dial-small-text'`. */
|
|
56
|
+
connectDescriptionClassName?: string;
|
|
57
|
+
}
|
|
36
58
|
/** Props of the internal Setup section form. */
|
|
37
59
|
export interface SettingsFormProps {
|
|
38
60
|
/** Current toolset form state. */
|
|
@@ -75,5 +97,9 @@ export interface SettingsFormProps {
|
|
|
75
97
|
onEnsureSaved: () => Promise<string | false>;
|
|
76
98
|
/** Pre-translated labels, all optional with English defaults. */
|
|
77
99
|
labels?: SettingsFormLabels;
|
|
100
|
+
/** Color overrides. */
|
|
101
|
+
colors?: SettingsFormColors;
|
|
102
|
+
/** Typography class overrides. */
|
|
103
|
+
typography?: SettingsFormTypography;
|
|
78
104
|
}
|
|
79
105
|
//# sourceMappingURL=settings-form-props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings-form-props.d.ts","sourceRoot":"","sources":["../../src/models/settings-form-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,KAAK,EACV,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EACf,iBAAiB,EAClB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAEtE,yFAAyF;AACzF,MAAM,WAAW,0BAA0B;IACzC,sDAAsD;IACtD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8GAA8G;IAC9G,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2DAA2D;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uEAAuE;IACvE,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,uFAAuF;AACvF,MAAM,WAAW,kBAAkB;IACjC,8DAA8D;IAC9D,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,6JAA6J;IAC7J,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,uEAAuE;IACvE,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,oEAAoE;IACpE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wEAAwE;IACxE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,+FAA+F;IAC/F,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,sFAAsF;IACtF,6BAA6B,CAAC,EAAE,MAAM,CAAC;IACvC,uDAAuD;IACvD,OAAO,CAAC,EAAE,0BAA0B,CAAC;IACrC,kDAAkD;IAClD,IAAI,CAAC,EAAE,iBAAiB,CAAC;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,kBAAkB,CAAC;IAC5B,kCAAkC;IAClC,UAAU,CAAC,EAAE,sBAAsB,CAAC;CACrC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DeploymentCreationFormLocaleOption, MetadataFormAvatarPicker } from '../../../builder-form/src/index.ts';
|
|
2
2
|
import { TextRefinementCallback, TextRefinementLabels } from '../../../chat-shared/src/index.ts';
|
|
3
3
|
import { GeneralFormLabels } from './general-form-labels';
|
|
4
|
-
import { SettingsFormLabels } from './settings-form-props';
|
|
4
|
+
import { SettingsFormColors, SettingsFormLabels, SettingsFormTypography } from './settings-form-props';
|
|
5
5
|
import { ToolsetAuthActions, ToolsetAuthFormData, ToolsetFormData } from './toolset-form';
|
|
6
6
|
import { ToolsetOAuthLoginHandler } from './toolset-oauth-login';
|
|
7
7
|
/** Validation messages surfaced under the fields, all optional with English defaults. */
|
|
@@ -71,6 +71,16 @@ export interface ToolsetEditorLabels {
|
|
|
71
71
|
/** Validation messages keyed by field. */
|
|
72
72
|
validation?: ToolsetEditorValidationLabels;
|
|
73
73
|
}
|
|
74
|
+
/** Color overrides for the composed Toolset editor, grouped like its labels. */
|
|
75
|
+
export interface ToolsetEditorColors {
|
|
76
|
+
/** Colors of the Setup section form. */
|
|
77
|
+
settings?: SettingsFormColors;
|
|
78
|
+
}
|
|
79
|
+
/** Typography class overrides for the composed Toolset editor, grouped like its labels. */
|
|
80
|
+
export interface ToolsetEditorTypography {
|
|
81
|
+
/** Typography of the Setup section form. */
|
|
82
|
+
settings?: SettingsFormTypography;
|
|
83
|
+
}
|
|
74
84
|
/** Props of the composed Toolset editor. */
|
|
75
85
|
export interface ToolsetEditorProps {
|
|
76
86
|
/**
|
|
@@ -138,5 +148,9 @@ export interface ToolsetEditorProps {
|
|
|
138
148
|
onRefineDescription?: TextRefinementCallback;
|
|
139
149
|
/** Pre-translated labels; each group falls back to English defaults. */
|
|
140
150
|
labels?: ToolsetEditorLabels;
|
|
151
|
+
/** Color overrides, applied as CSS custom properties. */
|
|
152
|
+
colors?: ToolsetEditorColors;
|
|
153
|
+
/** Typography class overrides. */
|
|
154
|
+
typography?: ToolsetEditorTypography;
|
|
141
155
|
}
|
|
142
156
|
//# sourceMappingURL=toolset-editor-props.d.ts.map
|
|
@@ -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,
|
|
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;I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AC,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,uFAAuF;IACvF,mBAAmB,CAAC,EAAE,sBAAsB,CAAC;IAC7C,wEAAwE;IACxE,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,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.256",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@tabler/icons-react": "^3.44.0",
|
|
21
|
-
"@epam/ai-dial-builder-form": "1.3.0-dev.
|
|
21
|
+
"@epam/ai-dial-builder-form": "1.3.0-dev.256"
|
|
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.256",
|
|
25
|
+
"@epam/ai-dial-chat-shared": "1.3.0-dev.256",
|
|
26
26
|
"@epam/ai-dial-ui-kit": "^0.16.0-dev.56",
|
|
27
27
|
"react": "^19.2.8"
|
|
28
28
|
},
|