@djangocfg/ext-support 1.0.7 → 1.0.8
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/dist/config.cjs +2 -1
- package/dist/config.js +2 -1
- package/dist/hooks.cjs +6 -11
- package/dist/hooks.js +6 -11
- package/dist/index.cjs +6 -11
- package/dist/index.js +6 -11
- package/package.json +8 -7
- package/src/layouts/SupportLayout/components/MessageInput.tsx +2 -9
- package/src/layouts/SupportLayout/components/TicketCard.tsx +2 -1
package/dist/config.cjs
CHANGED
|
@@ -27,7 +27,7 @@ var import_ext_base = require("@djangocfg/ext-base");
|
|
|
27
27
|
// package.json
|
|
28
28
|
var package_default = {
|
|
29
29
|
name: "@djangocfg/ext-support",
|
|
30
|
-
version: "1.0.
|
|
30
|
+
version: "1.0.8",
|
|
31
31
|
description: "Support ticket system extension for DjangoCFG",
|
|
32
32
|
keywords: [
|
|
33
33
|
"django",
|
|
@@ -88,6 +88,7 @@ var package_default = {
|
|
|
88
88
|
peerDependencies: {
|
|
89
89
|
"@djangocfg/api": "workspace:*",
|
|
90
90
|
"@djangocfg/ext-base": "workspace:*",
|
|
91
|
+
"@djangocfg/ui-core": "workspace:*",
|
|
91
92
|
"@djangocfg/ui-nextjs": "workspace:*",
|
|
92
93
|
consola: "^3.4.2",
|
|
93
94
|
"lucide-react": "^0.545.0",
|
package/dist/config.js
CHANGED
|
@@ -4,7 +4,7 @@ import { createExtensionConfig } from "@djangocfg/ext-base";
|
|
|
4
4
|
// package.json
|
|
5
5
|
var package_default = {
|
|
6
6
|
name: "@djangocfg/ext-support",
|
|
7
|
-
version: "1.0.
|
|
7
|
+
version: "1.0.8",
|
|
8
8
|
description: "Support ticket system extension for DjangoCFG",
|
|
9
9
|
keywords: [
|
|
10
10
|
"django",
|
|
@@ -65,6 +65,7 @@ var package_default = {
|
|
|
65
65
|
peerDependencies: {
|
|
66
66
|
"@djangocfg/api": "workspace:*",
|
|
67
67
|
"@djangocfg/ext-base": "workspace:*",
|
|
68
|
+
"@djangocfg/ui-core": "workspace:*",
|
|
68
69
|
"@djangocfg/ui-nextjs": "workspace:*",
|
|
69
70
|
consola: "^3.4.2",
|
|
70
71
|
"lucide-react": "^0.545.0",
|
package/dist/hooks.cjs
CHANGED
|
@@ -10,6 +10,7 @@ var uiNextjs = require('@djangocfg/ui-nextjs');
|
|
|
10
10
|
var useSWR = require('swr');
|
|
11
11
|
var jsxRuntime = require('react/jsx-runtime');
|
|
12
12
|
var moment2 = require('moment');
|
|
13
|
+
var lib = require('@djangocfg/ui-core/lib');
|
|
13
14
|
var auth = require('@djangocfg/api/auth');
|
|
14
15
|
var useSWRInfinite = require('swr/infinite');
|
|
15
16
|
var reactHookForm = require('react-hook-form');
|
|
@@ -1817,7 +1818,7 @@ var TicketCard = ({ ticket, isSelected, onClick }) => {
|
|
|
1817
1818
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1818
1819
|
uiNextjs.Card,
|
|
1819
1820
|
{
|
|
1820
|
-
className:
|
|
1821
|
+
className: lib.cn(
|
|
1821
1822
|
"cursor-pointer transition-all duration-200 ease-out",
|
|
1822
1823
|
"hover:bg-accent/50 hover:shadow-md hover:scale-[1.02]",
|
|
1823
1824
|
"active:scale-[0.98]",
|
|
@@ -2402,17 +2403,10 @@ var MessageInput = () => {
|
|
|
2402
2403
|
try {
|
|
2403
2404
|
await sendMessage(message.trim());
|
|
2404
2405
|
setMessage("");
|
|
2405
|
-
toast(
|
|
2406
|
-
title: "Success",
|
|
2407
|
-
description: "Message sent successfully"
|
|
2408
|
-
});
|
|
2406
|
+
toast.success("Message sent successfully");
|
|
2409
2407
|
} catch (error) {
|
|
2410
2408
|
supportLogger.error("Failed to send message:", error);
|
|
2411
|
-
toast(
|
|
2412
|
-
title: "Error",
|
|
2413
|
-
description: "Failed to send message",
|
|
2414
|
-
variant: "destructive"
|
|
2415
|
-
});
|
|
2409
|
+
toast.error("Failed to send message");
|
|
2416
2410
|
} finally {
|
|
2417
2411
|
setIsSending(false);
|
|
2418
2412
|
}
|
|
@@ -2633,7 +2627,7 @@ var SupportLayout = () => {
|
|
|
2633
2627
|
// package.json
|
|
2634
2628
|
var package_default = {
|
|
2635
2629
|
name: "@djangocfg/ext-support",
|
|
2636
|
-
version: "1.0.
|
|
2630
|
+
version: "1.0.8",
|
|
2637
2631
|
description: "Support ticket system extension for DjangoCFG",
|
|
2638
2632
|
keywords: [
|
|
2639
2633
|
"django",
|
|
@@ -2694,6 +2688,7 @@ var package_default = {
|
|
|
2694
2688
|
peerDependencies: {
|
|
2695
2689
|
"@djangocfg/api": "workspace:*",
|
|
2696
2690
|
"@djangocfg/ext-base": "workspace:*",
|
|
2691
|
+
"@djangocfg/ui-core": "workspace:*",
|
|
2697
2692
|
"@djangocfg/ui-nextjs": "workspace:*",
|
|
2698
2693
|
consola: "^3.4.2",
|
|
2699
2694
|
"lucide-react": "^0.545.0",
|
package/dist/hooks.js
CHANGED
|
@@ -4,10 +4,11 @@ import { z } from 'zod';
|
|
|
4
4
|
import { createExtensionAPI } from '@djangocfg/ext-base/api';
|
|
5
5
|
import { Clock, MessageSquare, Loader2, Send, Plus, Headphones, User, ArrowLeft, LifeBuoy } from 'lucide-react';
|
|
6
6
|
import React7, { createContext, useContext, useState, useCallback, useEffect, useRef } from 'react';
|
|
7
|
-
import { Card,
|
|
7
|
+
import { Card, CardContent, Badge, Skeleton, ScrollArea, Button, useToast, Textarea, Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription, Form, FormField, FormItem, FormLabel, FormControl, Input, FormMessage, Avatar, AvatarImage, AvatarFallback, ResizablePanelGroup, ResizablePanel, ResizableHandle } from '@djangocfg/ui-nextjs';
|
|
8
8
|
import useSWR, { useSWRConfig } from 'swr';
|
|
9
9
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
10
10
|
import moment2 from 'moment';
|
|
11
|
+
import { cn } from '@djangocfg/ui-core/lib';
|
|
11
12
|
import { useAuth } from '@djangocfg/api/auth';
|
|
12
13
|
import useSWRInfinite from 'swr/infinite';
|
|
13
14
|
import { useForm } from 'react-hook-form';
|
|
@@ -2392,17 +2393,10 @@ var MessageInput = () => {
|
|
|
2392
2393
|
try {
|
|
2393
2394
|
await sendMessage(message.trim());
|
|
2394
2395
|
setMessage("");
|
|
2395
|
-
toast(
|
|
2396
|
-
title: "Success",
|
|
2397
|
-
description: "Message sent successfully"
|
|
2398
|
-
});
|
|
2396
|
+
toast.success("Message sent successfully");
|
|
2399
2397
|
} catch (error) {
|
|
2400
2398
|
supportLogger.error("Failed to send message:", error);
|
|
2401
|
-
toast(
|
|
2402
|
-
title: "Error",
|
|
2403
|
-
description: "Failed to send message",
|
|
2404
|
-
variant: "destructive"
|
|
2405
|
-
});
|
|
2399
|
+
toast.error("Failed to send message");
|
|
2406
2400
|
} finally {
|
|
2407
2401
|
setIsSending(false);
|
|
2408
2402
|
}
|
|
@@ -2623,7 +2617,7 @@ var SupportLayout = () => {
|
|
|
2623
2617
|
// package.json
|
|
2624
2618
|
var package_default = {
|
|
2625
2619
|
name: "@djangocfg/ext-support",
|
|
2626
|
-
version: "1.0.
|
|
2620
|
+
version: "1.0.8",
|
|
2627
2621
|
description: "Support ticket system extension for DjangoCFG",
|
|
2628
2622
|
keywords: [
|
|
2629
2623
|
"django",
|
|
@@ -2684,6 +2678,7 @@ var package_default = {
|
|
|
2684
2678
|
peerDependencies: {
|
|
2685
2679
|
"@djangocfg/api": "workspace:*",
|
|
2686
2680
|
"@djangocfg/ext-base": "workspace:*",
|
|
2681
|
+
"@djangocfg/ui-core": "workspace:*",
|
|
2687
2682
|
"@djangocfg/ui-nextjs": "workspace:*",
|
|
2688
2683
|
consola: "^3.4.2",
|
|
2689
2684
|
"lucide-react": "^0.545.0",
|
package/dist/index.cjs
CHANGED
|
@@ -10,6 +10,7 @@ var uiNextjs = require('@djangocfg/ui-nextjs');
|
|
|
10
10
|
var useSWR = require('swr');
|
|
11
11
|
var jsxRuntime = require('react/jsx-runtime');
|
|
12
12
|
var moment2 = require('moment');
|
|
13
|
+
var lib = require('@djangocfg/ui-core/lib');
|
|
13
14
|
var auth = require('@djangocfg/api/auth');
|
|
14
15
|
var useSWRInfinite = require('swr/infinite');
|
|
15
16
|
var reactHookForm = require('react-hook-form');
|
|
@@ -1817,7 +1818,7 @@ var TicketCard = ({ ticket, isSelected, onClick }) => {
|
|
|
1817
1818
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1818
1819
|
uiNextjs.Card,
|
|
1819
1820
|
{
|
|
1820
|
-
className:
|
|
1821
|
+
className: lib.cn(
|
|
1821
1822
|
"cursor-pointer transition-all duration-200 ease-out",
|
|
1822
1823
|
"hover:bg-accent/50 hover:shadow-md hover:scale-[1.02]",
|
|
1823
1824
|
"active:scale-[0.98]",
|
|
@@ -2402,17 +2403,10 @@ var MessageInput = () => {
|
|
|
2402
2403
|
try {
|
|
2403
2404
|
await sendMessage(message.trim());
|
|
2404
2405
|
setMessage("");
|
|
2405
|
-
toast(
|
|
2406
|
-
title: "Success",
|
|
2407
|
-
description: "Message sent successfully"
|
|
2408
|
-
});
|
|
2406
|
+
toast.success("Message sent successfully");
|
|
2409
2407
|
} catch (error) {
|
|
2410
2408
|
supportLogger.error("Failed to send message:", error);
|
|
2411
|
-
toast(
|
|
2412
|
-
title: "Error",
|
|
2413
|
-
description: "Failed to send message",
|
|
2414
|
-
variant: "destructive"
|
|
2415
|
-
});
|
|
2409
|
+
toast.error("Failed to send message");
|
|
2416
2410
|
} finally {
|
|
2417
2411
|
setIsSending(false);
|
|
2418
2412
|
}
|
|
@@ -2633,7 +2627,7 @@ var SupportLayout = () => {
|
|
|
2633
2627
|
// package.json
|
|
2634
2628
|
var package_default = {
|
|
2635
2629
|
name: "@djangocfg/ext-support",
|
|
2636
|
-
version: "1.0.
|
|
2630
|
+
version: "1.0.8",
|
|
2637
2631
|
description: "Support ticket system extension for DjangoCFG",
|
|
2638
2632
|
keywords: [
|
|
2639
2633
|
"django",
|
|
@@ -2694,6 +2688,7 @@ var package_default = {
|
|
|
2694
2688
|
peerDependencies: {
|
|
2695
2689
|
"@djangocfg/api": "workspace:*",
|
|
2696
2690
|
"@djangocfg/ext-base": "workspace:*",
|
|
2691
|
+
"@djangocfg/ui-core": "workspace:*",
|
|
2697
2692
|
"@djangocfg/ui-nextjs": "workspace:*",
|
|
2698
2693
|
consola: "^3.4.2",
|
|
2699
2694
|
"lucide-react": "^0.545.0",
|
package/dist/index.js
CHANGED
|
@@ -4,10 +4,11 @@ import { z } from 'zod';
|
|
|
4
4
|
import { createExtensionAPI } from '@djangocfg/ext-base/api';
|
|
5
5
|
import { ArrowLeft, LifeBuoy, Plus, MessageSquare, Loader2, Send, Headphones, User, Clock } from 'lucide-react';
|
|
6
6
|
import React7, { createContext, useState, useCallback, useEffect, useContext, useRef } from 'react';
|
|
7
|
-
import { Button, ResizablePanelGroup, ResizablePanel, ResizableHandle, Skeleton, ScrollArea, useToast, Textarea, Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription, Form, FormField, FormItem, FormLabel, FormControl, Input, FormMessage, Avatar, AvatarImage, AvatarFallback, Card, CardContent,
|
|
7
|
+
import { Button, ResizablePanelGroup, ResizablePanel, ResizableHandle, Skeleton, ScrollArea, useToast, Textarea, Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription, Form, FormField, FormItem, FormLabel, FormControl, Input, FormMessage, Avatar, AvatarImage, AvatarFallback, Card, CardContent, Badge } from '@djangocfg/ui-nextjs';
|
|
8
8
|
import useSWR, { useSWRConfig } from 'swr';
|
|
9
9
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
10
10
|
import moment2 from 'moment';
|
|
11
|
+
import { cn } from '@djangocfg/ui-core/lib';
|
|
11
12
|
import { useAuth } from '@djangocfg/api/auth';
|
|
12
13
|
import useSWRInfinite from 'swr/infinite';
|
|
13
14
|
import { useForm } from 'react-hook-form';
|
|
@@ -2392,17 +2393,10 @@ var MessageInput = () => {
|
|
|
2392
2393
|
try {
|
|
2393
2394
|
await sendMessage(message.trim());
|
|
2394
2395
|
setMessage("");
|
|
2395
|
-
toast(
|
|
2396
|
-
title: "Success",
|
|
2397
|
-
description: "Message sent successfully"
|
|
2398
|
-
});
|
|
2396
|
+
toast.success("Message sent successfully");
|
|
2399
2397
|
} catch (error) {
|
|
2400
2398
|
supportLogger.error("Failed to send message:", error);
|
|
2401
|
-
toast(
|
|
2402
|
-
title: "Error",
|
|
2403
|
-
description: "Failed to send message",
|
|
2404
|
-
variant: "destructive"
|
|
2405
|
-
});
|
|
2399
|
+
toast.error("Failed to send message");
|
|
2406
2400
|
} finally {
|
|
2407
2401
|
setIsSending(false);
|
|
2408
2402
|
}
|
|
@@ -2623,7 +2617,7 @@ var SupportLayout = () => {
|
|
|
2623
2617
|
// package.json
|
|
2624
2618
|
var package_default = {
|
|
2625
2619
|
name: "@djangocfg/ext-support",
|
|
2626
|
-
version: "1.0.
|
|
2620
|
+
version: "1.0.8",
|
|
2627
2621
|
description: "Support ticket system extension for DjangoCFG",
|
|
2628
2622
|
keywords: [
|
|
2629
2623
|
"django",
|
|
@@ -2684,6 +2678,7 @@ var package_default = {
|
|
|
2684
2678
|
peerDependencies: {
|
|
2685
2679
|
"@djangocfg/api": "workspace:*",
|
|
2686
2680
|
"@djangocfg/ext-base": "workspace:*",
|
|
2681
|
+
"@djangocfg/ui-core": "workspace:*",
|
|
2687
2682
|
"@djangocfg/ui-nextjs": "workspace:*",
|
|
2688
2683
|
consola: "^3.4.2",
|
|
2689
2684
|
"lucide-react": "^0.545.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@djangocfg/ext-support",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "Support ticket system extension for DjangoCFG",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"django",
|
|
@@ -59,9 +59,10 @@
|
|
|
59
59
|
"check": "tsc --noEmit"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
|
-
"@djangocfg/api": "^2.1.
|
|
63
|
-
"@djangocfg/ext-base": "^1.0.
|
|
64
|
-
"@djangocfg/ui-
|
|
62
|
+
"@djangocfg/api": "^2.1.91",
|
|
63
|
+
"@djangocfg/ext-base": "^1.0.8",
|
|
64
|
+
"@djangocfg/ui-core": "^2.1.91",
|
|
65
|
+
"@djangocfg/ui-nextjs": "^2.1.91",
|
|
65
66
|
"consola": "^3.4.2",
|
|
66
67
|
"lucide-react": "^0.545.0",
|
|
67
68
|
"moment": "^2.30.1",
|
|
@@ -73,9 +74,9 @@
|
|
|
73
74
|
"zod": "^4.1.13"
|
|
74
75
|
},
|
|
75
76
|
"devDependencies": {
|
|
76
|
-
"@djangocfg/api": "^2.1.
|
|
77
|
-
"@djangocfg/ext-base": "^1.0.
|
|
78
|
-
"@djangocfg/typescript-config": "^2.1.
|
|
77
|
+
"@djangocfg/api": "^2.1.91",
|
|
78
|
+
"@djangocfg/ext-base": "^1.0.8",
|
|
79
|
+
"@djangocfg/typescript-config": "^2.1.91",
|
|
79
80
|
"@types/node": "^24.7.2",
|
|
80
81
|
"@types/react": "^19.0.0",
|
|
81
82
|
"consola": "^3.4.2",
|
|
@@ -28,17 +28,10 @@ export const MessageInput: React.FC = () => {
|
|
|
28
28
|
try {
|
|
29
29
|
await sendMessage(message.trim());
|
|
30
30
|
setMessage('');
|
|
31
|
-
toast(
|
|
32
|
-
title: 'Success',
|
|
33
|
-
description: 'Message sent successfully',
|
|
34
|
-
});
|
|
31
|
+
toast.success('Message sent successfully');
|
|
35
32
|
} catch (error) {
|
|
36
33
|
supportLogger.error('Failed to send message:', error);
|
|
37
|
-
toast(
|
|
38
|
-
title: 'Error',
|
|
39
|
-
description: 'Failed to send message',
|
|
40
|
-
variant: 'destructive',
|
|
41
|
-
});
|
|
34
|
+
toast.error('Failed to send message');
|
|
42
35
|
} finally {
|
|
43
36
|
setIsSending(false);
|
|
44
37
|
}
|
|
@@ -9,7 +9,8 @@ import { Clock, MessageSquare } from 'lucide-react';
|
|
|
9
9
|
import moment from 'moment';
|
|
10
10
|
import React from 'react';
|
|
11
11
|
|
|
12
|
-
import { Badge, Card, CardContent
|
|
12
|
+
import { Badge, Card, CardContent } from '@djangocfg/ui-nextjs';
|
|
13
|
+
import { cn } from '@djangocfg/ui-core/lib';
|
|
13
14
|
|
|
14
15
|
import type { Ticket } from '../../../api/generated/ext_support/_utils/schemas';
|
|
15
16
|
|