@djangocfg/centrifugo 2.1.101 → 2.1.102

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/centrifugo",
3
- "version": "2.1.101",
3
+ "version": "2.1.102",
4
4
  "description": "Production-ready Centrifugo WebSocket client for React with real-time subscriptions, RPC patterns, and connection state management",
5
5
  "keywords": [
6
6
  "centrifugo",
@@ -29,21 +29,36 @@
29
29
  "url": "https://github.com/markolofsen/django-cfg/issues"
30
30
  },
31
31
  "license": "MIT",
32
- "main": "./src/index.ts",
33
- "types": "./src/index.ts",
32
+ "main": "./dist/index.cjs",
33
+ "module": "./dist/index.mjs",
34
+ "types": "./dist/index.d.ts",
34
35
  "exports": {
35
- ".": "./src/index.ts",
36
- "./components": "./src/components/index.ts",
37
- "./hooks": "./src/hooks/index.ts",
38
- "./context": "./src/context/index.ts",
39
- "./types": "./src/types/index.ts"
36
+ ".": {
37
+ "types": "./dist/index.d.ts",
38
+ "import": "./dist/index.mjs",
39
+ "require": "./dist/index.cjs"
40
+ },
41
+ "./components": {
42
+ "types": "./dist/components.d.ts",
43
+ "import": "./dist/components.mjs",
44
+ "require": "./dist/components.cjs"
45
+ },
46
+ "./hooks": {
47
+ "types": "./dist/hooks.d.ts",
48
+ "import": "./dist/hooks.mjs",
49
+ "require": "./dist/hooks.cjs"
50
+ }
40
51
  },
41
52
  "files": [
53
+ "dist",
42
54
  "src",
43
55
  "README.md",
44
56
  "LICENSE"
45
57
  ],
46
58
  "scripts": {
59
+ "build": "tsup",
60
+ "clean": "rm -rf dist",
61
+ "dev": "tsup --watch",
47
62
  "check": "tsc --noEmit",
48
63
  "lint": "eslint . --max-warnings 0"
49
64
  },
@@ -51,10 +66,10 @@
51
66
  "centrifuge": "^5.2.2"
52
67
  },
53
68
  "peerDependencies": {
54
- "@djangocfg/api": "^2.1.101",
55
- "@djangocfg/ui-nextjs": "^2.1.101",
56
- "@djangocfg/ui-tools": "^2.1.101",
57
- "@djangocfg/layouts": "^2.1.101",
69
+ "@djangocfg/api": "^2.1.102",
70
+ "@djangocfg/ui-nextjs": "^2.1.102",
71
+ "@djangocfg/ui-tools": "^2.1.102",
72
+ "@djangocfg/layouts": "^2.1.102",
58
73
  "consola": "^3.4.2",
59
74
  "lucide-react": "^0.545.0",
60
75
  "moment": "^2.30.1",
@@ -62,10 +77,17 @@
62
77
  "react-dom": "^19.1.0"
63
78
  },
64
79
  "devDependencies": {
65
- "@djangocfg/typescript-config": "^2.1.101",
80
+ "@djangocfg/api": "^2.1.102",
81
+ "@djangocfg/layouts": "^2.1.102",
82
+ "@djangocfg/typescript-config": "^2.1.102",
83
+ "@djangocfg/ui-core": "^2.1.102",
84
+ "@djangocfg/ui-nextjs": "^2.1.102",
85
+ "@djangocfg/ui-tools": "^2.1.102",
86
+ "@types/node": "^24.7.2",
66
87
  "@types/react": "^19.1.0",
67
88
  "@types/react-dom": "^19.1.0",
68
89
  "moment": "^2.30.1",
90
+ "tsup": "^8.5.0",
69
91
  "typescript": "^5.9.3"
70
92
  },
71
93
  "publishConfig": {
@@ -10,8 +10,9 @@
10
10
  import { Activity } from 'lucide-react';
11
11
  import React, { useState } from 'react';
12
12
 
13
+ import { useEventListener } from '@djangocfg/ui-core/hooks';
13
14
  import {
14
- Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle, useEventListener
15
+ Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle
15
16
  } from '@djangocfg/ui-nextjs';
16
17
 
17
18
  import { CENTRIFUGO_MONITOR_EVENTS, OpenMonitorDialogPayload} from '../../events';
package/src/events.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  * All events use single 'centrifugo' CustomEvent with type discriminator.
6
6
  */
7
7
 
8
- import { events } from '@djangocfg/ui-nextjs';
8
+ import { events } from '@djangocfg/ui-core/hooks';
9
9
 
10
10
  // ─────────────────────────────────────────────────────────────────────────
11
11
  // Event Constants