@voyant-travel/inventory-react 0.2.1 → 0.2.2
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.
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
* Route-level placeholder for the products list page. Matches
|
|
3
3
|
* `ProductsPage`'s header row, the search input, and the 5-column product
|
|
4
4
|
* table exactly. Kept in its own lean module (ui skeleton + table + the
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* workspace-chrome chunk.
|
|
5
|
+
* table only) so the extension factory can attach it as a `pendingComponent`
|
|
6
|
+
* without pinning the products data layer into the workspace-chrome chunk.
|
|
8
7
|
*/
|
|
9
8
|
export declare function ProductsListSkeleton(): import("react/jsx-runtime").JSX.Element;
|
|
10
9
|
//# sourceMappingURL=products-list-skeleton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"products-list-skeleton.d.ts","sourceRoot":"","sources":["../../src/admin/products-list-skeleton.tsx"],"names":[],"mappings":"AAgBA
|
|
1
|
+
{"version":3,"file":"products-list-skeleton.d.ts","sourceRoot":"","sources":["../../src/admin/products-list-skeleton.tsx"],"names":[],"mappings":"AAgBA;;;;;;GAMG;AACH,wBAAgB,oBAAoB,4CA6DnC"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { useOperatorAdminMessages } from "@voyant-travel/admin";
|
|
4
3
|
import { Skeleton } from "@voyant-travel/ui/components/skeleton";
|
|
5
4
|
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow, } from "@voyant-travel/ui/components/table";
|
|
6
5
|
const SKELETON_ROWS = 6;
|
|
6
|
+
const HEADER_WIDTHS = ["w-16", "w-14", "w-20", "w-8", "w-20"];
|
|
7
7
|
const COLUMN_WIDTHS = ["w-48", "w-16", "w-24", "w-8", "w-24"];
|
|
8
8
|
/**
|
|
9
9
|
* Route-level placeholder for the products list page. Matches
|
|
10
10
|
* `ProductsPage`'s header row, the search input, and the 5-column product
|
|
11
11
|
* table exactly. Kept in its own lean module (ui skeleton + table + the
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* workspace-chrome chunk.
|
|
12
|
+
* table only) so the extension factory can attach it as a `pendingComponent`
|
|
13
|
+
* without pinning the products data layer into the workspace-chrome chunk.
|
|
15
14
|
*/
|
|
16
15
|
export function ProductsListSkeleton() {
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
return (_jsxs("div", { className: "flex flex-col gap-6 p-6", children: [_jsxs("div", { className: "flex items-start justify-between gap-4", children: [_jsxs("div", { className: "space-y-2", children: [_jsx(Skeleton, { className: "h-7 w-28" }), _jsx(Skeleton, { className: "h-4 w-64" })] }), _jsx(Skeleton, { className: "h-9 w-36" })] }), _jsx(Skeleton, { className: "h-9 w-full max-w-sm" }), _jsx("div", { className: "rounded-md border", children: _jsxs(Table, { children: [_jsx(TableHeader, { children: _jsx(TableRow, { children: HEADER_WIDTHS.map((width, column) => (_jsx(TableHead
|
|
17
|
+
// biome-ignore lint/suspicious/noArrayIndexKey: stable placeholders -- owner: inventory-react; existing suppression is intentional pending typed cleanup.
|
|
18
|
+
, { children: _jsx(Skeleton, { className: `h-3.5 ${width}` }) }, column))) }) }), _jsx(TableBody, { children: Array.from({ length: SKELETON_ROWS }).map((_, row) => (_jsx(TableRow
|
|
19
19
|
// biome-ignore lint/suspicious/noArrayIndexKey: stable placeholders -- owner: inventory-react; existing suppression is intentional pending typed cleanup.
|
|
20
20
|
, { children: COLUMN_WIDTHS.map((width, column) => (_jsx(TableCell
|
|
21
21
|
// biome-ignore lint/suspicious/noArrayIndexKey: stable placeholders -- owner: inventory-react; existing suppression is intentional pending typed cleanup.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyant-travel/inventory-react",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -85,10 +85,10 @@
|
|
|
85
85
|
"react-dom": "^19.0.0",
|
|
86
86
|
"react-hook-form": "^7.60.0",
|
|
87
87
|
"zod": "^4.0.0",
|
|
88
|
-
"@voyant-travel/admin": "^0.111.
|
|
88
|
+
"@voyant-travel/admin": "^0.111.3",
|
|
89
89
|
"@voyant-travel/catalog-react": "^0.118.1",
|
|
90
|
-
"@voyant-travel/finance": "^0.120.
|
|
91
|
-
"@voyant-travel/finance-react": "^0.120.
|
|
90
|
+
"@voyant-travel/finance": "^0.120.2",
|
|
91
|
+
"@voyant-travel/finance-react": "^0.120.2",
|
|
92
92
|
"@voyant-travel/inventory": "^0.2.0",
|
|
93
93
|
"@voyant-travel/ui": "^0.106.2",
|
|
94
94
|
"@voyant-travel/utils": "^0.105.2"
|
|
@@ -129,10 +129,10 @@
|
|
|
129
129
|
"typescript": "^6.0.2",
|
|
130
130
|
"vitest": "^4.1.2",
|
|
131
131
|
"zod": "^4.3.6",
|
|
132
|
-
"@voyant-travel/admin": "^0.111.
|
|
132
|
+
"@voyant-travel/admin": "^0.111.3",
|
|
133
133
|
"@voyant-travel/catalog-react": "^0.118.1",
|
|
134
|
-
"@voyant-travel/finance": "^0.120.
|
|
135
|
-
"@voyant-travel/finance-react": "^0.120.
|
|
134
|
+
"@voyant-travel/finance": "^0.120.2",
|
|
135
|
+
"@voyant-travel/finance-react": "^0.120.2",
|
|
136
136
|
"@voyant-travel/i18n": "^0.106.1",
|
|
137
137
|
"@voyant-travel/inventory": "^0.2.0",
|
|
138
138
|
"@voyant-travel/react": "^0.104.1",
|