@djangocfg/ext-payments 1.0.7 → 1.0.9
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 +3 -1
- package/dist/config.js +3 -1
- package/dist/hooks.cjs +156 -153
- package/dist/hooks.js +5 -2
- package/dist/index.cjs +156 -153
- package/dist/index.js +5 -2
- package/package.json +9 -7
- package/src/layouts/PaymentsLayout/PaymentsLayout.tsx +1 -1
- package/src/layouts/PaymentsLayout/components/CreatePaymentDialog.tsx +1 -1
- package/src/layouts/PaymentsLayout/components/PaymentDetailsDialog.tsx +1 -1
- package/src/layouts/PaymentsLayout/views/overview/components/BalanceCard.tsx +1 -1
- package/src/layouts/PaymentsLayout/views/overview/components/RecentPayments.tsx +1 -1
- package/src/layouts/PaymentsLayout/views/payments/components/PaymentsList.tsx +4 -3
- package/src/layouts/PaymentsLayout/views/transactions/components/TransactionsList.tsx +1 -1
package/dist/index.js
CHANGED
|
@@ -3,13 +3,14 @@ import pRetry, { AbortError } from 'p-retry';
|
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { createExtensionAPI } from '@djangocfg/ext-base/api';
|
|
5
5
|
import { Wallet, CreditCard, History, RefreshCw, Plus, XCircle, ExternalLink, Search, Filter, Clock, AlertCircle, CheckCircle2, ArrowDownLeft, ArrowUpRight } from 'lucide-react';
|
|
6
|
-
import { Tabs, TabsList, TabsTrigger, TabsContent, Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription, Form, FormField, FormItem, FormLabel, FormControl, Input, FormDescription, FormMessage, Select, SelectTrigger, SelectValue, SelectContent, SelectItem, TokenIcon, DialogFooter, Button, CopyButton, Card, CardHeader, CardTitle, Skeleton, CardContent, Badge,
|
|
6
|
+
import { Tabs, TabsList, TabsTrigger, TabsContent, Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription, Form, FormField, FormItem, FormLabel, FormControl, Input, FormDescription, FormMessage, Select, SelectTrigger, SelectValue, SelectContent, SelectItem, TokenIcon, DialogFooter, Button, CopyButton, Card, CardHeader, CardTitle, Skeleton, CardContent, Badge, Table, TableHeader, TableRow, TableHead, TableBody, TableCell } from '@djangocfg/ui-core';
|
|
7
7
|
import { createContext, useState, useMemo, useEffect, useContext } from 'react';
|
|
8
8
|
import useSWR, { SWRConfig, useSWRConfig } from 'swr';
|
|
9
9
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
10
10
|
import { useForm } from 'react-hook-form';
|
|
11
11
|
import { zodResolver } from '@hookform/resolvers/zod';
|
|
12
12
|
import moment from 'moment';
|
|
13
|
+
import { useDRFPagination, StaticPagination } from '@djangocfg/ui-nextjs/components';
|
|
13
14
|
import { createExtensionConfig } from '@djangocfg/ext-base';
|
|
14
15
|
|
|
15
16
|
var __defProp = Object.defineProperty;
|
|
@@ -2552,7 +2553,7 @@ var PaymentsLayout = () => {
|
|
|
2552
2553
|
// package.json
|
|
2553
2554
|
var package_default = {
|
|
2554
2555
|
name: "@djangocfg/ext-payments",
|
|
2555
|
-
version: "1.0.
|
|
2556
|
+
version: "1.0.9",
|
|
2556
2557
|
description: "Payments system extension for DjangoCFG",
|
|
2557
2558
|
keywords: [
|
|
2558
2559
|
"django",
|
|
@@ -2613,6 +2614,7 @@ var package_default = {
|
|
|
2613
2614
|
peerDependencies: {
|
|
2614
2615
|
"@djangocfg/api": "workspace:*",
|
|
2615
2616
|
"@djangocfg/ext-base": "workspace:*",
|
|
2617
|
+
"@djangocfg/ui-core": "workspace:*",
|
|
2616
2618
|
"@djangocfg/ui-nextjs": "workspace:*",
|
|
2617
2619
|
consola: "^3.4.2",
|
|
2618
2620
|
"lucide-react": "^0.545.0",
|
|
@@ -2627,6 +2629,7 @@ var package_default = {
|
|
|
2627
2629
|
"@djangocfg/api": "workspace:*",
|
|
2628
2630
|
"@djangocfg/ext-base": "workspace:*",
|
|
2629
2631
|
"@djangocfg/typescript-config": "workspace:*",
|
|
2632
|
+
"@djangocfg/ui-nextjs": "workspace:*",
|
|
2630
2633
|
"@types/node": "^24.7.2",
|
|
2631
2634
|
"@types/react": "^19.0.0",
|
|
2632
2635
|
consola: "^3.4.2",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@djangocfg/ext-payments",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"description": "Payments 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.104",
|
|
63
|
+
"@djangocfg/ext-base": "^1.0.8",
|
|
64
|
+
"@djangocfg/ui-core": "^2.1.104",
|
|
65
|
+
"@djangocfg/ui-nextjs": "^2.1.104",
|
|
65
66
|
"consola": "^3.4.2",
|
|
66
67
|
"lucide-react": "^0.545.0",
|
|
67
68
|
"next": "^15.5.7",
|
|
@@ -72,9 +73,10 @@
|
|
|
72
73
|
"moment": "^2.30.1"
|
|
73
74
|
},
|
|
74
75
|
"devDependencies": {
|
|
75
|
-
"@djangocfg/api": "^2.1.
|
|
76
|
-
"@djangocfg/ext-base": "^1.0.
|
|
77
|
-
"@djangocfg/typescript-config": "^2.1.
|
|
76
|
+
"@djangocfg/api": "^2.1.104",
|
|
77
|
+
"@djangocfg/ext-base": "^1.0.8",
|
|
78
|
+
"@djangocfg/typescript-config": "^2.1.104",
|
|
79
|
+
"@djangocfg/ui-nextjs": "^2.1.104",
|
|
78
80
|
"@types/node": "^24.7.2",
|
|
79
81
|
"@types/react": "^19.0.0",
|
|
80
82
|
"consola": "^3.4.2",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
import { CreditCard, History, Wallet } from 'lucide-react';
|
|
12
12
|
import React from 'react';
|
|
13
13
|
|
|
14
|
-
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@djangocfg/ui-
|
|
14
|
+
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@djangocfg/ui-core';
|
|
15
15
|
|
|
16
16
|
import { OverviewProvider, PaymentsProvider, RootPaymentsProvider } from '../../contexts';
|
|
17
17
|
import { CreatePaymentDialog, PaymentDetailsDialog } from './components';
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
Button, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, Form,
|
|
16
16
|
FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Input, Select,
|
|
17
17
|
SelectContent, SelectItem, SelectTrigger, SelectValue, TokenIcon
|
|
18
|
-
} from '@djangocfg/ui-
|
|
18
|
+
} from '@djangocfg/ui-core';
|
|
19
19
|
import { zodResolver } from '@hookform/resolvers/zod';
|
|
20
20
|
|
|
21
21
|
import { usePaymentsContext, useRootPaymentsContext } from '../../../contexts';
|
|
@@ -12,7 +12,7 @@ import React, { useEffect, useState } from 'react';
|
|
|
12
12
|
import {
|
|
13
13
|
Button, CopyButton, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader,
|
|
14
14
|
DialogTitle, TokenIcon
|
|
15
|
-
} from '@djangocfg/ui-
|
|
15
|
+
} from '@djangocfg/ui-core';
|
|
16
16
|
|
|
17
17
|
import { apiPayments } from '../../../api';
|
|
18
18
|
import { usePaymentsPaymentsRetrieve } from '../../../api/generated/ext_payments/_utils/hooks';
|
|
@@ -11,7 +11,7 @@ import React from 'react';
|
|
|
11
11
|
|
|
12
12
|
import {
|
|
13
13
|
Badge, Button, Card, CardContent, CardHeader, CardTitle, Skeleton
|
|
14
|
-
} from '@djangocfg/ui-
|
|
14
|
+
} from '@djangocfg/ui-core';
|
|
15
15
|
|
|
16
16
|
import { useOverviewContext } from '../../../../../contexts';
|
|
17
17
|
import { openCreatePaymentDialog } from '../../../events';
|
|
@@ -11,7 +11,7 @@ import React from 'react';
|
|
|
11
11
|
|
|
12
12
|
import {
|
|
13
13
|
Badge, Button, Card, CardContent, CardHeader, CardTitle, Skeleton
|
|
14
|
-
} from '@djangocfg/ui-
|
|
14
|
+
} from '@djangocfg/ui-core';
|
|
15
15
|
|
|
16
16
|
import { useOverviewContext } from '../../../../../contexts';
|
|
17
17
|
import { openPaymentDetailsDialog } from '../../../events';
|
|
@@ -11,9 +11,10 @@ import React, { useState } from 'react';
|
|
|
11
11
|
|
|
12
12
|
import {
|
|
13
13
|
Badge, Button, Card, CardContent, CardHeader, CardTitle, Input, Select, SelectContent,
|
|
14
|
-
SelectItem, SelectTrigger, SelectValue, Skeleton,
|
|
15
|
-
TableHead, TableHeader, TableRow,
|
|
16
|
-
} from '@djangocfg/ui-
|
|
14
|
+
SelectItem, SelectTrigger, SelectValue, Skeleton, Table, TableBody, TableCell,
|
|
15
|
+
TableHead, TableHeader, TableRow,
|
|
16
|
+
} from '@djangocfg/ui-core';
|
|
17
|
+
import { useDRFPagination, StaticPagination } from '@djangocfg/ui-nextjs/components';
|
|
17
18
|
|
|
18
19
|
import { apiPayments } from '../../../../../api';
|
|
19
20
|
import { usePaymentsPaymentsList } from '../../../../../api/generated/ext_payments/_utils/hooks';
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
Badge, Button, Card, CardContent, CardHeader, CardTitle, Input, Select, SelectContent,
|
|
14
14
|
SelectItem, SelectTrigger, SelectValue, Skeleton, Table, TableBody, TableCell, TableHead,
|
|
15
15
|
TableHeader, TableRow
|
|
16
|
-
} from '@djangocfg/ui-
|
|
16
|
+
} from '@djangocfg/ui-core';
|
|
17
17
|
|
|
18
18
|
import { useOverviewContext } from '../../../../../contexts';
|
|
19
19
|
|