@djangocfg/ext-payments 1.0.14 → 1.0.17

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 (57) hide show
  1. package/dist/config.cjs +5 -8
  2. package/dist/config.js +5 -8
  3. package/dist/index.cjs +1085 -1107
  4. package/dist/index.d.cts +480 -41
  5. package/dist/index.d.ts +480 -41
  6. package/dist/index.js +1037 -1093
  7. package/package.json +13 -16
  8. package/src/api/generated/ext_payments/CLAUDE.md +7 -3
  9. package/src/api/generated/ext_payments/_utils/fetchers/ext_payments__payments.ts +237 -5
  10. package/src/api/generated/ext_payments/_utils/hooks/ext_payments__payments.ts +71 -3
  11. package/src/api/generated/ext_payments/_utils/schemas/PaginatedWithdrawalListList.schema.ts +24 -0
  12. package/src/api/generated/ext_payments/_utils/schemas/PaymentCreateRequest.schema.ts +21 -0
  13. package/src/api/generated/ext_payments/_utils/schemas/WithdrawalCreateRequest.schema.ts +21 -0
  14. package/src/api/generated/ext_payments/_utils/schemas/WithdrawalDetail.schema.ts +42 -0
  15. package/src/api/generated/ext_payments/_utils/schemas/WithdrawalList.schema.ts +29 -0
  16. package/src/api/generated/ext_payments/_utils/schemas/index.ts +5 -0
  17. package/src/api/generated/ext_payments/enums.ts +36 -0
  18. package/src/api/generated/ext_payments/ext_payments__payments/client.ts +58 -5
  19. package/src/api/generated/ext_payments/ext_payments__payments/models.ts +141 -0
  20. package/src/api/generated/ext_payments/schema.json +579 -3
  21. package/src/components/ActivityItem.tsx +118 -0
  22. package/src/components/ActivityList.tsx +93 -0
  23. package/src/components/AddFundsSheet.tsx +258 -0
  24. package/src/components/BalanceHero.tsx +102 -0
  25. package/src/components/PaymentSheet.tsx +290 -0
  26. package/src/components/ResponsiveSheet.tsx +151 -0
  27. package/src/components/WithdrawSheet.tsx +329 -0
  28. package/src/components/index.ts +18 -0
  29. package/src/contexts/WalletContext.tsx +355 -0
  30. package/src/contexts/index.ts +12 -45
  31. package/src/index.ts +6 -18
  32. package/src/contexts/BalancesContext.tsx +0 -63
  33. package/src/contexts/CurrenciesContext.tsx +0 -64
  34. package/src/contexts/OverviewContext.tsx +0 -173
  35. package/src/contexts/PaymentsContext.tsx +0 -122
  36. package/src/contexts/PaymentsExtensionProvider.tsx +0 -56
  37. package/src/contexts/README.md +0 -201
  38. package/src/contexts/RootPaymentsContext.tsx +0 -66
  39. package/src/contexts/types.ts +0 -40
  40. package/src/hooks/index.ts +0 -20
  41. package/src/layouts/PaymentsLayout/PaymentsLayout.tsx +0 -90
  42. package/src/layouts/PaymentsLayout/components/CreatePaymentDialog.tsx +0 -274
  43. package/src/layouts/PaymentsLayout/components/PaymentDetailsDialog.tsx +0 -287
  44. package/src/layouts/PaymentsLayout/components/index.ts +0 -2
  45. package/src/layouts/PaymentsLayout/events.ts +0 -47
  46. package/src/layouts/PaymentsLayout/index.ts +0 -16
  47. package/src/layouts/PaymentsLayout/types.ts +0 -6
  48. package/src/layouts/PaymentsLayout/views/overview/components/BalanceCard.tsx +0 -121
  49. package/src/layouts/PaymentsLayout/views/overview/components/RecentPayments.tsx +0 -139
  50. package/src/layouts/PaymentsLayout/views/overview/components/index.ts +0 -2
  51. package/src/layouts/PaymentsLayout/views/overview/index.tsx +0 -21
  52. package/src/layouts/PaymentsLayout/views/payments/components/PaymentsList.tsx +0 -279
  53. package/src/layouts/PaymentsLayout/views/payments/components/index.ts +0 -1
  54. package/src/layouts/PaymentsLayout/views/payments/index.tsx +0 -18
  55. package/src/layouts/PaymentsLayout/views/transactions/components/TransactionsList.tsx +0 -260
  56. package/src/layouts/PaymentsLayout/views/transactions/components/index.ts +0 -1
  57. package/src/layouts/PaymentsLayout/views/transactions/index.tsx +0 -18
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-payments",
30
- version: "1.0.14",
30
+ version: "1.0.17",
31
31
  description: "Payments system extension for DjangoCFG",
32
32
  keywords: [
33
33
  "django",
@@ -64,11 +64,6 @@ var package_default = {
64
64
  import: "./dist/index.js",
65
65
  require: "./dist/index.cjs"
66
66
  },
67
- "./hooks": {
68
- types: "./dist/hooks.d.ts",
69
- import: "./dist/hooks.js",
70
- require: "./dist/hooks.cjs"
71
- },
72
67
  "./config": {
73
68
  types: "./dist/config.d.ts",
74
69
  import: "./dist/config.js",
@@ -96,8 +91,10 @@ var package_default = {
96
91
  "p-retry": "^7.0.0",
97
92
  react: "^19",
98
93
  swr: "^2.3.7",
99
- zod: "^4.1.13",
100
- moment: "^2.30.1"
94
+ zod: "^4.3.4",
95
+ moment: "^2.30.1",
96
+ "react-hook-form": "^7.69.0",
97
+ "@hookform/resolvers": "^5.2.2"
101
98
  },
102
99
  devDependencies: {
103
100
  "@djangocfg/api": "workspace:*",
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-payments",
7
- version: "1.0.14",
7
+ version: "1.0.17",
8
8
  description: "Payments system extension for DjangoCFG",
9
9
  keywords: [
10
10
  "django",
@@ -41,11 +41,6 @@ var package_default = {
41
41
  import: "./dist/index.js",
42
42
  require: "./dist/index.cjs"
43
43
  },
44
- "./hooks": {
45
- types: "./dist/hooks.d.ts",
46
- import: "./dist/hooks.js",
47
- require: "./dist/hooks.cjs"
48
- },
49
44
  "./config": {
50
45
  types: "./dist/config.d.ts",
51
46
  import: "./dist/config.js",
@@ -73,8 +68,10 @@ var package_default = {
73
68
  "p-retry": "^7.0.0",
74
69
  react: "^19",
75
70
  swr: "^2.3.7",
76
- zod: "^4.1.13",
77
- moment: "^2.30.1"
71
+ zod: "^4.3.4",
72
+ moment: "^2.30.1",
73
+ "react-hook-form": "^7.69.0",
74
+ "@hookform/resolvers": "^5.2.2"
78
75
  },
79
76
  devDependencies: {
80
77
  "@djangocfg/api": "workspace:*",