@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.
@@ -1,13 +1,12 @@
1
1
  "use client";
2
2
  import {
3
3
  Heading,
4
- Loader,
5
4
  ReduxProvider,
6
5
  Text,
7
- Toaster,
6
+ ZustandProviders,
8
7
  usePageStore,
9
8
  useRouterStore
10
- } from "../chunk-CJYKXG6S.js";
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 AppProviders = ({ children, ...store }) => {
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 /* @__PURE__ */ jsxs2(ReduxProvider, { ...store, children: [
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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexandregme/zljs",
3
- "version": "2.2.0",
3
+ "version": "3.0.0",
4
4
  "description": "Opinionated, accessible React component library for enterprise apps (Next.js, Tailwind CSS v4).",
5
5
  "keywords": [
6
6
  "react",