@dxos/react-ui-mosaic 0.6.11-staging.30cf5ba → 0.6.11-staging.9c4dc38
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/views/Demo/Echo.stories.d.ts.map +1 -1
- package/package.json +16 -16
- package/src/views/Demo/Demo.stories.tsx +2 -2
- package/src/views/Demo/Echo.stories.tsx +5 -6
- package/src/views/Grid/Grid.stories.tsx +2 -2
- package/src/views/Kanban/Kanban.stories.tsx +2 -2
- package/src/views/Stack/Columns.stories.tsx +2 -2
- package/src/views/Stack/Stack.stories.tsx +2 -2
- package/src/views/Tree/Graph.stories.tsx +2 -2
- package/src/views/Tree/Tree.stories.tsx +2 -2
- package/dist/types/src/views/Kanban/Echo.stories.d.ts +0 -13
- package/dist/types/src/views/Kanban/Echo.stories.d.ts.map +0 -1
- package/src/views/Kanban/Echo.stories.tsx +0 -70
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Echo.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Demo/Echo.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"Echo.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Demo/Echo.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;AAqC1B,wBA4BE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/react-ui-mosaic",
|
|
3
|
-
"version": "0.6.11-staging.
|
|
3
|
+
"version": "0.6.11-staging.9c4dc38",
|
|
4
4
|
"description": "An intermediate interface for drag-and-drop interactions.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
"@radix-ui/react-compose-refs": "^1.0.0",
|
|
30
30
|
"lodash.defaultsdeep": "^4.6.1",
|
|
31
31
|
"react-resize-detector": "^11.0.1",
|
|
32
|
-
"@dxos/debug": "0.6.11-staging.
|
|
33
|
-
"@dxos/
|
|
34
|
-
"@dxos/
|
|
35
|
-
"@dxos/log": "0.6.11-staging.
|
|
36
|
-
"@dxos/react-ui": "0.6.11-staging.
|
|
37
|
-
"@dxos/react-ui-card": "0.6.11-staging.
|
|
38
|
-
"@dxos/react-ui-types": "0.6.11-staging.
|
|
39
|
-
"@dxos/react-ui-theme": "0.6.11-staging.
|
|
40
|
-
"@dxos/util": "0.6.11-staging.
|
|
32
|
+
"@dxos/debug": "0.6.11-staging.9c4dc38",
|
|
33
|
+
"@dxos/keys": "0.6.11-staging.9c4dc38",
|
|
34
|
+
"@dxos/invariant": "0.6.11-staging.9c4dc38",
|
|
35
|
+
"@dxos/log": "0.6.11-staging.9c4dc38",
|
|
36
|
+
"@dxos/react-ui": "0.6.11-staging.9c4dc38",
|
|
37
|
+
"@dxos/react-ui-card": "0.6.11-staging.9c4dc38",
|
|
38
|
+
"@dxos/react-ui-types": "0.6.11-staging.9c4dc38",
|
|
39
|
+
"@dxos/react-ui-theme": "0.6.11-staging.9c4dc38",
|
|
40
|
+
"@dxos/util": "0.6.11-staging.9c4dc38"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@phosphor-icons/react": "^2.1.5",
|
|
@@ -49,12 +49,12 @@
|
|
|
49
49
|
"react": "~18.2.0",
|
|
50
50
|
"react-dom": "~18.2.0",
|
|
51
51
|
"vite": "^5.3.4",
|
|
52
|
-
"@dxos/app-graph": "0.6.11-staging.
|
|
53
|
-
"@dxos/
|
|
54
|
-
"@dxos/
|
|
55
|
-
"@dxos/random": "0.6.11-staging.
|
|
56
|
-
"@dxos/react-client": "0.6.11-staging.
|
|
57
|
-
"@dxos/storybook-utils": "0.6.11-staging.
|
|
52
|
+
"@dxos/app-graph": "0.6.11-staging.9c4dc38",
|
|
53
|
+
"@dxos/gem-core": "0.6.11-staging.9c4dc38",
|
|
54
|
+
"@dxos/echo-schema": "0.6.11-staging.9c4dc38",
|
|
55
|
+
"@dxos/random": "0.6.11-staging.9c4dc38",
|
|
56
|
+
"@dxos/react-client": "0.6.11-staging.9c4dc38",
|
|
57
|
+
"@dxos/storybook-utils": "0.6.11-staging.9c4dc38"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"@phosphor-icons/react": "^2.1.5",
|
|
@@ -7,7 +7,7 @@ import '@dxos-theme';
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
|
|
9
9
|
import { faker } from '@dxos/random';
|
|
10
|
-
import {
|
|
10
|
+
import { withLayout, withTheme } from '@dxos/storybook-utils';
|
|
11
11
|
|
|
12
12
|
import { Mosaic } from '../../mosaic';
|
|
13
13
|
import { ComplexCard, SimpleCard } from '../../testing';
|
|
@@ -20,7 +20,7 @@ faker.seed(5);
|
|
|
20
20
|
|
|
21
21
|
export default {
|
|
22
22
|
title: 'react-ui-mosaic/Demo',
|
|
23
|
-
decorators: [withTheme,
|
|
23
|
+
decorators: [withTheme, withLayout({ fullscreen: true })],
|
|
24
24
|
parameters: {
|
|
25
25
|
layout: 'fullscreen',
|
|
26
26
|
},
|
|
@@ -2,13 +2,12 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import React
|
|
5
|
+
import React from 'react';
|
|
6
6
|
|
|
7
7
|
import { faker } from '@dxos/random';
|
|
8
|
-
import { type PublicKey } from '@dxos/react-client';
|
|
9
8
|
import { create } from '@dxos/react-client/echo';
|
|
10
|
-
import { ClientRepeater } from '@dxos/react-client/testing';
|
|
11
|
-
import {
|
|
9
|
+
import { type ClientRepeatedComponentProps, ClientRepeater } from '@dxos/react-client/testing';
|
|
10
|
+
import { withLayout, withTheme } from '@dxos/storybook-utils';
|
|
12
11
|
|
|
13
12
|
import { Mosaic } from '../../mosaic';
|
|
14
13
|
import { TestObjectGenerator, range, Status, Priority } from '../../testing';
|
|
@@ -26,7 +25,7 @@ const columnValues: { [property: string]: any[] } = {
|
|
|
26
25
|
priority: ['unknown', ...Priority],
|
|
27
26
|
};
|
|
28
27
|
|
|
29
|
-
const Story
|
|
28
|
+
const Story = ({ spaceKey }: ClientRepeatedComponentProps) => {
|
|
30
29
|
return (
|
|
31
30
|
<Mosaic.Root debug={debug}>
|
|
32
31
|
<Mosaic.DragOverlay />
|
|
@@ -67,7 +66,7 @@ export default {
|
|
|
67
66
|
createSpace
|
|
68
67
|
/>
|
|
69
68
|
),
|
|
70
|
-
decorators: [withTheme,
|
|
69
|
+
decorators: [withTheme, withLayout({ fullscreen: true })],
|
|
71
70
|
};
|
|
72
71
|
|
|
73
72
|
// TODO(wittjosiah): This currently has a bug where empty over events are fired when dragging from tree onto kanban.
|
|
@@ -7,7 +7,7 @@ import '@dxos-theme';
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
|
|
9
9
|
import { faker } from '@dxos/random';
|
|
10
|
-
import {
|
|
10
|
+
import { withLayout, withTheme } from '@dxos/storybook-utils';
|
|
11
11
|
|
|
12
12
|
import { Grid, type GridLayout } from './Grid';
|
|
13
13
|
import { DemoGrid } from './testing';
|
|
@@ -42,7 +42,7 @@ export default {
|
|
|
42
42
|
</Mosaic.Root>
|
|
43
43
|
);
|
|
44
44
|
},
|
|
45
|
-
decorators: [withTheme,
|
|
45
|
+
decorators: [withTheme, withLayout({ fullscreen: true })],
|
|
46
46
|
parameters: {
|
|
47
47
|
layout: 'fullscreen',
|
|
48
48
|
},
|
|
@@ -7,7 +7,7 @@ import '@dxos-theme';
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
|
|
9
9
|
import { faker } from '@dxos/random';
|
|
10
|
-
import {
|
|
10
|
+
import { withLayout, withTheme } from '@dxos/storybook-utils';
|
|
11
11
|
|
|
12
12
|
import { Kanban } from './Kanban';
|
|
13
13
|
import { DemoKanban, type DemoKanbanProps } from './testing';
|
|
@@ -27,7 +27,7 @@ export default {
|
|
|
27
27
|
</Mosaic.Root>
|
|
28
28
|
);
|
|
29
29
|
},
|
|
30
|
-
decorators: [withTheme,
|
|
30
|
+
decorators: [withTheme, withLayout({ fullscreen: true })],
|
|
31
31
|
parameters: {
|
|
32
32
|
layout: 'fullscreen',
|
|
33
33
|
},
|
|
@@ -7,7 +7,7 @@ import '@dxos-theme';
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
|
|
9
9
|
import { faker } from '@dxos/random';
|
|
10
|
-
import {
|
|
10
|
+
import { withLayout, withTheme } from '@dxos/storybook-utils';
|
|
11
11
|
|
|
12
12
|
import { Stack } from './Stack';
|
|
13
13
|
import { DemoStack, type DemoStackProps } from './testing';
|
|
@@ -32,7 +32,7 @@ export default {
|
|
|
32
32
|
</Mosaic.Root>
|
|
33
33
|
);
|
|
34
34
|
},
|
|
35
|
-
decorators: [withTheme,
|
|
35
|
+
decorators: [withTheme, withLayout({ fullscreen: true })],
|
|
36
36
|
parameters: {
|
|
37
37
|
layout: 'fullscreen',
|
|
38
38
|
},
|
|
@@ -7,7 +7,7 @@ import '@dxos-theme';
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
|
|
9
9
|
import { faker } from '@dxos/random';
|
|
10
|
-
import {
|
|
10
|
+
import { withLayout, withTheme } from '@dxos/storybook-utils';
|
|
11
11
|
|
|
12
12
|
import { Stack, type StackProps } from './Stack';
|
|
13
13
|
import { DemoStack } from './testing';
|
|
@@ -32,7 +32,7 @@ export default {
|
|
|
32
32
|
</Mosaic.Root>
|
|
33
33
|
);
|
|
34
34
|
},
|
|
35
|
-
decorators: [withTheme,
|
|
35
|
+
decorators: [withTheme, withLayout({ fullscreen: true })],
|
|
36
36
|
parameters: {
|
|
37
37
|
layout: 'fullscreen',
|
|
38
38
|
},
|
|
@@ -7,7 +7,7 @@ import '@dxos-theme';
|
|
|
7
7
|
// import React from 'react';
|
|
8
8
|
|
|
9
9
|
import { faker } from '@dxos/random';
|
|
10
|
-
import {
|
|
10
|
+
import { withLayout, withTheme } from '@dxos/storybook-utils';
|
|
11
11
|
|
|
12
12
|
import { Tree } from './Tree';
|
|
13
13
|
// import { GraphTree } from './testing';
|
|
@@ -26,7 +26,7 @@ export default {
|
|
|
26
26
|
// </Mosaic.Root>
|
|
27
27
|
// );
|
|
28
28
|
// },
|
|
29
|
-
decorators: [withTheme,
|
|
29
|
+
decorators: [withTheme, withLayout({ fullscreen: true })],
|
|
30
30
|
parameters: {
|
|
31
31
|
layout: 'fullscreen',
|
|
32
32
|
},
|
|
@@ -7,7 +7,7 @@ import '@dxos-theme';
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
|
|
9
9
|
import { faker } from '@dxos/random';
|
|
10
|
-
import {
|
|
10
|
+
import { withLayout, withTheme } from '@dxos/storybook-utils';
|
|
11
11
|
|
|
12
12
|
import { Tree } from './Tree';
|
|
13
13
|
import { DemoTree, type DemoTreeProps } from './testing';
|
|
@@ -80,7 +80,7 @@ export default {
|
|
|
80
80
|
</Mosaic.Root>
|
|
81
81
|
);
|
|
82
82
|
},
|
|
83
|
-
decorators: [withTheme,
|
|
83
|
+
decorators: [withTheme, withLayout({ fullscreen: true })],
|
|
84
84
|
parameters: {
|
|
85
85
|
layout: 'fullscreen',
|
|
86
86
|
},
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
component: ({ id, columns, Component: TileComponent, debug, onDrop, }: import("./Kanban").KanbanProps) => React.JSX.Element;
|
|
5
|
-
render: () => React.JSX.Element;
|
|
6
|
-
decorators: import("@storybook/react/*").Decorator[];
|
|
7
|
-
parameters: {
|
|
8
|
-
layout: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|
|
12
|
-
export declare const ECHO: {};
|
|
13
|
-
//# sourceMappingURL=Echo.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Echo.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Kanban/Echo.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;;;;;AA+B1B,wBAgCE;AAEF,eAAO,MAAM,IAAI,IAAK,CAAC"}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2023 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import React from 'react';
|
|
6
|
-
|
|
7
|
-
import { type PublicKey } from '@dxos/react-client';
|
|
8
|
-
// import { Expando } from '@dxos/react-client/echo';
|
|
9
|
-
import { ClientRepeater } from '@dxos/react-client/testing';
|
|
10
|
-
import { withFullscreen, withTheme } from '@dxos/storybook-utils';
|
|
11
|
-
|
|
12
|
-
import { Kanban } from './Kanban';
|
|
13
|
-
// import { EchoKanban, columnValues } from './testing';
|
|
14
|
-
import { Mosaic } from '../../mosaic';
|
|
15
|
-
|
|
16
|
-
// const generator = new TestObjectGenerator();
|
|
17
|
-
|
|
18
|
-
const Story = ({
|
|
19
|
-
// TODO(wittjosiah): Can't use id because of ClientSpaceDecorator.
|
|
20
|
-
basePath = 'projects',
|
|
21
|
-
spaceKey,
|
|
22
|
-
debug,
|
|
23
|
-
}: {
|
|
24
|
-
basePath: string;
|
|
25
|
-
spaceKey: PublicKey;
|
|
26
|
-
debug: boolean;
|
|
27
|
-
}) => {
|
|
28
|
-
return (
|
|
29
|
-
<Mosaic.Root debug={debug}>
|
|
30
|
-
<Mosaic.DragOverlay />
|
|
31
|
-
{/* <EchoKanban id={basePath} spaceKey={spaceKey} generator={generator} debug={debug} /> */}
|
|
32
|
-
</Mosaic.Root>
|
|
33
|
-
);
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
export default {
|
|
37
|
-
title: 'react-ui-mosaic/Kanban',
|
|
38
|
-
component: Kanban,
|
|
39
|
-
render: () => (
|
|
40
|
-
<ClientRepeater
|
|
41
|
-
// onCreateSpace={async (space) => {
|
|
42
|
-
// const factory = generator.factories.project;
|
|
43
|
-
// const objects = [
|
|
44
|
-
// factory.schema,
|
|
45
|
-
// ...range(factory.createObject, 10),
|
|
46
|
-
// new Expando({
|
|
47
|
-
// type: 'kanban',
|
|
48
|
-
// title: 'Projects',
|
|
49
|
-
// schema: factory.schema,
|
|
50
|
-
// // TODO(burdon): Standardize with other story.
|
|
51
|
-
// columnProp: 'status',
|
|
52
|
-
// columnValues: columnValues.status,
|
|
53
|
-
// objectPosition: {}, // TODO(burdon): Make this a CRDT.
|
|
54
|
-
// }),
|
|
55
|
-
// ];
|
|
56
|
-
|
|
57
|
-
// // TODO(burdon): Batch API.
|
|
58
|
-
// objects.forEach((object) => space.db.add(object));
|
|
59
|
-
// }}
|
|
60
|
-
component={Story}
|
|
61
|
-
createSpace
|
|
62
|
-
/>
|
|
63
|
-
),
|
|
64
|
-
decorators: [withTheme, withFullscreen()],
|
|
65
|
-
parameters: {
|
|
66
|
-
layout: 'fullscreen',
|
|
67
|
-
},
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
export const ECHO = {};
|