@dxos/react-ui-mosaic 0.6.2-main.d41f0d2 → 0.6.2-main.fb91371

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.
@@ -2,7 +2,7 @@
2
2
  import '@dxosTheme';
3
3
  declare const _default: {
4
4
  title: string;
5
- decorators: (import("@storybook/react/*").Decorator | import("@storybook/csf").DecoratorFunction<import("@storybook/react/*").ReactRenderer>)[];
5
+ decorators: import("@storybook/react/*").Decorator[];
6
6
  parameters: {
7
7
  layout: string;
8
8
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Demo.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Demo/Demo.stories.tsx"],"names":[],"mappings":";AAIA,OAAO,YAAY,CAAC;;;;;;;;AAiBpB,wBAME;AAKF,eAAO,MAAM,OAAO,mBAenB,CAAC;AAEF,eAAO,MAAM,IAAI,mBAehB,CAAC;AAEF,eAAO,MAAM,MAAM,mBAelB,CAAC"}
1
+ {"version":3,"file":"Demo.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Demo/Demo.stories.tsx"],"names":[],"mappings":";AAIA,OAAO,YAAY,CAAC;;;;;;;;AAgBpB,wBAME;AAKF,eAAO,MAAM,OAAO,mBAenB,CAAC;AAEF,eAAO,MAAM,IAAI,mBAehB,CAAC;AAEF,eAAO,MAAM,MAAM,mBAelB,CAAC"}
@@ -2,7 +2,7 @@
2
2
  declare const _default: {
3
3
  title: string;
4
4
  render: () => JSX.Element;
5
- decorators: (import("@storybook/react/*").Decorator | import("@storybook/csf").DecoratorFunction<import("@storybook/react/*").ReactRenderer>)[];
5
+ decorators: import("@storybook/react/*").Decorator[];
6
6
  };
7
7
  export default _default;
8
8
  //# sourceMappingURL=Echo.stories.d.ts.map
@@ -4,7 +4,7 @@ declare const _default: {
4
4
  title: string;
5
5
  component: ({ id, items, layout, options: opts, margin, square, debug, selected: controlledSelected, Component, classNames, onDrop, onOver, onSelect, onCreate, onAction, }: import("./Grid").GridProps<import("../../mosaic").MosaicDataItem>) => JSX.Element;
6
6
  render: () => JSX.Element;
7
- decorators: (import("@storybook/react/*").Decorator | import("@storybook/csf").DecoratorFunction<import("@storybook/react/*").ReactRenderer>)[];
7
+ decorators: import("@storybook/react/*").Decorator[];
8
8
  parameters: {
9
9
  layout: string;
10
10
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Grid.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Grid/Grid.stories.tsx"],"names":[],"mappings":";AAIA,OAAO,YAAY,CAAC;;;;;;;;;;AA8BpB,wBAeE;AAEF,eAAO,MAAM,OAAO,IAAK,CAAC"}
1
+ {"version":3,"file":"Grid.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Grid/Grid.stories.tsx"],"names":[],"mappings":";AAIA,OAAO,YAAY,CAAC;;;;;;;;;;AA6BpB,wBAeE;AAEF,eAAO,MAAM,OAAO,IAAK,CAAC"}
@@ -3,7 +3,7 @@ declare const _default: {
3
3
  title: string;
4
4
  component: ({ id, columns, Component: TileComponent, debug, onDrop, }: import("./Kanban").KanbanProps<import("../../mosaic").MosaicDataItem>) => JSX.Element;
5
5
  render: () => JSX.Element;
6
- decorators: (import("@storybook/react/*").Decorator | import("@storybook/csf").DecoratorFunction<import("@storybook/react/*").ReactRenderer>)[];
6
+ decorators: import("@storybook/react/*").Decorator[];
7
7
  parameters: {
8
8
  layout: string;
9
9
  };
@@ -5,7 +5,7 @@ declare const _default: {
5
5
  title: string;
6
6
  component: ({ id, columns, Component: TileComponent, debug, onDrop, }: import("./Kanban").KanbanProps<import("../../mosaic").MosaicDataItem>) => JSX.Element;
7
7
  render: (args: DemoKanbanProps) => JSX.Element;
8
- decorators: (import("@storybook/react/*").Decorator | import("@storybook/csf").DecoratorFunction<import("@storybook/react/*").ReactRenderer>)[];
8
+ decorators: import("@storybook/react/*").Decorator[];
9
9
  parameters: {
10
10
  layout: string;
11
11
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Kanban.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Kanban/Kanban.stories.tsx"],"names":[],"mappings":";AAIA,OAAO,YAAY,CAAC;AASpB,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,WAAW,CAAC;;;;mBAS5C,eAAe;;;;;;AAHhC,wBAeE;AAEF,eAAO,MAAM,OAAO;;;;;;CAMnB,CAAC;AAEF,eAAO,MAAM,OAAO;;;;;;;CAOnB,CAAC"}
1
+ {"version":3,"file":"Kanban.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Kanban/Kanban.stories.tsx"],"names":[],"mappings":";AAIA,OAAO,YAAY,CAAC;AAQpB,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,WAAW,CAAC;;;;mBAS5C,eAAe;;;;;;AAHhC,wBAeE;AAEF,eAAO,MAAM,OAAO;;;;;;CAMnB,CAAC;AAEF,eAAO,MAAM,OAAO;;;;;;;CAOnB,CAAC"}
@@ -5,7 +5,7 @@ declare const _default: {
5
5
  title: string;
6
6
  component: ({ id, Component, onOver, onDrop, items, direction, debug, }: import("./Stack").StackProps<import("../../mosaic").MosaicDataItem>) => JSX.Element;
7
7
  render: (args: DemoStackProps) => JSX.Element;
8
- decorators: (import("@storybook/react/*").Decorator | import("@storybook/csf").DecoratorFunction<import("@storybook/react/*").ReactRenderer>)[];
8
+ decorators: import("@storybook/react/*").Decorator[];
9
9
  parameters: {
10
10
  layout: string;
11
11
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Columns.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Stack/Columns.stories.tsx"],"names":[],"mappings":";AAIA,OAAO,YAAY,CAAC;AASpB,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,WAAW,CAAC;;;;mBAS1C,cAAc;;;;;;AAH/B,wBAoBE;AAEF,eAAO,MAAM,QAAQ;;;;;CAKpB,CAAC;AAGF,eAAO,MAAM,IAAI;;;;;;CAMhB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;CAMlB,CAAC"}
1
+ {"version":3,"file":"Columns.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Stack/Columns.stories.tsx"],"names":[],"mappings":";AAIA,OAAO,YAAY,CAAC;AAQpB,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,WAAW,CAAC;;;;mBAS1C,cAAc;;;;;;AAH/B,wBAoBE;AAEF,eAAO,MAAM,QAAQ;;;;;CAKpB,CAAC;AAGF,eAAO,MAAM,IAAI;;;;;;CAMhB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;CAMlB,CAAC"}
@@ -8,7 +8,7 @@ declare const _default: {
8
8
  types: string[];
9
9
  count: number;
10
10
  }) => JSX.Element;
11
- decorators: (import("@storybook/react/*").Decorator | import("@storybook/csf").DecoratorFunction<import("@storybook/react/*").ReactRenderer>)[];
11
+ decorators: import("@storybook/react/*").Decorator[];
12
12
  parameters: {
13
13
  layout: string;
14
14
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Stack.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Stack/Stack.stories.tsx"],"names":[],"mappings":";AAIA,OAAO,YAAY,CAAC;AAQpB,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC;;;;mBAWvC,UAAU,GAAG;QACjB,KAAK,EAAE,MAAM,EAAE,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;KACf;;;;;;AAPL,wBAoBE;AAEF,eAAO,MAAM,OAAO;;;;;;CAMnB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;;CAOtB,CAAC;AAEF,eAAO,MAAM,OAAO;;;;;;;CAOnB,CAAC"}
1
+ {"version":3,"file":"Stack.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Stack/Stack.stories.tsx"],"names":[],"mappings":";AAIA,OAAO,YAAY,CAAC;AAOpB,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC;;;;mBAWvC,UAAU,GAAG;QACjB,KAAK,EAAE,MAAM,EAAE,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;KACf;;;;;;AAPL,wBAoBE;AAEF,eAAO,MAAM,OAAO;;;;;;CAMnB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;;CAOtB,CAAC;AAEF,eAAO,MAAM,OAAO;;;;;;;CAOnB,CAAC"}
@@ -3,7 +3,7 @@ import '@dxosTheme';
3
3
  declare const _default: {
4
4
  title: string;
5
5
  component: ({ id, Component, onOver, onDrop, items, debug }: import("./Tree").TreeProps<import("./Tree").TreeData>) => JSX.Element;
6
- decorators: (import("@storybook/react/*").Decorator | import("@storybook/csf").DecoratorFunction<import("@storybook/react/*").ReactRenderer>)[];
6
+ decorators: import("@storybook/react/*").Decorator[];
7
7
  parameters: {
8
8
  layout: string;
9
9
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Graph.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Tree/Graph.stories.tsx"],"names":[],"mappings":";AAIA,OAAO,YAAY,CAAC;;;;;;;;;AAcpB,wBAeE"}
1
+ {"version":3,"file":"Graph.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Tree/Graph.stories.tsx"],"names":[],"mappings":";AAIA,OAAO,YAAY,CAAC;;;;;;;;;AAapB,wBAeE"}
@@ -5,7 +5,7 @@ declare const _default: {
5
5
  title: string;
6
6
  component: ({ id, Component, onOver, onDrop, items, debug }: import("./Tree").TreeProps<import("./Tree").TreeData>) => JSX.Element;
7
7
  render: (args: DemoTreeProps) => JSX.Element;
8
- decorators: (import("@storybook/react/*").Decorator | import("@storybook/csf").DecoratorFunction<import("@storybook/react/*").ReactRenderer>)[];
8
+ decorators: import("@storybook/react/*").Decorator[];
9
9
  parameters: {
10
10
  layout: string;
11
11
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Tree.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Tree/Tree.stories.tsx"],"names":[],"mappings":";AAIA,OAAO,YAAY,CAAC;AASpB,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,WAAW,CAAC;;;;mBA8DxC,aAAa;;;;;;AAH9B,wBAeE;AAEF,eAAO,MAAM,OAAO;;;;;;;;;;;;;CAEnB,CAAC;AAEF,eAAO,MAAM,IAAI;;;;;;;;;;;;;CAEhB,CAAC"}
1
+ {"version":3,"file":"Tree.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Tree/Tree.stories.tsx"],"names":[],"mappings":";AAIA,OAAO,YAAY,CAAC;AAQpB,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,WAAW,CAAC;;;;mBA8DxC,aAAa;;;;;;AAH9B,wBAeE;AAEF,eAAO,MAAM,OAAO;;;;;;;;;;;;;CAEnB,CAAC;AAEF,eAAO,MAAM,IAAI;;;;;;;;;;;;;CAEhB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/react-ui-mosaic",
3
- "version": "0.6.2-main.d41f0d2",
3
+ "version": "0.6.2-main.fb91371",
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",
@@ -24,33 +24,33 @@
24
24
  "lodash.defaultsdeep": "^4.6.1",
25
25
  "lodash.pick": "^4.4.0",
26
26
  "react-resize-detector": "^7.1.2",
27
- "@dxos/debug": "0.6.2-main.d41f0d2",
28
- "@dxos/invariant": "0.6.2-main.d41f0d2",
29
- "@dxos/keys": "0.6.2-main.d41f0d2",
30
- "@dxos/react-ui": "0.6.2-main.d41f0d2",
31
- "@dxos/log": "0.6.2-main.d41f0d2",
32
- "@dxos/react-ui-card": "0.6.2-main.d41f0d2",
33
- "@dxos/react-ui-types": "0.6.2-main.d41f0d2",
34
- "@dxos/util": "0.6.2-main.d41f0d2",
35
- "@dxos/react-ui-theme": "0.6.2-main.d41f0d2"
27
+ "@dxos/invariant": "0.6.2-main.fb91371",
28
+ "@dxos/keys": "0.6.2-main.fb91371",
29
+ "@dxos/debug": "0.6.2-main.fb91371",
30
+ "@dxos/react-ui": "0.6.2-main.fb91371",
31
+ "@dxos/log": "0.6.2-main.fb91371",
32
+ "@dxos/react-ui-card": "0.6.2-main.fb91371",
33
+ "@dxos/react-ui-theme": "0.6.2-main.fb91371",
34
+ "@dxos/util": "0.6.2-main.fb91371",
35
+ "@dxos/react-ui-types": "0.6.2-main.fb91371"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@phosphor-icons/react": "^2.1.5",
39
- "@types/d3": "^7.4.2",
39
+ "@types/d3": "^7.4.3",
40
40
  "@types/lodash.defaultsdeep": "^4.6.6",
41
41
  "@types/lodash.pick": "^4.4.7",
42
42
  "@types/react": "^18.0.21",
43
43
  "@types/react-dom": "^18.0.6",
44
- "d3": "^7.8.5",
44
+ "d3": "^7.9.0",
45
45
  "react": "^18.2.0",
46
46
  "react-dom": "^18.2.0",
47
47
  "vite": "^5.2.9",
48
- "@dxos/app-graph": "0.6.2-main.d41f0d2",
49
- "@dxos/echo-schema": "0.6.2-main.d41f0d2",
50
- "@dxos/gem-core": "0.6.2-main.d41f0d2",
51
- "@dxos/random": "0.6.2-main.d41f0d2",
52
- "@dxos/react-client": "0.6.2-main.d41f0d2",
53
- "@dxos/storybook-utils": "0.6.2-main.d41f0d2"
48
+ "@dxos/app-graph": "0.6.2-main.fb91371",
49
+ "@dxos/echo-schema": "0.6.2-main.fb91371",
50
+ "@dxos/gem-core": "0.6.2-main.fb91371",
51
+ "@dxos/storybook-utils": "0.6.2-main.fb91371",
52
+ "@dxos/react-client": "0.6.2-main.fb91371",
53
+ "@dxos/random": "0.6.2-main.fb91371"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "@phosphor-icons/react": "^2.1.5",
@@ -7,8 +7,7 @@ import '@dxosTheme';
7
7
  import React from 'react';
8
8
 
9
9
  import { faker } from '@dxos/random';
10
- import { FullscreenDecorator } from '@dxos/react-client/testing';
11
- import { withTheme } from '@dxos/storybook-utils';
10
+ import { withFullscreen, withTheme } from '@dxos/storybook-utils';
12
11
 
13
12
  import { Mosaic } from '../../mosaic';
14
13
  import { ComplexCard, SimpleCard } from '../../testing';
@@ -21,7 +20,7 @@ faker.seed(5);
21
20
 
22
21
  export default {
23
22
  title: 'react-ui-mosaic/Demo',
24
- decorators: [withTheme, FullscreenDecorator()],
23
+ decorators: [withTheme, withFullscreen()],
25
24
  parameters: {
26
25
  layout: 'fullscreen',
27
26
  },
@@ -7,8 +7,8 @@ import React, { type FC } from 'react';
7
7
  import { faker } from '@dxos/random';
8
8
  import { type PublicKey } from '@dxos/react-client';
9
9
  import { create } from '@dxos/react-client/echo';
10
- import { ClientRepeater, FullscreenDecorator } from '@dxos/react-client/testing';
11
- import { withTheme } from '@dxos/storybook-utils';
10
+ import { ClientRepeater } from '@dxos/react-client/testing';
11
+ import { withFullscreen, withTheme } from '@dxos/storybook-utils';
12
12
 
13
13
  import { Mosaic } from '../../mosaic';
14
14
  import { TestObjectGenerator, range, Status, Priority } from '../../testing';
@@ -67,7 +67,7 @@ export default {
67
67
  createSpace
68
68
  />
69
69
  ),
70
- decorators: [withTheme, FullscreenDecorator()],
70
+ decorators: [withTheme, withFullscreen()],
71
71
  };
72
72
 
73
73
  // TODO(wittjosiah): This currently has a bug where empty over events are fired when dragging from tree onto kanban.
@@ -7,8 +7,7 @@ import '@dxosTheme';
7
7
  import React from 'react';
8
8
 
9
9
  import { faker } from '@dxos/random';
10
- import { FullscreenDecorator } from '@dxos/react-client/testing';
11
- import { withTheme } from '@dxos/storybook-utils';
10
+ import { withFullscreen, withTheme } from '@dxos/storybook-utils';
12
11
 
13
12
  import { Grid, type GridLayout } from './Grid';
14
13
  import { DemoGrid } from './testing';
@@ -43,7 +42,7 @@ export default {
43
42
  </Mosaic.Root>
44
43
  );
45
44
  },
46
- decorators: [withTheme, FullscreenDecorator()],
45
+ decorators: [withTheme, withFullscreen()],
47
46
  parameters: {
48
47
  layout: 'fullscreen',
49
48
  },
@@ -6,8 +6,8 @@ import React from 'react';
6
6
 
7
7
  import { type PublicKey } from '@dxos/react-client';
8
8
  // import { Expando } from '@dxos/react-client/echo';
9
- import { ClientRepeater, FullscreenDecorator } from '@dxos/react-client/testing';
10
- import { withTheme } from '@dxos/storybook-utils';
9
+ import { ClientRepeater } from '@dxos/react-client/testing';
10
+ import { withFullscreen, withTheme } from '@dxos/storybook-utils';
11
11
 
12
12
  import { Kanban } from './Kanban';
13
13
  // import { EchoKanban, columnValues } from './testing';
@@ -61,7 +61,7 @@ export default {
61
61
  createSpace
62
62
  />
63
63
  ),
64
- decorators: [withTheme, FullscreenDecorator()],
64
+ decorators: [withTheme, withFullscreen()],
65
65
  parameters: {
66
66
  layout: 'fullscreen',
67
67
  },
@@ -7,8 +7,7 @@ import '@dxosTheme';
7
7
  import React from 'react';
8
8
 
9
9
  import { faker } from '@dxos/random';
10
- import { FullscreenDecorator } from '@dxos/react-client/testing';
11
- import { withTheme } from '@dxos/storybook-utils';
10
+ import { withFullscreen, withTheme } from '@dxos/storybook-utils';
12
11
 
13
12
  import { Kanban } from './Kanban';
14
13
  import { DemoKanban, type DemoKanbanProps } from './testing';
@@ -28,7 +27,7 @@ export default {
28
27
  </Mosaic.Root>
29
28
  );
30
29
  },
31
- decorators: [withTheme, FullscreenDecorator()],
30
+ decorators: [withTheme, withFullscreen()],
32
31
  parameters: {
33
32
  layout: 'fullscreen',
34
33
  },
@@ -7,8 +7,7 @@ import '@dxosTheme';
7
7
  import React from 'react';
8
8
 
9
9
  import { faker } from '@dxos/random';
10
- import { FullscreenDecorator } from '@dxos/react-client/testing';
11
- import { withTheme } from '@dxos/storybook-utils';
10
+ import { withFullscreen, withTheme } from '@dxos/storybook-utils';
12
11
 
13
12
  import { Stack } from './Stack';
14
13
  import { DemoStack, type DemoStackProps } from './testing';
@@ -33,7 +32,7 @@ export default {
33
32
  </Mosaic.Root>
34
33
  );
35
34
  },
36
- decorators: [withTheme, FullscreenDecorator()],
35
+ decorators: [withTheme, withFullscreen()],
37
36
  parameters: {
38
37
  layout: 'fullscreen',
39
38
  },
@@ -7,8 +7,7 @@ import '@dxosTheme';
7
7
  import React from 'react';
8
8
 
9
9
  import { faker } from '@dxos/random';
10
- import { FullscreenDecorator } from '@dxos/react-client/testing';
11
- import { withTheme } from '@dxos/storybook-utils';
10
+ import { withFullscreen, withTheme } from '@dxos/storybook-utils';
12
11
 
13
12
  import { Stack, type StackProps } from './Stack';
14
13
  import { DemoStack } from './testing';
@@ -33,7 +32,7 @@ export default {
33
32
  </Mosaic.Root>
34
33
  );
35
34
  },
36
- decorators: [withTheme, FullscreenDecorator()],
35
+ decorators: [withTheme, withFullscreen()],
37
36
  parameters: {
38
37
  layout: 'fullscreen',
39
38
  },
@@ -7,8 +7,7 @@ import '@dxosTheme';
7
7
  // import React from 'react';
8
8
 
9
9
  import { faker } from '@dxos/random';
10
- import { FullscreenDecorator } from '@dxos/react-client/testing';
11
- import { withTheme } from '@dxos/storybook-utils';
10
+ import { withFullscreen, withTheme } from '@dxos/storybook-utils';
12
11
 
13
12
  import { Tree } from './Tree';
14
13
  // import { GraphTree } from './testing';
@@ -27,7 +26,7 @@ export default {
27
26
  // </Mosaic.Root>
28
27
  // );
29
28
  // },
30
- decorators: [withTheme, FullscreenDecorator()],
29
+ decorators: [withTheme, withFullscreen()],
31
30
  parameters: {
32
31
  layout: 'fullscreen',
33
32
  },
@@ -7,8 +7,7 @@ import '@dxosTheme';
7
7
  import React from 'react';
8
8
 
9
9
  import { faker } from '@dxos/random';
10
- import { FullscreenDecorator } from '@dxos/react-client/testing';
11
- import { withTheme } from '@dxos/storybook-utils';
10
+ import { withFullscreen, withTheme } from '@dxos/storybook-utils';
12
11
 
13
12
  import { Tree } from './Tree';
14
13
  import { DemoTree, type DemoTreeProps } from './testing';
@@ -81,7 +80,7 @@ export default {
81
80
  </Mosaic.Root>
82
81
  );
83
82
  },
84
- decorators: [withTheme, FullscreenDecorator()],
83
+ decorators: [withTheme, withFullscreen()],
85
84
  parameters: {
86
85
  layout: 'fullscreen',
87
86
  },