@glimt/record 0.0.76 → 0.0.77

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.
@@ -10334,7 +10334,7 @@ class IframeManager {
10334
10334
  const _ObserveManager = class _ObserveManager2 {
10335
10335
  constructor() {
10336
10336
  __publicField(this, "docsObservers", /* @__PURE__ */ new WeakSet());
10337
- __publicField(this, "shadowRootsObservers", /* @__PURE__ */ new WeakMap());
10337
+ __publicField(this, "shadowRootsObservers", /* @__PURE__ */ new WeakSet());
10338
10338
  __publicField(this, "mutationOptions");
10339
10339
  __publicField(this, "emitter", null);
10340
10340
  if (_ObserveManager2.instance) {
@@ -10419,6 +10419,7 @@ const _ObserveManager = class _ObserveManager2 {
10419
10419
  onDocObserver(doc) {
10420
10420
  if (!this.usable) return false;
10421
10421
  if (!this.docsObservers.has(doc)) return true;
10422
+ this.docsObservers.add(doc);
10422
10423
  debugLog(
10423
10424
  "onDocObserver: doc already observed, emitting full snapshot for doc",
10424
10425
  doc
@@ -10429,6 +10430,7 @@ const _ObserveManager = class _ObserveManager2 {
10429
10430
  onShadowRootObserver(shadowRoot2) {
10430
10431
  if (!this.usable) return false;
10431
10432
  if (!this.shadowRootsObservers.has(shadowRoot2)) return true;
10433
+ this.shadowRootsObservers.add(shadowRoot2);
10432
10434
  debugLog(
10433
10435
  "onShadowRootObserver: shadowRoot already observed, emitting full snapshot for shadowRoot",
10434
10436
  shadowRoot2
@@ -10468,7 +10470,7 @@ const _ObserveManager = class _ObserveManager2 {
10468
10470
  // }
10469
10471
  destroy() {
10470
10472
  this.docsObservers = /* @__PURE__ */ new WeakSet();
10471
- this.shadowRootsObservers = /* @__PURE__ */ new WeakMap();
10473
+ this.shadowRootsObservers = /* @__PURE__ */ new WeakSet();
10472
10474
  }
10473
10475
  };
10474
10476
  __publicField(_ObserveManager, "instance");