@siliconoid/xssml-editor 1.0.3 → 1.0.5

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/index.d.ts CHANGED
@@ -304,7 +304,7 @@ interface EditorConfig$1 {
304
304
  editable?: boolean;
305
305
  /** 浮动菜单配置 (半封装模式) */
306
306
  floatingMenu?: {
307
- onRender: (mountPoint: HTMLElement, state: any) => void;
307
+ onRender: (mountPoint: HTMLElement, state: FloatingMenuState) => void;
308
308
  shouldShow?: (
309
309
  view: any,
310
310
  state: { isMouseDown: boolean; isContextMenuOpen: boolean },
@@ -312,7 +312,7 @@ interface EditorConfig$1 {
312
312
  };
313
313
  /** 右键菜单配置 (半封装模式) */
314
314
  contextMenu?: {
315
- onRender: (mountPoint: HTMLElement, state: any) => void;
315
+ onRender: (mountPoint: HTMLElement, state: ContextMenuState) => void;
316
316
  };
317
317
  }
318
318
 
@@ -613,7 +613,7 @@ declare class Editor extends EventEmitter<EditorEventMap> {
613
613
  destroy(): void;
614
614
  }
615
615
 
616
- interface ContextMenuState {
616
+ interface ContextMenuState$1 {
617
617
  isActive: boolean;
618
618
  event: MouseEvent;
619
619
  pos: number;
@@ -635,13 +635,13 @@ interface ContextMenuState {
635
635
  target: HTMLElement;
636
636
  }
637
637
  interface ContextMenuOptions {
638
- onRender?: (mountPoint: HTMLElement, state: ContextMenuState) => void;
638
+ onRender?: (mountPoint: HTMLElement, state: ContextMenuState$1) => void;
639
639
  }
640
640
  declare class ContextMenuPlugin extends Plugin {
641
641
  constructor(editor: Editor, options: ContextMenuOptions);
642
642
  }
643
643
 
644
- interface FloatingMenuState {
644
+ interface FloatingMenuState$1 {
645
645
  isActive: boolean;
646
646
  rect: DOMRect | null;
647
647
  from: number;
@@ -663,7 +663,7 @@ interface FloatingMenuOptions {
663
663
  /**
664
664
  * 渲染回调
665
665
  */
666
- onRender?: (mountPoint: HTMLElement, state: FloatingMenuState) => void;
666
+ onRender?: (mountPoint: HTMLElement, state: FloatingMenuState$1) => void;
667
667
  }
668
668
  declare class FloatingMenuPlugin extends Plugin {
669
669
  constructor(editor: Editor, options: FloatingMenuOptions);
@@ -860,4 +860,4 @@ declare class TextExtractor {
860
860
  }
861
861
 
862
862
  export { ActionCommands, BreakCommands, BreathCommands, CmdCommands, CommandErrorCode, ContentReadMode, ContextMenuPlugin, DataCommands, DataPlaceholderReg, EditorEvent, FloatingMenuPlugin, HighlightCommands, HistoryCommands, LogLevel, Editor as MarkEditor, MarkTagType, NumberTipCommands, PhonemeCommands, PptCommands, SayAsCommands, SayAsInterpretType, SoundEventCommands, SpeechLanguageCommands, SpeechPitchCommands, SpeechRateCommands, SpeechVolumeCommands, TextExtractor, TextInputCommands, TextMediaCommands, WaitCommands, WordCommands, WordmarkCommands, logger, registerCommand, registry };
863
- export type { ActionAttrs, BreakAttrs, ClickedTextMediaAttrs, CommandResult$1 as CommandResult, CommandState, ContentMark, ContextMenuEvent, ContextMenuState, CustomNodeType, EditorConfig, EditorContent, EditorEventMap, EditorStateChangeEvent, ErrorEvent, FloatingMenuState, FocusEvent, IMarkEditor, NodePosition, NodePosotionType, ParagraphInfo, ParagraphizedResult, PlaybackSegment, PreProcess, ProseMirrorDoc, ProseMirrorNode, ProsodyAttrs, SayAsAttrs, SelectionChangeEvent, SelectionRange, Sentence, SoundEventAttrs, Task, TextCustomEvent, WaitAttrs, WordCountEvent };
863
+ export type { ActionAttrs, BreakAttrs, ClickedTextMediaAttrs, CommandResult$1 as CommandResult, CommandState, ContentMark, ContextMenuEvent, ContextMenuState$1 as ContextMenuState, CustomNodeType, EditorConfig, EditorContent, EditorEventMap, EditorStateChangeEvent, ErrorEvent, FloatingMenuState$1 as FloatingMenuState, FocusEvent, IMarkEditor, NodePosition, NodePosotionType, ParagraphInfo, ParagraphizedResult, PlaybackSegment, PreProcess, ProseMirrorDoc, ProseMirrorNode, ProsodyAttrs, SayAsAttrs, SelectionChangeEvent, SelectionRange, Sentence, SoundEventAttrs, Task, TextCustomEvent, WaitAttrs, WordCountEvent };