-
Notifications
You must be signed in to change notification settings - Fork 74
feat(middleware): Add 'symbolMiddleware' and 'symbolInstanceMiddleware' #52
feat(middleware): Add 'symbolMiddleware' and 'symbolInstanceMiddleware' #52
Conversation
This allows for example setting static ID for the symbol master. fix seek-oss#18
Thank you so much for your PR! This looks really great. I feel like we should also add |
Hi, I could check that, should be good addition. As the codebase is not that familiar to me, just double checking that do you mean adding middleware for symbol instances around https://github.com/seek-oss/html-sketchapp-cli/blob/master/script/generateAlmostSketch.js#L35 and passing node and symbolMaster as a parameters? Maybe name this new middleware to |
I was thinking just regular symbols ( |
Does't the Or am I missing something here 🤔? |
Ah sorry, you're right. Forgot that all non-instance symbols are technically symbol masters. I think the API should mirror the terminology we use in the data attributes.
|
Renamed the symbolMasterMiddleware to symbolMiddleware and added also symbolInstanceMiddleware (as I do not have own use case for it, so please tell if improvements needed). Also fixed tests to pass with html-sketchapp 3.3.0 (hasClippingMask and clippingMaskMode was added added to asketch output in 3.3.0) |
Thanks so much for this PR, and for your patience! 👏🏻 I refactored the code a little, tweaked the documentation, and published as v0.6.0 🚀 🎉 |
Nice refactorings, excellent. Thanks! |
This allows for example setting static ID for the symbol master, which seems to fix at least partially #18. This also allows modifying symbol instances. Usage guide is provided in the readme.
Done similarly as symbol layers middleware in PR #39