@alexandregme/zljs 1.1.0 → 1.1.2

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -3
  2. package/package.json +18 -9
package/dist/index.js CHANGED
@@ -825,7 +825,7 @@ var Heading = ({ children, level = 1, color }) => {
825
825
 
826
826
  // core/sidebar/sidebar.tsx
827
827
  import { useState as useState3 } from "react";
828
- import Link from "next/link";
828
+ import Link from "next/link.js";
829
829
 
830
830
  // core/sidebar/sidebar.styles.ts
831
831
  import { tv as tv12 } from "tailwind-variants";
@@ -1200,7 +1200,7 @@ var usePageStore = create5()(
1200
1200
  // core/page-wrapper/page-wrapper.tsx
1201
1201
  import { useEffect as useEffect2 } from "react";
1202
1202
  import { useDispatch, useStore } from "react-redux";
1203
- import { useRouter } from "next/compat/router";
1203
+ import { useRouter } from "next/compat/router.js";
1204
1204
  import { Fragment as Fragment4, jsx as jsx20 } from "react/jsx-runtime";
1205
1205
  var PageWrapper = ({
1206
1206
  reducers,
@@ -1285,7 +1285,7 @@ var Loader = ({ label: label5 = "Loading" }) => {
1285
1285
 
1286
1286
  // core/app-wrapper/app-wrapper.tsx
1287
1287
  import { useEffect as useEffect3 } from "react";
1288
- import { useRouter as useRouter2 } from "next/compat/router";
1288
+ import { useRouter as useRouter2 } from "next/compat/router.js";
1289
1289
  import { SessionProvider } from "next-auth/react";
1290
1290
  import { jsx as jsx24, jsxs as jsxs13 } from "react/jsx-runtime";
1291
1291
  var AppWrapper = ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexandregme/zljs",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "Opinionated, accessible React component library for enterprise apps (Next.js, Tailwind CSS v4).",
5
5
  "keywords": [
6
6
  "react",
@@ -51,13 +51,15 @@
51
51
  "access": "public"
52
52
  },
53
53
  "scripts": {
54
- "test": "vitest run --coverage",
54
+ "test": "vitest run --project unit --coverage",
55
55
  "lint": "tsc --noEmit && eslint . && prettier --check .",
56
56
  "lint:fix": "eslint . --fix && prettier --write .",
57
57
  "build": "storybook build",
58
58
  "storybook": "storybook dev -p 6006",
59
- "test:watch": "vitest --coverage",
60
- "test:coverage": "vitest run --coverage",
59
+ "test:watch": "vitest --project unit --coverage",
60
+ "test:coverage": "vitest run --project unit --coverage",
61
+ "test:storybook": "vitest run --project storybook",
62
+ "test:visual": "chromatic",
61
63
  "eslint": "eslint ./ --color --fix",
62
64
  "prettier": "prettier --write .",
63
65
  "stylelint": "stylelint '**/*.{css,scss}' --allow-empty-input",
@@ -83,36 +85,43 @@
83
85
  "zustand": "^5.0.11"
84
86
  },
85
87
  "devDependencies": {
88
+ "@chromatic-com/storybook": "^5.6.0",
86
89
  "@commitlint/cli": "^20.2.0",
87
90
  "@commitlint/config-conventional": "^20.2.0",
88
91
  "@eslint/js": "^9.39.1",
89
- "@storybook/react-vite": "^10.2.8",
92
+ "@storybook/addon-a11y": "^10.6.3",
93
+ "@storybook/addon-docs": "^10.6.3",
94
+ "@storybook/addon-vitest": "^10.6.3",
95
+ "@storybook/react-vite": "^10.6.3",
90
96
  "@tailwindcss/vite": "^4.1.18",
91
97
  "@testing-library/jest-dom": "^6.9.1",
92
98
  "@testing-library/react": "^16.3.0",
93
99
  "@types/react": "^19.2.7",
94
100
  "@types/react-dom": "^19.2.3",
95
- "@vitest/coverage-v8": "^4.0.18",
101
+ "@vitest/browser-playwright": "^4.1.12",
102
+ "@vitest/coverage-v8": "^4.1.12",
96
103
  "autoprefixer": "^10.4.23",
104
+ "chromatic": "^18.13.4",
97
105
  "eslint": "^9.39.1",
98
- "eslint-plugin-storybook": "10.1.11",
106
+ "eslint-plugin-storybook": "10.6.3",
99
107
  "globals": "^16.5.0",
100
108
  "husky": "^9.1.7",
101
109
  "jsdom": "^28.0.0",
102
110
  "lint-staged": "^16.2.7",
103
111
  "next": "^16.1.6",
112
+ "playwright": "^1.64.1",
104
113
  "postcss": "^8.5.6",
105
114
  "prettier": "^3.7.4",
106
115
  "react": "^19.2.1",
107
116
  "react-dom": "^19.2.1",
108
- "storybook": "^10.4.6",
117
+ "storybook": "^10.6.3",
109
118
  "stylelint": "^16.26.1",
110
119
  "tailwindcss": "^4.1.18",
111
120
  "tsup": "^9.0.0",
112
121
  "typescript": "^5.9.3",
113
122
  "typescript-eslint": "^8.49.0",
114
123
  "vite": "^7.2.7",
115
- "vitest": "^4.0.18"
124
+ "vitest": "^4.1.12"
116
125
  },
117
126
  "peerDependencies": {
118
127
  "@reduxjs/toolkit": "^2.0.0",