@nivaro/react 0.3.4 → 0.3.6
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 +31 -0
- package/dist/index.js +288 -286
- package/dist/shared/components/pipeline/PipelineEditorView.js +1151 -1090
- package/dist/shared/context.js +96 -84
- package/dist/shared/lib/request-gate.js +190 -178
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ import { normalizeReplaySampling as x, replaySampleDraw as Ae, currentReplayRout
|
|
|
8
8
|
import { emitReplayTap as Ce, setReplayRecorderMode as N, registerReplayCapture as Ie, clipEndOffset as _e, withClipKind as De } from "../shared/lib/replay-capture.js";
|
|
9
9
|
import { instrumentConsole as qe, instrumentRequests as Le, redactSecrets as Te } from "../shared/lib/replay-context.js";
|
|
10
10
|
import { instrumentSocket as Pe } from "../shared/lib/replay-socket.js";
|
|
11
|
-
const Ne = "nivaro-react@0.3.
|
|
11
|
+
const Ne = "nivaro-react@0.3.6", j = 1e4, Me = 150, Oe = 3e3, Ue = 600, We = (n) => `nvr_replay_resume${n ? `:${n}` : ""}`, G = () => typeof navigator > "u" || navigator.onLine !== !1;
|
|
12
12
|
function Fe(n) {
|
|
13
13
|
return typeof n.url != "string" || typeof fetch != "function" ? null : (f, a) => {
|
|
14
14
|
const l = typeof n.getToken == "function" ? n.getToken() : void 0, d = { "Content-Type": "application/json" };
|
package/dist/index.d.ts
CHANGED
|
@@ -7129,6 +7129,17 @@ export declare function QualityRulesView({ className }: {
|
|
|
7129
7129
|
className?: string;
|
|
7130
7130
|
}): JSX.Element;
|
|
7131
7131
|
|
|
7132
|
+
declare type QueryCacheLike = {
|
|
7133
|
+
subscribe(listener: (event: {
|
|
7134
|
+
type: string;
|
|
7135
|
+
query: {
|
|
7136
|
+
state: {
|
|
7137
|
+
fetchStatus?: string;
|
|
7138
|
+
};
|
|
7139
|
+
};
|
|
7140
|
+
}) => void): () => void;
|
|
7141
|
+
};
|
|
7142
|
+
|
|
7132
7143
|
declare type QueryRowClick = {
|
|
7133
7144
|
picker?: {
|
|
7134
7145
|
collection: string;
|
|
@@ -8225,6 +8236,26 @@ export declare type RelationOption = {
|
|
|
8225
8236
|
raw: Record<string, unknown>;
|
|
8226
8237
|
};
|
|
8227
8238
|
|
|
8239
|
+
/**
|
|
8240
|
+
* Release every read that closed gates are holding, leaving each gate closed for
|
|
8241
|
+
* what comes next. The hosts share ONE react-query cache across their record
|
|
8242
|
+
* tabs, so a hidden tab's queued read and the visible tab's identical query are
|
|
8243
|
+
* the same query: the visible tab joins the fetch the hidden tab started and
|
|
8244
|
+
* waits on a gate nobody will open — a form stuck on skeletons with no error
|
|
8245
|
+
* until the hidden tab is shown (staging, 2026-10-22). releaseGatedReadsOnSharedFetch
|
|
8246
|
+
* calls this whenever an observer joins a query that is already fetching.
|
|
8247
|
+
*/
|
|
8248
|
+
export declare function releaseGatedReads(): void;
|
|
8249
|
+
|
|
8250
|
+
/**
|
|
8251
|
+
* Wire releaseGatedReads to a react-query cache: when a component starts
|
|
8252
|
+
* observing a query that is already fetching, that fetch may be one a closed
|
|
8253
|
+
* gate is holding, so release the gates' queues. Returns the unsubscribe; call
|
|
8254
|
+
* it once at the host that mounts gated tabs (e.g. in an effect over the
|
|
8255
|
+
* QueryClient's getQueryCache()).
|
|
8256
|
+
*/
|
|
8257
|
+
export declare function releaseGatedReadsOnSharedFetch(cache: QueryCacheLike): () => void;
|
|
8258
|
+
|
|
8228
8259
|
export declare function releaseHeld(): HeldItem[];
|
|
8229
8260
|
|
|
8230
8261
|
export declare type RenderFieldProps = {
|