@hakam-aldeen-kh/blix 0.4.2 → 0.5.0

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.
@@ -304,7 +304,7 @@ interface ReduxActionMeta {
304
304
  }
305
305
  /** Query/mutation only: the cache row's current lifecycle state. Deliberately
306
306
  * not folded into `MonitorState` — `MonitorState` drives the shared state
307
- * filter and waterfall colour, and pending/success/error covers this fine;
307
+ * filter and row colour, and pending/success/error covers this fine;
308
308
  * the richer status (fresh/stale/fetching/removed) lives here instead. */
309
309
  interface QueryMeta {
310
310
  sub: "query" | "mutation";
@@ -353,14 +353,13 @@ interface MonitorEntry {
353
353
  /**
354
354
  * Start/end as absolute epoch ms (`timeOrigin + startTime`).
355
355
  *
356
- * The waterfall must use these, never `startTime`/`endTime`: those are
357
- * relative to a per-page-load origin, so a persisted entry's `startTime` is
358
- * meaningless against the current load's.
356
+ * Anything comparing two entries in time must use these, never
357
+ * `startTime`/`endTime`: those are relative to a per-page-load origin, so a
358
+ * persisted entry's `startTime` is meaningless against the current load's.
359
359
  */
360
360
  startAbs: number;
361
361
  endAbs?: number;
362
- /** Which page load captured this. Drives the divider rows and the per-load
363
- * waterfall timeline. */
362
+ /** Which page load captured this. Drives the divider rows in the list. */
364
363
  loadId: string;
365
364
  status?: number;
366
365
  state: MonitorState;
@@ -481,10 +480,12 @@ interface MonitorPrefs {
481
480
  dataFormat: string;
482
481
  /** Active top-level section — `"network"` (HTTP) or `"realtime"` (sockets). */
483
482
  section: string;
483
+ /** Sources rail shown as icons only. A deliberate choice, kept separate from
484
+ * the automatic collapse a narrow panel applies — re-widening the panel
485
+ * restores the rail unless the developer collapsed it themselves. */
486
+ railCollapsed: boolean;
484
487
  /** Row height preset: compact | normal | comfy. */
485
488
  density: string;
486
- /** User-resized column widths, in px, keyed by column id. */
487
- columnWidths: Record<string, number>;
488
489
  }
489
490
 
490
491
  /**
@@ -2,12 +2,12 @@ import {
2
2
  attachHttpMonitor,
3
3
  captureEncrypted,
4
4
  tapRealtimeAdapter
5
- } from "../chunk-OQHKPRNI.js";
5
+ } from "../chunk-L2MFAP7B.js";
6
6
  import {
7
7
  createReduxMonitorMiddleware,
8
8
  tapQueryClient,
9
9
  withInitiatorCapture
10
- } from "../chunk-MRTSIXR7.js";
10
+ } from "../chunk-S76WQLND.js";
11
11
  export {
12
12
  attachHttpMonitor,
13
13
  captureEncrypted,
@@ -9,7 +9,7 @@ import {
9
9
  serializeBody,
10
10
  serializeHeaders,
11
11
  truncateForPersist
12
- } from "./chunk-MRTSIXR7.js";
12
+ } from "./chunk-S76WQLND.js";
13
13
 
14
14
  // src/capture/monitorStamp.ts
15
15
  var MONITOR_ID = /* @__PURE__ */ Symbol.for("blix.monitorId");
@@ -54,7 +54,6 @@ var PERSIST_MAX_ENTRY_BYTES = 512 * 1024;
54
54
  var STRING_CAP = 32 * 1024;
55
55
  var ARRAY_CAP = 200;
56
56
  var SEARCH_INDEX_CAP = 64 * 1024;
57
- var PENDING_WINDOW_CAP_MS = 3e4;
58
57
  var TIME_ORIGIN = typeof performance !== "undefined" && typeof performance.timeOrigin === "number" ? performance.timeOrigin : Date.now();
59
58
  var PAGE_LOAD_AT = Date.now();
60
59
  function makeLoadId() {
@@ -98,10 +97,11 @@ var SENSITIVE_HEADERS = /* @__PURE__ */ new Set([
98
97
  "set-cookie",
99
98
  "x-api-key"
100
99
  ]);
100
+ var MASK_SUFFIX = " (masked)";
101
101
  function maskHeaderValue(key, value) {
102
102
  if (!SENSITIVE_HEADERS.has(key.toLowerCase())) return value;
103
103
  if (value.length <= 12) return "\u2022\u2022\u2022\u2022";
104
- return `${value.slice(0, 8)}\u2026${value.slice(-4)} (masked)`;
104
+ return `${value.slice(0, 8)}\u2026${value.slice(-4)}${MASK_SUFFIX}`;
105
105
  }
106
106
  function serializeHeaders(headers) {
107
107
  const out = {};
@@ -1055,10 +1055,11 @@ export {
1055
1055
  PERSIST_MAX_BYTES,
1056
1056
  PERSIST_MAX_ENTRY_BYTES,
1057
1057
  SEARCH_INDEX_CAP,
1058
- PENDING_WINDOW_CAP_MS,
1059
1058
  now,
1060
1059
  getOwner,
1061
1060
  serializeBody,
1061
+ SENSITIVE_HEADERS,
1062
+ MASK_SUFFIX,
1062
1063
  serializeHeaders,
1063
1064
  estimateBytes,
1064
1065
  networkMonitor,
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  attachHttpMonitor,
4
4
  captureEncrypted,
5
5
  tapRealtimeAdapter
6
- } from "./chunk-OQHKPRNI.js";
6
+ } from "./chunk-L2MFAP7B.js";
7
7
  import {
8
8
  BlixContext
9
9
  } from "./chunk-PQIOIMAQ.js";
@@ -12,7 +12,7 @@ import {
12
12
  createReduxMonitorMiddleware,
13
13
  tapQueryClient,
14
14
  withInitiatorCapture
15
- } from "./chunk-MRTSIXR7.js";
15
+ } from "./chunk-S76WQLND.js";
16
16
 
17
17
  // src/ui/Blix.tsx
18
18
  import { lazy, Suspense, useRef } from "react";
@@ -21,7 +21,7 @@ function Blix({ store, apiClient, dbName }) {
21
21
  const panelRef = useRef(null);
22
22
  if (typeof window !== "undefined" && process.env.NODE_ENV === "development") {
23
23
  if (!panelRef.current) {
24
- panelRef.current = lazy(() => import("./DevToolsPanel-TXMT43YN.js"));
24
+ panelRef.current = lazy(() => import("./DevToolsPanel-M4DOTADX.js"));
25
25
  }
26
26
  const Panel = panelRef.current;
27
27
  if (dbName) configureDbName(dbName);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hakam-aldeen-kh/blix",
3
- "version": "0.4.2",
3
+ "version": "0.5.0",
4
4
  "description": "Dev-tools panel for React apps — HTTP, Redux, Query and Realtime monitoring.",
5
5
  "keywords": [
6
6
  "devtools",