@flowdrop/flowdrop 2.12.0 → 2.14.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/CHANGELOG.md +54 -0
- package/dist/commands/executor.js +58 -8
- package/dist/commands/parser.js +3 -3
- package/dist/commands/types.d.ts +2 -0
- package/dist/components/App.svelte +11 -1
- package/dist/components/App.svelte.d.ts +9 -1
- package/dist/components/Button.svelte +7 -7
- package/dist/components/Button.svelte.d.ts +10 -0
- package/dist/components/CanvasBanner.svelte +19 -6
- package/dist/components/CanvasBanner.svelte.d.ts +15 -3
- package/dist/components/CanvasContextMenu.svelte +9 -9
- package/dist/components/CanvasContextMenu.svelte.d.ts +10 -0
- package/dist/components/CanvasToolbar.svelte +8 -7
- package/dist/components/CanvasToolbar.svelte.d.ts +10 -0
- package/dist/components/CanvasZoomControls.svelte +10 -9
- package/dist/components/CanvasZoomControls.svelte.d.ts +13 -0
- package/dist/components/ConfigForm.svelte +9 -17
- package/dist/components/ConfigForm.svelte.d.ts +10 -0
- package/dist/components/ConfigPanel.svelte +9 -5
- package/dist/components/ConfigPanel.svelte.d.ts +10 -0
- package/dist/components/EditorStatusBar.svelte +6 -5
- package/dist/components/EditorStatusBar.svelte.d.ts +7 -0
- package/dist/components/FlowDropEdge.svelte +15 -12
- package/dist/components/FlowDropEdge.svelte.d.ts +16 -0
- package/dist/components/InterfaceTag.svelte +13 -15
- package/dist/components/InterfaceTag.svelte.d.ts +19 -0
- package/dist/components/LoadingSpinner.svelte +8 -2
- package/dist/components/LoadingSpinner.svelte.d.ts +9 -0
- package/dist/components/Logo.svelte +11 -0
- package/dist/components/Logo.svelte.d.ts +9 -0
- package/dist/components/LogoWordmark.svelte +8 -3
- package/dist/components/LogoWordmark.svelte.d.ts +9 -0
- package/dist/components/LoopbackLanes.svelte +12 -6
- package/dist/components/LoopbackLanes.svelte.d.ts +13 -0
- package/dist/components/MarkdownDisplay.svelte +10 -3
- package/dist/components/MarkdownDisplay.svelte.d.ts +11 -0
- package/dist/components/Navbar.svelte +13 -5
- package/dist/components/Navbar.svelte.d.ts +14 -0
- package/dist/components/NodeInspector.svelte +7 -8
- package/dist/components/NodeInspector.svelte.d.ts +10 -0
- package/dist/components/NodeSidebar.svelte +9 -3
- package/dist/components/NodeSidebar.svelte.d.ts +10 -0
- package/dist/components/NodeStatusOverlay.svelte +30 -19
- package/dist/components/NodeStatusOverlay.svelte.d.ts +19 -0
- package/dist/components/NodeSwapPicker.svelte +1 -1
- package/dist/components/RunBar.svelte +10 -13
- package/dist/components/RunBar.svelte.d.ts +15 -0
- package/dist/components/RunsMenu.svelte +14 -13
- package/dist/components/RunsMenu.svelte.d.ts +15 -0
- package/dist/components/SchemaForm.svelte +10 -13
- package/dist/components/SchemaForm.svelte.d.ts +51 -0
- package/dist/components/SettingsPanel.svelte +5 -5
- package/dist/components/StatusIcon.svelte +14 -3
- package/dist/components/StatusIcon.svelte.d.ts +15 -0
- package/dist/components/StatusLabel.svelte +10 -2
- package/dist/components/StatusLabel.svelte.d.ts +11 -0
- package/dist/components/ThemeToggle.svelte +8 -5
- package/dist/components/ThemeToggle.svelte.d.ts +10 -0
- package/dist/components/UniversalNode.svelte +13 -5
- package/dist/components/UniversalNode.svelte.d.ts +15 -0
- package/dist/components/WorkflowInterfaceEntryCard.svelte +1 -1
- package/dist/components/WorkflowInterfaceEntryComposer.svelte +1 -2
- package/dist/components/ZoomTier.svelte +13 -10
- package/dist/components/ZoomTier.svelte.d.ts +14 -0
- package/dist/components/console/CommandConsole.svelte +9 -3
- package/dist/components/console/CommandConsole.svelte.d.ts +10 -0
- package/dist/components/console/ConsoleAutocomplete.svelte +4 -4
- package/dist/components/console/ConsoleAutocomplete.svelte.d.ts +5 -0
- package/dist/components/console/ConsoleInput.svelte +6 -4
- package/dist/components/console/ConsoleInput.svelte.d.ts +7 -0
- package/dist/components/console/ConsoleOutput.svelte +5 -3
- package/dist/components/console/ConsoleOutput.svelte.d.ts +6 -0
- package/dist/components/console/ConsoleStrip.svelte +9 -5
- package/dist/components/console/ConsoleStrip.svelte.d.ts +10 -0
- package/dist/components/form/FieldFactory.svelte +6 -2
- package/dist/components/form/FieldFactory.svelte.d.ts +46 -0
- package/dist/components/form/FormArray.svelte +9 -16
- package/dist/components/form/FormArray.svelte.d.ts +10 -0
- package/dist/components/form/FormArrayRows.svelte +8 -8
- package/dist/components/form/FormArrayRows.svelte.d.ts +11 -0
- package/dist/components/form/FormAutocomplete.svelte +6 -3
- package/dist/components/form/FormAutocomplete.svelte.d.ts +23 -0
- package/dist/components/form/FormCheckboxGroup.svelte +5 -5
- package/dist/components/form/FormCheckboxGroup.svelte.d.ts +6 -0
- package/dist/components/form/FormCodeEditor.svelte +8 -13
- package/dist/components/form/FormCodeEditor.svelte.d.ts +9 -0
- package/dist/components/form/FormField.svelte +7 -8
- package/dist/components/form/FormField.svelte.d.ts +10 -0
- package/dist/components/form/FormFieldLight.svelte +6 -5
- package/dist/components/form/FormFieldLight.svelte.d.ts +8 -0
- package/dist/components/form/FormFieldWrapper.svelte +8 -8
- package/dist/components/form/FormFieldWrapper.svelte.d.ts +9 -0
- package/dist/components/form/FormFieldset.svelte +6 -12
- package/dist/components/form/FormFieldset.svelte.d.ts +7 -0
- package/dist/components/form/FormMarkdownEditor.svelte +8 -15
- package/dist/components/form/FormMarkdownEditor.svelte.d.ts +9 -0
- package/dist/components/form/FormNumberField.svelte +5 -7
- package/dist/components/form/FormNumberField.svelte.d.ts +6 -0
- package/dist/components/form/FormPorts.svelte +133 -27
- package/dist/components/form/FormPorts.svelte.d.ts +19 -0
- package/dist/components/form/FormRangeField.svelte +5 -9
- package/dist/components/form/FormRangeField.svelte.d.ts +6 -0
- package/dist/components/form/FormSelect.svelte +5 -7
- package/dist/components/form/FormSelect.svelte.d.ts +6 -0
- package/dist/components/form/FormTemplateEditor.svelte +8 -16
- package/dist/components/form/FormTemplateEditor.svelte.d.ts +9 -0
- package/dist/components/form/FormTextField.svelte +5 -7
- package/dist/components/form/FormTextField.svelte.d.ts +6 -0
- package/dist/components/form/FormTextarea.svelte +5 -7
- package/dist/components/form/FormTextarea.svelte.d.ts +6 -0
- package/dist/components/form/FormToggle.svelte +6 -8
- package/dist/components/form/FormToggle.svelte.d.ts +7 -0
- package/dist/components/form/FormUISchemaRenderer.svelte +5 -9
- package/dist/components/form/FormUISchemaRenderer.svelte.d.ts +7 -0
- package/dist/components/interrupt/ChoicePrompt.svelte +6 -6
- package/dist/components/interrupt/ChoicePrompt.svelte.d.ts +7 -0
- package/dist/components/interrupt/ConfirmationPrompt.svelte +6 -5
- package/dist/components/interrupt/ConfirmationPrompt.svelte.d.ts +7 -0
- package/dist/components/interrupt/FormPrompt.svelte +6 -6
- package/dist/components/interrupt/FormPrompt.svelte.d.ts +7 -0
- package/dist/components/interrupt/InterruptBubble.svelte +10 -9
- package/dist/components/interrupt/InterruptBubble.svelte.d.ts +11 -0
- package/dist/components/interrupt/ReviewPrompt.svelte +5 -6
- package/dist/components/interrupt/ReviewPrompt.svelte.d.ts +7 -0
- package/dist/components/interrupt/TextInputPrompt.svelte +6 -6
- package/dist/components/interrupt/TextInputPrompt.svelte.d.ts +7 -0
- package/dist/components/nodes/AtomNode.svelte +31 -6
- package/dist/components/nodes/AtomNode.svelte.d.ts +15 -0
- package/dist/components/nodes/CaptionNode.svelte +50 -7
- package/dist/components/nodes/CaptionNode.svelte.d.ts +13 -0
- package/dist/components/nodes/GatewayNode.svelte +18 -11
- package/dist/components/nodes/GatewayNode.svelte.d.ts +21 -0
- package/dist/components/nodes/IdeaNode.svelte +47 -6
- package/dist/components/nodes/IdeaNode.svelte.d.ts +17 -0
- package/dist/components/nodes/NodeCard.svelte +26 -18
- package/dist/components/nodes/NodeCard.svelte.d.ts +20 -0
- package/dist/components/nodes/NodeConfigButton.svelte +15 -2
- package/dist/components/nodes/NodeConfigButton.svelte.d.ts +11 -0
- package/dist/components/nodes/NodeProblemMark.svelte +15 -10
- package/dist/components/nodes/NodeProblemMark.svelte.d.ts +16 -0
- package/dist/components/nodes/NodeTip.svelte +10 -7
- package/dist/components/nodes/NodeTip.svelte.d.ts +13 -0
- package/dist/components/nodes/NotesNode.svelte +30 -0
- package/dist/components/nodes/NotesNode.svelte.d.ts +14 -0
- package/dist/components/nodes/SimpleNode.svelte +35 -8
- package/dist/components/nodes/SimpleNode.svelte.d.ts +17 -0
- package/dist/components/nodes/SquareNode.svelte +38 -8
- package/dist/components/nodes/SquareNode.svelte.d.ts +17 -0
- package/dist/components/nodes/TerminalNode.svelte +24 -10
- package/dist/components/nodes/TerminalNode.svelte.d.ts +17 -0
- package/dist/components/nodes/ToolNode.svelte +14 -5
- package/dist/components/nodes/ToolNode.svelte.d.ts +15 -0
- package/dist/components/nodes/WorkflowNode.svelte +18 -15
- package/dist/components/nodes/WorkflowNode.svelte.d.ts +21 -0
- package/dist/components/playground/ChatBubble.svelte +4 -3
- package/dist/components/playground/ChatBubble.svelte.d.ts +5 -0
- package/dist/components/playground/ChatInput.svelte +11 -6
- package/dist/components/playground/ChatInput.svelte.d.ts +14 -0
- package/dist/components/playground/ChatPanel.svelte +15 -7
- package/dist/components/playground/ChatPanel.svelte.d.ts +17 -0
- package/dist/components/playground/ControlPanel.svelte +26 -9
- package/dist/components/playground/ControlPanel.svelte.d.ts +29 -0
- package/dist/components/playground/DockedPlayground.svelte +15 -11
- package/dist/components/playground/DockedPlayground.svelte.d.ts +16 -0
- package/dist/components/playground/ExecutionConsole.svelte +10 -5
- package/dist/components/playground/ExecutionConsole.svelte.d.ts +12 -0
- package/dist/components/playground/ExecutionList.svelte +13 -0
- package/dist/components/playground/ExecutionList.svelte.d.ts +11 -0
- package/dist/components/playground/ExecutionLogs.svelte +6 -9
- package/dist/components/playground/ExecutionLogs.svelte.d.ts +7 -0
- package/dist/components/playground/HeaderMenu.svelte +6 -8
- package/dist/components/playground/HeaderMenu.svelte.d.ts +9 -0
- package/dist/components/playground/HierarchyTrail.svelte +6 -6
- package/dist/components/playground/HierarchyTrail.svelte.d.ts +8 -0
- package/dist/components/playground/InputCollector.svelte +6 -5
- package/dist/components/playground/InputCollector.svelte.d.ts +7 -0
- package/dist/components/playground/InputFields.svelte +8 -12
- package/dist/components/playground/InputFields.svelte.d.ts +9 -0
- package/dist/components/playground/InterfaceInputForm.svelte +6 -13
- package/dist/components/playground/InterfaceInputForm.svelte.d.ts +9 -0
- package/dist/components/playground/InterfaceJsonInput.svelte +6 -5
- package/dist/components/playground/InterfaceJsonInput.svelte.d.ts +8 -0
- package/dist/components/playground/LogRow.svelte +4 -5
- package/dist/components/playground/LogRow.svelte.d.ts +6 -0
- package/dist/components/playground/MessageBubble.svelte +13 -7
- package/dist/components/playground/MessageBubble.svelte.d.ts +15 -0
- package/dist/components/playground/MessageCard.svelte +5 -2
- package/dist/components/playground/MessageCard.svelte.d.ts +6 -0
- package/dist/components/playground/MessageMarkdown.svelte +8 -9
- package/dist/components/playground/MessageMarkdown.svelte.d.ts +11 -0
- package/dist/components/playground/MessageNotice.svelte +7 -0
- package/dist/components/playground/MessageNotice.svelte.d.ts +5 -0
- package/dist/components/playground/MessageStream.svelte +8 -6
- package/dist/components/playground/MessageStream.svelte.d.ts +11 -0
- package/dist/components/playground/MessageTagChip.svelte +7 -7
- package/dist/components/playground/MessageTagChip.svelte.d.ts +10 -0
- package/dist/components/playground/MessageTagStrip.svelte +6 -3
- package/dist/components/playground/MessageTagStrip.svelte.d.ts +8 -0
- package/dist/components/playground/OriginBadge.svelte +7 -4
- package/dist/components/playground/OriginBadge.svelte.d.ts +8 -0
- package/dist/components/playground/PipelineKanbanView.svelte +14 -0
- package/dist/components/playground/PipelineKanbanView.svelte.d.ts +12 -0
- package/dist/components/playground/PipelinePanel.svelte +14 -0
- package/dist/components/playground/PipelinePanel.svelte.d.ts +12 -0
- package/dist/components/playground/PipelineTableView.svelte +14 -0
- package/dist/components/playground/PipelineTableView.svelte.d.ts +12 -0
- package/dist/components/playground/Playground.svelte +17 -11
- package/dist/components/playground/Playground.svelte.d.ts +20 -0
- package/dist/components/playground/PlaygroundApp.svelte +24 -10
- package/dist/components/playground/PlaygroundApp.svelte.d.ts +26 -0
- package/dist/components/playground/PlaygroundHeader.svelte +8 -12
- package/dist/components/playground/PlaygroundHeader.svelte.d.ts +11 -0
- package/dist/components/playground/PlaygroundModal.svelte +6 -8
- package/dist/components/playground/PlaygroundModal.svelte.d.ts +7 -0
- package/dist/components/playground/PlaygroundStudio.svelte +9 -0
- package/dist/components/playground/PlaygroundStudio.svelte.d.ts +7 -0
- package/dist/components/playground/PlaygroundSurface.svelte +19 -14
- package/dist/components/playground/PlaygroundSurface.svelte.d.ts +20 -0
- package/dist/components/playground/SessionManager.svelte +6 -5
- package/dist/components/playground/SessionManager.svelte.d.ts +7 -0
- package/dist/components/playground/StepsSummary.svelte +8 -9
- package/dist/components/playground/StepsSummary.svelte.d.ts +10 -0
- package/dist/components/primitives/Button.svelte +15 -7
- package/dist/components/primitives/Button.svelte.d.ts +18 -1
- package/dist/components/primitives/Card.svelte +8 -6
- package/dist/components/primitives/Card.svelte.d.ts +11 -0
- package/dist/components/primitives/Checkbox.svelte +8 -5
- package/dist/components/primitives/Checkbox.svelte.d.ts +11 -0
- package/dist/components/primitives/Chip.svelte +8 -4
- package/dist/components/primitives/Chip.svelte.d.ts +11 -0
- package/dist/components/primitives/Combobox.svelte +27 -18
- package/dist/components/primitives/Combobox.svelte.d.ts +33 -0
- package/dist/components/primitives/Composer.svelte +15 -16
- package/dist/components/primitives/Composer.svelte.d.ts +20 -0
- package/dist/components/primitives/EmptyState.svelte +9 -3
- package/dist/components/primitives/EmptyState.svelte.d.ts +11 -0
- package/dist/components/primitives/Field.svelte +12 -9
- package/dist/components/primitives/Field.svelte.d.ts +16 -0
- package/dist/components/primitives/IconButton.svelte +10 -5
- package/dist/components/primitives/IconButton.svelte.d.ts +13 -0
- package/dist/components/primitives/Menu.svelte +15 -14
- package/dist/components/primitives/Menu.svelte.d.ts +20 -0
- package/dist/components/primitives/Notice.svelte +11 -8
- package/dist/components/primitives/Notice.svelte.d.ts +14 -0
- package/dist/components/primitives/PanelHeader.svelte +10 -7
- package/dist/components/primitives/PanelHeader.svelte.d.ts +13 -0
- package/dist/components/primitives/Segmented.svelte +11 -4
- package/dist/components/primitives/Segmented.svelte.d.ts +14 -0
- package/dist/components/primitives/Select.svelte +13 -16
- package/dist/components/primitives/Select.svelte.d.ts +18 -0
- package/dist/components/primitives/StatusPill.svelte +11 -8
- package/dist/components/primitives/StatusPill.svelte.d.ts +15 -0
- package/dist/components/primitives/Switch.svelte +9 -6
- package/dist/components/primitives/Switch.svelte.d.ts +12 -0
- package/dist/components/primitives/Tabs.svelte +16 -15
- package/dist/components/primitives/Tabs.svelte.d.ts +22 -0
- package/dist/components/primitives/Toolbar.svelte +14 -13
- package/dist/components/primitives/Toolbar.svelte.d.ts +18 -0
- package/dist/components/primitives/ToolbarSeparator.svelte +5 -4
- package/dist/components/primitives/ToolbarSeparator.svelte.d.ts +7 -0
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.js +1 -1
- package/dist/editor/index.d.ts +1 -0
- package/dist/layout/index.d.ts +1 -1
- package/dist/layout/index.js +1 -1
- package/dist/layout/toWorkflow.d.ts +8 -7
- package/dist/layout/toWorkflow.js +20 -40
- package/dist/messages/defaults.d.ts +24 -0
- package/dist/messages/defaults.js +15 -0
- package/dist/playground/index.d.ts +1 -1
- package/dist/skins/graphite.d.ts +1 -1
- package/dist/skins/graphite.js +1 -1
- package/dist/stores/settingsStore.svelte.js +3 -0
- package/dist/stores/workflowStore.svelte.js +24 -7
- package/dist/styles/base.css +2 -126
- package/dist/styles/tokenAliases.js +1 -0
- package/dist/styles/tokens.css +9 -5
- package/dist/svelte-app.d.ts +10 -1
- package/dist/svelte-app.js +2 -1
- package/dist/themes/classic.d.ts +9 -0
- package/dist/themes/classic.js +16 -0
- package/dist/themes/index.d.ts +7 -2
- package/dist/themes/index.js +20 -10
- package/dist/types/index.d.ts +7 -0
- package/dist/types/playground.d.ts +9 -0
- package/dist/types/settings.d.ts +6 -2
- package/dist/types/theme.d.ts +6 -2
- package/dist/utils/playgroundChat.d.ts +10 -0
- package/dist/utils/playgroundChat.js +25 -0
- package/dist/utils/portExposure.d.ts +24 -1
- package/dist/utils/portExposure.js +46 -13
- package/dist/utils/portUtils.d.ts +5 -1
- package/dist/utils/portUtils.js +15 -4
- package/package.json +2 -1
- package/dist/components/IconButton.svelte +0 -80
- package/dist/components/IconButton.svelte.d.ts +0 -30
- package/dist/themes/default.d.ts +0 -2
- package/dist/themes/default.js +0 -9
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
|
|
2
|
+
@component
|
|
3
|
+
A wrapping row of message tags.
|
|
4
|
+
The user sees it under a message that carries tags, and nothing when there are none. It holds the layout that the message types used to copy each.
|
|
3
5
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
+
**Use it for** all the tags of one message.
|
|
7
|
+
**Not for** a single tag; use `MessageTagChip` instead.
|
|
6
8
|
-->
|
|
7
9
|
|
|
8
10
|
<script lang="ts">
|
|
@@ -10,6 +12,7 @@
|
|
|
10
12
|
import MessageTagChip from './MessageTagChip.svelte';
|
|
11
13
|
|
|
12
14
|
interface Props {
|
|
15
|
+
/** The server-sent tags to show, in order. */
|
|
13
16
|
tags: MessageTag[];
|
|
14
17
|
}
|
|
15
18
|
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import type { MessageTag } from '../../types/playground.js';
|
|
2
2
|
interface Props {
|
|
3
|
+
/** The server-sent tags to show, in order. */
|
|
3
4
|
tags: MessageTag[];
|
|
4
5
|
}
|
|
6
|
+
/**
|
|
7
|
+
* A wrapping row of message tags.
|
|
8
|
+
* The user sees it under a message that carries tags, and nothing when there are none. It holds the layout that the message types used to copy each.
|
|
9
|
+
*
|
|
10
|
+
* **Use it for** all the tags of one message.
|
|
11
|
+
* **Not for** a single tag; use `MessageTagChip` instead.
|
|
12
|
+
*/
|
|
5
13
|
declare const MessageTagStrip: import("svelte").Component<Props, {}, "">;
|
|
6
14
|
type MessageTagStrip = ReturnType<typeof MessageTagStrip>;
|
|
7
15
|
export default MessageTagStrip;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
|
|
3
|
-
(engine, playground
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
@component
|
|
3
|
+
A small chip that names which part posted a message (engine, playground or interrupt).
|
|
4
|
+
The user sees it beside a message's name. It shows nothing for user or workflow messages, or when the server sends no `origin`. Colours follow the surrounding text, so it reads on any bubble background.
|
|
5
|
+
|
|
6
|
+
**Use it for** telling system sources apart in the feed.
|
|
7
|
+
**Not for** the message text or tags; use `MessageMarkdown` or `MessageTagStrip` instead.
|
|
6
8
|
-->
|
|
7
9
|
|
|
8
10
|
<script lang="ts">
|
|
@@ -11,6 +13,7 @@
|
|
|
11
13
|
import { m } from '../../messages/index.js';
|
|
12
14
|
|
|
13
15
|
interface Props {
|
|
16
|
+
/** The message whose `origin` to show. */
|
|
14
17
|
message: Pick<PlaygroundMessage, 'origin'>;
|
|
15
18
|
}
|
|
16
19
|
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import type { PlaygroundMessage } from '../../types/playground.js';
|
|
2
2
|
interface Props {
|
|
3
|
+
/** The message whose `origin` to show. */
|
|
3
4
|
message: Pick<PlaygroundMessage, 'origin'>;
|
|
4
5
|
}
|
|
6
|
+
/**
|
|
7
|
+
* A small chip that names which part posted a message (engine, playground or interrupt).
|
|
8
|
+
* The user sees it beside a message's name. It shows nothing for user or workflow messages, or when the server sends no `origin`. Colours follow the surrounding text, so it reads on any bubble background.
|
|
9
|
+
*
|
|
10
|
+
* **Use it for** telling system sources apart in the feed.
|
|
11
|
+
* **Not for** the message text or tags; use `MessageMarkdown` or `MessageTagStrip` instead.
|
|
12
|
+
*/
|
|
5
13
|
declare const OriginBadge: import("svelte").Component<Props, {}, "">;
|
|
6
14
|
type OriginBadge = ReturnType<typeof OriginBadge>;
|
|
7
15
|
export default OriginBadge;
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
@component
|
|
3
|
+
**Legacy.** The Kanban view of a run, shown by `PipelinePanel`, which only the deprecated standalone Playground renders.
|
|
4
|
+
The user sees nodes as cards in columns by status (pending, running, done and so on), with time and error details, and the cards refresh as the run goes.
|
|
5
|
+
|
|
6
|
+
**Use it for** a status-board view of a run inside `PipelinePanel`.
|
|
7
|
+
**Not for** the editor's Test mode; the docked Playground shows the run on the canvas and in `StepsSummary` instead.
|
|
8
|
+
-->
|
|
9
|
+
|
|
1
10
|
<script module lang="ts">
|
|
2
11
|
import type { KanbanColumnDef } from '../../types/index.js';
|
|
3
12
|
|
|
@@ -49,10 +58,15 @@
|
|
|
49
58
|
import type { AuthProvider } from '../../types/auth.js';
|
|
50
59
|
|
|
51
60
|
interface Props {
|
|
61
|
+
/** Id of the run to show. */
|
|
52
62
|
pipelineId: string;
|
|
63
|
+
/** The workflow the run belongs to, used for node names. */
|
|
53
64
|
workflow: Workflow;
|
|
65
|
+
/** API endpoints used to load the run. Must stay stable. */
|
|
54
66
|
endpointConfig: EndpointConfig;
|
|
67
|
+
/** Auth provider for the API requests. Default: none. */
|
|
55
68
|
authProvider?: AuthProvider;
|
|
69
|
+
/** Bump this number to reload the run soon after. Default: 0. */
|
|
56
70
|
refreshTrigger?: number;
|
|
57
71
|
}
|
|
58
72
|
|
|
@@ -2,12 +2,24 @@ import type { Workflow } from '../../types/index.js';
|
|
|
2
2
|
import type { EndpointConfig } from '../../config/endpoints.js';
|
|
3
3
|
import type { AuthProvider } from '../../types/auth.js';
|
|
4
4
|
interface Props {
|
|
5
|
+
/** Id of the run to show. */
|
|
5
6
|
pipelineId: string;
|
|
7
|
+
/** The workflow the run belongs to, used for node names. */
|
|
6
8
|
workflow: Workflow;
|
|
9
|
+
/** API endpoints used to load the run. Must stay stable. */
|
|
7
10
|
endpointConfig: EndpointConfig;
|
|
11
|
+
/** Auth provider for the API requests. Default: none. */
|
|
8
12
|
authProvider?: AuthProvider;
|
|
13
|
+
/** Bump this number to reload the run soon after. Default: 0. */
|
|
9
14
|
refreshTrigger?: number;
|
|
10
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* **Legacy.** The Kanban view of a run, shown by `PipelinePanel`, which only the deprecated standalone Playground renders.
|
|
18
|
+
* The user sees nodes as cards in columns by status (pending, running, done and so on), with time and error details, and the cards refresh as the run goes.
|
|
19
|
+
*
|
|
20
|
+
* **Use it for** a status-board view of a run inside `PipelinePanel`.
|
|
21
|
+
* **Not for** the editor's Test mode; the docked Playground shows the run on the canvas and in `StepsSummary` instead.
|
|
22
|
+
*/
|
|
11
23
|
declare const PipelineKanbanView: import("svelte").Component<Props, {}, "">;
|
|
12
24
|
type PipelineKanbanView = ReturnType<typeof PipelineKanbanView>;
|
|
13
25
|
export default PipelineKanbanView;
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
@component
|
|
3
|
+
**Legacy.** The side panel that shows a run's pipeline. Only the deprecated standalone Playground (`PlaygroundStudio`) renders it; Test mode in the editor does not.
|
|
4
|
+
The user sees a Pipeline header with view buttons (graph, Kanban, table, plus any extras), a run switcher chip, and the chosen view. The view choice is remembered per instance.
|
|
5
|
+
|
|
6
|
+
**Use it for** inspecting one run in a standalone host app.
|
|
7
|
+
**Not for** the editor; use the docked Playground and `StepsSummary` instead.
|
|
8
|
+
-->
|
|
9
|
+
|
|
1
10
|
<script module lang="ts">
|
|
2
11
|
const VIEW_MODE_KEY_BASE = 'fd-pipeline-view-mode';
|
|
3
12
|
const BUILTIN_VIEWS = ['graph', 'kanban', 'table'] as const;
|
|
@@ -20,10 +29,15 @@
|
|
|
20
29
|
import type { PlaygroundExecution } from '../../types/playground.js';
|
|
21
30
|
|
|
22
31
|
interface Props {
|
|
32
|
+
/** Id of the run to show, or null for none yet. */
|
|
23
33
|
pipelineId: string | null;
|
|
34
|
+
/** The workflow the run belongs to. */
|
|
24
35
|
workflow: Workflow;
|
|
36
|
+
/** API endpoints used to load the run. */
|
|
25
37
|
endpointConfig: EndpointConfig;
|
|
38
|
+
/** Auth provider for the API requests. Default: none. */
|
|
26
39
|
authProvider?: AuthProvider;
|
|
40
|
+
/** True when the user pinned one run; false when the panel follows the latest. */
|
|
27
41
|
isPinned: boolean;
|
|
28
42
|
/** All executions for the current session, oldest-first */
|
|
29
43
|
executions?: PlaygroundExecution[];
|
|
@@ -3,10 +3,15 @@ import type { EndpointConfig } from '../../config/endpoints.js';
|
|
|
3
3
|
import type { AuthProvider } from '../../types/auth.js';
|
|
4
4
|
import type { PlaygroundExecution } from '../../types/playground.js';
|
|
5
5
|
interface Props {
|
|
6
|
+
/** Id of the run to show, or null for none yet. */
|
|
6
7
|
pipelineId: string | null;
|
|
8
|
+
/** The workflow the run belongs to. */
|
|
7
9
|
workflow: Workflow;
|
|
10
|
+
/** API endpoints used to load the run. */
|
|
8
11
|
endpointConfig: EndpointConfig;
|
|
12
|
+
/** Auth provider for the API requests. Default: none. */
|
|
9
13
|
authProvider?: AuthProvider;
|
|
14
|
+
/** True when the user pinned one run; false when the panel follows the latest. */
|
|
10
15
|
isPinned: boolean;
|
|
11
16
|
/** All executions for the current session, oldest-first */
|
|
12
17
|
executions?: PlaygroundExecution[];
|
|
@@ -19,6 +24,13 @@ interface Props {
|
|
|
19
24
|
/** Additional views injected by the library consumer */
|
|
20
25
|
extraViews?: PipelineViewDef[];
|
|
21
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* **Legacy.** The side panel that shows a run's pipeline. Only the deprecated standalone Playground (`PlaygroundStudio`) renders it; Test mode in the editor does not.
|
|
29
|
+
* The user sees a Pipeline header with view buttons (graph, Kanban, table, plus any extras), a run switcher chip, and the chosen view. The view choice is remembered per instance.
|
|
30
|
+
*
|
|
31
|
+
* **Use it for** inspecting one run in a standalone host app.
|
|
32
|
+
* **Not for** the editor; use the docked Playground and `StepsSummary` instead.
|
|
33
|
+
*/
|
|
22
34
|
declare const PipelinePanel: import("svelte").Component<Props, {}, "">;
|
|
23
35
|
type PipelinePanel = ReturnType<typeof PipelinePanel>;
|
|
24
36
|
export default PipelinePanel;
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
@component
|
|
3
|
+
**Legacy.** The table view of a run, shown by `PipelinePanel`, which only the deprecated standalone Playground renders.
|
|
4
|
+
The user sees one row per node job with status, times, retries and any error, and can open a row to see its input and output data. Rows refresh as the run goes.
|
|
5
|
+
|
|
6
|
+
**Use it for** a sortable list of a run's jobs inside `PipelinePanel`.
|
|
7
|
+
**Not for** the editor's Test mode; use `StepsSummary` there instead.
|
|
8
|
+
-->
|
|
9
|
+
|
|
1
10
|
<script module lang="ts">
|
|
2
11
|
import type { NodeStatus } from './pipelineViewUtils.svelte.js';
|
|
3
12
|
|
|
@@ -58,10 +67,15 @@
|
|
|
58
67
|
import type { AuthProvider } from '../../types/auth.js';
|
|
59
68
|
|
|
60
69
|
interface Props {
|
|
70
|
+
/** Id of the run to show. */
|
|
61
71
|
pipelineId: string;
|
|
72
|
+
/** The workflow the run belongs to, used for node names. */
|
|
62
73
|
workflow: Workflow;
|
|
74
|
+
/** API endpoints used to load the run. */
|
|
63
75
|
endpointConfig: EndpointConfig;
|
|
76
|
+
/** Auth provider for the API requests. Default: none. */
|
|
64
77
|
authProvider?: AuthProvider;
|
|
78
|
+
/** Bump this number to reload the run soon after. Default: 0. */
|
|
65
79
|
refreshTrigger?: number;
|
|
66
80
|
}
|
|
67
81
|
|
|
@@ -2,12 +2,24 @@ import type { Workflow } from '../../types/index.js';
|
|
|
2
2
|
import type { EndpointConfig } from '../../config/endpoints.js';
|
|
3
3
|
import type { AuthProvider } from '../../types/auth.js';
|
|
4
4
|
interface Props {
|
|
5
|
+
/** Id of the run to show. */
|
|
5
6
|
pipelineId: string;
|
|
7
|
+
/** The workflow the run belongs to, used for node names. */
|
|
6
8
|
workflow: Workflow;
|
|
9
|
+
/** API endpoints used to load the run. */
|
|
7
10
|
endpointConfig: EndpointConfig;
|
|
11
|
+
/** Auth provider for the API requests. Default: none. */
|
|
8
12
|
authProvider?: AuthProvider;
|
|
13
|
+
/** Bump this number to reload the run soon after. Default: 0. */
|
|
9
14
|
refreshTrigger?: number;
|
|
10
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* **Legacy.** The table view of a run, shown by `PipelinePanel`, which only the deprecated standalone Playground renders.
|
|
18
|
+
* The user sees one row per node job with status, times, retries and any error, and can open a row to see its input and output data. Rows refresh as the run goes.
|
|
19
|
+
*
|
|
20
|
+
* **Use it for** a sortable list of a run's jobs inside `PipelinePanel`.
|
|
21
|
+
* **Not for** the editor's Test mode; use `StepsSummary` there instead.
|
|
22
|
+
*/
|
|
11
23
|
declare const PipelineTableView: import("svelte").Component<Props, {}, "">;
|
|
12
24
|
type PipelineTableView = ReturnType<typeof PipelineTableView>;
|
|
13
25
|
export default PipelineTableView;
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
|
|
2
|
+
@component
|
|
3
|
+
**Legacy.** The standalone Playground. It is deprecated in favour of the editor's Test mode (the Playground docked beside the canvas) and removed in 3.0. It warns once per page when mounted.
|
|
4
|
+
It is a thin wrapper that passes the standalone props to `PlaygroundSurface`. `PlaygroundStudio`, `PlaygroundModal` and the /workflow/[id]/playground/[sessionId] route use it.
|
|
3
5
|
|
|
4
|
-
|
|
5
|
-
the props the standalone entry points have always passed. Used by
|
|
6
|
-
PlaygroundStudio (standalone), PlaygroundModal (modal), and the
|
|
7
|
-
/workflow/[id]/playground/[sessionId] route.
|
|
6
|
+
Keep this file thin. Anything the docked Playground needs belongs in `PlaygroundSurface`, so it survives this file's removal.
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
of Test mode needs belongs in PlaygroundSurface, so it survives this
|
|
12
|
-
file's removal.
|
|
13
|
-
|
|
14
|
-
It warns once per page when mounted (utils/deprecation.ts).
|
|
8
|
+
**Use it for** existing standalone pages until they move to Test mode.
|
|
9
|
+
**Not for** new work; use `DockedPlayground` (Test mode) instead.
|
|
15
10
|
-->
|
|
16
11
|
|
|
17
12
|
<script lang="ts">
|
|
@@ -26,18 +21,29 @@
|
|
|
26
21
|
warnStandalonePlaygroundDeprecated();
|
|
27
22
|
|
|
28
23
|
interface Props {
|
|
24
|
+
/** Id of the workflow to test. */
|
|
29
25
|
workflowId: string;
|
|
26
|
+
/** A pre-loaded workflow. Default: fetched by id. */
|
|
30
27
|
workflow?: Workflow;
|
|
28
|
+
/** Display mode. Default: standalone. */
|
|
31
29
|
mode?: PlaygroundMode;
|
|
30
|
+
/** Session to open on mount. Default: none. */
|
|
32
31
|
initialSessionId?: string;
|
|
32
|
+
/** API endpoints. Default: the page default. */
|
|
33
33
|
endpointConfig?: EndpointConfig;
|
|
34
34
|
/** Auth provider applied to this instance's API requests. */
|
|
35
35
|
authProvider?: AuthProvider;
|
|
36
|
+
/** Playground options. Default: none. */
|
|
36
37
|
config?: PlaygroundConfig;
|
|
38
|
+
/** Called when the user closes the Playground. */
|
|
37
39
|
onClose?: () => void;
|
|
40
|
+
/** Called when the user presses the Pipeline button. */
|
|
38
41
|
onTogglePanel?: () => void;
|
|
42
|
+
/** Whether the pipeline panel is open. Default: false. */
|
|
39
43
|
isPipelinePanelOpen?: boolean;
|
|
44
|
+
/** Called with the session id after a switch, so a host can update its URL. */
|
|
40
45
|
onSessionNavigate?: (sessionId: string) => void;
|
|
46
|
+
/** FlowDrop instance to use. Default: from context or the page default. */
|
|
41
47
|
instance?: FlowDropInstance;
|
|
42
48
|
}
|
|
43
49
|
|
|
@@ -4,20 +4,40 @@ import type { AuthProvider } from '../../types/auth.js';
|
|
|
4
4
|
import type { PlaygroundMode, PlaygroundConfig } from '../../types/playground.js';
|
|
5
5
|
import type { FlowDropInstance } from '../../stores/instanceContainer.svelte.js';
|
|
6
6
|
interface Props {
|
|
7
|
+
/** Id of the workflow to test. */
|
|
7
8
|
workflowId: string;
|
|
9
|
+
/** A pre-loaded workflow. Default: fetched by id. */
|
|
8
10
|
workflow?: Workflow;
|
|
11
|
+
/** Display mode. Default: standalone. */
|
|
9
12
|
mode?: PlaygroundMode;
|
|
13
|
+
/** Session to open on mount. Default: none. */
|
|
10
14
|
initialSessionId?: string;
|
|
15
|
+
/** API endpoints. Default: the page default. */
|
|
11
16
|
endpointConfig?: EndpointConfig;
|
|
12
17
|
/** Auth provider applied to this instance's API requests. */
|
|
13
18
|
authProvider?: AuthProvider;
|
|
19
|
+
/** Playground options. Default: none. */
|
|
14
20
|
config?: PlaygroundConfig;
|
|
21
|
+
/** Called when the user closes the Playground. */
|
|
15
22
|
onClose?: () => void;
|
|
23
|
+
/** Called when the user presses the Pipeline button. */
|
|
16
24
|
onTogglePanel?: () => void;
|
|
25
|
+
/** Whether the pipeline panel is open. Default: false. */
|
|
17
26
|
isPipelinePanelOpen?: boolean;
|
|
27
|
+
/** Called with the session id after a switch, so a host can update its URL. */
|
|
18
28
|
onSessionNavigate?: (sessionId: string) => void;
|
|
29
|
+
/** FlowDrop instance to use. Default: from context or the page default. */
|
|
19
30
|
instance?: FlowDropInstance;
|
|
20
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* **Legacy.** The standalone Playground. It is deprecated in favour of the editor's Test mode (the Playground docked beside the canvas) and removed in 3.0. It warns once per page when mounted.
|
|
34
|
+
* It is a thin wrapper that passes the standalone props to `PlaygroundSurface`. `PlaygroundStudio`, `PlaygroundModal` and the /workflow/[id]/playground/[sessionId] route use it.
|
|
35
|
+
*
|
|
36
|
+
* Keep this file thin. Anything the docked Playground needs belongs in `PlaygroundSurface`, so it survives this file's removal.
|
|
37
|
+
*
|
|
38
|
+
* **Use it for** existing standalone pages until they move to Test mode.
|
|
39
|
+
* **Not for** new work; use `DockedPlayground` (Test mode) instead.
|
|
40
|
+
*/
|
|
21
41
|
declare const Playground: import("svelte").Component<Props, {}, "">;
|
|
22
42
|
type Playground = ReturnType<typeof Playground>;
|
|
23
43
|
export default Playground;
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
|
|
2
|
+
@component
|
|
3
|
+
**Legacy.** A full-page Playground with the FlowDrop navbar on top. It is deprecated in favour of the editor's Test mode and removed in 3.0. It warns once per page when mounted.
|
|
4
|
+
It pairs the navbar with `PlaygroundStudio`. When you import it directly (not through `mountPlaygroundApp`), call `initializeSettings()` first, because the navbar's settings modal reads the settings store.
|
|
3
5
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
When importing this component directly (rather than via mountPlaygroundApp),
|
|
8
|
-
call initializeSettings() before mount — the navbar's settings modal reads
|
|
9
|
-
from the settings store.
|
|
10
|
-
|
|
11
|
-
@deprecated The standalone Playground is deprecated in favour of the editor's
|
|
12
|
-
Test mode and removed in 3.0. It warns once per page when mounted.
|
|
6
|
+
**Use it for** existing full-page standalone Playgrounds.
|
|
7
|
+
**Not for** new work; use the editor's Test mode (`DockedPlayground`) instead.
|
|
13
8
|
-->
|
|
14
9
|
|
|
15
10
|
<script lang="ts">
|
|
@@ -28,26 +23,45 @@
|
|
|
28
23
|
warnStandalonePlaygroundDeprecated();
|
|
29
24
|
|
|
30
25
|
interface Props {
|
|
26
|
+
/** Id of the workflow to test. */
|
|
31
27
|
workflowId: string;
|
|
28
|
+
/** A pre-loaded workflow. Default: fetched by id. */
|
|
32
29
|
workflow?: Workflow;
|
|
30
|
+
/** Display mode. Default: standalone. */
|
|
33
31
|
mode?: 'standalone' | 'embedded';
|
|
32
|
+
/** API endpoints. Default: the page default. */
|
|
34
33
|
endpointConfig?: EndpointConfig;
|
|
35
34
|
/** Auth provider applied to this instance's API requests. */
|
|
36
35
|
authProvider?: AuthProvider;
|
|
36
|
+
/** Playground options. Default: none. */
|
|
37
37
|
config?: PlaygroundConfig;
|
|
38
|
+
/** Show the navbar on top. Default: false. */
|
|
38
39
|
showNavbar?: boolean;
|
|
40
|
+
/** Title in the navbar. Default: none. */
|
|
39
41
|
navbarTitle?: string;
|
|
42
|
+
/** Extra action buttons in the navbar. Default: none. */
|
|
40
43
|
primaryActions?: NavbarAction[];
|
|
44
|
+
/** Logo and name for the navbar. Default: none. */
|
|
41
45
|
branding?: NavbarBranding;
|
|
46
|
+
/** Show the settings button. Default: true. */
|
|
42
47
|
showSettings?: boolean;
|
|
48
|
+
/** Settings categories to offer. Default: all. */
|
|
43
49
|
settingsCategories?: SettingsCategory[];
|
|
50
|
+
/** Show the sync button in settings. Default: the settings default. */
|
|
44
51
|
showSettingsSyncButton?: boolean;
|
|
52
|
+
/** Show the reset button in settings. Default: the settings default. */
|
|
45
53
|
showSettingsResetButton?: boolean;
|
|
54
|
+
/** Session to open on mount. Default: none. */
|
|
46
55
|
initialSessionId?: string;
|
|
56
|
+
/** Whether the pipeline panel starts open. Default: the stored choice. */
|
|
47
57
|
initialPipelineOpen?: boolean;
|
|
58
|
+
/** Minimum width of the chat side in px. Default: 760. */
|
|
48
59
|
minChatWidth?: number;
|
|
60
|
+
/** Starting width of the pipeline panel in px. Default: 500. */
|
|
49
61
|
initialPipelineWidth?: number;
|
|
62
|
+
/** Called when the user closes the Playground. */
|
|
50
63
|
onClose?: () => void;
|
|
64
|
+
/** Called with the session id after a switch, so a host can update its URL. */
|
|
51
65
|
onSessionNavigate?: (sessionId: string) => void;
|
|
52
66
|
/** Per-instance state container — forwarded to the inner PlaygroundStudio */
|
|
53
67
|
instance?: FlowDropInstance;
|
|
@@ -6,30 +6,56 @@ import type { PlaygroundConfig } from '../../types/playground.js';
|
|
|
6
6
|
import type { SettingsCategory } from '../../types/settings.js';
|
|
7
7
|
import type { NavbarAction, NavbarBranding } from '../../types/navbar.js';
|
|
8
8
|
interface Props {
|
|
9
|
+
/** Id of the workflow to test. */
|
|
9
10
|
workflowId: string;
|
|
11
|
+
/** A pre-loaded workflow. Default: fetched by id. */
|
|
10
12
|
workflow?: Workflow;
|
|
13
|
+
/** Display mode. Default: standalone. */
|
|
11
14
|
mode?: 'standalone' | 'embedded';
|
|
15
|
+
/** API endpoints. Default: the page default. */
|
|
12
16
|
endpointConfig?: EndpointConfig;
|
|
13
17
|
/** Auth provider applied to this instance's API requests. */
|
|
14
18
|
authProvider?: AuthProvider;
|
|
19
|
+
/** Playground options. Default: none. */
|
|
15
20
|
config?: PlaygroundConfig;
|
|
21
|
+
/** Show the navbar on top. Default: false. */
|
|
16
22
|
showNavbar?: boolean;
|
|
23
|
+
/** Title in the navbar. Default: none. */
|
|
17
24
|
navbarTitle?: string;
|
|
25
|
+
/** Extra action buttons in the navbar. Default: none. */
|
|
18
26
|
primaryActions?: NavbarAction[];
|
|
27
|
+
/** Logo and name for the navbar. Default: none. */
|
|
19
28
|
branding?: NavbarBranding;
|
|
29
|
+
/** Show the settings button. Default: true. */
|
|
20
30
|
showSettings?: boolean;
|
|
31
|
+
/** Settings categories to offer. Default: all. */
|
|
21
32
|
settingsCategories?: SettingsCategory[];
|
|
33
|
+
/** Show the sync button in settings. Default: the settings default. */
|
|
22
34
|
showSettingsSyncButton?: boolean;
|
|
35
|
+
/** Show the reset button in settings. Default: the settings default. */
|
|
23
36
|
showSettingsResetButton?: boolean;
|
|
37
|
+
/** Session to open on mount. Default: none. */
|
|
24
38
|
initialSessionId?: string;
|
|
39
|
+
/** Whether the pipeline panel starts open. Default: the stored choice. */
|
|
25
40
|
initialPipelineOpen?: boolean;
|
|
41
|
+
/** Minimum width of the chat side in px. Default: 760. */
|
|
26
42
|
minChatWidth?: number;
|
|
43
|
+
/** Starting width of the pipeline panel in px. Default: 500. */
|
|
27
44
|
initialPipelineWidth?: number;
|
|
45
|
+
/** Called when the user closes the Playground. */
|
|
28
46
|
onClose?: () => void;
|
|
47
|
+
/** Called with the session id after a switch, so a host can update its URL. */
|
|
29
48
|
onSessionNavigate?: (sessionId: string) => void;
|
|
30
49
|
/** Per-instance state container — forwarded to the inner PlaygroundStudio */
|
|
31
50
|
instance?: FlowDropInstance;
|
|
32
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* **Legacy.** A full-page Playground with the FlowDrop navbar on top. It is deprecated in favour of the editor's Test mode and removed in 3.0. It warns once per page when mounted.
|
|
54
|
+
* It pairs the navbar with `PlaygroundStudio`. When you import it directly (not through `mountPlaygroundApp`), call `initializeSettings()` first, because the navbar's settings modal reads the settings store.
|
|
55
|
+
*
|
|
56
|
+
* **Use it for** existing full-page standalone Playgrounds.
|
|
57
|
+
* **Not for** new work; use the editor's Test mode (`DockedPlayground`) instead.
|
|
58
|
+
*/
|
|
33
59
|
declare const PlaygroundApp: import("svelte").Component<Props, {}, "">;
|
|
34
60
|
type PlaygroundApp = ReturnType<typeof PlaygroundApp>;
|
|
35
61
|
export default PlaygroundApp;
|
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
|
|
2
|
+
@component
|
|
3
|
+
The header of the docked Playground in Test mode: a chip for the open conversation, a plus for a new one, and a menu.
|
|
3
4
|
|
|
4
|
-
The
|
|
5
|
-
|
|
5
|
+
The chip lists the conversations and, under them, the runs of the open one (newest first, older versions marked).
|
|
6
|
+
Picking a run shows it and the canvas follows. The menu has Expand steps by default, JSON view (for a form
|
|
7
|
+
workflow), Refresh, Reset, Playground settings, and anything the host adds with `menuItems`.
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Runs of the open one, newest first, older-version runs marked. Picking a
|
|
10
|
-
conversation opens it; picking a run shows that run (the canvas follows).
|
|
11
|
-
- the ⋯ menu: Expand steps by default, JSON view (a form workflow), Refresh, Reset,
|
|
12
|
-
Playground settings, and whatever a host adds through `menuItems`.
|
|
13
|
-
|
|
14
|
-
Each fact has one home: which conversation or run is shown lives in the
|
|
15
|
-
chip; the recovery actions live in the menu. No link to the standalone page.
|
|
9
|
+
**Use it for** the top of the Test mode panel.
|
|
10
|
+
**Not for** the editor's own navbar (use `Navbar`).
|
|
16
11
|
-->
|
|
17
12
|
|
|
18
13
|
<script lang="ts">
|
|
@@ -33,6 +28,7 @@
|
|
|
33
28
|
hasForm?: boolean;
|
|
34
29
|
/** The form is shown as JSON. */
|
|
35
30
|
jsonView?: boolean;
|
|
31
|
+
/** Switch between the typed form and the JSON view. */
|
|
36
32
|
onToggleJsonView?: () => void;
|
|
37
33
|
/** Opens the workflow's Playground settings (the editor's inspector). */
|
|
38
34
|
onOpenSettings?: () => void;
|
|
@@ -4,6 +4,7 @@ interface Props {
|
|
|
4
4
|
hasForm?: boolean;
|
|
5
5
|
/** The form is shown as JSON. */
|
|
6
6
|
jsonView?: boolean;
|
|
7
|
+
/** Switch between the typed form and the JSON view. */
|
|
7
8
|
onToggleJsonView?: () => void;
|
|
8
9
|
/** Opens the workflow's Playground settings (the editor's inspector). */
|
|
9
10
|
onOpenSettings?: () => void;
|
|
@@ -17,6 +18,16 @@ interface Props {
|
|
|
17
18
|
close: () => void;
|
|
18
19
|
}]>;
|
|
19
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* The header of the docked Playground in Test mode: a chip for the open conversation, a plus for a new one, and a menu.
|
|
23
|
+
*
|
|
24
|
+
* The chip lists the conversations and, under them, the runs of the open one (newest first, older versions marked).
|
|
25
|
+
* Picking a run shows it and the canvas follows. The menu has Expand steps by default, JSON view (for a form
|
|
26
|
+
* workflow), Refresh, Reset, Playground settings, and anything the host adds with `menuItems`.
|
|
27
|
+
*
|
|
28
|
+
* **Use it for** the top of the Test mode panel.
|
|
29
|
+
* **Not for** the editor's own navbar (use `Navbar`).
|
|
30
|
+
*/
|
|
20
31
|
declare const PlaygroundHeader: import("svelte").Component<Props, {}, "">;
|
|
21
32
|
type PlaygroundHeader = ReturnType<typeof PlaygroundHeader>;
|
|
22
33
|
export default PlaygroundHeader;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
@deprecated The standalone Playground is deprecated in favour of the editor's
|
|
9
|
-
Test mode and removed in 3.0. It warns once per page when mounted.
|
|
2
|
+
@component
|
|
3
|
+
**Legacy.** The Playground in a centred modal. It is deprecated in favour of the editor's Test mode and removed in 3.0. It warns once per page when mounted.
|
|
4
|
+
The user sees a dialog over a dimmed page that holds the `Playground`. It closes on a backdrop click, the Escape key or the close button.
|
|
5
|
+
|
|
6
|
+
**Use it for** existing apps that open the Playground as a pop-up.
|
|
7
|
+
**Not for** new work; use the editor's Test mode (`DockedPlayground`) instead.
|
|
10
8
|
-->
|
|
11
9
|
|
|
12
10
|
<script lang="ts">
|
|
@@ -26,6 +26,13 @@ interface Props {
|
|
|
26
26
|
/** Callback when modal is closed */
|
|
27
27
|
onClose: () => void;
|
|
28
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* **Legacy.** The Playground in a centred modal. It is deprecated in favour of the editor's Test mode and removed in 3.0. It warns once per page when mounted.
|
|
31
|
+
* The user sees a dialog over a dimmed page that holds the `Playground`. It closes on a backdrop click, the Escape key or the close button.
|
|
32
|
+
*
|
|
33
|
+
* **Use it for** existing apps that open the Playground as a pop-up.
|
|
34
|
+
* **Not for** new work; use the editor's Test mode (`DockedPlayground`) instead.
|
|
35
|
+
*/
|
|
29
36
|
declare const PlaygroundModal: import("svelte").Component<Props, {}, "">;
|
|
30
37
|
type PlaygroundModal = ReturnType<typeof PlaygroundModal>;
|
|
31
38
|
export default PlaygroundModal;
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
@component
|
|
3
|
+
**Legacy.** The standalone Playground page: the chat (`Playground`) beside a resizable `PipelinePanel`. Deprecated in favour of the editor's Test mode and removed in 3.0. It warns once per page when mounted.
|
|
4
|
+
The user sees the conversation on one side and the run's pipeline on the other. The panel width and open state are remembered.
|
|
5
|
+
|
|
6
|
+
**Use it for** existing standalone Playground pages and `PlaygroundApp`.
|
|
7
|
+
**Not for** new work; use the editor's Test mode (`DockedPlayground`) instead.
|
|
8
|
+
-->
|
|
9
|
+
|
|
1
10
|
<script lang="ts">
|
|
2
11
|
import { warnStandalonePlaygroundDeprecated } from '../../utils/deprecation.js';
|
|
3
12
|
import { onMount, untrack } from 'svelte';
|
|
@@ -33,6 +33,13 @@ interface Props {
|
|
|
33
33
|
/** Explicit FlowDrop instance; defaults to context or the page-default instance. */
|
|
34
34
|
instance?: FlowDropInstance;
|
|
35
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* **Legacy.** The standalone Playground page: the chat (`Playground`) beside a resizable `PipelinePanel`. Deprecated in favour of the editor's Test mode and removed in 3.0. It warns once per page when mounted.
|
|
38
|
+
* The user sees the conversation on one side and the run's pipeline on the other. The panel width and open state are remembered.
|
|
39
|
+
*
|
|
40
|
+
* **Use it for** existing standalone Playground pages and `PlaygroundApp`.
|
|
41
|
+
* **Not for** new work; use the editor's Test mode (`DockedPlayground`) instead.
|
|
42
|
+
*/
|
|
36
43
|
declare const PlaygroundStudio: import("svelte").Component<Props, {}, "">;
|
|
37
44
|
type PlaygroundStudio = ReturnType<typeof PlaygroundStudio>;
|
|
38
45
|
export default PlaygroundStudio;
|