@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.
- package/CHANGELOG.md +1 -1
- package/README.md +2 -2
- package/agent-docs/agent-documentation-reference.md +1 -1
- package/agent-docs/ai-agent-init-guide.md +2 -2
- package/agent-docs/setup-reference.md +5 -5
- package/dist/App.d.ts.map +1 -1
- package/dist/README.md +2 -2
- package/dist/components/shadcn/button.d.ts.map +1 -1
- package/dist/components/shadcn/calendar.d.ts +1 -1
- package/dist/components/shadcn/calendar.d.ts.map +1 -1
- package/dist/components/shadcn/form.d.ts +1 -1
- package/dist/components/shadcn/form.d.ts.map +1 -1
- package/dist/components/shadcn/select.d.ts.map +1 -1
- package/dist/components/ui/data-table/TableView.d.ts.map +1 -1
- package/dist/components/ui/data-table/cards/ResponsiveTable.d.ts.map +1 -1
- package/dist/components/ui/data-table/columnTypes/badgeColumn.d.ts.map +1 -1
- package/dist/components/ui/data-table/columnTypes/multiBadgeColumn.d.ts.map +1 -1
- package/dist/components/ui/data-table/columnTypes/numericColumn.d.ts.map +1 -1
- package/dist/components/ui/data-table/parts/SortableHeader.d.ts.map +1 -1
- package/dist/components/ui/data-table/useTableController.d.ts.map +1 -1
- package/dist/components/ui/slider.d.ts.map +1 -1
- package/dist/components/ui/table/Table.d.ts.map +1 -1
- package/dist/lib/mm-react-components.css +1 -1
- package/dist/mm-react-components.es.js +542 -45876
- package/dist/mm-react-components.es.js.map +1 -1
- package/dist/mm-react-components.umd.js +1 -88
- package/dist/mm-react-components.umd.js.map +1 -1
- package/dist/scripts/npx-init.cjs +19 -11
- 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
|
-
'
|
|
131
|
-
'
|
|
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
|
-
|
|
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 -
|
|
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
|
-
'⚠️
|
|
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@^
|
|
174
|
+
'npm install react@^18.2.0 react-dom@^18.2.0',
|
|
167
175
|
{ stdio: 'inherit' },
|
|
168
176
|
);
|
|
169
|
-
log('✅ React
|
|
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-
|
|
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.
|
|
48
|
-
"react-dom": "^19.
|
|
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.
|
|
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.
|
|
116
|
+
"@radix-ui/react-label": "^2.1.8",
|
|
117
117
|
"@radix-ui/react-popover": "^1.1.15",
|
|
118
|
-
"@radix-ui/react-progress": "^1.1.
|
|
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.
|
|
121
|
+
"@radix-ui/react-separator": "^1.1.8",
|
|
122
122
|
"@radix-ui/react-slider": "^1.3.6",
|
|
123
|
-
"@radix-ui/react-slot": "^1.2.
|
|
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.
|
|
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.
|
|
134
|
+
"lucide-react": "^0.562.0",
|
|
135
135
|
"next-themes": "^0.4.6",
|
|
136
|
-
"react": "^19.
|
|
137
|
-
"react-day-picker": "^9.
|
|
138
|
-
"react-dom": "^19.
|
|
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.
|
|
140
|
+
"react-hook-form": "^7.71.0",
|
|
141
141
|
"recharts": "^2.15.4",
|
|
142
142
|
"sonner": "^2.0.7",
|
|
143
|
-
"tailwind-merge": "^3.
|
|
144
|
-
"tw-animate-css": "^1.
|
|
143
|
+
"tailwind-merge": "^3.4.0",
|
|
144
|
+
"tw-animate-css": "^1.4.0",
|
|
145
145
|
"vaul": "^1.1.2",
|
|
146
|
-
"zod": "^4.
|
|
146
|
+
"zod": "^4.3.5"
|
|
147
147
|
},
|
|
148
148
|
"devDependencies": {
|
|
149
|
-
"@eslint/js": "^9.
|
|
149
|
+
"@eslint/js": "^9.39.2",
|
|
150
150
|
"@laynezh/vite-plugin-lib-assets": "^2.1.3",
|
|
151
|
-
"@playwright/test": "^1.
|
|
152
|
-
"@tailwindcss/postcss": "^4.1.
|
|
153
|
-
"@tailwindcss/vite": "^4.1.
|
|
154
|
-
"@types/node": "^
|
|
155
|
-
"@types/react": "^19.
|
|
156
|
-
"@types/react-dom": "^19.
|
|
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.
|
|
159
|
-
"@typescript-eslint/parser": "^8.
|
|
160
|
-
"@vitejs/plugin-react": "^5.
|
|
161
|
-
"autoprefixer": "^10.4.
|
|
162
|
-
"
|
|
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": "^
|
|
168
|
-
"eslint-plugin-react-refresh": "^0.4.
|
|
169
|
-
"globals": "^
|
|
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.
|
|
172
|
-
"tailwindcss": "^4.1.
|
|
173
|
-
"terser": "^5.44.
|
|
174
|
-
"tsx": "^4.
|
|
175
|
-
"typescript": "~5.
|
|
176
|
-
"typescript-eslint": "^8.
|
|
177
|
-
"vite": "^7.1
|
|
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",
|