figma-rust-mcp 3.2.11 → 3.2.12
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "figma-rust-mcp",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.12",
|
|
4
4
|
"description": "Claude Code to Figma \u2014 Bidirectional MCP bridge. AI draws UI on Figma canvas, reads designs back. Works with Claude, Cursor, VS Code, Windsurf, Antigravity. No API key needed.",
|
|
5
5
|
"mcpName": "io.github.BuiHung1612/figma-mcp",
|
|
6
6
|
"type": "module",
|
|
@@ -259,8 +259,12 @@ test('startup subscribes to active-page changes without loading the whole file',
|
|
|
259
259
|
loadAllPagesAsync: () => assert.fail('startup bulk page load'),
|
|
260
260
|
});
|
|
261
261
|
r.setTimeout = (callback, delay) => { timers.push({ callback, delay }); return timers.length; };
|
|
262
|
-
r.clearTimeout = () => {};
|
|
263
|
-
|
|
262
|
+
r.clearTimeout = () => {};
|
|
263
|
+
r.__html__ = '<html>thin loader</html>';
|
|
264
|
+
let reopenedUi = 0;
|
|
265
|
+
r.figma.showUI = () => { reopenedUi++; };
|
|
266
|
+
vm.runInContext(readFileSync('plugin-src/main.js', 'utf8'), r);
|
|
267
|
+
assert.equal(reopenedUi, 0, 'dynamic runtime must not replace the loader iframe');
|
|
264
268
|
assert.ok(pageListener);
|
|
265
269
|
assert.ok(events.has('stylechange'));
|
|
266
270
|
assert.ok(!events.has('documentchange'));
|