@motiadev/plugin-endpoint 0.14.0-beta.165-826018 → 0.14.0-beta.165-828441
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/dist/api/endpoints-stream.d.ts +22 -0
- package/dist/api/endpoints-stream.d.ts.map +1 -0
- package/dist/api/index.d.ts +3 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/components/configuration-list-item.d.ts +12 -0
- package/dist/components/configuration-list-item.d.ts.map +1 -0
- package/dist/components/endpoint-badge.d.ts +8 -0
- package/dist/components/endpoint-badge.d.ts.map +1 -0
- package/dist/components/endpoint-item.d.ts +11 -0
- package/dist/components/endpoint-item.d.ts.map +1 -0
- package/dist/components/endpoint-path-preview.d.ts +8 -0
- package/dist/components/endpoint-path-preview.d.ts.map +1 -0
- package/dist/components/endpoint-path.d.ts +8 -0
- package/dist/components/endpoint-path.d.ts.map +1 -0
- package/dist/components/endpoint-tab-label.d.ts +2 -0
- package/dist/components/endpoint-tab-label.d.ts.map +1 -0
- package/dist/components/endpoints-search.d.ts +8 -0
- package/dist/components/endpoints-search.d.ts.map +1 -0
- package/dist/components/flow-group.d.ts +15 -0
- package/dist/components/flow-group.d.ts.map +1 -0
- package/dist/components/json-editor.d.ts +12 -0
- package/dist/components/json-editor.d.ts.map +1 -0
- package/dist/endpoints-page.d.ts +2 -0
- package/dist/endpoints-page.d.ts.map +1 -0
- package/dist/hooks/__tests__/utils.test.d.ts +2 -0
- package/dist/hooks/__tests__/utils.test.d.ts.map +1 -0
- package/dist/hooks/use-endpoint-configuration.d.ts +78 -0
- package/dist/hooks/use-endpoint-configuration.d.ts.map +1 -0
- package/dist/hooks/use-get-endpoints.d.ts +6 -0
- package/dist/hooks/use-get-endpoints.d.ts.map +1 -0
- package/dist/hooks/use-json-schema-to-json.d.ts +5 -0
- package/dist/hooks/use-json-schema-to-json.d.ts.map +1 -0
- package/dist/hooks/use-path-params.d.ts +2 -0
- package/dist/hooks/use-path-params.d.ts.map +1 -0
- package/dist/hooks/use-path-url.d.ts +2 -0
- package/dist/hooks/use-path-url.d.ts.map +1 -0
- package/dist/hooks/use-state-stream.d.ts +8 -0
- package/dist/hooks/use-state-stream.d.ts.map +1 -0
- package/dist/hooks/utils.d.ts +8 -0
- package/dist/hooks/utils.d.ts.map +1 -0
- package/dist/index.cjs +132 -0
- package/dist/index.d.ts +1 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +25677 -2715
- package/dist/play/reponse-code/utils.d.ts +2 -0
- package/dist/play/reponse-code/utils.d.ts.map +1 -0
- package/dist/play/response-code.d.ts +7 -0
- package/dist/play/response-code.d.ts.map +1 -0
- package/dist/play/response-content.d.ts +9 -0
- package/dist/play/response-content.d.ts.map +1 -0
- package/dist/play/side-panel-body-tab.d.ts +7 -0
- package/dist/play/side-panel-body-tab.d.ts.map +1 -0
- package/dist/play/side-panel-headers-tab.d.ts +2 -0
- package/dist/play/side-panel-headers-tab.d.ts.map +1 -0
- package/dist/play/side-panel-params-tab.d.ts +6 -0
- package/dist/play/side-panel-params-tab.d.ts.map +1 -0
- package/dist/play/side-panel-response.d.ts +2 -0
- package/dist/play/side-panel-response.d.ts.map +1 -0
- package/dist/play/side-panel.d.ts +9 -0
- package/dist/play/side-panel.d.ts.map +1 -0
- package/dist/play/trigger-button.d.ts +7 -0
- package/dist/play/trigger-button.d.ts.map +1 -0
- package/dist/plugin-endpoint.css +1 -0
- package/dist/plugin.cjs +1 -0
- package/dist/plugin.d.ts +2 -8
- package/dist/plugin.d.ts.map +1 -1
- package/dist/plugin.js +66 -84
- package/dist/spec/spec-body-panel.d.ts +10 -0
- package/dist/spec/spec-body-panel.d.ts.map +1 -0
- package/dist/spec/spec-path-params-panel.d.ts +8 -0
- package/dist/spec/spec-path-params-panel.d.ts.map +1 -0
- package/dist/spec/spec-query-params-panel.d.ts +8 -0
- package/dist/spec/spec-query-params-panel.d.ts.map +1 -0
- package/dist/spec/spec-response-schema.d.ts +11 -0
- package/dist/spec/spec-response-schema.d.ts.map +1 -0
- package/dist/spec/spec-side-panel.d.ts +9 -0
- package/dist/spec/spec-side-panel.d.ts.map +1 -0
- package/dist/types/endpoint.d.ts +16 -0
- package/dist/types/endpoint.d.ts.map +1 -0
- package/package.json +32 -24
- package/dist/index.css +0 -1139
- package/dist/index.css.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/plugin.js.map +0 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ApiRouteConfig, ApiRouteMethod, JsonSchema, LockedData, QueryParam, Step, StreamAdapter } from '@motiadev/core';
|
|
2
|
+
type ApiEndpoint = {
|
|
3
|
+
id: string;
|
|
4
|
+
method: ApiRouteMethod;
|
|
5
|
+
path: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
queryParams?: QueryParam[];
|
|
8
|
+
responseSchema?: JsonSchema;
|
|
9
|
+
bodySchema?: JsonSchema;
|
|
10
|
+
flows?: string[];
|
|
11
|
+
};
|
|
12
|
+
export declare const mapEndpoint: (step: Step<ApiRouteConfig>) => ApiEndpoint;
|
|
13
|
+
export declare class EndpointsStream extends StreamAdapter<ApiEndpoint> {
|
|
14
|
+
private readonly lockedData;
|
|
15
|
+
constructor(lockedData: LockedData);
|
|
16
|
+
get(_groupId: string, id: string): Promise<ApiEndpoint | null>;
|
|
17
|
+
delete(id: string): Promise<ApiEndpoint>;
|
|
18
|
+
set(_: string, __: string, data: ApiEndpoint): Promise<ApiEndpoint>;
|
|
19
|
+
getGroup(): Promise<ApiEndpoint[]>;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=endpoints-stream.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"endpoints-stream.d.ts","sourceRoot":"","sources":["../../src/api/endpoints-stream.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,UAAU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|
+
import { ConfigurationLitItem } from '../hooks/use-endpoint-configuration';
|
|
3
|
+
interface ConfigurationListItemProps {
|
|
4
|
+
value: ConfigurationLitItem;
|
|
5
|
+
id: string;
|
|
6
|
+
onUpdate: (key: string, field: 'name' | 'value' | 'active', value: string | boolean) => void;
|
|
7
|
+
onRemove?: (key: string) => void;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const ConfigurationListItem: FC<ConfigurationListItemProps>;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=configuration-list-item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configuration-list-item.d.ts","sourceRoot":"","sources":["../../src/components/configuration-list-item.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAAE,EAAuC,MAAM,OAAO,CAAA;AACpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAA;AAE/E,UAAU,0BAA0B;IAClC,KAAK,EAAE,oBAAoB,CAAA;IAC3B,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,KAAK,IAAI,CAAA;IAC5F,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,0BAA0B,CAmFhE,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ApiRouteMethod } from '../types/endpoint';
|
|
2
|
+
import type * as React from 'react';
|
|
3
|
+
interface BadgeProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
variant: ApiRouteMethod;
|
|
5
|
+
}
|
|
6
|
+
export declare const EndpointBadge: React.MemoExoticComponent<({ className, variant, ...props }: BadgeProps) => import("react/jsx-runtime").JSX.Element>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=endpoint-badge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"endpoint-badge.d.ts","sourceRoot":"","sources":["../../src/components/endpoint-badge.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;AAEnC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAuBvD,UAAU,UAAW,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC/D,OAAO,EAAE,cAAc,CAAA;CACxB;AAED,eAAO,MAAM,aAAa,+DAA2C,UAAU,6CAK7E,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ApiEndpoint } from '../types/endpoint';
|
|
3
|
+
type EndpointItemProps = {
|
|
4
|
+
endpoint: ApiEndpoint;
|
|
5
|
+
isSelected: boolean;
|
|
6
|
+
isLast: boolean;
|
|
7
|
+
onSelect: (id: string) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const EndpointItem: FC<EndpointItemProps>;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=endpoint-item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"endpoint-item.d.ts","sourceRoot":"","sources":["../../src/components/endpoint-item.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAGpD,KAAK,iBAAiB,GAAG;IACvB,QAAQ,EAAE,WAAW,CAAA;IACrB,UAAU,EAAE,OAAO,CAAA;IACnB,MAAM,EAAE,OAAO,CAAA;IACf,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;CAC/B,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAgC9C,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"endpoint-path-preview.d.ts","sourceRoot":"","sources":["../../src/components/endpoint-path-preview.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,EAAY,MAAM,OAAO,CAAA;AAGzC,UAAU,wBAAwB;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,CAyC5D,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"endpoint-path.d.ts","sourceRoot":"","sources":["../../src/components/endpoint-path.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAW,MAAM,OAAO,CAAA;AAIxC,UAAU,iBAAiB;IACzB,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;CACb;AAMD,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAiC9C,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"endpoint-tab-label.d.ts","sourceRoot":"","sources":["../../src/components/endpoint-tab-label.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,oFAK3B,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type EndpointsSearchProps = {
|
|
2
|
+
value: string;
|
|
3
|
+
onChange: (value: string) => void;
|
|
4
|
+
onClear: () => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const EndpointsSearch: ({ value, onChange, onClear }: EndpointsSearchProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=endpoints-search.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"endpoints-search.d.ts","sourceRoot":"","sources":["../../src/components/endpoints-search.tsx"],"names":[],"mappings":"AAIA,KAAK,oBAAoB,GAAG;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,CAAA;AAED,eAAO,MAAM,eAAe,GAAI,8BAA8B,oBAAoB,4CAyBjF,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ApiEndpoint } from '../types/endpoint';
|
|
3
|
+
type FlowGroupProps = {
|
|
4
|
+
flow: string;
|
|
5
|
+
endpoints: ApiEndpoint[];
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
isSelected: boolean;
|
|
8
|
+
onToggle: (flow: string) => void;
|
|
9
|
+
onClearSelection: () => void;
|
|
10
|
+
selectedEndpointId?: string;
|
|
11
|
+
onSelectEndpoint: (id: string) => void;
|
|
12
|
+
};
|
|
13
|
+
export declare const FlowGroup: FC<FlowGroupProps>;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=flow-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flow-group.d.ts","sourceRoot":"","sources":["../../src/components/flow-group.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAGpD,KAAK,cAAc,GAAG;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,WAAW,EAAE,CAAA;IACxB,MAAM,EAAE,OAAO,CAAA;IACf,UAAU,EAAE,OAAO,CAAA;IACnB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IAChC,gBAAgB,EAAE,MAAM,IAAI,CAAA;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,gBAAgB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;CACvC,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CAyDxC,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
type JsonEditorProps = {
|
|
3
|
+
value: string;
|
|
4
|
+
schema?: Record<string, unknown>;
|
|
5
|
+
onChange?: (value: string) => void;
|
|
6
|
+
onValidate?: (isValid: boolean) => void;
|
|
7
|
+
language?: 'json' | string;
|
|
8
|
+
readOnly?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare const JsonEditor: FC<JsonEditorProps>;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=json-editor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"json-editor.d.ts","sourceRoot":"","sources":["../../src/components/json-editor.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,EAAyD,MAAM,OAAO,CAAA;AAEtF,KAAK,eAAe,GAAG;IACrB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAChC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;IACvC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAoK1C,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"endpoints-page.d.ts","sourceRoot":"","sources":["../src/endpoints-page.tsx"],"names":[],"mappings":"AASA,eAAO,MAAM,aAAa,+CAwDzB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.test.d.ts","sourceRoot":"","sources":["../../../src/hooks/__tests__/utils.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
export type ConfigurationLitItem = {
|
|
2
|
+
name: string;
|
|
3
|
+
value: string;
|
|
4
|
+
active: boolean;
|
|
5
|
+
};
|
|
6
|
+
export type Headers = {
|
|
7
|
+
[key: string]: ConfigurationLitItem;
|
|
8
|
+
};
|
|
9
|
+
export type Params = {
|
|
10
|
+
[key: string]: ConfigurationLitItem;
|
|
11
|
+
};
|
|
12
|
+
export type ResponseData = {
|
|
13
|
+
headers: Record<string, string>;
|
|
14
|
+
body: Record<string, any>;
|
|
15
|
+
statusCode: number;
|
|
16
|
+
executionTime: number;
|
|
17
|
+
};
|
|
18
|
+
type Actions = {
|
|
19
|
+
setResponse: (response: Response | undefined, startTime?: number) => void;
|
|
20
|
+
setHeaders: (headers: Headers) => void;
|
|
21
|
+
removeHeaders: (key: string) => void;
|
|
22
|
+
setBody: (body: string) => void;
|
|
23
|
+
setSelectedEndpointId: (selectedEndpointId: string | undefined) => void;
|
|
24
|
+
setQueryParams: (params: Params) => void;
|
|
25
|
+
removeQueryParams: (key: string) => void;
|
|
26
|
+
setPathParams: (pathParams: Params) => void;
|
|
27
|
+
removePathParams: (key: string) => void;
|
|
28
|
+
setBodyIsValid: (bodyIsValid: boolean) => void;
|
|
29
|
+
toggleFlowGroupStatus: (flow: string) => void;
|
|
30
|
+
};
|
|
31
|
+
type State = {
|
|
32
|
+
selectedEndpointId: string;
|
|
33
|
+
headers: Record<string, Headers>;
|
|
34
|
+
body: Record<string, string>;
|
|
35
|
+
bodyIsValid: Record<string, boolean>;
|
|
36
|
+
response: Record<string, ResponseData | undefined>;
|
|
37
|
+
queryParams: Record<string, Params>;
|
|
38
|
+
pathParams: Record<string, Params>;
|
|
39
|
+
flowGroupStatus: Record<string, boolean>;
|
|
40
|
+
};
|
|
41
|
+
export type UseEndpointConfiguration = State & Actions;
|
|
42
|
+
export declare const getHeadersSelector: (state: UseEndpointConfiguration) => Headers;
|
|
43
|
+
export declare const getBodyIsValidSelector: (state: UseEndpointConfiguration) => boolean;
|
|
44
|
+
export declare const getBodySelector: (state: UseEndpointConfiguration) => string;
|
|
45
|
+
export declare const getResponseSelector: (state: UseEndpointConfiguration) => ResponseData | undefined;
|
|
46
|
+
export declare const getQueryParamsSelector: (state: UseEndpointConfiguration) => Params;
|
|
47
|
+
export declare const getPathParamsSelector: (state: UseEndpointConfiguration) => Params;
|
|
48
|
+
export declare const useEndpointConfiguration: import('zustand').UseBoundStore<Omit<Omit<import('zustand').StoreApi<UseEndpointConfiguration>, "setState" | "persist"> & {
|
|
49
|
+
setState(partial: UseEndpointConfiguration | Partial<UseEndpointConfiguration> | ((state: UseEndpointConfiguration) => UseEndpointConfiguration | Partial<UseEndpointConfiguration>), replace?: false | undefined): unknown;
|
|
50
|
+
setState(state: UseEndpointConfiguration | ((state: UseEndpointConfiguration) => UseEndpointConfiguration), replace: true): unknown;
|
|
51
|
+
persist: {
|
|
52
|
+
setOptions: (options: Partial<import('zustand/middleware').PersistOptions<UseEndpointConfiguration, unknown, unknown>>) => void;
|
|
53
|
+
clearStorage: () => void;
|
|
54
|
+
rehydrate: () => Promise<void> | void;
|
|
55
|
+
hasHydrated: () => boolean;
|
|
56
|
+
onHydrate: (fn: (state: UseEndpointConfiguration) => void) => () => void;
|
|
57
|
+
onFinishHydration: (fn: (state: UseEndpointConfiguration) => void) => () => void;
|
|
58
|
+
getOptions: () => Partial<import('zustand/middleware').PersistOptions<UseEndpointConfiguration, unknown, unknown>>;
|
|
59
|
+
};
|
|
60
|
+
}, "setState" | "devtools"> & {
|
|
61
|
+
setState(partial: UseEndpointConfiguration | Partial<UseEndpointConfiguration> | ((state: UseEndpointConfiguration) => UseEndpointConfiguration | Partial<UseEndpointConfiguration>), replace?: false | undefined, action?: (string | {
|
|
62
|
+
[x: string]: unknown;
|
|
63
|
+
[x: number]: unknown;
|
|
64
|
+
[x: symbol]: unknown;
|
|
65
|
+
type: string;
|
|
66
|
+
}) | undefined): unknown;
|
|
67
|
+
setState(state: UseEndpointConfiguration | ((state: UseEndpointConfiguration) => UseEndpointConfiguration), replace: true, action?: (string | {
|
|
68
|
+
[x: string]: unknown;
|
|
69
|
+
[x: number]: unknown;
|
|
70
|
+
[x: symbol]: unknown;
|
|
71
|
+
type: string;
|
|
72
|
+
}) | undefined): unknown;
|
|
73
|
+
devtools: {
|
|
74
|
+
cleanup: () => void;
|
|
75
|
+
};
|
|
76
|
+
}>;
|
|
77
|
+
export {};
|
|
78
|
+
//# sourceMappingURL=use-endpoint-configuration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-endpoint-configuration.d.ts","sourceRoot":"","sources":["../../src/hooks/use-endpoint-configuration.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,OAAO,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,OAAO,GAAG;IACpB,CAAC,GAAG,EAAE,MAAM,GAAG,oBAAoB,CAAA;CACpC,CAAA;AAED,MAAM,MAAM,MAAM,GAAG;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,oBAAoB,CAAA;CACpC,CAAA;AAQD,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC/B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACzB,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa,EAAE,MAAM,CAAA;CACtB,CAAA;AAED,KAAK,OAAO,GAAG;IACb,WAAW,EAAE,CAAC,QAAQ,EAAE,QAAQ,GAAG,SAAS,EAAE,SAAS,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;I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,OAAO,wBAAwB,YAMjE,CAAA;AAED,eAAO,MAAM,sBAAsB,GAAI,OAAO,wBAAwB,YAMrE,CAAA;AAED,eAAO,MAAM,eAAe,GAAI,OAAO,wBAAwB,WAM9D,CAAA;AAED,eAAO,MAAM,mBAAmB,GAAI,OAAO,wBAAwB,6BAMlE,CAAA;AAED,eAAO,MAAM,sBAAsB,GAAI,OAAO,wBAAwB,WAMrE,CAAA;AAED,eAAO,MAAM,qBAAqB,GAAI,OAAO,wBAAwB,WAMpE,CAAA;AAED,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsGpC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-get-endpoints.d.ts","sourceRoot":"","sources":["../../src/hooks/use-get-endpoints.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAEpD,eAAO,MAAM,eAAe;;;CAyB3B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-json-schema-to-json.d.ts","sourceRoot":"","sources":["../../src/hooks/use-json-schema-to-json.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,mBAAmB,GAAI,QAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS;;;CAU1E,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-path-params.d.ts","sourceRoot":"","sources":["../../src/hooks/use-path-params.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,GAAI,MAAM,MAAM,aAGzC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-path-url.d.ts","sourceRoot":"","sources":["../../src/hooks/use-path-url.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,UAAU,GAAI,MAAM,MAAM,WAYtC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-state-stream.d.ts","sourceRoot":"","sources":["../../src/hooks/use-state-stream.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,GAAI,QAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS;;;;;;CAkBrE,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts a schema to a JSON object with default values
|
|
3
|
+
* Supports both TypeScript step schemas (inline definitions) and Python step schemas ($defs/$ref)
|
|
4
|
+
* @param schema - The schema to convert
|
|
5
|
+
* @param rootSchema - Optional root schema containing $defs for $ref resolution. Defaults to schema if not provided.
|
|
6
|
+
*/
|
|
7
|
+
export declare const convertSchemaToJson: (schema?: Record<string, any>, rootSchema?: Record<string, any>) => any;
|
|
8
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/hooks/utils.ts"],"names":[],"mappings":"AASA;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAAI,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,aAAa,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAG,GAiDpG,CAAA"}
|