@dxos/plugin-pipeline 0.8.4-main.9be5663bfe → 0.8.4-main.abd8ff62ef
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/browser/index.mjs +5 -76
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/translations.mjs +38 -0
- package/dist/lib/browser/translations.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 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/components/PipelineComponent/PipelineColumn.d.ts +4 -4
- package/dist/types/src/components/PipelineComponent/PipelineColumn.d.ts.map +1 -1
- package/dist/types/src/components/PipelineComponent/PipelineComponent.d.ts +4 -0
- package/dist/types/src/components/PipelineComponent/PipelineComponent.d.ts.map +1 -1
- package/dist/types/src/components/PipelineComponent/PipelineComponent.stories.d.ts +44 -25
- package/dist/types/src/components/PipelineComponent/PipelineComponent.stories.d.ts.map +1 -1
- package/dist/types/src/containers/PipelineContainer/PipelineContainer.d.ts +1 -1
- package/dist/types/src/containers/PipelineContainer/PipelineContainer.d.ts.map +1 -1
- package/dist/types/src/containers/PipelineContainer/PipelineContainer.stories.d.ts +52 -33
- package/dist/types/src/containers/PipelineContainer/PipelineContainer.stories.d.ts.map +1 -1
- package/dist/types/src/containers/PipelineProperties/PipelineProperties.d.ts.map +1 -1
- package/dist/types/src/hooks/usePipelineBoardModel.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +2 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/templates/research.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +44 -26
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +53 -49
- package/src/PipelinePlugin.node.ts +44 -0
- package/src/PipelinePlugin.test.ts +27 -0
- package/src/PipelinePlugin.tsx +4 -3
- package/src/capabilities/react-surface.tsx +5 -8
- package/src/components/PipelineComponent/PipelineComponent.stories.tsx +4 -4
- package/src/components/PipelineComponent/PipelineComponent.tsx +1 -1
- package/src/containers/PipelineContainer/PipelineContainer.stories.tsx +3 -2
- package/src/containers/PipelineContainer/PipelineContainer.tsx +6 -8
- package/src/index.ts +6 -1
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.abd8ff62ef",
|
|
4
4
|
"description": "Pipeline plugin for Composer",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -18,6 +18,12 @@
|
|
|
18
18
|
"#containers": "./src/containers/index.ts",
|
|
19
19
|
"#hooks": "./src/hooks/index.ts",
|
|
20
20
|
"#meta": "./src/meta.ts",
|
|
21
|
+
"#plugin": {
|
|
22
|
+
"browser": "./src/PipelinePlugin.tsx",
|
|
23
|
+
"node": "./src/PipelinePlugin.node.ts",
|
|
24
|
+
"default": "./src/PipelinePlugin.tsx"
|
|
25
|
+
},
|
|
26
|
+
"#translations": "./src/translations.ts",
|
|
21
27
|
"#types": "./src/types/index.ts"
|
|
22
28
|
},
|
|
23
29
|
"exports": {
|
|
@@ -26,6 +32,12 @@
|
|
|
26
32
|
"types": "./dist/types/src/index.d.ts",
|
|
27
33
|
"browser": "./dist/lib/browser/index.mjs"
|
|
28
34
|
},
|
|
35
|
+
"./translations": {
|
|
36
|
+
"source": "./src/translations.ts",
|
|
37
|
+
"types": "./dist/types/src/translations.d.ts",
|
|
38
|
+
"browser": "./dist/lib/browser/translations.mjs",
|
|
39
|
+
"node": "./dist/lib/node-esm/translations.mjs"
|
|
40
|
+
},
|
|
29
41
|
"./types": {
|
|
30
42
|
"source": "./src/types/index.ts",
|
|
31
43
|
"types": "./dist/types/src/types/index.d.ts",
|
|
@@ -33,13 +45,6 @@
|
|
|
33
45
|
}
|
|
34
46
|
},
|
|
35
47
|
"types": "dist/types/src/index.d.ts",
|
|
36
|
-
"typesVersions": {
|
|
37
|
-
"*": {
|
|
38
|
-
"types": [
|
|
39
|
-
"dist/types/src/types/index.d.ts"
|
|
40
|
-
]
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
48
|
"files": [
|
|
44
49
|
"dist",
|
|
45
50
|
"src"
|
|
@@ -49,34 +54,33 @@
|
|
|
49
54
|
"@radix-ui/react-context": "1.1.1",
|
|
50
55
|
"@radix-ui/react-slot": "1.1.2",
|
|
51
56
|
"effect": "3.20.0",
|
|
52
|
-
"@dxos/app-framework": "0.8.4-main.
|
|
53
|
-
"@dxos/
|
|
54
|
-
"@dxos/
|
|
55
|
-
"@dxos/
|
|
56
|
-
"@dxos/
|
|
57
|
-
"@dxos/echo": "0.8.4-main.
|
|
58
|
-
"@dxos/
|
|
59
|
-
"@dxos/
|
|
60
|
-
"@dxos/
|
|
61
|
-
"@dxos/
|
|
62
|
-
"@dxos/
|
|
63
|
-
"@dxos/plugin-client": "0.8.4-main.
|
|
64
|
-
"@dxos/plugin-
|
|
65
|
-
"@dxos/plugin-
|
|
66
|
-
"@dxos/plugin-
|
|
67
|
-
"@dxos/
|
|
68
|
-
"@dxos/
|
|
69
|
-
"@dxos/
|
|
70
|
-
"@dxos/react-ui-
|
|
71
|
-
"@dxos/react-ui-
|
|
72
|
-
"@dxos/react-ui-
|
|
73
|
-
"@dxos/react-ui-
|
|
74
|
-
"@dxos/react-ui-
|
|
75
|
-
"@dxos/
|
|
76
|
-
"@dxos/
|
|
77
|
-
"@dxos/
|
|
78
|
-
"@dxos/
|
|
79
|
-
"@dxos/react-ui-stack": "0.8.4-main.9be5663bfe"
|
|
57
|
+
"@dxos/app-framework": "0.8.4-main.abd8ff62ef",
|
|
58
|
+
"@dxos/async": "0.8.4-main.abd8ff62ef",
|
|
59
|
+
"@dxos/app-toolkit": "0.8.4-main.abd8ff62ef",
|
|
60
|
+
"@dxos/assistant-toolkit": "0.8.4-main.abd8ff62ef",
|
|
61
|
+
"@dxos/compute": "0.8.4-main.abd8ff62ef",
|
|
62
|
+
"@dxos/echo": "0.8.4-main.abd8ff62ef",
|
|
63
|
+
"@dxos/devtools": "0.8.4-main.abd8ff62ef",
|
|
64
|
+
"@dxos/echo-atom": "0.8.4-main.abd8ff62ef",
|
|
65
|
+
"@dxos/log": "0.8.4-main.abd8ff62ef",
|
|
66
|
+
"@dxos/echo-query": "0.8.4-main.abd8ff62ef",
|
|
67
|
+
"@dxos/plugin-graph": "0.8.4-main.abd8ff62ef",
|
|
68
|
+
"@dxos/plugin-client": "0.8.4-main.abd8ff62ef",
|
|
69
|
+
"@dxos/plugin-inbox": "0.8.4-main.abd8ff62ef",
|
|
70
|
+
"@dxos/plugin-markdown": "0.8.4-main.abd8ff62ef",
|
|
71
|
+
"@dxos/plugin-deck": "0.8.4-main.abd8ff62ef",
|
|
72
|
+
"@dxos/plugin-space": "0.8.4-main.abd8ff62ef",
|
|
73
|
+
"@dxos/react-client": "0.8.4-main.abd8ff62ef",
|
|
74
|
+
"@dxos/react-ui-components": "0.8.4-main.abd8ff62ef",
|
|
75
|
+
"@dxos/react-ui-form": "0.8.4-main.abd8ff62ef",
|
|
76
|
+
"@dxos/react-ui-list": "0.8.4-main.abd8ff62ef",
|
|
77
|
+
"@dxos/react-ui-attention": "0.8.4-main.abd8ff62ef",
|
|
78
|
+
"@dxos/react-ui-menu": "0.8.4-main.abd8ff62ef",
|
|
79
|
+
"@dxos/react-ui-mosaic": "0.8.4-main.abd8ff62ef",
|
|
80
|
+
"@dxos/types": "0.8.4-main.abd8ff62ef",
|
|
81
|
+
"@dxos/react-ui-stack": "0.8.4-main.abd8ff62ef",
|
|
82
|
+
"@dxos/schema": "0.8.4-main.abd8ff62ef",
|
|
83
|
+
"@dxos/util": "0.8.4-main.abd8ff62ef"
|
|
80
84
|
},
|
|
81
85
|
"devDependencies": {
|
|
82
86
|
"@effect-atom/atom-react": "^0.5.0",
|
|
@@ -84,25 +88,25 @@
|
|
|
84
88
|
"@types/react-dom": "~19.2.3",
|
|
85
89
|
"react": "~19.2.3",
|
|
86
90
|
"react-dom": "~19.2.3",
|
|
87
|
-
"vite": "^
|
|
88
|
-
"@dxos/
|
|
89
|
-
"@dxos/
|
|
90
|
-
"@dxos/plugin-
|
|
91
|
-
"@dxos/plugin-
|
|
92
|
-
"@dxos/plugin-testing": "0.8.4-main.
|
|
93
|
-
"@dxos/
|
|
94
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
95
|
-
"@dxos/
|
|
96
|
-
"@dxos/storybook-utils": "0.8.4-main.
|
|
97
|
-
"@dxos/ui-theme": "0.8.4-main.
|
|
91
|
+
"vite": "^8.0.10",
|
|
92
|
+
"@dxos/plugin-attention": "0.8.4-main.abd8ff62ef",
|
|
93
|
+
"@dxos/echo-db": "0.8.4-main.abd8ff62ef",
|
|
94
|
+
"@dxos/plugin-inbox": "0.8.4-main.abd8ff62ef",
|
|
95
|
+
"@dxos/plugin-preview": "0.8.4-main.abd8ff62ef",
|
|
96
|
+
"@dxos/plugin-testing": "0.8.4-main.abd8ff62ef",
|
|
97
|
+
"@dxos/plugin-theme": "0.8.4-main.abd8ff62ef",
|
|
98
|
+
"@dxos/react-ui": "0.8.4-main.abd8ff62ef",
|
|
99
|
+
"@dxos/random": "0.8.4-main.abd8ff62ef",
|
|
100
|
+
"@dxos/storybook-utils": "0.8.4-main.abd8ff62ef",
|
|
101
|
+
"@dxos/ui-theme": "0.8.4-main.abd8ff62ef"
|
|
98
102
|
},
|
|
99
103
|
"peerDependencies": {
|
|
100
104
|
"@effect-atom/atom-react": "^0.5.0",
|
|
101
105
|
"effect": "3.20.0",
|
|
102
106
|
"react": "~19.2.3",
|
|
103
107
|
"react-dom": "~19.2.3",
|
|
104
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
105
|
-
"@dxos/ui-theme": "0.8.4-main.
|
|
108
|
+
"@dxos/react-ui": "0.8.4-main.abd8ff62ef",
|
|
109
|
+
"@dxos/ui-theme": "0.8.4-main.abd8ff62ef"
|
|
106
110
|
},
|
|
107
111
|
"publishConfig": {
|
|
108
112
|
"access": "public"
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2023 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
import * as Option from 'effect/Option';
|
|
7
|
+
|
|
8
|
+
import { Plugin } from '@dxos/app-framework';
|
|
9
|
+
import { AppPlugin } from '@dxos/app-toolkit';
|
|
10
|
+
import { Operation } from '@dxos/compute';
|
|
11
|
+
import { Annotation } from '@dxos/echo';
|
|
12
|
+
import { SpaceOperation } from '@dxos/plugin-space/operations';
|
|
13
|
+
import { type CreateObject } from '@dxos/plugin-space/types';
|
|
14
|
+
import { Pipeline } from '@dxos/types';
|
|
15
|
+
|
|
16
|
+
import { AppGraphBuilder } from '#capabilities';
|
|
17
|
+
import { meta } from '#meta';
|
|
18
|
+
|
|
19
|
+
export const PipelinePlugin = Plugin.define(meta).pipe(
|
|
20
|
+
AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),
|
|
21
|
+
AppPlugin.addMetadataModule({
|
|
22
|
+
metadata: {
|
|
23
|
+
id: Pipeline.Pipeline.typename,
|
|
24
|
+
metadata: {
|
|
25
|
+
icon: Annotation.IconAnnotation.get(Pipeline.Pipeline).pipe(Option.getOrThrow).icon,
|
|
26
|
+
iconHue: Annotation.IconAnnotation.get(Pipeline.Pipeline).pipe(Option.getOrThrow).hue ?? 'white',
|
|
27
|
+
createObject: ((props, options) =>
|
|
28
|
+
Effect.gen(function* () {
|
|
29
|
+
const object = Pipeline.make(props);
|
|
30
|
+
return yield* Operation.invoke(SpaceOperation.AddObject, {
|
|
31
|
+
object,
|
|
32
|
+
target: options.target,
|
|
33
|
+
hidden: true,
|
|
34
|
+
targetNodeId: options.targetNodeId,
|
|
35
|
+
});
|
|
36
|
+
})) satisfies CreateObject,
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
}),
|
|
40
|
+
AppPlugin.addSchemaModule({ schema: [Pipeline.Pipeline] }),
|
|
41
|
+
Plugin.make,
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
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';
|
|
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, metadata, schema all auto-cascade.
|
|
23
|
+
expect(harness.manager.getActive()).toEqual(
|
|
24
|
+
expect.arrayContaining([moduleId('AppGraphBuilder'), moduleId('metadata'), moduleId('schema')]),
|
|
25
|
+
);
|
|
26
|
+
});
|
|
27
|
+
});
|
package/src/PipelinePlugin.tsx
CHANGED
|
@@ -7,16 +7,15 @@ import * as Option from 'effect/Option';
|
|
|
7
7
|
|
|
8
8
|
import { Plugin } from '@dxos/app-framework';
|
|
9
9
|
import { AppPlugin } from '@dxos/app-toolkit';
|
|
10
|
+
import { Operation } from '@dxos/compute';
|
|
10
11
|
import { Annotation } from '@dxos/echo';
|
|
11
|
-
import { Operation } from '@dxos/operation';
|
|
12
12
|
import { SpaceOperation } from '@dxos/plugin-space/operations';
|
|
13
13
|
import { type CreateObject } from '@dxos/plugin-space/types';
|
|
14
14
|
import { Pipeline } from '@dxos/types';
|
|
15
15
|
|
|
16
16
|
import { AppGraphBuilder, ReactSurface } from '#capabilities';
|
|
17
17
|
import { meta } from '#meta';
|
|
18
|
-
|
|
19
|
-
import { translations } from './translations';
|
|
18
|
+
import { translations } from '#translations';
|
|
20
19
|
|
|
21
20
|
export const PipelinePlugin = Plugin.define(meta).pipe(
|
|
22
21
|
AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),
|
|
@@ -45,3 +44,5 @@ export const PipelinePlugin = Plugin.define(meta).pipe(
|
|
|
45
44
|
AppPlugin.addTranslationsModule({ translations }),
|
|
46
45
|
Plugin.make,
|
|
47
46
|
);
|
|
47
|
+
|
|
48
|
+
export default PipelinePlugin;
|
|
@@ -20,18 +20,16 @@ export default Capability.makeModule(() =>
|
|
|
20
20
|
Capability.contributes(Capabilities.ReactSurface, [
|
|
21
21
|
Surface.create({
|
|
22
22
|
id: 'root',
|
|
23
|
-
|
|
24
|
-
filter: AppSurface.objectArticle(Pipeline.Pipeline),
|
|
23
|
+
filter: AppSurface.object(AppSurface.Article, Pipeline.Pipeline),
|
|
25
24
|
component: ({ data, role }) => (
|
|
26
25
|
<PipelineContainer role={role} subject={data.subject} attendableId={data.attendableId} />
|
|
27
26
|
),
|
|
28
27
|
}),
|
|
29
28
|
Surface.create({
|
|
30
29
|
id: 'companion.invocations',
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
AppSurface.
|
|
34
|
-
AppSurface.companionArticle(Pipeline.Pipeline),
|
|
30
|
+
filter: AppSurface.allOf(
|
|
31
|
+
AppSurface.literal(AppSurface.Article, 'invocations'),
|
|
32
|
+
AppSurface.companion(AppSurface.Article, Pipeline.Pipeline),
|
|
35
33
|
),
|
|
36
34
|
component: ({ data, role }) => {
|
|
37
35
|
const db = Obj.getDatabase(data.companionTo);
|
|
@@ -47,8 +45,7 @@ export default Capability.makeModule(() =>
|
|
|
47
45
|
}),
|
|
48
46
|
Surface.create({
|
|
49
47
|
id: 'object-properties',
|
|
50
|
-
|
|
51
|
-
filter: AppSurface.objectProperties(Pipeline.Pipeline),
|
|
48
|
+
filter: AppSurface.object(AppSurface.ObjectProperties, Pipeline.Pipeline),
|
|
52
49
|
component: ({ data }) => <PipelineProperties pipeline={data.subject} />,
|
|
53
50
|
}),
|
|
54
51
|
]),
|
|
@@ -21,8 +21,8 @@ import { withRegistry } from '@dxos/storybook-utils';
|
|
|
21
21
|
import { Person, Pipeline } from '@dxos/types';
|
|
22
22
|
|
|
23
23
|
import { usePipelineBoardModel } from '#hooks';
|
|
24
|
+
import { translations } from '#translations';
|
|
24
25
|
|
|
25
|
-
import { translations } from '../../translations';
|
|
26
26
|
import { type ItemProps, PipelineComponent } from './PipelineComponent';
|
|
27
27
|
|
|
28
28
|
const StorybookProjectItem = ({ item, projectionModel }: ItemProps) => {
|
|
@@ -64,7 +64,7 @@ const DefaultStory = () => {
|
|
|
64
64
|
fields: ['fullName'],
|
|
65
65
|
});
|
|
66
66
|
|
|
67
|
-
Obj.
|
|
67
|
+
Obj.update(pipeline, (pipeline) => {
|
|
68
68
|
pipeline.columns.push({
|
|
69
69
|
name: 'New Contacts',
|
|
70
70
|
view: Ref.make(view) as (typeof pipeline.columns)[number]['view'],
|
|
@@ -108,7 +108,7 @@ const MutationsStory = () => {
|
|
|
108
108
|
fields: ['fullName'],
|
|
109
109
|
});
|
|
110
110
|
|
|
111
|
-
Obj.
|
|
111
|
+
Obj.update(pipeline, (pipeline) => {
|
|
112
112
|
pipeline.columns.push({
|
|
113
113
|
name: 'New Contacts',
|
|
114
114
|
view: Ref.make(view) as (typeof pipeline.columns)[number]['view'],
|
|
@@ -131,7 +131,7 @@ const MutationsStory = () => {
|
|
|
131
131
|
if (p < 0.4) {
|
|
132
132
|
// Append to the name
|
|
133
133
|
const contactToAdjust = random.helpers.arrayElement(contacts);
|
|
134
|
-
Obj.
|
|
134
|
+
Obj.update(contactToAdjust, (contactToAdjust) => {
|
|
135
135
|
contactToAdjust.fullName = (contactToAdjust.fullName ?? '') + ' X';
|
|
136
136
|
});
|
|
137
137
|
return;
|
|
@@ -97,7 +97,7 @@ const PipelineColumns = composable<HTMLDivElement, PipelineColumnsProps>(({ pipe
|
|
|
97
97
|
get: (data) => data as unknown as Obj.Unknown,
|
|
98
98
|
make: (object) => object as unknown as Pipeline.Column,
|
|
99
99
|
canDrop: ({ source }) => model.isColumn(source.data),
|
|
100
|
-
onChange: (mutate) => Obj.
|
|
100
|
+
onChange: (mutate) => Obj.update(pipeline, (pipeline) => mutate(pipeline.columns)),
|
|
101
101
|
});
|
|
102
102
|
|
|
103
103
|
return <Board.Content {...props} id='pipeline' eventHandler={eventHandler} Tile={PipelineColumn} />;
|
|
@@ -19,13 +19,14 @@ import { PreviewPlugin } from '@dxos/plugin-preview';
|
|
|
19
19
|
import { StorybookPlugin, corePlugins } from '@dxos/plugin-testing';
|
|
20
20
|
import { random } from '@dxos/random';
|
|
21
21
|
import { useDatabase, useQuery } from '@dxos/react-client/echo';
|
|
22
|
-
import { translations as stackTranslations } from '@dxos/react-ui-stack';
|
|
22
|
+
import { translations as stackTranslations } from '@dxos/react-ui-stack/translations';
|
|
23
23
|
import { withLayout } from '@dxos/react-ui/testing';
|
|
24
24
|
import { ViewModel } from '@dxos/schema';
|
|
25
25
|
import { createObjectFactory } from '@dxos/schema/testing';
|
|
26
26
|
import { Message, Organization, Person, Pipeline, Task } from '@dxos/types';
|
|
27
27
|
|
|
28
|
-
import { translations } from '
|
|
28
|
+
import { translations } from '#translations';
|
|
29
|
+
|
|
29
30
|
import PipelineProperties from '../PipelineProperties';
|
|
30
31
|
import { PipelineContainer } from './PipelineContainer';
|
|
31
32
|
|
|
@@ -5,16 +5,14 @@
|
|
|
5
5
|
import React, { useCallback, useEffect } from 'react';
|
|
6
6
|
|
|
7
7
|
import { Capabilities } from '@dxos/app-framework';
|
|
8
|
-
import { useCapability } from '@dxos/app-framework/ui';
|
|
9
|
-
import {
|
|
10
|
-
import { Surface } from '@dxos/app-framework/ui';
|
|
8
|
+
import { Surface, useCapability, useOperationInvoker } from '@dxos/app-framework/ui';
|
|
9
|
+
import { LayoutOperation } from '@dxos/app-toolkit';
|
|
11
10
|
import {
|
|
11
|
+
AppSurface,
|
|
12
12
|
OBJECT_ACTIONS_CONTRIBUTION_ID,
|
|
13
13
|
OBJECT_ACTIONS_CONTRIBUTION_PRIORITY,
|
|
14
14
|
useObjectMenuItems,
|
|
15
15
|
} from '@dxos/app-toolkit/ui';
|
|
16
|
-
import { type AppSurface } from '@dxos/app-toolkit/ui';
|
|
17
|
-
import { DeckOperation } from '@dxos/plugin-deck/operations';
|
|
18
16
|
import { Panel } from '@dxos/react-ui';
|
|
19
17
|
import { linkedSegment } from '@dxos/react-ui-attention';
|
|
20
18
|
import { useAttention } from '@dxos/react-ui-attention';
|
|
@@ -36,8 +34,8 @@ export const PipelineContainer = ({ role, subject: pipeline, attendableId }: Pip
|
|
|
36
34
|
|
|
37
35
|
const handleColumnAdd = useCallback(
|
|
38
36
|
() =>
|
|
39
|
-
invokePromise(
|
|
40
|
-
|
|
37
|
+
invokePromise(LayoutOperation.UpdateCompanion, {
|
|
38
|
+
subject: linkedSegment('settings'),
|
|
41
39
|
}),
|
|
42
40
|
[invokePromise],
|
|
43
41
|
);
|
|
@@ -75,7 +73,7 @@ const PipelineItem = ({ item, projectionModel }: ItemProps) => {
|
|
|
75
73
|
|
|
76
74
|
return (
|
|
77
75
|
<Surface.Surface
|
|
78
|
-
|
|
76
|
+
type={AppSurface.Card}
|
|
79
77
|
data={{
|
|
80
78
|
subject: item,
|
|
81
79
|
projection: projectionModel,
|
package/src/index.ts
CHANGED
|
@@ -2,5 +2,10 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
+
import { Plugin } from '@dxos/app-framework';
|
|
6
|
+
|
|
7
|
+
import { meta } from './meta';
|
|
8
|
+
|
|
9
|
+
export const PipelinePlugin = Plugin.lazy(meta, () => import('#plugin'));
|
|
10
|
+
|
|
5
11
|
export * from './meta';
|
|
6
|
-
export * from './PipelinePlugin';
|