oasis-editor 0.0.368 → 0.0.369

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.
@@ -2,15 +2,16 @@ import { EditorState } from '../../core/model.js';
2
2
  import { RevisionMarkupBox } from '../editorUiTypes.js';
3
3
  import { CanvasLayoutSnapshot } from './CanvasLayoutSnapshot.js';
4
4
  /**
5
- * Project Word-style reviewer balloons into the right page margin. One card is
6
- * emitted per visible revision id (Show Markup category/reviewer filters are
5
+ * Project Word-style reviewer balloons into each page's right margin. One card
6
+ * is emitted per visible revision id (Show Markup category/reviewer filters are
7
7
  * honoured through `isRevisionMarkupShown`), anchored to the first painted line
8
- * of that revision's first paragraph. Cards are stacked vertically per page so
9
- * they never overlap, and each carries a short connector back toward the text.
8
+ * of that revision's first paragraph. Cards stack vertically per page so they
9
+ * never overlap.
10
10
  *
11
- * The right-margin x is derived per page from `page.left + page.width`, the same
12
- * way `computeChangeBars` derives its per-page left-margin x — the snapshot
13
- * intentionally exposes no `margins` field. This is presentational only, gated
14
- * by the caller to All Markup (Simple Markup paints change bars instead).
11
+ * The snapshot intentionally exposes no `margins` field, so the right margin is
12
+ * derived per page from the rightmost painted segment — the same "derive the
13
+ * margin from painted geometry" approach `computeChangeBars` uses on the left.
14
+ * Presentational only, and gated by the caller to All Markup (Simple Markup
15
+ * paints change bars instead).
15
16
  */
16
17
  export declare function computeRevisionBalloons(snapshot: CanvasLayoutSnapshot, state: EditorState): RevisionMarkupBox[];
@@ -10,7 +10,7 @@ export interface RevisionMarkupOverlayProps {
10
10
  * revisions (`variant === "cell"`) instead draw a full coloured cell outline,
11
11
  * section-level revisions (`variant === "section"`) a dashed per-page outline,
12
12
  * and `variant === "balloon"` a right-margin reviewer card (author, type and
13
- * snippet) with a connector back to the anchor text. Presentational only —
14
- * hit-testing and editing stay on the canvas underneath.
13
+ * snippet). Presentational only — hit-testing and editing stay on the canvas
14
+ * underneath.
15
15
  */
16
16
  export declare function RevisionMarkupOverlay(props: RevisionMarkupOverlayProps): JSX.Element;
@@ -74,10 +74,6 @@ export interface RevisionMarkupBox {
74
74
  author?: string;
75
75
  date?: number;
76
76
  snippet?: string;
77
- /** Connector line from the card back toward the anchor text. */
78
- connectorLeft?: number;
79
- connectorTop?: number;
80
- connectorWidth?: number;
81
77
  }
82
78
  /** One highlight rectangle over a commented text range, tagged with its id. */
83
79
  export interface CommentHighlightBox {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oasis-editor",
3
- "version": "0.0.368",
3
+ "version": "0.0.369",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {