@nivaro/react 0.3.132 → 0.3.134
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 +13 -5
- package/dist/index.js +861 -860
- package/dist/shared/components/delivery-analytics/DeliveryAnalyticsView.js +1095 -0
- package/dist/shared/components/delivery-analytics/charts.js +157 -0
- package/dist/shared/components/delivery-analytics/drill.js +833 -0
- package/dist/shared/components/delivery-analytics/ui.js +290 -0
- package/dist/shared/components/delivery-analytics/url.js +105 -0
- package/dist/shared/components/item-edit/RecordInsights.js +186 -167
- package/package.json +1 -1
- package/dist/shared/components/notifications/NotificationAnalyticsView.js +0 -292
|
@@ -10,7 +10,7 @@ import { noteReplayIdle as Me, createReplayIdleState as Ne, REPLAY_IDLE_RESTART_
|
|
|
10
10
|
import { noteReplayEvent as Ue, createReplayCheckoutState as We } from "../shared/lib/replay-checkout.js";
|
|
11
11
|
import { instrumentConsole as He, instrumentRequests as Ke, redactSecrets as $e } from "../shared/lib/replay-context.js";
|
|
12
12
|
import { instrumentSocket as Be } from "../shared/lib/replay-socket.js";
|
|
13
|
-
const ze = "nivaro-react@0.3.
|
|
13
|
+
const ze = "nivaro-react@0.3.134", V = 1e4, Ye = 150, xe = 3e3, je = 600, Ge = (o) => `nvr_replay_resume${o ? `:${o}` : ""}`, X = () => typeof navigator > "u" || navigator.onLine !== !1;
|
|
14
14
|
function Je(o) {
|
|
15
15
|
return typeof o.url != "string" || typeof fetch != "function" ? null : (f, u) => {
|
|
16
16
|
const l = typeof o.getToken == "function" ? o.getToken() : void 0, d = { "Content-Type": "application/json" };
|
package/dist/index.d.ts
CHANGED
|
@@ -3127,6 +3127,17 @@ export declare interface DelegationConsoleViewProps {
|
|
|
3127
3127
|
onNotice?: (message: string) => void;
|
|
3128
3128
|
}
|
|
3129
3129
|
|
|
3130
|
+
export declare function DeliveryAnalyticsView({ className, compactHeader, search, onSearchChange }: {
|
|
3131
|
+
className?: string;
|
|
3132
|
+
/** Host already shows the title (a tab of a page): drop the heading. */
|
|
3133
|
+
compactHeader?: boolean;
|
|
3134
|
+
/** The host's URL query; pass it with `onSearchChange` so drills are links and Back works. */
|
|
3135
|
+
search?: URLSearchParams;
|
|
3136
|
+
onSearchChange?: (next: URLSearchParams, opts: {
|
|
3137
|
+
replace?: boolean;
|
|
3138
|
+
}) => void;
|
|
3139
|
+
}): JSX.Element;
|
|
3140
|
+
|
|
3130
3141
|
export declare function DeliveryChips({ delivery, mailLogUrl, onNavigate, className }: DeliveryChipsProps): JSX.Element;
|
|
3131
3142
|
|
|
3132
3143
|
declare interface DeliveryChipsProps {
|
|
@@ -8298,11 +8309,8 @@ declare interface NotificationActionsProps {
|
|
|
8298
8309
|
className?: string;
|
|
8299
8310
|
}
|
|
8300
8311
|
|
|
8301
|
-
|
|
8302
|
-
|
|
8303
|
-
/** Host already shows the title (a tab of a page): drop the icon and heading. */
|
|
8304
|
-
compactHeader?: boolean;
|
|
8305
|
-
}): JSX.Element;
|
|
8312
|
+
/** @deprecated The old name — kept so existing hosts get the new page. */
|
|
8313
|
+
export declare const NotificationAnalyticsView: typeof DeliveryAnalyticsView;
|
|
8306
8314
|
|
|
8307
8315
|
/**
|
|
8308
8316
|
* The Nivaro notification bell — the same setup the admin uses: badge that
|