@excalidraw/excalidraw 0.18.0-864353b → 0.18.0-9036812b6

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 (113) hide show
  1. package/dist/dev/{chunk-BBNNHA7I.js → chunk-CP5DND7P.js} +2 -2
  2. package/dist/dev/{chunk-BBNNHA7I.js.map → chunk-CP5DND7P.js.map} +1 -1
  3. package/dist/dev/chunk-FRLWKCNE.js +5668 -0
  4. package/dist/dev/chunk-FRLWKCNE.js.map +7 -0
  5. package/dist/dev/{chunk-7YMZV3TY.js → chunk-QF5FRM6O.js} +2 -2
  6. package/dist/dev/{chunk-7YMZV3TY.js.map → chunk-QF5FRM6O.js.map} +2 -2
  7. package/dist/dev/data/{image-OFYK7EOY.js → image-T2LJEHDP.js} +3 -3
  8. package/dist/dev/index.css +4 -0
  9. package/dist/dev/index.css.map +2 -2
  10. package/dist/dev/index.js +6280 -4106
  11. package/dist/dev/index.js.map +4 -4
  12. package/dist/dev/locales/{en-KIY5SGI3.js → en-SMAPCEOQ.js} +2 -2
  13. package/dist/dev/subset-shared.chunk.js +1 -1
  14. package/dist/dev/subset-worker.chunk.js +1 -1
  15. package/dist/prod/{chunk-UH6Q3EIV.js → chunk-A66AFZZU.js} +1 -1
  16. package/dist/prod/{chunk-OUULIERA.js → chunk-I4UNSFV6.js} +3 -3
  17. package/dist/prod/chunk-YZO7PSYQ.js +4 -0
  18. package/dist/prod/data/image-53OPA26C.js +1 -0
  19. package/dist/prod/index.css +1 -1
  20. package/dist/prod/index.js +25 -18
  21. package/dist/prod/locales/{en-GCLCIHXH.js → en-TYY6KWIJ.js} +1 -1
  22. package/dist/prod/subset-shared.chunk.js +1 -1
  23. package/dist/prod/subset-worker.chunk.js +1 -1
  24. package/dist/types/common/src/constants.d.ts +12 -2
  25. package/dist/types/common/src/utils.d.ts +3 -5
  26. package/dist/types/element/src/Scene.d.ts +1 -1
  27. package/dist/types/element/src/align.d.ts +2 -1
  28. package/dist/types/element/src/binding.d.ts +10 -7
  29. package/dist/types/element/src/bounds.d.ts +11 -3
  30. package/dist/types/element/src/collision.d.ts +18 -12
  31. package/dist/types/element/src/cropElement.d.ts +1 -1
  32. package/dist/types/element/src/delta.d.ts +37 -8
  33. package/dist/types/element/src/distance.d.ts +2 -2
  34. package/dist/types/element/src/distribute.d.ts +2 -1
  35. package/dist/types/element/src/fractionalIndex.d.ts +8 -2
  36. package/dist/types/element/src/frame.d.ts +2 -2
  37. package/dist/types/element/src/groups.d.ts +1 -0
  38. package/dist/types/element/src/index.d.ts +1 -3
  39. package/dist/types/element/src/linearElementEditor.d.ts +5 -7
  40. package/dist/types/element/src/mutateElement.d.ts +1 -1
  41. package/dist/types/element/src/resizeElements.d.ts +1 -0
  42. package/dist/types/element/src/selection.d.ts +1 -1
  43. package/dist/types/element/src/shape.d.ts +42 -0
  44. package/dist/types/element/src/store.d.ts +13 -8
  45. package/dist/types/element/src/transformHandles.d.ts +4 -4
  46. package/dist/types/element/src/typeChecks.d.ts +4 -0
  47. package/dist/types/element/src/types.d.ts +1 -1
  48. package/dist/types/element/src/utils.d.ts +16 -6
  49. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +9 -15
  50. package/dist/types/excalidraw/actions/actionAlign.d.ts +8 -8
  51. package/dist/types/excalidraw/actions/actionBoundText.d.ts +6 -10
  52. package/dist/types/excalidraw/actions/actionCanvas.d.ts +129 -155
  53. package/dist/types/excalidraw/actions/actionClipboard.d.ts +25 -36
  54. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +3 -5
  55. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +14 -20
  56. package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -4
  57. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  58. package/dist/types/excalidraw/actions/actionElementLink.d.ts +2 -4
  59. package/dist/types/excalidraw/actions/actionElementLock.d.ts +8 -12
  60. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +3 -5
  61. package/dist/types/excalidraw/actions/actionExport.d.ts +112 -130
  62. package/dist/types/excalidraw/actions/actionFinalize.d.ts +9 -12
  63. package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
  64. package/dist/types/excalidraw/actions/actionFrame.d.ts +62 -70
  65. package/dist/types/excalidraw/actions/actionGroup.d.ts +12 -16
  66. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +84 -55
  67. package/dist/types/excalidraw/actions/actionLink.d.ts +4 -6
  68. package/dist/types/excalidraw/actions/actionMenu.d.ts +10 -16
  69. package/dist/types/excalidraw/actions/actionNavigate.d.ts +6 -10
  70. package/dist/types/excalidraw/actions/actionProperties.d.ts +49 -79
  71. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +6 -8
  72. package/dist/types/excalidraw/actions/actionStyles.d.ts +7 -9
  73. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +5 -7
  74. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +5 -7
  75. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +4 -6
  76. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +5 -7
  77. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +5 -7
  78. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +5 -7
  79. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
  80. package/dist/types/excalidraw/appState.d.ts +20 -20
  81. package/dist/types/excalidraw/components/Actions.d.ts +0 -4
  82. package/dist/types/excalidraw/components/App.d.ts +14 -16
  83. package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
  84. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +11 -1
  85. package/dist/types/excalidraw/components/shapes.d.ts +1 -1
  86. package/dist/types/excalidraw/data/blob.d.ts +1 -1
  87. package/dist/types/excalidraw/data/reconcile.d.ts +1 -0
  88. package/dist/types/excalidraw/eraser/index.d.ts +0 -2
  89. package/dist/types/excalidraw/history.d.ts +21 -5
  90. package/dist/types/excalidraw/index.d.ts +1 -0
  91. package/dist/types/excalidraw/lasso/utils.d.ts +2 -1
  92. package/dist/types/excalidraw/renderer/helpers.d.ts +3 -3
  93. package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
  94. package/dist/types/excalidraw/scene/Renderer.d.ts +0 -1
  95. package/dist/types/excalidraw/types.d.ts +6 -8
  96. package/dist/types/math/src/constants.d.ts +3 -0
  97. package/dist/types/math/src/curve.d.ts +32 -0
  98. package/dist/types/math/src/index.d.ts +1 -0
  99. package/dist/types/math/src/rectangle.d.ts +2 -0
  100. package/dist/types/math/src/vector.d.ts +4 -2
  101. package/history.ts +108 -45
  102. package/package.json +12 -9
  103. package/dist/dev/chunk-LL55DS44.js +0 -23677
  104. package/dist/dev/chunk-LL55DS44.js.map +0 -7
  105. package/dist/prod/chunk-F44EGBV2.js +0 -33
  106. package/dist/prod/data/image-CUOH64HE.js +0 -1
  107. package/dist/types/element/src/Shape.d.ts +0 -17
  108. package/dist/types/element/src/ShapeCache.d.ts +0 -25
  109. package/dist/types/element/src/shapes.d.ts +0 -27
  110. package/dist/types/excalidraw/visualdebug.d.ts +0 -41
  111. package/dist/types/utils/src/collision.d.ts +0 -8
  112. /package/dist/dev/data/{image-OFYK7EOY.js.map → image-T2LJEHDP.js.map} +0 -0
  113. /package/dist/dev/locales/{en-KIY5SGI3.js.map → en-SMAPCEOQ.js.map} +0 -0
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { LinearElementEditor } from "@excalidraw/element";
3
2
  import type { ExcalidrawLinearElement } from "@excalidraw/element/types";
4
3
  export declare const actionToggleLinearEditor: {
5
4
  name: "toggleLinearEditor";
@@ -12,7 +11,39 @@ export declare const actionToggleLinearEditor: {
12
11
  predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
13
12
  perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties): {
14
13
  appState: {
15
- editingLinearElement: LinearElementEditor | null;
14
+ selectedLinearElement: {
15
+ isEditing: boolean;
16
+ elementId: string & {
17
+ _brand: "excalidrawLinearElementId";
18
+ };
19
+ selectedPointsIndices: readonly number[] | null;
20
+ pointerDownState: Readonly<{
21
+ prevSelectedPointsIndices: readonly number[] | null;
22
+ lastClickedPoint: number;
23
+ lastClickedIsEndPoint: boolean;
24
+ origin: Readonly<{
25
+ x: number;
26
+ y: number;
27
+ }> | null;
28
+ segmentMidpoint: {
29
+ value: import("@excalidraw/math").GlobalPoint | null;
30
+ index: number | null;
31
+ added: boolean;
32
+ };
33
+ }>;
34
+ isDragging: boolean;
35
+ lastUncommittedPoint: import("@excalidraw/math").LocalPoint | null;
36
+ pointerOffset: Readonly<{
37
+ x: number;
38
+ y: number;
39
+ }>;
40
+ startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
41
+ endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
42
+ hoverPointIndex: number;
43
+ segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
44
+ elbowed: boolean;
45
+ customLineAngle: number | null;
46
+ };
16
47
  contextMenu: {
17
48
  items: import("../components/ContextMenu").ContextMenuItems;
18
49
  top: number;
@@ -23,7 +54,7 @@ export declare const actionToggleLinearEditor: {
23
54
  errorMessage: import("react").ReactNode;
24
55
  activeEmbeddable: {
25
56
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
26
- state: "hover" | "active";
57
+ state: "active" | "hover";
27
58
  } | null;
28
59
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
29
60
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -89,7 +120,7 @@ export declare const actionToggleLinearEditor: {
89
120
  name: "imageExport" | "help" | "jsonExport";
90
121
  } | {
91
122
  name: "ttd";
92
- tab: "text-to-diagram" | "mermaid";
123
+ tab: "mermaid" | "text-to-diagram";
93
124
  } | {
94
125
  name: "commandPalette";
95
126
  } | {
@@ -161,9 +192,7 @@ export declare const actionToggleLinearEditor: {
161
192
  shown: true;
162
193
  data: import("../charts").Spreadsheet;
163
194
  };
164
- pendingImageElementId: string | null;
165
- showHyperlinkPopup: false | "info" | "editor";
166
- selectedLinearElement: LinearElementEditor | null;
195
+ showHyperlinkPopup: false | "editor" | "info";
167
196
  snapLines: readonly import("../snapping").SnapLine[];
168
197
  originSnapOffset: {
169
198
  x: number;
@@ -227,15 +256,21 @@ export declare const actionTogglePolygon: {
227
256
  frameId: string | null;
228
257
  boundElements: readonly Readonly<{
229
258
  id: string;
230
- type: "text" | "arrow";
259
+ type: "arrow" | "text";
231
260
  }>[] | null;
232
261
  updated: number;
233
262
  link: string | null;
234
263
  locked: boolean;
235
264
  customData?: Record<string, any> | undefined;
265
+ }> & Readonly<{
266
+ type: "line" | "arrow";
267
+ points: readonly import("@excalidraw/math").LocalPoint[];
268
+ lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
269
+ startBinding: import("@excalidraw/element/types").PointBinding | null;
270
+ endBinding: import("@excalidraw/element/types").PointBinding | null;
271
+ startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
272
+ endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
236
273
  }> & {
237
- type: "selection";
238
- } & {
239
274
  index: import("@excalidraw/element/types").FractionalIndex;
240
275
  }) | (Readonly<{
241
276
  id: string;
@@ -264,14 +299,14 @@ export declare const actionTogglePolygon: {
264
299
  frameId: string | null;
265
300
  boundElements: readonly Readonly<{
266
301
  id: string;
267
- type: "text" | "arrow";
302
+ type: "arrow" | "text";
268
303
  }>[] | null;
269
304
  updated: number;
270
305
  link: string | null;
271
306
  locked: boolean;
272
307
  customData?: Record<string, any> | undefined;
273
308
  }> & {
274
- type: "rectangle";
309
+ type: "selection";
275
310
  } & {
276
311
  index: import("@excalidraw/element/types").FractionalIndex;
277
312
  }) | (Readonly<{
@@ -301,14 +336,14 @@ export declare const actionTogglePolygon: {
301
336
  frameId: string | null;
302
337
  boundElements: readonly Readonly<{
303
338
  id: string;
304
- type: "text" | "arrow";
339
+ type: "arrow" | "text";
305
340
  }>[] | null;
306
341
  updated: number;
307
342
  link: string | null;
308
343
  locked: boolean;
309
344
  customData?: Record<string, any> | undefined;
310
345
  }> & {
311
- type: "diamond";
346
+ type: "rectangle";
312
347
  } & {
313
348
  index: import("@excalidraw/element/types").FractionalIndex;
314
349
  }) | (Readonly<{
@@ -338,14 +373,14 @@ export declare const actionTogglePolygon: {
338
373
  frameId: string | null;
339
374
  boundElements: readonly Readonly<{
340
375
  id: string;
341
- type: "text" | "arrow";
376
+ type: "arrow" | "text";
342
377
  }>[] | null;
343
378
  updated: number;
344
379
  link: string | null;
345
380
  locked: boolean;
346
381
  customData?: Record<string, any> | undefined;
347
382
  }> & {
348
- type: "ellipse";
383
+ type: "diamond";
349
384
  } & {
350
385
  index: import("@excalidraw/element/types").FractionalIndex;
351
386
  }) | (Readonly<{
@@ -375,26 +410,15 @@ export declare const actionTogglePolygon: {
375
410
  frameId: string | null;
376
411
  boundElements: readonly Readonly<{
377
412
  id: string;
378
- type: "text" | "arrow";
413
+ type: "arrow" | "text";
379
414
  }>[] | null;
380
415
  updated: number;
381
416
  link: string | null;
382
417
  locked: boolean;
383
418
  customData?: Record<string, any> | undefined;
384
- }> & Readonly<{
385
- type: "text";
386
- fontSize: number;
387
- fontFamily: number;
388
- text: string;
389
- textAlign: string;
390
- verticalAlign: string;
391
- containerId: string | null;
392
- originalText: string;
393
- autoResize: boolean;
394
- lineHeight: number & {
395
- _brand: "unitlessLineHeight";
396
- };
397
419
  }> & {
420
+ type: "ellipse";
421
+ } & {
398
422
  index: import("@excalidraw/element/types").FractionalIndex;
399
423
  }) | (Readonly<{
400
424
  id: string;
@@ -423,20 +447,14 @@ export declare const actionTogglePolygon: {
423
447
  frameId: string | null;
424
448
  boundElements: readonly Readonly<{
425
449
  id: string;
426
- type: "text" | "arrow";
450
+ type: "arrow" | "text";
427
451
  }>[] | null;
428
452
  updated: number;
429
453
  link: string | null;
430
454
  locked: boolean;
431
455
  customData?: Record<string, any> | undefined;
432
456
  }> & Readonly<{
433
- type: "line" | "arrow";
434
- points: readonly import("@excalidraw/math").LocalPoint[];
435
- lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
436
- startBinding: import("@excalidraw/element/types").PointBinding | null;
437
- endBinding: import("@excalidraw/element/types").PointBinding | null;
438
- startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
439
- endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
457
+ type: "embeddable";
440
458
  }> & {
441
459
  index: import("@excalidraw/element/types").FractionalIndex;
442
460
  }) | (Readonly<{
@@ -466,18 +484,17 @@ export declare const actionTogglePolygon: {
466
484
  frameId: string | null;
467
485
  boundElements: readonly Readonly<{
468
486
  id: string;
469
- type: "text" | "arrow";
487
+ type: "arrow" | "text";
470
488
  }>[] | null;
471
489
  updated: number;
472
490
  link: string | null;
473
491
  locked: boolean;
474
492
  customData?: Record<string, any> | undefined;
475
493
  }> & Readonly<{
476
- type: "freedraw";
477
- points: readonly import("@excalidraw/math").LocalPoint[];
478
- pressures: readonly number[];
479
- simulatePressure: boolean;
480
- lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
494
+ type: "iframe";
495
+ customData?: {
496
+ generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
497
+ } | undefined;
481
498
  }> & {
482
499
  index: import("@excalidraw/element/types").FractionalIndex;
483
500
  }) | (Readonly<{
@@ -507,7 +524,7 @@ export declare const actionTogglePolygon: {
507
524
  frameId: string | null;
508
525
  boundElements: readonly Readonly<{
509
526
  id: string;
510
- type: "text" | "arrow";
527
+ type: "arrow" | "text";
511
528
  }>[] | null;
512
529
  updated: number;
513
530
  link: string | null;
@@ -516,7 +533,7 @@ export declare const actionTogglePolygon: {
516
533
  }> & Readonly<{
517
534
  type: "image";
518
535
  fileId: import("@excalidraw/element/types").FileId | null;
519
- status: "error" | "pending" | "saved";
536
+ status: "pending" | "error" | "saved";
520
537
  scale: [number, number];
521
538
  crop: import("@excalidraw/element/types").ImageCrop | null;
522
539
  }> & {
@@ -548,7 +565,7 @@ export declare const actionTogglePolygon: {
548
565
  frameId: string | null;
549
566
  boundElements: readonly Readonly<{
550
567
  id: string;
551
- type: "text" | "arrow";
568
+ type: "arrow" | "text";
552
569
  }>[] | null;
553
570
  updated: number;
554
571
  link: string | null;
@@ -586,7 +603,7 @@ export declare const actionTogglePolygon: {
586
603
  frameId: string | null;
587
604
  boundElements: readonly Readonly<{
588
605
  id: string;
589
- type: "text" | "arrow";
606
+ type: "arrow" | "text";
590
607
  }>[] | null;
591
608
  updated: number;
592
609
  link: string | null;
@@ -624,17 +641,25 @@ export declare const actionTogglePolygon: {
624
641
  frameId: string | null;
625
642
  boundElements: readonly Readonly<{
626
643
  id: string;
627
- type: "text" | "arrow";
644
+ type: "arrow" | "text";
628
645
  }>[] | null;
629
646
  updated: number;
630
647
  link: string | null;
631
648
  locked: boolean;
632
649
  customData?: Record<string, any> | undefined;
633
650
  }> & Readonly<{
634
- type: "iframe";
635
- customData?: {
636
- generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
637
- } | undefined;
651
+ type: "text";
652
+ fontSize: number;
653
+ fontFamily: number;
654
+ text: string;
655
+ textAlign: string;
656
+ verticalAlign: string;
657
+ containerId: string | null;
658
+ originalText: string;
659
+ autoResize: boolean;
660
+ lineHeight: number & {
661
+ _brand: "unitlessLineHeight";
662
+ };
638
663
  }> & {
639
664
  index: import("@excalidraw/element/types").FractionalIndex;
640
665
  }) | (Readonly<{
@@ -664,14 +689,18 @@ export declare const actionTogglePolygon: {
664
689
  frameId: string | null;
665
690
  boundElements: readonly Readonly<{
666
691
  id: string;
667
- type: "text" | "arrow";
692
+ type: "arrow" | "text";
668
693
  }>[] | null;
669
694
  updated: number;
670
695
  link: string | null;
671
696
  locked: boolean;
672
697
  customData?: Record<string, any> | undefined;
673
698
  }> & Readonly<{
674
- type: "embeddable";
699
+ type: "freedraw";
700
+ points: readonly import("@excalidraw/math").LocalPoint[];
701
+ pressures: readonly number[];
702
+ simulatePressure: boolean;
703
+ lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
675
704
  }> & {
676
705
  index: import("@excalidraw/element/types").FractionalIndex;
677
706
  }))[];
@@ -18,7 +18,7 @@ export declare const actionLink: {
18
18
  errorMessage: import("react").ReactNode;
19
19
  activeEmbeddable: {
20
20
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
21
- state: "hover" | "active";
21
+ state: "active" | "hover";
22
22
  } | null;
23
23
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
24
24
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -37,7 +37,6 @@ export declare const actionLink: {
37
37
  editingFrame: string | null;
38
38
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
39
39
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
40
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
41
40
  activeTool: {
42
41
  lastActiveTool: import("../types").ActiveTool | null;
43
42
  locked: boolean;
@@ -84,7 +83,7 @@ export declare const actionLink: {
84
83
  name: "imageExport" | "help" | "jsonExport";
85
84
  } | {
86
85
  name: "ttd";
87
- tab: "text-to-diagram" | "mermaid";
86
+ tab: "mermaid" | "text-to-diagram";
88
87
  } | {
89
88
  name: "commandPalette";
90
89
  } | {
@@ -156,7 +155,6 @@ export declare const actionLink: {
156
155
  shown: true;
157
156
  data: import("../charts").Spreadsheet;
158
157
  };
159
- pendingImageElementId: string | null;
160
158
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
161
159
  snapLines: readonly import("../snapping").SnapLine[];
162
160
  originSnapOffset: {
@@ -183,9 +181,9 @@ export declare const actionLink: {
183
181
  category: "hyperlink";
184
182
  action: string;
185
183
  };
186
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
184
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
187
185
  predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState) => boolean;
188
186
  PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
189
187
  } & {
190
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
188
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
191
189
  };
@@ -18,7 +18,7 @@ export declare const actionToggleCanvasMenu: {
18
18
  errorMessage: import("react").ReactNode;
19
19
  activeEmbeddable: {
20
20
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
21
- state: "hover" | "active";
21
+ state: "active" | "hover";
22
22
  } | null;
23
23
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
24
24
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -37,7 +37,6 @@ export declare const actionToggleCanvasMenu: {
37
37
  editingFrame: string | null;
38
38
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
39
39
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
40
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
41
40
  activeTool: {
42
41
  lastActiveTool: import("../types").ActiveTool | null;
43
42
  locked: boolean;
@@ -84,7 +83,7 @@ export declare const actionToggleCanvasMenu: {
84
83
  name: "imageExport" | "help" | "jsonExport";
85
84
  } | {
86
85
  name: "ttd";
87
- tab: "text-to-diagram" | "mermaid";
86
+ tab: "mermaid" | "text-to-diagram";
88
87
  } | {
89
88
  name: "commandPalette";
90
89
  } | {
@@ -156,8 +155,7 @@ export declare const actionToggleCanvasMenu: {
156
155
  shown: true;
157
156
  data: import("../charts").Spreadsheet;
158
157
  };
159
- pendingImageElementId: string | null;
160
- showHyperlinkPopup: false | "info" | "editor";
158
+ showHyperlinkPopup: false | "editor" | "info";
161
159
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
162
160
  snapLines: readonly import("../snapping").SnapLine[];
163
161
  originSnapOffset: {
@@ -203,7 +201,7 @@ export declare const actionToggleEditMenu: {
203
201
  errorMessage: import("react").ReactNode;
204
202
  activeEmbeddable: {
205
203
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
206
- state: "hover" | "active";
204
+ state: "active" | "hover";
207
205
  } | null;
208
206
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
209
207
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -222,7 +220,6 @@ export declare const actionToggleEditMenu: {
222
220
  editingFrame: string | null;
223
221
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
224
222
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
225
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
226
223
  activeTool: {
227
224
  lastActiveTool: import("../types").ActiveTool | null;
228
225
  locked: boolean;
@@ -269,7 +266,7 @@ export declare const actionToggleEditMenu: {
269
266
  name: "imageExport" | "help" | "jsonExport";
270
267
  } | {
271
268
  name: "ttd";
272
- tab: "text-to-diagram" | "mermaid";
269
+ tab: "mermaid" | "text-to-diagram";
273
270
  } | {
274
271
  name: "commandPalette";
275
272
  } | {
@@ -341,8 +338,7 @@ export declare const actionToggleEditMenu: {
341
338
  shown: true;
342
339
  data: import("../charts").Spreadsheet;
343
340
  };
344
- pendingImageElementId: string | null;
345
- showHyperlinkPopup: false | "info" | "editor";
341
+ showHyperlinkPopup: false | "editor" | "info";
346
342
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
347
343
  snapLines: readonly import("../snapping").SnapLine[];
348
344
  originSnapOffset: {
@@ -393,7 +389,7 @@ export declare const actionShortcuts: {
393
389
  errorMessage: import("react").ReactNode;
394
390
  activeEmbeddable: {
395
391
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
396
- state: "hover" | "active";
392
+ state: "active" | "hover";
397
393
  } | null;
398
394
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
399
395
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -412,7 +408,6 @@ export declare const actionShortcuts: {
412
408
  editingFrame: string | null;
413
409
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
414
410
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
415
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
416
411
  activeTool: {
417
412
  lastActiveTool: import("../types").ActiveTool | null;
418
413
  locked: boolean;
@@ -521,8 +516,7 @@ export declare const actionShortcuts: {
521
516
  shown: true;
522
517
  data: import("../charts").Spreadsheet;
523
518
  };
524
- pendingImageElementId: string | null;
525
- showHyperlinkPopup: false | "info" | "editor";
519
+ showHyperlinkPopup: false | "editor" | "info";
526
520
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
527
521
  snapLines: readonly import("../snapping").SnapLine[];
528
522
  originSnapOffset: {
@@ -545,7 +539,7 @@ export declare const actionShortcuts: {
545
539
  };
546
540
  captureUpdate: "EVENTUALLY";
547
541
  };
548
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
542
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
549
543
  } & {
550
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
544
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
551
545
  };
@@ -20,7 +20,7 @@ export declare const actionGoToCollaborator: {
20
20
  errorMessage: import("react").ReactNode;
21
21
  activeEmbeddable: {
22
22
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
23
- state: "hover" | "active";
23
+ state: "active" | "hover";
24
24
  } | null;
25
25
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
26
26
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -39,7 +39,6 @@ export declare const actionGoToCollaborator: {
39
39
  editingFrame: string | null;
40
40
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
41
41
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
42
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
43
42
  activeTool: {
44
43
  lastActiveTool: import("../types").ActiveTool | null;
45
44
  locked: boolean;
@@ -87,7 +86,7 @@ export declare const actionGoToCollaborator: {
87
86
  name: "imageExport" | "help" | "jsonExport";
88
87
  } | {
89
88
  name: "ttd";
90
- tab: "text-to-diagram" | "mermaid";
89
+ tab: "mermaid" | "text-to-diagram";
91
90
  } | {
92
91
  name: "commandPalette";
93
92
  } | {
@@ -159,8 +158,7 @@ export declare const actionGoToCollaborator: {
159
158
  shown: true;
160
159
  data: import("../charts").Spreadsheet;
161
160
  };
162
- pendingImageElementId: string | null;
163
- showHyperlinkPopup: false | "info" | "editor";
161
+ showHyperlinkPopup: false | "editor" | "info";
164
162
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
165
163
  snapLines: readonly import("../snapping").SnapLine[];
166
164
  originSnapOffset: {
@@ -198,7 +196,7 @@ export declare const actionGoToCollaborator: {
198
196
  errorMessage: import("react").ReactNode;
199
197
  activeEmbeddable: {
200
198
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
201
- state: "hover" | "active";
199
+ state: "active" | "hover";
202
200
  } | null;
203
201
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
204
202
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -217,7 +215,6 @@ export declare const actionGoToCollaborator: {
217
215
  editingFrame: string | null;
218
216
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
219
217
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
220
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
221
218
  activeTool: {
222
219
  lastActiveTool: import("../types").ActiveTool | null;
223
220
  locked: boolean;
@@ -264,7 +261,7 @@ export declare const actionGoToCollaborator: {
264
261
  name: "imageExport" | "help" | "jsonExport";
265
262
  } | {
266
263
  name: "ttd";
267
- tab: "text-to-diagram" | "mermaid";
264
+ tab: "mermaid" | "text-to-diagram";
268
265
  } | {
269
266
  name: "commandPalette";
270
267
  } | {
@@ -336,8 +333,7 @@ export declare const actionGoToCollaborator: {
336
333
  shown: true;
337
334
  data: import("../charts").Spreadsheet;
338
335
  };
339
- pendingImageElementId: string | null;
340
- showHyperlinkPopup: false | "info" | "editor";
336
+ showHyperlinkPopup: false | "editor" | "info";
341
337
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
342
338
  snapLines: readonly import("../snapping").SnapLine[];
343
339
  originSnapOffset: {