@pie-players/pie-tool-tts-inline 1.0.0-beta.6 → 1.0.0-beta.8
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/custom-elements.json +1 -1
- package/dist/element-props.d.ts +16 -0
- package/dist/index.d.ts +13 -8
- package/dist/tool-tts-inline.js +1164 -1214
- package/package.json +6 -6
package/custom-elements.json
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TTSLayoutMode, TTSSpeedOption } from '@pie-players/pie-assessment-toolkit/tools/registration';
|
|
2
|
+
export type TtsInlineSize = "sm" | "md" | "lg";
|
|
3
|
+
/** Inputs shared by the component and its native element declaration. */
|
|
4
|
+
export interface TtsInlineProps {
|
|
5
|
+
catalogId?: string;
|
|
6
|
+
size?: TtsInlineSize;
|
|
7
|
+
speedOptions?: TTSSpeedOption[];
|
|
8
|
+
showSingleSpeedOption?: boolean;
|
|
9
|
+
layoutMode?: TTSLayoutMode;
|
|
10
|
+
/** Multiplies every speed choice's rate, so 1× reads at this rate. */
|
|
11
|
+
baseRate?: number;
|
|
12
|
+
/** The pitch each read starts at, 0–2 with 1 normal. */
|
|
13
|
+
pitch?: number;
|
|
14
|
+
/** The volume each read starts at, 0–1. */
|
|
15
|
+
volume?: number;
|
|
16
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { TTSLayoutMode, TTSSpeedOption } from '@pie-players/pie-assessment-toolkit/tools/registration';
|
|
2
|
+
import { TtsInlineProps, TtsInlineSize } from './element-props.js';
|
|
3
|
+
export type PieToolTtsInlineSize = TtsInlineSize;
|
|
4
|
+
export type PieToolTtsInlineLayoutMode = TTSLayoutMode;
|
|
5
|
+
export type PieToolTtsInlineSpeedOption = TTSSpeedOption;
|
|
6
|
+
/** Native host interface for `<pie-tool-tts-inline>`. Properties may be unset until it mounts. */
|
|
7
|
+
export interface PieToolTtsInlineElement extends HTMLElement, TtsInlineProps {
|
|
8
|
+
}
|
|
9
|
+
declare global {
|
|
10
|
+
interface HTMLElementTagNameMap {
|
|
11
|
+
"pie-tool-tts-inline": PieToolTtsInlineElement;
|
|
12
|
+
}
|
|
13
|
+
}
|