oasis-editor 0.0.320 → 0.0.322

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.
@@ -32,6 +32,11 @@ export interface OasisEditorAppUiProps {
32
32
  showOutline?: boolean;
33
33
  /** Horizontal ruler above the page (document shell). Defaults to `showChrome`. */
34
34
  showRuler?: boolean;
35
+ /**
36
+ * First-run welcome dialog (precise local fonts offer). Defaults to `true`;
37
+ * embedded hosts (e.g. a form field) can turn it off.
38
+ */
39
+ showWelcome?: boolean;
35
40
  locale?: "pt-BR" | "en";
36
41
  viewportHeight?: number | string;
37
42
  class?: string;
@@ -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 from
6
- * the *projected* (final) layout, whose paragraphs keep the raw document's ids,
7
- * so we can match the raw revision-bearing paragraph ids against the painted
8
- * line geometry. One bar per changed paragraph spans its first-to-last line;
9
- * Word marks by individual line, but paragraph granularity is the scoped
10
- * delivery here (structural/property revisions are not painted).
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
- * Show Markup filters live in `collectChangeBarParagraphIds`, so hiding a
13
- * category or reviewer removes the corresponding bar without touching data.
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oasis-editor",
3
- "version": "0.0.320",
3
+ "version": "0.0.322",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {