@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.
@@ -22,10 +22,10 @@ __export(version_exports, {
22
22
  version: () => version
23
23
  });
24
24
  module.exports = __toCommonJS(version_exports);
25
- const version = "3.8.0-canary.9d961047c9d7";
25
+ const version = "3.8.0-canary.a5d08406113a";
26
26
  const publishDates = {
27
27
  major: "2024-09-13T14:36:29.063Z",
28
- minor: "2025-01-20T09:23:49.775Z",
29
- patch: "2025-01-20T09:23:49.775Z"
28
+ minor: "2025-01-20T11:49:42.423Z",
29
+ patch: "2025-01-20T11:49:42.423Z"
30
30
  };
31
31
  //# sourceMappingURL=version.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/version.ts"],
4
- "sourcesContent": ["// This file is automatically generated by internal/scripts/refresh-assets.ts.\n// Do not edit manually. Or do, I'm a comment, not a cop.\n\nexport const version = '3.8.0-canary.9d961047c9d7'\nexport const publishDates = {\n\tmajor: '2024-09-13T14:36:29.063Z',\n\tminor: '2025-01-20T09:23:49.775Z',\n\tpatch: '2025-01-20T09:23:49.775Z',\n}\n"],
4
+ "sourcesContent": ["// This file is automatically generated by internal/scripts/refresh-assets.ts.\n// Do not edit manually. Or do, I'm a comment, not a cop.\n\nexport const version = '3.8.0-canary.a5d08406113a'\nexport const publishDates = {\n\tmajor: '2024-09-13T14:36:29.063Z',\n\tminor: '2025-01-20T11:49:42.423Z',\n\tpatch: '2025-01-20T11:49:42.423Z',\n}\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGO,MAAM,UAAU;AAChB,MAAM,eAAe;AAAA,EAC3B,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AACR;",
6
6
  "names": []
7
7
  }
@@ -285,7 +285,7 @@ function debugEnableLicensing() {
285
285
  }
286
286
  registerTldrawLibraryVersion(
287
287
  "@tldraw/editor",
288
- "3.8.0-canary.9d961047c9d7",
288
+ "3.8.0-canary.a5d08406113a",
289
289
  "esm"
290
290
  );
291
291
  export {
@@ -1064,9 +1064,20 @@ class Editor extends (_a = EventEmitter, _getIsShapeHiddenCache_dec = [computed]
1064
1064
  },
1065
1065
  extras: {
1066
1066
  activeStateNode: this.root.getPath(),
1067
- selectedShapes: this.getSelectedShapes(),
1067
+ selectedShapes: this.getSelectedShapes().map((s) => {
1068
+ const { props, ...rest } = s;
1069
+ const { text: _text, richText: _richText, ...restProps } = props;
1070
+ return {
1071
+ ...rest,
1072
+ props: restProps
1073
+ };
1074
+ }),
1075
+ selectionCount: this.getSelectedShapes().length,
1068
1076
  editingShape: editingShapeId ? this.getShape(editingShapeId) : void 0,
1069
- inputs: this.inputs
1077
+ inputs: this.inputs,
1078
+ pageState: this.getCurrentPageState(),
1079
+ instanceState: this.getInstanceState(),
1080
+ collaboratorCount: this.getCollaboratorsOnCurrentPage().length
1070
1081
  }
1071
1082
  };
1072
1083
  } catch {