canvu-react 0.3.6 → 0.3.8
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/README.md +192 -0
- package/dist/chatbot.d.cts +2 -1
- package/dist/chatbot.d.ts +2 -1
- package/dist/index.cjs +32 -144
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +32 -144
- package/dist/index.js.map +1 -1
- package/dist/native.cjs +31 -109
- package/dist/native.cjs.map +1 -1
- package/dist/native.js +31 -109
- package/dist/native.js.map +1 -1
- package/dist/react.cjs +1403 -1355
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +132 -200
- package/dist/react.d.ts +132 -200
- package/dist/react.js +1403 -1356
- package/dist/react.js.map +1 -1
- package/dist/realtime.cjs.map +1 -1
- package/dist/realtime.d.cts +3 -2
- package/dist/realtime.d.ts +3 -2
- package/dist/realtime.js.map +1 -1
- package/dist/tldraw.cjs +30 -142
- package/dist/tldraw.cjs.map +1 -1
- package/dist/tldraw.js +30 -142
- package/dist/tldraw.js.map +1 -1
- package/dist/types-CW146bKP.d.cts +691 -0
- package/dist/types-CpqlbbCP.d.ts +691 -0
- package/package.json +1 -1
- package/dist/types--ALu1mF-.d.ts +0 -356
- package/dist/types-D1ftVsOQ.d.cts +0 -356
|
@@ -1,356 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { ReactNode, RefObject } from 'react';
|
|
3
|
-
import { R as Rect, V as VectorSceneItem } from './types-CB0TZZuk.cjs';
|
|
4
|
-
import { C as Camera2D } from './camera-BwQjm5oh.cjs';
|
|
5
|
-
|
|
6
|
-
type PlacementPreview = {
|
|
7
|
-
kind: "rect" | "ellipse";
|
|
8
|
-
rect: Rect;
|
|
9
|
-
}
|
|
10
|
-
/** Multi-select drag (world rect), like image crop / rubber-band selection. */
|
|
11
|
-
| {
|
|
12
|
-
kind: "marquee";
|
|
13
|
-
rect: Rect;
|
|
14
|
-
} | {
|
|
15
|
-
kind: "line" | "arrow";
|
|
16
|
-
start: {
|
|
17
|
-
x: number;
|
|
18
|
-
y: number;
|
|
19
|
-
};
|
|
20
|
-
end: {
|
|
21
|
-
x: number;
|
|
22
|
-
y: number;
|
|
23
|
-
};
|
|
24
|
-
} | {
|
|
25
|
-
kind: "stroke";
|
|
26
|
-
tool: "draw" | "marker" | "laser";
|
|
27
|
-
points: {
|
|
28
|
-
x: number;
|
|
29
|
-
y: number;
|
|
30
|
-
}[];
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Describes one entry in {@link VectorToolbar}.
|
|
35
|
-
*/
|
|
36
|
-
type VectorToolDefinition = {
|
|
37
|
-
/** Stable id passed to `onChange` (e.g. `"hand"`, `"rect"`). */
|
|
38
|
-
id: string;
|
|
39
|
-
/** Visible label and default accessible name. */
|
|
40
|
-
label: string;
|
|
41
|
-
/**
|
|
42
|
-
* English (or other) name for the hover tooltip only. Defaults to {@link label}.
|
|
43
|
-
*/
|
|
44
|
-
tooltipLabel?: string;
|
|
45
|
-
/** Optional icon; if omitted, the label text is shown. */
|
|
46
|
-
icon?: ReactNode;
|
|
47
|
-
/** Shown in `aria-keyshortcuts` when set (informational only). */
|
|
48
|
-
shortcutHint?: string;
|
|
49
|
-
/** Extra `aria-label` when you need more than `label`. */
|
|
50
|
-
ariaLabel?: string;
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
type RealtimeConnectionState = "connecting" | "connected" | "reconnecting" | "offline" | "error";
|
|
54
|
-
/**
|
|
55
|
-
* In-progress freehand stroke from a remote peer (before it becomes a committed `VectorSceneItem`).
|
|
56
|
-
*/
|
|
57
|
-
type RemotePresenceMarkupStroke = {
|
|
58
|
-
readonly points: readonly {
|
|
59
|
-
readonly x: number;
|
|
60
|
-
readonly y: number;
|
|
61
|
-
}[];
|
|
62
|
-
readonly tool: "draw" | "pencil" | "brush" | "marker" | "laser";
|
|
63
|
-
};
|
|
64
|
-
/**
|
|
65
|
-
* One connected participant. Your WebSocket layer maps server messages → this shape;
|
|
66
|
-
* {@link VectorViewport} renders it in world space.
|
|
67
|
-
*/
|
|
68
|
-
type RemotePresencePeer = {
|
|
69
|
-
readonly id: string;
|
|
70
|
-
/** Stable color for cursor + stroke (e.g. `#2563eb`). If omitted, a hue is derived from `id`. */
|
|
71
|
-
readonly color?: string;
|
|
72
|
-
/** Short display name near the cursor. */
|
|
73
|
-
readonly displayName?: string;
|
|
74
|
-
/** Optional profile image / avatar URL for richer collaboration UIs. */
|
|
75
|
-
readonly image?: string;
|
|
76
|
-
/** Last known pointer position in **world** units, or `null` if off-canvas / idle. */
|
|
77
|
-
readonly cursor: {
|
|
78
|
-
readonly x: number;
|
|
79
|
-
readonly y: number;
|
|
80
|
-
} | null;
|
|
81
|
-
/** Optional live stroke while the peer is drawing (same semantics as local placement preview). */
|
|
82
|
-
readonly markupStroke?: RemotePresenceMarkupStroke | null;
|
|
83
|
-
/** Connection-scoped id when collaboration is backed by a realtime session. */
|
|
84
|
-
readonly clientId?: string;
|
|
85
|
-
/** Stable participant identity when collaboration is backed by a realtime session. */
|
|
86
|
-
readonly peerId?: string;
|
|
87
|
-
/** Room/session id when provided by the collaboration transport. */
|
|
88
|
-
readonly roomId?: string;
|
|
89
|
-
/** Lifecycle timestamps in epoch milliseconds. */
|
|
90
|
-
readonly joinedAt?: number;
|
|
91
|
-
readonly lastSeenAt?: number;
|
|
92
|
-
/** Distinguishes the local participant from remote peers. */
|
|
93
|
-
readonly isSelf?: boolean;
|
|
94
|
-
/** Optional active tool hint for richer presence UIs. */
|
|
95
|
-
readonly activeTool?: string;
|
|
96
|
-
/** Session-level connection state, useful for richer rosters. */
|
|
97
|
-
readonly connectionState?: RealtimeConnectionState;
|
|
98
|
-
};
|
|
99
|
-
type PresenceOverlayRenderContext = {
|
|
100
|
-
camera: Camera2D;
|
|
101
|
-
/** Bumps when the camera changes so overlays stay aligned with the scene. */
|
|
102
|
-
cameraVersion: number;
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
type WorldPointerDownDetail = {
|
|
106
|
-
worldX: number;
|
|
107
|
-
worldY: number;
|
|
108
|
-
toolId: string;
|
|
109
|
-
pointerType: string;
|
|
110
|
-
};
|
|
111
|
-
/**
|
|
112
|
-
* Imperative API for pan/zoom and integrations (e.g. AI agents following a region).
|
|
113
|
-
* Call {@link requestRender} after mutating the {@link Camera2D} from {@link getCamera}.
|
|
114
|
-
*/
|
|
115
|
-
type VectorViewportHandle = {
|
|
116
|
-
/** The live camera instance, or `null` before mount / after unmount. */
|
|
117
|
-
getCamera: () => Camera2D | null;
|
|
118
|
-
/**
|
|
119
|
-
* Re-run SVG + overlay after changing `x`, `y`, or `zoom` on the camera from {@link getCamera}.
|
|
120
|
-
*/
|
|
121
|
-
requestRender: () => void;
|
|
122
|
-
/** CSS pixel size of the scene surface (`clientWidth` / `clientHeight`). */
|
|
123
|
-
getViewportSize: () => {
|
|
124
|
-
width: number;
|
|
125
|
-
height: number;
|
|
126
|
-
};
|
|
127
|
-
/**
|
|
128
|
-
* Sets pan/zoom so `worldRect` fits in the viewport with optional margin (fraction of rect size per side, default `0.08`).
|
|
129
|
-
*/
|
|
130
|
-
fitWorldRect: (worldRect: Rect, options?: {
|
|
131
|
-
padding?: number;
|
|
132
|
-
}) => void;
|
|
133
|
-
};
|
|
134
|
-
/** Drag-to-place a custom shape (same interaction as rectangle). Use with `createCustomShapeItem` from `canvu`. */
|
|
135
|
-
type CustomShapePlacementOptions = {
|
|
136
|
-
toolId: string;
|
|
137
|
-
createItem: (args: {
|
|
138
|
-
id: string;
|
|
139
|
-
bounds: Rect;
|
|
140
|
-
}) => VectorSceneItem;
|
|
141
|
-
};
|
|
142
|
-
type VectorViewportProps = {
|
|
143
|
-
/** Vector items to draw (SVG fragments). */
|
|
144
|
-
items: readonly VectorSceneItem[];
|
|
145
|
-
className?: string;
|
|
146
|
-
/** Accessible name for the application region. */
|
|
147
|
-
ariaLabel: string;
|
|
148
|
-
/**
|
|
149
|
-
* When `applePencilNav` is true, used with `attachApplePencilNavigation` to decide
|
|
150
|
-
* when finger touches navigate (e.g. `"hand"` vs `"draw"`).
|
|
151
|
-
*/
|
|
152
|
-
toolId?: string;
|
|
153
|
-
/** Enable Apple Pencil vs finger split (optional). */
|
|
154
|
-
applePencilNav?: boolean;
|
|
155
|
-
/**
|
|
156
|
-
* When true, selection, drag-to-move, resize handles, and drag-to-create shapes are enabled.
|
|
157
|
-
* Requires `onItemsChange` to persist mutations.
|
|
158
|
-
*/
|
|
159
|
-
interactive?: boolean;
|
|
160
|
-
/** Selected item ids (order preserved). Empty = none. */
|
|
161
|
-
selectedIds?: readonly string[];
|
|
162
|
-
onSelectionChange?: (ids: string[]) => void;
|
|
163
|
-
onItemsChange?: (items: VectorSceneItem[]) => void;
|
|
164
|
-
/**
|
|
165
|
-
* Fires on primary pointer down on the viewport in **world** coordinates.
|
|
166
|
-
* Not called when `toolId` is `"hand"` (use that tool for panning).
|
|
167
|
-
* Ignored when `interactive` is true (placement uses drag-to-define).
|
|
168
|
-
*/
|
|
169
|
-
onWorldPointerDown?: (detail: WorldPointerDownDetail) => void;
|
|
170
|
-
/**
|
|
171
|
-
* Floating UI above the scene. Compose with `VectorCanvas.Toolbar` + {@link VectorToolbar}
|
|
172
|
-
* so the strip anchors at the bottom center (`data-slot="vector-canvas-toolbar"`).
|
|
173
|
-
*/
|
|
174
|
-
toolbar?: ReactNode;
|
|
175
|
-
/**
|
|
176
|
-
* Floating bottom-left zoom / undo / minimap bar. Omit to render the default `NavMenu`.
|
|
177
|
-
* Pass `<VectorCanvas.NavMenu position="..." />` to relocate or style it. Pass `null` to hide it.
|
|
178
|
-
*/
|
|
179
|
-
navMenu?: ReactNode | null;
|
|
180
|
-
/**
|
|
181
|
-
* Floating selection / active-tool style inspector. Omit to render the default `VectorSelectionInspector`.
|
|
182
|
-
* Pass `<VectorCanvas.SelectionInspector position="..." />` to relocate or style it. Pass `null` to hide it.
|
|
183
|
-
*/
|
|
184
|
-
selectionInspector?: ReactNode | null;
|
|
185
|
-
/**
|
|
186
|
-
* Plug and play board extensions.
|
|
187
|
-
*
|
|
188
|
-
* First-party plugins such as `chatbotPlugin(...)` and `realtimeCollaborationPlugin(...)`
|
|
189
|
-
* should be passed here. Advanced authors can create their own plugins with `createCanvuPlugin(...)`.
|
|
190
|
-
*/
|
|
191
|
-
plugins?: readonly CanvasPlugin[];
|
|
192
|
-
/**
|
|
193
|
-
* Called after the scene/camera redraw (pan, zoom, items update, or {@link VectorViewportHandle.requestRender}).
|
|
194
|
-
* Can fire often during gestures — throttle/debounce if needed.
|
|
195
|
-
*/
|
|
196
|
-
onCameraChange?: () => void;
|
|
197
|
-
/**
|
|
198
|
-
* When `interactive` is true, enables drag (or tap) placement for `toolId`, like built-in shapes.
|
|
199
|
-
* Implement `createItem` with `createCustomShapeItem` from `canvu`.
|
|
200
|
-
*/
|
|
201
|
-
customPlacement?: CustomShapePlacementOptions;
|
|
202
|
-
/**
|
|
203
|
-
* Multiple custom placements contributed by plugins or app code.
|
|
204
|
-
*
|
|
205
|
-
* When both `customPlacement` and `customPlacements` are provided, they are combined and the active
|
|
206
|
-
* placement is resolved by the current `toolId`.
|
|
207
|
-
*/
|
|
208
|
-
customPlacements?: readonly CustomShapePlacementOptions[];
|
|
209
|
-
/**
|
|
210
|
-
* When false (default), finishing a draw/place/erase gesture requests switching back to `autoResetToolTo`.
|
|
211
|
-
* Use with controlled tool state (`onToolChangeRequest`) to keep "select-after-use" behavior.
|
|
212
|
-
*/
|
|
213
|
-
toolLocked?: boolean;
|
|
214
|
-
/** Tool id requested after one-shot actions complete. Default `"select"`. */
|
|
215
|
-
autoResetToolTo?: string;
|
|
216
|
-
/** Called when viewport requests a tool change (e.g. auto reset to select). */
|
|
217
|
-
onToolChangeRequest?: (toolId: string) => void;
|
|
218
|
-
/**
|
|
219
|
-
* Remote participants (cursors + optional in-progress strokes). Renders a world-space overlay
|
|
220
|
-
* below the local interaction layer. Transport is your app (WebSocket, party server, …).
|
|
221
|
-
*/
|
|
222
|
-
remotePresence?: readonly RemotePresencePeer[];
|
|
223
|
-
/**
|
|
224
|
-
* Replace the default presence layer (e.g. custom cursors). When set, `remotePresence` is not
|
|
225
|
-
* rendered unless you read it from the parent closure inside this callback.
|
|
226
|
-
*/
|
|
227
|
-
presenceOverlay?: (ctx: PresenceOverlayRenderContext) => ReactNode;
|
|
228
|
-
/**
|
|
229
|
-
* Throttled pointer position in **world** space while the cursor moves over the viewport
|
|
230
|
-
* (for broadcasting your cursor). Pair with `onWorldPointerLeave`.
|
|
231
|
-
*/
|
|
232
|
-
onWorldPointerMove?: (world: {
|
|
233
|
-
x: number;
|
|
234
|
-
y: number;
|
|
235
|
-
}) => void;
|
|
236
|
-
/** Fires when the pointer leaves the viewport (clear your broadcast cursor). */
|
|
237
|
-
onWorldPointerLeave?: () => void;
|
|
238
|
-
/**
|
|
239
|
-
* Fires when drag placement preview updates (rect, line, freehand stroke, …). Use it to broadcast
|
|
240
|
-
* {@link RemotePresencePeer.markupStroke} for other participants while drawing.
|
|
241
|
-
*/
|
|
242
|
-
onPlacementPreviewChange?: (preview: PlacementPreview | null) => void;
|
|
243
|
-
};
|
|
244
|
-
/**
|
|
245
|
-
* Full-viewport vector canvas: SVG rendering + pan/zoom/pinch + optional Apple Pencil navigation.
|
|
246
|
-
* Pass a `className` that includes `touch-action: none` (e.g. Tailwind `touch-none`) on the viewport.
|
|
247
|
-
*/
|
|
248
|
-
declare const VectorViewport: react.ForwardRefExoticComponent<VectorViewportProps & react.RefAttributes<VectorViewportHandle>>;
|
|
249
|
-
|
|
250
|
-
type CanvasPluginRenderContext = {
|
|
251
|
-
/** Live viewport handle when the plugin needs camera or viewport size. */
|
|
252
|
-
viewportRef?: RefObject<VectorViewportHandle | null>;
|
|
253
|
-
};
|
|
254
|
-
type CanvasPluginItemsChangeMiddlewareContext = {
|
|
255
|
-
/** Current board items before the pending change is applied. */
|
|
256
|
-
currentItems: readonly VectorSceneItem[];
|
|
257
|
-
/** Continue the item change pipeline. */
|
|
258
|
-
next: NonNullable<VectorViewportProps["onItemsChange"]>;
|
|
259
|
-
/** Original consumer callback passed to `VectorViewport`. */
|
|
260
|
-
consumerOnItemsChange?: VectorViewportProps["onItemsChange"];
|
|
261
|
-
/** Live viewport handle for advanced integrations. */
|
|
262
|
-
viewportRef?: RefObject<VectorViewportHandle | null>;
|
|
263
|
-
};
|
|
264
|
-
type CanvasPluginContribution = {
|
|
265
|
-
/** Additional tools injected into the board toolbar/runtime. */
|
|
266
|
-
tools?: readonly VectorToolDefinition[];
|
|
267
|
-
/** Transform the resolved tool list (reorder, replace, or filter existing tools). */
|
|
268
|
-
toolTransform?: (tools: VectorToolDefinition[]) => VectorToolDefinition[];
|
|
269
|
-
/** Multiple custom placements contributed by plugins; the active one is resolved by `toolId`. */
|
|
270
|
-
customPlacements?: readonly CustomShapePlacementOptions[];
|
|
271
|
-
/** Simple viewport prop overrides owned by the plugin runtime. */
|
|
272
|
-
viewportProps?: Partial<Pick<VectorViewportProps, "remotePresence" | "presenceOverlay">>;
|
|
273
|
-
/** Event callbacks chained into the viewport without manual wiring in app code. */
|
|
274
|
-
callbacks?: Partial<Pick<VectorViewportProps, "onWorldPointerMove" | "onWorldPointerLeave" | "onPlacementPreviewChange" | "onCameraChange">>;
|
|
275
|
-
/** Middleware around `onItemsChange` for collaboration, comments, persistence, etc. */
|
|
276
|
-
wrapOnItemsChange?: (nextItems: VectorSceneItem[], ctx: CanvasPluginItemsChangeMiddlewareContext) => void;
|
|
277
|
-
};
|
|
278
|
-
type CanvasPluginComponentProps = {
|
|
279
|
-
/** Stable plugin id so the component can register contributions. */
|
|
280
|
-
pluginId: string;
|
|
281
|
-
};
|
|
282
|
-
type CanvasPlugin = {
|
|
283
|
-
/** Stable id, e.g. `canvu.plugin.chatbot`. */
|
|
284
|
-
id: string;
|
|
285
|
-
/**
|
|
286
|
-
* Legacy/simple rendering path for purely visual plugins.
|
|
287
|
-
*
|
|
288
|
-
* Prefer `Component` for plugins that need hooks, document integration, tools, or runtime contributions.
|
|
289
|
-
*/
|
|
290
|
-
render?: (ctx: CanvasPluginRenderContext) => ReactNode;
|
|
291
|
-
/**
|
|
292
|
-
* Preferred plugin entrypoint for first-party and advanced plugins.
|
|
293
|
-
*
|
|
294
|
-
* The component can use hooks and register contributions through `useCanvuPluginContribution`.
|
|
295
|
-
*/
|
|
296
|
-
Component?: (props: CanvasPluginComponentProps) => ReactNode;
|
|
297
|
-
};
|
|
298
|
-
type CanvuPluginViewportSnapshot = Pick<VectorViewportProps, "items" | "onItemsChange" | "toolId" | "interactive" | "toolLocked" | "onToolChangeRequest">;
|
|
299
|
-
type CanvuPluginContextValue = {
|
|
300
|
-
viewportRef?: RefObject<VectorViewportHandle | null>;
|
|
301
|
-
viewport: CanvuPluginViewportSnapshot;
|
|
302
|
-
resolvedTools: VectorToolDefinition[];
|
|
303
|
-
registerContribution: (pluginId: string, contribution: CanvasPluginContribution) => void;
|
|
304
|
-
unregisterContribution: (pluginId: string) => void;
|
|
305
|
-
};
|
|
306
|
-
declare const CanvuPluginContext: react.Context<CanvuPluginContextValue | null>;
|
|
307
|
-
/**
|
|
308
|
-
* Creates a typed canvu plugin descriptor.
|
|
309
|
-
*
|
|
310
|
-
* Use this helper when authoring custom plugins so your editor can infer the plugin shape
|
|
311
|
-
* and surface better hover documentation for the returned object.
|
|
312
|
-
*/
|
|
313
|
-
declare function createCanvuPlugin(plugin: CanvasPlugin): CanvasPlugin;
|
|
314
|
-
/**
|
|
315
|
-
* Returns the low-level canvu plugin runtime context.
|
|
316
|
-
*
|
|
317
|
-
* This is an advanced API for custom plugin authors. Prefer first-party plugin factories such as
|
|
318
|
-
* `chatbotPlugin(...)` and `realtimeCollaborationPlugin(...)` for the common path.
|
|
319
|
-
*/
|
|
320
|
-
declare function useCanvuPluginContext(): CanvuPluginContextValue;
|
|
321
|
-
/**
|
|
322
|
-
* Returns the current viewport-facing board state exposed to plugins.
|
|
323
|
-
*
|
|
324
|
-
* Use this when a custom plugin needs access to items, the active tool, or the consumer's
|
|
325
|
-
* `onToolChangeRequest` callback.
|
|
326
|
-
*/
|
|
327
|
-
declare function useCanvuViewportContext(): {
|
|
328
|
-
viewportRef?: RefObject<VectorViewportHandle | null>;
|
|
329
|
-
viewport: CanvuPluginViewportSnapshot;
|
|
330
|
-
};
|
|
331
|
-
/**
|
|
332
|
-
* Returns the board document context exposed to plugins.
|
|
333
|
-
*
|
|
334
|
-
* This hook is intended for advanced plugins that need to read items or integrate with the board's
|
|
335
|
-
* `onItemsChange` lifecycle.
|
|
336
|
-
*/
|
|
337
|
-
declare function useCanvuDocumentContext(): {
|
|
338
|
-
items: readonly VectorSceneItem[];
|
|
339
|
-
onItemsChange?: VectorViewportProps["onItemsChange"];
|
|
340
|
-
};
|
|
341
|
-
/**
|
|
342
|
-
* Returns the tool list already resolved by the plugin runtime.
|
|
343
|
-
*
|
|
344
|
-
* `VectorToolbar` consumes this automatically when you omit its `tools` prop, so most apps do not
|
|
345
|
-
* need this hook directly.
|
|
346
|
-
*/
|
|
347
|
-
declare function useCanvuResolvedTools(): VectorToolDefinition[];
|
|
348
|
-
/**
|
|
349
|
-
* Registers non-visual plugin contributions with the current `VectorViewport` runtime.
|
|
350
|
-
*
|
|
351
|
-
* Use this inside `plugin.Component` when you want to inject tools, viewport behavior, or document
|
|
352
|
-
* middleware without requiring the consumer to wire hooks manually.
|
|
353
|
-
*/
|
|
354
|
-
declare function useCanvuPluginContribution(pluginId: string, contribution: CanvasPluginContribution): void;
|
|
355
|
-
|
|
356
|
-
export { type CanvasPlugin as C, type PlacementPreview as P, type RemotePresenceMarkupStroke as R, type VectorToolDefinition as V, type WorldPointerDownDetail as W, type CanvasPluginComponentProps as a, type CanvasPluginContribution as b, type CanvasPluginItemsChangeMiddlewareContext as c, type CanvasPluginRenderContext as d, CanvuPluginContext as e, type CanvuPluginContextValue as f, type CanvuPluginViewportSnapshot as g, type CustomShapePlacementOptions as h, VectorViewport as i, type VectorViewportHandle as j, type VectorViewportProps as k, createCanvuPlugin as l, useCanvuPluginContext as m, useCanvuPluginContribution as n, useCanvuResolvedTools as o, useCanvuViewportContext as p, type RemotePresencePeer as q, type RealtimeConnectionState as r, type PresenceOverlayRenderContext as s, useCanvuDocumentContext as u };
|