@alexandregme/zljs 2.2.0 → 3.0.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.
- package/CHANGELOG.md +33 -1
- package/dist/{chunk-CJYKXG6S.js → chunk-NIKMOT72.js} +360 -78
- package/dist/index.d.ts +45 -56
- package/dist/index.js +125 -399
- package/dist/next/index.js +8 -9
- package/package.json +1 -1
package/dist/next/index.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Heading,
|
|
4
|
-
Loader,
|
|
5
4
|
ReduxProvider,
|
|
6
5
|
Text,
|
|
7
|
-
|
|
6
|
+
ZustandProviders,
|
|
8
7
|
usePageStore,
|
|
9
8
|
useRouterStore
|
|
10
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-NIKMOT72.js";
|
|
11
10
|
|
|
12
11
|
// core/next/root-layout/root-layout.styles.ts
|
|
13
12
|
import { tv } from "tailwind-variants";
|
|
@@ -84,7 +83,7 @@ var NotFound = ({
|
|
|
84
83
|
import { useEffect } from "react";
|
|
85
84
|
import { usePathname } from "next/navigation.js";
|
|
86
85
|
import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
87
|
-
var
|
|
86
|
+
var RouteSync = () => {
|
|
88
87
|
const pathname = usePathname();
|
|
89
88
|
const setRoute = useRouterStore((s) => s.setRoute);
|
|
90
89
|
useEffect(() => {
|
|
@@ -92,12 +91,12 @@ var AppProviders = ({ children, ...store }) => {
|
|
|
92
91
|
setRoute(`${pathname}${window.location.search}`);
|
|
93
92
|
}
|
|
94
93
|
}, [pathname, setRoute]);
|
|
95
|
-
return
|
|
96
|
-
/* @__PURE__ */ jsx4(Loader, {}),
|
|
97
|
-
/* @__PURE__ */ jsx4(Toaster, {}),
|
|
98
|
-
children
|
|
99
|
-
] });
|
|
94
|
+
return null;
|
|
100
95
|
};
|
|
96
|
+
var AppProviders = ({ children, ...store }) => /* @__PURE__ */ jsxs2(ReduxProvider, { ...store, children: [
|
|
97
|
+
/* @__PURE__ */ jsx4(RouteSync, {}),
|
|
98
|
+
/* @__PURE__ */ jsx4(ZustandProviders, { children })
|
|
99
|
+
] });
|
|
101
100
|
|
|
102
101
|
// core/next/page-config/page-config.tsx
|
|
103
102
|
import { useEffect as useEffect2 } from "react";
|