@dxos/react-ui-mosaic 0.8.4-main.9735255 → 0.8.4-main.abd8ff62ef

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.
Files changed (205) hide show
  1. package/dist/lib/browser/chunk-TY4RYZ3H.mjs +962 -0
  2. package/dist/lib/browser/chunk-TY4RYZ3H.mjs.map +7 -0
  3. package/dist/lib/browser/index.mjs +670 -71
  4. package/dist/lib/browser/index.mjs.map +4 -4
  5. package/dist/lib/browser/meta.json +1 -1
  6. package/dist/lib/browser/playwright/index.mjs +148 -0
  7. package/dist/lib/browser/playwright/index.mjs.map +7 -0
  8. package/dist/lib/browser/testing/index.mjs +69 -236
  9. package/dist/lib/browser/testing/index.mjs.map +4 -4
  10. package/dist/lib/browser/translations.mjs +18 -0
  11. package/dist/lib/browser/translations.mjs.map +7 -0
  12. package/dist/lib/node-esm/chunk-25RXZ2RH.mjs +964 -0
  13. package/dist/lib/node-esm/chunk-25RXZ2RH.mjs.map +7 -0
  14. package/dist/lib/node-esm/index.mjs +670 -71
  15. package/dist/lib/node-esm/index.mjs.map +4 -4
  16. package/dist/lib/node-esm/meta.json +1 -1
  17. package/dist/lib/node-esm/playwright/index.mjs +150 -0
  18. package/dist/lib/node-esm/playwright/index.mjs.map +7 -0
  19. package/dist/lib/node-esm/testing/index.mjs +69 -236
  20. package/dist/lib/node-esm/testing/index.mjs.map +4 -4
  21. package/dist/lib/node-esm/translations.mjs +20 -0
  22. package/dist/lib/node-esm/translations.mjs.map +7 -0
  23. package/dist/types/src/components/Board/Board.d.ts +88 -0
  24. package/dist/types/src/components/Board/Board.d.ts.map +1 -0
  25. package/dist/types/src/components/Board/Board.stories.d.ts +41 -0
  26. package/dist/types/src/components/Board/Board.stories.d.ts.map +1 -0
  27. package/dist/types/src/components/Board/Column.d.ts +40 -0
  28. package/dist/types/src/components/Board/Column.d.ts.map +1 -0
  29. package/dist/types/src/components/Board/Item.d.ts +12 -0
  30. package/dist/types/src/components/Board/Item.d.ts.map +1 -0
  31. package/dist/types/src/components/Board/index.d.ts +2 -0
  32. package/dist/types/src/components/Board/index.d.ts.map +1 -0
  33. package/dist/types/src/components/Focus/Focus.d.ts +1 -24
  34. package/dist/types/src/components/Focus/Focus.d.ts.map +1 -1
  35. package/dist/types/src/components/Focus/index.d.ts +0 -1
  36. package/dist/types/src/components/Focus/index.d.ts.map +1 -1
  37. package/dist/types/src/components/Mosaic/Container.d.ts +45 -0
  38. package/dist/types/src/components/Mosaic/Container.d.ts.map +1 -0
  39. package/dist/types/src/components/Mosaic/Mosaic.d.ts +31 -129
  40. package/dist/types/src/components/Mosaic/Mosaic.d.ts.map +1 -1
  41. package/dist/types/src/components/Mosaic/Placeholder.d.ts +21 -0
  42. package/dist/types/src/components/Mosaic/Placeholder.d.ts.map +1 -0
  43. package/dist/types/src/components/Mosaic/Root.d.ts +35 -0
  44. package/dist/types/src/components/Mosaic/Root.d.ts.map +1 -0
  45. package/dist/types/src/components/Mosaic/Stack.d.ts +29 -0
  46. package/dist/types/src/components/Mosaic/Stack.d.ts.map +1 -0
  47. package/dist/types/src/components/Mosaic/Stack.stories.d.ts +20 -0
  48. package/dist/types/src/components/Mosaic/Stack.stories.d.ts.map +1 -0
  49. package/dist/types/src/components/Mosaic/Tile.d.ts +53 -0
  50. package/dist/types/src/components/Mosaic/Tile.d.ts.map +1 -0
  51. package/dist/types/src/components/Mosaic/extension.d.ts.map +1 -1
  52. package/dist/types/src/components/Mosaic/styles.d.ts.map +1 -1
  53. package/dist/types/src/components/Mosaic/types.d.ts +9 -2
  54. package/dist/types/src/components/Mosaic/types.d.ts.map +1 -1
  55. package/dist/types/src/components/SearchStack/SearchStack.d.ts +20 -0
  56. package/dist/types/src/components/SearchStack/SearchStack.d.ts.map +1 -0
  57. package/dist/types/src/components/SearchStack/SearchStack.stories.d.ts +10 -0
  58. package/dist/types/src/components/SearchStack/SearchStack.stories.d.ts.map +1 -0
  59. package/dist/types/src/components/SearchStack/index.d.ts +2 -0
  60. package/dist/types/src/components/SearchStack/index.d.ts.map +1 -0
  61. package/dist/types/src/components/index.d.ts +2 -4
  62. package/dist/types/src/components/index.d.ts.map +1 -1
  63. package/dist/types/src/hooks/index.d.ts +1 -0
  64. package/dist/types/src/hooks/index.d.ts.map +1 -1
  65. package/dist/types/src/hooks/useContainerDebug.d.ts.map +1 -1
  66. package/dist/types/src/hooks/useDefaultColumnEventHandler.d.ts +15 -0
  67. package/dist/types/src/hooks/useDefaultColumnEventHandler.d.ts.map +1 -0
  68. package/dist/types/src/hooks/useEventHandlerAdapter.d.ts +2 -2
  69. package/dist/types/src/hooks/useEventHandlerAdapter.d.ts.map +1 -1
  70. package/dist/types/src/hooks/useVisibleItems.d.ts +2 -2
  71. package/dist/types/src/hooks/useVisibleItems.d.ts.map +1 -1
  72. package/dist/types/src/playwright/board-manager.d.ts +45 -0
  73. package/dist/types/src/playwright/board-manager.d.ts.map +1 -0
  74. package/dist/types/src/playwright/index.d.ts +9 -0
  75. package/dist/types/src/playwright/index.d.ts.map +1 -0
  76. package/dist/types/src/playwright/playwright.config.d.ts +3 -0
  77. package/dist/types/src/playwright/playwright.config.d.ts.map +1 -0
  78. package/dist/types/src/playwright/smoke.spec.d.ts +2 -0
  79. package/dist/types/src/playwright/smoke.spec.d.ts.map +1 -0
  80. package/dist/types/src/testing/CardContainer.d.ts +5 -4
  81. package/dist/types/src/testing/CardContainer.d.ts.map +1 -1
  82. package/dist/types/src/testing/DefaultStackTile.d.ts +2 -2
  83. package/dist/types/src/testing/DefaultStackTile.d.ts.map +1 -1
  84. package/dist/types/src/testing/index.d.ts +1 -1
  85. package/dist/types/src/testing/index.d.ts.map +1 -1
  86. package/dist/types/src/testing/types.d.ts +21 -0
  87. package/dist/types/src/testing/types.d.ts.map +1 -0
  88. package/dist/types/src/translations.d.ts +5 -1
  89. package/dist/types/src/translations.d.ts.map +1 -1
  90. package/dist/types/tsconfig.tsbuildinfo +1 -1
  91. package/package.json +47 -30
  92. package/src/AUDIT.md +106 -0
  93. package/src/components/Board/Board.stories.tsx +274 -0
  94. package/src/components/Board/Board.tsx +190 -0
  95. package/src/components/Board/Column.tsx +302 -0
  96. package/src/components/Board/Item.tsx +116 -0
  97. package/src/components/{Layout → Board}/index.ts +1 -1
  98. package/src/components/Focus/Focus.tsx +2 -93
  99. package/src/components/Focus/index.ts +0 -2
  100. package/src/components/Mosaic/Container.tsx +315 -0
  101. package/src/components/Mosaic/Mosaic.tsx +35 -913
  102. package/src/components/Mosaic/Placeholder.tsx +133 -0
  103. package/src/components/Mosaic/Root.tsx +286 -0
  104. package/src/components/Mosaic/Stack.stories.tsx +175 -0
  105. package/src/components/Mosaic/Stack.tsx +341 -0
  106. package/src/components/Mosaic/Tile.tsx +252 -0
  107. package/src/components/Mosaic/extension.ts +1 -1
  108. package/src/components/Mosaic/styles.ts +9 -8
  109. package/src/components/Mosaic/types.ts +15 -3
  110. package/src/components/SearchStack/SearchStack.stories.tsx +47 -0
  111. package/src/components/SearchStack/SearchStack.tsx +135 -0
  112. package/src/components/SearchStack/index.ts +5 -0
  113. package/src/components/index.ts +2 -4
  114. package/src/hooks/index.ts +1 -0
  115. package/src/hooks/useContainerDebug.tsx +6 -4
  116. package/src/hooks/useDefaultColumnEventHandler.ts +34 -0
  117. package/src/hooks/useEventHandlerAdapter.ts +16 -7
  118. package/src/hooks/useVisibleItems.ts +7 -2
  119. package/src/playwright/board-manager.ts +159 -0
  120. package/src/playwright/index.ts +13 -0
  121. package/src/playwright/playwright.config.ts +17 -0
  122. package/src/playwright/smoke.spec.ts +143 -0
  123. package/src/testing/CardContainer.tsx +31 -19
  124. package/src/testing/DefaultStackTile.tsx +43 -23
  125. package/src/testing/index.ts +1 -1
  126. package/src/testing/types.ts +38 -0
  127. package/src/translations.ts +5 -1
  128. package/dist/lib/browser/chunk-UMBPEG4F.mjs +0 -1637
  129. package/dist/lib/browser/chunk-UMBPEG4F.mjs.map +0 -7
  130. package/dist/lib/browser/index.css +0 -13
  131. package/dist/lib/browser/index.css.map +0 -7
  132. package/dist/lib/browser/testing/index.css +0 -13
  133. package/dist/lib/browser/testing/index.css.map +0 -7
  134. package/dist/lib/node-esm/chunk-X6GV7SMK.mjs +0 -1639
  135. package/dist/lib/node-esm/chunk-X6GV7SMK.mjs.map +0 -7
  136. package/dist/lib/node-esm/index.css +0 -13
  137. package/dist/lib/node-esm/index.css.map +0 -7
  138. package/dist/lib/node-esm/testing/index.css +0 -13
  139. package/dist/lib/node-esm/testing/index.css.map +0 -7
  140. package/dist/types/src/components/Card/Card.d.ts +0 -121
  141. package/dist/types/src/components/Card/Card.d.ts.map +0 -1
  142. package/dist/types/src/components/Card/Card.stories.d.ts +0 -21
  143. package/dist/types/src/components/Card/Card.stories.d.ts.map +0 -1
  144. package/dist/types/src/components/Card/CardDragPreview.d.ts +0 -6
  145. package/dist/types/src/components/Card/CardDragPreview.d.ts.map +0 -1
  146. package/dist/types/src/components/Card/index.d.ts +0 -4
  147. package/dist/types/src/components/Card/index.d.ts.map +0 -1
  148. package/dist/types/src/components/Card/styles.d.ts +0 -13
  149. package/dist/types/src/components/Card/styles.d.ts.map +0 -1
  150. package/dist/types/src/components/Focus/styles.d.ts +0 -6
  151. package/dist/types/src/components/Focus/styles.d.ts.map +0 -1
  152. package/dist/types/src/components/Image/Image.d.ts +0 -14
  153. package/dist/types/src/components/Image/Image.d.ts.map +0 -1
  154. package/dist/types/src/components/Image/Image.stories.d.ts +0 -33
  155. package/dist/types/src/components/Image/Image.stories.d.ts.map +0 -1
  156. package/dist/types/src/components/Image/index.d.ts +0 -2
  157. package/dist/types/src/components/Image/index.d.ts.map +0 -1
  158. package/dist/types/src/components/Layout/Layout.d.ts +0 -33
  159. package/dist/types/src/components/Layout/Layout.d.ts.map +0 -1
  160. package/dist/types/src/components/Layout/Layout.stories.d.ts +0 -10
  161. package/dist/types/src/components/Layout/Layout.stories.d.ts.map +0 -1
  162. package/dist/types/src/components/Layout/index.d.ts +0 -2
  163. package/dist/types/src/components/Layout/index.d.ts.map +0 -1
  164. package/dist/types/src/components/Mosaic/Mosaic.stories.d.ts +0 -27
  165. package/dist/types/src/components/Mosaic/Mosaic.stories.d.ts.map +0 -1
  166. package/dist/types/src/components/Scrollable/Scrollable.d.ts +0 -24
  167. package/dist/types/src/components/Scrollable/Scrollable.d.ts.map +0 -1
  168. package/dist/types/src/components/Scrollable/Scrollable.stories.d.ts +0 -10
  169. package/dist/types/src/components/Scrollable/Scrollable.stories.d.ts.map +0 -1
  170. package/dist/types/src/components/Scrollable/index.d.ts +0 -2
  171. package/dist/types/src/components/Scrollable/index.d.ts.map +0 -1
  172. package/dist/types/src/components/Stack/Stack.d.ts +0 -22
  173. package/dist/types/src/components/Stack/Stack.d.ts.map +0 -1
  174. package/dist/types/src/components/Stack/Stack.stories.d.ts +0 -9
  175. package/dist/types/src/components/Stack/Stack.stories.d.ts.map +0 -1
  176. package/dist/types/src/components/Stack/index.d.ts +0 -2
  177. package/dist/types/src/components/Stack/index.d.ts.map +0 -1
  178. package/dist/types/src/testing/Board.d.ts +0 -45
  179. package/dist/types/src/testing/Board.d.ts.map +0 -1
  180. package/dist/types/src/testing/Slot.stories.d.ts +0 -14
  181. package/dist/types/src/testing/Slot.stories.d.ts.map +0 -1
  182. package/dist/types/src/testing/Virtualizer.stories.d.ts +0 -12
  183. package/dist/types/src/testing/Virtualizer.stories.d.ts.map +0 -1
  184. package/src/components/Card/Card.stories.tsx +0 -148
  185. package/src/components/Card/Card.tsx +0 -458
  186. package/src/components/Card/CardDragPreview.tsx +0 -23
  187. package/src/components/Card/index.ts +0 -8
  188. package/src/components/Card/styles.ts +0 -23
  189. package/src/components/Focus/styles.ts +0 -24
  190. package/src/components/Image/Image.stories.tsx +0 -86
  191. package/src/components/Image/Image.tsx +0 -223
  192. package/src/components/Image/index.ts +0 -5
  193. package/src/components/Layout/Layout.stories.tsx +0 -59
  194. package/src/components/Layout/Layout.tsx +0 -108
  195. package/src/components/Mosaic/Mosaic.stories.tsx +0 -113
  196. package/src/components/Scrollable/Scrollable.stories.tsx +0 -59
  197. package/src/components/Scrollable/Scrollable.tsx +0 -88
  198. package/src/components/Scrollable/index.ts +0 -5
  199. package/src/components/Scrollable/scrollable.css +0 -20
  200. package/src/components/Stack/Stack.stories.tsx +0 -115
  201. package/src/components/Stack/Stack.tsx +0 -210
  202. package/src/components/Stack/index.ts +0 -5
  203. package/src/testing/Board.tsx +0 -278
  204. package/src/testing/Slot.stories.tsx +0 -101
  205. package/src/testing/Virtualizer.stories.tsx +0 -133
@@ -1,99 +1,698 @@
1
1
  import {
2
- Card,
3
2
  Focus,
4
- Image,
5
3
  Mosaic,
6
- Stack,
7
- VirtualStack,
8
- dropHandler,
4
+ getSourceData,
9
5
  styles,
10
- styles2,
11
- styles3,
12
- useContainerContext,
13
- useContainerDebug,
14
- useEventHandlerAdapter,
15
6
  useFocus,
16
- useRootContext,
17
- useTileContext,
7
+ useMosaicContainerContext,
8
+ useMosaicRootContext,
9
+ useMosaicTileContext,
18
10
  useVisibleItems
19
- } from "./chunk-UMBPEG4F.mjs";
11
+ } from "./chunk-TY4RYZ3H.mjs";
20
12
 
21
- // src/components/Card/CardDragPreview.tsx
22
- import React from "react";
13
+ // src/components/Board/Board.tsx
14
+ import { useAtomValue as useAtomValue2 } from "@effect-atom/atom-react";
15
+ import { createContext as createContext2 } from "@radix-ui/react-context";
16
+ import React4, { forwardRef as forwardRef4, useRef as useRef4, useState as useState2 } from "react";
17
+ import { ScrollArea as ScrollArea2 } from "@dxos/react-ui";
18
+ import { JsonHighlighter as JsonHighlighter2 } from "@dxos/react-ui-syntax-highlighter";
19
+ import { composable as composable2, composableProps as composableProps2, mx as mx3 } from "@dxos/ui-theme";
20
+
21
+ // src/hooks/useContainerDebug.tsx
22
+ import React, { forwardRef, useMemo, useRef } from "react";
23
+ import { createPortal } from "react-dom";
24
+ import { JsonHighlighter } from "@dxos/react-ui-syntax-highlighter";
23
25
  import { mx } from "@dxos/ui-theme";
24
- var CardDragPreviewRoot = ({ children }) => {
25
- return /* @__PURE__ */ React.createElement("div", {
26
- className: "p-2"
27
- }, children);
26
+ var useContainerDebug = (debug) => {
27
+ const debugRef = useRef(null);
28
+ return useMemo(() => {
29
+ if (!debug) {
30
+ return [
31
+ () => null,
32
+ void 0
33
+ ];
34
+ }
35
+ return [
36
+ ({ classNames }) => /* @__PURE__ */ React.createElement("div", {
37
+ role: "none",
38
+ className: mx("overflow-hidden", classNames),
39
+ ref: debugRef
40
+ }),
41
+ () => debugRef.current && /* @__PURE__ */ createPortal(/* @__PURE__ */ React.createElement(ContainerInfo, null), debugRef.current)
42
+ ];
43
+ }, [
44
+ debug,
45
+ debugRef
46
+ ]);
28
47
  };
29
- var CardDragPreviewContent = ({ children }) => {
30
- return /* @__PURE__ */ React.createElement("div", {
31
- className: mx(styles.root, "ring-focusLine ring-neutralFocusIndicator")
32
- }, children);
48
+ var CONTAINER_INFO_NAME = "ContainerInfo";
49
+ var ContainerInfo = /* @__PURE__ */ forwardRef(({ classNames }, forwardedRef) => {
50
+ const { id, state, activeLocation, scrolling } = useMosaicContainerContext(CONTAINER_INFO_NAME);
51
+ const counter = useRef(0);
52
+ return /* @__PURE__ */ React.createElement(JsonHighlighter, {
53
+ data: {
54
+ id,
55
+ activeLocation,
56
+ scrolling,
57
+ state,
58
+ count: counter.current++
59
+ },
60
+ classNames: mx("text-xs", classNames),
61
+ ref: forwardedRef
62
+ });
63
+ });
64
+ ContainerInfo.displayName = CONTAINER_INFO_NAME;
65
+
66
+ // src/hooks/useEventHandlerAdapter.ts
67
+ import { useMemo as useMemo2 } from "react";
68
+ import { log } from "@dxos/log";
69
+ import { arrayMove } from "@dxos/util";
70
+ var __dxlog_file = "/__w/dxos/dxos/packages/ui/react-ui-mosaic/src/hooks/useEventHandlerAdapter.ts";
71
+ var useEventHandlerAdapter = ({ items, getId, get, make, onChange, ...props }) => {
72
+ return useMemo2(() => ({
73
+ ...props,
74
+ onTake: ({ source }, cb) => {
75
+ log.info("onTake", {
76
+ source
77
+ }, { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 14, S: void 0 });
78
+ const mutate = (items2) => {
79
+ const from = items2.findIndex((item) => getId(item) === source.id);
80
+ if (from !== -1) {
81
+ items2.splice(from, 1);
82
+ }
83
+ };
84
+ if (onChange) {
85
+ onChange(mutate);
86
+ } else {
87
+ mutate(items);
88
+ }
89
+ void cb(source.data);
90
+ },
91
+ onDrop: ({ source, target }) => {
92
+ log.info("onDrop", {
93
+ source,
94
+ target
95
+ }, { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 31, S: void 0 });
96
+ const mutate = (items2) => {
97
+ const to = target?.type === "tile" || target?.type === "placeholder" ? target.location : target?.type === "container" ? items2.length : -1;
98
+ const from = items2.findIndex((item) => getId(item) === source.id);
99
+ const insertIndex = typeof to === "number" && to >= 0 ? Math.floor(to) : -1;
100
+ if (insertIndex !== -1) {
101
+ if (from !== -1) {
102
+ arrayMove(items2, from, insertIndex);
103
+ } else {
104
+ items2.splice(insertIndex, 0, make(get(source.data)));
105
+ }
106
+ }
107
+ };
108
+ if (onChange) {
109
+ onChange(mutate);
110
+ } else {
111
+ mutate(items);
112
+ }
113
+ }
114
+ }), [
115
+ items,
116
+ onChange
117
+ ]);
118
+ };
119
+
120
+ // src/hooks/useDefaultColumnEventHandler.ts
121
+ var useDefaultColumnEventHandler = (id, model, items) => useEventHandlerAdapter({
122
+ id,
123
+ items,
124
+ getId: model.getColumnId,
125
+ get: (data) => data,
126
+ make: (object) => object,
127
+ canDrop: ({ source }) => model.isColumn(source.data)
128
+ });
129
+
130
+ // src/components/Mosaic/extension.ts
131
+ import { StateEffect, StateField } from "@codemirror/state";
132
+ import { Decoration, EditorView, ViewPlugin, WidgetType } from "@codemirror/view";
133
+ var dropHandler = ({ onDrop = handleDrop } = {}) => {
134
+ const views = /* @__PURE__ */ new Set();
135
+ let state = null;
136
+ const reset = () => {
137
+ views.forEach((view) => view.dispatch({
138
+ effects: setDrop.of(null)
139
+ }));
140
+ state = null;
141
+ };
142
+ const extension = [
143
+ dropField,
144
+ ViewPlugin.fromClass(class {
145
+ _view;
146
+ constructor(_view) {
147
+ this._view = _view;
148
+ views.add(_view);
149
+ }
150
+ destroy() {
151
+ views.delete(this._view);
152
+ }
153
+ })
154
+ ];
155
+ return {
156
+ extension,
157
+ update: (position) => {
158
+ if (!position) {
159
+ reset();
160
+ return;
161
+ }
162
+ views.forEach((view) => {
163
+ const rect = view.dom.getBoundingClientRect();
164
+ if (position.x >= rect.left && position.x <= rect.right && position.y >= rect.top && position.y <= rect.bottom) {
165
+ let pos = view.posAtCoords(position);
166
+ if (pos !== null) {
167
+ const word = view.state.wordAt(pos);
168
+ if (word) {
169
+ const startDist = Math.abs(pos - word.from);
170
+ const endDist = Math.abs(pos - word.to);
171
+ pos = startDist < endDist ? word.from : word.to;
172
+ }
173
+ view.dispatch({
174
+ effects: setDrop.of(pos)
175
+ });
176
+ state = {
177
+ view,
178
+ pos
179
+ };
180
+ return;
181
+ }
182
+ }
183
+ view.dispatch({
184
+ effects: setDrop.of(null)
185
+ });
186
+ });
187
+ },
188
+ cancel: () => {
189
+ reset();
190
+ },
191
+ drop: ({ text, url }) => {
192
+ if (state) {
193
+ onDrop(state.view, state.pos, {
194
+ text,
195
+ url
196
+ });
197
+ }
198
+ reset();
199
+ }
200
+ };
33
201
  };
34
- var CardDragPreview = {
35
- Root: CardDragPreviewRoot,
36
- Content: CardDragPreviewContent
202
+ var handleDrop = (view, pos, event) => {
203
+ const line = view.state.doc.lineAt(pos);
204
+ if (line.text.trim() === "") {
205
+ view.dispatch({
206
+ changes: {
207
+ from: pos,
208
+ insert: `
209
+ ![${event.text}](${event.url})
210
+ `
211
+ },
212
+ effects: setDrop.of(null)
213
+ });
214
+ } else {
215
+ view.dispatch({
216
+ changes: {
217
+ from: pos,
218
+ insert: ` [${event.text}](${event.url})`
219
+ },
220
+ effects: setDrop.of(null)
221
+ });
222
+ }
37
223
  };
224
+ var setDrop = StateEffect.define();
225
+ var dropField = StateField.define({
226
+ create: () => Decoration.none,
227
+ update: (decorations, tr) => {
228
+ for (const effect of tr.effects) {
229
+ if (effect.is(setDrop)) {
230
+ if (effect.value === null) {
231
+ return Decoration.none;
232
+ }
233
+ return Decoration.set([
234
+ Decoration.widget({
235
+ widget: new class extends WidgetType {
236
+ toDOM() {
237
+ const dom = document.createElement("span");
238
+ dom.className = "cm-drop-cursor";
239
+ dom.style.borderLeft = "2px solid var(--color-accent-surface)";
240
+ dom.style.display = "inline-block";
241
+ dom.style.height = "1em";
242
+ dom.style.verticalAlign = "middle";
243
+ return dom;
244
+ }
245
+ }(),
246
+ side: 0
247
+ }).range(effect.value)
248
+ ]);
249
+ }
250
+ }
251
+ return decorations.map(tr.changes);
252
+ },
253
+ provide: (field) => EditorView.decorations.from(field)
254
+ });
38
255
 
39
- // src/components/Layout/Layout.tsx
40
- import React2, { forwardRef, useMemo } from "react";
41
- import { mx as mx2 } from "@dxos/ui-theme";
42
- var Main = /* @__PURE__ */ forwardRef(({ classNames, children, role, toolbar, statusbar }, forwardedRef) => {
43
- const style = useMemo(() => ({
44
- gridTemplateRows: [
45
- toolbar && "var(--toolbar-size)",
46
- "1fr",
47
- statusbar && "var(--statusbar-size)"
48
- ].filter(Boolean).join(" ")
49
- }), [
50
- toolbar,
51
- statusbar
256
+ // src/components/Board/Column.tsx
257
+ import { useAtomValue } from "@effect-atom/atom-react";
258
+ import { createContext } from "@radix-ui/react-context";
259
+ import React3, { forwardRef as forwardRef3, useMemo as useMemo4, useRef as useRef3, useState } from "react";
260
+ import { Obj as Obj2, Ref } from "@dxos/echo";
261
+ import { useObject } from "@dxos/react-client/echo";
262
+ import { IconButton, ScrollArea, Toolbar as Toolbar2, useTranslation as useTranslation2 } from "@dxos/react-ui";
263
+ import { Menu as Menu2, createMenuAction as createMenuAction2 } from "@dxos/react-ui-menu";
264
+ import { composable, composableProps, mx as mx2 } from "@dxos/ui-theme";
265
+ import { translationKey as translationKey2 } from "#translations";
266
+
267
+ // src/components/Board/Item.tsx
268
+ import { useComposedRefs } from "@radix-ui/react-compose-refs";
269
+ import React2, { forwardRef as forwardRef2, useMemo as useMemo3, useRef as useRef2 } from "react";
270
+ import { Obj } from "@dxos/echo";
271
+ import { Card, Tag, Toolbar, useTranslation } from "@dxos/react-ui";
272
+ import { Menu, createMenuAction } from "@dxos/react-ui-menu";
273
+ import { getHashStyles } from "@dxos/ui-theme";
274
+ import { translationKey } from "#translations";
275
+ var BOARD_ITEM_NAME = "Board.Item";
276
+ var BoardItemInner = /* @__PURE__ */ forwardRef2(({ classNames, data, location, debug }, forwardedRef) => {
277
+ const { t } = useTranslation(translationKey);
278
+ const rootRef = useRef2(null);
279
+ const composedRef = useComposedRefs(rootRef, forwardedRef);
280
+ const dragHandleRef = useRef2(null);
281
+ const { model } = useBoard(BOARD_ITEM_NAME);
282
+ const column = useBoardColumn();
283
+ const items = useMemo3(() => column != null && model.onItemDelete ? [
284
+ createMenuAction("delete-item", () => model.onItemDelete?.(column, data), {
285
+ label: t("delete-menu.label"),
286
+ icon: "ph--trash--regular"
287
+ })
288
+ ] : [], [
289
+ column,
290
+ data,
291
+ model.onItemDelete,
292
+ t
52
293
  ]);
53
- return /* @__PURE__ */ React2.createElement("div", {
54
- ref: forwardedRef,
55
- role: role ?? "none",
56
- style,
57
- className: mx2("bs-full is-full grid grid-cols-[100%] overflow-hidden", toolbar && "[&>.dx-toolbar]:relative [&>.dx-toolbar]:border-be [&>.dx-toolbar]:border-subduedSeparator", classNames)
58
- }, children);
294
+ if (!data) {
295
+ return null;
296
+ }
297
+ const label = Obj.getLabel(data);
298
+ const description = Obj.getDescription(data);
299
+ return /* @__PURE__ */ React2.createElement(Menu.Root, null, /* @__PURE__ */ React2.createElement(Mosaic.Tile, {
300
+ ref: rootRef,
301
+ asChild: true,
302
+ dragHandle: dragHandleRef.current,
303
+ id: data.id,
304
+ data,
305
+ location,
306
+ debug
307
+ }, /* @__PURE__ */ React2.createElement(Focus.Item, {
308
+ asChild: true
309
+ }, /* @__PURE__ */ React2.createElement(Card.Root, {
310
+ classNames,
311
+ "data-testid": "board-item",
312
+ ref: composedRef,
313
+ onClick: (event) => event.currentTarget.focus()
314
+ }, /* @__PURE__ */ React2.createElement(Card.Toolbar, null, /* @__PURE__ */ React2.createElement(Card.DragHandle, {
315
+ ref: dragHandleRef,
316
+ testId: "mosaicBoard.cardDragHandle"
317
+ }), /* @__PURE__ */ React2.createElement(Card.Title, {
318
+ "data-testid": "mosaicBoard.cardTitle"
319
+ }, label), /* @__PURE__ */ React2.createElement(Menu.Trigger, {
320
+ asChild: true,
321
+ disabled: !items?.length
322
+ }, /* @__PURE__ */ React2.createElement(Toolbar.IconButton, {
323
+ iconOnly: true,
324
+ variant: "ghost",
325
+ icon: "ph--dots-three-vertical--regular",
326
+ label: t("action-menu.label")
327
+ })), /* @__PURE__ */ React2.createElement(Menu.Content, {
328
+ items
329
+ })), /* @__PURE__ */ React2.createElement(Card.Row, {
330
+ icon: "ph--note--regular",
331
+ classNames: "text-description"
332
+ }, /* @__PURE__ */ React2.createElement(Card.Text, null, description)), /* @__PURE__ */ React2.createElement(Card.Row, {
333
+ icon: "ph--tag--regular"
334
+ }, label && /* @__PURE__ */ React2.createElement("div", {
335
+ role: "none",
336
+ className: "shrink-0 flex gap-1 items-center text-xs"
337
+ }, /* @__PURE__ */ React2.createElement(Tag, {
338
+ palette: getHashStyles(label).hue
339
+ }, label)))))));
59
340
  });
60
- var Container = /* @__PURE__ */ forwardRef(({ classNames, children, role, scrollable }, forwardedRef) => {
61
- return /* @__PURE__ */ React2.createElement("div", {
62
- ref: forwardedRef,
63
- role: role ?? "none",
64
- className: mx2("grid bs-full", scrollable ? "overflow-y-auto" : "overflow-hidden", classNames)
65
- }, children);
341
+ BoardItemInner.displayName = BOARD_ITEM_NAME;
342
+ var BoardItem = BoardItemInner;
343
+
344
+ // src/components/Board/Column.tsx
345
+ var BOARD_COLUMN_CONTEXT_NAME = "Board.Column";
346
+ var [BoardColumnProvider, useBoardColumnContext] = createContext(BOARD_COLUMN_CONTEXT_NAME, null);
347
+ function useBoardColumn() {
348
+ const value = useBoardColumnContext(BOARD_COLUMN_CONTEXT_NAME);
349
+ return value?.column;
350
+ }
351
+ var BOARD_COLUMN_ROOT_NAME = "Board.Column.Root";
352
+ var BoardColumnRootInner = composable(({ classNames, children, location, data, debug, dragHandleRef: dragHandleRefProp, ...rest }, forwardedRef) => {
353
+ const { model } = useBoard(BOARD_COLUMN_ROOT_NAME);
354
+ const internalRef = useRef3(null);
355
+ const dragHandleRef = dragHandleRefProp ?? internalRef;
356
+ return /* @__PURE__ */ React3.createElement(Mosaic.Tile, {
357
+ asChild: true,
358
+ location,
359
+ id: model.getColumnId(data),
360
+ data,
361
+ debug,
362
+ dragHandle: dragHandleRef.current
363
+ }, /* @__PURE__ */ React3.createElement(Focus.Group, {
364
+ ...rest,
365
+ "data-testid": "board-column",
366
+ border: true,
367
+ classNames: mx2("group/column", "h-full w-full md:w-card-default-width snap-center bg-deck-surface", "overflow-hidden", classNames),
368
+ ref: forwardedRef
369
+ }, /* @__PURE__ */ React3.createElement(BoardColumnProvider, {
370
+ column: data
371
+ }, children)));
372
+ });
373
+ BoardColumnRootInner.displayName = BOARD_COLUMN_ROOT_NAME;
374
+ var BoardColumnRoot = BoardColumnRootInner;
375
+ var BOARD_COLUMN_HEADER_NAME = "Board.Column.Header";
376
+ var BoardColumnHeader = composable(({ label, dragHandleRef, ...props }, forwardedRef) => {
377
+ const { t } = useTranslation2(translationKey2);
378
+ const { model } = useBoard(BOARD_COLUMN_HEADER_NAME);
379
+ const column = useBoardColumn();
380
+ const columnMenuItems = useMemo4(() => column != null && model.onColumnDelete ? [
381
+ createMenuAction2("delete-column", () => model.onColumnDelete?.(column), {
382
+ label: t("delete-menu.label"),
383
+ icon: "ph--trash--regular"
384
+ })
385
+ ] : [], [
386
+ column,
387
+ model.onColumnDelete,
388
+ t
389
+ ]);
390
+ return /* @__PURE__ */ React3.createElement(Menu2.Root, null, /* @__PURE__ */ React3.createElement(Toolbar2.Root, {
391
+ ...composableProps(props),
392
+ "data-testid": "board-column-header",
393
+ ref: forwardedRef
394
+ }, /* @__PURE__ */ React3.createElement(Toolbar2.DragHandle, {
395
+ ref: dragHandleRef,
396
+ testId: "mosaicBoard.columnDragHandle"
397
+ }), /* @__PURE__ */ React3.createElement(Toolbar2.Text, {
398
+ "data-testid": "mosaicBoard.columnTitle"
399
+ }, label), /* @__PURE__ */ React3.createElement(Menu2.Trigger, {
400
+ asChild: true,
401
+ disabled: !columnMenuItems?.length
402
+ }, /* @__PURE__ */ React3.createElement(Toolbar2.IconButton, {
403
+ iconOnly: true,
404
+ variant: "ghost",
405
+ icon: "ph--dots-three-vertical--regular",
406
+ label: t("action-menu.label")
407
+ })), /* @__PURE__ */ React3.createElement(Menu2.Content, {
408
+ items: columnMenuItems
409
+ })));
410
+ });
411
+ BoardColumnHeader.displayName = BOARD_COLUMN_HEADER_NAME;
412
+ var BOARD_COLUMN_BODY_NAME = "Board.Column.Body";
413
+ var BoardColumnBody = composable(({ data, eventHandler, Tile = BoardItem, debug, ...props }, forwardedRef) => {
414
+ const { model } = useBoard(BOARD_COLUMN_BODY_NAME);
415
+ const [viewport, setViewport] = useState(null);
416
+ const items = useAtomValue(model.items(data));
417
+ return /* @__PURE__ */ React3.createElement(Mosaic.Container, {
418
+ ...composableProps(props),
419
+ asChild: true,
420
+ withFocus: true,
421
+ orientation: "vertical",
422
+ autoScroll: viewport,
423
+ eventHandler,
424
+ debug,
425
+ ref: forwardedRef
426
+ }, /* @__PURE__ */ React3.createElement(ScrollArea.Root, {
427
+ orientation: "vertical",
428
+ thin: true,
429
+ centered: true,
430
+ padding: true
431
+ }, /* @__PURE__ */ React3.createElement(ScrollArea.Viewport, {
432
+ classNames: "snap-y md:snap-none",
433
+ ref: setViewport
434
+ }, /* @__PURE__ */ React3.createElement(Mosaic.Stack, {
435
+ items,
436
+ getId: model.getItemId,
437
+ Tile
438
+ }))));
66
439
  });
67
- var Flex = ({ children, classNames, role, column, grow }) => {
68
- return /* @__PURE__ */ React2.createElement("div", {
69
- role: role ?? "none",
70
- className: mx2("flex", column && "flex-col", grow && "flex-1 overflow-hidden", classNames)
440
+ BoardColumnBody.displayName = BOARD_COLUMN_BODY_NAME;
441
+ var BOARD_COLUMN_FOOTER_NAME = "Board.Column.Footer";
442
+ var BoardColumnFooter = /* @__PURE__ */ forwardRef3(({ classNames, data, onAdd }, forwardedRef) => {
443
+ const { t } = useTranslation2(translationKey2);
444
+ const { model } = useBoard(BOARD_COLUMN_FOOTER_NAME);
445
+ const handleAdd = onAdd ?? (model.onItemCreate && data ? () => void model.onItemCreate?.(data) : void 0);
446
+ return /* @__PURE__ */ React3.createElement(Toolbar2.Root, {
447
+ classNames: mx2("rounded-b-sm border-t border-separator", classNames),
448
+ ref: forwardedRef
449
+ }, handleAdd && /* @__PURE__ */ React3.createElement(IconButton, {
450
+ "data-testid": "board-column-add-item",
451
+ classNames: "group-hover/column:opacity-100 md:opacity-0 transition transition-opacity duration-500",
452
+ variant: "ghost",
453
+ icon: "ph--plus--regular",
454
+ iconOnly: true,
455
+ label: t("add-item.label"),
456
+ onClick: handleAdd
457
+ }));
458
+ });
459
+ BoardColumnFooter.displayName = BOARD_COLUMN_FOOTER_NAME;
460
+ var BOARD_DEFAULT_COLUMN_NAME = "Board.DefaultColumn";
461
+ var DefaultBoardColumn = /* @__PURE__ */ forwardRef3(({ classNames, location, data, debug, Tile = BoardItem }, forwardedRef) => {
462
+ const { model } = useBoard(BOARD_DEFAULT_COLUMN_NAME);
463
+ const [DebugInfo, debugHandler] = useContainerDebug(debug);
464
+ const dragHandleRef = useRef3(null);
465
+ const [column, updateColumn] = useObject(data);
466
+ const eventHandler = useEventHandlerAdapter({
467
+ id: model.getColumnId(data),
468
+ items: column?.items ?? [],
469
+ getId: (ref) => ref.target?.id ?? ref.dxn.toString(),
470
+ get: (refOrObj) => Ref.isRef(refOrObj) ? refOrObj.target : refOrObj,
471
+ make: (object) => Ref.make(object),
472
+ canDrop: ({ source }) => {
473
+ const item = Ref.isRef(source.data) ? source.data.target : source.data;
474
+ return item != null && Obj2.isObject(item) && model.isItem(item);
475
+ },
476
+ onChange: (mutator) => updateColumn((col) => mutator(col.items))
477
+ });
478
+ return /* @__PURE__ */ React3.createElement(BoardColumnRootInner, {
479
+ classNames: mx2("group/column grid", debug ? "grid-rows-[var(--dx-rail-action)_1fr_20rem]" : "grid-rows-[var(--dx-rail-action)_1fr_var(--dx-rail-action)]", classNames),
480
+ location,
481
+ data,
482
+ dragHandleRef,
483
+ ref: forwardedRef
484
+ }, /* @__PURE__ */ React3.createElement(BoardColumnHeader, {
485
+ label: Obj2.getLabel(data) ?? data.id,
486
+ dragHandleRef
487
+ }), /* @__PURE__ */ React3.createElement(BoardColumnBody, {
488
+ data,
489
+ eventHandler,
490
+ debug: debugHandler,
491
+ Tile
492
+ }), /* @__PURE__ */ React3.createElement("div", {
493
+ role: "none",
494
+ className: "flex flex-col col-span-full"
495
+ }, /* @__PURE__ */ React3.createElement(BoardColumnFooter, {
496
+ data
497
+ }), /* @__PURE__ */ React3.createElement(DebugInfo, null)));
498
+ });
499
+ DefaultBoardColumn.displayName = BOARD_DEFAULT_COLUMN_NAME;
500
+ var BoardColumn = {
501
+ Root: BoardColumnRoot,
502
+ Header: BoardColumnHeader,
503
+ Body: BoardColumnBody,
504
+ Footer: BoardColumnFooter
505
+ };
506
+
507
+ // src/components/Board/Board.tsx
508
+ var BOARD_NAME = "Board";
509
+ var [BoardContextProvider, useBoardContext] = createContext2(BOARD_NAME);
510
+ function useBoard(displayName) {
511
+ return useBoardContext(displayName ?? BOARD_NAME);
512
+ }
513
+ var BOARD_ROOT_NAME = "Board.Root";
514
+ var BoardRootInner = ({ model, children }) => {
515
+ return /* @__PURE__ */ React4.createElement(BoardContextProvider, {
516
+ model
71
517
  }, children);
72
518
  };
73
- var Layout = {
74
- Main,
75
- Container,
76
- Flex
519
+ BoardRootInner.displayName = BOARD_ROOT_NAME;
520
+ var BoardRoot = BoardRootInner;
521
+ var BOARD_CONTENT_NAME = "Board.Content";
522
+ var BoardContentInner = composable2(({ id: _id, debug, eventHandler, Tile = DefaultBoardColumn, ...props }, forwardedRef) => {
523
+ const { model } = useBoardContext(BOARD_CONTENT_NAME);
524
+ const [DebugInfo, debugHandler] = useContainerDebug(debug);
525
+ const [viewport, setViewport] = useState2(null);
526
+ const items = useAtomValue2(model.columns);
527
+ return /* @__PURE__ */ React4.createElement("div", {
528
+ ...composableProps2(props, {
529
+ classNames: "dx-container"
530
+ }),
531
+ ref: forwardedRef
532
+ }, /* @__PURE__ */ React4.createElement(Focus.Group, {
533
+ asChild: true,
534
+ orientation: "horizontal"
535
+ }, /* @__PURE__ */ React4.createElement(Mosaic.Container, {
536
+ asChild: true,
537
+ withFocus: true,
538
+ orientation: "horizontal",
539
+ autoScroll: viewport,
540
+ eventHandler,
541
+ debug: debugHandler
542
+ }, /* @__PURE__ */ React4.createElement(ScrollArea2.Root, {
543
+ orientation: "horizontal",
544
+ centered: true,
545
+ padding: true
546
+ }, /* @__PURE__ */ React4.createElement(ScrollArea2.Viewport, {
547
+ classNames: "snap-mandatory snap-x md:snap-none",
548
+ ref: setViewport
549
+ }, /* @__PURE__ */ React4.createElement(Mosaic.Stack, {
550
+ items,
551
+ getId: model.getColumnId,
552
+ Tile,
553
+ debug
554
+ }))))), /* @__PURE__ */ React4.createElement(DebugInfo, null));
555
+ });
556
+ BoardContentInner.displayName = BOARD_CONTENT_NAME;
557
+ var BoardContent = BoardContentInner;
558
+ var BOARD_PLACEHOLDER_NAME = "Board.Placeholder";
559
+ var BoardPlaceholder = (props) => {
560
+ return /* @__PURE__ */ React4.createElement(Mosaic.Placeholder, {
561
+ ...props,
562
+ classNames: styles.placeholder.root
563
+ }, /* @__PURE__ */ React4.createElement("div", {
564
+ className: mx3("flex h-full border border-dashed border-separator rounded-xs", styles.placeholder.content)
565
+ }));
566
+ };
567
+ BoardPlaceholder.displayName = BOARD_PLACEHOLDER_NAME;
568
+ var BOARD_DEBUG_NAME = "Board.Debug";
569
+ var BoardDebug = /* @__PURE__ */ forwardRef4(({ classNames }, forwardedRef) => {
570
+ const { containers, dragging } = useMosaicRootContext(BOARD_DEBUG_NAME);
571
+ const counter = useRef4(0);
572
+ return /* @__PURE__ */ React4.createElement(JsonHighlighter2, {
573
+ data: {
574
+ containers,
575
+ dragging,
576
+ count: counter.current++
577
+ },
578
+ classNames: mx3("text-xs", classNames),
579
+ ref: forwardedRef
580
+ });
581
+ });
582
+ BoardDebug.displayName = BOARD_DEBUG_NAME;
583
+ var Board = {
584
+ Root: BoardRoot,
585
+ Content: BoardContent,
586
+ Column: BoardColumn,
587
+ Item: BoardItem,
588
+ Placeholder: BoardPlaceholder,
589
+ Debug: BoardDebug
77
590
  };
591
+
592
+ // src/components/SearchStack/SearchStack.tsx
593
+ import React5, { forwardRef as forwardRef5, useCallback, useMemo as useMemo5, useState as useState3 } from "react";
594
+ import { Card as Card2, ScrollArea as ScrollArea3 } from "@dxos/react-ui";
595
+ import { composable as composable3, composableProps as composableProps3 } from "@dxos/ui-theme";
596
+ var SearchStack = composable3(({ results = [], currentId, onAction, ...props }, forwardedRef) => {
597
+ const [viewport, setViewport] = useState3(null);
598
+ const items = useMemo5(() => results.map((result) => ({
599
+ result,
600
+ onAction
601
+ })), [
602
+ results,
603
+ onAction
604
+ ]);
605
+ const handleCurrentChange = useCallback((id) => {
606
+ if (id) {
607
+ onAction?.({
608
+ type: "select",
609
+ resultId: id
610
+ });
611
+ }
612
+ }, [
613
+ onAction
614
+ ]);
615
+ const handleKeyDown = useCallback((event) => {
616
+ if (event.key === "Enter") {
617
+ event.preventDefault();
618
+ document.activeElement?.click();
619
+ }
620
+ }, []);
621
+ return /* @__PURE__ */ React5.createElement(Focus.Group, {
622
+ asChild: true,
623
+ ...composableProps3(props),
624
+ onKeyDown: handleKeyDown,
625
+ ref: forwardedRef
626
+ }, /* @__PURE__ */ React5.createElement(Mosaic.Container, {
627
+ asChild: true,
628
+ withFocus: true,
629
+ currentId,
630
+ onCurrentChange: handleCurrentChange
631
+ }, /* @__PURE__ */ React5.createElement(ScrollArea3.Root, {
632
+ orientation: "vertical",
633
+ padding: true,
634
+ centered: true,
635
+ thin: true
636
+ }, /* @__PURE__ */ React5.createElement(ScrollArea3.Viewport, {
637
+ ref: setViewport
638
+ }, /* @__PURE__ */ React5.createElement(Mosaic.VirtualStack, {
639
+ Tile: SearchTile,
640
+ classNames: "my-2",
641
+ gap: 8,
642
+ items,
643
+ draggable: false,
644
+ getId: (item) => item.result.id,
645
+ getScrollElement: () => viewport,
646
+ estimateSize: () => 100
647
+ })))));
648
+ });
649
+ SearchStack.displayName = "SearchStack";
650
+ var SearchTile = /* @__PURE__ */ forwardRef5(({ data, location, current }, forwardedRef) => {
651
+ const { result } = data;
652
+ const { setCurrentId } = useMosaicContainerContext("SearchTile");
653
+ const handleCurrentChange = useCallback(() => {
654
+ setCurrentId(result.id);
655
+ }, [
656
+ result.id,
657
+ setCurrentId
658
+ ]);
659
+ return /* @__PURE__ */ React5.createElement(Mosaic.Tile, {
660
+ asChild: true,
661
+ classNames: "dx-hover dx-current",
662
+ id: result.id,
663
+ data,
664
+ location,
665
+ current
666
+ }, /* @__PURE__ */ React5.createElement(Focus.Item, {
667
+ asChild: true,
668
+ current,
669
+ onCurrentChange: handleCurrentChange
670
+ }, /* @__PURE__ */ React5.createElement(Card2.Root, {
671
+ fullWidth: true,
672
+ ref: forwardedRef
673
+ }, /* @__PURE__ */ React5.createElement(Card2.Toolbar, null, /* @__PURE__ */ React5.createElement(Card2.IconBlock, null), /* @__PURE__ */ React5.createElement(Card2.Title, null, result.label)), result.snippet && /* @__PURE__ */ React5.createElement(Card2.Content, null, /* @__PURE__ */ React5.createElement(Card2.Row, null, /* @__PURE__ */ React5.createElement(Card2.Text, {
674
+ variant: "description"
675
+ }, result.snippet))))));
676
+ });
677
+ SearchTile.displayName = "SearchTile";
78
678
  export {
79
- Card,
80
- CardDragPreview,
679
+ Board,
680
+ BoardDebug,
81
681
  Focus,
82
- Image,
83
- Layout,
84
682
  Mosaic,
85
- Stack,
86
- VirtualStack,
87
- styles as cardStyles,
683
+ SearchStack,
88
684
  dropHandler,
89
- styles2 as focusStyles,
90
- styles3 as mosaicStyles,
685
+ getSourceData,
686
+ styles as mosaicStyles,
687
+ useBoard,
688
+ useBoardColumn,
91
689
  useContainerDebug,
690
+ useDefaultColumnEventHandler,
92
691
  useEventHandlerAdapter,
93
692
  useFocus,
94
- useRootContext as useMosaic,
95
- useContainerContext as useMosaicContainer,
96
- useTileContext as useMosaicTile,
693
+ useMosaicRootContext as useMosaic,
694
+ useMosaicContainerContext as useMosaicContainer,
695
+ useMosaicTileContext as useMosaicTile,
97
696
  useVisibleItems
98
697
  };
99
698
  //# sourceMappingURL=index.mjs.map