oasis-editor 0.0.294 → 0.0.295
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-BBdjoUEK.js +1 -0
- package/dist/assets/{importDocxWorker-BQrQmIZn.js → importDocxWorker-Ci29uUzG.js} +349 -346
- package/dist/core/commands/builtinCommands.d.ts +1 -1
- package/dist/defaultToolbar-OXNGGOZ4.js +1 -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 +5 -0
- package/dist/plugins/internal/essentialsCommandGroups/launchers.d.ts +14 -0
- package/dist/ui/app/essentials/types.d.ts +4 -0
- package/dist/ui/components/Dialogs/Dialog.d.ts +2 -0
- package/package.json +1 -1
- package/dist/OasisEditorApp-mU16qfZr.js +0 -1
- package/dist/defaultToolbar-D4RNpKvl.js +0 -1
|
@@ -536,6 +536,10 @@ export interface EssentialsFieldsCapability {
|
|
|
536
536
|
bookmark: string;
|
|
537
537
|
}) => void;
|
|
538
538
|
}
|
|
539
|
+
export interface EssentialsDialogCapability {
|
|
540
|
+
openFontDialog: () => void;
|
|
541
|
+
openParagraphDialog: () => void;
|
|
542
|
+
}
|
|
539
543
|
export interface EssentialsDesignCapability {
|
|
540
544
|
applyTheme: (theme: DesignThemeId) => void;
|
|
541
545
|
setColorScheme: (value: string) => void;
|
|
@@ -699,4 +703,5 @@ export interface EssentialsPluginDeps {
|
|
|
699
703
|
design: EssentialsDesignCapability;
|
|
700
704
|
bookmark: EssentialsBookmarkCapability;
|
|
701
705
|
fields: EssentialsFieldsCapability;
|
|
706
|
+
dialog: EssentialsDialogCapability;
|
|
702
707
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { OasisPlugin } from '../../../core/plugin.js';
|
|
2
|
+
import { ActionCommandBuilder } from '../essentialsCommandBuilders.js';
|
|
3
|
+
import { EssentialsDialogCapability } from '../essentialsCapabilities.js';
|
|
4
|
+
interface LauncherGroupDeps {
|
|
5
|
+
dialog: EssentialsDialogCapability;
|
|
6
|
+
actionCommand: ActionCommandBuilder;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Ribbon group dialog launchers. Each command opens the same dialog as its
|
|
10
|
+
* context-menu/menubar counterpart, so the launcher is a real entry point
|
|
11
|
+
* rather than a decorative button.
|
|
12
|
+
*/
|
|
13
|
+
export declare function buildLauncherCommands({ dialog, actionCommand, }: LauncherGroupDeps): NonNullable<OasisPlugin["commands"]>;
|
|
14
|
+
export {};
|
|
@@ -40,6 +40,10 @@ export interface CreateEditorEssentialsPluginOptions {
|
|
|
40
40
|
openEquationDialog: () => void;
|
|
41
41
|
/** Opens the Table Properties dialog for the active table/cell. */
|
|
42
42
|
openTablePropertiesDialog: (activeTab?: "table" | "cell") => void;
|
|
43
|
+
/** Opens the Font dialog. */
|
|
44
|
+
openFontDialog: () => void;
|
|
45
|
+
/** Opens the Paragraph dialog. */
|
|
46
|
+
openParagraphDialog: () => void;
|
|
43
47
|
importInputRef: () => HTMLInputElement | undefined;
|
|
44
48
|
imageInputRef: () => HTMLInputElement | undefined;
|
|
45
49
|
selectedImageRun: () => SelectedImageRun | null;
|
|
@@ -12,5 +12,7 @@ export interface DialogProps {
|
|
|
12
12
|
ariaDescribedBy?: string;
|
|
13
13
|
size?: "sm" | "md" | "lg" | "font";
|
|
14
14
|
closeOnOverlayClick?: boolean;
|
|
15
|
+
/** Overrides the default `editor-dialog` test id on the dialog element. */
|
|
16
|
+
testId?: string;
|
|
15
17
|
}
|
|
16
18
|
export declare function Dialog(props: DialogProps): JSX.Element;
|