@ssml-builder-js/ssml-editor-elements 2.4.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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,45 @@
1
+ # @ssml-builder-js/ssml-editor-elements
2
+
3
+ ## 2.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Add SSML text-node translation helpers and Azure semantic validation, improve Azure TTS endpoint and logger handling, support React 18 peer dependencies, and complete independent package publishing metadata.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+ - @ssml-builder-js/ssml-core@2.4.0
13
+
14
+ ## 2.2.0
15
+
16
+ ### Minor Changes
17
+
18
+ - e124614: ---
19
+
20
+ "@ssml-builder-js/ssml-editor-elements": minor
21
+ "@ssml-builder-js/ssml-editor-react": minor
22
+ "@ssml-builder-js/ssml-core": minor
23
+ "@ssml-builder-js/azure-tts-client": minor
24
+ "playground": minor
25
+
26
+ ***
27
+
28
+ - **Web Components サポート (`@ssml-builder-js/ssml-editor-elements`) の追加**
29
+ - フレームワーク非依存で利用可能な `<ssml-editor>` カスタム要素(Custom Element)パッケージを新設。
30
+ - ルートパッケージからのエクスポート(`ssml-builder-js/elements`)および Playground での React / Web Components 切り替え動作環境を整備。
31
+ - **多言語音声モデル(Voice)ごとの感情スタイル動的フィルタリングの拡充**
32
+ - 日本語(`ja-JP`)、英語(`en-US`)、中国語(`zh-CN`)、韓国語、欧州言語等の Neural 音声モデルに対応する発話スタイル一覧を公式仕様に合わせて網羅。
33
+ - 感情非対応の音声モデルに対する disabled 表示・フォールバック処理を実装。
34
+ - **スタイル選択 UI の `<optgroup>` カテゴリ分類**
35
+ - `ProsodyPopovers` 内のスタイル選択肢を「感情・トーン(Emotions)」「会話・シナリオ(Scenarios)」「メディア・報道(Media)」にグループ化し、視認性と操作性を向上。
36
+ - **ツールバーのアクティブタグ状態表示 (Active State Feedback)**
37
+
38
+ - エディタ内のカーソル位置(キャレット)を囲む SSML タグをリアルタイムに検知し、対応するツールバーボタン(Prosody, Style 等)をハイライト表示する機能を追加。
39
+
40
+ - モノレポ各パッケージのビルド設定(tsup)および型定義エクスポート(dts)を最適化。
41
+
42
+ ### Patch Changes
43
+
44
+ - Updated dependencies [e124614]
45
+ - @ssml-builder-js/ssml-core@2.2.0
@@ -0,0 +1,72 @@
1
+ type SsmlEditorTheme = "vs-dark" | "light" | (string & {});
2
+ type SsmlEditorLocale = "ja" | "en";
3
+ interface SsmlEditorChangeDetail {
4
+ value: string;
5
+ }
6
+ declare const HTMLElementBase: typeof HTMLElement;
7
+ declare class SsmlEditorElement extends HTMLElementBase {
8
+ static readonly tagName = "ssml-editor";
9
+ static readonly observedAttributes: string[];
10
+ private editor;
11
+ private model;
12
+ private monaco;
13
+ private root;
14
+ private toolbar;
15
+ private toolbarActions;
16
+ private display;
17
+ private editorContainer;
18
+ private helpPanel;
19
+ private openMenu;
20
+ private openMenuTrigger;
21
+ private toolbarButtons;
22
+ private contentDisposable;
23
+ private cursorDisposable;
24
+ private completionDisposable;
25
+ private hoverDisposable;
26
+ private suppressChangeEvent;
27
+ private initializationToken;
28
+ private valueState;
29
+ private documentState;
30
+ private decorationsVisible;
31
+ private helpOpen;
32
+ get value(): string;
33
+ set value(value: string);
34
+ get theme(): SsmlEditorTheme;
35
+ set theme(theme: SsmlEditorTheme);
36
+ get readonly(): boolean;
37
+ set readonly(readonly: boolean);
38
+ get locale(): SsmlEditorLocale;
39
+ set locale(locale: SsmlEditorLocale);
40
+ private prepareDocument;
41
+ connectedCallback(): void;
42
+ disconnectedCallback(): void;
43
+ attributeChangedCallback(name: string, _oldValue: string | null, newValue: string | null): void;
44
+ private render;
45
+ private renderToolbar;
46
+ private createActionButton;
47
+ private createDecorationsSwitch;
48
+ private createInsertionButton;
49
+ private toggleInsertionMenu;
50
+ private createInsertionMenu;
51
+ private getInsertionOptions;
52
+ private getOptionGroups;
53
+ private createOptionButton;
54
+ private handleAction;
55
+ private applyInsertion;
56
+ private replaceEditorValue;
57
+ private replaceDocument;
58
+ private dispatchChange;
59
+ private updateDecorations;
60
+ private renderHelp;
61
+ private updateTheme;
62
+ private updateActiveButtons;
63
+ private initialize;
64
+ private readonly handleDocumentPointerDown;
65
+ private readonly handleDocumentKeyDown;
66
+ private closeMenu;
67
+ private disposeEditor;
68
+ }
69
+
70
+ declare function defineSsmlEditorElement(): void;
71
+
72
+ export { type SsmlEditorChangeDetail, SsmlEditorElement, type SsmlEditorLocale, type SsmlEditorTheme, defineSsmlEditorElement };
@@ -0,0 +1,72 @@
1
+ type SsmlEditorTheme = "vs-dark" | "light" | (string & {});
2
+ type SsmlEditorLocale = "ja" | "en";
3
+ interface SsmlEditorChangeDetail {
4
+ value: string;
5
+ }
6
+ declare const HTMLElementBase: typeof HTMLElement;
7
+ declare class SsmlEditorElement extends HTMLElementBase {
8
+ static readonly tagName = "ssml-editor";
9
+ static readonly observedAttributes: string[];
10
+ private editor;
11
+ private model;
12
+ private monaco;
13
+ private root;
14
+ private toolbar;
15
+ private toolbarActions;
16
+ private display;
17
+ private editorContainer;
18
+ private helpPanel;
19
+ private openMenu;
20
+ private openMenuTrigger;
21
+ private toolbarButtons;
22
+ private contentDisposable;
23
+ private cursorDisposable;
24
+ private completionDisposable;
25
+ private hoverDisposable;
26
+ private suppressChangeEvent;
27
+ private initializationToken;
28
+ private valueState;
29
+ private documentState;
30
+ private decorationsVisible;
31
+ private helpOpen;
32
+ get value(): string;
33
+ set value(value: string);
34
+ get theme(): SsmlEditorTheme;
35
+ set theme(theme: SsmlEditorTheme);
36
+ get readonly(): boolean;
37
+ set readonly(readonly: boolean);
38
+ get locale(): SsmlEditorLocale;
39
+ set locale(locale: SsmlEditorLocale);
40
+ private prepareDocument;
41
+ connectedCallback(): void;
42
+ disconnectedCallback(): void;
43
+ attributeChangedCallback(name: string, _oldValue: string | null, newValue: string | null): void;
44
+ private render;
45
+ private renderToolbar;
46
+ private createActionButton;
47
+ private createDecorationsSwitch;
48
+ private createInsertionButton;
49
+ private toggleInsertionMenu;
50
+ private createInsertionMenu;
51
+ private getInsertionOptions;
52
+ private getOptionGroups;
53
+ private createOptionButton;
54
+ private handleAction;
55
+ private applyInsertion;
56
+ private replaceEditorValue;
57
+ private replaceDocument;
58
+ private dispatchChange;
59
+ private updateDecorations;
60
+ private renderHelp;
61
+ private updateTheme;
62
+ private updateActiveButtons;
63
+ private initialize;
64
+ private readonly handleDocumentPointerDown;
65
+ private readonly handleDocumentKeyDown;
66
+ private closeMenu;
67
+ private disposeEditor;
68
+ }
69
+
70
+ declare function defineSsmlEditorElement(): void;
71
+
72
+ export { type SsmlEditorChangeDetail, SsmlEditorElement, type SsmlEditorLocale, type SsmlEditorTheme, defineSsmlEditorElement };