@dxos/plugin-pipeline 0.8.4-main.74a063c4e0 → 0.8.4-main.9be5663bfe
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/types/src/components/PipelineComponent/PipelineComponent.d.ts +4 -20
- package/dist/types/src/components/PipelineComponent/PipelineComponent.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/tsconfig.tsbuildinfo +1 -1
- package/package.json +41 -41
- package/src/capabilities/react-surface.tsx +5 -5
- package/src/components/PipelineComponent/PipelineComponent.stories.tsx +8 -8
- package/src/components/PipelineComponent/PipelineComponent.tsx +1 -1
- package/src/containers/PipelineContainer/PipelineContainer.stories.tsx +2 -2
- package/src/containers/{PipelineObjectSettings/PipelineObjectSettings.tsx → PipelineProperties/PipelineProperties.tsx} +2 -2
- package/src/containers/PipelineProperties/index.ts +5 -0
- package/src/containers/index.ts +1 -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 -2
- package/dist/types/src/containers/PipelineObjectSettings/index.d.ts.map +0 -1
- package/src/containers/PipelineObjectSettings/index.ts +0 -5
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.9be5663bfe",
|
|
4
4
|
"description": "Pipeline plugin for Composer",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -49,34 +49,34 @@
|
|
|
49
49
|
"@radix-ui/react-context": "1.1.1",
|
|
50
50
|
"@radix-ui/react-slot": "1.1.2",
|
|
51
51
|
"effect": "3.20.0",
|
|
52
|
-
"@dxos/
|
|
53
|
-
"@dxos/
|
|
54
|
-
"@dxos/
|
|
55
|
-
"@dxos/
|
|
56
|
-
"@dxos/devtools": "0.8.4-main.
|
|
57
|
-
"@dxos/echo
|
|
58
|
-
"@dxos/echo-query": "0.8.4-main.
|
|
59
|
-
"@dxos/
|
|
60
|
-
"@dxos/
|
|
61
|
-
"@dxos/
|
|
62
|
-
"@dxos/
|
|
63
|
-
"@dxos/plugin-client": "0.8.4-main.
|
|
64
|
-
"@dxos/
|
|
65
|
-
"@dxos/plugin-
|
|
66
|
-
"@dxos/plugin-
|
|
67
|
-
"@dxos/react-client": "0.8.4-main.
|
|
68
|
-
"@dxos/plugin-
|
|
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/
|
|
52
|
+
"@dxos/app-framework": "0.8.4-main.9be5663bfe",
|
|
53
|
+
"@dxos/app-toolkit": "0.8.4-main.9be5663bfe",
|
|
54
|
+
"@dxos/assistant-toolkit": "0.8.4-main.9be5663bfe",
|
|
55
|
+
"@dxos/async": "0.8.4-main.9be5663bfe",
|
|
56
|
+
"@dxos/devtools": "0.8.4-main.9be5663bfe",
|
|
57
|
+
"@dxos/echo": "0.8.4-main.9be5663bfe",
|
|
58
|
+
"@dxos/echo-query": "0.8.4-main.9be5663bfe",
|
|
59
|
+
"@dxos/functions": "0.8.4-main.9be5663bfe",
|
|
60
|
+
"@dxos/echo-atom": "0.8.4-main.9be5663bfe",
|
|
61
|
+
"@dxos/log": "0.8.4-main.9be5663bfe",
|
|
62
|
+
"@dxos/operation": "0.8.4-main.9be5663bfe",
|
|
63
|
+
"@dxos/plugin-client": "0.8.4-main.9be5663bfe",
|
|
64
|
+
"@dxos/plugin-deck": "0.8.4-main.9be5663bfe",
|
|
65
|
+
"@dxos/plugin-graph": "0.8.4-main.9be5663bfe",
|
|
66
|
+
"@dxos/plugin-markdown": "0.8.4-main.9be5663bfe",
|
|
67
|
+
"@dxos/react-client": "0.8.4-main.9be5663bfe",
|
|
68
|
+
"@dxos/plugin-inbox": "0.8.4-main.9be5663bfe",
|
|
69
|
+
"@dxos/plugin-space": "0.8.4-main.9be5663bfe",
|
|
70
|
+
"@dxos/react-ui-attention": "0.8.4-main.9be5663bfe",
|
|
71
|
+
"@dxos/react-ui-form": "0.8.4-main.9be5663bfe",
|
|
72
|
+
"@dxos/react-ui-list": "0.8.4-main.9be5663bfe",
|
|
73
|
+
"@dxos/react-ui-components": "0.8.4-main.9be5663bfe",
|
|
74
|
+
"@dxos/react-ui-menu": "0.8.4-main.9be5663bfe",
|
|
75
|
+
"@dxos/react-ui-mosaic": "0.8.4-main.9be5663bfe",
|
|
76
|
+
"@dxos/schema": "0.8.4-main.9be5663bfe",
|
|
77
|
+
"@dxos/util": "0.8.4-main.9be5663bfe",
|
|
78
|
+
"@dxos/types": "0.8.4-main.9be5663bfe",
|
|
79
|
+
"@dxos/react-ui-stack": "0.8.4-main.9be5663bfe"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@effect-atom/atom-react": "^0.5.0",
|
|
@@ -85,24 +85,24 @@
|
|
|
85
85
|
"react": "~19.2.3",
|
|
86
86
|
"react-dom": "~19.2.3",
|
|
87
87
|
"vite": "^7.1.11",
|
|
88
|
-
"@dxos/echo-db": "0.8.4-main.
|
|
89
|
-
"@dxos/plugin-
|
|
90
|
-
"@dxos/plugin-
|
|
91
|
-
"@dxos/plugin-
|
|
92
|
-
"@dxos/plugin-
|
|
93
|
-
"@dxos/
|
|
94
|
-
"@dxos/
|
|
95
|
-
"@dxos/
|
|
96
|
-
"@dxos/
|
|
97
|
-
"@dxos/
|
|
88
|
+
"@dxos/echo-db": "0.8.4-main.9be5663bfe",
|
|
89
|
+
"@dxos/plugin-inbox": "0.8.4-main.9be5663bfe",
|
|
90
|
+
"@dxos/plugin-preview": "0.8.4-main.9be5663bfe",
|
|
91
|
+
"@dxos/plugin-attention": "0.8.4-main.9be5663bfe",
|
|
92
|
+
"@dxos/plugin-testing": "0.8.4-main.9be5663bfe",
|
|
93
|
+
"@dxos/random": "0.8.4-main.9be5663bfe",
|
|
94
|
+
"@dxos/react-ui": "0.8.4-main.9be5663bfe",
|
|
95
|
+
"@dxos/plugin-theme": "0.8.4-main.9be5663bfe",
|
|
96
|
+
"@dxos/storybook-utils": "0.8.4-main.9be5663bfe",
|
|
97
|
+
"@dxos/ui-theme": "0.8.4-main.9be5663bfe"
|
|
98
98
|
},
|
|
99
99
|
"peerDependencies": {
|
|
100
100
|
"@effect-atom/atom-react": "^0.5.0",
|
|
101
101
|
"effect": "3.20.0",
|
|
102
102
|
"react": "~19.2.3",
|
|
103
103
|
"react-dom": "~19.2.3",
|
|
104
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
105
|
-
"@dxos/ui-theme": "0.8.4-main.
|
|
104
|
+
"@dxos/react-ui": "0.8.4-main.9be5663bfe",
|
|
105
|
+
"@dxos/ui-theme": "0.8.4-main.9be5663bfe"
|
|
106
106
|
},
|
|
107
107
|
"publishConfig": {
|
|
108
108
|
"access": "public"
|
|
@@ -13,7 +13,7 @@ import { Obj } from '@dxos/echo';
|
|
|
13
13
|
import { Panel } from '@dxos/react-ui';
|
|
14
14
|
import { Pipeline } from '@dxos/types';
|
|
15
15
|
|
|
16
|
-
import { PipelineContainer,
|
|
16
|
+
import { PipelineContainer, PipelineProperties } from '#containers';
|
|
17
17
|
|
|
18
18
|
export default Capability.makeModule(() =>
|
|
19
19
|
Effect.succeed(
|
|
@@ -46,10 +46,10 @@ export default Capability.makeModule(() =>
|
|
|
46
46
|
},
|
|
47
47
|
}),
|
|
48
48
|
Surface.create({
|
|
49
|
-
id: 'object-
|
|
50
|
-
role: 'object-
|
|
51
|
-
filter: AppSurface.
|
|
52
|
-
component: ({ data }) => <
|
|
49
|
+
id: 'object-properties',
|
|
50
|
+
role: 'object-properties',
|
|
51
|
+
filter: AppSurface.objectProperties(Pipeline.Pipeline),
|
|
52
|
+
component: ({ data }) => <PipelineProperties pipeline={data.subject} />,
|
|
53
53
|
}),
|
|
54
54
|
]),
|
|
55
55
|
),
|
|
@@ -64,10 +64,10 @@ const DefaultStory = () => {
|
|
|
64
64
|
fields: ['fullName'],
|
|
65
65
|
});
|
|
66
66
|
|
|
67
|
-
Obj.change(pipeline, (
|
|
68
|
-
|
|
67
|
+
Obj.change(pipeline, (pipeline) => {
|
|
68
|
+
pipeline.columns.push({
|
|
69
69
|
name: 'New Contacts',
|
|
70
|
-
view: Ref.make(view) as (typeof
|
|
70
|
+
view: Ref.make(view) as (typeof pipeline.columns)[number]['view'],
|
|
71
71
|
order: [],
|
|
72
72
|
});
|
|
73
73
|
});
|
|
@@ -108,10 +108,10 @@ const MutationsStory = () => {
|
|
|
108
108
|
fields: ['fullName'],
|
|
109
109
|
});
|
|
110
110
|
|
|
111
|
-
Obj.change(pipeline, (
|
|
112
|
-
|
|
111
|
+
Obj.change(pipeline, (pipeline) => {
|
|
112
|
+
pipeline.columns.push({
|
|
113
113
|
name: 'New Contacts',
|
|
114
|
-
view: Ref.make(view) as (typeof
|
|
114
|
+
view: Ref.make(view) as (typeof pipeline.columns)[number]['view'],
|
|
115
115
|
order: [],
|
|
116
116
|
});
|
|
117
117
|
});
|
|
@@ -131,8 +131,8 @@ const MutationsStory = () => {
|
|
|
131
131
|
if (p < 0.4) {
|
|
132
132
|
// Append to the name
|
|
133
133
|
const contactToAdjust = random.helpers.arrayElement(contacts);
|
|
134
|
-
Obj.change(contactToAdjust, (
|
|
135
|
-
|
|
134
|
+
Obj.change(contactToAdjust, (contactToAdjust) => {
|
|
135
|
+
contactToAdjust.fullName = (contactToAdjust.fullName ?? '') + ' X';
|
|
136
136
|
});
|
|
137
137
|
return;
|
|
138
138
|
} else if (p < 0.7 && contacts.length > 1) {
|
|
@@ -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.change(pipeline, (
|
|
100
|
+
onChange: (mutate) => Obj.change(pipeline, (pipeline) => mutate(pipeline.columns)),
|
|
101
101
|
});
|
|
102
102
|
|
|
103
103
|
return <Board.Content {...props} id='pipeline' eventHandler={eventHandler} Tile={PipelineColumn} />;
|
|
@@ -26,7 +26,7 @@ import { createObjectFactory } from '@dxos/schema/testing';
|
|
|
26
26
|
import { Message, Organization, Person, Pipeline, Task } from '@dxos/types';
|
|
27
27
|
|
|
28
28
|
import { translations } from '../../translations';
|
|
29
|
-
import
|
|
29
|
+
import PipelineProperties from '../PipelineProperties';
|
|
30
30
|
import { PipelineContainer } from './PipelineContainer';
|
|
31
31
|
|
|
32
32
|
random.seed(0);
|
|
@@ -43,7 +43,7 @@ const DefaultStory = () => {
|
|
|
43
43
|
return (
|
|
44
44
|
<div className='grow grid grid-cols-[1fr_350px] overflow-hidden h-full w-full'>
|
|
45
45
|
<PipelineContainer role='article' subject={pipeline} attendableId='test' />
|
|
46
|
-
<
|
|
46
|
+
<PipelineProperties pipeline={pipeline} classNames='border-s border-separator' />
|
|
47
47
|
</div>
|
|
48
48
|
);
|
|
49
49
|
};
|
|
@@ -25,14 +25,14 @@ const listItemGrid = 'grid grid-cols-subgrid col-span-5';
|
|
|
25
25
|
|
|
26
26
|
const ColumnFormSchema = Pipeline.Column.pipe(Schema.mutable, Schema.pick('name'));
|
|
27
27
|
|
|
28
|
-
export type
|
|
28
|
+
export type PipelinePropertiesProps = ThemedClassName<{
|
|
29
29
|
pipeline: Pipeline.Pipeline;
|
|
30
30
|
}>;
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* Supports editing the pipeline view.
|
|
34
34
|
*/
|
|
35
|
-
export const
|
|
35
|
+
export const PipelineProperties = ({ classNames, pipeline }: PipelinePropertiesProps) => {
|
|
36
36
|
const { t } = useTranslation(meta.id);
|
|
37
37
|
const space = getSpace(pipeline);
|
|
38
38
|
const [expandedId, setExpandedId] = useState<string>();
|
package/src/containers/index.ts
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
import { type ComponentType, lazy } from 'react';
|
|
6
6
|
|
|
7
7
|
export const PipelineContainer: ComponentType<any> = lazy(() => import('./PipelineContainer'));
|
|
8
|
-
export const
|
|
8
|
+
export const PipelineProperties: ComponentType<any> = lazy(() => import('./PipelineProperties'));
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type ThemedClassName } from '@dxos/react-ui';
|
|
3
|
-
import { Pipeline } from '@dxos/types';
|
|
4
|
-
export type PipelineObjectSettingsProps = ThemedClassName<{
|
|
5
|
-
pipeline: Pipeline.Pipeline;
|
|
6
|
-
}>;
|
|
7
|
-
/**
|
|
8
|
-
* Supports editing the pipeline view.
|
|
9
|
-
*/
|
|
10
|
-
export declare const PipelineObjectSettings: ({ classNames, pipeline }: PipelineObjectSettingsProps) => React.JSX.Element;
|
|
11
|
-
//# sourceMappingURL=PipelineObjectSettings.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PipelineObjectSettings.d.ts","sourceRoot":"","sources":["../../../../../src/containers/PipelineObjectSettings/PipelineObjectSettings.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAOtE,OAAO,EAAc,KAAK,eAAe,EAAkC,MAAM,gBAAgB,CAAC;AAIlG,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAWvC,MAAM,MAAM,2BAA2B,GAAG,eAAe,CAAC;IACxD,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC;CAC7B,CAAC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,sBAAsB,GAAI,0BAA0B,2BAA2B,sBA+M3F,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/PipelineObjectSettings/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,sBAAsB,IAAI,OAAO,EAAE,MAAM,0BAA0B,CAAC"}
|