oasis-editor 0.0.293 → 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.
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oasis-editor",
3
- "version": "0.0.293",
3
+ "version": "0.0.295",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {