@xom11/whiteboard 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 xom11
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,64 @@
1
+ # @xom11/whiteboard
2
+
3
+ Excalidraw-based whiteboard component dùng cho HocTotBachKhoa classroom: bút/shape/text/import ảnh + hai stamp tools (hình học JSXGraph, công thức LaTeX KaTeX).
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install @xom11/whiteboard
9
+ # hoặc
10
+ pnpm add @xom11/whiteboard
11
+ yarn add @xom11/whiteboard
12
+ ```
13
+
14
+ Peer deps: `react >=18`, `react-dom >=18`, `next >=14`.
15
+
16
+ ## Usage
17
+
18
+ ```tsx
19
+ import { ExcalidrawWhiteboardView, type ExcalidrawSceneSnapshot } from '@xom11/whiteboard';
20
+
21
+ export function ClassroomBoard() {
22
+ return (
23
+ <ExcalidrawWhiteboardView
24
+ role="teacher"
25
+ roomId="room-123"
26
+ initialScene={null}
27
+ remoteScene={null}
28
+ onSceneChange={(snapshot) => { /* persist + broadcast */ }}
29
+ onFilesChange={(files, newIds) => { /* upload new files */ }}
30
+ />
31
+ );
32
+ }
33
+ ```
34
+
35
+ ## Development
36
+
37
+ ```bash
38
+ npm install
39
+ npm test
40
+ npm run build # tsup → dist/{index.js, index.mjs, index.d.ts}
41
+ npm run dev # tsup watch mode
42
+ ```
43
+
44
+ ## Workflow phát hành phiên bản mới
45
+
46
+ ```bash
47
+ npm version patch # bump package.json + tạo git tag (vX.Y.Z)
48
+ git push --follow-tags
49
+ npm publish # prepublishOnly tự chạy typecheck + build
50
+ ```
51
+
52
+ `prepublishOnly` đảm bảo `dist/` luôn fresh. Consumer chỉ cần `npm install @xom11/whiteboard@latest`.
53
+
54
+ ## Architecture
55
+
56
+ - `src/ExcalidrawWhiteboardView.tsx` — main wrapper, quản lý sync teacher ↔ student, stamp lifecycle.
57
+ - `src/ExcalidrawWithMenus.tsx` — Excalidraw + custom MainMenu/Footer/WelcomeScreen.
58
+ - `src/stamp/` — hai stamp tools (hình học, LaTeX) + helpers (JSXGraph board, KaTeX renderer, serialize/restore).
59
+ - `src/serialize.ts` — pick sync-able subset của Excalidraw appState.
60
+ - `src/types.ts` — re-export Excalidraw types + project types.
61
+
62
+ ## Extracted from
63
+
64
+ `Hoctotbachkhoa/hoctotbachkhoa` (apps/web/components/classroom/excalidrawBoard/) — git history preserved via `git filter-repo`. Repo sau đó transfer từ `Hoctotbachkhoa/whiteboard` sang `xom11/whiteboard` (v0.2.0 trở đi).
@@ -0,0 +1,22 @@
1
+ "use client";
2
+ import { Excalidraw, MainMenu, Footer, WelcomeScreen } from '@excalidraw/excalidraw';
3
+ import { jsxs, jsx } from 'react/jsx-runtime';
4
+
5
+ function ExcalidrawWithMenus(props) {
6
+ const { children, ...rest } = props;
7
+ return /* @__PURE__ */ jsxs(Excalidraw, { ...rest, children: [
8
+ /* @__PURE__ */ jsxs(MainMenu, { children: [
9
+ /* @__PURE__ */ jsx(MainMenu.DefaultItems.LoadScene, {}),
10
+ /* @__PURE__ */ jsx(MainMenu.DefaultItems.SaveAsImage, {}),
11
+ /* @__PURE__ */ jsx(MainMenu.DefaultItems.ClearCanvas, {}),
12
+ /* @__PURE__ */ jsx(MainMenu.DefaultItems.ToggleTheme, {})
13
+ ] }),
14
+ /* @__PURE__ */ jsx(Footer, { children: /* @__PURE__ */ jsx("span", {}) }),
15
+ /* @__PURE__ */ jsx(WelcomeScreen, { children: /* @__PURE__ */ jsx("span", {}) }),
16
+ children
17
+ ] });
18
+ }
19
+
20
+ export { ExcalidrawWithMenus };
21
+ //# sourceMappingURL=ExcalidrawWithMenus-YGFFNZYY.mjs.map
22
+ //# sourceMappingURL=ExcalidrawWithMenus-YGFFNZYY.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/ExcalidrawWithMenus.tsx"],"names":[],"mappings":";;;AAiBO,SAAS,oBAAoB,KAAA,EAAwB;AAC1D,EAAA,MAAM,EAAE,QAAA,EAAU,GAAG,IAAA,EAAK,GAAI,KAAA;AAC9B,EAAA,uBACE,IAAA,CAAC,UAAA,EAAA,EAAY,GAAG,IAAA,EAEd,QAAA,EAAA;AAAA,oBAAA,IAAA,CAAC,QAAA,EAAA,EACC,QAAA,EAAA;AAAA,sBAAA,GAAA,CAAC,QAAA,CAAS,YAAA,CAAa,SAAA,EAAtB,EAAgC,CAAA;AAAA,sBACjC,GAAA,CAAC,QAAA,CAAS,YAAA,CAAa,WAAA,EAAtB,EAAkC,CAAA;AAAA,sBACnC,GAAA,CAAC,QAAA,CAAS,YAAA,CAAa,WAAA,EAAtB,EAAkC,CAAA;AAAA,sBACnC,GAAA,CAAC,QAAA,CAAS,YAAA,CAAa,WAAA,EAAtB,EAAkC;AAAA,KAAA,EACrC,CAAA;AAAA,oBAEA,GAAA,CAAC,MAAA,EAAA,EACC,QAAA,kBAAA,GAAA,CAAC,MAAA,EAAA,EAAK,CAAA,EACR,CAAA;AAAA,oBAGA,GAAA,CAAC,aAAA,EAAA,EACC,QAAA,kBAAA,GAAA,CAAC,MAAA,EAAA,EAAK,CAAA,EACR,CAAA;AAAA,IACC;AAAA,GAAA,EACH,CAAA;AAEJ","file":"ExcalidrawWithMenus-YGFFNZYY.mjs","sourcesContent":["'use client';\n\n// Client-only wrapper around Excalidraw that lets us reach for static helpers\n// like `MainMenu.DefaultItems.*`. ExcalidrawWhiteboardView dynamic-imports this\n// file so SSR never evaluates @excalidraw/excalidraw, while inside this file we\n// can use plain static imports (the entire module loads on the client).\n\nimport React from 'react';\nimport {\n Excalidraw,\n MainMenu,\n Footer,\n WelcomeScreen,\n} from '@excalidraw/excalidraw';\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype ExcalidrawProps = any;\n\nexport function ExcalidrawWithMenus(props: ExcalidrawProps) {\n const { children, ...rest } = props;\n return (\n <Excalidraw {...rest}>\n {/* Replace default menu with curated items — no socials/help/branding */}\n <MainMenu>\n <MainMenu.DefaultItems.LoadScene />\n <MainMenu.DefaultItems.SaveAsImage />\n <MainMenu.DefaultItems.ClearCanvas />\n <MainMenu.DefaultItems.ToggleTheme />\n </MainMenu>\n {/* Footer slot with no content suppresses default \"Made with Excalidraw\" link */}\n <Footer>\n <span />\n </Footer>\n {/* WelcomeScreen slot (empty) prevents the default Excalidraw welcome panel\n * (which includes the Excalidraw logo and social links) from appearing. */}\n <WelcomeScreen>\n <span />\n </WelcomeScreen>\n {children}\n </Excalidraw>\n );\n}\n"]}
package/dist/index.css ADDED
@@ -0,0 +1,74 @@
1
+ /* src/stamp/stamp.css */
2
+ .theme--dark [data-stamp-area=true] {
3
+ color: rgb(226 232 240);
4
+ }
5
+ .theme--dark [data-stamp-area=true].bg-white,
6
+ .theme--dark [data-stamp-area=true] .bg-white {
7
+ background-color: rgb(30 41 59);
8
+ }
9
+ .theme--dark [data-stamp-area=true] .bg-slate-50 {
10
+ background-color: rgb(15 23 42);
11
+ }
12
+ .theme--dark [data-stamp-area=true] .bg-emerald-50 {
13
+ background-color: rgb(6 78 59);
14
+ }
15
+ .theme--dark [data-stamp-area=true] .bg-rose-50 {
16
+ background-color: rgb(127 29 29);
17
+ }
18
+ .theme--dark [data-stamp-area=true] .hover\:bg-slate-100:hover {
19
+ background-color: rgb(51 65 85);
20
+ }
21
+ .theme--dark [data-stamp-area=true] .hover\:bg-slate-50:hover {
22
+ background-color: rgb(15 23 42);
23
+ }
24
+ .theme--dark [data-stamp-area=true] .hover\:bg-emerald-50:hover {
25
+ background-color: rgb(6 78 59);
26
+ }
27
+ .theme--dark [data-testid=stamp-left-panel] > header.bg-gradient-to-r {
28
+ background-image:
29
+ linear-gradient(
30
+ to right,
31
+ rgb(15 23 42),
32
+ rgb(30 41 59));
33
+ }
34
+ .theme--dark [data-stamp-area=true] .border-slate-200,
35
+ .theme--dark [data-stamp-area=true] .border-slate-300 {
36
+ border-color: rgb(51 65 85);
37
+ }
38
+ .theme--dark [data-stamp-area=true] .text-slate-400 {
39
+ color: rgb(100 116 139);
40
+ }
41
+ .theme--dark [data-stamp-area=true] .text-slate-500 {
42
+ color: rgb(148 163 184);
43
+ }
44
+ .theme--dark [data-stamp-area=true] .text-slate-600,
45
+ .theme--dark [data-stamp-area=true] .text-slate-700,
46
+ .theme--dark [data-stamp-area=true] .text-slate-800,
47
+ .theme--dark [data-stamp-area=true] .text-slate-900 {
48
+ color: rgb(226 232 240);
49
+ }
50
+ .theme--dark [data-stamp-area=true] .hover\:text-slate-800:hover,
51
+ .theme--dark [data-stamp-area=true] .hover\:text-slate-900:hover {
52
+ color: rgb(241 245 249);
53
+ }
54
+ .theme--dark [data-stamp-area=true] .text-emerald-700 {
55
+ color: rgb(110 231 183);
56
+ }
57
+ .theme--dark [data-stamp-area=true] .text-rose-700 {
58
+ color: rgb(253 164 175);
59
+ }
60
+ .theme--dark [data-stamp-area=true] input[type=text],
61
+ .theme--dark [data-stamp-area=true] textarea {
62
+ background-color: rgb(15 23 42);
63
+ color: rgb(241 245 249);
64
+ }
65
+ .theme--dark [data-stamp-area=true] input::placeholder,
66
+ .theme--dark [data-stamp-area=true] textarea::placeholder {
67
+ color: rgb(100 116 139);
68
+ }
69
+ .theme--dark [data-stamp-area=true] kbd {
70
+ background-color: rgb(15 23 42);
71
+ border-color: rgb(71 85 105);
72
+ color: rgb(226 232 240);
73
+ }
74
+ /*# sourceMappingURL=index.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/stamp/stamp.css"],"sourcesContent":["/* Dark-mode overrides cho math-stamp panels.\n * Active khi outer wrapper có class `theme--dark` (mirrored từ Excalidraw appState).\n * Selector `[data-stamp-area=\"true\"]` đã có sẵn trên mọi panel để dùng cho click-outside detection. */\n\n.theme--dark [data-stamp-area=\"true\"] {\n color: rgb(226 232 240);\n}\n\n/* ---- Backgrounds ---- */\n.theme--dark [data-stamp-area=\"true\"].bg-white,\n.theme--dark [data-stamp-area=\"true\"] .bg-white {\n background-color: rgb(30 41 59);\n}\n.theme--dark [data-stamp-area=\"true\"] .bg-slate-50 {\n background-color: rgb(15 23 42);\n}\n.theme--dark [data-stamp-area=\"true\"] .bg-emerald-50 {\n background-color: rgb(6 78 59);\n}\n.theme--dark [data-stamp-area=\"true\"] .bg-rose-50 {\n background-color: rgb(127 29 29);\n}\n.theme--dark [data-stamp-area=\"true\"] .hover\\:bg-slate-100:hover {\n background-color: rgb(51 65 85);\n}\n.theme--dark [data-stamp-area=\"true\"] .hover\\:bg-slate-50:hover {\n background-color: rgb(15 23 42);\n}\n.theme--dark [data-stamp-area=\"true\"] .hover\\:bg-emerald-50:hover {\n background-color: rgb(6 78 59);\n}\n\n/* Left-panel header có gradient sáng — đổi sang slate */\n.theme--dark [data-testid=\"stamp-left-panel\"] > header.bg-gradient-to-r {\n background-image: linear-gradient(to right, rgb(15 23 42), rgb(30 41 59));\n}\n\n/* ---- Borders ---- */\n.theme--dark [data-stamp-area=\"true\"] .border-slate-200,\n.theme--dark [data-stamp-area=\"true\"] .border-slate-300 {\n border-color: rgb(51 65 85);\n}\n\n/* ---- Text ---- */\n.theme--dark [data-stamp-area=\"true\"] .text-slate-400 {\n color: rgb(100 116 139);\n}\n.theme--dark [data-stamp-area=\"true\"] .text-slate-500 {\n color: rgb(148 163 184);\n}\n.theme--dark [data-stamp-area=\"true\"] .text-slate-600,\n.theme--dark [data-stamp-area=\"true\"] .text-slate-700,\n.theme--dark [data-stamp-area=\"true\"] .text-slate-800,\n.theme--dark [data-stamp-area=\"true\"] .text-slate-900 {\n color: rgb(226 232 240);\n}\n.theme--dark [data-stamp-area=\"true\"] .hover\\:text-slate-800:hover,\n.theme--dark [data-stamp-area=\"true\"] .hover\\:text-slate-900:hover {\n color: rgb(241 245 249);\n}\n.theme--dark [data-stamp-area=\"true\"] .text-emerald-700 {\n color: rgb(110 231 183);\n}\n.theme--dark [data-stamp-area=\"true\"] .text-rose-700 {\n color: rgb(253 164 175);\n}\n\n/* ---- Inputs ---- */\n.theme--dark [data-stamp-area=\"true\"] input[type=\"text\"],\n.theme--dark [data-stamp-area=\"true\"] textarea {\n background-color: rgb(15 23 42);\n color: rgb(241 245 249);\n}\n.theme--dark [data-stamp-area=\"true\"] input::placeholder,\n.theme--dark [data-stamp-area=\"true\"] textarea::placeholder {\n color: rgb(100 116 139);\n}\n\n/* ---- Kbd badge ---- */\n.theme--dark [data-stamp-area=\"true\"] kbd {\n background-color: rgb(15 23 42);\n border-color: rgb(71 85 105);\n color: rgb(226 232 240);\n}\n"],"mappings":";AAIA,CAAC,YAAY,CAAC;AACZ,SAAO,IAAI,IAAI,IAAI;AACrB;AAGA,CALC,YAKY,CAAC,qBAAuB,CAAC;AACtC,CANC,YAMY,CAAC,sBAAwB,CADA;AAEpC,oBAAkB,IAAI,GAAG,GAAG;AAC9B;AACA,CATC,YASY,CAAC,sBAAwB,CAAC;AACrC,oBAAkB,IAAI,GAAG,GAAG;AAC9B;AACA,CAZC,YAYY,CAAC,sBAAwB,CAAC;AACrC,oBAAkB,IAAI,EAAE,GAAG;AAC7B;AACA,CAfC,YAeY,CAAC,sBAAwB,CAAC;AACrC,oBAAkB,IAAI,IAAI,GAAG;AAC/B;AACA,CAlBC,YAkBY,CAAC,sBAAwB,CAAC,mBAAmB;AACxD,oBAAkB,IAAI,GAAG,GAAG;AAC9B;AACA,CArBC,YAqBY,CAAC,sBAAwB,CAAC,kBAAkB;AACvD,oBAAkB,IAAI,GAAG,GAAG;AAC9B;AACA,CAxBC,YAwBY,CAAC,sBAAwB,CAAC,oBAAoB;AACzD,oBAAkB,IAAI,EAAE,GAAG;AAC7B;AAGA,CA7BC,YA6BY,CAAC,8BAAgC,EAAE,MAAM,CAAC;AACrD;AAAA,IAAkB;AAAA,MAAgB,GAAG,KAAnB;AAAA,MAA0B,IAAI,GAAG,GAAG,GAApC;AAAA,MAAyC,IAAI,GAAG,GAAG;AACvE;AAGA,CAlCC,YAkCY,CAAC,sBAAwB,CAAC;AACvC,CAnCC,YAmCY,CAAC,sBAAwB,CAAC;AACrC,gBAAc,IAAI,GAAG,GAAG;AAC1B;AAGA,CAxCC,YAwCY,CAAC,sBAAwB,CAAC;AACrC,SAAO,IAAI,IAAI,IAAI;AACrB;AACA,CA3CC,YA2CY,CAAC,sBAAwB,CAAC;AACrC,SAAO,IAAI,IAAI,IAAI;AACrB;AACA,CA9CC,YA8CY,CAAC,sBAAwB,CAAC;AACvC,CA/CC,YA+CY,CAAC,sBAAwB,CAAC;AACvC,CAhDC,YAgDY,CAAC,sBAAwB,CAAC;AACvC,CAjDC,YAiDY,CAAC,sBAAwB,CAAC;AACrC,SAAO,IAAI,IAAI,IAAI;AACrB;AACA,CApDC,YAoDY,CAAC,sBAAwB,CAAC,qBAAqB;AAC5D,CArDC,YAqDY,CAAC,sBAAwB,CAAC,qBAAqB;AAC1D,SAAO,IAAI,IAAI,IAAI;AACrB;AACA,CAxDC,YAwDY,CAAC,sBAAwB,CAAC;AACrC,SAAO,IAAI,IAAI,IAAI;AACrB;AACA,CA3DC,YA2DY,CAAC,sBAAwB,CAAC;AACrC,SAAO,IAAI,IAAI,IAAI;AACrB;AAGA,CAhEC,YAgEY,CAAC,sBAAwB,KAAK,CAAC;AAC5C,CAjEC,YAiEY,CAAC,sBAAwB;AACpC,oBAAkB,IAAI,GAAG,GAAG;AAC5B,SAAO,IAAI,IAAI,IAAI;AACrB;AACA,CArEC,YAqEY,CAAC,sBAAwB,KAAK;AAC3C,CAtEC,YAsEY,CAAC,sBAAwB,QAAQ;AAC5C,SAAO,IAAI,IAAI,IAAI;AACrB;AAGA,CA3EC,YA2EY,CAAC,sBAAwB;AACpC,oBAAkB,IAAI,GAAG,GAAG;AAC5B,gBAAc,IAAI,GAAG,GAAG;AACxB,SAAO,IAAI,IAAI,IAAI;AACrB;","names":[]}
@@ -0,0 +1,35 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { NonDeletedExcalidrawElement } from '@excalidraw/excalidraw/element/types';
3
+ export { ExcalidrawElement, NonDeletedExcalidrawElement } from '@excalidraw/excalidraw/element/types';
4
+ import { AppState, BinaryFiles } from '@excalidraw/excalidraw/types';
5
+ export { AppState, BinaryFiles } from '@excalidraw/excalidraw/types';
6
+
7
+ interface SyncableAppState {
8
+ viewBackgroundColor: string;
9
+ zoom: AppState['zoom'];
10
+ scrollX: number;
11
+ scrollY: number;
12
+ gridSize: AppState['gridSize'] | null;
13
+ theme: AppState['theme'];
14
+ }
15
+ interface ExcalidrawSceneSnapshot {
16
+ elements: readonly NonDeletedExcalidrawElement[];
17
+ appState: SyncableAppState;
18
+ }
19
+
20
+ interface ExcalidrawWhiteboardViewProps {
21
+ role: 'teacher' | 'student';
22
+ roomId: string;
23
+ initialScene: ExcalidrawSceneSnapshot | null;
24
+ remoteScene: ExcalidrawSceneSnapshot | null;
25
+ remoteFiles?: BinaryFiles | null;
26
+ onSceneChange: (snapshot: ExcalidrawSceneSnapshot) => void;
27
+ onFilesChange: (files: BinaryFiles, newFileIds: string[]) => void;
28
+ /** Excalidraw UI language. Defaults to 'vi-VN'. See @excalidraw/excalidraw locales. */
29
+ langCode?: string;
30
+ }
31
+ declare function ExcalidrawWhiteboardView({ role, initialScene, remoteScene, remoteFiles, onSceneChange, onFilesChange, langCode, }: ExcalidrawWhiteboardViewProps): react_jsx_runtime.JSX.Element;
32
+
33
+ declare function pickSyncableAppState(s: AppState): SyncableAppState;
34
+
35
+ export { type ExcalidrawSceneSnapshot, ExcalidrawWhiteboardView, type ExcalidrawWhiteboardViewProps, type SyncableAppState, pickSyncableAppState };
@@ -0,0 +1,35 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { NonDeletedExcalidrawElement } from '@excalidraw/excalidraw/element/types';
3
+ export { ExcalidrawElement, NonDeletedExcalidrawElement } from '@excalidraw/excalidraw/element/types';
4
+ import { AppState, BinaryFiles } from '@excalidraw/excalidraw/types';
5
+ export { AppState, BinaryFiles } from '@excalidraw/excalidraw/types';
6
+
7
+ interface SyncableAppState {
8
+ viewBackgroundColor: string;
9
+ zoom: AppState['zoom'];
10
+ scrollX: number;
11
+ scrollY: number;
12
+ gridSize: AppState['gridSize'] | null;
13
+ theme: AppState['theme'];
14
+ }
15
+ interface ExcalidrawSceneSnapshot {
16
+ elements: readonly NonDeletedExcalidrawElement[];
17
+ appState: SyncableAppState;
18
+ }
19
+
20
+ interface ExcalidrawWhiteboardViewProps {
21
+ role: 'teacher' | 'student';
22
+ roomId: string;
23
+ initialScene: ExcalidrawSceneSnapshot | null;
24
+ remoteScene: ExcalidrawSceneSnapshot | null;
25
+ remoteFiles?: BinaryFiles | null;
26
+ onSceneChange: (snapshot: ExcalidrawSceneSnapshot) => void;
27
+ onFilesChange: (files: BinaryFiles, newFileIds: string[]) => void;
28
+ /** Excalidraw UI language. Defaults to 'vi-VN'. See @excalidraw/excalidraw locales. */
29
+ langCode?: string;
30
+ }
31
+ declare function ExcalidrawWhiteboardView({ role, initialScene, remoteScene, remoteFiles, onSceneChange, onFilesChange, langCode, }: ExcalidrawWhiteboardViewProps): react_jsx_runtime.JSX.Element;
32
+
33
+ declare function pickSyncableAppState(s: AppState): SyncableAppState;
34
+
35
+ export { type ExcalidrawSceneSnapshot, ExcalidrawWhiteboardView, type ExcalidrawWhiteboardViewProps, type SyncableAppState, pickSyncableAppState };