@speechos/client 0.2.0 → 0.2.1

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.
Files changed (40) hide show
  1. package/dist/form-detector.d.ts +1 -0
  2. package/dist/form-detector.d.ts.map +1 -0
  3. package/dist/form-detector.test.d.ts +5 -0
  4. package/dist/form-detector.test.d.ts.map +1 -0
  5. package/dist/index.cjs +2785 -314
  6. package/dist/index.cjs.map +1 -1
  7. package/dist/index.d.ts +1 -0
  8. package/dist/index.d.ts.map +1 -0
  9. package/dist/index.js +2756 -248
  10. package/dist/index.js.map +1 -1
  11. package/dist/speechos.d.ts +1 -0
  12. package/dist/speechos.d.ts.map +1 -0
  13. package/dist/ui/action-bubbles.d.ts +1 -0
  14. package/dist/ui/action-bubbles.d.ts.map +1 -0
  15. package/dist/ui/icons.d.ts +1 -0
  16. package/dist/ui/icons.d.ts.map +1 -0
  17. package/dist/ui/index.d.ts +1 -0
  18. package/dist/ui/index.d.ts.map +1 -0
  19. package/dist/ui/mic-button.d.ts +1 -0
  20. package/dist/ui/mic-button.d.ts.map +1 -0
  21. package/dist/ui/settings-button.d.ts +1 -0
  22. package/dist/ui/settings-button.d.ts.map +1 -0
  23. package/dist/ui/settings-modal.d.ts +1 -0
  24. package/dist/ui/settings-modal.d.ts.map +1 -0
  25. package/dist/ui/styles/theme.d.ts +1 -0
  26. package/dist/ui/styles/theme.d.ts.map +1 -0
  27. package/dist/ui/widget.d.ts +1 -0
  28. package/dist/ui/widget.d.ts.map +1 -0
  29. package/package.json +4 -6
  30. package/dist/form-detector.d.cts +0 -25
  31. package/dist/index.d.cts +0 -13
  32. package/dist/speechos.d.cts +0 -74
  33. package/dist/ui/action-bubbles.d.cts +0 -17
  34. package/dist/ui/icons.d.cts +0 -88
  35. package/dist/ui/index.d.cts +0 -20
  36. package/dist/ui/mic-button.d.cts +0 -34
  37. package/dist/ui/settings-button.d.cts +0 -16
  38. package/dist/ui/settings-modal.d.cts +0 -34
  39. package/dist/ui/styles/theme.d.cts +0 -17
  40. package/dist/ui/widget.d.cts +0 -64
@@ -14,3 +14,4 @@ declare global {
14
14
  "speechos-settings-button": SpeechOSSettingsButton;
15
15
  }
16
16
  }
17
+ //# sourceMappingURL=settings-button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings-button.d.ts","sourceRoot":"","sources":["../../src/ui/settings-button.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAa,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAKjE,qBACa,sBAAuB,SAAQ,UAAU;IACpD,MAAM,CAAC,MAAM,EAAE,cAAc,CA6C3B;IAGF,OAAO,UAAS;IAEhB,OAAO,CAAC,WAAW;IAYnB,MAAM,IAAI,OAAO,KAAK,EAAE,cAAc;CAYvC;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,0BAA0B,EAAE,sBAAsB,CAAC;KACpD;CACF"}
@@ -32,3 +32,4 @@ declare global {
32
32
  "speechos-settings-modal": SpeechOSSettingsModal;
33
33
  }
34
34
  }
35
+ //# sourceMappingURL=settings-modal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings-modal.d.ts","sourceRoot":"","sources":["../../src/ui/settings-modal.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAa,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AA4BjE,qBACa,qBAAsB,SAAQ,UAAU;IACnD,MAAM,CAAC,MAAM,EAAE,cAAc,CAyX3B;IAGF,IAAI,UAAS;IAGb,OAAO,CAAC,SAAS,CAAwB;IAGzC,OAAO,CAAC,WAAW,CAAyB;IAE5C,OAAO,CAAC,IAAI,CAKV;IAEF,iBAAiB,IAAI,IAAI;IAKzB,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAMtD,OAAO,CAAC,eAAe;IAIvB,OAAO,CAAC,kBAAkB;IAM1B,OAAO,CAAC,WAAW;IAInB,OAAO,CAAC,KAAK;IASb,OAAO,CAAC,cAAc;IAOtB,OAAO,CAAC,sBAAsB;IAK9B,OAAO,CAAC,cAAc;YAKR,oBAAoB;IA6BlC,OAAO,CAAC,UAAU;IAgBlB,OAAO,CAAC,oBAAoB;IAoD5B,OAAO,CAAC,aAAa;IA0BrB,OAAO,CAAC,cAAc;IAsBtB,OAAO,CAAC,iBAAiB;IASzB,OAAO,CAAC,gBAAgB;IAaxB,MAAM,IAAI,OAAO,KAAK,EAAE,cAAc;CAqCvC;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,yBAAyB,EAAE,qBAAqB,CAAC;KAClD;CACF"}
@@ -15,3 +15,4 @@ export declare const animations: CSSResult;
15
15
  * Utility styles for common patterns
16
16
  */
17
17
  export declare const utilityStyles: CSSResult;
18
+ //# sourceMappingURL=theme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/ui/styles/theme.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAO,KAAK,SAAS,EAAE,MAAM,KAAK,CAAC;AAE1C;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,SAwCzB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,SAuDxB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,SAoB3B,CAAC"}
@@ -62,3 +62,4 @@ declare global {
62
62
  "speechos-widget": SpeechOSWidget;
63
63
  }
64
64
  }
65
+ //# sourceMappingURL=widget.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"widget.d.ts","sourceRoot":"","sources":["../../src/ui/widget.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,UAAU,EAGV,KAAK,cAAc,EACnB,KAAK,cAAc,EACpB,MAAM,KAAK,CAAC;AAcb,OAAO,iBAAiB,CAAC;AACzB,OAAO,qBAAqB,CAAC;AAC7B,OAAO,sBAAsB,CAAC;AAC9B,OAAO,qBAAqB,CAAC;AAE7B,qBACa,cAAe,SAAQ,UAAU;IAC5C,MAAM,CAAC,MAAM,EAAE,cAAc,CAsD3B;IAGF,OAAO,CAAC,WAAW,CAAmC;IAGtD,OAAO,CAAC,YAAY,CAAS;IAE7B,OAAO,CAAC,gBAAgB,CAAC,CAAgB;IACzC,OAAO,CAAC,qBAAqB,CAAC,CAAgB;IAC9C,OAAO,CAAC,sBAAsB,CAA4B;IAC1D,OAAO,CAAC,iBAAiB,CAA4B;IACrD,OAAO,CAAC,oBAAoB,CAAuB;IACnD,OAAO,CAAC,kBAAkB,CAAuB;IACjD,OAAO,CAAC,kBAAkB,CAAuB;IACjD,OAAO,CAAC,gBAAgB,CAAuB;IAC/C,OAAO,CAAC,gBAAgB,CAAc;IACtC,OAAO,CAAC,wBAAwB,CAA8C;IAC9E,OAAO,CAAC,YAAY,CAA4B;IAChD,OAAO,CAAC,cAAc,CAAyC;IAC/D,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,YAAY,CAAyC;IAC7D,OAAO,CAAC,UAAU,CAAkB;IACpC,OAAO,CAAC,aAAa,CAA0C;IAC/D,OAAO,CAAC,YAAY,CAA6B;IACjD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAK;IAC3C,OAAO,CAAC,iBAAiB,CAAS;IAElC,iBAAiB,IAAI,IAAI;IA+BzB,oBAAoB,IAAI,IAAI;IA0B5B,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAMtD,OAAO,CAAC,kBAAkB;IAwB1B,OAAO,CAAC,WAAW;IAqBnB,OAAO,CAAC,cAAc;IAMtB,OAAO,CAAC,cAAc;YAcR,mBAAmB;YAyBnB,qBAAqB;YAgBrB,qBAAqB;IAUnC,OAAO,CAAC,iBAAiB;IAIzB,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,eAAe;IA+BvB,OAAO,CAAC,cAAc;IAqBtB,OAAO,CAAC,aAAa;IAgBrB,OAAO,CAAC,mBAAmB;IAQ3B,OAAO,CAAC,mBAAmB;IAyC3B,OAAO,CAAC,kBAAkB;YAcZ,kBAAkB;YAKlB,cAAc;YA8Bd,SAAS;YA4CT,cAAc;IAgB5B,OAAO,CAAC,iBAAiB;IAQzB,OAAO,CAAC,iBAAiB;IAyBzB,OAAO,CAAC,SAAS;IAkDjB,MAAM,IAAI,cAAc,GAAG,MAAM;CA4BlC;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,iBAAiB,EAAE,cAAc,CAAC;KACnC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@speechos/client",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Vanilla JS client SDK for embedding SpeechOS into web applications",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -16,7 +16,7 @@
16
16
  "files": [
17
17
  "dist"
18
18
  ],
19
- "sideEffects": false,
19
+ "sideEffects": true,
20
20
  "publishConfig": {
21
21
  "access": "public"
22
22
  },
@@ -30,10 +30,8 @@
30
30
  "url": "https://github.com/speechos-org/speechos/issues"
31
31
  },
32
32
  "scripts": {
33
- "build": "npm run build:ts && npm run build:iife",
34
- "build:ts": "tsdown",
35
- "build:iife": "rollup -c rollup.config.js",
36
- "dev": "tsdown --watch",
33
+ "build": "rollup -c rollup.config.js",
34
+ "dev": "rollup -c rollup.config.js --watch",
37
35
  "dev:iife": "rollup -c rollup.config.js --watch",
38
36
  "type-check": "tsc --noEmit",
39
37
  "test": "vitest run",
@@ -1,25 +0,0 @@
1
- /**
2
- * Form field focus detection for SpeechOS Client SDK
3
- * Detects when users focus on form fields and manages widget visibility
4
- */
5
- /**
6
- * Form detector class that manages focus tracking
7
- */
8
- export declare class FormDetector {
9
- private isActive;
10
- private focusHandler;
11
- private blurHandler;
12
- /**
13
- * Start detecting form field focus events
14
- */
15
- start(): void;
16
- /**
17
- * Stop detecting form field focus events
18
- */
19
- stop(): void;
20
- /**
21
- * Check if the detector is currently active
22
- */
23
- get active(): boolean;
24
- }
25
- export declare const formDetector: FormDetector;
package/dist/index.d.cts DELETED
@@ -1,13 +0,0 @@
1
- /**
2
- * @speechos/client
3
- *
4
- * Vanilla JS client SDK for embedding SpeechOS into web applications.
5
- * Includes Web Components UI and DOM-based form detection.
6
- */
7
- import { SpeechOS as SpeechOSClass } from "./speechos.js";
8
- export { events, state, getConfig, setConfig, resetConfig, livekit, transcriptStore, DEFAULT_HOST, } from "@speechos/core";
9
- export type { SpeechOSConfig, SpeechOSState, SpeechOSAction, SpeechOSEventMap, StateChangeCallback, UnsubscribeFn, RecordingState, TranscriptEntry, TranscriptAction, } from "@speechos/core";
10
- export { formDetector, FormDetector } from "./form-detector.js";
11
- export declare const VERSION = "0.1.0";
12
- export { SpeechOSClass as SpeechOS };
13
- export default SpeechOSClass;
@@ -1,74 +0,0 @@
1
- /**
2
- * Main SpeechOS Client SDK class
3
- * Composes core logic with UI components
4
- */
5
- import type { SpeechOSConfig, SpeechOSState } from "@speechos/core";
6
- import { SpeechOSEventEmitter } from "@speechos/core";
7
- import "./ui/index.js";
8
- /**
9
- * Main SpeechOS class for initializing and managing the SDK with UI
10
- */
11
- export declare class SpeechOS {
12
- private static instance;
13
- private static widgetElement;
14
- private static isInitialized;
15
- /**
16
- * Initialize the SpeechOS SDK
17
- * @param config - Configuration options
18
- * @returns Promise that resolves when initialization is complete
19
- * @throws Error if configuration is invalid (e.g., missing apiKey)
20
- */
21
- static init(config?: SpeechOSConfig): Promise<void>;
22
- /**
23
- * Destroy the SpeechOS SDK and clean up resources
24
- */
25
- static destroy(): Promise<void>;
26
- /**
27
- * Check if SpeechOS is initialized
28
- */
29
- static get initialized(): boolean;
30
- /**
31
- * Get the current state
32
- */
33
- static getState(): SpeechOSState;
34
- /**
35
- * Get the event emitter for external listeners
36
- */
37
- static get events(): SpeechOSEventEmitter;
38
- /**
39
- * Mount the widget to the DOM
40
- */
41
- private static mountWidget;
42
- /**
43
- * Unmount the widget from the DOM
44
- */
45
- private static unmountWidget;
46
- /**
47
- * Show the widget programmatically
48
- */
49
- static show(): void;
50
- /**
51
- * Hide the widget programmatically
52
- */
53
- static hide(): void;
54
- /**
55
- * Identify the current user
56
- * Can be called after init() to associate sessions with a user identifier.
57
- * Clears the cached token so the next voice session uses the new userId.
58
- *
59
- * @param userId - User identifier from your system (e.g., user ID, email)
60
- *
61
- * @example
62
- * // Initialize SDK early
63
- * SpeechOS.init({ apiKey: 'xxx' });
64
- *
65
- * // Later, after user logs in
66
- * SpeechOS.identify('user_123');
67
- */
68
- static identify(userId: string): void;
69
- /**
70
- * Private constructor to prevent direct instantiation
71
- */
72
- private constructor();
73
- }
74
- export default SpeechOS;
@@ -1,17 +0,0 @@
1
- /**
2
- * Action bubbles component
3
- * Displays available actions (Dictate, Edit) above the mic button
4
- */
5
- import { LitElement, type CSSResultGroup } from "lit";
6
- export declare class SpeechOSActionBubbles extends LitElement {
7
- static styles: CSSResultGroup;
8
- visible: boolean;
9
- private actions;
10
- private handleActionClick;
11
- render(): import("lit").TemplateResult | string;
12
- }
13
- declare global {
14
- interface HTMLElementTagNameMap {
15
- "speechos-action-bubbles": SpeechOSActionBubbles;
16
- }
17
- }
@@ -1,88 +0,0 @@
1
- /**
2
- * Icon imports and templates using inline SVG
3
- */
4
- import { type TemplateResult } from "lit";
5
- /**
6
- * Microphone icon for the main button
7
- * Lucide Mic icon paths
8
- */
9
- export declare const micIcon: (size?: number) => TemplateResult;
10
- /**
11
- * Message square icon for dictate action
12
- * Lucide MessageSquare icon paths
13
- */
14
- export declare const dictateIcon: (size?: number) => TemplateResult;
15
- /**
16
- * Pencil icon for edit action
17
- * Lucide Pencil icon paths
18
- */
19
- export declare const editIcon: (size?: number) => TemplateResult;
20
- /**
21
- * Stop/Square icon for stopping recording
22
- * Lucide Square icon (filled)
23
- */
24
- export declare const stopIcon: (size?: number) => TemplateResult;
25
- /**
26
- * Loader/spinner icon for connecting state
27
- */
28
- export declare const loaderIcon: (size?: number) => TemplateResult;
29
- /**
30
- * Check icon for "Keep" action
31
- * Lucide Check icon paths
32
- */
33
- export declare const checkIcon: (size?: number) => TemplateResult;
34
- /**
35
- * Undo icon for "Undo" action
36
- * Lucide Undo2 icon paths
37
- */
38
- export declare const undoIcon: (size?: number) => TemplateResult;
39
- /**
40
- * Refresh icon for "Continue editing" action
41
- * Lucide RefreshCw icon paths
42
- */
43
- export declare const refreshIcon: (size?: number) => TemplateResult;
44
- /**
45
- * X icon for cancel action
46
- * Lucide X icon paths
47
- */
48
- export declare const xIcon: (size?: number) => TemplateResult;
49
- /**
50
- * More vertical (three dots) icon for settings button
51
- * Lucide MoreVertical icon paths
52
- */
53
- export declare const moreVerticalIcon: (size?: number) => TemplateResult;
54
- /**
55
- * Clipboard/list icon for transcripts tab
56
- * Lucide ClipboardList icon paths
57
- */
58
- export declare const clipboardIcon: (size?: number) => TemplateResult;
59
- /**
60
- * Help circle icon for help tab
61
- * Lucide HelpCircle icon paths
62
- */
63
- export declare const helpCircleIcon: (size?: number) => TemplateResult;
64
- /**
65
- * Info icon for about tab
66
- * Lucide Info icon paths
67
- */
68
- export declare const infoIcon: (size?: number) => TemplateResult;
69
- /**
70
- * Settings/cog icon for settings tab
71
- * Lucide Settings icon paths
72
- */
73
- export declare const settingsIcon: (size?: number) => TemplateResult;
74
- /**
75
- * Trash icon for delete action
76
- * Lucide Trash2 icon paths
77
- */
78
- export declare const trashIcon: (size?: number) => TemplateResult;
79
- /**
80
- * External link icon
81
- * Lucide ExternalLink icon paths
82
- */
83
- export declare const externalLinkIcon: (size?: number) => TemplateResult;
84
- /**
85
- * Copy icon
86
- * Lucide Copy icon paths
87
- */
88
- export declare const copyIcon: (size?: number) => TemplateResult;
@@ -1,20 +0,0 @@
1
- /**
2
- * UI module exports
3
- * Lit-based Shadow DOM components
4
- */
5
- import "./widget.js";
6
- import "./mic-button.js";
7
- import "./action-bubbles.js";
8
- import "./settings-button.js";
9
- import "./settings-modal.js";
10
- export { SpeechOSWidget } from "./widget.js";
11
- export { SpeechOSMicButton } from "./mic-button.js";
12
- export { SpeechOSActionBubbles } from "./action-bubbles.js";
13
- export { SpeechOSSettingsButton } from "./settings-button.js";
14
- export { SpeechOSSettingsModal } from "./settings-modal.js";
15
- /**
16
- * Register all custom elements
17
- * This is automatically called when importing this module,
18
- * but can be called explicitly if needed
19
- */
20
- export declare function registerComponents(): void;
@@ -1,34 +0,0 @@
1
- /**
2
- * Microphone button component
3
- * A circular button that toggles the action bubbles and handles recording states
4
- */
5
- import { LitElement, type CSSResultGroup, type TemplateResult } from "lit";
6
- import type { RecordingState, SpeechOSAction } from "@speechos/core";
7
- export declare class SpeechOSMicButton extends LitElement {
8
- static styles: CSSResultGroup;
9
- expanded: boolean;
10
- recordingState: RecordingState;
11
- activeAction: SpeechOSAction | null;
12
- editPreviewText: string;
13
- errorMessage: string | null;
14
- private handleClick;
15
- private handleCancel;
16
- private stopEvent;
17
- private handleClose;
18
- private handleRetry;
19
- private getButtonClass;
20
- private renderIcon;
21
- private getAriaLabel;
22
- /**
23
- * Truncate and format preview text for display
24
- */
25
- private formatPreviewText;
26
- private getStatusLabel;
27
- private getStatusClass;
28
- render(): TemplateResult;
29
- }
30
- declare global {
31
- interface HTMLElementTagNameMap {
32
- "speechos-mic-button": SpeechOSMicButton;
33
- }
34
- }
@@ -1,16 +0,0 @@
1
- /**
2
- * Settings button component
3
- * A small gear icon button that opens the settings modal
4
- */
5
- import { LitElement, type CSSResultGroup } from "lit";
6
- export declare class SpeechOSSettingsButton extends LitElement {
7
- static styles: CSSResultGroup;
8
- visible: boolean;
9
- private handleClick;
10
- render(): import("lit").TemplateResult;
11
- }
12
- declare global {
13
- interface HTMLElementTagNameMap {
14
- "speechos-settings-button": SpeechOSSettingsButton;
15
- }
16
- }
@@ -1,34 +0,0 @@
1
- /**
2
- * Settings modal component
3
- * Displays transcript history, help, about, and settings in a tabbed interface
4
- */
5
- import { LitElement, type CSSResultGroup } from "lit";
6
- export declare class SpeechOSSettingsModal extends LitElement {
7
- static styles: CSSResultGroup;
8
- open: boolean;
9
- private activeTab;
10
- private transcripts;
11
- private tabs;
12
- connectedCallback(): void;
13
- updated(changedProperties: Map<string, unknown>): void;
14
- private loadTranscripts;
15
- private handleOverlayClick;
16
- private handleClose;
17
- private close;
18
- private handleTabClick;
19
- private handleDeleteTranscript;
20
- private handleClearAll;
21
- private handleCopyTranscript;
22
- private formatTime;
23
- private renderTranscriptsTab;
24
- private renderHelpTab;
25
- private renderAboutTab;
26
- private renderSettingsTab;
27
- private renderTabContent;
28
- render(): import("lit").TemplateResult;
29
- }
30
- declare global {
31
- interface HTMLElementTagNameMap {
32
- "speechos-settings-modal": SpeechOSSettingsModal;
33
- }
34
- }
@@ -1,17 +0,0 @@
1
- /**
2
- * Shared styles and CSS variables for SpeechOS UI components
3
- */
4
- import { type CSSResult } from 'lit';
5
- /**
6
- * CSS variables and theme tokens
7
- * These can be customized by the host application
8
- */
9
- export declare const themeStyles: CSSResult;
10
- /**
11
- * Common animation keyframes
12
- */
13
- export declare const animations: CSSResult;
14
- /**
15
- * Utility styles for common patterns
16
- */
17
- export declare const utilityStyles: CSSResult;
@@ -1,64 +0,0 @@
1
- /**
2
- * Main widget container component
3
- * Composes mic button and action bubbles with state management
4
- */
5
- import { LitElement, type CSSResultGroup, type TemplateResult } from "lit";
6
- import "./mic-button.js";
7
- import "./action-bubbles.js";
8
- import "./settings-button.js";
9
- import "./settings-modal.js";
10
- export declare class SpeechOSWidget extends LitElement {
11
- static styles: CSSResultGroup;
12
- private widgetState;
13
- private settingsOpen;
14
- private stateUnsubscribe?;
15
- private errorEventUnsubscribe?;
16
- private dictationTargetElement;
17
- private editTargetElement;
18
- private dictationCursorStart;
19
- private dictationCursorEnd;
20
- private editSelectionStart;
21
- private editSelectionEnd;
22
- private editSelectedText;
23
- private boundClickOutsideHandler;
24
- private modalElement;
25
- private customPosition;
26
- private isDragging;
27
- private dragStartPos;
28
- private dragOffset;
29
- private boundDragMove;
30
- private boundDragEnd;
31
- private static readonly DRAG_THRESHOLD;
32
- private suppressNextClick;
33
- connectedCallback(): void;
34
- disconnectedCallback(): void;
35
- updated(changedProperties: Map<string, unknown>): void;
36
- private handleClickOutside;
37
- private isFormField;
38
- private updatePosition;
39
- private handleMicClick;
40
- private handleStopRecording;
41
- private handleCancelOperation;
42
- private handleRetryConnection;
43
- private handleCloseWidget;
44
- private handleSettingsClick;
45
- private handleDragStart;
46
- private handleDragMove;
47
- private handleDragEnd;
48
- private applyCustomPosition;
49
- private insertTranscription;
50
- private handleActionSelect;
51
- private withMinDisplayTime;
52
- private startDictation;
53
- private startEdit;
54
- private handleStopEdit;
55
- private supportsSelection;
56
- private getElementContent;
57
- private applyEdit;
58
- render(): TemplateResult | string;
59
- }
60
- declare global {
61
- interface HTMLElementTagNameMap {
62
- "speechos-widget": SpeechOSWidget;
63
- }
64
- }