├── .github └── dependabot.yml ├── .gitignore ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── package-lock.json ├── package.json ├── prettier.config.js ├── rollup.config.js └── src ├── annotations ├── abbr.js └── lang.js ├── blocks └── hr.js ├── decorators ├── del.js ├── ins.js ├── sub.js └── sup.js ├── index.js └── validations └── noFakeLists.js /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | updates: 3 | - package-ecosystem: 'npm' 4 | directory: '/' 5 | schedule: 6 | interval: 'weekly' 7 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .DS_Store 3 | *.log 4 | dist 5 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | Because some files contain JSX code, the project is bundled with Rollup to compile JSX into plain JavaScript. Source files are in the `src` directory, and a `dist` directory is generated with output files. Compilation can be done via `npm run build`, or `npm run dev` to run a watcher. 4 | 5 | To try and work on the annotations and validators, one can initialize a new Sanity project within the repository with `sanity init` (make sure you have [Sanity globally installed](https://www.sanity.io/docs/getting-started-with-sanity-cli) first). Follow the instructions to get a Sanity project going. 6 | 7 | Then, update the `schema.js` file so it looks like this (adjust to suit your needs): 8 | 9 | ```js 10 | import createSchema from 'part:@sanity/base/schema-creator' 11 | import schemaTypes from 'all:part:@sanity/base/schema-type' 12 | // For Sanity v2: 13 | import { lang, noFakeLists } from '../../dist/porta11y' 14 | // For Sanity v3: 15 | // import { lang, noFakeLists } from '../../dist/porta11y.esm' 16 | 17 | export default createSchema({ 18 | name: 'default', 19 | types: schemaTypes.concat([ 20 | { 21 | title: 'Test', 22 | name: 'test', 23 | type: 'document', 24 | fields: [ 25 | { 26 | name: 'content', 27 | type: 'array', 28 | of: [{ type: 'block', marks: { annotations: [lang()] } }], 29 | validation: Rule => Rule.custom(noFakeLists()), 30 | }, 31 | ], 32 | }, 33 | ]), 34 | }) 35 | ``` 36 | 37 | Finally, start the project as you would with `sanity start` in the Sanity directory. 38 | 39 | ## Ignoring local project 40 | 41 | You can make sure your local project doesn’t get committed by adding your Sanity directory to your [local exclude file](https://www.codejam.info/2022/01/a-second-gitignore-that-ignores-itself.html), like so: 42 | 43 | ``` 44 | echo your-sanity-dir-name >> .git/info/exclude 45 | ``` 46 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Hidde de Vries 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Porta11y 2 | 3 | Porta11y is a collection of accessibility-focused blocks, annotations, decorators and validators for Sanity’s Portable Text editor. 4 | 5 | [Portable Text](https://www.sanity.io/guides/introduction-to-portable-text) is a JSON based rich text specification for modern content editing platforms. It is designed to be a format for text editing interfaces and for serializing into any human-readable format. 6 | 7 | It provides an incredible opportunity to create editing experiences with accessibility in mind. This repository is a collection of Portable Text utilities to enrich the base editor with additional accessibility-related tools. Namely: 8 | 9 | - [Lang annotation](#language-switcher): an annotation to demark text snippets as being expressed in another language than the main content. 10 | - [Abbr annotation](#abbreviation): an annotation to provide a definition to an abbreviation or an acronym. 11 | - [Del](#deletion) and [ins](#insertion) decorators: a pair of decorators to demark text snippets as being inserted or deleted. 12 | - [Sub](#sub) and [sup](#sup) decorators: a pair of decorators to demark text snippets as being subscript or superscript. 13 | - [Horizontal rule](#horizontal-rule): a block to author a horizontal rule which can then be mapped to a `
` element. 14 | - [Fake lists validator](#no-fake-lists): a custom validation function to make sure lists are done via the appropriate list feature and not with text markers, resulting in more semantic HTML. 15 | 16 | ## Installation 17 | 18 | ```sh 19 | npm install porta11y 20 | ``` 21 | 22 | ## Annotations 23 | 24 | ### Language switcher 25 | 26 | The `lang` utility provides an annotation to demark an inline text snippet as being expressed in another language than the main content. This is important for screen-readers (WCAG 2.1 SC 3.1.2 and ATAG B.2.1.1). Refer to [this article](https://kittygiraudel.com/2022/07/25/international-content-with-sanity-portable-text/) for more information. 27 | 28 | #### Options 29 | 30 | | Option name | Default value | Required | 31 | | :---------- | :------------------------------- | :------- | 32 | | title | Language switcher | No | 33 | | name | lang | No | 34 | | fieldTitle | Language tag | No | 35 | | fieldName | tag | No | 36 | | regex | `/^[a-z]+(-[a-z]+)?$/i` | No | 37 | | regexName | language tag | No | 38 | | icon | Material Design “Translate” icon | No | 39 | | Component | Custom Portable Text renderer | No | 40 | 41 | #### Example 42 | 43 | ```js 44 | import { lang } from 'porta11y' 45 | 46 | export default { 47 | title: 'Content', 48 | name: 'content', 49 | type: 'array', 50 | of: [ 51 | { 52 | type: 'block', 53 | marks: { 54 | annotations: [ 55 | lang({ 56 | title: 'Autre langue', 57 | fieldTitle: 'Code de langue', 58 | /* Other options … */ 59 | }), 60 | ], 61 | }, 62 | }, 63 | ], 64 | } 65 | ``` 66 | 67 | ### Abbreviation 68 | 69 | The `abbr` annotation can be used to give a definition to an abbreviation or an acronym. 70 | 71 | #### Options 72 | 73 | | Option name | Default value | Required | 74 | | :---------- | :---------------------------------- | :------- | 75 | | title | Abbreviation | No | 76 | | name | abbr | No | 77 | | fieldTitle | Definition | No | 78 | | fieldName | definition | No | 79 | | icon | Material Design “Help Outline” icon | No | 80 | | Component | Custom Portable Text renderer | No | 81 | 82 | #### Example 83 | 84 | ```js 85 | import { abbr } from 'porta11y' 86 | 87 | export default { 88 | title: 'Content', 89 | name: 'content', 90 | type: 'array', 91 | of: [ 92 | { 93 | type: 'block', 94 | marks: { 95 | annotations: [abbr()], 96 | }, 97 | }, 98 | ], 99 | } 100 | ``` 101 | 102 | ## Decorators 103 | 104 | ### Sub 105 | 106 | The `sub` utility is a decorator to mark a text snippet as being subscript. 107 | 108 | #### Options 109 | 110 | | Option name | Default value | Required | 111 | | :---------- | :------------------------------- | :------- | 112 | | title | Sub | No | 113 | | value | sub | No | 114 | | icon | Material Design “Subscript” icon | No | 115 | | Component | sub | No | 116 | 117 | #### Example 118 | 119 | ```js 120 | import { sub } from 'porta11y' 121 | 122 | export default { 123 | title: 'Content', 124 | name: 'content', 125 | type: 'array', 126 | of: [ 127 | { 128 | type: 'block', 129 | marks: { 130 | decorators: [{ title: 'Strong', value: 'strong' }, sub()], 131 | }, 132 | }, 133 | ], 134 | } 135 | ``` 136 | 137 | ### Sup 138 | 139 | The `sup` utility is a decorator to mark a text snippet as being superscript. 140 | 141 | #### Options 142 | 143 | | Option name | Default value | Required | 144 | | :---------- | :--------------------------------- | :------- | 145 | | title | Sup | No | 146 | | value | sup | No | 147 | | icon | Material Design “Superscript” icon | No | 148 | | Component | sup | No | 149 | 150 | #### Example 151 | 152 | ```js 153 | import { sup } from 'porta11y' 154 | 155 | export default { 156 | title: 'Content', 157 | name: 'content', 158 | type: 'array', 159 | of: [ 160 | { 161 | type: 'block', 162 | marks: { 163 | decorators: [{ title: 'Strong', value: 'strong' }, sup()], 164 | }, 165 | }, 166 | ], 167 | } 168 | ``` 169 | 170 | ### Deletion 171 | 172 | The `del` utility is a decorator to mark a text snippet as being a text deletion. 173 | 174 | #### Options 175 | 176 | | Option name | Default value | Required | 177 | | :---------- | :------------------------ | :------- | 178 | | title | Deletion | No | 179 | | value | del | No | 180 | | icon | VSC “DiffRemoved” icon | No | 181 | | Component | del (+ additional styles) | No | 182 | 183 | #### Example 184 | 185 | ```js 186 | import { del } from 'porta11y' 187 | 188 | export default { 189 | title: 'Content', 190 | name: 'content', 191 | type: 'array', 192 | of: [ 193 | { 194 | type: 'block', 195 | marks: { 196 | decorators: [{ title: 'Strong', value: 'strong' }, del()], 197 | }, 198 | }, 199 | ], 200 | } 201 | ``` 202 | 203 | ### Insertion 204 | 205 | The `ins` utility is a decorator to mark a text snippet as being a text insertion. 206 | 207 | #### Options 208 | 209 | | Option name | Default value | Required | 210 | | :---------- | :------------------------ | :------- | 211 | | title | Insertion | No | 212 | | value | ins | No | 213 | | icon | VSC “DiffAdded” icon | No | 214 | | Component | ins (+ additional styles) | No | 215 | 216 | #### Example 217 | 218 | ```js 219 | import { ins } from 'porta11y' 220 | 221 | export default { 222 | title: 'Content', 223 | name: 'content', 224 | type: 'array', 225 | of: [ 226 | { 227 | type: 'block', 228 | marks: { 229 | decorators: [{ title: 'Strong', value: 'strong' }, ins()], 230 | }, 231 | }, 232 | ], 233 | } 234 | ``` 235 | 236 | ## Blocks 237 | 238 | ### Horizontal rule 239 | 240 | #### Options 241 | 242 | | Option name | Default value | Required | 243 | | :---------- | :------------------------------------ | :------- | 244 | | title | Horizontal rule | No | 245 | | name | hr | No | 246 | | icon | Material Design “HorizontalRule” icon | No | 247 | 248 | #### Example 249 | 250 | ```js 251 | import { hr } from 'porta11y' 252 | 253 | export default { 254 | title: 'Content', 255 | name: 'content', 256 | type: 'array', 257 | of: [{ type: 'block' }, hr()], 258 | } 259 | ``` 260 | 261 | ## Validations 262 | 263 | ### No fake lists 264 | 265 | Sometimes lists on web pages are not marked up as lists, with `ul`, `ol` or `dl` elements, but separate list items with merely returns instead. This validation rule finds those cases. 266 | 267 | #### Options 268 | 269 | | Option name | Default value | Required | 270 | | :-- | :-- | :-- | 271 | | message | This looks like a list, but it is plain text. Use the bulleted list option. | No | 272 | | regex | `/^\s*[-*+–—]/` | No | 273 | 274 | #### Example 275 | 276 | ```js 277 | import { noFakeLists } from 'porta11y' 278 | 279 | export default { 280 | title: 'Content', 281 | name: 'content', 282 | type: 'array', 283 | of: [ 284 | { 285 | type: 'block', 286 | }, 287 | ], 288 | validation: Rule => Rule.custom(noFakeLists()), 289 | } 290 | ``` 291 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "porta11y", 3 | "version": "0.3.0", 4 | "lockfileVersion": 2, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "porta11y", 9 | "version": "0.3.0", 10 | "license": "MIT", 11 | "dependencies": { 12 | "react-icons": "^4.4.0" 13 | }, 14 | "devDependencies": { 15 | "@babel/preset-react": "^7.18.6", 16 | "@rollup/plugin-babel": "^5.3.1", 17 | "@rollup/plugin-node-resolve": "^13.3.0", 18 | "rollup": "^2.77.2" 19 | } 20 | }, 21 | "node_modules/@ampproject/remapping": { 22 | "version": "2.2.0", 23 | "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.0.tgz", 24 | "integrity": "sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w==", 25 | "dev": true, 26 | "peer": true, 27 | "dependencies": { 28 | "@jridgewell/gen-mapping": "^0.1.0", 29 | "@jridgewell/trace-mapping": "^0.3.9" 30 | }, 31 | "engines": { 32 | "node": ">=6.0.0" 33 | } 34 | }, 35 | "node_modules/@babel/code-frame": { 36 | "version": "7.18.6", 37 | "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz", 38 | "integrity": "sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==", 39 | "dev": true, 40 | "peer": true, 41 | "dependencies": { 42 | "@babel/highlight": "^7.18.6" 43 | }, 44 | "engines": { 45 | "node": ">=6.9.0" 46 | } 47 | }, 48 | "node_modules/@babel/compat-data": { 49 | "version": "7.18.8", 50 | "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.18.8.tgz", 51 | "integrity": "sha512-HSmX4WZPPK3FUxYp7g2T6EyO8j96HlZJlxmKPSh6KAcqwyDrfx7hKjXpAW/0FhFfTJsR0Yt4lAjLI2coMptIHQ==", 52 | "dev": true, 53 | "peer": true, 54 | "engines": { 55 | "node": ">=6.9.0" 56 | } 57 | }, 58 | "node_modules/@babel/core": { 59 | "version": "7.18.10", 60 | "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.18.10.tgz", 61 | "integrity": "sha512-JQM6k6ENcBFKVtWvLavlvi/mPcpYZ3+R+2EySDEMSMbp7Mn4FexlbbJVrx2R7Ijhr01T8gyqrOaABWIOgxeUyw==", 62 | "dev": true, 63 | "peer": true, 64 | "dependencies": { 65 | "@ampproject/remapping": "^2.1.0", 66 | "@babel/code-frame": "^7.18.6", 67 | "@babel/generator": "^7.18.10", 68 | "@babel/helper-compilation-targets": "^7.18.9", 69 | "@babel/helper-module-transforms": "^7.18.9", 70 | "@babel/helpers": "^7.18.9", 71 | "@babel/parser": "^7.18.10", 72 | "@babel/template": "^7.18.10", 73 | "@babel/traverse": "^7.18.10", 74 | "@babel/types": "^7.18.10", 75 | "convert-source-map": "^1.7.0", 76 | "debug": "^4.1.0", 77 | "gensync": "^1.0.0-beta.2", 78 | "json5": "^2.2.1", 79 | "semver": "^6.3.0" 80 | }, 81 | "engines": { 82 | "node": ">=6.9.0" 83 | }, 84 | "funding": { 85 | "type": "opencollective", 86 | "url": "https://opencollective.com/babel" 87 | } 88 | }, 89 | "node_modules/@babel/generator": { 90 | "version": "7.18.10", 91 | "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.18.10.tgz", 92 | "integrity": "sha512-0+sW7e3HjQbiHbj1NeU/vN8ornohYlacAfZIaXhdoGweQqgcNy69COVciYYqEXJ/v+9OBA7Frxm4CVAuNqKeNA==", 93 | "dev": true, 94 | "peer": true, 95 | "dependencies": { 96 | "@babel/types": "^7.18.10", 97 | "@jridgewell/gen-mapping": "^0.3.2", 98 | "jsesc": "^2.5.1" 99 | }, 100 | "engines": { 101 | "node": ">=6.9.0" 102 | } 103 | }, 104 | "node_modules/@babel/generator/node_modules/@jridgewell/gen-mapping": { 105 | "version": "0.3.2", 106 | "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", 107 | "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", 108 | "dev": true, 109 | "peer": true, 110 | "dependencies": { 111 | "@jridgewell/set-array": "^1.0.1", 112 | "@jridgewell/sourcemap-codec": "^1.4.10", 113 | "@jridgewell/trace-mapping": "^0.3.9" 114 | }, 115 | "engines": { 116 | "node": ">=6.0.0" 117 | } 118 | }, 119 | "node_modules/@babel/helper-annotate-as-pure": { 120 | "version": "7.18.6", 121 | "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz", 122 | "integrity": "sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA==", 123 | "dev": true, 124 | "dependencies": { 125 | "@babel/types": "^7.18.6" 126 | }, 127 | "engines": { 128 | "node": ">=6.9.0" 129 | } 130 | }, 131 | "node_modules/@babel/helper-compilation-targets": { 132 | "version": "7.18.9", 133 | "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.18.9.tgz", 134 | "integrity": "sha512-tzLCyVmqUiFlcFoAPLA/gL9TeYrF61VLNtb+hvkuVaB5SUjW7jcfrglBIX1vUIoT7CLP3bBlIMeyEsIl2eFQNg==", 135 | "dev": true, 136 | "peer": true, 137 | "dependencies": { 138 | "@babel/compat-data": "^7.18.8", 139 | "@babel/helper-validator-option": "^7.18.6", 140 | "browserslist": "^4.20.2", 141 | "semver": "^6.3.0" 142 | }, 143 | "engines": { 144 | "node": ">=6.9.0" 145 | }, 146 | "peerDependencies": { 147 | "@babel/core": "^7.0.0" 148 | } 149 | }, 150 | "node_modules/@babel/helper-environment-visitor": { 151 | "version": "7.18.9", 152 | "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz", 153 | "integrity": "sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg==", 154 | "dev": true, 155 | "peer": true, 156 | "engines": { 157 | "node": ">=6.9.0" 158 | } 159 | }, 160 | "node_modules/@babel/helper-function-name": { 161 | "version": "7.18.9", 162 | "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.18.9.tgz", 163 | "integrity": "sha512-fJgWlZt7nxGksJS9a0XdSaI4XvpExnNIgRP+rVefWh5U7BL8pPuir6SJUmFKRfjWQ51OtWSzwOxhaH/EBWWc0A==", 164 | "dev": true, 165 | "peer": true, 166 | "dependencies": { 167 | "@babel/template": "^7.18.6", 168 | "@babel/types": "^7.18.9" 169 | }, 170 | "engines": { 171 | "node": ">=6.9.0" 172 | } 173 | }, 174 | "node_modules/@babel/helper-hoist-variables": { 175 | "version": "7.18.6", 176 | "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz", 177 | "integrity": "sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==", 178 | "dev": true, 179 | "peer": true, 180 | "dependencies": { 181 | "@babel/types": "^7.18.6" 182 | }, 183 | "engines": { 184 | "node": ">=6.9.0" 185 | } 186 | }, 187 | "node_modules/@babel/helper-module-imports": { 188 | "version": "7.18.6", 189 | "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz", 190 | "integrity": "sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==", 191 | "dev": true, 192 | "dependencies": { 193 | "@babel/types": "^7.18.6" 194 | }, 195 | "engines": { 196 | "node": ">=6.9.0" 197 | } 198 | }, 199 | "node_modules/@babel/helper-module-transforms": { 200 | "version": "7.18.9", 201 | "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.18.9.tgz", 202 | "integrity": "sha512-KYNqY0ICwfv19b31XzvmI/mfcylOzbLtowkw+mfvGPAQ3kfCnMLYbED3YecL5tPd8nAYFQFAd6JHp2LxZk/J1g==", 203 | "dev": true, 204 | "peer": true, 205 | "dependencies": { 206 | "@babel/helper-environment-visitor": "^7.18.9", 207 | "@babel/helper-module-imports": "^7.18.6", 208 | "@babel/helper-simple-access": "^7.18.6", 209 | "@babel/helper-split-export-declaration": "^7.18.6", 210 | "@babel/helper-validator-identifier": "^7.18.6", 211 | "@babel/template": "^7.18.6", 212 | "@babel/traverse": "^7.18.9", 213 | "@babel/types": "^7.18.9" 214 | }, 215 | "engines": { 216 | "node": ">=6.9.0" 217 | } 218 | }, 219 | "node_modules/@babel/helper-plugin-utils": { 220 | "version": "7.18.9", 221 | "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.18.9.tgz", 222 | "integrity": "sha512-aBXPT3bmtLryXaoJLyYPXPlSD4p1ld9aYeR+sJNOZjJJGiOpb+fKfh3NkcCu7J54nUJwCERPBExCCpyCOHnu/w==", 223 | "dev": true, 224 | "engines": { 225 | "node": ">=6.9.0" 226 | } 227 | }, 228 | "node_modules/@babel/helper-simple-access": { 229 | "version": "7.18.6", 230 | "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.18.6.tgz", 231 | "integrity": "sha512-iNpIgTgyAvDQpDj76POqg+YEt8fPxx3yaNBg3S30dxNKm2SWfYhD0TGrK/Eu9wHpUW63VQU894TsTg+GLbUa1g==", 232 | "dev": true, 233 | "peer": true, 234 | "dependencies": { 235 | "@babel/types": "^7.18.6" 236 | }, 237 | "engines": { 238 | "node": ">=6.9.0" 239 | } 240 | }, 241 | "node_modules/@babel/helper-split-export-declaration": { 242 | "version": "7.18.6", 243 | "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz", 244 | "integrity": "sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==", 245 | "dev": true, 246 | "peer": true, 247 | "dependencies": { 248 | "@babel/types": "^7.18.6" 249 | }, 250 | "engines": { 251 | "node": ">=6.9.0" 252 | } 253 | }, 254 | "node_modules/@babel/helper-string-parser": { 255 | "version": "7.18.10", 256 | "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.18.10.tgz", 257 | "integrity": "sha512-XtIfWmeNY3i4t7t4D2t02q50HvqHybPqW2ki1kosnvWCwuCMeo81Jf0gwr85jy/neUdg5XDdeFE/80DXiO+njw==", 258 | "dev": true, 259 | "engines": { 260 | "node": ">=6.9.0" 261 | } 262 | }, 263 | "node_modules/@babel/helper-validator-identifier": { 264 | "version": "7.18.6", 265 | "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.18.6.tgz", 266 | "integrity": "sha512-MmetCkz9ej86nJQV+sFCxoGGrUbU3q02kgLciwkrt9QqEB7cP39oKEY0PakknEO0Gu20SskMRi+AYZ3b1TpN9g==", 267 | "dev": true, 268 | "engines": { 269 | "node": ">=6.9.0" 270 | } 271 | }, 272 | "node_modules/@babel/helper-validator-option": { 273 | "version": "7.18.6", 274 | "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz", 275 | "integrity": "sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw==", 276 | "dev": true, 277 | "engines": { 278 | "node": ">=6.9.0" 279 | } 280 | }, 281 | "node_modules/@babel/helpers": { 282 | "version": "7.18.9", 283 | "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.18.9.tgz", 284 | "integrity": "sha512-Jf5a+rbrLoR4eNdUmnFu8cN5eNJT6qdTdOg5IHIzq87WwyRw9PwguLFOWYgktN/60IP4fgDUawJvs7PjQIzELQ==", 285 | "dev": true, 286 | "peer": true, 287 | "dependencies": { 288 | "@babel/template": "^7.18.6", 289 | "@babel/traverse": "^7.18.9", 290 | "@babel/types": "^7.18.9" 291 | }, 292 | "engines": { 293 | "node": ">=6.9.0" 294 | } 295 | }, 296 | "node_modules/@babel/highlight": { 297 | "version": "7.18.6", 298 | "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", 299 | "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", 300 | "dev": true, 301 | "peer": true, 302 | "dependencies": { 303 | "@babel/helper-validator-identifier": "^7.18.6", 304 | "chalk": "^2.0.0", 305 | "js-tokens": "^4.0.0" 306 | }, 307 | "engines": { 308 | "node": ">=6.9.0" 309 | } 310 | }, 311 | "node_modules/@babel/parser": { 312 | "version": "7.18.10", 313 | "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.18.10.tgz", 314 | "integrity": "sha512-TYk3OA0HKL6qNryUayb5UUEhM/rkOQozIBEA5ITXh5DWrSp0TlUQXMyZmnWxG/DizSWBeeQ0Zbc5z8UGaaqoeg==", 315 | "dev": true, 316 | "peer": true, 317 | "bin": { 318 | "parser": "bin/babel-parser.js" 319 | }, 320 | "engines": { 321 | "node": ">=6.0.0" 322 | } 323 | }, 324 | "node_modules/@babel/plugin-syntax-jsx": { 325 | "version": "7.18.6", 326 | "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.18.6.tgz", 327 | "integrity": "sha512-6mmljtAedFGTWu2p/8WIORGwy+61PLgOMPOdazc7YoJ9ZCWUyFy3A6CpPkRKLKD1ToAesxX8KGEViAiLo9N+7Q==", 328 | "dev": true, 329 | "dependencies": { 330 | "@babel/helper-plugin-utils": "^7.18.6" 331 | }, 332 | "engines": { 333 | "node": ">=6.9.0" 334 | }, 335 | "peerDependencies": { 336 | "@babel/core": "^7.0.0-0" 337 | } 338 | }, 339 | "node_modules/@babel/plugin-transform-react-display-name": { 340 | "version": "7.18.6", 341 | "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.18.6.tgz", 342 | "integrity": "sha512-TV4sQ+T013n61uMoygyMRm+xf04Bd5oqFpv2jAEQwSZ8NwQA7zeRPg1LMVg2PWi3zWBz+CLKD+v5bcpZ/BS0aA==", 343 | "dev": true, 344 | "dependencies": { 345 | "@babel/helper-plugin-utils": "^7.18.6" 346 | }, 347 | "engines": { 348 | "node": ">=6.9.0" 349 | }, 350 | "peerDependencies": { 351 | "@babel/core": "^7.0.0-0" 352 | } 353 | }, 354 | "node_modules/@babel/plugin-transform-react-jsx": { 355 | "version": "7.18.10", 356 | "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.18.10.tgz", 357 | "integrity": "sha512-gCy7Iikrpu3IZjYZolFE4M1Sm+nrh1/6za2Ewj77Z+XirT4TsbJcvOFOyF+fRPwU6AKKK136CZxx6L8AbSFG6A==", 358 | "dev": true, 359 | "dependencies": { 360 | "@babel/helper-annotate-as-pure": "^7.18.6", 361 | "@babel/helper-module-imports": "^7.18.6", 362 | "@babel/helper-plugin-utils": "^7.18.9", 363 | "@babel/plugin-syntax-jsx": "^7.18.6", 364 | "@babel/types": "^7.18.10" 365 | }, 366 | "engines": { 367 | "node": ">=6.9.0" 368 | }, 369 | "peerDependencies": { 370 | "@babel/core": "^7.0.0-0" 371 | } 372 | }, 373 | "node_modules/@babel/plugin-transform-react-jsx-development": { 374 | "version": "7.18.6", 375 | "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.18.6.tgz", 376 | "integrity": "sha512-SA6HEjwYFKF7WDjWcMcMGUimmw/nhNRDWxr+KaLSCrkD/LMDBvWRmHAYgE1HDeF8KUuI8OAu+RT6EOtKxSW2qA==", 377 | "dev": true, 378 | "dependencies": { 379 | "@babel/plugin-transform-react-jsx": "^7.18.6" 380 | }, 381 | "engines": { 382 | "node": ">=6.9.0" 383 | }, 384 | "peerDependencies": { 385 | "@babel/core": "^7.0.0-0" 386 | } 387 | }, 388 | "node_modules/@babel/plugin-transform-react-pure-annotations": { 389 | "version": "7.18.6", 390 | "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-pure-annotations/-/plugin-transform-react-pure-annotations-7.18.6.tgz", 391 | "integrity": "sha512-I8VfEPg9r2TRDdvnHgPepTKvuRomzA8+u+nhY7qSI1fR2hRNebasZEETLyM5mAUr0Ku56OkXJ0I7NHJnO6cJiQ==", 392 | "dev": true, 393 | "dependencies": { 394 | "@babel/helper-annotate-as-pure": "^7.18.6", 395 | "@babel/helper-plugin-utils": "^7.18.6" 396 | }, 397 | "engines": { 398 | "node": ">=6.9.0" 399 | }, 400 | "peerDependencies": { 401 | "@babel/core": "^7.0.0-0" 402 | } 403 | }, 404 | "node_modules/@babel/preset-react": { 405 | "version": "7.18.6", 406 | "resolved": "https://registry.npmjs.org/@babel/preset-react/-/preset-react-7.18.6.tgz", 407 | "integrity": "sha512-zXr6atUmyYdiWRVLOZahakYmOBHtWc2WGCkP8PYTgZi0iJXDY2CN180TdrIW4OGOAdLc7TifzDIvtx6izaRIzg==", 408 | "dev": true, 409 | "dependencies": { 410 | "@babel/helper-plugin-utils": "^7.18.6", 411 | "@babel/helper-validator-option": "^7.18.6", 412 | "@babel/plugin-transform-react-display-name": "^7.18.6", 413 | "@babel/plugin-transform-react-jsx": "^7.18.6", 414 | "@babel/plugin-transform-react-jsx-development": "^7.18.6", 415 | "@babel/plugin-transform-react-pure-annotations": "^7.18.6" 416 | }, 417 | "engines": { 418 | "node": ">=6.9.0" 419 | }, 420 | "peerDependencies": { 421 | "@babel/core": "^7.0.0-0" 422 | } 423 | }, 424 | "node_modules/@babel/template": { 425 | "version": "7.18.10", 426 | "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.18.10.tgz", 427 | "integrity": "sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA==", 428 | "dev": true, 429 | "peer": true, 430 | "dependencies": { 431 | "@babel/code-frame": "^7.18.6", 432 | "@babel/parser": "^7.18.10", 433 | "@babel/types": "^7.18.10" 434 | }, 435 | "engines": { 436 | "node": ">=6.9.0" 437 | } 438 | }, 439 | "node_modules/@babel/traverse": { 440 | "version": "7.18.10", 441 | "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.18.10.tgz", 442 | "integrity": "sha512-J7ycxg0/K9XCtLyHf0cz2DqDihonJeIo+z+HEdRe9YuT8TY4A66i+Ab2/xZCEW7Ro60bPCBBfqqboHSamoV3+g==", 443 | "dev": true, 444 | "peer": true, 445 | "dependencies": { 446 | "@babel/code-frame": "^7.18.6", 447 | "@babel/generator": "^7.18.10", 448 | "@babel/helper-environment-visitor": "^7.18.9", 449 | "@babel/helper-function-name": "^7.18.9", 450 | "@babel/helper-hoist-variables": "^7.18.6", 451 | "@babel/helper-split-export-declaration": "^7.18.6", 452 | "@babel/parser": "^7.18.10", 453 | "@babel/types": "^7.18.10", 454 | "debug": "^4.1.0", 455 | "globals": "^11.1.0" 456 | }, 457 | "engines": { 458 | "node": ">=6.9.0" 459 | } 460 | }, 461 | "node_modules/@babel/types": { 462 | "version": "7.18.10", 463 | "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.18.10.tgz", 464 | "integrity": "sha512-MJvnbEiiNkpjo+LknnmRrqbY1GPUUggjv+wQVjetM/AONoupqRALB7I6jGqNUAZsKcRIEu2J6FRFvsczljjsaQ==", 465 | "dev": true, 466 | "dependencies": { 467 | "@babel/helper-string-parser": "^7.18.10", 468 | "@babel/helper-validator-identifier": "^7.18.6", 469 | "to-fast-properties": "^2.0.0" 470 | }, 471 | "engines": { 472 | "node": ">=6.9.0" 473 | } 474 | }, 475 | "node_modules/@jridgewell/gen-mapping": { 476 | "version": "0.1.1", 477 | "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz", 478 | "integrity": "sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w==", 479 | "dev": true, 480 | "peer": true, 481 | "dependencies": { 482 | "@jridgewell/set-array": "^1.0.0", 483 | "@jridgewell/sourcemap-codec": "^1.4.10" 484 | }, 485 | "engines": { 486 | "node": ">=6.0.0" 487 | } 488 | }, 489 | "node_modules/@jridgewell/resolve-uri": { 490 | "version": "3.1.0", 491 | "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", 492 | "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", 493 | "dev": true, 494 | "peer": true, 495 | "engines": { 496 | "node": ">=6.0.0" 497 | } 498 | }, 499 | "node_modules/@jridgewell/set-array": { 500 | "version": "1.1.2", 501 | "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", 502 | "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", 503 | "dev": true, 504 | "peer": true, 505 | "engines": { 506 | "node": ">=6.0.0" 507 | } 508 | }, 509 | "node_modules/@jridgewell/sourcemap-codec": { 510 | "version": "1.4.14", 511 | "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", 512 | "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", 513 | "dev": true, 514 | "peer": true 515 | }, 516 | "node_modules/@jridgewell/trace-mapping": { 517 | "version": "0.3.14", 518 | "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.14.tgz", 519 | "integrity": "sha512-bJWEfQ9lPTvm3SneWwRFVLzrh6nhjwqw7TUFFBEMzwvg7t7PCDenf2lDwqo4NQXzdpgBXyFgDWnQA+2vkruksQ==", 520 | "dev": true, 521 | "peer": true, 522 | "dependencies": { 523 | "@jridgewell/resolve-uri": "^3.0.3", 524 | "@jridgewell/sourcemap-codec": "^1.4.10" 525 | } 526 | }, 527 | "node_modules/@rollup/plugin-babel": { 528 | "version": "5.3.1", 529 | "resolved": "https://registry.npmjs.org/@rollup/plugin-babel/-/plugin-babel-5.3.1.tgz", 530 | "integrity": "sha512-WFfdLWU/xVWKeRQnKmIAQULUI7Il0gZnBIH/ZFO069wYIfPu+8zrfp/KMW0atmELoRDq8FbiP3VCss9MhCut7Q==", 531 | "dev": true, 532 | "dependencies": { 533 | "@babel/helper-module-imports": "^7.10.4", 534 | "@rollup/pluginutils": "^3.1.0" 535 | }, 536 | "engines": { 537 | "node": ">= 10.0.0" 538 | }, 539 | "peerDependencies": { 540 | "@babel/core": "^7.0.0", 541 | "@types/babel__core": "^7.1.9", 542 | "rollup": "^1.20.0||^2.0.0" 543 | }, 544 | "peerDependenciesMeta": { 545 | "@types/babel__core": { 546 | "optional": true 547 | } 548 | } 549 | }, 550 | "node_modules/@rollup/plugin-node-resolve": { 551 | "version": "13.3.0", 552 | "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-13.3.0.tgz", 553 | "integrity": "sha512-Lus8rbUo1eEcnS4yTFKLZrVumLPY+YayBdWXgFSHYhTT2iJbMhoaaBL3xl5NCdeRytErGr8tZ0L71BMRmnlwSw==", 554 | "dev": true, 555 | "dependencies": { 556 | "@rollup/pluginutils": "^3.1.0", 557 | "@types/resolve": "1.17.1", 558 | "deepmerge": "^4.2.2", 559 | "is-builtin-module": "^3.1.0", 560 | "is-module": "^1.0.0", 561 | "resolve": "^1.19.0" 562 | }, 563 | "engines": { 564 | "node": ">= 10.0.0" 565 | }, 566 | "peerDependencies": { 567 | "rollup": "^2.42.0" 568 | } 569 | }, 570 | "node_modules/@rollup/pluginutils": { 571 | "version": "3.1.0", 572 | "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-3.1.0.tgz", 573 | "integrity": "sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==", 574 | "dev": true, 575 | "dependencies": { 576 | "@types/estree": "0.0.39", 577 | "estree-walker": "^1.0.1", 578 | "picomatch": "^2.2.2" 579 | }, 580 | "engines": { 581 | "node": ">= 8.0.0" 582 | }, 583 | "peerDependencies": { 584 | "rollup": "^1.20.0||^2.0.0" 585 | } 586 | }, 587 | "node_modules/@types/estree": { 588 | "version": "0.0.39", 589 | "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.39.tgz", 590 | "integrity": "sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==", 591 | "dev": true 592 | }, 593 | "node_modules/@types/node": { 594 | "version": "18.6.3", 595 | "resolved": "https://registry.npmjs.org/@types/node/-/node-18.6.3.tgz", 596 | "integrity": "sha512-6qKpDtoaYLM+5+AFChLhHermMQxc3TOEFIDzrZLPRGHPrLEwqFkkT5Kx3ju05g6X7uDPazz3jHbKPX0KzCjntg==", 597 | "dev": true 598 | }, 599 | "node_modules/@types/resolve": { 600 | "version": "1.17.1", 601 | "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-1.17.1.tgz", 602 | "integrity": "sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw==", 603 | "dev": true, 604 | "dependencies": { 605 | "@types/node": "*" 606 | } 607 | }, 608 | "node_modules/ansi-styles": { 609 | "version": "3.2.1", 610 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", 611 | "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", 612 | "dev": true, 613 | "peer": true, 614 | "dependencies": { 615 | "color-convert": "^1.9.0" 616 | }, 617 | "engines": { 618 | "node": ">=4" 619 | } 620 | }, 621 | "node_modules/browserslist": { 622 | "version": "4.21.3", 623 | "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.3.tgz", 624 | "integrity": "sha512-898rgRXLAyRkM1GryrrBHGkqA5hlpkV5MhtZwg9QXeiyLUYs2k00Un05aX5l2/yJIOObYKOpS2JNo8nJDE7fWQ==", 625 | "dev": true, 626 | "funding": [ 627 | { 628 | "type": "opencollective", 629 | "url": "https://opencollective.com/browserslist" 630 | }, 631 | { 632 | "type": "tidelift", 633 | "url": "https://tidelift.com/funding/github/npm/browserslist" 634 | } 635 | ], 636 | "peer": true, 637 | "dependencies": { 638 | "caniuse-lite": "^1.0.30001370", 639 | "electron-to-chromium": "^1.4.202", 640 | "node-releases": "^2.0.6", 641 | "update-browserslist-db": "^1.0.5" 642 | }, 643 | "bin": { 644 | "browserslist": "cli.js" 645 | }, 646 | "engines": { 647 | "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" 648 | } 649 | }, 650 | "node_modules/builtin-modules": { 651 | "version": "3.3.0", 652 | "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.3.0.tgz", 653 | "integrity": "sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==", 654 | "dev": true, 655 | "engines": { 656 | "node": ">=6" 657 | }, 658 | "funding": { 659 | "url": "https://github.com/sponsors/sindresorhus" 660 | } 661 | }, 662 | "node_modules/caniuse-lite": { 663 | "version": "1.0.30001373", 664 | "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001373.tgz", 665 | "integrity": "sha512-pJYArGHrPp3TUqQzFYRmP/lwJlj8RCbVe3Gd3eJQkAV8SAC6b19XS9BjMvRdvaS8RMkaTN8ZhoHP6S1y8zzwEQ==", 666 | "dev": true, 667 | "funding": [ 668 | { 669 | "type": "opencollective", 670 | "url": "https://opencollective.com/browserslist" 671 | }, 672 | { 673 | "type": "tidelift", 674 | "url": "https://tidelift.com/funding/github/npm/caniuse-lite" 675 | } 676 | ], 677 | "peer": true 678 | }, 679 | "node_modules/chalk": { 680 | "version": "2.4.2", 681 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", 682 | "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", 683 | "dev": true, 684 | "peer": true, 685 | "dependencies": { 686 | "ansi-styles": "^3.2.1", 687 | "escape-string-regexp": "^1.0.5", 688 | "supports-color": "^5.3.0" 689 | }, 690 | "engines": { 691 | "node": ">=4" 692 | } 693 | }, 694 | "node_modules/color-convert": { 695 | "version": "1.9.3", 696 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", 697 | "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", 698 | "dev": true, 699 | "peer": true, 700 | "dependencies": { 701 | "color-name": "1.1.3" 702 | } 703 | }, 704 | "node_modules/color-name": { 705 | "version": "1.1.3", 706 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", 707 | "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", 708 | "dev": true, 709 | "peer": true 710 | }, 711 | "node_modules/convert-source-map": { 712 | "version": "1.8.0", 713 | "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.8.0.tgz", 714 | "integrity": "sha512-+OQdjP49zViI/6i7nIJpA8rAl4sV/JdPfU9nZs3VqOwGIgizICvuN2ru6fMd+4llL0tar18UYJXfZ/TWtmhUjA==", 715 | "dev": true, 716 | "peer": true, 717 | "dependencies": { 718 | "safe-buffer": "~5.1.1" 719 | } 720 | }, 721 | "node_modules/debug": { 722 | "version": "4.3.4", 723 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", 724 | "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", 725 | "dev": true, 726 | "peer": true, 727 | "dependencies": { 728 | "ms": "2.1.2" 729 | }, 730 | "engines": { 731 | "node": ">=6.0" 732 | }, 733 | "peerDependenciesMeta": { 734 | "supports-color": { 735 | "optional": true 736 | } 737 | } 738 | }, 739 | "node_modules/deepmerge": { 740 | "version": "4.2.2", 741 | "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz", 742 | "integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==", 743 | "dev": true, 744 | "engines": { 745 | "node": ">=0.10.0" 746 | } 747 | }, 748 | "node_modules/electron-to-chromium": { 749 | "version": "1.4.208", 750 | "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.208.tgz", 751 | "integrity": "sha512-diMr4t69FigAGUk2KovP0bygEtN/9AkqEVkzjEp0cu+zFFbZMVvwACpTTfuj1mAmFR5kNoSW8wGKDFWIvmThiQ==", 752 | "dev": true, 753 | "peer": true 754 | }, 755 | "node_modules/escalade": { 756 | "version": "3.1.1", 757 | "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", 758 | "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", 759 | "dev": true, 760 | "peer": true, 761 | "engines": { 762 | "node": ">=6" 763 | } 764 | }, 765 | "node_modules/escape-string-regexp": { 766 | "version": "1.0.5", 767 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", 768 | "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", 769 | "dev": true, 770 | "peer": true, 771 | "engines": { 772 | "node": ">=0.8.0" 773 | } 774 | }, 775 | "node_modules/estree-walker": { 776 | "version": "1.0.1", 777 | "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-1.0.1.tgz", 778 | "integrity": "sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==", 779 | "dev": true 780 | }, 781 | "node_modules/fsevents": { 782 | "version": "2.3.2", 783 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", 784 | "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", 785 | "dev": true, 786 | "hasInstallScript": true, 787 | "optional": true, 788 | "os": [ 789 | "darwin" 790 | ], 791 | "engines": { 792 | "node": "^8.16.0 || ^10.6.0 || >=11.0.0" 793 | } 794 | }, 795 | "node_modules/function-bind": { 796 | "version": "1.1.1", 797 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", 798 | "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", 799 | "dev": true 800 | }, 801 | "node_modules/gensync": { 802 | "version": "1.0.0-beta.2", 803 | "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", 804 | "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", 805 | "dev": true, 806 | "peer": true, 807 | "engines": { 808 | "node": ">=6.9.0" 809 | } 810 | }, 811 | "node_modules/globals": { 812 | "version": "11.12.0", 813 | "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", 814 | "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", 815 | "dev": true, 816 | "peer": true, 817 | "engines": { 818 | "node": ">=4" 819 | } 820 | }, 821 | "node_modules/has": { 822 | "version": "1.0.3", 823 | "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", 824 | "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", 825 | "dev": true, 826 | "dependencies": { 827 | "function-bind": "^1.1.1" 828 | }, 829 | "engines": { 830 | "node": ">= 0.4.0" 831 | } 832 | }, 833 | "node_modules/has-flag": { 834 | "version": "3.0.0", 835 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", 836 | "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", 837 | "dev": true, 838 | "peer": true, 839 | "engines": { 840 | "node": ">=4" 841 | } 842 | }, 843 | "node_modules/is-builtin-module": { 844 | "version": "3.2.0", 845 | "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-3.2.0.tgz", 846 | "integrity": "sha512-phDA4oSGt7vl1n5tJvTWooWWAsXLY+2xCnxNqvKhGEzujg+A43wPlPOyDg3C8XQHN+6k/JTQWJ/j0dQh/qr+Hw==", 847 | "dev": true, 848 | "dependencies": { 849 | "builtin-modules": "^3.3.0" 850 | }, 851 | "engines": { 852 | "node": ">=6" 853 | }, 854 | "funding": { 855 | "url": "https://github.com/sponsors/sindresorhus" 856 | } 857 | }, 858 | "node_modules/is-core-module": { 859 | "version": "2.9.0", 860 | "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.9.0.tgz", 861 | "integrity": "sha512-+5FPy5PnwmO3lvfMb0AsoPaBG+5KHUI0wYFXOtYPnVVVspTFUuMZNfNaNVRt3FZadstu2c8x23vykRW/NBoU6A==", 862 | "dev": true, 863 | "dependencies": { 864 | "has": "^1.0.3" 865 | }, 866 | "funding": { 867 | "url": "https://github.com/sponsors/ljharb" 868 | } 869 | }, 870 | "node_modules/is-module": { 871 | "version": "1.0.0", 872 | "resolved": "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz", 873 | "integrity": "sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g==", 874 | "dev": true 875 | }, 876 | "node_modules/js-tokens": { 877 | "version": "4.0.0", 878 | "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", 879 | "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", 880 | "peer": true 881 | }, 882 | "node_modules/jsesc": { 883 | "version": "2.5.2", 884 | "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", 885 | "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", 886 | "dev": true, 887 | "peer": true, 888 | "bin": { 889 | "jsesc": "bin/jsesc" 890 | }, 891 | "engines": { 892 | "node": ">=4" 893 | } 894 | }, 895 | "node_modules/json5": { 896 | "version": "2.2.1", 897 | "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz", 898 | "integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==", 899 | "dev": true, 900 | "peer": true, 901 | "bin": { 902 | "json5": "lib/cli.js" 903 | }, 904 | "engines": { 905 | "node": ">=6" 906 | } 907 | }, 908 | "node_modules/loose-envify": { 909 | "version": "1.4.0", 910 | "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", 911 | "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", 912 | "peer": true, 913 | "dependencies": { 914 | "js-tokens": "^3.0.0 || ^4.0.0" 915 | }, 916 | "bin": { 917 | "loose-envify": "cli.js" 918 | } 919 | }, 920 | "node_modules/ms": { 921 | "version": "2.1.2", 922 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 923 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", 924 | "dev": true, 925 | "peer": true 926 | }, 927 | "node_modules/node-releases": { 928 | "version": "2.0.6", 929 | "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.6.tgz", 930 | "integrity": "sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg==", 931 | "dev": true, 932 | "peer": true 933 | }, 934 | "node_modules/path-parse": { 935 | "version": "1.0.7", 936 | "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", 937 | "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", 938 | "dev": true 939 | }, 940 | "node_modules/picocolors": { 941 | "version": "1.0.0", 942 | "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", 943 | "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", 944 | "dev": true, 945 | "peer": true 946 | }, 947 | "node_modules/picomatch": { 948 | "version": "2.3.1", 949 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", 950 | "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", 951 | "dev": true, 952 | "engines": { 953 | "node": ">=8.6" 954 | }, 955 | "funding": { 956 | "url": "https://github.com/sponsors/jonschlinkert" 957 | } 958 | }, 959 | "node_modules/react": { 960 | "version": "18.2.0", 961 | "resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz", 962 | "integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==", 963 | "peer": true, 964 | "dependencies": { 965 | "loose-envify": "^1.1.0" 966 | }, 967 | "engines": { 968 | "node": ">=0.10.0" 969 | } 970 | }, 971 | "node_modules/react-icons": { 972 | "version": "4.4.0", 973 | "resolved": "https://registry.npmjs.org/react-icons/-/react-icons-4.4.0.tgz", 974 | "integrity": "sha512-fSbvHeVYo/B5/L4VhB7sBA1i2tS8MkT0Hb9t2H1AVPkwGfVHLJCqyr2Py9dKMxsyM63Eng1GkdZfbWj+Fmv8Rg==", 975 | "peerDependencies": { 976 | "react": "*" 977 | } 978 | }, 979 | "node_modules/resolve": { 980 | "version": "1.22.1", 981 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", 982 | "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", 983 | "dev": true, 984 | "dependencies": { 985 | "is-core-module": "^2.9.0", 986 | "path-parse": "^1.0.7", 987 | "supports-preserve-symlinks-flag": "^1.0.0" 988 | }, 989 | "bin": { 990 | "resolve": "bin/resolve" 991 | }, 992 | "funding": { 993 | "url": "https://github.com/sponsors/ljharb" 994 | } 995 | }, 996 | "node_modules/rollup": { 997 | "version": "2.78.1", 998 | "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.78.1.tgz", 999 | "integrity": "sha512-VeeCgtGi4P+o9hIg+xz4qQpRl6R401LWEXBmxYKOV4zlF82lyhgh2hTZnheFUbANE8l2A41F458iwj2vEYaXJg==", 1000 | "dev": true, 1001 | "bin": { 1002 | "rollup": "dist/bin/rollup" 1003 | }, 1004 | "engines": { 1005 | "node": ">=10.0.0" 1006 | }, 1007 | "optionalDependencies": { 1008 | "fsevents": "~2.3.2" 1009 | } 1010 | }, 1011 | "node_modules/safe-buffer": { 1012 | "version": "5.1.2", 1013 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 1014 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", 1015 | "dev": true, 1016 | "peer": true 1017 | }, 1018 | "node_modules/semver": { 1019 | "version": "6.3.0", 1020 | "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", 1021 | "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", 1022 | "dev": true, 1023 | "peer": true, 1024 | "bin": { 1025 | "semver": "bin/semver.js" 1026 | } 1027 | }, 1028 | "node_modules/supports-color": { 1029 | "version": "5.5.0", 1030 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", 1031 | "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", 1032 | "dev": true, 1033 | "peer": true, 1034 | "dependencies": { 1035 | "has-flag": "^3.0.0" 1036 | }, 1037 | "engines": { 1038 | "node": ">=4" 1039 | } 1040 | }, 1041 | "node_modules/supports-preserve-symlinks-flag": { 1042 | "version": "1.0.0", 1043 | "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", 1044 | "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", 1045 | "dev": true, 1046 | "engines": { 1047 | "node": ">= 0.4" 1048 | }, 1049 | "funding": { 1050 | "url": "https://github.com/sponsors/ljharb" 1051 | } 1052 | }, 1053 | "node_modules/to-fast-properties": { 1054 | "version": "2.0.0", 1055 | "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", 1056 | "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", 1057 | "dev": true, 1058 | "engines": { 1059 | "node": ">=4" 1060 | } 1061 | }, 1062 | "node_modules/update-browserslist-db": { 1063 | "version": "1.0.5", 1064 | "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.5.tgz", 1065 | "integrity": "sha512-dteFFpCyvuDdr9S/ff1ISkKt/9YZxKjI9WlRR99c180GaztJtRa/fn18FdxGVKVsnPY7/a/FDN68mcvUmP4U7Q==", 1066 | "dev": true, 1067 | "funding": [ 1068 | { 1069 | "type": "opencollective", 1070 | "url": "https://opencollective.com/browserslist" 1071 | }, 1072 | { 1073 | "type": "tidelift", 1074 | "url": "https://tidelift.com/funding/github/npm/browserslist" 1075 | } 1076 | ], 1077 | "peer": true, 1078 | "dependencies": { 1079 | "escalade": "^3.1.1", 1080 | "picocolors": "^1.0.0" 1081 | }, 1082 | "bin": { 1083 | "browserslist-lint": "cli.js" 1084 | }, 1085 | "peerDependencies": { 1086 | "browserslist": ">= 4.21.0" 1087 | } 1088 | } 1089 | }, 1090 | "dependencies": { 1091 | "@ampproject/remapping": { 1092 | "version": "2.2.0", 1093 | "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.0.tgz", 1094 | "integrity": "sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w==", 1095 | "dev": true, 1096 | "peer": true, 1097 | "requires": { 1098 | "@jridgewell/gen-mapping": "^0.1.0", 1099 | "@jridgewell/trace-mapping": "^0.3.9" 1100 | } 1101 | }, 1102 | "@babel/code-frame": { 1103 | "version": "7.18.6", 1104 | "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz", 1105 | "integrity": "sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==", 1106 | "dev": true, 1107 | "peer": true, 1108 | "requires": { 1109 | "@babel/highlight": "^7.18.6" 1110 | } 1111 | }, 1112 | "@babel/compat-data": { 1113 | "version": "7.18.8", 1114 | "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.18.8.tgz", 1115 | "integrity": "sha512-HSmX4WZPPK3FUxYp7g2T6EyO8j96HlZJlxmKPSh6KAcqwyDrfx7hKjXpAW/0FhFfTJsR0Yt4lAjLI2coMptIHQ==", 1116 | "dev": true, 1117 | "peer": true 1118 | }, 1119 | "@babel/core": { 1120 | "version": "7.18.10", 1121 | "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.18.10.tgz", 1122 | "integrity": "sha512-JQM6k6ENcBFKVtWvLavlvi/mPcpYZ3+R+2EySDEMSMbp7Mn4FexlbbJVrx2R7Ijhr01T8gyqrOaABWIOgxeUyw==", 1123 | "dev": true, 1124 | "peer": true, 1125 | "requires": { 1126 | "@ampproject/remapping": "^2.1.0", 1127 | "@babel/code-frame": "^7.18.6", 1128 | "@babel/generator": "^7.18.10", 1129 | "@babel/helper-compilation-targets": "^7.18.9", 1130 | "@babel/helper-module-transforms": "^7.18.9", 1131 | "@babel/helpers": "^7.18.9", 1132 | "@babel/parser": "^7.18.10", 1133 | "@babel/template": "^7.18.10", 1134 | "@babel/traverse": "^7.18.10", 1135 | "@babel/types": "^7.18.10", 1136 | "convert-source-map": "^1.7.0", 1137 | "debug": "^4.1.0", 1138 | "gensync": "^1.0.0-beta.2", 1139 | "json5": "^2.2.1", 1140 | "semver": "^6.3.0" 1141 | } 1142 | }, 1143 | "@babel/generator": { 1144 | "version": "7.18.10", 1145 | "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.18.10.tgz", 1146 | "integrity": "sha512-0+sW7e3HjQbiHbj1NeU/vN8ornohYlacAfZIaXhdoGweQqgcNy69COVciYYqEXJ/v+9OBA7Frxm4CVAuNqKeNA==", 1147 | "dev": true, 1148 | "peer": true, 1149 | "requires": { 1150 | "@babel/types": "^7.18.10", 1151 | "@jridgewell/gen-mapping": "^0.3.2", 1152 | "jsesc": "^2.5.1" 1153 | }, 1154 | "dependencies": { 1155 | "@jridgewell/gen-mapping": { 1156 | "version": "0.3.2", 1157 | "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", 1158 | "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", 1159 | "dev": true, 1160 | "peer": true, 1161 | "requires": { 1162 | "@jridgewell/set-array": "^1.0.1", 1163 | "@jridgewell/sourcemap-codec": "^1.4.10", 1164 | "@jridgewell/trace-mapping": "^0.3.9" 1165 | } 1166 | } 1167 | } 1168 | }, 1169 | "@babel/helper-annotate-as-pure": { 1170 | "version": "7.18.6", 1171 | "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz", 1172 | "integrity": "sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA==", 1173 | "dev": true, 1174 | "requires": { 1175 | "@babel/types": "^7.18.6" 1176 | } 1177 | }, 1178 | "@babel/helper-compilation-targets": { 1179 | "version": "7.18.9", 1180 | "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.18.9.tgz", 1181 | "integrity": "sha512-tzLCyVmqUiFlcFoAPLA/gL9TeYrF61VLNtb+hvkuVaB5SUjW7jcfrglBIX1vUIoT7CLP3bBlIMeyEsIl2eFQNg==", 1182 | "dev": true, 1183 | "peer": true, 1184 | "requires": { 1185 | "@babel/compat-data": "^7.18.8", 1186 | "@babel/helper-validator-option": "^7.18.6", 1187 | "browserslist": "^4.20.2", 1188 | "semver": "^6.3.0" 1189 | } 1190 | }, 1191 | "@babel/helper-environment-visitor": { 1192 | "version": "7.18.9", 1193 | "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz", 1194 | "integrity": "sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg==", 1195 | "dev": true, 1196 | "peer": true 1197 | }, 1198 | "@babel/helper-function-name": { 1199 | "version": "7.18.9", 1200 | "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.18.9.tgz", 1201 | "integrity": "sha512-fJgWlZt7nxGksJS9a0XdSaI4XvpExnNIgRP+rVefWh5U7BL8pPuir6SJUmFKRfjWQ51OtWSzwOxhaH/EBWWc0A==", 1202 | "dev": true, 1203 | "peer": true, 1204 | "requires": { 1205 | "@babel/template": "^7.18.6", 1206 | "@babel/types": "^7.18.9" 1207 | } 1208 | }, 1209 | "@babel/helper-hoist-variables": { 1210 | "version": "7.18.6", 1211 | "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz", 1212 | "integrity": "sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==", 1213 | "dev": true, 1214 | "peer": true, 1215 | "requires": { 1216 | "@babel/types": "^7.18.6" 1217 | } 1218 | }, 1219 | "@babel/helper-module-imports": { 1220 | "version": "7.18.6", 1221 | "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz", 1222 | "integrity": "sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==", 1223 | "dev": true, 1224 | "requires": { 1225 | "@babel/types": "^7.18.6" 1226 | } 1227 | }, 1228 | "@babel/helper-module-transforms": { 1229 | "version": "7.18.9", 1230 | "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.18.9.tgz", 1231 | "integrity": "sha512-KYNqY0ICwfv19b31XzvmI/mfcylOzbLtowkw+mfvGPAQ3kfCnMLYbED3YecL5tPd8nAYFQFAd6JHp2LxZk/J1g==", 1232 | "dev": true, 1233 | "peer": true, 1234 | "requires": { 1235 | "@babel/helper-environment-visitor": "^7.18.9", 1236 | "@babel/helper-module-imports": "^7.18.6", 1237 | "@babel/helper-simple-access": "^7.18.6", 1238 | "@babel/helper-split-export-declaration": "^7.18.6", 1239 | "@babel/helper-validator-identifier": "^7.18.6", 1240 | "@babel/template": "^7.18.6", 1241 | "@babel/traverse": "^7.18.9", 1242 | "@babel/types": "^7.18.9" 1243 | } 1244 | }, 1245 | "@babel/helper-plugin-utils": { 1246 | "version": "7.18.9", 1247 | "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.18.9.tgz", 1248 | "integrity": "sha512-aBXPT3bmtLryXaoJLyYPXPlSD4p1ld9aYeR+sJNOZjJJGiOpb+fKfh3NkcCu7J54nUJwCERPBExCCpyCOHnu/w==", 1249 | "dev": true 1250 | }, 1251 | "@babel/helper-simple-access": { 1252 | "version": "7.18.6", 1253 | "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.18.6.tgz", 1254 | "integrity": "sha512-iNpIgTgyAvDQpDj76POqg+YEt8fPxx3yaNBg3S30dxNKm2SWfYhD0TGrK/Eu9wHpUW63VQU894TsTg+GLbUa1g==", 1255 | "dev": true, 1256 | "peer": true, 1257 | "requires": { 1258 | "@babel/types": "^7.18.6" 1259 | } 1260 | }, 1261 | "@babel/helper-split-export-declaration": { 1262 | "version": "7.18.6", 1263 | "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz", 1264 | "integrity": "sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==", 1265 | "dev": true, 1266 | "peer": true, 1267 | "requires": { 1268 | "@babel/types": "^7.18.6" 1269 | } 1270 | }, 1271 | "@babel/helper-string-parser": { 1272 | "version": "7.18.10", 1273 | "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.18.10.tgz", 1274 | "integrity": "sha512-XtIfWmeNY3i4t7t4D2t02q50HvqHybPqW2ki1kosnvWCwuCMeo81Jf0gwr85jy/neUdg5XDdeFE/80DXiO+njw==", 1275 | "dev": true 1276 | }, 1277 | "@babel/helper-validator-identifier": { 1278 | "version": "7.18.6", 1279 | "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.18.6.tgz", 1280 | "integrity": "sha512-MmetCkz9ej86nJQV+sFCxoGGrUbU3q02kgLciwkrt9QqEB7cP39oKEY0PakknEO0Gu20SskMRi+AYZ3b1TpN9g==", 1281 | "dev": true 1282 | }, 1283 | "@babel/helper-validator-option": { 1284 | "version": "7.18.6", 1285 | "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz", 1286 | "integrity": "sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw==", 1287 | "dev": true 1288 | }, 1289 | "@babel/helpers": { 1290 | "version": "7.18.9", 1291 | "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.18.9.tgz", 1292 | "integrity": "sha512-Jf5a+rbrLoR4eNdUmnFu8cN5eNJT6qdTdOg5IHIzq87WwyRw9PwguLFOWYgktN/60IP4fgDUawJvs7PjQIzELQ==", 1293 | "dev": true, 1294 | "peer": true, 1295 | "requires": { 1296 | "@babel/template": "^7.18.6", 1297 | "@babel/traverse": "^7.18.9", 1298 | "@babel/types": "^7.18.9" 1299 | } 1300 | }, 1301 | "@babel/highlight": { 1302 | "version": "7.18.6", 1303 | "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", 1304 | "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", 1305 | "dev": true, 1306 | "peer": true, 1307 | "requires": { 1308 | "@babel/helper-validator-identifier": "^7.18.6", 1309 | "chalk": "^2.0.0", 1310 | "js-tokens": "^4.0.0" 1311 | } 1312 | }, 1313 | "@babel/parser": { 1314 | "version": "7.18.10", 1315 | "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.18.10.tgz", 1316 | "integrity": "sha512-TYk3OA0HKL6qNryUayb5UUEhM/rkOQozIBEA5ITXh5DWrSp0TlUQXMyZmnWxG/DizSWBeeQ0Zbc5z8UGaaqoeg==", 1317 | "dev": true, 1318 | "peer": true 1319 | }, 1320 | "@babel/plugin-syntax-jsx": { 1321 | "version": "7.18.6", 1322 | "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.18.6.tgz", 1323 | "integrity": "sha512-6mmljtAedFGTWu2p/8WIORGwy+61PLgOMPOdazc7YoJ9ZCWUyFy3A6CpPkRKLKD1ToAesxX8KGEViAiLo9N+7Q==", 1324 | "dev": true, 1325 | "requires": { 1326 | "@babel/helper-plugin-utils": "^7.18.6" 1327 | } 1328 | }, 1329 | "@babel/plugin-transform-react-display-name": { 1330 | "version": "7.18.6", 1331 | "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.18.6.tgz", 1332 | "integrity": "sha512-TV4sQ+T013n61uMoygyMRm+xf04Bd5oqFpv2jAEQwSZ8NwQA7zeRPg1LMVg2PWi3zWBz+CLKD+v5bcpZ/BS0aA==", 1333 | "dev": true, 1334 | "requires": { 1335 | "@babel/helper-plugin-utils": "^7.18.6" 1336 | } 1337 | }, 1338 | "@babel/plugin-transform-react-jsx": { 1339 | "version": "7.18.10", 1340 | "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.18.10.tgz", 1341 | "integrity": "sha512-gCy7Iikrpu3IZjYZolFE4M1Sm+nrh1/6za2Ewj77Z+XirT4TsbJcvOFOyF+fRPwU6AKKK136CZxx6L8AbSFG6A==", 1342 | "dev": true, 1343 | "requires": { 1344 | "@babel/helper-annotate-as-pure": "^7.18.6", 1345 | "@babel/helper-module-imports": "^7.18.6", 1346 | "@babel/helper-plugin-utils": "^7.18.9", 1347 | "@babel/plugin-syntax-jsx": "^7.18.6", 1348 | "@babel/types": "^7.18.10" 1349 | } 1350 | }, 1351 | "@babel/plugin-transform-react-jsx-development": { 1352 | "version": "7.18.6", 1353 | "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.18.6.tgz", 1354 | "integrity": "sha512-SA6HEjwYFKF7WDjWcMcMGUimmw/nhNRDWxr+KaLSCrkD/LMDBvWRmHAYgE1HDeF8KUuI8OAu+RT6EOtKxSW2qA==", 1355 | "dev": true, 1356 | "requires": { 1357 | "@babel/plugin-transform-react-jsx": "^7.18.6" 1358 | } 1359 | }, 1360 | "@babel/plugin-transform-react-pure-annotations": { 1361 | "version": "7.18.6", 1362 | "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-pure-annotations/-/plugin-transform-react-pure-annotations-7.18.6.tgz", 1363 | "integrity": "sha512-I8VfEPg9r2TRDdvnHgPepTKvuRomzA8+u+nhY7qSI1fR2hRNebasZEETLyM5mAUr0Ku56OkXJ0I7NHJnO6cJiQ==", 1364 | "dev": true, 1365 | "requires": { 1366 | "@babel/helper-annotate-as-pure": "^7.18.6", 1367 | "@babel/helper-plugin-utils": "^7.18.6" 1368 | } 1369 | }, 1370 | "@babel/preset-react": { 1371 | "version": "7.18.6", 1372 | "resolved": "https://registry.npmjs.org/@babel/preset-react/-/preset-react-7.18.6.tgz", 1373 | "integrity": "sha512-zXr6atUmyYdiWRVLOZahakYmOBHtWc2WGCkP8PYTgZi0iJXDY2CN180TdrIW4OGOAdLc7TifzDIvtx6izaRIzg==", 1374 | "dev": true, 1375 | "requires": { 1376 | "@babel/helper-plugin-utils": "^7.18.6", 1377 | "@babel/helper-validator-option": "^7.18.6", 1378 | "@babel/plugin-transform-react-display-name": "^7.18.6", 1379 | "@babel/plugin-transform-react-jsx": "^7.18.6", 1380 | "@babel/plugin-transform-react-jsx-development": "^7.18.6", 1381 | "@babel/plugin-transform-react-pure-annotations": "^7.18.6" 1382 | } 1383 | }, 1384 | "@babel/template": { 1385 | "version": "7.18.10", 1386 | "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.18.10.tgz", 1387 | "integrity": "sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA==", 1388 | "dev": true, 1389 | "peer": true, 1390 | "requires": { 1391 | "@babel/code-frame": "^7.18.6", 1392 | "@babel/parser": "^7.18.10", 1393 | "@babel/types": "^7.18.10" 1394 | } 1395 | }, 1396 | "@babel/traverse": { 1397 | "version": "7.18.10", 1398 | "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.18.10.tgz", 1399 | "integrity": "sha512-J7ycxg0/K9XCtLyHf0cz2DqDihonJeIo+z+HEdRe9YuT8TY4A66i+Ab2/xZCEW7Ro60bPCBBfqqboHSamoV3+g==", 1400 | "dev": true, 1401 | "peer": true, 1402 | "requires": { 1403 | "@babel/code-frame": "^7.18.6", 1404 | "@babel/generator": "^7.18.10", 1405 | "@babel/helper-environment-visitor": "^7.18.9", 1406 | "@babel/helper-function-name": "^7.18.9", 1407 | "@babel/helper-hoist-variables": "^7.18.6", 1408 | "@babel/helper-split-export-declaration": "^7.18.6", 1409 | "@babel/parser": "^7.18.10", 1410 | "@babel/types": "^7.18.10", 1411 | "debug": "^4.1.0", 1412 | "globals": "^11.1.0" 1413 | } 1414 | }, 1415 | "@babel/types": { 1416 | "version": "7.18.10", 1417 | "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.18.10.tgz", 1418 | "integrity": "sha512-MJvnbEiiNkpjo+LknnmRrqbY1GPUUggjv+wQVjetM/AONoupqRALB7I6jGqNUAZsKcRIEu2J6FRFvsczljjsaQ==", 1419 | "dev": true, 1420 | "requires": { 1421 | "@babel/helper-string-parser": "^7.18.10", 1422 | "@babel/helper-validator-identifier": "^7.18.6", 1423 | "to-fast-properties": "^2.0.0" 1424 | } 1425 | }, 1426 | "@jridgewell/gen-mapping": { 1427 | "version": "0.1.1", 1428 | "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz", 1429 | "integrity": "sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w==", 1430 | "dev": true, 1431 | "peer": true, 1432 | "requires": { 1433 | "@jridgewell/set-array": "^1.0.0", 1434 | "@jridgewell/sourcemap-codec": "^1.4.10" 1435 | } 1436 | }, 1437 | "@jridgewell/resolve-uri": { 1438 | "version": "3.1.0", 1439 | "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", 1440 | "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", 1441 | "dev": true, 1442 | "peer": true 1443 | }, 1444 | "@jridgewell/set-array": { 1445 | "version": "1.1.2", 1446 | "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", 1447 | "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", 1448 | "dev": true, 1449 | "peer": true 1450 | }, 1451 | "@jridgewell/sourcemap-codec": { 1452 | "version": "1.4.14", 1453 | "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", 1454 | "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", 1455 | "dev": true, 1456 | "peer": true 1457 | }, 1458 | "@jridgewell/trace-mapping": { 1459 | "version": "0.3.14", 1460 | "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.14.tgz", 1461 | "integrity": "sha512-bJWEfQ9lPTvm3SneWwRFVLzrh6nhjwqw7TUFFBEMzwvg7t7PCDenf2lDwqo4NQXzdpgBXyFgDWnQA+2vkruksQ==", 1462 | "dev": true, 1463 | "peer": true, 1464 | "requires": { 1465 | "@jridgewell/resolve-uri": "^3.0.3", 1466 | "@jridgewell/sourcemap-codec": "^1.4.10" 1467 | } 1468 | }, 1469 | "@rollup/plugin-babel": { 1470 | "version": "5.3.1", 1471 | "resolved": "https://registry.npmjs.org/@rollup/plugin-babel/-/plugin-babel-5.3.1.tgz", 1472 | "integrity": "sha512-WFfdLWU/xVWKeRQnKmIAQULUI7Il0gZnBIH/ZFO069wYIfPu+8zrfp/KMW0atmELoRDq8FbiP3VCss9MhCut7Q==", 1473 | "dev": true, 1474 | "requires": { 1475 | "@babel/helper-module-imports": "^7.10.4", 1476 | "@rollup/pluginutils": "^3.1.0" 1477 | } 1478 | }, 1479 | "@rollup/plugin-node-resolve": { 1480 | "version": "13.3.0", 1481 | "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-13.3.0.tgz", 1482 | "integrity": "sha512-Lus8rbUo1eEcnS4yTFKLZrVumLPY+YayBdWXgFSHYhTT2iJbMhoaaBL3xl5NCdeRytErGr8tZ0L71BMRmnlwSw==", 1483 | "dev": true, 1484 | "requires": { 1485 | "@rollup/pluginutils": "^3.1.0", 1486 | "@types/resolve": "1.17.1", 1487 | "deepmerge": "^4.2.2", 1488 | "is-builtin-module": "^3.1.0", 1489 | "is-module": "^1.0.0", 1490 | "resolve": "^1.19.0" 1491 | } 1492 | }, 1493 | "@rollup/pluginutils": { 1494 | "version": "3.1.0", 1495 | "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-3.1.0.tgz", 1496 | "integrity": "sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==", 1497 | "dev": true, 1498 | "requires": { 1499 | "@types/estree": "0.0.39", 1500 | "estree-walker": "^1.0.1", 1501 | "picomatch": "^2.2.2" 1502 | } 1503 | }, 1504 | "@types/estree": { 1505 | "version": "0.0.39", 1506 | "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.39.tgz", 1507 | "integrity": "sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==", 1508 | "dev": true 1509 | }, 1510 | "@types/node": { 1511 | "version": "18.6.3", 1512 | "resolved": "https://registry.npmjs.org/@types/node/-/node-18.6.3.tgz", 1513 | "integrity": "sha512-6qKpDtoaYLM+5+AFChLhHermMQxc3TOEFIDzrZLPRGHPrLEwqFkkT5Kx3ju05g6X7uDPazz3jHbKPX0KzCjntg==", 1514 | "dev": true 1515 | }, 1516 | "@types/resolve": { 1517 | "version": "1.17.1", 1518 | "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-1.17.1.tgz", 1519 | "integrity": "sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw==", 1520 | "dev": true, 1521 | "requires": { 1522 | "@types/node": "*" 1523 | } 1524 | }, 1525 | "ansi-styles": { 1526 | "version": "3.2.1", 1527 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", 1528 | "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", 1529 | "dev": true, 1530 | "peer": true, 1531 | "requires": { 1532 | "color-convert": "^1.9.0" 1533 | } 1534 | }, 1535 | "browserslist": { 1536 | "version": "4.21.3", 1537 | "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.3.tgz", 1538 | "integrity": "sha512-898rgRXLAyRkM1GryrrBHGkqA5hlpkV5MhtZwg9QXeiyLUYs2k00Un05aX5l2/yJIOObYKOpS2JNo8nJDE7fWQ==", 1539 | "dev": true, 1540 | "peer": true, 1541 | "requires": { 1542 | "caniuse-lite": "^1.0.30001370", 1543 | "electron-to-chromium": "^1.4.202", 1544 | "node-releases": "^2.0.6", 1545 | "update-browserslist-db": "^1.0.5" 1546 | } 1547 | }, 1548 | "builtin-modules": { 1549 | "version": "3.3.0", 1550 | "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.3.0.tgz", 1551 | "integrity": "sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==", 1552 | "dev": true 1553 | }, 1554 | "caniuse-lite": { 1555 | "version": "1.0.30001373", 1556 | "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001373.tgz", 1557 | "integrity": "sha512-pJYArGHrPp3TUqQzFYRmP/lwJlj8RCbVe3Gd3eJQkAV8SAC6b19XS9BjMvRdvaS8RMkaTN8ZhoHP6S1y8zzwEQ==", 1558 | "dev": true, 1559 | "peer": true 1560 | }, 1561 | "chalk": { 1562 | "version": "2.4.2", 1563 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", 1564 | "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", 1565 | "dev": true, 1566 | "peer": true, 1567 | "requires": { 1568 | "ansi-styles": "^3.2.1", 1569 | "escape-string-regexp": "^1.0.5", 1570 | "supports-color": "^5.3.0" 1571 | } 1572 | }, 1573 | "color-convert": { 1574 | "version": "1.9.3", 1575 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", 1576 | "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", 1577 | "dev": true, 1578 | "peer": true, 1579 | "requires": { 1580 | "color-name": "1.1.3" 1581 | } 1582 | }, 1583 | "color-name": { 1584 | "version": "1.1.3", 1585 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", 1586 | "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", 1587 | "dev": true, 1588 | "peer": true 1589 | }, 1590 | "convert-source-map": { 1591 | "version": "1.8.0", 1592 | "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.8.0.tgz", 1593 | "integrity": "sha512-+OQdjP49zViI/6i7nIJpA8rAl4sV/JdPfU9nZs3VqOwGIgizICvuN2ru6fMd+4llL0tar18UYJXfZ/TWtmhUjA==", 1594 | "dev": true, 1595 | "peer": true, 1596 | "requires": { 1597 | "safe-buffer": "~5.1.1" 1598 | } 1599 | }, 1600 | "debug": { 1601 | "version": "4.3.4", 1602 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", 1603 | "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", 1604 | "dev": true, 1605 | "peer": true, 1606 | "requires": { 1607 | "ms": "2.1.2" 1608 | } 1609 | }, 1610 | "deepmerge": { 1611 | "version": "4.2.2", 1612 | "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz", 1613 | "integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==", 1614 | "dev": true 1615 | }, 1616 | "electron-to-chromium": { 1617 | "version": "1.4.208", 1618 | "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.208.tgz", 1619 | "integrity": "sha512-diMr4t69FigAGUk2KovP0bygEtN/9AkqEVkzjEp0cu+zFFbZMVvwACpTTfuj1mAmFR5kNoSW8wGKDFWIvmThiQ==", 1620 | "dev": true, 1621 | "peer": true 1622 | }, 1623 | "escalade": { 1624 | "version": "3.1.1", 1625 | "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", 1626 | "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", 1627 | "dev": true, 1628 | "peer": true 1629 | }, 1630 | "escape-string-regexp": { 1631 | "version": "1.0.5", 1632 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", 1633 | "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", 1634 | "dev": true, 1635 | "peer": true 1636 | }, 1637 | "estree-walker": { 1638 | "version": "1.0.1", 1639 | "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-1.0.1.tgz", 1640 | "integrity": "sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==", 1641 | "dev": true 1642 | }, 1643 | "fsevents": { 1644 | "version": "2.3.2", 1645 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", 1646 | "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", 1647 | "dev": true, 1648 | "optional": true 1649 | }, 1650 | "function-bind": { 1651 | "version": "1.1.1", 1652 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", 1653 | "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", 1654 | "dev": true 1655 | }, 1656 | "gensync": { 1657 | "version": "1.0.0-beta.2", 1658 | "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", 1659 | "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", 1660 | "dev": true, 1661 | "peer": true 1662 | }, 1663 | "globals": { 1664 | "version": "11.12.0", 1665 | "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", 1666 | "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", 1667 | "dev": true, 1668 | "peer": true 1669 | }, 1670 | "has": { 1671 | "version": "1.0.3", 1672 | "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", 1673 | "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", 1674 | "dev": true, 1675 | "requires": { 1676 | "function-bind": "^1.1.1" 1677 | } 1678 | }, 1679 | "has-flag": { 1680 | "version": "3.0.0", 1681 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", 1682 | "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", 1683 | "dev": true, 1684 | "peer": true 1685 | }, 1686 | "is-builtin-module": { 1687 | "version": "3.2.0", 1688 | "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-3.2.0.tgz", 1689 | "integrity": "sha512-phDA4oSGt7vl1n5tJvTWooWWAsXLY+2xCnxNqvKhGEzujg+A43wPlPOyDg3C8XQHN+6k/JTQWJ/j0dQh/qr+Hw==", 1690 | "dev": true, 1691 | "requires": { 1692 | "builtin-modules": "^3.3.0" 1693 | } 1694 | }, 1695 | "is-core-module": { 1696 | "version": "2.9.0", 1697 | "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.9.0.tgz", 1698 | "integrity": "sha512-+5FPy5PnwmO3lvfMb0AsoPaBG+5KHUI0wYFXOtYPnVVVspTFUuMZNfNaNVRt3FZadstu2c8x23vykRW/NBoU6A==", 1699 | "dev": true, 1700 | "requires": { 1701 | "has": "^1.0.3" 1702 | } 1703 | }, 1704 | "is-module": { 1705 | "version": "1.0.0", 1706 | "resolved": "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz", 1707 | "integrity": "sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g==", 1708 | "dev": true 1709 | }, 1710 | "js-tokens": { 1711 | "version": "4.0.0", 1712 | "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", 1713 | "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", 1714 | "peer": true 1715 | }, 1716 | "jsesc": { 1717 | "version": "2.5.2", 1718 | "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", 1719 | "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", 1720 | "dev": true, 1721 | "peer": true 1722 | }, 1723 | "json5": { 1724 | "version": "2.2.1", 1725 | "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz", 1726 | "integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==", 1727 | "dev": true, 1728 | "peer": true 1729 | }, 1730 | "loose-envify": { 1731 | "version": "1.4.0", 1732 | "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", 1733 | "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", 1734 | "peer": true, 1735 | "requires": { 1736 | "js-tokens": "^3.0.0 || ^4.0.0" 1737 | } 1738 | }, 1739 | "ms": { 1740 | "version": "2.1.2", 1741 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 1742 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", 1743 | "dev": true, 1744 | "peer": true 1745 | }, 1746 | "node-releases": { 1747 | "version": "2.0.6", 1748 | "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.6.tgz", 1749 | "integrity": "sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg==", 1750 | "dev": true, 1751 | "peer": true 1752 | }, 1753 | "path-parse": { 1754 | "version": "1.0.7", 1755 | "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", 1756 | "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", 1757 | "dev": true 1758 | }, 1759 | "picocolors": { 1760 | "version": "1.0.0", 1761 | "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", 1762 | "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", 1763 | "dev": true, 1764 | "peer": true 1765 | }, 1766 | "picomatch": { 1767 | "version": "2.3.1", 1768 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", 1769 | "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", 1770 | "dev": true 1771 | }, 1772 | "react": { 1773 | "version": "18.2.0", 1774 | "resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz", 1775 | "integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==", 1776 | "peer": true, 1777 | "requires": { 1778 | "loose-envify": "^1.1.0" 1779 | } 1780 | }, 1781 | "react-icons": { 1782 | "version": "4.4.0", 1783 | "resolved": "https://registry.npmjs.org/react-icons/-/react-icons-4.4.0.tgz", 1784 | "integrity": "sha512-fSbvHeVYo/B5/L4VhB7sBA1i2tS8MkT0Hb9t2H1AVPkwGfVHLJCqyr2Py9dKMxsyM63Eng1GkdZfbWj+Fmv8Rg==", 1785 | "requires": {} 1786 | }, 1787 | "resolve": { 1788 | "version": "1.22.1", 1789 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", 1790 | "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", 1791 | "dev": true, 1792 | "requires": { 1793 | "is-core-module": "^2.9.0", 1794 | "path-parse": "^1.0.7", 1795 | "supports-preserve-symlinks-flag": "^1.0.0" 1796 | } 1797 | }, 1798 | "rollup": { 1799 | "version": "2.78.1", 1800 | "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.78.1.tgz", 1801 | "integrity": "sha512-VeeCgtGi4P+o9hIg+xz4qQpRl6R401LWEXBmxYKOV4zlF82lyhgh2hTZnheFUbANE8l2A41F458iwj2vEYaXJg==", 1802 | "dev": true, 1803 | "requires": { 1804 | "fsevents": "~2.3.2" 1805 | } 1806 | }, 1807 | "safe-buffer": { 1808 | "version": "5.1.2", 1809 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 1810 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", 1811 | "dev": true, 1812 | "peer": true 1813 | }, 1814 | "semver": { 1815 | "version": "6.3.0", 1816 | "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", 1817 | "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", 1818 | "dev": true, 1819 | "peer": true 1820 | }, 1821 | "supports-color": { 1822 | "version": "5.5.0", 1823 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", 1824 | "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", 1825 | "dev": true, 1826 | "peer": true, 1827 | "requires": { 1828 | "has-flag": "^3.0.0" 1829 | } 1830 | }, 1831 | "supports-preserve-symlinks-flag": { 1832 | "version": "1.0.0", 1833 | "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", 1834 | "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", 1835 | "dev": true 1836 | }, 1837 | "to-fast-properties": { 1838 | "version": "2.0.0", 1839 | "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", 1840 | "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", 1841 | "dev": true 1842 | }, 1843 | "update-browserslist-db": { 1844 | "version": "1.0.5", 1845 | "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.5.tgz", 1846 | "integrity": "sha512-dteFFpCyvuDdr9S/ff1ISkKt/9YZxKjI9WlRR99c180GaztJtRa/fn18FdxGVKVsnPY7/a/FDN68mcvUmP4U7Q==", 1847 | "dev": true, 1848 | "peer": true, 1849 | "requires": { 1850 | "escalade": "^3.1.1", 1851 | "picocolors": "^1.0.0" 1852 | } 1853 | } 1854 | } 1855 | } 1856 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "porta11y", 3 | "description": "Porta11y is a collection of accessibility-focused annotations, decorators and validators for Sanity’s Portable Text editor.", 4 | "version": "0.3.0", 5 | "main": "dist/porta11y.js", 6 | "module": "dist/porta11y.esm.js", 7 | "files": [ 8 | "dist" 9 | ], 10 | "scripts": { 11 | "build": "rollup -c", 12 | "dev": "rollup -c --watch" 13 | }, 14 | "repository": { 15 | "type": "git", 16 | "url": "git+https://github.com/hidde/porta11y.git" 17 | }, 18 | "keywords": [ 19 | "sanity", 20 | "portable", 21 | "text", 22 | "tools", 23 | "annotations", 24 | "decorators", 25 | "validators", 26 | "pt" 27 | ], 28 | "author": "Hidde de Vries, Kitty Giraudel", 29 | "license": "MIT", 30 | "bugs": { 31 | "url": "https://github.com/hidde/porta11y/issues" 32 | }, 33 | "homepage": "https://github.com/hidde/porta11y#readme", 34 | "devDependencies": { 35 | "@babel/preset-react": "^7.18.6", 36 | "@rollup/plugin-babel": "^5.3.1", 37 | "@rollup/plugin-node-resolve": "^13.3.0", 38 | "rollup": "^2.77.2" 39 | }, 40 | "dependencies": { 41 | "react-icons": "^4.4.0" 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /prettier.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | semi: false, 3 | singleQuote: true, 4 | printWidth: 80, 5 | proseWrap: 'never', 6 | trailingComma: 'es5', 7 | arrowParens: 'avoid', 8 | } 9 | -------------------------------------------------------------------------------- /rollup.config.js: -------------------------------------------------------------------------------- 1 | import babel from '@rollup/plugin-babel' 2 | import { nodeResolve } from '@rollup/plugin-node-resolve' 3 | import pkg from './package.json' 4 | 5 | export default { 6 | input: 'src/index.js', 7 | output: [ 8 | { file: pkg.main.replace('.js', '.esm.js'), format: 'esm' }, 9 | { file: pkg.main, format: 'cjs' }, 10 | ], 11 | plugins: [ 12 | nodeResolve(), 13 | babel({ 14 | presets: ['@babel/preset-react'], 15 | exclude: 'node_modules/**', 16 | babelHelpers: 'bundled', 17 | }), 18 | ], 19 | external: ['react'], 20 | } 21 | -------------------------------------------------------------------------------- /src/annotations/abbr.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import { MdHelpOutline } from 'react-icons/md' 3 | 4 | /** 5 | * @param {Object} [options = {}] - Options for the annotation 6 | * @param {String} [options.title = "Abbreviation"] - Title for the annotation 7 | * @param {String} [options.name = "abbr"] - Name of the annotation 8 | * @param {String} [options.fieldTitle = "Definition"] - Title for the field 9 | * @param {String} [options.fieldName = "definition"] - Name of the field 10 | * @param {ReactElement} [options.icon = Material Design “Help Outline” icon] - JSX for the toolbar icon 11 | * @param {ReactComponent} [options.Component] - Portable Text renderer 12 | */ 13 | function abbr(options = {}) { 14 | const fieldName = options.fieldName || 'definition' 15 | const definition = { 16 | title: options.fieldTitle || 'Definition', 17 | name: fieldName, 18 | type: 'string', 19 | validation: Rule => Rule.required(), 20 | } 21 | 22 | const icon = options.icon || MdHelpOutline 23 | const render = 24 | options.Component || 25 | (props => {props.children}) 26 | 27 | return { 28 | title: options.title || 'Abbreviation', 29 | name: options.name || 'abbr', 30 | type: 'object', 31 | fields: [definition], 32 | blockEditor: { 33 | icon: icon, 34 | render: render, 35 | }, 36 | } 37 | } 38 | 39 | export default abbr 40 | -------------------------------------------------------------------------------- /src/annotations/lang.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import { MdTranslate } from 'react-icons/md' 3 | 4 | const badge = { 5 | display: 'inline-block', 6 | backgroundColor: 'rgb(0 0 0 / 0.1)', 7 | border: '1px solid rgb(0 0 0 / 0.1)', 8 | padding: '0 0.2em 0 0.3em', 9 | marginLeft: '0.2em', 10 | borderRadius: '0.2em', 11 | fontSize: '70%', 12 | whiteSpace: 'nowrap', 13 | transform: 'translateY(-15%)', 14 | } 15 | 16 | /** 17 | * @param {Object} [options = {}] - Options for the annotation 18 | * @param {String} [options.title = "Language switcher"] - Title for the annotation 19 | * @param {String} [options.name = "lang"] - Name of the annotation 20 | * @param {String} [options.fieldTitle = "Language tag"] - Title for the field 21 | * @param {String} [options.fieldName = "tag"] - Name of the field 22 | * @param {RegExp} [options.regex = /^[a-z]+(-[a-z]+)?$/i] - Validation regex 23 | * @param {String} [options.regexName = "language tag"] - Name of the regex 24 | * @param {ReactElement} [options.icon = Material Design “Translate” icon] - JSX for the toolbar icon 25 | * @param {ReactComponent} [options.Component] - Portable Text renderer 26 | */ 27 | function lang(options = {}) { 28 | const validation = Rule => 29 | Rule.required().regex(options.regex || /^[a-z]+(-[a-z]+)?$/i, { 30 | name: options.regexName || 'language tag', 31 | }) 32 | 33 | const fieldName = options.fieldName || 'tag' 34 | const tag = { 35 | title: options.fieldTitle || 'Language tag', 36 | name: fieldName, 37 | type: 'string', 38 | validation, 39 | } 40 | 41 | const icon = options.icon || MdTranslate 42 | const render = 43 | options.Component || 44 | (props => ( 45 | <> 46 | {props.children} 47 | 48 | {icon} {props[fieldName]} 49 | 50 | 51 | )) 52 | 53 | return { 54 | title: options.title || 'Language switcher', 55 | name: options.name || 'lang', 56 | type: 'object', 57 | fields: [tag], 58 | blockEditor: { 59 | icon: icon, 60 | render: render, 61 | }, 62 | } 63 | } 64 | 65 | export default lang 66 | -------------------------------------------------------------------------------- /src/blocks/hr.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import { MdHorizontalRule } from 'react-icons/md' 3 | 4 | /** 5 | * @param {Object} [options = {}] - Options for the decorator 6 | * @param {String} [options.title = "Horizontal rule"] - Title for the block 7 | * @param {String} [options.name = "hr"] - Name of the block 8 | * @param {ReactElement} [options.icon = Material Design “MdHorizontalRule” icon] - JSX for the toolbar icon 9 | */ 10 | function hr(options = {}) { 11 | return { 12 | title: options.title || 'Horizontal rule', 13 | name: options.name || 'hr', 14 | type: 'object', 15 | icon: options.icon || MdHorizontalRule, 16 | options: { editModal: 'popover' }, 17 | fields: [ 18 | { 19 | name: 'default', 20 | title: 'Obligatory field for validity', 21 | type: 'boolean', 22 | hidden: true, 23 | initialValue: true, 24 | }, 25 | ], 26 | preview: { 27 | component: () => ( 28 |
38 | ), 39 | }, 40 | } 41 | } 42 | 43 | export default hr 44 | -------------------------------------------------------------------------------- /src/decorators/del.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import { VscDiffRemoved } from 'react-icons/vsc' 3 | 4 | /** 5 | * @param {Object} [options = {}] - Options for the decorator 6 | * @param {String} [options.title = "Deletion"] - Title for the decorator 7 | * @param {String} [options.value = "del"] - Value of the decorator 8 | * @param {ReactElement} [options.icon = VSC “DiffRemoved” icon] - JSX for the toolbar icon 9 | * @param {ReactComponent} [options.Component = "del"] - Portable Text renderer 10 | */ 11 | function del(options = {}) { 12 | const icon = options.icon || VscDiffRemoved 13 | const render = 14 | options.Component || 15 | (props => ( 16 | 25 | {props.children} 26 | 27 | )) 28 | 29 | return { 30 | title: options.title || 'Deletion', 31 | value: options.value || 'del', 32 | blockEditor: { icon, render }, 33 | } 34 | } 35 | 36 | export default del 37 | -------------------------------------------------------------------------------- /src/decorators/ins.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import { VscDiffAdded } from 'react-icons/vsc' 3 | 4 | /** 5 | * @param {Object} [options = {}] - Options for the decorator 6 | * @param {String} [options.title = "Insertion"] - Title for the decorator 7 | * @param {String} [options.value = "ins"] - Value of the decorator 8 | * @param {ReactElement} [options.icon = VSC “DiffAdded” icon] - JSX for the toolbar icon 9 | * @param {ReactComponent} [options.Component = "ins"] - Portable Text renderer 10 | */ 11 | function ins(options = {}) { 12 | const icon = options.icon || VscDiffAdded 13 | const render = 14 | options.Component || 15 | (props => ( 16 | 25 | {props.children} 26 | 27 | )) 28 | 29 | return { 30 | title: options.title || 'Insertion', 31 | value: options.value || 'ins', 32 | blockEditor: { icon, render }, 33 | } 34 | } 35 | 36 | export default ins 37 | -------------------------------------------------------------------------------- /src/decorators/sub.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import { MdSubscript } from 'react-icons/md' 3 | 4 | /** 5 | * @param {Object} [options = {}] - Options for the decorator 6 | * @param {String} [options.title = "Sub"] - Title for the decorator 7 | * @param {String} [options.value = "sub"] - Value of the decorator 8 | * @param {ReactElement} [options.icon = Material Design “Subscript” icon] - JSX for the toolbar icon 9 | * @param {ReactComponent} [options.Component = "sub"] - Portable Text renderer 10 | */ 11 | function sub(options = {}) { 12 | const icon = options.icon || MdSubscript 13 | const render = options.Component || 'sub' 14 | 15 | return { 16 | title: options.title || 'Sub', 17 | value: options.value || 'sub', 18 | blockEditor: { icon, render }, 19 | } 20 | } 21 | 22 | export default sub 23 | -------------------------------------------------------------------------------- /src/decorators/sup.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import { MdSuperscript } from 'react-icons/md' 3 | 4 | /** 5 | * @param {Object} [options = {}] - Options for the decorator 6 | * @param {String} [options.title = "Sup"] - Title for the decorator 7 | * @param {String} [options.value = "sup"] - Value of the decorator 8 | * @param {ReactElement} [options.icon = Material Design “Superscript” icon] - JSX for the toolbar icon 9 | * @param {ReactComponent} [options.Component = "sup"] - Portable Text renderer 10 | */ 11 | function sup(options = {}) { 12 | const icon = options.icon || MdSuperscript 13 | const render = options.Component || 'sup' 14 | 15 | return { 16 | title: options.title || 'Sup', 17 | value: options.value || 'sup', 18 | blockEditor: { icon, render }, 19 | } 20 | } 21 | 22 | export default sup 23 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | export { default as abbr } from './annotations/abbr' 2 | export { default as lang } from './annotations/lang' 3 | 4 | export { default as hr } from './blocks/hr' 5 | 6 | export { default as del } from './decorators/del' 7 | export { default as ins } from './decorators/ins' 8 | export { default as sub } from './decorators/sub' 9 | export { default as sup } from './decorators/sup' 10 | 11 | export { default as noFakeLists } from './validations/noFakeLists' 12 | -------------------------------------------------------------------------------- /src/validations/noFakeLists.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @param {Object} [options = {}] - Options for the validation 3 | * @param {RegExp} [options.regex = /^\s*[-*+–—]/] - Validation regex 4 | * @param {String} [options.message = "This looks like a list, but it is plain text. Use the bulleted list option."] - Message to display when the validation triggers 5 | */ 6 | function noFakeLists(options = {}) { 7 | return function (blocks) { 8 | const regex = options.regex || /^\s*[-*+–—]/ 9 | const fakeListBlocks = 10 | (blocks || []) 11 | .filter( 12 | block => 13 | block._type === 'block' && 14 | block.children.some( 15 | blockPart => 16 | blockPart._type === 'span' && regex.test(blockPart.text) 17 | ) 18 | ) 19 | .map((block, index) => [{ _key: block._key }] || [index]) || [] 20 | 21 | return ( 22 | fakeListBlocks.length === 0 || { 23 | message: 24 | options.message || 25 | 'This looks like a list, but it is plain text. Use the bulleted list option.', 26 | paths: fakeListBlocks, 27 | } 28 | ) 29 | } 30 | } 31 | 32 | export default noFakeLists 33 | --------------------------------------------------------------------------------