oasis-editor 0.0.295 → 0.0.297
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-uHajArDk.js +1 -0
- package/dist/core/commands/builtinCommands.d.ts +1 -1
- package/dist/core/commands/publicCommandTypes.d.ts +2 -0
- package/dist/defaultToolbar-CSfRhZt1.js +1 -0
- package/dist/i18n/locales/en.d.ts +6 -0
- package/dist/i18n/locales/pt-BR.d.ts +6 -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/plugins/internal/essentialsCommandGroups/coreFormatting.d.ts +3 -2
- package/dist/ui/app/EditorDialogsLayer.d.ts +1 -0
- package/dist/ui/app/createEditorCommandRuntime.d.ts +5 -0
- package/dist/ui/app/essentials/types.d.ts +4 -0
- package/dist/ui/app/useEditorDialogs.d.ts +7 -0
- package/dist/ui/components/Dialogs/RevisionBulkDialog.d.ts +14 -0
- package/package.json +1 -1
- package/dist/OasisEditorApp-BBdjoUEK.js +0 -1
- package/dist/defaultToolbar-OXNGGOZ4.js +0 -1
|
@@ -539,6 +539,8 @@ export interface EssentialsFieldsCapability {
|
|
|
539
539
|
export interface EssentialsDialogCapability {
|
|
540
540
|
openFontDialog: () => void;
|
|
541
541
|
openParagraphDialog: () => void;
|
|
542
|
+
requestAcceptAllRevisions: () => void;
|
|
543
|
+
requestRejectAllRevisions: () => void;
|
|
542
544
|
}
|
|
543
545
|
export interface EssentialsDesignCapability {
|
|
544
546
|
applyTheme: (theme: DesignThemeId) => void;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { OasisPlugin } from '../../../core/plugin.js';
|
|
2
2
|
import { ActionCommandBuilder, CommandBuilder, ValueCommandBuilder } from '../essentialsCommandBuilders.js';
|
|
3
|
-
import { EssentialsFeatureGate, EssentialsFormattingCapability, EssentialsHistoryCapability, EssentialsLinkCapability, EssentialsSelectionCapability, EssentialsStyleCapability } from '../essentialsCapabilities.js';
|
|
3
|
+
import { EssentialsDialogCapability, EssentialsFeatureGate, EssentialsFormattingCapability, EssentialsHistoryCapability, EssentialsLinkCapability, EssentialsSelectionCapability, EssentialsStyleCapability } from '../essentialsCapabilities.js';
|
|
4
4
|
interface CoreFormattingGroupDeps {
|
|
5
5
|
gate: EssentialsFeatureGate;
|
|
6
6
|
style: EssentialsStyleCapability;
|
|
7
7
|
selection: EssentialsSelectionCapability;
|
|
8
8
|
history: EssentialsHistoryCapability;
|
|
9
9
|
formatting: EssentialsFormattingCapability;
|
|
10
|
+
dialog: EssentialsDialogCapability;
|
|
10
11
|
link: EssentialsLinkCapability;
|
|
11
12
|
command: CommandBuilder;
|
|
12
13
|
valueCommand: ValueCommandBuilder;
|
|
13
14
|
actionCommand: ActionCommandBuilder;
|
|
14
15
|
}
|
|
15
|
-
export declare function buildCoreFormattingCommands({ gate, style, selection, history, formatting, link, command, valueCommand, actionCommand, }: CoreFormattingGroupDeps): NonNullable<OasisPlugin["commands"]>;
|
|
16
|
+
export declare function buildCoreFormattingCommands({ gate, style, selection, history, formatting, dialog, link, command, valueCommand, actionCommand, }: CoreFormattingGroupDeps): NonNullable<OasisPlugin["commands"]>;
|
|
16
17
|
export {};
|
|
@@ -24,6 +24,7 @@ export interface EditorDialogsLayerProps {
|
|
|
24
24
|
setParagraphDialogDefault: NonNullable<ComponentProps<typeof ParagraphDialog>["onSetDefault"]>;
|
|
25
25
|
applyTablePropertiesDialogValues: ComponentProps<typeof TablePropertiesDialog>["onApply"];
|
|
26
26
|
confirmNewDocument: () => void;
|
|
27
|
+
applyBulkRevisions: (action: "accept" | "reject") => void;
|
|
27
28
|
insertSymbol: (symbol: string, fontFamily: string) => void;
|
|
28
29
|
applyEquation: (expression: EditorMathExpression, targetRunId?: string) => void;
|
|
29
30
|
closeContextMenu: () => void;
|
|
@@ -72,6 +72,11 @@ export interface EditorCommandRuntimeDeps {
|
|
|
72
72
|
isOpen: boolean;
|
|
73
73
|
initial: import('../components/Dialogs/ParagraphDialog.js').ParagraphDialogInitialValues;
|
|
74
74
|
}) => void;
|
|
75
|
+
setRevisionBulkDialog: (state: {
|
|
76
|
+
isOpen: boolean;
|
|
77
|
+
action: "accept" | "reject";
|
|
78
|
+
count: number;
|
|
79
|
+
}) => void;
|
|
75
80
|
getUiState: () => OasisEditorUiState;
|
|
76
81
|
updateUiState: (patch: OasisEditorUiState) => OasisEditorUiState;
|
|
77
82
|
zoom: {
|
|
@@ -44,6 +44,10 @@ export interface CreateEditorEssentialsPluginOptions {
|
|
|
44
44
|
openFontDialog: () => void;
|
|
45
45
|
/** Opens the Paragraph dialog. */
|
|
46
46
|
openParagraphDialog: () => void;
|
|
47
|
+
/** Opens the Accept All confirmation dialog. */
|
|
48
|
+
requestAcceptAllRevisions: () => void;
|
|
49
|
+
/** Opens the Reject All confirmation dialog. */
|
|
50
|
+
requestRejectAllRevisions: () => void;
|
|
47
51
|
importInputRef: () => HTMLInputElement | undefined;
|
|
48
52
|
imageInputRef: () => HTMLInputElement | undefined;
|
|
49
53
|
selectedImageRun: () => SelectedImageRun | null;
|
|
@@ -84,5 +84,12 @@ export interface EditorDialogsState {
|
|
|
84
84
|
isOpen: boolean;
|
|
85
85
|
initial: TablePropertiesDialogInitialValues;
|
|
86
86
|
}>;
|
|
87
|
+
revisionBulkDialog: Accessor<RevisionBulkDialogState>;
|
|
88
|
+
setRevisionBulkDialog: Setter<RevisionBulkDialogState>;
|
|
89
|
+
}
|
|
90
|
+
export interface RevisionBulkDialogState {
|
|
91
|
+
isOpen: boolean;
|
|
92
|
+
action: "accept" | "reject";
|
|
93
|
+
count: number;
|
|
87
94
|
}
|
|
88
95
|
export declare function createEditorDialogs(): EditorDialogsState;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
|
+
export interface RevisionBulkDialogProps {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
action: "accept" | "reject";
|
|
5
|
+
count: number;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
onConfirm: () => void;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Confirmation gate for the document-scoped Accept All / Reject All actions.
|
|
11
|
+
* Word asks before applying a bulk decision, and the count makes the scope
|
|
12
|
+
* explicit so it cannot be confused with the selection-scoped Accept/Reject.
|
|
13
|
+
*/
|
|
14
|
+
export declare function RevisionBulkDialog(props: RevisionBulkDialogProps): JSX.Element;
|