@tldraw/editor 3.14.0-canary.e2a8e4a03aff → 3.14.0-canary.e34e46232a4e

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/lib/editor/types/emit-types.ts"],
4
- "sourcesContent": ["import { HistoryEntry } from '@tldraw/store'\nimport { TLPageId, TLRecord, TLShapeId } from '@tldraw/tlschema'\nimport { TLEventInfo } from './event-types'\n\n/** @public */\nexport interface TLEventMap {\n\t// Lifecycle / Internal\n\tmount: []\n\t'max-shapes': [{ name: string; pageId: TLPageId; count: number }]\n\tchange: [HistoryEntry<TLRecord>]\n\tupdate: []\n\tcrash: [{ error: unknown }]\n\t'stop-camera-animation': []\n\t'stop-following': []\n\t'before-event': [TLEventInfo]\n\tevent: [TLEventInfo]\n\ttick: [number]\n\tframe: [number]\n\t'select-all-text': [{ shapeId: TLShapeId }]\n\t'place-caret': [{ shapeId: TLShapeId; point: { x: number; y: number } }]\n\t'created-shapes': [TLRecord[]]\n\t'edited-shapes': [TLRecord[]]\n\t'deleted-shapes': [TLShapeId[]]\n\tedit: []\n}\n\n/** @public */\nexport type TLEventMapHandler<T extends keyof TLEventMap> = (...args: TLEventMap[T]) => void\n"],
4
+ "sourcesContent": ["import { HistoryEntry } from '@tldraw/store'\nimport { TLPageId, TLRecord, TLShapeId } from '@tldraw/tlschema'\nimport { TLEventInfo } from './event-types'\n\n/** @public */\nexport interface TLEventMap {\n\t// Lifecycle / Internal\n\tmount: []\n\t'max-shapes': [{ name: string; pageId: TLPageId; count: number }]\n\tchange: [HistoryEntry<TLRecord>]\n\tupdate: []\n\tcrash: [{ error: unknown }]\n\t'stop-camera-animation': []\n\t'stop-following': []\n\t'before-event': [TLEventInfo]\n\tevent: [TLEventInfo]\n\ttick: [number]\n\tframe: [number]\n\t'select-all-text': [{ shapeId: TLShapeId }]\n\t'place-caret': [{ shapeId: TLShapeId; point: { x: number; y: number } }]\n}\n\n/** @public */\nexport type TLEventMapHandler<T extends keyof TLEventMap> = (...args: TLEventMap[T]) => void\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;",
6
6
  "names": []
7
7
  }
@@ -22,10 +22,10 @@ __export(version_exports, {
22
22
  version: () => version
23
23
  });
24
24
  module.exports = __toCommonJS(version_exports);
25
- const version = "3.14.0-canary.e2a8e4a03aff";
25
+ const version = "3.14.0-canary.e34e46232a4e";
26
26
  const publishDates = {
27
27
  major: "2024-09-13T14:36:29.063Z",
28
- minor: "2025-06-24T14:05:35.474Z",
29
- patch: "2025-06-24T14:05:35.474Z"
28
+ minor: "2025-06-23T15:21:19.738Z",
29
+ patch: "2025-06-23T15:21:19.738Z"
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.14.0-canary.e2a8e4a03aff'\nexport const publishDates = {\n\tmajor: '2024-09-13T14:36:29.063Z',\n\tminor: '2025-06-24T14:05:35.474Z',\n\tpatch: '2025-06-24T14:05:35.474Z',\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.14.0-canary.e34e46232a4e'\nexport const publishDates = {\n\tmajor: '2024-09-13T14:36:29.063Z',\n\tminor: '2025-06-23T15:21:19.738Z',\n\tpatch: '2025-06-23T15:21:19.738Z',\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
  }
@@ -6530,10 +6530,6 @@ export declare interface TLEventMap {
6530
6530
  };
6531
6531
  shapeId: TLShapeId;
6532
6532
  }];
6533
- 'created-shapes': [TLRecord[]];
6534
- 'edited-shapes': [TLRecord[]];
6535
- 'deleted-shapes': [TLShapeId[]];
6536
- edit: [];
6537
6533
  }
6538
6534
 
6539
6535
  /** @public */
@@ -292,7 +292,7 @@ function debugEnableLicensing() {
292
292
  }
293
293
  registerTldrawLibraryVersion(
294
294
  "@tldraw/editor",
295
- "3.14.0-canary.e2a8e4a03aff",
295
+ "3.14.0-canary.e34e46232a4e",
296
296
  "esm"
297
297
  );
298
298
  export {
@@ -5900,8 +5900,6 @@ class Editor extends (_a = EventEmitter, _getIsShapeHiddenCache_dec = [computed]
5900
5900
  ...shape.meta
5901
5901
  };
5902
5902
  });
5903
- this.emit("created-shapes", shapeRecordsToCreate);
5904
- this.emit("edit");
5905
5903
  this.store.put(shapeRecordsToCreate);
5906
5904
  });
5907
5905
  return this;
@@ -6143,8 +6141,6 @@ class Editor extends (_a = EventEmitter, _getIsShapeHiddenCache_dec = [computed]
6143
6141
  updated = this.getShapeUtil(shape).onBeforeUpdate?.(shape, updated) ?? updated;
6144
6142
  updates.push(updated);
6145
6143
  }
6146
- this.emit("edited-shapes", updates);
6147
- this.emit("edit");
6148
6144
  this.store.put(updates);
6149
6145
  });
6150
6146
  }
@@ -6166,8 +6162,6 @@ class Editor extends (_a = EventEmitter, _getIsShapeHiddenCache_dec = [computed]
6166
6162
  allShapeIdsToDelete.add(childId);
6167
6163
  });
6168
6164
  }
6169
- this.emit("deleted-shapes", [...allShapeIdsToDelete]);
6170
- this.emit("edit");
6171
6165
  return this.run(() => this.store.remove([...allShapeIdsToDelete]));
6172
6166
  }
6173
6167
  deleteShape(_id) {