oasis-editor 0.0.369 → 0.0.371

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.
@@ -1,13 +1,18 @@
1
1
  /**
2
- * The Reviewing Pane's open state. Kept separate from comment-panel state so
3
- * the two drawers are independent, mirroring Word's distinct panes. Persisted
4
- * to localStorage (`oasis-reviewing-pane-v1`) so pane visibility survives
5
- * reloads, like Word's reviewing pane. Writes happen in the mutators rather
6
- * than an effect so the stored value is exact even outside a reactive root.
2
+ * The Reviewing Pane's open state and revision-list scroll offset. Kept
3
+ * separate from comment-panel state so the two drawers are independent,
4
+ * mirroring Word's distinct panes. Persisted to localStorage
5
+ * (`oasis-reviewing-pane-v1`) so both pane visibility and its scroll position
6
+ * survive reloads, like Word's reviewing pane. Writes happen in the mutators
7
+ * rather than an effect so the stored value is exact even outside a reactive
8
+ * root. Older builds stored only `"true"`/`"false"`; that legacy shape is still
9
+ * read (with a zero scroll offset) so upgrading keeps the pane's visibility.
7
10
  */
8
11
  export declare function createRevisionsPanel(): {
9
12
  open: () => boolean;
10
13
  toggle: () => boolean;
11
14
  close: () => void;
15
+ scrollTop: () => number;
16
+ setScrollTop: (value: number) => void;
12
17
  };
13
18
  export type RevisionsPanelController = ReturnType<typeof createRevisionsPanel>;
@@ -8,6 +8,10 @@ export interface ReviewingPaneProps {
8
8
  onAcceptAll: () => void;
9
9
  onRejectAll: () => void;
10
10
  onClose: () => void;
11
+ /** Scroll offset restored into the revision list once it can scroll. */
12
+ scrollTop?: number;
13
+ /** Reports the revision list's scroll offset so the host can persist it. */
14
+ onScroll?: (scrollTop: number) => void;
11
15
  }
12
16
  /**
13
17
  * Reviewing Pane: a right-side drawer listing every tracked change with
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oasis-editor",
3
- "version": "0.0.369",
3
+ "version": "0.0.371",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {