Tobias Hunger
d0b58760d3
chore: A few clippy fixes
...
Nothing systeamatic, just a bunch of fixes I stumbled over
during unrelated work.
No behavior change is intended in here...
2025-05-09 13:25:38 +02:00
Tobias Hunger
750efffbd7
Fix assert in LSP (SubElement != Component) when renaming properties
2025-05-06 21:31:24 +02:00
szecket
c335dcb8c7
figma-inspector: text color variable now also working in dark mode ( #8332 )
2025-05-06 09:48:48 -04:00
Tobias Hunger
a3aacb4c82
live_preview: Do not apply live data changes after "Reload"
...
Do not apply the live data after hitting the reload button
in live preview.
2025-05-06 13:06:30 +02:00
Simon Hausmann
904bc56e62
Introduce Platform.style-name
...
This replaces the previously hidden `StyleMetrics.style-name` that was only accessible for internal use.
2025-05-06 13:06:27 +02:00
szecket
062cfb0b56
figma-inspector: fix regression when exporting separate files
...
now checking for cross-collection references correctly
2025-05-06 07:16:29 +12:00
Nigel Breslaw
23daf50422
(figma) dev-mode snippet can now toggle using variables ( #8372 )
2025-05-05 18:18:01 +03:00
Nigel Breslaw
818e3a30e8
(figma) Fix for design mode snippet clipping badly ( #8368 )
...
This fixes an issue where the code snippet was drawing horizontaly outside its bounds.
2025-05-05 14:24:37 +03:00
Nigel Breslaw
666c48f83d
(figma) Spellcheck the figma project ( #8366 )
2025-05-05 14:24:13 +03:00
Nigel Breslaw
127ca31da0
figma: remove tailwind ( #8355 )
...
It doesn't seem to work well with the Figma-Kit componenets and styling can be done via the style props.
2025-05-05 14:23:22 +03:00
dependabot[bot]
fca384c401
build(deps-dev): bump the lumino group with 2 updates ( #8362 )
...
Bumps the lumino group with 2 updates: [@lumino/default-theme](https://github.com/jupyterlab/lumino ) and [@lumino/widgets](https://github.com/jupyterlab/lumino ).
Updates `@lumino/default-theme` from 2.1.9 to 2.1.10
- [Release notes](https://github.com/jupyterlab/lumino/releases )
- [Changelog](https://github.com/jupyterlab/lumino/blob/main/CHANGELOG.md )
- [Commits](https://github.com/jupyterlab/lumino/compare/@lumino/default-theme@2.1.9...@lumino/default-theme@2.1.10 )
Updates `@lumino/widgets` from 2.7.0 to 2.7.1
- [Release notes](https://github.com/jupyterlab/lumino/releases )
- [Changelog](https://github.com/jupyterlab/lumino/blob/main/CHANGELOG.md )
- [Commits](https://github.com/jupyterlab/lumino/compare/@lumino/widgets@2.7.0...@lumino/widgets@2.7.1 )
---
updated-dependencies:
- dependency-name: "@lumino/default-theme"
dependency-version: 2.1.10
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: lumino
- dependency-name: "@lumino/widgets"
dependency-version: 2.7.1
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: lumino
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-05 13:37:11 +03:00
Nigel Breslaw
057f7cb907
(Figma-plugin) Editing a property should update the snippet in design view ( #8354 )
...
In Figma dev-mode once you select an item in Figma it shows the slint snippet. If you then change any properties on the selected item the snippet updates. This is because the dev-mode automatically detects those changes and requests an update.
In the design view the api is different. The 'selection changed' event is used to show the initial snippet but subsequent changes will not be detected untill the user selects another item and then reselects the changed one. This PR adds a listener to the currently selected item to react to the NodeChanged event and update the snippet.
This PR also tidies up some dead async code. There were try catch blocks on code that according to the figma api docs never throw exceptions. Plus a few awaits on non async functions.
2025-05-05 12:31:06 +03:00
Nigel Breslaw
892be07377
(figma) Add line numbers to the design mode snippet view ( #8356 )
2025-05-05 12:28:34 +03:00
dependabot[bot]
586e9e8e16
build(deps-dev): bump @types/react-dom in the react group ( #8345 )
...
Bumps the react group with 1 update: [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom ).
Updates `@types/react-dom` from 19.1.2 to 19.1.3
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom )
---
updated-dependencies:
- dependency-name: "@types/react-dom"
dependency-version: 19.1.3
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: react
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-05 11:54:47 +03:00
dependabot[bot]
dd213f3494
build(deps): bump zustand from 5.0.3 to 5.0.4 ( #8346 )
...
Bumps [zustand](https://github.com/pmndrs/zustand ) from 5.0.3 to 5.0.4.
- [Release notes](https://github.com/pmndrs/zustand/releases )
- [Commits](https://github.com/pmndrs/zustand/compare/v5.0.3...v5.0.4 )
---
updated-dependencies:
- dependency-name: zustand
dependency-version: 5.0.4
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-05 11:52:38 +03:00
szecket
9062095822
figma-inspector: added em dash to the sanitizers ( #8320 )
2025-05-01 11:28:54 -04:00
dependabot[bot]
e56e60602a
build(deps-dev): bump vite from 6.3.3 to 6.3.4 ( #8318 )
...
* build(deps-dev): bump vite from 6.3.3 to 6.3.4
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite ) from 6.3.3 to 6.3.4.
- [Release notes](https://github.com/vitejs/vite/releases )
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md )
- [Commits](https://github.com/vitejs/vite/commits/v6.3.4/packages/vite )
---
updated-dependencies:
- dependency-name: vite
dependency-version: 6.3.4
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
* dedupe to get rid of old vite references
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Nigel Breslaw <nigel.breslaw@slint.dev>
2025-05-01 16:31:54 +03:00
Nigel Breslaw
1b2eac0f07
Fix tailwind config issues due to .gitignore ( #8324 )
2025-05-01 02:24:42 +03:00
Nigel Breslaw
e24992d00d
Setup tailwind to work with Figma-kit ( #8319 )
2025-04-30 22:05:54 +03:00
Nigel Breslaw
2a8b5eab31
Port the Figma plugin ui to use Figma-kit ( #8312 )
2025-04-30 18:30:40 +03:00
ogoffart
e0099ea500
Bump version number to 1.12.0
2025-04-30 13:27:50 +00:00
Nigel Breslaw
8aa0cdd71a
Fix out of sync CI code formatting ( #8310 )
2025-04-30 11:24:15 +03:00
Nigel Breslaw
f8c2b0feef
Figma Plugin: Move final items into Zustand ( #8309 )
...
Just a last couple of items moved to Zustand.
2025-04-30 11:10:23 +03:00
Nigel Breslaw
97e490381f
Prefer JS function over arrow functions ( #8307 )
...
* Prefer JS function over arrow functions
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-04-30 11:08:49 +03:00
Simon Hausmann
302926edfa
Skia: Improve multi-window rendering resource consumption ( #8304 )
...
Share Vulkan instance as well as Metal device and command queue across windows.
2025-04-29 18:58:09 +02:00
Nigel Breslaw
6860932ac7
Use Zustand to handle state and simplify Main.tsx ( #8303 )
...
This adds the Zustand state library to simplify react state handling.
It allows all the listening to the Figma side of the plugin to be moved inside it. This inturn allows quite a bit of logic to also move over to the store.ts file and start to leave Main.tsx to only describe the UI.
2025-04-29 18:56:04 +03:00
Simon Hausmann
dbe4a684c6
biome: Enable lint to check for missing await statements ( #8305 )
2025-04-29 14:57:52 +02:00
Nigel Breslaw
f3add42423
Tiny Figma fixes ( #8299 )
...
Ensures the unit tests are type checked.
Removes unused cloudflare network access permission.
Removes a condition that always returned 'Design Tokens' string.
2025-04-29 09:27:57 +03:00
szecket
ee17d562f7
figma-inspector: added stricter types
2025-04-29 08:06:52 +02:00
szecket
7e5249889f
figma-inspector: corrected overwrite of reused modes when combining collections
2025-04-29 08:06:52 +02:00
Simon Hausmann
09e296e331
figma-inspector: Minor cleanup for updatePropertiesCallback
...
`title` can't be undefined, as per EventTS["updatePropertiesCallback"] declaration.
2025-04-28 13:29:38 -04:00
Simon Hausmann
5c37324afe
figma-inspector: Don't duplicate the data type for the exportToFiles event
...
The callback parameter is already typed to match the structure for "exportToFiles", and it must be defined.
2025-04-28 13:29:38 -04:00
Simon Hausmann
f73ba16794
figma-inspector: Restore type safety for message interface
...
listenTS's callback should only receive the data structures that match the event.
2025-04-28 13:29:38 -04:00
Simon Hausmann
6275c58990
figma-inspector: Remove dead (commented out) code
2025-04-28 13:29:38 -04:00
Simon Hausmann
75154da5d0
figma-inspector: Remove duplicated EventTS interface
2025-04-28 13:29:38 -04:00
szecket
17518098a4
figma-inspector: x and y sometimes return null when 0 and until we have layout logic, make these 0 ( #8263 )
...
* rounding was omitting a bunch of x and y positions
* text x and y of 0 need to be checked for explicity otherwise they return null
* clean up comments and console logs
2025-04-28 13:29:38 -04:00
szecket
a7fb39c04e
figma-inspector: fixed commenting in slint to be per value entry ( #8283 )
...
* figma-inspector: more comment cleanup
* some recursion is not beign caught in variable export
* needed to include the comments in the value map
to pass references back from the resolved variable
2025-04-28 13:29:38 -04:00
szecket
bb64101555
cleaning up comments to get rid of commented code ( #8272 )
...
* reduce console.log and integerate warnings into README
* updated comments to remove commented code and unhelpful comments
* comment cleanup continued
2025-04-28 13:29:38 -04:00
szecket
c6fbd5ab16
regression when reducing sanitizers ( #8279 )
...
broke variable values due to separator inconsistency
2025-04-28 13:29:38 -04:00
szecket
aafeab8f45
reduce console.log and integerate warnings into README ( #8271 )
2025-04-28 13:29:38 -04:00
szecket
0f078b3865
figma-inspector: added horizontal-alignment to textsnippet ( #8267 )
...
* added horizontal-alignment to textsnippet
* added justify comments to snippet
2025-04-28 13:29:38 -04:00
szecket
63d105ae17
figma-inspector: resolve variables in binding loops that reference their own struct ( #8264 )
2025-04-28 13:29:38 -04:00
szecket
b4ad950560
figma-inspector: consolidating sanitizers ( #8266 )
2025-04-28 13:29:38 -04:00
szecket
6b7dc850ae
figma-inspector: sanitizer was broken for some characters ( #8262 )
...
there was a discrepancy between variable names and struct names because they were using different sanitizers
2025-04-28 13:29:38 -04:00
szecket
8e3ebd47ee
figma-inspector: finalize useVariables checkbox for ux ( #8247 )
2025-04-28 13:29:38 -04:00
Simon Hausmann
34a8866d60
figma-inspector: Re-use existing slint color generation function ( #8194 )
2025-04-28 13:29:38 -04:00
szecket
e218db299a
figma-inspector: Various updates to the variable collection export ( #8187 )
...
- Add the ability to export to a single file
- Improve cycle detection
- A README to the generated zip archive
- React to variable changes and offer a new zip archive
- Export additional properties in regular code snippets, such as x/y
(not strictly part of variable collection export)
2025-04-28 13:29:38 -04:00
szecket
06526ced28
figma-inspector: cleaned up a bunch of console.logs and swapped current-scheme with current-mode for user logic ( #8146 )
2025-04-28 13:29:38 -04:00
szecket
f3c802d2bb
figma-inspector: abstracted some functions to make others more understandable ( #8115 )
2025-04-28 13:29:38 -04:00
Simon Hausmann
3f83ce59c5
figma-inspector: Clean up TS <> React communication and restore clipboard copy notification ( #8113 )
...
Replace the famously named function `j` with the existing listenTS function, and replace the dispatchTS replacement with the original dispatchTS, along with new keys in the EventTS,
for use with the variable collection exports.
2025-04-28 13:29:38 -04:00