@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.
@@ -25,7 +25,7 @@
25
25
  "kind": "field",
26
26
  "name": "size",
27
27
  "type": {
28
- "text": "'sm' | 'md' | 'lg'"
28
+ "text": "TtsInlineSize"
29
29
  },
30
30
  "default": "'md'",
31
31
  "attribute": "size"
@@ -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
- * pie-tool-tts-inline
3
- *
4
- * Importing this package registers `<pie-tool-tts-inline>`. The build entry is
5
- * the component, so this file is the type entry alone and declares nothing: a
6
- * runtime export here would not exist in the built bundle.
7
- */
8
- export type {};
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
+ }