@dxos/plugin-preview 0.8.4-main.937b3ca → 0.8.4-main.9735255
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 +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-surface-XYEFQ6NI.mjs → react-surface-YCDD5VZC.mjs} +11 -11
- package/dist/lib/browser/{react-surface-XYEFQ6NI.mjs.map → react-surface-YCDD5VZC.mjs.map} +3 -3
- package/dist/lib/node-esm/index.mjs +1 -1
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{react-surface-PSUCURVT.mjs → react-surface-MYZZR7AQ.mjs} +11 -11
- package/dist/lib/node-esm/{react-surface-PSUCURVT.mjs.map → react-surface-MYZZR7AQ.mjs.map} +3 -3
- package/dist/types/src/cards/TaskCard.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +32 -32
- package/src/cards/TaskCard.tsx +13 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-preview",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.9735255",
|
|
4
4
|
"description": "Preview plugin",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -29,43 +29,43 @@
|
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@effect-atom/atom-react": "^0.4.6",
|
|
32
|
-
"@dxos/app-
|
|
33
|
-
"@dxos/
|
|
34
|
-
"@dxos/
|
|
35
|
-
"@dxos/
|
|
36
|
-
"@dxos/
|
|
37
|
-
"@dxos/
|
|
38
|
-
"@dxos/
|
|
39
|
-
"@dxos/
|
|
40
|
-
"@dxos/log": "0.8.4-main.
|
|
41
|
-
"@dxos/
|
|
42
|
-
"@dxos/plugin-attention": "0.8.4-main.
|
|
43
|
-
"@dxos/plugin-
|
|
44
|
-
"@dxos/
|
|
45
|
-
"@dxos/plugin-
|
|
46
|
-
"@dxos/react-client": "0.8.4-main.
|
|
47
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
48
|
-
"@dxos/react-ui-
|
|
49
|
-
"@dxos/react-ui-
|
|
50
|
-
"@dxos/react-ui-menu": "0.8.4-main.
|
|
51
|
-
"@dxos/react-ui-
|
|
52
|
-
"@dxos/react-ui-
|
|
53
|
-
"@dxos/
|
|
54
|
-
"@dxos/
|
|
55
|
-
"@dxos/ui-
|
|
56
|
-
"@dxos/
|
|
57
|
-
"@dxos/
|
|
32
|
+
"@dxos/app-graph": "0.8.4-main.9735255",
|
|
33
|
+
"@dxos/app-framework": "0.8.4-main.9735255",
|
|
34
|
+
"@dxos/async": "0.8.4-main.9735255",
|
|
35
|
+
"@dxos/echo": "0.8.4-main.9735255",
|
|
36
|
+
"@dxos/client": "0.8.4-main.9735255",
|
|
37
|
+
"@dxos/effect": "0.8.4-main.9735255",
|
|
38
|
+
"@dxos/lit-ui": "0.8.4-main.9735255",
|
|
39
|
+
"@dxos/keys": "0.8.4-main.9735255",
|
|
40
|
+
"@dxos/log": "0.8.4-main.9735255",
|
|
41
|
+
"@dxos/operation": "0.8.4-main.9735255",
|
|
42
|
+
"@dxos/plugin-attention": "0.8.4-main.9735255",
|
|
43
|
+
"@dxos/plugin-client": "0.8.4-main.9735255",
|
|
44
|
+
"@dxos/plugin-space": "0.8.4-main.9735255",
|
|
45
|
+
"@dxos/plugin-deck": "0.8.4-main.9735255",
|
|
46
|
+
"@dxos/react-client": "0.8.4-main.9735255",
|
|
47
|
+
"@dxos/react-ui": "0.8.4-main.9735255",
|
|
48
|
+
"@dxos/react-ui-form": "0.8.4-main.9735255",
|
|
49
|
+
"@dxos/react-ui-editor": "0.8.4-main.9735255",
|
|
50
|
+
"@dxos/react-ui-menu": "0.8.4-main.9735255",
|
|
51
|
+
"@dxos/react-ui-table": "0.8.4-main.9735255",
|
|
52
|
+
"@dxos/react-ui-mosaic": "0.8.4-main.9735255",
|
|
53
|
+
"@dxos/schema": "0.8.4-main.9735255",
|
|
54
|
+
"@dxos/types": "0.8.4-main.9735255",
|
|
55
|
+
"@dxos/ui-theme": "0.8.4-main.9735255",
|
|
56
|
+
"@dxos/util": "0.8.4-main.9735255",
|
|
57
|
+
"@dxos/ui-editor": "0.8.4-main.9735255"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"effect": "3.19.11",
|
|
61
61
|
"react": "~19.2.3",
|
|
62
62
|
"react-dom": "~19.2.3",
|
|
63
63
|
"vite": "7.1.9",
|
|
64
|
-
"@dxos/
|
|
65
|
-
"@dxos/
|
|
66
|
-
"@dxos/
|
|
67
|
-
"@dxos/
|
|
68
|
-
"@dxos/
|
|
64
|
+
"@dxos/plugin-testing": "0.8.4-main.9735255",
|
|
65
|
+
"@dxos/echo-db": "0.8.4-main.9735255",
|
|
66
|
+
"@dxos/random": "0.8.4-main.9735255",
|
|
67
|
+
"@dxos/storybook-utils": "0.8.4-main.9735255",
|
|
68
|
+
"@dxos/react-ui-components": "0.8.4-main.9735255"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
71
|
"effect": "3.19.11",
|
package/src/cards/TaskCard.tsx
CHANGED
|
@@ -10,19 +10,6 @@ import { type PropertyMetaAnnotation, PropertyMetaAnnotationId } from '@dxos/ech
|
|
|
10
10
|
import { Card } from '@dxos/react-ui-mosaic';
|
|
11
11
|
import { Task } from '@dxos/types';
|
|
12
12
|
|
|
13
|
-
// TODO(thure): Should this move upstream as a helper? Is there an easier way to get options?
|
|
14
|
-
const getActiveStatusOption = (status?: string) => {
|
|
15
|
-
const properties = SchemaAST.getPropertySignatures(Task.Task.ast);
|
|
16
|
-
const statusProperty = properties.find((p) => p.name === 'status');
|
|
17
|
-
const statusMeta = SchemaAST.getAnnotation<PropertyMetaAnnotation>(PropertyMetaAnnotationId)(
|
|
18
|
-
// TODO(thure): Typescript asserts `.type` doesn’t have `.types`, but in runtime it does.
|
|
19
|
-
(statusProperty!.type as any).types[0],
|
|
20
|
-
);
|
|
21
|
-
const options = // TODO(thure): Typescript asserts `statusMeta` doesn’t have `.value`, but in runtime it does.
|
|
22
|
-
(statusMeta as any).value.singleSelect.options as { id: string; title: string; color: string }[];
|
|
23
|
-
return options.find(({ id }) => id === status);
|
|
24
|
-
};
|
|
25
|
-
|
|
26
13
|
export const TaskCard = ({ subject }: SurfaceComponentProps<Task.Task>) => {
|
|
27
14
|
const { title, status } = subject;
|
|
28
15
|
const statusOption = getActiveStatusOption(status);
|
|
@@ -38,3 +25,16 @@ export const TaskCard = ({ subject }: SurfaceComponentProps<Task.Task>) => {
|
|
|
38
25
|
</Card.Content>
|
|
39
26
|
);
|
|
40
27
|
};
|
|
28
|
+
|
|
29
|
+
// TODO(thure): Should this move upstream as a helper? Is there an easier way to get options?
|
|
30
|
+
const getActiveStatusOption = (status?: string) => {
|
|
31
|
+
const properties = SchemaAST.getPropertySignatures(Task.Task.ast);
|
|
32
|
+
const statusProperty = properties.find((p) => p.name === 'status');
|
|
33
|
+
const statusMeta = SchemaAST.getAnnotation<PropertyMetaAnnotation>(PropertyMetaAnnotationId)(
|
|
34
|
+
// TODO(thure): Typescript asserts `.type` doesn’t have `.types`, but in runtime it does.
|
|
35
|
+
(statusProperty!.type as any).types[0],
|
|
36
|
+
);
|
|
37
|
+
const options = // TODO(thure): Typescript asserts `statusMeta` doesn’t have `.value`, but in runtime it does.
|
|
38
|
+
(statusMeta as any).value.singleSelect.options as { id: string; title: string; color: string }[];
|
|
39
|
+
return options.find(({ id }) => id === status);
|
|
40
|
+
};
|