@naersen/tts-rich-text 0.10.4 → 0.12.0

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,5 +1,6 @@
1
1
  import { Editor, JSONContent } from '@tiptap/core';
2
2
  import { CustomTagType } from '../core/config';
3
+ import { SentenceSplitOptions } from '../core';
3
4
  export type VoiceVersion = 1 | 2 | 3;
4
5
  export type TtsToolType = CustomTagType | 'number' | 'formula' | 'aiRewrite' | 'upload';
5
6
  export type NotificationType = 'success' | 'info' | 'warning' | 'error';
@@ -21,6 +22,9 @@ export interface ResolvedTtsEditorFeatures {
21
22
  maxNumberLength: number;
22
23
  enablePreview: boolean;
23
24
  }
25
+ export interface TtsEditorOptions {
26
+ sentenceSplit?: SentenceSplitOptions;
27
+ }
24
28
  export interface TtsServiceContext {
25
29
  signal: AbortSignal;
26
30
  onChunk: (chunk: string) => void;
@@ -68,6 +72,7 @@ export interface TtsRichTextEditorProps {
68
72
  placeholder?: string;
69
73
  disabled?: boolean;
70
74
  features?: TtsEditorFeatures;
75
+ options?: TtsEditorOptions;
71
76
  services?: TtsRichTextServices;
72
77
  getPreviewParams?: () => Record<string, unknown>;
73
78
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naersen/tts-rich-text",
3
- "version": "0.10.4",
3
+ "version": "0.12.0",
4
4
  "description": "Reusable Vue 3 rich-text editor for TTS workflows",
5
5
  "type": "module",
6
6
  "files": [