@nivaro/react 0.3.87 → 0.3.88
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/hooks/useSessionRecorder.js +1 -1
- package/dist/index.d.ts +18 -0
- package/dist/index.js +518 -516
- package/dist/shared/components/ops-report/CompareTab.js +110 -0
- package/dist/shared/components/ops-report/DigestSections.js +1134 -0
- package/dist/shared/components/ops-report/OpsReportView.js +88 -0
- package/dist/shared/components/ops-report/ReportTab.js +527 -0
- package/dist/shared/components/ops-report/SettingsPanel.js +247 -0
- package/dist/shared/components/ops-report/TrendsTab.js +191 -0
- package/dist/shared/components/ops-report/chip.js +17 -0
- package/dist/shared/components/ops-report/drill.js +328 -0
- package/dist/shared/components/ops-report/format.js +163 -0
- package/dist/shared/components/ops-report/ui.js +208 -0
- package/dist/shared/lib/ops-report-types.js +141 -0
- 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.88", 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
|
@@ -7459,6 +7459,24 @@ declare interface OpenverseTrack {
|
|
|
7459
7459
|
attribution: string | null;
|
|
7460
7460
|
}
|
|
7461
7461
|
|
|
7462
|
+
/**
|
|
7463
|
+
* Daily operations report (administrators): the night's report with every number drillable,
|
|
7464
|
+
* trends over 30/90 days, and a side-by-side compare. Needs the host's NivaroProvider; the
|
|
7465
|
+
* record drawer inside a drill-down also needs NavigationContext + ItemEditAuthContext.
|
|
7466
|
+
*/
|
|
7467
|
+
export declare function OpsReportView({ tab: tabProp, onTabChange, linkTo, className }: OpsReportViewProps): JSX.Element;
|
|
7468
|
+
|
|
7469
|
+
export declare interface OpsReportViewProps {
|
|
7470
|
+
/** Controlled tab; absent = the view keeps it. */
|
|
7471
|
+
tab?: OpsTab;
|
|
7472
|
+
onTabChange?: (tab: OpsTab) => void;
|
|
7473
|
+
/** Map an app path from a drill-down ("Open") onto the host's own routes; null = hide the action. */
|
|
7474
|
+
linkTo?: (path: string) => string | null;
|
|
7475
|
+
className?: string;
|
|
7476
|
+
}
|
|
7477
|
+
|
|
7478
|
+
declare type OpsTab = 'report' | 'trends' | 'compare';
|
|
7479
|
+
|
|
7462
7480
|
/**
|
|
7463
7481
|
* Operational tasks (#827): every repair / backfill / migration core or an
|
|
7464
7482
|
* extension registered, run from the console — dry run by default, one run
|