@zsviczian/excalidraw 0.11.0-obsidian-21-namedexport → 0.12.0-obsidian-0

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 (81) hide show
  1. package/README.md +352 -42
  2. package/dist/excalidraw.development.js +186 -149
  3. package/dist/excalidraw.production.min.js +1 -1
  4. package/dist/excalidraw.production.min.js.LICENSE.txt +2 -1
  5. package/package.json +22 -24
  6. package/types/actions/actionAddToLibrary.d.ts +19 -6
  7. package/types/actions/actionAlign.d.ts +6 -6
  8. package/types/actions/actionBoundText.d.ts +7 -2
  9. package/types/actions/actionCanvas.d.ts +70 -25
  10. package/types/actions/actionClipboard.d.ts +35 -10
  11. package/types/actions/actionDeleteSelected.d.ts +22 -7
  12. package/types/actions/actionDistribute.d.ts +2 -2
  13. package/types/actions/actionDuplicateSelection.d.ts +1 -1
  14. package/types/actions/actionExport.d.ts +69 -26
  15. package/types/actions/actionFinalize.d.ts +16 -6
  16. package/types/actions/actionGroup.d.ts +2 -2
  17. package/types/actions/actionMenu.d.ts +24 -9
  18. package/types/actions/actionNavigate.d.ts +1 -2
  19. package/types/actions/actionProperties.d.ts +104 -39
  20. package/types/actions/actionSelectAll.d.ts +2 -1
  21. package/types/actions/actionStyles.d.ts +5 -2
  22. package/types/actions/actionToggleGridMode.d.ts +7 -2
  23. package/types/actions/actionToggleStats.d.ts +7 -2
  24. package/types/actions/actionToggleViewMode.d.ts +7 -2
  25. package/types/actions/actionToggleZenMode.d.ts +7 -2
  26. package/types/actions/actionZindex.d.ts +4 -4
  27. package/types/analytics.d.ts +1 -1
  28. package/types/appState.d.ts +3 -0
  29. package/types/clients.d.ts +1 -1
  30. package/types/components/ActiveFile.d.ts +0 -1
  31. package/types/components/App.d.ts +17 -8
  32. package/types/components/ButtonIconSelect.d.ts +0 -1
  33. package/types/components/Card.d.ts +1 -0
  34. package/types/components/CheckboxItem.d.ts +1 -0
  35. package/types/components/ClearCanvas.d.ts +0 -1
  36. package/types/components/CollabButton.d.ts +0 -1
  37. package/types/components/ColorPicker.d.ts +0 -1
  38. package/types/components/ConfirmDialog.d.ts +0 -1
  39. package/types/components/DarkModeToggle.d.ts +0 -1
  40. package/types/components/ErrorDialog.d.ts +0 -1
  41. package/types/components/HelpDialog.d.ts +0 -1
  42. package/types/components/HelpIcon.d.ts +0 -1
  43. package/types/components/HintViewer.d.ts +0 -1
  44. package/types/components/IconPicker.d.ts +0 -1
  45. package/types/components/ImageExportDialog.d.ts +0 -1
  46. package/types/components/JSONExportDialog.d.ts +0 -1
  47. package/types/components/LayerUI.d.ts +4 -6
  48. package/types/components/LibraryMenu.d.ts +0 -1
  49. package/types/components/LibraryMenuItems.d.ts +2 -1
  50. package/types/components/LibraryUnit.d.ts +0 -1
  51. package/types/components/LockButton.d.ts +0 -1
  52. package/types/components/MobileMenu.d.ts +2 -2
  53. package/types/components/Modal.d.ts +2 -2
  54. package/types/components/PenModeButton.d.ts +0 -1
  55. package/types/components/ProjectName.d.ts +0 -1
  56. package/types/components/PublishLibrary.d.ts +0 -1
  57. package/types/components/Section.d.ts +4 -5
  58. package/types/components/SidebarLockButton.d.ts +8 -0
  59. package/types/components/SingleLibraryItem.d.ts +0 -1
  60. package/types/components/Spinner.d.ts +0 -1
  61. package/types/components/Stack.d.ts +1 -1
  62. package/types/components/Toast.d.ts +4 -3
  63. package/types/constants.d.ts +3 -1
  64. package/types/data/blob.d.ts +4 -4
  65. package/types/data/filesystem.d.ts +2 -2
  66. package/types/data/json.d.ts +1 -1
  67. package/types/element/Hyperlink.d.ts +8 -3
  68. package/types/element/binding.d.ts +3 -3
  69. package/types/element/dragElements.d.ts +1 -1
  70. package/types/element/linearElementEditor.d.ts +7 -2
  71. package/types/element/mutateElement.d.ts +1 -1
  72. package/types/element/textElement.d.ts +1 -1
  73. package/types/element/typeChecks.d.ts +3 -3
  74. package/types/jotai.d.ts +5 -3
  75. package/types/keys.d.ts +1 -1
  76. package/types/packages/excalidraw/example/App.d.ts +0 -1
  77. package/types/renderer/renderElement.d.ts +1 -1
  78. package/types/renderer/renderScene.d.ts +9 -1
  79. package/types/shapes.d.ts +0 -1
  80. package/types/types.d.ts +21 -12
  81. package/types/utils.d.ts +8 -5
@@ -20,7 +20,8 @@ https://github.com/nodeca/pica
20
20
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
21
21
  */
22
22
 
23
- /** @license React v17.0.2
23
+ /**
24
+ * @license React
24
25
  * react-jsx-runtime.production.min.js
25
26
  *
26
27
  * Copyright (c) Facebook, Inc. and its affiliates.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zsviczian/excalidraw",
3
- "version": "0.11.0-obsidian-21-namedexport",
3
+ "version": "0.12.0-obsidian-0",
4
4
  "main": "main.js",
5
5
  "types": "types/packages/excalidraw/index.d.ts",
6
6
  "files": [
@@ -40,33 +40,34 @@
40
40
  ]
41
41
  },
42
42
  "peerDependencies": {
43
- "react": "^17.0.2",
44
- "react-dom": "^17.0.2"
43
+ "react": "^17.0.2 || ^18.2.0",
44
+ "react-dom": "^17.0.2 || ^18.2.0"
45
45
  },
46
46
  "devDependencies": {
47
- "@babel/core": "7.17.0",
48
- "@babel/plugin-transform-arrow-functions": "7.16.7",
49
- "@babel/plugin-transform-async-to-generator": "7.16.0",
50
- "@babel/plugin-transform-runtime": "7.17.10",
51
- "@babel/plugin-transform-typescript": "7.16.1",
52
- "@babel/preset-env": "7.17.10",
53
- "@babel/preset-react": "7.16.7",
54
- "@babel/preset-typescript": "7.16.7",
47
+ "@babel/core": "7.18.9",
48
+ "@babel/plugin-transform-arrow-functions": "7.18.6",
49
+ "@babel/plugin-transform-async-to-generator": "7.18.6",
50
+ "@babel/plugin-transform-runtime": "7.18.9",
51
+ "@babel/plugin-transform-typescript": "7.18.8",
52
+ "@babel/preset-env": "7.18.6",
53
+ "@babel/preset-react": "7.18.6",
54
+ "@babel/preset-typescript": "7.18.6",
55
55
  "autoprefixer": "10.4.7",
56
56
  "babel-loader": "8.2.5",
57
57
  "babel-plugin-transform-class-properties": "6.24.1",
58
58
  "cross-env": "7.0.3",
59
59
  "css-loader": "6.7.1",
60
- "mini-css-extract-plugin": "2.6.0",
61
- "postcss-loader": "6.2.1",
62
- "sass-loader": "12.4.0",
63
- "terser-webpack-plugin": "5.3.1",
64
- "ts-loader": "9.3.0",
65
- "typescript": "4.6.4",
66
- "webpack": "5.72.0",
60
+ "dotenv": "16.0.1",
61
+ "mini-css-extract-plugin": "2.6.1",
62
+ "postcss-loader": "7.0.1",
63
+ "sass-loader": "13.0.2",
64
+ "terser-webpack-plugin": "5.3.3",
65
+ "ts-loader": "9.3.1",
66
+ "typescript": "4.7.4",
67
+ "webpack": "5.73.0",
67
68
  "webpack-bundle-analyzer": "4.5.0",
68
- "webpack-cli": "4.9.2",
69
- "webpack-dev-server": "4.9.0",
69
+ "webpack-cli": "4.10.0",
70
+ "webpack-dev-server": "4.9.3",
70
71
  "webpack-merge": "5.8.0"
71
72
  },
72
73
  "bugs": "https://github.com/excalidraw/excalidraw/issues",
@@ -78,9 +79,6 @@
78
79
  "pack": "yarn build:umd && yarn pack",
79
80
  "start": "webpack serve --config webpack.dev-server.config.js",
80
81
  "install:deps": "yarn install --frozen-lockfile && yarn --cwd ../../../",
81
- "build:example": "EXAMPLE=true webpack --config webpack.dev-server.config.js"
82
- },
83
- "dependencies": {
84
- "dotenv": "10.0.0"
82
+ "build:example": "EXAMPLE=true webpack --config webpack.dev-server.config.js && yarn gen:types"
85
83
  }
86
84
  }
@@ -6,7 +6,9 @@ export declare const actionAddToLibrary: {
6
6
  perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<{
7
7
  commitToHistory: boolean;
8
8
  appState: {
9
- toastMessage: string;
9
+ toast: {
10
+ message: string;
11
+ };
10
12
  isLoading: boolean;
11
13
  errorMessage: string | null;
12
14
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -84,6 +86,7 @@ export declare const actionAddToLibrary: {
84
86
  offsetTop: number;
85
87
  offsetLeft: number;
86
88
  isLibraryOpen: boolean;
89
+ isLibraryMenuDocked: boolean;
87
90
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
88
91
  collaborators: Map<string, import("../types").Collaborator>;
89
92
  showStats: boolean;
@@ -95,7 +98,7 @@ export declare const actionAddToLibrary: {
95
98
  shown: true;
96
99
  data: import("../charts").Spreadsheet;
97
100
  };
98
- pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
101
+ pendingImageElementId: string | null;
99
102
  showHyperlinkPopup: false | "info" | "editor";
100
103
  linkOpacity: number;
101
104
  trayModeEnabled: boolean;
@@ -172,7 +175,11 @@ export declare const actionAddToLibrary: {
172
175
  };
173
176
  shouldCacheIgnoreZoom: boolean;
174
177
  showHelpDialog: boolean;
175
- toastMessage: string | null;
178
+ toast: {
179
+ message: string;
180
+ closable?: boolean | undefined;
181
+ duration?: number | undefined;
182
+ } | null;
176
183
  zenModeEnabled: boolean;
177
184
  theme: string;
178
185
  gridSize: number | null;
@@ -186,6 +193,7 @@ export declare const actionAddToLibrary: {
186
193
  offsetTop: number;
187
194
  offsetLeft: number;
188
195
  isLibraryOpen: boolean;
196
+ isLibraryMenuDocked: boolean;
189
197
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
190
198
  collaborators: Map<string, import("../types").Collaborator>;
191
199
  showStats: boolean;
@@ -197,7 +205,7 @@ export declare const actionAddToLibrary: {
197
205
  shown: true;
198
206
  data: import("../charts").Spreadsheet;
199
207
  };
200
- pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
208
+ pendingImageElementId: string | null;
201
209
  showHyperlinkPopup: false | "info" | "editor";
202
210
  linkOpacity: number;
203
211
  trayModeEnabled: boolean;
@@ -274,7 +282,11 @@ export declare const actionAddToLibrary: {
274
282
  };
275
283
  shouldCacheIgnoreZoom: boolean;
276
284
  showHelpDialog: boolean;
277
- toastMessage: string | null;
285
+ toast: {
286
+ message: string;
287
+ closable?: boolean | undefined;
288
+ duration?: number | undefined;
289
+ } | null;
278
290
  zenModeEnabled: boolean;
279
291
  theme: string;
280
292
  gridSize: number | null;
@@ -288,6 +300,7 @@ export declare const actionAddToLibrary: {
288
300
  offsetTop: number;
289
301
  offsetLeft: number;
290
302
  isLibraryOpen: boolean;
303
+ isLibraryMenuDocked: boolean;
291
304
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
292
305
  collaborators: Map<string, import("../types").Collaborator>;
293
306
  showStats: boolean;
@@ -299,7 +312,7 @@ export declare const actionAddToLibrary: {
299
312
  shown: true;
300
313
  data: import("../charts").Spreadsheet;
301
314
  };
302
- pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
315
+ pendingImageElementId: string | null;
303
316
  showHyperlinkPopup: false | "info" | "editor";
304
317
  linkOpacity: number;
305
318
  trayModeEnabled: boolean;
@@ -12,7 +12,7 @@ export declare const actionAlignTop: {
12
12
  commitToHistory: true;
13
13
  };
14
14
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
15
- PanelComponent: ({ elements, appState, updateData }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
15
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
16
16
  } & {
17
17
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
18
18
  };
@@ -27,7 +27,7 @@ export declare const actionAlignBottom: {
27
27
  commitToHistory: true;
28
28
  };
29
29
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
30
- PanelComponent: ({ elements, appState, updateData }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
30
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
31
31
  } & {
32
32
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
33
33
  };
@@ -42,7 +42,7 @@ export declare const actionAlignLeft: {
42
42
  commitToHistory: true;
43
43
  };
44
44
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
45
- PanelComponent: ({ elements, appState, updateData }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
45
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
46
46
  } & {
47
47
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
48
48
  };
@@ -57,7 +57,7 @@ export declare const actionAlignRight: {
57
57
  commitToHistory: true;
58
58
  };
59
59
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
60
- PanelComponent: ({ elements, appState, updateData }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
60
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
61
61
  } & {
62
62
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
63
63
  };
@@ -71,7 +71,7 @@ export declare const actionAlignVerticallyCentered: {
71
71
  elements: ExcalidrawElement[];
72
72
  commitToHistory: true;
73
73
  };
74
- PanelComponent: ({ elements, appState, updateData }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
74
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
75
75
  } & {
76
76
  keyTest?: undefined;
77
77
  };
@@ -85,7 +85,7 @@ export declare const actionAlignHorizontallyCentered: {
85
85
  elements: ExcalidrawElement[];
86
86
  commitToHistory: true;
87
87
  };
88
- PanelComponent: ({ elements, appState, updateData }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
88
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
89
89
  } & {
90
90
  keyTest?: undefined;
91
91
  };
@@ -87,7 +87,11 @@ export declare const actionBindText: {
87
87
  };
88
88
  shouldCacheIgnoreZoom: boolean;
89
89
  showHelpDialog: boolean;
90
- toastMessage: string | null;
90
+ toast: {
91
+ message: string;
92
+ closable?: boolean | undefined;
93
+ duration?: number | undefined;
94
+ } | null;
91
95
  zenModeEnabled: boolean;
92
96
  theme: string;
93
97
  gridSize: number | null;
@@ -101,6 +105,7 @@ export declare const actionBindText: {
101
105
  offsetTop: number;
102
106
  offsetLeft: number;
103
107
  isLibraryOpen: boolean;
108
+ isLibraryMenuDocked: boolean;
104
109
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
105
110
  collaborators: Map<string, import("../types").Collaborator>;
106
111
  showStats: boolean;
@@ -112,7 +117,7 @@ export declare const actionBindText: {
112
117
  shown: true;
113
118
  data: import("../charts").Spreadsheet;
114
119
  };
115
- pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
120
+ pendingImageElementId: string | null;
116
121
  showHyperlinkPopup: false | "info" | "editor";
117
122
  linkOpacity: number;
118
123
  trayModeEnabled: boolean;
@@ -8,7 +8,7 @@ export declare const actionChangeViewBackgroundColor: {
8
8
  appState: any;
9
9
  commitToHistory: boolean;
10
10
  };
11
- PanelComponent: ({ elements, appState, updateData }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
11
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
12
12
  } & {
13
13
  keyTest?: undefined;
14
14
  };
@@ -95,7 +95,11 @@ export declare const actionClearCanvas: {
95
95
  [id: string]: boolean;
96
96
  };
97
97
  showHelpDialog: boolean;
98
- toastMessage: string | null;
98
+ toast: {
99
+ message: string;
100
+ closable?: boolean | undefined;
101
+ duration?: number | undefined;
102
+ } | null;
99
103
  zenModeEnabled: boolean;
100
104
  viewModeEnabled: boolean;
101
105
  selectedGroupIds: {
@@ -103,10 +107,11 @@ export declare const actionClearCanvas: {
103
107
  };
104
108
  editingGroupId: string | null;
105
109
  isLibraryOpen: boolean;
110
+ isLibraryMenuDocked: boolean;
106
111
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
107
112
  collaborators: Map<string, import("../types").Collaborator>;
108
113
  currentChartType: import("../element/types").ChartType;
109
- pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
114
+ pendingImageElementId: string | null;
110
115
  showHyperlinkPopup: false | "info" | "editor";
111
116
  linkOpacity: number;
112
117
  trayModeEnabled: boolean;
@@ -118,7 +123,7 @@ export declare const actionClearCanvas: {
118
123
  };
119
124
  commitToHistory: true;
120
125
  };
121
- PanelComponent: ({ updateData }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
126
+ PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
122
127
  } & {
123
128
  keyTest?: undefined;
124
129
  };
@@ -193,7 +198,11 @@ export declare const actionZoomIn: {
193
198
  };
194
199
  shouldCacheIgnoreZoom: boolean;
195
200
  showHelpDialog: boolean;
196
- toastMessage: string | null;
201
+ toast: {
202
+ message: string;
203
+ closable?: boolean | undefined;
204
+ duration?: number | undefined;
205
+ } | null;
197
206
  zenModeEnabled: boolean;
198
207
  theme: string;
199
208
  gridSize: number | null;
@@ -207,6 +216,7 @@ export declare const actionZoomIn: {
207
216
  offsetTop: number;
208
217
  offsetLeft: number;
209
218
  isLibraryOpen: boolean;
219
+ isLibraryMenuDocked: boolean;
210
220
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
211
221
  collaborators: Map<string, import("../types").Collaborator>;
212
222
  showStats: boolean;
@@ -218,7 +228,7 @@ export declare const actionZoomIn: {
218
228
  shown: true;
219
229
  data: import("../charts").Spreadsheet;
220
230
  };
221
- pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
231
+ pendingImageElementId: string | null;
222
232
  showHyperlinkPopup: false | "info" | "editor";
223
233
  linkOpacity: number;
224
234
  trayModeEnabled: boolean;
@@ -230,7 +240,7 @@ export declare const actionZoomIn: {
230
240
  };
231
241
  commitToHistory: false;
232
242
  };
233
- PanelComponent: ({ updateData }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
243
+ PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
234
244
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
235
245
  } & {
236
246
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
@@ -306,7 +316,11 @@ export declare const actionZoomOut: {
306
316
  };
307
317
  shouldCacheIgnoreZoom: boolean;
308
318
  showHelpDialog: boolean;
309
- toastMessage: string | null;
319
+ toast: {
320
+ message: string;
321
+ closable?: boolean | undefined;
322
+ duration?: number | undefined;
323
+ } | null;
310
324
  zenModeEnabled: boolean;
311
325
  theme: string;
312
326
  gridSize: number | null;
@@ -320,6 +334,7 @@ export declare const actionZoomOut: {
320
334
  offsetTop: number;
321
335
  offsetLeft: number;
322
336
  isLibraryOpen: boolean;
337
+ isLibraryMenuDocked: boolean;
323
338
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
324
339
  collaborators: Map<string, import("../types").Collaborator>;
325
340
  showStats: boolean;
@@ -331,7 +346,7 @@ export declare const actionZoomOut: {
331
346
  shown: true;
332
347
  data: import("../charts").Spreadsheet;
333
348
  };
334
- pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
349
+ pendingImageElementId: string | null;
335
350
  showHyperlinkPopup: false | "info" | "editor";
336
351
  linkOpacity: number;
337
352
  trayModeEnabled: boolean;
@@ -343,7 +358,7 @@ export declare const actionZoomOut: {
343
358
  };
344
359
  commitToHistory: false;
345
360
  };
346
- PanelComponent: ({ updateData }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
361
+ PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
347
362
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
348
363
  } & {
349
364
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
@@ -419,7 +434,11 @@ export declare const actionResetZoom: {
419
434
  };
420
435
  shouldCacheIgnoreZoom: boolean;
421
436
  showHelpDialog: boolean;
422
- toastMessage: string | null;
437
+ toast: {
438
+ message: string;
439
+ closable?: boolean | undefined;
440
+ duration?: number | undefined;
441
+ } | null;
423
442
  zenModeEnabled: boolean;
424
443
  theme: string;
425
444
  gridSize: number | null;
@@ -433,6 +452,7 @@ export declare const actionResetZoom: {
433
452
  offsetTop: number;
434
453
  offsetLeft: number;
435
454
  isLibraryOpen: boolean;
455
+ isLibraryMenuDocked: boolean;
436
456
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
437
457
  collaborators: Map<string, import("../types").Collaborator>;
438
458
  showStats: boolean;
@@ -444,7 +464,7 @@ export declare const actionResetZoom: {
444
464
  shown: true;
445
465
  data: import("../charts").Spreadsheet;
446
466
  };
447
- pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
467
+ pendingImageElementId: string | null;
448
468
  showHyperlinkPopup: false | "info" | "editor";
449
469
  linkOpacity: number;
450
470
  trayModeEnabled: boolean;
@@ -456,7 +476,7 @@ export declare const actionResetZoom: {
456
476
  };
457
477
  commitToHistory: false;
458
478
  };
459
- PanelComponent: ({ updateData, appState }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
479
+ PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => JSX.Element;
460
480
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
461
481
  } & {
462
482
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
@@ -527,7 +547,11 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
527
547
  };
528
548
  shouldCacheIgnoreZoom: boolean;
529
549
  showHelpDialog: boolean;
530
- toastMessage: string | null;
550
+ toast: {
551
+ message: string;
552
+ closable?: boolean | undefined;
553
+ duration?: number | undefined;
554
+ } | null;
531
555
  zenModeEnabled: boolean;
532
556
  theme: string;
533
557
  gridSize: number | null;
@@ -541,6 +565,7 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
541
565
  offsetTop: number;
542
566
  offsetLeft: number;
543
567
  isLibraryOpen: boolean;
568
+ isLibraryMenuDocked: boolean;
544
569
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
545
570
  collaborators: Map<string, import("../types").Collaborator>;
546
571
  showStats: boolean;
@@ -552,7 +577,7 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
552
577
  shown: true;
553
578
  data: import("../charts").Spreadsheet;
554
579
  };
555
- pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
580
+ pendingImageElementId: string | null;
556
581
  showHyperlinkPopup: false | "info" | "editor";
557
582
  linkOpacity: number;
558
583
  trayModeEnabled: boolean;
@@ -635,7 +660,11 @@ export declare const actionZoomToSelected: {
635
660
  };
636
661
  shouldCacheIgnoreZoom: boolean;
637
662
  showHelpDialog: boolean;
638
- toastMessage: string | null;
663
+ toast: {
664
+ message: string;
665
+ closable?: boolean | undefined;
666
+ duration?: number | undefined;
667
+ } | null;
639
668
  zenModeEnabled: boolean;
640
669
  theme: string;
641
670
  gridSize: number | null;
@@ -649,6 +678,7 @@ export declare const actionZoomToSelected: {
649
678
  offsetTop: number;
650
679
  offsetLeft: number;
651
680
  isLibraryOpen: boolean;
681
+ isLibraryMenuDocked: boolean;
652
682
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
653
683
  collaborators: Map<string, import("../types").Collaborator>;
654
684
  showStats: boolean;
@@ -660,7 +690,7 @@ export declare const actionZoomToSelected: {
660
690
  shown: true;
661
691
  data: import("../charts").Spreadsheet;
662
692
  };
663
- pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
693
+ pendingImageElementId: string | null;
664
694
  showHyperlinkPopup: false | "info" | "editor";
665
695
  linkOpacity: number;
666
696
  trayModeEnabled: boolean;
@@ -747,7 +777,11 @@ export declare const actionZoomToFit: {
747
777
  };
748
778
  shouldCacheIgnoreZoom: boolean;
749
779
  showHelpDialog: boolean;
750
- toastMessage: string | null;
780
+ toast: {
781
+ message: string;
782
+ closable?: boolean | undefined;
783
+ duration?: number | undefined;
784
+ } | null;
751
785
  zenModeEnabled: boolean;
752
786
  theme: string;
753
787
  gridSize: number | null;
@@ -761,6 +795,7 @@ export declare const actionZoomToFit: {
761
795
  offsetTop: number;
762
796
  offsetLeft: number;
763
797
  isLibraryOpen: boolean;
798
+ isLibraryMenuDocked: boolean;
764
799
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
765
800
  collaborators: Map<string, import("../types").Collaborator>;
766
801
  showStats: boolean;
@@ -772,7 +807,7 @@ export declare const actionZoomToFit: {
772
807
  shown: true;
773
808
  data: import("../charts").Spreadsheet;
774
809
  };
775
- pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
810
+ pendingImageElementId: string | null;
776
811
  showHyperlinkPopup: false | "info" | "editor";
777
812
  linkOpacity: number;
778
813
  trayModeEnabled: boolean;
@@ -860,7 +895,11 @@ export declare const actionToggleTheme: {
860
895
  };
861
896
  shouldCacheIgnoreZoom: boolean;
862
897
  showHelpDialog: boolean;
863
- toastMessage: string | null;
898
+ toast: {
899
+ message: string;
900
+ closable?: boolean | undefined;
901
+ duration?: number | undefined;
902
+ } | null;
864
903
  zenModeEnabled: boolean;
865
904
  gridSize: number | null;
866
905
  viewModeEnabled: boolean;
@@ -873,6 +912,7 @@ export declare const actionToggleTheme: {
873
912
  offsetTop: number;
874
913
  offsetLeft: number;
875
914
  isLibraryOpen: boolean;
915
+ isLibraryMenuDocked: boolean;
876
916
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
877
917
  collaborators: Map<string, import("../types").Collaborator>;
878
918
  showStats: boolean;
@@ -884,7 +924,7 @@ export declare const actionToggleTheme: {
884
924
  shown: true;
885
925
  data: import("../charts").Spreadsheet;
886
926
  };
887
- pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
927
+ pendingImageElementId: string | null;
888
928
  showHyperlinkPopup: false | "info" | "editor";
889
929
  linkOpacity: number;
890
930
  trayModeEnabled: boolean;
@@ -896,7 +936,7 @@ export declare const actionToggleTheme: {
896
936
  };
897
937
  commitToHistory: false;
898
938
  };
899
- PanelComponent: ({ appState, updateData }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
939
+ PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
900
940
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
901
941
  } & {
902
942
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
@@ -971,7 +1011,11 @@ export declare const actionErase: {
971
1011
  };
972
1012
  shouldCacheIgnoreZoom: boolean;
973
1013
  showHelpDialog: boolean;
974
- toastMessage: string | null;
1014
+ toast: {
1015
+ message: string;
1016
+ closable?: boolean | undefined;
1017
+ duration?: number | undefined;
1018
+ } | null;
975
1019
  zenModeEnabled: boolean;
976
1020
  theme: string;
977
1021
  gridSize: number | null;
@@ -982,6 +1026,7 @@ export declare const actionErase: {
982
1026
  offsetTop: number;
983
1027
  offsetLeft: number;
984
1028
  isLibraryOpen: boolean;
1029
+ isLibraryMenuDocked: boolean;
985
1030
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
986
1031
  collaborators: Map<string, import("../types").Collaborator>;
987
1032
  showStats: boolean;
@@ -993,7 +1038,7 @@ export declare const actionErase: {
993
1038
  shown: true;
994
1039
  data: import("../charts").Spreadsheet;
995
1040
  };
996
- pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
1041
+ pendingImageElementId: string | null;
997
1042
  showHyperlinkPopup: false | "info" | "editor";
998
1043
  linkOpacity: number;
999
1044
  trayModeEnabled: boolean;
@@ -1006,7 +1051,7 @@ export declare const actionErase: {
1006
1051
  commitToHistory: true;
1007
1052
  };
1008
1053
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1009
- PanelComponent: ({ elements, appState, updateData, data }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
1054
+ PanelComponent: ({ elements, appState, updateData, data }: import("./types").PanelComponentProps) => JSX.Element;
1010
1055
  } & {
1011
1056
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1012
1057
  };