@classytic/pos-ui 1.2.0 → 1.4.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.
|
@@ -23,6 +23,7 @@ import { usePosLookupMutation, usePosProducts } from "@classytic/commerce-sdk/sa
|
|
|
23
23
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
24
24
|
import { ShoppingBag, ShoppingCart } from "lucide-react";
|
|
25
25
|
import { useCategoryTree } from "@classytic/commerce-sdk/catalog";
|
|
26
|
+
import { productCategoryFilter, productStockFilter } from "@classytic/commerce-sdk/catalog/product-filter-params";
|
|
26
27
|
import { useMembershipConfig } from "@classytic/commerce-sdk/platform";
|
|
27
28
|
import { isValidPhone } from "@classytic/commerce-sdk/client";
|
|
28
29
|
import { toast } from "sonner";
|
|
@@ -75,8 +76,8 @@ function ProductScreen() {
|
|
|
75
76
|
]);
|
|
76
77
|
const productFilters = useMemo(() => ({
|
|
77
78
|
search: appliedSearch.trim() || void 0,
|
|
78
|
-
|
|
79
|
-
|
|
79
|
+
...productCategoryFilter(selectedCategory === "all" ? "" : selectedCategory),
|
|
80
|
+
...productStockFilter("ok"),
|
|
80
81
|
limit: 50
|
|
81
82
|
}), [appliedSearch, selectedCategory]);
|
|
82
83
|
const { products, isLoading: productsLoading, isFetching, refetch } = usePosProducts(branchId, productFilters, { enabled: !!branchId });
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"license": "SEE LICENSE IN LICENSE",
|
|
3
3
|
"name": "@classytic/pos-ui",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.4.0",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"description": "Point-of-sale register UI — a self-contained, full-screen state-machine app (shift → products → payment → receipt → close) with a hardware DI port (printer/drawer/scanner/terminal). Multi-surface: web, Tauri desktop, React Native. Frontend sibling of the @classytic/pos kernel. Independent of the dashboard stack (no erp-shell).",
|
|
@@ -19,13 +19,14 @@
|
|
|
19
19
|
"test": "vitest run",
|
|
20
20
|
"test:watch": "vitest",
|
|
21
21
|
"lint": "node ../../scripts/ui-guards/run.mjs",
|
|
22
|
-
"prepublishOnly": "npm run typecheck && npm run lint && npm run build"
|
|
22
|
+
"prepublishOnly": "npm run typecheck && npm run lint && npm run build",
|
|
23
|
+
"push": "classytic-push"
|
|
23
24
|
},
|
|
24
25
|
"peerDependencies": {
|
|
25
|
-
"@classytic/commerce-sdk": ">=0.
|
|
26
|
-
"@classytic/fluid": ">=1.
|
|
26
|
+
"@classytic/commerce-sdk": ">=0.19.0",
|
|
27
|
+
"@classytic/fluid": ">=1.17.0",
|
|
27
28
|
"@classytic/pos-agent": ">=0.1.0",
|
|
28
|
-
"@classytic/primitives": ">=0.
|
|
29
|
+
"@classytic/primitives": ">=0.26.3",
|
|
29
30
|
"@tanstack/react-query": ">=5.0.0",
|
|
30
31
|
"clsx": ">=2.0.0",
|
|
31
32
|
"lucide-react": ">=1.0.0",
|
|
@@ -70,10 +71,11 @@
|
|
|
70
71
|
}
|
|
71
72
|
},
|
|
72
73
|
"devDependencies": {
|
|
73
|
-
"@classytic/commerce-sdk": "
|
|
74
|
-
"@classytic/
|
|
74
|
+
"@classytic/commerce-sdk": "^0.19.0",
|
|
75
|
+
"@classytic/dev-tools": "^0.2.1",
|
|
76
|
+
"@classytic/fluid": "^1.17.0",
|
|
75
77
|
"@classytic/pos-agent": ">=0.1.0",
|
|
76
|
-
"@classytic/primitives": "
|
|
78
|
+
"@classytic/primitives": "^0.26.3",
|
|
77
79
|
"@tanstack/react-query": "^5.101.2",
|
|
78
80
|
"@types/node": "^26.1.0",
|
|
79
81
|
"@types/react": "^19.2.17",
|