@tldraw/editor 3.8.0-canary.9d961047c9d7 → 3.8.0-canary.a5d08406113a
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 +13 -2
- 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 +13 -2
- 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.ts +13 -13
- package/src/version.ts +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1038,9 +1038,20 @@ class Editor extends (_a = import_eventemitter3.default, _getIsShapeHiddenCache_
|
|
|
1038
1038
|
},
|
|
1039
1039
|
extras: {
|
|
1040
1040
|
activeStateNode: this.root.getPath(),
|
|
1041
|
-
selectedShapes: this.getSelectedShapes()
|
|
1041
|
+
selectedShapes: this.getSelectedShapes().map((s) => {
|
|
1042
|
+
const { props, ...rest } = s;
|
|
1043
|
+
const { text: _text, richText: _richText, ...restProps } = props;
|
|
1044
|
+
return {
|
|
1045
|
+
...rest,
|
|
1046
|
+
props: restProps
|
|
1047
|
+
};
|
|
1048
|
+
}),
|
|
1049
|
+
selectionCount: this.getSelectedShapes().length,
|
|
1042
1050
|
editingShape: editingShapeId ? this.getShape(editingShapeId) : void 0,
|
|
1043
|
-
inputs: this.inputs
|
|
1051
|
+
inputs: this.inputs,
|
|
1052
|
+
pageState: this.getCurrentPageState(),
|
|
1053
|
+
instanceState: this.getInstanceState(),
|
|
1054
|
+
collaboratorCount: this.getCollaboratorsOnCurrentPage().length
|
|
1044
1055
|
}
|
|
1045
1056
|
};
|
|
1046
1057
|
} catch {
|