@excalidraw/excalidraw 0.15.2-b7350f9 → 0.15.2-fc9a9a2

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 (99) hide show
  1. package/CHANGELOG.md +22 -1
  2. package/dist/excalidraw-assets/locales/{es-ES-json-f2467c6a875a9e288756.js → es-ES-json-4f3da97feff33cb00e6d.js} +1 -1
  3. package/dist/excalidraw-assets/locales/{hi-IN-json-e22f4ad73126c2971850.js → hi-IN-json-3898c9c1216b44476529.js} +1 -1
  4. package/dist/excalidraw-assets/locales/{id-ID-json-0e69caf5d919807ed234.js → id-ID-json-43d505d7071a0e359681.js} +1 -1
  5. package/dist/excalidraw-assets/locales/{kk-KZ-json-106d2a41c68f69765668.js → kk-KZ-json-f648362328b839e9313f.js} +1 -1
  6. package/dist/excalidraw-assets/locales/{pa-IN-json-0fd029451b07248c5194.js → pa-IN-json-d9ee09801ed220840b2b.js} +1 -1
  7. package/dist/excalidraw-assets/{vendor-53d1c69ef585b6dd219b.js → vendor-ef3c5d81a00ef582b871.js} +2 -2
  8. package/dist/excalidraw-assets-dev/{vendor-e6df8519da951026ff69.js → vendor-a14cd58fa2db417e42b2.js} +6 -6
  9. package/dist/excalidraw.development.js +2189 -2123
  10. package/dist/excalidraw.production.min.js +1 -1
  11. package/dist/excalidraw.production.min.js.LICENSE.txt +15 -0
  12. package/package.json +7 -2
  13. package/types/actions/actionAddToLibrary.d.ts +51 -25
  14. package/types/actions/actionAlign.d.ts +19 -20
  15. package/types/actions/actionBoundText.d.ts +38 -20
  16. package/types/actions/actionCanvas.d.ts +310 -88
  17. package/types/actions/actionClipboard.d.ts +81 -40
  18. package/types/actions/actionDeleteSelected.d.ts +45 -22
  19. package/types/actions/actionDistribute.d.ts +5 -6
  20. package/types/actions/actionDuplicateSelection.d.ts +0 -1
  21. package/types/actions/actionElementLock.d.ts +36 -19
  22. package/types/actions/actionExport.d.ts +161 -80
  23. package/types/actions/actionFinalize.d.ts +31 -17
  24. package/types/actions/actionFlip.d.ts +2 -3
  25. package/types/actions/actionFrame.d.ts +56 -30
  26. package/types/actions/actionGroup.d.ts +5 -6
  27. package/types/actions/actionLinearEditor.d.ts +19 -11
  28. package/types/actions/actionMenu.d.ts +51 -25
  29. package/types/actions/actionProperties.d.ts +221 -105
  30. package/types/actions/actionSelectAll.d.ts +0 -1
  31. package/types/actions/actionStyles.d.ts +17 -9
  32. package/types/actions/actionToggleGridMode.d.ts +17 -9
  33. package/types/actions/actionToggleStats.d.ts +17 -9
  34. package/types/actions/actionToggleViewMode.d.ts +17 -9
  35. package/types/actions/actionToggleZenMode.d.ts +17 -9
  36. package/types/actions/types.d.ts +4 -3
  37. package/types/appState.d.ts +7 -7
  38. package/types/colors.d.ts +9 -9
  39. package/types/components/App.d.ts +27 -1
  40. package/types/components/Button.d.ts +0 -1
  41. package/types/components/Card.d.ts +0 -1
  42. package/types/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
  43. package/types/components/DefaultSidebar.d.ts +0 -1
  44. package/types/components/EyeDropper.d.ts +0 -1
  45. package/types/components/HintViewer.d.ts +3 -4
  46. package/types/components/LayerUI.d.ts +2 -1
  47. package/types/components/LibraryMenuHeaderContent.d.ts +0 -1
  48. package/types/components/LibraryUnit.d.ts +0 -1
  49. package/types/components/LoadingMessage.d.ts +0 -1
  50. package/types/components/MobileMenu.d.ts +3 -2
  51. package/types/components/Section.d.ts +1 -1
  52. package/types/components/Sidebar/SidebarTab.d.ts +0 -1
  53. package/types/components/Sidebar/SidebarTabTrigger.d.ts +0 -1
  54. package/types/components/Sidebar/SidebarTabTriggers.d.ts +0 -1
  55. package/types/components/Sidebar/SidebarTabs.d.ts +0 -1
  56. package/types/components/Stack.d.ts +2 -2
  57. package/types/components/Trans.d.ts +2 -1
  58. package/types/components/dropdownMenu/DropdownMenuTrigger.d.ts +0 -1
  59. package/types/components/icons.d.ts +1 -0
  60. package/types/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -1
  61. package/types/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -1
  62. package/types/components/welcome-screen/WelcomeScreen.d.ts +0 -1
  63. package/types/constants.d.ts +13 -3
  64. package/types/data/url.d.ts +7 -0
  65. package/types/element/Hyperlink.d.ts +26 -14
  66. package/types/element/collision.d.ts +2 -2
  67. package/types/element/embeddable.d.ts +153 -0
  68. package/types/element/linearElementEditor.d.ts +18 -10
  69. package/types/element/newElement.d.ts +5 -2
  70. package/types/element/transformHandles.d.ts +1 -1
  71. package/types/element/typeChecks.d.ts +2 -1
  72. package/types/element/types.d.ts +13 -2
  73. package/types/frame.d.ts +2 -2
  74. package/types/groups.d.ts +3 -3
  75. package/types/history.d.ts +3 -3
  76. package/types/hooks/useOutsideClick.d.ts +0 -1
  77. package/types/hooks/useScrollPosition.d.ts +0 -1
  78. package/types/i18n.d.ts +5 -2
  79. package/types/keys.d.ts +2 -0
  80. package/types/packages/excalidraw/index.d.ts +1 -0
  81. package/types/packages/excalidraw/webpack.dev.config.d.ts +5 -2
  82. package/types/packages/excalidraw/webpack.prod.config.d.ts +3 -0
  83. package/types/packages/utils.d.ts +2 -1
  84. package/types/renderer/renderElement.d.ts +1 -1
  85. package/types/renderer/renderScene.d.ts +2 -1
  86. package/types/scene/Scene.d.ts +13 -0
  87. package/types/scene/export.d.ts +1 -0
  88. package/types/scene/selection.d.ts +11 -1
  89. package/types/types.d.ts +20 -9
  90. package/types/utility-types.d.ts +3 -1
  91. package/types/utils.d.ts +42 -15
  92. /package/dist/excalidraw-assets/{vendor-53d1c69ef585b6dd219b.js.LICENSE.txt → vendor-ef3c5d81a00ef582b871.js.LICENSE.txt} +0 -0
  93. /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{es-ES-json-f2467c6a875a9e288756.d.ts → es-ES-json-4f3da97feff33cb00e6d.d.ts} +0 -0
  94. /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{hi-IN-json-e22f4ad73126c2971850.d.ts → hi-IN-json-3898c9c1216b44476529.d.ts} +0 -0
  95. /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{id-ID-json-0e69caf5d919807ed234.d.ts → id-ID-json-43d505d7071a0e359681.d.ts} +0 -0
  96. /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{kk-KZ-json-106d2a41c68f69765668.d.ts → kk-KZ-json-f648362328b839e9313f.d.ts} +0 -0
  97. /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{pa-IN-json-0fd029451b07248c5194.d.ts → pa-IN-json-d9ee09801ed220840b2b.d.ts} +0 -0
  98. /package/types/packages/excalidraw/dist/excalidraw-assets/{vendor-53d1c69ef585b6dd219b.d.ts → vendor-ef3c5d81a00ef582b871.d.ts} +0 -0
  99. /package/types/packages/excalidraw/dist/excalidraw-assets-dev/{vendor-e6df8519da951026ff69.d.ts → vendor-a14cd58fa2db417e42b2.d.ts} +0 -0
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { LinearElementEditor } from "../element/linearElementEditor";
3
2
  import { AppState } from "../types";
4
3
  export declare const actionFinalize: {
@@ -17,6 +16,10 @@ export declare const actionFinalize: {
17
16
  showWelcomeScreen: boolean;
18
17
  isLoading: boolean;
19
18
  errorMessage: import("react").ReactNode;
19
+ activeEmbeddable: {
20
+ element: import("../element/types").NonDeletedExcalidrawElement;
21
+ state: "active" | "hover";
22
+ } | null;
20
23
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
21
24
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
22
25
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -25,7 +28,12 @@ export declare const actionFinalize: {
25
28
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
26
29
  suggestedBindings: import("../element/binding").SuggestedBinding[];
27
30
  frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
28
- shouldRenderFrames: boolean;
31
+ frameRendering: {
32
+ enabled: boolean;
33
+ name: boolean;
34
+ outline: boolean;
35
+ clip: boolean;
36
+ };
29
37
  editingFrame: string | null;
30
38
  elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
31
39
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -33,7 +41,7 @@ export declare const actionFinalize: {
33
41
  lastActiveTool: import("../types").LastActiveTool;
34
42
  locked: boolean;
35
43
  } & ({
36
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
44
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
37
45
  customType: null;
38
46
  } | {
39
47
  type: "custom";
@@ -77,11 +85,11 @@ export declare const actionFinalize: {
77
85
  openDialog: "imageExport" | "help" | "jsonExport" | null;
78
86
  defaultSidebarDockedPreference: boolean;
79
87
  lastPointerDownWith: import("../element/types").PointerType;
80
- selectedElementIds: {
81
- [id: string]: boolean;
82
- };
88
+ selectedElementIds: Readonly<{
89
+ [id: string]: true;
90
+ }>;
83
91
  previousSelectedElementIds: {
84
- [id: string]: boolean;
92
+ [id: string]: true;
85
93
  };
86
94
  selectedElementsAreBeingDragged: boolean;
87
95
  shouldCacheIgnoreZoom: boolean;
@@ -91,7 +99,7 @@ export declare const actionFinalize: {
91
99
  duration?: number | undefined;
92
100
  } | null;
93
101
  zenModeEnabled: boolean;
94
- theme: string;
102
+ theme: import("../element/types").Theme;
95
103
  gridSize: number | null;
96
104
  viewModeEnabled: boolean;
97
105
  selectedGroupIds: {
@@ -114,7 +122,7 @@ export declare const actionFinalize: {
114
122
  data: import("../charts").Spreadsheet;
115
123
  };
116
124
  pendingImageElementId: string | null;
117
- showHyperlinkPopup: false | "info" | "editor";
125
+ showHyperlinkPopup: false | "editor" | "info";
118
126
  selectedLinearElement: LinearElementEditor | null;
119
127
  };
120
128
  commitToHistory: true;
@@ -126,20 +134,21 @@ export declare const actionFinalize: {
126
134
  lastActiveTool: import("../types").LastActiveTool;
127
135
  locked: boolean;
128
136
  } & ({
129
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
137
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
130
138
  customType: null;
131
139
  } | {
132
140
  type: "custom";
133
141
  customType: string;
134
142
  });
143
+ activeEmbeddable: null;
135
144
  draggingElement: null;
136
145
  multiElement: null;
137
146
  editingElement: null;
138
147
  startBoundElement: null;
139
148
  suggestedBindings: never[];
140
- selectedElementIds: {
141
- [id: string]: boolean;
142
- };
149
+ selectedElementIds: Readonly<{
150
+ [id: string]: true;
151
+ }>;
143
152
  selectedLinearElement: LinearElementEditor | null;
144
153
  pendingImageElementId: null;
145
154
  contextMenu: {
@@ -154,7 +163,12 @@ export declare const actionFinalize: {
154
163
  selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
155
164
  isBindingEnabled: boolean;
156
165
  frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
157
- shouldRenderFrames: boolean;
166
+ frameRendering: {
167
+ enabled: boolean;
168
+ name: boolean;
169
+ outline: boolean;
170
+ clip: boolean;
171
+ };
158
172
  editingFrame: string | null;
159
173
  elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
160
174
  editingLinearElement: LinearElementEditor | null;
@@ -197,7 +211,7 @@ export declare const actionFinalize: {
197
211
  defaultSidebarDockedPreference: boolean;
198
212
  lastPointerDownWith: import("../element/types").PointerType;
199
213
  previousSelectedElementIds: {
200
- [id: string]: boolean;
214
+ [id: string]: true;
201
215
  };
202
216
  selectedElementsAreBeingDragged: boolean;
203
217
  shouldCacheIgnoreZoom: boolean;
@@ -207,7 +221,7 @@ export declare const actionFinalize: {
207
221
  duration?: number | undefined;
208
222
  } | null;
209
223
  zenModeEnabled: boolean;
210
- theme: string;
224
+ theme: import("../element/types").Theme;
211
225
  gridSize: number | null;
212
226
  viewModeEnabled: boolean;
213
227
  selectedGroupIds: {
@@ -229,7 +243,7 @@ export declare const actionFinalize: {
229
243
  shown: true;
230
244
  data: import("../charts").Spreadsheet;
231
245
  };
232
- showHyperlinkPopup: false | "info" | "editor";
246
+ showHyperlinkPopup: false | "editor" | "info";
233
247
  };
234
248
  commitToHistory: boolean;
235
249
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ExcalidrawElement } from "../element/types";
3
2
  import { AppState } from "../types";
4
3
  export declare const actionFlipHorizontal: {
@@ -6,7 +5,7 @@ export declare const actionFlipHorizontal: {
6
5
  trackEvent: {
7
6
  category: "element";
8
7
  };
9
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
8
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
10
9
  elements: import("../scene/Scene").ExcalidrawElementsIncludingDeleted;
11
10
  appState: Readonly<AppState>;
12
11
  commitToHistory: true;
@@ -21,7 +20,7 @@ export declare const actionFlipVertical: {
21
20
  trackEvent: {
22
21
  category: "element";
23
22
  };
24
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
23
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
25
24
  elements: import("../scene/Scene").ExcalidrawElementsIncludingDeleted;
26
25
  appState: Readonly<AppState>;
27
26
  commitToHistory: true;
@@ -1,18 +1,17 @@
1
- /// <reference types="react" />
2
1
  import { ExcalidrawElement } from "../element/types";
3
- import { AppState } from "../types";
2
+ import { AppClassProperties, AppState } from "../types";
4
3
  export declare const actionSelectAllElementsInFrame: {
5
4
  name: "selectAllElementsInFrame";
6
5
  trackEvent: {
7
6
  category: "canvas";
8
7
  };
9
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
8
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
10
9
  elements: readonly ExcalidrawElement[];
11
10
  appState: Readonly<AppState>;
12
11
  commitToHistory: false;
13
12
  };
14
13
  contextItemLabel: string;
15
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
14
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
16
15
  } & {
17
16
  keyTest?: undefined;
18
17
  };
@@ -21,7 +20,7 @@ export declare const actionRemoveAllElementsFromFrame: {
21
20
  trackEvent: {
22
21
  category: "history";
23
22
  };
24
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
23
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
25
24
  elements: ExcalidrawElement[];
26
25
  appState: {
27
26
  selectedElementIds: {
@@ -35,6 +34,10 @@ export declare const actionRemoveAllElementsFromFrame: {
35
34
  showWelcomeScreen: boolean;
36
35
  isLoading: boolean;
37
36
  errorMessage: import("react").ReactNode;
37
+ activeEmbeddable: {
38
+ element: import("../element/types").NonDeletedExcalidrawElement;
39
+ state: "active" | "hover";
40
+ } | null;
38
41
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
39
42
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
40
43
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -43,7 +46,12 @@ export declare const actionRemoveAllElementsFromFrame: {
43
46
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
44
47
  suggestedBindings: import("../element/binding").SuggestedBinding[];
45
48
  frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
46
- shouldRenderFrames: boolean;
49
+ frameRendering: {
50
+ enabled: boolean;
51
+ name: boolean;
52
+ outline: boolean;
53
+ clip: boolean;
54
+ };
47
55
  editingFrame: string | null;
48
56
  elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
49
57
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -52,7 +60,7 @@ export declare const actionRemoveAllElementsFromFrame: {
52
60
  lastActiveTool: import("../types").LastActiveTool;
53
61
  locked: boolean;
54
62
  } & ({
55
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
63
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
56
64
  customType: null;
57
65
  } | {
58
66
  type: "custom";
@@ -98,7 +106,7 @@ export declare const actionRemoveAllElementsFromFrame: {
98
106
  defaultSidebarDockedPreference: boolean;
99
107
  lastPointerDownWith: import("../element/types").PointerType;
100
108
  previousSelectedElementIds: {
101
- [id: string]: boolean;
109
+ [id: string]: true;
102
110
  };
103
111
  selectedElementsAreBeingDragged: boolean;
104
112
  shouldCacheIgnoreZoom: boolean;
@@ -108,7 +116,7 @@ export declare const actionRemoveAllElementsFromFrame: {
108
116
  duration?: number | undefined;
109
117
  } | null;
110
118
  zenModeEnabled: boolean;
111
- theme: string;
119
+ theme: import("../element/types").Theme;
112
120
  gridSize: number | null;
113
121
  viewModeEnabled: boolean;
114
122
  selectedGroupIds: {
@@ -131,7 +139,7 @@ export declare const actionRemoveAllElementsFromFrame: {
131
139
  data: import("../charts").Spreadsheet;
132
140
  };
133
141
  pendingImageElementId: string | null;
134
- showHyperlinkPopup: false | "info" | "editor";
142
+ showHyperlinkPopup: false | "editor" | "info";
135
143
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
136
144
  };
137
145
  commitToHistory: true;
@@ -141,12 +149,12 @@ export declare const actionRemoveAllElementsFromFrame: {
141
149
  commitToHistory: false;
142
150
  };
143
151
  contextItemLabel: string;
144
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
152
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
145
153
  } & {
146
154
  keyTest?: undefined;
147
155
  };
148
- export declare const actionToggleFrameRendering: {
149
- name: "toggleFrameRendering";
156
+ export declare const actionupdateFrameRendering: {
157
+ name: "updateFrameRendering";
150
158
  viewMode: true;
151
159
  trackEvent: {
152
160
  category: "canvas";
@@ -154,7 +162,12 @@ export declare const actionToggleFrameRendering: {
154
162
  perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
155
163
  elements: readonly ExcalidrawElement[];
156
164
  appState: {
157
- shouldRenderFrames: boolean;
165
+ frameRendering: {
166
+ enabled: boolean;
167
+ name: boolean;
168
+ outline: boolean;
169
+ clip: boolean;
170
+ };
158
171
  contextMenu: {
159
172
  items: import("../components/ContextMenu").ContextMenuItems;
160
173
  top: number;
@@ -163,6 +176,10 @@ export declare const actionToggleFrameRendering: {
163
176
  showWelcomeScreen: boolean;
164
177
  isLoading: boolean;
165
178
  errorMessage: import("react").ReactNode;
179
+ activeEmbeddable: {
180
+ element: import("../element/types").NonDeletedExcalidrawElement;
181
+ state: "active" | "hover";
182
+ } | null;
166
183
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
167
184
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
168
185
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -179,7 +196,7 @@ export declare const actionToggleFrameRendering: {
179
196
  lastActiveTool: import("../types").LastActiveTool;
180
197
  locked: boolean;
181
198
  } & ({
182
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
199
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
183
200
  customType: null;
184
201
  } | {
185
202
  type: "custom";
@@ -224,11 +241,11 @@ export declare const actionToggleFrameRendering: {
224
241
  openDialog: "imageExport" | "help" | "jsonExport" | null;
225
242
  defaultSidebarDockedPreference: boolean;
226
243
  lastPointerDownWith: import("../element/types").PointerType;
227
- selectedElementIds: {
228
- [id: string]: boolean;
229
- };
244
+ selectedElementIds: Readonly<{
245
+ [id: string]: true;
246
+ }>;
230
247
  previousSelectedElementIds: {
231
- [id: string]: boolean;
248
+ [id: string]: true;
232
249
  };
233
250
  selectedElementsAreBeingDragged: boolean;
234
251
  shouldCacheIgnoreZoom: boolean;
@@ -238,7 +255,7 @@ export declare const actionToggleFrameRendering: {
238
255
  duration?: number | undefined;
239
256
  } | null;
240
257
  zenModeEnabled: boolean;
241
- theme: string;
258
+ theme: import("../element/types").Theme;
242
259
  gridSize: number | null;
243
260
  viewModeEnabled: boolean;
244
261
  selectedGroupIds: {
@@ -261,7 +278,7 @@ export declare const actionToggleFrameRendering: {
261
278
  data: import("../charts").Spreadsheet;
262
279
  };
263
280
  pendingImageElementId: string | null;
264
- showHyperlinkPopup: false | "info" | "editor";
281
+ showHyperlinkPopup: false | "editor" | "info";
265
282
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
266
283
  };
267
284
  commitToHistory: false;
@@ -276,14 +293,14 @@ export declare const actionSetFrameAsActiveTool: {
276
293
  trackEvent: {
277
294
  category: "toolbar";
278
295
  };
279
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
296
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
280
297
  elements: readonly ExcalidrawElement[];
281
298
  appState: {
282
299
  activeTool: {
283
300
  lastActiveTool: import("../types").LastActiveTool;
284
301
  locked: boolean;
285
302
  } & ({
286
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
303
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
287
304
  customType: null;
288
305
  } | {
289
306
  type: "custom";
@@ -297,6 +314,10 @@ export declare const actionSetFrameAsActiveTool: {
297
314
  showWelcomeScreen: boolean;
298
315
  isLoading: boolean;
299
316
  errorMessage: import("react").ReactNode;
317
+ activeEmbeddable: {
318
+ element: import("../element/types").NonDeletedExcalidrawElement;
319
+ state: "active" | "hover";
320
+ } | null;
300
321
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
301
322
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
302
323
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -305,7 +326,12 @@ export declare const actionSetFrameAsActiveTool: {
305
326
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
306
327
  suggestedBindings: import("../element/binding").SuggestedBinding[];
307
328
  frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
308
- shouldRenderFrames: boolean;
329
+ frameRendering: {
330
+ enabled: boolean;
331
+ name: boolean;
332
+ outline: boolean;
333
+ clip: boolean;
334
+ };
309
335
  editingFrame: string | null;
310
336
  elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
311
337
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -349,11 +375,11 @@ export declare const actionSetFrameAsActiveTool: {
349
375
  openDialog: "imageExport" | "help" | "jsonExport" | null;
350
376
  defaultSidebarDockedPreference: boolean;
351
377
  lastPointerDownWith: import("../element/types").PointerType;
352
- selectedElementIds: {
353
- [id: string]: boolean;
354
- };
378
+ selectedElementIds: Readonly<{
379
+ [id: string]: true;
380
+ }>;
355
381
  previousSelectedElementIds: {
356
- [id: string]: boolean;
382
+ [id: string]: true;
357
383
  };
358
384
  selectedElementsAreBeingDragged: boolean;
359
385
  shouldCacheIgnoreZoom: boolean;
@@ -363,7 +389,7 @@ export declare const actionSetFrameAsActiveTool: {
363
389
  duration?: number | undefined;
364
390
  } | null;
365
391
  zenModeEnabled: boolean;
366
- theme: string;
392
+ theme: import("../element/types").Theme;
367
393
  gridSize: number | null;
368
394
  viewModeEnabled: boolean;
369
395
  selectedGroupIds: {
@@ -386,7 +412,7 @@ export declare const actionSetFrameAsActiveTool: {
386
412
  data: import("../charts").Spreadsheet;
387
413
  };
388
414
  pendingImageElementId: string | null;
389
- showHyperlinkPopup: false | "info" | "editor";
415
+ showHyperlinkPopup: false | "editor" | "info";
390
416
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
391
417
  };
392
418
  commitToHistory: false;
@@ -1,12 +1,11 @@
1
- /// <reference types="react" />
2
1
  import { ExcalidrawElement } from "../element/types";
3
- import { AppState } from "../types";
2
+ import { AppClassProperties, AppState } from "../types";
4
3
  export declare const actionGroup: {
5
4
  name: "group";
6
5
  trackEvent: {
7
6
  category: "element";
8
7
  };
9
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
8
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
10
9
  appState: Readonly<AppState>;
11
10
  elements: readonly ExcalidrawElement[];
12
11
  commitToHistory: false;
@@ -16,9 +15,9 @@ export declare const actionGroup: {
16
15
  commitToHistory: true;
17
16
  };
18
17
  contextItemLabel: string;
19
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
18
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
20
19
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
21
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
20
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
22
21
  } & {
23
22
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
24
23
  };
@@ -27,7 +26,7 @@ export declare const actionUngroup: {
27
26
  trackEvent: {
28
27
  category: "element";
29
28
  };
30
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
29
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
31
30
  appState: Readonly<AppState>;
32
31
  elements: readonly ExcalidrawElement[];
33
32
  commitToHistory: false;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { LinearElementEditor } from "../element/linearElementEditor";
3
2
  import { ExcalidrawLinearElement } from "../element/types";
4
3
  export declare const actionToggleLinearEditor: {
@@ -6,7 +5,7 @@ export declare const actionToggleLinearEditor: {
6
5
  trackEvent: {
7
6
  category: "element";
8
7
  };
9
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState) => boolean;
8
+ predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
10
9
  perform(elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties): {
11
10
  appState: {
12
11
  editingLinearElement: LinearElementEditor | null;
@@ -18,6 +17,10 @@ export declare const actionToggleLinearEditor: {
18
17
  showWelcomeScreen: boolean;
19
18
  isLoading: boolean;
20
19
  errorMessage: import("react").ReactNode;
20
+ activeEmbeddable: {
21
+ element: import("../element/types").NonDeletedExcalidrawElement;
22
+ state: "active" | "hover";
23
+ } | null;
21
24
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
22
25
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
23
26
  multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
@@ -26,7 +29,12 @@ export declare const actionToggleLinearEditor: {
26
29
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
27
30
  suggestedBindings: import("../element/binding").SuggestedBinding[];
28
31
  frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
29
- shouldRenderFrames: boolean;
32
+ frameRendering: {
33
+ enabled: boolean;
34
+ name: boolean;
35
+ outline: boolean;
36
+ clip: boolean;
37
+ };
30
38
  editingFrame: string | null;
31
39
  elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
32
40
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -34,7 +42,7 @@ export declare const actionToggleLinearEditor: {
34
42
  lastActiveTool: import("../types").LastActiveTool;
35
43
  locked: boolean;
36
44
  } & ({
37
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
45
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
38
46
  customType: null;
39
47
  } | {
40
48
  type: "custom";
@@ -79,11 +87,11 @@ export declare const actionToggleLinearEditor: {
79
87
  openDialog: "imageExport" | "help" | "jsonExport" | null;
80
88
  defaultSidebarDockedPreference: boolean;
81
89
  lastPointerDownWith: import("../element/types").PointerType;
82
- selectedElementIds: {
83
- [id: string]: boolean;
84
- };
90
+ selectedElementIds: Readonly<{
91
+ [id: string]: true;
92
+ }>;
85
93
  previousSelectedElementIds: {
86
- [id: string]: boolean;
94
+ [id: string]: true;
87
95
  };
88
96
  selectedElementsAreBeingDragged: boolean;
89
97
  shouldCacheIgnoreZoom: boolean;
@@ -93,7 +101,7 @@ export declare const actionToggleLinearEditor: {
93
101
  duration?: number | undefined;
94
102
  } | null;
95
103
  zenModeEnabled: boolean;
96
- theme: string;
104
+ theme: import("../element/types").Theme;
97
105
  gridSize: number | null;
98
106
  viewModeEnabled: boolean;
99
107
  selectedGroupIds: {
@@ -116,12 +124,12 @@ export declare const actionToggleLinearEditor: {
116
124
  data: import("../charts").Spreadsheet;
117
125
  };
118
126
  pendingImageElementId: string | null;
119
- showHyperlinkPopup: false | "info" | "editor";
127
+ showHyperlinkPopup: false | "editor" | "info";
120
128
  selectedLinearElement: LinearElementEditor | null;
121
129
  };
122
130
  commitToHistory: false;
123
131
  };
124
- contextItemLabel: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => "labels.lineEditor.exit" | "labels.lineEditor.edit";
132
+ contextItemLabel: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.lineEditor.exit" | "labels.lineEditor.edit";
125
133
  } & {
126
134
  keyTest?: undefined;
127
135
  };