canvu-react 0.3.38 → 0.3.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{asset-hydration-DrTOgDdd.d.ts → asset-hydration-DdFLdlqX.d.ts} +1 -1
- package/dist/{asset-hydration-EtEuBwb7.d.cts → asset-hydration-DowNdaOJ.d.cts} +1 -1
- package/dist/chatbot.d.cts +2 -2
- package/dist/chatbot.d.ts +2 -2
- package/dist/index.cjs +105 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +100 -1
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +32 -3
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +6 -6
- package/dist/react.d.ts +6 -6
- package/dist/react.js +32 -3
- package/dist/react.js.map +1 -1
- package/dist/realtime.d.cts +3 -3
- package/dist/realtime.d.ts +3 -3
- package/dist/{shape-builders-CsSXKCcs.d.ts → shape-builders-C7bxJBGR.d.ts} +40 -2
- package/dist/{shape-builders-CsbSRZnQ.d.cts → shape-builders-Dedcl6tw.d.cts} +40 -2
- package/dist/tldraw.cjs +134 -65
- package/dist/tldraw.cjs.map +1 -1
- package/dist/tldraw.js +134 -65
- package/dist/tldraw.js.map +1 -1
- package/dist/{types-B6PAYKzx.d.ts → types-BBb8KoyW.d.ts} +10 -1
- package/dist/{types-DWGk2_GZ.d.cts → types-DUW61Tjy.d.cts} +10 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import * as react from 'react';
|
|
|
2
2
|
import { CSSProperties, ReactNode, RefObject } from 'react';
|
|
3
3
|
import { V as VectorSceneItem, R as Rect } from './types-Bnq2HtHQ.js';
|
|
4
4
|
import { C as Camera2D } from './camera-AoTwBSoE.js';
|
|
5
|
-
import { S as StrokeStyle,
|
|
5
|
+
import { S as StrokeStyle, C as CanvuLinkData, E as VectorViewportAssetStore } from './shape-builders-C7bxJBGR.js';
|
|
6
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
7
|
|
|
8
8
|
type CanvuChromeActiveToolStyle = StrokeStyle & {
|
|
@@ -269,6 +269,15 @@ type VectorViewportProps = {
|
|
|
269
269
|
selectedIds?: readonly string[];
|
|
270
270
|
onSelectionChange?: (ids: string[]) => void;
|
|
271
271
|
onItemsChange?: (items: VectorSceneItem[]) => void;
|
|
272
|
+
/**
|
|
273
|
+
* Fires when a link/bookmark item is activated (double-click / double-tap).
|
|
274
|
+
* When omitted, the link opens in a new browser tab by default (web only).
|
|
275
|
+
* Provide this to customize navigation (e.g. in-app preview, confirmation).
|
|
276
|
+
*/
|
|
277
|
+
onActivateLink?: (detail: {
|
|
278
|
+
link: CanvuLinkData;
|
|
279
|
+
item: VectorSceneItem;
|
|
280
|
+
}) => void;
|
|
272
281
|
/**
|
|
273
282
|
* Fires on primary pointer down on the viewport in **world** coordinates.
|
|
274
283
|
* Not called when `toolId` is `"hand"` (use that tool for panning).
|
|
@@ -2,7 +2,7 @@ import * as react from 'react';
|
|
|
2
2
|
import { CSSProperties, ReactNode, RefObject } from 'react';
|
|
3
3
|
import { V as VectorSceneItem, R as Rect } from './types-Bnq2HtHQ.cjs';
|
|
4
4
|
import { C as Camera2D } from './camera-Di5R_Rwl.cjs';
|
|
5
|
-
import { S as StrokeStyle,
|
|
5
|
+
import { S as StrokeStyle, C as CanvuLinkData, E as VectorViewportAssetStore } from './shape-builders-Dedcl6tw.cjs';
|
|
6
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
7
|
|
|
8
8
|
type CanvuChromeActiveToolStyle = StrokeStyle & {
|
|
@@ -269,6 +269,15 @@ type VectorViewportProps = {
|
|
|
269
269
|
selectedIds?: readonly string[];
|
|
270
270
|
onSelectionChange?: (ids: string[]) => void;
|
|
271
271
|
onItemsChange?: (items: VectorSceneItem[]) => void;
|
|
272
|
+
/**
|
|
273
|
+
* Fires when a link/bookmark item is activated (double-click / double-tap).
|
|
274
|
+
* When omitted, the link opens in a new browser tab by default (web only).
|
|
275
|
+
* Provide this to customize navigation (e.g. in-app preview, confirmation).
|
|
276
|
+
*/
|
|
277
|
+
onActivateLink?: (detail: {
|
|
278
|
+
link: CanvuLinkData;
|
|
279
|
+
item: VectorSceneItem;
|
|
280
|
+
}) => void;
|
|
272
281
|
/**
|
|
273
282
|
* Fires on primary pointer down on the viewport in **world** coordinates.
|
|
274
283
|
* Not called when `toolId` is `"hand"` (use that tool for panning).
|