@nous-excalidraw/excalidraw 0.18.9-beta.23 → 0.18.9-beta.24

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.
@@ -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: "@nous-excalidraw/excalidraw", PKG_VERSION: "0.18.9-beta.22", 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: "@nous-excalidraw/excalidraw", PKG_VERSION: "0.18.9-beta.24", DEV: true };
3
3
 
4
4
  export {
5
5
  define_import_meta_env_default
6
6
  };
7
- //# sourceMappingURL=chunk-NLSPUT7I.js.map
7
+ //# sourceMappingURL=chunk-GS6CFMFL.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  define_import_meta_env_default
3
- } from "./chunk-NLSPUT7I.js";
3
+ } from "./chunk-GS6CFMFL.js";
4
4
  import {
5
5
  __publicField
6
6
  } from "./chunk-XDFCUUT6.js";
@@ -5112,7 +5112,7 @@ var parseFileContents = async (blob) => {
5112
5112
  let contents;
5113
5113
  if (blob.type === MIME_TYPES6.png) {
5114
5114
  try {
5115
- return await (await import("./data/image-PPDUIIUO.js")).decodePngMetadata(blob);
5115
+ return await (await import("./data/image-S7DRX2GL.js")).decodePngMetadata(blob);
5116
5116
  } catch (error) {
5117
5117
  if (error.message === "INVALID") {
5118
5118
  throw new ImageSceneDataError(
@@ -5546,4 +5546,4 @@ export {
5546
5546
  createFile,
5547
5547
  normalizeFile
5548
5548
  };
5549
- //# sourceMappingURL=chunk-NJT6NRP4.js.map
5549
+ //# sourceMappingURL=chunk-GWBWDZAV.js.map
@@ -1,4 +1,4 @@
1
- import "../../chunk-NLSPUT7I.js";
1
+ import "../../chunk-GS6CFMFL.js";
2
2
  import "../../chunk-XDFCUUT6.js";
3
3
 
4
4
  // components/TTDDialog/CodeMirrorEditor.tsx
@@ -256,4 +256,4 @@ var CodeMirrorEditor_default = CodeMirrorEditor;
256
256
  export {
257
257
  CodeMirrorEditor_default as default
258
258
  };
259
- //# sourceMappingURL=CodeMirrorEditor-FWL3IAFT.js.map
259
+ //# sourceMappingURL=CodeMirrorEditor-6L6DTYD2.js.map
@@ -2,12 +2,12 @@ import {
2
2
  decodePngMetadata,
3
3
  encodePngMetadata,
4
4
  getTEXtChunk
5
- } from "../chunk-NJT6NRP4.js";
6
- import "../chunk-NLSPUT7I.js";
5
+ } from "../chunk-GWBWDZAV.js";
6
+ import "../chunk-GS6CFMFL.js";
7
7
  import "../chunk-XDFCUUT6.js";
8
8
  export {
9
9
  decodePngMetadata,
10
10
  encodePngMetadata,
11
11
  getTEXtChunk
12
12
  };
13
- //# sourceMappingURL=image-PPDUIIUO.js.map
13
+ //# sourceMappingURL=image-S7DRX2GL.js.map
package/dist/dev/index.js CHANGED
@@ -65,10 +65,10 @@ import {
65
65
  serializeAsJSON,
66
66
  serializeLibraryAsJSON,
67
67
  strokeRectWithRotation_simple
68
- } from "./chunk-NJT6NRP4.js";
68
+ } from "./chunk-GWBWDZAV.js";
69
69
  import {
70
70
  define_import_meta_env_default
71
- } from "./chunk-NLSPUT7I.js";
71
+ } from "./chunk-GS6CFMFL.js";
72
72
  import {
73
73
  en_default
74
74
  } from "./chunk-IXBA2ET3.js";
@@ -175,7 +175,7 @@ import {
175
175
  wrapEvent as wrapEvent2,
176
176
  updateObject as updateObject2,
177
177
  updateActiveTool as updateActiveTool8,
178
- isTransparent as isTransparent8,
178
+ isTransparent as isTransparent7,
179
179
  easeToValuesRAF,
180
180
  muteFSAbortError as muteFSAbortError2,
181
181
  isTestEnv as isTestEnv5,
@@ -9725,7 +9725,7 @@ var exportCanvas = async (type, elements, appState, files, {
9725
9725
  let blob = canvasToBlob(tempCanvas);
9726
9726
  if (appState.exportEmbedScene) {
9727
9727
  blob = blob.then(
9728
- (blob2) => import("./data/image-PPDUIIUO.js").then(
9728
+ (blob2) => import("./data/image-S7DRX2GL.js").then(
9729
9729
  ({ encodePngMetadata: encodePngMetadata2 }) => encodePngMetadata2({
9730
9730
  blob: blob2,
9731
9731
  metadata: serializeAsJSON(elements, appState, files, "local")
@@ -20745,33 +20745,11 @@ import {
20745
20745
  removeAllElementsFromFrame
20746
20746
  } from "@nous-excalidraw/element";
20747
20747
  import { getFrameChildren as getFrameChildren3 } from "@nous-excalidraw/element";
20748
- import {
20749
- KEYS as KEYS41,
20750
- updateActiveTool as updateActiveTool7,
20751
- arrayToMap as arrayToMap21,
20752
- isTransparent as isTransparent7
20753
- } from "@nous-excalidraw/common";
20748
+ import { KEYS as KEYS41, updateActiveTool as updateActiveTool7, arrayToMap as arrayToMap21 } from "@nous-excalidraw/common";
20754
20749
  import { getElementsInGroup as getElementsInGroup5 } from "@nous-excalidraw/element";
20755
- import { hasBackground as hasBackground2 } from "@nous-excalidraw/element";
20756
20750
  import { getCommonBounds as getCommonBounds3 } from "@nous-excalidraw/element";
20757
20751
  import { CaptureUpdateAction as CaptureUpdateAction35 } from "@nous-excalidraw/element";
20758
20752
  import { syncMovedIndices as syncMovedIndices4 } from "@nous-excalidraw/element";
20759
- var FRAME_CHILD_DEFAULT_COLOR = "#373737";
20760
- var ensureFrameChildrenAreVisible = (elements, frameChildren) => {
20761
- const elementsMap = arrayToMap21(elements);
20762
- for (const child of frameChildren) {
20763
- if (hasBackground2(child.type) && isTransparent7(child.backgroundColor)) {
20764
- mutateElement4(child, elementsMap, {
20765
- backgroundColor: FRAME_CHILD_DEFAULT_COLOR
20766
- });
20767
- }
20768
- if ((child.type === "line" || child.type === "arrow") && isTransparent7(child.strokeColor)) {
20769
- mutateElement4(child, elementsMap, {
20770
- strokeColor: FRAME_CHILD_DEFAULT_COLOR
20771
- });
20772
- }
20773
- }
20774
- };
20775
20753
  var isSingleFrameSelected = (appState, app) => {
20776
20754
  const selectedElements = app.scene.getSelectedElements(appState);
20777
20755
  return selectedElements.length === 1 && isFrameLikeElement8(selectedElements[0]);
@@ -20933,7 +20911,6 @@ var actionWrapSelectionInFrame = register({
20933
20911
  appState
20934
20912
  );
20935
20913
  const frameChildren = getFrameChildren3(nextElements, frame.id);
20936
- ensureFrameChildrenAreVisible(nextElements, frameChildren);
20937
20914
  return {
20938
20915
  elements: syncMovedIndices4(
20939
20916
  nextElements,
@@ -28824,7 +28801,7 @@ var TTDDialogInput = ({
28824
28801
  setShowSpinner(true);
28825
28802
  }
28826
28803
  }, SPINNER_DELAY_MS);
28827
- import("./components/TTDDialog/CodeMirrorEditor-FWL3IAFT.js").then((mod) => {
28804
+ import("./components/TTDDialog/CodeMirrorEditor-6L6DTYD2.js").then((mod) => {
28828
28805
  if (!cancelled) {
28829
28806
  setEditorState({ type: "ready", component: mod.default });
28830
28807
  }
@@ -40766,7 +40743,7 @@ var _App = class _App extends React46.Component {
40766
40743
  sceneY
40767
40744
  );
40768
40745
  if (container) {
40769
- if (hasBoundTextElement9(container) || !isTransparent8(container.backgroundColor) || hitElementItself3({
40746
+ if (hasBoundTextElement9(container) || !isTransparent7(container.backgroundColor) || hitElementItself3({
40770
40747
  point: pointFrom34(sceneX, sceneY),
40771
40748
  element: container,
40772
40749
  elementsMap: this.scene.getNonDeletedElementsMap(),