@epam/ai-dial-toolset-editor 1.1.0-dev.465
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 +5 -0
- package/components/AuthSection/AuthSection.d.ts.map +1 -0
- package/components/ConnectMcpUrlContent/ConnectMcpUrlContent.d.ts +12 -0
- package/components/ConnectMcpUrlContent/ConnectMcpUrlContent.d.ts.map +1 -0
- package/components/GeneralForm/GeneralForm.d.ts +5 -0
- package/components/GeneralForm/GeneralForm.d.ts.map +1 -0
- package/components/SettingsForm/SettingsForm.d.ts +5 -0
- package/components/SettingsForm/SettingsForm.d.ts.map +1 -0
- package/components/ToolsetEditor/ToolsetEditor.d.ts +5 -0
- package/components/ToolsetEditor/ToolsetEditor.d.ts.map +1 -0
- package/constants/toolsets.d.ts +15 -0
- package/constants/toolsets.d.ts.map +1 -0
- package/index.d.ts +12 -0
- package/index.d.ts.map +1 -0
- package/index.js +741 -0
- package/models/auth-section-props.d.ts +110 -0
- package/models/auth-section-props.d.ts.map +1 -0
- package/models/general-form-props.d.ts +42 -0
- package/models/general-form-props.d.ts.map +1 -0
- package/models/settings-form-props.d.ts +79 -0
- package/models/settings-form-props.d.ts.map +1 -0
- package/models/toolset-editor-props.d.ts +134 -0
- package/models/toolset-editor-props.d.ts.map +1 -0
- package/models/toolset-form.d.ts +112 -0
- package/models/toolset-form.d.ts.map +1 -0
- package/models/toolset-oauth-login.d.ts +60 -0
- package/models/toolset-oauth-login.d.ts.map +1 -0
- package/package.json +31 -0
- package/test-setup.d.ts +1 -0
- package/test-setup.d.ts.map +1 -0
- package/utils/toolsets.d.ts +33 -0
- package/utils/toolsets.d.ts.map +1 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { AuthSectionProps } from '../../models/auth-section-props';
|
|
3
|
+
/** Authentication block of the Setup section: auth type selection, per-type fields, login/logout actions, and the OAuth popup flow. */
|
|
4
|
+
export declare const AuthSection: FC<AuthSectionProps>;
|
|
5
|
+
//# sourceMappingURL=AuthSection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthSection.d.ts","sourceRoot":"","sources":["../../../src/components/AuthSection/AuthSection.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAEV,gBAAgB,EACjB,MAAM,iCAAiC,CAAC;AAwCzC,uIAAuI;AACvI,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CA4a5C,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ConnectMcpUrlContentLabels } from '../../models/settings-form-props';
|
|
2
|
+
interface ConnectMcpUrlContentProps {
|
|
3
|
+
/** MCP endpoint URL shown and copied. */
|
|
4
|
+
url: string;
|
|
5
|
+
/** CSS class applied to the root. */
|
|
6
|
+
className?: string;
|
|
7
|
+
/** Pre-translated labels, all optional with English defaults. */
|
|
8
|
+
labels?: ConnectMcpUrlContentLabels;
|
|
9
|
+
}
|
|
10
|
+
declare const _default: import('react').NamedExoticComponent<ConnectMcpUrlContentProps>;
|
|
11
|
+
export default _default;
|
|
12
|
+
//# sourceMappingURL=ConnectMcpUrlContent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConnectMcpUrlContent.d.ts","sourceRoot":"","sources":["../../../src/components/ConnectMcpUrlContent/ConnectMcpUrlContent.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAEnF,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;CACrC;;AAsCD,wBAA0C"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { GeneralFormProps } from '../../models/general-form-props';
|
|
3
|
+
/** General (metadata) form shared by the Toolset and Custom App editors: name, description, avatar, version, tags, and additional locales. */
|
|
4
|
+
export declare const GeneralForm: FC<GeneralFormProps>;
|
|
5
|
+
//# sourceMappingURL=GeneralForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GeneralForm.d.ts","sourceRoot":"","sources":["../../../src/components/GeneralForm/GeneralForm.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAiExE,8IAA8I;AAC9I,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAuE5C,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { SettingsFormProps } from '../../models/settings-form-props';
|
|
3
|
+
/** Setup section form: endpoint, protocol, allowed tools, authentication block, and the Connect section. */
|
|
4
|
+
export declare const SettingsForm: FC<SettingsFormProps>;
|
|
5
|
+
//# sourceMappingURL=SettingsForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SettingsForm.d.ts","sourceRoot":"","sources":["../../../src/components/SettingsForm/SettingsForm.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAK1E,4GAA4G;AAC5G,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAiK9C,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ToolsetEditorProps } from '../../models/toolset-editor-props';
|
|
3
|
+
/** Host-agnostic composed editor for authoring a DIAL MCP toolset: metadata form, Setup section, validation, and save/persist orchestration via injected callbacks. */
|
|
4
|
+
export declare const ToolsetEditor: FC<ToolsetEditorProps>;
|
|
5
|
+
//# sourceMappingURL=ToolsetEditor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolsetEditor.d.ts","sourceRoot":"","sources":["../../../src/components/ToolsetEditor/ToolsetEditor.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAwC5E,uKAAuK;AACvK,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CA4WhD,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ToolsetAuthTypes } from '../../../chat-hooks/src/index.ts';
|
|
2
|
+
import { TablerIcon } from '@tabler/icons-react';
|
|
3
|
+
export declare enum ToolsetTransportType {
|
|
4
|
+
/** Streamable HTTP MCP transport. */
|
|
5
|
+
Http = "HTTP",
|
|
6
|
+
/** Server-sent events MCP transport. */
|
|
7
|
+
Sse = "SSE"
|
|
8
|
+
}
|
|
9
|
+
/** Default display name seeded into a new toolset form. */
|
|
10
|
+
export declare const DEFAULT_TOOLSET_NAME = "New toolset";
|
|
11
|
+
/** Default display version seeded into a new toolset form. */
|
|
12
|
+
export declare const DEFAULT_TOOLSET_VERSION = "0.0.1";
|
|
13
|
+
/** Icon shown for each toolset authentication-type segment; labels arrive via the auth labels. */
|
|
14
|
+
export declare const AUTH_TYPE_ICONS: Record<ToolsetAuthTypes, TablerIcon>;
|
|
15
|
+
//# sourceMappingURL=toolsets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolsets.d.ts","sourceRoot":"","sources":["../../src/constants/toolsets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,oBAAY,oBAAoB;IAC9B,qCAAqC;IACrC,IAAI,SAAS;IACb,wCAAwC;IACxC,GAAG,QAAQ;CACZ;AAED,2DAA2D;AAC3D,eAAO,MAAM,oBAAoB,gBAAgB,CAAC;AAElD,8DAA8D;AAC9D,eAAO,MAAM,uBAAuB,UAAU,CAAC;AAE/C,kGAAkG;AAClG,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,gBAAgB,EAAE,UAAU,CAIhE,CAAC"}
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { ToolsetEditor } from './components/ToolsetEditor/ToolsetEditor';
|
|
2
|
+
export { GeneralForm } from './components/GeneralForm/GeneralForm';
|
|
3
|
+
export type { ToolsetEditorLabels, ToolsetEditorLayoutLabels, ToolsetEditorProps, ToolsetEditorValidationLabels, } from './models/toolset-editor-props';
|
|
4
|
+
export type { GeneralFormLabels, GeneralFormProps, } from './models/general-form-props';
|
|
5
|
+
export type { ConnectMcpUrlContentLabels, SettingsFormLabels, } from './models/settings-form-props';
|
|
6
|
+
export type { AuthSectionLabels } from './models/auth-section-props';
|
|
7
|
+
export { ToolsetOAuthLoginStatus } from './models/toolset-oauth-login';
|
|
8
|
+
export type { ToolsetOAuthLoginHandler, ToolsetOAuthLoginRequest, ToolsetOAuthLoginResult, } from './models/toolset-oauth-login';
|
|
9
|
+
export type { DeploymentGeneralFormData, ToolsetAuthActions, ToolsetAuthFormData, ToolsetFormData, ToolsetFormErrors, ToolsetLoginRequest, ToolsetLogoutRequest, } from './models/toolset-form';
|
|
10
|
+
export { AUTH_TYPE_ICONS, DEFAULT_TOOLSET_NAME, DEFAULT_TOOLSET_VERSION, ToolsetTransportType, } from './constants/toolsets';
|
|
11
|
+
export { getDefaultToolsetForm, getStorageSafeUniqueToolsetName, isToolsetAuthValid, isToolsetFormValid, isValidEndpointUrl, normalizeReturnedEndpointUrl, } from './utils/toolsets';
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
package/index.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,YAAY,EACV,mBAAmB,EACnB,yBAAyB,EACzB,kBAAkB,EAClB,6BAA6B,GAC9B,MAAM,+BAA+B,CAAC;AACvC,YAAY,EACV,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,6BAA6B,CAAC;AACrC,YAAY,EACV,0BAA0B,EAC1B,kBAAkB,GACnB,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,oBAAoB,EACpB,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,qBAAqB,EACrB,+BAA+B,EAC/B,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,4BAA4B,GAC7B,MAAM,kBAAkB,CAAC"}
|