@machinemetrics/mm-react-components 1.3.1 → 1.3.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.
- package/dist/preview/ColorsPreview.d.ts +1 -1
- package/dist/preview/ColorsPreview.d.ts.map +1 -1
- package/dist/preview/DataTablePreview.d.ts +1 -1
- package/dist/preview/DataTablePreview.d.ts.map +1 -1
- package/dist/preview/SonnerPreview.d.ts.map +1 -1
- package/dist/preview/data-table/data-table-preview_column-content.d.ts.map +1 -1
- package/dist/preview/page-header/PageHeaderPreview.d.ts.map +1 -1
- package/dist/scripts/init.cjs +3 -7
- package/dist/scripts/install-skill.cjs +0 -1
- package/package.json +5 -4
|
@@ -4,6 +4,6 @@ export declare const COLORS_SECTION_ORDER: readonly ["Carbide Palette", "Core",
|
|
|
4
4
|
interface ColorsPreviewProps {
|
|
5
5
|
section?: ColorsSection;
|
|
6
6
|
}
|
|
7
|
-
export default function ColorsPreview({ section }: ColorsPreviewProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default function ColorsPreview({ section }: Readonly<ColorsPreviewProps>): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
9
9
|
//# sourceMappingURL=ColorsPreview.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColorsPreview.d.ts","sourceRoot":"","sources":["../../src/preview/ColorsPreview.tsx"],"names":[],"mappings":"AAOA,MAAM,MAAM,aAAa,GACrB,iBAAiB,GACjB,MAAM,GACN,SAAS,GACT,mBAAmB,GACnB,MAAM,GACN,OAAO,GACP,SAAS,GACT,SAAS,GACT,QAAQ,GACR,SAAS,GACT,MAAM,GACN,iBAAiB,CAAC;AAEtB,mFAAmF;AACnF,eAAO,MAAM,oBAAoB,6JAaY,CAAC;AAE9C,UAAU,kBAAkB;IAC1B,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;
|
|
1
|
+
{"version":3,"file":"ColorsPreview.d.ts","sourceRoot":"","sources":["../../src/preview/ColorsPreview.tsx"],"names":[],"mappings":"AAOA,MAAM,MAAM,aAAa,GACrB,iBAAiB,GACjB,MAAM,GACN,SAAS,GACT,mBAAmB,GACnB,MAAM,GACN,OAAO,GACP,SAAS,GACT,SAAS,GACT,QAAQ,GACR,SAAS,GACT,MAAM,GACN,iBAAiB,CAAC;AAEtB,mFAAmF;AACnF,eAAO,MAAM,oBAAoB,6JAaY,CAAC;AAE9C,UAAU,kBAAkB;IAC1B,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAaD,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EAAE,OAAO,EAAE,EAAE,QAAQ,CAAC,kBAAkB,CAAC,2CAwF9E"}
|
|
@@ -4,6 +4,6 @@ type DataTablePreviewProps = {
|
|
|
4
4
|
devForceLoading?: boolean;
|
|
5
5
|
devForceEmpty?: boolean;
|
|
6
6
|
};
|
|
7
|
-
export default function DataTablePreview({ profile: controlledProfile, devForceLoading, devForceEmpty, }: DataTablePreviewProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default function DataTablePreview({ profile: controlledProfile, devForceLoading, devForceEmpty, }: Readonly<DataTablePreviewProps>): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
9
9
|
//# sourceMappingURL=DataTablePreview.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTablePreview.d.ts","sourceRoot":"","sources":["../../src/preview/DataTablePreview.tsx"],"names":[],"mappings":"AAoKA,MAAM,MAAM,OAAO,GAAG,OAAO,GAAG,eAAe,GAAG,mBAAmB,CAAC;AAEtE,KAAK,qBAAqB,GAAG;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,OAAO,EAAE,iBAAiB,EAC1B,eAAuB,EACvB,aAAqB,GACtB,EAAE,qBAAqB,
|
|
1
|
+
{"version":3,"file":"DataTablePreview.d.ts","sourceRoot":"","sources":["../../src/preview/DataTablePreview.tsx"],"names":[],"mappings":"AAoKA,MAAM,MAAM,OAAO,GAAG,OAAO,GAAG,eAAe,GAAG,mBAAmB,CAAC;AAEtE,KAAK,qBAAqB,GAAG;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,OAAO,EAAE,iBAAiB,EAC1B,eAAuB,EACvB,aAAqB,GACtB,EAAE,QAAQ,CAAC,qBAAqB,CAAC,2CA4OjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SonnerPreview.d.ts","sourceRoot":"","sources":["../../src/preview/SonnerPreview.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SonnerPreview.d.ts","sourceRoot":"","sources":["../../src/preview/SonnerPreview.tsx"],"names":[],"mappings":"AAOA,MAAM,CAAC,OAAO,UAAU,aAAa,4CA6MpC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-table-preview_column-content.d.ts","sourceRoot":"","sources":["../../../src/preview/data-table/data-table-preview_column-content.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"data-table-preview_column-content.d.ts","sourceRoot":"","sources":["../../../src/preview/data-table/data-table-preview_column-content.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAevD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,KAAK,GAAG,MAAM,GAAG,QAAQ,CAAC;IAChC,KAAK,EAAE;QAAE,SAAS,EAAE,IAAI,GAAG,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IACnD,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AA4NF,eAAO,MAAM,2BAA2B,2FAMrC,CAAC;AAEJ,eAAO,MAAM,oBAAoB,EAAE,SAAS,CAAC,kBAAkB,CAAC,EAG5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageHeaderPreview.d.ts","sourceRoot":"","sources":["../../../src/preview/page-header/PageHeaderPreview.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PageHeaderPreview.d.ts","sourceRoot":"","sources":["../../../src/preview/page-header/PageHeaderPreview.tsx"],"names":[],"mappings":"AAaA,OAAO,2BAA2B,CAAC;AAQnC,MAAM,CAAC,OAAO,UAAU,iBAAiB,4CAyRxC"}
|
package/dist/scripts/init.cjs
CHANGED
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
* (or npx @machinemetrics/mm-react-components)
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
/* eslint-disable no-undef, no-unused-vars */
|
|
11
10
|
|
|
12
11
|
const { execSync } = require('child_process');
|
|
13
12
|
const fs = require('fs');
|
|
@@ -41,9 +40,6 @@ function log(message, color = 'reset') {
|
|
|
41
40
|
console.log(`${colors[color]}${message}${colors.reset}`);
|
|
42
41
|
}
|
|
43
42
|
|
|
44
|
-
function logWarning(message) {
|
|
45
|
-
log(`⚠️ ${message}`, 'yellow');
|
|
46
|
-
}
|
|
47
43
|
|
|
48
44
|
function detectChakraUI() {
|
|
49
45
|
const packageJsonPath = path.join(process.cwd(), 'package.json');
|
|
@@ -138,7 +134,7 @@ async function main() {
|
|
|
138
134
|
if (scriptsVersion && scriptsVersion.includes('5.0')) {
|
|
139
135
|
execSync('npm install react-scripts@^5.0.0', { stdio: 'inherit' });
|
|
140
136
|
}
|
|
141
|
-
} catch
|
|
137
|
+
} catch {
|
|
142
138
|
/* ignore */
|
|
143
139
|
}
|
|
144
140
|
log('React 19 — compatible', 'green');
|
|
@@ -149,7 +145,7 @@ async function main() {
|
|
|
149
145
|
);
|
|
150
146
|
log('React 18.2+ installed — compatible', 'green');
|
|
151
147
|
}
|
|
152
|
-
} catch
|
|
148
|
+
} catch {
|
|
153
149
|
log('React version check skipped', 'yellow');
|
|
154
150
|
}
|
|
155
151
|
|
|
@@ -204,7 +200,7 @@ async function main() {
|
|
|
204
200
|
if (fs.existsSync(installSkillPath)) {
|
|
205
201
|
try {
|
|
206
202
|
execSync(`node "${installSkillPath}"`, { stdio: 'inherit' });
|
|
207
|
-
} catch
|
|
203
|
+
} catch {
|
|
208
204
|
log(' Could not run skill installer.', 'yellow');
|
|
209
205
|
log(
|
|
210
206
|
' You can install later: npx @machinemetrics/mm-react-components mm-install-skill [--target=<cursor|copilot|claude|gemini>] [--scope=project|user]',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@machinemetrics/mm-react-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"description": "Industrial-grade React components for manufacturing applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -75,9 +75,9 @@
|
|
|
75
75
|
"serve:static": "vite preview --config vite.preview.config.mjs",
|
|
76
76
|
"dev": "vite",
|
|
77
77
|
"preview": "vite preview",
|
|
78
|
-
"lint": "eslint src/components/ui --report-unused-disable-directives --max-warnings 0",
|
|
79
|
-
"lint:verify": "eslint src/components/ui --report-unused-disable-directives --max-warnings 0 --quiet",
|
|
80
|
-
"lint:fix": "eslint src/components/ui --fix --report-unused-disable-directives --max-warnings 0",
|
|
78
|
+
"lint": "eslint src/components/ui src/hooks src/preview scripts --report-unused-disable-directives --max-warnings 0",
|
|
79
|
+
"lint:verify": "eslint src/components/ui src/hooks src/preview scripts --report-unused-disable-directives --max-warnings 0 --quiet",
|
|
80
|
+
"lint:fix": "eslint src/components/ui src/hooks src/preview scripts --fix --report-unused-disable-directives --max-warnings 0",
|
|
81
81
|
"type-check": "tsc --noEmit",
|
|
82
82
|
"format": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,css,md}\"",
|
|
83
83
|
"format:check": "prettier --check \"src/**/*.{ts,tsx,js,jsx,json,css,md}\"",
|
|
@@ -186,6 +186,7 @@
|
|
|
186
186
|
"cheerio": "^1.2.0",
|
|
187
187
|
"cross-env": "^10.1.0",
|
|
188
188
|
"eslint": "^10.3.0",
|
|
189
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
189
190
|
"eslint-plugin-react-refresh": "^0.5.2",
|
|
190
191
|
"eslint-plugin-sonarjs": "^4.0.3",
|
|
191
192
|
"globals": "^17.6.0",
|