oasis-editor 0.0.41 → 0.0.42
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-C9aMLBum.js → OasisEditorApp-Cx-3bgIC.js} +250 -237
- package/dist/{index-CEIWNJ4A.js → index-CTh8mekn.js} +70 -70
- package/dist/oasis-editor.js +14 -14
- package/dist/oasis-editor.umd.cjs +4 -4
- package/dist/ui/app/createEditorLayoutOptionsController.d.ts +18 -0
- package/package.json +1 -1
|
@@ -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;
|