@zsviczian/excalidraw 0.15.2-obsidian-12 → 0.15.3-obsidian

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 (101) hide show
  1. package/dist/excalidraw.development.js +119 -42
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/package.json +1 -1
  4. package/types/actions/actionAddToLibrary.d.ts +12 -3
  5. package/types/actions/actionBoundText.d.ts +8 -2
  6. package/types/actions/actionCanvas.d.ts +48 -12
  7. package/types/actions/actionClipboard.d.ts +20 -5
  8. package/types/actions/actionDeleteSelected.d.ts +12 -3
  9. package/types/actions/actionElementLock.d.ts +8 -2
  10. package/types/actions/actionExport.d.ts +36 -9
  11. package/types/actions/actionFinalize.d.ts +9 -3
  12. package/types/actions/actionFrame.d.ts +12 -3
  13. package/types/actions/actionGroup.d.ts +291 -3
  14. package/types/actions/actionLinearEditor.d.ts +4 -1
  15. package/types/actions/actionMenu.d.ts +12 -3
  16. package/types/actions/actionProperties.d.ts +52 -13
  17. package/types/actions/actionSelectAll.d.ts +146 -1
  18. package/types/actions/actionStyles.d.ts +4 -1
  19. package/types/actions/actionToggleGridMode.d.ts +4 -1
  20. package/types/actions/actionToggleStats.d.ts +4 -1
  21. package/types/actions/actionToggleViewMode.d.ts +4 -1
  22. package/types/actions/actionToggleZenMode.d.ts +4 -1
  23. package/types/clipboard.d.ts +1 -0
  24. package/types/components/Actions.d.ts +2 -2
  25. package/types/components/App.d.ts +8 -6
  26. package/types/components/JSONExportDialog.d.ts +1 -1
  27. package/types/components/LayerUI.d.ts +3 -2
  28. package/types/components/MobileMenu.d.ts +2 -2
  29. package/types/components/canvases/InteractiveCanvas.d.ts +27 -0
  30. package/types/components/canvases/StaticCanvas.d.ts +18 -0
  31. package/types/components/canvases/index.d.ts +3 -0
  32. package/types/constants.d.ts +1 -0
  33. package/types/data/transform.d.ts +71 -0
  34. package/types/element/Hyperlink.d.ts +5 -2
  35. package/types/element/binding.d.ts +1 -0
  36. package/types/element/embeddable.d.ts +4 -1
  37. package/types/element/linearElementEditor.d.ts +7 -4
  38. package/types/element/newElement.d.ts +9 -5
  39. package/types/element/sizeHelpers.d.ts +8 -1
  40. package/types/element/textElement.d.ts +3 -1
  41. package/types/element/textWysiwyg.d.ts +1 -1
  42. package/types/element/transformHandles.d.ts +2 -2
  43. package/types/frame.d.ts +3 -3
  44. package/types/groups.d.ts +11 -11
  45. package/types/packages/excalidraw/example/initialData.d.ts +182 -70
  46. package/types/packages/excalidraw/index.d.ts +1 -0
  47. package/types/renderer/renderElement.d.ts +9 -21
  48. package/types/renderer/renderScene.d.ts +16 -36
  49. package/types/scene/Renderer.d.ts +25 -0
  50. package/types/scene/Scene.d.ts +2 -0
  51. package/types/scene/Shape.d.ts +12 -0
  52. package/types/scene/ShapeCache.d.ts +20 -0
  53. package/types/scene/scroll.d.ts +1 -1
  54. package/types/scene/scrollbars.d.ts +2 -6
  55. package/types/scene/selection.d.ts +2 -2
  56. package/types/scene/types.d.ts +57 -24
  57. package/types/types.d.ts +49 -4
  58. package/types/utils.d.ts +12 -4
  59. package/types/actions/actionToggleLock.d.ts +0 -139
  60. package/types/bug-issue-template.d.ts +0 -2
  61. package/types/components/ActiveFile.d.ts +0 -7
  62. package/types/components/BackgroundPickerAndDarkModeToggle.d.ts +0 -4
  63. package/types/components/ClearCanvas.d.ts +0 -4
  64. package/types/components/CollabButton.d.ts +0 -7
  65. package/types/components/ColorPicker.d.ts +0 -19
  66. package/types/components/EncryptedIcon.d.ts +0 -2
  67. package/types/components/Footer.d.ts +0 -10
  68. package/types/components/HelpIcon.d.ts +0 -8
  69. package/types/components/LibraryButton.d.ts +0 -8
  70. package/types/components/MenuItem.d.ts +0 -11
  71. package/types/components/MenuUtils.d.ts +0 -2
  72. package/types/components/SidebarLockButton.d.ts +0 -8
  73. package/types/components/SingleLibraryItem.d.ts +0 -10
  74. package/types/components/TopErrorBoundary.d.ts +0 -15
  75. package/types/components/WelcomeScreen.d.ts +0 -8
  76. package/types/components/WelcomeScreenDecor.d.ts +0 -6
  77. package/types/components/context/tunnels.d.ts +0 -16
  78. package/types/components/hoc/withUpstreamOverride.d.ts +0 -10
  79. package/types/components/mainMenu/DefaultItems.d.ts +0 -44
  80. package/types/components/mainMenu/MainMenu.d.ts +0 -63
  81. package/types/element/iframe.d.ts +0 -167
  82. package/types/excalidraw-app/CustomStats.d.ts +0 -9
  83. package/types/excalidraw-app/app_constants.d.ts +0 -32
  84. package/types/excalidraw-app/collab/Collab.d.ts +0 -163
  85. package/types/excalidraw-app/collab/Portal.d.ts +0 -28
  86. package/types/excalidraw-app/collab/RoomDialog.d.ts +0 -13
  87. package/types/excalidraw-app/collab/reconciliation.d.ts +0 -10
  88. package/types/excalidraw-app/components/ExportToExcalidrawPlus.d.ts +0 -9
  89. package/types/excalidraw-app/components/LanguageList.d.ts +0 -4
  90. package/types/excalidraw-app/components/icons.d.ts +0 -1
  91. package/types/excalidraw-app/data/FileManager.d.ts +0 -66
  92. package/types/excalidraw-app/data/LocalData.d.ts +0 -32
  93. package/types/excalidraw-app/data/Locker.d.ts +0 -8
  94. package/types/excalidraw-app/data/firebase.d.ts +0 -25
  95. package/types/excalidraw-app/data/index.d.ts +0 -190
  96. package/types/excalidraw-app/data/localStorage.d.ts +0 -116
  97. package/types/excalidraw-app/data/tabSync.d.ts +0 -9
  98. package/types/excalidraw-app/index.d.ts +0 -26
  99. package/types/packages/common.webpack.dev.config.d.ts +0 -72
  100. package/types/packages/common.webpack.prod.config.d.ts +0 -84
  101. package/types/packages/excalidraw/example/sidebar/Sidebar.d.ts +0 -5
package/types/types.d.ts CHANGED
@@ -66,6 +66,47 @@ export type LastActiveTool = {
66
66
  } | null;
67
67
  export type SidebarName = string;
68
68
  export type SidebarTabName = string;
69
+ type _CommonCanvasAppState = {
70
+ zoom: AppState["zoom"];
71
+ scrollX: AppState["scrollX"];
72
+ scrollY: AppState["scrollY"];
73
+ width: AppState["width"];
74
+ height: AppState["height"];
75
+ viewModeEnabled: AppState["viewModeEnabled"];
76
+ editingGroupId: AppState["editingGroupId"];
77
+ selectedElementIds: AppState["selectedElementIds"];
78
+ frameToHighlight: AppState["frameToHighlight"];
79
+ offsetLeft: AppState["offsetLeft"];
80
+ offsetTop: AppState["offsetTop"];
81
+ theme: AppState["theme"];
82
+ pendingImageElementId: AppState["pendingImageElementId"];
83
+ };
84
+ export type StaticCanvasAppState = Readonly<_CommonCanvasAppState & {
85
+ shouldCacheIgnoreZoom: AppState["shouldCacheIgnoreZoom"];
86
+ /** null indicates transparent bg */
87
+ viewBackgroundColor: AppState["viewBackgroundColor"] | null;
88
+ exportScale: AppState["exportScale"];
89
+ selectedElementsAreBeingDragged: AppState["selectedElementsAreBeingDragged"];
90
+ gridSize: AppState["gridSize"];
91
+ frameRendering: AppState["frameRendering"];
92
+ linkOpacity: AppState["linkOpacity"];
93
+ gridColor: AppState["gridColor"];
94
+ }>;
95
+ export type InteractiveCanvasAppState = Readonly<_CommonCanvasAppState & {
96
+ activeEmbeddable: AppState["activeEmbeddable"];
97
+ editingLinearElement: AppState["editingLinearElement"];
98
+ selectionElement: AppState["selectionElement"];
99
+ selectedGroupIds: AppState["selectedGroupIds"];
100
+ selectedLinearElement: AppState["selectedLinearElement"];
101
+ multiElement: AppState["multiElement"];
102
+ isBindingEnabled: AppState["isBindingEnabled"];
103
+ suggestedBindings: AppState["suggestedBindings"];
104
+ isRotating: AppState["isRotating"];
105
+ elementsToHighlight: AppState["elementsToHighlight"];
106
+ openSidebar: AppState["openSidebar"];
107
+ showHyperlinkPopup: AppState["showHyperlinkPopup"];
108
+ collaborators: AppState["collaborators"];
109
+ }>;
69
110
  export type AppState = {
70
111
  contextMenu: {
71
112
  items: ContextMenuItems;
@@ -216,7 +257,10 @@ export type AppState = {
216
257
  customPens?: any[];
217
258
  currentStrokeOptions?: any;
218
259
  resetCustomPen?: any;
219
- gridColor: string;
260
+ gridColor: {
261
+ Bold: string;
262
+ Regular: string;
263
+ };
220
264
  dynamicStyle: string;
221
265
  invertBindingBehaviour: boolean;
222
266
  selectedLinearElement: LinearElementEditor | null;
@@ -329,8 +373,8 @@ export declare enum UserIdleState {
329
373
  }
330
374
  export type ExportOpts = {
331
375
  saveFileToDisk?: boolean;
332
- onExportToBackend?: (exportedElements: readonly NonDeletedExcalidrawElement[], appState: UIAppState, files: BinaryFiles, canvas: HTMLCanvasElement | null) => void;
333
- renderCustomUI?: (exportedElements: readonly NonDeletedExcalidrawElement[], appState: UIAppState, files: BinaryFiles, canvas: HTMLCanvasElement | null) => JSX.Element;
376
+ onExportToBackend?: (exportedElements: readonly NonDeletedExcalidrawElement[], appState: UIAppState, files: BinaryFiles, canvas: HTMLCanvasElement) => void;
377
+ renderCustomUI?: (exportedElements: readonly NonDeletedExcalidrawElement[], appState: UIAppState, files: BinaryFiles, canvas: HTMLCanvasElement) => JSX.Element;
334
378
  };
335
379
  type CanvasActions = Partial<{
336
380
  changeViewBackgroundColor: boolean;
@@ -362,7 +406,8 @@ export type AppProps = Merge<ExcalidrawProps, {
362
406
  * in the app, eg Manager. Factored out into a separate type to keep DRY. */
363
407
  export type AppClassProperties = {
364
408
  props: AppProps;
365
- canvas: HTMLCanvasElement | null;
409
+ canvas: HTMLCanvasElement;
410
+ interactiveCanvas: HTMLCanvasElement | null;
366
411
  focusContainer(): void;
367
412
  library: Library;
368
413
  imageCache: Map<FileId, {
package/types/utils.d.ts CHANGED
@@ -88,10 +88,10 @@ export declare const updateActiveTool: (appState: Pick<AppState, "activeTool">,
88
88
  }) & {
89
89
  lastActiveToolBeforeEraser?: LastActiveTool;
90
90
  }) => AppState["activeTool"];
91
- export declare const resetCursor: (canvas: HTMLCanvasElement | null) => void;
92
- export declare const setCursor: (canvas: HTMLCanvasElement | null, cursor: string) => void;
93
- export declare const setEraserCursor: (canvas: HTMLCanvasElement | null, theme: AppState["theme"]) => void;
94
- export declare const setCursorForShape: (canvas: HTMLCanvasElement | null, appState: Pick<AppState, "activeTool" | "theme">) => void;
91
+ export declare const resetCursor: (interactiveCanvas: HTMLCanvasElement | null) => void;
92
+ export declare const setCursor: (interactiveCanvas: HTMLCanvasElement | null, cursor: string) => void;
93
+ export declare const setEraserCursor: (interactiveCanvas: HTMLCanvasElement | null, theme: AppState["theme"]) => void;
94
+ export declare const setCursorForShape: (interactiveCanvas: HTMLCanvasElement | null, appState: Pick<AppState, "activeTool" | "theme">) => void;
95
95
  export declare const isFullScreen: () => boolean;
96
96
  export declare const allowFullScreen: () => Promise<void>;
97
97
  export declare const exitFullScreen: () => Promise<void>;
@@ -190,3 +190,11 @@ export declare const composeEventHandlers: <E>(originalEventHandler?: ((event: E
190
190
  checkForDefaultPrevented?: boolean | undefined;
191
191
  }) => (event: E) => void;
192
192
  export declare const isOnlyExportingSingleFrame: (elements: readonly NonDeletedExcalidrawElement[]) => boolean;
193
+ export declare const assertNever: (value: never, message: string, softAssert?: boolean) => never;
194
+ /**
195
+ * Memoizes on values of `opts` object (strict equality).
196
+ */
197
+ export declare const memoize: <T extends Record<string, any>, R extends unknown>(func: (opts: T) => R) => ((opts: T) => R) & {
198
+ clear: () => void;
199
+ };
200
+ export declare const isRenderThrottlingEnabled: () => boolean;
@@ -1,139 +0,0 @@
1
- /// <reference types="react" />
2
- import { ExcalidrawElement } from "../element/types";
3
- export declare const actionToggleLock: {
4
- name: "toggleLock";
5
- trackEvent: {
6
- category: "element";
7
- };
8
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => false | {
9
- elements: ExcalidrawElement[];
10
- appState: {
11
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
12
- contextMenu: {
13
- items: import("../components/ContextMenu").ContextMenuItems;
14
- top: number;
15
- left: number;
16
- } | null;
17
- showWelcomeScreen: boolean;
18
- isLoading: boolean;
19
- errorMessage: import("react").ReactNode;
20
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
21
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
22
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
23
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
24
- isBindingEnabled: boolean;
25
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
26
- suggestedBindings: import("../element/binding").SuggestedBinding[];
27
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
28
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
29
- activeTool: {
30
- lastActiveTool: import("../types").LastActiveTool;
31
- locked: boolean;
32
- } & ({
33
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
34
- customType: null;
35
- } | {
36
- type: "custom";
37
- customType: string;
38
- });
39
- penMode: boolean;
40
- penDetected: boolean;
41
- exportBackground: boolean;
42
- exportEmbedScene: boolean;
43
- exportWithDarkMode: boolean;
44
- exportScale: number;
45
- currentItemStrokeColor: string;
46
- currentItemBackgroundColor: string;
47
- currentItemFillStyle: import("../element/types").FillStyle;
48
- currentItemStrokeWidth: number;
49
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
50
- currentItemRoughness: number;
51
- currentItemOpacity: number;
52
- currentItemFontFamily: number;
53
- currentItemFontSize: number;
54
- currentItemTextAlign: string;
55
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
56
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
57
- currentItemRoundness: import("../element/types").StrokeRoundness;
58
- viewBackgroundColor: string;
59
- scrollX: number;
60
- scrollY: number;
61
- cursorButton: "up" | "down";
62
- scrolledOutside: boolean;
63
- name: string;
64
- isResizing: boolean;
65
- isRotating: boolean;
66
- zoom: Readonly<{
67
- value: import("../types").NormalizedZoomValue;
68
- }>;
69
- openMenu: "canvas" | "shape" | null;
70
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
71
- openSidebar: {
72
- name: string;
73
- tab?: string | undefined;
74
- } | null;
75
- openDialog: "imageExport" | "help" | "jsonExport" | null;
76
- defaultSidebarDockedPreference: boolean;
77
- lastPointerDownWith: import("../element/types").PointerType;
78
- selectedElementIds: {
79
- [id: string]: boolean;
80
- };
81
- previousSelectedElementIds: {
82
- [id: string]: boolean;
83
- };
84
- shouldCacheIgnoreZoom: boolean;
85
- toast: {
86
- message: string;
87
- closable?: boolean | undefined;
88
- duration?: number | undefined;
89
- } | null;
90
- zenModeEnabled: boolean;
91
- theme: string;
92
- gridSize: number | null;
93
- previousGridSize: number | null;
94
- viewModeEnabled: boolean;
95
- selectedGroupIds: {
96
- [groupId: string]: boolean;
97
- };
98
- editingGroupId: string | null;
99
- width: number;
100
- height: number;
101
- offsetTop: number;
102
- offsetLeft: number;
103
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
104
- collaborators: Map<string, import("../types").Collaborator>;
105
- showStats: boolean;
106
- currentChartType: import("../element/types").ChartType;
107
- pasteDialog: {
108
- shown: false;
109
- data: null;
110
- } | {
111
- shown: true;
112
- data: import("../charts").Spreadsheet;
113
- };
114
- pendingImageElementId: string | null;
115
- showHyperlinkPopup: false | "info" | "editor";
116
- linkOpacity: number;
117
- trayModeEnabled: boolean;
118
- colorPalette: {
119
- canvasBackground?: string[] | undefined;
120
- elementBackground?: string[] | undefined;
121
- elementStroke?: string[] | undefined;
122
- };
123
- allowWheelZoom?: boolean | undefined;
124
- allowPinchZoom?: boolean | undefined;
125
- pinnedScripts?: string[] | undefined;
126
- customPens?: any[] | undefined;
127
- currentStrokeOptions?: any;
128
- resetCustomPen?: any;
129
- gridColor: string;
130
- dynamicStyle: string;
131
- invertBindingBehaviour: boolean;
132
- };
133
- commitToHistory: true;
134
- };
135
- contextItemLabel: (elements: readonly ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => "labels.elementLock.unlock" | "labels.elementLock.lock" | "labels.elementLock.lockAll" | "labels.elementLock.unlockAll";
136
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: import("../types").AppState, elements: readonly ExcalidrawElement[]) => boolean;
137
- } & {
138
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: import("../types").AppState, elements: readonly ExcalidrawElement[]) => boolean) | undefined;
139
- };
@@ -1,2 +0,0 @@
1
- declare function _default(sentryErrorId: any): string;
2
- export default _default;
@@ -1,7 +0,0 @@
1
- import "./ActiveFile.scss";
2
- declare type ActiveFileProps = {
3
- fileName?: string;
4
- onSave: () => void;
5
- };
6
- export declare const ActiveFile: ({ fileName, onSave }: ActiveFileProps) => JSX.Element;
7
- export {};
@@ -1,4 +0,0 @@
1
- import { ActionManager } from "../actions/manager";
2
- export declare const BackgroundPickerAndDarkModeToggle: ({ actionManager, }: {
3
- actionManager: ActionManager;
4
- }) => JSX.Element;
@@ -1,4 +0,0 @@
1
- declare const ClearCanvas: ({ onConfirm }: {
2
- onConfirm: () => void;
3
- }) => JSX.Element;
4
- export default ClearCanvas;
@@ -1,7 +0,0 @@
1
- import "./CollabButton.scss";
2
- declare const CollabButton: ({ isCollaborating, collaboratorCount, onClick, }: {
3
- isCollaborating: boolean;
4
- collaboratorCount: number;
5
- onClick: () => void;
6
- }) => JSX.Element;
7
- export default CollabButton;
@@ -1,19 +0,0 @@
1
- import "./ColorPicker.scss";
2
- import { ExcalidrawElement } from "../element/types";
3
- import { AppState } from "../types";
4
- export declare const getCustomColors: (elements: readonly ExcalidrawElement[], type: "elementBackground" | "elementStroke", colors: string[]) => string[];
5
- export declare const ColorPicker: ({ type, color, onChange, label, isActive, setActive, colorPalette, elements, appState, }: {
6
- type: "canvasBackground" | "elementBackground" | "elementStroke";
7
- color: string | null;
8
- onChange: (color: string) => void;
9
- label: string;
10
- isActive: boolean;
11
- setActive: (active: boolean) => void;
12
- colorPalette: {
13
- canvasBackground?: string[];
14
- elementBackground?: string[];
15
- elementStroke?: string[];
16
- };
17
- elements: readonly ExcalidrawElement[];
18
- appState: AppState;
19
- }) => JSX.Element;
@@ -1,2 +0,0 @@
1
- declare const EncryptedIcon: () => JSX.Element;
2
- export default EncryptedIcon;
@@ -1,10 +0,0 @@
1
- import { ActionManager } from "../actions/manager";
2
- import { AppState, ExcalidrawProps } from "../types";
3
- declare const Footer: ({ appState, actionManager, renderCustomFooter, showExitZenModeBtn, renderWelcomeScreen, }: {
4
- appState: AppState;
5
- actionManager: ActionManager;
6
- renderCustomFooter?: ExcalidrawProps["renderFooter"];
7
- showExitZenModeBtn: boolean;
8
- renderWelcomeScreen: boolean;
9
- }) => JSX.Element;
10
- export default Footer;
@@ -1,8 +0,0 @@
1
- declare type HelpIconProps = {
2
- title?: string;
3
- name?: string;
4
- id?: string;
5
- onClick?(): void;
6
- };
7
- export declare const HelpIcon: (props: HelpIconProps) => JSX.Element;
8
- export {};
@@ -1,8 +0,0 @@
1
- import React from "react";
2
- import { AppState } from "../types";
3
- import "./LibraryButton.scss";
4
- export declare const LibraryButton: React.FC<{
5
- appState: AppState;
6
- setAppState: React.Component<any, AppState>["setState"];
7
- isMobile?: boolean;
8
- }>;
@@ -1,11 +0,0 @@
1
- import "./Menu.scss";
2
- interface MenuProps {
3
- icon: JSX.Element;
4
- onClick: () => void;
5
- label: string;
6
- dataTestId: string;
7
- shortcut?: string;
8
- isCollaborating?: boolean;
9
- }
10
- declare const MenuItem: ({ icon, onClick, label, dataTestId, shortcut, isCollaborating, }: MenuProps) => JSX.Element;
11
- export default MenuItem;
@@ -1,2 +0,0 @@
1
- export declare const MenuLinks: () => JSX.Element;
2
- export declare const Separator: () => JSX.Element;
@@ -1,8 +0,0 @@
1
- import "./ToolIcon.scss";
2
- import "./SidebarLockButton.scss";
3
- declare type SidebarLockIconProps = {
4
- checked: boolean;
5
- onChange?(): void;
6
- };
7
- export declare const SidebarLockButton: (props: SidebarLockIconProps) => JSX.Element;
8
- export {};
@@ -1,10 +0,0 @@
1
- import { AppState, LibraryItem } from "../types";
2
- import "./SingleLibraryItem.scss";
3
- declare const SingleLibraryItem: ({ libItem, appState, index, onChange, onRemove, }: {
4
- libItem: LibraryItem;
5
- appState: AppState;
6
- index: number;
7
- onChange: (val: string, index: number) => void;
8
- onRemove: (id: string) => void;
9
- }) => JSX.Element;
10
- export default SingleLibraryItem;
@@ -1,15 +0,0 @@
1
- import React from "react";
2
- interface TopErrorBoundaryState {
3
- hasError: boolean;
4
- sentryEventId: string;
5
- localStorage: string;
6
- }
7
- export declare class TopErrorBoundary extends React.Component<any, TopErrorBoundaryState> {
8
- state: TopErrorBoundaryState;
9
- render(): any;
10
- componentDidCatch(error: Error, errorInfo: any): void;
11
- private selectTextArea;
12
- private createGithubIssue;
13
- private errorSplash;
14
- }
15
- export {};
@@ -1,8 +0,0 @@
1
- import { ActionManager } from "../actions/manager";
2
- import { AppState } from "../types";
3
- import "./WelcomeScreen.scss";
4
- declare const WelcomeScreen: ({ appState, actionManager, }: {
5
- appState: AppState;
6
- actionManager: ActionManager;
7
- }) => JSX.Element;
8
- export default WelcomeScreen;
@@ -1,6 +0,0 @@
1
- import { ReactNode } from "react";
2
- declare const WelcomeScreenDecor: ({ children, shouldRender, }: {
3
- children: ReactNode;
4
- shouldRender: boolean;
5
- }) => JSX.Element | null;
6
- export default WelcomeScreenDecor;
@@ -1,16 +0,0 @@
1
- import React from "react";
2
- import tunnel from "@dwelle/tunnel-rat";
3
- declare type Tunnel = ReturnType<typeof tunnel>;
4
- declare type TunnelsContextValue = {
5
- mainMenuTunnel: Tunnel;
6
- welcomeScreenMenuHintTunnel: Tunnel;
7
- welcomeScreenToolbarHintTunnel: Tunnel;
8
- welcomeScreenHelpHintTunnel: Tunnel;
9
- welcomeScreenCenterTunnel: Tunnel;
10
- footerCenterTunnel: Tunnel;
11
- jotaiScope: symbol;
12
- };
13
- export declare const TunnelsContext: React.Context<TunnelsContextValue>;
14
- export declare const useTunnels: () => TunnelsContextValue;
15
- export declare const useInitializeTunnels: () => TunnelsContextValue;
16
- export {};
@@ -1,10 +0,0 @@
1
- import React from "react";
2
- export declare const withUpstreamOverride: <P>(Component: React.ComponentType<P>) => readonly [React.FC<{
3
- children: React.ReactNode;
4
- }>, {
5
- (props: P & {
6
- /** @private internal */
7
- __isFallback?: boolean | undefined;
8
- }): JSX.Element | null;
9
- displayName: string;
10
- }];
@@ -1,44 +0,0 @@
1
- import "./DefaultItems.scss";
2
- export declare const LoadScene: {
3
- (): JSX.Element | null;
4
- displayName: string;
5
- };
6
- export declare const SaveToActiveFile: {
7
- (): JSX.Element | null;
8
- displayName: string;
9
- };
10
- export declare const SaveAsImage: {
11
- (): JSX.Element;
12
- displayName: string;
13
- };
14
- export declare const Help: {
15
- (): JSX.Element;
16
- displayName: string;
17
- };
18
- export declare const ClearCanvas: {
19
- (): JSX.Element | null;
20
- displayName: string;
21
- };
22
- export declare const ToggleTheme: {
23
- (): JSX.Element | null;
24
- displayName: string;
25
- };
26
- export declare const ChangeCanvasBackground: {
27
- (): JSX.Element | null;
28
- displayName: string;
29
- };
30
- export declare const Export: {
31
- (): JSX.Element;
32
- displayName: string;
33
- };
34
- export declare const Socials: {
35
- (): JSX.Element;
36
- displayName: string;
37
- };
38
- export declare const LiveCollaboration: {
39
- ({ onSelect, isCollaborating, }: {
40
- onSelect: () => void;
41
- isCollaborating: boolean;
42
- }): JSX.Element;
43
- displayName: string;
44
- };
@@ -1,63 +0,0 @@
1
- import React from "react";
2
- import * as DefaultItems from "./DefaultItems";
3
- declare const MainMenu: {
4
- ({ children }: {
5
- children?: React.ReactNode;
6
- }): JSX.Element;
7
- Trigger: {
8
- ({ className, children, onToggle, }: {
9
- className?: string | undefined;
10
- children: React.ReactNode;
11
- onToggle: () => void;
12
- }): JSX.Element;
13
- displayName: string;
14
- };
15
- Item: {
16
- ({ icon, onSelect, children, dataTestId, shortcut, className, style, ariaLabel, }: {
17
- icon?: JSX.Element | undefined;
18
- onSelect: () => void;
19
- children: React.ReactNode;
20
- dataTestId?: string | undefined;
21
- shortcut?: string | undefined;
22
- className?: string | undefined;
23
- style?: React.CSSProperties | undefined;
24
- ariaLabel?: string | undefined;
25
- }): JSX.Element;
26
- displayName: string;
27
- };
28
- ItemLink: {
29
- ({ icon, dataTestId, shortcut, href, children, className, style, ariaLabel, }: {
30
- icon?: JSX.Element | undefined;
31
- children: React.ReactNode;
32
- dataTestId?: string | undefined;
33
- shortcut?: string | undefined;
34
- className?: string | undefined;
35
- href: string;
36
- style?: React.CSSProperties | undefined;
37
- ariaLabel?: string | undefined;
38
- }): JSX.Element;
39
- displayName: string;
40
- };
41
- ItemCustom: ({ children, className, style, dataTestId, }: {
42
- children: React.ReactNode;
43
- className?: string | undefined;
44
- style?: React.CSSProperties | undefined;
45
- dataTestId?: string | undefined;
46
- }) => JSX.Element;
47
- Group: {
48
- ({ children, className, style, title, }: {
49
- children: React.ReactNode;
50
- className?: string | undefined;
51
- style?: React.CSSProperties | undefined;
52
- title?: string | undefined;
53
- }): JSX.Element;
54
- displayName: string;
55
- };
56
- Separator: {
57
- (): JSX.Element;
58
- displayName: string;
59
- };
60
- DefaultItems: typeof DefaultItems;
61
- displayName: string;
62
- };
63
- export default MainMenu;