@nivaro/react 0.3.18 → 0.3.20
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/hooks/useSessionRecorder.js +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/shared/components/ItemEditForm.js +1677 -1650
- package/dist/shared/components/help-videos/api.js +3 -0
- package/dist/shared/components/help-videos/library/HelpVideoLibrary.js +225 -177
- package/dist/shared/components/item-edit/HeaderBand.js +73 -63
- package/dist/shared/components/item-edit/HeaderOverflowChip.js +19 -17
- package/dist/shared/lib/header-strip.js +125 -107
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ import { noteReplayEvent as _e, createReplayCheckoutState as De } from "../share
|
|
|
9
9
|
import { emitReplayTap as Te, setReplayRecorderMode as N, registerReplayCapture as qe, clipEndOffset as Le, withClipKind as Pe } from "../shared/lib/replay-capture.js";
|
|
10
10
|
import { instrumentConsole as Ne, instrumentRequests as Fe, redactSecrets as Me } from "../shared/lib/replay-context.js";
|
|
11
11
|
import { instrumentSocket as Oe } from "../shared/lib/replay-socket.js";
|
|
12
|
-
const Ue = "nivaro-react@0.3.
|
|
12
|
+
const Ue = "nivaro-react@0.3.20", j = 1e4, We = 150, He = 3e3, Ke = 600, $e = (n) => `nvr_replay_resume${n ? `:${n}` : ""}`, G = () => typeof navigator > "u" || navigator.onLine !== !1;
|
|
13
13
|
function Be(n) {
|
|
14
14
|
return typeof n.url != "string" || typeof fetch != "function" ? null : (f, a) => {
|
|
15
15
|
const u = typeof n.getToken == "function" ? n.getToken() : void 0, d = { "Content-Type": "application/json" };
|
package/dist/index.d.ts
CHANGED
|
@@ -3648,6 +3648,9 @@ export declare function helpVideoApi(client: NivaroClient): {
|
|
|
3648
3648
|
setContexts: (id: string, contexts: HelpVideoContext[]) => Promise<unknown>;
|
|
3649
3649
|
setRequirements: (id: string, role_ids: string[]) => Promise<unknown>;
|
|
3650
3650
|
archive: (id: string) => Promise<unknown>;
|
|
3651
|
+
/** Back to draft: viewers stop seeing it; the published version is kept, so `publish` puts the
|
|
3652
|
+
* same cut back with no new render. 409 HELP_VIDEO_NOT_PUBLISHED unless it is published. */
|
|
3653
|
+
unpublish: (id: string) => Promise<HelpVideoDto>;
|
|
3651
3654
|
/** Deletes the video, its versions, files, views and requirements for good. Administrators
|
|
3652
3655
|
* only (403 ADMIN_ONLY otherwise); 404 when it is already gone. */
|
|
3653
3656
|
purge: (id: string) => Promise<unknown>;
|