@djangocfg/ext-support 1.0.0 → 1.0.1

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/README.md CHANGED
@@ -1,3 +1,9 @@
1
+ <div align="center">
2
+
3
+ ![DjangoCFG Extension Preview](https://unpkg.com/@djangocfg/ext-support@latest/preview.png)
4
+
5
+ </div>
6
+
1
7
  # @djangocfg/ext-support
2
8
 
3
9
  Customer support and ticketing system extension for DjangoCFG.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@djangocfg/ext-support",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Support ticket system extension for DjangoCFG",
5
5
  "keywords": [
6
6
  "django",
@@ -29,23 +29,24 @@
29
29
  "license": "MIT",
30
30
  "type": "module",
31
31
  "main": "./dist/index.cjs",
32
- "module": "./dist/index.mjs",
32
+ "module": "./dist/index.js",
33
33
  "types": "./dist/index.d.ts",
34
34
  "exports": {
35
35
  ".": {
36
36
  "types": "./dist/index.d.ts",
37
- "import": "./dist/index.mjs",
37
+ "import": "./dist/index.js",
38
38
  "require": "./dist/index.cjs"
39
39
  },
40
40
  "./hooks": {
41
41
  "types": "./dist/hooks.d.ts",
42
- "import": "./dist/hooks.mjs",
42
+ "import": "./dist/hooks.js",
43
43
  "require": "./dist/hooks.cjs"
44
44
  }
45
45
  },
46
46
  "files": [
47
47
  "dist",
48
- "src"
48
+ "src",
49
+ "preview.png"
49
50
  ],
50
51
  "scripts": {
51
52
  "build": "tsup",
@@ -53,9 +54,9 @@
53
54
  "check": "tsc --noEmit"
54
55
  },
55
56
  "peerDependencies": {
56
- "@djangocfg/api": "^2.1.14",
57
- "@djangocfg/ext-base": "^1.0.0",
58
- "@djangocfg/ui-nextjs": "^2.1.14",
57
+ "@djangocfg/api": "^2.1.15",
58
+ "@djangocfg/ext-base": "^1.0.2",
59
+ "@djangocfg/ui-nextjs": "^2.1.15",
59
60
  "consola": "^3.4.2",
60
61
  "lucide-react": "^0.545.0",
61
62
  "next": "^15.5.7",
@@ -66,9 +67,9 @@
66
67
  "zod": "^4.1.13"
67
68
  },
68
69
  "devDependencies": {
69
- "@djangocfg/api": "^2.1.14",
70
- "@djangocfg/ext-base": "^1.0.0",
71
- "@djangocfg/typescript-config": "^2.1.14",
70
+ "@djangocfg/api": "^2.1.15",
71
+ "@djangocfg/ext-base": "^1.0.2",
72
+ "@djangocfg/typescript-config": "^2.1.15",
72
73
  "@types/node": "^24.7.2",
73
74
  "@types/react": "^19.0.0",
74
75
  "consola": "^3.4.2",
package/preview.png ADDED
Binary file
package/src/config.ts CHANGED
@@ -2,19 +2,41 @@
2
2
  * Support extension configuration
3
3
  */
4
4
 
5
- import type { ExtensionMetadata } from '@djangocfg/ext-base';
5
+ import { createExtensionConfig } from '@djangocfg/ext-base';
6
+ import packageJson from '../package.json';
6
7
 
7
- export const extensionConfig: ExtensionMetadata = {
8
+ export const extensionConfig = createExtensionConfig(packageJson, {
8
9
  name: 'support',
9
- version: '1.0.0',
10
- author: 'DjangoCFG',
11
- displayName: 'Support',
12
- description: 'Customer support and ticketing system',
13
- icon: '🎫',
14
- license: 'MIT',
15
- githubUrl: 'https://github.com/markolofsen/django-cfg',
16
- homepage: 'https://djangocfg.com',
17
- keywords: ['support', 'tickets', 'helpdesk', 'customer-service'],
18
- dependencies: [],
10
+ displayName: 'Support & Tickets',
11
+ icon: 'Ticket',
12
+ category: 'support',
13
+ features: [
14
+ 'Ticket management system',
15
+ 'Live chat support',
16
+ 'Knowledge base integration',
17
+ 'Multi-channel support',
18
+ 'Agent assignment',
19
+ 'SLA tracking',
20
+ ],
19
21
  minVersion: '2.0.0',
20
- } as const;
22
+ examples: [
23
+ {
24
+ title: 'Support Ticket Widget',
25
+ description: 'Add a support ticket system',
26
+ code: `import { TicketWidget, useTickets } from '@djangocfg/ext-support';
27
+
28
+ export default function SupportPage() {
29
+ const { tickets, createTicket } = useTickets();
30
+
31
+ return (
32
+ <TicketWidget
33
+ onTicketCreate={(ticket) => {
34
+ console.log('Ticket created:', ticket.id);
35
+ }}
36
+ />
37
+ );
38
+ }`,
39
+ language: 'tsx',
40
+ },
41
+ ],
42
+ });
package/src/index.ts CHANGED
@@ -37,3 +37,5 @@ export type {
37
37
 
38
38
  // Note: Hooks are NOT exported here to keep this bundle server-safe
39
39
  // Use: import { useSupportTicketsList } from '@djangocfg/ext-support/hooks'
40
+ // Export config
41
+ export { extensionConfig } from './config';