@dxos/plugin-pipeline 0.8.4-main.c85a9c8dae → 0.8.4-main.dfabb4ec29
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/PipelineContainer-7MK2SS76.mjs +69 -0
- package/dist/lib/neutral/PipelineContainer-7MK2SS76.mjs.map +7 -0
- package/dist/lib/neutral/PipelinePlugin.mjs +26 -0
- package/dist/lib/neutral/PipelinePlugin.mjs.map +7 -0
- package/dist/lib/neutral/PipelinePlugin.node.mjs +21 -0
- package/dist/lib/neutral/PipelinePlugin.node.mjs.map +7 -0
- package/dist/lib/{browser/PipelineObjectSettings-D36OYVHW.mjs → neutral/PipelineProperties-RRPQ3V6I.mjs} +16 -30
- package/dist/lib/neutral/PipelineProperties-RRPQ3V6I.mjs.map +7 -0
- package/dist/lib/neutral/app-graph-builder-ZLGRWRJU.mjs +44 -0
- package/dist/lib/neutral/app-graph-builder-ZLGRWRJU.mjs.map +7 -0
- package/dist/lib/neutral/capabilities/index.mjs +11 -0
- package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
- package/dist/lib/{browser/chunk-QWNKLHBY.mjs → neutral/chunk-ULB5DKWO.mjs} +2 -9
- package/dist/lib/{browser/chunk-QWNKLHBY.mjs.map → neutral/chunk-ULB5DKWO.mjs.map} +3 -3
- package/dist/lib/neutral/components/index.mjs +206 -0
- package/dist/lib/neutral/components/index.mjs.map +7 -0
- package/dist/lib/neutral/containers/index.mjs +9 -0
- package/dist/lib/neutral/containers/index.mjs.map +7 -0
- package/dist/lib/neutral/create-object-ZJYFACOI.mjs +25 -0
- package/dist/lib/neutral/create-object-ZJYFACOI.mjs.map +7 -0
- package/dist/lib/neutral/hooks/index.mjs +70 -0
- package/dist/lib/neutral/hooks/index.mjs.map +7 -0
- package/dist/lib/neutral/index.mjs +7 -0
- package/dist/lib/neutral/meta.json +1 -0
- package/dist/lib/neutral/meta.mjs +7 -0
- package/dist/lib/neutral/meta.mjs.map +7 -0
- package/dist/lib/neutral/plugin.mjs +11 -0
- package/dist/lib/neutral/plugin.mjs.map +7 -0
- package/dist/lib/{browser/react-surface-ZGQVH4VX.mjs → neutral/react-surface-TW6TRMO6.mjs} +14 -25
- package/dist/lib/neutral/react-surface-TW6TRMO6.mjs.map +7 -0
- package/dist/lib/neutral/translations.mjs +38 -0
- package/dist/lib/neutral/translations.mjs.map +7 -0
- package/dist/lib/neutral/types/index.mjs +1 -0
- package/dist/lib/neutral/types/index.mjs.map +7 -0
- package/dist/types/src/PipelinePlugin.d.ts +1 -0
- package/dist/types/src/PipelinePlugin.d.ts.map +1 -1
- package/dist/types/src/PipelinePlugin.node.d.ts +4 -0
- package/dist/types/src/PipelinePlugin.node.d.ts.map +1 -0
- package/dist/types/src/PipelinePlugin.test.d.ts +2 -0
- package/dist/types/src/PipelinePlugin.test.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -0
- package/dist/types/src/capabilities/create-object.d.ts +11 -0
- package/dist/types/src/capabilities/create-object.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +9 -3
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
- package/dist/types/src/components/{PipelineColumn.d.ts → PipelineComponent/PipelineColumn.d.ts} +4 -4
- package/dist/types/src/components/PipelineComponent/PipelineColumn.d.ts.map +1 -0
- package/dist/types/src/components/PipelineComponent/PipelineComponent.d.ts +53 -0
- package/dist/types/src/components/PipelineComponent/PipelineComponent.d.ts.map +1 -0
- package/dist/types/src/components/PipelineComponent/PipelineComponent.stories.d.ts +62 -0
- package/dist/types/src/components/PipelineComponent/PipelineComponent.stories.d.ts.map +1 -0
- package/dist/types/src/components/PipelineComponent/index.d.ts +3 -0
- package/dist/types/src/components/PipelineComponent/index.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +0 -1
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/containers/PipelineContainer/PipelineContainer.d.ts +3 -3
- package/dist/types/src/containers/PipelineContainer/PipelineContainer.d.ts.map +1 -1
- package/dist/types/src/containers/PipelineContainer/PipelineContainer.stories.d.ts +52 -32
- package/dist/types/src/containers/PipelineContainer/PipelineContainer.stories.d.ts.map +1 -1
- package/dist/types/src/containers/PipelineContainer/index.d.ts +1 -2
- package/dist/types/src/containers/PipelineContainer/index.d.ts.map +1 -1
- package/dist/types/src/containers/PipelineProperties/PipelineProperties.d.ts +11 -0
- package/dist/types/src/containers/PipelineProperties/PipelineProperties.d.ts.map +1 -0
- package/dist/types/src/containers/PipelineProperties/index.d.ts +2 -0
- package/dist/types/src/containers/PipelineProperties/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +1 -1
- package/dist/types/src/containers/index.d.ts.map +1 -1
- package/dist/types/src/hooks/usePipelineBoardModel.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +0 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/plugin.d.ts +3 -0
- package/dist/types/src/plugin.d.ts.map +1 -0
- package/dist/types/src/templates/research.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +44 -25
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/index.d.ts +0 -2
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +100 -56
- package/src/PipelinePlugin.node.ts +19 -0
- package/src/PipelinePlugin.test.ts +27 -0
- package/src/PipelinePlugin.tsx +7 -31
- package/src/capabilities/app-graph-builder.ts +40 -0
- package/src/capabilities/create-object.ts +29 -0
- package/src/capabilities/index.ts +5 -3
- package/src/capabilities/{react-surface/react-surface.tsx → react-surface.tsx} +16 -15
- package/src/components/{PipelineColumn.tsx → PipelineComponent/PipelineColumn.tsx} +65 -34
- package/src/components/{PipelineComponent.stories.tsx → PipelineComponent/PipelineComponent.stories.tsx} +20 -18
- package/src/components/{PipelineComponent.tsx → PipelineComponent/PipelineComponent.tsx} +22 -13
- package/src/components/PipelineComponent/index.ts +6 -0
- package/src/components/index.ts +0 -1
- package/src/containers/PipelineContainer/PipelineContainer.stories.tsx +35 -34
- package/src/containers/PipelineContainer/PipelineContainer.tsx +14 -17
- package/src/containers/PipelineContainer/index.ts +1 -3
- package/src/containers/{PipelineObjectSettings/PipelineObjectSettings.tsx → PipelineProperties/PipelineProperties.tsx} +20 -20
- package/src/containers/PipelineProperties/index.ts +5 -0
- package/src/containers/index.ts +1 -1
- package/src/hooks/usePipelineBoardModel.ts +1 -1
- package/src/index.ts +0 -1
- package/src/meta.ts +1 -1
- package/src/plugin.ts +9 -0
- package/src/templates/research.ts +8 -7
- package/src/translations.ts +22 -21
- package/src/types/index.ts +0 -3
- package/dist/lib/browser/PipelineContainer-2ZYSZATA.mjs +0 -320
- package/dist/lib/browser/PipelineContainer-2ZYSZATA.mjs.map +0 -7
- package/dist/lib/browser/PipelineObjectSettings-D36OYVHW.mjs.map +0 -7
- package/dist/lib/browser/app-graph-builder-NUJB33F7.mjs +0 -65
- package/dist/lib/browser/app-graph-builder-NUJB33F7.mjs.map +0 -7
- package/dist/lib/browser/chunk-N6FZHYWT.mjs +0 -42
- package/dist/lib/browser/chunk-N6FZHYWT.mjs.map +0 -7
- package/dist/lib/browser/index.mjs +0 -109
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/browser/react-surface-ZGQVH4VX.mjs.map +0 -7
- package/dist/lib/browser/types/index.mjs +0 -10
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +0 -1
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts +0 -3
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/operation-resolver/index.d.ts +0 -2
- package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +0 -5
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface/index.d.ts +0 -3
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +0 -1
- package/dist/types/src/components/PipelineColumn.d.ts.map +0 -1
- package/dist/types/src/components/PipelineComponent.d.ts +0 -47
- package/dist/types/src/components/PipelineComponent.d.ts.map +0 -1
- package/dist/types/src/components/PipelineComponent.stories.d.ts +0 -42
- package/dist/types/src/components/PipelineComponent.stories.d.ts.map +0 -1
- package/dist/types/src/containers/PipelineObjectSettings/PipelineObjectSettings.d.ts +0 -11
- package/dist/types/src/containers/PipelineObjectSettings/PipelineObjectSettings.d.ts.map +0 -1
- package/dist/types/src/containers/PipelineObjectSettings/index.d.ts +0 -3
- package/dist/types/src/containers/PipelineObjectSettings/index.d.ts.map +0 -1
- package/dist/types/src/types/PipelineAction.d.ts +0 -25
- package/dist/types/src/types/PipelineAction.d.ts.map +0 -1
- package/src/capabilities/app-graph-builder/app-graph-builder.ts +0 -51
- package/src/capabilities/app-graph-builder/index.ts +0 -7
- package/src/capabilities/operation-resolver/index.ts +0 -5
- package/src/capabilities/operation-resolver/operation-resolver.ts +0 -29
- package/src/capabilities/react-surface/index.ts +0 -7
- package/src/containers/PipelineObjectSettings/index.ts +0 -7
- package/src/types/PipelineAction.ts +0 -29
- /package/dist/lib/{browser/types → neutral}/index.mjs.map +0 -0
- /package/dist/types/src/capabilities/{app-graph-builder/app-graph-builder.d.ts → app-graph-builder.d.ts} +0 -0
- /package/dist/types/src/capabilities/{react-surface/react-surface.d.ts → react-surface.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-pipeline",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.dfabb4ec29",
|
|
4
4
|
"description": "Pipeline plugin for Composer",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -12,26 +12,70 @@
|
|
|
12
12
|
"author": "DXOS.org",
|
|
13
13
|
"sideEffects": true,
|
|
14
14
|
"type": "module",
|
|
15
|
+
"imports": {
|
|
16
|
+
"#capabilities": {
|
|
17
|
+
"source": "./src/capabilities/index.ts",
|
|
18
|
+
"types": "./dist/types/src/capabilities/index.d.ts",
|
|
19
|
+
"default": "./dist/lib/neutral/capabilities/index.mjs"
|
|
20
|
+
},
|
|
21
|
+
"#components": {
|
|
22
|
+
"source": "./src/components/index.ts",
|
|
23
|
+
"types": "./dist/types/src/components/index.d.ts",
|
|
24
|
+
"default": "./dist/lib/neutral/components/index.mjs"
|
|
25
|
+
},
|
|
26
|
+
"#containers": {
|
|
27
|
+
"source": "./src/containers/index.ts",
|
|
28
|
+
"types": "./dist/types/src/containers/index.d.ts",
|
|
29
|
+
"default": "./dist/lib/neutral/containers/index.mjs"
|
|
30
|
+
},
|
|
31
|
+
"#hooks": {
|
|
32
|
+
"source": "./src/hooks/index.ts",
|
|
33
|
+
"types": "./dist/types/src/hooks/index.d.ts",
|
|
34
|
+
"default": "./dist/lib/neutral/hooks/index.mjs"
|
|
35
|
+
},
|
|
36
|
+
"#meta": {
|
|
37
|
+
"source": "./src/meta.ts",
|
|
38
|
+
"types": "./dist/types/src/meta.d.ts",
|
|
39
|
+
"default": "./dist/lib/neutral/meta.mjs"
|
|
40
|
+
},
|
|
41
|
+
"#plugin": {
|
|
42
|
+
"source": {
|
|
43
|
+
"node": "./src/PipelinePlugin.node.ts",
|
|
44
|
+
"default": "./src/PipelinePlugin.tsx"
|
|
45
|
+
},
|
|
46
|
+
"types": "./dist/types/src/PipelinePlugin.d.ts",
|
|
47
|
+
"node": "./dist/lib/neutral/PipelinePlugin.node.mjs",
|
|
48
|
+
"default": "./dist/lib/neutral/PipelinePlugin.mjs"
|
|
49
|
+
},
|
|
50
|
+
"#translations": {
|
|
51
|
+
"source": "./src/translations.ts",
|
|
52
|
+
"types": "./dist/types/src/translations.d.ts",
|
|
53
|
+
"default": "./dist/lib/neutral/translations.mjs"
|
|
54
|
+
},
|
|
55
|
+
"#types": {
|
|
56
|
+
"source": "./src/types/index.ts",
|
|
57
|
+
"types": "./dist/types/src/types/index.d.ts",
|
|
58
|
+
"default": "./dist/lib/neutral/types/index.mjs"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
15
61
|
"exports": {
|
|
16
62
|
".": {
|
|
17
63
|
"source": "./src/index.ts",
|
|
18
64
|
"types": "./dist/types/src/index.d.ts",
|
|
19
|
-
"
|
|
65
|
+
"default": "./dist/lib/neutral/index.mjs"
|
|
20
66
|
},
|
|
21
|
-
"./
|
|
22
|
-
"source": "./src/
|
|
23
|
-
"types": "./dist/types/src/
|
|
24
|
-
"
|
|
67
|
+
"./plugin": {
|
|
68
|
+
"source": "./src/plugin.ts",
|
|
69
|
+
"types": "./dist/types/src/plugin.d.ts",
|
|
70
|
+
"default": "./dist/lib/neutral/plugin.mjs"
|
|
71
|
+
},
|
|
72
|
+
"./translations": {
|
|
73
|
+
"source": "./src/translations.ts",
|
|
74
|
+
"types": "./dist/types/src/translations.d.ts",
|
|
75
|
+
"default": "./dist/lib/neutral/translations.mjs"
|
|
25
76
|
}
|
|
26
77
|
},
|
|
27
78
|
"types": "dist/types/src/index.d.ts",
|
|
28
|
-
"typesVersions": {
|
|
29
|
-
"*": {
|
|
30
|
-
"types": [
|
|
31
|
-
"dist/types/src/types/index.d.ts"
|
|
32
|
-
]
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
79
|
"files": [
|
|
36
80
|
"dist",
|
|
37
81
|
"src"
|
|
@@ -39,35 +83,35 @@
|
|
|
39
83
|
"dependencies": {
|
|
40
84
|
"@radix-ui/react-compose-refs": "1.1.1",
|
|
41
85
|
"@radix-ui/react-context": "1.1.1",
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"@dxos/app-
|
|
45
|
-
"@dxos/
|
|
46
|
-
"@dxos/
|
|
47
|
-
"@dxos/
|
|
48
|
-
"@dxos/
|
|
49
|
-
"@dxos/
|
|
50
|
-
"@dxos/
|
|
51
|
-
"@dxos/log": "0.8.4-main.
|
|
52
|
-
"@dxos/
|
|
53
|
-
"@dxos/
|
|
54
|
-
"@dxos/plugin-deck": "0.8.4-main.
|
|
55
|
-
"@dxos/plugin-graph": "0.8.4-main.
|
|
56
|
-
"@dxos/plugin-
|
|
57
|
-
"@dxos/plugin-
|
|
58
|
-
"@dxos/plugin-space": "0.8.4-main.
|
|
59
|
-
"@dxos/react-client": "0.8.4-main.
|
|
60
|
-
"@dxos/react-ui-attention": "0.8.4-main.
|
|
61
|
-
"@dxos/react-ui-components": "0.8.4-main.
|
|
62
|
-
"@dxos/react-ui-form": "0.8.4-main.
|
|
63
|
-
"@dxos/react-ui-
|
|
64
|
-
"@dxos/react-ui-
|
|
65
|
-
"@dxos/react-ui-
|
|
66
|
-
"@dxos/react-ui-stack": "0.8.4-main.
|
|
67
|
-
"@dxos/
|
|
68
|
-
"@dxos/schema": "0.8.4-main.
|
|
69
|
-
"@dxos/
|
|
70
|
-
"@dxos/
|
|
86
|
+
"@radix-ui/react-slot": "1.1.2",
|
|
87
|
+
"effect": "3.20.0",
|
|
88
|
+
"@dxos/app-toolkit": "0.8.4-main.dfabb4ec29",
|
|
89
|
+
"@dxos/assistant-toolkit": "0.8.4-main.dfabb4ec29",
|
|
90
|
+
"@dxos/async": "0.8.4-main.dfabb4ec29",
|
|
91
|
+
"@dxos/compute": "0.8.4-main.dfabb4ec29",
|
|
92
|
+
"@dxos/devtools": "0.8.4-main.dfabb4ec29",
|
|
93
|
+
"@dxos/echo": "0.8.4-main.dfabb4ec29",
|
|
94
|
+
"@dxos/echo-atom": "0.8.4-main.dfabb4ec29",
|
|
95
|
+
"@dxos/log": "0.8.4-main.dfabb4ec29",
|
|
96
|
+
"@dxos/echo-query": "0.8.4-main.dfabb4ec29",
|
|
97
|
+
"@dxos/plugin-client": "0.8.4-main.dfabb4ec29",
|
|
98
|
+
"@dxos/plugin-deck": "0.8.4-main.dfabb4ec29",
|
|
99
|
+
"@dxos/plugin-graph": "0.8.4-main.dfabb4ec29",
|
|
100
|
+
"@dxos/plugin-markdown": "0.8.4-main.dfabb4ec29",
|
|
101
|
+
"@dxos/plugin-inbox": "0.8.4-main.dfabb4ec29",
|
|
102
|
+
"@dxos/plugin-space": "0.8.4-main.dfabb4ec29",
|
|
103
|
+
"@dxos/react-client": "0.8.4-main.dfabb4ec29",
|
|
104
|
+
"@dxos/react-ui-attention": "0.8.4-main.dfabb4ec29",
|
|
105
|
+
"@dxos/react-ui-components": "0.8.4-main.dfabb4ec29",
|
|
106
|
+
"@dxos/react-ui-form": "0.8.4-main.dfabb4ec29",
|
|
107
|
+
"@dxos/react-ui-list": "0.8.4-main.dfabb4ec29",
|
|
108
|
+
"@dxos/react-ui-menu": "0.8.4-main.dfabb4ec29",
|
|
109
|
+
"@dxos/react-ui-mosaic": "0.8.4-main.dfabb4ec29",
|
|
110
|
+
"@dxos/react-ui-stack": "0.8.4-main.dfabb4ec29",
|
|
111
|
+
"@dxos/types": "0.8.4-main.dfabb4ec29",
|
|
112
|
+
"@dxos/schema": "0.8.4-main.dfabb4ec29",
|
|
113
|
+
"@dxos/util": "0.8.4-main.dfabb4ec29",
|
|
114
|
+
"@dxos/app-framework": "0.8.4-main.dfabb4ec29"
|
|
71
115
|
},
|
|
72
116
|
"devDependencies": {
|
|
73
117
|
"@effect-atom/atom-react": "^0.5.0",
|
|
@@ -75,25 +119,25 @@
|
|
|
75
119
|
"@types/react-dom": "~19.2.3",
|
|
76
120
|
"react": "~19.2.3",
|
|
77
121
|
"react-dom": "~19.2.3",
|
|
78
|
-
"vite": "^
|
|
79
|
-
"@dxos/
|
|
80
|
-
"@dxos/plugin-inbox": "0.8.4-main.
|
|
81
|
-
"@dxos/plugin-
|
|
82
|
-
"@dxos/plugin-
|
|
83
|
-
"@dxos/
|
|
84
|
-
"@dxos/
|
|
85
|
-
"@dxos/ui
|
|
86
|
-
"@dxos/
|
|
87
|
-
"@dxos/storybook-utils": "0.8.4-main.
|
|
88
|
-
"@dxos/
|
|
122
|
+
"vite": "^8.0.10",
|
|
123
|
+
"@dxos/echo-db": "0.8.4-main.dfabb4ec29",
|
|
124
|
+
"@dxos/plugin-inbox": "0.8.4-main.dfabb4ec29",
|
|
125
|
+
"@dxos/plugin-preview": "0.8.4-main.dfabb4ec29",
|
|
126
|
+
"@dxos/plugin-testing": "0.8.4-main.dfabb4ec29",
|
|
127
|
+
"@dxos/plugin-theme": "0.8.4-main.dfabb4ec29",
|
|
128
|
+
"@dxos/plugin-attention": "0.8.4-main.dfabb4ec29",
|
|
129
|
+
"@dxos/react-ui": "0.8.4-main.dfabb4ec29",
|
|
130
|
+
"@dxos/random": "0.8.4-main.dfabb4ec29",
|
|
131
|
+
"@dxos/storybook-utils": "0.8.4-main.dfabb4ec29",
|
|
132
|
+
"@dxos/ui-theme": "0.8.4-main.dfabb4ec29"
|
|
89
133
|
},
|
|
90
134
|
"peerDependencies": {
|
|
91
135
|
"@effect-atom/atom-react": "^0.5.0",
|
|
92
|
-
"effect": "3.
|
|
136
|
+
"effect": "3.20.0",
|
|
93
137
|
"react": "~19.2.3",
|
|
94
138
|
"react-dom": "~19.2.3",
|
|
95
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
96
|
-
"@dxos/ui-theme": "0.8.4-main.
|
|
139
|
+
"@dxos/react-ui": "0.8.4-main.dfabb4ec29",
|
|
140
|
+
"@dxos/ui-theme": "0.8.4-main.dfabb4ec29"
|
|
97
141
|
},
|
|
98
142
|
"publishConfig": {
|
|
99
143
|
"access": "public"
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2023 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { Plugin } from '@dxos/app-framework';
|
|
6
|
+
import { AppPlugin } from '@dxos/app-toolkit';
|
|
7
|
+
import { Pipeline } from '@dxos/types';
|
|
8
|
+
|
|
9
|
+
import { AppGraphBuilder, CreateObject } from '#capabilities';
|
|
10
|
+
import { meta } from '#meta';
|
|
11
|
+
|
|
12
|
+
export const PipelinePlugin = Plugin.define(meta).pipe(
|
|
13
|
+
AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),
|
|
14
|
+
AppPlugin.addCreateObjectModule({ activate: CreateObject }),
|
|
15
|
+
AppPlugin.addSchemaModule({ schema: [Pipeline.Pipeline] }),
|
|
16
|
+
Plugin.make,
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
export default PipelinePlugin;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { describe, test } from 'vitest';
|
|
6
|
+
|
|
7
|
+
import { ClientPlugin } from '@dxos/plugin-client/plugin';
|
|
8
|
+
import { createComposerTestApp } from '@dxos/plugin-testing/harness';
|
|
9
|
+
|
|
10
|
+
import { PipelinePlugin } from '#plugin';
|
|
11
|
+
|
|
12
|
+
import { meta } from './meta';
|
|
13
|
+
|
|
14
|
+
const moduleId = (name: string) => `${meta.id}.module.${name}`;
|
|
15
|
+
|
|
16
|
+
describe('PipelinePlugin', () => {
|
|
17
|
+
test('modules activate on the expected events', async ({ expect }) => {
|
|
18
|
+
await using harness = await createComposerTestApp({
|
|
19
|
+
plugins: [ClientPlugin({}), PipelinePlugin()],
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
// After autoStart: AppGraphBuilder, CreateObject, schema all auto-cascade.
|
|
23
|
+
expect(harness.manager.getActive()).toEqual(
|
|
24
|
+
expect.arrayContaining([moduleId('AppGraphBuilder'), moduleId('CreateObject'), moduleId('schema')]),
|
|
25
|
+
);
|
|
26
|
+
});
|
|
27
|
+
});
|
package/src/PipelinePlugin.tsx
CHANGED
|
@@ -2,45 +2,21 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
import { Capability, Plugin } from '@dxos/app-framework';
|
|
5
|
+
import { Plugin } from '@dxos/app-framework';
|
|
8
6
|
import { AppPlugin } from '@dxos/app-toolkit';
|
|
9
|
-
import { Operation } from '@dxos/operation';
|
|
10
|
-
import { SpaceCapabilities, SpaceEvents } from '@dxos/plugin-space';
|
|
11
|
-
import { type CreateObject } from '@dxos/plugin-space/types';
|
|
12
7
|
import { Pipeline } from '@dxos/types';
|
|
13
8
|
|
|
14
|
-
import { AppGraphBuilder,
|
|
15
|
-
import { meta } from '
|
|
16
|
-
import { translations } from '
|
|
17
|
-
import { PipelineOperation } from './types';
|
|
9
|
+
import { AppGraphBuilder, CreateObject, ReactSurface } from '#capabilities';
|
|
10
|
+
import { meta } from '#meta';
|
|
11
|
+
import { translations } from '#translations';
|
|
18
12
|
|
|
19
13
|
export const PipelinePlugin = Plugin.define(meta).pipe(
|
|
20
14
|
AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),
|
|
21
|
-
AppPlugin.
|
|
22
|
-
metadata: {
|
|
23
|
-
id: Pipeline.Pipeline.typename,
|
|
24
|
-
metadata: {
|
|
25
|
-
icon: 'ph--path--regular',
|
|
26
|
-
iconHue: 'purple',
|
|
27
|
-
createObject: ((props) => Effect.sync(() => Pipeline.make(props))) satisfies CreateObject,
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
}),
|
|
31
|
-
AppPlugin.addOperationResolverModule({ activate: OperationResolver }),
|
|
15
|
+
AppPlugin.addCreateObjectModule({ activate: CreateObject }),
|
|
32
16
|
AppPlugin.addSchemaModule({ schema: [Pipeline.Pipeline] }),
|
|
33
17
|
AppPlugin.addSurfaceModule({ activate: ReactSurface }),
|
|
34
18
|
AppPlugin.addTranslationsModule({ translations }),
|
|
35
|
-
Plugin.addModule({
|
|
36
|
-
id: 'on-space-created',
|
|
37
|
-
activatesOn: SpaceEvents.SpaceCreated,
|
|
38
|
-
activate: () =>
|
|
39
|
-
Effect.succeed(
|
|
40
|
-
Capability.contributes(SpaceCapabilities.OnCreateSpace, (params) =>
|
|
41
|
-
Operation.invoke(PipelineOperation.OnCreateSpace, params),
|
|
42
|
-
),
|
|
43
|
-
),
|
|
44
|
-
}),
|
|
45
19
|
Plugin.make,
|
|
46
20
|
);
|
|
21
|
+
|
|
22
|
+
export default PipelinePlugin;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
|
|
7
|
+
import { Capability } from '@dxos/app-framework';
|
|
8
|
+
import { AppCapabilities, AppNode } from '@dxos/app-toolkit';
|
|
9
|
+
import { GraphBuilder } from '@dxos/plugin-graph';
|
|
10
|
+
import { Pipeline } from '@dxos/types';
|
|
11
|
+
|
|
12
|
+
import { meta } from '#meta';
|
|
13
|
+
|
|
14
|
+
export default Capability.makeModule(
|
|
15
|
+
Effect.fnUntraced(function* () {
|
|
16
|
+
const extensions = yield* Effect.all([
|
|
17
|
+
GraphBuilder.createTypeExtension({
|
|
18
|
+
id: 'triggers',
|
|
19
|
+
type: Pipeline.Pipeline,
|
|
20
|
+
connector: () =>
|
|
21
|
+
Effect.succeed([
|
|
22
|
+
AppNode.makeCompanion({
|
|
23
|
+
id: 'invocations',
|
|
24
|
+
label: ['pipeline-invocations.label', { ns: meta.id }],
|
|
25
|
+
icon: 'ph--clock-countdown--regular',
|
|
26
|
+
data: 'invocations',
|
|
27
|
+
}),
|
|
28
|
+
AppNode.makeCompanion({
|
|
29
|
+
id: 'automation',
|
|
30
|
+
label: ['pipeline-automation.label', { ns: meta.id }],
|
|
31
|
+
icon: 'ph--lightning--regular',
|
|
32
|
+
data: 'automation',
|
|
33
|
+
}),
|
|
34
|
+
]),
|
|
35
|
+
}),
|
|
36
|
+
]);
|
|
37
|
+
|
|
38
|
+
return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);
|
|
39
|
+
}),
|
|
40
|
+
);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2023 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
|
|
7
|
+
import { Capability } from '@dxos/app-framework';
|
|
8
|
+
import { Operation } from '@dxos/compute';
|
|
9
|
+
import { SpaceOperation } from '@dxos/plugin-space';
|
|
10
|
+
import { SpaceCapabilities } from '@dxos/plugin-space';
|
|
11
|
+
import { Pipeline } from '@dxos/types';
|
|
12
|
+
|
|
13
|
+
export default Capability.makeModule(
|
|
14
|
+
Effect.fnUntraced(function* () {
|
|
15
|
+
return Capability.contributes(SpaceCapabilities.CreateObjectEntry, {
|
|
16
|
+
id: Pipeline.Pipeline.typename,
|
|
17
|
+
createObject: (props, options) =>
|
|
18
|
+
Effect.gen(function* () {
|
|
19
|
+
const object = Pipeline.make(props);
|
|
20
|
+
return yield* Operation.invoke(SpaceOperation.AddObject, {
|
|
21
|
+
object,
|
|
22
|
+
target: options.target,
|
|
23
|
+
hidden: true,
|
|
24
|
+
targetNodeId: options.targetNodeId,
|
|
25
|
+
});
|
|
26
|
+
}),
|
|
27
|
+
});
|
|
28
|
+
}),
|
|
29
|
+
);
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export
|
|
5
|
+
import { Capability } from '@dxos/app-framework';
|
|
6
|
+
|
|
7
|
+
export const AppGraphBuilder = Capability.lazy('AppGraphBuilder', () => import('./app-graph-builder'));
|
|
8
|
+
export const CreateObject = Capability.lazy('CreateObject', () => import('./create-object'));
|
|
9
|
+
export const ReactSurface = Capability.lazy('ReactSurface', () => import('./react-surface'));
|
|
@@ -7,33 +7,35 @@ import React from 'react';
|
|
|
7
7
|
|
|
8
8
|
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
9
9
|
import { Surface } from '@dxos/app-framework/ui';
|
|
10
|
+
import { AppSurface } from '@dxos/app-toolkit/ui';
|
|
10
11
|
import { InvocationTraceContainer } from '@dxos/devtools';
|
|
11
12
|
import { Obj } from '@dxos/echo';
|
|
12
13
|
import { Panel } from '@dxos/react-ui';
|
|
13
14
|
import { Pipeline } from '@dxos/types';
|
|
14
15
|
|
|
15
|
-
import { PipelineContainer,
|
|
16
|
-
import { meta } from '../../meta';
|
|
16
|
+
import { PipelineContainer, PipelineProperties } from '#containers';
|
|
17
17
|
|
|
18
18
|
export default Capability.makeModule(() =>
|
|
19
19
|
Effect.succeed(
|
|
20
20
|
Capability.contributes(Capabilities.ReactSurface, [
|
|
21
21
|
Surface.create({
|
|
22
|
-
id:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
id: 'root',
|
|
23
|
+
filter: AppSurface.object(AppSurface.Article, Pipeline.Pipeline),
|
|
24
|
+
component: ({ data, role }) => (
|
|
25
|
+
<PipelineContainer role={role} subject={data.subject} attendableId={data.attendableId} />
|
|
26
|
+
),
|
|
26
27
|
}),
|
|
27
28
|
Surface.create({
|
|
28
|
-
id:
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
id: 'companion.invocations',
|
|
30
|
+
filter: AppSurface.allOf(
|
|
31
|
+
AppSurface.literal(AppSurface.Article, 'invocations'),
|
|
32
|
+
AppSurface.companion(AppSurface.Article, Pipeline.Pipeline),
|
|
33
|
+
),
|
|
32
34
|
component: ({ data, role }) => {
|
|
33
35
|
const db = Obj.getDatabase(data.companionTo);
|
|
34
36
|
// TODO(wittjosiah): Filter the invocations to those relevant to the project.
|
|
35
37
|
return (
|
|
36
|
-
<Panel.Root role={role} className='dx-
|
|
38
|
+
<Panel.Root role={role} className='dx-document'>
|
|
37
39
|
<Panel.Content asChild>
|
|
38
40
|
<InvocationTraceContainer db={db} detailAxis='block' />
|
|
39
41
|
</Panel.Content>
|
|
@@ -42,10 +44,9 @@ export default Capability.makeModule(() =>
|
|
|
42
44
|
},
|
|
43
45
|
}),
|
|
44
46
|
Surface.create({
|
|
45
|
-
id:
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
component: ({ data }) => <PipelineObjectSettings pipeline={data.subject} />,
|
|
47
|
+
id: 'object-properties',
|
|
48
|
+
filter: AppSurface.object(AppSurface.ObjectProperties, Pipeline.Pipeline),
|
|
49
|
+
component: ({ data }) => <PipelineProperties pipeline={data.subject} />,
|
|
49
50
|
}),
|
|
50
51
|
]),
|
|
51
52
|
),
|
|
@@ -3,20 +3,22 @@
|
|
|
3
3
|
//
|
|
4
4
|
|
|
5
5
|
import { useComposedRefs } from '@radix-ui/react-compose-refs';
|
|
6
|
+
import * as Function from 'effect/Function';
|
|
7
|
+
import * as Option from 'effect/Option';
|
|
6
8
|
import type * as Schema from 'effect/Schema';
|
|
7
9
|
import React, { forwardRef, useMemo, useRef, useState } from 'react';
|
|
8
10
|
|
|
9
|
-
import {
|
|
10
|
-
import { JsonSchema, Obj, Query, Type } from '@dxos/echo';
|
|
11
|
-
import { resolveSchemaWithRegistry } from '@dxos/plugin-space';
|
|
11
|
+
import { resolveSchemaWithRegistry } from '@dxos/app-toolkit/query';
|
|
12
|
+
import { Annotation, JsonSchema, Obj, Query, Type } from '@dxos/echo';
|
|
12
13
|
import { Filter, getSpace, useObject } from '@dxos/react-client/echo';
|
|
13
|
-
import { useAsyncEffect, useTranslation } from '@dxos/react-ui';
|
|
14
|
+
import { Panel, Toolbar, useAsyncEffect, useTranslation } from '@dxos/react-ui';
|
|
14
15
|
import { Card } from '@dxos/react-ui';
|
|
16
|
+
import { Menu } from '@dxos/react-ui-menu';
|
|
15
17
|
import { Board, Focus, Mosaic, type MosaicTileProps } from '@dxos/react-ui-mosaic';
|
|
16
18
|
import { ProjectionModel, createEchoChangeCallback } from '@dxos/schema';
|
|
17
19
|
import { type Pipeline } from '@dxos/types';
|
|
18
20
|
|
|
19
|
-
import { meta } from '
|
|
21
|
+
import { meta } from '#meta';
|
|
20
22
|
|
|
21
23
|
import { type ItemProps, usePipeline } from './PipelineComponent';
|
|
22
24
|
|
|
@@ -31,7 +33,7 @@ export type PipelineColumnProps = Pick<MosaicTileProps<Pipeline.Column>, 'classN
|
|
|
31
33
|
// TODO(wittjosiah): Support item DnD reordering (ordering needs to be stored on the view presentation collection).
|
|
32
34
|
export const PipelineColumn = ({ data: column, location, classNames, debug }: PipelineColumnProps) => {
|
|
33
35
|
const { t } = useTranslation(meta.id);
|
|
34
|
-
const
|
|
36
|
+
const [dragHandle, setDragHandle] = useState<HTMLButtonElement | null>(null);
|
|
35
37
|
// Subscribe to the view target for reactivity.
|
|
36
38
|
const [viewSnapshot] = useObject(column.view);
|
|
37
39
|
const view = column.view.target;
|
|
@@ -68,27 +70,37 @@ export const PipelineColumn = ({ data: column, location, classNames, debug }: Pi
|
|
|
68
70
|
return new ProjectionModel({ view, baseSchema: jsonSchema, change });
|
|
69
71
|
}, [schema, view]);
|
|
70
72
|
|
|
71
|
-
const
|
|
73
|
+
const PipelineTile = useMemo(() => {
|
|
72
74
|
return forwardRef<HTMLDivElement, Pick<MosaicTileProps<Obj.Unknown>, 'classNames' | 'location' | 'data' | 'debug'>>(
|
|
73
|
-
(props, ref) => <ItemTile {...props}
|
|
75
|
+
(props, ref) => <ItemTile {...props} itemProps={{ item: props.data, projectionModel }} ref={ref} />,
|
|
74
76
|
);
|
|
75
|
-
}, [
|
|
77
|
+
}, [projectionModel]);
|
|
76
78
|
|
|
77
79
|
if (!view) {
|
|
78
80
|
return null;
|
|
79
81
|
}
|
|
80
82
|
|
|
81
83
|
return (
|
|
82
|
-
<
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
84
|
+
<Panel.Root asChild>
|
|
85
|
+
<Board.Column.Root
|
|
86
|
+
debug={debug}
|
|
87
|
+
data={column}
|
|
88
|
+
location={location}
|
|
89
|
+
classNames={classNames}
|
|
90
|
+
dragHandle={dragHandle}
|
|
91
|
+
>
|
|
92
|
+
<Panel.Toolbar asChild>
|
|
93
|
+
<Board.Column.Header
|
|
94
|
+
classNames='_opacity-10'
|
|
95
|
+
label={column.name || t('untitled-view.title')}
|
|
96
|
+
dragHandleRef={setDragHandle}
|
|
97
|
+
/>
|
|
98
|
+
</Panel.Toolbar>
|
|
99
|
+
<Panel.Content asChild>
|
|
100
|
+
<Board.Column.Body data={column} Tile={PipelineTile} />
|
|
101
|
+
</Panel.Content>
|
|
102
|
+
</Board.Column.Root>
|
|
103
|
+
</Panel.Root>
|
|
92
104
|
);
|
|
93
105
|
};
|
|
94
106
|
|
|
@@ -109,23 +121,42 @@ const ItemTile = forwardRef<HTMLDivElement, ItemTileProps>(
|
|
|
109
121
|
const rootRef = useRef<HTMLDivElement>(null);
|
|
110
122
|
const composedRef = useComposedRefs<HTMLDivElement>(rootRef, forwardedRef);
|
|
111
123
|
const { Item } = usePipeline(ITEM_TILE_NAME);
|
|
112
|
-
const
|
|
124
|
+
const icon = Function.pipe(
|
|
125
|
+
Obj.getSchema(data),
|
|
126
|
+
Option.fromNullable,
|
|
127
|
+
Option.flatMap(Annotation.IconAnnotation.get),
|
|
128
|
+
Option.map(({ icon }) => icon),
|
|
129
|
+
Option.getOrElse(() => 'ph--placeholder--regular'),
|
|
130
|
+
);
|
|
113
131
|
|
|
114
132
|
return (
|
|
115
|
-
<
|
|
116
|
-
<
|
|
117
|
-
<
|
|
118
|
-
<Card.
|
|
119
|
-
<Card.
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
133
|
+
<Menu.Root>
|
|
134
|
+
<Mosaic.Tile asChild id={data.id} data={data} location={location} debug={debug}>
|
|
135
|
+
<Focus.Item asChild>
|
|
136
|
+
<Card.Root classNames={classNames} ref={composedRef}>
|
|
137
|
+
<Card.Toolbar>
|
|
138
|
+
<Card.Icon icon={icon} />
|
|
139
|
+
<Card.Title>{Obj.getLabel(data)}</Card.Title>
|
|
140
|
+
{/* TODO(wittjosiah): Reconcile with Card.Menu. */}
|
|
141
|
+
<Card.IconBlock padding>
|
|
142
|
+
<Menu.Trigger asChild>
|
|
143
|
+
<Toolbar.IconButton
|
|
144
|
+
iconOnly
|
|
145
|
+
variant='ghost'
|
|
146
|
+
icon='ph--dots-three-vertical--regular'
|
|
147
|
+
label='Actions'
|
|
148
|
+
/>
|
|
149
|
+
</Menu.Trigger>
|
|
150
|
+
<Menu.Content />
|
|
151
|
+
</Card.IconBlock>
|
|
152
|
+
</Card.Toolbar>
|
|
153
|
+
<Card.Content>
|
|
154
|
+
<Item {...itemProps} />
|
|
155
|
+
</Card.Content>
|
|
156
|
+
</Card.Root>
|
|
157
|
+
</Focus.Item>
|
|
158
|
+
</Mosaic.Tile>
|
|
159
|
+
</Menu.Root>
|
|
129
160
|
);
|
|
130
161
|
},
|
|
131
162
|
);
|