ssml-builder-js 2.1.0 → 2.2.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/README.md +77 -8
- package/dist/chunk-2XJER2BG.mjs +3486 -0
- package/dist/chunk-2XJER2BG.mjs.map +1 -0
- package/dist/elements.d.mts +72 -0
- package/dist/elements.d.ts +72 -0
- package/dist/elements.js +4577 -0
- package/dist/elements.js.map +1 -0
- package/dist/elements.mjs +1234 -0
- package/dist/elements.mjs.map +1 -0
- package/dist/react.d.mts +5 -0
- package/dist/react.d.ts +5 -0
- package/dist/react.js +558 -236
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +212 -3288
- package/dist/react.mjs.map +1 -1
- package/package.json +11 -2
|
@@ -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 };
|