@dxos/react-ui-mosaic 0.8.4-main.bc674ce → 0.8.4-main.c85a9c8dae
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/chunk-7S4PIFKU.mjs +953 -0
- package/dist/lib/browser/chunk-7S4PIFKU.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +596 -70
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/playwright/index.mjs +138 -0
- package/dist/lib/browser/playwright/index.mjs.map +7 -0
- package/dist/lib/browser/testing/index.mjs +61 -232
- package/dist/lib/browser/testing/index.mjs.map +4 -4
- package/dist/lib/node-esm/chunk-MK6KU66S.mjs +955 -0
- package/dist/lib/node-esm/chunk-MK6KU66S.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +596 -70
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/playwright/index.mjs +140 -0
- package/dist/lib/node-esm/playwright/index.mjs.map +7 -0
- package/dist/lib/node-esm/testing/index.mjs +61 -232
- package/dist/lib/node-esm/testing/index.mjs.map +4 -4
- package/dist/types/src/components/Board/Board.d.ts +81 -0
- package/dist/types/src/components/Board/Board.d.ts.map +1 -0
- package/dist/types/src/components/{Mosaic/Mosaic.stories.d.ts → Board/Board.stories.d.ts} +15 -1
- package/dist/types/src/components/Board/Board.stories.d.ts.map +1 -0
- package/dist/types/src/components/Board/Column.d.ts +40 -0
- package/dist/types/src/components/Board/Column.d.ts.map +1 -0
- package/dist/types/src/components/Board/Item.d.ts +9 -0
- package/dist/types/src/components/Board/Item.d.ts.map +1 -0
- package/dist/types/src/components/Board/index.d.ts +2 -0
- package/dist/types/src/components/Board/index.d.ts.map +1 -0
- package/dist/types/src/components/Focus/Focus.d.ts +5 -4
- package/dist/types/src/components/Focus/Focus.d.ts.map +1 -1
- package/dist/types/src/components/Focus/index.d.ts +0 -1
- package/dist/types/src/components/Focus/index.d.ts.map +1 -1
- package/dist/types/src/components/Mosaic/Container.d.ts +42 -0
- package/dist/types/src/components/Mosaic/Container.d.ts.map +1 -0
- package/dist/types/src/components/Mosaic/Mosaic.d.ts +35 -118
- package/dist/types/src/components/Mosaic/Mosaic.d.ts.map +1 -1
- package/dist/types/src/components/Mosaic/Placeholder.d.ts +21 -0
- package/dist/types/src/components/Mosaic/Placeholder.d.ts.map +1 -0
- package/dist/types/src/components/Mosaic/Root.d.ts +36 -0
- package/dist/types/src/components/Mosaic/Root.d.ts.map +1 -0
- package/dist/types/src/components/Mosaic/Stack.d.ts +23 -0
- package/dist/types/src/components/Mosaic/Stack.d.ts.map +1 -0
- package/dist/types/src/components/{Stack → Mosaic}/Stack.stories.d.ts +2 -2
- package/dist/types/src/components/Mosaic/Stack.stories.d.ts.map +1 -0
- package/dist/types/src/components/Mosaic/Tile.d.ts +48 -0
- package/dist/types/src/components/Mosaic/Tile.d.ts.map +1 -0
- package/dist/types/src/components/Mosaic/styles.d.ts.map +1 -1
- package/dist/types/src/components/Mosaic/types.d.ts +9 -2
- package/dist/types/src/components/Mosaic/types.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +1 -4
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/hooks/index.d.ts +1 -0
- package/dist/types/src/hooks/index.d.ts.map +1 -1
- package/dist/types/src/hooks/useDefaultColumnEventHandler.d.ts +15 -0
- package/dist/types/src/hooks/useDefaultColumnEventHandler.d.ts.map +1 -0
- package/dist/types/src/hooks/useEventHandlerAdapter.d.ts +1 -1
- package/dist/types/src/hooks/useEventHandlerAdapter.d.ts.map +1 -1
- package/dist/types/src/hooks/useVisibleItems.d.ts +2 -2
- package/dist/types/src/hooks/useVisibleItems.d.ts.map +1 -1
- package/dist/types/src/playwright/board-manager.d.ts +45 -0
- package/dist/types/src/playwright/board-manager.d.ts.map +1 -0
- package/dist/types/src/playwright/index.d.ts +9 -0
- package/dist/types/src/playwright/index.d.ts.map +1 -0
- package/dist/types/src/playwright/playwright.config.d.ts +3 -0
- package/dist/types/src/playwright/playwright.config.d.ts.map +1 -0
- package/dist/types/src/playwright/smoke.spec.d.ts +2 -0
- package/dist/types/src/playwright/smoke.spec.d.ts.map +1 -0
- package/dist/types/src/testing/CardContainer.d.ts +5 -4
- package/dist/types/src/testing/CardContainer.d.ts.map +1 -1
- package/dist/types/src/testing/DefaultStackTile.d.ts +2 -2
- package/dist/types/src/testing/DefaultStackTile.d.ts.map +1 -1
- package/dist/types/src/testing/index.d.ts +1 -1
- package/dist/types/src/testing/index.d.ts.map +1 -1
- package/dist/types/src/testing/types.d.ts +21 -0
- package/dist/types/src/testing/types.d.ts.map +1 -0
- package/dist/types/src/translations.d.ts +5 -1
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +43 -28
- package/src/components/Board/Board.stories.tsx +273 -0
- package/src/components/Board/Board.tsx +191 -0
- package/src/components/Board/Column.tsx +300 -0
- package/src/components/Board/Item.tsx +116 -0
- package/src/components/{Layout → Board}/index.ts +1 -1
- package/src/components/Focus/Focus.tsx +26 -17
- package/src/components/Focus/index.ts +0 -2
- package/src/components/Mosaic/Container.tsx +289 -0
- package/src/components/Mosaic/Mosaic.tsx +35 -913
- package/src/components/Mosaic/Placeholder.tsx +133 -0
- package/src/components/Mosaic/Root.tsx +292 -0
- package/src/components/{Stack → Mosaic}/Stack.stories.tsx +30 -26
- package/src/components/Mosaic/Stack.tsx +246 -0
- package/src/components/Mosaic/Tile.tsx +242 -0
- package/src/components/Mosaic/extension.ts +1 -1
- package/src/components/Mosaic/styles.ts +9 -8
- package/src/components/Mosaic/types.ts +15 -3
- package/src/components/index.ts +1 -4
- package/src/hooks/index.ts +1 -0
- package/src/hooks/useContainerDebug.tsx +4 -2
- package/src/hooks/useDefaultColumnEventHandler.ts +35 -0
- package/src/hooks/useEventHandlerAdapter.ts +15 -6
- package/src/hooks/useVisibleItems.ts +7 -2
- package/src/playwright/board-manager.ts +154 -0
- package/src/playwright/index.ts +13 -0
- package/src/playwright/playwright.config.ts +17 -0
- package/src/playwright/smoke.spec.ts +138 -0
- package/src/testing/CardContainer.tsx +30 -18
- package/src/testing/DefaultStackTile.tsx +27 -16
- package/src/testing/index.ts +1 -1
- package/src/testing/types.ts +38 -0
- package/src/translations.ts +5 -1
- package/dist/lib/browser/chunk-UMBPEG4F.mjs +0 -1637
- package/dist/lib/browser/chunk-UMBPEG4F.mjs.map +0 -7
- package/dist/lib/browser/index.css +0 -13
- package/dist/lib/browser/index.css.map +0 -7
- package/dist/lib/browser/testing/index.css +0 -13
- package/dist/lib/browser/testing/index.css.map +0 -7
- package/dist/lib/node-esm/chunk-X6GV7SMK.mjs +0 -1639
- package/dist/lib/node-esm/chunk-X6GV7SMK.mjs.map +0 -7
- package/dist/lib/node-esm/index.css +0 -13
- package/dist/lib/node-esm/index.css.map +0 -7
- package/dist/lib/node-esm/testing/index.css +0 -13
- package/dist/lib/node-esm/testing/index.css.map +0 -7
- package/dist/types/src/components/Card/Card.d.ts +0 -121
- package/dist/types/src/components/Card/Card.d.ts.map +0 -1
- package/dist/types/src/components/Card/Card.stories.d.ts +0 -21
- package/dist/types/src/components/Card/Card.stories.d.ts.map +0 -1
- package/dist/types/src/components/Card/CardDragPreview.d.ts +0 -6
- package/dist/types/src/components/Card/CardDragPreview.d.ts.map +0 -1
- package/dist/types/src/components/Card/index.d.ts +0 -4
- package/dist/types/src/components/Card/index.d.ts.map +0 -1
- package/dist/types/src/components/Card/styles.d.ts +0 -13
- package/dist/types/src/components/Card/styles.d.ts.map +0 -1
- package/dist/types/src/components/Focus/styles.d.ts +0 -6
- package/dist/types/src/components/Focus/styles.d.ts.map +0 -1
- package/dist/types/src/components/Image/Image.d.ts +0 -14
- package/dist/types/src/components/Image/Image.d.ts.map +0 -1
- package/dist/types/src/components/Image/Image.stories.d.ts +0 -33
- package/dist/types/src/components/Image/Image.stories.d.ts.map +0 -1
- package/dist/types/src/components/Image/index.d.ts +0 -2
- package/dist/types/src/components/Image/index.d.ts.map +0 -1
- package/dist/types/src/components/Layout/Layout.d.ts +0 -33
- package/dist/types/src/components/Layout/Layout.d.ts.map +0 -1
- package/dist/types/src/components/Layout/Layout.stories.d.ts +0 -10
- package/dist/types/src/components/Layout/Layout.stories.d.ts.map +0 -1
- package/dist/types/src/components/Layout/index.d.ts +0 -2
- package/dist/types/src/components/Layout/index.d.ts.map +0 -1
- package/dist/types/src/components/Mosaic/Mosaic.stories.d.ts.map +0 -1
- package/dist/types/src/components/Scrollable/Scrollable.d.ts +0 -24
- package/dist/types/src/components/Scrollable/Scrollable.d.ts.map +0 -1
- package/dist/types/src/components/Scrollable/Scrollable.stories.d.ts +0 -10
- package/dist/types/src/components/Scrollable/Scrollable.stories.d.ts.map +0 -1
- package/dist/types/src/components/Scrollable/index.d.ts +0 -2
- package/dist/types/src/components/Scrollable/index.d.ts.map +0 -1
- package/dist/types/src/components/Stack/Stack.d.ts +0 -22
- package/dist/types/src/components/Stack/Stack.d.ts.map +0 -1
- package/dist/types/src/components/Stack/Stack.stories.d.ts.map +0 -1
- package/dist/types/src/components/Stack/index.d.ts +0 -2
- package/dist/types/src/components/Stack/index.d.ts.map +0 -1
- package/dist/types/src/testing/Board.d.ts +0 -45
- package/dist/types/src/testing/Board.d.ts.map +0 -1
- package/dist/types/src/testing/Slot.stories.d.ts +0 -14
- package/dist/types/src/testing/Slot.stories.d.ts.map +0 -1
- package/dist/types/src/testing/Virtualizer.stories.d.ts +0 -12
- package/dist/types/src/testing/Virtualizer.stories.d.ts.map +0 -1
- package/src/components/Card/Card.stories.tsx +0 -148
- package/src/components/Card/Card.tsx +0 -458
- package/src/components/Card/CardDragPreview.tsx +0 -23
- package/src/components/Card/index.ts +0 -8
- package/src/components/Card/styles.ts +0 -23
- package/src/components/Focus/styles.ts +0 -24
- package/src/components/Image/Image.stories.tsx +0 -86
- package/src/components/Image/Image.tsx +0 -223
- package/src/components/Image/index.ts +0 -5
- package/src/components/Layout/Layout.stories.tsx +0 -59
- package/src/components/Layout/Layout.tsx +0 -108
- package/src/components/Mosaic/Mosaic.stories.tsx +0 -113
- package/src/components/Scrollable/Scrollable.stories.tsx +0 -59
- package/src/components/Scrollable/Scrollable.tsx +0 -88
- package/src/components/Scrollable/index.ts +0 -5
- package/src/components/Scrollable/scrollable.css +0 -20
- package/src/components/Stack/Stack.tsx +0 -210
- package/src/components/Stack/index.ts +0 -5
- package/src/testing/Board.tsx +0 -278
- package/src/testing/Slot.stories.tsx +0 -101
- package/src/testing/Virtualizer.stories.tsx +0 -133
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ReactElement, type Ref as ReactRef } from 'react';
|
|
2
|
+
import { Obj } from '@dxos/echo';
|
|
3
|
+
import { type MosaicTileProps } from '../Mosaic';
|
|
4
|
+
type BoardItemProps<TItem extends Obj.Unknown = any> = Pick<MosaicTileProps<TItem>, 'classNames' | 'location' | 'data' | 'debug'>;
|
|
5
|
+
declare const BoardItem: <TItem extends Obj.Unknown = any>(props: BoardItemProps<TItem> & {
|
|
6
|
+
ref?: ReactRef<HTMLDivElement>;
|
|
7
|
+
}) => ReactElement;
|
|
8
|
+
export { BoardItem, type BoardItemProps };
|
|
9
|
+
//# sourceMappingURL=Item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../../../src/components/Board/Item.tsx"],"names":[],"mappings":"AAKA,OAAc,EAAE,KAAK,YAAY,EAAE,KAAK,GAAG,IAAI,QAAQ,EAA+B,MAAM,OAAO,CAAC;AAEpG,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAOjC,OAAO,EAAU,KAAK,eAAe,EAAE,MAAM,WAAW,CAAC;AAWzD,KAAK,cAAc,CAAC,KAAK,SAAS,GAAG,CAAC,OAAO,GAAG,GAAG,IAAI,IAAI,CACzD,eAAe,CAAC,KAAK,CAAC,EACtB,YAAY,GAAG,UAAU,GAAG,MAAM,GAAG,OAAO,CAC7C,CAAC;AAmFF,QAAA,MAAM,SAAS,EAAqB,CAAC,KAAK,SAAS,GAAG,CAAC,OAAO,GAAG,GAAG,EAClE,KAAK,EAAE,cAAc,CAAC,KAAK,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAA;CAAE,KAC9D,YAAY,CAAC;AAElB,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Board/index.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { type UseArrowNavigationGroupOptions } from '@fluentui/react-tabster';
|
|
2
1
|
import React, { type PropsWithChildren } from 'react';
|
|
3
|
-
import { type ThemedClassName } from '@dxos/react-ui';
|
|
2
|
+
import { type Axis, type ThemedClassName } from '@dxos/react-ui';
|
|
4
3
|
type FocusState = 'active' | 'error';
|
|
5
4
|
type ContextValue = {
|
|
6
5
|
setFocus?: (state: FocusState | undefined) => void;
|
|
@@ -8,13 +7,15 @@ type ContextValue = {
|
|
|
8
7
|
declare const useFocus: () => ContextValue;
|
|
9
8
|
type GroupProps = ThemedClassName<PropsWithChildren<{
|
|
10
9
|
asChild?: boolean;
|
|
11
|
-
|
|
10
|
+
orientation?: Axis;
|
|
11
|
+
}>> & {
|
|
12
12
|
className?: string;
|
|
13
13
|
};
|
|
14
14
|
export declare const Focus: {
|
|
15
15
|
Group: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<{
|
|
16
16
|
asChild?: boolean;
|
|
17
|
-
|
|
17
|
+
orientation?: Axis;
|
|
18
|
+
}>, "className"> & {
|
|
18
19
|
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
19
20
|
} & {
|
|
20
21
|
className?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Focus.d.ts","sourceRoot":"","sources":["../../../../../src/components/Focus/Focus.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Focus.d.ts","sourceRoot":"","sources":["../../../../../src/components/Focus/Focus.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAA2D,MAAM,OAAO,CAAC;AAE/G,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAOjE,KAAK,UAAU,GAAG,QAAQ,GAAG,OAAO,CAAC;AAIrC,KAAK,YAAY,GAAG;IAClB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,GAAG,SAAS,KAAK,IAAI,CAAC;CACpD,CAAC;AAIF,QAAA,MAAM,QAAQ,oBAAiC,CAAC;AAMhD,KAAK,UAAU,GAAG,eAAe,CAC/B,iBAAiB,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,IAAI,CAAC;CACpB,CAAC,CACH,GAAG;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAyD3B,eAAO,MAAM,KAAK;;kBA5DJ,OAAO;sBACH,IAAI;;;;oBAEJ,MAAM;;CA2DvB,CAAC;AAEF,YAAY,EAAE,UAAU,IAAI,eAAe,EAAE,CAAC;AAE9C,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Focus/index.ts"],"names":[],"mappings":"AAIA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Focus/index.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React, { type PropsWithChildren, type ReactNode } from 'react';
|
|
2
|
+
import { type AllowedAxis, type ComposableProps } from '@dxos/react-ui';
|
|
3
|
+
import { type MosaicDraggingState } from './Root';
|
|
4
|
+
import { type LocationType, type MosaicEventHandler } from './types';
|
|
5
|
+
type MosaicContainerState = {
|
|
6
|
+
type: 'idle';
|
|
7
|
+
} | {
|
|
8
|
+
type: 'active';
|
|
9
|
+
bounds?: DOMRect;
|
|
10
|
+
};
|
|
11
|
+
type MosaicContainerContextValue<TData = any, Location = LocationType> = {
|
|
12
|
+
id: string;
|
|
13
|
+
eventHandler: MosaicEventHandler<TData>;
|
|
14
|
+
orientation?: AllowedAxis;
|
|
15
|
+
dragging?: MosaicDraggingState;
|
|
16
|
+
scrolling?: boolean;
|
|
17
|
+
state: MosaicContainerState;
|
|
18
|
+
/** Active drop location. */
|
|
19
|
+
activeLocation?: Location;
|
|
20
|
+
setActiveLocation: (location: Location | undefined) => void;
|
|
21
|
+
};
|
|
22
|
+
declare const useMosaicContainerContext: (consumerName: string) => MosaicContainerContextValue<any, LocationType>;
|
|
23
|
+
type MosaicContainerProps = ComposableProps<PropsWithChildren<Partial<Pick<MosaicContainerContextValue, 'eventHandler' | 'orientation'>> & {
|
|
24
|
+
asChild?: boolean;
|
|
25
|
+
autoScroll?: HTMLElement | null;
|
|
26
|
+
withFocus?: boolean;
|
|
27
|
+
debug?: () => ReactNode;
|
|
28
|
+
}>>;
|
|
29
|
+
declare const MosaicContainer: React.ForwardRefExoticComponent<Partial<Pick<MosaicContainerContextValue<any, LocationType>, "orientation" | "eventHandler">> & {
|
|
30
|
+
asChild?: boolean;
|
|
31
|
+
autoScroll?: HTMLElement | null;
|
|
32
|
+
withFocus?: boolean;
|
|
33
|
+
debug?: () => ReactNode;
|
|
34
|
+
} & {
|
|
35
|
+
children?: ReactNode | undefined;
|
|
36
|
+
} & {
|
|
37
|
+
className?: string;
|
|
38
|
+
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
39
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
40
|
+
export { MosaicContainer, useMosaicContainerContext };
|
|
41
|
+
export type { MosaicContainerProps, MosaicContainerState };
|
|
42
|
+
//# sourceMappingURL=Container.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Container.d.ts","sourceRoot":"","sources":["../../../../../src/components/Mosaic/Container.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,EAEZ,KAAK,iBAAiB,EACtB,KAAK,SAAS,EAMf,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAMxE,OAAO,EAAE,KAAK,mBAAmB,EAAwB,MAAM,QAAQ,CAAC;AACxE,OAAO,EACL,KAAK,YAAY,EAEjB,KAAK,kBAAkB,EAGxB,MAAM,SAAS,CAAC;AAQjB,KAAK,oBAAoB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAEpF,KAAK,2BAA2B,CAAC,KAAK,GAAG,GAAG,EAAE,QAAQ,GAAG,YAAY,IAAI;IACvE,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,kBAAkB,CAAC,KAAK,CAAC,CAAC;IACxC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,EAAE,oBAAoB,CAAC;IAE5B,4BAA4B;IAC5B,cAAc,CAAC,EAAE,QAAQ,CAAC;IAC1B,iBAAiB,EAAE,CAAC,QAAQ,EAAE,QAAQ,GAAG,SAAS,KAAK,IAAI,CAAC;CAC7D,CAAC;AAEF,QAAA,MAAuC,yBAAyB,0EACD,CAAC;AAWhE,KAAK,oBAAoB,GAAG,eAAe,CACzC,iBAAiB,CACf,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE,cAAc,GAAG,aAAa,CAAC,CAAC,GAAG;IAC3E,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,SAAS,CAAC;CACzB,CACF,CACF,CAAC;AAGF,QAAA,MAAM,eAAe;cATL,OAAO;iBACJ,WAAW,GAAG,IAAI;gBACnB,OAAO;YACX,MAAM,SAAS;;;;;;wCA6M5B,CAAC;AAIF,OAAO,EAAE,eAAe,EAAE,yBAAyB,EAAE,CAAC;AAEtD,YAAY,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -1,148 +1,65 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { type
|
|
3
|
-
import
|
|
4
|
-
import { type
|
|
5
|
-
import { type
|
|
6
|
-
import { type StackProps } from '../Stack';
|
|
7
|
-
import { type AllowedAxis, type Axis, type MosaicData, type MosaicEventHandler, type MosaicTileData } from './types';
|
|
8
|
-
type DraggingSource = {
|
|
9
|
-
data: MosaicTileData;
|
|
10
|
-
handler?: MosaicEventHandler;
|
|
11
|
-
container?: Element;
|
|
12
|
-
};
|
|
13
|
-
type DraggingTarget = {
|
|
14
|
-
data: MosaicData;
|
|
15
|
-
handler?: MosaicEventHandler;
|
|
16
|
-
};
|
|
17
|
-
type DraggingState = {
|
|
18
|
-
source: DraggingSource;
|
|
19
|
-
target?: DraggingTarget;
|
|
20
|
-
};
|
|
21
|
-
type RootContextValue = {
|
|
22
|
-
containers: Record<string, MosaicEventHandler>;
|
|
23
|
-
addContainer: (container: MosaicEventHandler) => void;
|
|
24
|
-
removeContainer: (id: string) => void;
|
|
25
|
-
dragging?: DraggingState;
|
|
26
|
-
};
|
|
27
|
-
declare const useRootContext: (consumerName: string) => RootContextValue;
|
|
28
|
-
type RootProps = ThemedClassName<PropsWithChildren<{
|
|
29
|
-
asChild?: boolean;
|
|
30
|
-
debug?: boolean;
|
|
31
|
-
}>>;
|
|
32
|
-
type ContainerState = {
|
|
33
|
-
type: 'idle';
|
|
34
|
-
} | {
|
|
35
|
-
type: 'active';
|
|
36
|
-
bounds?: DOMRect;
|
|
37
|
-
};
|
|
38
|
-
type ContainerContextValue<TData = any, Location = LocationType> = {
|
|
39
|
-
id: string;
|
|
40
|
-
eventHandler: MosaicEventHandler<TData>;
|
|
41
|
-
axis?: AllowedAxis;
|
|
42
|
-
dragging?: DraggingState;
|
|
43
|
-
scrolling?: boolean;
|
|
44
|
-
state: ContainerState;
|
|
45
|
-
/** Active drop location. */
|
|
46
|
-
activeLocation?: Location;
|
|
47
|
-
setActiveLocation: (location: Location | undefined) => void;
|
|
48
|
-
};
|
|
49
|
-
declare const useContainerContext: (consumerName: string) => ContainerContextValue<any, LocationType>;
|
|
50
|
-
type ContainerProps = SlottableClassName<PropsWithChildren<Partial<Pick<ContainerContextValue, 'eventHandler' | 'axis'>> & {
|
|
51
|
-
asChild?: boolean;
|
|
52
|
-
autoScroll?: HTMLElement | null;
|
|
53
|
-
withFocus?: boolean;
|
|
54
|
-
debug?: () => ReactNode;
|
|
55
|
-
}>>;
|
|
56
|
-
/** Must implement value equivalence. */
|
|
57
|
-
type LocationType = string | number;
|
|
58
|
-
type TileState = {
|
|
59
|
-
type: 'idle';
|
|
60
|
-
} | {
|
|
61
|
-
type: 'preview';
|
|
62
|
-
container: HTMLElement;
|
|
63
|
-
rect: DOMRect;
|
|
64
|
-
} | {
|
|
65
|
-
type: 'dragging';
|
|
66
|
-
} | {
|
|
67
|
-
type: 'target';
|
|
68
|
-
closestEdge: Edge | null;
|
|
69
|
-
};
|
|
70
|
-
type TileContextValue = {
|
|
71
|
-
state: TileState;
|
|
72
|
-
};
|
|
73
|
-
declare const useTileContext: (consumerName: string) => TileContextValue;
|
|
74
|
-
type TileProps<TData = any, TLocation = LocationType> = SlottableClassName<PropsWithChildren<{
|
|
75
|
-
asChild?: boolean;
|
|
76
|
-
dragHandle?: HTMLElement | null;
|
|
77
|
-
allowedEdges?: Edge[];
|
|
78
|
-
id: string;
|
|
79
|
-
data: TData;
|
|
80
|
-
location: TLocation;
|
|
81
|
-
draggable?: boolean;
|
|
82
|
-
debug?: boolean;
|
|
83
|
-
}>>;
|
|
84
|
-
type PlaceholderProps<Location = LocationType> = ThemedClassName<PropsWithChildren<{
|
|
85
|
-
asChild?: boolean;
|
|
86
|
-
axis?: Axis;
|
|
87
|
-
location: Location;
|
|
88
|
-
}>>;
|
|
89
|
-
type DropIndicatorProps = Omit<NativeDropIndicatorProps, 'edge'>;
|
|
1
|
+
import { type MosaicContainerProps, type MosaicContainerState, useMosaicContainerContext } from './Container';
|
|
2
|
+
import { type MosaicDropIndicatorProps, type MosaicPlaceholderProps } from './Placeholder';
|
|
3
|
+
import { type MosaicRootProps, useMosaicRootContext } from './Root';
|
|
4
|
+
import { type MosaicStackProps, type MosaicStackTileComponent } from './Stack';
|
|
5
|
+
import { type MosaicTileProps, type MosaicTileState, useMosaicTileContext } from './Tile';
|
|
90
6
|
export declare const Mosaic: {
|
|
91
|
-
Root:
|
|
7
|
+
Root: import("react").ForwardRefExoticComponent<Omit<import("react").PropsWithChildren<{
|
|
92
8
|
asChild?: boolean;
|
|
93
9
|
debug?: boolean;
|
|
94
10
|
}>, "className"> & {
|
|
95
11
|
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
96
|
-
} &
|
|
97
|
-
Container:
|
|
12
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
|
+
Container: import("react").ForwardRefExoticComponent<Partial<Pick<{
|
|
14
|
+
id: string;
|
|
15
|
+
eventHandler: import("./types").MosaicEventHandler<any, any>;
|
|
16
|
+
orientation?: import("@dxos/ui-types").AllowedAxis;
|
|
17
|
+
dragging?: import("./Root").MosaicDraggingState;
|
|
18
|
+
scrolling?: boolean;
|
|
19
|
+
state: MosaicContainerState;
|
|
20
|
+
activeLocation?: import("./types").LocationType | undefined;
|
|
21
|
+
setActiveLocation: (location: import("./types").LocationType | undefined) => void;
|
|
22
|
+
}, "orientation" | "eventHandler">> & {
|
|
98
23
|
asChild?: boolean;
|
|
99
24
|
autoScroll?: HTMLElement | null;
|
|
100
25
|
withFocus?: boolean;
|
|
101
|
-
debug?: () => ReactNode;
|
|
26
|
+
debug?: () => import("react").ReactNode;
|
|
102
27
|
} & {
|
|
103
|
-
children?: ReactNode | undefined;
|
|
28
|
+
children?: import("react").ReactNode | undefined;
|
|
104
29
|
} & {
|
|
105
30
|
className?: string;
|
|
106
31
|
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
107
|
-
} &
|
|
108
|
-
Tile:
|
|
32
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
33
|
+
Tile: import("react").ForwardRefExoticComponent<{
|
|
109
34
|
asChild?: boolean;
|
|
110
35
|
dragHandle?: HTMLElement | null;
|
|
111
|
-
allowedEdges?: Edge[];
|
|
36
|
+
allowedEdges?: import("@atlaskit/pragmatic-drag-and-drop-hitbox/dist/types/closest-edge").Edge[];
|
|
112
37
|
id: string;
|
|
113
38
|
data: any;
|
|
114
|
-
location: LocationType;
|
|
39
|
+
location: import("./types").LocationType;
|
|
115
40
|
draggable?: boolean;
|
|
116
41
|
debug?: boolean;
|
|
117
42
|
} & {
|
|
118
|
-
children?: ReactNode | undefined;
|
|
43
|
+
children?: import("react").ReactNode | undefined;
|
|
119
44
|
} & {
|
|
120
45
|
className?: string;
|
|
121
46
|
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
122
|
-
} &
|
|
47
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
123
48
|
Placeholder: {
|
|
124
|
-
<Location extends LocationType = LocationType>({ classNames, children, asChild,
|
|
49
|
+
<Location extends import("./types").LocationType = import("./types").LocationType>({ classNames, children, asChild, orientation, location, }: MosaicPlaceholderProps<Location>): import("react").JSX.Element;
|
|
125
50
|
displayName: string;
|
|
126
51
|
};
|
|
127
52
|
DropIndicator: {
|
|
128
|
-
(props:
|
|
53
|
+
(props: MosaicDropIndicatorProps): import("react").JSX.Element | null;
|
|
129
54
|
displayName: string;
|
|
130
55
|
};
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
viewportRef?: React.RefCallback<HTMLElement | null>;
|
|
138
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
139
|
-
Stack: <TData = any>(props: StackProps<TData> & {
|
|
140
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
141
|
-
}) => React.ReactElement;
|
|
142
|
-
VirtualStack: <TData = any>(props: import("..").VirtualStackProps<TData> & {
|
|
143
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
144
|
-
}) => React.ReactElement;
|
|
56
|
+
Stack: <TData = any>(props: MosaicStackProps<TData> & {
|
|
57
|
+
ref?: import("react").Ref<HTMLDivElement>;
|
|
58
|
+
}) => import("react").ReactElement;
|
|
59
|
+
VirtualStack: <TData = any>(props: import("./Stack").MosaicVirtualStackProps<TData> & {
|
|
60
|
+
ref?: import("react").Ref<HTMLDivElement>;
|
|
61
|
+
}) => import("react").ReactElement;
|
|
145
62
|
};
|
|
146
|
-
export type {
|
|
147
|
-
export {
|
|
63
|
+
export type { MosaicRootProps, MosaicContainerProps, MosaicContainerState, MosaicTileProps, MosaicTileState, MosaicPlaceholderProps, MosaicDropIndicatorProps, MosaicStackProps, MosaicStackTileComponent, };
|
|
64
|
+
export { useMosaicRootContext as useMosaic, useMosaicContainerContext as useMosaicContainer, useMosaicTileContext as useMosaicTile, };
|
|
148
65
|
//# sourceMappingURL=Mosaic.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Mosaic.d.ts","sourceRoot":"","sources":["../../../../../src/components/Mosaic/Mosaic.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Mosaic.d.ts","sourceRoot":"","sources":["../../../../../src/components/Mosaic/Mosaic.tsx"],"names":[],"mappings":"AAIA,OAAO,EAEL,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,yBAAyB,EAC1B,MAAM,aAAa,CAAC;AACrB,OAAO,EAEL,KAAK,wBAAwB,EAE7B,KAAK,sBAAsB,EAC5B,MAAM,eAAe,CAAC;AACvB,OAAO,EAAc,KAAK,eAAe,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAC;AAChF,OAAO,EAAe,KAAK,gBAAgB,EAAE,KAAK,wBAAwB,EAAsB,MAAM,SAAS,CAAC;AAChH,OAAO,EAAc,KAAK,eAAe,EAAE,KAAK,eAAe,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAC;AAMtG,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA2BytE,CAAC;;;WAA6iG,CAAC;;CAnB1xK,CAAC;AAEF,YAAY,EACV,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,eAAe,EACf,eAAe,EACf,sBAAsB,EACtB,wBAAwB,EACxB,gBAAgB,EAChB,wBAAwB,GACzB,CAAC;AAEF,OAAO,EACL,oBAAoB,IAAI,SAAS,EACjC,yBAAyB,IAAI,kBAAkB,EAC/C,oBAAoB,IAAI,aAAa,GACtC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type DropIndicatorProps as NaturalDropIndicatorProps } from '@atlaskit/pragmatic-drag-and-drop-react-drop-indicator/box';
|
|
2
|
+
import React, { type PropsWithChildren } from 'react';
|
|
3
|
+
import { type Axis, type ThemedClassName } from '@dxos/react-ui';
|
|
4
|
+
import { type LocationType } from './types';
|
|
5
|
+
type MosaicPlaceholderProps<Location = LocationType> = ThemedClassName<PropsWithChildren<{
|
|
6
|
+
asChild?: boolean;
|
|
7
|
+
orientation?: Axis;
|
|
8
|
+
location: Location;
|
|
9
|
+
}>>;
|
|
10
|
+
declare const MosaicPlaceholder: {
|
|
11
|
+
<Location extends LocationType = LocationType>({ classNames, children, asChild, orientation, location, }: MosaicPlaceholderProps<Location>): React.JSX.Element;
|
|
12
|
+
displayName: string;
|
|
13
|
+
};
|
|
14
|
+
type MosaicDropIndicatorProps = Omit<NaturalDropIndicatorProps, 'edge'>;
|
|
15
|
+
declare const MosaicDropIndicator: {
|
|
16
|
+
(props: MosaicDropIndicatorProps): React.JSX.Element | null;
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
19
|
+
export { MosaicPlaceholder, MosaicDropIndicator };
|
|
20
|
+
export type { MosaicPlaceholderProps, MosaicDropIndicatorProps };
|
|
21
|
+
//# sourceMappingURL=Placeholder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Placeholder.d.ts","sourceRoot":"","sources":["../../../../../src/components/Mosaic/Placeholder.tsx"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,kBAAkB,IAAI,yBAAyB,EACrD,MAAM,4DAA4D,CAAC;AAGpE,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAoC,MAAM,OAAO,CAAC;AAExF,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAKjE,OAAO,EAAE,KAAK,YAAY,EAA6C,MAAM,SAAS,CAAC;AAcvF,KAAK,sBAAsB,CAAC,QAAQ,GAAG,YAAY,IAAI,eAAe,CACpE,iBAAiB,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,QAAQ,EAAE,QAAQ,CAAC;CACpB,CAAC,CACH,CAAC;AAEF,QAAA,MAAM,iBAAiB;KAAI,QAAQ,SAAS,YAAY,4EAMrD,sBAAsB,CAAC,QAAQ,CAAC;;CA0DlC,CAAC;AAWF,KAAK,wBAAwB,GAAG,IAAI,CAAC,yBAAyB,EAAE,MAAM,CAAC,CAAC;AAExE,QAAA,MAAM,mBAAmB;YAAW,wBAAwB;;CAK3D,CAAC;AAQF,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,CAAC;AAElD,YAAY,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React, { type PropsWithChildren } from 'react';
|
|
2
|
+
import { type ThemedClassName } from '@dxos/react-ui';
|
|
3
|
+
import { type MosaicData, type MosaicEventHandler, type MosaicTileData } from './types';
|
|
4
|
+
type MosaicDraggingSource = {
|
|
5
|
+
data: MosaicTileData;
|
|
6
|
+
handler?: MosaicEventHandler;
|
|
7
|
+
container?: Element;
|
|
8
|
+
};
|
|
9
|
+
type MosaicDraggingTarget = {
|
|
10
|
+
data: MosaicData;
|
|
11
|
+
handler?: MosaicEventHandler;
|
|
12
|
+
};
|
|
13
|
+
type MosaicDraggingState = {
|
|
14
|
+
source: MosaicDraggingSource;
|
|
15
|
+
target?: MosaicDraggingTarget;
|
|
16
|
+
};
|
|
17
|
+
type MosaicRootContextValue = {
|
|
18
|
+
containers: Record<string, MosaicEventHandler>;
|
|
19
|
+
addContainer: (container: MosaicEventHandler) => void;
|
|
20
|
+
removeContainer: (id: string) => void;
|
|
21
|
+
dragging?: MosaicDraggingState;
|
|
22
|
+
};
|
|
23
|
+
declare const useMosaicRootContext: (consumerName: string) => MosaicRootContextValue;
|
|
24
|
+
type MosaicRootProps = ThemedClassName<PropsWithChildren<{
|
|
25
|
+
asChild?: boolean;
|
|
26
|
+
debug?: boolean;
|
|
27
|
+
}>>;
|
|
28
|
+
declare const MosaicRoot: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<{
|
|
29
|
+
asChild?: boolean;
|
|
30
|
+
debug?: boolean;
|
|
31
|
+
}>, "className"> & {
|
|
32
|
+
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
33
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
34
|
+
export { MosaicRoot, useMosaicRootContext };
|
|
35
|
+
export type { MosaicRootProps, MosaicDraggingState };
|
|
36
|
+
//# sourceMappingURL=Root.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Root.d.ts","sourceRoot":"","sources":["../../../../../src/components/Mosaic/Root.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAwD,MAAM,OAAO,CAAC;AAG5G,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGtD,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,kBAAkB,EAAE,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;AAMxF,KAAK,oBAAoB,GAAG;IAC1B,IAAI,EAAE,cAAc,CAAC;IACrB,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,KAAK,oBAAoB,GAAG;IAC1B,IAAI,EAAE,UAAU,CAAC;IACjB,OAAO,CAAC,EAAE,kBAAkB,CAAC;CAC9B,CAAC;AAEF,KAAK,mBAAmB,GAAG;IACzB,MAAM,EAAE,oBAAoB,CAAC;IAC7B,MAAM,CAAC,EAAE,oBAAoB,CAAC;CAC/B,CAAC;AAEF,KAAK,sBAAsB,GAAG;IAC5B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;IAC/C,YAAY,EAAE,CAAC,SAAS,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACtD,eAAe,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,QAAQ,CAAC,EAAE,mBAAmB,CAAC;CAChC,CAAC;AAEF,QAAA,MAAkC,oBAAoB,kDAAuD,CAAC;AAW9G,KAAK,eAAe,GAAG,eAAe,CACpC,iBAAiB,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC,CACH,CAAC;AAEF,QAAA,MAAM,UAAU;cALF,OAAO;YACT,OAAO;;;wCAiOlB,CAAC;AAIF,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,CAAC;AAE5C,YAAY,EAAE,eAAe,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type ReactVirtualizerOptions } from '@tanstack/react-virtual';
|
|
2
|
+
import { type FC, type ReactElement, type Ref } from 'react';
|
|
3
|
+
import { type Axis, type ComposableProps } from '@dxos/react-ui';
|
|
4
|
+
import { type MosaicTileProps } from './Tile';
|
|
5
|
+
import { type GetId } from './types';
|
|
6
|
+
type MosaicStackTileComponent<TData = any> = FC<MosaicTileProps<TData>>;
|
|
7
|
+
type MosaicStackProps<TData = any> = ComposableProps<{
|
|
8
|
+
Tile: MosaicStackTileComponent<TData>;
|
|
9
|
+
getId: GetId<TData>;
|
|
10
|
+
role?: string;
|
|
11
|
+
orientation?: Axis;
|
|
12
|
+
items?: readonly TData[];
|
|
13
|
+
} & Pick<MosaicTileProps<TData>, 'draggable' | 'debug'>>;
|
|
14
|
+
declare const MosaicStack: <TData = any>(props: MosaicStackProps<TData> & {
|
|
15
|
+
ref?: Ref<HTMLDivElement>;
|
|
16
|
+
}) => ReactElement;
|
|
17
|
+
type MosaicVirtualStackProps<TData = any> = MosaicStackProps<TData> & Pick<ReactVirtualizerOptions<HTMLElement, HTMLDivElement>, 'estimateSize' | 'getScrollElement' | 'overscan' | 'onChange'>;
|
|
18
|
+
declare const MosaicVirtualStack: <TData = any>(props: MosaicVirtualStackProps<TData> & {
|
|
19
|
+
ref?: Ref<HTMLDivElement>;
|
|
20
|
+
}) => ReactElement;
|
|
21
|
+
export { MosaicStack, MosaicVirtualStack };
|
|
22
|
+
export type { MosaicStackTileComponent, MosaicStackProps, MosaicVirtualStackProps };
|
|
23
|
+
//# sourceMappingURL=Stack.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Stack.d.ts","sourceRoot":"","sources":["../../../../../src/components/Mosaic/Stack.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,uBAAuB,EAAkB,MAAM,yBAAyB,CAAC;AACvF,OAAc,EAAE,KAAK,EAAE,EAAY,KAAK,YAAY,EAAE,KAAK,GAAG,EAAc,MAAM,OAAO,CAAC;AAG1F,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAQjE,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,SAAS,CAAC;AAyBrC,KAAK,wBAAwB,CAAC,KAAK,GAAG,GAAG,IAAI,EAAE,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC;AAExE,KAAK,gBAAgB,CAAC,KAAK,GAAG,GAAG,IAAI,eAAe,CAClD;IACE,IAAI,EAAE,wBAAwB,CAAC,KAAK,CAAC,CAAC;IACtC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,KAAK,EAAE,CAAC;CAC1B,GAAG,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,CACxD,CAAC;AAsDF,QAAA,MAAM,WAAW,EAAuB,CAAC,KAAK,GAAG,GAAG,EAClD,KAAK,EAAE,gBAAgB,CAAC,KAAK,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAA;CAAE,KAC3D,YAAY,CAAC;AAQlB,KAAK,uBAAuB,CAAC,KAAK,GAAG,GAAG,IAAI,gBAAgB,CAAC,KAAK,CAAC,GACjE,IAAI,CACF,uBAAuB,CAAC,WAAW,EAAE,cAAc,CAAC,EACpD,cAAc,GAAG,kBAAkB,GAAG,UAAU,GAAG,UAAU,CAC9D,CAAC;AAgGJ,QAAA,MAAM,kBAAkB,EAA8B,CAAC,KAAK,GAAG,GAAG,EAChE,KAAK,EAAE,uBAAuB,CAAC,KAAK,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAA;CAAE,KAClE,YAAY,CAAC;AAyBlB,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,CAAC;AAE3C,YAAY,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type Meta, type StoryObj } from '@storybook/react-vite';
|
|
2
2
|
import { Obj } from '@dxos/echo';
|
|
3
|
-
import {
|
|
4
|
-
declare const meta: Meta<typeof
|
|
3
|
+
import { MosaicStack } from './Stack';
|
|
4
|
+
declare const meta: Meta<typeof MosaicStack<Obj.Any>>;
|
|
5
5
|
export default meta;
|
|
6
6
|
type Story = StoryObj<typeof meta>;
|
|
7
7
|
export declare const Default: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Stack.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Mosaic/Stack.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAIjE,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AASjC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAetC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,CAa3C,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KA4BrB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAqCrB,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { type Edge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge';
|
|
2
|
+
import React, { type PropsWithChildren } from 'react';
|
|
3
|
+
import { type ComposableProps } from '@dxos/react-ui';
|
|
4
|
+
import { type LocationType } from './types';
|
|
5
|
+
type MosaicTileState = {
|
|
6
|
+
type: 'idle';
|
|
7
|
+
} | {
|
|
8
|
+
type: 'preview';
|
|
9
|
+
container: HTMLElement;
|
|
10
|
+
rect: DOMRect;
|
|
11
|
+
} | {
|
|
12
|
+
type: 'dragging';
|
|
13
|
+
} | {
|
|
14
|
+
type: 'target';
|
|
15
|
+
closestEdge: Edge | null;
|
|
16
|
+
};
|
|
17
|
+
type MosaicTileContextValue = {
|
|
18
|
+
state: MosaicTileState;
|
|
19
|
+
};
|
|
20
|
+
declare const useMosaicTileContext: (consumerName: string) => MosaicTileContextValue;
|
|
21
|
+
type MosaicTileProps<TData = any, TLocation = LocationType> = ComposableProps<PropsWithChildren<{
|
|
22
|
+
asChild?: boolean;
|
|
23
|
+
dragHandle?: HTMLElement | null;
|
|
24
|
+
allowedEdges?: Edge[];
|
|
25
|
+
id: string;
|
|
26
|
+
data: TData;
|
|
27
|
+
location: TLocation;
|
|
28
|
+
draggable?: boolean;
|
|
29
|
+
debug?: boolean;
|
|
30
|
+
}>>;
|
|
31
|
+
declare const MosaicTile: React.ForwardRefExoticComponent<{
|
|
32
|
+
asChild?: boolean;
|
|
33
|
+
dragHandle?: HTMLElement | null;
|
|
34
|
+
allowedEdges?: Edge[];
|
|
35
|
+
id: string;
|
|
36
|
+
data: any;
|
|
37
|
+
location: LocationType;
|
|
38
|
+
draggable?: boolean;
|
|
39
|
+
debug?: boolean;
|
|
40
|
+
} & {
|
|
41
|
+
children?: React.ReactNode | undefined;
|
|
42
|
+
} & {
|
|
43
|
+
className?: string;
|
|
44
|
+
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
45
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
46
|
+
export { MosaicTile, useMosaicTileContext };
|
|
47
|
+
export type { MosaicTileProps, MosaicTileState };
|
|
48
|
+
//# sourceMappingURL=Tile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tile.d.ts","sourceRoot":"","sources":["../../../../../src/components/Mosaic/Tile.tsx"],"names":[],"mappings":"AAaA,OAAO,EACL,KAAK,IAAI,EAGV,MAAM,uDAAuD,CAAC;AAK/D,OAAO,KAAK,EAAE,EAEZ,KAAK,iBAAiB,EAMvB,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAItD,OAAO,EAAE,KAAK,YAAY,EAAsC,MAAM,SAAS,CAAC;AAQhF,KAAK,eAAe,GAChB;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAChB;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,SAAS,EAAE,WAAW,CAAC;IAAC,IAAI,EAAE,OAAO,CAAA;CAAE,GAC1D;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,GACpB;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,WAAW,EAAE,IAAI,GAAG,IAAI,CAAA;CAAE,CAAC;AAEjD,KAAK,sBAAsB,GAAG;IAC5B,KAAK,EAAE,eAAe,CAAC;CACxB,CAAC;AAEF,QAAA,MAAkC,oBAAoB,kDAAuD,CAAC;AAK9G,KAAK,eAAe,CAAC,KAAK,GAAG,GAAG,EAAE,SAAS,GAAG,YAAY,IAAI,eAAe,CAC3E,iBAAiB,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAChC,YAAY,CAAC,EAAE,IAAI,EAAE,CAAC;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,KAAK,CAAC;IACZ,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC,CACH,CAAC;AAEF,QAAA,MAAM,UAAU;cAXF,OAAO;iBACJ,WAAW,GAAG,IAAI;mBAChB,IAAI,EAAE;QACjB,MAAM;;;gBAGE,OAAO;YACX,OAAO;;;;;;wCAsKlB,CAAC;AAIF,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,CAAC;AAE5C,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Mosaic/styles.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,MAAM;;;;;
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Mosaic/styles.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,MAAM;;;;;CAyBuC,CAAC"}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
export type AllowedAxis = Axis | 'all';
|
|
1
|
+
import { type ElementDragPayload } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
|
|
3
2
|
export type GetId<TData = any> = (data: TData) => string;
|
|
3
|
+
/**
|
|
4
|
+
* NOTE: Must implement value equivalence.
|
|
5
|
+
*/
|
|
6
|
+
export type LocationType = string | number;
|
|
7
|
+
/**
|
|
8
|
+
* Get the source data from the drag payload.
|
|
9
|
+
*/
|
|
10
|
+
export declare const getSourceData: <TData = any, TLocation = any>(source: ElementDragPayload) => MosaicTileData<TData, TLocation> | null;
|
|
4
11
|
/**
|
|
5
12
|
* Draggable item.
|
|
6
13
|
* Tiles may contain arbitrary data (which may not be an ECHO object; e.g., search result).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Mosaic/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Mosaic/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,mDAAmD,CAAC;AAE5F,MAAM,MAAM,KAAK,CAAC,KAAK,GAAG,GAAG,IAAI,CAAC,IAAI,EAAE,KAAK,KAAK,MAAM,CAAC;AAEzD;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,MAAM,CAAC;AAE3C;;GAEG;AACH,eAAO,MAAM,aAAa,GAAI,KAAK,GAAG,GAAG,EAAE,SAAS,GAAG,GAAG,EACxD,QAAQ,kBAAkB,KACzB,cAAc,CAAC,KAAK,EAAE,SAAS,CAAC,GAAG,IAErC,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,cAAc,CAAC,KAAK,GAAG,GAAG,EAAE,SAAS,GAAG,GAAG,IAAI;IACzD,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,KAAK,CAAC;IACZ,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,qBAAqB,CAAC,SAAS,GAAG,GAAG,IAAI;IACnD,IAAI,EAAE,aAAa,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,WAAW,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,cAAc,GAAG,qBAAqB,GAAG,mBAAmB,CAAC;AAEtF,MAAM,MAAM,gBAAgB,GAAG,cAAc,GAAG,qBAAqB,CAAC;AAEtE;;GAEG;AACH,MAAM,WAAW,kBAAkB,CAAC,KAAK,GAAG,GAAG,EAAE,OAAO,GAAG,GAAG;IAC5D;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,MAAM,EAAE,cAAc,CAAC,KAAK,CAAC,CAAA;KAAE,KAAK,OAAO,CAAC;IAEhE;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,MAAM,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC;QAAC,QAAQ,EAAE;YAAE,CAAC,EAAE,MAAM,CAAC;YAAC,CAAC,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,KAAK,IAAI,CAAC;IAEhG;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,MAAM,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC;QAAC,MAAM,CAAC,EAAE,UAAU,CAAA;KAAE,KAAK,IAAI,CAAC;IAEjF;;;;;OAKG;IACH,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,MAAM,EAAE,cAAc,CAAC,KAAK,CAAC,CAAA;KAAE,EAAE,EAAE,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,OAAO,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;IAEvG;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/index.ts"],"names":[],"mappings":"AAIA,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/index.ts"],"names":[],"mappings":"AAIA,cAAc,qBAAqB,CAAC;AACpC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type Obj } from '@dxos/echo';
|
|
2
|
+
import { type GetId, type MosaicEventHandler } from '../components';
|
|
3
|
+
/**
|
|
4
|
+
* Minimal model shape needed to build the default column handler.
|
|
5
|
+
*/
|
|
6
|
+
export type DefaultColumnEventHandlerModel<TColumn = unknown> = {
|
|
7
|
+
getColumnId: GetId<TColumn>;
|
|
8
|
+
isColumn: (obj: unknown) => obj is TColumn;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Returns the default column drag/drop handler (no persistence).
|
|
12
|
+
* Use this when no custom eventHandler is passed to Board.Content.
|
|
13
|
+
*/
|
|
14
|
+
export declare const useDefaultColumnEventHandler: <TColumn extends Obj.Unknown = Obj.Unknown>(id: string, model: DefaultColumnEventHandlerModel<TColumn>, items: TColumn[]) => MosaicEventHandler<TColumn>;
|
|
15
|
+
//# sourceMappingURL=useDefaultColumnEventHandler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDefaultColumnEventHandler.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useDefaultColumnEventHandler.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAIpE;;GAEG;AACH,MAAM,MAAM,8BAA8B,CAAC,OAAO,GAAG,OAAO,IAAI;IAC9D,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAC5B,QAAQ,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,GAAG,IAAI,OAAO,CAAC;CAC5C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,4BAA4B,GAAI,OAAO,SAAS,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,EACpF,IAAI,MAAM,EACV,OAAO,8BAA8B,CAAC,OAAO,CAAC,EAC9C,OAAO,OAAO,EAAE,KACf,kBAAkB,CAAC,OAAO,CAQzB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Obj } from '@dxos/echo';
|
|
2
2
|
import { type GetId, type MosaicEventHandler } from '../components';
|
|
3
|
-
export type UseEventHandlerProps<TItem = any, TObject =
|
|
3
|
+
export type UseEventHandlerProps<TItem = any, TObject extends Obj.Unknown = Obj.Unknown> = Pick<MosaicEventHandler<TItem>, 'id' | 'canDrop'> & {
|
|
4
4
|
/**
|
|
5
5
|
* The items to manage.
|
|
6
6
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useEventHandlerAdapter.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useEventHandlerAdapter.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,YAAY,CAAC;AAItC,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAEpE,MAAM,MAAM,oBAAoB,CAAC,KAAK,GAAG,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,IAAI,
|
|
1
|
+
{"version":3,"file":"useEventHandlerAdapter.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useEventHandlerAdapter.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,YAAY,CAAC;AAItC,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAEpE,MAAM,MAAM,oBAAoB,CAAC,KAAK,GAAG,GAAG,EAAE,OAAO,SAAS,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,IAAI,IAAI,CAC7F,kBAAkB,CAAC,KAAK,CAAC,EACzB,IAAI,GAAG,SAAS,CACjB,GAAG;IACF;;OAEG;IACH,KAAK,EAAE,KAAK,EAAE,CAAC;IAEf;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAEpB;;OAEG;IACH,GAAG,EAAE,CAAC,IAAI,EAAE,KAAK,KAAK,OAAO,CAAC;IAE9B;;OAEG;IACH,IAAI,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,KAAK,CAAC;IAEjC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,IAAI,KAAK,IAAI,CAAC;CACxD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,sBAAsB,GAAI,KAAK,GAAG,GAAG,EAAE,OAAO,SAAS,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,iDAO5F,oBAAoB,CAAC,KAAK,EAAE,OAAO,CAAC,KAAG,kBAAkB,CAAC,KAAK,CAoDjE,CAAC"}
|
|
@@ -3,7 +3,7 @@ export type UseVisibleItemsProps<TItem = any> = {
|
|
|
3
3
|
/** Container id. */
|
|
4
4
|
id: string;
|
|
5
5
|
/** Current items. */
|
|
6
|
-
items?: TItem[];
|
|
6
|
+
items?: readonly TItem[] | TItem[];
|
|
7
7
|
/** Currently dragging item. */
|
|
8
8
|
dragging: MosaicTileData<TItem> | undefined;
|
|
9
9
|
/** ID getter */
|
|
@@ -12,5 +12,5 @@ export type UseVisibleItemsProps<TItem = any> = {
|
|
|
12
12
|
/**
|
|
13
13
|
* Returns items with the dragging item removed.
|
|
14
14
|
*/
|
|
15
|
-
export declare const useVisibleItems: <TItem = any>({ id, items, dragging, getId }: UseVisibleItemsProps<TItem>) => TItem[];
|
|
15
|
+
export declare const useVisibleItems: <TItem = any>({ id, items, dragging, getId, }: UseVisibleItemsProps<TItem>) => readonly TItem[] | TItem[];
|
|
16
16
|
//# sourceMappingURL=useVisibleItems.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useVisibleItems.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useVisibleItems.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;AAEhE,MAAM,MAAM,oBAAoB,CAAC,KAAK,GAAG,GAAG,IAAI;IAC9C,oBAAoB;IACpB,EAAE,EAAE,MAAM,CAAC;IAEX,qBAAqB;IACrB,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"useVisibleItems.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useVisibleItems.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;AAEhE,MAAM,MAAM,oBAAoB,CAAC,KAAK,GAAG,GAAG,IAAI;IAC9C,oBAAoB;IACpB,EAAE,EAAE,MAAM,CAAC;IAEX,qBAAqB;IACrB,KAAK,CAAC,EAAE,SAAS,KAAK,EAAE,GAAG,KAAK,EAAE,CAAC;IAEnC,+BAA+B;IAC/B,QAAQ,EAAE,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC;IAE5C,gBAAgB;IAChB,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;CACrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,KAAK,GAAG,GAAG,EAAE,iCAK1C,oBAAoB,CAAC,KAAK,CAAC,KAAG,SAAS,KAAK,EAAE,GAAG,KAAK,EAiBxD,CAAC"}
|