@movable/ui 3.16.0-eslint.2 → 3.16.0-oidc.1
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/README.md +4 -15
- package/package.json +4 -18
- package/lib/eslint-plugin/configs/recommended.d.ts +0 -11
- package/lib/eslint-plugin/configs/recommended.d.ts.map +0 -1
- package/lib/eslint-plugin/configs/recommended.js +0 -13
- package/lib/eslint-plugin/index.d.ts +0 -24
- package/lib/eslint-plugin/index.d.ts.map +0 -1
- package/lib/eslint-plugin/index.js +0 -20
- package/lib/eslint-plugin/rules/index.d.ts +0 -4
- package/lib/eslint-plugin/rules/index.d.ts.map +0 -1
- package/lib/eslint-plugin/rules/index.js +0 -10
- package/lib/eslint-plugin/rules/no-deprecated-grid.d.ts +0 -4
- package/lib/eslint-plugin/rules/no-deprecated-grid.d.ts.map +0 -1
- package/lib/eslint-plugin/rules/no-deprecated-grid.js +0 -43
package/README.md
CHANGED
|
@@ -40,9 +40,10 @@ This project supports alpha releases for testing changes before full releases.
|
|
|
40
40
|
For testing specific features or changes:
|
|
41
41
|
|
|
42
42
|
1. **Navigate to Actions tab** in GitHub repository
|
|
43
|
-
2. **Select "
|
|
43
|
+
2. **Select "Release to NPM"** workflow
|
|
44
44
|
3. **Click "Run workflow"** button
|
|
45
45
|
4. **Configure options:**
|
|
46
|
+
- `release_type`: Select `prerelease`
|
|
46
47
|
- `dist_tag`: Leave as `alpha` or customize (e.g., `beta`, `feature-test`)
|
|
47
48
|
- `increment`: Leave empty for auto-increment or specify (`patch`, `minor`, `major`)
|
|
48
49
|
5. **Click "Run workflow"** to trigger the release
|
|
@@ -65,21 +66,9 @@ yarn add @movable/ui@3.4.1-alpha.0
|
|
|
65
66
|
|
|
66
67
|
View all available versions at: https://www.npmjs.com/package/@movable/ui?activeTab=versions
|
|
67
68
|
|
|
68
|
-
##
|
|
69
|
+
## MCP Server
|
|
69
70
|
|
|
70
|
-
This
|
|
71
|
-
|
|
72
|
-
```bash
|
|
73
|
-
# In your consuming app's .eslintrc
|
|
74
|
-
{
|
|
75
|
-
"plugins": ["@movable/ui"],
|
|
76
|
-
"rules": {
|
|
77
|
-
"@movable/ui/no-deprecated-grid": "error"
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
See [eslint-plugin/README.md](./eslint-plugin/README.md) for full documentation.
|
|
71
|
+
This repo includes an MCP (Model Context Protocol) server that exposes component information to AI assistants like Claude Code. See [mcp-server/README.md](./mcp-server/README.md) for setup instructions.
|
|
83
72
|
|
|
84
73
|
## Conventional Commits
|
|
85
74
|
|
package/package.json
CHANGED
|
@@ -1,34 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@movable/ui",
|
|
3
|
-
"version": "3.16.0-
|
|
3
|
+
"version": "3.16.0-oidc.1",
|
|
4
4
|
"description": "Movable Ink's shared MUI components and MUI theme for our vite applications",
|
|
5
5
|
"module": "lib/index.mjs",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
7
7
|
"files": [
|
|
8
|
-
"lib"
|
|
9
|
-
"lib/eslint-plugin"
|
|
8
|
+
"lib"
|
|
10
9
|
],
|
|
11
|
-
"exports": {
|
|
12
|
-
".": {
|
|
13
|
-
"import": "./lib/index.mjs",
|
|
14
|
-
"types": "./lib/index.d.ts"
|
|
15
|
-
},
|
|
16
|
-
"./eslint-plugin": {
|
|
17
|
-
"require": "./lib/eslint-plugin/index.js",
|
|
18
|
-
"types": "./lib/eslint-plugin/index.d.ts"
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
10
|
"scripts": {
|
|
22
|
-
"build": "vite build
|
|
23
|
-
"build:eslint-plugin": "tsc --project eslint-plugin/tsconfig.json",
|
|
11
|
+
"build": "vite build",
|
|
24
12
|
"build-storybook": "storybook build",
|
|
25
13
|
"dev": "vite",
|
|
26
14
|
"lint": "run-p -n lint:src lint:cypress lint:stories",
|
|
27
15
|
"lint:src": "tsc --project ./tsconfig.json && eslint -c ./.eslintrc.json ./src --report-unused-disable-directives --max-warnings 0",
|
|
28
16
|
"lint:cypress": "tsc --project ./cypress/tsconfig.json && eslint -c ./cypress/.eslintrc.json ./cypress --resolve-plugins-relative-to ./cypress --report-unused-disable-directives --max-warnings 0 --no-error-on-unmatched-pattern",
|
|
29
17
|
"lint:stories": "tsc --project ./tsconfig.json && eslint -c ./.eslintrc.json ./stories --report-unused-disable-directives --max-warnings 0",
|
|
30
|
-
"prepare": "husky install
|
|
31
|
-
"link:eslint-plugin": "[ -d lib/eslint-plugin ] && mkdir -p node_modules/@movable && ln -sf ../../lib/eslint-plugin node_modules/@movable/eslint-plugin-ui || true",
|
|
18
|
+
"prepare": "husky install",
|
|
32
19
|
"percy:storybook": "PERCY_TOKEN=$PERCY_TOKEN percy exec --parallel -- percy storybook ./storybook-static",
|
|
33
20
|
"percy:upload": "PERCY_TOKEN=$PERCY_TOKEN percy build:finalize",
|
|
34
21
|
"storybook": "storybook dev -p 6006",
|
|
@@ -74,7 +61,6 @@
|
|
|
74
61
|
"@storybook/builder-vite": "^9.1.4",
|
|
75
62
|
"@storybook/react-vite": "^9.1.4",
|
|
76
63
|
"@swc/core": "^1.13.3",
|
|
77
|
-
"@types/eslint": "^9.6.1",
|
|
78
64
|
"@types/lodash-es": "^4.17.0",
|
|
79
65
|
"@types/react": "^18.2.19",
|
|
80
66
|
"@types/react-dom": "^18.2.7",
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Recommended ESLint configuration for @movable/ui consumers.
|
|
3
|
-
*
|
|
4
|
-
* Enforces best practices for importing and using @movable/ui components.
|
|
5
|
-
*/
|
|
6
|
-
export declare const recommended: {
|
|
7
|
-
rules: {
|
|
8
|
-
'@movable/ui/no-deprecated-grid': string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=recommended.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"recommended.d.ts","sourceRoot":"","sources":["../../../eslint-plugin/configs/recommended.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,eAAO,MAAM,WAAW;;;;CAIvB,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Recommended ESLint configuration for @movable/ui consumers.
|
|
4
|
-
*
|
|
5
|
-
* Enforces best practices for importing and using @movable/ui components.
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.recommended = void 0;
|
|
9
|
-
exports.recommended = {
|
|
10
|
-
rules: {
|
|
11
|
-
'@movable/ui/no-deprecated-grid': 'error',
|
|
12
|
-
},
|
|
13
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @movable/ui ESLint Plugin
|
|
3
|
-
*
|
|
4
|
-
* Provides shared ESLint rules for Movable Ink applications
|
|
5
|
-
* consuming the @movable/ui component library.
|
|
6
|
-
*/
|
|
7
|
-
declare const plugin: {
|
|
8
|
-
meta: {
|
|
9
|
-
name: string;
|
|
10
|
-
version: string;
|
|
11
|
-
};
|
|
12
|
-
configs: {
|
|
13
|
-
recommended: {
|
|
14
|
-
rules: {
|
|
15
|
-
'@movable/ui/no-deprecated-grid': string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
rules: {
|
|
20
|
-
'no-deprecated-grid': import("eslint").Rule.RuleModule;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
export = plugin;
|
|
24
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../eslint-plugin/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;CASX,CAAC;AAEF,SAAS,MAAM,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @movable/ui ESLint Plugin
|
|
4
|
-
*
|
|
5
|
-
* Provides shared ESLint rules for Movable Ink applications
|
|
6
|
-
* consuming the @movable/ui component library.
|
|
7
|
-
*/
|
|
8
|
-
const recommended_1 = require("./configs/recommended");
|
|
9
|
-
const rules_1 = require("./rules");
|
|
10
|
-
const plugin = {
|
|
11
|
-
meta: {
|
|
12
|
-
name: '@movable/ui',
|
|
13
|
-
version: '1.0.0',
|
|
14
|
-
},
|
|
15
|
-
configs: {
|
|
16
|
-
recommended: recommended_1.recommended,
|
|
17
|
-
},
|
|
18
|
-
rules: rules_1.rules,
|
|
19
|
-
};
|
|
20
|
-
module.exports = plugin;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../eslint-plugin/rules/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK;;CAEjB,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.rules = void 0;
|
|
7
|
-
const no_deprecated_grid_1 = __importDefault(require("./no-deprecated-grid"));
|
|
8
|
-
exports.rules = {
|
|
9
|
-
'no-deprecated-grid': no_deprecated_grid_1.default,
|
|
10
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"no-deprecated-grid.d.ts","sourceRoot":"","sources":["../../../eslint-plugin/rules/no-deprecated-grid.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAEnC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UA4ChB,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const rule = {
|
|
4
|
-
meta: {
|
|
5
|
-
type: 'suggestion',
|
|
6
|
-
docs: {
|
|
7
|
-
description: 'Disallow importing deprecated Grid v1 from MUI',
|
|
8
|
-
recommended: true,
|
|
9
|
-
},
|
|
10
|
-
messages: {
|
|
11
|
-
noGridV1: "Please use Grid2 from '@mui/material/Grid2' instead. Grid v1 is deprecated.",
|
|
12
|
-
},
|
|
13
|
-
schema: [],
|
|
14
|
-
},
|
|
15
|
-
create(context) {
|
|
16
|
-
return {
|
|
17
|
-
ImportDeclaration(node) {
|
|
18
|
-
const source = node.source.value;
|
|
19
|
-
// Check for: import { Grid } from '@mui/material'
|
|
20
|
-
if (source === '@mui/material') {
|
|
21
|
-
for (const specifier of node.specifiers) {
|
|
22
|
-
if (specifier.type === 'ImportSpecifier' &&
|
|
23
|
-
specifier.imported.type === 'Identifier' &&
|
|
24
|
-
specifier.imported.name === 'Grid') {
|
|
25
|
-
context.report({
|
|
26
|
-
node: specifier,
|
|
27
|
-
messageId: 'noGridV1',
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
// Check for: import Grid from '@mui/material/Grid'
|
|
33
|
-
if (source === '@mui/material/Grid') {
|
|
34
|
-
context.report({
|
|
35
|
-
node,
|
|
36
|
-
messageId: 'noGridV1',
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
};
|
|
41
|
-
},
|
|
42
|
-
};
|
|
43
|
-
exports.default = rule;
|