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