@dxos/plugin-board 0.8.4-main.1068cf700f

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 (62) hide show
  1. package/LICENSE +8 -0
  2. package/README.md +15 -0
  3. package/dist/lib/browser/chunk-7VKDDGS7.mjs +36 -0
  4. package/dist/lib/browser/chunk-7VKDDGS7.mjs.map +7 -0
  5. package/dist/lib/browser/chunk-DCLJ4HOC.mjs +159 -0
  6. package/dist/lib/browser/chunk-DCLJ4HOC.mjs.map +7 -0
  7. package/dist/lib/browser/index.mjs +69 -0
  8. package/dist/lib/browser/index.mjs.map +7 -0
  9. package/dist/lib/browser/meta.json +1 -0
  10. package/dist/lib/browser/react-surface-3ECZMYLQ.mjs +32 -0
  11. package/dist/lib/browser/react-surface-3ECZMYLQ.mjs.map +7 -0
  12. package/dist/lib/browser/types/index.mjs +7 -0
  13. package/dist/lib/browser/types/index.mjs.map +7 -0
  14. package/dist/lib/node-esm/chunk-HICZFU5T.mjs +161 -0
  15. package/dist/lib/node-esm/chunk-HICZFU5T.mjs.map +7 -0
  16. package/dist/lib/node-esm/chunk-UGVRNKWV.mjs +37 -0
  17. package/dist/lib/node-esm/chunk-UGVRNKWV.mjs.map +7 -0
  18. package/dist/lib/node-esm/index.mjs +70 -0
  19. package/dist/lib/node-esm/index.mjs.map +7 -0
  20. package/dist/lib/node-esm/meta.json +1 -0
  21. package/dist/lib/node-esm/react-surface-W7FPI7BR.mjs +33 -0
  22. package/dist/lib/node-esm/react-surface-W7FPI7BR.mjs.map +7 -0
  23. package/dist/lib/node-esm/types/index.mjs +8 -0
  24. package/dist/lib/node-esm/types/index.mjs.map +7 -0
  25. package/dist/types/src/BoardPlugin.d.ts +3 -0
  26. package/dist/types/src/BoardPlugin.d.ts.map +1 -0
  27. package/dist/types/src/capabilities/index.d.ts +2 -0
  28. package/dist/types/src/capabilities/index.d.ts.map +1 -0
  29. package/dist/types/src/capabilities/react-surface/index.d.ts +3 -0
  30. package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
  31. package/dist/types/src/capabilities/react-surface/react-surface.d.ts +5 -0
  32. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
  33. package/dist/types/src/components/BoardContainer.d.ts +6 -0
  34. package/dist/types/src/components/BoardContainer.d.ts.map +1 -0
  35. package/dist/types/src/components/BoardContainer.stories.d.ts +45 -0
  36. package/dist/types/src/components/BoardContainer.stories.d.ts.map +1 -0
  37. package/dist/types/src/components/index.d.ts +2 -0
  38. package/dist/types/src/components/index.d.ts.map +1 -0
  39. package/dist/types/src/index.d.ts +5 -0
  40. package/dist/types/src/index.d.ts.map +1 -0
  41. package/dist/types/src/meta.d.ts +3 -0
  42. package/dist/types/src/meta.d.ts.map +1 -0
  43. package/dist/types/src/translations.d.ts +20 -0
  44. package/dist/types/src/translations.d.ts.map +1 -0
  45. package/dist/types/src/types/Board.d.ts +46 -0
  46. package/dist/types/src/types/Board.d.ts.map +1 -0
  47. package/dist/types/src/types/index.d.ts +2 -0
  48. package/dist/types/src/types/index.d.ts.map +1 -0
  49. package/dist/types/tsconfig.tsbuildinfo +1 -0
  50. package/package.json +96 -0
  51. package/src/BoardPlugin.tsx +33 -0
  52. package/src/capabilities/index.ts +5 -0
  53. package/src/capabilities/react-surface/index.ts +7 -0
  54. package/src/capabilities/react-surface/react-surface.tsx +27 -0
  55. package/src/components/BoardContainer.stories.tsx +121 -0
  56. package/src/components/BoardContainer.tsx +151 -0
  57. package/src/components/index.ts +5 -0
  58. package/src/index.ts +9 -0
  59. package/src/meta.ts +19 -0
  60. package/src/translations.ts +28 -0
  61. package/src/types/Board.ts +33 -0
  62. package/src/types/index.ts +5 -0
package/LICENSE ADDED
@@ -0,0 +1,8 @@
1
+ MIT License
2
+ Copyright (c) 2022 DXOS
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
5
+
6
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,15 @@
1
+ # @dxos/plugin-board
2
+
3
+ Surface plugin for card baords.
4
+
5
+ ## DXOS Resources
6
+
7
+ - [Website](https://dxos.org)
8
+ - [Developer Documentation](https://docs.dxos.org)
9
+ - Talk to us on [Discord](https://dxos.org/discord)
10
+
11
+ ## Contributions
12
+
13
+ Your ideas, issues, and code are most welcome. Please take a look at our [community code of conduct](https://github.com/dxos/dxos/blob/main/CODE_OF_CONDUCT.md), the [issue guide](https://github.com/dxos/dxos/blob/main/CONTRIBUTING.md#submitting-issues), and the [PR contribution guide](https://github.com/dxos/dxos/blob/main/CONTRIBUTING.md#submitting-prs).
14
+
15
+ License: [MIT](./LICENSE) Copyright 2023 © DXOS
@@ -0,0 +1,36 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __export = (target, all) => {
3
+ for (var name in all)
4
+ __defProp(target, name, { get: all[name], enumerable: true });
5
+ };
6
+
7
+ // src/types/Board.ts
8
+ var Board_exports = {};
9
+ __export(Board_exports, {
10
+ Board: () => Board,
11
+ makeBoard: () => makeBoard
12
+ });
13
+ import * as Schema from "effect/Schema";
14
+ import { Obj, Type } from "@dxos/echo";
15
+ import { FormInputAnnotation, LabelAnnotation } from "@dxos/echo/internal";
16
+ import { BoardLayout, defaultLayout } from "@dxos/react-ui-board";
17
+ var Board = Schema.Struct({
18
+ name: Schema.String.pipe(Schema.optional),
19
+ items: Type.Ref(Type.Obj).pipe(Schema.Array, FormInputAnnotation.set(false)),
20
+ layout: BoardLayout.pipe(FormInputAnnotation.set(false))
21
+ }).pipe(Type.object({
22
+ typename: "dxos.org/type/Board",
23
+ version: "0.1.0"
24
+ }), LabelAnnotation.set([
25
+ "name"
26
+ ]));
27
+ var makeBoard = (props = {}) => Obj.make(Board, {
28
+ items: [],
29
+ layout: defaultLayout,
30
+ ...props
31
+ });
32
+
33
+ export {
34
+ Board_exports
35
+ };
36
+ //# sourceMappingURL=chunk-7VKDDGS7.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/types/Board.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { Obj, Type } from '@dxos/echo';\nimport { FormInputAnnotation, LabelAnnotation } from '@dxos/echo/internal';\nimport { BoardLayout, defaultLayout } from '@dxos/react-ui-board';\n\n/**\n * Board and layout.\n */\nexport const Board = Schema.Struct({\n name: Schema.String.pipe(Schema.optional),\n items: Type.Ref(Type.Obj).pipe(Schema.Array, FormInputAnnotation.set(false)),\n layout: BoardLayout.pipe(FormInputAnnotation.set(false)),\n}).pipe(\n Type.object({\n typename: 'dxos.org/type/Board',\n version: '0.1.0',\n }),\n LabelAnnotation.set(['name']),\n);\n\nexport interface Board extends Schema.Schema.Type<typeof Board> {}\n\nexport const makeBoard = (props: Partial<Obj.MakeProps<typeof Board>> = {}) =>\n Obj.make(Board, {\n items: [],\n layout: defaultLayout,\n ...props,\n });\n"],
5
+ "mappings": ";;;;;;;AAAA;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,KAAKC,YAAY;AAC1B,SAASC,qBAAqBC,uBAAuB;AACrD,SAASC,aAAaC,qBAAqB;AAKpC,IAAMC,QAAeC,cAAO;EACjCC,MAAaC,cAAOC,KAAYC,eAAQ;EACxCC,OAAOC,KAAKC,IAAID,KAAKE,GAAG,EAAEL,KAAYM,cAAOC,oBAAoBC,IAAI,KAAA,CAAA;EACrEC,QAAQC,YAAYV,KAAKO,oBAAoBC,IAAI,KAAA,CAAA;AACnD,CAAA,EAAGR,KACDG,KAAKQ,OAAO;EACVC,UAAU;EACVC,SAAS;AACX,CAAA,GACAC,gBAAgBN,IAAI;EAAC;CAAO,CAAA;AAKvB,IAAMO,YAAY,CAACC,QAA8C,CAAC,MACvEX,IAAIY,KAAKrB,OAAO;EACdM,OAAO,CAAA;EACPO,QAAQS;EACR,GAAGF;AACL,CAAA;",
6
+ "names": ["Schema", "Obj", "Type", "FormInputAnnotation", "LabelAnnotation", "BoardLayout", "defaultLayout", "Board", "Struct", "name", "String", "pipe", "optional", "items", "Type", "Ref", "Obj", "Array", "FormInputAnnotation", "set", "layout", "BoardLayout", "object", "typename", "version", "LabelAnnotation", "makeBoard", "props", "make", "defaultLayout"]
7
+ }
@@ -0,0 +1,159 @@
1
+ // src/components/BoardContainer.tsx
2
+ import React, { useCallback, useMemo, useRef, useState } from "react";
3
+ import { Surface } from "@dxos/app-framework/ui";
4
+ import { Filter, Obj, Ref } from "@dxos/echo";
5
+ import { useObject, useObjects } from "@dxos/echo-react";
6
+ import { invariant } from "@dxos/invariant";
7
+ import { useQuery } from "@dxos/react-client/echo";
8
+ import { Layout } from "@dxos/react-ui";
9
+ import { useAttention } from "@dxos/react-ui-attention";
10
+ import { Board } from "@dxos/react-ui-board";
11
+ import { ObjectPicker } from "@dxos/react-ui-form";
12
+ import { isNonNullable } from "@dxos/util";
13
+ var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-board/src/components/BoardContainer.tsx";
14
+ var DEFAULT_POSITION = {
15
+ x: 0,
16
+ y: 0
17
+ };
18
+ var BoardContainer = ({ role, subject: board }) => {
19
+ const controller = useRef(null);
20
+ const [boardItems] = useObject(board, "items");
21
+ const items = useObjects(boardItems ?? []);
22
+ const addTriggerRef = useRef(null);
23
+ const [pickerState, setPickerState] = useState(null);
24
+ const attendableId = Obj.getDXN(board).toString();
25
+ const { hasAttention } = useAttention(attendableId);
26
+ const db = Obj.getDatabase(board);
27
+ const objects = useQuery(db, Filter.everything());
28
+ const options = useMemo(() => objects.filter((obj) => obj.id !== board.id).map((obj) => {
29
+ const label = Obj.getLabel(obj);
30
+ if (label) {
31
+ return {
32
+ id: obj.id,
33
+ label,
34
+ hue: "neutral"
35
+ };
36
+ }
37
+ }).filter(isNonNullable).sort(({ label: a }, { label: b }) => a.toLocaleLowerCase().localeCompare(b.toLocaleLowerCase())), [
38
+ objects
39
+ ]);
40
+ const handleAdd = useCallback(async (anchor, position = DEFAULT_POSITION) => {
41
+ const db2 = Obj.getDatabase(board);
42
+ invariant(db2, void 0, {
43
+ F: __dxlog_file,
44
+ L: 63,
45
+ S: void 0,
46
+ A: [
47
+ "db",
48
+ ""
49
+ ]
50
+ });
51
+ addTriggerRef.current = anchor;
52
+ setPickerState({
53
+ position
54
+ });
55
+ }, [
56
+ board
57
+ ]);
58
+ const handleDelete = useCallback((id) => {
59
+ const idx = board.items.findIndex((ref) => ref.dxn.asEchoDXN()?.echoId === id);
60
+ Obj.change(board, (b) => {
61
+ if (idx !== -1) {
62
+ b.items.splice(idx, 1);
63
+ }
64
+ delete b.layout.cells[id];
65
+ });
66
+ }, [
67
+ board
68
+ ]);
69
+ const handleMove = useCallback((id, position) => {
70
+ const layout = board.layout.cells[id];
71
+ Obj.change(board, (b) => {
72
+ b.layout.cells[id] = {
73
+ ...layout,
74
+ ...position
75
+ };
76
+ });
77
+ }, [
78
+ board
79
+ ]);
80
+ const handleSelect = useCallback((id) => {
81
+ if (!pickerState) {
82
+ return;
83
+ }
84
+ const selectedObject = objects.find((obj) => obj.id === id);
85
+ if (!Obj.isObject(selectedObject)) {
86
+ return;
87
+ }
88
+ Obj.change(board, (b) => {
89
+ b.items.push(Ref.make(selectedObject));
90
+ b.layout.cells[selectedObject.id.toString()] = pickerState.position;
91
+ });
92
+ setPickerState(null);
93
+ }, [
94
+ pickerState,
95
+ objects,
96
+ board
97
+ ]);
98
+ return /* @__PURE__ */ React.createElement(Board.Root, {
99
+ ref: controller,
100
+ layout: board.layout,
101
+ onAdd: handleAdd,
102
+ onDelete: handleDelete,
103
+ onMove: handleMove
104
+ }, /* @__PURE__ */ React.createElement(ObjectPicker.Root, {
105
+ open: !!pickerState,
106
+ onOpenChange: (nextOpen) => {
107
+ setPickerState(nextOpen ? {
108
+ position: DEFAULT_POSITION
109
+ } : null);
110
+ }
111
+ }, /* @__PURE__ */ React.createElement(Layout.Main, {
112
+ role,
113
+ toolbar: true
114
+ }, /* @__PURE__ */ React.createElement(Board.Toolbar, {
115
+ disabled: !hasAttention
116
+ }), /* @__PURE__ */ React.createElement(Board.Container, null, /* @__PURE__ */ React.createElement(Board.Viewport, {
117
+ classNames: "border-none"
118
+ }, /* @__PURE__ */ React.createElement(Board.Backdrop, null), /* @__PURE__ */ React.createElement(Board.Content, null, items?.map((item, index) => /* @__PURE__ */ React.createElement(Board.Cell, {
119
+ item,
120
+ key: index,
121
+ layout: board.layout?.cells[item.id] ?? {
122
+ x: 0,
123
+ y: 0
124
+ }
125
+ }, /* @__PURE__ */ React.createElement(Surface.Surface, {
126
+ role: "card--content",
127
+ data: {
128
+ subject: item
129
+ },
130
+ limit: 1
131
+ }))))))), /* @__PURE__ */ React.createElement(ObjectPicker.Content, {
132
+ options,
133
+ onSelect: handleSelect,
134
+ classNames: "popover-card-width"
135
+ }), /* @__PURE__ */ React.createElement(ObjectPicker.VirtualTrigger, {
136
+ virtualRef: addTriggerRef
137
+ })));
138
+ };
139
+
140
+ // src/meta.ts
141
+ import { trim } from "@dxos/util";
142
+ var meta = {
143
+ id: "dxos.org/plugin/board",
144
+ name: "Board",
145
+ description: trim`
146
+ Infinite canvas workspace that combines sticky notes, media, and whiteboarding tools.
147
+ Arrange and connect ideas freely in a visual space perfect for brainstorming and creative collaboration.
148
+ `,
149
+ icon: "ph--squares-four--regular",
150
+ iconHue: "green",
151
+ source: "https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-board",
152
+ screenshots: []
153
+ };
154
+
155
+ export {
156
+ BoardContainer,
157
+ meta
158
+ };
159
+ //# sourceMappingURL=chunk-DCLJ4HOC.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/BoardContainer.tsx", "../../../src/meta.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React, { useCallback, useMemo, useRef, useState } from 'react';\n\nimport { Surface } from '@dxos/app-framework/ui';\nimport { type SurfaceComponentProps } from '@dxos/app-toolkit/ui';\nimport { Filter, Obj, Ref } from '@dxos/echo';\nimport { useObject, useObjects } from '@dxos/echo-react';\nimport { invariant } from '@dxos/invariant';\nimport { useQuery } from '@dxos/react-client/echo';\nimport { Layout } from '@dxos/react-ui';\nimport { useAttention } from '@dxos/react-ui-attention';\nimport { Board, type BoardController, type BoardRootProps, type Position } from '@dxos/react-ui-board';\nimport { ObjectPicker, type ObjectPickerContentProps } from '@dxos/react-ui-form';\nimport { isNonNullable } from '@dxos/util';\n\nimport { type Board as BoardType } from '../types';\n\nconst DEFAULT_POSITION = { x: 0, y: 0 } satisfies Position;\n\ntype PickerState = {\n position: Position;\n};\n\nexport type BoardContainerProps = SurfaceComponentProps<BoardType.Board>;\n\nexport const BoardContainer = ({ role, subject: board }: BoardContainerProps) => {\n const controller = useRef<BoardController>(null);\n const [boardItems] = useObject(board, 'items');\n const items = useObjects(boardItems ?? []);\n const addTriggerRef = useRef<HTMLButtonElement | null>(null);\n const [pickerState, setPickerState] = useState<PickerState | null>(null);\n const attendableId = Obj.getDXN(board).toString();\n const { hasAttention } = useAttention(attendableId);\n\n const db = Obj.getDatabase(board);\n // TODO(burdon): Use search.\n const objects = useQuery(db, Filter.everything());\n const options = useMemo<ObjectPickerContentProps['options']>(\n () =>\n objects\n .filter((obj) => obj.id !== board.id)\n .map((obj) => {\n const label = Obj.getLabel(obj);\n if (label) {\n return {\n id: obj.id,\n label,\n hue: 'neutral' as const,\n };\n }\n })\n .filter(isNonNullable)\n .sort(({ label: a }, { label: b }) => a.toLocaleLowerCase().localeCompare(b.toLocaleLowerCase())),\n [objects],\n );\n\n const handleAdd = useCallback<NonNullable<BoardRootProps['onAdd']>>(\n async (anchor, position = DEFAULT_POSITION) => {\n const db = Obj.getDatabase(board);\n invariant(db);\n addTriggerRef.current = anchor;\n setPickerState({\n position,\n });\n },\n [board],\n );\n\n // TODO(burdon): Use intents so can be undone.\n const handleDelete = useCallback<NonNullable<BoardRootProps['onDelete']>>(\n (id) => {\n // TODO(burdon): Impl. DXN.equals and pass in DXN from `id`.\n const idx = board.items.findIndex((ref) => ref.dxn.asEchoDXN()?.echoId === id);\n Obj.change(board, (b) => {\n if (idx !== -1) {\n b.items.splice(idx, 1);\n }\n delete b.layout.cells[id];\n });\n },\n [board],\n );\n\n const handleMove = useCallback<NonNullable<BoardRootProps['onMove']>>(\n (id, position) => {\n const layout = board.layout.cells[id];\n Obj.change(board, (b) => {\n b.layout.cells[id] = { ...layout, ...position };\n });\n },\n [board],\n );\n\n const handleSelect = useCallback<NonNullable<ObjectPickerContentProps['onSelect']>>(\n (id) => {\n if (!pickerState) {\n return;\n }\n\n // Find the selected object by id from the space.\n const selectedObject = objects.find((obj) => obj.id === id);\n if (!Obj.isObject(selectedObject)) {\n return;\n }\n\n // Create a reference to the selected object and add it to the board.\n Obj.change(board, (b) => {\n b.items.push(Ref.make(selectedObject));\n\n // Set the layout position for the new item.\n b.layout.cells[selectedObject.id.toString()] = pickerState.position;\n });\n\n // Close the picker.\n setPickerState(null);\n },\n [pickerState, objects, board],\n );\n\n return (\n <Board.Root ref={controller} layout={board.layout} onAdd={handleAdd} onDelete={handleDelete} onMove={handleMove}>\n <ObjectPicker.Root\n open={!!pickerState}\n onOpenChange={(nextOpen: boolean) => {\n setPickerState(nextOpen ? { position: DEFAULT_POSITION } : null);\n }}\n >\n <Layout.Main role={role} toolbar>\n <Board.Toolbar disabled={!hasAttention} />\n <Board.Container>\n <Board.Viewport classNames='border-none'>\n <Board.Backdrop />\n <Board.Content>\n {items?.map((item, index) => (\n <Board.Cell item={item} key={index} layout={board.layout?.cells[item.id] ?? { x: 0, y: 0 }}>\n <Surface.Surface role='card--content' data={{ subject: item }} limit={1} />\n </Board.Cell>\n ))}\n </Board.Content>\n </Board.Viewport>\n </Board.Container>\n </Layout.Main>\n <ObjectPicker.Content options={options} onSelect={handleSelect} classNames='popover-card-width' />\n <ObjectPicker.VirtualTrigger virtualRef={addTriggerRef} />\n </ObjectPicker.Root>\n </Board.Root>\n );\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const meta: Plugin.Meta = {\n id: 'dxos.org/plugin/board',\n name: 'Board',\n description: trim`\n Infinite canvas workspace that combines sticky notes, media, and whiteboarding tools.\n Arrange and connect ideas freely in a visual space perfect for brainstorming and creative collaboration.\n `,\n icon: 'ph--squares-four--regular',\n iconHue: 'green',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-board',\n screenshots: [],\n};\n"],
5
+ "mappings": ";AAIA,OAAOA,SAASC,aAAaC,SAASC,QAAQC,gBAAgB;AAE9D,SAASC,eAAe;AAExB,SAASC,QAAQC,KAAKC,WAAW;AACjC,SAASC,WAAWC,kBAAkB;AACtC,SAASC,iBAAiB;AAC1B,SAASC,gBAAgB;AACzB,SAASC,cAAc;AACvB,SAASC,oBAAoB;AAC7B,SAASC,aAAuE;AAChF,SAASC,oBAAmD;AAC5D,SAASC,qBAAqB;;AAI9B,IAAMC,mBAAmB;EAAEC,GAAG;EAAGC,GAAG;AAAE;AAQ/B,IAAMC,iBAAiB,CAAC,EAAEC,MAAMC,SAASC,MAAK,MAAuB;AAC1E,Q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L,OAAOoE,MAAI;IAAC3D;IAAY4D,SAAAA;KACvB,sBAAA,cAACnE,MAAMoE,SAAO;IAACC,UAAU,CAAClD;MAC1B,sBAAA,cAACnB,MAAMsE,WAAS,MACd,sBAAA,cAACtE,MAAMuE,UAAQ;IAACC,YAAW;KACzB,sBAAA,cAACxE,MAAMyE,UAAQ,IAAA,GACf,sBAAA,cAACzE,MAAM0E,SAAO,MACX9D,OAAOgB,IAAI,CAAC+C,MAAMC,UACjB,sBAAA,cAAC5E,MAAM6E,MAAI;IAACF;IAAYG,KAAKF;IAAO1B,QAAQzC,MAAMyC,QAAQC,MAAMwB,KAAKhD,EAAE,KAAK;MAAEvB,GAAG;MAAGC,GAAG;IAAE;KACvF,sBAAA,cAACf,QAAQA,SAAO;IAACiB,MAAK;IAAgBwE,MAAM;MAAEvE,SAASmE;IAAK;IAAGK,OAAO;YAOlF,sBAAA,cAAC/E,aAAayE,SAAO;IAAClD;IAAkByD,UAAU5B;IAAcmB,YAAW;MAC3E,sBAAA,cAACvE,aAAaiF,gBAAc;IAACC,YAAYtE;;AAIjD;;;ACjJA,SAASuE,YAAY;AAEd,IAAMC,OAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaC;;;;EAIbC,MAAM;EACNC,SAAS;EACTC,QAAQ;EACRC,aAAa,CAAA;AACf;",
6
+ "names": ["React", "useCallback", "useMemo", "useRef", "useState", "Surface", "Filter", "Obj", "Ref", "useObject", "useObjects", "invariant", "useQuery", "Layout", "useAttention", "Board", "ObjectPicker", "isNonNullable", "DEFAULT_POSITION", "x", "y", "BoardContainer", "role", "subject", "board", "controller", "boardItems", "items", "addTriggerRef", "pickerState", "setPickerState", "attendableId", "getDXN", "toString", "hasAttention", "db", "getDatabase", "objects", "everything", "options", "filter", "obj", "id", "map", "label", "getLabel", "hue", "sort", "a", "b", "toLocaleLowerCase", "localeCompare", "handleAdd", "anchor", "position", "current", "handleDelete", "idx", "findIndex", "ref", "dxn", "asEchoDXN", "echoId", "change", "splice", "layout", "cells", "handleMove", "handleSelect", "selectedObject", "find", "isObject", "push", "make", "Root", "onAdd", "onDelete", "onMove", "open", "onOpenChange", "nextOpen", "Main", "toolbar", "Toolbar", "disabled", "Container", "Viewport", "classNames", "Backdrop", "Content", "item", "index", "Cell", "key", "data", "limit", "onSelect", "VirtualTrigger", "virtualRef", "trim", "meta", "id", "name", "description", "trim", "icon", "iconHue", "source", "screenshots"]
7
+ }
@@ -0,0 +1,69 @@
1
+ import {
2
+ BoardContainer,
3
+ meta
4
+ } from "./chunk-DCLJ4HOC.mjs";
5
+ import {
6
+ Board_exports
7
+ } from "./chunk-7VKDDGS7.mjs";
8
+
9
+ // src/BoardPlugin.tsx
10
+ import * as Effect from "effect/Effect";
11
+ import { Plugin } from "@dxos/app-framework";
12
+ import { AppPlugin } from "@dxos/app-toolkit";
13
+ import { translations as boardTranslations } from "@dxos/react-ui-board";
14
+
15
+ // src/capabilities/react-surface/index.ts
16
+ import { Capability } from "@dxos/app-framework";
17
+ var ReactSurface = Capability.lazy("ReactSurface", () => import("./react-surface-3ECZMYLQ.mjs"));
18
+
19
+ // src/translations.ts
20
+ var translations = [
21
+ {
22
+ "en-US": {
23
+ [Board_exports.Board.typename]: {
24
+ "typename label": "Board",
25
+ "typename label_zero": "Boards",
26
+ "typename label_one": "Board",
27
+ "typename label_other": "Boards",
28
+ "object name placeholder": "New board",
29
+ "rename object label": "Rename board",
30
+ "delete object label": "Delete board",
31
+ "object deleted label": "Board deleted"
32
+ },
33
+ [meta.id]: {
34
+ "plugin name": "Board"
35
+ }
36
+ }
37
+ }
38
+ ];
39
+
40
+ // src/BoardPlugin.tsx
41
+ var BoardPlugin = Plugin.define(meta).pipe(AppPlugin.addMetadataModule({
42
+ metadata: {
43
+ id: Board_exports.Board.typename,
44
+ metadata: {
45
+ icon: "ph--squares-four--regular",
46
+ iconHue: "green",
47
+ createObject: (props) => Effect.sync(() => Board_exports.makeBoard(props)),
48
+ addToCollectionOnCreate: true
49
+ }
50
+ }
51
+ }), AppPlugin.addSchemaModule({
52
+ schema: [
53
+ Board_exports.Board
54
+ ]
55
+ }), AppPlugin.addSurfaceModule({
56
+ activate: ReactSurface
57
+ }), AppPlugin.addTranslationsModule({
58
+ translations: [
59
+ ...translations,
60
+ ...boardTranslations
61
+ ]
62
+ }), Plugin.make);
63
+ export {
64
+ Board_exports as Board,
65
+ BoardContainer,
66
+ BoardPlugin,
67
+ meta
68
+ };
69
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/BoardPlugin.tsx", "../../../src/capabilities/react-surface/index.ts", "../../../src/translations.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Plugin } from '@dxos/app-framework';\nimport { AppPlugin } from '@dxos/app-toolkit';\nimport { type CreateObject } from '@dxos/plugin-space/types';\nimport { translations as boardTranslations } from '@dxos/react-ui-board';\n\nimport { ReactSurface } from './capabilities';\nimport { meta } from './meta';\nimport { translations } from './translations';\nimport { Board } from './types';\n\nexport const BoardPlugin = Plugin.define(meta).pipe(\n AppPlugin.addMetadataModule({\n metadata: {\n id: Board.Board.typename,\n metadata: {\n icon: 'ph--squares-four--regular',\n iconHue: 'green',\n createObject: ((props) => Effect.sync(() => Board.makeBoard(props))) satisfies CreateObject,\n addToCollectionOnCreate: true,\n },\n },\n }),\n AppPlugin.addSchemaModule({ schema: [Board.Board] }),\n AppPlugin.addSurfaceModule({ activate: ReactSurface }),\n AppPlugin.addTranslationsModule({ translations: [...translations, ...boardTranslations] }),\n Plugin.make,\n);\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\n\nexport const ReactSurface = Capability.lazy('ReactSurface', () => import('./react-surface'));\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\n\nimport { meta } from './meta';\nimport { Board } from './types';\n\nexport const translations = [\n {\n 'en-US': {\n [Board.Board.typename]: {\n 'typename label': 'Board',\n 'typename label_zero': 'Boards',\n 'typename label_one': 'Board',\n 'typename label_other': 'Boards',\n 'object name placeholder': 'New board',\n 'rename object label': 'Rename board',\n 'delete object label': 'Delete board',\n 'object deleted label': 'Board deleted',\n },\n [meta.id]: {\n 'plugin name': 'Board',\n },\n },\n },\n] as const satisfies Resource[];\n"],
5
+ "mappings": ";;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,cAAc;AACvB,SAASC,iBAAiB;AAE1B,SAASC,gBAAgBC,yBAAyB;;;ACLlD,SAASC,kBAAkB;AAEpB,IAAMC,eAAeC,WAAWC,KAAK,gBAAgB,MAAM,OAAO,8BAAA,CAAA;;;ACGlE,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACC,cAAMA,MAAMC,QAAQ,GAAG;QACtB,kBAAkB;QAClB,uBAAuB;QACvB,sBAAsB;QACtB,wBAAwB;QACxB,2BAA2B;QAC3B,uBAAuB;QACvB,uBAAuB;QACvB,wBAAwB;MAC1B;MACA,CAACC,KAAKC,EAAE,GAAG;QACT,eAAe;MACjB;IACF;EACF;;;;AFVK,IAAMC,cAAcC,OAAOC,OAAOC,IAAAA,EAAMC,KAC7CC,UAAUC,kBAAkB;EAC1BC,UAAU;IACRC,IAAIC,cAAMA,MAAMC;IAChBH,UAAU;MACRI,MAAM;MACNC,SAAS;MACTC,cAAe,CAACC,UAAiBC,YAAK,MAAMN,cAAMO,UAAUF,KAAAA,CAAAA;MAC5DG,yBAAyB;IAC3B;EACF;AACF,CAAA,GACAZ,UAAUa,gBAAgB;EAAEC,QAAQ;IAACV,cAAMA;;AAAO,CAAA,GAClDJ,UAAUe,iBAAiB;EAAEC,UAAUC;AAAa,CAAA,GACpDjB,UAAUkB,sBAAsB;EAAEC,cAAc;OAAIA;OAAiBC;;AAAmB,CAAA,GACxFxB,OAAOyB,IAAI;",
6
+ "names": ["Effect", "Plugin", "AppPlugin", "translations", "boardTranslations", "Capability", "ReactSurface", "Capability", "lazy", "translations", "Board", "typename", "meta", "id", "BoardPlugin", "Plugin", "define", "meta", "pipe", "AppPlugin", "addMetadataModule", "metadata", "id", "Board", "typename", "icon", "iconHue", "createObject", "props", "sync", "makeBoard", "addToCollectionOnCreate", "addSchemaModule", "schema", "addSurfaceModule", "activate", "ReactSurface", "addTranslationsModule", "translations", "boardTranslations", "make"]
7
+ }
@@ -0,0 +1 @@
1
+ {"inputs":{"src/components/BoardContainer.tsx":{"bytes":18254,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo-react","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/react-ui-board","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/components/index.ts":{"bytes":485,"imports":[{"path":"src/components/BoardContainer.tsx","kind":"import-statement","original":"./BoardContainer"}],"format":"esm"},"src/meta.ts":{"bytes":1963,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/types/Board.ts":{"bytes":3408,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo/internal","kind":"import-statement","external":true},{"path":"@dxos/react-ui-board","kind":"import-statement","external":true}],"format":"esm"},"src/types/index.ts":{"bytes":508,"imports":[{"path":"src/types/Board.ts","kind":"import-statement","original":"./Board"}],"format":"esm"},"src/capabilities/react-surface/react-surface.tsx":{"bytes":3371,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"src/components/index.ts","kind":"import-statement","original":"../../components"},{"path":"src/meta.ts","kind":"import-statement","original":"../../meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/capabilities/react-surface/index.ts":{"bytes":909,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/react-surface/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"src/capabilities/index.ts":{"bytes":486,"imports":[{"path":"src/capabilities/react-surface/index.ts","kind":"import-statement","original":"./react-surface"}],"format":"esm"},"src/translations.ts":{"bytes":2463,"imports":[{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/BoardPlugin.tsx":{"bytes":4168,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/react-ui-board","kind":"import-statement","external":true},{"path":"src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/index.ts":{"bytes":722,"imports":[{"path":"src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"},{"path":"src/BoardPlugin.tsx","kind":"import-statement","original":"./BoardPlugin"}],"format":"esm"}},"outputs":{"dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3560},"dist/lib/browser/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-DCLJ4HOC.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-7VKDDGS7.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/react-ui-board","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/browser/react-surface-3ECZMYLQ.mjs","kind":"dynamic-import"}],"exports":["Board","BoardContainer","BoardPlugin","meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0},"src/BoardPlugin.tsx":{"bytesInOutput":796},"src/capabilities/react-surface/index.ts":{"bytesInOutput":148},"src/capabilities/index.ts":{"bytesInOutput":0},"src/translations.ts":{"bytesInOutput":507}},"bytes":1801},"dist/lib/browser/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/browser/types/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-7VKDDGS7.mjs","kind":"import-statement"}],"exports":["Board"],"entryPoint":"src/types/index.ts","inputs":{},"bytes":129},"dist/lib/browser/react-surface-3ECZMYLQ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1656},"dist/lib/browser/react-surface-3ECZMYLQ.mjs":{"imports":[{"path":"dist/lib/browser/chunk-DCLJ4HOC.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-7VKDDGS7.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/react-surface/react-surface.tsx","inputs":{"src/capabilities/react-surface/react-surface.tsx":{"bytesInOutput":647}},"bytes":920},"dist/lib/browser/chunk-DCLJ4HOC.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":10435},"dist/lib/browser/chunk-DCLJ4HOC.mjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo-react","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/react-ui-board","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["BoardContainer","meta"],"inputs":{"src/components/BoardContainer.tsx":{"bytesInOutput":4311},"src/components/index.ts":{"bytesInOutput":0},"src/meta.ts":{"bytesInOutput":481}},"bytes":4927},"dist/lib/browser/chunk-7VKDDGS7.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1865},"dist/lib/browser/chunk-7VKDDGS7.mjs":{"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo/internal","kind":"import-statement","external":true},{"path":"@dxos/react-ui-board","kind":"import-statement","external":true}],"exports":["Board_exports"],"inputs":{"src/types/Board.ts":{"bytesInOutput":760},"src/types/index.ts":{"bytesInOutput":0}},"bytes":1023}}}
@@ -0,0 +1,32 @@
1
+ import {
2
+ BoardContainer,
3
+ meta
4
+ } from "./chunk-DCLJ4HOC.mjs";
5
+ import {
6
+ Board_exports
7
+ } from "./chunk-7VKDDGS7.mjs";
8
+
9
+ // src/capabilities/react-surface/react-surface.tsx
10
+ import * as Effect from "effect/Effect";
11
+ import React from "react";
12
+ import { Capabilities, Capability } from "@dxos/app-framework";
13
+ import { Surface } from "@dxos/app-framework/ui";
14
+ import { Obj } from "@dxos/echo";
15
+ var react_surface_default = Capability.makeModule(() => Effect.succeed(Capability.contributes(Capabilities.ReactSurface, [
16
+ Surface.create({
17
+ id: meta.id,
18
+ role: [
19
+ "article",
20
+ "section"
21
+ ],
22
+ filter: (data) => Obj.instanceOf(Board_exports.Board, data.subject),
23
+ component: ({ role, data }) => /* @__PURE__ */ React.createElement(BoardContainer, {
24
+ role,
25
+ subject: data.subject
26
+ })
27
+ })
28
+ ])));
29
+ export {
30
+ react_surface_default as default
31
+ };
32
+ //# sourceMappingURL=react-surface-3ECZMYLQ.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/capabilities/react-surface/react-surface.tsx"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport React from 'react';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { Surface } from '@dxos/app-framework/ui';\nimport { Obj } from '@dxos/echo';\n\nimport { BoardContainer } from '../../components';\nimport { meta } from '../../meta';\nimport { Board } from '../../types';\n\nexport default Capability.makeModule(() =>\n Effect.succeed(\n Capability.contributes(Capabilities.ReactSurface, [\n Surface.create({\n id: meta.id,\n role: ['article', 'section'],\n filter: (data): data is { subject: Board.Board } => Obj.instanceOf(Board.Board, data.subject),\n component: ({ role, data }) => <BoardContainer role={role} subject={data.subject} />,\n }),\n ]),\n ),\n);\n"],
5
+ "mappings": ";;;;;;;;;AAIA,YAAYA,YAAY;AACxB,OAAOC,WAAW;AAElB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,eAAe;AACxB,SAASC,WAAW;AAMpB,IAAA,wBAAeC,WAAWC,WAAW,MAC5BC,eACLF,WAAWG,YAAYC,aAAaC,cAAc;EAChDC,QAAQC,OAAO;IACbC,IAAIC,KAAKD;IACTE,MAAM;MAAC;MAAW;;IAClBC,QAAQ,CAACC,SAA2CC,IAAIC,WAAWC,cAAMA,OAAOH,KAAKI,OAAO;IAC5FC,WAAW,CAAC,EAAEP,MAAME,KAAI,MAAO,sBAAA,cAACM,gBAAAA;MAAeR;MAAYM,SAASJ,KAAKI;;EAC3E,CAAA;CACD,CAAA,CAAA;",
6
+ "names": ["Effect", "React", "Capabilities", "Capability", "Surface", "Obj", "Capability", "makeModule", "succeed", "contributes", "Capabilities", "ReactSurface", "Surface", "create", "id", "meta", "role", "filter", "data", "Obj", "instanceOf", "Board", "subject", "component", "BoardContainer"]
7
+ }
@@ -0,0 +1,7 @@
1
+ import {
2
+ Board_exports
3
+ } from "../chunk-7VKDDGS7.mjs";
4
+ export {
5
+ Board_exports as Board
6
+ };
7
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,161 @@
1
+ import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
+
3
+ // src/components/BoardContainer.tsx
4
+ import React, { useCallback, useMemo, useRef, useState } from "react";
5
+ import { Surface } from "@dxos/app-framework/ui";
6
+ import { Filter, Obj, Ref } from "@dxos/echo";
7
+ import { useObject, useObjects } from "@dxos/echo-react";
8
+ import { invariant } from "@dxos/invariant";
9
+ import { useQuery } from "@dxos/react-client/echo";
10
+ import { Layout } from "@dxos/react-ui";
11
+ import { useAttention } from "@dxos/react-ui-attention";
12
+ import { Board } from "@dxos/react-ui-board";
13
+ import { ObjectPicker } from "@dxos/react-ui-form";
14
+ import { isNonNullable } from "@dxos/util";
15
+ var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-board/src/components/BoardContainer.tsx";
16
+ var DEFAULT_POSITION = {
17
+ x: 0,
18
+ y: 0
19
+ };
20
+ var BoardContainer = ({ role, subject: board }) => {
21
+ const controller = useRef(null);
22
+ const [boardItems] = useObject(board, "items");
23
+ const items = useObjects(boardItems ?? []);
24
+ const addTriggerRef = useRef(null);
25
+ const [pickerState, setPickerState] = useState(null);
26
+ const attendableId = Obj.getDXN(board).toString();
27
+ const { hasAttention } = useAttention(attendableId);
28
+ const db = Obj.getDatabase(board);
29
+ const objects = useQuery(db, Filter.everything());
30
+ const options = useMemo(() => objects.filter((obj) => obj.id !== board.id).map((obj) => {
31
+ const label = Obj.getLabel(obj);
32
+ if (label) {
33
+ return {
34
+ id: obj.id,
35
+ label,
36
+ hue: "neutral"
37
+ };
38
+ }
39
+ }).filter(isNonNullable).sort(({ label: a }, { label: b }) => a.toLocaleLowerCase().localeCompare(b.toLocaleLowerCase())), [
40
+ objects
41
+ ]);
42
+ const handleAdd = useCallback(async (anchor, position = DEFAULT_POSITION) => {
43
+ const db2 = Obj.getDatabase(board);
44
+ invariant(db2, void 0, {
45
+ F: __dxlog_file,
46
+ L: 63,
47
+ S: void 0,
48
+ A: [
49
+ "db",
50
+ ""
51
+ ]
52
+ });
53
+ addTriggerRef.current = anchor;
54
+ setPickerState({
55
+ position
56
+ });
57
+ }, [
58
+ board
59
+ ]);
60
+ const handleDelete = useCallback((id) => {
61
+ const idx = board.items.findIndex((ref) => ref.dxn.asEchoDXN()?.echoId === id);
62
+ Obj.change(board, (b) => {
63
+ if (idx !== -1) {
64
+ b.items.splice(idx, 1);
65
+ }
66
+ delete b.layout.cells[id];
67
+ });
68
+ }, [
69
+ board
70
+ ]);
71
+ const handleMove = useCallback((id, position) => {
72
+ const layout = board.layout.cells[id];
73
+ Obj.change(board, (b) => {
74
+ b.layout.cells[id] = {
75
+ ...layout,
76
+ ...position
77
+ };
78
+ });
79
+ }, [
80
+ board
81
+ ]);
82
+ const handleSelect = useCallback((id) => {
83
+ if (!pickerState) {
84
+ return;
85
+ }
86
+ const selectedObject = objects.find((obj) => obj.id === id);
87
+ if (!Obj.isObject(selectedObject)) {
88
+ return;
89
+ }
90
+ Obj.change(board, (b) => {
91
+ b.items.push(Ref.make(selectedObject));
92
+ b.layout.cells[selectedObject.id.toString()] = pickerState.position;
93
+ });
94
+ setPickerState(null);
95
+ }, [
96
+ pickerState,
97
+ objects,
98
+ board
99
+ ]);
100
+ return /* @__PURE__ */ React.createElement(Board.Root, {
101
+ ref: controller,
102
+ layout: board.layout,
103
+ onAdd: handleAdd,
104
+ onDelete: handleDelete,
105
+ onMove: handleMove
106
+ }, /* @__PURE__ */ React.createElement(ObjectPicker.Root, {
107
+ open: !!pickerState,
108
+ onOpenChange: (nextOpen) => {
109
+ setPickerState(nextOpen ? {
110
+ position: DEFAULT_POSITION
111
+ } : null);
112
+ }
113
+ }, /* @__PURE__ */ React.createElement(Layout.Main, {
114
+ role,
115
+ toolbar: true
116
+ }, /* @__PURE__ */ React.createElement(Board.Toolbar, {
117
+ disabled: !hasAttention
118
+ }), /* @__PURE__ */ React.createElement(Board.Container, null, /* @__PURE__ */ React.createElement(Board.Viewport, {
119
+ classNames: "border-none"
120
+ }, /* @__PURE__ */ React.createElement(Board.Backdrop, null), /* @__PURE__ */ React.createElement(Board.Content, null, items?.map((item, index) => /* @__PURE__ */ React.createElement(Board.Cell, {
121
+ item,
122
+ key: index,
123
+ layout: board.layout?.cells[item.id] ?? {
124
+ x: 0,
125
+ y: 0
126
+ }
127
+ }, /* @__PURE__ */ React.createElement(Surface.Surface, {
128
+ role: "card--content",
129
+ data: {
130
+ subject: item
131
+ },
132
+ limit: 1
133
+ }))))))), /* @__PURE__ */ React.createElement(ObjectPicker.Content, {
134
+ options,
135
+ onSelect: handleSelect,
136
+ classNames: "popover-card-width"
137
+ }), /* @__PURE__ */ React.createElement(ObjectPicker.VirtualTrigger, {
138
+ virtualRef: addTriggerRef
139
+ })));
140
+ };
141
+
142
+ // src/meta.ts
143
+ import { trim } from "@dxos/util";
144
+ var meta = {
145
+ id: "dxos.org/plugin/board",
146
+ name: "Board",
147
+ description: trim`
148
+ Infinite canvas workspace that combines sticky notes, media, and whiteboarding tools.
149
+ Arrange and connect ideas freely in a visual space perfect for brainstorming and creative collaboration.
150
+ `,
151
+ icon: "ph--squares-four--regular",
152
+ iconHue: "green",
153
+ source: "https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-board",
154
+ screenshots: []
155
+ };
156
+
157
+ export {
158
+ BoardContainer,
159
+ meta
160
+ };
161
+ //# sourceMappingURL=chunk-HICZFU5T.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/BoardContainer.tsx", "../../../src/meta.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React, { useCallback, useMemo, useRef, useState } from 'react';\n\nimport { Surface } from '@dxos/app-framework/ui';\nimport { type SurfaceComponentProps } from '@dxos/app-toolkit/ui';\nimport { Filter, Obj, Ref } from '@dxos/echo';\nimport { useObject, useObjects } from '@dxos/echo-react';\nimport { invariant } from '@dxos/invariant';\nimport { useQuery } from '@dxos/react-client/echo';\nimport { Layout } from '@dxos/react-ui';\nimport { useAttention } from '@dxos/react-ui-attention';\nimport { Board, type BoardController, type BoardRootProps, type Position } from '@dxos/react-ui-board';\nimport { ObjectPicker, type ObjectPickerContentProps } from '@dxos/react-ui-form';\nimport { isNonNullable } from '@dxos/util';\n\nimport { type Board as BoardType } from '../types';\n\nconst DEFAULT_POSITION = { x: 0, y: 0 } satisfies Position;\n\ntype PickerState = {\n position: Position;\n};\n\nexport type BoardContainerProps = SurfaceComponentProps<BoardType.Board>;\n\nexport const BoardContainer = ({ role, subject: board }: BoardContainerProps) => {\n const controller = useRef<BoardController>(null);\n const [boardItems] = useObject(board, 'items');\n const items = useObjects(boardItems ?? []);\n const addTriggerRef = useRef<HTMLButtonElement | null>(null);\n const [pickerState, setPickerState] = useState<PickerState | null>(null);\n const attendableId = Obj.getDXN(board).toString();\n const { hasAttention } = useAttention(attendableId);\n\n const db = Obj.getDatabase(board);\n // TODO(burdon): Use search.\n const objects = useQuery(db, Filter.everything());\n const options = useMemo<ObjectPickerContentProps['options']>(\n () =>\n objects\n .filter((obj) => obj.id !== board.id)\n .map((obj) => {\n const label = Obj.getLabel(obj);\n if (label) {\n return {\n id: obj.id,\n label,\n hue: 'neutral' as const,\n };\n }\n })\n .filter(isNonNullable)\n .sort(({ label: a }, { label: b }) => a.toLocaleLowerCase().localeCompare(b.toLocaleLowerCase())),\n [objects],\n );\n\n const handleAdd = useCallback<NonNullable<BoardRootProps['onAdd']>>(\n async (anchor, position = DEFAULT_POSITION) => {\n const db = Obj.getDatabase(board);\n invariant(db);\n addTriggerRef.current = anchor;\n setPickerState({\n position,\n });\n },\n [board],\n );\n\n // TODO(burdon): Use intents so can be undone.\n const handleDelete = useCallback<NonNullable<BoardRootProps['onDelete']>>(\n (id) => {\n // TODO(burdon): Impl. DXN.equals and pass in DXN from `id`.\n const idx = board.items.findIndex((ref) => ref.dxn.asEchoDXN()?.echoId === id);\n Obj.change(board, (b) => {\n if (idx !== -1) {\n b.items.splice(idx, 1);\n }\n delete b.layout.cells[id];\n });\n },\n [board],\n );\n\n const handleMove = useCallback<NonNullable<BoardRootProps['onMove']>>(\n (id, position) => {\n const layout = board.layout.cells[id];\n Obj.change(board, (b) => {\n b.layout.cells[id] = { ...layout, ...position };\n });\n },\n [board],\n );\n\n const handleSelect = useCallback<NonNullable<ObjectPickerContentProps['onSelect']>>(\n (id) => {\n if (!pickerState) {\n return;\n }\n\n // Find the selected object by id from the space.\n const selectedObject = objects.find((obj) => obj.id === id);\n if (!Obj.isObject(selectedObject)) {\n return;\n }\n\n // Create a reference to the selected object and add it to the board.\n Obj.change(board, (b) => {\n b.items.push(Ref.make(selectedObject));\n\n // Set the layout position for the new item.\n b.layout.cells[selectedObject.id.toString()] = pickerState.position;\n });\n\n // Close the picker.\n setPickerState(null);\n },\n [pickerState, objects, board],\n );\n\n return (\n <Board.Root ref={controller} layout={board.layout} onAdd={handleAdd} onDelete={handleDelete} onMove={handleMove}>\n <ObjectPicker.Root\n open={!!pickerState}\n onOpenChange={(nextOpen: boolean) => {\n setPickerState(nextOpen ? { position: DEFAULT_POSITION } : null);\n }}\n >\n <Layout.Main role={role} toolbar>\n <Board.Toolbar disabled={!hasAttention} />\n <Board.Container>\n <Board.Viewport classNames='border-none'>\n <Board.Backdrop />\n <Board.Content>\n {items?.map((item, index) => (\n <Board.Cell item={item} key={index} layout={board.layout?.cells[item.id] ?? { x: 0, y: 0 }}>\n <Surface.Surface role='card--content' data={{ subject: item }} limit={1} />\n </Board.Cell>\n ))}\n </Board.Content>\n </Board.Viewport>\n </Board.Container>\n </Layout.Main>\n <ObjectPicker.Content options={options} onSelect={handleSelect} classNames='popover-card-width' />\n <ObjectPicker.VirtualTrigger virtualRef={addTriggerRef} />\n </ObjectPicker.Root>\n </Board.Root>\n );\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const meta: Plugin.Meta = {\n id: 'dxos.org/plugin/board',\n name: 'Board',\n description: trim`\n Infinite canvas workspace that combines sticky notes, media, and whiteboarding tools.\n Arrange and connect ideas freely in a visual space perfect for brainstorming and creative collaboration.\n `,\n icon: 'ph--squares-four--regular',\n iconHue: 'green',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-board',\n screenshots: [],\n};\n"],
5
+ "mappings": ";;;AAIA,OAAOA,SAASC,aAAaC,SAASC,QAAQC,gBAAgB;AAE9D,SAASC,eAAe;AAExB,SAASC,QAAQC,KAAKC,WAAW;AACjC,SAASC,WAAWC,kBAAkB;AACtC,SAASC,iBAAiB;AAC1B,SAASC,gBAAgB;AACzB,SAASC,cAAc;AACvB,SAASC,oBAAoB;AAC7B,SAASC,aAAuE;AAChF,SAASC,oBAAmD;AAC5D,SAASC,qBAAqB;;AAI9B,IAAMC,mBAAmB;EAAEC,GAAG;EAAGC,GAAG;AAAE;AAQ/B,IAAMC,iBAAiB,CAAC,EAAEC,MAAMC,SAASC,MAAK,MAAuB;AAC1E,QAAMC,aAAatB,OAAwB,IAAA;AAC3C,QAAM,CAACuB,UAAAA,IAAcjB,UAAUe,OAAO,OAAA;AACtC,QAAMG,QAAQjB,WAAWgB,cAAc,CAAA,CAAE;AACzC,QAAME,gBAAgBzB,OAAiC,IAAA;AACvD,QAAM,CAAC0B,aAAaC,cAAAA,IAAk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,UAAQ,IAAA,GACf,sBAAA,cAACzE,MAAM0E,SAAO,MACX9D,OAAOgB,IAAI,CAAC+C,MAAMC,UACjB,sBAAA,cAAC5E,MAAM6E,MAAI;IAACF;IAAYG,KAAKF;IAAO1B,QAAQzC,MAAMyC,QAAQC,MAAMwB,KAAKhD,EAAE,KAAK;MAAEvB,GAAG;MAAGC,GAAG;IAAE;KACvF,sBAAA,cAACf,QAAQA,SAAO;IAACiB,MAAK;IAAgBwE,MAAM;MAAEvE,SAASmE;IAAK;IAAGK,OAAO;YAOlF,sBAAA,cAAC/E,aAAayE,SAAO;IAAClD;IAAkByD,UAAU5B;IAAcmB,YAAW;MAC3E,sBAAA,cAACvE,aAAaiF,gBAAc;IAACC,YAAYtE;;AAIjD;;;ACjJA,SAASuE,YAAY;AAEd,IAAMC,OAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaC;;;;EAIbC,MAAM;EACNC,SAAS;EACTC,QAAQ;EACRC,aAAa,CAAA;AACf;",
6
+ "names": ["React", "useCallback", "useMemo", "useRef", "useState", "Surface", "Filter", "Obj", "Ref", "useObject", "useObjects", "invariant", "useQuery", "Layout", "useAttention", "Board", "ObjectPicker", "isNonNullable", "DEFAULT_POSITION", "x", "y", "BoardContainer", "role", "subject", "board", "controller", "boardItems", "items", "addTriggerRef", "pickerState", "setPickerState", "attendableId", "getDXN", "toString", "hasAttention", "db", "getDatabase", "objects", "everything", "options", "filter", "obj", "id", "map", "label", "getLabel", "hue", "sort", "a", "b", "toLocaleLowerCase", "localeCompare", "handleAdd", "anchor", "position", "current", "handleDelete", "idx", "findIndex", "ref", "dxn", "asEchoDXN", "echoId", "change", "splice", "layout", "cells", "handleMove", "handleSelect", "selectedObject", "find", "isObject", "push", "make", "Root", "onAdd", "onDelete", "onMove", "open", "onOpenChange", "nextOpen", "Main", "toolbar", "Toolbar", "disabled", "Container", "Viewport", "classNames", "Backdrop", "Content", "item", "index", "Cell", "key", "data", "limit", "onSelect", "VirtualTrigger", "virtualRef", "trim", "meta", "id", "name", "description", "trim", "icon", "iconHue", "source", "screenshots"]
7
+ }