@becklyn/next 4.2.4 → 4.2.6

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":"focusTrap.d.ts","sourceRoot":"","sources":["../../../lib/focusTrap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAA4C,MAAM,OAAO,CAAC;AAEnF,eAAO,MAAM,iBAAiB,GAAU,WAAW,CAAC,WAAW,GAAG,UAAU,CAAC,EAAE,kBAa9E,CAAC;AAEF,eAAO,MAAM,kBAAkB,kMACwJ,CAAC;AAExL,KAAK,YAAY,CAAC,CAAC,IAAI;IACnB,gBAAgB,CAAC,CAAC,GAAG,IAAI,CAAC;IAC1B;QACI,MAAM,EAAE,MAAM,IAAI,CAAC;KACtB;CACJ,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,WAAW,EAAE,YAAY,CAAC,GAAG,IAAI,KAAG,YAAY,CAAC,CAAC,CAyDxF,CAAC"}
1
+ {"version":3,"file":"focusTrap.d.ts","sourceRoot":"","sources":["../../../lib/focusTrap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAA4C,MAAM,OAAO,CAAC;AAEnF,eAAO,MAAM,iBAAiB,GAAU,WAAW,CAAC,WAAW,GAAG,UAAU,CAAC,EAAE,kBAa9E,CAAC;AAEF,eAAO,MAAM,kBAAkB,kMACwJ,CAAC;AAExL,KAAK,YAAY,CAAC,CAAC,IAAI;IACnB,gBAAgB,CAAC,CAAC,GAAG,IAAI,CAAC;IAC1B;QACI,MAAM,EAAE,MAAM,IAAI,CAAC;KACtB;CACJ,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,WAAW,EAAE,YAAY,CAAC,GAAG,IAAI,KAAG,YAAY,CAAC,CAAC,CA0DxF,CAAC"}
@@ -41,6 +41,7 @@ const useTrapFocus = (container) => {
41
41
  if (!el) {
42
42
  return;
43
43
  }
44
+ // eslint-disable-next-line react-hooks/set-state-in-effect
44
45
  update();
45
46
  }, [container, update]);
46
47
  (0, react_1.useEffect)(() => {
@@ -1 +1 @@
1
- {"version":3,"file":"isMounted.d.ts","sourceRoot":"","sources":["../../../lib/isMounted.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,eAQxB,CAAC;AAEF,eAAO,MAAM,kBAAkB,eAQ9B,CAAC"}
1
+ {"version":3,"file":"isMounted.d.ts","sourceRoot":"","sources":["../../../lib/isMounted.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,eASxB,CAAC;AAEF,eAAO,MAAM,kBAAkB,eAS9B,CAAC"}
@@ -5,6 +5,7 @@ const react_1 = require("react");
5
5
  const useIsMounted = () => {
6
6
  const [isMounted, setIsMounted] = (0, react_1.useState)(false);
7
7
  (0, react_1.useEffect)(() => {
8
+ // eslint-disable-next-line react-hooks/set-state-in-effect
8
9
  setIsMounted(true);
9
10
  }, []);
10
11
  return isMounted;
@@ -13,6 +14,7 @@ exports.useIsMounted = useIsMounted;
13
14
  const useIsLayoutMounted = () => {
14
15
  const [isLayoutMounted, setIsLayoutMounted] = (0, react_1.useState)(false);
15
16
  (0, react_1.useLayoutEffect)(() => {
17
+ // eslint-disable-next-line react-hooks/set-state-in-effect
16
18
  setIsLayoutMounted(true);
17
19
  }, []);
18
20
  return isLayoutMounted;
@@ -1 +1 @@
1
- {"version":3,"file":"staticContent.d.ts","sourceRoot":"","sources":["../../../lib/staticContent.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB;eACO,MAAM;YAazC,CAAC"}
1
+ {"version":3,"file":"staticContent.d.ts","sourceRoot":"","sources":["../../../lib/staticContent.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB;eACO,MAAM;YAczC,CAAC"}
@@ -11,6 +11,7 @@ const useStaticContent = () => {
11
11
  // need to render the component without server-side backup
12
12
  const isEmpty = ((_a = ref.current) === null || _a === void 0 ? void 0 : _a.innerHTML) === "";
13
13
  if (isEmpty) {
14
+ // eslint-disable-next-line react-hooks/set-state-in-effect
14
15
  setRender(true);
15
16
  }
16
17
  }, []);
@@ -1 +1 @@
1
- {"version":3,"file":"useMediaQuery.d.ts","sourceRoot":"","sources":["../../../lib/useMediaQuery.ts"],"names":[],"mappings":"AAIA,KAAK,KAAK,GACJ,eAAe,MAAM,KAAK,GAC1B,eAAe,MAAM,KAAK,GAC1B,eAAe,MAAM,uBAAuB,MAAM,KAAK,CAAC;AAE9D;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,KAAK,KAAG,OAqC5C,CAAC"}
1
+ {"version":3,"file":"useMediaQuery.d.ts","sourceRoot":"","sources":["../../../lib/useMediaQuery.ts"],"names":[],"mappings":"AAIA,KAAK,KAAK,GACJ,eAAe,MAAM,KAAK,GAC1B,eAAe,MAAM,KAAK,GAC1B,eAAe,MAAM,uBAAuB,MAAM,KAAK,CAAC;AAE9D;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,KAAK,KAAG,OAsC5C,CAAC"}
@@ -19,6 +19,7 @@ const useMediaQuery = (query) => {
19
19
  }
20
20
  const mediaQuery = window.matchMedia(query);
21
21
  // Set initial value
22
+ // eslint-disable-next-line react-hooks/set-state-in-effect
22
23
  setMatches(mediaQuery.matches);
23
24
  currentMatches.current = mediaQuery.matches;
24
25
  // Create event listener
@@ -1 +1 @@
1
- {"version":3,"file":"focusTrap.d.ts","sourceRoot":"","sources":["../../../lib/focusTrap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAA4C,MAAM,OAAO,CAAC;AAEnF,eAAO,MAAM,iBAAiB,GAAU,WAAW,CAAC,WAAW,GAAG,UAAU,CAAC,EAAE,kBAa9E,CAAC;AAEF,eAAO,MAAM,kBAAkB,kMACwJ,CAAC;AAExL,KAAK,YAAY,CAAC,CAAC,IAAI;IACnB,gBAAgB,CAAC,CAAC,GAAG,IAAI,CAAC;IAC1B;QACI,MAAM,EAAE,MAAM,IAAI,CAAC;KACtB;CACJ,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,WAAW,EAAE,YAAY,CAAC,GAAG,IAAI,KAAG,YAAY,CAAC,CAAC,CAyDxF,CAAC"}
1
+ {"version":3,"file":"focusTrap.d.ts","sourceRoot":"","sources":["../../../lib/focusTrap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAA4C,MAAM,OAAO,CAAC;AAEnF,eAAO,MAAM,iBAAiB,GAAU,WAAW,CAAC,WAAW,GAAG,UAAU,CAAC,EAAE,kBAa9E,CAAC;AAEF,eAAO,MAAM,kBAAkB,kMACwJ,CAAC;AAExL,KAAK,YAAY,CAAC,CAAC,IAAI;IACnB,gBAAgB,CAAC,CAAC,GAAG,IAAI,CAAC;IAC1B;QACI,MAAM,EAAE,MAAM,IAAI,CAAC;KACtB;CACJ,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,WAAW,EAAE,YAAY,CAAC,GAAG,IAAI,KAAG,YAAY,CAAC,CAAC,CA0DxF,CAAC"}
@@ -32,6 +32,7 @@ const useTrapFocus = (container) => {
32
32
  if (!el) {
33
33
  return;
34
34
  }
35
+ // eslint-disable-next-line react-hooks/set-state-in-effect
35
36
  update();
36
37
  }, [container, update]);
37
38
  (0, react_1.useEffect)(() => {
@@ -1 +1 @@
1
- {"version":3,"file":"isMounted.d.ts","sourceRoot":"","sources":["../../../lib/isMounted.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,eAQxB,CAAC;AAEF,eAAO,MAAM,kBAAkB,eAQ9B,CAAC"}
1
+ {"version":3,"file":"isMounted.d.ts","sourceRoot":"","sources":["../../../lib/isMounted.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,eASxB,CAAC;AAEF,eAAO,MAAM,kBAAkB,eAS9B,CAAC"}
@@ -5,6 +5,7 @@ const react_1 = require("react");
5
5
  const useIsMounted = () => {
6
6
  const [isMounted, setIsMounted] = (0, react_1.useState)(false);
7
7
  (0, react_1.useEffect)(() => {
8
+ // eslint-disable-next-line react-hooks/set-state-in-effect
8
9
  setIsMounted(true);
9
10
  }, []);
10
11
  return isMounted;
@@ -13,6 +14,7 @@ exports.useIsMounted = useIsMounted;
13
14
  const useIsLayoutMounted = () => {
14
15
  const [isLayoutMounted, setIsLayoutMounted] = (0, react_1.useState)(false);
15
16
  (0, react_1.useLayoutEffect)(() => {
17
+ // eslint-disable-next-line react-hooks/set-state-in-effect
16
18
  setIsLayoutMounted(true);
17
19
  }, []);
18
20
  return isLayoutMounted;
@@ -1 +1 @@
1
- {"version":3,"file":"staticContent.d.ts","sourceRoot":"","sources":["../../../lib/staticContent.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB;eACO,MAAM;YAazC,CAAC"}
1
+ {"version":3,"file":"staticContent.d.ts","sourceRoot":"","sources":["../../../lib/staticContent.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB;eACO,MAAM;YAczC,CAAC"}
@@ -10,6 +10,7 @@ const useStaticContent = () => {
10
10
  // need to render the component without server-side backup
11
11
  const isEmpty = ref.current?.innerHTML === "";
12
12
  if (isEmpty) {
13
+ // eslint-disable-next-line react-hooks/set-state-in-effect
13
14
  setRender(true);
14
15
  }
15
16
  }, []);
@@ -1 +1 @@
1
- {"version":3,"file":"useMediaQuery.d.ts","sourceRoot":"","sources":["../../../lib/useMediaQuery.ts"],"names":[],"mappings":"AAIA,KAAK,KAAK,GACJ,eAAe,MAAM,KAAK,GAC1B,eAAe,MAAM,KAAK,GAC1B,eAAe,MAAM,uBAAuB,MAAM,KAAK,CAAC;AAE9D;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,KAAK,KAAG,OAqC5C,CAAC"}
1
+ {"version":3,"file":"useMediaQuery.d.ts","sourceRoot":"","sources":["../../../lib/useMediaQuery.ts"],"names":[],"mappings":"AAIA,KAAK,KAAK,GACJ,eAAe,MAAM,KAAK,GAC1B,eAAe,MAAM,KAAK,GAC1B,eAAe,MAAM,uBAAuB,MAAM,KAAK,CAAC;AAE9D;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,KAAK,KAAG,OAsC5C,CAAC"}
@@ -19,6 +19,7 @@ const useMediaQuery = (query) => {
19
19
  }
20
20
  const mediaQuery = window.matchMedia(query);
21
21
  // Set initial value
22
+ // eslint-disable-next-line react-hooks/set-state-in-effect
22
23
  setMatches(mediaQuery.matches);
23
24
  currentMatches.current = mediaQuery.matches;
24
25
  // Create event listener
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@becklyn/next",
3
- "version": "4.2.4",
3
+ "version": "4.2.6",
4
4
  "license": "MIT",
5
5
  "homepage": "https://github.com/Becklyn-Studios/ts-libs/tree/main/packages/next",
6
6
  "repository": {
@@ -16,18 +16,18 @@
16
16
  "dependencies": {
17
17
  "@contentful/rich-text-react-renderer": "^16.1.6",
18
18
  "keen-slider": "^6.8.6",
19
- "sass": "^1.94.2",
20
- "zod": "^4.1.13"
19
+ "sass": "^1.97.0",
20
+ "zod": "^4.2.1"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@becklyn/eslint": "*",
24
24
  "@becklyn/tsconfig": "*",
25
25
  "@contentful/rich-text-types": "^17.2.5",
26
- "@types/node": "^24.10.1",
26
+ "@types/node": "^24.10.4",
27
27
  "@types/react": "^19.2.7",
28
28
  "@types/react-dom": "^19.2.3",
29
- "next": "^15.5.7",
30
- "react": "^19.2.1",
29
+ "next": "^16.0.10",
30
+ "react": "^19.2.3",
31
31
  "typescript": "^5.9.3"
32
32
  },
33
33
  "peerDependencies": {