@tldraw/editor 3.7.0-canary.916221bf1c79 → 3.7.0-internal.acaf9fbbd3cc
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-cjs/index.js +1 -1
- package/dist-cjs/lib/editor/Editor.js +3 -5
- package/dist-cjs/lib/editor/Editor.js.map +2 -2
- package/dist-cjs/version.js +3 -3
- package/dist-cjs/version.js.map +1 -1
- package/dist-esm/index.mjs +1 -1
- package/dist-esm/lib/editor/Editor.mjs +3 -5
- package/dist-esm/lib/editor/Editor.mjs.map +2 -2
- package/dist-esm/version.mjs +3 -3
- package/dist-esm/version.mjs.map +1 -1
- package/package.json +7 -7
- package/src/lib/editor/Editor.test.ts +64 -3
- package/src/lib/editor/Editor.ts +2 -4
- package/src/version.ts +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -2827,7 +2827,7 @@ class Editor extends (_a = import_eventemitter3.default, _getIsShapeHiddenCache_
|
|
|
2827
2827
|
return this.store.query.records("page");
|
|
2828
2828
|
}
|
|
2829
2829
|
getPages() {
|
|
2830
|
-
return this._getAllPagesQuery().get().sort(import_utils.sortByIndex);
|
|
2830
|
+
return Array.from(this._getAllPagesQuery().get()).sort(import_utils.sortByIndex);
|
|
2831
2831
|
}
|
|
2832
2832
|
/**
|
|
2833
2833
|
* The current page.
|
|
@@ -7259,10 +7259,8 @@ function applyPartialToRecordWithProps(prev, partial) {
|
|
|
7259
7259
|
if (k === "props" || k === "meta") {
|
|
7260
7260
|
next[k] = { ...prev[k] };
|
|
7261
7261
|
for (const [nextKey, nextValue] of Object.entries(v)) {
|
|
7262
|
-
|
|
7263
|
-
|
|
7264
|
-
next[k][nextKey] = nextValue;
|
|
7265
|
-
}
|
|
7262
|
+
;
|
|
7263
|
+
next[k][nextKey] = nextValue;
|
|
7266
7264
|
}
|
|
7267
7265
|
continue;
|
|
7268
7266
|
}
|