@djangocfg/devtools 2.1.581 → 2.1.583

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@djangocfg/devtools",
3
- "version": "2.1.581",
3
+ "version": "2.1.583",
4
4
  "description": "Frontend devtools for django-cfg apps: error/console capture with backend ingest, plus a floating debug panel. One package, one event stream.",
5
5
  "keywords": [
6
6
  "django",
@@ -51,16 +51,18 @@
51
51
  "test:watch": "vitest"
52
52
  },
53
53
  "peerDependencies": {
54
- "@djangocfg/ui-core": "^2.1.581",
54
+ "@djangocfg/api": "^2.1.583",
55
+ "@djangocfg/ui-core": "^2.1.583",
55
56
  "lucide-react": ">=0.400.0",
56
57
  "react": "^19.0.0",
57
58
  "react-dom": "^19.0.0",
58
59
  "zustand": "^5.0.0"
59
60
  },
60
61
  "devDependencies": {
61
- "@djangocfg/eslint-config": "^2.1.581",
62
- "@djangocfg/typescript-config": "^2.1.581",
63
- "@djangocfg/ui-core": "^2.1.581",
62
+ "@djangocfg/api": "^2.1.583",
63
+ "@djangocfg/eslint-config": "^2.1.583",
64
+ "@djangocfg/typescript-config": "^2.1.583",
65
+ "@djangocfg/ui-core": "^2.1.583",
64
66
  "@storybook/react-vite": "^10.5.0",
65
67
  "@types/node": "^25.9.5",
66
68
  "@types/react": "19.2.15",
package/src/internal.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { CFG_KEYS } from '@djangocfg/api/storage'
1
2
  /**
2
3
  * Internal utilities: environment, session identity, fingerprinting, dedupe.
3
4
  */
@@ -21,9 +22,8 @@ export const DEFAULT_FLUSH_INTERVAL = 5_000
21
22
  export const DEFAULT_MAX_BUFFER = 20
22
23
 
23
24
  // ─── Session identity ────────────────────────────────────────────────────────
24
- // Key kept from @djangocfg/monitor so existing visitors keep their session id.
25
25
 
26
- const SESSION_KEY = 'fm_session_id'
26
+ const SESSION_KEY = CFG_KEYS.monitorSessionId.key
27
27
  const COOKIE_MAX_AGE = 60 * 60 * 24 * 365
28
28
 
29
29
  function generateUUID(): string {
@@ -11,8 +11,9 @@
11
11
  import { useEffect, useState } from 'react'
12
12
 
13
13
  import { isDevelopment } from './internal'
14
+ import { CFG_KEYS } from '@djangocfg/api/storage'
14
15
 
15
- const LS_KEY = '__debug_mode__'
16
+ const LS_KEY = CFG_KEYS.monitorDebug.key
16
17
 
17
18
  function readStored(): boolean {
18
19
  try {