@dxos/plugin-pipeline 0.9.1-main.c7dcc2e112 → 0.10.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/dist/lib/neutral/PipelinePlugin.mjs +2 -6
- package/dist/lib/neutral/PipelinePlugin.mjs.map +3 -3
- package/dist/lib/neutral/PipelinePlugin.node.mjs +2 -4
- package/dist/lib/neutral/PipelinePlugin.node.mjs.map +3 -3
- package/dist/lib/neutral/{PipelineProperties-JW7AWWU4.mjs → PipelineProperties-LDD4P4RA.mjs} +3 -3
- package/dist/lib/neutral/PipelineProperties-LDD4P4RA.mjs.map +7 -0
- package/dist/lib/neutral/capabilities/index.mjs +2 -6
- package/dist/lib/neutral/capabilities/index.mjs.map +3 -3
- package/dist/lib/neutral/components/index.mjs.map +1 -1
- package/dist/lib/neutral/containers/index.mjs +1 -1
- package/dist/lib/neutral/{create-object-VIRI2DY5.mjs → create-object-B4FHAFWY.mjs} +2 -7
- package/dist/lib/neutral/create-object-B4FHAFWY.mjs.map +7 -0
- package/dist/lib/neutral/meta.json +1 -1
- package/dist/lib/neutral/{react-surface-U7OOZHUQ.mjs → react-surface-G6WO2XOI.mjs} +1 -20
- package/dist/lib/neutral/react-surface-G6WO2XOI.mjs.map +7 -0
- package/dist/lib/neutral/translations.mjs +0 -2
- package/dist/lib/neutral/translations.mjs.map +2 -2
- package/dist/types/src/PipelinePlugin.d.ts.map +1 -1
- package/dist/types/src/PipelinePlugin.node.d.ts.map +1 -1
- package/dist/types/src/capabilities/create-object.d.ts +1 -7
- package/dist/types/src/capabilities/create-object.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +0 -2
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts +1 -1
- package/dist/types/src/components/PipelineComponent/PipelineComponent.d.ts +1 -1
- package/dist/types/src/components/PipelineComponent/PipelineComponent.d.ts.map +1 -1
- package/dist/types/src/components/PipelineComponent/PipelineComponent.stories.d.ts +0 -4
- package/dist/types/src/components/PipelineComponent/PipelineComponent.stories.d.ts.map +1 -1
- package/dist/types/src/containers/PipelineArticle/PipelineArticle.stories.d.ts +2 -19
- package/dist/types/src/containers/PipelineArticle/PipelineArticle.stories.d.ts.map +1 -1
- package/dist/types/src/containers/PipelineProperties/PipelineProperties.stories.d.ts +0 -17
- package/dist/types/src/containers/PipelineProperties/PipelineProperties.stories.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +4 -0
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +0 -4
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +44 -45
- package/src/PipelinePlugin.node.ts +1 -2
- package/src/PipelinePlugin.test.ts +2 -4
- package/src/PipelinePlugin.tsx +1 -3
- package/src/capabilities/create-object.ts +1 -4
- package/src/capabilities/index.ts +0 -2
- package/src/capabilities/react-surface.tsx +0 -21
- package/src/components/PipelineComponent/PipelineComponent.tsx +1 -1
- package/src/containers/PipelineArticle/PipelineArticle.stories.tsx +2 -7
- package/src/containers/PipelineProperties/PipelineProperties.stories.tsx +2 -7
- package/src/containers/PipelineProperties/PipelineProperties.tsx +2 -2
- package/src/translations.ts +0 -2
- package/dist/lib/neutral/PipelineProperties-JW7AWWU4.mjs.map +0 -7
- package/dist/lib/neutral/app-graph-builder-DULKWFOE.mjs +0 -81
- package/dist/lib/neutral/app-graph-builder-DULKWFOE.mjs.map +0 -7
- package/dist/lib/neutral/chunk-OF66INHQ.mjs +0 -9
- package/dist/lib/neutral/chunk-OF66INHQ.mjs.map +0 -7
- package/dist/lib/neutral/create-object-VIRI2DY5.mjs.map +0 -7
- package/dist/lib/neutral/navigation-resolver-PB6XKEAG.mjs +0 -12
- package/dist/lib/neutral/navigation-resolver-PB6XKEAG.mjs.map +0 -7
- package/dist/lib/neutral/react-surface-U7OOZHUQ.mjs.map +0 -7
- package/dist/types/src/capabilities/app-graph-builder.d.ts +0 -6
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +0 -1
- package/dist/types/src/capabilities/navigation-resolver.d.ts +0 -6
- package/dist/types/src/capabilities/navigation-resolver.d.ts.map +0 -1
- package/dist/types/src/paths.d.ts +0 -3
- package/dist/types/src/paths.d.ts.map +0 -1
- package/src/capabilities/app-graph-builder.ts +0 -74
- package/src/capabilities/navigation-resolver.ts +0 -18
- package/src/paths.ts +0 -12
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Plugin } from "@dxos/app-framework";
|
|
3
3
|
import { AppPlugin } from "@dxos/app-toolkit";
|
|
4
4
|
import { Pipeline } from "@dxos/types";
|
|
5
|
-
import {
|
|
5
|
+
import { CreateObject, ReactSurface } from "#capabilities";
|
|
6
6
|
import { meta } from "#meta";
|
|
7
7
|
import { translations } from "#translations";
|
|
8
8
|
|
|
@@ -10,12 +10,8 @@ import { translations } from "#translations";
|
|
|
10
10
|
var PLUGIN_default = '---\nid: org.dxos.plugin.pipeline\nname: PipelinePlugin\nversion: 0.1.0\n---\n\nA multi-column Kanban-style pipeline plugin for DXOS Composer.\nEach Pipeline holds an ordered list of Columns; each Column is backed by a ViewModel\nwhose query selects any ECHO object type from the space.\nObjects can be dragged between columns and the pipeline state persists collaboratively via ECHO.\n\n## Extensions\n\n| Term | URI |\n|-------------|--------------------------------|\n| `type` | `org.dxos.mdl.type@1.0` |\n| `feat` | `org.dxos.mdl.feat@1.0` |\n| `test` | `org.dxos.mdl.test@1.0` |\n| `component` | `org.dxos.mdl.component@1.0` |\n| `op` | `org.dxos.mdl.op@1.0` |\n\n## Types\n\n```mdl\ntype Pipeline\n desc: Root ECHO object (typename org.dxos.type.pipeline). Holds the ordered set of columns.\n echo-type: Pipeline.Pipeline\n fields:\n name?: string\n description?: string\n image?: URL\n columns: Column[]\n invariants:\n - columns maintain insertion order\n - columns array is not exposed in generated forms (FormInputAnnotation = false)\n```\n\n```mdl\ntype Column\n desc: One lane of the pipeline. Backed by a ViewModel whose query determines which objects appear.\n echo-type: Pipeline.Column\n fields:\n name: string\n view: Ref<View.View> # ViewModel containing query AST + JSON schema projection\n order: string[] # explicit ordering of item ids within this column\n invariants:\n - view is a Ref to a ViewModel ECHO object stored in the same space\n - order array tracks drag-reordering; items not in order appear after ordered items\n```\n\n```mdl\ntype ViewModel\n desc: Runtime ECHO object that holds a QueryAST and JSON schema projection for a Column.\n fields:\n query: { ast: QueryAST }\n projection: ProjectionSchema\n jsonSchema: JsonSchema\n```\n\n## Components\n\n```mdl\ncomponent PipelineArticle\n desc: Full-canvas article surface rendered for a Pipeline object.\n props:\n role: string\n subject: Pipeline.Pipeline\n attendableId?: string\n state:\n model: BoardModel<Pipeline.Column, Obj.Unknown>\n slots:\n toolbar: PipelineComponent.Toolbar\n content: PipelineComponent.Columns\n actions:\n addColumn() \u2192 void # opens Settings companion panel\n```\n\n```mdl\ncomponent PipelineComponent\n desc: Composable component set that renders the Kanban board.\n sub-components:\n Root # context provider for Item renderer and onAddColumn callback\n Content # wraps Board.Root with the board model\n Columns # renders Board.Content with PipelineColumn tiles; handles drag-drop via useEventHandlerAdapter\n Toolbar # single "+" IconButton gated by attention; triggers onAddColumn\n```\n\n```mdl\ncomponent PipelineProperties\n desc: Settings companion panel for managing pipeline columns.\n props:\n pipeline: Pipeline.Pipeline\n state:\n columns: Pipeline.Column[]\n expandedId?: string # id of the currently expanded column editor\n actions:\n addColumn() \u2192 void\n deleteColumn(column) \u2192 void\n renameColumn(column, name) \u2192 void\n moveColumn(from, to) \u2192 void\n setQuery(column, query, target?) \u2192 void\n layout: |\n \u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\n \u2502 "Views" heading \u2502\n \u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524\n \u2502 List of Column rows \u2502\n \u2502 drag handle | name | delete | \u2502\n \u2502 [expanded: Form + ViewEditor] \u2502\n \u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524\n \u2502 "+" add-column button \u2502\n \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\n```\n\n## Operations\n\n```mdl\nop createPipeline\n desc: Creates a new Pipeline ECHO object and adds it to the target space.\n input:\n name?: string\n target?: Space\n targetNodeId?: string\n output: Pipeline.Pipeline\n effects: [echo:write]\n note: Delegates to SpaceOperation.AddObject with hidden=true.\n```\n\n```mdl\nop createResearchProject\n desc: Built-in template that scaffolds a Research pipeline with Mailbox, Contacts, Organizations, and Notes columns.\n input:\n db: Database.Database\n name?: string\n output: Pipeline.Pipeline\n effects: [echo:write, echo:read]\n note: |\n Requires an existing Mailbox object in the database.\n Returns null when no mailbox is found.\n Creates four ViewModel columns: Mailbox messages, Person contacts,\n Organization contacts, and Markdown documents.\n```\n\n## Features\n\n```mdl\nfeat F-1: Create Pipeline\n\n req F-1.1: A new Pipeline is created with an empty columns array.\n req F-1.2: The Pipeline is added to the active space via SpaceOperation.AddObject (hidden=true).\n req F-1.3: The Pipeline appears as an article in Composer.\n req F-1.4: Graph companions "Invocations" and "Automation" are added to the pipeline node.\n```\n\n```mdl\nfeat F-2: Manage Columns\n\n req F-2.1:\n when: user clicks "+" in the pipeline toolbar\n then: Settings companion panel opens\n\n req F-2.2:\n when: user clicks "+" in PipelineProperties\n then: a new Column is appended with an empty ViewModel and a Filter.nothing() query\n\n req F-2.3:\n when: user renames a column\n then: column.name updated immediately via Obj.update\n\n req F-2.4:\n when: user deletes a column\n then: Column removed from pipeline.columns; associated ViewModel ECHO object removed from db\n\n req F-2.5:\n when: user drags a column to a new position\n then: pipeline.columns reordered via arrayMove\n```\n\n```mdl\nfeat F-3: Column Query\n\n req F-3.1:\n when: user changes the query in ViewEditor\n then: column.view.query.ast updated; column.view.projection updated to match new schema\n\n req F-3.2:\n when: query targets a feed (queue DXN)\n then: Query.from({ feeds: [queue] }) applied; items ordered newest-first\n\n req F-3.3:\n when: query targets the space directly\n then: items ordered by ECHO insertion order\n```\n\n```mdl\nfeat F-4: Drag and Drop\n\n req F-4.1:\n when: user drags a Column tile\n then: pipeline.columns reordered; change persisted via Obj.update\n\n req F-4.2:\n when: user drags an item between columns\n then: column.order updated to reflect new position\n note: The item itself is not moved to a different ECHO location; only the order array changes.\n\n req F-4.3: Only Pipeline.Column objects are accepted as column drop targets (isColumn guard).\n```\n\n```mdl\nfeat F-5: Research Template\n\n req F-5.1:\n when: user creates a pipeline from the "org-research" template\n then: Research pipeline created with Mailbox, Contacts, Organizations, and Notes columns\n\n req F-5.2: Template creation fails gracefully when no Mailbox exists in the database.\n```\n\n```mdl\nfeat F-6: Invocation Companion\n\n req F-6.1:\n when: Pipeline article is open\n then: "Invocations" companion tab shows InvocationTraceContainer for the pipeline\'s database\n\n req F-6.2:\n when: Pipeline article is open\n then: "Automation" companion tab is available for wiring pipeline automation\n```\n\n## Acceptance\n\n```mdl\ntest T-1: New pipeline is empty\n given: user creates a Pipeline article\n then:\n - pipeline.columns is empty\n - pipeline appears in the space object list\n```\n\n```mdl\ntest T-2: Add column\n given: an open Pipeline with no columns\n when: user clicks "+" in PipelineProperties\n then:\n - pipeline.columns.length === 1\n - new column has name === ""\n - new column.view references a ViewModel with Filter.nothing() query\n```\n\n```mdl\ntest T-3: Rename column\n given: a pipeline with one column named "Inbox"\n when: user types "Email" in the column name field\n then: pipeline.columns[0].name === "Email"\n```\n\n```mdl\ntest T-4: Delete column\n given: a pipeline with one column\n when: user deletes the column\n then:\n - pipeline.columns is empty\n - associated ViewModel ECHO object no longer exists in db\n```\n\n```mdl\ntest T-5: Research template\n given: a space with an existing Mailbox\n when: user creates pipeline from "org-research" template\n then:\n - pipeline.columns.length === 4\n - column names are "Mailbox", "Contacts", "Organizations", "Notes"\n```\n\n```mdl\ntest T-6: Research template missing mailbox\n given: a space with no Mailbox\n when: createResearchProject is called\n then: returns null\n```\n\n---\n\n## Appendix: Extension Definitions\n\n```mdl\next type\n uri: org.dxos.mdl.type@1.0\n desc: A named data structure with typed fields and optional literals.\n fields:\n desc?: Prose\n fields?: FieldMap\n literals?: UnionList\n extends?: TypeRef[]\n```\n\n```mdl\next feat\n uri: org.dxos.mdl.feat@1.0\n desc: A named feature grouping one or more requirements.\n fields:\n desc?: Prose\n req: RequirementList\n nesting: self\n```\n\n```mdl\next test\n uri: org.dxos.mdl.test@1.0\n desc: An acceptance scenario expressed as given / when / then steps.\n fields:\n given?: Step | Step[]\n when?: Step | Step[]\n then: Step | Step[]\n tags?: TagList\n```\n\n```mdl\next component\n uri: org.dxos.mdl.component@1.0\n desc: A UI component with props, internal state, slots, actions, and events.\n fields:\n desc?: Prose\n props?: FieldMap\n state?: FieldMap\n slots?: FieldMap\n actions?: ActionMap\n emits?: EventMap\n layout?: CodeBlock\n```\n\n```mdl\next op\n uri: org.dxos.mdl.op@1.0\n desc: A named operation with typed inputs, outputs, and declared effects.\n fields:\n desc?: Prose\n input?: FieldMap\n output?: TypeExpr\n errors?: ErrorMap\n effects?: EffectList\n requires?: ServiceList\n note?: Prose\n```\n';
|
|
11
11
|
|
|
12
12
|
// src/PipelinePlugin.tsx
|
|
13
|
-
var PipelinePlugin = Plugin.define(meta).pipe(AppPlugin.
|
|
14
|
-
activate: AppGraphBuilder
|
|
15
|
-
}), AppPlugin.addCreateObjectModule({
|
|
13
|
+
var PipelinePlugin = Plugin.define(meta).pipe(AppPlugin.addCreateObjectModule({
|
|
16
14
|
activate: CreateObject
|
|
17
|
-
}), AppPlugin.addNavigationResolverModule({
|
|
18
|
-
activate: NavigationResolver
|
|
19
15
|
}), AppPlugin.addSchemaModule({
|
|
20
16
|
schema: [
|
|
21
17
|
Pipeline.Pipeline
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/PipelinePlugin.tsx", "raw-loader:/__w/dxos/dxos/packages/plugins/plugin-pipeline/PLUGIN.mdl"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\nimport { AppPlugin } from '@dxos/app-toolkit';\nimport { Pipeline } from '@dxos/types';\n\nimport { AppGraphBuilder, CreateObject, NavigationResolver, ReactSurface } from '#capabilities';\nimport { meta } from '#meta';\nimport { translations } from '#translations';\n\n// eslint-disable-next-line import/no-relative-packages\nimport pluginSpec from '../PLUGIN.mdl?raw';\n\nexport const PipelinePlugin = Plugin.define(meta).pipe(\n AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),\n AppPlugin.addCreateObjectModule({ activate: CreateObject }),\n AppPlugin.addNavigationResolverModule({ activate: NavigationResolver }),\n AppPlugin.addSchemaModule({ schema: [Pipeline.Pipeline] }),\n AppPlugin.addSurfaceModule({ activate: ReactSurface }),\n AppPlugin.addTranslationsModule({ translations }),\n AppPlugin.addPluginAssetModule({\n asset: { pluginId: meta.profile.key, path: 'PLUGIN.mdl', content: pluginSpec, mimeType: 'application/x-mdl' },\n }),\n Plugin.make,\n);\n\nexport default PipelinePlugin;\n", "---\nid: org.dxos.plugin.pipeline\nname: PipelinePlugin\nversion: 0.1.0\n---\n\nA multi-column Kanban-style pipeline plugin for DXOS Composer.\nEach Pipeline holds an ordered list of Columns; each Column is backed by a ViewModel\nwhose query selects any ECHO object type from the space.\nObjects can be dragged between columns and the pipeline state persists collaboratively via ECHO.\n\n## Extensions\n\n| Term | URI |\n|-------------|--------------------------------|\n| `type` | `org.dxos.mdl.type@1.0` |\n| `feat` | `org.dxos.mdl.feat@1.0` |\n| `test` | `org.dxos.mdl.test@1.0` |\n| `component` | `org.dxos.mdl.component@1.0` |\n| `op` | `org.dxos.mdl.op@1.0` |\n\n## Types\n\n```mdl\ntype Pipeline\n desc: Root ECHO object (typename org.dxos.type.pipeline). Holds the ordered set of columns.\n echo-type: Pipeline.Pipeline\n fields:\n name?: string\n description?: string\n image?: URL\n columns: Column[]\n invariants:\n - columns maintain insertion order\n - columns array is not exposed in generated forms (FormInputAnnotation = false)\n```\n\n```mdl\ntype Column\n desc: One lane of the pipeline. Backed by a ViewModel whose query determines which objects appear.\n echo-type: Pipeline.Column\n fields:\n name: string\n view: Ref<View.View> # ViewModel containing query AST + JSON schema projection\n order: string[] # explicit ordering of item ids within this column\n invariants:\n - view is a Ref to a ViewModel ECHO object stored in the same space\n - order array tracks drag-reordering; items not in order appear after ordered items\n```\n\n```mdl\ntype ViewModel\n desc: Runtime ECHO object that holds a QueryAST and JSON schema projection for a Column.\n fields:\n query: { ast: QueryAST }\n projection: ProjectionSchema\n jsonSchema: JsonSchema\n```\n\n## Components\n\n```mdl\ncomponent PipelineArticle\n desc: Full-canvas article surface rendered for a Pipeline object.\n props:\n role: string\n subject: Pipeline.Pipeline\n attendableId?: string\n state:\n model: BoardModel<Pipeline.Column, Obj.Unknown>\n slots:\n toolbar: PipelineComponent.Toolbar\n content: PipelineComponent.Columns\n actions:\n addColumn() \u2192 void # opens Settings companion panel\n```\n\n```mdl\ncomponent PipelineComponent\n desc: Composable component set that renders the Kanban board.\n sub-components:\n Root # context provider for Item renderer and onAddColumn callback\n Content # wraps Board.Root with the board model\n Columns # renders Board.Content with PipelineColumn tiles; handles drag-drop via useEventHandlerAdapter\n Toolbar # single \"+\" IconButton gated by attention; triggers onAddColumn\n```\n\n```mdl\ncomponent PipelineProperties\n desc: Settings companion panel for managing pipeline columns.\n props:\n pipeline: Pipeline.Pipeline\n state:\n columns: Pipeline.Column[]\n expandedId?: string # id of the currently expanded column editor\n actions:\n addColumn() \u2192 void\n deleteColumn(column) \u2192 void\n renameColumn(column, name) \u2192 void\n moveColumn(from, to) \u2192 void\n setQuery(column, query, target?) \u2192 void\n layout: |\n \u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\n \u2502 \"Views\" heading \u2502\n \u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524\n \u2502 List of Column rows \u2502\n \u2502 drag handle | name | delete | \u2502\n \u2502 [expanded: Form + ViewEditor] \u2502\n \u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524\n \u2502 \"+\" add-column button \u2502\n \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\n```\n\n## Operations\n\n```mdl\nop createPipeline\n desc: Creates a new Pipeline ECHO object and adds it to the target space.\n input:\n name?: string\n target?: Space\n targetNodeId?: string\n output: Pipeline.Pipeline\n effects: [echo:write]\n note: Delegates to SpaceOperation.AddObject with hidden=true.\n```\n\n```mdl\nop createResearchProject\n desc: Built-in template that scaffolds a Research pipeline with Mailbox, Contacts, Organizations, and Notes columns.\n input:\n db: Database.Database\n name?: string\n output: Pipeline.Pipeline\n effects: [echo:write, echo:read]\n note: |\n Requires an existing Mailbox object in the database.\n Returns null when no mailbox is found.\n Creates four ViewModel columns: Mailbox messages, Person contacts,\n Organization contacts, and Markdown documents.\n```\n\n## Features\n\n```mdl\nfeat F-1: Create Pipeline\n\n req F-1.1: A new Pipeline is created with an empty columns array.\n req F-1.2: The Pipeline is added to the active space via SpaceOperation.AddObject (hidden=true).\n req F-1.3: The Pipeline appears as an article in Composer.\n req F-1.4: Graph companions \"Invocations\" and \"Automation\" are added to the pipeline node.\n```\n\n```mdl\nfeat F-2: Manage Columns\n\n req F-2.1:\n when: user clicks \"+\" in the pipeline toolbar\n then: Settings companion panel opens\n\n req F-2.2:\n when: user clicks \"+\" in PipelineProperties\n then: a new Column is appended with an empty ViewModel and a Filter.nothing() query\n\n req F-2.3:\n when: user renames a column\n then: column.name updated immediately via Obj.update\n\n req F-2.4:\n when: user deletes a column\n then: Column removed from pipeline.columns; associated ViewModel ECHO object removed from db\n\n req F-2.5:\n when: user drags a column to a new position\n then: pipeline.columns reordered via arrayMove\n```\n\n```mdl\nfeat F-3: Column Query\n\n req F-3.1:\n when: user changes the query in ViewEditor\n then: column.view.query.ast updated; column.view.projection updated to match new schema\n\n req F-3.2:\n when: query targets a feed (queue DXN)\n then: Query.from({ feeds: [queue] }) applied; items ordered newest-first\n\n req F-3.3:\n when: query targets the space directly\n then: items ordered by ECHO insertion order\n```\n\n```mdl\nfeat F-4: Drag and Drop\n\n req F-4.1:\n when: user drags a Column tile\n then: pipeline.columns reordered; change persisted via Obj.update\n\n req F-4.2:\n when: user drags an item between columns\n then: column.order updated to reflect new position\n note: The item itself is not moved to a different ECHO location; only the order array changes.\n\n req F-4.3: Only Pipeline.Column objects are accepted as column drop targets (isColumn guard).\n```\n\n```mdl\nfeat F-5: Research Template\n\n req F-5.1:\n when: user creates a pipeline from the \"org-research\" template\n then: Research pipeline created with Mailbox, Contacts, Organizations, and Notes columns\n\n req F-5.2: Template creation fails gracefully when no Mailbox exists in the database.\n```\n\n```mdl\nfeat F-6: Invocation Companion\n\n req F-6.1:\n when: Pipeline article is open\n then: \"Invocations\" companion tab shows InvocationTraceContainer for the pipeline's database\n\n req F-6.2:\n when: Pipeline article is open\n then: \"Automation\" companion tab is available for wiring pipeline automation\n```\n\n## Acceptance\n\n```mdl\ntest T-1: New pipeline is empty\n given: user creates a Pipeline article\n then:\n - pipeline.columns is empty\n - pipeline appears in the space object list\n```\n\n```mdl\ntest T-2: Add column\n given: an open Pipeline with no columns\n when: user clicks \"+\" in PipelineProperties\n then:\n - pipeline.columns.length === 1\n - new column has name === \"\"\n - new column.view references a ViewModel with Filter.nothing() query\n```\n\n```mdl\ntest T-3: Rename column\n given: a pipeline with one column named \"Inbox\"\n when: user types \"Email\" in the column name field\n then: pipeline.columns[0].name === \"Email\"\n```\n\n```mdl\ntest T-4: Delete column\n given: a pipeline with one column\n when: user deletes the column\n then:\n - pipeline.columns is empty\n - associated ViewModel ECHO object no longer exists in db\n```\n\n```mdl\ntest T-5: Research template\n given: a space with an existing Mailbox\n when: user creates pipeline from \"org-research\" template\n then:\n - pipeline.columns.length === 4\n - column names are \"Mailbox\", \"Contacts\", \"Organizations\", \"Notes\"\n```\n\n```mdl\ntest T-6: Research template missing mailbox\n given: a space with no Mailbox\n when: createResearchProject is called\n then: returns null\n```\n\n---\n\n## Appendix: Extension Definitions\n\n```mdl\next type\n uri: org.dxos.mdl.type@1.0\n desc: A named data structure with typed fields and optional literals.\n fields:\n desc?: Prose\n fields?: FieldMap\n literals?: UnionList\n extends?: TypeRef[]\n```\n\n```mdl\next feat\n uri: org.dxos.mdl.feat@1.0\n desc: A named feature grouping one or more requirements.\n fields:\n desc?: Prose\n req: RequirementList\n nesting: self\n```\n\n```mdl\next test\n uri: org.dxos.mdl.test@1.0\n desc: An acceptance scenario expressed as given / when / then steps.\n fields:\n given?: Step | Step[]\n when?: Step | Step[]\n then: Step | Step[]\n tags?: TagList\n```\n\n```mdl\next component\n uri: org.dxos.mdl.component@1.0\n desc: A UI component with props, internal state, slots, actions, and events.\n fields:\n desc?: Prose\n props?: FieldMap\n state?: FieldMap\n slots?: FieldMap\n actions?: ActionMap\n emits?: EventMap\n layout?: CodeBlock\n```\n\n```mdl\next op\n uri: org.dxos.mdl.op@1.0\n desc: A named operation with typed inputs, outputs, and declared effects.\n fields:\n desc?: Prose\n input?: FieldMap\n output?: TypeExpr\n errors?: ErrorMap\n effects?: EffectList\n requires?: ServiceList\n note?: Prose\n```\n"],
|
|
5
|
-
"mappings": ";AAIA,SAASA,cAAc;AACvB,SAASC,iBAAiB;AAC1B,SAASC,gBAAgB;AAEzB,SAASC,
|
|
6
|
-
"names": ["Plugin", "AppPlugin", "Pipeline", "
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\nimport { AppPlugin } from '@dxos/app-toolkit';\nimport { Pipeline } from '@dxos/types';\n\nimport { CreateObject, ReactSurface } from '#capabilities';\nimport { meta } from '#meta';\nimport { translations } from '#translations';\n\n// eslint-disable-next-line import/no-relative-packages\nimport pluginSpec from '../PLUGIN.mdl?raw';\n\nexport const PipelinePlugin = Plugin.define(meta).pipe(\n AppPlugin.addCreateObjectModule({ activate: CreateObject }),\n AppPlugin.addSchemaModule({ schema: [Pipeline.Pipeline] }),\n AppPlugin.addSurfaceModule({ activate: ReactSurface }),\n AppPlugin.addTranslationsModule({ translations }),\n AppPlugin.addPluginAssetModule({\n asset: { pluginId: meta.profile.key, path: 'PLUGIN.mdl', content: pluginSpec, mimeType: 'application/x-mdl' },\n }),\n Plugin.make,\n);\n\nexport default PipelinePlugin;\n", "---\nid: org.dxos.plugin.pipeline\nname: PipelinePlugin\nversion: 0.1.0\n---\n\nA multi-column Kanban-style pipeline plugin for DXOS Composer.\nEach Pipeline holds an ordered list of Columns; each Column is backed by a ViewModel\nwhose query selects any ECHO object type from the space.\nObjects can be dragged between columns and the pipeline state persists collaboratively via ECHO.\n\n## Extensions\n\n| Term | URI |\n|-------------|--------------------------------|\n| `type` | `org.dxos.mdl.type@1.0` |\n| `feat` | `org.dxos.mdl.feat@1.0` |\n| `test` | `org.dxos.mdl.test@1.0` |\n| `component` | `org.dxos.mdl.component@1.0` |\n| `op` | `org.dxos.mdl.op@1.0` |\n\n## Types\n\n```mdl\ntype Pipeline\n desc: Root ECHO object (typename org.dxos.type.pipeline). Holds the ordered set of columns.\n echo-type: Pipeline.Pipeline\n fields:\n name?: string\n description?: string\n image?: URL\n columns: Column[]\n invariants:\n - columns maintain insertion order\n - columns array is not exposed in generated forms (FormInputAnnotation = false)\n```\n\n```mdl\ntype Column\n desc: One lane of the pipeline. Backed by a ViewModel whose query determines which objects appear.\n echo-type: Pipeline.Column\n fields:\n name: string\n view: Ref<View.View> # ViewModel containing query AST + JSON schema projection\n order: string[] # explicit ordering of item ids within this column\n invariants:\n - view is a Ref to a ViewModel ECHO object stored in the same space\n - order array tracks drag-reordering; items not in order appear after ordered items\n```\n\n```mdl\ntype ViewModel\n desc: Runtime ECHO object that holds a QueryAST and JSON schema projection for a Column.\n fields:\n query: { ast: QueryAST }\n projection: ProjectionSchema\n jsonSchema: JsonSchema\n```\n\n## Components\n\n```mdl\ncomponent PipelineArticle\n desc: Full-canvas article surface rendered for a Pipeline object.\n props:\n role: string\n subject: Pipeline.Pipeline\n attendableId?: string\n state:\n model: BoardModel<Pipeline.Column, Obj.Unknown>\n slots:\n toolbar: PipelineComponent.Toolbar\n content: PipelineComponent.Columns\n actions:\n addColumn() \u2192 void # opens Settings companion panel\n```\n\n```mdl\ncomponent PipelineComponent\n desc: Composable component set that renders the Kanban board.\n sub-components:\n Root # context provider for Item renderer and onAddColumn callback\n Content # wraps Board.Root with the board model\n Columns # renders Board.Content with PipelineColumn tiles; handles drag-drop via useEventHandlerAdapter\n Toolbar # single \"+\" IconButton gated by attention; triggers onAddColumn\n```\n\n```mdl\ncomponent PipelineProperties\n desc: Settings companion panel for managing pipeline columns.\n props:\n pipeline: Pipeline.Pipeline\n state:\n columns: Pipeline.Column[]\n expandedId?: string # id of the currently expanded column editor\n actions:\n addColumn() \u2192 void\n deleteColumn(column) \u2192 void\n renameColumn(column, name) \u2192 void\n moveColumn(from, to) \u2192 void\n setQuery(column, query, target?) \u2192 void\n layout: |\n \u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\n \u2502 \"Views\" heading \u2502\n \u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524\n \u2502 List of Column rows \u2502\n \u2502 drag handle | name | delete | \u2502\n \u2502 [expanded: Form + ViewEditor] \u2502\n \u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524\n \u2502 \"+\" add-column button \u2502\n \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\n```\n\n## Operations\n\n```mdl\nop createPipeline\n desc: Creates a new Pipeline ECHO object and adds it to the target space.\n input:\n name?: string\n target?: Space\n targetNodeId?: string\n output: Pipeline.Pipeline\n effects: [echo:write]\n note: Delegates to SpaceOperation.AddObject with hidden=true.\n```\n\n```mdl\nop createResearchProject\n desc: Built-in template that scaffolds a Research pipeline with Mailbox, Contacts, Organizations, and Notes columns.\n input:\n db: Database.Database\n name?: string\n output: Pipeline.Pipeline\n effects: [echo:write, echo:read]\n note: |\n Requires an existing Mailbox object in the database.\n Returns null when no mailbox is found.\n Creates four ViewModel columns: Mailbox messages, Person contacts,\n Organization contacts, and Markdown documents.\n```\n\n## Features\n\n```mdl\nfeat F-1: Create Pipeline\n\n req F-1.1: A new Pipeline is created with an empty columns array.\n req F-1.2: The Pipeline is added to the active space via SpaceOperation.AddObject (hidden=true).\n req F-1.3: The Pipeline appears as an article in Composer.\n req F-1.4: Graph companions \"Invocations\" and \"Automation\" are added to the pipeline node.\n```\n\n```mdl\nfeat F-2: Manage Columns\n\n req F-2.1:\n when: user clicks \"+\" in the pipeline toolbar\n then: Settings companion panel opens\n\n req F-2.2:\n when: user clicks \"+\" in PipelineProperties\n then: a new Column is appended with an empty ViewModel and a Filter.nothing() query\n\n req F-2.3:\n when: user renames a column\n then: column.name updated immediately via Obj.update\n\n req F-2.4:\n when: user deletes a column\n then: Column removed from pipeline.columns; associated ViewModel ECHO object removed from db\n\n req F-2.5:\n when: user drags a column to a new position\n then: pipeline.columns reordered via arrayMove\n```\n\n```mdl\nfeat F-3: Column Query\n\n req F-3.1:\n when: user changes the query in ViewEditor\n then: column.view.query.ast updated; column.view.projection updated to match new schema\n\n req F-3.2:\n when: query targets a feed (queue DXN)\n then: Query.from({ feeds: [queue] }) applied; items ordered newest-first\n\n req F-3.3:\n when: query targets the space directly\n then: items ordered by ECHO insertion order\n```\n\n```mdl\nfeat F-4: Drag and Drop\n\n req F-4.1:\n when: user drags a Column tile\n then: pipeline.columns reordered; change persisted via Obj.update\n\n req F-4.2:\n when: user drags an item between columns\n then: column.order updated to reflect new position\n note: The item itself is not moved to a different ECHO location; only the order array changes.\n\n req F-4.3: Only Pipeline.Column objects are accepted as column drop targets (isColumn guard).\n```\n\n```mdl\nfeat F-5: Research Template\n\n req F-5.1:\n when: user creates a pipeline from the \"org-research\" template\n then: Research pipeline created with Mailbox, Contacts, Organizations, and Notes columns\n\n req F-5.2: Template creation fails gracefully when no Mailbox exists in the database.\n```\n\n```mdl\nfeat F-6: Invocation Companion\n\n req F-6.1:\n when: Pipeline article is open\n then: \"Invocations\" companion tab shows InvocationTraceContainer for the pipeline's database\n\n req F-6.2:\n when: Pipeline article is open\n then: \"Automation\" companion tab is available for wiring pipeline automation\n```\n\n## Acceptance\n\n```mdl\ntest T-1: New pipeline is empty\n given: user creates a Pipeline article\n then:\n - pipeline.columns is empty\n - pipeline appears in the space object list\n```\n\n```mdl\ntest T-2: Add column\n given: an open Pipeline with no columns\n when: user clicks \"+\" in PipelineProperties\n then:\n - pipeline.columns.length === 1\n - new column has name === \"\"\n - new column.view references a ViewModel with Filter.nothing() query\n```\n\n```mdl\ntest T-3: Rename column\n given: a pipeline with one column named \"Inbox\"\n when: user types \"Email\" in the column name field\n then: pipeline.columns[0].name === \"Email\"\n```\n\n```mdl\ntest T-4: Delete column\n given: a pipeline with one column\n when: user deletes the column\n then:\n - pipeline.columns is empty\n - associated ViewModel ECHO object no longer exists in db\n```\n\n```mdl\ntest T-5: Research template\n given: a space with an existing Mailbox\n when: user creates pipeline from \"org-research\" template\n then:\n - pipeline.columns.length === 4\n - column names are \"Mailbox\", \"Contacts\", \"Organizations\", \"Notes\"\n```\n\n```mdl\ntest T-6: Research template missing mailbox\n given: a space with no Mailbox\n when: createResearchProject is called\n then: returns null\n```\n\n---\n\n## Appendix: Extension Definitions\n\n```mdl\next type\n uri: org.dxos.mdl.type@1.0\n desc: A named data structure with typed fields and optional literals.\n fields:\n desc?: Prose\n fields?: FieldMap\n literals?: UnionList\n extends?: TypeRef[]\n```\n\n```mdl\next feat\n uri: org.dxos.mdl.feat@1.0\n desc: A named feature grouping one or more requirements.\n fields:\n desc?: Prose\n req: RequirementList\n nesting: self\n```\n\n```mdl\next test\n uri: org.dxos.mdl.test@1.0\n desc: An acceptance scenario expressed as given / when / then steps.\n fields:\n given?: Step | Step[]\n when?: Step | Step[]\n then: Step | Step[]\n tags?: TagList\n```\n\n```mdl\next component\n uri: org.dxos.mdl.component@1.0\n desc: A UI component with props, internal state, slots, actions, and events.\n fields:\n desc?: Prose\n props?: FieldMap\n state?: FieldMap\n slots?: FieldMap\n actions?: ActionMap\n emits?: EventMap\n layout?: CodeBlock\n```\n\n```mdl\next op\n uri: org.dxos.mdl.op@1.0\n desc: A named operation with typed inputs, outputs, and declared effects.\n fields:\n desc?: Prose\n input?: FieldMap\n output?: TypeExpr\n errors?: ErrorMap\n effects?: EffectList\n requires?: ServiceList\n note?: Prose\n```\n"],
|
|
5
|
+
"mappings": ";AAIA,SAASA,cAAc;AACvB,SAASC,iBAAiB;AAC1B,SAASC,gBAAgB;AAEzB,SAASC,cAAcC,oBAAoB;AAC3C,SAASC,YAAY;AACrB,SAASC,oBAAoB;;;ACV7B;;;ADeO,IAAMC,iBAAiBC,OAAOC,OAAOC,IAAAA,EAAMC,KAChDC,UAAUC,sBAAsB;EAAEC,UAAUC;AAAa,CAAA,GACzDH,UAAUI,gBAAgB;EAAEC,QAAQ;IAACC,SAASA;;AAAU,CAAA,GACxDN,UAAUO,iBAAiB;EAAEL,UAAUM;AAAa,CAAA,GACpDR,UAAUS,sBAAsB;EAAEC;AAAa,CAAA,GAC/CV,UAAUW,qBAAqB;EAC7BC,OAAO;IAAEC,UAAUf,KAAKgB,QAAQC;IAAKC,MAAM;IAAcC,SAASC;IAAYC,UAAU;EAAoB;AAC9G,CAAA,GACAvB,OAAOwB,IAAI;AAGb,IAAA,yBAAezB;",
|
|
6
|
+
"names": ["Plugin", "AppPlugin", "Pipeline", "CreateObject", "ReactSurface", "meta", "translations", "PipelinePlugin", "Plugin", "define", "meta", "pipe", "AppPlugin", "addCreateObjectModule", "activate", "CreateObject", "addSchemaModule", "schema", "Pipeline", "addSurfaceModule", "ReactSurface", "addTranslationsModule", "translations", "addPluginAssetModule", "asset", "pluginId", "profile", "key", "path", "content", "pluginSpec", "mimeType", "make"]
|
|
7
7
|
}
|
|
@@ -2,11 +2,9 @@
|
|
|
2
2
|
import { Plugin } from "@dxos/app-framework";
|
|
3
3
|
import { AppPlugin } from "@dxos/app-toolkit";
|
|
4
4
|
import { Pipeline } from "@dxos/types";
|
|
5
|
-
import {
|
|
5
|
+
import { CreateObject } from "#capabilities";
|
|
6
6
|
import { meta } from "#meta";
|
|
7
|
-
var PipelinePlugin = Plugin.define(meta).pipe(AppPlugin.
|
|
8
|
-
activate: AppGraphBuilder
|
|
9
|
-
}), AppPlugin.addCreateObjectModule({
|
|
7
|
+
var PipelinePlugin = Plugin.define(meta).pipe(AppPlugin.addCreateObjectModule({
|
|
10
8
|
activate: CreateObject
|
|
11
9
|
}), AppPlugin.addSchemaModule({
|
|
12
10
|
schema: [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/PipelinePlugin.node.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\nimport { AppPlugin } from '@dxos/app-toolkit';\nimport { Pipeline } from '@dxos/types';\n\nimport {
|
|
5
|
-
"mappings": ";AAIA,SAASA,cAAc;AACvB,SAASC,iBAAiB;AAC1B,SAASC,gBAAgB;AAEzB,SAASC,
|
|
6
|
-
"names": ["Plugin", "AppPlugin", "Pipeline", "
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\nimport { AppPlugin } from '@dxos/app-toolkit';\nimport { Pipeline } from '@dxos/types';\n\nimport { CreateObject } from '#capabilities';\nimport { meta } from '#meta';\n\nexport const PipelinePlugin = Plugin.define(meta).pipe(\n AppPlugin.addCreateObjectModule({ activate: CreateObject }),\n AppPlugin.addSchemaModule({ schema: [Pipeline.Pipeline] }),\n Plugin.make,\n);\n\nexport default PipelinePlugin;\n"],
|
|
5
|
+
"mappings": ";AAIA,SAASA,cAAc;AACvB,SAASC,iBAAiB;AAC1B,SAASC,gBAAgB;AAEzB,SAASC,oBAAoB;AAC7B,SAASC,YAAY;AAEd,IAAMC,iBAAiBL,OAAOM,OAAOF,IAAAA,EAAMG,KAChDN,UAAUO,sBAAsB;EAAEC,UAAUN;AAAa,CAAA,GACzDF,UAAUS,gBAAgB;EAAEC,QAAQ;IAACT,SAASA;;AAAU,CAAA,GACxDF,OAAOY,IAAI;AAGb,IAAA,8BAAeP;",
|
|
6
|
+
"names": ["Plugin", "AppPlugin", "Pipeline", "CreateObject", "meta", "PipelinePlugin", "define", "pipe", "addCreateObjectModule", "activate", "addSchemaModule", "schema", "make"]
|
|
7
7
|
}
|
package/dist/lib/neutral/{PipelineProperties-JW7AWWU4.mjs → PipelineProperties-LDD4P4RA.mjs}
RENAMED
|
@@ -6,7 +6,7 @@ import { useTypeOptions } from "@dxos/app-toolkit/ui";
|
|
|
6
6
|
import { Filter, JsonSchema, Obj, Query, Ref, Scope, Tag } from "@dxos/echo";
|
|
7
7
|
import { useObject, useQuery } from "@dxos/react-client/echo";
|
|
8
8
|
import { useAsyncEffect, useTranslation } from "@dxos/react-ui";
|
|
9
|
-
import {
|
|
9
|
+
import { Form, FormFieldHeader, ViewEditor } from "@dxos/react-ui-form";
|
|
10
10
|
import { OrderedList } from "@dxos/react-ui-list";
|
|
11
11
|
import { ViewModel } from "@dxos/schema";
|
|
12
12
|
import { Pipeline } from "@dxos/types";
|
|
@@ -136,7 +136,7 @@ var PipelineProperties = ({ subject: pipeline }) => {
|
|
|
136
136
|
db,
|
|
137
137
|
updateColumns
|
|
138
138
|
]);
|
|
139
|
-
return /* @__PURE__ */ React.createElement(Form.Section, null, /* @__PURE__ */ React.createElement(
|
|
139
|
+
return /* @__PURE__ */ React.createElement(Form.Section, null, /* @__PURE__ */ React.createElement(FormFieldHeader, {
|
|
140
140
|
label: t("columns.label"),
|
|
141
141
|
add: {
|
|
142
142
|
label: t("add-column.label"),
|
|
@@ -179,4 +179,4 @@ var PipelineProperties = ({ subject: pipeline }) => {
|
|
|
179
179
|
export {
|
|
180
180
|
PipelineProperties as default
|
|
181
181
|
};
|
|
182
|
-
//# sourceMappingURL=PipelineProperties-
|
|
182
|
+
//# sourceMappingURL=PipelineProperties-LDD4P4RA.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/containers/PipelineProperties/PipelineProperties.tsx"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\nimport React, { useCallback, useMemo, useRef, useState } from 'react';\n\nimport { resolveSchemaWithRegistry } from '@dxos/app-toolkit/query';\nimport { AppSurface, useTypeOptions } from '@dxos/app-toolkit/ui';\nimport { EID, Filter, JsonSchema, Obj, Query, type QueryAST, Ref, Scope, Tag, type Type } from '@dxos/echo';\nimport { type Mutable } from '@dxos/echo/Obj';\nimport { SchemaEx } from '@dxos/effect';\nimport { useObject, useQuery } from '@dxos/react-client/echo';\nimport { useAsyncEffect, useTranslation } from '@dxos/react-ui';\nimport { Form, FormFieldHeader, ViewEditor } from '@dxos/react-ui-form';\nimport { OrderedList } from '@dxos/react-ui-list';\nimport { type ProjectionModel, ViewModel } from '@dxos/schema';\nimport { Pipeline } from '@dxos/types';\nimport { arrayMove } from '@dxos/util';\n\nimport { meta } from '#meta';\n\nconst ColumnFormSchema = Pipeline.Column.pipe(Schema.mutable, Schema.pick('name'));\n\nexport type PipelinePropertiesProps = AppSurface.ObjectPropertiesProps<Pipeline.Pipeline>;\n\n/**\n * Supports editing the pipeline view.\n */\nexport const PipelineProperties = ({ subject: pipeline }: PipelinePropertiesProps) => {\n const { t } = useTranslation(meta.profile.key);\n const db = Obj.getDatabase(pipeline);\n const [expandedId, setExpandedId] = useState<string>();\n const [columns, updateColumns] = useObject(pipeline, 'columns');\n const column = useMemo(() => columns.find((column) => column.view.uri === expandedId), [columns, expandedId]);\n const [view, updateView] = useObject(column?.view);\n const [type, setType] = useState<Type.AnyEntity>();\n const projectionRef = useRef<ProjectionModel>(null);\n const tags = useQuery(db, Filter.type(Tag.Tag));\n const types = useTypeOptions({\n db,\n annotation: {\n location: ['database', 'runtime'],\n kind: ['user'],\n },\n });\n\n useAsyncEffect(async () => {\n if (!view?.query || !db) {\n return;\n }\n\n const foundType = await resolveSchemaWithRegistry(db, view.query.ast);\n if (foundType && foundType !== type) {\n setType(() => foundType);\n }\n }, [db, view, type]);\n\n const handleMove = useCallback(\n (fromIndex: number, toIndex: number) =>\n updateColumns((columns) => {\n arrayMove(columns, fromIndex, toIndex);\n }),\n [updateColumns],\n );\n\n const handleQueryChanged = useCallback(\n async (newQuery: QueryAST.Query, target?: EID.EID) => {\n if (!view || !db) {\n return;\n }\n\n const queue = target;\n const query = queue ? Query.fromAst(newQuery).from([Scope.feed(String(queue))]) : Query.fromAst(newQuery);\n updateView((view) => {\n view.query.ast = query.ast as Mutable<typeof query.ast>;\n });\n const newType = await resolveSchemaWithRegistry(db, query.ast);\n if (!newType) {\n return;\n }\n\n const newView = ViewModel.make({\n query,\n jsonSchema: newType.jsonSchema,\n });\n updateView((view) => {\n view.projection = Obj.getSnapshot(newView).projection as Mutable<typeof view.projection>;\n });\n\n setType(() => newType);\n },\n [db, view, updateView, type],\n );\n\n const handleColumnValuesChanged = useCallback(\n (column: Pipeline.Column) =>\n (newValues: { name?: string }, { changed }: { changed: Record<SchemaEx.JsonPath, boolean> }) => {\n if (changed['name' as SchemaEx.JsonPath]) {\n const columnIndex = columns.findIndex((c) => c === column);\n if (columnIndex === -1) {\n return;\n }\n updateColumns((cols) => {\n cols[columnIndex].name = newValues.name ?? '';\n });\n }\n },\n [columns, updateColumns],\n );\n\n const handleDelete = useCallback(\n async (column: Pipeline.Column) => {\n if (column.view.uri === expandedId) {\n setExpandedId(undefined);\n }\n\n const index = columns.findIndex((l) => l === column);\n const viewToRemove = await column.view.load();\n updateColumns((columns) => {\n columns.splice(index, 1);\n });\n db?.remove(viewToRemove);\n },\n [expandedId, columns, updateColumns, db],\n );\n\n const handleAdd = useCallback(() => {\n if (!db) {\n return;\n }\n\n const newView = db.add(\n ViewModel.make({\n query: Query.select(Filter.nothing()),\n jsonSchema: JsonSchema.toJsonSchema(Schema.Struct({})),\n }),\n );\n\n updateColumns((columns) => {\n columns.push({\n name: '',\n // Type assertion needed due to QueryAST type variance.\n view: Ref.make(newView) as (typeof columns)[number]['view'],\n order: [],\n });\n });\n setExpandedId(newView.id);\n }, [db, updateColumns]);\n\n return (\n <Form.Section>\n <FormFieldHeader label={t('columns.label')} add={{ label: t('add-column.label'), onClick: handleAdd }} />\n <OrderedList.Root<Pipeline.Column>\n items={columns}\n isItem={Schema.is(Pipeline.Column)}\n getId={(column) => column.view.uri}\n onMove={handleMove}\n expandedId={expandedId}\n onExpandedChange={setExpandedId}\n >\n {({ items }) => (\n <OrderedList.Content>\n {items.map((column) => (\n <OrderedList.DetailItem<Pipeline.Column>\n key={column.view.uri}\n id={column.view.uri}\n item={column}\n title={column.name || t('untitled-column.title')}\n trailing={\n <OrderedList.DeleteButton\n label={t('delete-column.label')}\n onClick={() => handleDelete(column)}\n data-testid='column.delete'\n />\n }\n >\n {column.view.target && (\n <>\n <Form.Root\n schema={ColumnFormSchema}\n values={column}\n onValuesChanged={handleColumnValuesChanged(column)}\n >\n <Form.Content>\n <Form.FieldSet />\n </Form.Content>\n </Form.Root>\n <ViewEditor\n ref={projectionRef}\n mode='tag'\n readonly\n type={type}\n view={column.view.target}\n registry={db?.graph.registry}\n db={db}\n tags={tags}\n types={types}\n onQueryChanged={handleQueryChanged}\n />\n </>\n )}\n </OrderedList.DetailItem>\n ))}\n </OrderedList.Content>\n )}\n </OrderedList.Root>\n </Form.Section>\n );\n};\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": ["Schema", "React", "useCallback", "useMemo", "useRef", "useState", "resolveSchemaWithRegistry", "useTypeOptions", "Filter", "JsonSchema", "Obj", "Query", "Ref", "Scope", "Tag", "useObject", "useQuery", "useAsyncEffect", "useTranslation", "Form", "FormFieldHeader", "ViewEditor", "OrderedList", "ViewModel", "Pipeline", "arrayMove", "meta", "ColumnFormSchema", "Column", "pipe", "mutable", "pick", "PipelineProperties", "subject", "pipeline", "t", "profile", "key", "db", "getDatabase", "expandedId", "setExpandedId", "columns", "updateColumns", "column", "find", "view", "uri", "updateView", "type", "setType", "projectionRef", "tags", "types", "annotation", "location", "kind", "query", "foundType", "ast", "handleMove", "fromIndex", "toIndex", "handleQueryChanged", "newQuery", "target", "queue", "fromAst", "from", "feed", "String", "newType", "newView", "make", "jsonSchema", "projection", "getSnapshot", "handleColumnValuesChanged", "newValues", "changed", "columnIndex", "findIndex", "c", "cols", "name", "handleDelete", "undefined", "index", "l", "viewToRemove", "load", "splice", "remove", "handleAdd", "add", "select", "nothing", "toJsonSchema", "Struct", "push", "order", "id", "Section", "label", "onClick", "Root", "items", "isItem", "is", "getId", "onMove", "onExpandedChange", "Content", "map", "DetailItem", "item", "title", "trailing", "DeleteButton", "data-testid", "schema", "values", "onValuesChanged", "FieldSet", "ref", "mode", "readonly", "registry", "graph", "onQueryChanged"]
|
|
7
|
+
}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
// src/capabilities/index.ts
|
|
2
2
|
import { Capability } from "@dxos/app-framework";
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var NavigationResolver = Capability.lazy("NavigationResolver", () => import("../navigation-resolver-PB6XKEAG.mjs"));
|
|
6
|
-
var ReactSurface = Capability.lazy("ReactSurface", () => import("../react-surface-U7OOZHUQ.mjs"));
|
|
3
|
+
var CreateObject = Capability.lazy("CreateObject", () => import("../create-object-B4FHAFWY.mjs"));
|
|
4
|
+
var ReactSurface = Capability.lazy("ReactSurface", () => import("../react-surface-G6WO2XOI.mjs"));
|
|
7
5
|
export {
|
|
8
|
-
AppGraphBuilder,
|
|
9
6
|
CreateObject,
|
|
10
|
-
NavigationResolver,
|
|
11
7
|
ReactSurface
|
|
12
8
|
};
|
|
13
9
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/capabilities/index.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\n\nexport const
|
|
5
|
-
"mappings": ";AAIA,SAASA,kBAAkB;AAEpB,IAAMC,
|
|
6
|
-
"names": ["Capability", "
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\n\nexport const CreateObject = Capability.lazy('CreateObject', () => import('./create-object'));\nexport const ReactSurface = Capability.lazy('ReactSurface', () => import('./react-surface'));\n"],
|
|
5
|
+
"mappings": ";AAIA,SAASA,kBAAkB;AAEpB,IAAMC,eAAeD,WAAWE,KAAK,gBAAgB,MAAM,OAAO,+BAAA,CAAA;AAClE,IAAMC,eAAeH,WAAWE,KAAK,gBAAgB,MAAM,OAAO,+BAAA,CAAA;",
|
|
6
|
+
"names": ["Capability", "CreateObject", "lazy", "ReactSurface"]
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/components/PipelineComponent/PipelineColumn.tsx", "../../../../src/components/PipelineComponent/PipelineComponent.tsx"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { useComposedRefs } from '@radix-ui/react-compose-refs';\nimport React, { forwardRef, useMemo, useRef, useState } from 'react';\n\nimport { resolveSchemaWithRegistry } from '@dxos/app-toolkit/query';\nimport { Filter, Obj, Query, Type } from '@dxos/echo';\nimport { useObject } from '@dxos/react-client/echo';\nimport { Panel, useAsyncEffect, useTranslation } from '@dxos/react-ui';\nimport { Card, Icon, IconButton } from '@dxos/react-ui';\nimport { Menu } from '@dxos/react-ui-menu';\nimport { Board, Focus, Mosaic, type MosaicTileProps } from '@dxos/react-ui-mosaic';\nimport { ProjectionModel, createEchoChangeCallback } from '@dxos/schema';\nimport { type Pipeline } from '@dxos/types';\n\nimport { meta } from '#meta';\n\nimport { type ItemProps, usePipeline } from './PipelineComponent';\n\n//\n// PipelineColumn\n//\n\nconst PIPELINE_COLUMN_NAME = 'PipelineColumn';\n\nexport type PipelineColumnProps = Pick<MosaicTileProps<Pipeline.Column>, 'classNames' | 'location' | 'data' | 'debug'>;\n\n// TODO(wittjosiah): Support item DnD reordering (ordering needs to be stored on the view presentation collection).\nexport const PipelineColumn = ({ data: column, location, classNames, debug }: PipelineColumnProps) => {\n const { t } = useTranslation(meta.profile.key);\n const [dragHandle, setDragHandle] = useState<HTMLButtonElement | null>(null);\n // Subscribe to the view target for reactivity.\n const [viewSnapshot] = useObject(column.view);\n const view = column.view.target;\n const db = view && Obj.getDatabase(view);\n const { Item } = usePipeline(PIPELINE_COLUMN_NAME);\n const [type, setType] = useState<Type.AnyEntity>();\n const query = useMemo(() => {\n if (!view) {\n return Query.select(Filter.nothing());\n } else {\n // NOTE: Snapshot is required to prevent signal read in prohibited scope.\n // TODO(wittjosiah): Without stringify, filter.filters remains a proxied array.\n return Query.fromAst(JSON.parse(JSON.stringify(viewSnapshot?.query.ast)));\n }\n }, [JSON.stringify(viewSnapshot?.query.ast)]);\n\n useAsyncEffect(async () => {\n if (!query || !db) {\n return;\n }\n\n const type = await resolveSchemaWithRegistry(db, query.ast);\n setType(() => type);\n }, [db, query]);\n\n const projectionModel = useMemo(() => {\n if (!type || !view) {\n return undefined;\n }\n\n // Use the live jsonSchema reference for reactivity.\n const change = createEchoChangeCallback(view, Type.getDatabase(type) != null ? type : undefined);\n return new ProjectionModel({ view, baseSchema: type.jsonSchema, change });\n }, [type, view]);\n\n const PipelineTile = useMemo(() => {\n return forwardRef<HTMLDivElement, Pick<MosaicTileProps<Obj.Unknown>, 'classNames' | 'location' | 'data' | 'debug'>>(\n (props, ref) => <ItemTile {...props} itemProps={{ item: props.data, projectionModel }} ref={ref} />,\n );\n }, [projectionModel]);\n\n if (!view) {\n return null;\n }\n\n return (\n <Panel.Root asChild>\n <Board.Column.Root\n debug={debug}\n data={column}\n location={location}\n classNames={classNames}\n dragHandle={dragHandle}\n >\n <Panel.Toolbar asChild>\n <Board.Column.Header\n classNames='_opacity-10'\n label={column.name || t('untitled-column.title')}\n dragHandleRef={setDragHandle}\n />\n </Panel.Toolbar>\n <Panel.Content asChild>\n <Board.Column.Body data={column} Tile={PipelineTile} />\n </Panel.Content>\n </Board.Column.Root>\n </Panel.Root>\n );\n};\n\nPipelineColumn.displayName = PIPELINE_COLUMN_NAME;\n\n//\n// ItemTile\n//\n\nconst ITEM_TILE_NAME = 'ItemTile';\n\ntype ItemTileProps = Pick<MosaicTileProps<Obj.Unknown>, 'classNames' | 'location' | 'data' | 'debug'> & {\n itemProps: ItemProps;\n};\n\nconst ItemTile = forwardRef<HTMLDivElement, ItemTileProps>(\n ({ classNames, data, location, debug, itemProps }, forwardedRef) => {\n const rootRef = useRef<HTMLDivElement>(null);\n const composedRef = useComposedRefs<HTMLDivElement>(rootRef, forwardedRef);\n const { Item } = usePipeline(ITEM_TILE_NAME);\n const icon = Obj.getIcon(data)?.icon ?? 'ph--circle-dashed--regular';\n\n return (\n <Menu.Root>\n <Mosaic.Tile asChild id={data.id} data={data} location={location} debug={debug}>\n <Focus.Item asChild>\n <Card.Root classNames={classNames} ref={composedRef}>\n <Card.Header>\n <Card.Block>\n <Icon icon={icon} />\n </Card.Block>\n <Card.Title>{Obj.getLabel(data, { fallback: 'typename' })}</Card.Title>\n {/* TODO(wittjosiah): Reconcile with Card.Menu. */}\n <Card.Block end>\n <Menu.Trigger asChild>\n <IconButton iconOnly variant='ghost' icon='ph--dots-three-vertical--regular' label='Actions' />\n </Menu.Trigger>\n <Menu.Content />\n </Card.Block>\n </Card.Header>\n <Card.Body>\n <Item {...itemProps} />\n </Card.Body>\n </Card.Root>\n </Focus.Item>\n </Mosaic.Tile>\n </Menu.Root>\n );\n },\n);\n\nItemTile.displayName = ITEM_TILE_NAME;\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { useAtomValue } from '@effect-atom/atom-react';\nimport { createContext } from '@radix-ui/react-context';\nimport { Slot } from '@radix-ui/react-slot';\nimport React, { type FC, type PropsWithChildren } from 'react';\n\nimport { Obj } from '@dxos/echo';\nimport { Toolbar, type ToolbarRootProps, useTranslation } from '@dxos/react-ui';\nimport { composable, composableProps, slottable } from '@dxos/react-ui';\nimport { Board, type BoardModel, useBoard, useEventHandlerAdapter } from '@dxos/react-ui-mosaic';\nimport { type ProjectionModel } from '@dxos/schema';\nimport { type Pipeline } from '@dxos/types';\n\nimport { meta } from '#meta';\n\nimport { PipelineColumn } from './PipelineColumn';\n\ntype ItemProps = {\n item: Obj.Unknown;\n projectionModel?: ProjectionModel;\n};\n\nconst itemNoOp = ({ item }: ItemProps) => <span>{item.id}</span>;\n\n//\n// Root\n//\n\ntype PipelineContextValue = {\n Item: FC<ItemProps>;\n // TODO(wittjosiah): Support adding items.\n // If the created item doesn't match the current query, it will not be visible.\n // TODO(wittjosiah): onAddItem?: (schema: Schema.Schema.AnyNoContext) => void;\n onAddColumn?: () => void;\n};\n\ntype PipelineRootProps = PropsWithChildren<PipelineContextValue>;\n\nconst PIPELINE_ROOT = 'Pipeline.Root';\n\nconst [PipelineRootContext, usePipeline] = createContext<PipelineContextValue>(PIPELINE_ROOT, {\n Item: itemNoOp,\n});\n\nconst PipelineRoot = ({ children, ...contextValue }: PipelineRootProps) => (\n <PipelineRootContext {...contextValue}>{children}</PipelineRootContext>\n);\n\nPipelineRoot.displayName = PIPELINE_ROOT;\n\n//\n// Content\n//\n\nconst PIPELINE_CONTENT_NAME = 'Pipeline.Content';\n\ntype PipelineContentProps = PropsWithChildren<{\n model: BoardModel<Pipeline.Column, Obj.Unknown>;\n}>;\n\nconst PipelineContent = slottable<HTMLDivElement, PipelineContentProps>(\n ({ asChild, model, children, ...props }, forwardedRef) => {\n const Comp = asChild ? Slot : 'div';\n return (\n <Board.Root model={model}>\n <Comp {...composableProps(props)} ref={forwardedRef}>\n {children}\n </Comp>\n </Board.Root>\n );\n },\n);\n\nPipelineContent.displayName = PIPELINE_CONTENT_NAME;\n\n//\n// Columns\n//\n\nconst PIPELINE_COLUMNS_NAME = 'Pipeline.Columns';\n\ntype PipelineColumnsProps = {\n pipeline: Pipeline.Pipeline;\n};\n\nconst PipelineColumns = composable<HTMLDivElement, PipelineColumnsProps>(({ pipeline, ...props }) => {\n const { model } = useBoard(PIPELINE_COLUMNS_NAME);\n const columns = useAtomValue(model.columns);\n const eventHandler = useEventHandlerAdapter<Pipeline.Column, Obj.Unknown>({\n id: pipeline.id,\n // TODO(wittjosiah): Cast because columns array is readonly.\n items: columns as any,\n getId: model.getColumnId,\n get: (data) => data as unknown as Obj.Unknown,\n make: (object) => object as unknown as Pipeline.Column,\n canDrop: ({ source }) => model.isColumn(source.data),\n onChange: (mutate) => Obj.update(pipeline, (pipeline) => mutate(pipeline.columns)),\n });\n\n return <Board.Content {...props} id='pipeline' eventHandler={eventHandler} Tile={PipelineColumn} />;\n});\n\nPipelineColumns.displayName = PIPELINE_COLUMNS_NAME;\n\n//\n// Toolbar\n//\n\nconst PIPELINE_TOOLBAR_NAME = 'Pipeline.Toolbar';\n\nexport const PipelineToolbar = composable<HTMLDivElement, ToolbarRootProps>(({ children, ...props }, forwardedRef) => {\n const { t } = useTranslation(meta.profile.key);\n const { onAddColumn } = usePipeline(PIPELINE_TOOLBAR_NAME);\n\n return (\n <Toolbar.Root {...composableProps(props)} ref={forwardedRef}>\n <Toolbar.IconButton icon='ph--plus--regular' iconOnly label={t('add-column.label')} onClick={onAddColumn} />\n </Toolbar.Root>\n );\n});\n\nPipelineToolbar.displayName = PIPELINE_TOOLBAR_NAME;\n\n//\n// Project\n//\n\nexport const PipelineComponent = {\n Root: PipelineRoot,\n Content: PipelineContent,\n Columns: PipelineColumns,\n Toolbar: PipelineToolbar,\n};\n\nexport { usePipeline };\n\nexport type { ItemProps,
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { useComposedRefs } from '@radix-ui/react-compose-refs';\nimport React, { forwardRef, useMemo, useRef, useState } from 'react';\n\nimport { resolveSchemaWithRegistry } from '@dxos/app-toolkit/query';\nimport { Filter, Obj, Query, Type } from '@dxos/echo';\nimport { useObject } from '@dxos/react-client/echo';\nimport { Panel, useAsyncEffect, useTranslation } from '@dxos/react-ui';\nimport { Card, Icon, IconButton } from '@dxos/react-ui';\nimport { Menu } from '@dxos/react-ui-menu';\nimport { Board, Focus, Mosaic, type MosaicTileProps } from '@dxos/react-ui-mosaic';\nimport { ProjectionModel, createEchoChangeCallback } from '@dxos/schema';\nimport { type Pipeline } from '@dxos/types';\n\nimport { meta } from '#meta';\n\nimport { type ItemProps, usePipeline } from './PipelineComponent';\n\n//\n// PipelineColumn\n//\n\nconst PIPELINE_COLUMN_NAME = 'PipelineColumn';\n\nexport type PipelineColumnProps = Pick<MosaicTileProps<Pipeline.Column>, 'classNames' | 'location' | 'data' | 'debug'>;\n\n// TODO(wittjosiah): Support item DnD reordering (ordering needs to be stored on the view presentation collection).\nexport const PipelineColumn = ({ data: column, location, classNames, debug }: PipelineColumnProps) => {\n const { t } = useTranslation(meta.profile.key);\n const [dragHandle, setDragHandle] = useState<HTMLButtonElement | null>(null);\n // Subscribe to the view target for reactivity.\n const [viewSnapshot] = useObject(column.view);\n const view = column.view.target;\n const db = view && Obj.getDatabase(view);\n const { Item } = usePipeline(PIPELINE_COLUMN_NAME);\n const [type, setType] = useState<Type.AnyEntity>();\n const query = useMemo(() => {\n if (!view) {\n return Query.select(Filter.nothing());\n } else {\n // NOTE: Snapshot is required to prevent signal read in prohibited scope.\n // TODO(wittjosiah): Without stringify, filter.filters remains a proxied array.\n return Query.fromAst(JSON.parse(JSON.stringify(viewSnapshot?.query.ast)));\n }\n }, [JSON.stringify(viewSnapshot?.query.ast)]);\n\n useAsyncEffect(async () => {\n if (!query || !db) {\n return;\n }\n\n const type = await resolveSchemaWithRegistry(db, query.ast);\n setType(() => type);\n }, [db, query]);\n\n const projectionModel = useMemo(() => {\n if (!type || !view) {\n return undefined;\n }\n\n // Use the live jsonSchema reference for reactivity.\n const change = createEchoChangeCallback(view, Type.getDatabase(type) != null ? type : undefined);\n return new ProjectionModel({ view, baseSchema: type.jsonSchema, change });\n }, [type, view]);\n\n const PipelineTile = useMemo(() => {\n return forwardRef<HTMLDivElement, Pick<MosaicTileProps<Obj.Unknown>, 'classNames' | 'location' | 'data' | 'debug'>>(\n (props, ref) => <ItemTile {...props} itemProps={{ item: props.data, projectionModel }} ref={ref} />,\n );\n }, [projectionModel]);\n\n if (!view) {\n return null;\n }\n\n return (\n <Panel.Root asChild>\n <Board.Column.Root\n debug={debug}\n data={column}\n location={location}\n classNames={classNames}\n dragHandle={dragHandle}\n >\n <Panel.Toolbar asChild>\n <Board.Column.Header\n classNames='_opacity-10'\n label={column.name || t('untitled-column.title')}\n dragHandleRef={setDragHandle}\n />\n </Panel.Toolbar>\n <Panel.Content asChild>\n <Board.Column.Body data={column} Tile={PipelineTile} />\n </Panel.Content>\n </Board.Column.Root>\n </Panel.Root>\n );\n};\n\nPipelineColumn.displayName = PIPELINE_COLUMN_NAME;\n\n//\n// ItemTile\n//\n\nconst ITEM_TILE_NAME = 'ItemTile';\n\ntype ItemTileProps = Pick<MosaicTileProps<Obj.Unknown>, 'classNames' | 'location' | 'data' | 'debug'> & {\n itemProps: ItemProps;\n};\n\nconst ItemTile = forwardRef<HTMLDivElement, ItemTileProps>(\n ({ classNames, data, location, debug, itemProps }, forwardedRef) => {\n const rootRef = useRef<HTMLDivElement>(null);\n const composedRef = useComposedRefs<HTMLDivElement>(rootRef, forwardedRef);\n const { Item } = usePipeline(ITEM_TILE_NAME);\n const icon = Obj.getIcon(data)?.icon ?? 'ph--circle-dashed--regular';\n\n return (\n <Menu.Root>\n <Mosaic.Tile asChild id={data.id} data={data} location={location} debug={debug}>\n <Focus.Item asChild>\n <Card.Root classNames={classNames} ref={composedRef}>\n <Card.Header>\n <Card.Block>\n <Icon icon={icon} />\n </Card.Block>\n <Card.Title>{Obj.getLabel(data, { fallback: 'typename' })}</Card.Title>\n {/* TODO(wittjosiah): Reconcile with Card.Menu. */}\n <Card.Block end>\n <Menu.Trigger asChild>\n <IconButton iconOnly variant='ghost' icon='ph--dots-three-vertical--regular' label='Actions' />\n </Menu.Trigger>\n <Menu.Content />\n </Card.Block>\n </Card.Header>\n <Card.Body>\n <Item {...itemProps} />\n </Card.Body>\n </Card.Root>\n </Focus.Item>\n </Mosaic.Tile>\n </Menu.Root>\n );\n },\n);\n\nItemTile.displayName = ITEM_TILE_NAME;\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { useAtomValue } from '@effect-atom/atom-react';\nimport { createContext } from '@radix-ui/react-context';\nimport { Slot } from '@radix-ui/react-slot';\nimport React, { type FC, type PropsWithChildren } from 'react';\n\nimport { Obj } from '@dxos/echo';\nimport { Toolbar, type ToolbarRootProps, useTranslation } from '@dxos/react-ui';\nimport { composable, composableProps, slottable } from '@dxos/react-ui';\nimport { Board, type BoardModel, useBoard, useEventHandlerAdapter } from '@dxos/react-ui-mosaic';\nimport { type ProjectionModel } from '@dxos/schema';\nimport { type Pipeline } from '@dxos/types';\n\nimport { meta } from '#meta';\n\nimport { PipelineColumn } from './PipelineColumn';\n\ntype ItemProps = {\n item: Obj.Unknown;\n projectionModel?: ProjectionModel;\n};\n\nconst itemNoOp = ({ item }: ItemProps) => <span>{item.id}</span>;\n\n//\n// Root\n//\n\ntype PipelineContextValue = {\n Item: FC<ItemProps>;\n // TODO(wittjosiah): Support adding items.\n // If the created item doesn't match the current query, it will not be visible.\n // TODO(wittjosiah): onAddItem?: (schema: Schema.Schema.AnyNoContext) => void;\n onAddColumn?: () => void;\n};\n\ntype PipelineRootProps = PropsWithChildren<PipelineContextValue>;\n\nconst PIPELINE_ROOT = 'Pipeline.Root';\n\nconst [PipelineRootContext, usePipeline] = createContext<PipelineContextValue>(PIPELINE_ROOT, {\n Item: itemNoOp,\n});\n\nconst PipelineRoot = ({ children, ...contextValue }: PipelineRootProps) => (\n <PipelineRootContext {...contextValue}>{children}</PipelineRootContext>\n);\n\nPipelineRoot.displayName = PIPELINE_ROOT;\n\n//\n// Content\n//\n\nconst PIPELINE_CONTENT_NAME = 'Pipeline.Content';\n\ntype PipelineContentProps = PropsWithChildren<{\n model: BoardModel<Pipeline.Column, Obj.Unknown>;\n}>;\n\nconst PipelineContent = slottable<HTMLDivElement, PipelineContentProps>(\n ({ asChild, model, children, ...props }, forwardedRef) => {\n const Comp = asChild ? Slot : 'div';\n return (\n <Board.Root model={model}>\n <Comp {...composableProps(props)} ref={forwardedRef}>\n {children}\n </Comp>\n </Board.Root>\n );\n },\n);\n\nPipelineContent.displayName = PIPELINE_CONTENT_NAME;\n\n//\n// Columns\n//\n\nconst PIPELINE_COLUMNS_NAME = 'Pipeline.Columns';\n\ntype PipelineColumnsProps = {\n pipeline: Pipeline.Pipeline;\n};\n\nconst PipelineColumns = composable<HTMLDivElement, PipelineColumnsProps>(({ pipeline, ...props }) => {\n const { model } = useBoard(PIPELINE_COLUMNS_NAME);\n const columns = useAtomValue(model.columns);\n const eventHandler = useEventHandlerAdapter<Pipeline.Column, Obj.Unknown>({\n id: pipeline.id,\n // TODO(wittjosiah): Cast because columns array is readonly.\n items: columns as any,\n getId: model.getColumnId,\n get: (data) => data as unknown as Obj.Unknown,\n make: (object) => object as unknown as Pipeline.Column,\n canDrop: ({ source }) => model.isColumn(source.data),\n onChange: (mutate) => Obj.update(pipeline, (pipeline) => mutate(pipeline.columns)),\n });\n\n return <Board.Content {...props} id='pipeline' eventHandler={eventHandler} Tile={PipelineColumn} />;\n});\n\nPipelineColumns.displayName = PIPELINE_COLUMNS_NAME;\n\n//\n// Toolbar\n//\n\nconst PIPELINE_TOOLBAR_NAME = 'Pipeline.Toolbar';\n\nexport const PipelineToolbar = composable<HTMLDivElement, ToolbarRootProps>(({ children, ...props }, forwardedRef) => {\n const { t } = useTranslation(meta.profile.key);\n const { onAddColumn } = usePipeline(PIPELINE_TOOLBAR_NAME);\n\n return (\n <Toolbar.Root {...composableProps(props)} ref={forwardedRef}>\n <Toolbar.IconButton icon='ph--plus--regular' iconOnly label={t('add-column.label')} onClick={onAddColumn} />\n </Toolbar.Root>\n );\n});\n\nPipelineToolbar.displayName = PIPELINE_TOOLBAR_NAME;\n\n//\n// Project\n//\n\nexport const PipelineComponent = {\n Root: PipelineRoot,\n Content: PipelineContent,\n Columns: PipelineColumns,\n Toolbar: PipelineToolbar,\n};\n\nexport { usePipeline };\n\nexport type { ItemProps, PipelineColumnsProps, PipelineContentProps, PipelineContextValue, PipelineRootProps };\n"],
|
|
5
5
|
"mappings": "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",
|
|
6
6
|
"names": ["useComposedRefs", "React", "forwardRef", "useMemo", "useRef", "useState", "resolveSchemaWithRegistry", "Filter", "Obj", "Query", "Type", "useObject", "Panel", "useAsyncEffect", "useTranslation", "Card", "Icon", "IconButton", "Menu", "Board", "Focus", "Mosaic", "ProjectionModel", "createEchoChangeCallback", "meta", "useAtomValue", "createContext", "Slot", "React", "Obj", "Toolbar", "useTranslation", "composable", "composableProps", "slottable", "Board", "useBoard", "useEventHandlerAdapter", "meta", "itemNoOp", "item", "span", "id", "PIPELINE_ROOT", "PipelineRootContext", "usePipeline", "createContext", "Item", "PipelineRoot", "children", "contextValue", "displayName", "PIPELINE_CONTENT_NAME", "PipelineContent", "slottable", "asChild", "model", "props", "forwardedRef", "Comp", "Slot", "Board", "Root", "composableProps", "ref", "PIPELINE_COLUMNS_NAME", "PipelineColumns", "composable", "pipeline", "useBoard", "columns", "useAtomValue", "eventHandler", "useEventHandlerAdapter", "items", "getId", "getColumnId", "get", "data", "make", "object", "canDrop", "source", "isColumn", "onChange", "mutate", "Obj", "update", "Content", "Tile", "PipelineColumn", "PIPELINE_TOOLBAR_NAME", "PipelineToolbar", "t", "useTranslation", "meta", "profile", "key", "onAddColumn", "Toolbar", "IconButton", "icon", "iconOnly", "label", "onClick", "PipelineComponent", "Columns", "PIPELINE_COLUMN_NAME", "PipelineColumn", "data", "column", "location", "classNames", "debug", "t", "useTranslation", "meta", "profile", "key", "dragHandle", "setDragHandle", "useState", "viewSnapshot", "useObject", "view", "target", "db", "Obj", "getDatabase", "Item", "usePipeline", "type", "setType", "query", "useMemo", "Query", "select", "Filter", "nothing", "fromAst", "JSON", "parse", "stringify", "ast", "useAsyncEffect", "resolveSchemaWithRegistry", "projectionModel", "undefined", "change", "createEchoChangeCallback", "Type", "ProjectionModel", "baseSchema", "jsonSchema", "PipelineTile", "forwardRef", "props", "ref", "React", "ItemTile", "itemProps", "item", "Panel", "Root", "asChild", "Board", "Column", "Toolbar", "Header", "label", "name", "dragHandleRef", "Content", "Body", "Tile", "displayName", "ITEM_TILE_NAME", "forwardedRef", "rootRef", "useRef", "composedRef", "useComposedRefs", "icon", "getIcon", "Menu", "Mosaic", "id", "Focus", "Card", "Block", "Icon", "Title", "getLabel", "fallback", "end", "Trigger", "IconButton", "iconOnly", "variant"]
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/containers/index.ts
|
|
2
2
|
import { lazy } from "react";
|
|
3
3
|
var PipelineArticle = lazy(() => import("../PipelineArticle-DG4TCEML.mjs"));
|
|
4
|
-
var PipelineProperties = lazy(() => import("../PipelineProperties-
|
|
4
|
+
var PipelineProperties = lazy(() => import("../PipelineProperties-LDD4P4RA.mjs"));
|
|
5
5
|
export {
|
|
6
6
|
PipelineArticle,
|
|
7
7
|
PipelineProperties
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getPipelinesPath
|
|
3
|
-
} from "./chunk-OF66INHQ.mjs";
|
|
4
|
-
|
|
5
1
|
// src/capabilities/create-object.ts
|
|
6
2
|
import * as Effect from "effect/Effect";
|
|
7
3
|
import { Capability } from "@dxos/app-framework";
|
|
@@ -18,8 +14,7 @@ var create_object_default = Capability.makeModule(Effect.fnUntraced(function* ()
|
|
|
18
14
|
return yield* Operation.invoke(SpaceOperation.AddObject, {
|
|
19
15
|
object,
|
|
20
16
|
target: options.target,
|
|
21
|
-
|
|
22
|
-
targetNodeId: options.targetNodeId ?? getPipelinesPath(options.db.spaceId)
|
|
17
|
+
targetNodeId: options.targetNodeId
|
|
23
18
|
});
|
|
24
19
|
})
|
|
25
20
|
});
|
|
@@ -27,4 +22,4 @@ var create_object_default = Capability.makeModule(Effect.fnUntraced(function* ()
|
|
|
27
22
|
export {
|
|
28
23
|
create_object_default as default
|
|
29
24
|
};
|
|
30
|
-
//# sourceMappingURL=create-object-
|
|
25
|
+
//# sourceMappingURL=create-object-B4FHAFWY.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/create-object.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capability } from '@dxos/app-framework';\nimport { Operation } from '@dxos/compute';\nimport { Type } from '@dxos/echo';\nimport { SpaceOperation } from '@dxos/plugin-space';\nimport { SpaceCapabilities } from '@dxos/plugin-space';\nimport { Pipeline } from '@dxos/types';\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* () {\n return Capability.contributes(SpaceCapabilities.CreateObjectEntry, {\n id: Type.getTypename(Pipeline.Pipeline),\n createObject: (props, options) =>\n Effect.gen(function* () {\n const object = Pipeline.make(props);\n return yield* Operation.invoke(SpaceOperation.AddObject, {\n object,\n target: options.target,\n targetNodeId: options.targetNodeId,\n });\n }),\n });\n }),\n);\n"],
|
|
5
|
+
"mappings": ";AAIA,YAAYA,YAAY;AAExB,SAASC,kBAAkB;AAC3B,SAASC,iBAAiB;AAC1B,SAASC,YAAY;AACrB,SAASC,sBAAsB;AAC/B,SAASC,yBAAyB;AAClC,SAASC,gBAAgB;AAEzB,IAAA,wBAAeL,WAAWM,WACjBC,kBAAW,aAAA;AAChB,SAAOP,WAAWQ,YAAYJ,kBAAkBK,mBAAmB;IACjEC,IAAIR,KAAKS,YAAYN,SAASA,QAAQ;IACtCO,cAAc,CAACC,OAAOC,YACbC,WAAI,aAAA;AACT,YAAMC,SAASX,SAASY,KAAKJ,KAAAA;AAC7B,aAAO,OAAOZ,UAAUiB,OAAOf,eAAegB,WAAW;QACvDH;QACAI,QAAQN,QAAQM;QAChBC,cAAcP,QAAQO;MACxB,CAAA;IACF,CAAA;EACJ,CAAA;AACF,CAAA,CAAA;",
|
|
6
|
+
"names": ["Effect", "Capability", "Operation", "Type", "SpaceOperation", "SpaceCapabilities", "Pipeline", "makeModule", "fnUntraced", "contributes", "CreateObjectEntry", "id", "getTypename", "createObject", "props", "options", "gen", "object", "make", "invoke", "AddObject", "target", "targetNodeId"]
|
|
7
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"dx.config.ts":{"bytes":4179,"imports":[{"path":"@dxos/app-framework/config","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/meta.ts":{"bytes":799,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dx.config.ts","kind":"import-statement","original":"../dx.config"}],"format":"esm"},"src/index.ts":{"bytes":368,"imports":[{"path":"src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"raw-loader:/__w/dxos/dxos/packages/plugins/plugin-pipeline/PLUGIN.mdl":{"bytes":9702,"imports":[]},"src/PipelinePlugin.tsx":{"bytes":4348,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true},{"path":"raw-loader:/__w/dxos/dxos/packages/plugins/plugin-pipeline/PLUGIN.mdl","kind":"import-statement","original":"../PLUGIN.mdl?raw"}],"format":"esm"},"src/PipelinePlugin.node.ts":{"bytes":2333,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/PipelinePlugin.workerd.ts":{"bytes":1605,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/paths.ts":{"bytes":1295,"imports":[{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/app-graph-builder.ts":{"bytes":9885,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/client/echo","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"src/paths.ts","kind":"import-statement","original":"../paths"}],"format":"esm"},"src/capabilities/create-object.ts":{"bytes":3872,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true},{"path":"src/paths.ts","kind":"import-statement","original":"../paths"}],"format":"esm"},"src/capabilities/navigation-resolver.ts":{"bytes":1876,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/react-surface.tsx":{"bytes":7121,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/ui","kind":"import-statement","external":true},{"path":"@dxos/devtools","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true},{"path":"#containers","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/index.ts":{"bytes":1874,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/app-graph-builder.ts","kind":"dynamic-import","original":"./app-graph-builder"},{"path":"src/capabilities/create-object.ts","kind":"dynamic-import","original":"./create-object"},{"path":"src/capabilities/navigation-resolver.ts","kind":"dynamic-import","original":"./navigation-resolver"},{"path":"src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"src/components/PipelineComponent/PipelineComponent.tsx":{"bytes":12757,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"@radix-ui/react-context","kind":"import-statement","external":true},{"path":"@radix-ui/react-slot","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-mosaic","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"src/components/PipelineComponent/PipelineColumn.tsx","kind":"import-statement","original":"./PipelineColumn"}],"format":"esm"},"src/components/PipelineComponent/PipelineColumn.tsx":{"bytes":18367,"imports":[{"path":"@radix-ui/react-compose-refs","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/query","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-menu","kind":"import-statement","external":true},{"path":"@dxos/react-ui-mosaic","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"src/components/PipelineComponent/PipelineComponent.tsx","kind":"import-statement","original":"./PipelineComponent"}],"format":"esm"},"src/components/PipelineComponent/index.ts":{"bytes":503,"imports":[{"path":"src/components/PipelineComponent/PipelineColumn.tsx","kind":"import-statement","original":"./PipelineColumn"},{"path":"src/components/PipelineComponent/PipelineComponent.tsx","kind":"import-statement","original":"./PipelineComponent"}],"format":"esm"},"src/components/index.ts":{"bytes":401,"imports":[{"path":"src/components/PipelineComponent/index.ts","kind":"import-statement","original":"./PipelineComponent"}],"format":"esm"},"src/containers/PipelineArticle/PipelineArticle.tsx":{"bytes":9267,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/react-ui-menu","kind":"import-statement","external":true},{"path":"#components","kind":"import-statement","external":true},{"path":"#hooks","kind":"import-statement","external":true}],"format":"esm"},"src/containers/PipelineArticle/index.ts":{"bytes":524,"imports":[{"path":"src/containers/PipelineArticle/PipelineArticle.tsx","kind":"import-statement","original":"./PipelineArticle"}],"format":"esm"},"src/containers/PipelineProperties/PipelineProperties.tsx":{"bytes":23542,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/query","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/ui","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/containers/PipelineProperties/index.ts":{"bytes":542,"imports":[{"path":"src/containers/PipelineProperties/PipelineProperties.tsx","kind":"import-statement","original":"./PipelineProperties"}],"format":"esm"},"src/containers/index.ts":{"bytes":1028,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"src/containers/PipelineArticle/index.ts","kind":"dynamic-import","original":"./PipelineArticle"},{"path":"src/containers/PipelineProperties/index.ts","kind":"dynamic-import","original":"./PipelineProperties"}],"format":"esm"},"src/hooks/usePipelineBoardModel.ts":{"bytes":10252,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/query","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true}],"format":"esm"},"src/hooks/index.ts":{"bytes":409,"imports":[{"path":"src/hooks/usePipelineBoardModel.ts","kind":"import-statement","original":"./usePipelineBoardModel"}],"format":"esm"},"src/plugin.ts":{"bytes":865,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"#plugin","kind":"dynamic-import","external":true}],"format":"esm"},"src/translations.ts":{"bytes":4133,"imports":[{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/types/index.ts":{"bytes":288,"imports":[],"format":"esm"}},"outputs":{"dist/lib/neutral/PipelineArticle-DG4TCEML.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4878},"dist/lib/neutral/PipelineArticle-DG4TCEML.mjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/react-ui-menu","kind":"import-statement","external":true},{"path":"#components","kind":"import-statement","external":true},{"path":"#hooks","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/containers/PipelineArticle/index.ts","inputs":{"src/containers/PipelineArticle/PipelineArticle.tsx":{"bytesInOutput":2437},"src/containers/PipelineArticle/index.ts":{"bytesInOutput":0}},"bytes":2586},"dist/lib/neutral/PipelineProperties-JW7AWWU4.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":12684},"dist/lib/neutral/PipelineProperties-JW7AWWU4.mjs":{"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/query","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/ui","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/containers/PipelineProperties/index.ts","inputs":{"src/containers/PipelineProperties/PipelineProperties.tsx":{"bytesInOutput":5614},"src/containers/PipelineProperties/index.ts":{"bytesInOutput":0}},"bytes":5775},"dist/lib/neutral/meta.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/meta.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-RHSONY5F.mjs","kind":"import-statement"}],"exports":["meta"],"entryPoint":"src/meta.ts","inputs":{},"bytes":100},"dist/lib/neutral/plugin.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":445},"dist/lib/neutral/plugin.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-RHSONY5F.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#plugin","kind":"dynamic-import","external":true}],"exports":["PipelinePlugin"],"entryPoint":"src/plugin.ts","inputs":{"src/plugin.ts":{"bytesInOutput":111}},"bytes":241},"dist/lib/neutral/translations.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1954},"dist/lib/neutral/translations.mjs":{"imports":[{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["translations"],"entryPoint":"src/translations.ts","inputs":{"src/translations.ts":{"bytesInOutput":1144}},"bytes":1236},"dist/lib/neutral/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/types/index.mjs":{"imports":[],"exports":[],"entryPoint":"src/types/index.ts","inputs":{"src/types/index.ts":{"bytesInOutput":0}},"bytes":35},"dist/lib/neutral/app-graph-builder-DULKWFOE.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4827},"dist/lib/neutral/app-graph-builder-DULKWFOE.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-OF66INHQ.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/client/echo","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/app-graph-builder.ts","inputs":{"src/capabilities/app-graph-builder.ts":{"bytesInOutput":2455}},"bytes":2663},"dist/lib/neutral/create-object-VIRI2DY5.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2088},"dist/lib/neutral/create-object-VIRI2DY5.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-OF66INHQ.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/create-object.ts","inputs":{"src/capabilities/create-object.ts":{"bytesInOutput":870}},"bytes":1066},"dist/lib/neutral/chunk-OF66INHQ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":657},"dist/lib/neutral/chunk-OF66INHQ.mjs":{"imports":[{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true}],"exports":["getPipelinesPath"],"inputs":{"src/paths.ts":{"bytesInOutput":207}},"bytes":299},"dist/lib/neutral/navigation-resolver-PB6XKEAG.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1015},"dist/lib/neutral/navigation-resolver-PB6XKEAG.mjs":{"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/navigation-resolver.ts","inputs":{"src/capabilities/navigation-resolver.ts":{"bytesInOutput":426}},"bytes":580},"dist/lib/neutral/react-surface-U7OOZHUQ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3523},"dist/lib/neutral/react-surface-U7OOZHUQ.mjs":{"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/ui","kind":"import-statement","external":true},{"path":"@dxos/devtools","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true},{"path":"#containers","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/react-surface.tsx","inputs":{"src/capabilities/react-surface.tsx":{"bytesInOutput":1760}},"bytes":1897},"dist/lib/neutral/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-RHSONY5F.mjs","kind":"import-statement"}],"exports":["meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0}},"bytes":101},"dist/lib/neutral/chunk-RHSONY5F.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2250},"dist/lib/neutral/chunk-RHSONY5F.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/config","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["meta"],"inputs":{"src/meta.ts":{"bytesInOutput":102},"dx.config.ts":{"bytesInOutput":1430}},"bytes":1644},"dist/lib/neutral/PipelinePlugin.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":13047},"dist/lib/neutral/PipelinePlugin.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true}],"exports":["PipelinePlugin","default"],"entryPoint":"src/PipelinePlugin.tsx","inputs":{"src/PipelinePlugin.tsx":{"bytesInOutput":963},"raw-loader:/__w/dxos/dxos/packages/plugins/plugin-pipeline/PLUGIN.mdl":{"bytesInOutput":10553}},"bytes":11753},"dist/lib/neutral/PipelinePlugin.node.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1229},"dist/lib/neutral/PipelinePlugin.node.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["PipelinePlugin","default"],"entryPoint":"src/PipelinePlugin.node.ts","inputs":{"src/PipelinePlugin.node.ts":{"bytesInOutput":531}},"bytes":681},"dist/lib/neutral/PipelinePlugin.workerd.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":836},"dist/lib/neutral/PipelinePlugin.workerd.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["PipelinePlugin","default"],"entryPoint":"src/PipelinePlugin.workerd.ts","inputs":{"src/PipelinePlugin.workerd.ts":{"bytesInOutput":346}},"bytes":505},"dist/lib/neutral/capabilities/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":977},"dist/lib/neutral/capabilities/index.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/neutral/app-graph-builder-DULKWFOE.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/create-object-VIRI2DY5.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/navigation-resolver-PB6XKEAG.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/react-surface-U7OOZHUQ.mjs","kind":"dynamic-import"}],"exports":["AppGraphBuilder","CreateObject","NavigationResolver","ReactSurface"],"entryPoint":"src/capabilities/index.ts","inputs":{"src/capabilities/index.ts":{"bytesInOutput":474}},"bytes":622},"dist/lib/neutral/components/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":17058},"dist/lib/neutral/components/index.mjs":{"imports":[{"path":"@radix-ui/react-compose-refs","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/query","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-menu","kind":"import-statement","external":true},{"path":"@dxos/react-ui-mosaic","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"@radix-ui/react-context","kind":"import-statement","external":true},{"path":"@radix-ui/react-slot","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-mosaic","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["PipelineColumn","PipelineComponent","PipelineToolbar","usePipeline"],"entryPoint":"src/components/index.ts","inputs":{"src/components/PipelineComponent/PipelineColumn.tsx":{"bytesInOutput":4495},"src/components/PipelineComponent/PipelineComponent.tsx":{"bytesInOutput":2809},"src/components/PipelineComponent/index.ts":{"bytesInOutput":0},"src/components/index.ts":{"bytesInOutput":0}},"bytes":7593},"dist/lib/neutral/containers/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":572},"dist/lib/neutral/containers/index.mjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"dist/lib/neutral/PipelineArticle-DG4TCEML.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/PipelineProperties-JW7AWWU4.mjs","kind":"dynamic-import"}],"exports":["PipelineArticle","PipelineProperties"],"entryPoint":"src/containers/index.ts","inputs":{"src/containers/index.ts":{"bytesInOutput":190}},"bytes":304},"dist/lib/neutral/hooks/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5592},"dist/lib/neutral/hooks/index.mjs":{"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/query","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true}],"exports":["usePipelineBoardModel"],"entryPoint":"src/hooks/index.ts","inputs":{"src/hooks/usePipelineBoardModel.ts":{"bytesInOutput":2178},"src/hooks/index.ts":{"bytesInOutput":0}},"bytes":2287}}}
|
|
1
|
+
{"inputs":{"dx.config.ts":{"bytes":4179,"imports":[{"path":"@dxos/app-framework/config","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/meta.ts":{"bytes":799,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dx.config.ts","kind":"import-statement","original":"../dx.config"}],"format":"esm"},"src/index.ts":{"bytes":368,"imports":[{"path":"src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"raw-loader:/__w/dxos/dxos/packages/plugins/plugin-pipeline/PLUGIN.mdl":{"bytes":9702,"imports":[]},"src/PipelinePlugin.tsx":{"bytes":3662,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true},{"path":"raw-loader:/__w/dxos/dxos/packages/plugins/plugin-pipeline/PLUGIN.mdl","kind":"import-statement","original":"../PLUGIN.mdl?raw"}],"format":"esm"},"src/PipelinePlugin.node.ts":{"bytes":2020,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/PipelinePlugin.workerd.ts":{"bytes":1605,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/create-object.ts":{"bytes":3433,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/react-surface.tsx":{"bytes":4096,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/ui","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true},{"path":"#containers","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/index.ts":{"bytes":1130,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/create-object.ts","kind":"dynamic-import","original":"./create-object"},{"path":"src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"src/components/PipelineComponent/PipelineComponent.tsx":{"bytes":12757,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"@radix-ui/react-context","kind":"import-statement","external":true},{"path":"@radix-ui/react-slot","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-mosaic","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"src/components/PipelineComponent/PipelineColumn.tsx","kind":"import-statement","original":"./PipelineColumn"}],"format":"esm"},"src/components/PipelineComponent/PipelineColumn.tsx":{"bytes":18367,"imports":[{"path":"@radix-ui/react-compose-refs","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/query","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-menu","kind":"import-statement","external":true},{"path":"@dxos/react-ui-mosaic","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"src/components/PipelineComponent/PipelineComponent.tsx","kind":"import-statement","original":"./PipelineComponent"}],"format":"esm"},"src/components/PipelineComponent/index.ts":{"bytes":503,"imports":[{"path":"src/components/PipelineComponent/PipelineColumn.tsx","kind":"import-statement","original":"./PipelineColumn"},{"path":"src/components/PipelineComponent/PipelineComponent.tsx","kind":"import-statement","original":"./PipelineComponent"}],"format":"esm"},"src/components/index.ts":{"bytes":401,"imports":[{"path":"src/components/PipelineComponent/index.ts","kind":"import-statement","original":"./PipelineComponent"}],"format":"esm"},"src/containers/PipelineArticle/PipelineArticle.tsx":{"bytes":9267,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/react-ui-menu","kind":"import-statement","external":true},{"path":"#components","kind":"import-statement","external":true},{"path":"#hooks","kind":"import-statement","external":true}],"format":"esm"},"src/containers/PipelineArticle/index.ts":{"bytes":524,"imports":[{"path":"src/containers/PipelineArticle/PipelineArticle.tsx","kind":"import-statement","original":"./PipelineArticle"}],"format":"esm"},"src/containers/PipelineProperties/PipelineProperties.tsx":{"bytes":23566,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/query","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/ui","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/containers/PipelineProperties/index.ts":{"bytes":542,"imports":[{"path":"src/containers/PipelineProperties/PipelineProperties.tsx","kind":"import-statement","original":"./PipelineProperties"}],"format":"esm"},"src/containers/index.ts":{"bytes":1028,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"src/containers/PipelineArticle/index.ts","kind":"dynamic-import","original":"./PipelineArticle"},{"path":"src/containers/PipelineProperties/index.ts","kind":"dynamic-import","original":"./PipelineProperties"}],"format":"esm"},"src/hooks/usePipelineBoardModel.ts":{"bytes":10252,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/query","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true}],"format":"esm"},"src/hooks/index.ts":{"bytes":409,"imports":[{"path":"src/hooks/usePipelineBoardModel.ts","kind":"import-statement","original":"./usePipelineBoardModel"}],"format":"esm"},"src/plugin.ts":{"bytes":865,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"#plugin","kind":"dynamic-import","external":true}],"format":"esm"},"src/translations.ts":{"bytes":3832,"imports":[{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/types/index.ts":{"bytes":288,"imports":[],"format":"esm"}},"outputs":{"dist/lib/neutral/meta.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/meta.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-RHSONY5F.mjs","kind":"import-statement"}],"exports":["meta"],"entryPoint":"src/meta.ts","inputs":{},"bytes":100},"dist/lib/neutral/plugin.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":445},"dist/lib/neutral/plugin.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-RHSONY5F.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#plugin","kind":"dynamic-import","external":true}],"exports":["PipelinePlugin"],"entryPoint":"src/plugin.ts","inputs":{"src/plugin.ts":{"bytesInOutput":111}},"bytes":241},"dist/lib/neutral/translations.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1821},"dist/lib/neutral/translations.mjs":{"imports":[{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["translations"],"entryPoint":"src/translations.ts","inputs":{"src/translations.ts":{"bytesInOutput":1039}},"bytes":1131},"dist/lib/neutral/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/types/index.mjs":{"imports":[],"exports":[],"entryPoint":"src/types/index.ts","inputs":{"src/types/index.ts":{"bytesInOutput":0}},"bytes":35},"dist/lib/neutral/create-object-B4FHAFWY.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1794},"dist/lib/neutral/create-object-B4FHAFWY.mjs":{"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/create-object.ts","inputs":{"src/capabilities/create-object.ts":{"bytesInOutput":808}},"bytes":944},"dist/lib/neutral/react-surface-G6WO2XOI.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2065},"dist/lib/neutral/react-surface-G6WO2XOI.mjs":{"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/ui","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true},{"path":"#containers","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/react-surface.tsx","inputs":{"src/capabilities/react-surface.tsx":{"bytesInOutput":1009}},"bytes":1146},"dist/lib/neutral/PipelineArticle-DG4TCEML.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4878},"dist/lib/neutral/PipelineArticle-DG4TCEML.mjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/react-ui-menu","kind":"import-statement","external":true},{"path":"#components","kind":"import-statement","external":true},{"path":"#hooks","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/containers/PipelineArticle/index.ts","inputs":{"src/containers/PipelineArticle/PipelineArticle.tsx":{"bytesInOutput":2437},"src/containers/PipelineArticle/index.ts":{"bytesInOutput":0}},"bytes":2586},"dist/lib/neutral/PipelineProperties-LDD4P4RA.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":12700},"dist/lib/neutral/PipelineProperties-LDD4P4RA.mjs":{"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/query","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/ui","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/containers/PipelineProperties/index.ts","inputs":{"src/containers/PipelineProperties/PipelineProperties.tsx":{"bytesInOutput":5622},"src/containers/PipelineProperties/index.ts":{"bytesInOutput":0}},"bytes":5783},"dist/lib/neutral/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-RHSONY5F.mjs","kind":"import-statement"}],"exports":["meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0}},"bytes":101},"dist/lib/neutral/chunk-RHSONY5F.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2250},"dist/lib/neutral/chunk-RHSONY5F.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/config","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["meta"],"inputs":{"src/meta.ts":{"bytesInOutput":102},"dx.config.ts":{"bytesInOutput":1430}},"bytes":1644},"dist/lib/neutral/PipelinePlugin.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":12634},"dist/lib/neutral/PipelinePlugin.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true}],"exports":["PipelinePlugin","default"],"entryPoint":"src/PipelinePlugin.tsx","inputs":{"src/PipelinePlugin.tsx":{"bytesInOutput":789},"raw-loader:/__w/dxos/dxos/packages/plugins/plugin-pipeline/PLUGIN.mdl":{"bytesInOutput":10553}},"bytes":11579},"dist/lib/neutral/PipelinePlugin.node.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1058},"dist/lib/neutral/PipelinePlugin.node.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["PipelinePlugin","default"],"entryPoint":"src/PipelinePlugin.node.ts","inputs":{"src/PipelinePlugin.node.ts":{"bytesInOutput":452}},"bytes":602},"dist/lib/neutral/PipelinePlugin.workerd.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":836},"dist/lib/neutral/PipelinePlugin.workerd.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["PipelinePlugin","default"],"entryPoint":"src/PipelinePlugin.workerd.ts","inputs":{"src/PipelinePlugin.workerd.ts":{"bytesInOutput":346}},"bytes":505},"dist/lib/neutral/capabilities/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":600},"dist/lib/neutral/capabilities/index.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/neutral/create-object-B4FHAFWY.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/react-surface-G6WO2XOI.mjs","kind":"dynamic-import"}],"exports":["CreateObject","ReactSurface"],"entryPoint":"src/capabilities/index.ts","inputs":{"src/capabilities/index.ts":{"bytesInOutput":248}},"bytes":355},"dist/lib/neutral/components/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":17058},"dist/lib/neutral/components/index.mjs":{"imports":[{"path":"@radix-ui/react-compose-refs","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/query","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-menu","kind":"import-statement","external":true},{"path":"@dxos/react-ui-mosaic","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"@radix-ui/react-context","kind":"import-statement","external":true},{"path":"@radix-ui/react-slot","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-mosaic","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["PipelineColumn","PipelineComponent","PipelineToolbar","usePipeline"],"entryPoint":"src/components/index.ts","inputs":{"src/components/PipelineComponent/PipelineColumn.tsx":{"bytesInOutput":4495},"src/components/PipelineComponent/PipelineComponent.tsx":{"bytesInOutput":2809},"src/components/PipelineComponent/index.ts":{"bytesInOutput":0},"src/components/index.ts":{"bytesInOutput":0}},"bytes":7593},"dist/lib/neutral/containers/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":572},"dist/lib/neutral/containers/index.mjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"dist/lib/neutral/PipelineArticle-DG4TCEML.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/PipelineProperties-LDD4P4RA.mjs","kind":"dynamic-import"}],"exports":["PipelineArticle","PipelineProperties"],"entryPoint":"src/containers/index.ts","inputs":{"src/containers/index.ts":{"bytesInOutput":190}},"bytes":304},"dist/lib/neutral/hooks/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5592},"dist/lib/neutral/hooks/index.mjs":{"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/query","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true}],"exports":["usePipelineBoardModel"],"entryPoint":"src/hooks/index.ts","inputs":{"src/hooks/usePipelineBoardModel.ts":{"bytesInOutput":2178},"src/hooks/index.ts":{"bytesInOutput":0}},"bytes":2287}}}
|