@dxos/react-ui-mosaic 0.6.7 → 0.6.8-main.046e6cf
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 +19 -4
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/types/src/mosaic/Container.d.ts +1 -1
- package/dist/types/src/mosaic/Container.d.ts.map +1 -1
- package/dist/types/src/mosaic/DragOverlay.d.ts +2 -2
- package/dist/types/src/mosaic/DragOverlay.d.ts.map +1 -1
- package/dist/types/src/mosaic/Mosaic.d.ts +1 -1
- package/dist/types/src/mosaic/Mosaic.d.ts.map +1 -1
- package/dist/types/src/mosaic/Root.d.ts.map +1 -1
- package/dist/types/src/mosaic/SortableContext.d.ts +2 -2
- package/dist/types/src/mosaic/SortableContext.d.ts.map +1 -1
- package/dist/types/src/mosaic/Tile.d.ts +15 -15
- package/dist/types/src/mosaic/Tile.d.ts.map +1 -1
- package/dist/types/src/mosaic/hooks/useContainer.d.ts.map +1 -1
- package/dist/types/src/mosaic/hooks/useItemsWithOrigin.d.ts.map +1 -1
- package/dist/types/src/mosaic/hooks/useItemsWithPreview.d.ts.map +1 -1
- package/dist/types/src/mosaic/util/data.d.ts.map +1 -1
- package/dist/types/src/mosaic/util/props.d.ts.map +1 -1
- package/dist/types/src/testing/generator.d.ts.map +1 -1
- package/dist/types/src/views/Demo/Demo.stories.d.ts +4 -4
- package/dist/types/src/views/Demo/Demo.stories.d.ts.map +1 -1
- package/dist/types/src/views/Demo/Echo.stories.d.ts +2 -2
- package/dist/types/src/views/Demo/Echo.stories.d.ts.map +1 -1
- package/dist/types/src/views/Grid/Grid.d.ts +2 -2
- package/dist/types/src/views/Grid/Grid.d.ts.map +1 -1
- package/dist/types/src/views/Grid/Grid.stories.d.ts +3 -3
- package/dist/types/src/views/Grid/Grid.stories.d.ts.map +1 -1
- package/dist/types/src/views/Grid/layout.d.ts.map +1 -1
- package/dist/types/src/views/Grid/testing.d.ts +2 -2
- package/dist/types/src/views/Grid/testing.d.ts.map +1 -1
- package/dist/types/src/views/Kanban/Echo.stories.d.ts +3 -3
- package/dist/types/src/views/Kanban/Echo.stories.d.ts.map +1 -1
- package/dist/types/src/views/Kanban/Kanban.d.ts +2 -2
- package/dist/types/src/views/Kanban/Kanban.d.ts.map +1 -1
- package/dist/types/src/views/Kanban/Kanban.stories.d.ts +3 -3
- package/dist/types/src/views/Kanban/Kanban.stories.d.ts.map +1 -1
- package/dist/types/src/views/Stack/Columns.stories.d.ts +3 -3
- package/dist/types/src/views/Stack/Columns.stories.d.ts.map +1 -1
- package/dist/types/src/views/Stack/Stack.d.ts +2 -2
- package/dist/types/src/views/Stack/Stack.d.ts.map +1 -1
- package/dist/types/src/views/Stack/Stack.stories.d.ts +3 -3
- package/dist/types/src/views/Stack/Stack.stories.d.ts.map +1 -1
- package/dist/types/src/views/Stack/testing.d.ts +2 -2
- package/dist/types/src/views/Stack/testing.d.ts.map +1 -1
- package/dist/types/src/views/Tree/Graph.stories.d.ts +1 -2
- package/dist/types/src/views/Tree/Graph.stories.d.ts.map +1 -1
- package/dist/types/src/views/Tree/Tree.d.ts +2 -2
- package/dist/types/src/views/Tree/Tree.d.ts.map +1 -1
- package/dist/types/src/views/Tree/Tree.stories.d.ts +3 -3
- package/dist/types/src/views/Tree/Tree.stories.d.ts.map +1 -1
- package/dist/types/src/views/Tree/testing.d.ts +2 -2
- package/dist/types/src/views/Tree/testing.d.ts.map +1 -1
- package/package.json +18 -20
- package/src/mosaic/Root.tsx +5 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SortableContext.d.ts","sourceRoot":"","sources":["../../../../src/mosaic/SortableContext.tsx"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"SortableContext.d.ts","sourceRoot":"","sources":["../../../../src/mosaic/SortableContext.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAGtD,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;AAG9C,KAAK,SAAS,GAAG,YAAY,GAAG,UAAU,CAAC;AAE3C,MAAM,MAAM,mBAAmB,CAAC,KAAK,SAAS,cAAc,GAAG,cAAc,IAAI,iBAAiB,CAAC;IACjG,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC;IAChB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC,CAAC;AAEH;;GAEG;AAGH,eAAO,MAAM,qBAAqB,uCAA0D,mBAAmB,sBAwB9G,CAAC"}
|
|
@@ -42,7 +42,7 @@ export type MosaicTileComponent<TData extends MosaicDataItem = MosaicDataItem, T
|
|
|
42
42
|
/**
|
|
43
43
|
* Basic draggable mosaic tile.
|
|
44
44
|
*/
|
|
45
|
-
export declare const DraggableTile: ({ path: parentPath, type, item, Component, position, draggableStyle, ...props }: MosaicTileProps<any>) => JSX.Element;
|
|
45
|
+
export declare const DraggableTile: ({ path: parentPath, type, item, Component, position, draggableStyle, ...props }: MosaicTileProps<any>) => React.JSX.Element;
|
|
46
46
|
/**
|
|
47
47
|
* Basic droppable mosaic tile.
|
|
48
48
|
*/
|
|
@@ -53,22 +53,22 @@ export declare const DroppableTile: React.ForwardRefExoticComponent<Omit<{}, "cl
|
|
|
53
53
|
item: any;
|
|
54
54
|
Component?: MosaicTileComponent<any, any, {}> | undefined;
|
|
55
55
|
position?: unknown;
|
|
56
|
-
type?: string
|
|
57
|
-
operation?:
|
|
58
|
-
active?: MosaicActiveType
|
|
59
|
-
isDragging?: boolean
|
|
60
|
-
isOver?: boolean
|
|
61
|
-
draggableStyle?:
|
|
62
|
-
draggableProps?:
|
|
63
|
-
onSelect?: (
|
|
64
|
-
onDelete?: (
|
|
65
|
-
onNavigate?: (
|
|
66
|
-
onAddBefore?: (
|
|
67
|
-
onAddAfter?: (
|
|
68
|
-
onAction?: (
|
|
56
|
+
type?: string;
|
|
57
|
+
operation?: MosaicOperation;
|
|
58
|
+
active?: MosaicActiveType;
|
|
59
|
+
isDragging?: boolean;
|
|
60
|
+
isOver?: boolean;
|
|
61
|
+
draggableStyle?: CSSProperties;
|
|
62
|
+
draggableProps?: DraggableAttributes & HTMLAttributes<HTMLElement>;
|
|
63
|
+
onSelect?: () => void;
|
|
64
|
+
onDelete?: (force?: boolean) => void;
|
|
65
|
+
onNavigate?: () => void;
|
|
66
|
+
onAddBefore?: () => void;
|
|
67
|
+
onAddAfter?: () => void;
|
|
68
|
+
onAction?: (action: MosaicTileAction) => void;
|
|
69
69
|
} & React.RefAttributes<HTMLDivElement | null>>;
|
|
70
70
|
/**
|
|
71
71
|
* Mosaic tile that can be sorted.
|
|
72
72
|
*/
|
|
73
|
-
export declare const SortableTile: ({ path: parentPath, type, item, Component: OverrideComponent, position, draggableStyle, ...props }: MosaicTileProps<any, number>) => JSX.Element;
|
|
73
|
+
export declare const SortableTile: ({ path: parentPath, type, item, Component: OverrideComponent, position, draggableStyle, ...props }: MosaicTileProps<any, number>) => React.JSX.Element;
|
|
74
74
|
//# sourceMappingURL=Tile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tile.d.ts","sourceRoot":"","sources":["../../../../src/mosaic/Tile.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,mBAAmB,EAA8B,MAAM,eAAe,CAAC;AAGrF,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAAE,aAAa,EAAE,yBAAyB,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAErG,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEtD,OAAO,EAAgB,KAAK,eAAe,EAAE,KAAK,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAG9F,OAAO,KAAK,EAAE,cAAc,EAAqB,MAAM,SAAS,CAAC;AA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eAAO,MAAM,aAAa,oFAQvB,eAAe,CAAC,GAAG,CAAC,sBA0BtB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa;;;UAjFhB,MAAM;;;;WAIL,MAAM;gBACD,eAAe;aAClB,gBAAgB;iBAGZ,OAAO;aACX,OAAO;qBACC,aAAa;qBACb,mBAAmB,GAElC,cAAc,CAAC,WAAW,CAAC;eAGlB,MAAM,IAAI;eACV,CAAC,KAAK,CAAC,EAAE,OAAO,KAAK,IAAI;iBACvB,MAAM,IAAI;kBACT,MAAM,IAAI;iBACX,MAAM,IAAI;eACZ,CAAC,MAAM,EAAE,gBAAgB,KAAK,IAAI;+CAsFhD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,uGAQtB,eAAe,CAAC,GAAG,EAAE,MAAM,CAAC,sBAyD9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useContainer.d.ts","sourceRoot":"","sources":["../../../../../src/mosaic/hooks/useContainer.ts"],"names":[],"mappings":"AAMA,OAAO,EAA0B,KAAK,0BAA0B,EAAE,MAAM,cAAc,CAAC;AACvF,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"useContainer.d.ts","sourceRoot":"","sources":["../../../../../src/mosaic/hooks/useContainer.ts"],"names":[],"mappings":"AAMA,OAAO,EAA0B,KAAK,0BAA0B,EAAE,MAAM,cAAc,CAAC;AACvF,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,eAAO,MAAM,YAAY,GACvB,KAAK,SAAS,cAAc,mBAC5B,SAAS,iBACN,0BAA0B,CAAC,KAAK,EAAE,SAAS,CAAuC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useItemsWithOrigin.d.ts","sourceRoot":"","sources":["../../../../../src/mosaic/hooks/useItemsWithOrigin.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAI/C,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"useItemsWithOrigin.d.ts","sourceRoot":"","sources":["../../../../../src/mosaic/hooks/useItemsWithOrigin.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAI/C,eAAO,MAAM,kBAAkB,GAAI,CAAC,SAAS,cAAc,QAAQ,MAAM,SAAS,CAAC,EAAE,QAuBpF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useItemsWithPreview.d.ts","sourceRoot":"","sources":["../../../../../src/mosaic/hooks/useItemsWithPreview.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAG/C;;;GAGG;AACH,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"useItemsWithPreview.d.ts","sourceRoot":"","sources":["../../../../../src/mosaic/hooks/useItemsWithPreview.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAG/C;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAAI,CAAC,SAAS,cAAc,mBAAmB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,CAAC,EAAE,CAAA;CAAE,KAAG,CAAC,EAsD9G,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../../src/mosaic/util/data.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAI/C,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../../src/mosaic/util/data.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAI/C,eAAO,MAAM,SAAS,GAAI,KAAK,SAAS,cAAc,EAAE,MAAM,SAAS,cAAc,SAC5E,KAAK,EAAE,QACR,MAAM,MACR,MAAM,KACT,KAAK,EAIP,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../../../src/mosaic/util/props.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,wBAAwB,EAAE,KAAK,eAAe,EAAE,MAAM,SAAS,CAAC;AAE9E,eAAO,MAAM,WAAW,UAAW,
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../../../src/mosaic/util/props.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,wBAAwB,EAAE,KAAK,eAAe,EAAE,MAAM,SAAS,CAAC;AAE9E,eAAO,MAAM,WAAW,UAAW,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAG,KAAK,IAAI,eAG3D,CAAC;AAEZ,eAAO,MAAM,oBAAoB,UAAW,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAG,KAAK,IAAI,wBAC0B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../../../src/testing/generator.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAK/D,eAAO,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../../../src/testing/generator.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAK/D,eAAO,MAAM,KAAK,GAAI,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,KAAK,CAAC,GAAG,SAAS,UAAU,MAAM,KAAG,CAAC,EAGlD,CAAC;AAE5B,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,kBAAkB,CAAC,GAAG,CAAC,IAAI;IACtD,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,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import '@dxosTheme';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
declare const _default: {
|
|
4
4
|
title: string;
|
|
5
5
|
decorators: import("@storybook/react/*").Decorator[];
|
|
@@ -8,7 +8,7 @@ declare const _default: {
|
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
10
|
export default _default;
|
|
11
|
-
export declare const Default: () => JSX.Element;
|
|
12
|
-
export declare const Tree: () => JSX.Element;
|
|
13
|
-
export declare const Kanban: () => JSX.Element;
|
|
11
|
+
export declare const Default: () => React.JSX.Element;
|
|
12
|
+
export declare const Tree: () => React.JSX.Element;
|
|
13
|
+
export declare const Kanban: () => React.JSX.Element;
|
|
14
14
|
//# sourceMappingURL=Demo.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Demo.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Demo/Demo.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Demo.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Demo/Demo.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,YAAY,CAAC;AAEpB,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;;;AAc1B,wBAME;AAKF,eAAO,MAAM,OAAO,yBAenB,CAAC;AAEF,eAAO,MAAM,IAAI,yBAehB,CAAC;AAEF,eAAO,MAAM,MAAM,yBAelB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Echo.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Demo/Echo.stories.tsx"],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"Echo.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Demo/Echo.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkB,MAAM,OAAO,CAAC;;;;;;AAsCvC,wBA4BE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { type Dimension, type Position, type Size } from './layout';
|
|
3
3
|
import { type MosaicContainerProps, type MosaicDataItem, type MosaicTileAction } from '../../mosaic';
|
|
4
4
|
type ControlledSelection = {
|
|
@@ -26,6 +26,6 @@ export type GridProps<TData extends MosaicDataItem = MosaicDataItem> = Omit<Mosa
|
|
|
26
26
|
/**
|
|
27
27
|
* Grid content.
|
|
28
28
|
*/
|
|
29
|
-
export declare const Grid: ({ id, items, layout, options: opts, margin, square, debug, selected: controlledSelected, Component, classNames, onDrop, onOver, onSelect, onCreate, onAction, }: GridProps) => JSX.Element;
|
|
29
|
+
export declare const Grid: ({ id, items, layout, options: opts, margin, square, debug, selected: controlledSelected, Component, classNames, onDrop, onOver, onSelect, onCreate, onAction, }: GridProps) => React.JSX.Element;
|
|
30
30
|
export {};
|
|
31
31
|
//# sourceMappingURL=Grid.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Grid.d.ts","sourceRoot":"","sources":["../../../../../src/views/Grid/Grid.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Grid.d.ts","sourceRoot":"","sources":["../../../../../src/views/Grid/Grid.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAgD,MAAM,OAAO,CAAC;AAMrE,OAAO,EAML,KAAK,SAAS,EACd,KAAK,QAAQ,EACb,KAAK,IAAI,EACV,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EAItB,MAAM,cAAc,CAAC;AAOtB,KAAK,mBAAmB,GAAG;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACjC,CAAC;AAMF,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,IAAI,CAAC;IACX,UAAU,EAAE,SAAS,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAYF,MAAM,MAAM,UAAU,GAAG;IAAE,CAAC,EAAE,EAAE,MAAM,GAAG,QAAQ,CAAA;CAAE,CAAC;AAEpD,MAAM,MAAM,SAAS,CAAC,KAAK,SAAS,cAAc,GAAG,cAAc,IAAI,IAAI,CACzE,oBAAoB,CAAC,KAAK,EAAE,QAAQ,CAAC,EACrC,UAAU,CACX,GACC,mBAAmB,GAAG;IACpB,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC;IAChB,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IAC/B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,CAAC;IACxC,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,IAAI,CAAC;CAC/C,CAAC;AAEJ;;GAEG;AAEH,eAAO,MAAM,IAAI,oKAgBd,SAAS,sBAoHX,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import '@dxosTheme';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
declare const _default: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: ({ id, items, layout, options: opts, margin, square, debug, selected: controlledSelected, Component, classNames, onDrop, onOver, onSelect, onCreate, onAction, }: import("./Grid").GridProps
|
|
6
|
-
render: () => JSX.Element;
|
|
5
|
+
component: ({ id, items, layout, options: opts, margin, square, debug, selected: controlledSelected, Component, classNames, onDrop, onOver, onSelect, onCreate, onAction, }: import("./Grid").GridProps) => React.JSX.Element;
|
|
6
|
+
render: () => React.JSX.Element;
|
|
7
7
|
decorators: import("@storybook/react/*").Decorator[];
|
|
8
8
|
parameters: {
|
|
9
9
|
layout: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Grid.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Grid/Grid.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Grid.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Grid/Grid.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,YAAY,CAAC;AAEpB,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;;;;;AA2B1B,wBAeE;AAEF,eAAO,MAAM,OAAO,IAAK,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../../src/views/Grid/layout.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,IAAI,GAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAC5C,MAAM,MAAM,QAAQ,GAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAChD,MAAM,MAAM,SAAS,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAC1D,MAAM,MAAM,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAElF,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../../src/views/Grid/layout.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,IAAI,GAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAC5C,MAAM,MAAM,QAAQ,GAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAChD,MAAM,MAAM,SAAS,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAC1D,MAAM,MAAM,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAElF,eAAO,MAAM,YAAY,GAAI,MAAM,QAAQ,IAAI,SAAS,CAAC,QAAQ,EAAE,QAAQ,KAAK,MAAM,KAAG,MAAM,EAAE,EAOhG,CAAC;AAEF,eAAO,MAAM,YAAY,sBAAuB,SAAS,uBAAgB,SAGvE,CAAC;AAEH,eAAO,MAAM,SAAS,aAAc,QAAQ,qBAAqB,SAAS,uBAAgB,MAKxF,CAAC;AAEH,eAAO,MAAM,cAAc,aAAc,QAAQ,qBAAqB,SAAS,uBAAgB,SAG7F,CAAC;AAEH,eAAO,MAAM,kBAAkB,iBACf,MAAM,eACP,MAAM,YACV;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,WAGtC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { type GridLayout, type GridProps } from './Grid';
|
|
3
3
|
import { type MosaicDataItem } from '../../mosaic';
|
|
4
4
|
export type DemoGridProps = GridProps & {
|
|
@@ -7,5 +7,5 @@ export type DemoGridProps = GridProps & {
|
|
|
7
7
|
types?: string[];
|
|
8
8
|
debug?: boolean;
|
|
9
9
|
};
|
|
10
|
-
export declare const DemoGrid: ({ id, options, Component, initialItems, initialLayout, types, debug, classNames, }: DemoGridProps) => JSX.Element;
|
|
10
|
+
export declare const DemoGrid: ({ id, options, Component, initialItems, initialLayout, types, debug, classNames, }: DemoGridProps) => React.JSX.Element;
|
|
11
11
|
//# sourceMappingURL=testing.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../../../src/views/Grid/testing.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../../../src/views/Grid/testing.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,OAAO,EAAQ,KAAK,UAAU,EAAE,KAAK,SAAS,EAAE,MAAM,QAAQ,CAAC;AAE/D,OAAO,EAAE,KAAK,cAAc,EAAwB,MAAM,cAAc,CAAC;AAGzE,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG;IACtC,YAAY,CAAC,EAAE,cAAc,EAAE,CAAC;IAChC,aAAa,CAAC,EAAE,UAAU,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,QAAQ,uFASlB,aAAa,sBA8Df,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: ({ id, columns, Component: TileComponent, debug, onDrop, }: import("./Kanban").KanbanProps
|
|
5
|
-
render: () => JSX.Element;
|
|
4
|
+
component: ({ id, columns, Component: TileComponent, debug, onDrop, }: import("./Kanban").KanbanProps) => React.JSX.Element;
|
|
5
|
+
render: () => React.JSX.Element;
|
|
6
6
|
decorators: import("@storybook/react/*").Decorator[];
|
|
7
7
|
parameters: {
|
|
8
8
|
layout: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Echo.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Kanban/Echo.stories.tsx"],"names":[],"mappings":";;;;;;;;;;
|
|
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,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { type MosaicContainerProps, type MosaicDataItem } from '../../mosaic';
|
|
3
3
|
export type KanbanColumn<TData extends MosaicDataItem = MosaicDataItem> = MosaicDataItem & {
|
|
4
4
|
title: string;
|
|
@@ -8,5 +8,5 @@ export type KanbanProps<TData extends MosaicDataItem = MosaicDataItem> = MosaicC
|
|
|
8
8
|
columns: KanbanColumn<TData>[];
|
|
9
9
|
debug?: boolean;
|
|
10
10
|
};
|
|
11
|
-
export declare const Kanban: ({ id, columns, Component: TileComponent, debug, onDrop, }: KanbanProps) => JSX.Element;
|
|
11
|
+
export declare const Kanban: ({ id, columns, Component: TileComponent, debug, onDrop, }: KanbanProps) => React.JSX.Element;
|
|
12
12
|
//# sourceMappingURL=Kanban.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Kanban.d.ts","sourceRoot":"","sources":["../../../../../src/views/Kanban/Kanban.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Kanban.d.ts","sourceRoot":"","sources":["../../../../../src/views/Kanban/Kanban.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAKnD,OAAO,EAEL,KAAK,oBAAoB,EACzB,KAAK,cAAc,EAKpB,MAAM,cAAc,CAAC;AAKtB,MAAM,MAAM,YAAY,CAAC,KAAK,SAAS,cAAc,GAAG,cAAc,IAAI,cAAc,GAAG;IACzF,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,KAAK,EAAE,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,WAAW,CAAC,KAAK,SAAS,cAAc,GAAG,cAAc,IAAI,oBAAoB,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG;IAC7G,OAAO,EAAE,YAAY,CAAC,KAAK,CAAC,EAAE,CAAC;IAC/B,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,MAAM,8DAMhB,WAAW,sBAqCb,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import '@dxosTheme';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import { type DemoKanbanProps } from './testing';
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: ({ id, columns, Component: TileComponent, debug, onDrop, }: import("./Kanban").KanbanProps
|
|
7
|
-
render: (args: DemoKanbanProps) => JSX.Element;
|
|
6
|
+
component: ({ id, columns, Component: TileComponent, debug, onDrop, }: import("./Kanban").KanbanProps) => React.JSX.Element;
|
|
7
|
+
render: (args: DemoKanbanProps) => React.JSX.Element;
|
|
8
8
|
decorators: import("@storybook/react/*").Decorator[];
|
|
9
9
|
parameters: {
|
|
10
10
|
layout: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Kanban.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Kanban/Kanban.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Kanban.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Kanban/Kanban.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,YAAY,CAAC;AAEpB,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,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,10 +1,10 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import '@dxosTheme';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import { type DemoStackProps } from './testing';
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: ({ id, Component, onOver, onDrop, items, direction, debug, }: import("./Stack").StackProps
|
|
7
|
-
render: (args: DemoStackProps) => JSX.Element;
|
|
6
|
+
component: ({ id, Component, onOver, onDrop, items, direction, debug, }: import("./Stack").StackProps) => React.JSX.Element;
|
|
7
|
+
render: (args: DemoStackProps) => React.JSX.Element;
|
|
8
8
|
decorators: import("@storybook/react/*").Decorator[];
|
|
9
9
|
parameters: {
|
|
10
10
|
layout: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Columns.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Stack/Columns.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Columns.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Stack/Columns.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,YAAY,CAAC;AAEpB,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,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,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { type MosaicContainerProps, type MosaicDataItem } from '../../mosaic';
|
|
3
3
|
export type Direction = 'horizontal' | 'vertical';
|
|
4
4
|
export type StackProps<TData extends MosaicDataItem = MosaicDataItem> = MosaicContainerProps<TData, number> & {
|
|
@@ -6,5 +6,5 @@ export type StackProps<TData extends MosaicDataItem = MosaicDataItem> = MosaicCo
|
|
|
6
6
|
direction?: Direction;
|
|
7
7
|
debug?: boolean;
|
|
8
8
|
};
|
|
9
|
-
export declare const Stack: ({ id, Component, onOver, onDrop, items, direction, debug, }: StackProps) => JSX.Element;
|
|
9
|
+
export declare const Stack: ({ id, Component, onOver, onDrop, items, direction, debug, }: StackProps) => React.JSX.Element;
|
|
10
10
|
//# sourceMappingURL=Stack.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stack.d.ts","sourceRoot":"","sources":["../../../../../src/views/Stack/Stack.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Stack.d.ts","sourceRoot":"","sources":["../../../../../src/views/Stack/Stack.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAU,KAAK,oBAAoB,EAAE,KAAK,cAAc,EAAuB,MAAM,cAAc,CAAC;AAE3G,MAAM,MAAM,SAAS,GAAG,YAAY,GAAG,UAAU,CAAC;AAElD,MAAM,MAAM,UAAU,CAAC,KAAK,SAAS,cAAc,GAAG,cAAc,IAAI,oBAAoB,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG;IAC5G,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC;IAChB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAGF,eAAO,MAAM,KAAK,gEAQf,UAAU,sBA8BZ,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import '@dxosTheme';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import { type StackProps } from './Stack';
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: ({ id, Component, onOver, onDrop, items, direction, debug, }: StackProps
|
|
6
|
+
component: ({ id, Component, onOver, onDrop, items, direction, debug, }: StackProps) => React.JSX.Element;
|
|
7
7
|
render: (args: StackProps & {
|
|
8
8
|
types: string[];
|
|
9
9
|
count: number;
|
|
10
|
-
}) => JSX.Element;
|
|
10
|
+
}) => React.JSX.Element;
|
|
11
11
|
decorators: import("@storybook/react/*").Decorator[];
|
|
12
12
|
parameters: {
|
|
13
13
|
layout: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stack.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Stack/Stack.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Stack.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Stack/Stack.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,YAAY,CAAC;AAEpB,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,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,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { type StackProps } from './Stack';
|
|
3
3
|
import { type MosaicOperation } from '../../mosaic';
|
|
4
4
|
export type DemoStackProps = StackProps & {
|
|
@@ -6,5 +6,5 @@ export type DemoStackProps = StackProps & {
|
|
|
6
6
|
count?: number;
|
|
7
7
|
operation?: MosaicOperation;
|
|
8
8
|
};
|
|
9
|
-
export declare const DemoStack: ({ id, Component, types, count, direction, operation, debug, }: DemoStackProps) => JSX.Element;
|
|
9
|
+
export declare const DemoStack: ({ id, Component, types, count, direction, operation, debug, }: DemoStackProps) => React.JSX.Element;
|
|
10
10
|
//# sourceMappingURL=testing.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../../../src/views/Stack/testing.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../../../src/views/Stack/testing.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAIL,KAAK,eAAe,EAErB,MAAM,cAAc,CAAC;AAGtB,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG;IACxC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,eAAe,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,SAAS,kEAQnB,cAAc,sBA8ChB,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import '@dxosTheme';
|
|
3
2
|
declare const _default: {
|
|
4
3
|
title: string;
|
|
5
|
-
component: ({ id, Component, onOver, onDrop, items, debug }: import("./Tree").TreeProps
|
|
4
|
+
component: ({ id, Component, onOver, onDrop, items, debug }: import("./Tree").TreeProps) => import("react").JSX.Element;
|
|
6
5
|
decorators: import("@storybook/react/*").Decorator[];
|
|
7
6
|
parameters: {
|
|
8
7
|
layout: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Graph.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Tree/Graph.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Graph.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Tree/Graph.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,YAAY,CAAC;;;;;;;;;AAapB,wBAeE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { type MosaicContainerProps, type MosaicDataItem } from '../../mosaic';
|
|
3
3
|
export type TreeProps<TData extends MosaicDataItem = TreeData> = MosaicContainerProps<TData, number> & {
|
|
4
4
|
items?: TData[];
|
|
@@ -9,5 +9,5 @@ export type TreeData = {
|
|
|
9
9
|
label?: string;
|
|
10
10
|
children: TreeData[];
|
|
11
11
|
};
|
|
12
|
-
export declare const Tree: ({ id, Component, onOver, onDrop, items, debug }: TreeProps) => JSX.Element;
|
|
12
|
+
export declare const Tree: ({ id, Component, onOver, onDrop, items, debug }: TreeProps) => React.JSX.Element;
|
|
13
13
|
//# sourceMappingURL=Tree.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tree.d.ts","sourceRoot":"","sources":["../../../../../src/views/Tree/Tree.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Tree.d.ts","sourceRoot":"","sources":["../../../../../src/views/Tree/Tree.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAM1C,OAAO,EACL,KAAK,oBAAoB,EAEzB,KAAK,cAAc,EAMpB,MAAM,cAAc,CAAC;AAOtB,MAAM,MAAM,SAAS,CAAC,KAAK,SAAS,cAAc,GAAG,QAAQ,IAAI,oBAAoB,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG;IACrG,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,QAAQ,EAAE,CAAC;CACtB,CAAC;AAGF,eAAO,MAAM,IAAI,oDAAqE,SAAS,sBAc9F,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import '@dxosTheme';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import { type DemoTreeProps } from './testing';
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: ({ id, Component, onOver, onDrop, items, debug }: import("./Tree").TreeProps
|
|
7
|
-
render: (args: DemoTreeProps) => JSX.Element;
|
|
6
|
+
component: ({ id, Component, onOver, onDrop, items, debug }: import("./Tree").TreeProps) => React.JSX.Element;
|
|
7
|
+
render: (args: DemoTreeProps) => React.JSX.Element;
|
|
8
8
|
decorators: import("@storybook/react/*").Decorator[];
|
|
9
9
|
parameters: {
|
|
10
10
|
layout: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tree.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Tree/Tree.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Tree.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Tree/Tree.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,YAAY,CAAC;AAEpB,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,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,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { Graph } from '@dxos/app-graph';
|
|
3
3
|
import { type TreeData, type TreeProps } from './Tree';
|
|
4
4
|
export type DemoTreeProps = TreeProps & {
|
|
@@ -6,6 +6,6 @@ export type DemoTreeProps = TreeProps & {
|
|
|
6
6
|
types?: string[];
|
|
7
7
|
debug?: boolean;
|
|
8
8
|
};
|
|
9
|
-
export declare const DemoTree: ({ id, initialItems, types, debug }: DemoTreeProps) => JSX.Element;
|
|
9
|
+
export declare const DemoTree: ({ id, initialItems, types, debug }: DemoTreeProps) => React.JSX.Element;
|
|
10
10
|
export declare const createGraph: () => Graph;
|
|
11
11
|
//# sourceMappingURL=testing.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../../../src/views/Tree/testing.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../../../src/views/Tree/testing.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAErD,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAIxC,OAAO,EAAQ,KAAK,QAAQ,EAAE,KAAK,SAAS,EAAE,MAAM,QAAQ,CAAC;AAI7D,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG;IACtC,YAAY,CAAC,EAAE,QAAQ,EAAE,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,QAAQ,uCAAiD,aAAa,sBA0DlF,CAAC;AAEF,eAAO,MAAM,WAAW,aAyBvB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/react-ui-mosaic",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.8-main.046e6cf",
|
|
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",
|
|
@@ -28,35 +28,33 @@
|
|
|
28
28
|
"@preact/signals-core": "^1.6.0",
|
|
29
29
|
"@radix-ui/react-compose-refs": "^1.0.0",
|
|
30
30
|
"lodash.defaultsdeep": "^4.6.1",
|
|
31
|
-
"lodash.pick": "^4.4.0",
|
|
32
31
|
"react-resize-detector": "^11.0.1",
|
|
33
|
-
"@dxos/debug": "0.6.
|
|
34
|
-
"@dxos/invariant": "0.6.
|
|
35
|
-
"@dxos/keys": "0.6.
|
|
36
|
-
"@dxos/log": "0.6.
|
|
37
|
-
"@dxos/react-ui
|
|
38
|
-
"@dxos/react-ui-
|
|
39
|
-
"@dxos/react-ui": "0.6.
|
|
40
|
-
"@dxos/
|
|
41
|
-
"@dxos/
|
|
32
|
+
"@dxos/debug": "0.6.8-main.046e6cf",
|
|
33
|
+
"@dxos/invariant": "0.6.8-main.046e6cf",
|
|
34
|
+
"@dxos/keys": "0.6.8-main.046e6cf",
|
|
35
|
+
"@dxos/log": "0.6.8-main.046e6cf",
|
|
36
|
+
"@dxos/react-ui": "0.6.8-main.046e6cf",
|
|
37
|
+
"@dxos/react-ui-card": "0.6.8-main.046e6cf",
|
|
38
|
+
"@dxos/react-ui-types": "0.6.8-main.046e6cf",
|
|
39
|
+
"@dxos/util": "0.6.8-main.046e6cf",
|
|
40
|
+
"@dxos/react-ui-theme": "0.6.8-main.046e6cf"
|
|
42
41
|
},
|
|
43
42
|
"devDependencies": {
|
|
44
43
|
"@phosphor-icons/react": "^2.1.5",
|
|
45
44
|
"@types/d3": "^7.4.3",
|
|
46
45
|
"@types/lodash.defaultsdeep": "^4.6.6",
|
|
47
|
-
"@types/
|
|
48
|
-
"@types/react": "
|
|
49
|
-
"@types/react-dom": "^18.0.6",
|
|
46
|
+
"@types/react": "~18.2.0",
|
|
47
|
+
"@types/react-dom": "~18.2.0",
|
|
50
48
|
"d3": "^7.9.0",
|
|
51
49
|
"react": "~18.2.0",
|
|
52
50
|
"react-dom": "~18.2.0",
|
|
53
51
|
"vite": "^5.3.4",
|
|
54
|
-
"@dxos/app-graph": "0.6.
|
|
55
|
-
"@dxos/echo-schema": "0.6.
|
|
56
|
-
"@dxos/gem-core": "0.6.
|
|
57
|
-
"@dxos/
|
|
58
|
-
"@dxos/storybook-utils": "0.6.
|
|
59
|
-
"@dxos/
|
|
52
|
+
"@dxos/app-graph": "0.6.8-main.046e6cf",
|
|
53
|
+
"@dxos/echo-schema": "0.6.8-main.046e6cf",
|
|
54
|
+
"@dxos/gem-core": "0.6.8-main.046e6cf",
|
|
55
|
+
"@dxos/random": "0.6.8-main.046e6cf",
|
|
56
|
+
"@dxos/storybook-utils": "0.6.8-main.046e6cf",
|
|
57
|
+
"@dxos/react-client": "0.6.8-main.046e6cf"
|
|
60
58
|
},
|
|
61
59
|
"peerDependencies": {
|
|
62
60
|
"@phosphor-icons/react": "^2.1.5",
|
package/src/mosaic/Root.tsx
CHANGED
|
@@ -21,10 +21,11 @@ import {
|
|
|
21
21
|
useSensors,
|
|
22
22
|
} from '@dnd-kit/core';
|
|
23
23
|
import { sortableKeyboardCoordinates } from '@dnd-kit/sortable';
|
|
24
|
-
import pick from 'lodash.pick';
|
|
25
24
|
import React, { createContext, type FC, type PropsWithChildren, useState } from 'react';
|
|
26
25
|
import { createPortal } from 'react-dom';
|
|
27
26
|
|
|
27
|
+
import { pick } from '@dxos/util';
|
|
28
|
+
|
|
28
29
|
import {
|
|
29
30
|
DEFAULT_TRANSITION,
|
|
30
31
|
type DefaultMoveDetails,
|
|
@@ -147,11 +148,11 @@ export const MosaicRoot: FC<MosaicRootProps> = ({ Component = DefaultComponent,
|
|
|
147
148
|
//
|
|
148
149
|
|
|
149
150
|
const handleDragStart = (event: DragStartEvent) => {
|
|
150
|
-
setActiveItem(pick(event.active.data.current as MosaicDraggedItem, 'path', 'type', 'item', 'position'));
|
|
151
|
+
setActiveItem(pick(event.active.data.current as MosaicDraggedItem, ['path', 'type', 'item', 'position']));
|
|
151
152
|
};
|
|
152
153
|
|
|
153
154
|
const handleDragMove = (event: DragMoveEvent) => {
|
|
154
|
-
const nextOverItem = pick(event.over?.data.current as MosaicDraggedItem, 'path', 'type', 'item', 'position');
|
|
155
|
+
const nextOverItem = pick(event.over?.data.current as MosaicDraggedItem, ['path', 'type', 'item', 'position']);
|
|
155
156
|
const nextOverContainer =
|
|
156
157
|
nextOverItem && nextOverItem?.path ? containers[Path.first(nextOverItem.path)] : undefined;
|
|
157
158
|
if (!event.over || !nextOverItem || !nextOverContainer) {
|
|
@@ -185,7 +186,7 @@ export const MosaicRoot: FC<MosaicRootProps> = ({ Component = DefaultComponent,
|
|
|
185
186
|
};
|
|
186
187
|
|
|
187
188
|
const handleDragOver = (event: DragOverEvent) => {
|
|
188
|
-
const overItem = pick(event.over?.data.current as MosaicDraggedItem, 'path', 'type', 'item', 'position');
|
|
189
|
+
const overItem = pick(event.over?.data.current as MosaicDraggedItem, ['path', 'type', 'item', 'position']);
|
|
189
190
|
const overContainer = overItem && overItem?.path ? containers[Path.first(overItem.path)] : undefined;
|
|
190
191
|
// TODO(wittjosiah): This is over-prescriptive.
|
|
191
192
|
if (overContainer?.onMove) {
|