@myoc/excalidraw 0.19.547 → 0.19.548

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.
package/CHANGELOG.md CHANGED
@@ -6484,4 +6484,57 @@ First release of `@excalidraw/excalidraw`## Excalidraw Library
6484
6484
  - Incorrect import for color (was moved to common)
6485
6485
 
6486
6486
  ---
6487
+ ## Excalidraw Library
6488
+
6489
+ **_This section lists the updates made to the excalidraw library and will not affect the integration._**
6490
+
6491
+ ### Features
6492
+
6493
+ - Add ability to turn off compression for files that are smaller than a given size
6494
+
6495
+ - Add lock tool to the dropdown and also add the status of the extra tools to be the same icon as the selected tool
6496
+
6497
+ - Add view mode button
6498
+
6499
+ - Add multiple image copy paste or drag and drop
6500
+
6501
+ - Multiple image additions from clipboard
6502
+
6503
+ - Add arrange elements action
6504
+
6505
+ - Add top picks to appProps for both stoke color and background color
6506
+
6507
+ ### Fixes
6508
+
6509
+ - Issues
6510
+
6511
+ - Make mobile mode more myoc looking
6512
+
6513
+ - Add normalise functionality
6514
+
6515
+ - Update with excalidraw
6516
+
6517
+ - Fix imports
6518
+
6519
+ - Fix mutateGroup to use scene.mutateGroup
6520
+
6521
+ - Imports
6522
+
6523
+ - Ensure that fileId is different for compressed vs uncompressed file
6524
+
6525
+ - Remove not working prop for dontResizeLimitMBs
6526
+
6527
+ - Add smartview for mobile
6528
+
6529
+ - Hide the alignment buttons if there is only one group selected (they do nothing if only one group is selected)
6530
+
6531
+ - Use css vars already provided instead of hard coding directly from oc-gray
6532
+
6533
+ - Remove unused variables
6534
+
6535
+ - Pass the new top pick color props properly
6536
+
6537
+ - Incorrect import for color (was moved to common)
6538
+
6539
+ ---
6487
6540
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  define_import_meta_env_default
3
- } from "./chunk-6X722ZMM.js";
3
+ } from "./chunk-TX6RZP3Q.js";
4
4
  import {
5
5
  __publicField
6
6
  } from "./chunk-XDFCUUT6.js";
@@ -5455,7 +5455,7 @@ var parseFileContents = async (blob) => {
5455
5455
  let contents;
5456
5456
  if (blob.type === MIME_TYPES6.png) {
5457
5457
  try {
5458
- return await (await import("./data/image-SHO5VNS6.js")).decodePngMetadata(blob);
5458
+ return await (await import("./data/image-52GR34EH.js")).decodePngMetadata(blob);
5459
5459
  } catch (error) {
5460
5460
  if (error.message === "INVALID") {
5461
5461
  throw new ImageSceneDataError(
@@ -5906,4 +5906,4 @@ export {
5906
5906
  createFile,
5907
5907
  normalizeFile
5908
5908
  };
5909
- //# sourceMappingURL=chunk-OWS32STE.js.map
5909
+ //# sourceMappingURL=chunk-JAAO2HX3.js.map
@@ -1,7 +1,7 @@
1
1
  // <define:import.meta.env>
2
- var define_import_meta_env_default = { MODE: "development", VITE_APP_BACKEND_V2_GET_URL: "https://json-dev.excalidraw.com/api/v2/", VITE_APP_BACKEND_V2_POST_URL: "https://json-dev.excalidraw.com/api/v2/post/", VITE_APP_LIBRARY_URL: "https://libraries.excalidraw.com", VITE_APP_LIBRARY_BACKEND: "https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries", VITE_APP_WS_SERVER_URL: "http://localhost:3002", VITE_APP_PLUS_LP: "https://plus.excalidraw.com", VITE_APP_PLUS_APP: "http://localhost:3000", VITE_APP_AI_BACKEND: "http://localhost:3016", VITE_APP_FIREBASE_CONFIG: '{"apiKey":"AIzaSyCMkxA60XIW8KbqMYL7edC4qT5l4qHX2h8","authDomain":"excalidraw-oss-dev.firebaseapp.com","projectId":"excalidraw-oss-dev","storageBucket":"excalidraw-oss-dev.appspot.com","messagingSenderId":"664559512677","appId":"1:664559512677:web:a385181f2928d328a7aa8c"}', VITE_APP_DEV_DISABLE_LIVE_RELOAD: "", VITE_APP_ENABLE_TRACKING: "true", FAST_REFRESH: "false", VITE_APP_PORT: "3001", VITE_APP_DEBUG_ENABLE_TEXT_CONTAINER_BOUNDING_BOX: "", VITE_APP_COLLAPSE_OVERLAY: "true", VITE_APP_ENABLE_ESLINT: "true", VITE_APP_ENABLE_PWA: "false", VITE_APP_PLUS_EXPORT_PUBLIC_KEY: "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAm2g5T+Rub6Kbf1Mf57t0\n7r2zeHuVg4dla3r5ryXMswtzz6x767octl6oLThn33mQsPSy3GKglFZoCTXJR4ij\nba8SxB04sL/N8eRrKja7TFWjCVtRwTTfyy771NYYNFVJclkxHyE5qw4m27crHF1y\nUNWEjuqNMi/lwAErS9fFa2oJlWyT8U7zzv/5kQREkxZI6y9v0AF3qcbsy2731FnD\ns9ChJvOUW9toIab2gsIdrKW8ZNpu084ZFVKb6LNjvIXI1Se4oMTHeszXzNptzlot\nkdxxjOoaQMAyfljFSot1F1FlU6MQlag7UnFGvFjRHN1JI5q4K+n3a67DX+TMyRqS\nHQIDAQAB", VITE_APP_DISABLE_PREVENT_UNLOAD: "", PKG_NAME: "@myoc/excalidraw", PKG_VERSION: "0.19.546", DEV: true };
2
+ var define_import_meta_env_default = { MODE: "development", VITE_APP_BACKEND_V2_GET_URL: "https://json-dev.excalidraw.com/api/v2/", VITE_APP_BACKEND_V2_POST_URL: "https://json-dev.excalidraw.com/api/v2/post/", VITE_APP_LIBRARY_URL: "https://libraries.excalidraw.com", VITE_APP_LIBRARY_BACKEND: "https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries", VITE_APP_WS_SERVER_URL: "http://localhost:3002", VITE_APP_PLUS_LP: "https://plus.excalidraw.com", VITE_APP_PLUS_APP: "http://localhost:3000", VITE_APP_AI_BACKEND: "http://localhost:3016", VITE_APP_FIREBASE_CONFIG: '{"apiKey":"AIzaSyCMkxA60XIW8KbqMYL7edC4qT5l4qHX2h8","authDomain":"excalidraw-oss-dev.firebaseapp.com","projectId":"excalidraw-oss-dev","storageBucket":"excalidraw-oss-dev.appspot.com","messagingSenderId":"664559512677","appId":"1:664559512677:web:a385181f2928d328a7aa8c"}', VITE_APP_DEV_DISABLE_LIVE_RELOAD: "", VITE_APP_ENABLE_TRACKING: "true", FAST_REFRESH: "false", VITE_APP_PORT: "3001", VITE_APP_DEBUG_ENABLE_TEXT_CONTAINER_BOUNDING_BOX: "", VITE_APP_COLLAPSE_OVERLAY: "true", VITE_APP_ENABLE_ESLINT: "true", VITE_APP_ENABLE_PWA: "false", VITE_APP_PLUS_EXPORT_PUBLIC_KEY: "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAm2g5T+Rub6Kbf1Mf57t0\n7r2zeHuVg4dla3r5ryXMswtzz6x767octl6oLThn33mQsPSy3GKglFZoCTXJR4ij\nba8SxB04sL/N8eRrKja7TFWjCVtRwTTfyy771NYYNFVJclkxHyE5qw4m27crHF1y\nUNWEjuqNMi/lwAErS9fFa2oJlWyT8U7zzv/5kQREkxZI6y9v0AF3qcbsy2731FnD\ns9ChJvOUW9toIab2gsIdrKW8ZNpu084ZFVKb6LNjvIXI1Se4oMTHeszXzNptzlot\nkdxxjOoaQMAyfljFSot1F1FlU6MQlag7UnFGvFjRHN1JI5q4K+n3a67DX+TMyRqS\nHQIDAQAB", VITE_APP_DISABLE_PREVENT_UNLOAD: "", PKG_NAME: "@myoc/excalidraw", PKG_VERSION: "0.19.547", DEV: true };
3
3
 
4
4
  export {
5
5
  define_import_meta_env_default
6
6
  };
7
- //# sourceMappingURL=chunk-6X722ZMM.js.map
7
+ //# sourceMappingURL=chunk-TX6RZP3Q.js.map
@@ -2,12 +2,12 @@ import {
2
2
  decodePngMetadata,
3
3
  encodePngMetadata,
4
4
  getTEXtChunk
5
- } from "../chunk-OWS32STE.js";
6
- import "../chunk-6X722ZMM.js";
5
+ } from "../chunk-JAAO2HX3.js";
6
+ import "../chunk-TX6RZP3Q.js";
7
7
  import "../chunk-XDFCUUT6.js";
8
8
  export {
9
9
  decodePngMetadata,
10
10
  encodePngMetadata,
11
11
  getTEXtChunk
12
12
  };
13
- //# sourceMappingURL=image-SHO5VNS6.js.map
13
+ //# sourceMappingURL=image-52GR34EH.js.map
package/dist/dev/index.js CHANGED
@@ -65,10 +65,10 @@ import {
65
65
  serializeAsJSON,
66
66
  strokeRectWithRotation_simple,
67
67
  zoomToFitBounds
68
- } from "./chunk-OWS32STE.js";
68
+ } from "./chunk-JAAO2HX3.js";
69
69
  import {
70
70
  define_import_meta_env_default
71
- } from "./chunk-6X722ZMM.js";
71
+ } from "./chunk-TX6RZP3Q.js";
72
72
  import {
73
73
  en_default
74
74
  } from "./chunk-VBVJJWUO.js";
@@ -11052,7 +11052,7 @@ var exportCanvas = async (type, elements, appState, files, {
11052
11052
  let blob = canvasToBlob(tempCanvas);
11053
11053
  if (appState.exportEmbedScene) {
11054
11054
  blob = blob.then(
11055
- (blob2) => import("./data/image-SHO5VNS6.js").then(
11055
+ (blob2) => import("./data/image-52GR34EH.js").then(
11056
11056
  ({ encodePngMetadata: encodePngMetadata2 }) => encodePngMetadata2({
11057
11057
  blob: blob2,
11058
11058
  metadata: serializeAsJSON(elements, appState, files, "local")
@@ -42962,6 +42962,7 @@ var App = class _App extends React41.Component {
42962
42962
  setCursor: this.cursor.set,
42963
42963
  resetCursor: this.cursor.reset,
42964
42964
  getEditorInterface: () => this.editorInterface,
42965
+ setDesktopUIMode: this.setDesktopUIMode,
42965
42966
  updateFrameRendering: this.updateFrameRendering,
42966
42967
  toggleSidebar: this.toggleSidebar,
42967
42968
  onChange: (cb) => this.onChangeEmitter.on(cb),