@myoc/excalidraw 0.19.535 → 0.19.537

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 (66) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/dist/dev/{chunk-X5K2WJMP.js → chunk-7R7FDLAY.js} +7 -3
  3. package/dist/dev/chunk-7R7FDLAY.js.map +7 -0
  4. package/dist/dev/{chunk-K3XC3WHU.js → chunk-GMDJS52C.js} +2 -2
  5. package/dist/dev/{chunk-SKCAT7JG.js → chunk-SZMFGT5M.js} +2 -1
  6. package/dist/dev/chunk-SZMFGT5M.js.map +7 -0
  7. package/dist/dev/data/{image-MVVCJJVU.js → image-2QLYX6JM.js} +3 -3
  8. package/dist/dev/index.css +115 -93
  9. package/dist/dev/index.css.map +3 -3
  10. package/dist/dev/index.js +908 -850
  11. package/dist/dev/index.js.map +4 -4
  12. package/dist/dev/locales/{en-RETPDZ4S.js → en-FTXMBOG2.js} +2 -2
  13. package/dist/dev/subset-shared.chunk.js +1 -1
  14. package/dist/dev/subset-worker.chunk.js +1 -1
  15. package/dist/prod/{chunk-DARW3V66.js → chunk-5FNQLKFO.js} +1 -1
  16. package/dist/prod/chunk-C4BFS67G.js +4 -0
  17. package/dist/prod/{chunk-PLDSWNV5.js → chunk-U2M5DXIZ.js} +1 -1
  18. package/dist/prod/data/image-3GEOMH65.js +1 -0
  19. package/dist/prod/index.css +1 -1
  20. package/dist/prod/index.js +13 -13
  21. package/dist/prod/locales/{en-RNZ7CUK6.js → en-S77ABPIF.js} +1 -1
  22. package/dist/prod/subset-shared.chunk.js +1 -1
  23. package/dist/prod/subset-worker.chunk.js +1 -1
  24. package/dist/types/element/src/align.d.ts +5 -1
  25. package/dist/types/excalidraw/actions/actionAlign.d.ts +191 -0
  26. package/dist/types/excalidraw/actions/actionBoundText.d.ts +6 -0
  27. package/dist/types/excalidraw/actions/actionCanvas.d.ts +18 -0
  28. package/dist/types/excalidraw/actions/actionClipboard.d.ts +6 -0
  29. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +3 -0
  30. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +9 -0
  31. package/dist/types/excalidraw/actions/actionDeselect.d.ts +3 -0
  32. package/dist/types/excalidraw/actions/actionElementLink.d.ts +3 -0
  33. package/dist/types/excalidraw/actions/actionElementLock.d.ts +6 -0
  34. package/dist/types/excalidraw/actions/actionExport.d.ts +6 -0
  35. package/dist/types/excalidraw/actions/actionFrame.d.ts +9 -0
  36. package/dist/types/excalidraw/actions/actionGroup.d.ts +6 -0
  37. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +3 -0
  38. package/dist/types/excalidraw/actions/actionLink.d.ts +3 -0
  39. package/dist/types/excalidraw/actions/actionMenu.d.ts +3 -0
  40. package/dist/types/excalidraw/actions/actionProperties.d.ts +6 -0
  41. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +3 -0
  42. package/dist/types/excalidraw/actions/actionStyles.d.ts +3 -0
  43. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +3 -0
  44. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +3 -0
  45. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +3 -0
  46. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +3 -0
  47. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +3 -0
  48. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +3 -0
  49. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +3 -0
  50. package/dist/types/excalidraw/actions/index.d.ts +1 -1
  51. package/dist/types/excalidraw/actions/types.d.ts +1 -1
  52. package/dist/types/excalidraw/appState.d.ts +3 -0
  53. package/dist/types/excalidraw/data/blob.d.ts +3 -0
  54. package/dist/types/excalidraw/data/json.d.ts +3 -0
  55. package/dist/types/excalidraw/editorPreferences.d.ts +5 -2
  56. package/dist/types/excalidraw/index.d.ts +1 -1
  57. package/dist/types/excalidraw/types.d.ts +7 -0
  58. package/dist/types/excalidraw/viewport.d.ts +3 -0
  59. package/package.json +4 -4
  60. package/dist/dev/chunk-SKCAT7JG.js.map +0 -7
  61. package/dist/dev/chunk-X5K2WJMP.js.map +0 -7
  62. package/dist/prod/chunk-N4AOPKJK.js +0 -4
  63. package/dist/prod/data/image-K4KCMBWW.js +0 -1
  64. /package/dist/dev/{chunk-K3XC3WHU.js.map → chunk-GMDJS52C.js.map} +0 -0
  65. /package/dist/dev/data/{image-MVVCJJVU.js.map → image-2QLYX6JM.js.map} +0 -0
  66. /package/dist/dev/locales/{en-RETPDZ4S.js.map → en-FTXMBOG2.js.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -5958,6 +5958,7 @@ First release of `@excalidraw/excalidraw`## Excalidraw Library
5958
5958
  - Incorrect import for color (was moved to common)
5959
5959
 
5960
5960
  ---
5961
+
5961
5962
  ## Excalidraw Library
5962
5963
 
5963
5964
  **_This section lists the updates made to the excalidraw library and will not affect the integration._**
@@ -6010,5 +6011,57 @@ First release of `@excalidraw/excalidraw`## Excalidraw Library
6010
6011
 
6011
6012
  - Incorrect import for color (was moved to common)
6012
6013
 
6014
+ ---## Excalidraw Library
6015
+
6016
+ **_This section lists the updates made to the excalidraw library and will not affect the integration._**
6017
+
6018
+ ### Features
6019
+
6020
+ - Add ability to turn off compression for files that are smaller than a given size
6021
+
6022
+ - Add lock tool to the dropdown and also add the status of the extra tools to be the same icon as the selected tool
6023
+
6024
+ - Add view mode button
6025
+
6026
+ - Add multiple image copy paste or drag and drop
6027
+
6028
+ - Multiple image additions from clipboard
6029
+
6030
+ - Add arrange elements action
6031
+
6032
+ - Add top picks to appProps for both stoke color and background color
6033
+
6034
+ ### Fixes
6035
+
6036
+ - Issues
6037
+
6038
+ - Make mobile mode more myoc looking
6039
+
6040
+ - Add normalise functionality
6041
+
6042
+ - Update with excalidraw
6043
+
6044
+ - Fix imports
6045
+
6046
+ - Fix mutateGroup to use scene.mutateGroup
6047
+
6048
+ - Imports
6049
+
6050
+ - Ensure that fileId is different for compressed vs uncompressed file
6051
+
6052
+ - Remove not working prop for dontResizeLimitMBs
6053
+
6054
+ - Add smartview for mobile
6055
+
6056
+ - Hide the alignment buttons if there is only one group selected (they do nothing if only one group is selected)
6057
+
6058
+ - Use css vars already provided instead of hard coding directly from oc-gray
6059
+
6060
+ - Remove unused variables
6061
+
6062
+ - Pass the new top pick color props properly
6063
+
6064
+ - Incorrect import for color (was moved to common)
6065
+
6013
6066
  ---
6014
6067
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  define_import_meta_env_default
3
- } from "./chunk-K3XC3WHU.js";
3
+ } from "./chunk-GMDJS52C.js";
4
4
  import {
5
5
  __publicField
6
6
  } from "./chunk-XDFCUUT6.js";
@@ -43,6 +43,9 @@ var getDefaultAppState = () => {
43
43
  myocSimplifiedMode: true,
44
44
  dontResizeLimitMBs: 5,
45
45
  hideMainMenus: false,
46
+ alignConfiguration: {
47
+ stacking: false
48
+ },
46
49
  arrangeConfiguration: {
47
50
  gap: 10,
48
51
  algorithm: "bin-packing"
@@ -169,6 +172,7 @@ var APP_STATE_STORAGE_CONF = /* @__PURE__ */ ((config) => config)({
169
172
  dontResizeLimitMBs: { browser: true, export: false, server: false },
170
173
  hideMainMenus: { browser: true, export: false, server: false },
171
174
  wheelZoomsOnDefault: { browser: true, export: false, server: false },
175
+ alignConfiguration: { browser: true, export: false, server: false },
172
176
  arrangeConfiguration: { browser: true, export: false, server: false },
173
177
  normaliseConfiguration: { browser: true, export: false, server: false },
174
178
  theme: { browser: true, export: false, server: false },
@@ -5428,7 +5432,7 @@ var parseFileContents = async (blob) => {
5428
5432
  let contents;
5429
5433
  if (blob.type === MIME_TYPES6.png) {
5430
5434
  try {
5431
- return await (await import("./data/image-MVVCJJVU.js")).decodePngMetadata(blob);
5435
+ return await (await import("./data/image-2QLYX6JM.js")).decodePngMetadata(blob);
5432
5436
  } catch (error) {
5433
5437
  if (error.message === "INVALID") {
5434
5438
  throw new ImageSceneDataError(
@@ -5866,4 +5870,4 @@ export {
5866
5870
  createFile,
5867
5871
  normalizeFile
5868
5872
  };
5869
- //# sourceMappingURL=chunk-X5K2WJMP.js.map
5873
+ //# sourceMappingURL=chunk-7R7FDLAY.js.map