@dxos/react-ui-mosaic 0.7.2 → 0.7.3-main.2dd075e
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
|
|
1
|
+
import { type S } from '@dxos/echo-schema';
|
|
2
|
+
import { type ReactiveObject } from '@dxos/live-object';
|
|
3
3
|
export type TestItem = {
|
|
4
4
|
id: string;
|
|
5
5
|
type: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../../../src/testing/generator.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../../../src/testing/generator.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAU,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAIhE,MAAM,MAAM,QAAQ,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAO1E,KAAK,aAAa,CAAC,CAAC,SAAS,cAAc,CAAC,GAAG,CAAC,IAAI;IAClD,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC,CAAC;CACvB,CAAC;AAEF,KAAK,gBAAgB,GAAG;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,CAAC,GAAG,CAAC,CAAA;CAAE,CAAC;AAW/D,eAAO,MAAM,MAAM,UAAgC,CAAC;AACpD,eAAO,MAAM,QAAQ,UAAkB,CAAC;AAwDxC;;GAEG;AACH,qBAAa,mBAAmB;IAC9B,SAAgB,SAAS,EAAE,gBAAgB,CAAC;gBAEhC,EAAE,KAAK,EAAE,SAAS,EAAE,GAAE;QAAE,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,SAAS,CAAC,EAAE,gBAAgB,CAAA;KAAO;IASzF,IAAI,MAAM,IAAI,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAE5B;IAED,YAAY,CAAC,EAAE,KAAK,EAAE,GAAE;QAAE,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;KAAO;IAMjD,aAAa,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE;CAGtE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Echo.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Demo/Echo.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;
|
|
1
|
+
{"version":3,"file":"Echo.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Demo/Echo.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;AAsC1B,wBA4BE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/react-ui-mosaic",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.3-main.2dd075e",
|
|
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",
|
|
@@ -31,14 +31,15 @@
|
|
|
31
31
|
"@radix-ui/react-compose-refs": "^1.0.0",
|
|
32
32
|
"lodash.defaultsdeep": "^4.6.1",
|
|
33
33
|
"react-resize-detector": "^11.0.1",
|
|
34
|
-
"@dxos/debug": "0.7.
|
|
35
|
-
"@dxos/echo-schema": "0.7.
|
|
36
|
-
"@dxos/
|
|
37
|
-
"@dxos/
|
|
38
|
-
"@dxos/
|
|
39
|
-
"@dxos/
|
|
40
|
-
"@dxos/
|
|
41
|
-
"@dxos/react-ui-types": "0.7.
|
|
34
|
+
"@dxos/debug": "0.7.3-main.2dd075e",
|
|
35
|
+
"@dxos/echo-schema": "0.7.3-main.2dd075e",
|
|
36
|
+
"@dxos/invariant": "0.7.3-main.2dd075e",
|
|
37
|
+
"@dxos/keys": "0.7.3-main.2dd075e",
|
|
38
|
+
"@dxos/live-object": "0.7.3-main.2dd075e",
|
|
39
|
+
"@dxos/log": "0.7.3-main.2dd075e",
|
|
40
|
+
"@dxos/react-ui-card": "0.7.3-main.2dd075e",
|
|
41
|
+
"@dxos/react-ui-types": "0.7.3-main.2dd075e",
|
|
42
|
+
"@dxos/util": "0.7.3-main.2dd075e"
|
|
42
43
|
},
|
|
43
44
|
"devDependencies": {
|
|
44
45
|
"@phosphor-icons/react": "^2.1.5",
|
|
@@ -50,20 +51,20 @@
|
|
|
50
51
|
"react": "~18.2.0",
|
|
51
52
|
"react-dom": "~18.2.0",
|
|
52
53
|
"vite": "5.4.7",
|
|
53
|
-
"@dxos/app-graph": "0.7.
|
|
54
|
-
"@dxos/gem-core": "0.7.
|
|
55
|
-
"@dxos/
|
|
56
|
-
"@dxos/
|
|
57
|
-
"@dxos/react-ui": "0.7.
|
|
58
|
-
"@dxos/storybook-utils": "0.7.
|
|
59
|
-
"@dxos/react-ui-theme": "0.7.
|
|
54
|
+
"@dxos/app-graph": "0.7.3-main.2dd075e",
|
|
55
|
+
"@dxos/gem-core": "0.7.3-main.2dd075e",
|
|
56
|
+
"@dxos/random": "0.7.3-main.2dd075e",
|
|
57
|
+
"@dxos/react-client": "0.7.3-main.2dd075e",
|
|
58
|
+
"@dxos/react-ui": "0.7.3-main.2dd075e",
|
|
59
|
+
"@dxos/storybook-utils": "0.7.3-main.2dd075e",
|
|
60
|
+
"@dxos/react-ui-theme": "0.7.3-main.2dd075e"
|
|
60
61
|
},
|
|
61
62
|
"peerDependencies": {
|
|
62
63
|
"@phosphor-icons/react": "^2.1.5",
|
|
63
64
|
"react": "~18.2.0",
|
|
64
65
|
"react-dom": "~18.2.0",
|
|
65
|
-
"@dxos/react-ui": "0.7.
|
|
66
|
-
"@dxos/react-ui
|
|
66
|
+
"@dxos/react-ui-theme": "0.7.3-main.2dd075e",
|
|
67
|
+
"@dxos/react-ui": "0.7.3-main.2dd075e"
|
|
67
68
|
},
|
|
68
69
|
"publishConfig": {
|
|
69
70
|
"access": "public"
|
package/src/testing/generator.ts
CHANGED
|
@@ -2,16 +2,10 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { type S } from '@dxos/echo-schema';
|
|
6
|
+
import { create, type ReactiveObject } from '@dxos/live-object';
|
|
6
7
|
import { faker } from '@dxos/random';
|
|
7
|
-
|
|
8
|
-
// TODO(burdon): Reconcile with @dxos/echo-generator.
|
|
9
|
-
|
|
10
|
-
// TODO(burdon): Util.
|
|
11
|
-
export const range = <T>(fn: (i: number) => T | undefined, length: number): T[] =>
|
|
12
|
-
Array.from({ length })
|
|
13
|
-
.map((_, i) => fn(i))
|
|
14
|
-
.filter(Boolean) as T[];
|
|
8
|
+
import { range } from '@dxos/util';
|
|
15
9
|
|
|
16
10
|
export type TestItem = { id: string; type: string } & Record<string, any>;
|
|
17
11
|
|
|
@@ -119,7 +113,7 @@ export class TestObjectGenerator {
|
|
|
119
113
|
}
|
|
120
114
|
|
|
121
115
|
createObjects({ types, length }: { types?: string[]; length: number }) {
|
|
122
|
-
return range(() => this.createObject({ types })
|
|
116
|
+
return range(length, () => this.createObject({ types }));
|
|
123
117
|
}
|
|
124
118
|
}
|
|
125
119
|
|
|
@@ -8,9 +8,10 @@ import { faker } from '@dxos/random';
|
|
|
8
8
|
import { create } from '@dxos/react-client/echo';
|
|
9
9
|
import { type ClientRepeatedComponentProps, ClientRepeater } from '@dxos/react-client/testing';
|
|
10
10
|
import { withLayout, withTheme } from '@dxos/storybook-utils';
|
|
11
|
+
import { range } from '@dxos/util';
|
|
11
12
|
|
|
12
13
|
import { Mosaic } from '../../mosaic';
|
|
13
|
-
import { TestObjectGenerator,
|
|
14
|
+
import { TestObjectGenerator, Status, Priority } from '../../testing';
|
|
14
15
|
|
|
15
16
|
// import { EchoKanban } from '../Kanban/testing';
|
|
16
17
|
// import { GraphTree } from '../Tree/testing';
|
|
@@ -48,7 +49,7 @@ export default {
|
|
|
48
49
|
const factory = generator.factories.project;
|
|
49
50
|
const objects = [
|
|
50
51
|
factory.schema,
|
|
51
|
-
...range(factory.createObject
|
|
52
|
+
...range(10, factory.createObject),
|
|
52
53
|
create({
|
|
53
54
|
type: 'kanban',
|
|
54
55
|
title: 'Projects',
|