@dxos/client-services 0.1.53-main.528b72b → 0.1.53-main.52ca4e9

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.
@@ -3730,13 +3730,15 @@ var ClientServicesHost = class {
3730
3730
  connectionLog,
3731
3731
  storage,
3732
3732
  // TODO(wittjosiah): Turn this on by default.
3733
- lockKey
3733
+ lockKey,
3734
+ callbacks
3734
3735
  } = {}) {
3735
3736
  this._statusUpdate = new import_async17.Event();
3736
3737
  this._opening = false;
3737
3738
  this._open = false;
3738
3739
  this._storage = storage;
3739
3740
  this._modelFactory = modelFactory;
3741
+ this._callbacks = callbacks;
3740
3742
  if (config) {
3741
3743
  this.initialize({
3742
3744
  config,
@@ -3824,7 +3826,7 @@ var ClientServicesHost = class {
3824
3826
  id: traceId
3825
3827
  }), {
3826
3828
  F: __dxlog_file14,
3827
- L: 195,
3829
+ L: 203,
3828
3830
  S: this,
3829
3831
  C: (f, a) => f(...a)
3830
3832
  });
@@ -3837,7 +3839,7 @@ var ClientServicesHost = class {
3837
3839
  lockKey: (_a = this._resourceLock) == null ? void 0 : _a.lockKey
3838
3840
  }, {
3839
3841
  F: __dxlog_file14,
3840
- L: 203,
3842
+ L: 211,
3841
3843
  S: this,
3842
3844
  C: (f, a) => f(...a)
3843
3845
  });
@@ -3872,7 +3874,7 @@ var ClientServicesHost = class {
3872
3874
  deviceKey
3873
3875
  }, {
3874
3876
  F: __dxlog_file14,
3875
- L: 258,
3877
+ L: 266,
3876
3878
  S: this,
3877
3879
  C: (f, a) => f(...a)
3878
3880
  });
@@ -3880,7 +3882,7 @@ var ClientServicesHost = class {
3880
3882
  id: traceId
3881
3883
  }), {
3882
3884
  F: __dxlog_file14,
3883
- L: 259,
3885
+ L: 267,
3884
3886
  S: this,
3885
3887
  C: (f, a) => f(...a)
3886
3888
  });
@@ -3895,7 +3897,7 @@ var ClientServicesHost = class {
3895
3897
  deviceKey
3896
3898
  }, {
3897
3899
  F: __dxlog_file14,
3898
- L: 269,
3900
+ L: 277,
3899
3901
  S: this,
3900
3902
  C: (f, a) => f(...a)
3901
3903
  });
@@ -3910,25 +3912,25 @@ var ClientServicesHost = class {
3910
3912
  deviceKey
3911
3913
  }, {
3912
3914
  F: __dxlog_file14,
3913
- L: 275,
3915
+ L: 283,
3914
3916
  S: this,
3915
3917
  C: (f, a) => f(...a)
3916
3918
  });
3917
3919
  }
3918
3920
  async reset() {
3919
- var _a;
3921
+ var _a, _b, _c;
3920
3922
  const traceId = import_keys12.PublicKey.random().toHex();
3921
3923
  import_log15.log.trace("dxos.sdk.client-services-host.reset", import_protocols9.trace.begin({
3922
3924
  id: traceId
3923
3925
  }), {
3924
3926
  F: __dxlog_file14,
3925
- L: 280,
3927
+ L: 288,
3926
3928
  S: this,
3927
3929
  C: (f, a) => f(...a)
3928
3930
  });
3929
3931
  (0, import_log15.log)("resetting...", void 0, {
3930
3932
  F: __dxlog_file14,
3931
- L: 282,
3933
+ L: 290,
3932
3934
  S: this,
3933
3935
  C: (f, a) => f(...a)
3934
3936
  });
@@ -3936,7 +3938,7 @@ var ClientServicesHost = class {
3936
3938
  await this._storage.reset();
3937
3939
  (0, import_log15.log)("reset", void 0, {
3938
3940
  F: __dxlog_file14,
3939
- L: 285,
3941
+ L: 293,
3940
3942
  S: this,
3941
3943
  C: (f, a) => f(...a)
3942
3944
  });
@@ -3944,10 +3946,11 @@ var ClientServicesHost = class {
3944
3946
  id: traceId
3945
3947
  }), {
3946
3948
  F: __dxlog_file14,
3947
- L: 286,
3949
+ L: 294,
3948
3950
  S: this,
3949
3951
  C: (f, a) => f(...a)
3950
3952
  });
3953
+ await ((_c = (_b = this._callbacks) == null ? void 0 : _b.onReset) == null ? void 0 : _c.call(_b));
3951
3954
  }
3952
3955
  };
3953
3956
  _ts_decorate4([