@voyant-travel/finance-react 0.120.1 → 0.121.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"invoices-page-skeleton.d.ts","sourceRoot":"","sources":["../../src/components/invoices-page-skeleton.tsx"],"names":[],"mappings":"AAcA,wBAAgB,qBAAqB,CAAC,EAAE,IAAQ,EAAE,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,2CAiCpE;AAED,wBAAgB,oBAAoB,4CAgBnC"}
1
+ {"version":3,"file":"invoices-page-skeleton.d.ts","sourceRoot":"","sources":["../../src/components/invoices-page-skeleton.tsx"],"names":[],"mappings":"AAaA,wBAAgB,qBAAqB,CAAC,EAAE,IAAQ,EAAE,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,2CAgCpE;AAED,wBAAgB,oBAAoB,4CAgBnC"}
@@ -1,12 +1,12 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Skeleton } from "@voyant-travel/ui/components/skeleton";
3
3
  import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow, } from "@voyant-travel/ui/components/table";
4
- import { useFinanceUiMessagesOrDefault } from "../i18n/index.js";
5
4
  const INVOICE_WIDTHS = ["w-28", "w-16", "w-20", "w-20", "w-20", "w-24"];
5
+ const INVOICE_HEADER_WIDTHS = ["w-24", "w-14", "w-12", "w-10", "w-20", "w-16"];
6
6
  export function InvoicesTableSkeleton({ rows = 8 }) {
7
- const messages = useFinanceUiMessagesOrDefault();
8
- const columns = messages.invoicesPage.columns;
9
- return (_jsx("div", { className: "rounded-md border", children: _jsxs(Table, { children: [_jsx(TableHeader, { children: _jsxs(TableRow, { children: [_jsx(TableHead, { children: columns.invoiceNumber }), _jsx(TableHead, { children: columns.status }), _jsx(TableHead, { children: columns.total }), _jsx(TableHead, { children: columns.paid }), _jsx(TableHead, { children: columns.balanceDue }), _jsx(TableHead, { children: columns.dueDate })] }) }), _jsx(TableBody, { children: Array.from({ length: rows }).map((_, rowIndex) => (_jsx(TableRow, { children: Array.from({ length: 6 }).map((__, columnIndex) => (_jsx(TableCell, { children: _jsx(Skeleton, { className: `h-4 ${INVOICE_WIDTHS[columnIndex] ?? "w-1/2"}` }) }, columnIndex))) }, rowIndex))) })] }) }));
7
+ return (_jsx("div", { className: "rounded-md border", children: _jsxs(Table, { children: [_jsx(TableHeader, { children: _jsx(TableRow, { children: INVOICE_HEADER_WIDTHS.map((width, columnIndex) => (_jsx(TableHead
8
+ // biome-ignore lint/suspicious/noArrayIndexKey: stable placeholders -- owner: finance-react; existing suppression is intentional pending typed cleanup.
9
+ , { children: _jsx(Skeleton, { className: `h-3.5 ${width}` }) }, columnIndex))) }) }), _jsx(TableBody, { children: Array.from({ length: rows }).map((_, rowIndex) => (_jsx(TableRow, { children: Array.from({ length: 6 }).map((__, columnIndex) => (_jsx(TableCell, { children: _jsx(Skeleton, { className: `h-4 ${INVOICE_WIDTHS[columnIndex] ?? "w-1/2"}` }) }, columnIndex))) }, rowIndex))) })] }) }));
10
10
  }
11
11
  export function InvoicesPageSkeleton() {
12
12
  return (_jsxs("div", { className: "flex flex-col gap-6 p-6", children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { className: "space-y-2", children: [_jsx(Skeleton, { className: "h-7 w-32" }), _jsx(Skeleton, { className: "h-4 w-80" })] }), _jsx(Skeleton, { className: "h-9 w-36" })] }), _jsx(Skeleton, { className: "h-9 w-full max-w-sm" }), _jsx(InvoicesTableSkeleton, { rows: 8 })] }));
@@ -1 +1 @@
1
- {"version":3,"file":"payments-page-skeleton.d.ts","sourceRoot":"","sources":["../../src/components/payments-page-skeleton.tsx"],"names":[],"mappings":"AAcA,wBAAgB,qBAAqB,CAAC,EAAE,IAAQ,EAAE,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,2CAkCpE;AAED,wBAAgB,oBAAoB,4CAgBnC"}
1
+ {"version":3,"file":"payments-page-skeleton.d.ts","sourceRoot":"","sources":["../../src/components/payments-page-skeleton.tsx"],"names":[],"mappings":"AAaA,wBAAgB,qBAAqB,CAAC,EAAE,IAAQ,EAAE,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,2CAgCpE;AAED,wBAAgB,oBAAoB,4CAgBnC"}
@@ -1,12 +1,12 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Skeleton } from "@voyant-travel/ui/components/skeleton";
3
3
  import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow, } from "@voyant-travel/ui/components/table";
4
- import { useFinanceUiMessagesOrDefault } from "../i18n/index.js";
5
4
  const PAYMENT_WIDTHS = ["w-20", "w-32", "w-32", "w-24", "w-20", "w-24", "w-24"];
5
+ const PAYMENT_HEADER_WIDTHS = ["w-12", "w-20", "w-12", "w-16", "w-14", "w-12", "w-16"];
6
6
  export function PaymentsTableSkeleton({ rows = 8 }) {
7
- const messages = useFinanceUiMessagesOrDefault();
8
- const columns = messages.paymentsPage.columns;
9
- return (_jsx("div", { className: "rounded-md border", children: _jsxs(Table, { children: [_jsx(TableHeader, { children: _jsxs(TableRow, { children: [_jsx(TableHead, { children: columns.kind }), _jsx(TableHead, { children: columns.reference }), _jsx(TableHead, { children: columns.party }), _jsx(TableHead, { children: columns.amount }), _jsx(TableHead, { children: columns.status }), _jsx(TableHead, { children: columns.date }), _jsx(TableHead, { children: columns.method })] }) }), _jsx(TableBody, { children: Array.from({ length: rows }).map((_, rowIndex) => (_jsx(TableRow, { children: Array.from({ length: 7 }).map((__, columnIndex) => (_jsx(TableCell, { children: _jsx(Skeleton, { className: `h-4 ${PAYMENT_WIDTHS[columnIndex] ?? "w-1/2"}` }) }, columnIndex))) }, rowIndex))) })] }) }));
7
+ return (_jsx("div", { className: "rounded-md border", children: _jsxs(Table, { children: [_jsx(TableHeader, { children: _jsx(TableRow, { children: PAYMENT_HEADER_WIDTHS.map((width, columnIndex) => (_jsx(TableHead
8
+ // biome-ignore lint/suspicious/noArrayIndexKey: stable placeholders -- owner: finance-react; existing suppression is intentional pending typed cleanup.
9
+ , { children: _jsx(Skeleton, { className: `h-3.5 ${width}` }) }, columnIndex))) }) }), _jsx(TableBody, { children: Array.from({ length: rows }).map((_, rowIndex) => (_jsx(TableRow, { children: Array.from({ length: 7 }).map((__, columnIndex) => (_jsx(TableCell, { children: _jsx(Skeleton, { className: `h-4 ${PAYMENT_WIDTHS[columnIndex] ?? "w-1/2"}` }) }, columnIndex))) }, rowIndex))) })] }) }));
10
10
  }
11
11
  export function PaymentsPageSkeleton() {
12
12
  return (_jsxs("div", { className: "flex flex-col gap-6 p-6", children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { className: "space-y-2", children: [_jsx(Skeleton, { className: "h-7 w-32" }), _jsx(Skeleton, { className: "h-4 w-80" })] }), _jsx(Skeleton, { className: "h-9 w-44" })] }), _jsx(Skeleton, { className: "h-9 w-full max-w-sm" }), _jsx(PaymentsTableSkeleton, { rows: 8 })] }));
@@ -5,7 +5,7 @@ export declare function useInvoiceActionLedger(invoiceId: string | null | undefi
5
5
  occurredAt: string;
6
6
  actionName: string;
7
7
  actionVersion: string;
8
- actionKind: "reverse" | "read" | "update" | "delete" | "execute" | "create" | "approve" | "reject" | "compensate" | "duplicate";
8
+ actionKind: "reverse" | "delete" | "read" | "update" | "execute" | "create" | "approve" | "reject" | "compensate" | "duplicate";
9
9
  status: "failed" | "cancelled" | "expired" | "approved" | "denied" | "requested" | "awaiting_approval" | "succeeded" | "reversed" | "compensated" | "superseded";
10
10
  evaluatedRisk: "medium" | "low" | "high" | "critical";
11
11
  actorType: string | null;
@@ -51,7 +51,7 @@ export declare function usePaymentSessionActionLedger(paymentSessionId: string |
51
51
  occurredAt: string;
52
52
  actionName: string;
53
53
  actionVersion: string;
54
- actionKind: "reverse" | "read" | "update" | "delete" | "execute" | "create" | "approve" | "reject" | "compensate" | "duplicate";
54
+ actionKind: "reverse" | "delete" | "read" | "update" | "execute" | "create" | "approve" | "reject" | "compensate" | "duplicate";
55
55
  status: "failed" | "cancelled" | "expired" | "approved" | "denied" | "requested" | "awaiting_approval" | "succeeded" | "reversed" | "compensated" | "superseded";
56
56
  evaluatedRisk: "medium" | "low" | "high" | "critical";
57
57
  actorType: string | null;
@@ -16,7 +16,7 @@ export declare function listInvoiceActionLedger(client: FetchWithValidationOptio
16
16
  occurredAt: string;
17
17
  actionName: string;
18
18
  actionVersion: string;
19
- actionKind: "reverse" | "read" | "update" | "delete" | "execute" | "create" | "approve" | "reject" | "compensate" | "duplicate";
19
+ actionKind: "reverse" | "delete" | "read" | "update" | "execute" | "create" | "approve" | "reject" | "compensate" | "duplicate";
20
20
  status: "failed" | "cancelled" | "expired" | "approved" | "denied" | "requested" | "awaiting_approval" | "succeeded" | "reversed" | "compensated" | "superseded";
21
21
  evaluatedRisk: "medium" | "low" | "high" | "critical";
22
22
  actorType: string | null;
@@ -62,7 +62,7 @@ export declare function listPaymentSessionActionLedger(client: FetchWithValidati
62
62
  occurredAt: string;
63
63
  actionName: string;
64
64
  actionVersion: string;
65
- actionKind: "reverse" | "read" | "update" | "delete" | "execute" | "create" | "approve" | "reject" | "compensate" | "duplicate";
65
+ actionKind: "reverse" | "delete" | "read" | "update" | "execute" | "create" | "approve" | "reject" | "compensate" | "duplicate";
66
66
  status: "failed" | "cancelled" | "expired" | "approved" | "denied" | "requested" | "awaiting_approval" | "succeeded" | "reversed" | "compensated" | "superseded";
67
67
  evaluatedRisk: "medium" | "low" | "high" | "critical";
68
68
  actorType: string | null;
@@ -9,7 +9,7 @@ export declare function getInvoiceActionLedgerQueryOptions(client: FetchWithVali
9
9
  occurredAt: string;
10
10
  actionName: string;
11
11
  actionVersion: string;
12
- actionKind: "reverse" | "read" | "update" | "delete" | "execute" | "create" | "approve" | "reject" | "compensate" | "duplicate";
12
+ actionKind: "reverse" | "delete" | "read" | "update" | "execute" | "create" | "approve" | "reject" | "compensate" | "duplicate";
13
13
  status: "failed" | "cancelled" | "expired" | "approved" | "denied" | "requested" | "awaiting_approval" | "succeeded" | "reversed" | "compensated" | "superseded";
14
14
  evaluatedRisk: "medium" | "low" | "high" | "critical";
15
15
  actorType: string | null;
@@ -54,7 +54,7 @@ export declare function getInvoiceActionLedgerQueryOptions(client: FetchWithVali
54
54
  occurredAt: string;
55
55
  actionName: string;
56
56
  actionVersion: string;
57
- actionKind: "reverse" | "read" | "update" | "delete" | "execute" | "create" | "approve" | "reject" | "compensate" | "duplicate";
57
+ actionKind: "reverse" | "delete" | "read" | "update" | "execute" | "create" | "approve" | "reject" | "compensate" | "duplicate";
58
58
  status: "failed" | "cancelled" | "expired" | "approved" | "denied" | "requested" | "awaiting_approval" | "succeeded" | "reversed" | "compensated" | "superseded";
59
59
  evaluatedRisk: "medium" | "low" | "high" | "critical";
60
60
  actorType: string | null;
@@ -100,7 +100,7 @@ export declare function getInvoiceActionLedgerQueryOptions(client: FetchWithVali
100
100
  occurredAt: string;
101
101
  actionName: string;
102
102
  actionVersion: string;
103
- actionKind: "reverse" | "read" | "update" | "delete" | "execute" | "create" | "approve" | "reject" | "compensate" | "duplicate";
103
+ actionKind: "reverse" | "delete" | "read" | "update" | "execute" | "create" | "approve" | "reject" | "compensate" | "duplicate";
104
104
  status: "failed" | "cancelled" | "expired" | "approved" | "denied" | "requested" | "awaiting_approval" | "succeeded" | "reversed" | "compensated" | "superseded";
105
105
  evaluatedRisk: "medium" | "low" | "high" | "critical";
106
106
  actorType: string | null;
@@ -148,7 +148,7 @@ export declare function getInvoiceActionLedgerQueryOptions(client: FetchWithVali
148
148
  occurredAt: string;
149
149
  actionName: string;
150
150
  actionVersion: string;
151
- actionKind: "reverse" | "read" | "update" | "delete" | "execute" | "create" | "approve" | "reject" | "compensate" | "duplicate";
151
+ actionKind: "reverse" | "delete" | "read" | "update" | "execute" | "create" | "approve" | "reject" | "compensate" | "duplicate";
152
152
  status: "failed" | "cancelled" | "expired" | "approved" | "denied" | "requested" | "awaiting_approval" | "succeeded" | "reversed" | "compensated" | "superseded";
153
153
  evaluatedRisk: "medium" | "low" | "high" | "critical";
154
154
  actorType: string | null;
@@ -197,7 +197,7 @@ export declare function getPaymentSessionActionLedgerQueryOptions(client: FetchW
197
197
  occurredAt: string;
198
198
  actionName: string;
199
199
  actionVersion: string;
200
- actionKind: "reverse" | "read" | "update" | "delete" | "execute" | "create" | "approve" | "reject" | "compensate" | "duplicate";
200
+ actionKind: "reverse" | "delete" | "read" | "update" | "execute" | "create" | "approve" | "reject" | "compensate" | "duplicate";
201
201
  status: "failed" | "cancelled" | "expired" | "approved" | "denied" | "requested" | "awaiting_approval" | "succeeded" | "reversed" | "compensated" | "superseded";
202
202
  evaluatedRisk: "medium" | "low" | "high" | "critical";
203
203
  actorType: string | null;
@@ -242,7 +242,7 @@ export declare function getPaymentSessionActionLedgerQueryOptions(client: FetchW
242
242
  occurredAt: string;
243
243
  actionName: string;
244
244
  actionVersion: string;
245
- actionKind: "reverse" | "read" | "update" | "delete" | "execute" | "create" | "approve" | "reject" | "compensate" | "duplicate";
245
+ actionKind: "reverse" | "delete" | "read" | "update" | "execute" | "create" | "approve" | "reject" | "compensate" | "duplicate";
246
246
  status: "failed" | "cancelled" | "expired" | "approved" | "denied" | "requested" | "awaiting_approval" | "succeeded" | "reversed" | "compensated" | "superseded";
247
247
  evaluatedRisk: "medium" | "low" | "high" | "critical";
248
248
  actorType: string | null;
@@ -288,7 +288,7 @@ export declare function getPaymentSessionActionLedgerQueryOptions(client: FetchW
288
288
  occurredAt: string;
289
289
  actionName: string;
290
290
  actionVersion: string;
291
- actionKind: "reverse" | "read" | "update" | "delete" | "execute" | "create" | "approve" | "reject" | "compensate" | "duplicate";
291
+ actionKind: "reverse" | "delete" | "read" | "update" | "execute" | "create" | "approve" | "reject" | "compensate" | "duplicate";
292
292
  status: "failed" | "cancelled" | "expired" | "approved" | "denied" | "requested" | "awaiting_approval" | "succeeded" | "reversed" | "compensated" | "superseded";
293
293
  evaluatedRisk: "medium" | "low" | "high" | "critical";
294
294
  actorType: string | null;
@@ -336,7 +336,7 @@ export declare function getPaymentSessionActionLedgerQueryOptions(client: FetchW
336
336
  occurredAt: string;
337
337
  actionName: string;
338
338
  actionVersion: string;
339
- actionKind: "reverse" | "read" | "update" | "delete" | "execute" | "create" | "approve" | "reject" | "compensate" | "duplicate";
339
+ actionKind: "reverse" | "delete" | "read" | "update" | "execute" | "create" | "approve" | "reject" | "compensate" | "duplicate";
340
340
  status: "failed" | "cancelled" | "expired" | "approved" | "denied" | "requested" | "awaiting_approval" | "succeeded" | "reversed" | "compensated" | "superseded";
341
341
  evaluatedRisk: "medium" | "low" | "high" | "critical";
342
342
  actorType: string | null;
@@ -1,9 +1,9 @@
1
1
  import { z } from "zod";
2
2
  export declare const financeActionLedgerActionKindSchema: z.ZodEnum<{
3
3
  reverse: "reverse";
4
+ delete: "delete";
4
5
  read: "read";
5
6
  update: "update";
6
- delete: "delete";
7
7
  execute: "execute";
8
8
  create: "create";
9
9
  approve: "approve";
@@ -44,9 +44,9 @@ export declare const financeActionLedgerEntrySchema: z.ZodObject<{
44
44
  actionVersion: z.ZodString;
45
45
  actionKind: z.ZodEnum<{
46
46
  reverse: "reverse";
47
+ delete: "delete";
47
48
  read: "read";
48
49
  update: "update";
49
- delete: "delete";
50
50
  execute: "execute";
51
51
  create: "create";
52
52
  approve: "approve";
@@ -124,9 +124,9 @@ export declare const financeActionLedgerListResponse: z.ZodObject<{
124
124
  actionVersion: z.ZodString;
125
125
  actionKind: z.ZodEnum<{
126
126
  reverse: "reverse";
127
+ delete: "delete";
127
128
  read: "read";
128
129
  update: "update";
129
- delete: "delete";
130
130
  execute: "execute";
131
131
  create: "create";
132
132
  approve: "approve";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyant-travel/finance-react",
3
- "version": "0.120.1",
3
+ "version": "0.121.0",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -93,13 +93,13 @@
93
93
  "recharts": "^3.0.0",
94
94
  "sonner": "^2.0.7",
95
95
  "zod": "^4.0.0",
96
- "@voyant-travel/admin": "^0.111.2",
97
- "@voyant-travel/bookings-react": "^0.120.1",
98
- "@voyant-travel/finance": "^0.120.1",
99
- "@voyant-travel/inventory-react": "^0.2.1",
100
- "@voyant-travel/distribution-react": "^0.110.4",
96
+ "@voyant-travel/admin": "^0.111.3",
97
+ "@voyant-travel/bookings-react": "^0.121.0",
98
+ "@voyant-travel/finance": "^0.121.0",
99
+ "@voyant-travel/inventory-react": "^0.3.0",
100
+ "@voyant-travel/distribution-react": "^0.111.0",
101
101
  "@voyant-travel/ui": "^0.106.2",
102
- "@voyant-travel/operations-react": "^0.1.1"
102
+ "@voyant-travel/operations-react": "^0.2.0"
103
103
  },
104
104
  "peerDependenciesMeta": {
105
105
  "@tanstack/react-table": {
@@ -151,16 +151,16 @@
151
151
  "typescript": "^6.0.2",
152
152
  "vitest": "^4.1.2",
153
153
  "zod": "^4.3.6",
154
- "@voyant-travel/admin": "^0.111.2",
155
- "@voyant-travel/bookings-react": "^0.120.1",
156
- "@voyant-travel/finance": "^0.120.1",
154
+ "@voyant-travel/admin": "^0.111.3",
155
+ "@voyant-travel/bookings-react": "^0.121.0",
156
+ "@voyant-travel/finance": "^0.121.0",
157
157
  "@voyant-travel/i18n": "^0.106.1",
158
- "@voyant-travel/inventory-react": "^0.2.1",
158
+ "@voyant-travel/inventory-react": "^0.3.0",
159
159
  "@voyant-travel/react": "^0.104.1",
160
- "@voyant-travel/distribution-react": "^0.110.4",
160
+ "@voyant-travel/distribution-react": "^0.111.0",
161
161
  "@voyant-travel/ui": "^0.106.2",
162
162
  "@voyant-travel/voyant-typescript-config": "^0.1.0",
163
- "@voyant-travel/operations-react": "^0.1.1"
163
+ "@voyant-travel/operations-react": "^0.2.0"
164
164
  },
165
165
  "files": [
166
166
  "dist",