@excalidraw/excalidraw 0.18.0-39ce38a0d-200a6bd94 → 0.18.0-414182f

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 (36) hide show
  1. package/dist/dev/{chunk-Y7B3JU7D.js → chunk-CP5DND7P.js} +2 -2
  2. package/dist/dev/{chunk-Y7B3JU7D.js.map → chunk-CP5DND7P.js.map} +1 -1
  3. package/dist/dev/{chunk-GZYPVQVV.js → chunk-WWDIUJ2Q.js} +34 -30
  4. package/dist/dev/chunk-WWDIUJ2Q.js.map +7 -0
  5. package/dist/dev/data/{image-V3RGFWEQ.js → image-VTYIFRQE.js} +3 -3
  6. package/dist/dev/index.js +960 -734
  7. package/dist/dev/index.js.map +3 -3
  8. package/dist/dev/subset-shared.chunk.js +1 -1
  9. package/dist/dev/subset-worker.chunk.js +1 -1
  10. package/dist/prod/{chunk-ATYYHCCY.js → chunk-A66AFZZU.js} +1 -1
  11. package/dist/prod/{chunk-QH2XZQ34.js → chunk-VTWWEYSQ.js} +3 -3
  12. package/dist/prod/data/image-YQ6UXXDA.js +1 -0
  13. package/dist/prod/index.js +22 -22
  14. package/dist/prod/subset-shared.chunk.js +1 -1
  15. package/dist/prod/subset-worker.chunk.js +1 -1
  16. package/dist/types/common/src/constants.d.ts +12 -3
  17. package/dist/types/element/src/Scene.d.ts +6 -2
  18. package/dist/types/element/src/bounds.d.ts +1 -1
  19. package/dist/types/element/src/delta.d.ts +6 -4
  20. package/dist/types/element/src/index.d.ts +1 -0
  21. package/dist/types/element/src/positionElementsOnGrid.d.ts +2 -0
  22. package/dist/types/element/src/store.d.ts +6 -1
  23. package/dist/types/element/src/textElement.d.ts +1 -1
  24. package/dist/types/excalidraw/actions/actionCanvas.d.ts +15 -1
  25. package/dist/types/excalidraw/clipboard.d.ts +62 -1
  26. package/dist/types/excalidraw/components/App.d.ts +11 -8
  27. package/dist/types/excalidraw/components/shapes.d.ts +129 -1
  28. package/dist/types/excalidraw/data/blob.d.ts +1 -5
  29. package/dist/types/excalidraw/data/restore.d.ts +6 -1
  30. package/dist/types/excalidraw/index.d.ts +1 -1
  31. package/dist/types/excalidraw/types.d.ts +5 -2
  32. package/history.ts +1 -1
  33. package/package.json +5 -5
  34. package/dist/dev/chunk-GZYPVQVV.js.map +0 -7
  35. package/dist/prod/data/image-4FTETSFG.js +0 -1
  36. /package/dist/dev/data/{image-V3RGFWEQ.js.map → image-VTYIFRQE.js.map} +0 -0
@@ -12,7 +12,7 @@ export { getSceneVersion, hashElementsVersion, hashString, getNonDeletedElements
12
12
  export { getTextFromElements } from "@excalidraw/element";
13
13
  export { isInvisiblySmallElement } from "@excalidraw/element";
14
14
  export { defaultLang, useI18n, languages } from "./i18n";
15
- export { restore, restoreAppState, restoreElements, restoreLibraryItems, } from "./data/restore";
15
+ export { restore, restoreAppState, restoreElement, restoreElements, restoreLibraryItems, } from "./data/restore";
16
16
  export { reconcileElements } from "./data/reconcile";
17
17
  export { exportToCanvas, exportToBlob, exportToSvg, exportToClipboard, } from "@excalidraw/utils/export";
18
18
  export { serializeAsJSON, serializeLibraryAsJSON } from "./data/json";
@@ -155,8 +155,8 @@ export type ObservedElementsAppState = {
155
155
  editingGroupId: AppState["editingGroupId"];
156
156
  selectedElementIds: AppState["selectedElementIds"];
157
157
  selectedGroupIds: AppState["selectedGroupIds"];
158
- activeLinearElement: {
159
- id: LinearElementEditor["elementId"];
158
+ selectedLinearElement: {
159
+ elementId: LinearElementEditor["elementId"];
160
160
  isEditing: boolean;
161
161
  } | null;
162
162
  croppingElementId: AppState["croppingElementId"];
@@ -557,6 +557,7 @@ export type AppClassProperties = {
557
557
  excalidrawContainerValue: App["excalidrawContainerValue"];
558
558
  onPointerUpEmitter: App["onPointerUpEmitter"];
559
559
  updateEditorAtom: App["updateEditorAtom"];
560
+ defaultSelectionTool: "selection" | "lasso";
560
561
  };
561
562
  export type PointerDownState = Readonly<{
562
563
  origin: Readonly<{
@@ -604,6 +605,7 @@ export type PointerDownState = Readonly<{
604
605
  x: number;
605
606
  y: number;
606
607
  };
608
+ blockDragging: boolean;
607
609
  };
608
610
  eventListeners: {
609
611
  onMove: null | ReturnType<typeof throttleRAF>;
@@ -618,6 +620,7 @@ export type PointerDownState = Readonly<{
618
620
  export type UnsubscribeCallback = () => void;
619
621
  export interface ExcalidrawImperativeAPI {
620
622
  updateScene: InstanceType<typeof App>["updateScene"];
623
+ applyDeltas: InstanceType<typeof App>["applyDeltas"];
621
624
  mutateElement: InstanceType<typeof App>["mutateElement"];
622
625
  updateLibrary: InstanceType<typeof Library>["updateLibrary"];
623
626
  resetScene: InstanceType<typeof App>["resetScene"];
package/history.ts CHANGED
@@ -175,7 +175,7 @@ export class History {
175
175
  let nextAppState = appState;
176
176
  let containsVisibleChange = false;
177
177
 
178
- // iterate through the history entries in case ;they result in no visible changes
178
+ // iterate through the history entries in case they result in no visible changes
179
179
  while (historyDelta) {
180
180
  try {
181
181
  [nextElements, nextAppState, containsVisibleChange] =
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@excalidraw/excalidraw",
3
- "version": "0.18.0-39ce38a0d-200a6bd94",
3
+ "version": "0.18.0-414182f",
4
4
  "type": "module",
5
5
  "types": "./dist/types/excalidraw/index.d.ts",
6
6
  "main": "./dist/prod/index.js",
@@ -79,11 +79,11 @@
79
79
  },
80
80
  "dependencies": {
81
81
  "@braintree/sanitize-url": "6.0.2",
82
- "@excalidraw/common": "0.18.0-39ce38a0d-200a6bd94",
83
- "@excalidraw/element": "0.18.0-39ce38a0d-200a6bd94",
84
- "@excalidraw/math": "0.18.0-39ce38a0d-200a6bd94",
82
+ "@excalidraw/common": "0.18.0-414182f",
83
+ "@excalidraw/element": "0.18.0-414182f",
84
+ "@excalidraw/math": "0.18.0-414182f",
85
85
  "@excalidraw/laser-pointer": "1.3.1",
86
- "@excalidraw/mermaid-to-excalidraw": "1.1.2",
86
+ "@excalidraw/mermaid-to-excalidraw": "1.1.3",
87
87
  "@excalidraw/random-username": "1.1.0",
88
88
  "@radix-ui/react-popover": "1.1.6",
89
89
  "@radix-ui/react-tabs": "1.1.3",