canvu-react 0.4.53 → 0.4.54

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/native.d.cts CHANGED
@@ -11,6 +11,7 @@ import { R as RemotePresencePeer } from './types-BOQLWyCw.cjs';
11
11
 
12
12
  type NativeImagesMenuLabels = {
13
13
  title?: string;
14
+ dragHandle?: string;
14
15
  focus?: string;
15
16
  duplicate?: string;
16
17
  copy?: string;
@@ -264,6 +265,24 @@ type NativeVectorViewportHandle = {
264
265
  fitWorldRect: (worldRect: Rect, options?: {
265
266
  padding?: number;
266
267
  }) => void;
268
+ /**
269
+ * Copies the current native selection into the viewport's internal shape clipboard.
270
+ *
271
+ * Returns `false` when the viewport is not interactive or no selected shape exists.
272
+ */
273
+ copySelectedShapes: () => boolean;
274
+ /**
275
+ * Pastes the viewport's internal shape clipboard with the same offset behavior as web.
276
+ *
277
+ * Returns `false` when pasting is not currently possible.
278
+ */
279
+ pasteCopiedShapes: () => boolean;
280
+ /**
281
+ * Duplicates the current native selection without changing the clipboard buffer.
282
+ *
283
+ * Returns `false` when the viewport is not interactive, immutable, or has no selection.
284
+ */
285
+ duplicateSelectedShapes: () => boolean;
267
286
  };
268
287
  type NativeWorldPointerDownDetail = {
269
288
  readonly toolId: string;
package/dist/native.d.ts CHANGED
@@ -11,6 +11,7 @@ import { R as RemotePresencePeer } from './types-BMMPUak7.js';
11
11
 
12
12
  type NativeImagesMenuLabels = {
13
13
  title?: string;
14
+ dragHandle?: string;
14
15
  focus?: string;
15
16
  duplicate?: string;
16
17
  copy?: string;
@@ -264,6 +265,24 @@ type NativeVectorViewportHandle = {
264
265
  fitWorldRect: (worldRect: Rect, options?: {
265
266
  padding?: number;
266
267
  }) => void;
268
+ /**
269
+ * Copies the current native selection into the viewport's internal shape clipboard.
270
+ *
271
+ * Returns `false` when the viewport is not interactive or no selected shape exists.
272
+ */
273
+ copySelectedShapes: () => boolean;
274
+ /**
275
+ * Pastes the viewport's internal shape clipboard with the same offset behavior as web.
276
+ *
277
+ * Returns `false` when pasting is not currently possible.
278
+ */
279
+ pasteCopiedShapes: () => boolean;
280
+ /**
281
+ * Duplicates the current native selection without changing the clipboard buffer.
282
+ *
283
+ * Returns `false` when the viewport is not interactive, immutable, or has no selection.
284
+ */
285
+ duplicateSelectedShapes: () => boolean;
267
286
  };
268
287
  type NativeWorldPointerDownDetail = {
269
288
  readonly toolId: string;