@prose-reader/core 1.63.0 → 1.65.0

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/index.js CHANGED
@@ -6122,8 +6122,8 @@ class SettingsManager3 {
6122
6122
  };
6123
6123
  this.inputSettings = settingsWithDefaults;
6124
6124
  this.outputSettingsUpdateSubject = new Subject();
6125
- this.settings$ = this.outputSettingsUpdateSubject.asObservable().pipe(shareReplay(1));
6126
- this.settings$.subscribe();
6125
+ this._settings$ = this.outputSettingsUpdateSubject.asObservable().pipe(shareReplay(1));
6126
+ this._settings$.subscribe();
6127
6127
  }
6128
6128
  _prepareUpdate(settings) {
6129
6129
  const newInputSettings = shallowMergeIfDefined(this.inputSettings, settings);
@@ -6153,6 +6153,13 @@ class SettingsManager3 {
6153
6153
  }
6154
6154
  return this.outputSettings;
6155
6155
  }
6156
+ get settings$() {
6157
+ if (!this.outputSettings) {
6158
+ const { commit } = this._prepareUpdate(this.inputSettings);
6159
+ commit();
6160
+ }
6161
+ return this._settings$;
6162
+ }
6156
6163
  destroy() {
6157
6164
  this.outputSettingsUpdateSubject.complete();
6158
6165
  }
@@ -6175,7 +6182,6 @@ class ReaderSettingsManager extends SettingsManager3 {
6175
6182
  })
6176
6183
  );
6177
6184
  merge(recomputeSettingsOnContextChange$, updateContextOnSettingsChanges$).pipe(takeUntil$1(context.destroy$)).subscribe();
6178
- this.settings$.subscribe();
6179
6185
  }
6180
6186
  getComputedSettings(settings) {
6181
6187
  const manifest = this.context.manifest;