score-viewer 1.0.48 → 1.0.49

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.
@@ -96,6 +96,7 @@ declare enum PlayingState {
96
96
 
97
97
  declare type RenderAutoScrollConfig = {
98
98
  height: number;
99
+ timemap: TimeMapEvent[];
99
100
  };
100
101
 
101
102
  declare type RenderConfig = {
@@ -106,6 +107,7 @@ declare type RenderConfig = {
106
107
  renderPage: number;
107
108
  loadedPagesCount: number;
108
109
  scale: number;
110
+ timemap: TimeMapEvent[];
109
111
  };
110
112
 
111
113
  declare interface RenderedData {
@@ -215,8 +217,10 @@ export declare interface ScoreViewerRef {
215
217
 
216
218
  declare class ScoreViewerStoreApi {
217
219
  use: {
218
- queuedAction: () => Action | null;
219
- setQueuedAction: () => (action: Action | null) => void;
220
+ targetWidth: () => number;
221
+ setTargetWidth: () => (width: number) => void;
222
+ targetHeight: () => number;
223
+ setTargetHeight: () => (height: number) => void;
220
224
  pendingAction: () => Action | null;
221
225
  setPendingAction: () => (action: Action | null) => void;
222
226
  score: () => Score | null;
@@ -352,7 +356,7 @@ declare enum Transition {
352
356
  declare type Transposition = "" | "P4" | "+P4" | "-P4" | "M3" | "+M3" | "-M3" | "P8" | "+P8" | "-P8";
353
357
 
354
358
  export declare function useScoreManager({ t, config, normalizeFicta, onScoreAnalyzed, onFetchScoreError }: UseScoreManagerProps): {
355
- fetchScore: (scoreIndex: number) => void;
359
+ fetchScore: (scoreIndex: number) => Promise<void>;
356
360
  unloadScore: () => void;
357
361
  hasIntro: (scoreIndex: number) => boolean;
358
362
  hasText: (scoreIndex: number) => boolean;
@@ -369,7 +373,7 @@ declare interface UseScoreManagerProps {
369
373
  export declare const useStore: ScoreViewerStoreApi;
370
374
 
371
375
  export declare function useTextParts({ config, }: UseTextPartsProps): {
372
- fetchTextParts: (scoreIndex: number) => void;
376
+ fetchTextParts: (scoreIndex: number) => Promise<void>;
373
377
  textIntroduction: string | FetchError | null | undefined;
374
378
  textLyrics: LyricItem[] | null | undefined;
375
379
  textComments: string | FetchError | null | undefined;
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "./style.css": "./dist/style.css"
14
14
  },
15
15
  "private": false,
16
- "version": "1.0.48",
16
+ "version": "1.0.49",
17
17
  "type": "module",
18
18
  "files": [
19
19
  "dist"