@tldraw/editor 5.3.0-canary.9a74cc3f19c1 → 5.3.0-canary.fceaae5e9feb

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
@@ -379,7 +379,7 @@ var import_uniq = require("./lib/utils/uniq");
379
379
  var import_defaultThemes2 = require("./lib/editor/managers/ThemeManager/defaultThemes");
380
380
  (0, import_utils.registerTldrawLibraryVersion)(
381
381
  "@tldraw/editor",
382
- "5.3.0-canary.9a74cc3f19c1",
382
+ "5.3.0-canary.fceaae5e9feb",
383
383
  "cjs"
384
384
  );
385
385
  //# sourceMappingURL=index.js.map
@@ -273,16 +273,12 @@ class Editor extends import_eventemitter3.default {
273
273
  let deletedBindings = /* @__PURE__ */ new Map();
274
274
  const deletedShapeIds = /* @__PURE__ */ new Set();
275
275
  const invalidParents = /* @__PURE__ */ new Set();
276
- const createdShapes = /* @__PURE__ */ new Set();
277
276
  let invalidBindingTypes = /* @__PURE__ */ new Set();
278
277
  this.disposables.add(
279
278
  this.sideEffects.registerOperationCompleteHandler(() => {
280
279
  deletedShapeIds.clear();
281
- const justCreatedShapeIds = new Set(createdShapes);
282
- createdShapes.clear();
283
280
  for (const parentId of invalidParents) {
284
281
  invalidParents.delete(parentId);
285
- if (justCreatedShapeIds.has(parentId)) continue;
286
282
  const parent = this.getShape(parentId);
287
283
  if (!parent) continue;
288
284
  const util = this.getShapeUtil(parent);
@@ -312,12 +308,6 @@ class Editor extends import_eventemitter3.default {
312
308
  this.disposables.add(
313
309
  this.sideEffects.register({
314
310
  shape: {
315
- afterCreate: (shape) => {
316
- createdShapes.add(shape.id);
317
- if (shape.parentId && (0, import_tlschema.isShapeId)(shape.parentId)) {
318
- invalidParents.add(shape.parentId);
319
- }
320
- },
321
311
  afterChange: (shapeBefore, shapeAfter) => {
322
312
  for (const binding of this.getBindingsInvolvingShape(shapeAfter)) {
323
313
  invalidBindingTypes.add(binding.type);