oasis-editor 0.0.321 → 0.0.323
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/{OasisEditorApp-DvPNUkIU.js → OasisEditorApp-Dbi6wWe6.js} +1 -1
- package/dist/core/commands/reviewMarkup.d.ts +19 -0
- package/dist/defaultToolbar-CzkxV5ty.js +1 -0
- package/dist/oasis-editor.js +1 -1
- package/dist/oasis-editor.umd.cjs +1 -1
- package/dist/ui/canvas/CanvasChangeBarGeometry.d.ts +12 -8
- package/dist/ui/components/Toolbar/ToolbarOverflowManager.d.ts +4 -0
- package/package.json +1 -1
- package/dist/defaultToolbar-COMYxry_.js +0 -1
|
@@ -2,15 +2,19 @@ import { EditorState } from '../../core/model.js';
|
|
|
2
2
|
import { ChangeBarBox } from '../editorUiTypes.js';
|
|
3
3
|
import { CanvasLayoutSnapshot } from './CanvasLayoutSnapshot.js';
|
|
4
4
|
/**
|
|
5
|
-
* Project Simple Markup change bars into the margin. The snapshot is built
|
|
6
|
-
* the *projected* (final) layout, whose paragraphs keep the raw document's
|
|
7
|
-
* so we can match the raw revision-bearing paragraph ids against the
|
|
8
|
-
* line geometry.
|
|
9
|
-
*
|
|
10
|
-
*
|
|
5
|
+
* Project Simple Markup change bars into the page margin. The snapshot is built
|
|
6
|
+
* from the *projected* (final) layout, whose paragraphs keep the raw document's
|
|
7
|
+
* ids, so we can match the raw revision-bearing paragraph ids against the
|
|
8
|
+
* painted line geometry. Unlike the earlier paragraph-level bar, one thin bar
|
|
9
|
+
* is emitted per *changed line*: `collectChangeBarRanges` supplies the visible
|
|
10
|
+
* revision extents in final-text offsets, and only lines overlapping them are
|
|
11
|
+
* marked (table/row/cell/grid revisions cover every line of their paragraphs).
|
|
11
12
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
13
|
+
* The horizontal position is a per-page constant derived from the page's left
|
|
14
|
+
* edge and its rendered content boundary, so bars align in the page margin
|
|
15
|
+
* instead of following each paragraph's (or table cell's) own text edge. Show
|
|
16
|
+
* Markup filters live in `collectChangeBarRanges`, so hiding a category or
|
|
17
|
+
* reviewer removes the matching bars without touching data.
|
|
14
18
|
*/
|
|
15
19
|
export declare function computeChangeBars(snapshot: CanvasLayoutSnapshot, state: EditorState): ChangeBarBox[];
|
|
16
20
|
export type { ChangeBarBox };
|
|
@@ -6,6 +6,10 @@ import { JSX } from 'solid-js';
|
|
|
6
6
|
* Why imperative? Because moving real DOM nodes preserves SolidJS event
|
|
7
7
|
* listeners and internal component state (like open dropdowns) without
|
|
8
8
|
* triggering unmount/remount cycles.
|
|
9
|
+
*
|
|
10
|
+
* The wrappers are therefore never rendered through `<For>`: its reconciler
|
|
11
|
+
* assumes every row is still a child of the strip and throws `insertBefore`
|
|
12
|
+
* errors once one of them has moved to the overflow menu.
|
|
9
13
|
*/
|
|
10
14
|
export declare function ToolbarOverflowManager(props: {
|
|
11
15
|
children: JSX.Element;
|