@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 +9 -3
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +9 -3
- package/dist/index.umd.cjs.map +1 -1
- package/dist/settings/SettingsManager.d.ts +2 -1
- package/package.json +3 -3
package/dist/index.umd.cjs
CHANGED
|
@@ -6123,8 +6123,8 @@
|
|
|
6123
6123
|
};
|
|
6124
6124
|
this.inputSettings = settingsWithDefaults;
|
|
6125
6125
|
this.outputSettingsUpdateSubject = new rxjs.Subject();
|
|
6126
|
-
this.
|
|
6127
|
-
this.
|
|
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;
|