@tldraw/editor 3.8.0-canary.7f52c1464bc4 → 3.8.0-canary.80294e641ad6

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 CHANGED
@@ -359,7 +359,7 @@ function debugEnableLicensing() {
359
359
  }
360
360
  (0, import_utils.registerTldrawLibraryVersion)(
361
361
  "@tldraw/editor",
362
- "3.8.0-canary.7f52c1464bc4",
362
+ "3.8.0-canary.80294e641ad6",
363
363
  "cjs"
364
364
  );
365
365
  //# sourceMappingURL=index.js.map
@@ -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 {