@nivaro/react 0.3.12 → 0.3.13
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 +17 -0
- package/dist/index.js +583 -582
- package/dist/shared/components/item-edit/RecordLiveSync.js +196 -181
- package/dist/shared/context.js +71 -66
- 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.13", 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
|
@@ -8219,6 +8219,23 @@ export declare function RecordSubscribeButton({ collection, itemId, recordLabel,
|
|
|
8219
8219
|
compact?: boolean;
|
|
8220
8220
|
}): JSX.Element;
|
|
8221
8221
|
|
|
8222
|
+
export declare const RecordSurfaceContext: React_2.Context<RecordSurfaceValue>;
|
|
8223
|
+
|
|
8224
|
+
/**
|
|
8225
|
+
* Where one record form is mounted. A host that keeps several records mounted
|
|
8226
|
+
* at once (efp-new's record tabs keep background tabs alive) says which one the
|
|
8227
|
+
* person is looking at, so record-level notices ("Tim moved this to …") never
|
|
8228
|
+
* speak for a record that is not on screen. No provider = the only record, active.
|
|
8229
|
+
*/
|
|
8230
|
+
export declare interface RecordSurfaceValue {
|
|
8231
|
+
/** This record is the one on screen. */
|
|
8232
|
+
active: boolean;
|
|
8233
|
+
/** How the record is named to the person (its tab label), for notices from a background tab. */
|
|
8234
|
+
label?: string | null;
|
|
8235
|
+
/** Bring this record to the front. */
|
|
8236
|
+
open?: () => void;
|
|
8237
|
+
}
|
|
8238
|
+
|
|
8222
8239
|
declare interface RecordTarget {
|
|
8223
8240
|
collection: string;
|
|
8224
8241
|
id: string;
|