@parallelworks/ui 0.37.0 → 0.39.0
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/README.md +1 -1
- package/dist/ai/components/ChatInput.js +8 -23
- package/dist/ai/components/ChatSidebar.js +7 -4
- package/dist/ai/components/chatDraft.d.ts +7 -0
- package/dist/ai/components/chatDraft.js +66 -0
- package/dist/ai/index.d.ts +1 -1
- package/dist/ai/index.js +2 -2
- package/dist/ai/ui/sidebar.d.ts +6 -0
- package/dist/ai/ui/sidebar.js +15 -1
- package/dist/editing.d.ts +2 -0
- package/dist/editor/Monaco.js +1 -1
- package/dist/editor/index.js +1 -1
- package/dist/editor/lintContext.js +15 -3
- package/dist/form/FieldWrapper.js +1 -0
- package/dist/form/Form.js +64 -23
- package/dist/form/Wizard/WizardContainer.js +66 -6
- package/dist/form/Wizard/WizardStepContent.js +23 -10
- package/dist/form/Wizard/wizardPages.d.ts +12 -0
- package/dist/form/Wizard/wizardPages.js +5 -0
- package/dist/form/formEditing.d.ts +25 -0
- package/dist/form/formEditing.js +20 -0
- package/dist/graph/DependencyGraph.d.ts +8 -1
- package/dist/graph/DependencyGraph.js +433 -204
- package/dist/graph/GraphEditor.d.ts +27 -0
- package/dist/graph/GraphEditor.js +1543 -0
- package/dist/graph/GraphEditorDialogs.d.ts +87 -0
- package/dist/graph/GraphEditorDialogs.js +1808 -0
- package/dist/graph/InputDialog.js +1568 -54
- package/dist/graph/InputsEditor.d.ts +12 -0
- package/dist/graph/InputsEditor.js +1594 -0
- package/dist/graph/JobSummary.d.ts +3 -0
- package/dist/graph/JobSummary.js +34 -21
- package/dist/graph/MatrixGroup.d.ts +2 -1
- package/dist/graph/MatrixGroup.js +10 -3
- package/dist/graph/ShortcutsButton.js +56 -0
- package/dist/graph/SuggestionInput.js +29 -0
- package/dist/graph/WorkflowSettingsDialog.d.ts +21 -0
- package/dist/graph/WorkflowSettingsDialog.js +670 -0
- package/dist/graph/editorApi.js +8 -0
- package/dist/graph/editorChrome.js +75 -0
- package/dist/graph/editorFields.js +535 -0
- package/dist/graph/editorPrimitives.js +95 -4
- package/dist/graph/editorRows.d.ts +58 -0
- package/dist/graph/editorRows.js +460 -0
- package/dist/graph/editorStrings.d.ts +1 -0
- package/dist/graph/editorStrings.js +10 -1
- package/dist/graph/expressionRefs.js +39 -0
- package/dist/graph/fieldProblems.js +111 -0
- package/dist/graph/graphEditorState.d.ts +191 -0
- package/dist/graph/graphEditorState.js +74 -0
- package/dist/graph/index.d.ts +4 -0
- package/dist/graph/index.js +6 -2
- package/dist/graph/inputLayout.js +337 -0
- package/dist/graph/inputPages.d.ts +33 -0
- package/dist/graph/inputPages.js +186 -0
- package/dist/graph/inputRefs.js +388 -0
- package/dist/graph/inputRows.d.ts +43 -0
- package/dist/graph/inputRows.js +65 -0
- package/dist/graph/refusalText.js +13 -0
- package/dist/graph/settingsViews.js +62 -0
- package/dist/graph/stepWith.d.ts +38 -0
- package/dist/graph/stepWith.js +536 -0
- package/dist/styles.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { GraphLayout } from '../editing.js';
|
|
3
|
+
import { type DependencyGraphEditor } from './editorApi.js';
|
|
4
|
+
import { type GraphEditorApi } from './graphEditorState.js';
|
|
5
|
+
import type { WorkflowJob } from './types.js';
|
|
6
|
+
/**
|
|
7
|
+
* Editor state, handlers and overlays for a DependencyGraph given `editor`.
|
|
8
|
+
* `yamlJobs` are the jobs as written, before previews expand matrices.
|
|
9
|
+
*/
|
|
10
|
+
declare function useGraphEditorState({ editor, jobs, yamlJobs, inputs, workflow, layout, container, }: {
|
|
11
|
+
editor: DependencyGraphEditor;
|
|
12
|
+
jobs: Record<string, WorkflowJob>;
|
|
13
|
+
yamlJobs: Record<string, unknown> | undefined;
|
|
14
|
+
inputs: Record<string, unknown> | undefined;
|
|
15
|
+
workflow: Record<string, unknown> | undefined;
|
|
16
|
+
layout: GraphLayout | undefined;
|
|
17
|
+
container: HTMLDivElement | null;
|
|
18
|
+
}): {
|
|
19
|
+
api: GraphEditorApi;
|
|
20
|
+
overlays: ReactNode;
|
|
21
|
+
};
|
|
22
|
+
/** The editor's state and overlays for a DependencyGraph, loaded only where a graph is edited. */
|
|
23
|
+
export default function GraphEditorOverlays({ onApi, ...inputs }: Parameters<typeof useGraphEditorState>[0] & {
|
|
24
|
+
/** Hands the graph the editor's api once it's ready, and null when it goes. */
|
|
25
|
+
onApi: (api: GraphEditorApi | null) => void;
|
|
26
|
+
}): ReactNode;
|
|
27
|
+
export {};
|