@nivaro/react 0.2.22 → 0.2.24
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 +94 -6
- package/dist/index.js +41458 -39476
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -79,6 +79,14 @@ declare interface ActiveFilter {
|
|
|
79
79
|
not?: boolean;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
+
/** A stretch of the recording where the author was typing in a text field,
|
|
83
|
+
* or touched nothing at all (#1518). Never what was typed. */
|
|
84
|
+
declare type ActivitySpan = {
|
|
85
|
+
kind: 'typing' | 'idle';
|
|
86
|
+
start_ms: number;
|
|
87
|
+
end_ms: number;
|
|
88
|
+
};
|
|
89
|
+
|
|
82
90
|
export declare function AddendumPanel({ collection, item, addendumLayoutId, canCreate, onActiveCountChange, onApplied, onCreated, defaultExpanded }: {
|
|
83
91
|
collection: string;
|
|
84
92
|
item: string;
|
|
@@ -193,7 +201,9 @@ declare interface Annotation {
|
|
|
193
201
|
tone: Tone;
|
|
194
202
|
}
|
|
195
203
|
|
|
196
|
-
|
|
204
|
+
/** A `step` is a callout with a number badge (numbered in timeline order);
|
|
205
|
+
* a `spotlight` dims the whole frame except its rect. */
|
|
206
|
+
declare type AnnotationType = 'callout' | 'arrow' | 'box' | 'ripple' | 'step' | 'spotlight';
|
|
197
207
|
|
|
198
208
|
/**
|
|
199
209
|
* Admin-authored announcement banners ("maintenance Friday 6pm") — polled
|
|
@@ -610,6 +620,13 @@ declare interface Caption {
|
|
|
610
620
|
text: string;
|
|
611
621
|
}
|
|
612
622
|
|
|
623
|
+
/** How captions look in the player (#1529), remembered per person. */
|
|
624
|
+
declare interface CaptionStyle {
|
|
625
|
+
size: 's' | 'm' | 'l' | 'xl';
|
|
626
|
+
background: 'none' | 'shaded' | 'solid';
|
|
627
|
+
position: 'bottom' | 'top';
|
|
628
|
+
}
|
|
629
|
+
|
|
613
630
|
/**
|
|
614
631
|
* Grab the replay link for an error being reported right now. Resolves null
|
|
615
632
|
* when no recorder is active (both settings off, recording failed, or the
|
|
@@ -2594,7 +2611,7 @@ export declare function helpVideoApi(client: NivaroClient): {
|
|
|
2594
2611
|
/** 409 HELP_VIDEO_EDITS_CONFLICT (with `current_hash`) when `base_hash` is stale;
|
|
2595
2612
|
* 422 HELP_VIDEO_EDITS_INVALID when the edits keep under a second. */
|
|
2596
2613
|
saveDraft: (id: string, edits: VideoEdits, base_hash?: string) => Promise<VersionDto>;
|
|
2597
|
-
publish: (id: string, watch_again: boolean) => Promise<HelpVideoDto>;
|
|
2614
|
+
publish: (id: string, watch_again: boolean, note?: string) => Promise<HelpVideoDto>;
|
|
2598
2615
|
rerecord: (id: string, upload_id: string) => Promise<VersionDto>;
|
|
2599
2616
|
versions: (id: string) => Promise<(VersionDto & {
|
|
2600
2617
|
is_published: boolean;
|
|
@@ -2653,6 +2670,8 @@ export declare function helpVideoApi(client: NivaroClient): {
|
|
|
2653
2670
|
* - `levels`: microphone loudness, one number from 0 (silence) to 1 every
|
|
2654
2671
|
* 100 ms of recording time (10 per second), so `levels[i]` covers
|
|
2655
2672
|
* `i * 100` ms. Null without a microphone.
|
|
2673
|
+
* - `activity` (optional): `{ kind: 'typing' | 'idle', start_ms, end_ms }`
|
|
2674
|
+
* spans on the recorded tab — never what was typed. Null when not captured.
|
|
2656
2675
|
* Matches `HelpVideoVersion.clicks` / `.levels` in @nivaro/sdk.
|
|
2657
2676
|
* 422 UPLOAD_TOO_LONG past 31 minutes, 409 UPLOAD_CLOSED when finished.
|
|
2658
2677
|
*/
|
|
@@ -2660,6 +2679,7 @@ export declare function helpVideoApi(client: NivaroClient): {
|
|
|
2660
2679
|
duration_ms: number;
|
|
2661
2680
|
clicks: RecordedClick[] | null;
|
|
2662
2681
|
levels: number[] | null;
|
|
2682
|
+
activity?: ActivitySpan[] | null;
|
|
2663
2683
|
}) => Promise<{
|
|
2664
2684
|
file_id: string;
|
|
2665
2685
|
duration_ms: number | null;
|
|
@@ -2739,6 +2759,12 @@ export declare interface HelpVideoDto {
|
|
|
2739
2759
|
download_urls: DownloadUrls | null;
|
|
2740
2760
|
updated_at: string;
|
|
2741
2761
|
my_progress: HelpVideoProgress | null;
|
|
2762
|
+
/** Ticketed plain-text transcript (captions under chapter headings) for
|
|
2763
|
+
* anyone who can watch, whatever the "Allow downloads" switch says. Null
|
|
2764
|
+
* when the published version has no captions. Optional: older servers. */
|
|
2765
|
+
transcript_url?: string | null;
|
|
2766
|
+
/** What changed since this person last watched (#1497), else null. */
|
|
2767
|
+
whats_new?: HelpVideoWhatsNew | null;
|
|
2742
2768
|
}
|
|
2743
2769
|
|
|
2744
2770
|
export declare function HelpVideoEditor({ videoId, onClose }: {
|
|
@@ -2760,8 +2786,12 @@ export declare const helpVideoKeys: {
|
|
|
2760
2786
|
draftEdits: (id: string, n: number) => readonly ["help-video-draft", string, number];
|
|
2761
2787
|
};
|
|
2762
2788
|
|
|
2763
|
-
export declare function HelpVideoLibrary({ watchId, editId, onWatch, onEdit, headerExtra }: {
|
|
2789
|
+
export declare function HelpVideoLibrary({ watchId, editId, onWatch, onEdit, headerExtra, watchAt, watchChapter }: {
|
|
2764
2790
|
watchId: string | null;
|
|
2791
|
+
/** A moment link's `t` (whole seconds) for watchId, as read from the URL. */
|
|
2792
|
+
watchAt?: string | null;
|
|
2793
|
+
/** A moment link's `c` (chapter id); wins over `t` when the chapter exists. */
|
|
2794
|
+
watchChapter?: string | null;
|
|
2765
2795
|
editId: string | null;
|
|
2766
2796
|
onWatch: (id: string | null) => void;
|
|
2767
2797
|
onEdit: (id: string | null) => void;
|
|
@@ -2841,7 +2871,7 @@ export declare function HelpVideoRecordingProvider({ children }: {
|
|
|
2841
2871
|
children: ReactNode;
|
|
2842
2872
|
}): JSX.Element;
|
|
2843
2873
|
|
|
2844
|
-
export declare function HelpVideoSheet({ videoId, open, onOpenChange, upNext, onPick, returnFocusRef, startAtMs, showMe }: {
|
|
2874
|
+
export declare function HelpVideoSheet({ videoId, open, onOpenChange, upNext, onPick, returnFocusRef, startAtMs, startChapterId, showMe }: {
|
|
2845
2875
|
videoId: string | null;
|
|
2846
2876
|
open: boolean;
|
|
2847
2877
|
onOpenChange: (open: boolean) => void;
|
|
@@ -2853,6 +2883,8 @@ export declare function HelpVideoSheet({ videoId, open, onOpenChange, upNext, on
|
|
|
2853
2883
|
returnFocusRef?: RefObject<HTMLElement | null>;
|
|
2854
2884
|
/** Start the player here (edited time), e.g. a walk's "Watch this step". */
|
|
2855
2885
|
startAtMs?: number | null;
|
|
2886
|
+
/** Start at this chapter (a moment link's `c`); wins over startAtMs when it exists. */
|
|
2887
|
+
startChapterId?: string | null;
|
|
2856
2888
|
/** Offer "Show me on this page" when the video has steps for this screen. */
|
|
2857
2889
|
showMe?: boolean;
|
|
2858
2890
|
}): JSX.Element;
|
|
@@ -2865,6 +2897,28 @@ export declare function HelpVideoSheet({ videoId, open, onOpenChange, upNext, on
|
|
|
2865
2897
|
*/
|
|
2866
2898
|
export declare function HelpVideoWalkHost(): JSX.Element | null;
|
|
2867
2899
|
|
|
2900
|
+
/** `updated`: a newer version than the one watched is published; `again`: the
|
|
2901
|
+
* author asked everyone to watch the same version again. */
|
|
2902
|
+
declare interface HelpVideoWhatsNew {
|
|
2903
|
+
kind: 'updated' | 'again';
|
|
2904
|
+
watched_version: number | null;
|
|
2905
|
+
version: number;
|
|
2906
|
+
/** The author's note for this version (system notes left out). */
|
|
2907
|
+
note: string | null;
|
|
2908
|
+
/** Where "Jump to what changed" starts (edited time); null = nothing to jump to. */
|
|
2909
|
+
jump_ms: number | null;
|
|
2910
|
+
chapter: {
|
|
2911
|
+
id: string;
|
|
2912
|
+
title: string;
|
|
2913
|
+
} | null;
|
|
2914
|
+
/** The recording itself was replaced: watch it from the start. */
|
|
2915
|
+
whole: boolean;
|
|
2916
|
+
}
|
|
2917
|
+
|
|
2918
|
+
/** The house style (#1551): defaults every new help video starts from.
|
|
2919
|
+
* Administrators only. */
|
|
2920
|
+
export declare function HouseStyleButton(): JSX.Element | null;
|
|
2921
|
+
|
|
2868
2922
|
/** Always-visible horizontal scrollbar proxy for the table scroller —
|
|
2869
2923
|
* overlay-OS scrollbars hide, so wide tables get a persistent draggable
|
|
2870
2924
|
* track pinned above the pagination footer. */
|
|
@@ -3824,7 +3878,11 @@ export declare type ItemLinkTarget = {
|
|
|
3824
3878
|
query?: Record<string, string> | null;
|
|
3825
3879
|
};
|
|
3826
3880
|
|
|
3827
|
-
export declare function ItemLockBanner({ lockHolder, onTakeOver, takingOver, isAdmin, onRequestLock, requesting, queue, myPosition, onJoinQueue, onLeaveQueue, joining }: {
|
|
3881
|
+
export declare function ItemLockBanner({ lockHolder, onTakeOver, takingOver, isAdmin, onRequestLock, requesting, queue, myPosition, onJoinQueue, onLeaveQueue, joining, noun, readOnlyText }: {
|
|
3882
|
+
/** What is being edited ("this video"). */
|
|
3883
|
+
noun?: string;
|
|
3884
|
+
/** What being locked out means here ("the editor is read-only"). */
|
|
3885
|
+
readOnlyText?: string;
|
|
3828
3886
|
lockHolder: LockHolder | null;
|
|
3829
3887
|
onTakeOver: () => void;
|
|
3830
3888
|
takingOver: boolean;
|
|
@@ -6409,6 +6467,9 @@ export declare type RenderFieldProps = {
|
|
|
6409
6467
|
requiredParentLabel?: string | null;
|
|
6410
6468
|
};
|
|
6411
6469
|
|
|
6470
|
+
/** How help-video renders are encoded (#1561). Administrators only. */
|
|
6471
|
+
export declare function RenderSettingsButton(): JSX.Element | null;
|
|
6472
|
+
|
|
6412
6473
|
declare type RenderStatus = 'none' | 'queued' | 'rendering' | 'ready' | 'failed' | 'unavailable';
|
|
6413
6474
|
|
|
6414
6475
|
export declare function ReportView({ reportId, showFilterBar, dateRange, initialEntityFilters, refetchInterval, className, emptyState, reportUrl }: ReportViewProps & {
|
|
@@ -7047,7 +7108,7 @@ export declare function SnoozeMenu({ signal, signalLabel, rowKey, group, default
|
|
|
7047
7108
|
compact?: boolean;
|
|
7048
7109
|
}): JSX.Element;
|
|
7049
7110
|
|
|
7050
|
-
declare type Speed = 1 | 1.5 | 2 | 4;
|
|
7111
|
+
declare type Speed = 0.5 | 1 | 1.5 | 2 | 4;
|
|
7051
7112
|
|
|
7052
7113
|
export declare function splitMessageTokens(text: string, entityPattern: string): MessageToken[];
|
|
7053
7114
|
|
|
@@ -7100,6 +7161,12 @@ export declare function startRum(opts?: {
|
|
|
7100
7161
|
apiBase?: string;
|
|
7101
7162
|
}): void;
|
|
7102
7163
|
|
|
7164
|
+
/** How every step badge looks (stored only when not STEP_STYLE_DEFAULTS). */
|
|
7165
|
+
declare interface StepStyle {
|
|
7166
|
+
shape: 'circle' | 'square';
|
|
7167
|
+
size: 'small' | 'medium' | 'large';
|
|
7168
|
+
}
|
|
7169
|
+
|
|
7103
7170
|
export declare function SubmissionRow({ sub, onRetry, retrying, onShowPath, initialOpen }: {
|
|
7104
7171
|
sub: ErpSubmission;
|
|
7105
7172
|
onRetry: (id: number) => void;
|
|
@@ -8226,6 +8293,10 @@ declare interface VersionDto {
|
|
|
8226
8293
|
/** Draft load only: 'upload' when the source is a video file someone picked
|
|
8227
8294
|
* (it has no clicks and no microphone levels), else 'recording'. */
|
|
8228
8295
|
source_kind?: 'recording' | 'upload';
|
|
8296
|
+
/** Draft load only (#1518): when the author was typing in a text field or
|
|
8297
|
+
* idle (no input for 3 s+) on the recorded tab, in source time. Null for
|
|
8298
|
+
* uploaded files and recordings made without it. */
|
|
8299
|
+
activity?: ActivitySpan[] | null;
|
|
8229
8300
|
}
|
|
8230
8301
|
|
|
8231
8302
|
export declare interface VideoEdits {
|
|
@@ -8252,6 +8323,23 @@ export declare interface VideoEdits {
|
|
|
8252
8323
|
poster_card?: 'intro' | 'outro';
|
|
8253
8324
|
/** Background music (stored only while switched on). */
|
|
8254
8325
|
music?: MusicBed;
|
|
8326
|
+
/** What viewers see of the recording (frame fractions); stored only when
|
|
8327
|
+
* smaller than the whole frame. Other rects stay relative to the whole
|
|
8328
|
+
* recorded frame; cards are always full frame. */
|
|
8329
|
+
crop?: Rect;
|
|
8330
|
+
/** Step badge look; stored only when not STEP_STYLE_DEFAULTS. */
|
|
8331
|
+
step_style?: StepStyle;
|
|
8332
|
+
/** Narration cleanup (#1519): loudness levelling + noise reduction in the
|
|
8333
|
+
* render. Stored only while on; live playback plays the recording as is. */
|
|
8334
|
+
audio?: {
|
|
8335
|
+
improve: true;
|
|
8336
|
+
};
|
|
8337
|
+
/** Text size in callouts, boxes and steps (#1551); stored only when not
|
|
8338
|
+
* 'medium'. */
|
|
8339
|
+
callout_text?: 'small' | 'large';
|
|
8340
|
+
/** How captions look to viewers who have not chosen their own (#1551);
|
|
8341
|
+
* only the keys that differ from the default look are stored. */
|
|
8342
|
+
caption_style?: Partial<CaptionStyle>;
|
|
8255
8343
|
}
|
|
8256
8344
|
|
|
8257
8345
|
export declare function viewAs(person: {
|