@hed-hog/tag 0.0.332 → 0.0.338

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.
@@ -48,6 +48,7 @@ import {
48
48
  } from '@/components/ui/sheet';
49
49
  import { useDebounce } from '@/hooks/use-debounce';
50
50
  import { useFormDraft } from '@/hooks/use-form-draft';
51
+ import { usePersistedPageSize } from '@/hooks/use-persisted-page-size';
51
52
  import { formatDateTime } from '@/lib/format-date';
52
53
  import { useApp, useQuery } from '@hed-hog/next-app-provider';
53
54
  import { zodResolver } from '@hookform/resolvers/zod';
@@ -114,7 +115,11 @@ export default function TagPage() {
114
115
  const [searchTerm, setSearchTerm] = useState('');
115
116
  const debouncedSearch = useDebounce(searchTerm);
116
117
  const [page, setPage] = useState(1);
117
- const [pageSize, setPageSize] = useState<number>(10);
118
+ const [pageSize, setPageSize] = usePersistedPageSize({
119
+ storageKey: 'pagination:global:pageSize',
120
+ defaultValue: 10,
121
+ allowedValues: [...PAGE_SIZE_OPTIONS],
122
+ });
118
123
  const { request, currentLocaleCode, getSettingValue } = useApp();
119
124
 
120
125
  const form = useForm<FormValues>({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hed-hog/tag",
3
- "version": "0.0.332",
3
+ "version": "0.0.338",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "dependencies": {
@@ -10,9 +10,9 @@
10
10
  "@nestjs/jwt": "^11",
11
11
  "@nestjs/mapped-types": "*",
12
12
  "@hed-hog/api-prisma": "0.0.6",
13
+ "@hed-hog/core": "0.0.338",
13
14
  "@hed-hog/api-pagination": "0.0.7",
14
15
  "@hed-hog/api": "0.0.8",
15
- "@hed-hog/core": "0.0.332",
16
16
  "@hed-hog/api-locale": "0.0.14"
17
17
  },
18
18
  "exports": {