├── .eslintrc.json ├── .gitignore ├── .husky └── pre-commit ├── .prettierrc.json ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── eslint.config.mjs ├── manifest.json ├── package.json ├── pnpm-lock.yaml ├── resources └── images │ ├── variables-converter-cover-art.png │ └── variables-converter-icon.png ├── src ├── plugin │ └── index.ts └── ui │ └── index.html └── tsconfig.json /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "browser": true, 4 | "es2021": true 5 | }, 6 | "extends": [ 7 | "eslint:recommended", 8 | "prettier", 9 | "plugin:@typescript-eslint/eslint-recommended", 10 | "plugin:@typescript-eslint/recommended" 11 | ], 12 | "parserOptions": { 13 | "ecmaFeatures": { 14 | "jsx": true 15 | }, 16 | "ecmaVersion": "latest", 17 | "sourceType": "module" 18 | }, 19 | "plugins": ["@typescript-eslint"], 20 | "rules": { 21 | "indent": ["warn", "tab"], 22 | "quotes": ["error", "single"], 23 | "semi": ["error", "always"], 24 | "@typescript-eslint/no-explicit-any": "off" 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Node 2 | **/*.log 3 | **/*.log.* 4 | **/node_modules 5 | **/dist/ 6 | **/.DS_Store 7 | -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | pnpx lint-staged 3 | -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "tabWidth": 2, 3 | "useTabs": true, 4 | "printWidth": 80, 5 | "semi": true, 6 | "trailingComma": "es5", 7 | "jsxSingleQuote": true, 8 | "singleQuote": true 9 | } 10 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | In the interest of fostering an open and welcoming environment, we as 6 | contributors and maintainers pledge to making participation in our project and 7 | our community a harassment-free experience for everyone, regardless of age, body 8 | size, disability, ethnicity, gender identity and expression, level of experience, 9 | education, socio-economic status, nationality, personal appearance, race, 10 | religion, or sexual identity and orientation. 11 | 12 | ## Our Standards 13 | 14 | Examples of behavior that contributes to creating a positive environment 15 | include: 16 | 17 | - Using welcoming and inclusive language 18 | - Being respectful of differing viewpoints and experiences 19 | - Gracefully accepting constructive criticism 20 | - Focusing on what is best for the community 21 | - Showing empathy towards other community members 22 | 23 | Examples of unacceptable behavior by participants include: 24 | 25 | - The use of sexualized language or imagery and unwelcome sexual attention or 26 | advances 27 | - Trolling, insulting/derogatory comments, and personal or political attacks 28 | - Public or private harassment 29 | - Publishing others' private information, such as a physical or electronic 30 | address, without explicit permission 31 | - Other conduct which could reasonably be considered inappropriate in a 32 | professional setting 33 | 34 | ## Our Responsibilities 35 | 36 | Project maintainers are responsible for clarifying the standards of acceptable 37 | behavior and are expected to take appropriate and fair corrective action in 38 | response to any instances of unacceptable behavior. 39 | 40 | Project maintainers have the right and responsibility to remove, edit, or 41 | reject comments, commits, code, wiki edits, issues, and other contributions 42 | that are not aligned to this Code of Conduct, or to ban temporarily or 43 | permanently any contributor for other behaviors that they deem inappropriate, 44 | threatening, offensive, or harmful. 45 | 46 | ## Scope 47 | 48 | This Code of Conduct applies both within project spaces and in public spaces 49 | when an individual is representing the project or its community. Examples of 50 | representing a project or community include using an official project e-mail 51 | address, posting via an official social media account, or acting as an appointed 52 | representative at an online or offline event. Representation of a project may be 53 | further defined and clarified by project maintainers. 54 | 55 | ## Enforcement 56 | 57 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 58 | reported by contacting the project team at . All 59 | complaints will be reviewed and investigated and will result in a response that 60 | is deemed necessary and appropriate to the circumstances. The project team is 61 | obligated to maintain confidentiality with regard to the reporter of an incident. 62 | Further details of specific enforcement policies may be posted separately. 63 | 64 | Project maintainers who do not follow or enforce the Code of Conduct in good 65 | faith may face temporary or permanent repercussions as determined by other 66 | members of the project's leadership. 67 | 68 | ## Attribution 69 | 70 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, 71 | available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html 72 | 73 | [homepage]: https://www.contributor-covenant.org 74 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | ## Contributing 2 | 3 | [fork]: /fork 4 | [pr]: /compare 5 | [code-of-conduct]: CODE_OF_CONDUCT.md 6 | 7 | Hi there! We're thrilled that you'd like to contribute to this project. Your help is essential for keeping it great. 8 | 9 | Please note that this project is released with a [Contributor Code of Conduct][code-of-conduct]. By participating in this project you agree to abide by its terms. 10 | 11 | ## Issues and PRs 12 | 13 | If you have suggestions for how this project could be improved, or want to report a bug, open an issue! We'd love all and any contributions. If you have questions, too, we'd love to hear them. 14 | 15 | We'd also love PRs. If you're thinking of a large PR, we advise opening up an issue first to talk about it, though! Look at the links below if you're not sure how to open a PR. 16 | 17 | ## Submitting a pull request 18 | 19 | 1. [Fork][fork] and clone the repository. 20 | 2. Configure and install the dependencies: `npm install`. 21 | 3. Create a new branch: `git checkout -b my-branch-name`. 22 | 4. Make your change, add tests, and make sure the tests still pass. 23 | 5. Push to your fork and [submit a pull request][pr]. 24 | 6. Pat your self on the back and wait for your pull request to be reviewed and merged. 25 | 26 | Here are a few things you can do that will increase the likelihood of your pull request being accepted: 27 | 28 | - Keep your changes as focused as possible. If there are multiple changes you would like to make that are not dependent upon each other, consider submitting them as separate pull requests. 29 | - Write a [good commit message](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html). 30 | 31 | Work in Progress pull requests are also welcome to get feedback early on, or if there is something blocked you. 32 | 33 | ## Resources 34 | 35 | - [How to Contribute to Open Source](https://opensource.guide/how-to-contribute/) 36 | - [Using Pull Requests](https://help.github.com/articles/about-pull-requests/) 37 | - [GitHub Help](https://help.github.com) 38 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright 2023 Laurent Thiebault 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # variables-converter-figma-plugin 2 | 3 | [![Variables converter thumbnail that shows its UI](./resources/images/variables-converter-cover-art.png)](https://www.figma.com/community/plugin/1256000104406722117/Variables-Converter) 4 | 5 | ## Try it! 6 | 7 | To try this plugin in production, just [go to its Figma Community page](https://www.figma.com/community/plugin/1256000104406722117/Variables-Converter), install it & enjoy! 8 | 9 | ## Install 10 | 11 | Below are the steps to get your plugin running. You can also find instructions at: https://www.figma.com/plugin-docs/plugin-quickstart-guide/ 12 | 13 | This plugin template uses Typescript and NPM, two standard tools in creating JavaScript applications. 14 | 15 | First, download Node.js which comes with NPM. This will allow you to install TypeScript and other 16 | libraries. You can find the download link here: https://nodejs.org/en/download/ 17 | 18 | Then, install dependencies: 19 | 20 | ```sh 21 | npm install 22 | ``` 23 | 24 | ## Develop 25 | 26 | To develop, we encourage you to use the watch mode by lauching: 27 | 28 | ```sh 29 | npm run build:watch 30 | ``` 31 | 32 | Then, go to Figma, open a design file, activate the "Dev Mode", go to "Plugins" tab, select "Development" in the dropdown, click on the "+ button" and "Import plugin from manifest". You just need to target the `manifest.json` file at the root of this project. Finally, click on "Run" button aside "Variables Converter". 33 | 34 | ## Build 35 | 36 | To build the plugin for production, just launch: 37 | 38 | ```sh 39 | npm run build 40 | ``` 41 | 42 | ## Recommended configuration 43 | 44 | We recommend writing TypeScript code using Visual Studio code: 45 | 46 | 1. Download Visual Studio Code if you haven't already: https://code.visualstudio.com/. 47 | 2. Open this directory in Visual Studio Code. 48 | 3. Compile TypeScript to JavaScript: Run the "Terminal > Run Build Task..." menu item, 49 | then select "npm: build:watch". You will have to do this again every time 50 | you reopen Visual Studio Code. 51 | 52 | That's it! Visual Studio Code will regenerate the JavaScript file every time you save. 53 | 54 | ## License 55 | 56 | Copyright 2023 Laurent Thiebault. 57 | 58 | Licensed under the Apache License, Version 2.0 (the "License"); 59 | you may not use this file except in compliance with the License. 60 | You may obtain a copy of the License at 61 | 62 | http://www.apache.org/licenses/LICENSE-2.0 63 | 64 | Unless required by applicable law or agreed to in writing, software 65 | distributed under the License is distributed on an "AS IS" BASIS, 66 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 67 | See the License for the specific language governing permissions and 68 | limitations under the License. 69 | -------------------------------------------------------------------------------- /eslint.config.mjs: -------------------------------------------------------------------------------- 1 | import typescriptEslint from '@typescript-eslint/eslint-plugin'; 2 | import globals from 'globals'; 3 | import path from 'node:path'; 4 | import { fileURLToPath } from 'node:url'; 5 | import js from '@eslint/js'; 6 | import { FlatCompat } from '@eslint/eslintrc'; 7 | 8 | const __filename = fileURLToPath(import.meta.url); 9 | const __dirname = path.dirname(__filename); 10 | const compat = new FlatCompat({ 11 | baseDirectory: __dirname, 12 | recommendedConfig: js.configs.recommended, 13 | allConfig: js.configs.all, 14 | }); 15 | 16 | export default [ 17 | ...compat.extends( 18 | 'eslint:recommended', 19 | 'prettier', 20 | 'plugin:@typescript-eslint/eslint-recommended', 21 | 'plugin:@typescript-eslint/recommended' 22 | ), 23 | { 24 | plugins: { 25 | '@typescript-eslint': typescriptEslint, 26 | }, 27 | 28 | languageOptions: { 29 | globals: { 30 | ...globals.browser, 31 | }, 32 | 33 | ecmaVersion: 'latest', 34 | sourceType: 'module', 35 | 36 | parserOptions: { 37 | ecmaFeatures: { 38 | jsx: true, 39 | }, 40 | }, 41 | }, 42 | 43 | rules: { 44 | indent: ['warn', 'tab'], 45 | quotes: ['error', 'single'], 46 | semi: ['error', 'always'], 47 | '@typescript-eslint/no-explicit-any': 'off', 48 | }, 49 | }, 50 | ]; 51 | -------------------------------------------------------------------------------- /manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Variables Converter", 3 | "id": "1256000104406722117", 4 | "api": "1.0.0", 5 | "main": "dist/plugin/index.js", 6 | "capabilities": ["inspect"], 7 | "enableProposedApi": false, 8 | "editorType": ["dev"], 9 | "ui": "dist/ui/index.html", 10 | "networkAccess": { 11 | "allowedDomains": ["https://unpkg.com"] 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "variables-converter-figma-plugin", 3 | "version": "1.0.0", 4 | "description": "Figma Plugin that generates CSS Custom Properties, JavaScript variables, Compose variables & SwiftUI variables from your Figma variables", 5 | "main": "dist/plugin/index.js", 6 | "scripts": { 7 | "lint": "prettier . --write && eslint src/**/*.ts --fix", 8 | "build": "shx rm -rf dist && shx mkdir dist && shx cp -R ./src/ui/ ./dist/ && tsc -p tsconfig.json", 9 | "build:watch": "pnpm lint && pnpm build && chokidar \"src\" -c \"pnpm lint && pnpm build\"", 10 | "prepare": "pnpx husky install" 11 | }, 12 | "author": "Laurent Thiebault", 13 | "license": "Apache-2.0", 14 | "lint-staged": { 15 | "**/*.{js,jsx,ts,tsx}": [ 16 | "pnpm lint" 17 | ] 18 | }, 19 | "devDependencies": { 20 | "@eslint/eslintrc": "^3.1.0", 21 | "@eslint/js": "^9.9.0", 22 | "@figma/plugin-typings": "^1.98.0", 23 | "@typescript-eslint/eslint-plugin": "^8.2.0", 24 | "@typescript-eslint/parser": "^8.2.0", 25 | "chokidar-cli": "^3.0.0", 26 | "eslint": "^9.9.0", 27 | "eslint-config-prettier": "^9.1.0", 28 | "globals": "^15.9.0", 29 | "husky": "^9.1.5", 30 | "prettier": "^3.3.3", 31 | "shx": "^0.3.4", 32 | "typescript": "^5.5.4" 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- 1 | lockfileVersion: '9.0' 2 | 3 | settings: 4 | autoInstallPeers: true 5 | excludeLinksFromLockfile: false 6 | 7 | importers: 8 | .: 9 | devDependencies: 10 | '@eslint/eslintrc': 11 | specifier: ^3.1.0 12 | version: 3.1.0 13 | '@eslint/js': 14 | specifier: ^9.9.0 15 | version: 9.9.0 16 | '@figma/plugin-typings': 17 | specifier: ^1.98.0 18 | version: 1.98.0 19 | '@typescript-eslint/eslint-plugin': 20 | specifier: ^8.2.0 21 | version: 8.2.0(@typescript-eslint/parser@8.2.0(eslint@9.9.0)(typescript@5.5.4))(eslint@9.9.0)(typescript@5.5.4) 22 | '@typescript-eslint/parser': 23 | specifier: ^8.2.0 24 | version: 8.2.0(eslint@9.9.0)(typescript@5.5.4) 25 | chokidar-cli: 26 | specifier: ^3.0.0 27 | version: 3.0.0 28 | eslint: 29 | specifier: ^9.9.0 30 | version: 9.9.0 31 | eslint-config-prettier: 32 | specifier: ^9.1.0 33 | version: 9.1.0(eslint@9.9.0) 34 | globals: 35 | specifier: ^15.9.0 36 | version: 15.9.0 37 | husky: 38 | specifier: ^9.1.5 39 | version: 9.1.5 40 | prettier: 41 | specifier: ^3.3.3 42 | version: 3.3.3 43 | shx: 44 | specifier: ^0.3.4 45 | version: 0.3.4 46 | typescript: 47 | specifier: ^5.5.4 48 | version: 5.5.4 49 | 50 | packages: 51 | '@aashutoshrathi/word-wrap@1.2.6': 52 | resolution: 53 | { 54 | integrity: sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==, 55 | } 56 | engines: { node: '>=0.10.0' } 57 | 58 | '@eslint-community/eslint-utils@4.4.0': 59 | resolution: 60 | { 61 | integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==, 62 | } 63 | engines: { node: ^12.22.0 || ^14.17.0 || >=16.0.0 } 64 | peerDependencies: 65 | eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 66 | 67 | '@eslint-community/regexpp@4.11.0': 68 | resolution: 69 | { 70 | integrity: sha512-G/M/tIiMrTAxEWRfLfQJMmGNX28IxBg4PBz8XqQhqUHLFI6TL2htpIB1iQCj144V5ee/JaKyT9/WZ0MGZWfA7A==, 71 | } 72 | engines: { node: ^12.0.0 || ^14.0.0 || >=16.0.0 } 73 | 74 | '@eslint/config-array@0.17.1': 75 | resolution: 76 | { 77 | integrity: sha512-BlYOpej8AQ8Ev9xVqroV7a02JK3SkBAaN9GfMMH9W6Ch8FlQlkjGw4Ir7+FgYwfirivAf4t+GtzuAxqfukmISA==, 78 | } 79 | engines: { node: ^18.18.0 || ^20.9.0 || >=21.1.0 } 80 | 81 | '@eslint/eslintrc@3.1.0': 82 | resolution: 83 | { 84 | integrity: sha512-4Bfj15dVJdoy3RfZmmo86RK1Fwzn6SstsvK9JS+BaVKqC6QQQQyXekNaC+g+LKNgkQ+2VhGAzm6hO40AhMR3zQ==, 85 | } 86 | engines: { node: ^18.18.0 || ^20.9.0 || >=21.1.0 } 87 | 88 | '@eslint/js@9.9.0': 89 | resolution: 90 | { 91 | integrity: sha512-hhetes6ZHP3BlXLxmd8K2SNgkhNSi+UcecbnwWKwpP7kyi/uC75DJ1lOOBO3xrC4jyojtGE3YxKZPHfk4yrgug==, 92 | } 93 | engines: { node: ^18.18.0 || ^20.9.0 || >=21.1.0 } 94 | 95 | '@eslint/object-schema@2.1.4': 96 | resolution: 97 | { 98 | integrity: sha512-BsWiH1yFGjXXS2yvrf5LyuoSIIbPrGUWob917o+BTKuZ7qJdxX8aJLRxs1fS9n6r7vESrq1OUqb68dANcFXuQQ==, 99 | } 100 | engines: { node: ^18.18.0 || ^20.9.0 || >=21.1.0 } 101 | 102 | '@figma/plugin-typings@1.98.0': 103 | resolution: 104 | { 105 | integrity: sha512-Bx5pBRf8XWeAFbDtKfdiUEM/UkCHyl4baOGb+7OPM0ozrzg5JNDH/BsrGA4EpuJKkS4uRmV525q3g067OX6VHg==, 106 | } 107 | 108 | '@humanwhocodes/module-importer@1.0.1': 109 | resolution: 110 | { 111 | integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==, 112 | } 113 | engines: { node: '>=12.22' } 114 | 115 | '@humanwhocodes/retry@0.3.0': 116 | resolution: 117 | { 118 | integrity: sha512-d2CGZR2o7fS6sWB7DG/3a95bGKQyHMACZ5aW8qGkkqQpUoZV6C0X7Pc7l4ZNMZkfNBf4VWNe9E1jRsf0G146Ew==, 119 | } 120 | engines: { node: '>=18.18' } 121 | 122 | '@nodelib/fs.scandir@2.1.5': 123 | resolution: 124 | { 125 | integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==, 126 | } 127 | engines: { node: '>= 8' } 128 | 129 | '@nodelib/fs.stat@2.0.5': 130 | resolution: 131 | { 132 | integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==, 133 | } 134 | engines: { node: '>= 8' } 135 | 136 | '@nodelib/fs.walk@1.2.8': 137 | resolution: 138 | { 139 | integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==, 140 | } 141 | engines: { node: '>= 8' } 142 | 143 | '@typescript-eslint/eslint-plugin@8.2.0': 144 | resolution: 145 | { 146 | integrity: sha512-02tJIs655em7fvt9gps/+4k4OsKULYGtLBPJfOsmOq1+3cdClYiF0+d6mHu6qDnTcg88wJBkcPLpQhq7FyDz0A==, 147 | } 148 | engines: { node: ^18.18.0 || ^20.9.0 || >=21.1.0 } 149 | peerDependencies: 150 | '@typescript-eslint/parser': ^8.0.0 || ^8.0.0-alpha.0 151 | eslint: ^8.57.0 || ^9.0.0 152 | typescript: '*' 153 | peerDependenciesMeta: 154 | typescript: 155 | optional: true 156 | 157 | '@typescript-eslint/parser@8.2.0': 158 | resolution: 159 | { 160 | integrity: sha512-j3Di+o0lHgPrb7FxL3fdEy6LJ/j2NE8u+AP/5cQ9SKb+JLH6V6UHDqJ+e0hXBkHP1wn1YDFjYCS9LBQsZDlDEg==, 161 | } 162 | engines: { node: ^18.18.0 || ^20.9.0 || >=21.1.0 } 163 | peerDependencies: 164 | eslint: ^8.57.0 || ^9.0.0 165 | typescript: '*' 166 | peerDependenciesMeta: 167 | typescript: 168 | optional: true 169 | 170 | '@typescript-eslint/scope-manager@8.2.0': 171 | resolution: 172 | { 173 | integrity: sha512-OFn80B38yD6WwpoHU2Tz/fTz7CgFqInllBoC3WP+/jLbTb4gGPTy9HBSTsbDWkMdN55XlVU0mMDYAtgvlUspGw==, 174 | } 175 | engines: { node: ^18.18.0 || ^20.9.0 || >=21.1.0 } 176 | 177 | '@typescript-eslint/type-utils@8.2.0': 178 | resolution: 179 | { 180 | integrity: sha512-g1CfXGFMQdT5S+0PSO0fvGXUaiSkl73U1n9LTK5aRAFnPlJ8dLKkXr4AaLFvPedW8lVDoMgLLE3JN98ZZfsj0w==, 181 | } 182 | engines: { node: ^18.18.0 || ^20.9.0 || >=21.1.0 } 183 | peerDependencies: 184 | typescript: '*' 185 | peerDependenciesMeta: 186 | typescript: 187 | optional: true 188 | 189 | '@typescript-eslint/types@8.2.0': 190 | resolution: 191 | { 192 | integrity: sha512-6a9QSK396YqmiBKPkJtxsgZZZVjYQ6wQ/TlI0C65z7vInaETuC6HAHD98AGLC8DyIPqHytvNuS8bBVvNLKyqvQ==, 193 | } 194 | engines: { node: ^18.18.0 || ^20.9.0 || >=21.1.0 } 195 | 196 | '@typescript-eslint/typescript-estree@8.2.0': 197 | resolution: 198 | { 199 | integrity: sha512-kiG4EDUT4dImplOsbh47B1QnNmXSoUqOjWDvCJw/o8LgfD0yr7k2uy54D5Wm0j4t71Ge1NkynGhpWdS0dEIAUA==, 200 | } 201 | engines: { node: ^18.18.0 || ^20.9.0 || >=21.1.0 } 202 | peerDependencies: 203 | typescript: '*' 204 | peerDependenciesMeta: 205 | typescript: 206 | optional: true 207 | 208 | '@typescript-eslint/utils@8.2.0': 209 | resolution: 210 | { 211 | integrity: sha512-O46eaYKDlV3TvAVDNcoDzd5N550ckSe8G4phko++OCSC1dYIb9LTc3HDGYdWqWIAT5qDUKphO6sd9RrpIJJPfg==, 212 | } 213 | engines: { node: ^18.18.0 || ^20.9.0 || >=21.1.0 } 214 | peerDependencies: 215 | eslint: ^8.57.0 || ^9.0.0 216 | 217 | '@typescript-eslint/visitor-keys@8.2.0': 218 | resolution: 219 | { 220 | integrity: sha512-sbgsPMW9yLvS7IhCi8IpuK1oBmtbWUNP+hBdwl/I9nzqVsszGnNGti5r9dUtF5RLivHUFFIdRvLiTsPhzSyJ3Q==, 221 | } 222 | engines: { node: ^18.18.0 || ^20.9.0 || >=21.1.0 } 223 | 224 | acorn-jsx@5.3.2: 225 | resolution: 226 | { 227 | integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==, 228 | } 229 | peerDependencies: 230 | acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 231 | 232 | acorn@8.12.1: 233 | resolution: 234 | { 235 | integrity: sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==, 236 | } 237 | engines: { node: '>=0.4.0' } 238 | hasBin: true 239 | 240 | ajv@6.12.6: 241 | resolution: 242 | { 243 | integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==, 244 | } 245 | 246 | ansi-regex@4.1.1: 247 | resolution: 248 | { 249 | integrity: sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==, 250 | } 251 | engines: { node: '>=6' } 252 | 253 | ansi-regex@5.0.1: 254 | resolution: 255 | { 256 | integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==, 257 | } 258 | engines: { node: '>=8' } 259 | 260 | ansi-styles@3.2.1: 261 | resolution: 262 | { 263 | integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==, 264 | } 265 | engines: { node: '>=4' } 266 | 267 | ansi-styles@4.3.0: 268 | resolution: 269 | { 270 | integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==, 271 | } 272 | engines: { node: '>=8' } 273 | 274 | anymatch@3.1.3: 275 | resolution: 276 | { 277 | integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==, 278 | } 279 | engines: { node: '>= 8' } 280 | 281 | argparse@2.0.1: 282 | resolution: 283 | { 284 | integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==, 285 | } 286 | 287 | array-union@2.1.0: 288 | resolution: 289 | { 290 | integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==, 291 | } 292 | engines: { node: '>=8' } 293 | 294 | balanced-match@1.0.2: 295 | resolution: 296 | { 297 | integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==, 298 | } 299 | 300 | binary-extensions@2.2.0: 301 | resolution: 302 | { 303 | integrity: sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==, 304 | } 305 | engines: { node: '>=8' } 306 | 307 | brace-expansion@1.1.11: 308 | resolution: 309 | { 310 | integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==, 311 | } 312 | 313 | brace-expansion@2.0.1: 314 | resolution: 315 | { 316 | integrity: sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==, 317 | } 318 | 319 | braces@3.0.2: 320 | resolution: 321 | { 322 | integrity: sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==, 323 | } 324 | engines: { node: '>=8' } 325 | 326 | callsites@3.1.0: 327 | resolution: 328 | { 329 | integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==, 330 | } 331 | engines: { node: '>=6' } 332 | 333 | camelcase@5.3.1: 334 | resolution: 335 | { 336 | integrity: sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==, 337 | } 338 | engines: { node: '>=6' } 339 | 340 | chalk@4.1.2: 341 | resolution: 342 | { 343 | integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==, 344 | } 345 | engines: { node: '>=10' } 346 | 347 | chokidar-cli@3.0.0: 348 | resolution: 349 | { 350 | integrity: sha512-xVW+Qeh7z15uZRxHOkP93Ux8A0xbPzwK4GaqD8dQOYc34TlkqUhVSS59fK36DOp5WdJlrRzlYSy02Ht99FjZqQ==, 351 | } 352 | engines: { node: '>= 8.10.0' } 353 | hasBin: true 354 | 355 | chokidar@3.5.3: 356 | resolution: 357 | { 358 | integrity: sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==, 359 | } 360 | engines: { node: '>= 8.10.0' } 361 | 362 | cliui@5.0.0: 363 | resolution: 364 | { 365 | integrity: sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==, 366 | } 367 | 368 | color-convert@1.9.3: 369 | resolution: 370 | { 371 | integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==, 372 | } 373 | 374 | color-convert@2.0.1: 375 | resolution: 376 | { 377 | integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==, 378 | } 379 | engines: { node: '>=7.0.0' } 380 | 381 | color-name@1.1.3: 382 | resolution: 383 | { 384 | integrity: sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==, 385 | } 386 | 387 | color-name@1.1.4: 388 | resolution: 389 | { 390 | integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==, 391 | } 392 | 393 | concat-map@0.0.1: 394 | resolution: 395 | { 396 | integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==, 397 | } 398 | 399 | cross-spawn@7.0.3: 400 | resolution: 401 | { 402 | integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==, 403 | } 404 | engines: { node: '>= 8' } 405 | 406 | debug@4.3.4: 407 | resolution: 408 | { 409 | integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==, 410 | } 411 | engines: { node: '>=6.0' } 412 | peerDependencies: 413 | supports-color: '*' 414 | peerDependenciesMeta: 415 | supports-color: 416 | optional: true 417 | 418 | decamelize@1.2.0: 419 | resolution: 420 | { 421 | integrity: sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==, 422 | } 423 | engines: { node: '>=0.10.0' } 424 | 425 | deep-is@0.1.4: 426 | resolution: 427 | { 428 | integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==, 429 | } 430 | 431 | dir-glob@3.0.1: 432 | resolution: 433 | { 434 | integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==, 435 | } 436 | engines: { node: '>=8' } 437 | 438 | emoji-regex@7.0.3: 439 | resolution: 440 | { 441 | integrity: sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==, 442 | } 443 | 444 | escape-string-regexp@4.0.0: 445 | resolution: 446 | { 447 | integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==, 448 | } 449 | engines: { node: '>=10' } 450 | 451 | eslint-config-prettier@9.1.0: 452 | resolution: 453 | { 454 | integrity: sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==, 455 | } 456 | hasBin: true 457 | peerDependencies: 458 | eslint: '>=7.0.0' 459 | 460 | eslint-scope@8.0.2: 461 | resolution: 462 | { 463 | integrity: sha512-6E4xmrTw5wtxnLA5wYL3WDfhZ/1bUBGOXV0zQvVRDOtrR8D0p6W7fs3JweNYhwRYeGvd/1CKX2se0/2s7Q/nJA==, 464 | } 465 | engines: { node: ^18.18.0 || ^20.9.0 || >=21.1.0 } 466 | 467 | eslint-visitor-keys@3.4.1: 468 | resolution: 469 | { 470 | integrity: sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==, 471 | } 472 | engines: { node: ^12.22.0 || ^14.17.0 || >=16.0.0 } 473 | 474 | eslint-visitor-keys@3.4.3: 475 | resolution: 476 | { 477 | integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==, 478 | } 479 | engines: { node: ^12.22.0 || ^14.17.0 || >=16.0.0 } 480 | 481 | eslint-visitor-keys@4.0.0: 482 | resolution: 483 | { 484 | integrity: sha512-OtIRv/2GyiF6o/d8K7MYKKbXrOUBIK6SfkIRM4Z0dY3w+LiQ0vy3F57m0Z71bjbyeiWFiHJ8brqnmE6H6/jEuw==, 485 | } 486 | engines: { node: ^18.18.0 || ^20.9.0 || >=21.1.0 } 487 | 488 | eslint@9.9.0: 489 | resolution: 490 | { 491 | integrity: sha512-JfiKJrbx0506OEerjK2Y1QlldtBxkAlLxT5OEcRF8uaQ86noDe2k31Vw9rnSWv+MXZHj7OOUV/dA0AhdLFcyvA==, 492 | } 493 | engines: { node: ^18.18.0 || ^20.9.0 || >=21.1.0 } 494 | hasBin: true 495 | peerDependencies: 496 | jiti: '*' 497 | peerDependenciesMeta: 498 | jiti: 499 | optional: true 500 | 501 | espree@10.1.0: 502 | resolution: 503 | { 504 | integrity: sha512-M1M6CpiE6ffoigIOWYO9UDP8TMUw9kqb21tf+08IgDYjCsOvCuDt4jQcZmoYxx+w7zlKw9/N0KXfto+I8/FrXA==, 505 | } 506 | engines: { node: ^18.18.0 || ^20.9.0 || >=21.1.0 } 507 | 508 | esquery@1.5.0: 509 | resolution: 510 | { 511 | integrity: sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==, 512 | } 513 | engines: { node: '>=0.10' } 514 | 515 | esrecurse@4.3.0: 516 | resolution: 517 | { 518 | integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==, 519 | } 520 | engines: { node: '>=4.0' } 521 | 522 | estraverse@5.3.0: 523 | resolution: 524 | { 525 | integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==, 526 | } 527 | engines: { node: '>=4.0' } 528 | 529 | esutils@2.0.3: 530 | resolution: 531 | { 532 | integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==, 533 | } 534 | engines: { node: '>=0.10.0' } 535 | 536 | fast-deep-equal@3.1.3: 537 | resolution: 538 | { 539 | integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==, 540 | } 541 | 542 | fast-glob@3.3.0: 543 | resolution: 544 | { 545 | integrity: sha512-ChDuvbOypPuNjO8yIDf36x7BlZX1smcUMTTcyoIjycexOxd6DFsKsg21qVBzEmr3G7fUKIRy2/psii+CIUt7FA==, 546 | } 547 | engines: { node: '>=8.6.0' } 548 | 549 | fast-json-stable-stringify@2.1.0: 550 | resolution: 551 | { 552 | integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==, 553 | } 554 | 555 | fast-levenshtein@2.0.6: 556 | resolution: 557 | { 558 | integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==, 559 | } 560 | 561 | fastq@1.15.0: 562 | resolution: 563 | { 564 | integrity: sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==, 565 | } 566 | 567 | file-entry-cache@8.0.0: 568 | resolution: 569 | { 570 | integrity: sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==, 571 | } 572 | engines: { node: '>=16.0.0' } 573 | 574 | fill-range@7.0.1: 575 | resolution: 576 | { 577 | integrity: sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==, 578 | } 579 | engines: { node: '>=8' } 580 | 581 | find-up@3.0.0: 582 | resolution: 583 | { 584 | integrity: sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==, 585 | } 586 | engines: { node: '>=6' } 587 | 588 | find-up@5.0.0: 589 | resolution: 590 | { 591 | integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==, 592 | } 593 | engines: { node: '>=10' } 594 | 595 | flat-cache@4.0.1: 596 | resolution: 597 | { 598 | integrity: sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==, 599 | } 600 | engines: { node: '>=16' } 601 | 602 | flatted@3.3.1: 603 | resolution: 604 | { 605 | integrity: sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==, 606 | } 607 | 608 | fs.realpath@1.0.0: 609 | resolution: 610 | { 611 | integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==, 612 | } 613 | 614 | fsevents@2.3.2: 615 | resolution: 616 | { 617 | integrity: sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==, 618 | } 619 | engines: { node: ^8.16.0 || ^10.6.0 || >=11.0.0 } 620 | os: [darwin] 621 | 622 | function-bind@1.1.1: 623 | resolution: 624 | { 625 | integrity: sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==, 626 | } 627 | 628 | get-caller-file@2.0.5: 629 | resolution: 630 | { 631 | integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==, 632 | } 633 | engines: { node: 6.* || 8.* || >= 10.* } 634 | 635 | glob-parent@5.1.2: 636 | resolution: 637 | { 638 | integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==, 639 | } 640 | engines: { node: '>= 6' } 641 | 642 | glob-parent@6.0.2: 643 | resolution: 644 | { 645 | integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==, 646 | } 647 | engines: { node: '>=10.13.0' } 648 | 649 | glob@7.2.3: 650 | resolution: 651 | { 652 | integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==, 653 | } 654 | 655 | globals@14.0.0: 656 | resolution: 657 | { 658 | integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==, 659 | } 660 | engines: { node: '>=18' } 661 | 662 | globals@15.9.0: 663 | resolution: 664 | { 665 | integrity: sha512-SmSKyLLKFbSr6rptvP8izbyxJL4ILwqO9Jg23UA0sDlGlu58V59D1//I3vlc0KJphVdUR7vMjHIplYnzBxorQA==, 666 | } 667 | engines: { node: '>=18' } 668 | 669 | globby@11.1.0: 670 | resolution: 671 | { 672 | integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==, 673 | } 674 | engines: { node: '>=10' } 675 | 676 | graphemer@1.4.0: 677 | resolution: 678 | { 679 | integrity: sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==, 680 | } 681 | 682 | has-flag@4.0.0: 683 | resolution: 684 | { 685 | integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==, 686 | } 687 | engines: { node: '>=8' } 688 | 689 | has@1.0.3: 690 | resolution: 691 | { 692 | integrity: sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==, 693 | } 694 | engines: { node: '>= 0.4.0' } 695 | 696 | husky@9.1.5: 697 | resolution: 698 | { 699 | integrity: sha512-rowAVRUBfI0b4+niA4SJMhfQwc107VLkBUgEYYAOQAbqDCnra1nYh83hF/MDmhYs9t9n1E3DuKOrs2LYNC+0Ag==, 700 | } 701 | engines: { node: '>=18' } 702 | hasBin: true 703 | 704 | ignore@5.2.4: 705 | resolution: 706 | { 707 | integrity: sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==, 708 | } 709 | engines: { node: '>= 4' } 710 | 711 | ignore@5.3.2: 712 | resolution: 713 | { 714 | integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==, 715 | } 716 | engines: { node: '>= 4' } 717 | 718 | import-fresh@3.3.0: 719 | resolution: 720 | { 721 | integrity: sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==, 722 | } 723 | engines: { node: '>=6' } 724 | 725 | imurmurhash@0.1.4: 726 | resolution: 727 | { 728 | integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==, 729 | } 730 | engines: { node: '>=0.8.19' } 731 | 732 | inflight@1.0.6: 733 | resolution: 734 | { 735 | integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==, 736 | } 737 | 738 | inherits@2.0.4: 739 | resolution: 740 | { 741 | integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==, 742 | } 743 | 744 | interpret@1.4.0: 745 | resolution: 746 | { 747 | integrity: sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==, 748 | } 749 | engines: { node: '>= 0.10' } 750 | 751 | is-binary-path@2.1.0: 752 | resolution: 753 | { 754 | integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==, 755 | } 756 | engines: { node: '>=8' } 757 | 758 | is-core-module@2.12.1: 759 | resolution: 760 | { 761 | integrity: sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg==, 762 | } 763 | 764 | is-extglob@2.1.1: 765 | resolution: 766 | { 767 | integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==, 768 | } 769 | engines: { node: '>=0.10.0' } 770 | 771 | is-fullwidth-code-point@2.0.0: 772 | resolution: 773 | { 774 | integrity: sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==, 775 | } 776 | engines: { node: '>=4' } 777 | 778 | is-glob@4.0.3: 779 | resolution: 780 | { 781 | integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==, 782 | } 783 | engines: { node: '>=0.10.0' } 784 | 785 | is-number@7.0.0: 786 | resolution: 787 | { 788 | integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==, 789 | } 790 | engines: { node: '>=0.12.0' } 791 | 792 | is-path-inside@3.0.3: 793 | resolution: 794 | { 795 | integrity: sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==, 796 | } 797 | engines: { node: '>=8' } 798 | 799 | isexe@2.0.0: 800 | resolution: 801 | { 802 | integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==, 803 | } 804 | 805 | js-yaml@4.1.0: 806 | resolution: 807 | { 808 | integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==, 809 | } 810 | hasBin: true 811 | 812 | json-buffer@3.0.1: 813 | resolution: 814 | { 815 | integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==, 816 | } 817 | 818 | json-schema-traverse@0.4.1: 819 | resolution: 820 | { 821 | integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==, 822 | } 823 | 824 | json-stable-stringify-without-jsonify@1.0.1: 825 | resolution: 826 | { 827 | integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==, 828 | } 829 | 830 | keyv@4.5.4: 831 | resolution: 832 | { 833 | integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==, 834 | } 835 | 836 | levn@0.4.1: 837 | resolution: 838 | { 839 | integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==, 840 | } 841 | engines: { node: '>= 0.8.0' } 842 | 843 | locate-path@3.0.0: 844 | resolution: 845 | { 846 | integrity: sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==, 847 | } 848 | engines: { node: '>=6' } 849 | 850 | locate-path@6.0.0: 851 | resolution: 852 | { 853 | integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==, 854 | } 855 | engines: { node: '>=10' } 856 | 857 | lodash.debounce@4.0.8: 858 | resolution: 859 | { 860 | integrity: sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==, 861 | } 862 | 863 | lodash.merge@4.6.2: 864 | resolution: 865 | { 866 | integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==, 867 | } 868 | 869 | lodash.throttle@4.1.1: 870 | resolution: 871 | { 872 | integrity: sha512-wIkUCfVKpVsWo3JSZlc+8MB5it+2AN5W8J7YVMST30UrvcQNZ1Okbj+rbVniijTWE6FGYy4XJq/rHkas8qJMLQ==, 873 | } 874 | 875 | merge2@1.4.1: 876 | resolution: 877 | { 878 | integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==, 879 | } 880 | engines: { node: '>= 8' } 881 | 882 | micromatch@4.0.5: 883 | resolution: 884 | { 885 | integrity: sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==, 886 | } 887 | engines: { node: '>=8.6' } 888 | 889 | minimatch@3.1.2: 890 | resolution: 891 | { 892 | integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==, 893 | } 894 | 895 | minimatch@9.0.5: 896 | resolution: 897 | { 898 | integrity: sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==, 899 | } 900 | engines: { node: '>=16 || 14 >=14.17' } 901 | 902 | minimist@1.2.8: 903 | resolution: 904 | { 905 | integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==, 906 | } 907 | 908 | ms@2.1.2: 909 | resolution: 910 | { 911 | integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==, 912 | } 913 | 914 | natural-compare@1.4.0: 915 | resolution: 916 | { 917 | integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==, 918 | } 919 | 920 | normalize-path@3.0.0: 921 | resolution: 922 | { 923 | integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==, 924 | } 925 | engines: { node: '>=0.10.0' } 926 | 927 | once@1.4.0: 928 | resolution: 929 | { 930 | integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==, 931 | } 932 | 933 | optionator@0.9.3: 934 | resolution: 935 | { 936 | integrity: sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==, 937 | } 938 | engines: { node: '>= 0.8.0' } 939 | 940 | p-limit@2.3.0: 941 | resolution: 942 | { 943 | integrity: sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==, 944 | } 945 | engines: { node: '>=6' } 946 | 947 | p-limit@3.1.0: 948 | resolution: 949 | { 950 | integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==, 951 | } 952 | engines: { node: '>=10' } 953 | 954 | p-locate@3.0.0: 955 | resolution: 956 | { 957 | integrity: sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==, 958 | } 959 | engines: { node: '>=6' } 960 | 961 | p-locate@5.0.0: 962 | resolution: 963 | { 964 | integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==, 965 | } 966 | engines: { node: '>=10' } 967 | 968 | p-try@2.2.0: 969 | resolution: 970 | { 971 | integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==, 972 | } 973 | engines: { node: '>=6' } 974 | 975 | parent-module@1.0.1: 976 | resolution: 977 | { 978 | integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==, 979 | } 980 | engines: { node: '>=6' } 981 | 982 | path-exists@3.0.0: 983 | resolution: 984 | { 985 | integrity: sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==, 986 | } 987 | engines: { node: '>=4' } 988 | 989 | path-exists@4.0.0: 990 | resolution: 991 | { 992 | integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==, 993 | } 994 | engines: { node: '>=8' } 995 | 996 | path-is-absolute@1.0.1: 997 | resolution: 998 | { 999 | integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==, 1000 | } 1001 | engines: { node: '>=0.10.0' } 1002 | 1003 | path-key@3.1.1: 1004 | resolution: 1005 | { 1006 | integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==, 1007 | } 1008 | engines: { node: '>=8' } 1009 | 1010 | path-parse@1.0.7: 1011 | resolution: 1012 | { 1013 | integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==, 1014 | } 1015 | 1016 | path-type@4.0.0: 1017 | resolution: 1018 | { 1019 | integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==, 1020 | } 1021 | engines: { node: '>=8' } 1022 | 1023 | picomatch@2.3.1: 1024 | resolution: 1025 | { 1026 | integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==, 1027 | } 1028 | engines: { node: '>=8.6' } 1029 | 1030 | prelude-ls@1.2.1: 1031 | resolution: 1032 | { 1033 | integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==, 1034 | } 1035 | engines: { node: '>= 0.8.0' } 1036 | 1037 | prettier@3.3.3: 1038 | resolution: 1039 | { 1040 | integrity: sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==, 1041 | } 1042 | engines: { node: '>=14' } 1043 | hasBin: true 1044 | 1045 | punycode@2.3.0: 1046 | resolution: 1047 | { 1048 | integrity: sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==, 1049 | } 1050 | engines: { node: '>=6' } 1051 | 1052 | queue-microtask@1.2.3: 1053 | resolution: 1054 | { 1055 | integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==, 1056 | } 1057 | 1058 | readdirp@3.6.0: 1059 | resolution: 1060 | { 1061 | integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==, 1062 | } 1063 | engines: { node: '>=8.10.0' } 1064 | 1065 | rechoir@0.6.2: 1066 | resolution: 1067 | { 1068 | integrity: sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==, 1069 | } 1070 | engines: { node: '>= 0.10' } 1071 | 1072 | require-directory@2.1.1: 1073 | resolution: 1074 | { 1075 | integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==, 1076 | } 1077 | engines: { node: '>=0.10.0' } 1078 | 1079 | require-main-filename@2.0.0: 1080 | resolution: 1081 | { 1082 | integrity: sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==, 1083 | } 1084 | 1085 | resolve-from@4.0.0: 1086 | resolution: 1087 | { 1088 | integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==, 1089 | } 1090 | engines: { node: '>=4' } 1091 | 1092 | resolve@1.22.2: 1093 | resolution: 1094 | { 1095 | integrity: sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g==, 1096 | } 1097 | hasBin: true 1098 | 1099 | reusify@1.0.4: 1100 | resolution: 1101 | { 1102 | integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==, 1103 | } 1104 | engines: { iojs: '>=1.0.0', node: '>=0.10.0' } 1105 | 1106 | run-parallel@1.2.0: 1107 | resolution: 1108 | { 1109 | integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==, 1110 | } 1111 | 1112 | semver@7.6.3: 1113 | resolution: 1114 | { 1115 | integrity: sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==, 1116 | } 1117 | engines: { node: '>=10' } 1118 | hasBin: true 1119 | 1120 | set-blocking@2.0.0: 1121 | resolution: 1122 | { 1123 | integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==, 1124 | } 1125 | 1126 | shebang-command@2.0.0: 1127 | resolution: 1128 | { 1129 | integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==, 1130 | } 1131 | engines: { node: '>=8' } 1132 | 1133 | shebang-regex@3.0.0: 1134 | resolution: 1135 | { 1136 | integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==, 1137 | } 1138 | engines: { node: '>=8' } 1139 | 1140 | shelljs@0.8.5: 1141 | resolution: 1142 | { 1143 | integrity: sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==, 1144 | } 1145 | engines: { node: '>=4' } 1146 | hasBin: true 1147 | 1148 | shx@0.3.4: 1149 | resolution: 1150 | { 1151 | integrity: sha512-N6A9MLVqjxZYcVn8hLmtneQWIJtp8IKzMP4eMnx+nqkvXoqinUPCbUFLp2UcWTEIUONhlk0ewxr/jaVGlc+J+g==, 1152 | } 1153 | engines: { node: '>=6' } 1154 | hasBin: true 1155 | 1156 | slash@3.0.0: 1157 | resolution: 1158 | { 1159 | integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==, 1160 | } 1161 | engines: { node: '>=8' } 1162 | 1163 | string-width@3.1.0: 1164 | resolution: 1165 | { 1166 | integrity: sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==, 1167 | } 1168 | engines: { node: '>=6' } 1169 | 1170 | strip-ansi@5.2.0: 1171 | resolution: 1172 | { 1173 | integrity: sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==, 1174 | } 1175 | engines: { node: '>=6' } 1176 | 1177 | strip-ansi@6.0.1: 1178 | resolution: 1179 | { 1180 | integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==, 1181 | } 1182 | engines: { node: '>=8' } 1183 | 1184 | strip-json-comments@3.1.1: 1185 | resolution: 1186 | { 1187 | integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==, 1188 | } 1189 | engines: { node: '>=8' } 1190 | 1191 | supports-color@7.2.0: 1192 | resolution: 1193 | { 1194 | integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==, 1195 | } 1196 | engines: { node: '>=8' } 1197 | 1198 | supports-preserve-symlinks-flag@1.0.0: 1199 | resolution: 1200 | { 1201 | integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==, 1202 | } 1203 | engines: { node: '>= 0.4' } 1204 | 1205 | text-table@0.2.0: 1206 | resolution: 1207 | { 1208 | integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==, 1209 | } 1210 | 1211 | to-regex-range@5.0.1: 1212 | resolution: 1213 | { 1214 | integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==, 1215 | } 1216 | engines: { node: '>=8.0' } 1217 | 1218 | ts-api-utils@1.3.0: 1219 | resolution: 1220 | { 1221 | integrity: sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ==, 1222 | } 1223 | engines: { node: '>=16' } 1224 | peerDependencies: 1225 | typescript: '>=4.2.0' 1226 | 1227 | type-check@0.4.0: 1228 | resolution: 1229 | { 1230 | integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==, 1231 | } 1232 | engines: { node: '>= 0.8.0' } 1233 | 1234 | typescript@5.5.4: 1235 | resolution: 1236 | { 1237 | integrity: sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==, 1238 | } 1239 | engines: { node: '>=14.17' } 1240 | hasBin: true 1241 | 1242 | uri-js@4.4.1: 1243 | resolution: 1244 | { 1245 | integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==, 1246 | } 1247 | 1248 | which-module@2.0.1: 1249 | resolution: 1250 | { 1251 | integrity: sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==, 1252 | } 1253 | 1254 | which@2.0.2: 1255 | resolution: 1256 | { 1257 | integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==, 1258 | } 1259 | engines: { node: '>= 8' } 1260 | hasBin: true 1261 | 1262 | wrap-ansi@5.1.0: 1263 | resolution: 1264 | { 1265 | integrity: sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==, 1266 | } 1267 | engines: { node: '>=6' } 1268 | 1269 | wrappy@1.0.2: 1270 | resolution: 1271 | { 1272 | integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==, 1273 | } 1274 | 1275 | y18n@4.0.3: 1276 | resolution: 1277 | { 1278 | integrity: sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==, 1279 | } 1280 | 1281 | yargs-parser@13.1.2: 1282 | resolution: 1283 | { 1284 | integrity: sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==, 1285 | } 1286 | 1287 | yargs@13.3.2: 1288 | resolution: 1289 | { 1290 | integrity: sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw==, 1291 | } 1292 | 1293 | yocto-queue@0.1.0: 1294 | resolution: 1295 | { 1296 | integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==, 1297 | } 1298 | engines: { node: '>=10' } 1299 | 1300 | snapshots: 1301 | '@aashutoshrathi/word-wrap@1.2.6': {} 1302 | 1303 | '@eslint-community/eslint-utils@4.4.0(eslint@9.9.0)': 1304 | dependencies: 1305 | eslint: 9.9.0 1306 | eslint-visitor-keys: 3.4.1 1307 | 1308 | '@eslint-community/regexpp@4.11.0': {} 1309 | 1310 | '@eslint/config-array@0.17.1': 1311 | dependencies: 1312 | '@eslint/object-schema': 2.1.4 1313 | debug: 4.3.4 1314 | minimatch: 3.1.2 1315 | transitivePeerDependencies: 1316 | - supports-color 1317 | 1318 | '@eslint/eslintrc@3.1.0': 1319 | dependencies: 1320 | ajv: 6.12.6 1321 | debug: 4.3.4 1322 | espree: 10.1.0 1323 | globals: 14.0.0 1324 | ignore: 5.3.2 1325 | import-fresh: 3.3.0 1326 | js-yaml: 4.1.0 1327 | minimatch: 3.1.2 1328 | strip-json-comments: 3.1.1 1329 | transitivePeerDependencies: 1330 | - supports-color 1331 | 1332 | '@eslint/js@9.9.0': {} 1333 | 1334 | '@eslint/object-schema@2.1.4': {} 1335 | 1336 | '@figma/plugin-typings@1.98.0': {} 1337 | 1338 | '@humanwhocodes/module-importer@1.0.1': {} 1339 | 1340 | '@humanwhocodes/retry@0.3.0': {} 1341 | 1342 | '@nodelib/fs.scandir@2.1.5': 1343 | dependencies: 1344 | '@nodelib/fs.stat': 2.0.5 1345 | run-parallel: 1.2.0 1346 | 1347 | '@nodelib/fs.stat@2.0.5': {} 1348 | 1349 | '@nodelib/fs.walk@1.2.8': 1350 | dependencies: 1351 | '@nodelib/fs.scandir': 2.1.5 1352 | fastq: 1.15.0 1353 | 1354 | '@typescript-eslint/eslint-plugin@8.2.0(@typescript-eslint/parser@8.2.0(eslint@9.9.0)(typescript@5.5.4))(eslint@9.9.0)(typescript@5.5.4)': 1355 | dependencies: 1356 | '@eslint-community/regexpp': 4.11.0 1357 | '@typescript-eslint/parser': 8.2.0(eslint@9.9.0)(typescript@5.5.4) 1358 | '@typescript-eslint/scope-manager': 8.2.0 1359 | '@typescript-eslint/type-utils': 8.2.0(eslint@9.9.0)(typescript@5.5.4) 1360 | '@typescript-eslint/utils': 8.2.0(eslint@9.9.0)(typescript@5.5.4) 1361 | '@typescript-eslint/visitor-keys': 8.2.0 1362 | eslint: 9.9.0 1363 | graphemer: 1.4.0 1364 | ignore: 5.3.2 1365 | natural-compare: 1.4.0 1366 | ts-api-utils: 1.3.0(typescript@5.5.4) 1367 | optionalDependencies: 1368 | typescript: 5.5.4 1369 | transitivePeerDependencies: 1370 | - supports-color 1371 | 1372 | '@typescript-eslint/parser@8.2.0(eslint@9.9.0)(typescript@5.5.4)': 1373 | dependencies: 1374 | '@typescript-eslint/scope-manager': 8.2.0 1375 | '@typescript-eslint/types': 8.2.0 1376 | '@typescript-eslint/typescript-estree': 8.2.0(typescript@5.5.4) 1377 | '@typescript-eslint/visitor-keys': 8.2.0 1378 | debug: 4.3.4 1379 | eslint: 9.9.0 1380 | optionalDependencies: 1381 | typescript: 5.5.4 1382 | transitivePeerDependencies: 1383 | - supports-color 1384 | 1385 | '@typescript-eslint/scope-manager@8.2.0': 1386 | dependencies: 1387 | '@typescript-eslint/types': 8.2.0 1388 | '@typescript-eslint/visitor-keys': 8.2.0 1389 | 1390 | '@typescript-eslint/type-utils@8.2.0(eslint@9.9.0)(typescript@5.5.4)': 1391 | dependencies: 1392 | '@typescript-eslint/typescript-estree': 8.2.0(typescript@5.5.4) 1393 | '@typescript-eslint/utils': 8.2.0(eslint@9.9.0)(typescript@5.5.4) 1394 | debug: 4.3.4 1395 | ts-api-utils: 1.3.0(typescript@5.5.4) 1396 | optionalDependencies: 1397 | typescript: 5.5.4 1398 | transitivePeerDependencies: 1399 | - eslint 1400 | - supports-color 1401 | 1402 | '@typescript-eslint/types@8.2.0': {} 1403 | 1404 | '@typescript-eslint/typescript-estree@8.2.0(typescript@5.5.4)': 1405 | dependencies: 1406 | '@typescript-eslint/types': 8.2.0 1407 | '@typescript-eslint/visitor-keys': 8.2.0 1408 | debug: 4.3.4 1409 | globby: 11.1.0 1410 | is-glob: 4.0.3 1411 | minimatch: 9.0.5 1412 | semver: 7.6.3 1413 | ts-api-utils: 1.3.0(typescript@5.5.4) 1414 | optionalDependencies: 1415 | typescript: 5.5.4 1416 | transitivePeerDependencies: 1417 | - supports-color 1418 | 1419 | '@typescript-eslint/utils@8.2.0(eslint@9.9.0)(typescript@5.5.4)': 1420 | dependencies: 1421 | '@eslint-community/eslint-utils': 4.4.0(eslint@9.9.0) 1422 | '@typescript-eslint/scope-manager': 8.2.0 1423 | '@typescript-eslint/types': 8.2.0 1424 | '@typescript-eslint/typescript-estree': 8.2.0(typescript@5.5.4) 1425 | eslint: 9.9.0 1426 | transitivePeerDependencies: 1427 | - supports-color 1428 | - typescript 1429 | 1430 | '@typescript-eslint/visitor-keys@8.2.0': 1431 | dependencies: 1432 | '@typescript-eslint/types': 8.2.0 1433 | eslint-visitor-keys: 3.4.3 1434 | 1435 | acorn-jsx@5.3.2(acorn@8.12.1): 1436 | dependencies: 1437 | acorn: 8.12.1 1438 | 1439 | acorn@8.12.1: {} 1440 | 1441 | ajv@6.12.6: 1442 | dependencies: 1443 | fast-deep-equal: 3.1.3 1444 | fast-json-stable-stringify: 2.1.0 1445 | json-schema-traverse: 0.4.1 1446 | uri-js: 4.4.1 1447 | 1448 | ansi-regex@4.1.1: {} 1449 | 1450 | ansi-regex@5.0.1: {} 1451 | 1452 | ansi-styles@3.2.1: 1453 | dependencies: 1454 | color-convert: 1.9.3 1455 | 1456 | ansi-styles@4.3.0: 1457 | dependencies: 1458 | color-convert: 2.0.1 1459 | 1460 | anymatch@3.1.3: 1461 | dependencies: 1462 | normalize-path: 3.0.0 1463 | picomatch: 2.3.1 1464 | 1465 | argparse@2.0.1: {} 1466 | 1467 | array-union@2.1.0: {} 1468 | 1469 | balanced-match@1.0.2: {} 1470 | 1471 | binary-extensions@2.2.0: {} 1472 | 1473 | brace-expansion@1.1.11: 1474 | dependencies: 1475 | balanced-match: 1.0.2 1476 | concat-map: 0.0.1 1477 | 1478 | brace-expansion@2.0.1: 1479 | dependencies: 1480 | balanced-match: 1.0.2 1481 | 1482 | braces@3.0.2: 1483 | dependencies: 1484 | fill-range: 7.0.1 1485 | 1486 | callsites@3.1.0: {} 1487 | 1488 | camelcase@5.3.1: {} 1489 | 1490 | chalk@4.1.2: 1491 | dependencies: 1492 | ansi-styles: 4.3.0 1493 | supports-color: 7.2.0 1494 | 1495 | chokidar-cli@3.0.0: 1496 | dependencies: 1497 | chokidar: 3.5.3 1498 | lodash.debounce: 4.0.8 1499 | lodash.throttle: 4.1.1 1500 | yargs: 13.3.2 1501 | 1502 | chokidar@3.5.3: 1503 | dependencies: 1504 | anymatch: 3.1.3 1505 | braces: 3.0.2 1506 | glob-parent: 5.1.2 1507 | is-binary-path: 2.1.0 1508 | is-glob: 4.0.3 1509 | normalize-path: 3.0.0 1510 | readdirp: 3.6.0 1511 | optionalDependencies: 1512 | fsevents: 2.3.2 1513 | 1514 | cliui@5.0.0: 1515 | dependencies: 1516 | string-width: 3.1.0 1517 | strip-ansi: 5.2.0 1518 | wrap-ansi: 5.1.0 1519 | 1520 | color-convert@1.9.3: 1521 | dependencies: 1522 | color-name: 1.1.3 1523 | 1524 | color-convert@2.0.1: 1525 | dependencies: 1526 | color-name: 1.1.4 1527 | 1528 | color-name@1.1.3: {} 1529 | 1530 | color-name@1.1.4: {} 1531 | 1532 | concat-map@0.0.1: {} 1533 | 1534 | cross-spawn@7.0.3: 1535 | dependencies: 1536 | path-key: 3.1.1 1537 | shebang-command: 2.0.0 1538 | which: 2.0.2 1539 | 1540 | debug@4.3.4: 1541 | dependencies: 1542 | ms: 2.1.2 1543 | 1544 | decamelize@1.2.0: {} 1545 | 1546 | deep-is@0.1.4: {} 1547 | 1548 | dir-glob@3.0.1: 1549 | dependencies: 1550 | path-type: 4.0.0 1551 | 1552 | emoji-regex@7.0.3: {} 1553 | 1554 | escape-string-regexp@4.0.0: {} 1555 | 1556 | eslint-config-prettier@9.1.0(eslint@9.9.0): 1557 | dependencies: 1558 | eslint: 9.9.0 1559 | 1560 | eslint-scope@8.0.2: 1561 | dependencies: 1562 | esrecurse: 4.3.0 1563 | estraverse: 5.3.0 1564 | 1565 | eslint-visitor-keys@3.4.1: {} 1566 | 1567 | eslint-visitor-keys@3.4.3: {} 1568 | 1569 | eslint-visitor-keys@4.0.0: {} 1570 | 1571 | eslint@9.9.0: 1572 | dependencies: 1573 | '@eslint-community/eslint-utils': 4.4.0(eslint@9.9.0) 1574 | '@eslint-community/regexpp': 4.11.0 1575 | '@eslint/config-array': 0.17.1 1576 | '@eslint/eslintrc': 3.1.0 1577 | '@eslint/js': 9.9.0 1578 | '@humanwhocodes/module-importer': 1.0.1 1579 | '@humanwhocodes/retry': 0.3.0 1580 | '@nodelib/fs.walk': 1.2.8 1581 | ajv: 6.12.6 1582 | chalk: 4.1.2 1583 | cross-spawn: 7.0.3 1584 | debug: 4.3.4 1585 | escape-string-regexp: 4.0.0 1586 | eslint-scope: 8.0.2 1587 | eslint-visitor-keys: 4.0.0 1588 | espree: 10.1.0 1589 | esquery: 1.5.0 1590 | esutils: 2.0.3 1591 | fast-deep-equal: 3.1.3 1592 | file-entry-cache: 8.0.0 1593 | find-up: 5.0.0 1594 | glob-parent: 6.0.2 1595 | ignore: 5.2.4 1596 | imurmurhash: 0.1.4 1597 | is-glob: 4.0.3 1598 | is-path-inside: 3.0.3 1599 | json-stable-stringify-without-jsonify: 1.0.1 1600 | levn: 0.4.1 1601 | lodash.merge: 4.6.2 1602 | minimatch: 3.1.2 1603 | natural-compare: 1.4.0 1604 | optionator: 0.9.3 1605 | strip-ansi: 6.0.1 1606 | text-table: 0.2.0 1607 | transitivePeerDependencies: 1608 | - supports-color 1609 | 1610 | espree@10.1.0: 1611 | dependencies: 1612 | acorn: 8.12.1 1613 | acorn-jsx: 5.3.2(acorn@8.12.1) 1614 | eslint-visitor-keys: 4.0.0 1615 | 1616 | esquery@1.5.0: 1617 | dependencies: 1618 | estraverse: 5.3.0 1619 | 1620 | esrecurse@4.3.0: 1621 | dependencies: 1622 | estraverse: 5.3.0 1623 | 1624 | estraverse@5.3.0: {} 1625 | 1626 | esutils@2.0.3: {} 1627 | 1628 | fast-deep-equal@3.1.3: {} 1629 | 1630 | fast-glob@3.3.0: 1631 | dependencies: 1632 | '@nodelib/fs.stat': 2.0.5 1633 | '@nodelib/fs.walk': 1.2.8 1634 | glob-parent: 5.1.2 1635 | merge2: 1.4.1 1636 | micromatch: 4.0.5 1637 | 1638 | fast-json-stable-stringify@2.1.0: {} 1639 | 1640 | fast-levenshtein@2.0.6: {} 1641 | 1642 | fastq@1.15.0: 1643 | dependencies: 1644 | reusify: 1.0.4 1645 | 1646 | file-entry-cache@8.0.0: 1647 | dependencies: 1648 | flat-cache: 4.0.1 1649 | 1650 | fill-range@7.0.1: 1651 | dependencies: 1652 | to-regex-range: 5.0.1 1653 | 1654 | find-up@3.0.0: 1655 | dependencies: 1656 | locate-path: 3.0.0 1657 | 1658 | find-up@5.0.0: 1659 | dependencies: 1660 | locate-path: 6.0.0 1661 | path-exists: 4.0.0 1662 | 1663 | flat-cache@4.0.1: 1664 | dependencies: 1665 | flatted: 3.3.1 1666 | keyv: 4.5.4 1667 | 1668 | flatted@3.3.1: {} 1669 | 1670 | fs.realpath@1.0.0: {} 1671 | 1672 | fsevents@2.3.2: 1673 | optional: true 1674 | 1675 | function-bind@1.1.1: {} 1676 | 1677 | get-caller-file@2.0.5: {} 1678 | 1679 | glob-parent@5.1.2: 1680 | dependencies: 1681 | is-glob: 4.0.3 1682 | 1683 | glob-parent@6.0.2: 1684 | dependencies: 1685 | is-glob: 4.0.3 1686 | 1687 | glob@7.2.3: 1688 | dependencies: 1689 | fs.realpath: 1.0.0 1690 | inflight: 1.0.6 1691 | inherits: 2.0.4 1692 | minimatch: 3.1.2 1693 | once: 1.4.0 1694 | path-is-absolute: 1.0.1 1695 | 1696 | globals@14.0.0: {} 1697 | 1698 | globals@15.9.0: {} 1699 | 1700 | globby@11.1.0: 1701 | dependencies: 1702 | array-union: 2.1.0 1703 | dir-glob: 3.0.1 1704 | fast-glob: 3.3.0 1705 | ignore: 5.2.4 1706 | merge2: 1.4.1 1707 | slash: 3.0.0 1708 | 1709 | graphemer@1.4.0: {} 1710 | 1711 | has-flag@4.0.0: {} 1712 | 1713 | has@1.0.3: 1714 | dependencies: 1715 | function-bind: 1.1.1 1716 | 1717 | husky@9.1.5: {} 1718 | 1719 | ignore@5.2.4: {} 1720 | 1721 | ignore@5.3.2: {} 1722 | 1723 | import-fresh@3.3.0: 1724 | dependencies: 1725 | parent-module: 1.0.1 1726 | resolve-from: 4.0.0 1727 | 1728 | imurmurhash@0.1.4: {} 1729 | 1730 | inflight@1.0.6: 1731 | dependencies: 1732 | once: 1.4.0 1733 | wrappy: 1.0.2 1734 | 1735 | inherits@2.0.4: {} 1736 | 1737 | interpret@1.4.0: {} 1738 | 1739 | is-binary-path@2.1.0: 1740 | dependencies: 1741 | binary-extensions: 2.2.0 1742 | 1743 | is-core-module@2.12.1: 1744 | dependencies: 1745 | has: 1.0.3 1746 | 1747 | is-extglob@2.1.1: {} 1748 | 1749 | is-fullwidth-code-point@2.0.0: {} 1750 | 1751 | is-glob@4.0.3: 1752 | dependencies: 1753 | is-extglob: 2.1.1 1754 | 1755 | is-number@7.0.0: {} 1756 | 1757 | is-path-inside@3.0.3: {} 1758 | 1759 | isexe@2.0.0: {} 1760 | 1761 | js-yaml@4.1.0: 1762 | dependencies: 1763 | argparse: 2.0.1 1764 | 1765 | json-buffer@3.0.1: {} 1766 | 1767 | json-schema-traverse@0.4.1: {} 1768 | 1769 | json-stable-stringify-without-jsonify@1.0.1: {} 1770 | 1771 | keyv@4.5.4: 1772 | dependencies: 1773 | json-buffer: 3.0.1 1774 | 1775 | levn@0.4.1: 1776 | dependencies: 1777 | prelude-ls: 1.2.1 1778 | type-check: 0.4.0 1779 | 1780 | locate-path@3.0.0: 1781 | dependencies: 1782 | p-locate: 3.0.0 1783 | path-exists: 3.0.0 1784 | 1785 | locate-path@6.0.0: 1786 | dependencies: 1787 | p-locate: 5.0.0 1788 | 1789 | lodash.debounce@4.0.8: {} 1790 | 1791 | lodash.merge@4.6.2: {} 1792 | 1793 | lodash.throttle@4.1.1: {} 1794 | 1795 | merge2@1.4.1: {} 1796 | 1797 | micromatch@4.0.5: 1798 | dependencies: 1799 | braces: 3.0.2 1800 | picomatch: 2.3.1 1801 | 1802 | minimatch@3.1.2: 1803 | dependencies: 1804 | brace-expansion: 1.1.11 1805 | 1806 | minimatch@9.0.5: 1807 | dependencies: 1808 | brace-expansion: 2.0.1 1809 | 1810 | minimist@1.2.8: {} 1811 | 1812 | ms@2.1.2: {} 1813 | 1814 | natural-compare@1.4.0: {} 1815 | 1816 | normalize-path@3.0.0: {} 1817 | 1818 | once@1.4.0: 1819 | dependencies: 1820 | wrappy: 1.0.2 1821 | 1822 | optionator@0.9.3: 1823 | dependencies: 1824 | '@aashutoshrathi/word-wrap': 1.2.6 1825 | deep-is: 0.1.4 1826 | fast-levenshtein: 2.0.6 1827 | levn: 0.4.1 1828 | prelude-ls: 1.2.1 1829 | type-check: 0.4.0 1830 | 1831 | p-limit@2.3.0: 1832 | dependencies: 1833 | p-try: 2.2.0 1834 | 1835 | p-limit@3.1.0: 1836 | dependencies: 1837 | yocto-queue: 0.1.0 1838 | 1839 | p-locate@3.0.0: 1840 | dependencies: 1841 | p-limit: 2.3.0 1842 | 1843 | p-locate@5.0.0: 1844 | dependencies: 1845 | p-limit: 3.1.0 1846 | 1847 | p-try@2.2.0: {} 1848 | 1849 | parent-module@1.0.1: 1850 | dependencies: 1851 | callsites: 3.1.0 1852 | 1853 | path-exists@3.0.0: {} 1854 | 1855 | path-exists@4.0.0: {} 1856 | 1857 | path-is-absolute@1.0.1: {} 1858 | 1859 | path-key@3.1.1: {} 1860 | 1861 | path-parse@1.0.7: {} 1862 | 1863 | path-type@4.0.0: {} 1864 | 1865 | picomatch@2.3.1: {} 1866 | 1867 | prelude-ls@1.2.1: {} 1868 | 1869 | prettier@3.3.3: {} 1870 | 1871 | punycode@2.3.0: {} 1872 | 1873 | queue-microtask@1.2.3: {} 1874 | 1875 | readdirp@3.6.0: 1876 | dependencies: 1877 | picomatch: 2.3.1 1878 | 1879 | rechoir@0.6.2: 1880 | dependencies: 1881 | resolve: 1.22.2 1882 | 1883 | require-directory@2.1.1: {} 1884 | 1885 | require-main-filename@2.0.0: {} 1886 | 1887 | resolve-from@4.0.0: {} 1888 | 1889 | resolve@1.22.2: 1890 | dependencies: 1891 | is-core-module: 2.12.1 1892 | path-parse: 1.0.7 1893 | supports-preserve-symlinks-flag: 1.0.0 1894 | 1895 | reusify@1.0.4: {} 1896 | 1897 | run-parallel@1.2.0: 1898 | dependencies: 1899 | queue-microtask: 1.2.3 1900 | 1901 | semver@7.6.3: {} 1902 | 1903 | set-blocking@2.0.0: {} 1904 | 1905 | shebang-command@2.0.0: 1906 | dependencies: 1907 | shebang-regex: 3.0.0 1908 | 1909 | shebang-regex@3.0.0: {} 1910 | 1911 | shelljs@0.8.5: 1912 | dependencies: 1913 | glob: 7.2.3 1914 | interpret: 1.4.0 1915 | rechoir: 0.6.2 1916 | 1917 | shx@0.3.4: 1918 | dependencies: 1919 | minimist: 1.2.8 1920 | shelljs: 0.8.5 1921 | 1922 | slash@3.0.0: {} 1923 | 1924 | string-width@3.1.0: 1925 | dependencies: 1926 | emoji-regex: 7.0.3 1927 | is-fullwidth-code-point: 2.0.0 1928 | strip-ansi: 5.2.0 1929 | 1930 | strip-ansi@5.2.0: 1931 | dependencies: 1932 | ansi-regex: 4.1.1 1933 | 1934 | strip-ansi@6.0.1: 1935 | dependencies: 1936 | ansi-regex: 5.0.1 1937 | 1938 | strip-json-comments@3.1.1: {} 1939 | 1940 | supports-color@7.2.0: 1941 | dependencies: 1942 | has-flag: 4.0.0 1943 | 1944 | supports-preserve-symlinks-flag@1.0.0: {} 1945 | 1946 | text-table@0.2.0: {} 1947 | 1948 | to-regex-range@5.0.1: 1949 | dependencies: 1950 | is-number: 7.0.0 1951 | 1952 | ts-api-utils@1.3.0(typescript@5.5.4): 1953 | dependencies: 1954 | typescript: 5.5.4 1955 | 1956 | type-check@0.4.0: 1957 | dependencies: 1958 | prelude-ls: 1.2.1 1959 | 1960 | typescript@5.5.4: {} 1961 | 1962 | uri-js@4.4.1: 1963 | dependencies: 1964 | punycode: 2.3.0 1965 | 1966 | which-module@2.0.1: {} 1967 | 1968 | which@2.0.2: 1969 | dependencies: 1970 | isexe: 2.0.0 1971 | 1972 | wrap-ansi@5.1.0: 1973 | dependencies: 1974 | ansi-styles: 3.2.1 1975 | string-width: 3.1.0 1976 | strip-ansi: 5.2.0 1977 | 1978 | wrappy@1.0.2: {} 1979 | 1980 | y18n@4.0.3: {} 1981 | 1982 | yargs-parser@13.1.2: 1983 | dependencies: 1984 | camelcase: 5.3.1 1985 | decamelize: 1.2.0 1986 | 1987 | yargs@13.3.2: 1988 | dependencies: 1989 | cliui: 5.0.0 1990 | find-up: 3.0.0 1991 | get-caller-file: 2.0.5 1992 | require-directory: 2.1.1 1993 | require-main-filename: 2.0.0 1994 | set-blocking: 2.0.0 1995 | string-width: 3.1.0 1996 | which-module: 2.0.1 1997 | y18n: 4.0.3 1998 | yargs-parser: 13.1.2 1999 | 2000 | yocto-queue@0.1.0: {} 2001 | -------------------------------------------------------------------------------- /resources/images/variables-converter-cover-art.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lauthieb/variables-converter-figma-plugin/eadbbec71e1174363b7501970a85957b7e0d8329/resources/images/variables-converter-cover-art.png -------------------------------------------------------------------------------- /resources/images/variables-converter-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lauthieb/variables-converter-figma-plugin/eadbbec71e1174363b7501970a85957b7e0d8329/resources/images/variables-converter-icon.png -------------------------------------------------------------------------------- /src/plugin/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | ** ================= 3 | ** Utils - Variable Access 4 | ** ================= 5 | */ 6 | 7 | /* Gets all the local variables */ 8 | let figmaVariables: Variable[] = []; 9 | let availableCollections: Record = {}; 10 | let selectedCollection: string; 11 | let availableModes: Record = {}; 12 | let selectedMode: string; 13 | 14 | async function initVariables(): Promise { 15 | figmaVariables = await figma.variables.getLocalVariablesAsync(); 16 | availableCollections = await listAllCollections(figmaVariables); 17 | selectedCollection = Object.keys(availableCollections)[0]; 18 | availableModes = await modesOfCollection(selectedCollection); 19 | selectedMode = Object.keys(availableModes)[0]; 20 | } 21 | 22 | function variableByCurrentMode(variable: Variable): VariableValue { 23 | if (selectedMode === null) { 24 | throw new Error('No mode selected'); 25 | } 26 | return variable.valuesByMode[selectedMode]; 27 | } 28 | 29 | async function listAllCollections( 30 | variables: Variable[] 31 | ): Promise> { 32 | const collections: Record = {}; 33 | for (const variable of variables) { 34 | const collectionId = variable.variableCollectionId; 35 | const collection = 36 | await figma.variables.getVariableCollectionByIdAsync(collectionId); 37 | collections[collectionId] = collection?.name ?? collectionId; 38 | } 39 | return collections; 40 | } 41 | 42 | async function modesOfCollection( 43 | collectionId: string 44 | ): Promise> { 45 | const modes: Record = {}; 46 | const collection = 47 | await figma.variables.getVariableCollectionByIdAsync(collectionId); 48 | collection?.modes.forEach((mode) => { 49 | modes[mode.modeId] = mode.name; 50 | }); 51 | return modes; 52 | } 53 | 54 | /* 55 | ** ================= 56 | ** Utils - Maths 57 | ** ================= 58 | */ 59 | 60 | /* 61 | ** Converts a rgba color to hex 62 | */ 63 | function rgba2hex(orig: any) { 64 | let a; 65 | const rgb = orig 66 | .replace(/\s/g, '') 67 | .match(/^rgba?\((\d+),(\d+),(\d+),?([^,\s)]+)?/i), 68 | alpha = ((rgb && rgb[4]) || '').trim(); 69 | let hex = rgb 70 | ? (rgb[1] | (1 << 8)).toString(16).slice(1) + 71 | (rgb[2] | (1 << 8)).toString(16).slice(1) + 72 | (rgb[3] | (1 << 8)).toString(16).slice(1) 73 | : orig; 74 | 75 | if (alpha !== '') { 76 | a = alpha; 77 | } else { 78 | a = 0o1; 79 | } 80 | a = ((a * 255) | (1 << 8)).toString(16).slice(1); 81 | hex = hex + a; 82 | 83 | return '#' + hex.toUpperCase(); 84 | } 85 | 86 | /* 87 | ** Converts a rgba JavaScript object to a CSS hexa string 88 | */ 89 | function rgbaObjectToCSSHexaString(obj: { 90 | r: number; 91 | g: number; 92 | b: number; 93 | a: number; 94 | }): string { 95 | const { r, g, b, a } = obj; 96 | const rgbaString = rgba2hex( 97 | `rgba(${Math.round(r * 255)}, ${Math.round(g * 255)}, ${Math.round( 98 | b * 255 99 | )}, ${a})` 100 | ); 101 | return rgbaString; 102 | } 103 | 104 | /* 105 | ** ================= 106 | ** Utils - Converters 107 | ** ================= 108 | */ 109 | 110 | /* 111 | ** Converts a rgba JavaScript object to a Compose hexa string 112 | */ 113 | function rgbaObjectToComposeHexaString(obj: { 114 | r: number; 115 | g: number; 116 | b: number; 117 | a: number; 118 | }): string { 119 | const { r, g, b, a } = obj; 120 | const rgbaString = rgba2hex( 121 | `rgba(${Math.round(r * 255)}, ${Math.round(g * 255)}, ${Math.round( 122 | b * 255 123 | )}, ${a})` 124 | ); 125 | return `Color(Ox${rgbaString.substring(7)}${rgbaString.substring(1, 7)})`; 126 | } 127 | 128 | /* 129 | ** Converts a rgba JavaScript object to a SwiftUI hexa string 130 | */ 131 | function rgbaObjectToSwiftuiRgbaString(obj: { 132 | r: number; 133 | g: number; 134 | b: number; 135 | a: number; 136 | }): string { 137 | const { r, g, b, a } = obj; 138 | return `Color(red: ${r.toFixed(2)}, green: ${g.toFixed(2)}, blue: ${b.toFixed( 139 | 2 140 | )})${a !== 1 ? `.opacity(${a.toFixed(2)})` : ''}`; 141 | } 142 | 143 | /* 144 | ** Converts a CSS property to camelCase 145 | */ 146 | function cssPropertyToCamelCase(cssProperty: string): string { 147 | const matches = cssProperty.match(/--(\w+(-\w+)*)/); 148 | if (matches && matches.length > 1) { 149 | const propertyName = matches[1]; 150 | return propertyName.replace(/-(.)/g, (_, letter) => letter.toUpperCase()); 151 | } 152 | return ''; 153 | } 154 | 155 | /* 156 | ** Converts a CSS property to JavaScript const 157 | */ 158 | function cssPropertyToJSConst(propertyString: string): string { 159 | propertyString = propertyString.trim(); 160 | 161 | const matches = propertyString.match(/--(.+):\s*(.+);/); 162 | if (!matches || matches.length !== 3) { 163 | throw new Error('Invalid CSS property string'); 164 | } 165 | 166 | const propertyName = matches[1]; 167 | let propertyValue = matches[2]; 168 | 169 | if (propertyValue.startsWith('var(--')) { 170 | propertyValue = cssPropertyToCamelCase(propertyValue); 171 | } else { 172 | propertyValue = `'${propertyValue}'`; 173 | } 174 | 175 | const camelCaseName = propertyName.replace(/-(\w)/g, (_, letter) => 176 | letter.toUpperCase() 177 | ); 178 | const jsConstantString = `export const ${camelCaseName} = ${propertyValue};`; 179 | 180 | return jsConstantString; 181 | } 182 | 183 | /* 184 | ** ================= 185 | ** Utils - Generators 186 | ** ================= 187 | */ 188 | 189 | /* 190 | ** Generates a CSS key string 191 | */ 192 | function generatesCSSKeyString(variable: Variable): string { 193 | return ( 194 | '--' + 195 | variable.name 196 | .replace(/\//g, '-') 197 | .replace(/([a-z0-9])([A-Z])/g, '$1-$2') 198 | .toLowerCase() 199 | ); 200 | } 201 | 202 | /* 203 | ** Generates a CSS value string 204 | */ 205 | function generatesCSSValueString(variable: Variable): string { 206 | const value: any = variableByCurrentMode(variable); 207 | 208 | if (value.type === 'VARIABLE_ALIAS') { 209 | const alias = figmaVariables.find((obj) => obj.id === value.id); 210 | return `var(${generatesCSSKeyString(alias)})`; 211 | } else if (variable.resolvedType === 'COLOR') { 212 | return rgbaObjectToCSSHexaString(value); 213 | } else { 214 | return value + 'px'; 215 | } 216 | } 217 | 218 | /* 219 | ** Generates a Compose key string 220 | */ 221 | function generatesComposeKeyString(variable: Variable): string { 222 | const parts = variable.name.split('/'); 223 | let transformedString = ''; 224 | 225 | for (let i = 0; i < parts.length; i++) { 226 | const part = parts[i].trim(); 227 | const capitalizedPart = part.charAt(0).toUpperCase() + part.slice(1); 228 | transformedString += capitalizedPart; 229 | } 230 | 231 | return transformedString; 232 | } 233 | 234 | /* 235 | ** Generates a Compose value string 236 | */ 237 | function generatesComposeValueString(variable: Variable): string { 238 | const value: any = variableByCurrentMode(variable); 239 | if (value.type === 'VARIABLE_ALIAS') { 240 | const alias = figmaVariables.find((obj) => obj.id === value.id); 241 | return `Variables.${generatesComposeKeyString(alias)}`; 242 | } else if (variable.resolvedType === 'COLOR') { 243 | return rgbaObjectToComposeHexaString(value); 244 | } else { 245 | return value + '.dp'; 246 | } 247 | } 248 | 249 | /* 250 | ** Generates a SwiftUI key string 251 | */ 252 | function generatesSwiftuiKeyString(variable: Variable): string { 253 | const parts = variable.name.split('/'); 254 | let transformedString = ''; 255 | 256 | for (let i = 0; i < parts.length; i++) { 257 | const part = parts[i].trim(); 258 | const capitalizedPart = part.charAt(0).toUpperCase() + part.slice(1); 259 | transformedString += capitalizedPart; 260 | } 261 | 262 | return transformedString; 263 | } 264 | 265 | /* 266 | ** Generates a SwiftUI value string 267 | */ 268 | function generatesSwiftuiValueString(variable: Variable): string { 269 | const value: any = variableByCurrentMode(variable); 270 | if (value.type === 'VARIABLE_ALIAS') { 271 | const alias = figmaVariables.find((obj) => obj.id === value.id); 272 | return `Constants.${generatesComposeKeyString(alias)}`; 273 | } else if (variable.resolvedType === 'COLOR') { 274 | return rgbaObjectToSwiftuiRgbaString(value); 275 | } else { 276 | return value; 277 | } 278 | } 279 | 280 | /* 281 | ** ================= 282 | ** Figma plugin 283 | ** ================= 284 | */ 285 | 286 | /* Shows the Figma UI in the sidebar */ 287 | figma.showUI(__html__); 288 | 289 | function postUiUpdate() { 290 | /* Prepare variables for code generation */ 291 | let cssFile = ':root {\n'; 292 | let jsFile = ''; 293 | let composeFile = 'object Variables {\n'; 294 | let swiftuiFile = 'struct Constants {\n'; 295 | 296 | const variablesForCurrentMode = figmaVariables 297 | .filter((variable) => variable.variableCollectionId === selectedCollection) 298 | .filter( 299 | (variable) => variable.valuesByMode[selectedMode ?? ''] !== undefined 300 | ); 301 | /* Filters variables to only get COLOR & FLOAT resolved types sorted alphabetically */ 302 | const filteredFigmaVariables = variablesForCurrentMode 303 | .filter( 304 | (variable) => 305 | variable.resolvedType === 'COLOR' || variable.resolvedType === 'FLOAT' 306 | ) 307 | .sort((a, b) => a.name.localeCompare(b.name)); 308 | 309 | /* Iterates through variables to generate CSS & JS variables */ 310 | filteredFigmaVariables 311 | .map( 312 | (variable) => 313 | ` ${generatesCSSKeyString(variable)}: ${generatesCSSValueString( 314 | variable 315 | )};` 316 | ) 317 | .forEach((variable) => { 318 | cssFile += variable + '\n'; 319 | jsFile += cssPropertyToJSConst(variable) + '\n'; 320 | }); 321 | cssFile += '}'; 322 | 323 | /* Iterates through variables to generate Compose variables */ 324 | filteredFigmaVariables 325 | .map( 326 | (variable) => 327 | ` val ${generatesComposeKeyString(variable)}: ${ 328 | variable.resolvedType === 'COLOR' ? 'Color' : 'Dp' 329 | } = ${generatesComposeValueString(variable)}` 330 | ) 331 | .forEach((variable) => { 332 | composeFile += variable + '\n'; 333 | }); 334 | composeFile += '}'; 335 | 336 | /* Iterates through variables to generate Compose variables */ 337 | filteredFigmaVariables 338 | .map( 339 | (variable) => 340 | ` static let ${generatesSwiftuiKeyString(variable)}: ${ 341 | variable.resolvedType === 'COLOR' ? 'Color' : 'CGFloat' 342 | } = ${generatesSwiftuiValueString(variable)}` 343 | ) 344 | .forEach((variable) => { 345 | swiftuiFile += variable + '\n'; 346 | }); 347 | swiftuiFile += '}'; 348 | 349 | /* Sends new data to UI (index.html) */ 350 | figma.ui.postMessage({ 351 | cssFile, 352 | jsFile, 353 | composeFile, 354 | swiftuiFile, 355 | collections: availableCollections, 356 | modes: availableModes, 357 | }); 358 | } 359 | 360 | async function init() { 361 | await initVariables(); 362 | postUiUpdate(); 363 | } 364 | init(); 365 | 366 | /* Handle ui events triggered from UI (index.html) */ 367 | figma.ui.onmessage = async (message) => { 368 | if (message.type === 'code-copied-css') { 369 | figma.notify('CSS variables successfully copied to clipboard'); 370 | } 371 | if (message.type === 'code-copied-js') { 372 | figma.notify('JavaScript variables successfully copied to clipboard'); 373 | } 374 | if (message.type === 'code-copied-compose') { 375 | figma.notify('Compose variables successfully copied to clipboard'); 376 | } 377 | if (message.type === 'code-copied-swiftui') { 378 | figma.notify('SwiftUI variables successfully copied to clipboard'); 379 | } 380 | if (message.type === 'collection-selected') { 381 | selectedCollection = message.value; 382 | if (selectedCollection === null) { 383 | throw new Error('No collection selected'); 384 | } 385 | availableModes = await modesOfCollection(selectedCollection); 386 | selectedMode = Object.keys(availableModes)[0]; 387 | postUiUpdate(); 388 | } 389 | if (message.type === 'mode-selected') { 390 | selectedMode = message.value; 391 | postUiUpdate(); 392 | } 393 | }; 394 | -------------------------------------------------------------------------------- /src/ui/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Variables Converter 7 | 80 | 81 | 240 | 241 | 242 |
243 |
244 | 245 | 246 |
247 |
248 | 249 | 250 |
251 |
252 |
253 |
254 | 259 | 264 | 269 | 274 | 278 | 283 | 284 |

CSS variables

285 |
286 | 289 |
290 |
291 |       
292 |     
293 | 294 |
295 |
296 | 301 | 302 | 305 | 306 |

JavaScript variables

307 |
308 | 311 |
312 |
313 |       
314 |     
315 | 316 |
317 |
318 | 324 | 325 | 326 | 327 | 328 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 350 |

Compose variables

351 |
352 | 355 |
356 |
357 |       
358 |     
359 | 360 |
361 |
362 | 363 | 367 | 371 | 372 |

SwiftUI variables

373 |
374 | 377 |
378 |
379 |       
380 |     
381 | 382 | 383 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "es6", 4 | "lib": ["es6"], 5 | "strict": true, 6 | "typeRoots": ["./node_modules/@types", "./node_modules/@figma"], 7 | "outDir": "dist/plugin" 8 | } 9 | } 10 | --------------------------------------------------------------------------------