@djangocfg/centrifugo 2.1.103 → 2.1.105

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.
Files changed (34) hide show
  1. package/package.json +22 -27
  2. package/src/components/CentrifugoMonitor/CentrifugoMonitor.tsx +1 -1
  3. package/src/components/CentrifugoMonitor/CentrifugoMonitorDialog.tsx +2 -2
  4. package/src/components/CentrifugoMonitor/CentrifugoMonitorWidget.tsx +1 -1
  5. package/src/components/ConnectionStatus/ConnectionStatus.tsx +1 -1
  6. package/src/components/ConnectionStatus/ConnectionStatusCard.tsx +1 -1
  7. package/src/components/MessagesFeed/MessageFilters.tsx +1 -1
  8. package/src/components/MessagesFeed/MessagesFeed.tsx +1 -1
  9. package/src/components/SubscriptionsList/SubscriptionsList.tsx +1 -1
  10. package/src/components/index.ts +2 -0
  11. package/src/debug/ConnectionTab/ConnectionTab.tsx +1 -1
  12. package/src/debug/DebugPanel/DebugPanel.tsx +1 -1
  13. package/src/debug/LogsTab/LogsTab.tsx +1 -1
  14. package/src/debug/SubscriptionsTab/SubscriptionsTab.tsx +1 -1
  15. package/src/hooks/index.ts +2 -0
  16. package/src/index.ts +2 -0
  17. package/dist/components.cjs +0 -871
  18. package/dist/components.cjs.map +0 -1
  19. package/dist/components.d.mts +0 -129
  20. package/dist/components.d.ts +0 -129
  21. package/dist/components.mjs +0 -857
  22. package/dist/components.mjs.map +0 -1
  23. package/dist/hooks.cjs +0 -379
  24. package/dist/hooks.cjs.map +0 -1
  25. package/dist/hooks.d.mts +0 -128
  26. package/dist/hooks.d.ts +0 -128
  27. package/dist/hooks.mjs +0 -374
  28. package/dist/hooks.mjs.map +0 -1
  29. package/dist/index.cjs +0 -3007
  30. package/dist/index.cjs.map +0 -1
  31. package/dist/index.d.mts +0 -838
  32. package/dist/index.d.ts +0 -838
  33. package/dist/index.mjs +0 -2948
  34. package/dist/index.mjs.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@djangocfg/centrifugo",
3
- "version": "2.1.103",
3
+ "version": "2.1.105",
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,24 +29,24 @@
29
29
  "url": "https://github.com/markolofsen/django-cfg/issues"
30
30
  },
31
31
  "license": "MIT",
32
- "main": "./dist/index.cjs",
33
- "module": "./dist/index.mjs",
34
- "types": "./dist/index.d.ts",
32
+ "main": "./src/index.ts",
33
+ "module": "./src/index.ts",
34
+ "types": "./src/index.ts",
35
35
  "exports": {
36
36
  ".": {
37
- "types": "./dist/index.d.ts",
38
- "import": "./dist/index.mjs",
39
- "require": "./dist/index.cjs"
37
+ "types": "./src/index.ts",
38
+ "import": "./src/index.ts",
39
+ "require": "./src/index.ts"
40
40
  },
41
41
  "./components": {
42
- "types": "./dist/components.d.ts",
43
- "import": "./dist/components.mjs",
44
- "require": "./dist/components.cjs"
42
+ "types": "./src/components/index.ts",
43
+ "import": "./src/components/index.ts",
44
+ "require": "./src/components/index.ts"
45
45
  },
46
46
  "./hooks": {
47
- "types": "./dist/hooks.d.ts",
48
- "import": "./dist/hooks.mjs",
49
- "require": "./dist/hooks.cjs"
47
+ "types": "./src/hooks/index.ts",
48
+ "import": "./src/hooks/index.ts",
49
+ "require": "./src/hooks/index.ts"
50
50
  }
51
51
  },
52
52
  "files": [
@@ -56,9 +56,6 @@
56
56
  "LICENSE"
57
57
  ],
58
58
  "scripts": {
59
- "build": "tsup",
60
- "clean": "rm -rf dist",
61
- "dev": "tsup --watch",
62
59
  "check": "tsc --noEmit",
63
60
  "lint": "eslint . --max-warnings 0"
64
61
  },
@@ -66,10 +63,10 @@
66
63
  "centrifuge": "^5.2.2"
67
64
  },
68
65
  "peerDependencies": {
69
- "@djangocfg/api": "^2.1.103",
70
- "@djangocfg/ui-nextjs": "^2.1.103",
71
- "@djangocfg/ui-tools": "^2.1.103",
72
- "@djangocfg/layouts": "^2.1.103",
66
+ "@djangocfg/api": "^2.1.105",
67
+ "@djangocfg/ui-core": "^2.1.105",
68
+ "@djangocfg/ui-tools": "^2.1.105",
69
+ "@djangocfg/layouts": "^2.1.105",
73
70
  "consola": "^3.4.2",
74
71
  "lucide-react": "^0.545.0",
75
72
  "moment": "^2.30.1",
@@ -77,17 +74,15 @@
77
74
  "react-dom": "^19.1.0"
78
75
  },
79
76
  "devDependencies": {
80
- "@djangocfg/api": "^2.1.103",
81
- "@djangocfg/layouts": "^2.1.103",
82
- "@djangocfg/typescript-config": "^2.1.103",
83
- "@djangocfg/ui-core": "^2.1.103",
84
- "@djangocfg/ui-nextjs": "^2.1.103",
85
- "@djangocfg/ui-tools": "^2.1.103",
77
+ "@djangocfg/api": "^2.1.105",
78
+ "@djangocfg/layouts": "^2.1.105",
79
+ "@djangocfg/typescript-config": "^2.1.105",
80
+ "@djangocfg/ui-core": "^2.1.105",
81
+ "@djangocfg/ui-tools": "^2.1.105",
86
82
  "@types/node": "^24.7.2",
87
83
  "@types/react": "^19.1.0",
88
84
  "@types/react-dom": "^19.1.0",
89
85
  "moment": "^2.30.1",
90
- "tsup": "^8.5.0",
91
86
  "typescript": "^5.9.3"
92
87
  },
93
88
  "publishConfig": {
@@ -9,7 +9,7 @@
9
9
 
10
10
  import React from 'react';
11
11
 
12
- import { Tabs, TabsContent, TabsList, TabsTrigger } from '@djangocfg/ui-nextjs';
12
+ import { Tabs, TabsContent, TabsList, TabsTrigger } from '@djangocfg/ui-core/components';
13
13
 
14
14
  import { ConnectionStatus } from '../ConnectionStatus';
15
15
  import { MessagesFeed } from '../MessagesFeed';
@@ -10,10 +10,10 @@
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
+ import { useEventListener } from '@djangocfg/ui-core';
14
14
  import {
15
15
  Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle
16
- } from '@djangocfg/ui-nextjs';
16
+ } from '@djangocfg/ui-core';
17
17
 
18
18
  import { CENTRIFUGO_MONITOR_EVENTS, OpenMonitorDialogPayload} from '../../events';
19
19
  import { CentrifugoMonitor } from './CentrifugoMonitor';
@@ -10,7 +10,7 @@
10
10
  import { Activity, Maximize2 } from 'lucide-react';
11
11
  import React from 'react';
12
12
 
13
- import { Button, Card, CardContent, CardHeader, CardTitle } from '@djangocfg/ui-nextjs';
13
+ import { Button, Card, CardContent, CardHeader, CardTitle } from '@djangocfg/ui-core/components';
14
14
 
15
15
  import { emitOpenMonitorDialog } from '../../events';
16
16
  import { ConnectionStatus } from '../ConnectionStatus';
@@ -11,7 +11,7 @@ import { Clock, Radio, Wifi, WifiOff } from 'lucide-react';
11
11
  import moment from 'moment';
12
12
  import React, { useEffect, useState } from 'react';
13
13
 
14
- import { Badge } from '@djangocfg/ui-nextjs';
14
+ import { Badge } from '@djangocfg/ui-core/components';
15
15
 
16
16
  import { getConsolaLogger } from '../../core/logger/consolaLogger';
17
17
  import { useCentrifugo } from '../../providers/CentrifugoProvider';
@@ -10,7 +10,7 @@
10
10
  import { Wifi, WifiOff } from 'lucide-react';
11
11
  import React from 'react';
12
12
 
13
- import { Card, CardContent, CardHeader, CardTitle } from '@djangocfg/ui-nextjs';
13
+ import { Card, CardContent, CardHeader, CardTitle } from '@djangocfg/ui-core/components';
14
14
 
15
15
  import { emitOpenMonitorDialog } from '../../events';
16
16
  import { useCentrifugo } from '../../providers/CentrifugoProvider';
@@ -9,7 +9,7 @@
9
9
  import { Filter, Search, X } from 'lucide-react';
10
10
  import React from 'react';
11
11
 
12
- import { Badge, Button, Input } from '@djangocfg/ui-nextjs';
12
+ import { Badge, Button, Input } from '@djangocfg/ui-core/components';
13
13
 
14
14
  import type { MessageFilters as MessageFiltersType } from './types';
15
15
 
@@ -15,7 +15,7 @@ import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'
15
15
 
16
16
  import {
17
17
  Badge, Button, Card, CardContent, CardHeader, CardTitle, ScrollArea
18
- } from '@djangocfg/ui-nextjs';
18
+ } from '@djangocfg/ui-core/components';
19
19
 
20
20
  import { useCentrifugo } from '../../providers/CentrifugoProvider';
21
21
  import { MessageFilters as MessageFiltersComponent } from './MessageFilters';
@@ -12,7 +12,7 @@ import React, { useEffect, useState } from 'react';
12
12
 
13
13
  import {
14
14
  Badge, Button, Card, CardContent, CardHeader, CardTitle, ScrollArea
15
- } from '@djangocfg/ui-nextjs';
15
+ } from '@djangocfg/ui-core/components';
16
16
 
17
17
  import { getConsolaLogger } from '../../core/logger/consolaLogger';
18
18
  import { useCentrifugo } from '../../providers/CentrifugoProvider';
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  /**
2
4
  * Centrifugo Components
3
5
  *
@@ -10,7 +10,7 @@ import { Clock, RefreshCw, Wifi, WifiOff } from 'lucide-react';
10
10
 
11
11
  import {
12
12
  Badge, Button, Card, CardContent, CardHeader, CardTitle, Separator
13
- } from '@djangocfg/ui-nextjs';
13
+ } from '@djangocfg/ui-core/components';
14
14
 
15
15
  import { useCentrifugo } from '../../providers/CentrifugoProvider';
16
16
 
@@ -13,7 +13,7 @@ import { useState } from 'react';
13
13
  import {
14
14
  Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle, Tabs, TabsContent, TabsList,
15
15
  TabsTrigger
16
- } from '@djangocfg/ui-nextjs';
16
+ } from '@djangocfg/ui-core/components';
17
17
 
18
18
  import { ConnectionTab } from '../ConnectionTab';
19
19
  import { LogsTab } from '../LogsTab';
@@ -14,7 +14,7 @@ import { useEffect, useRef, useState } from 'react';
14
14
  import {
15
15
  Badge, Button, Card, CardContent, CardHeader, CardTitle, Input, ScrollArea, Select,
16
16
  SelectContent, SelectItem, SelectTrigger, SelectValue
17
- } from '@djangocfg/ui-nextjs';
17
+ } from '@djangocfg/ui-core/components';
18
18
  import { PrettyCode } from '@djangocfg/ui-tools';
19
19
 
20
20
  import { useLogs } from '../../providers/LogsProvider';
@@ -11,7 +11,7 @@ import { Fragment } from 'react';
11
11
 
12
12
  import {
13
13
  Badge, Button, Card, CardContent, CardHeader, CardTitle, ScrollArea, Separator
14
- } from '@djangocfg/ui-nextjs';
14
+ } from '@djangocfg/ui-core/components';
15
15
 
16
16
  import { useCentrifugo } from '../../providers/CentrifugoProvider';
17
17
 
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  /**
2
4
  * Hooks Module
3
5
  */
package/src/index.ts CHANGED
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  /**
2
4
  * @djangocfg/centrifugo
3
5
  *