@nivaro/react 0.2.21 → 0.2.23
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/dist/full.css +1 -1
- package/dist/index.d.ts +93 -0
- package/dist/index.js +36042 -34959
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2671,6 +2671,18 @@ export declare function helpVideoApi(client: NivaroClient): {
|
|
|
2671
2671
|
version_id: string | null;
|
|
2672
2672
|
steps: WalkStep[];
|
|
2673
2673
|
}>;
|
|
2674
|
+
/** The music library: generated tracks, then any an administrator added. */
|
|
2675
|
+
musicLibrary: () => Promise<MusicTrack[]>;
|
|
2676
|
+
/** Music files uploaded to this video, newest first. */
|
|
2677
|
+
videoMusic: (id: string) => Promise<UploadedMusic[]>;
|
|
2678
|
+
/** 409 MUSIC_IN_USE while any version of the video uses it. */
|
|
2679
|
+
deleteMusic: (id: string, musicId: string) => Promise<unknown>;
|
|
2680
|
+
/** CC0 / public-domain audio on Openverse (the server searches). 429
|
|
2681
|
+
* OPENVERSE_BUSY when Openverse limits searches, 502 when unreachable. */
|
|
2682
|
+
searchOpenverse: (q: string, page?: number) => Promise<OpenverseSearch>;
|
|
2683
|
+
/** Imports an Openverse track as this video's music (the same track twice
|
|
2684
|
+
* is kept once). 422 OPENVERSE_LICENSE when it is no longer CC0. */
|
|
2685
|
+
importOpenverse: (id: string, openverseId: string) => Promise<UploadedMusic>;
|
|
2674
2686
|
registerPage: (key: string, label: string, app?: string) => Promise<unknown>;
|
|
2675
2687
|
authorRoles: () => Promise<string[]>;
|
|
2676
2688
|
setAuthorRoles: (ids: string[]) => Promise<unknown>;
|
|
@@ -3683,6 +3695,10 @@ declare interface IntroCard {
|
|
|
3683
3695
|
show_chapters: boolean;
|
|
3684
3696
|
title: string;
|
|
3685
3697
|
subtitle: string;
|
|
3698
|
+
/** How the card's elements arrive (absent = none, a still card). */
|
|
3699
|
+
animation?: 'subtle' | 'lively';
|
|
3700
|
+
/** How the card hands over to the recording (absent = a cut). */
|
|
3701
|
+
transition?: 'fade' | 'fade_black' | 'slide' | 'zoom' | 'wipe';
|
|
3686
3702
|
}
|
|
3687
3703
|
|
|
3688
3704
|
/** Whether this browser pinned the chat panel open — hosts read it for their
|
|
@@ -4260,6 +4276,40 @@ declare interface MetricDefinition {
|
|
|
4260
4276
|
sort: number | null;
|
|
4261
4277
|
}
|
|
4262
4278
|
|
|
4279
|
+
/** A music bed under the whole video, looped and lowered under narration.
|
|
4280
|
+
* `track` is a library key or an uploaded music file's id. */
|
|
4281
|
+
declare interface MusicBed {
|
|
4282
|
+
enabled: true;
|
|
4283
|
+
source: 'library' | 'upload';
|
|
4284
|
+
track: string;
|
|
4285
|
+
name: string;
|
|
4286
|
+
/** Level while nobody speaks, 0.05–1. */
|
|
4287
|
+
volume: number;
|
|
4288
|
+
duck: boolean;
|
|
4289
|
+
}
|
|
4290
|
+
|
|
4291
|
+
/** Where an imported music file came from (CC0 / public domain only). */
|
|
4292
|
+
declare interface MusicOrigin {
|
|
4293
|
+
provider: 'openverse';
|
|
4294
|
+
id: string;
|
|
4295
|
+
creator: string | null;
|
|
4296
|
+
license: 'cc0' | 'pdm';
|
|
4297
|
+
license_url: string | null;
|
|
4298
|
+
landing_url: string | null;
|
|
4299
|
+
/** The site Openverse found it on (freesound, jamendo, wikimedia_audio…). */
|
|
4300
|
+
source: string | null;
|
|
4301
|
+
}
|
|
4302
|
+
|
|
4303
|
+
/** One track of the music library (GET /help-videos/music). */
|
|
4304
|
+
declare interface MusicTrack {
|
|
4305
|
+
key: string;
|
|
4306
|
+
title: string;
|
|
4307
|
+
description: string;
|
|
4308
|
+
duration_ms: number;
|
|
4309
|
+
/** Generated by the server, or a file an administrator added. */
|
|
4310
|
+
kind: 'generated' | 'file';
|
|
4311
|
+
}
|
|
4312
|
+
|
|
4263
4313
|
export declare function MyWorkView({ notificationRoutes, onOpenPath }?: {
|
|
4264
4314
|
/** Host page map so notification clicks land on real pages (reports, queues,
|
|
4265
4315
|
* alerts…); without it only record targets are clickable. */
|
|
@@ -4721,6 +4771,28 @@ export declare function openChatRoom(room: string, label?: string): void;
|
|
|
4721
4771
|
|
|
4722
4772
|
export declare function openDmWith(userId: string, displayName?: string): void;
|
|
4723
4773
|
|
|
4774
|
+
declare interface OpenverseSearch {
|
|
4775
|
+
/** False when the instance switched Openverse off (HELP_VIDEO_OPENVERSE=off). */
|
|
4776
|
+
enabled: boolean;
|
|
4777
|
+
results: OpenverseTrack[];
|
|
4778
|
+
page?: number;
|
|
4779
|
+
page_count?: number;
|
|
4780
|
+
result_count?: number;
|
|
4781
|
+
}
|
|
4782
|
+
|
|
4783
|
+
/** One Openverse search result (GET /help-videos/music/openverse). */
|
|
4784
|
+
declare interface OpenverseTrack {
|
|
4785
|
+
id: string;
|
|
4786
|
+
title: string;
|
|
4787
|
+
creator: string | null;
|
|
4788
|
+
license: 'cc0' | 'pdm';
|
|
4789
|
+
license_url: string | null;
|
|
4790
|
+
duration_ms: number | null;
|
|
4791
|
+
provider: string | null;
|
|
4792
|
+
landing_url: string | null;
|
|
4793
|
+
attribution: string | null;
|
|
4794
|
+
}
|
|
4795
|
+
|
|
4724
4796
|
/**
|
|
4725
4797
|
* Operational tasks (#827): every repair / backfill / migration core or an
|
|
4726
4798
|
* extension registered, run from the console — dry run by default, one run
|
|
@@ -4800,6 +4872,10 @@ declare interface OutroCard {
|
|
|
4800
4872
|
enabled: true;
|
|
4801
4873
|
duration_ms: number;
|
|
4802
4874
|
text: string;
|
|
4875
|
+
/** How the card's elements arrive (absent = none, a still card). */
|
|
4876
|
+
animation?: 'subtle' | 'lively';
|
|
4877
|
+
/** How the card takes over from the recording (absent = a cut). */
|
|
4878
|
+
transition?: 'fade' | 'fade_black' | 'slide' | 'zoom' | 'wipe';
|
|
4803
4879
|
}
|
|
4804
4880
|
|
|
4805
4881
|
/**
|
|
@@ -6743,6 +6819,9 @@ declare interface Segment {
|
|
|
6743
6819
|
start_ms: number;
|
|
6744
6820
|
end_ms: number;
|
|
6745
6821
|
speed: Speed;
|
|
6822
|
+
/** Music level under this piece, a share of the music volume (0 = none).
|
|
6823
|
+
* Stored only when the music is on and the share is not 1. */
|
|
6824
|
+
music?: number;
|
|
6746
6825
|
}
|
|
6747
6826
|
|
|
6748
6827
|
export declare function SelectField({ field, value, onChange, error, disabled, readOnly, inputId, errorId }: FieldComponentProps): JSX.Element;
|
|
@@ -7426,6 +7505,15 @@ declare interface UnsavedSummary {
|
|
|
7426
7505
|
text: string;
|
|
7427
7506
|
}
|
|
7428
7507
|
|
|
7508
|
+
/** An uploaded music file (POST /help-videos/:id/music). */
|
|
7509
|
+
declare interface UploadedMusic {
|
|
7510
|
+
id: string;
|
|
7511
|
+
name: string;
|
|
7512
|
+
duration_ms: number;
|
|
7513
|
+
/** Set when it was imported from Openverse. */
|
|
7514
|
+
origin?: MusicOrigin;
|
|
7515
|
+
}
|
|
7516
|
+
|
|
7429
7517
|
/** An upload session as `/help-videos/uploads/*` returns it. */
|
|
7430
7518
|
declare type UploadRow = {
|
|
7431
7519
|
id: string;
|
|
@@ -8153,12 +8241,17 @@ export declare interface VideoEdits {
|
|
|
8153
8241
|
intro?: IntroCard;
|
|
8154
8242
|
outro?: OutroCard;
|
|
8155
8243
|
chapter_banners?: true;
|
|
8244
|
+
/** How chapter banners arrive and leave (stored only while banners are on;
|
|
8245
|
+
* absent = they pop on and off). */
|
|
8246
|
+
banner_animation?: 'subtle' | 'lively';
|
|
8156
8247
|
/** The name drawn on the cards instead of the instance name (stored only
|
|
8157
8248
|
* when filled in). */
|
|
8158
8249
|
card_brand?: string;
|
|
8159
8250
|
/** The poster is this card instead of the frame at poster_ms (stored only
|
|
8160
8251
|
* while that card is on). */
|
|
8161
8252
|
poster_card?: 'intro' | 'outro';
|
|
8253
|
+
/** Background music (stored only while switched on). */
|
|
8254
|
+
music?: MusicBed;
|
|
8162
8255
|
}
|
|
8163
8256
|
|
|
8164
8257
|
export declare function viewAs(person: {
|