@machinemetrics/mm-react-components 0.2.3-31 → 0.2.3-33

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 (29) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/README.md +2 -2
  3. package/agent-docs/agent-documentation-reference.md +1 -1
  4. package/agent-docs/ai-agent-init-guide.md +2 -2
  5. package/agent-docs/setup-reference.md +5 -5
  6. package/dist/App.d.ts.map +1 -1
  7. package/dist/README.md +2 -2
  8. package/dist/components/shadcn/button.d.ts.map +1 -1
  9. package/dist/components/shadcn/calendar.d.ts +1 -1
  10. package/dist/components/shadcn/calendar.d.ts.map +1 -1
  11. package/dist/components/shadcn/form.d.ts +1 -1
  12. package/dist/components/shadcn/form.d.ts.map +1 -1
  13. package/dist/components/shadcn/select.d.ts.map +1 -1
  14. package/dist/components/ui/data-table/TableView.d.ts.map +1 -1
  15. package/dist/components/ui/data-table/cards/ResponsiveTable.d.ts.map +1 -1
  16. package/dist/components/ui/data-table/columnTypes/badgeColumn.d.ts.map +1 -1
  17. package/dist/components/ui/data-table/columnTypes/multiBadgeColumn.d.ts.map +1 -1
  18. package/dist/components/ui/data-table/columnTypes/numericColumn.d.ts.map +1 -1
  19. package/dist/components/ui/data-table/parts/SortableHeader.d.ts.map +1 -1
  20. package/dist/components/ui/data-table/useTableController.d.ts.map +1 -1
  21. package/dist/components/ui/slider.d.ts.map +1 -1
  22. package/dist/components/ui/table/Table.d.ts.map +1 -1
  23. package/dist/lib/mm-react-components.css +1 -1
  24. package/dist/mm-react-components.es.js +542 -45876
  25. package/dist/mm-react-components.es.js.map +1 -1
  26. package/dist/mm-react-components.umd.js +1 -88
  27. package/dist/mm-react-components.umd.js.map +1 -1
  28. package/dist/scripts/npx-init.cjs +19 -11
  29. package/package.json +40 -39
@@ -127,17 +127,25 @@ async function main() {
127
127
 
128
128
  if (reactVersion && reactVersion.includes('18')) {
129
129
  log(
130
- '⚠️ React 18 detected - upgrading to React 19 for compatibility',
131
- 'yellow',
132
- );
133
- execSync(
134
- 'npm install react@^19.1.1 react-dom@^19.1.1 react-scripts@latest',
135
- { stdio: 'inherit' },
130
+ 'React 18 detected - library supports React 18.2+ and 19+',
131
+ 'green',
136
132
  );
137
- log('✅ React upgraded to v19 with compatible react-scripts', 'green');
133
+ // Check if React version is 18.2.0 or higher (required for useId hook)
134
+ const versionMatch = reactVersion.match(/18\.(\d+)\./);
135
+ if (versionMatch && parseInt(versionMatch[1]) < 2) {
136
+ log(
137
+ '⚠️ React 18.0.x or 18.1.x detected - upgrading to React 18.2+ for compatibility',
138
+ 'yellow',
139
+ );
140
+ execSync(
141
+ 'npm install react@^18.2.0 react-dom@^18.2.0',
142
+ { stdio: 'inherit' },
143
+ );
144
+ log('✅ React upgraded to 18.2+', 'green');
145
+ }
138
146
  } else if (reactVersion && reactVersion.includes('19')) {
139
147
  log(
140
- '✅ React 19 detected - checking react-scripts compatibility',
148
+ '✅ React 19 detected - library fully compatible',
141
149
  'green',
142
150
  );
143
151
  // Check if react-scripts needs updating for React 19
@@ -159,14 +167,14 @@ async function main() {
159
167
  }
160
168
  } else {
161
169
  log(
162
- '⚠️ Unknown React version - attempting to install React 19',
170
+ '⚠️ No React version detected - installing React 18.2+ (supports both 18.2+ and 19+)',
163
171
  'yellow',
164
172
  );
165
173
  execSync(
166
- 'npm install react@^19.1.1 react-dom@^19.1.1 react-scripts@latest',
174
+ 'npm install react@^18.2.0 react-dom@^18.2.0',
167
175
  { stdio: 'inherit' },
168
176
  );
169
- log('✅ React 19 installed', 'green');
177
+ log('✅ React 18.2+ installed', 'green');
170
178
  }
171
179
  } catch (_error) {
172
180
  log('⚠️ Could not check React version, continuing...', 'yellow');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@machinemetrics/mm-react-components",
3
- "version": "0.2.3-31",
3
+ "version": "0.2.3-33",
4
4
  "description": "Industrial-grade React components for manufacturing applications",
5
5
  "keywords": [
6
6
  "react",
@@ -44,8 +44,8 @@
44
44
  "peerDependencies": {
45
45
  "autoprefixer": "^10.0.0",
46
46
  "postcss": "^8.5.6",
47
- "react": "^19.1.1",
48
- "react-dom": "^19.1.1",
47
+ "react": "^18.2.0 || ^19.0.0",
48
+ "react-dom": "^18.2.0 || ^19.0.0",
49
49
  "tailwindcss": "^4.0.0"
50
50
  },
51
51
  "peerDependenciesMeta": {
@@ -108,73 +108,74 @@
108
108
  "@hookform/resolvers": "^5.2.2",
109
109
  "@radix-ui/react-accordion": "^1.2.12",
110
110
  "@radix-ui/react-alert-dialog": "^1.1.15",
111
- "@radix-ui/react-avatar": "^1.1.10",
111
+ "@radix-ui/react-avatar": "^1.1.11",
112
112
  "@radix-ui/react-checkbox": "^1.3.3",
113
113
  "@radix-ui/react-collapsible": "^1.1.12",
114
114
  "@radix-ui/react-dialog": "^1.1.15",
115
115
  "@radix-ui/react-dropdown-menu": "^2.1.16",
116
- "@radix-ui/react-label": "^2.1.7",
116
+ "@radix-ui/react-label": "^2.1.8",
117
117
  "@radix-ui/react-popover": "^1.1.15",
118
- "@radix-ui/react-progress": "^1.1.7",
118
+ "@radix-ui/react-progress": "^1.1.8",
119
119
  "@radix-ui/react-radio-group": "^1.3.8",
120
120
  "@radix-ui/react-select": "^2.2.6",
121
- "@radix-ui/react-separator": "^1.1.7",
121
+ "@radix-ui/react-separator": "^1.1.8",
122
122
  "@radix-ui/react-slider": "^1.3.6",
123
- "@radix-ui/react-slot": "^1.2.3",
123
+ "@radix-ui/react-slot": "^1.2.4",
124
124
  "@radix-ui/react-switch": "^1.2.6",
125
125
  "@radix-ui/react-tabs": "^1.1.13",
126
126
  "@radix-ui/react-toggle": "^1.1.10",
127
127
  "@radix-ui/react-tooltip": "^1.2.8",
128
128
  "@tanstack/react-table": "^8.21.3",
129
- "@tanstack/react-virtual": "3.13.12",
129
+ "@tanstack/react-virtual": "3.13.18",
130
130
  "class-variance-authority": "^0.7.1",
131
131
  "clsx": "^2.1.1",
132
132
  "cmdk": "^1.1.1",
133
133
  "date-fns": "^4.1.0",
134
- "lucide-react": "^0.544.0",
134
+ "lucide-react": "^0.562.0",
135
135
  "next-themes": "^0.4.6",
136
- "react": "^19.1.1",
137
- "react-day-picker": "^9.11.1",
138
- "react-dom": "^19.1.1",
136
+ "react": "^18.2.0 || ^19.0.0",
137
+ "react-day-picker": "^9.13.0",
138
+ "react-dom": "^18.2.0 || ^19.0.0",
139
139
  "react-dropzone": "14.3.8",
140
- "react-hook-form": "^7.65.0",
140
+ "react-hook-form": "^7.71.0",
141
141
  "recharts": "^2.15.4",
142
142
  "sonner": "^2.0.7",
143
- "tailwind-merge": "^3.3.1",
144
- "tw-animate-css": "^1.3.8",
143
+ "tailwind-merge": "^3.4.0",
144
+ "tw-animate-css": "^1.4.0",
145
145
  "vaul": "^1.1.2",
146
- "zod": "^4.1.12"
146
+ "zod": "^4.3.5"
147
147
  },
148
148
  "devDependencies": {
149
- "@eslint/js": "^9.33.0",
149
+ "@eslint/js": "^9.39.2",
150
150
  "@laynezh/vite-plugin-lib-assets": "^2.1.3",
151
- "@playwright/test": "^1.55.0",
152
- "@tailwindcss/postcss": "^4.1.13",
153
- "@tailwindcss/vite": "^4.1.13",
154
- "@types/node": "^24.5.0",
155
- "@types/react": "^19.1.10",
156
- "@types/react-dom": "^19.1.7",
151
+ "@playwright/test": "^1.57.0",
152
+ "@tailwindcss/postcss": "^4.1.18",
153
+ "@tailwindcss/vite": "^4.1.18",
154
+ "@types/node": "^25.0.6",
155
+ "@types/react": "^19.2.8",
156
+ "@types/react-dom": "^19.2.3",
157
157
  "@types/react-table": "^7.7.20",
158
- "@typescript-eslint/eslint-plugin": "^8.43.0",
159
- "@typescript-eslint/parser": "^8.43.0",
160
- "@vitejs/plugin-react": "^5.0.0",
161
- "autoprefixer": "^10.4.21",
162
- "eslint": "^9.33.0",
158
+ "@typescript-eslint/eslint-plugin": "^8.53.0",
159
+ "@typescript-eslint/parser": "^8.53.0",
160
+ "@vitejs/plugin-react": "^5.1.2",
161
+ "autoprefixer": "^10.4.23",
162
+ "cheerio": "^1.0.0",
163
+ "eslint": "^9.39.2",
163
164
  "eslint-config-prettier": "^10.1.8",
164
165
  "eslint-plugin-jsx-a11y": "^6.10.2",
165
166
  "eslint-plugin-prettier": "^5.5.4",
166
167
  "eslint-plugin-react": "^7.37.5",
167
- "eslint-plugin-react-hooks": "^5.2.0",
168
- "eslint-plugin-react-refresh": "^0.4.20",
169
- "globals": "^16.3.0",
168
+ "eslint-plugin-react-hooks": "^7.0.1",
169
+ "eslint-plugin-react-refresh": "^0.4.26",
170
+ "globals": "^17.0.0",
170
171
  "playwright": "^1.57.0",
171
- "prettier": "^3.6.2",
172
- "tailwindcss": "^4.1.14",
173
- "terser": "^5.44.0",
174
- "tsx": "^4.19.2",
175
- "typescript": "~5.8.3",
176
- "typescript-eslint": "^8.39.1",
177
- "vite": "^7.1.2"
172
+ "prettier": "^3.7.4",
173
+ "tailwindcss": "^4.1.18",
174
+ "terser": "^5.44.1",
175
+ "tsx": "^4.21.0",
176
+ "typescript": "~5.9.3",
177
+ "typescript-eslint": "^8.53.0",
178
+ "vite": "^7.3.1"
178
179
  },
179
180
  "files": [
180
181
  "dist",