@alexandregme/zljs 2.1.2 → 2.3.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 CHANGED
@@ -8,6 +8,23 @@ A change that needs action in an app has a **Migration** note. When updating, re
8
8
 
9
9
  ## [Unreleased]
10
10
 
11
+ ## [2.3.0] - 2026-11-10
12
+
13
+ ### Added
14
+
15
+ - `ZustandProviders`, with every provider of zljs that needs neither Redux nor a framework: `Loader` and `Toaster`, always on. It works in any React app
16
+
17
+ ### Changed
18
+
19
+ - `AppProviders` renders `ZustandProviders` inside the Redux store. It renders the same as before
20
+ - `Loader`, `Toaster`, `toast`, `useAppStore` and `useToastStore` moved to `features/`, the components that come with their own state. The exports are the same
21
+
22
+ ## [2.2.0] - 2026-11-10
23
+
24
+ ### Added
25
+
26
+ - `Card`, a surface with a border, rounded corners and a soft shadow, which groups what belongs together. `title`, `titleLevel` and `message` show a header above the children, and `color` sets the border, a light background and the shadow from the theme. It takes the width of its parent
27
+
11
28
  ## [2.1.2] - 2026-11-04
12
29
 
13
30
  ### Fixed
@@ -375,7 +392,9 @@ Replace the shade with the class of the `color` being tested, for example `/(^|\
375
392
 
376
393
  The message of `Error` is `text-zl-danger`. `none` and `ghost` didn't change.
377
394
 
378
- [Unreleased]: https://github.com/alexandregme/zljs/compare/v2.1.2...HEAD
395
+ [Unreleased]: https://github.com/alexandregme/zljs/compare/v2.3.0...HEAD
396
+ [2.3.0]: https://github.com/alexandregme/zljs/compare/v2.2.0...v2.3.0
397
+ [2.2.0]: https://github.com/alexandregme/zljs/compare/v2.1.2...v2.2.0
379
398
  [2.1.2]: https://github.com/alexandregme/zljs/compare/v2.1.0...v2.1.2
380
399
  [2.1.0]: https://github.com/alexandregme/zljs/compare/v2.0.1...v2.1.0
381
400
  [2.0.1]: https://github.com/alexandregme/zljs/compare/v2.0.0...v2.0.1
@@ -124,17 +124,17 @@ var Heading = ({ children, level = 1, color }) => {
124
124
  return /* @__PURE__ */ jsx3(Tag, { className: heading({ level, color }), children });
125
125
  };
126
126
 
127
- // core/state/zustand/toast/toast.store.ts
127
+ // features/toaster/state/toast.store.ts
128
128
  import { create } from "zustand";
129
129
  import { devtools } from "zustand/middleware";
130
130
 
131
- // core/state/zustand/toast/toast.const.ts
131
+ // features/toaster/state/toast.const.ts
132
132
  var toastInitialState = {
133
133
  toasts: []
134
134
  };
135
135
  var toastDevtools = { name: "zljs", store: "toast" };
136
136
 
137
- // core/state/zustand/toast/toast.store.ts
137
+ // features/toaster/state/toast.store.ts
138
138
  var toastId = 0;
139
139
  var useToastStore = create()(
140
140
  devtools(
@@ -163,11 +163,11 @@ var useToastStore = create()(
163
163
  )
164
164
  );
165
165
 
166
- // core/toaster/toaster.tsx
166
+ // features/toaster/components/toaster/toaster.tsx
167
167
  import { useEffect } from "react";
168
168
  import { Toaster as SonnerToaster, toast } from "sonner";
169
169
 
170
- // core/toaster/toaster.styles.ts
170
+ // features/toaster/components/toaster/toaster.styles.ts
171
171
  import { tv as tv4 } from "tailwind-variants";
172
172
  var focusOutline = "focus-visible:outline-2! focus-visible:outline-offset-2! focus-visible:outline-current!";
173
173
  var toaster = tv4({
@@ -191,7 +191,7 @@ var toasterColors = {
191
191
  "--error-border": "color-mix(in oklab, var(--color-zl-danger) 30%, white)"
192
192
  };
193
193
 
194
- // core/toaster/toaster.tsx
194
+ // features/toaster/components/toaster/toaster.tsx
195
195
  import { jsx as jsx4 } from "react/jsx-runtime";
196
196
  var Toaster = () => {
197
197
  const toasts = useToastStore((s) => s.toasts);
@@ -220,21 +220,21 @@ var Toaster = () => {
220
220
  );
221
221
  };
222
222
 
223
- // core/toaster/index.ts
223
+ // features/toaster/components/toaster/index.ts
224
224
  import { toast as toast2 } from "sonner";
225
225
 
226
- // core/state/zustand/app/app.store.ts
226
+ // features/app/state/app.store.ts
227
227
  import { create as create2 } from "zustand";
228
228
  import { devtools as devtools2 } from "zustand/middleware";
229
229
 
230
- // core/state/zustand/app/app.const.ts
230
+ // features/app/state/app.const.ts
231
231
  var appInitialState = {
232
232
  fetchingCalls: 0,
233
233
  fetching: false
234
234
  };
235
235
  var appDevtools = { name: "zljs", store: "app" };
236
236
 
237
- // core/state/zustand/app/app.store.ts
237
+ // features/app/state/app.store.ts
238
238
  var useAppStore = create2()(
239
239
  devtools2(
240
240
  (set) => ({
@@ -260,6 +260,58 @@ var useAppStore = create2()(
260
260
  )
261
261
  );
262
262
 
263
+ // core/spinner/spinner.const.ts
264
+ var spinnerIcons = {
265
+ circle: "LoaderCircle",
266
+ dots: "Loader",
267
+ refresh: "RefreshCw"
268
+ };
269
+
270
+ // core/spinner/spinner.styles.ts
271
+ import { tv as tv5 } from "tailwind-variants";
272
+ var spinner = tv5({
273
+ base: "inline-flex animate-spin"
274
+ });
275
+
276
+ // core/spinner/spinner.tsx
277
+ import { jsx as jsx5 } from "react/jsx-runtime";
278
+ var Spinner = ({
279
+ variant = "circle",
280
+ size = "md",
281
+ label = "Loading"
282
+ }) => /* @__PURE__ */ jsx5(
283
+ "span",
284
+ {
285
+ "data-testid": "spinner",
286
+ role: "status",
287
+ "aria-label": label,
288
+ className: spinner(),
289
+ children: /* @__PURE__ */ jsx5(Icon, { name: spinnerIcons[variant], size })
290
+ }
291
+ );
292
+
293
+ // features/app/components/loader/loader.styles.ts
294
+ import { tv as tv6 } from "tailwind-variants";
295
+ var loader = tv6({
296
+ base: "flex fixed inset-0 justify-center items-center bg-black/20 text-zl-primary z-50"
297
+ });
298
+
299
+ // features/app/components/loader/loader.tsx
300
+ import { jsx as jsx6 } from "react/jsx-runtime";
301
+ var Loader = ({ label = "Loading" }) => {
302
+ const fetching = useAppStore((s) => s.fetching);
303
+ if (!fetching) return null;
304
+ return /* @__PURE__ */ jsx6("div", { className: loader(), children: /* @__PURE__ */ jsx6(Spinner, { size: "lg", label }) });
305
+ };
306
+
307
+ // features/providers/components/zustand-providers/zustand-providers.tsx
308
+ import { Fragment as Fragment2, jsx as jsx7, jsxs } from "react/jsx-runtime";
309
+ var ZustandProviders = ({ children }) => /* @__PURE__ */ jsxs(Fragment2, { children: [
310
+ /* @__PURE__ */ jsx7(Loader, {}),
311
+ /* @__PURE__ */ jsx7(Toaster, {}),
312
+ children
313
+ ] });
314
+
263
315
  // core/state/redux/redux-provider/redux-provider.tsx
264
316
  import { useState } from "react";
265
317
  import { Provider } from "react-redux";
@@ -294,7 +346,7 @@ var createReduxStore = ({
294
346
  };
295
347
 
296
348
  // core/state/redux/redux-provider/redux-provider.tsx
297
- import { jsx as jsx5 } from "react/jsx-runtime";
349
+ import { jsx as jsx8 } from "react/jsx-runtime";
298
350
  var ReduxProvider = ({
299
351
  children,
300
352
  reducers = {},
@@ -310,7 +362,7 @@ var ReduxProvider = ({
310
362
  coreReducers
311
363
  })
312
364
  );
313
- return /* @__PURE__ */ jsx5(Provider, { store, children });
365
+ return /* @__PURE__ */ jsx8(Provider, { store, children });
314
366
  };
315
367
 
316
368
  // core/state/zustand/router/router.utils.ts
@@ -370,61 +422,19 @@ var usePageStore = create4()(
370
422
  )
371
423
  );
372
424
 
373
- // core/spinner/spinner.const.ts
374
- var spinnerIcons = {
375
- circle: "LoaderCircle",
376
- dots: "Loader",
377
- refresh: "RefreshCw"
378
- };
379
-
380
- // core/spinner/spinner.styles.ts
381
- import { tv as tv5 } from "tailwind-variants";
382
- var spinner = tv5({
383
- base: "inline-flex animate-spin"
384
- });
385
-
386
- // core/spinner/spinner.tsx
387
- import { jsx as jsx6 } from "react/jsx-runtime";
388
- var Spinner = ({
389
- variant = "circle",
390
- size = "md",
391
- label = "Loading"
392
- }) => /* @__PURE__ */ jsx6(
393
- "span",
394
- {
395
- "data-testid": "spinner",
396
- role: "status",
397
- "aria-label": label,
398
- className: spinner(),
399
- children: /* @__PURE__ */ jsx6(Icon, { name: spinnerIcons[variant], size })
400
- }
401
- );
402
-
403
- // core/loader/loader.styles.ts
404
- import { tv as tv6 } from "tailwind-variants";
405
- var loader = tv6({
406
- base: "flex fixed inset-0 justify-center items-center bg-black/20 text-zl-primary z-50"
407
- });
408
-
409
- // core/loader/loader.tsx
410
- import { jsx as jsx7 } from "react/jsx-runtime";
411
- var Loader = ({ label = "Loading" }) => {
412
- const fetching = useAppStore((s) => s.fetching);
413
- if (!fetching) return null;
414
- return /* @__PURE__ */ jsx7("div", { className: loader(), children: /* @__PURE__ */ jsx7(Spinner, { size: "lg", label }) });
415
- };
416
-
417
425
  export {
418
426
  Icon,
419
427
  Text,
420
428
  Heading,
421
429
  useToastStore,
422
430
  Toaster,
431
+ toast2 as toast,
423
432
  useAppStore,
433
+ Spinner,
434
+ Loader,
435
+ ZustandProviders,
424
436
  ReduxProvider,
425
437
  splitURLasPath,
426
438
  useRouterStore,
427
- usePageStore,
428
- Spinner,
429
- Loader
439
+ usePageStore
430
440
  };
package/dist/index.d.ts CHANGED
@@ -275,21 +275,30 @@ declare const Tag: ({ children, color, onRemove, removeLabel, }: TagProps) => re
275
275
 
276
276
  declare const Toaster: () => react.JSX.Element;
277
277
 
278
- interface AppState {
279
- fetchingCalls: number;
280
- fetching: boolean;
281
- startFetching: () => void;
282
- finishFetching: () => void;
278
+ type ToastType = "success" | "error" | "info" | "warning";
279
+ interface Toast {
280
+ id: number;
281
+ message: string;
282
+ type: ToastType;
283
+ }
284
+ interface ToastState {
285
+ toasts: Toast[];
286
+ addToast: (message: string, type?: ToastType) => number;
287
+ removeToast: (id: number) => void;
288
+ success: (message: string) => number;
289
+ error: (message: string) => number;
290
+ info: (message: string) => number;
291
+ warning: (message: string) => number;
283
292
  }
284
293
 
285
- declare const useAppStore: zustand.UseBoundStore<Omit<zustand.StoreApi<AppState>, "setState" | "devtools"> & {
286
- setState(partial: AppState | Partial<AppState> | ((state: AppState) => AppState | Partial<AppState>), replace?: false | undefined, action?: (string | {
294
+ declare const useToastStore: zustand.UseBoundStore<Omit<zustand.StoreApi<ToastState>, "setState" | "devtools"> & {
295
+ setState(partial: ToastState | Partial<ToastState> | ((state: ToastState) => ToastState | Partial<ToastState>), replace?: false | undefined, action?: (string | {
287
296
  [x: string]: unknown;
288
297
  [x: number]: unknown;
289
298
  [x: symbol]: unknown;
290
299
  type: string;
291
300
  }) | undefined): void;
292
- setState(state: AppState | ((state: AppState) => AppState), replace: true, action?: (string | {
301
+ setState(state: ToastState | ((state: ToastState) => ToastState), replace: true, action?: (string | {
293
302
  [x: string]: unknown;
294
303
  [x: number]: unknown;
295
304
  [x: symbol]: unknown;
@@ -300,30 +309,27 @@ declare const useAppStore: zustand.UseBoundStore<Omit<zustand.StoreApi<AppState>
300
309
  };
301
310
  }>;
302
311
 
303
- type ToastType = "success" | "error" | "info" | "warning";
304
- interface Toast {
305
- id: number;
306
- message: string;
307
- type: ToastType;
312
+ interface LoaderProps {
313
+ label?: string;
308
314
  }
309
- interface ToastState {
310
- toasts: Toast[];
311
- addToast: (message: string, type?: ToastType) => number;
312
- removeToast: (id: number) => void;
313
- success: (message: string) => number;
314
- error: (message: string) => number;
315
- info: (message: string) => number;
316
- warning: (message: string) => number;
315
+
316
+ declare const Loader: ({ label }: LoaderProps) => react.JSX.Element | null;
317
+
318
+ interface AppState {
319
+ fetchingCalls: number;
320
+ fetching: boolean;
321
+ startFetching: () => void;
322
+ finishFetching: () => void;
317
323
  }
318
324
 
319
- declare const useToastStore: zustand.UseBoundStore<Omit<zustand.StoreApi<ToastState>, "setState" | "devtools"> & {
320
- setState(partial: ToastState | Partial<ToastState> | ((state: ToastState) => ToastState | Partial<ToastState>), replace?: false | undefined, action?: (string | {
325
+ declare const useAppStore: zustand.UseBoundStore<Omit<zustand.StoreApi<AppState>, "setState" | "devtools"> & {
326
+ setState(partial: AppState | Partial<AppState> | ((state: AppState) => AppState | Partial<AppState>), replace?: false | undefined, action?: (string | {
321
327
  [x: string]: unknown;
322
328
  [x: number]: unknown;
323
329
  [x: symbol]: unknown;
324
330
  type: string;
325
331
  }) | undefined): void;
326
- setState(state: ToastState | ((state: ToastState) => ToastState), replace: true, action?: (string | {
332
+ setState(state: AppState | ((state: AppState) => AppState), replace: true, action?: (string | {
327
333
  [x: string]: unknown;
328
334
  [x: number]: unknown;
329
335
  [x: symbol]: unknown;
@@ -334,6 +340,12 @@ declare const useToastStore: zustand.UseBoundStore<Omit<zustand.StoreApi<ToastSt
334
340
  };
335
341
  }>;
336
342
 
343
+ interface ZustandProvidersProps {
344
+ children: ReactNode;
345
+ }
346
+
347
+ declare const ZustandProviders: ({ children }: ZustandProvidersProps) => react.JSX.Element;
348
+
337
349
  interface ModalEntry {
338
350
  name: string;
339
351
  payload?: unknown;
@@ -430,6 +442,20 @@ interface ConnectedModalProps {
430
442
 
431
443
  declare const ConnectedModal: ({ modalId, title, description, size, children, }: ConnectedModalProps) => react.JSX.Element;
432
444
 
445
+ interface CardProps {
446
+ children: ReactNode;
447
+ /** Shows above the children, as a heading. */
448
+ title?: string;
449
+ /** The heading level of `title`: 1 when the card is the whole page. */
450
+ titleLevel?: 1 | 2 | 3 | 4 | 5 | 6;
451
+ /** Shows under `title`. Muted on a white card. */
452
+ message?: string;
453
+ /** The border and a light background in that color. `none` is white. */
454
+ color?: SemanticColor;
455
+ }
456
+
457
+ declare const Card: ({ children, title, titleLevel, message, color, }: CardProps) => react.JSX.Element;
458
+
433
459
  type SpinnerVariant = "circle" | "dots" | "refresh";
434
460
  interface SpinnerProps {
435
461
  variant?: SpinnerVariant;
@@ -439,12 +465,6 @@ interface SpinnerProps {
439
465
 
440
466
  declare const Spinner: ({ variant, size, label, }: SpinnerProps) => react.JSX.Element;
441
467
 
442
- interface LoaderProps {
443
- label?: string;
444
- }
445
-
446
- declare const Loader: ({ label }: LoaderProps) => react.JSX.Element | null;
447
-
448
468
  interface HttpClientConfig {
449
469
  baseUrl?: string;
450
470
  headers?: Record<string, string>;
@@ -468,5 +488,5 @@ declare class HTTPClient {
468
488
  patch<T = unknown>(url: string, config?: HttpRequestConfig): Promise<T | undefined>;
469
489
  }
470
490
 
471
- export { AuxiliaryColor, Button, Checkbox, ConnectedModal, DataColor, DataGrid, Error, Form, HTTPClient, Heading, Icon, Input, Loader, Modal, Radio, ReduxProvider, ReduxProviderProps, Select, SemanticColor, Sidebar, Spinner, StatsCard, Tag, Text, TextArea, Toaster, WhatsAppButton, splitURLasPath, useAppStore, useModalStore, usePageStore, useRouterStore, useToastStore };
472
- export type { AppState, ButtonColor, ButtonProps, ButtonVariant, CheckboxProps, CheckboxVariant, ConnectedModalProps, DataGridColumn, DataGridProps, ErrorProps, FormProps, HeadingProps, HttpClientConfig, HttpRequestConfig, IconName, IconProps, InputProps, LoaderProps, ModalEntry, ModalProps, ModalState, PageState, RadioProps, ReduxStore, RouterState, SelectOption, SelectProps, SidebarItem, SidebarProps, SidebarSection, SidebarUser, Size, SpinnerProps, SpinnerVariant, StatsCardProps, TagColor, TagProps, TextAreaProps, TextProps, TextVariant, Toast, ToastState, ToastType, WhatsAppButtonProps };
491
+ export { AuxiliaryColor, Button, Card, Checkbox, ConnectedModal, DataColor, DataGrid, Error, Form, HTTPClient, Heading, Icon, Input, Loader, Modal, Radio, ReduxProvider, ReduxProviderProps, Select, SemanticColor, Sidebar, Spinner, StatsCard, Tag, Text, TextArea, Toaster, WhatsAppButton, ZustandProviders, splitURLasPath, useAppStore, useModalStore, usePageStore, useRouterStore, useToastStore };
492
+ export type { AppState, ButtonColor, ButtonProps, ButtonVariant, CardProps, CheckboxProps, CheckboxVariant, ConnectedModalProps, DataGridColumn, DataGridProps, ErrorProps, FormProps, HeadingProps, HttpClientConfig, HttpRequestConfig, IconName, IconProps, InputProps, LoaderProps, ModalEntry, ModalProps, ModalState, PageState, RadioProps, ReduxStore, RouterState, SelectOption, SelectProps, SidebarItem, SidebarProps, SidebarSection, SidebarUser, Size, SpinnerProps, SpinnerVariant, StatsCardProps, TagColor, TagProps, TextAreaProps, TextProps, TextVariant, Toast, ToastState, ToastType, WhatsAppButtonProps, ZustandProvidersProps };
package/dist/index.js CHANGED
@@ -7,12 +7,14 @@ import {
7
7
  Spinner,
8
8
  Text,
9
9
  Toaster,
10
+ ZustandProviders,
10
11
  splitURLasPath,
12
+ toast,
11
13
  useAppStore,
12
14
  usePageStore,
13
15
  useRouterStore,
14
16
  useToastStore
15
- } from "./chunk-CJYKXG6S.js";
17
+ } from "./chunk-NM6CB35H.js";
16
18
  import {
17
19
  Error,
18
20
  FormInput,
@@ -982,9 +984,6 @@ var Sidebar = ({
982
984
  ] });
983
985
  };
984
986
 
985
- // core/index.ts
986
- import { toast } from "sonner";
987
-
988
987
  // core/state/zustand/modal/modal.store.ts
989
988
  import { create } from "zustand";
990
989
  import { devtools } from "zustand/middleware";
@@ -1042,6 +1041,57 @@ var ConnectedModal = ({
1042
1041
  );
1043
1042
  };
1044
1043
 
1044
+ // core/card/card.styles.ts
1045
+ import { tv as tv12 } from "tailwind-variants";
1046
+ var card = tv12({
1047
+ slots: {
1048
+ // A soft, wide shadow in the color of the card. shadow-sm only spreads 1 to
1049
+ // 3px and reads as part of the border on a white page.
1050
+ base: "flex flex-col gap-6 w-full p-6 rounded-2xl border shadow-lg",
1051
+ header: "flex flex-col gap-1"
1052
+ },
1053
+ variants: {
1054
+ color: {
1055
+ primary: {
1056
+ base: "border-zl-primary bg-zl-primary/15 shadow-zl-primary/20"
1057
+ },
1058
+ success: {
1059
+ base: "border-zl-success bg-zl-success/15 shadow-zl-success/20"
1060
+ },
1061
+ danger: { base: "border-zl-danger bg-zl-danger/15 shadow-zl-danger/20" },
1062
+ warning: {
1063
+ base: "border-zl-warning bg-zl-warning/15 shadow-zl-warning/20"
1064
+ },
1065
+ info: { base: "border-zl-info bg-zl-info/15 shadow-zl-info/20" },
1066
+ muted: { base: "border-zl-muted bg-zl-muted/15 shadow-zl-muted/20" },
1067
+ none: { base: "border-gray-200 bg-white shadow-black/12" }
1068
+ }
1069
+ },
1070
+ defaultVariants: {
1071
+ color: "none"
1072
+ }
1073
+ });
1074
+
1075
+ // core/card/card.tsx
1076
+ import { jsx as jsx16, jsxs as jsxs13 } from "react/jsx-runtime";
1077
+ var Card = ({
1078
+ children,
1079
+ title: title2,
1080
+ titleLevel = 2,
1081
+ message,
1082
+ color = "none"
1083
+ }) => {
1084
+ const { base, header: header3 } = card({ color });
1085
+ const messageColor = color === "none" ? "muted" : "none";
1086
+ return /* @__PURE__ */ jsxs13("div", { "data-testid": "card", className: base(), children: [
1087
+ (title2 || message) && /* @__PURE__ */ jsxs13("div", { className: header3(), children: [
1088
+ title2 && /* @__PURE__ */ jsx16(Heading, { level: titleLevel, children: title2 }),
1089
+ message && /* @__PURE__ */ jsx16(Text, { color: messageColor, children: message })
1090
+ ] }),
1091
+ children
1092
+ ] });
1093
+ };
1094
+
1045
1095
  // core/http/http.client.ts
1046
1096
  import axios from "axios";
1047
1097
  var HTTPClient = class {
@@ -1115,6 +1165,7 @@ var HTTPClient = class {
1115
1165
  };
1116
1166
  export {
1117
1167
  Button,
1168
+ Card,
1118
1169
  Checkbox,
1119
1170
  ConnectedModal,
1120
1171
  DataGrid,
@@ -1139,6 +1190,7 @@ export {
1139
1190
  TextArea,
1140
1191
  Toaster,
1141
1192
  WhatsAppButton,
1193
+ ZustandProviders,
1142
1194
  splitURLasPath,
1143
1195
  toast,
1144
1196
  useAppStore,
@@ -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-NM6CB35H.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.1.2",
3
+ "version": "2.3.0",
4
4
  "description": "Opinionated, accessible React component library for enterprise apps (Next.js, Tailwind CSS v4).",
5
5
  "keywords": [
6
6
  "react",