oasis-editor 0.0.41 → 0.0.43

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.
@@ -0,0 +1,18 @@
1
+ import { EditorState } from '../../core/model.js';
2
+ import { LayoutOptionsOverlay } from '../editorUiTypes.js';
3
+
4
+ export interface EditorLayoutOptionsControllerDeps {
5
+ state: () => EditorState;
6
+ resetTransactionGrouping: () => void;
7
+ applyTransactionalState: (transform: (current: EditorState) => EditorState, options?: {
8
+ mergeKey?: string;
9
+ }) => void;
10
+ focusInput: () => void;
11
+ }
12
+ /**
13
+ * Builds the Layout Options overlay controller (Word-style text-wrapping popup
14
+ * for the selected image / text box). Extracted from `OasisEditorApp` so the
15
+ * composition root does not carry per-feature operation logic (S1). See
16
+ * [[layout-options-feature]].
17
+ */
18
+ export declare function createEditorLayoutOptionsController(deps: EditorLayoutOptionsControllerDeps): LayoutOptionsOverlay;
@@ -1,4 +1,5 @@
1
1
  import { EditorPageSettings } from '../../../core/model.js';
2
+ import { PX_PER_INCH, PX_PER_CM } from '../../../core/units.js';
2
3
 
3
4
  /**
4
5
  * Horizontal ruler geometry. The editor stores page dimensions, margins and
@@ -6,8 +7,7 @@ import { EditorPageSettings } from '../../../core/model.js';
6
7
  * pixels too — no point/twip conversion is needed for positioning. Only the
7
8
  * tick labels convert pixels to inches/centimeters for display.
8
9
  */
9
- export declare const PX_PER_INCH = 96;
10
- export declare const PX_PER_CM: number;
10
+ export { PX_PER_INCH, PX_PER_CM };
11
11
  /** Minimum content width (px) the editor guarantees; mirrors getPageContentWidth. */
12
12
  export declare const MIN_CONTENT_WIDTH_PX = 24;
13
13
  export interface RulerIndents {
@@ -1,4 +1,3 @@
1
1
  /** 11pt expressed in CSS pixels (11 * 96 / 72). */
2
2
  export declare const DEFAULT_FONT_SIZE = 14.6667;
3
- /** CSS pixels per typographic point. */
4
- export declare const PX_PER_POINT: number;
3
+ export { PX_PER_POINT } from '../../core/units.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oasis-editor",
3
- "version": "0.0.41",
3
+ "version": "0.0.43",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",