@motiadev/workbench 0.13.0-beta.162-315243 → 0.13.0-beta.162-687645
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/index.d.ts +9 -11
- package/dist/index.js +333 -875
- package/dist/middleware.d.ts +32 -33
- package/dist/middleware.js +1 -2
- package/dist/src/{src/components → components}/header/header.tsx +3 -3
- package/dist/src/{src/publicComponents → publicComponents}/api-node.tsx +2 -2
- package/package.json +5 -7
- package/dist/index.js.map +0 -1
- package/dist/middleware.js.map +0 -1
- /package/dist/src/{src/App.tsx → App.tsx} +0 -0
- /package/dist/src/{src/assets → assets}/.empty +0 -0
- /package/dist/src/{src/assets → assets}/motia-dark.png +0 -0
- /package/dist/src/{src/assets → assets}/motia-light.png +0 -0
- /package/dist/src/{src/components → components}/NotFoundPage.tsx +0 -0
- /package/dist/src/{src/components → components}/bottom-panel.tsx +0 -0
- /package/dist/src/{src/components → components}/flow/base-edge.tsx +0 -0
- /package/dist/src/{src/components → components}/flow/flow-loader.tsx +0 -0
- /package/dist/src/{src/components → components}/flow/flow-page.tsx +0 -0
- /package/dist/src/{src/components → components}/flow/flow-tab-menu-item.tsx +0 -0
- /package/dist/src/{src/components → components}/flow/flow-view.tsx +0 -0
- /package/dist/src/{src/components → components}/flow/hooks/use-get-flow-state.tsx +0 -0
- /package/dist/src/{src/components → components}/flow/hooks/use-save-workflow-config.ts +0 -0
- /package/dist/src/{src/components → components}/flow/node-organizer.tsx +0 -0
- /package/dist/src/{src/components → components}/flow/nodes/api-flow-node.tsx +0 -0
- /package/dist/src/{src/components → components}/flow/nodes/cron-flow-node.tsx +0 -0
- /package/dist/src/{src/components → components}/flow/nodes/event-flow-node.tsx +0 -0
- /package/dist/src/{src/components → components}/flow/nodes/noop-flow-node.tsx +0 -0
- /package/dist/src/{src/components → components}/header/deploy-button.tsx +0 -0
- /package/dist/src/{src/components → components}/root-motia.tsx +0 -0
- /package/dist/src/{src/components → components}/top-panel.tsx +0 -0
- /package/dist/src/{src/components → components}/tutorial/engine/tutorial-engine.ts +0 -0
- /package/dist/src/{src/components → components}/tutorial/engine/tutorial-types.ts +0 -0
- /package/dist/src/{src/components → components}/tutorial/engine/workbench-xpath.ts +0 -0
- /package/dist/src/{src/components → components}/tutorial/hooks/tutorial-utils.ts +0 -0
- /package/dist/src/{src/components → components}/tutorial/hooks/use-tutorial-engine.ts +0 -0
- /package/dist/src/{src/components → components}/tutorial/hooks/use-tutorial.ts +0 -0
- /package/dist/src/{src/components → components}/tutorial/tutorial-button.tsx +0 -0
- /package/dist/src/{src/components → components}/tutorial/tutorial-step.tsx +0 -0
- /package/dist/src/{src/components → components}/tutorial/tutorial.css +0 -0
- /package/dist/src/{src/components → components}/tutorial/tutorial.tsx +0 -0
- /package/dist/src/{src/components → components}/ui/json-editor.tsx +0 -0
- /package/dist/src/{src/components → components}/ui/table.tsx +0 -0
- /package/dist/src/{src/components → components}/ui/theme-toggle.tsx +0 -0
- /package/dist/src/{src/components → components}/ui/tooltip.tsx +0 -0
- /package/dist/src/{src/hooks → hooks}/use-debounced.ts +0 -0
- /package/dist/src/{src/hooks → hooks}/use-fetch-flows.ts +0 -0
- /package/dist/src/{src/hooks → hooks}/use-mobile.ts +0 -0
- /package/dist/src/{src/hooks → hooks}/use-update-handle-positions.ts +0 -0
- /package/dist/src/{src/index.css → index.css} +0 -0
- /package/dist/src/{src/lib → lib}/__tests__/utils.test.ts +0 -0
- /package/dist/src/{src/lib → lib}/motia-analytics.ts +0 -0
- /package/dist/src/{src/lib → lib}/plugins.tsx +0 -0
- /package/dist/src/{src/lib → lib}/utils.ts +0 -0
- /package/dist/src/{src/main.tsx → main.tsx} +0 -0
- /package/dist/src/{src/project-view-mode.tsx → project-view-mode.tsx} +0 -0
- /package/dist/src/{src/publicComponents → publicComponents}/base-node/base-handle.tsx +0 -0
- /package/dist/src/{src/publicComponents → publicComponents}/base-node/base-node.tsx +0 -0
- /package/dist/src/{src/publicComponents → publicComponents}/base-node/code-display.tsx +0 -0
- /package/dist/src/{src/publicComponents → publicComponents}/base-node/emits.tsx +0 -0
- /package/dist/src/{src/publicComponents → publicComponents}/base-node/feature-card.tsx +0 -0
- /package/dist/src/{src/publicComponents → publicComponents}/base-node/language-indicator.tsx +0 -0
- /package/dist/src/{src/publicComponents → publicComponents}/base-node/node-header.tsx +0 -0
- /package/dist/src/{src/publicComponents → publicComponents}/base-node/node-sidebar.tsx +0 -0
- /package/dist/src/{src/publicComponents → publicComponents}/base-node/subscribe.tsx +0 -0
- /package/dist/src/{src/publicComponents → publicComponents}/cron-node.tsx +0 -0
- /package/dist/src/{src/publicComponents → publicComponents}/event-node.tsx +0 -0
- /package/dist/src/{src/publicComponents → publicComponents}/node-props.tsx +0 -0
- /package/dist/src/{src/publicComponents → publicComponents}/noop-node.tsx +0 -0
- /package/dist/src/{src/setupTests.ts → setupTests.ts} +0 -0
- /package/dist/src/{src/stores → stores}/use-app-tabs-store.ts +0 -0
- /package/dist/src/{src/stores → stores}/use-flow-store.ts +0 -0
- /package/dist/src/{src/stores → stores}/use-global-store.ts +0 -0
- /package/dist/src/{src/stores → stores}/use-motia-config-store.ts +0 -0
- /package/dist/src/{src/stores → stores}/use-tabs-store.ts +0 -0
- /package/dist/src/{src/system-view-mode.tsx → system-view-mode.tsx} +0 -0
- /package/dist/src/{src/types → types}/endpoint.ts +0 -0
- /package/dist/src/{src/types → types}/file.ts +0 -0
- /package/dist/src/{src/types → types}/flow.ts +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { HandleProps, Position } from "@xyflow/react";
|
|
2
|
-
import React$1, { HTMLAttributes, PropsWithChildren } from "react";
|
|
3
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import React$1, { HTMLAttributes, JSX, PropsWithChildren } from "react";
|
|
4
3
|
import { JSONSchema7 } from "json-schema";
|
|
5
4
|
|
|
6
5
|
//#region src/components/tutorial/engine/tutorial-types.d.ts
|
|
7
6
|
type TutorialActionClick = {
|
|
8
|
-
type:
|
|
7
|
+
type: "click";
|
|
9
8
|
selector: string;
|
|
10
9
|
optional?: boolean;
|
|
11
10
|
};
|
|
12
11
|
type TutorialActionEditor = {
|
|
13
|
-
type:
|
|
12
|
+
type: "fill-editor";
|
|
14
13
|
content: Record<string, any>;
|
|
15
14
|
};
|
|
16
15
|
type TutorialAction = TutorialActionClick | TutorialActionEditor;
|
|
@@ -137,8 +136,8 @@ type CronNodeData = {
|
|
|
137
136
|
type BaseNodeProps = {
|
|
138
137
|
id: string;
|
|
139
138
|
nodeConfig?: {
|
|
140
|
-
sourceHandlePosition?:
|
|
141
|
-
targetHandlePosition?:
|
|
139
|
+
sourceHandlePosition?: "bottom" | "right";
|
|
140
|
+
targetHandlePosition?: "top" | "left";
|
|
142
141
|
};
|
|
143
142
|
};
|
|
144
143
|
type EventNodeProps = {
|
|
@@ -159,10 +158,10 @@ type Props$2 = PropsWithChildren<ApiNodeProps>;
|
|
|
159
158
|
declare const ApiNode: ({
|
|
160
159
|
data,
|
|
161
160
|
children
|
|
162
|
-
}: Props$2) =>
|
|
161
|
+
}: Props$2) => JSX.Element;
|
|
163
162
|
//#endregion
|
|
164
163
|
//#region src/publicComponents/base-node/base-handle.d.ts
|
|
165
|
-
type Props$1 = HandleProps & Omit<HTMLAttributes<HTMLDivElement>,
|
|
164
|
+
type Props$1 = HandleProps & Omit<HTMLAttributes<HTMLDivElement>, "id"> & {
|
|
166
165
|
isHidden?: boolean;
|
|
167
166
|
onTogglePosition?: () => void;
|
|
168
167
|
};
|
|
@@ -172,7 +171,7 @@ declare const BaseHandle: React$1.FC<Props$1>;
|
|
|
172
171
|
type Props = PropsWithChildren<{
|
|
173
172
|
title: string;
|
|
174
173
|
subtitle?: string;
|
|
175
|
-
variant:
|
|
174
|
+
variant: "event" | "api" | "noop" | "cron";
|
|
176
175
|
language?: string;
|
|
177
176
|
className?: string;
|
|
178
177
|
disableSourceHandle?: boolean;
|
|
@@ -187,5 +186,4 @@ declare const EventNode: React$1.FC<PropsWithChildren<EventNodeProps>>;
|
|
|
187
186
|
//#region src/publicComponents/noop-node.d.ts
|
|
188
187
|
declare const NoopNode: React$1.FC<PropsWithChildren<NoopNodeProps>>;
|
|
189
188
|
//#endregion
|
|
190
|
-
export { ApiNode, type ApiNodeData, type ApiNodeProps, BaseHandle, BaseNode, type BaseNodeProps, type CronNodeProps, EventNode, type EventNodeData, type EventNodeProps, NoopNode, type NoopNodeProps, Position, type TutorialStep, workbenchXPath };
|
|
191
|
-
//# sourceMappingURL=index.d.ts.map
|
|
189
|
+
export { ApiNode, type ApiNodeData, type ApiNodeProps, BaseHandle, BaseNode, type BaseNodeProps, type CronNodeProps, EventNode, type EventNodeData, type EventNodeProps, NoopNode, type NoopNodeProps, Position, type TutorialStep, workbenchXPath };
|