strata-react 1.0.46 → 1.1.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.
@@ -7,7 +7,16 @@ export type TranscriptWord = {
7
7
  confidence?: number;
8
8
  /** The recogniser's own verdict, when it gives one instead of a number. Wins over `confidence`. */
9
9
  doubtful?: boolean;
10
+ /** The word was corrected by a person: what the recogniser heard (shown on hover) and who changed it. Drawn as a dotted underline in the primary colour, and said to a screen reader. */
11
+ correction?: {
12
+ original: string;
13
+ by?: string;
14
+ };
10
15
  };
16
+ /** The id of a word for marking (`TranscriptView`'s `marking`, `Mark`): its phrase and its place in it. */
17
+ export declare const wordId: (phraseId: string, index: number) => string;
18
+ /** The phrase an id made by `wordId` belongs to. */
19
+ export declare const phraseOfWordId: (id: string) => string;
11
20
  /** A mark an app puts on a phrase ("Not sung", "Not a lyric"): a word, always, and the tone it is drawn in. */
12
21
  export type TranscriptPhraseState = {
13
22
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "strata-react",
3
- "version": "1.0.46",
3
+ "version": "1.1.0",
4
4
  "description": "React + Tailwind v4 components that ship structure, behaviour, states and a token contract, and no look: each product brings a theme generated from its own subject.",
5
5
  "repository": {
6
6
  "type": "git",