oasis-editor 0.0.230 → 0.0.231

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.
@@ -1,4 +1,4 @@
1
- import { EditorColumnsSettings, EditorDocumentDesign, EditorImageBorder, EditorPageBorder, EditorPageMargins, EditorPageNumbering, EditorPosition, EditorSectionBreakType, EditorWatermark, EditorMathExpression, EditorTabStop } from '../../core/model.js';
1
+ import { EditorColumnsSettings, EditorUnderlineStyle, EditorDocumentDesign, EditorImageBorder, EditorPageBorder, EditorPageMargins, EditorPageNumbering, EditorPosition, EditorSectionBreakType, EditorWatermark, EditorMathExpression, EditorTabStop } from '../../core/model.js';
2
2
  import { SectionPageNumberFormat } from '../../core/commands/pageNumber.js';
3
3
  import { CrossReferenceType } from '../../core/commands/crossReference.js';
4
4
  import { DesignThemeId } from '../../core/commands/design.js';
@@ -151,6 +151,7 @@ export interface EssentialsFormattingCapability {
151
151
  setStyleId: (value: string) => boolean;
152
152
  setCharacterStyleId: (value: string) => boolean;
153
153
  setUnderlineStyle: (value: string | null) => void;
154
+ applyUnderlineStyle: (value: EditorUnderlineStyle | null) => void;
154
155
  setUnderlineColor: (value: string | null) => boolean;
155
156
  setCharacterScale: (value: number | null) => boolean;
156
157
  setCharacterSpacing: (value: number | null) => boolean;
@@ -44,6 +44,7 @@ declare function createAppCommandsControllerImpl(deps: AppCommandsControllerDeps
44
44
  applyBooleanStyleCommand: (key: BooleanStyleKey) => void;
45
45
  applyToggleCharacterBorderCommand: () => void;
46
46
  applyValueStyleCommand: <K extends "styleId" | "fontFamily" | "fontSize" | "color" | "highlight" | "shading" | "language" | "textEffect" | "link" | "underlineStyle">(key: K, value: import('../../core/model.js').EditorTextStyle[K] | null) => void;
47
+ applyUnderlineStyleCommand: (style: import('../../core/model.js').EditorUnderlineStyle | null) => void;
47
48
  applyChangeTextCaseCommand: (mode: import('../../core/commands/textCase').TextCaseMode) => void;
48
49
  applyClearFormattingCommand: () => void;
49
50
  applyParagraphStyleCommand: <K extends import('../toolbarStyleState.js').ParagraphStyleKey>(key: K, value: import('../../core/model.js').EditorParagraphStyle[K] | null) => void;
@@ -93,6 +94,7 @@ declare function createAppCommandsControllerImpl(deps: AppCommandsControllerDeps
93
94
  applyBooleanStyleCommand: (style: BooleanStyleKey) => void;
94
95
  applyToggleCharacterBorderCommand: () => void;
95
96
  applyValueStyleCommand: <K extends "styleId" | "fontFamily" | "fontSize" | "color" | "highlight" | "shading" | "language" | "textEffect" | "link" | "underlineStyle">(key: K, value: import('../../core/model.js').EditorTextStyle[K] | null) => void;
97
+ applyUnderlineStyleCommand: (style: import('../../core/model.js').EditorUnderlineStyle | null) => void;
96
98
  applyChangeTextCaseCommand: (mode: import('../../core/commands/textCase').TextCaseMode) => void;
97
99
  applyClearFormattingCommand: () => void;
98
100
  applyParagraphStyleCommand: <K extends import('../toolbarStyleState.js').ParagraphStyleKey>(key: K, value: import('../../core/model.js').EditorParagraphStyle[K] | null) => void;
@@ -84,6 +84,7 @@ declare function createEditorCommandRuntimeImpl(deps: EditorCommandRuntimeDeps):
84
84
  applyBooleanStyleCommand: (key: BooleanStyleKey) => void;
85
85
  applyToggleCharacterBorderCommand: () => void;
86
86
  applyValueStyleCommand: <K extends "styleId" | "fontFamily" | "fontSize" | "color" | "highlight" | "shading" | "language" | "textEffect" | "link" | "underlineStyle">(key: K, value: import('../../core/model.js').EditorTextStyle[K] | null) => void;
87
+ applyUnderlineStyleCommand: (style: import('../../core/model.js').EditorUnderlineStyle | null) => void;
87
88
  applyChangeTextCaseCommand: (mode: import('../../core/commands/textCase.js').TextCaseMode) => void;
88
89
  applyClearFormattingCommand: () => void;
89
90
  applyParagraphStyleCommand: <K extends import('../toolbarStyleState.js').ParagraphStyleKey>(key: K, value: import('../../core/model.js').EditorParagraphStyle[K] | null) => void;
@@ -144,6 +144,7 @@ declare function createEditorInteractionRuntimeImpl(deps: EditorInteractionRunti
144
144
  clearPendingCaretTextStyle: () => void;
145
145
  toolbarStyleState: () => import('../toolbarStyleState.js').ToolbarStyleState;
146
146
  applyToolbarValueStyleCommand: <K extends "link" | "styleId" | "underlineStyle" | "textEffect" | "fontFamily" | "fontSize" | "color" | "highlight" | "shading" | "language">(key: K, value: import('../../core/model.js').EditorTextStyle[K] | null) => void;
147
+ applyToolbarUnderlineStyleCommand: (style: import('../../core/model.js').EditorUnderlineStyle | null) => void;
147
148
  applyToolbarBooleanStyleCommand: (key: import('../toolbarStyleState.js').BooleanStyleKey) => void;
148
149
  };
149
150
  formatPainter: {
@@ -2,7 +2,7 @@ import { JSX } from 'solid-js';
2
2
  import { ToolbarActionApi } from '../schema/items.js';
3
3
  /**
4
4
  * Underline split-button control — toggle plus a style picker, dispatching only
5
- * through the `underline` and `setUnderlineStyle` commands.
5
+ * through the atomic `applyUnderlineStyle` command.
6
6
  */
7
7
  export declare function UnderlineControl(props: {
8
8
  api: ToolbarActionApi;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oasis-editor",
3
- "version": "0.0.230",
3
+ "version": "0.0.231",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {
@@ -76,7 +76,8 @@
76
76
  "test:ribbon:resize": "node scripts/verify-ribbon-resize.mjs",
77
77
  "test:ribbon:ci": "node scripts/verify-ribbon-ci.mjs",
78
78
  "test:ribbon:contexts": "node scripts/verify-ribbon-contexts.mjs",
79
- "test:ribbon:icons": "node scripts/verify-ribbon-icons.mjs"
79
+ "test:ribbon:icons": "node scripts/verify-ribbon-icons.mjs",
80
+ "test:ribbon:editing": "node scripts/verify-ribbon-editing.mjs"
80
81
  },
81
82
  "devDependencies": {
82
83
  "@eslint/js": "^10.0.1",