oasis-editor 0.0.229 → 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;
@@ -1,3 +1,5 @@
1
+ /** Create a node that a reactive renderer can own without replacing its DOM. */
2
+ export declare function createLucideSvg(name: string, attributes?: Record<string, string>): SVGElement | undefined;
1
3
  /** Resolve placeholders once. Existing SVGs retain their identity on DOM changes. */
2
4
  export declare function startIconObserver(root?: HTMLElement): void;
3
5
  /** Editors sharing an observer release their own subscription only. */
@@ -40,10 +40,7 @@ export declare const CheckIcon: (props: {
40
40
  size?: number;
41
41
  }) => JSX.Element;
42
42
  export declare function getCustomIcon(name?: string): CustomIconRenderer | undefined;
43
- /**
44
- * Renders an icon by name: a registered custom inline SVG when available,
45
- * otherwise a lucide `<i data-lucide>` placeholder resolved by the icon observer.
46
- */
43
+ /** Custom vectors and Lucide nodes remain owned by Solid across name changes. */
47
44
  export declare function ToolIcon(props: {
48
45
  name: string;
49
46
  }): JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oasis-editor",
3
- "version": "0.0.229",
3
+ "version": "0.0.231",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {
@@ -74,7 +74,10 @@
74
74
  "capture:ribbon": "node scripts/capture-ribbon-reference.mjs",
75
75
  "test:ribbon:browser": "node scripts/verify-ribbon-reference.mjs",
76
76
  "test:ribbon:resize": "node scripts/verify-ribbon-resize.mjs",
77
- "test:ribbon:ci": "node scripts/verify-ribbon-ci.mjs"
77
+ "test:ribbon:ci": "node scripts/verify-ribbon-ci.mjs",
78
+ "test:ribbon:contexts": "node scripts/verify-ribbon-contexts.mjs",
79
+ "test:ribbon:icons": "node scripts/verify-ribbon-icons.mjs",
80
+ "test:ribbon:editing": "node scripts/verify-ribbon-editing.mjs"
78
81
  },
79
82
  "devDependencies": {
80
83
  "@eslint/js": "^10.0.1",