oasis-editor 0.0.300 → 0.0.302
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-BykAjDJB.js +1 -0
- package/dist/app/controllers/EditorCommandsController.d.ts +1 -0
- package/dist/core/commands/builtinCommands.d.ts +1 -1
- package/dist/core/commands/history.d.ts +1 -0
- package/dist/core/commands/publicCommandTypes.d.ts +1 -0
- package/dist/core/model/editorState.d.ts +10 -0
- package/dist/core/model/index.d.ts +1 -1
- package/dist/defaultToolbar-DGzZXHk8.js +1 -0
- package/dist/i18n/locales/en.d.ts +4 -0
- package/dist/i18n/locales/pt-BR.d.ts +4 -0
- package/dist/oasis-editor.js +1 -1
- package/dist/oasis-editor.umd.cjs +1 -1
- package/dist/plugins/internal/essentialsCapabilities.d.ts +2 -0
- package/dist/ui/app/createAppCommandsController.d.ts +2 -0
- package/dist/ui/app/createEditorCommandRuntime.d.ts +1 -0
- package/dist/ui/app/useEditorUiOptions.d.ts +3 -0
- package/dist/ui/components/Toolbar/ReviewDisplayModeButton.d.ts +10 -0
- package/package.json +1 -1
- package/dist/OasisEditorApp-CVaNPPBl.js +0 -1
- package/dist/defaultToolbar-DupQ5MJY.js +0 -1
|
@@ -120,6 +120,8 @@ export interface EssentialsFormattingCapability {
|
|
|
120
120
|
toggleTrackChanges: () => boolean;
|
|
121
121
|
toggleRevisionMarkup: () => boolean;
|
|
122
122
|
toggleOutlinePanel: () => boolean;
|
|
123
|
+
reviewDisplayMode: () => string;
|
|
124
|
+
setReviewDisplayMode: (mode: string) => boolean;
|
|
123
125
|
/** Reactive document view/state flags for Ribbon toggle feedback. */
|
|
124
126
|
isTrackChangesEnabled: () => boolean;
|
|
125
127
|
areRevisionMarkupVisible: () => boolean;
|
|
@@ -68,6 +68,7 @@ declare function createAppCommandsControllerImpl(deps: AppCommandsControllerDeps
|
|
|
68
68
|
applyUpdateSectionSettingsCommand: (sectionIndex: number, settings: Partial<import('../../core/model.js').EditorSection>) => void;
|
|
69
69
|
applyToggleTrackChangesCommand: () => void;
|
|
70
70
|
applyToggleRevisionMarkupCommand: () => void;
|
|
71
|
+
applySetReviewDisplayModeCommand: (mode: import('../../core/model.js').EditorState["reviewDisplayMode"]) => void;
|
|
71
72
|
applyToggleShowMarginsCommand: () => void;
|
|
72
73
|
applyToggleShowParagraphMarksCommand: () => void;
|
|
73
74
|
applyAcceptRevisionsCommand: () => void;
|
|
@@ -123,6 +124,7 @@ declare function createAppCommandsControllerImpl(deps: AppCommandsControllerDeps
|
|
|
123
124
|
applyUpdateSectionSettingsCommand: (sectionIndex: number, settings: Partial<import('../../core/model.js').EditorSection>) => void;
|
|
124
125
|
applyToggleTrackChangesCommand: () => void;
|
|
125
126
|
applyToggleRevisionMarkupCommand: () => void;
|
|
127
|
+
applySetReviewDisplayModeCommand: (mode: import('../../core/model.js').EditorState["reviewDisplayMode"]) => void;
|
|
126
128
|
applyToggleShowMarginsCommand: () => void;
|
|
127
129
|
applyToggleShowParagraphMarksCommand: () => void;
|
|
128
130
|
applyAcceptRevisionsCommand: () => void;
|
|
@@ -117,6 +117,7 @@ declare function createEditorCommandRuntimeImpl(deps: EditorCommandRuntimeDeps):
|
|
|
117
117
|
applyUpdateSectionSettingsCommand: (sectionIndex: number, settings: Partial<import('../../core/model.js').EditorSection>) => void;
|
|
118
118
|
applyToggleTrackChangesCommand: () => void;
|
|
119
119
|
applyToggleRevisionMarkupCommand: () => void;
|
|
120
|
+
applySetReviewDisplayModeCommand: (mode: import('../../core/model.js').EditorState["reviewDisplayMode"]) => void;
|
|
120
121
|
applyToggleShowMarginsCommand: () => void;
|
|
121
122
|
applyToggleShowParagraphMarksCommand: () => void;
|
|
122
123
|
applyAcceptRevisionsCommand: () => void;
|
|
@@ -2,6 +2,7 @@ import { DocumentShell } from '../shells/DocumentShell.js';
|
|
|
2
2
|
import { InlineShell } from '../shells/InlineShell.js';
|
|
3
3
|
import { BalloonShell } from '../shells/BalloonShell.js';
|
|
4
4
|
import { OasisEditorAppDocumentProps, OasisEditorAppUiProps, OasisEditorLoadingOptions, ToolbarViewMode, ToolbarLayoutMode } from '../OasisEditorAppProps.js';
|
|
5
|
+
import { EditorState } from '../../core/model.js';
|
|
5
6
|
export interface EditorUiOptionsContext {
|
|
6
7
|
ui: () => OasisEditorAppUiProps;
|
|
7
8
|
documentOptions: () => OasisEditorAppDocumentProps;
|
|
@@ -9,6 +10,8 @@ export interface EditorUiOptionsContext {
|
|
|
9
10
|
updateUiState: (patch: {
|
|
10
11
|
showOutline: boolean;
|
|
11
12
|
}) => void;
|
|
13
|
+
/** Live state, needed for the Display-for-Review read-only gate. */
|
|
14
|
+
state: () => EditorState;
|
|
12
15
|
}
|
|
13
16
|
export interface EditorUiOptions {
|
|
14
17
|
showChrome: () => boolean;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ToolbarActionApi } from './schema/items.js';
|
|
2
|
+
import { JSX } from 'solid-js';
|
|
3
|
+
export interface ReviewDisplayModeButtonProps {
|
|
4
|
+
api: ToolbarActionApi;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Display for Review gallery (Word-style): a single trigger showing the
|
|
8
|
+
* current view, with All Markup / Final / Original items marked as radios.
|
|
9
|
+
*/
|
|
10
|
+
export declare function ReviewDisplayModeButton(props: ReviewDisplayModeButtonProps): JSX.Element;
|