@prose-reader/core 1.123.0 → 1.124.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.
@@ -8221,7 +8221,9 @@
8221
8221
  rxjs.switchMap((container) => rxjs.fromEvent(container, "pointerdown")),
8222
8222
  rxjs.withLatestFrom(selection$),
8223
8223
  rxjs.map(([, selection]) => selection),
8224
- rxjs.startWith(void 0)
8224
+ rxjs.startWith(void 0),
8225
+ rxjs.shareReplay(1),
8226
+ rxjs.takeUntil(reader.$.destroy$)
8225
8227
  );
8226
8228
  return {
8227
8229
  ...reader,
@@ -8231,7 +8233,8 @@
8231
8233
  selectionEnd$,
8232
8234
  selectionAfterPointerUp$,
8233
8235
  lastSelectionOnPointerdown$,
8234
- generateCfis
8236
+ generateCfis,
8237
+ getSelection: () => selectionSubject.getValue()
8235
8238
  },
8236
8239
  destroy: () => {
8237
8240
  selectionSubject.complete();