@w6w/embed 0.2.33 → 0.2.35
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/{CreateFunctionModal-glk2zg1r.js → CreateFunctionModal-CYNHJUGJ.js} +3 -3
- package/dist/{CreateFunctionModal-glk2zg1r.js.map → CreateFunctionModal-CYNHJUGJ.js.map} +1 -1
- package/dist/{DocumentFormModal-Cw85R4wk.js → DocumentFormModal-CLmdGx34.js} +2 -2
- package/dist/{DocumentFormModal-Cw85R4wk.js.map → DocumentFormModal-CLmdGx34.js.map} +1 -1
- package/dist/ImportSpecModal-BzEyiNWD.js +378 -0
- package/dist/ImportSpecModal-BzEyiNWD.js.map +1 -0
- package/dist/WorkflowEditor-CxTuK8_d.js +1272 -0
- package/dist/WorkflowEditor-CxTuK8_d.js.map +1 -0
- package/dist/apps-CyEszfIu.js +106 -0
- package/dist/apps-CyEszfIu.js.map +1 -0
- package/dist/callable-row-actions-BPBPflMn.js +56 -0
- package/dist/callable-row-actions-BPBPflMn.js.map +1 -0
- package/dist/callables-dLF2IcwA.js +317 -0
- package/dist/callables-dLF2IcwA.js.map +1 -0
- package/dist/chrome/HistoryView.d.ts +3 -0
- package/dist/chrome/TagEditor.d.ts +6 -1
- package/dist/chrome/workspace.d.ts +16 -0
- package/dist/documents-hgltn0xe.js +1017 -0
- package/dist/documents-hgltn0xe.js.map +1 -0
- package/dist/draft.mjs +1 -1
- package/dist/editor/WaitingForm.d.ts +19 -0
- package/dist/editor-apps-DsGrGKfe.js +178 -0
- package/dist/editor-apps-DsGrGKfe.js.map +1 -0
- package/dist/{editor-tools-Dn7TgCP4.js → editor-tools-Ct7YPPj8.js} +681 -783
- package/dist/editor-tools-Ct7YPPj8.js.map +1 -0
- package/dist/editor.mjs +1 -1
- package/dist/editors.mjs +18 -18
- package/dist/{endpoints-zOuwci2U.js → endpoints-DJxXRh-I.js} +12 -12
- package/dist/{endpoints-zOuwci2U.js.map → endpoints-DJxXRh-I.js.map} +1 -1
- package/dist/forms.mjs +1 -1
- package/dist/index.mjs +140 -115
- package/dist/index.mjs.map +1 -1
- package/dist/lib/callable-row-actions.d.ts +17 -0
- package/dist/lib/history-query.d.ts +22 -1
- package/dist/lib/index.d.ts +2 -0
- package/dist/lib/run-event-stream.d.ts +122 -0
- package/dist/lib/run-log-nodes.d.ts +43 -0
- package/dist/lib/tag-editor.d.ts +6 -0
- package/dist/lib/workflow-live-run.d.ts +7 -0
- package/dist/lib/workflow-validity.d.ts +7 -1
- package/dist/lib.mjs +52 -47
- package/dist/lists/CallableKindList.d.ts +12 -0
- package/dist/lists/CallableRowParts.d.ts +8 -1
- package/dist/lists/EndpointList.d.ts +3 -0
- package/dist/lists/FunctionList.d.ts +3 -0
- package/dist/lists/WorkflowList.d.ts +3 -0
- package/dist/lists.d.ts +1 -0
- package/dist/lists.mjs +1589 -1513
- package/dist/lists.mjs.map +1 -1
- package/dist/rail.mjs +1 -1
- package/dist/repos/callables.d.ts +25 -0
- package/dist/repos/documents.d.ts +9 -1
- package/dist/repos/history.d.ts +5 -1
- package/dist/repos/saved-file-names.d.ts +10 -0
- package/dist/repos/workflows.d.ts +19 -13
- package/dist/repos.mjs +338 -329
- package/dist/{setup-incomplete-BHs3Lpfy.js → setup-incomplete-6PAbN0EW.js} +50 -49
- package/dist/setup-incomplete-6PAbN0EW.js.map +1 -0
- package/dist/spec-import-BKyfhTYG.js +200 -0
- package/dist/spec-import-BKyfhTYG.js.map +1 -0
- package/dist/{use-callable-draft-w4tDTYcb.js → use-callable-draft-7HwfTuYQ.js} +3 -3
- package/dist/{use-callable-draft-w4tDTYcb.js.map → use-callable-draft-7HwfTuYQ.js.map} +1 -1
- package/package.json +3 -3
- package/src/styles.css +43 -0
- package/dist/ImportSpecModal-fU5RsVTa.js +0 -252
- package/dist/ImportSpecModal-fU5RsVTa.js.map +0 -1
- package/dist/WorkflowEditor-C7oudiIb.js +0 -1169
- package/dist/WorkflowEditor-C7oudiIb.js.map +0 -1
- package/dist/apps-FMcQfyL2.js +0 -92
- package/dist/apps-FMcQfyL2.js.map +0 -1
- package/dist/callable-record-Bhxim8C1.js +0 -14
- package/dist/callable-record-Bhxim8C1.js.map +0 -1
- package/dist/callables-B49tS2vv.js +0 -297
- package/dist/callables-B49tS2vv.js.map +0 -1
- package/dist/editor-apps-HEOclsxL.js +0 -152
- package/dist/editor-apps-HEOclsxL.js.map +0 -1
- package/dist/editor-tools-Dn7TgCP4.js.map +0 -1
- package/dist/setup-incomplete-BHs3Lpfy.js.map +0 -1
- package/dist/spec-import-CGPqUUjN.js +0 -272
- package/dist/spec-import-CGPqUUjN.js.map +0 -1
- package/dist/workflows-Dz8LMjnt.js +0 -626
- package/dist/workflows-Dz8LMjnt.js.map +0 -1
|
@@ -15,6 +15,17 @@ export interface CallableRowFacts {
|
|
|
15
15
|
metaExtra?: ReactNode;
|
|
16
16
|
/** "Copy …" menu items. */
|
|
17
17
|
copy?: readonly CopyItem[];
|
|
18
|
+
/** The stored key, when `keyText` shows something else (a keyless Workflow shows its name). */
|
|
19
|
+
key?: string | null;
|
|
20
|
+
/** The row's tags, which the menu's Rename… opens with. */
|
|
21
|
+
tags?: readonly string[];
|
|
22
|
+
}
|
|
23
|
+
/** Host routes the row menu offers beyond the row click itself. Each is optional. */
|
|
24
|
+
export interface CallableRowLinks {
|
|
25
|
+
/** A row's own page, for the menu's Open in new tab. Falls back to `getHref`. */
|
|
26
|
+
getNewTabHref?: (id: string) => string;
|
|
27
|
+
/** Set, the menu offers Run history, which calls it. */
|
|
28
|
+
onOpenHistory?: (id: string) => void;
|
|
18
29
|
}
|
|
19
30
|
/**
|
|
20
31
|
* The internal frame the three kind lists (`FunctionList`, `EndpointList`, `WorkflowList`) share:
|
|
@@ -44,6 +55,7 @@ export declare function CallableKindList<Row extends {
|
|
|
44
55
|
project: string | null;
|
|
45
56
|
onOpen?: (id: string, event?: React.MouseEvent<Element>) => void;
|
|
46
57
|
getHref?: (id: string) => string;
|
|
58
|
+
links?: CallableRowLinks;
|
|
47
59
|
onCreate: () => void;
|
|
48
60
|
creating?: boolean;
|
|
49
61
|
error?: string | null;
|
|
@@ -24,7 +24,7 @@ export interface CopyItem {
|
|
|
24
24
|
label: string;
|
|
25
25
|
value: string;
|
|
26
26
|
}
|
|
27
|
-
/** The row's three-dots menu, with its own
|
|
27
|
+
/** The row's three-dots menu, with its own dialogs for Rename, Archive and Delete. */
|
|
28
28
|
export declare function CallableRowMenu(props: {
|
|
29
29
|
kind: CallableKind;
|
|
30
30
|
id: string;
|
|
@@ -35,4 +35,11 @@ export declare function CallableRowMenu(props: {
|
|
|
35
35
|
siblings?: () => DuplicateSiblings;
|
|
36
36
|
/** Where Duplicate creates the copy — a Workflow is project-scoped, the others ignore it. */
|
|
37
37
|
project?: string | null;
|
|
38
|
+
/** The row's key and tags, which Rename… opens with. */
|
|
39
|
+
keyText?: string | null;
|
|
40
|
+
tags?: readonly string[];
|
|
41
|
+
/** The row's own page; set, the menu offers Open in new tab. */
|
|
42
|
+
href?: string;
|
|
43
|
+
/** Set, the menu offers Run history. */
|
|
44
|
+
onHistory?: () => void;
|
|
38
45
|
}): import("react").JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CallableListProps } from '@w6w/ui';
|
|
2
|
+
import { CallableRowLinks } from './CallableKindList.tsx';
|
|
2
3
|
export interface EndpointListProps {
|
|
3
4
|
/** Project for Import only (the Endpoints list itself is account-wide). Omitted: the provider's. */
|
|
4
5
|
project?: string | null;
|
|
@@ -6,6 +7,8 @@ export interface EndpointListProps {
|
|
|
6
7
|
onOpen?: (id: string, event?: React.MouseEvent<Element>) => void;
|
|
7
8
|
/** When set, each row is a real `<a href>`; a click still calls `onOpen`. */
|
|
8
9
|
getHref?: (id: string) => string;
|
|
10
|
+
/** Host routes for the row menu's Open in new tab and Run history. */
|
|
11
|
+
links?: CallableRowLinks;
|
|
9
12
|
/** An Endpoint was created from the list's New button; receives the SERVER's id. */
|
|
10
13
|
onCreated?: (id: string) => void;
|
|
11
14
|
slots?: CallableListProps["slots"];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CallableListProps } from '@w6w/ui';
|
|
2
|
+
import { CallableRowLinks } from './CallableKindList.tsx';
|
|
2
3
|
export interface FunctionListProps {
|
|
3
4
|
/** Project for Import only (the Functions list itself is account-wide). Omitted: the provider's. */
|
|
4
5
|
project?: string | null;
|
|
@@ -6,6 +7,8 @@ export interface FunctionListProps {
|
|
|
6
7
|
onOpen?: (id: string, event?: React.MouseEvent<Element>) => void;
|
|
7
8
|
/** When set, each row is a real `<a href>`; a click still calls `onOpen`. */
|
|
8
9
|
getHref?: (id: string) => string;
|
|
10
|
+
/** Host routes for the row menu's Open in new tab and Run history. */
|
|
11
|
+
links?: CallableRowLinks;
|
|
9
12
|
/** A Function was created from the list's New button; receives the SERVER's id. */
|
|
10
13
|
onCreated?: (id: string) => void;
|
|
11
14
|
slots?: CallableListProps["slots"];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CallableListProps } from '@w6w/ui';
|
|
2
|
+
import { CallableRowLinks } from './CallableKindList.tsx';
|
|
2
3
|
export interface WorkflowListProps {
|
|
3
4
|
/** The project whose Workflows are listed and created. Omitted: the provider's project. */
|
|
4
5
|
project?: string | null;
|
|
@@ -6,6 +7,8 @@ export interface WorkflowListProps {
|
|
|
6
7
|
onOpen?: (id: string, event?: React.MouseEvent<Element>) => void;
|
|
7
8
|
/** When set, each row is a real `<a href>`; a click still calls `onOpen`. */
|
|
8
9
|
getHref?: (id: string) => string;
|
|
10
|
+
/** Host routes for the row menu's Open in new tab and Run history. */
|
|
11
|
+
links?: CallableRowLinks;
|
|
9
12
|
/** A blank Workflow was created from the list's New button; receives the SERVER's id. */
|
|
10
13
|
onCreated?: (id: string) => void;
|
|
11
14
|
slots?: CallableListProps["slots"];
|
package/dist/lists.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { FunctionList } from './lists/FunctionList.tsx';
|
|
2
2
|
export type { FunctionListProps } from './lists/FunctionList.tsx';
|
|
3
|
+
export type { CallableRowLinks } from './lists/CallableKindList.tsx';
|
|
3
4
|
export { EndpointList } from './lists/EndpointList.tsx';
|
|
4
5
|
export type { EndpointListProps } from './lists/EndpointList.tsx';
|
|
5
6
|
export { WorkflowList } from './lists/WorkflowList.tsx';
|