@zsviczian/excalidraw 0.16.1-obsidian-7 → 0.17.0-obsidian-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.
Files changed (66) hide show
  1. package/dist/excalidraw.development.js +124 -80
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/dist/excalidraw.production.min.js.LICENSE.txt +1 -1
  4. package/main.js +7 -1
  5. package/package.json +1 -1
  6. package/types/actions/actionAddToLibrary.d.ts +27 -6
  7. package/types/actions/actionBoundText.d.ts +18 -4
  8. package/types/actions/actionCanvas.d.ts +118 -27
  9. package/types/actions/actionClipboard.d.ts +362 -18
  10. package/types/actions/actionDeleteSelected.d.ts +27 -6
  11. package/types/actions/actionElementLock.d.ts +18 -4
  12. package/types/actions/actionExport.d.ts +81 -18
  13. package/types/actions/actionFinalize.d.ts +18 -4
  14. package/types/actions/actionFrame.d.ts +27 -6
  15. package/types/actions/actionGroup.d.ts +21 -7
  16. package/types/actions/actionLinearEditor.d.ts +9 -2
  17. package/types/actions/actionMenu.d.ts +26 -19
  18. package/types/actions/actionProperties.d.ts +117 -26
  19. package/types/actions/actionSelectAll.d.ts +9 -2
  20. package/types/actions/actionStyles.d.ts +9 -2
  21. package/types/actions/actionToggleGridMode.d.ts +9 -2
  22. package/types/actions/actionToggleObjectsSnapMode.d.ts +9 -2
  23. package/types/actions/actionToggleStats.d.ts +9 -2
  24. package/types/actions/actionToggleViewMode.d.ts +9 -2
  25. package/types/actions/actionToggleZenMode.d.ts +9 -2
  26. package/types/actions/actionZindex.d.ts +2 -2
  27. package/types/actions/index.d.ts +1 -1
  28. package/types/actions/manager.d.ts +1 -1
  29. package/types/appState.d.ts +1 -1
  30. package/types/clipboard.d.ts +21 -3
  31. package/types/components/Actions.d.ts +3 -2
  32. package/types/components/App.d.ts +20 -12
  33. package/types/components/ContextMenu.d.ts +2 -1
  34. package/types/components/ImageExportDialog.d.ts +1 -1
  35. package/types/components/LayerUI.d.ts +1 -1
  36. package/types/components/MermaidToExcalidraw.d.ts +1 -1
  37. package/types/components/MobileMenu.d.ts +4 -3
  38. package/types/components/Modal.d.ts +3 -1
  39. package/types/constants.d.ts +7 -1
  40. package/types/data/index.d.ts +10 -2
  41. package/types/data/transform.d.ts +7 -3
  42. package/types/element/Hyperlink.d.ts +10 -3
  43. package/types/element/bounds.d.ts +11 -5
  44. package/types/element/embeddable.d.ts +10 -3
  45. package/types/element/linearElementEditor.d.ts +11 -3
  46. package/types/element/newElement.d.ts +3 -1
  47. package/types/element/resizeTest.d.ts +2 -1
  48. package/types/element/transformHandles.d.ts +2 -1
  49. package/types/element/typeChecks.d.ts +1 -1
  50. package/types/element/types.d.ts +1 -0
  51. package/types/errors.d.ts +5 -0
  52. package/types/frame.d.ts +12 -1
  53. package/types/hooks/useCreatePortalContainer.d.ts +6 -4
  54. package/types/math.d.ts +1 -0
  55. package/types/packages/bbox.d.ts +11 -0
  56. package/types/packages/excalidraw/index.d.ts +4 -3
  57. package/types/packages/excalidraw/webpack.preact.config.d.ts +170 -0
  58. package/types/packages/utils.d.ts +6 -3
  59. package/types/packages/withinBounds.d.ts +19 -0
  60. package/types/renderer/renderElement.d.ts +6 -1
  61. package/types/renderer/renderScene.d.ts +10 -5
  62. package/types/scene/Scene.d.ts +7 -2
  63. package/types/scene/export.d.ts +6 -6
  64. package/types/types.d.ts +29 -18
  65. package/types/utils.d.ts +8 -1
  66. package/types/zindex.d.ts +4 -4
@@ -94,7 +94,7 @@ export declare const actionChangeFillStyle: {
94
94
  name: string;
95
95
  tab?: string | undefined;
96
96
  } | null;
97
- openDialog: "imageExport" | "help" | "jsonExport" | null;
97
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
98
98
  defaultSidebarDockedPreference: boolean;
99
99
  lastPointerDownWith: import("../element/types").PointerType;
100
100
  selectedElementIds: Readonly<{
@@ -159,7 +159,14 @@ export declare const actionChangeFillStyle: {
159
159
  Regular: string;
160
160
  MajorGridFrequency?: number | undefined;
161
161
  };
162
- dynamicStyle: string;
162
+ dynamicStyle: {
163
+ [x: string]: string;
164
+ };
165
+ frameColor: {
166
+ stroke: string;
167
+ fill: string;
168
+ nameColor: string;
169
+ };
163
170
  invertBindingBehaviour: boolean;
164
171
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
165
172
  snapLines: readonly import("../snapping").SnapLine[];
@@ -251,7 +258,7 @@ export declare const actionChangeStrokeWidth: {
251
258
  name: string;
252
259
  tab?: string | undefined;
253
260
  } | null;
254
- openDialog: "imageExport" | "help" | "jsonExport" | null;
261
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
255
262
  defaultSidebarDockedPreference: boolean;
256
263
  lastPointerDownWith: import("../element/types").PointerType;
257
264
  selectedElementIds: Readonly<{
@@ -316,7 +323,14 @@ export declare const actionChangeStrokeWidth: {
316
323
  Regular: string;
317
324
  MajorGridFrequency?: number | undefined;
318
325
  };
319
- dynamicStyle: string;
326
+ dynamicStyle: {
327
+ [x: string]: string;
328
+ };
329
+ frameColor: {
330
+ stroke: string;
331
+ fill: string;
332
+ nameColor: string;
333
+ };
320
334
  invertBindingBehaviour: boolean;
321
335
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
322
336
  snapLines: readonly import("../snapping").SnapLine[];
@@ -408,7 +422,7 @@ export declare const actionChangeSloppiness: {
408
422
  name: string;
409
423
  tab?: string | undefined;
410
424
  } | null;
411
- openDialog: "imageExport" | "help" | "jsonExport" | null;
425
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
412
426
  defaultSidebarDockedPreference: boolean;
413
427
  lastPointerDownWith: import("../element/types").PointerType;
414
428
  selectedElementIds: Readonly<{
@@ -473,7 +487,14 @@ export declare const actionChangeSloppiness: {
473
487
  Regular: string;
474
488
  MajorGridFrequency?: number | undefined;
475
489
  };
476
- dynamicStyle: string;
490
+ dynamicStyle: {
491
+ [x: string]: string;
492
+ };
493
+ frameColor: {
494
+ stroke: string;
495
+ fill: string;
496
+ nameColor: string;
497
+ };
477
498
  invertBindingBehaviour: boolean;
478
499
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
479
500
  snapLines: readonly import("../snapping").SnapLine[];
@@ -565,7 +586,7 @@ export declare const actionChangeStrokeStyle: {
565
586
  name: string;
566
587
  tab?: string | undefined;
567
588
  } | null;
568
- openDialog: "imageExport" | "help" | "jsonExport" | null;
589
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
569
590
  defaultSidebarDockedPreference: boolean;
570
591
  lastPointerDownWith: import("../element/types").PointerType;
571
592
  selectedElementIds: Readonly<{
@@ -630,7 +651,14 @@ export declare const actionChangeStrokeStyle: {
630
651
  Regular: string;
631
652
  MajorGridFrequency?: number | undefined;
632
653
  };
633
- dynamicStyle: string;
654
+ dynamicStyle: {
655
+ [x: string]: string;
656
+ };
657
+ frameColor: {
658
+ stroke: string;
659
+ fill: string;
660
+ nameColor: string;
661
+ };
634
662
  invertBindingBehaviour: boolean;
635
663
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
636
664
  snapLines: readonly import("../snapping").SnapLine[];
@@ -722,7 +750,7 @@ export declare const actionChangeOpacity: {
722
750
  name: string;
723
751
  tab?: string | undefined;
724
752
  } | null;
725
- openDialog: "imageExport" | "help" | "jsonExport" | null;
753
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
726
754
  defaultSidebarDockedPreference: boolean;
727
755
  lastPointerDownWith: import("../element/types").PointerType;
728
756
  selectedElementIds: Readonly<{
@@ -787,7 +815,14 @@ export declare const actionChangeOpacity: {
787
815
  Regular: string;
788
816
  MajorGridFrequency?: number | undefined;
789
817
  };
790
- dynamicStyle: string;
818
+ dynamicStyle: {
819
+ [x: string]: string;
820
+ };
821
+ frameColor: {
822
+ stroke: string;
823
+ fill: string;
824
+ nameColor: string;
825
+ };
791
826
  invertBindingBehaviour: boolean;
792
827
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
793
828
  snapLines: readonly import("../snapping").SnapLine[];
@@ -879,7 +914,7 @@ export declare const actionChangeFontSize: {
879
914
  name: string;
880
915
  tab?: string | undefined;
881
916
  } | null;
882
- openDialog: "imageExport" | "help" | "jsonExport" | null;
917
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
883
918
  defaultSidebarDockedPreference: boolean;
884
919
  lastPointerDownWith: import("../element/types").PointerType;
885
920
  selectedElementIds: Readonly<{
@@ -944,7 +979,14 @@ export declare const actionChangeFontSize: {
944
979
  Regular: string;
945
980
  MajorGridFrequency?: number | undefined;
946
981
  };
947
- dynamicStyle: string;
982
+ dynamicStyle: {
983
+ [x: string]: string;
984
+ };
985
+ frameColor: {
986
+ stroke: string;
987
+ fill: string;
988
+ nameColor: string;
989
+ };
948
990
  invertBindingBehaviour: boolean;
949
991
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
950
992
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1036,7 +1078,7 @@ export declare const actionDecreaseFontSize: {
1036
1078
  name: string;
1037
1079
  tab?: string | undefined;
1038
1080
  } | null;
1039
- openDialog: "imageExport" | "help" | "jsonExport" | null;
1081
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
1040
1082
  defaultSidebarDockedPreference: boolean;
1041
1083
  lastPointerDownWith: import("../element/types").PointerType;
1042
1084
  selectedElementIds: Readonly<{
@@ -1101,7 +1143,14 @@ export declare const actionDecreaseFontSize: {
1101
1143
  Regular: string;
1102
1144
  MajorGridFrequency?: number | undefined;
1103
1145
  };
1104
- dynamicStyle: string;
1146
+ dynamicStyle: {
1147
+ [x: string]: string;
1148
+ };
1149
+ frameColor: {
1150
+ stroke: string;
1151
+ fill: string;
1152
+ nameColor: string;
1153
+ };
1105
1154
  invertBindingBehaviour: boolean;
1106
1155
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1107
1156
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1193,7 +1242,7 @@ export declare const actionIncreaseFontSize: {
1193
1242
  name: string;
1194
1243
  tab?: string | undefined;
1195
1244
  } | null;
1196
- openDialog: "imageExport" | "help" | "jsonExport" | null;
1245
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
1197
1246
  defaultSidebarDockedPreference: boolean;
1198
1247
  lastPointerDownWith: import("../element/types").PointerType;
1199
1248
  selectedElementIds: Readonly<{
@@ -1258,7 +1307,14 @@ export declare const actionIncreaseFontSize: {
1258
1307
  Regular: string;
1259
1308
  MajorGridFrequency?: number | undefined;
1260
1309
  };
1261
- dynamicStyle: string;
1310
+ dynamicStyle: {
1311
+ [x: string]: string;
1312
+ };
1313
+ frameColor: {
1314
+ stroke: string;
1315
+ fill: string;
1316
+ nameColor: string;
1317
+ };
1262
1318
  invertBindingBehaviour: boolean;
1263
1319
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1264
1320
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1350,7 +1406,7 @@ export declare const actionChangeFontFamily: {
1350
1406
  name: string;
1351
1407
  tab?: string | undefined;
1352
1408
  } | null;
1353
- openDialog: "imageExport" | "help" | "jsonExport" | null;
1409
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
1354
1410
  defaultSidebarDockedPreference: boolean;
1355
1411
  lastPointerDownWith: import("../element/types").PointerType;
1356
1412
  selectedElementIds: Readonly<{
@@ -1415,7 +1471,14 @@ export declare const actionChangeFontFamily: {
1415
1471
  Regular: string;
1416
1472
  MajorGridFrequency?: number | undefined;
1417
1473
  };
1418
- dynamicStyle: string;
1474
+ dynamicStyle: {
1475
+ [x: string]: string;
1476
+ };
1477
+ frameColor: {
1478
+ stroke: string;
1479
+ fill: string;
1480
+ nameColor: string;
1481
+ };
1419
1482
  invertBindingBehaviour: boolean;
1420
1483
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1421
1484
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1507,7 +1570,7 @@ export declare const actionChangeTextAlign: {
1507
1570
  name: string;
1508
1571
  tab?: string | undefined;
1509
1572
  } | null;
1510
- openDialog: "imageExport" | "help" | "jsonExport" | null;
1573
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
1511
1574
  defaultSidebarDockedPreference: boolean;
1512
1575
  lastPointerDownWith: import("../element/types").PointerType;
1513
1576
  selectedElementIds: Readonly<{
@@ -1572,7 +1635,14 @@ export declare const actionChangeTextAlign: {
1572
1635
  Regular: string;
1573
1636
  MajorGridFrequency?: number | undefined;
1574
1637
  };
1575
- dynamicStyle: string;
1638
+ dynamicStyle: {
1639
+ [x: string]: string;
1640
+ };
1641
+ frameColor: {
1642
+ stroke: string;
1643
+ fill: string;
1644
+ nameColor: string;
1645
+ };
1576
1646
  invertBindingBehaviour: boolean;
1577
1647
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1578
1648
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1666,7 +1736,7 @@ export declare const actionChangeVerticalAlign: {
1666
1736
  name: string;
1667
1737
  tab?: string | undefined;
1668
1738
  } | null;
1669
- openDialog: "imageExport" | "help" | "jsonExport" | null;
1739
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
1670
1740
  defaultSidebarDockedPreference: boolean;
1671
1741
  lastPointerDownWith: import("../element/types").PointerType;
1672
1742
  selectedElementIds: Readonly<{
@@ -1731,7 +1801,14 @@ export declare const actionChangeVerticalAlign: {
1731
1801
  Regular: string;
1732
1802
  MajorGridFrequency?: number | undefined;
1733
1803
  };
1734
- dynamicStyle: string;
1804
+ dynamicStyle: {
1805
+ [x: string]: string;
1806
+ };
1807
+ frameColor: {
1808
+ stroke: string;
1809
+ fill: string;
1810
+ nameColor: string;
1811
+ };
1735
1812
  invertBindingBehaviour: boolean;
1736
1813
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1737
1814
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1823,7 +1900,7 @@ export declare const actionChangeRoundness: {
1823
1900
  name: string;
1824
1901
  tab?: string | undefined;
1825
1902
  } | null;
1826
- openDialog: "imageExport" | "help" | "jsonExport" | null;
1903
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
1827
1904
  defaultSidebarDockedPreference: boolean;
1828
1905
  lastPointerDownWith: import("../element/types").PointerType;
1829
1906
  selectedElementIds: Readonly<{
@@ -1888,7 +1965,14 @@ export declare const actionChangeRoundness: {
1888
1965
  Regular: string;
1889
1966
  MajorGridFrequency?: number | undefined;
1890
1967
  };
1891
- dynamicStyle: string;
1968
+ dynamicStyle: {
1969
+ [x: string]: string;
1970
+ };
1971
+ frameColor: {
1972
+ stroke: string;
1973
+ fill: string;
1974
+ nameColor: string;
1975
+ };
1892
1976
  invertBindingBehaviour: boolean;
1893
1977
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1894
1978
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1983,7 +2067,7 @@ export declare const actionChangeArrowhead: {
1983
2067
  name: string;
1984
2068
  tab?: string | undefined;
1985
2069
  } | null;
1986
- openDialog: "imageExport" | "help" | "jsonExport" | null;
2070
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
1987
2071
  defaultSidebarDockedPreference: boolean;
1988
2072
  lastPointerDownWith: import("../element/types").PointerType;
1989
2073
  selectedElementIds: Readonly<{
@@ -2048,7 +2132,14 @@ export declare const actionChangeArrowhead: {
2048
2132
  Regular: string;
2049
2133
  MajorGridFrequency?: number | undefined;
2050
2134
  };
2051
- dynamicStyle: string;
2135
+ dynamicStyle: {
2136
+ [x: string]: string;
2137
+ };
2138
+ frameColor: {
2139
+ stroke: string;
2140
+ fill: string;
2141
+ nameColor: string;
2142
+ };
2052
2143
  invertBindingBehaviour: boolean;
2053
2144
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
2054
2145
  snapLines: readonly import("../snapping").SnapLine[];
@@ -85,7 +85,7 @@ export declare const actionSelectAll: {
85
85
  name: string;
86
86
  tab?: string | undefined;
87
87
  } | null;
88
- openDialog: "imageExport" | "help" | "jsonExport" | null;
88
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
89
89
  defaultSidebarDockedPreference: boolean;
90
90
  lastPointerDownWith: import("../element/types").PointerType;
91
91
  previousSelectedElementIds: {
@@ -143,7 +143,14 @@ export declare const actionSelectAll: {
143
143
  Regular: string;
144
144
  MajorGridFrequency?: number | undefined;
145
145
  };
146
- dynamicStyle: string;
146
+ dynamicStyle: {
147
+ [x: string]: string;
148
+ };
149
+ frameColor: {
150
+ stroke: string;
151
+ fill: string;
152
+ nameColor: string;
153
+ };
147
154
  invertBindingBehaviour: boolean;
148
155
  snapLines: readonly import("../snapping").SnapLine[];
149
156
  originSnapOffset: {
@@ -79,7 +79,7 @@ export declare const actionCopyStyles: {
79
79
  name: string;
80
80
  tab?: string | undefined;
81
81
  } | null;
82
- openDialog: "imageExport" | "help" | "jsonExport" | null;
82
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
83
83
  defaultSidebarDockedPreference: boolean;
84
84
  lastPointerDownWith: import("../element/types").PointerType;
85
85
  selectedElementIds: Readonly<{
@@ -139,7 +139,14 @@ export declare const actionCopyStyles: {
139
139
  Regular: string;
140
140
  MajorGridFrequency?: number | undefined;
141
141
  };
142
- dynamicStyle: string;
142
+ dynamicStyle: {
143
+ [x: string]: string;
144
+ };
145
+ frameColor: {
146
+ stroke: string;
147
+ fill: string;
148
+ nameColor: string;
149
+ };
143
150
  invertBindingBehaviour: boolean;
144
151
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
145
152
  snapLines: readonly import("../snapping").SnapLine[];
@@ -80,7 +80,7 @@ export declare const actionToggleGridMode: {
80
80
  name: string;
81
81
  tab?: string | undefined;
82
82
  } | null;
83
- openDialog: "imageExport" | "help" | "jsonExport" | null;
83
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
84
84
  defaultSidebarDockedPreference: boolean;
85
85
  lastPointerDownWith: import("../element/types").PointerType;
86
86
  selectedElementIds: Readonly<{
@@ -144,7 +144,14 @@ export declare const actionToggleGridMode: {
144
144
  Regular: string;
145
145
  MajorGridFrequency?: number | undefined;
146
146
  };
147
- dynamicStyle: string;
147
+ dynamicStyle: {
148
+ [x: string]: string;
149
+ };
150
+ frameColor: {
151
+ stroke: string;
152
+ fill: string;
153
+ nameColor: string;
154
+ };
148
155
  invertBindingBehaviour: boolean;
149
156
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
150
157
  snapLines: readonly import("../snapping").SnapLine[];
@@ -79,7 +79,7 @@ export declare const actionToggleObjectsSnapMode: {
79
79
  name: string;
80
80
  tab?: string | undefined;
81
81
  } | null;
82
- openDialog: "imageExport" | "help" | "jsonExport" | null;
82
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
83
83
  defaultSidebarDockedPreference: boolean;
84
84
  lastPointerDownWith: import("../element/types").PointerType;
85
85
  selectedElementIds: Readonly<{
@@ -143,7 +143,14 @@ export declare const actionToggleObjectsSnapMode: {
143
143
  Regular: string;
144
144
  MajorGridFrequency?: number | undefined;
145
145
  };
146
- dynamicStyle: string;
146
+ dynamicStyle: {
147
+ [x: string]: string;
148
+ };
149
+ frameColor: {
150
+ stroke: string;
151
+ fill: string;
152
+ nameColor: string;
153
+ };
147
154
  invertBindingBehaviour: boolean;
148
155
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
149
156
  snapLines: readonly import("../snapping").SnapLine[];
@@ -77,7 +77,7 @@ export declare const actionToggleStats: {
77
77
  name: string;
78
78
  tab?: string | undefined;
79
79
  } | null;
80
- openDialog: "imageExport" | "help" | "jsonExport" | null;
80
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
81
81
  defaultSidebarDockedPreference: boolean;
82
82
  lastPointerDownWith: import("../element/types").PointerType;
83
83
  selectedElementIds: Readonly<{
@@ -141,7 +141,14 @@ export declare const actionToggleStats: {
141
141
  Regular: string;
142
142
  MajorGridFrequency?: number | undefined;
143
143
  };
144
- dynamicStyle: string;
144
+ dynamicStyle: {
145
+ [x: string]: string;
146
+ };
147
+ frameColor: {
148
+ stroke: string;
149
+ fill: string;
150
+ nameColor: string;
151
+ };
145
152
  invertBindingBehaviour: boolean;
146
153
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
147
154
  snapLines: readonly import("../snapping").SnapLine[];
@@ -78,7 +78,7 @@ export declare const actionToggleViewMode: {
78
78
  name: string;
79
79
  tab?: string | undefined;
80
80
  } | null;
81
- openDialog: "imageExport" | "help" | "jsonExport" | null;
81
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
82
82
  defaultSidebarDockedPreference: boolean;
83
83
  lastPointerDownWith: import("../element/types").PointerType;
84
84
  selectedElementIds: Readonly<{
@@ -142,7 +142,14 @@ export declare const actionToggleViewMode: {
142
142
  Regular: string;
143
143
  MajorGridFrequency?: number | undefined;
144
144
  };
145
- dynamicStyle: string;
145
+ dynamicStyle: {
146
+ [x: string]: string;
147
+ };
148
+ frameColor: {
149
+ stroke: string;
150
+ fill: string;
151
+ nameColor: string;
152
+ };
146
153
  invertBindingBehaviour: boolean;
147
154
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
148
155
  snapLines: readonly import("../snapping").SnapLine[];
@@ -78,7 +78,7 @@ export declare const actionToggleZenMode: {
78
78
  name: string;
79
79
  tab?: string | undefined;
80
80
  } | null;
81
- openDialog: "imageExport" | "help" | "jsonExport" | null;
81
+ openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
82
82
  defaultSidebarDockedPreference: boolean;
83
83
  lastPointerDownWith: import("../element/types").PointerType;
84
84
  selectedElementIds: Readonly<{
@@ -142,7 +142,14 @@ export declare const actionToggleZenMode: {
142
142
  Regular: string;
143
143
  MajorGridFrequency?: number | undefined;
144
144
  };
145
- dynamicStyle: string;
145
+ dynamicStyle: {
146
+ [x: string]: string;
147
+ };
148
+ frameColor: {
149
+ stroke: string;
150
+ fill: string;
151
+ nameColor: string;
152
+ };
146
153
  invertBindingBehaviour: boolean;
147
154
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
148
155
  snapLines: readonly import("../snapping").SnapLine[];
@@ -39,7 +39,7 @@ export declare const actionSendToBack: {
39
39
  category: "element";
40
40
  };
41
41
  perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
42
- elements: import("../element/types").ExcalidrawElement[];
42
+ elements: readonly import("../element/types").ExcalidrawElement[] | import("../element/types").ExcalidrawElement[];
43
43
  appState: Readonly<import("../types").AppState>;
44
44
  commitToHistory: true;
45
45
  };
@@ -55,7 +55,7 @@ export declare const actionBringToFront: {
55
55
  category: "element";
56
56
  };
57
57
  perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
58
- elements: import("../element/types").ExcalidrawElement[];
58
+ elements: readonly import("../element/types").ExcalidrawElement[] | import("../element/types").ExcalidrawElement[];
59
59
  appState: Readonly<import("../types").AppState>;
60
60
  commitToHistory: true;
61
61
  };
@@ -7,7 +7,7 @@ export { actionChangeViewBackgroundColor, actionClearCanvas, actionZoomIn, actio
7
7
  export { actionFinalize } from "./actionFinalize";
8
8
  export { actionChangeProjectName, actionChangeExportBackground, actionSaveToActiveFile, actionSaveFileToDisk, actionLoadScene, } from "./actionExport";
9
9
  export { actionCopyStyles, actionPasteStyles } from "./actionStyles";
10
- export { actionToggleCanvasMenu, actionToggleEditMenu, actionFullScreen, actionShortcuts, } from "./actionMenu";
10
+ export { actionToggleCanvasMenu, actionToggleEditMenu, actionShortcuts, } from "./actionMenu";
11
11
  export { actionGroup, actionUngroup } from "./actionGroup";
12
12
  export { actionGoToCollaborator } from "./actionNavigate";
13
13
  export { actionAddToLibrary } from "./actionAddToLibrary";
@@ -12,7 +12,7 @@ export declare class ActionManager {
12
12
  registerAction(action: Action): void;
13
13
  registerAll(actions: readonly Action[]): void;
14
14
  handleKeyDown(event: React.KeyboardEvent | KeyboardEvent): boolean;
15
- executeAction(action: Action, source?: ActionSource, value?: any): void;
15
+ executeAction<T extends Action>(action: T, source?: ActionSource, value?: Parameters<T["perform"]>[2]): void;
16
16
  /**
17
17
  * @param data additional data sent to the PanelComponent
18
18
  */
@@ -5,7 +5,6 @@ export declare const clearAppStateForLocalStorage: (appState: Partial<AppState>)
5
5
  lastActiveTool: import("./types").ActiveTool | null;
6
6
  locked: boolean;
7
7
  } & import("./types").ActiveTool) | undefined;
8
- name?: string | undefined;
9
8
  showWelcomeScreen?: boolean | undefined;
10
9
  penMode?: boolean | undefined;
11
10
  penDetected?: boolean | undefined;
@@ -31,6 +30,7 @@ export declare const clearAppStateForLocalStorage: (appState: Partial<AppState>)
31
30
  scrollY?: number | undefined;
32
31
  cursorButton?: "up" | "down" | undefined;
33
32
  scrolledOutside?: boolean | undefined;
33
+ name?: string | undefined;
34
34
  zoom?: Readonly<{
35
35
  value: NormalizedZoomValue;
36
36
  }> | undefined;
@@ -1,6 +1,7 @@
1
1
  import { ExcalidrawElement, NonDeletedExcalidrawElement } from "./element/types";
2
2
  import { BinaryFiles } from "./types";
3
3
  import { Spreadsheet } from "./charts";
4
+ import { ALLOWED_PASTE_MIME_TYPES } from "./constants";
4
5
  export type PastedMixedContent = {
5
6
  type: "text" | "imageUrl";
6
7
  value: string;
@@ -14,13 +15,30 @@ export interface ClipboardData {
14
15
  errorMessage?: string;
15
16
  programmaticAPI?: boolean;
16
17
  }
18
+ type AllowedPasteMimeTypes = typeof ALLOWED_PASTE_MIME_TYPES[number];
17
19
  export declare const probablySupportsClipboardReadText: boolean;
18
20
  export declare const probablySupportsClipboardWriteText: boolean;
19
21
  export declare const probablySupportsClipboardBlob: boolean;
20
- export declare const copyToClipboard: (elements: readonly NonDeletedExcalidrawElement[], files: BinaryFiles | null) => Promise<string | undefined>;
22
+ export declare const createPasteEvent: ({ types, files, }: {
23
+ types?: {
24
+ "text/plain"?: string | undefined;
25
+ "text/html"?: string | undefined;
26
+ } | undefined;
27
+ files?: File[] | undefined;
28
+ }) => ClipboardEvent;
29
+ export declare const serializeAsClipboardJSON: ({ elements, files, }: {
30
+ elements: readonly NonDeletedExcalidrawElement[];
31
+ files: BinaryFiles | null;
32
+ }) => string;
33
+ export declare const copyToClipboard: (elements: readonly NonDeletedExcalidrawElement[], files: BinaryFiles | null, clipboardEvent?: ClipboardEvent | null) => Promise<void>;
34
+ export declare const readSystemClipboard: () => Promise<{
35
+ "text/plain"?: string | undefined;
36
+ "text/html"?: string | undefined;
37
+ }>;
21
38
  /**
22
39
  * Attempts to parse clipboard. Prefers system clipboard.
23
40
  */
24
- export declare const parseClipboard: (event: ClipboardEvent | null, isPlainPaste?: boolean) => Promise<ClipboardData>;
41
+ export declare const parseClipboard: (event: ClipboardEvent, isPlainPaste?: boolean) => Promise<ClipboardData>;
25
42
  export declare const copyBlobToClipboardAsPng: (blob: Blob | Promise<Blob>) => Promise<void>;
26
- export declare const copyTextToSystemClipboard: (text: string | null) => Promise<void>;
43
+ export declare const copyTextToSystemClipboard: (text: string | null, clipboardEvent?: ClipboardEvent | null) => Promise<void>;
44
+ export {};
@@ -1,16 +1,17 @@
1
1
  import { ActionManager } from "../actions/manager";
2
2
  import { ExcalidrawElement } from "../element/types";
3
- import { AppClassProperties, UIAppState, Zoom } from "../types";
3
+ import { AppClassProperties, AppProps, UIAppState, Zoom } from "../types";
4
4
  import "./Actions.scss";
5
5
  export declare const SelectedShapeActions: ({ appState, elements, renderAction, }: {
6
6
  appState: UIAppState;
7
7
  elements: readonly ExcalidrawElement[];
8
8
  renderAction: ActionManager["renderAction"];
9
9
  }) => import("react/jsx-runtime").JSX.Element;
10
- export declare const ShapesSwitcher: ({ activeTool, appState, app, }: {
10
+ export declare const ShapesSwitcher: ({ activeTool, appState, app, UIOptions, }: {
11
11
  activeTool: UIAppState["activeTool"];
12
12
  appState: UIAppState;
13
13
  app: AppClassProperties;
14
+ UIOptions: AppProps["UIOptions"];
14
15
  }) => import("react/jsx-runtime").JSX.Element;
15
16
  export declare const ZoomActions: ({ renderAction, zoom, trayMode, }: {
16
17
  renderAction: ActionManager["renderAction"];