@djangocfg/centrifugo 2.1.227 → 2.1.228
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 +10 -10
- package/src/components/CentrifugoMonitor/CentrifugoMonitor.tsx +2 -2
- package/src/components/CentrifugoMonitor/CentrifugoMonitorDialog.tsx +2 -2
- package/src/components/CentrifugoMonitor/CentrifugoMonitorFAB.tsx +2 -2
- package/src/components/CentrifugoMonitor/CentrifugoMonitorWidget.tsx +2 -2
- package/src/components/ConnectionStatus/ConnectionStatus.tsx +2 -2
- package/src/components/MessagesFeed/MessageFilters.tsx +2 -2
- package/src/components/MessagesFeed/MessagesFeed.tsx +2 -2
- package/src/components/SubscriptionsList/SubscriptionsList.tsx +2 -2
- package/src/debug/DebugPanel/DebugPanel.tsx +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@djangocfg/centrifugo",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.228",
|
|
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",
|
|
@@ -63,10 +63,10 @@
|
|
|
63
63
|
"centrifuge": "^5.2.2"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
|
-
"@djangocfg/api": "^2.1.
|
|
67
|
-
"@djangocfg/i18n": "^2.1.
|
|
68
|
-
"@djangocfg/ui-core": "^2.1.
|
|
69
|
-
"@djangocfg/ui-tools": "^2.1.
|
|
66
|
+
"@djangocfg/api": "^2.1.228",
|
|
67
|
+
"@djangocfg/i18n": "^2.1.228",
|
|
68
|
+
"@djangocfg/ui-core": "^2.1.228",
|
|
69
|
+
"@djangocfg/ui-tools": "^2.1.228",
|
|
70
70
|
"consola": "^3.4.2",
|
|
71
71
|
"lucide-react": "^0.545.0",
|
|
72
72
|
"moment": "^2.30.1",
|
|
@@ -74,11 +74,11 @@
|
|
|
74
74
|
"react-dom": "^19.1.0"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
|
-
"@djangocfg/api": "^2.1.
|
|
78
|
-
"@djangocfg/i18n": "^2.1.
|
|
79
|
-
"@djangocfg/typescript-config": "^2.1.
|
|
80
|
-
"@djangocfg/ui-core": "^2.1.
|
|
81
|
-
"@djangocfg/ui-tools": "^2.1.
|
|
77
|
+
"@djangocfg/api": "^2.1.228",
|
|
78
|
+
"@djangocfg/i18n": "^2.1.228",
|
|
79
|
+
"@djangocfg/typescript-config": "^2.1.228",
|
|
80
|
+
"@djangocfg/ui-core": "^2.1.228",
|
|
81
|
+
"@djangocfg/ui-tools": "^2.1.228",
|
|
82
82
|
"@types/node": "^24.7.2",
|
|
83
83
|
"@types/react": "^19.1.0",
|
|
84
84
|
"@types/react-dom": "^19.1.0",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
import React, { useMemo } from 'react';
|
|
11
11
|
|
|
12
|
-
import {
|
|
12
|
+
import { useAppT } from '@djangocfg/i18n';
|
|
13
13
|
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@djangocfg/ui-core/components';
|
|
14
14
|
|
|
15
15
|
import { ConnectionStatus } from '../ConnectionStatus';
|
|
@@ -55,7 +55,7 @@ export function CentrifugoMonitor({
|
|
|
55
55
|
onSubscriptionClick,
|
|
56
56
|
className = '',
|
|
57
57
|
}: CentrifugoMonitorProps) {
|
|
58
|
-
const t =
|
|
58
|
+
const t = useAppT();
|
|
59
59
|
|
|
60
60
|
const labels = useMemo(() => ({
|
|
61
61
|
connection: t('centrifugo.tabs.connection'),
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
import { Activity } from 'lucide-react';
|
|
11
11
|
import React, { useMemo, useState } from 'react';
|
|
12
12
|
|
|
13
|
-
import {
|
|
13
|
+
import { useAppT } from '@djangocfg/i18n';
|
|
14
14
|
import { useEventListener } from '@djangocfg/ui-core';
|
|
15
15
|
import {
|
|
16
16
|
Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle
|
|
@@ -24,7 +24,7 @@ import { CentrifugoMonitor } from './CentrifugoMonitor';
|
|
|
24
24
|
// ─────────────────────────────────────────────────────────────────────────
|
|
25
25
|
|
|
26
26
|
export function CentrifugoMonitorDialog() {
|
|
27
|
-
const t =
|
|
27
|
+
const t = useAppT();
|
|
28
28
|
const [open, setOpen] = useState(false);
|
|
29
29
|
const [variant, setVariant] = useState<'compact' | 'full' | 'minimal'>('full');
|
|
30
30
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
import { Activity } from 'lucide-react';
|
|
11
11
|
import React, { useMemo } from 'react';
|
|
12
12
|
|
|
13
|
-
import {
|
|
13
|
+
import { useAppT } from '@djangocfg/i18n';
|
|
14
14
|
|
|
15
15
|
import { emitOpenMonitorDialog, OpenMonitorDialogPayload} from '../../events';
|
|
16
16
|
|
|
@@ -33,7 +33,7 @@ export function CentrifugoMonitorFAB({
|
|
|
33
33
|
size = 'md',
|
|
34
34
|
variant = 'full',
|
|
35
35
|
}: CentrifugoMonitorFABProps) {
|
|
36
|
-
const t =
|
|
36
|
+
const t = useAppT();
|
|
37
37
|
|
|
38
38
|
const labels = useMemo(() => ({
|
|
39
39
|
openMonitor: t('centrifugo.monitor.openMonitor'),
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
import { Activity, Maximize2 } from 'lucide-react';
|
|
11
11
|
import React, { useMemo } from 'react';
|
|
12
12
|
|
|
13
|
-
import {
|
|
13
|
+
import { useAppT } from '@djangocfg/i18n';
|
|
14
14
|
import { Button, Card, CardContent, CardHeader, CardTitle } from '@djangocfg/ui-core/components';
|
|
15
15
|
|
|
16
16
|
import { emitOpenMonitorDialog } from '../../events';
|
|
@@ -35,7 +35,7 @@ export function CentrifugoMonitorWidget({
|
|
|
35
35
|
showExpandButton = true,
|
|
36
36
|
className = '',
|
|
37
37
|
}: CentrifugoMonitorWidgetProps) {
|
|
38
|
-
const t =
|
|
38
|
+
const t = useAppT();
|
|
39
39
|
|
|
40
40
|
const labels = useMemo(() => ({
|
|
41
41
|
widgetTitle: t('centrifugo.monitor.widgetTitle'),
|
|
@@ -11,7 +11,7 @@ import { Clock, Radio, Wifi, WifiOff } from 'lucide-react';
|
|
|
11
11
|
import moment from 'moment';
|
|
12
12
|
import React, { useEffect, useMemo, useState } from 'react';
|
|
13
13
|
|
|
14
|
-
import {
|
|
14
|
+
import { useAppT } from '@djangocfg/i18n';
|
|
15
15
|
import {
|
|
16
16
|
Badge,
|
|
17
17
|
Popover,
|
|
@@ -48,7 +48,7 @@ export function ConnectionStatus({
|
|
|
48
48
|
className = '',
|
|
49
49
|
dotSize = 'md',
|
|
50
50
|
}: ConnectionStatusProps) {
|
|
51
|
-
const t =
|
|
51
|
+
const t = useAppT();
|
|
52
52
|
const { isConnected, client } = useCentrifugo();
|
|
53
53
|
const [connectionTime, setConnectionTime] = useState<moment.Moment | null>(null);
|
|
54
54
|
const [uptime, setUptime] = useState<string>('');
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import { Filter, Search, X } from 'lucide-react';
|
|
10
10
|
import React, { useMemo } from 'react';
|
|
11
11
|
|
|
12
|
-
import {
|
|
12
|
+
import { useAppT } from '@djangocfg/i18n';
|
|
13
13
|
import { Badge, Button, Input } from '@djangocfg/ui-core/components';
|
|
14
14
|
|
|
15
15
|
import type { MessageFilters as MessageFiltersType } from './types';
|
|
@@ -35,7 +35,7 @@ export function MessageFilters({
|
|
|
35
35
|
autoScroll,
|
|
36
36
|
onAutoScrollChange,
|
|
37
37
|
}: MessageFiltersProps) {
|
|
38
|
-
const t =
|
|
38
|
+
const t = useAppT();
|
|
39
39
|
|
|
40
40
|
const labels = useMemo(() => ({
|
|
41
41
|
title: t('centrifugo.filters.title'),
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import moment from 'moment';
|
|
14
14
|
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
15
15
|
|
|
16
|
-
import {
|
|
16
|
+
import { useAppT } from '@djangocfg/i18n';
|
|
17
17
|
import {
|
|
18
18
|
Badge, Button, Card, CardContent, CardHeader, CardTitle, ScrollArea
|
|
19
19
|
} from '@djangocfg/ui-core/components';
|
|
@@ -36,7 +36,7 @@ export function MessagesFeed({
|
|
|
36
36
|
onMessageClick,
|
|
37
37
|
className = '',
|
|
38
38
|
}: MessagesFeedProps) {
|
|
39
|
-
const t =
|
|
39
|
+
const t = useAppT();
|
|
40
40
|
const { client } = useCentrifugo();
|
|
41
41
|
|
|
42
42
|
const labels = useMemo(() => ({
|
|
@@ -10,7 +10,7 @@ import { SubscriptionState } from 'centrifuge';
|
|
|
10
10
|
import { Radio, RefreshCw, Trash2 } from 'lucide-react';
|
|
11
11
|
import React, { useEffect, useMemo, useState } from 'react';
|
|
12
12
|
|
|
13
|
-
import {
|
|
13
|
+
import { useAppT } from '@djangocfg/i18n';
|
|
14
14
|
import {
|
|
15
15
|
Badge, Button, Card, CardContent, CardHeader, CardTitle, ScrollArea
|
|
16
16
|
} from '@djangocfg/ui-core/components';
|
|
@@ -44,7 +44,7 @@ export function SubscriptionsList({
|
|
|
44
44
|
onSubscriptionClick,
|
|
45
45
|
className = '',
|
|
46
46
|
}: SubscriptionsListProps) {
|
|
47
|
-
const t =
|
|
47
|
+
const t = useAppT();
|
|
48
48
|
const { isConnected, client } = useCentrifugo();
|
|
49
49
|
const [subscriptions, setSubscriptions] = useState<SubscriptionItem[]>([]);
|
|
50
50
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
import { Bug } from 'lucide-react';
|
|
11
11
|
import { useMemo, useState } from 'react';
|
|
12
12
|
|
|
13
|
-
import {
|
|
13
|
+
import { useAppT } from '@djangocfg/i18n';
|
|
14
14
|
import {
|
|
15
15
|
Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle, Tabs, TabsContent, TabsList,
|
|
16
16
|
TabsTrigger
|
|
@@ -25,7 +25,7 @@ import { SubscriptionsTab } from '../SubscriptionsTab';
|
|
|
25
25
|
// ─────────────────────────────────────────────────────────────────────────
|
|
26
26
|
|
|
27
27
|
export function DebugPanel() {
|
|
28
|
-
const t =
|
|
28
|
+
const t = useAppT();
|
|
29
29
|
const [isOpen, setIsOpen] = useState(false);
|
|
30
30
|
const [activeTab, setActiveTab] = useState('connection');
|
|
31
31
|
|