asv-hlps 1.4.24 → 1.4.25

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.
@@ -0,0 +1,5 @@
1
+ declare const useLinkParams: () => {
2
+ linkParams: any;
3
+ setLinkParams: (tob: any) => void;
4
+ };
5
+ export default useLinkParams;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const zustand_1 = require("zustand");
4
+ const linkParamsStore = (0, zustand_1.create)((set) => ({
5
+ linkParams: null,
6
+ setLinkParams: (params) => set(() => ({ linkParams: params })),
7
+ }));
8
+ const useLinkParams = () => {
9
+ const setLinkParams = linkParamsStore((s) => s.setLinkParams);
10
+ const linkParams = linkParamsStore((s) => s.linkParams);
11
+ return { linkParams, setLinkParams };
12
+ };
13
+ exports.default = useLinkParams;
@@ -0,0 +1,5 @@
1
+ declare const useLinkParams: () => {
2
+ linkParams: any;
3
+ setLinkParams: (tob: any) => void;
4
+ };
5
+ export default useLinkParams;
@@ -0,0 +1,11 @@
1
+ import { create } from "zustand";
2
+ const linkParamsStore = create((set) => ({
3
+ linkParams: null,
4
+ setLinkParams: (params) => set(() => ({ linkParams: params })),
5
+ }));
6
+ const useLinkParams = () => {
7
+ const setLinkParams = linkParamsStore((s) => s.setLinkParams);
8
+ const linkParams = linkParamsStore((s) => s.linkParams);
9
+ return { linkParams, setLinkParams };
10
+ };
11
+ export default useLinkParams;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asv-hlps",
3
- "version": "1.4.24",
3
+ "version": "1.4.25",
4
4
  "description": "helpers",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "module": "./lib/esm/index.js",
@@ -16,15 +16,15 @@
16
16
  "author": "Aril Vignon",
17
17
  "license": "ISC",
18
18
  "devDependencies": {
19
- "@types/express": "^5.0.0",
19
+ "@types/express": "^5.0.1",
20
20
  "@types/jwt-decode": "^3.1.0",
21
21
  "@types/lodash": "^4.17.16",
22
22
  "@types/pdfmake": "^0.2.11",
23
23
  "@types/randomatic": "^3.1.5",
24
- "@types/react": "^19.0.11"
24
+ "@types/react": "^19.0.12"
25
25
  },
26
26
  "dependencies": {
27
- "axios": "^1.8.3",
27
+ "axios": "^1.8.4",
28
28
  "class-validator": "^0.14.1",
29
29
  "classnames": "^2.5.1",
30
30
  "dayjs": "^1.11.13",
@@ -35,6 +35,7 @@
35
35
  "randomatic": "^3.1.1",
36
36
  "typeorm": "^0.3.21",
37
37
  "typescript": "^5.8.2",
38
- "yup": "^1.6.1"
38
+ "yup": "^1.6.1",
39
+ "zustand": "^5.0.3"
39
40
  }
40
41
  }