@corva/ui 3.54.0-19 → 3.54.0-20
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
CHANGED
|
@@ -51,10 +51,11 @@ See [MCP Server documentation](./mcp-server/README.md) for setup instructions an
|
|
|
51
51
|
| Command | What it does |
|
|
52
52
|
|---|---|
|
|
53
53
|
| `yarn figma:publish` | Publish all Code Connect mappings to Figma. Safe to run multiple times — upserts per node, does not touch other nodes' mappings. |
|
|
54
|
+
| `yarn figma:publish-file <path>` | Publish a single Code Connect file via the native CLI `--file` flag. In this repo, each file maps one node. |
|
|
54
55
|
| `yarn figma:dry-run` | Validate all `.figma.tsx` files locally without publishing — use before merging |
|
|
56
|
+
| `yarn figma:dry-run-file <path>` | Validate a single Code Connect file locally via the native CLI `--file` flag. |
|
|
55
57
|
| `yarn figma:unpublish` | Remove Code Connect mappings from Figma. Safe to run multiple times — second run is a no-op (logs a warning if nothing was found to delete). |
|
|
56
|
-
| `yarn figma:
|
|
57
|
-
| `yarn figma:unpublish-node '<URL>' --label React` | Remove a single node's Code Connect mapping (uses CLI `--node` flag). |
|
|
58
|
+
| `yarn figma:unpublish-file <path>` | Unpublish a single Code Connect file via the native CLI `--file` flag. |
|
|
58
59
|
| `yarn figma:unpublish-node-force '<URL>'` | Force-remove a mapping via the REST API. Use when the Figma component has been deleted and `unpublish` fails. |
|
|
59
60
|
|
|
60
61
|
### Creating a new mapping
|
|
@@ -89,18 +90,18 @@ Use `yarn figma:dry-run` to verify the file is valid before publishing.
|
|
|
89
90
|
|
|
90
91
|
### Publishing / unpublishing a single component
|
|
91
92
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
1. Temporarily narrow the `include` glob in `figma.config.ts` to match only that file
|
|
95
|
-
2. Run `yarn figma:publish`
|
|
96
|
-
3. Revert the config change
|
|
97
|
-
|
|
98
|
-
To **unpublish a single node**, use the `--node` flag with the Figma component URL (copy it from Dev Mode) and `--label`:
|
|
93
|
+
To publish or validate a single mapping, use the CLI `--file` flag:
|
|
99
94
|
|
|
100
95
|
```bash
|
|
101
|
-
|
|
96
|
+
yarn figma:publish-file src/componentsV2/Button/Button.figma.tsx
|
|
97
|
+
yarn figma:dry-run-file src/componentsV2/Button/Button.figma.tsx
|
|
98
|
+
yarn figma:unpublish-file src/componentsV2/Button/Button.figma.tsx
|
|
102
99
|
```
|
|
103
100
|
|
|
101
|
+
In this repo, `.figma.tsx` / `.figma.ts` files usually contain a single `figma.connect(...)`, but some files may include multiple mappings, so `--file` operations can affect more than one Figma node.
|
|
102
|
+
|
|
103
|
+
If the local Code Connect file no longer exists or the Figma component was deleted, use `yarn figma:unpublish-node-force '<URL>'` to remove the stale mapping directly via the API.
|
|
104
|
+
|
|
104
105
|
### Interactive setup
|
|
105
106
|
|
|
106
107
|
To scaffold `.figma.tsx` files for unmapped components:
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextInputNext.figma.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/TextInputNext/TextInputNext.figma.tsx"],"names":[],"mappings":""}
|
package/mcp-server/server.mjs
CHANGED
|
@@ -227,7 +227,7 @@ const validateDsn = (dsn) => {
|
|
|
227
227
|
|
|
228
228
|
const MCP_SERVER_VERSION = '1.1.0';
|
|
229
229
|
|
|
230
|
-
var version = "3.54.0-
|
|
230
|
+
var version = "3.54.0-20";
|
|
231
231
|
|
|
232
232
|
const CORVA_UI_VERSION = version;
|
|
233
233
|
|
|
@@ -1528,7 +1528,7 @@ var componentsV2Data = [
|
|
|
1528
1528
|
}
|
|
1529
1529
|
],
|
|
1530
1530
|
sourceUrl: "https://github.com/corva-ai/corva-ui/blob/develop/src/componentsV2/Autocomplete/Autocomplete.tsx",
|
|
1531
|
-
figmaUrl: "https://www.figma.com/file/PUgBxjNswqqG1yyU6OQERZ/Corva-Design-System?node-id=30021-
|
|
1531
|
+
figmaUrl: "https://www.figma.com/file/PUgBxjNswqqG1yyU6OQERZ/Corva-Design-System?node-id=30021-123203",
|
|
1532
1532
|
keywords: [
|
|
1533
1533
|
"autocomplete",
|
|
1534
1534
|
"search",
|
|
@@ -2275,7 +2275,7 @@ var componentsV2Data = [
|
|
|
2275
2275
|
}
|
|
2276
2276
|
],
|
|
2277
2277
|
sourceUrl: "https://github.com/corva-ai/corva-ui/blob/develop/src/componentsV2/ButtonIcon/ButtonIcon.tsx",
|
|
2278
|
-
figmaUrl: "https://www.figma.com/file/PUgBxjNswqqG1yyU6OQERZ/Corva-Design-System?node-id=
|
|
2278
|
+
figmaUrl: "https://www.figma.com/file/PUgBxjNswqqG1yyU6OQERZ/Corva-Design-System?node-id=11980-17002",
|
|
2279
2279
|
keywords: [
|
|
2280
2280
|
"buttonicon",
|
|
2281
2281
|
"iconbutton",
|
|
@@ -2372,7 +2372,7 @@ var componentsV2Data = [
|
|
|
2372
2372
|
}
|
|
2373
2373
|
],
|
|
2374
2374
|
sourceUrl: "https://github.com/corva-ai/corva-ui/blob/develop/src/componentsV2/ButtonLive/ButtonLive.tsx",
|
|
2375
|
-
figmaUrl: "https://www.figma.com/file/PUgBxjNswqqG1yyU6OQERZ/Corva-Design-System?node-id=
|
|
2375
|
+
figmaUrl: "https://www.figma.com/file/PUgBxjNswqqG1yyU6OQERZ/Corva-Design-System?node-id=37968-137488",
|
|
2376
2376
|
keywords: [
|
|
2377
2377
|
"buttonlive"
|
|
2378
2378
|
]
|
|
@@ -5951,7 +5951,7 @@ var componentsV2Data = [
|
|
|
5951
5951
|
}
|
|
5952
5952
|
],
|
|
5953
5953
|
sourceUrl: "https://github.com/corva-ai/corva-ui/blob/develop/src/componentsV2/Select/Select.tsx",
|
|
5954
|
-
figmaUrl: "https://www.figma.com/file/PUgBxjNswqqG1yyU6OQERZ/Corva-Design-System?node-id=
|
|
5954
|
+
figmaUrl: "https://www.figma.com/file/PUgBxjNswqqG1yyU6OQERZ/Corva-Design-System?node-id=162399-10653",
|
|
5955
5955
|
keywords: [
|
|
5956
5956
|
"select",
|
|
5957
5957
|
"dropdown",
|
|
@@ -7483,7 +7483,7 @@ var componentsV2Data = [
|
|
|
7483
7483
|
}
|
|
7484
7484
|
],
|
|
7485
7485
|
sourceUrl: "https://github.com/corva-ai/corva-ui/blob/develop/src/componentsV2/TextInputNext/TextInputNext.tsx",
|
|
7486
|
-
figmaUrl: "https://www.figma.com/file/PUgBxjNswqqG1yyU6OQERZ/Corva-Design-System?node-id=
|
|
7486
|
+
figmaUrl: "https://www.figma.com/file/PUgBxjNswqqG1yyU6OQERZ/Corva-Design-System?node-id=162399-8404",
|
|
7487
7487
|
keywords: [
|
|
7488
7488
|
"textinputnext",
|
|
7489
7489
|
"latest",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@corva/ui",
|
|
3
|
-
"version": "3.54.0-
|
|
3
|
+
"version": "3.54.0-20",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"description": "Shared components/utils for Corva ui projects",
|
|
6
6
|
"keywords": [
|
|
@@ -43,10 +43,11 @@
|
|
|
43
43
|
"mcp:test:watch": "jest --config mcp-server/jest.config.js --watch",
|
|
44
44
|
"mcp:report-missed-lookups": "tsx mcp-server/uptrace/missed-lookups/report-missed-lookups.ts",
|
|
45
45
|
"figma:publish": "figma connect publish",
|
|
46
|
+
"figma:publish-file": "figma connect publish --file",
|
|
46
47
|
"figma:dry-run": "figma connect publish --dry-run",
|
|
48
|
+
"figma:dry-run-file": "figma connect publish --dry-run --file",
|
|
47
49
|
"figma:unpublish": "figma connect unpublish",
|
|
48
|
-
"figma:
|
|
49
|
-
"figma:unpublish-node": "figma connect unpublish --label React --node",
|
|
50
|
+
"figma:unpublish-file": "figma connect unpublish --file",
|
|
50
51
|
"figma:unpublish-node-force": "node scripts/figma-unpublish-node-force.mjs"
|
|
51
52
|
},
|
|
52
53
|
"config": {
|
|
@@ -228,6 +229,7 @@
|
|
|
228
229
|
"@babel/preset-react": "^7.12.10",
|
|
229
230
|
"@babel/preset-typescript": "^7.18.6",
|
|
230
231
|
"@corva/eslint-config-browser": "^0.2.2",
|
|
232
|
+
"@figma/code-connect": "^1.4.3",
|
|
231
233
|
"@rollup/plugin-babel": "^5.2.1",
|
|
232
234
|
"@rollup/plugin-commonjs": "^15.0.0",
|
|
233
235
|
"@rollup/plugin-image": "^2.0.6",
|
|
@@ -252,16 +254,15 @@
|
|
|
252
254
|
"@testing-library/user-event": "^12.1.10",
|
|
253
255
|
"@tsconfig/create-react-app": "^1.0.2",
|
|
254
256
|
"@types/chroma-js": "^1.4.0",
|
|
255
|
-
"@figma/code-connect": "^1.4.2",
|
|
256
257
|
"@types/classnames": "2.2.6",
|
|
257
258
|
"@types/geolib": "^2.0.25",
|
|
258
259
|
"@types/html2canvas": "^1.0.0",
|
|
259
260
|
"@types/jest": "^29.2.0",
|
|
260
261
|
"@types/mapbox__mapbox-gl-draw": "^1.4.9",
|
|
262
|
+
"@types/mapbox__point-geometry": "^0.1.4",
|
|
261
263
|
"@types/numeral": "^2.0.5",
|
|
262
264
|
"@types/papaparse": "^5.3.0",
|
|
263
265
|
"@types/query-string": "4.3.1",
|
|
264
|
-
"@types/mapbox__point-geometry": "^0.1.4",
|
|
265
266
|
"@types/react": "^18.0.21",
|
|
266
267
|
"@types/react-dom": "^18.0.6",
|
|
267
268
|
"@types/react-virtualized": "9.21.2",
|