@nous-excalidraw/excalidraw 0.18.4-beta.2 → 0.18.5
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/dist/dev/{chunk-SAWRJ2AG.js → chunk-NMAANOBH.js} +3 -3
- package/dist/dev/{chunk-2C5KXBJQ.js → chunk-U7VL4U4T.js} +2 -2
- package/dist/dev/components/TTDDialog/{CodeMirrorEditor-I72JGFZW.js → CodeMirrorEditor-VMD3K7XT.js} +2 -2
- package/dist/dev/data/{image-JEK4DDYJ.js → image-BO6UAI3G.js} +3 -3
- package/dist/dev/index.js +22 -16
- package/dist/dev/index.js.map +3 -3
- package/dist/dev/subset-shared.chunk.js +1 -1
- package/dist/dev/subset-worker.chunk.js +1 -1
- package/dist/prod/{chunk-AJJWL4ZZ.js → chunk-IMTXRTTI.js} +2 -2
- package/dist/prod/{chunk-YJYGGOQW.js → chunk-MF2LTTTS.js} +1 -1
- package/dist/prod/components/TTDDialog/{CodeMirrorEditor-333K4FMB.js → CodeMirrorEditor-RIZHM22R.js} +1 -1
- package/dist/prod/data/image-5VLURFBZ.js +1 -0
- package/dist/prod/index.js +16 -16
- package/dist/prod/subset-shared.chunk.js +1 -1
- package/dist/prod/subset-worker.chunk.js +1 -1
- package/package.json +4 -4
- package/dist/prod/data/image-5R6OBHM7.js +0 -1
- /package/dist/dev/{chunk-SAWRJ2AG.js.map → chunk-NMAANOBH.js.map} +0 -0
- /package/dist/dev/{chunk-2C5KXBJQ.js.map → chunk-U7VL4U4T.js.map} +0 -0
- /package/dist/dev/components/TTDDialog/{CodeMirrorEditor-I72JGFZW.js.map → CodeMirrorEditor-VMD3K7XT.js.map} +0 -0
- /package/dist/dev/data/{image-JEK4DDYJ.js.map → image-BO6UAI3G.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
define_import_meta_env_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-U7VL4U4T.js";
|
|
4
4
|
import {
|
|
5
5
|
__publicField
|
|
6
6
|
} from "./chunk-XDFCUUT6.js";
|
|
@@ -5085,7 +5085,7 @@ var parseFileContents = async (blob) => {
|
|
|
5085
5085
|
let contents;
|
|
5086
5086
|
if (blob.type === MIME_TYPES6.png) {
|
|
5087
5087
|
try {
|
|
5088
|
-
return await (await import("./data/image-
|
|
5088
|
+
return await (await import("./data/image-BO6UAI3G.js")).decodePngMetadata(blob);
|
|
5089
5089
|
} catch (error) {
|
|
5090
5090
|
if (error.message === "INVALID") {
|
|
5091
5091
|
throw new ImageSceneDataError(
|
|
@@ -5519,4 +5519,4 @@ export {
|
|
|
5519
5519
|
createFile,
|
|
5520
5520
|
normalizeFile
|
|
5521
5521
|
};
|
|
5522
|
-
//# sourceMappingURL=chunk-
|
|
5522
|
+
//# sourceMappingURL=chunk-NMAANOBH.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: "@nous-excalidraw/excalidraw", PKG_VERSION: "0.18.4-beta.
|
|
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.4-beta.2", DEV: true };
|
|
3
3
|
|
|
4
4
|
export {
|
|
5
5
|
define_import_meta_env_default
|
|
6
6
|
};
|
|
7
|
-
//# sourceMappingURL=chunk-
|
|
7
|
+
//# sourceMappingURL=chunk-U7VL4U4T.js.map
|
package/dist/dev/components/TTDDialog/{CodeMirrorEditor-I72JGFZW.js → CodeMirrorEditor-VMD3K7XT.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../chunk-
|
|
1
|
+
import "../../chunk-U7VL4U4T.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-
|
|
259
|
+
//# sourceMappingURL=CodeMirrorEditor-VMD3K7XT.js.map
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
decodePngMetadata,
|
|
3
3
|
encodePngMetadata,
|
|
4
4
|
getTEXtChunk
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-NMAANOBH.js";
|
|
6
|
+
import "../chunk-U7VL4U4T.js";
|
|
7
7
|
import "../chunk-XDFCUUT6.js";
|
|
8
8
|
export {
|
|
9
9
|
decodePngMetadata,
|
|
10
10
|
encodePngMetadata,
|
|
11
11
|
getTEXtChunk
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=image-
|
|
13
|
+
//# sourceMappingURL=image-BO6UAI3G.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-
|
|
68
|
+
} from "./chunk-NMAANOBH.js";
|
|
69
69
|
import {
|
|
70
70
|
define_import_meta_env_default
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-U7VL4U4T.js";
|
|
72
72
|
import {
|
|
73
73
|
en_default
|
|
74
74
|
} from "./chunk-4JOINNOK.js";
|
|
@@ -233,7 +233,7 @@ import {
|
|
|
233
233
|
isBoundToContainer as isBoundToContainer9,
|
|
234
234
|
isFrameLikeElement as isFrameLikeElement15,
|
|
235
235
|
isImageElement as isImageElement9,
|
|
236
|
-
isEmbeddableElement as
|
|
236
|
+
isEmbeddableElement as isEmbeddableElement5,
|
|
237
237
|
isInitializedImageElement as isInitializedImageElement3,
|
|
238
238
|
isLinearElement as isLinearElement12,
|
|
239
239
|
isLinearElementType as isLinearElementType2,
|
|
@@ -9639,7 +9639,7 @@ var exportCanvas = async (type, elements, appState, files, {
|
|
|
9639
9639
|
let blob = canvasToBlob(tempCanvas);
|
|
9640
9640
|
if (appState.exportEmbedScene) {
|
|
9641
9641
|
blob = blob.then(
|
|
9642
|
-
(blob2) => import("./data/image-
|
|
9642
|
+
(blob2) => import("./data/image-BO6UAI3G.js").then(
|
|
9643
9643
|
({ encodePngMetadata: encodePngMetadata2 }) => encodePngMetadata2({
|
|
9644
9644
|
blob: blob2,
|
|
9645
9645
|
metadata: serializeAsJSON(elements, appState, files, "local")
|
|
@@ -28499,7 +28499,7 @@ var TTDDialogInput = ({
|
|
|
28499
28499
|
setShowSpinner(true);
|
|
28500
28500
|
}
|
|
28501
28501
|
}, SPINNER_DELAY_MS);
|
|
28502
|
-
import("./components/TTDDialog/CodeMirrorEditor-
|
|
28502
|
+
import("./components/TTDDialog/CodeMirrorEditor-VMD3K7XT.js").then((mod) => {
|
|
28503
28503
|
if (!cancelled) {
|
|
28504
28504
|
setEditorState({ type: "ready", component: mod.default });
|
|
28505
28505
|
}
|
|
@@ -35212,6 +35212,7 @@ import {
|
|
|
35212
35212
|
isArrowElement as isArrowElement13,
|
|
35213
35213
|
isBindableElement as isBindableElement2,
|
|
35214
35214
|
isElbowArrow as isElbowArrow9,
|
|
35215
|
+
isEmbeddableElement as isEmbeddableElement4,
|
|
35215
35216
|
isFrameLikeElement as isFrameLikeElement14,
|
|
35216
35217
|
isImageElement as isImageElement8,
|
|
35217
35218
|
isLinearElement as isLinearElement11,
|
|
@@ -35979,8 +35980,12 @@ var renderSelectionBorder = (context, appState, elementProperties) => {
|
|
|
35979
35980
|
cx,
|
|
35980
35981
|
cy,
|
|
35981
35982
|
dashed,
|
|
35982
|
-
activeEmbeddable
|
|
35983
|
+
activeEmbeddable,
|
|
35984
|
+
skipBorder
|
|
35983
35985
|
} = elementProperties;
|
|
35986
|
+
if (skipBorder) {
|
|
35987
|
+
return;
|
|
35988
|
+
}
|
|
35984
35989
|
const elementWidth = x2 - x1;
|
|
35985
35990
|
const elementHeight = y2 - y1;
|
|
35986
35991
|
const padding = elementProperties.padding ?? DEFAULT_TRANSFORM_HANDLE_SPACING2 * 2;
|
|
@@ -36611,6 +36616,7 @@ var _renderInteractiveScene = ({
|
|
|
36611
36616
|
cx,
|
|
36612
36617
|
cy,
|
|
36613
36618
|
activeEmbeddable: appState.activeEmbeddable?.element === element && appState.activeEmbeddable.state === "active",
|
|
36619
|
+
skipBorder: isEmbeddableElement4(element),
|
|
36614
36620
|
padding: element.id === appState.croppingElementId || isImageElement8(element) ? 0 : void 0
|
|
36615
36621
|
});
|
|
36616
36622
|
}
|
|
@@ -37619,7 +37625,7 @@ var App = class _App extends React46.Component {
|
|
|
37619
37625
|
const iframeLikes = /* @__PURE__ */ new Set();
|
|
37620
37626
|
let updated = false;
|
|
37621
37627
|
this.scene.getNonDeletedElements().filter((element) => {
|
|
37622
|
-
if (
|
|
37628
|
+
if (isEmbeddableElement5(element)) {
|
|
37623
37629
|
iframeLikes.add(element.id);
|
|
37624
37630
|
if (!this.embedsValidationStatus.has(element.id)) {
|
|
37625
37631
|
updated = true;
|
|
@@ -39729,7 +39735,7 @@ var App = class _App extends React46.Component {
|
|
|
39729
39735
|
this.state
|
|
39730
39736
|
);
|
|
39731
39737
|
const hitElement = this.getElementAtPosition(sceneX, sceneY);
|
|
39732
|
-
if (hitElement && (isImageElement9(hitElement) || isFrameLikeElement15(hitElement) ||
|
|
39738
|
+
if (hitElement && (isImageElement9(hitElement) || isFrameLikeElement15(hitElement) || isEmbeddableElement5(hitElement))) {
|
|
39733
39739
|
this.scrollToContent(hitElement, {
|
|
39734
39740
|
animate: true,
|
|
39735
39741
|
duration: 500,
|
|
@@ -40377,7 +40383,7 @@ var App = class _App extends React46.Component {
|
|
|
40377
40383
|
if (isLaserTool) {
|
|
40378
40384
|
return;
|
|
40379
40385
|
}
|
|
40380
|
-
if (hitElement && (hitElement.link ||
|
|
40386
|
+
if (hitElement && (hitElement.link || isEmbeddableElement5(hitElement)) && this.state.selectedElementIds[hitElement.id] && !this.state.contextMenu && !this.state.showHyperlinkPopup) {
|
|
40381
40387
|
this.setState({ showHyperlinkPopup: "info" });
|
|
40382
40388
|
} else if (this.state.activeTool.type === "text") {
|
|
40383
40389
|
setCursor(
|
|
@@ -40694,7 +40700,7 @@ var App = class _App extends React46.Component {
|
|
|
40694
40700
|
prevState,
|
|
40695
40701
|
this
|
|
40696
40702
|
),
|
|
40697
|
-
showHyperlinkPopup: hitElement.link ||
|
|
40703
|
+
showHyperlinkPopup: hitElement.link || isEmbeddableElement5(hitElement) ? "info" : false
|
|
40698
40704
|
};
|
|
40699
40705
|
});
|
|
40700
40706
|
pointerDownState.hit.wasAddedToSelection = true;
|
|
@@ -41195,7 +41201,7 @@ var App = class _App extends React46.Component {
|
|
|
41195
41201
|
prevState,
|
|
41196
41202
|
this
|
|
41197
41203
|
),
|
|
41198
|
-
showHyperlinkPopup: hitElement.link ||
|
|
41204
|
+
showHyperlinkPopup: hitElement.link || isEmbeddableElement5(hitElement) ? "info" : false
|
|
41199
41205
|
};
|
|
41200
41206
|
});
|
|
41201
41207
|
pointerDownState.hit.wasAddedToSelection = true;
|
|
@@ -43141,7 +43147,7 @@ var App = class _App extends React46.Component {
|
|
|
43141
43147
|
const normalizedWidth = this.state.width;
|
|
43142
43148
|
const normalizedHeight = this.state.height;
|
|
43143
43149
|
const embeddableElements = this.scene.getNonDeletedElements().filter(
|
|
43144
|
-
(el) =>
|
|
43150
|
+
(el) => isEmbeddableElement5(el) && this.embedsValidationStatus.get(el.id) === true || isIframeElement2(el)
|
|
43145
43151
|
);
|
|
43146
43152
|
return /* @__PURE__ */ jsx162(Fragment28, { children: embeddableElements.map((el) => {
|
|
43147
43153
|
const { x, y } = sceneCoordsToViewportCoords7(
|
|
@@ -43339,7 +43345,7 @@ var App = class _App extends React46.Component {
|
|
|
43339
43345
|
style: {
|
|
43340
43346
|
padding: `${el.strokeWidth}px`
|
|
43341
43347
|
},
|
|
43342
|
-
children: (
|
|
43348
|
+
children: (isEmbeddableElement5(el) ? this.props.renderEmbeddable?.(el, this.state) : null) ?? /* @__PURE__ */ jsx162(
|
|
43343
43349
|
"iframe",
|
|
43344
43350
|
{
|
|
43345
43351
|
ref: (ref) => this.cacheEmbeddableRef(el, ref),
|
|
@@ -45516,7 +45522,7 @@ var App = class _App extends React46.Component {
|
|
|
45516
45522
|
elementsWithinSelection[0],
|
|
45517
45523
|
this.scene.getNonDeletedElementsMap()
|
|
45518
45524
|
) : null,
|
|
45519
|
-
showHyperlinkPopup: elementsWithinSelection.length === 1 && (elementsWithinSelection[0].link ||
|
|
45525
|
+
showHyperlinkPopup: elementsWithinSelection.length === 1 && (elementsWithinSelection[0].link || isEmbeddableElement5(elementsWithinSelection[0])) ? "info" : false
|
|
45520
45526
|
};
|
|
45521
45527
|
});
|
|
45522
45528
|
}
|
|
@@ -46128,7 +46134,7 @@ var App = class _App extends React46.Component {
|
|
|
46128
46134
|
prevState,
|
|
46129
46135
|
this
|
|
46130
46136
|
),
|
|
46131
|
-
showHyperlinkPopup: hitElement.link ||
|
|
46137
|
+
showHyperlinkPopup: hitElement.link || isEmbeddableElement5(hitElement) ? "info" : false
|
|
46132
46138
|
};
|
|
46133
46139
|
});
|
|
46134
46140
|
} else {
|
|
@@ -46214,7 +46220,7 @@ var App = class _App extends React46.Component {
|
|
|
46214
46220
|
},
|
|
46215
46221
|
prevState
|
|
46216
46222
|
),
|
|
46217
|
-
showHyperlinkPopup:
|
|
46223
|
+
showHyperlinkPopup: isEmbeddableElement5(newElement7) && !newElement7.link ? "editor" : prevState.showHyperlinkPopup
|
|
46218
46224
|
}));
|
|
46219
46225
|
}
|
|
46220
46226
|
if (activeTool.type !== "selection" || isSomeElementSelected(this.scene.getNonDeletedElements(), this.state) || !isShallowEqual9(
|