@zsviczian/excalidraw 0.17.6-3 → 0.17.6-31

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 (148) hide show
  1. package/dist/excalidraw.development.js +13100 -1540
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/dist/excalidraw.production.min.js.LICENSE.txt +21 -1
  4. package/dist/styles.development.css +490 -376
  5. package/dist/styles.production.css +10 -8
  6. package/package.json +5 -4
  7. package/types/excalidraw/actions/actionAddToLibrary.d.ts +27 -3
  8. package/types/excalidraw/actions/actionAlign.d.ts +7 -6
  9. package/types/excalidraw/actions/actionBoundText.d.ts +18 -2
  10. package/types/excalidraw/actions/actionCanvas.d.ts +126 -14
  11. package/types/excalidraw/actions/actionClipboard.d.ts +61 -9
  12. package/types/excalidraw/actions/actionCropEditor.d.ts +222 -0
  13. package/types/excalidraw/actions/actionDeleteSelected.d.ts +34 -6
  14. package/types/excalidraw/actions/actionElementLink.d.ts +244 -0
  15. package/types/excalidraw/actions/actionElementLock.d.ts +18 -2
  16. package/types/excalidraw/actions/actionExport.d.ts +77 -8
  17. package/types/excalidraw/actions/actionFinalize.d.ts +18 -2
  18. package/types/excalidraw/actions/actionFrame.d.ts +533 -4
  19. package/types/excalidraw/actions/actionGroup.d.ts +18 -2
  20. package/types/excalidraw/actions/actionLinearEditor.d.ts +9 -1
  21. package/types/excalidraw/actions/actionLink.d.ts +10 -2
  22. package/types/excalidraw/actions/actionMenu.d.ts +23 -2
  23. package/types/excalidraw/actions/actionNavigate.d.ts +18 -2
  24. package/types/excalidraw/actions/actionProperties.d.ts +135 -15
  25. package/types/excalidraw/actions/actionSelectAll.d.ts +9 -1
  26. package/types/excalidraw/actions/actionStyles.d.ts +9 -1
  27. package/types/excalidraw/actions/actionToggleGridMode.d.ts +9 -1
  28. package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +9 -1
  29. package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +14 -1
  30. package/types/excalidraw/actions/actionToggleStats.d.ts +9 -1
  31. package/types/excalidraw/actions/actionToggleViewMode.d.ts +9 -1
  32. package/types/excalidraw/actions/actionToggleZenMode.d.ts +9 -1
  33. package/types/excalidraw/actions/index.d.ts +1 -0
  34. package/types/excalidraw/actions/shortcuts.d.ts +1 -1
  35. package/types/excalidraw/actions/types.d.ts +1 -1
  36. package/types/excalidraw/align.d.ts +2 -1
  37. package/types/excalidraw/change.d.ts +2 -2
  38. package/types/excalidraw/clipboard.d.ts +27 -5
  39. package/types/excalidraw/components/Actions.d.ts +2 -1
  40. package/types/excalidraw/components/ActiveConfirmDialog.d.ts +1 -1
  41. package/types/excalidraw/components/App.d.ts +21 -5
  42. package/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  43. package/types/excalidraw/components/ElementLinkDialog.d.ts +11 -0
  44. package/types/excalidraw/components/EyeDropper.d.ts +1 -1
  45. package/types/excalidraw/components/IconPicker.d.ts +2 -2
  46. package/types/excalidraw/components/LayerUI.d.ts +2 -1
  47. package/types/excalidraw/components/LibraryMenu.d.ts +1 -1
  48. package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +1 -1
  49. package/types/excalidraw/components/Range.d.ts +8 -0
  50. package/types/excalidraw/components/SearchMenu.d.ts +1 -1
  51. package/types/excalidraw/components/Sidebar/Sidebar.d.ts +1 -1
  52. package/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
  53. package/types/excalidraw/components/Stats/utils.d.ts +1 -1
  54. package/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +1 -7
  55. package/types/excalidraw/components/TTDDialog/MermaidToExcalidrawLib.d.ts +10 -0
  56. package/types/excalidraw/components/TTDDialog/common.d.ts +2 -2
  57. package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +1 -1
  58. package/types/excalidraw/components/hyperlink/helpers.d.ts +1 -0
  59. package/types/excalidraw/components/icons.d.ts +11 -0
  60. package/types/excalidraw/constants.d.ts +5 -1
  61. package/types/excalidraw/context/tunnels.d.ts +2 -1
  62. package/types/excalidraw/data/blob.d.ts +4 -0
  63. package/types/excalidraw/data/encode.d.ts +6 -5
  64. package/types/excalidraw/data/filesystem.d.ts +2 -1
  65. package/types/excalidraw/data/image.d.ts +0 -6
  66. package/types/excalidraw/data/library.d.ts +9 -3
  67. package/types/excalidraw/data/url.d.ts +0 -1
  68. package/types/excalidraw/dist/excalidraw.production.min.d.ts +3 -1
  69. package/types/excalidraw/editor-jotai.d.ts +56 -0
  70. package/types/excalidraw/element/binding.d.ts +10 -7
  71. package/types/excalidraw/element/cropElement.d.ts +19 -0
  72. package/types/excalidraw/element/elbowArrow.d.ts +16 -0
  73. package/types/excalidraw/element/elementLink.d.ts +13 -0
  74. package/types/excalidraw/element/embeddable.d.ts +9 -1
  75. package/types/excalidraw/element/flowchart.d.ts +1 -1
  76. package/types/excalidraw/element/heading.d.ts +5 -1
  77. package/types/excalidraw/element/image.d.ts +1 -1
  78. package/types/excalidraw/element/linearElementEditor.d.ts +9 -10
  79. package/types/excalidraw/element/mutateElement.d.ts +3 -1
  80. package/types/excalidraw/element/newElement.d.ts +9 -7
  81. package/types/excalidraw/element/resizeElements.d.ts +27 -5
  82. package/types/excalidraw/element/textElement.d.ts +14 -4
  83. package/types/excalidraw/element/textWrapping.d.ts +13 -0
  84. package/types/excalidraw/element/transformHandles.d.ts +1 -1
  85. package/types/excalidraw/element/types.d.ts +33 -1
  86. package/types/excalidraw/errors.d.ts +7 -0
  87. package/types/excalidraw/fonts/{woff2/Cascadia → Cascadia}/index.d.ts +1 -1
  88. package/types/excalidraw/fonts/ComicShanns/index.d.ts +2 -0
  89. package/types/excalidraw/fonts/{woff2/Emoji → Emoji}/index.d.ts +1 -1
  90. package/types/excalidraw/fonts/ExcalidrawFontFace.d.ts +2 -8
  91. package/types/excalidraw/fonts/{woff2/Excalifont → Excalifont}/index.d.ts +1 -1
  92. package/types/excalidraw/fonts/Fonts.d.ts +100 -0
  93. package/types/excalidraw/fonts/{woff2/Helvetica → Helvetica}/index.d.ts +1 -1
  94. package/types/excalidraw/fonts/{woff2/Liberation → Liberation}/index.d.ts +1 -1
  95. package/types/excalidraw/fonts/{woff2/Lilita → Lilita}/index.d.ts +1 -1
  96. package/types/excalidraw/fonts/{woff2/Nunito → Nunito}/index.d.ts +1 -1
  97. package/types/excalidraw/fonts/{woff2/Virgil → Virgil}/index.d.ts +1 -1
  98. package/types/excalidraw/fonts/{woff2/Xiaolai → Xiaolai}/index.d.ts +1 -1
  99. package/types/excalidraw/fonts/index.d.ts +1 -87
  100. package/types/excalidraw/frame.d.ts +11 -5
  101. package/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  102. package/types/excalidraw/index.d.ts +4 -3
  103. package/types/excalidraw/keys.d.ts +107 -0
  104. package/types/excalidraw/obsidianUtils.d.ts +9 -4
  105. package/types/excalidraw/renderer/renderElement.d.ts +3 -2
  106. package/types/excalidraw/scene/Scene.d.ts +1 -0
  107. package/types/excalidraw/scene/comparisons.d.ts +1 -0
  108. package/types/excalidraw/scene/export.d.ts +8 -0
  109. package/types/excalidraw/scene/types.d.ts +7 -0
  110. package/types/excalidraw/types.d.ts +25 -1
  111. package/types/excalidraw/utils.d.ts +7 -1
  112. package/types/excalidraw/visualdebug.d.ts +8 -1
  113. package/types/math/line.d.ts +19 -0
  114. package/types/math/point.d.ts +10 -0
  115. package/types/math/utils.d.ts +1 -0
  116. package/types/math/vector.d.ts +4 -0
  117. package/types/utils/export.d.ts +6 -4
  118. package/types/excalidraw/components/MagicSettings.d.ts +0 -8
  119. package/types/excalidraw/components/Stats.d.ts +0 -11
  120. package/types/excalidraw/data/magic.d.ts +0 -23
  121. package/types/excalidraw/element/routing.d.ts +0 -12
  122. package/types/excalidraw/fonts/ExcalidrawFont.d.ts +0 -37
  123. package/types/excalidraw/fonts/wasm/hb-subset.bindings.d.ts +0 -45
  124. package/types/excalidraw/fonts/wasm/hb-subset.loader.d.ts +0 -5
  125. package/types/excalidraw/fonts/wasm/hb-subset.wasm.d.ts +0 -2
  126. package/types/excalidraw/fonts/wasm/woff2.bindings.d.ts +0 -31
  127. package/types/excalidraw/fonts/wasm/woff2.loader.d.ts +0 -6
  128. package/types/excalidraw/fonts/wasm/woff2.wasm.d.ts +0 -2
  129. package/types/excalidraw/fonts/woff2/Comic/index.d.ts +0 -2
  130. package/types/excalidraw/ga.d.ts +0 -63
  131. package/types/excalidraw/gadirections.d.ts +0 -8
  132. package/types/excalidraw/galines.d.ts +0 -22
  133. package/types/excalidraw/gapoints.d.ts +0 -7
  134. package/types/excalidraw/gatransforms.d.ts +0 -10
  135. package/types/excalidraw/jotai.d.ts +0 -34
  136. package/types/excalidraw/math.d.ts +0 -79
  137. package/types/excalidraw/scene/Fonts.d.ts +0 -19
  138. package/types/utils/geometry/geometry.d.ts +0 -89
  139. /package/types/excalidraw/fonts/{metadata.d.ts → FontMetadata.d.ts} +0 -0
  140. /package/types/excalidraw/{fonts/wasm/hb-subset-bindings.d.ts → subset/harfbuzz/harfbuzz-bindings.d.ts} +0 -0
  141. /package/types/excalidraw/{fonts/wasm/hb-subset-loader.d.ts → subset/harfbuzz/harfbuzz-loader.d.ts} +0 -0
  142. /package/types/excalidraw/{fonts/wasm/hb-subset-wasm.d.ts → subset/harfbuzz/harfbuzz-wasm.d.ts} +0 -0
  143. /package/types/excalidraw/{fonts/subset → subset}/subset-main.d.ts +0 -0
  144. /package/types/excalidraw/{fonts/subset → subset}/subset-shared.chunk.d.ts +0 -0
  145. /package/types/excalidraw/{fonts/subset → subset}/subset-worker.chunk.d.ts +0 -0
  146. /package/types/excalidraw/{fonts/wasm → subset/woff2}/woff2-bindings.d.ts +0 -0
  147. /package/types/excalidraw/{fonts/wasm → subset/woff2}/woff2-loader.d.ts +0 -0
  148. /package/types/excalidraw/{fonts/wasm → subset/woff2}/woff2-wasm.d.ts +0 -0
@@ -84,18 +84,24 @@ export declare const actionToggleLinearEditor: {
84
84
  tab?: string | undefined;
85
85
  } | null;
86
86
  openDialog: {
87
- name: "imageExport" | "help" | "jsonExport";
87
+ name: "help" | "imageExport" | "jsonExport";
88
88
  } | {
89
89
  name: "ttd";
90
90
  tab: "mermaid" | "text-to-diagram";
91
91
  } | {
92
92
  name: "commandPalette";
93
+ } | {
94
+ name: "elementLinkSelector";
95
+ sourceElementId: string;
93
96
  } | null;
94
97
  defaultSidebarDockedPreference: boolean;
95
98
  lastPointerDownWith: import("../element/types").PointerType;
96
99
  selectedElementIds: Readonly<{
97
100
  [id: string]: true;
98
101
  }>;
102
+ hoveredElementIds: Readonly<{
103
+ [id: string]: true;
104
+ }>;
99
105
  previousSelectedElementIds: {
100
106
  [id: string]: true;
101
107
  };
@@ -196,6 +202,8 @@ export declare const actionToggleLinearEditor: {
196
202
  objectsSnapModeEnabled: boolean;
197
203
  userToFollow: import("../types").UserToFollow | null;
198
204
  followedBy: Set<import("../types").SocketId>;
205
+ isCropping: boolean;
206
+ croppingElementId: string | null;
199
207
  searchMatches: readonly {
200
208
  id: string;
201
209
  focus: boolean;
@@ -1,6 +1,6 @@
1
1
  export declare const actionLink: {
2
2
  name: "hyperlink";
3
- label: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => "labels.link.editEmbed" | "labels.link.edit" | "labels.link.createEmbed" | "labels.link.create";
3
+ label: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => "labels.link.editEmbed" | "labels.link.edit" | "labels.link.create";
4
4
  icon: JSX.Element;
5
5
  perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => false | {
6
6
  elements: readonly import("../element/types").OrderedExcalidrawElement[];
@@ -79,18 +79,24 @@ export declare const actionLink: {
79
79
  tab?: string | undefined;
80
80
  } | null;
81
81
  openDialog: {
82
- name: "imageExport" | "help" | "jsonExport";
82
+ name: "help" | "imageExport" | "jsonExport";
83
83
  } | {
84
84
  name: "ttd";
85
85
  tab: "mermaid" | "text-to-diagram";
86
86
  } | {
87
87
  name: "commandPalette";
88
+ } | {
89
+ name: "elementLinkSelector";
90
+ sourceElementId: string;
88
91
  } | null;
89
92
  defaultSidebarDockedPreference: boolean;
90
93
  lastPointerDownWith: import("../element/types").PointerType;
91
94
  selectedElementIds: Readonly<{
92
95
  [id: string]: true;
93
96
  }>;
97
+ hoveredElementIds: Readonly<{
98
+ [id: string]: true;
99
+ }>;
94
100
  previousSelectedElementIds: {
95
101
  [id: string]: true;
96
102
  };
@@ -190,6 +196,8 @@ export declare const actionLink: {
190
196
  objectsSnapModeEnabled: boolean;
191
197
  userToFollow: import("../types").UserToFollow | null;
192
198
  followedBy: Set<import("../types").SocketId>;
199
+ isCropping: boolean;
200
+ croppingElementId: string | null;
193
201
  searchMatches: readonly {
194
202
  id: string;
195
203
  focus: boolean;
@@ -79,18 +79,24 @@ export declare const actionToggleCanvasMenu: {
79
79
  tab?: string | undefined;
80
80
  } | null;
81
81
  openDialog: {
82
- name: "imageExport" | "help" | "jsonExport";
82
+ name: "help" | "imageExport" | "jsonExport";
83
83
  } | {
84
84
  name: "ttd";
85
85
  tab: "mermaid" | "text-to-diagram";
86
86
  } | {
87
87
  name: "commandPalette";
88
+ } | {
89
+ name: "elementLinkSelector";
90
+ sourceElementId: string;
88
91
  } | null;
89
92
  defaultSidebarDockedPreference: boolean;
90
93
  lastPointerDownWith: import("../element/types").PointerType;
91
94
  selectedElementIds: Readonly<{
92
95
  [id: string]: true;
93
96
  }>;
97
+ hoveredElementIds: Readonly<{
98
+ [id: string]: true;
99
+ }>;
94
100
  previousSelectedElementIds: {
95
101
  [id: string]: true;
96
102
  };
@@ -191,6 +197,8 @@ export declare const actionToggleCanvasMenu: {
191
197
  objectsSnapModeEnabled: boolean;
192
198
  userToFollow: import("../types").UserToFollow | null;
193
199
  followedBy: Set<import("../types").SocketId>;
200
+ isCropping: boolean;
201
+ croppingElementId: string | null;
194
202
  searchMatches: readonly {
195
203
  id: string;
196
204
  focus: boolean;
@@ -289,18 +297,24 @@ export declare const actionToggleEditMenu: {
289
297
  tab?: string | undefined;
290
298
  } | null;
291
299
  openDialog: {
292
- name: "imageExport" | "help" | "jsonExport";
300
+ name: "help" | "imageExport" | "jsonExport";
293
301
  } | {
294
302
  name: "ttd";
295
303
  tab: "mermaid" | "text-to-diagram";
296
304
  } | {
297
305
  name: "commandPalette";
306
+ } | {
307
+ name: "elementLinkSelector";
308
+ sourceElementId: string;
298
309
  } | null;
299
310
  defaultSidebarDockedPreference: boolean;
300
311
  lastPointerDownWith: import("../element/types").PointerType;
301
312
  selectedElementIds: Readonly<{
302
313
  [id: string]: true;
303
314
  }>;
315
+ hoveredElementIds: Readonly<{
316
+ [id: string]: true;
317
+ }>;
304
318
  previousSelectedElementIds: {
305
319
  [id: string]: true;
306
320
  };
@@ -401,6 +415,8 @@ export declare const actionToggleEditMenu: {
401
415
  objectsSnapModeEnabled: boolean;
402
416
  userToFollow: import("../types").UserToFollow | null;
403
417
  followedBy: Set<import("../types").SocketId>;
418
+ isCropping: boolean;
419
+ croppingElementId: string | null;
404
420
  searchMatches: readonly {
405
421
  id: string;
406
422
  focus: boolean;
@@ -509,6 +525,9 @@ export declare const actionShortcuts: {
509
525
  selectedElementIds: Readonly<{
510
526
  [id: string]: true;
511
527
  }>;
528
+ hoveredElementIds: Readonly<{
529
+ [id: string]: true;
530
+ }>;
512
531
  previousSelectedElementIds: {
513
532
  [id: string]: true;
514
533
  };
@@ -609,6 +628,8 @@ export declare const actionShortcuts: {
609
628
  objectsSnapModeEnabled: boolean;
610
629
  userToFollow: import("../types").UserToFollow | null;
611
630
  followedBy: Set<import("../types").SocketId>;
631
+ isCropping: boolean;
632
+ croppingElementId: string | null;
612
633
  searchMatches: readonly {
613
634
  id: string;
614
635
  focus: boolean;
@@ -82,18 +82,24 @@ export declare const actionGoToCollaborator: {
82
82
  tab?: string | undefined;
83
83
  } | null;
84
84
  openDialog: {
85
- name: "imageExport" | "help" | "jsonExport";
85
+ name: "help" | "imageExport" | "jsonExport";
86
86
  } | {
87
87
  name: "ttd";
88
88
  tab: "mermaid" | "text-to-diagram";
89
89
  } | {
90
90
  name: "commandPalette";
91
+ } | {
92
+ name: "elementLinkSelector";
93
+ sourceElementId: string;
91
94
  } | null;
92
95
  defaultSidebarDockedPreference: boolean;
93
96
  lastPointerDownWith: import("../element/types").PointerType;
94
97
  selectedElementIds: Readonly<{
95
98
  [id: string]: true;
96
99
  }>;
100
+ hoveredElementIds: Readonly<{
101
+ [id: string]: true;
102
+ }>;
97
103
  previousSelectedElementIds: {
98
104
  [id: string]: true;
99
105
  };
@@ -193,6 +199,8 @@ export declare const actionGoToCollaborator: {
193
199
  } | null;
194
200
  objectsSnapModeEnabled: boolean;
195
201
  followedBy: Set<import("../types").SocketId>;
202
+ isCropping: boolean;
203
+ croppingElementId: string | null;
196
204
  searchMatches: readonly {
197
205
  id: string;
198
206
  focus: boolean;
@@ -284,18 +292,24 @@ export declare const actionGoToCollaborator: {
284
292
  tab?: string | undefined;
285
293
  } | null;
286
294
  openDialog: {
287
- name: "imageExport" | "help" | "jsonExport";
295
+ name: "help" | "imageExport" | "jsonExport";
288
296
  } | {
289
297
  name: "ttd";
290
298
  tab: "mermaid" | "text-to-diagram";
291
299
  } | {
292
300
  name: "commandPalette";
301
+ } | {
302
+ name: "elementLinkSelector";
303
+ sourceElementId: string;
293
304
  } | null;
294
305
  defaultSidebarDockedPreference: boolean;
295
306
  lastPointerDownWith: import("../element/types").PointerType;
296
307
  selectedElementIds: Readonly<{
297
308
  [id: string]: true;
298
309
  }>;
310
+ hoveredElementIds: Readonly<{
311
+ [id: string]: true;
312
+ }>;
299
313
  previousSelectedElementIds: {
300
314
  [id: string]: true;
301
315
  };
@@ -395,6 +409,8 @@ export declare const actionGoToCollaborator: {
395
409
  } | null;
396
410
  objectsSnapModeEnabled: boolean;
397
411
  followedBy: Set<import("../types").SocketId>;
412
+ isCropping: boolean;
413
+ croppingElementId: string | null;
398
414
  searchMatches: readonly {
399
415
  id: string;
400
416
  focus: boolean;