@zsviczian/excalidraw 0.17.1-obsidian-49 → 0.17.1-obsidian-51

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 (44) hide show
  1. package/package.json +1 -1
  2. package/types/excalidraw/actions/actionAddToLibrary.d.ts +30 -0
  3. package/types/excalidraw/actions/actionBoundText.d.ts +20 -0
  4. package/types/excalidraw/actions/actionCanvas.d.ts +140 -0
  5. package/types/excalidraw/actions/actionClipboard.d.ts +70 -0
  6. package/types/excalidraw/actions/actionDeleteSelected.d.ts +30 -0
  7. package/types/excalidraw/actions/actionElementLock.d.ts +20 -0
  8. package/types/excalidraw/actions/actionExport.d.ts +90 -0
  9. package/types/excalidraw/actions/actionFinalize.d.ts +20 -0
  10. package/types/excalidraw/actions/actionFrame.d.ts +40 -0
  11. package/types/excalidraw/actions/actionGroup.d.ts +20 -0
  12. package/types/excalidraw/actions/actionLinearEditor.d.ts +10 -0
  13. package/types/excalidraw/actions/actionLink.d.ts +10 -0
  14. package/types/excalidraw/actions/actionMenu.d.ts +30 -0
  15. package/types/excalidraw/actions/actionNavigate.d.ts +20 -0
  16. package/types/excalidraw/actions/actionProperties.d.ts +150 -0
  17. package/types/excalidraw/actions/actionSelectAll.d.ts +10 -0
  18. package/types/excalidraw/actions/actionStyles.d.ts +10 -0
  19. package/types/excalidraw/actions/actionToggleGridMode.d.ts +10 -0
  20. package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +10 -0
  21. package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +406 -0
  22. package/types/excalidraw/actions/actionToggleStats.d.ts +10 -0
  23. package/types/excalidraw/actions/actionToggleViewMode.d.ts +10 -0
  24. package/types/excalidraw/actions/actionToggleZenMode.d.ts +10 -0
  25. package/types/excalidraw/actions/index.d.ts +1 -0
  26. package/types/excalidraw/actions/shortcuts.d.ts +1 -1
  27. package/types/excalidraw/actions/types.d.ts +2 -2
  28. package/types/excalidraw/components/App.d.ts +12 -2
  29. package/types/excalidraw/components/DefaultSidebar.d.ts +1 -0
  30. package/types/excalidraw/components/SearchMenu.d.ts +5 -0
  31. package/types/excalidraw/components/SearchSidebar.d.ts +1 -0
  32. package/types/excalidraw/components/TextField.d.ts +2 -0
  33. package/types/excalidraw/components/icons.d.ts +1 -0
  34. package/types/excalidraw/components/main-menu/DefaultItems.d.ts +6 -0
  35. package/types/excalidraw/constants.d.ts +4 -0
  36. package/types/excalidraw/element/embeddable.d.ts +10 -0
  37. package/types/excalidraw/element/textElement.d.ts +1 -1
  38. package/types/excalidraw/fonts/ExcalidrawFont.d.ts +2 -2
  39. package/types/excalidraw/types.d.ts +15 -0
  40. package/dist/excalidraw.development.js +0 -6944
  41. package/dist/excalidraw.production.min.js +0 -2
  42. package/dist/excalidraw.production.min.js.LICENSE.txt +0 -121
  43. package/dist/styles.development.css +0 -6708
  44. package/dist/styles.production.css +0 -65
@@ -141,6 +141,7 @@ export type InteractiveCanvasAppState = Readonly<_CommonCanvasAppState & {
141
141
  editingTextElement: AppState["editingTextElement"];
142
142
  gridColor: AppState["gridColor"];
143
143
  highlightSearchResult: AppState["highlightSearchResult"];
144
+ searchMatches: AppState["searchMatches"];
144
145
  }>;
145
146
  export type ObservedAppState = ObservedStandaloneAppState & ObservedElementsAppState;
146
147
  export type ObservedStandaloneAppState = {
@@ -357,7 +358,18 @@ export interface AppState {
357
358
  userToFollow: UserToFollow | null;
358
359
  /** the socket ids of the users following the current user */
359
360
  followedBy: Set<SocketId>;
361
+ searchMatches: readonly SearchMatch[];
360
362
  }
363
+ type SearchMatch = {
364
+ id: string;
365
+ focus: boolean;
366
+ matchedLines: {
367
+ offsetX: number;
368
+ offsetY: number;
369
+ width: number;
370
+ height: number;
371
+ }[];
372
+ };
361
373
  export type UIAppState = Omit<AppState, "suggestedBindings" | "startBoundElement" | "cursorButton" | "scrollX" | "scrollY">;
362
374
  export type NormalizedZoomValue = number & {
363
375
  _brand: "normalizedZoom";
@@ -552,6 +564,9 @@ export type AppClassProperties = {
552
564
  getEffectiveGridSize: App["getEffectiveGridSize"];
553
565
  setPlugins: App["setPlugins"];
554
566
  plugins: App["plugins"];
567
+ getEditorUIOffsets: App["getEditorUIOffsets"];
568
+ visibleElements: App["visibleElements"];
569
+ excalidrawContainerValue: App["excalidrawContainerValue"];
555
570
  };
556
571
  export type PointerDownState = Readonly<{
557
572
  origin: Readonly<{