oasis-editor 0.0.302 → 0.0.304
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 → OasisEditorApp-DdMfyjk2.js} +1 -1
- package/dist/core/commands/builtinCommands.d.ts +1 -1
- package/dist/core/commands/publicCommandTypes.d.ts +1 -0
- package/dist/core/commands/reviewNavigation.d.ts +2 -0
- package/dist/defaultToolbar-xm7peA2q.js +1 -0
- package/dist/i18n/locales/en.d.ts +8 -0
- package/dist/i18n/locales/pt-BR.d.ts +8 -0
- package/dist/oasis-editor.css +1 -1
- 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/createEditorCommandRuntime.d.ts +2 -0
- package/dist/ui/app/createRevisionsPanel.d.ts +10 -0
- package/dist/ui/app/essentials/types.d.ts +4 -0
- package/dist/ui/components/ReviewingPane.d.ts +18 -0
- package/package.json +1 -1
- package/dist/defaultToolbar-DGzZXHk8.js +0 -1
|
@@ -120,6 +120,8 @@ export interface EssentialsFormattingCapability {
|
|
|
120
120
|
toggleTrackChanges: () => boolean;
|
|
121
121
|
toggleRevisionMarkup: () => boolean;
|
|
122
122
|
toggleOutlinePanel: () => boolean;
|
|
123
|
+
toggleRevisionsPanel: () => boolean;
|
|
124
|
+
areRevisionsPanelVisible: () => boolean;
|
|
123
125
|
reviewDisplayMode: () => string;
|
|
124
126
|
setReviewDisplayMode: (mode: string) => boolean;
|
|
125
127
|
/** Reactive document view/state flags for Ribbon toggle feedback. */
|
|
@@ -79,6 +79,8 @@ export interface EditorCommandRuntimeDeps {
|
|
|
79
79
|
}) => void;
|
|
80
80
|
toggleOutline: () => void;
|
|
81
81
|
isOutlineVisible: () => boolean;
|
|
82
|
+
toggleRevisionsPanel: () => void;
|
|
83
|
+
revisionsPanelVisible: () => boolean;
|
|
82
84
|
getUiState: () => OasisEditorUiState;
|
|
83
85
|
updateUiState: (patch: OasisEditorUiState) => OasisEditorUiState;
|
|
84
86
|
zoom: {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Reviewing Pane's open state. Kept separate from comment-panel state so
|
|
3
|
+
* the two drawers are independent, mirroring Word's distinct panes.
|
|
4
|
+
*/
|
|
5
|
+
export declare function createRevisionsPanel(): {
|
|
6
|
+
open: () => boolean;
|
|
7
|
+
toggle: () => boolean;
|
|
8
|
+
close: () => void;
|
|
9
|
+
};
|
|
10
|
+
export type RevisionsPanelController = ReturnType<typeof createRevisionsPanel>;
|
|
@@ -52,6 +52,10 @@ export interface CreateEditorEssentialsPluginOptions {
|
|
|
52
52
|
toggleOutlinePanel: () => void;
|
|
53
53
|
/** Reactive read of the outline panel's current visibility. */
|
|
54
54
|
isOutlineVisible: () => boolean;
|
|
55
|
+
/** Toggles the Reviewing Pane without touching document state. */
|
|
56
|
+
toggleRevisionsPanel: () => void;
|
|
57
|
+
/** Reactive read of the Reviewing Pane's current visibility. */
|
|
58
|
+
revisionsPanelVisible: () => boolean;
|
|
55
59
|
importInputRef: () => HTMLInputElement | undefined;
|
|
56
60
|
imageInputRef: () => HTMLInputElement | undefined;
|
|
57
61
|
selectedImageRun: () => SelectedImageRun | null;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Accessor, JSX } from 'solid-js';
|
|
2
|
+
import { EditorState } from '../../core/model.js';
|
|
3
|
+
export interface ReviewingPaneProps {
|
|
4
|
+
state: Accessor<EditorState>;
|
|
5
|
+
onNavigate: (id: string) => void;
|
|
6
|
+
onAccept: (id: string) => void;
|
|
7
|
+
onReject: (id: string) => void;
|
|
8
|
+
onAcceptAll: () => void;
|
|
9
|
+
onRejectAll: () => void;
|
|
10
|
+
onClose: () => void;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Reviewing Pane: a right-side drawer listing every tracked change with
|
|
14
|
+
* author, date and text, and one-click Accept / Reject per change plus
|
|
15
|
+
* Accept All / Reject All at the footer. Mirrors Word's Reviewing Pane in
|
|
16
|
+
* scope; Accept All / Reject All open the existing confirmation dialog.
|
|
17
|
+
*/
|
|
18
|
+
export declare function ReviewingPane(props: ReviewingPaneProps): JSX.Element;
|