├── .github ├── FUNDING.yml └── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md ├── .gitignore ├── .npmignore ├── CODE_OF_CONDUCT.md ├── LICENSE ├── package.json ├── readme.md ├── rollup.config.js ├── src ├── calc.js ├── hooks │ └── useCountry.js └── index.js └── yarn.lock /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [atapas] 4 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe the bug** 11 | A clear and concise description of what the bug is. 12 | 13 | **To Reproduce** 14 | Steps to reproduce the behavior: 15 | 1. Go to '...' 16 | 2. Click on '....' 17 | 3. Scroll down to '....' 18 | 4. See error 19 | 20 | **Expected behavior** 21 | A clear and concise description of what you expected to happen. 22 | 23 | **Screenshots** 24 | If applicable, add screenshots to help explain your problem. 25 | 26 | **Desktop (please complete the following information):** 27 | - OS: [e.g. iOS] 28 | - Browser [e.g. chrome, safari] 29 | - Version [e.g. 22] 30 | 31 | **Smartphone (please complete the following information):** 32 | - Device: [e.g. iPhone6] 33 | - OS: [e.g. iOS8.1] 34 | - Browser [e.g. stock browser, safari] 35 | - Version [e.g. 22] 36 | 37 | **Additional context** 38 | Add any other context about the problem here. 39 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | dist 3 | custom-hook*.tgz -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | yarn-error.log 2 | src 3 | rollup.config.js -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | We as members, contributors, and leaders pledge to make participation in our 6 | community a harassment-free experience for everyone, regardless of age, body 7 | size, visible or invisible disability, ethnicity, sex characteristics, gender 8 | identity and expression, level of experience, education, socio-economic status, 9 | nationality, personal appearance, race, religion, or sexual identity 10 | and orientation. 11 | 12 | We pledge to act and interact in ways that contribute to an open, welcoming, 13 | diverse, inclusive, and healthy community. 14 | 15 | ## Our Standards 16 | 17 | Examples of behavior that contributes to a positive environment for our 18 | community include: 19 | 20 | * Demonstrating empathy and kindness toward other people 21 | * Being respectful of differing opinions, viewpoints, and experiences 22 | * Giving and gracefully accepting constructive feedback 23 | * Accepting responsibility and apologizing to those affected by our mistakes, 24 | and learning from the experience 25 | * Focusing on what is best not just for us as individuals, but for the 26 | overall community 27 | 28 | Examples of unacceptable behavior include: 29 | 30 | * The use of sexualized language or imagery, and sexual attention or 31 | advances of any kind 32 | * Trolling, insulting or derogatory comments, and personal or political attacks 33 | * Public or private harassment 34 | * Publishing others' private information, such as a physical or email 35 | address, without their explicit permission 36 | * Other conduct which could reasonably be considered inappropriate in a 37 | professional setting 38 | 39 | ## Enforcement Responsibilities 40 | 41 | Community leaders are responsible for clarifying and enforcing our standards of 42 | acceptable behavior and will take appropriate and fair corrective action in 43 | response to any behavior that they deem inappropriate, threatening, offensive, 44 | or harmful. 45 | 46 | Community leaders have the right and responsibility to remove, edit, or reject 47 | comments, commits, code, wiki edits, issues, and other contributions that are 48 | not aligned to this Code of Conduct, and will communicate reasons for moderation 49 | decisions when appropriate. 50 | 51 | ## Scope 52 | 53 | This Code of Conduct applies within all community spaces, and also applies when 54 | an individual is officially representing the community in public spaces. 55 | Examples of representing our community include using an official e-mail address, 56 | posting via an official social media account, or acting as an appointed 57 | representative at an online or offline event. 58 | 59 | ## Enforcement 60 | 61 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 62 | reported to the community leaders responsible for enforcement at 63 | tapas.adhikary@gmail.com. 64 | All complaints will be reviewed and investigated promptly and fairly. 65 | 66 | All community leaders are obligated to respect the privacy and security of the 67 | reporter of any incident. 68 | 69 | ## Enforcement Guidelines 70 | 71 | Community leaders will follow these Community Impact Guidelines in determining 72 | the consequences for any action they deem in violation of this Code of Conduct: 73 | 74 | ### 1. Correction 75 | 76 | **Community Impact**: Use of inappropriate language or other behavior deemed 77 | unprofessional or unwelcome in the community. 78 | 79 | **Consequence**: A private, written warning from community leaders, providing 80 | clarity around the nature of the violation and an explanation of why the 81 | behavior was inappropriate. A public apology may be requested. 82 | 83 | ### 2. Warning 84 | 85 | **Community Impact**: A violation through a single incident or series 86 | of actions. 87 | 88 | **Consequence**: A warning with consequences for continued behavior. No 89 | interaction with the people involved, including unsolicited interaction with 90 | those enforcing the Code of Conduct, for a specified period of time. This 91 | includes avoiding interactions in community spaces as well as external channels 92 | like social media. Violating these terms may lead to a temporary or 93 | permanent ban. 94 | 95 | ### 3. Temporary Ban 96 | 97 | **Community Impact**: A serious violation of community standards, including 98 | sustained inappropriate behavior. 99 | 100 | **Consequence**: A temporary ban from any sort of interaction or public 101 | communication with the community for a specified period of time. No public or 102 | private interaction with the people involved, including unsolicited interaction 103 | with those enforcing the Code of Conduct, is allowed during this period. 104 | Violating these terms may lead to a permanent ban. 105 | 106 | ### 4. Permanent Ban 107 | 108 | **Community Impact**: Demonstrating a pattern of violation of community 109 | standards, including sustained inappropriate behavior, harassment of an 110 | individual, or aggression toward or disparagement of classes of individuals. 111 | 112 | **Consequence**: A permanent ban from any sort of public interaction within 113 | the community. 114 | 115 | ## Attribution 116 | 117 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], 118 | version 2.0, available at 119 | https://www.contributor-covenant.org/version/2/0/code_of_conduct.html. 120 | 121 | Community Impact Guidelines were inspired by [Mozilla's code of conduct 122 | enforcement ladder](https://github.com/mozilla/diversity). 123 | 124 | [homepage]: https://www.contributor-covenant.org 125 | 126 | For answers to common questions about this code of conduct, see the FAQ at 127 | https://www.contributor-covenant.org/faq. Translations are available at 128 | https://www.contributor-covenant.org/translations. 129 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 Tapas Adhikary 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 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "custom-hook-npm", 3 | "version": "1.0.0", 4 | "type": "module", 5 | "description": "This is a boilerplate to create NPM package for one or more ReactJS custom hooks and components.", 6 | "author": { 7 | "name": "Tapas Adhikary", 8 | "email": "tapas.adhikary@gmail.com", 9 | "url": "https://twitter.com/tapasadhikary" 10 | }, 11 | "main": "dist/index.js", 12 | "scripts": { 13 | "build:dev": "rollup -c --environment NODE_ENV:development", 14 | "build": "rollup -c --environment NODE_ENV:production" 15 | }, 16 | "keywords": [ 17 | "react", 18 | "react-custom-hooks", 19 | "hooks", 20 | "custom", 21 | "hooks", 22 | "npm" 23 | ], 24 | "repository": { 25 | "type": "git", 26 | "url": "https://github.com/atapas/custom-hook-npm" 27 | }, 28 | "bugs": { 29 | "url": "https://github.com/atapas/custom-hook-npm/issues" 30 | }, 31 | "license": "MIT", 32 | "dependencies": { 33 | "react": "^18.2.0", 34 | "react-dom": "^18.2.0" 35 | }, 36 | "devDependencies": { 37 | "rollup": "^4.9.0", 38 | "rollup-plugin-terser": "^7.0.2" 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | # Custom Hook NPM 2 | 3 | This is a boilerplate to create an NPM package for one or more ReactJS custom hooks and components. I hope you find it helpful. 4 | 5 | ## 🫶 Support 6 | Liked it? You can show your support with a STAR(⭐). 7 | 8 | > Many Thanks to all the `Stargazers` who have supported this project with stars(⭐). I am an independent educator who creates meaningful projects to teach programming. You can support me further by [sponsoring me on GitHub](https://github.com/sponsors/atapas). 9 | 10 | ## How to use it? 11 | 12 | You can use the project in this way: 13 | 14 | ### Install 15 | 16 | - 1. Clone this repository and change the directory to the project folder. 17 | - 2. Edit the `package.json` file to change the package name, author info, and GitHub link info as per your information. 18 | - 3. Run `npm install` in the root directory of your project. 19 | - 4. Add your React component and hooks. Hooks to go inside the `hooks` folder. 20 | 21 | ### Build 22 | 23 | You can build the project in two ways: 24 | 25 | - 1. `yarn build`: To build the project with a source map. 26 | - 2. `yarn build: prod`. This will generate minified files without a sourcemap. 27 | 28 | ### NPM Pack for test 29 | 30 | After building, create a npm locally to test: 31 | 32 | `npm pack`: this command will generate the tar npm package file that you can take to any React-based projects(including Next.js) and use it. 33 | 34 | - Just copy the tar npm package file into your ReactJS/Next.js project folder. 35 | - Add this line to your project's `package.json` file: 36 | ```bash 37 | "": "file:", 38 | ``` 39 | Please note the `NPM-PACKAGE-NAME` should be the same as the name you provided in the `package.json` file after cloning this repo. 40 | - Now you can check the `node-modules` folder to see if a new folder has been created with the `NPM-PACKAGE-NAME`. Then your installation is successful. 41 | 42 | ### Publish It 43 | 44 | - To publish it, you must have an account on [https://www.npmjs.com](https://www.npmjs.com). 45 | - Make sure to be in this project folder. 46 | - Now, open a command prompt/terminal and execute this command to login: 47 | ``` 48 | npm login 49 | ``` 50 | - Please provide the credentials you have created already. You can also check if you are in the session with the following command, 51 | ``` 52 | npm whoami 53 | ``` 54 | The next part is just to run the the publish command, 55 | ``` 56 | npm publish 57 | ``` 58 | 59 | Happy Publishing! 60 | 61 | 62 | -------------------------------------------------------------------------------- /rollup.config.js: -------------------------------------------------------------------------------- 1 | // rollup.config.js 2 | import { terser } from 'rollup-plugin-terser'; 3 | 4 | const devMode = (process.env.NODE_ENV === 'development'); 5 | console.log(`${ devMode ? 'development' : 'production' } mode bundle`); 6 | 7 | export default [ 8 | { 9 | input: 'src/index.js', 10 | output: { 11 | file: 'dist/index.js', 12 | format: 'cjs', 13 | sourcemap: devMode ? 'inline' : false, 14 | plugins: [ 15 | terser({ 16 | ecma: 2020, 17 | mangle: { toplevel: true }, 18 | compress: { 19 | module: true, 20 | toplevel: true, 21 | unsafe_arrows: true, 22 | drop_console: !devMode, 23 | drop_debugger: !devMode 24 | }, 25 | output: { quote_style: 1 } 26 | }) 27 | ] 28 | } 29 | } 30 | ]; -------------------------------------------------------------------------------- /src/calc.js: -------------------------------------------------------------------------------- 1 | const sum = (a, b) => { 2 | return a + b; 3 | } 4 | 5 | const mul = (a, b) => { 6 | return a * b; 7 | } 8 | 9 | export { 10 | sum, 11 | mul 12 | } -------------------------------------------------------------------------------- /src/hooks/useCountry.js: -------------------------------------------------------------------------------- 1 | 2 | import {useState, useEffect} from 'react'; 3 | 4 | const useCountry = (name) => { 5 | const [country, setCountry] = useState([]); 6 | const [loading, setLoading] = useState(false); 7 | const [error, setError] = useState(); 8 | 9 | useEffect(() => { 10 | const fetchCountryInfo = async () => { 11 | try { 12 | setLoading(true); 13 | const response = await fetch(`https://restcountries.com/v3.1/name/${name}`); 14 | if (response.status === 404) throw new Error('Could not find the country you are looking for, Try again!'); 15 | const data = await response.json(); 16 | setCountry(data); 17 | } catch (err) { 18 | console.log(err); 19 | setError("We couldn't find that country"); 20 | } finally { 21 | setLoading(false); 22 | }; 23 | } 24 | fetchCountryInfo(); 25 | }, []) 26 | 27 | return { 28 | loading, 29 | error, 30 | country 31 | } 32 | } 33 | 34 | export default useCountry; -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import useCountry from "./hooks/useCountry"; 2 | 3 | export {useCountry}; -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- 1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. 2 | # yarn lockfile v1 3 | 4 | 5 | "@babel/code-frame@^7.10.4": 6 | version "7.23.5" 7 | resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.23.5.tgz#9009b69a8c602293476ad598ff53e4562e15c244" 8 | integrity sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA== 9 | dependencies: 10 | "@babel/highlight" "^7.23.4" 11 | chalk "^2.4.2" 12 | 13 | "@babel/helper-validator-identifier@^7.22.20": 14 | version "7.22.20" 15 | resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz#c4ae002c61d2879e724581d96665583dbc1dc0e0" 16 | integrity sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A== 17 | 18 | "@babel/highlight@^7.23.4": 19 | version "7.23.4" 20 | resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.23.4.tgz#edaadf4d8232e1a961432db785091207ead0621b" 21 | integrity sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A== 22 | dependencies: 23 | "@babel/helper-validator-identifier" "^7.22.20" 24 | chalk "^2.4.2" 25 | js-tokens "^4.0.0" 26 | 27 | "@jridgewell/gen-mapping@^0.3.0": 28 | version "0.3.3" 29 | resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz#7e02e6eb5df901aaedb08514203b096614024098" 30 | integrity sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ== 31 | dependencies: 32 | "@jridgewell/set-array" "^1.0.1" 33 | "@jridgewell/sourcemap-codec" "^1.4.10" 34 | "@jridgewell/trace-mapping" "^0.3.9" 35 | 36 | "@jridgewell/resolve-uri@^3.1.0": 37 | version "3.1.1" 38 | resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz#c08679063f279615a3326583ba3a90d1d82cc721" 39 | integrity sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA== 40 | 41 | "@jridgewell/set-array@^1.0.1": 42 | version "1.1.2" 43 | resolved "https://registry.yarnpkg.com/@jridgewell/set-array/-/set-array-1.1.2.tgz#7c6cf998d6d20b914c0a55a91ae928ff25965e72" 44 | integrity sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw== 45 | 46 | "@jridgewell/source-map@^0.3.3": 47 | version "0.3.5" 48 | resolved "https://registry.yarnpkg.com/@jridgewell/source-map/-/source-map-0.3.5.tgz#a3bb4d5c6825aab0d281268f47f6ad5853431e91" 49 | integrity sha512-UTYAUj/wviwdsMfzoSJspJxbkH5o1snzwX0//0ENX1u/55kkZZkcTZP6u9bwKGkv+dkk9at4m1Cpt0uY80kcpQ== 50 | dependencies: 51 | "@jridgewell/gen-mapping" "^0.3.0" 52 | "@jridgewell/trace-mapping" "^0.3.9" 53 | 54 | "@jridgewell/sourcemap-codec@^1.4.10", "@jridgewell/sourcemap-codec@^1.4.14": 55 | version "1.4.15" 56 | resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz#d7c6e6755c78567a951e04ab52ef0fd26de59f32" 57 | integrity sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg== 58 | 59 | "@jridgewell/trace-mapping@^0.3.9": 60 | version "0.3.20" 61 | resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.20.tgz#72e45707cf240fa6b081d0366f8265b0cd10197f" 62 | integrity sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q== 63 | dependencies: 64 | "@jridgewell/resolve-uri" "^3.1.0" 65 | "@jridgewell/sourcemap-codec" "^1.4.14" 66 | 67 | "@rollup/rollup-android-arm-eabi@4.9.0": 68 | version "4.9.0" 69 | resolved "https://registry.yarnpkg.com/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.9.0.tgz#0437b27edd7095d0b6d5db99d13af8157d7c58b0" 70 | integrity sha512-+1ge/xmaJpm1KVBuIH38Z94zj9fBD+hp+/5WLaHgyY8XLq1ibxk/zj6dTXaqM2cAbYKq8jYlhHd6k05If1W5xA== 71 | 72 | "@rollup/rollup-android-arm64@4.9.0": 73 | version "4.9.0" 74 | resolved "https://registry.yarnpkg.com/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.9.0.tgz#d4c14ef9e45d5c46b8d1f611ab8124a611d5be5b" 75 | integrity sha512-im6hUEyQ7ZfoZdNvtwgEJvBWZYauC9KVKq1w58LG2Zfz6zMd8gRrbN+xCVoqA2hv/v6fm9lp5LFGJ3za8EQH3A== 76 | 77 | "@rollup/rollup-darwin-arm64@4.9.0": 78 | version "4.9.0" 79 | resolved "https://registry.yarnpkg.com/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.9.0.tgz#6f3fdf5712db6b5e3d8f62a86a09cd659dd871f9" 80 | integrity sha512-u7aTMskN6Dmg1lCT0QJ+tINRt+ntUrvVkhbPfFz4bCwRZvjItx2nJtwJnJRlKMMaQCHRjrNqHRDYvE4mBm3DlQ== 81 | 82 | "@rollup/rollup-darwin-x64@4.9.0": 83 | version "4.9.0" 84 | resolved "https://registry.yarnpkg.com/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.9.0.tgz#626d7786fe7c10b2e8533ad981b4a791fd72b9d0" 85 | integrity sha512-8FvEl3w2ExmpcOmX5RJD0yqXcVSOqAJJUJ29Lca29Ik+3zPS1yFimr2fr5JSZ4Z5gt8/d7WqycpgkX9nocijSw== 86 | 87 | "@rollup/rollup-linux-arm-gnueabihf@4.9.0": 88 | version "4.9.0" 89 | resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.9.0.tgz#57ece7bb1b7659a3ea2ace580a63b8f92b3161f1" 90 | integrity sha512-lHoKYaRwd4gge+IpqJHCY+8Vc3hhdJfU6ukFnnrJasEBUvVlydP8PuwndbWfGkdgSvZhHfSEw6urrlBj0TSSfg== 91 | 92 | "@rollup/rollup-linux-arm64-gnu@4.9.0": 93 | version "4.9.0" 94 | resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.9.0.tgz#345b276b814a5377344adc5780c4dfb7cd0e8ba9" 95 | integrity sha512-JbEPfhndYeWHfOSeh4DOFvNXrj7ls9S/2omijVsao+LBPTPayT1uKcK3dHW3MwDJ7KO11t9m2cVTqXnTKpeaiw== 96 | 97 | "@rollup/rollup-linux-arm64-musl@4.9.0": 98 | version "4.9.0" 99 | resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.9.0.tgz#61cc6516e6e92e2205ea1d0ac30326379b0563c8" 100 | integrity sha512-ahqcSXLlcV2XUBM3/f/C6cRoh7NxYA/W7Yzuv4bDU1YscTFw7ay4LmD7l6OS8EMhTNvcrWGkEettL1Bhjf+B+w== 101 | 102 | "@rollup/rollup-linux-riscv64-gnu@4.9.0": 103 | version "4.9.0" 104 | resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.9.0.tgz#e9add70ddca7bd6f685ec447ae83eb3be552f211" 105 | integrity sha512-uwvOYNtLw8gVtrExKhdFsYHA/kotURUmZYlinH2VcQxNCQJeJXnkmWgw2hI9Xgzhgu7J9QvWiq9TtTVwWMDa+w== 106 | 107 | "@rollup/rollup-linux-x64-gnu@4.9.0": 108 | version "4.9.0" 109 | resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.9.0.tgz#ece153613f0cf2c864dbfc2076c579da8abd51a9" 110 | integrity sha512-m6pkSwcZZD2LCFHZX/zW2aLIISyzWLU3hrLLzQKMI12+OLEzgruTovAxY5sCZJkipklaZqPy/2bEEBNjp+Y7xg== 111 | 112 | "@rollup/rollup-linux-x64-musl@4.9.0": 113 | version "4.9.0" 114 | resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.9.0.tgz#2d2dbdf5fbf2c19d1f3d31b8a7850b57f5799037" 115 | integrity sha512-VFAC1RDRSbU3iOF98X42KaVicAfKf0m0OvIu8dbnqhTe26Kh6Ym9JrDulz7Hbk7/9zGc41JkV02g+p3BivOdAg== 116 | 117 | "@rollup/rollup-win32-arm64-msvc@4.9.0": 118 | version "4.9.0" 119 | resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.9.0.tgz#bf2dbad350376e46cb77fab408bb398ad5f3648d" 120 | integrity sha512-9jPgMvTKXARz4inw6jezMLA2ihDBvgIU9Ml01hjdVpOcMKyxFBJrn83KVQINnbeqDv0+HdO1c09hgZ8N0s820Q== 121 | 122 | "@rollup/rollup-win32-ia32-msvc@4.9.0": 123 | version "4.9.0" 124 | resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.9.0.tgz#5c26b07f74f4054f3ecf202550100496ed2e73f3" 125 | integrity sha512-WE4pT2kTXQN2bAv40Uog0AsV7/s9nT9HBWXAou8+++MBCnY51QS02KYtm6dQxxosKi1VIz/wZIrTQO5UP2EW+Q== 126 | 127 | "@rollup/rollup-win32-x64-msvc@4.9.0": 128 | version "4.9.0" 129 | resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.9.0.tgz#4ea610e0c40a07a8afa2977cbf80507f41c2271c" 130 | integrity sha512-aPP5Q5AqNGuT0tnuEkK/g4mnt3ZhheiXrDIiSVIHN9mcN21OyXDVbEMqmXPE7e2OplNLDkcvV+ZoGJa2ZImFgw== 131 | 132 | "@types/node@*": 133 | version "20.10.4" 134 | resolved "https://registry.yarnpkg.com/@types/node/-/node-20.10.4.tgz#b246fd84d55d5b1b71bf51f964bd514409347198" 135 | integrity sha512-D08YG6rr8X90YB56tSIuBaddy/UXAA9RKJoFvrsnogAum/0pmjkgi4+2nx96A330FmioegBWmEYQ+syqCFaveg== 136 | dependencies: 137 | undici-types "~5.26.4" 138 | 139 | acorn@^8.8.2: 140 | version "8.11.2" 141 | resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.11.2.tgz#ca0d78b51895be5390a5903c5b3bdcdaf78ae40b" 142 | integrity sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w== 143 | 144 | ansi-styles@^3.2.1: 145 | version "3.2.1" 146 | resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" 147 | integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== 148 | dependencies: 149 | color-convert "^1.9.0" 150 | 151 | buffer-from@^1.0.0: 152 | version "1.1.2" 153 | resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5" 154 | integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ== 155 | 156 | chalk@^2.4.2: 157 | version "2.4.2" 158 | resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" 159 | integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== 160 | dependencies: 161 | ansi-styles "^3.2.1" 162 | escape-string-regexp "^1.0.5" 163 | supports-color "^5.3.0" 164 | 165 | color-convert@^1.9.0: 166 | version "1.9.3" 167 | resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" 168 | integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== 169 | dependencies: 170 | color-name "1.1.3" 171 | 172 | color-name@1.1.3: 173 | version "1.1.3" 174 | resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" 175 | integrity sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw== 176 | 177 | commander@^2.20.0: 178 | version "2.20.3" 179 | resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" 180 | integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== 181 | 182 | escape-string-regexp@^1.0.5: 183 | version "1.0.5" 184 | resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" 185 | integrity sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg== 186 | 187 | fsevents@~2.3.2: 188 | version "2.3.3" 189 | resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6" 190 | integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw== 191 | 192 | has-flag@^3.0.0: 193 | version "3.0.0" 194 | resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" 195 | integrity sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw== 196 | 197 | has-flag@^4.0.0: 198 | version "4.0.0" 199 | resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" 200 | integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== 201 | 202 | jest-worker@^26.2.1: 203 | version "26.6.2" 204 | resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-26.6.2.tgz#7f72cbc4d643c365e27b9fd775f9d0eaa9c7a8ed" 205 | integrity sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ== 206 | dependencies: 207 | "@types/node" "*" 208 | merge-stream "^2.0.0" 209 | supports-color "^7.0.0" 210 | 211 | "js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0: 212 | version "4.0.0" 213 | resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" 214 | integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== 215 | 216 | loose-envify@^1.1.0: 217 | version "1.4.0" 218 | resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf" 219 | integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q== 220 | dependencies: 221 | js-tokens "^3.0.0 || ^4.0.0" 222 | 223 | merge-stream@^2.0.0: 224 | version "2.0.0" 225 | resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60" 226 | integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== 227 | 228 | randombytes@^2.1.0: 229 | version "2.1.0" 230 | resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.1.0.tgz#df6f84372f0270dc65cdf6291349ab7a473d4f2a" 231 | integrity sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ== 232 | dependencies: 233 | safe-buffer "^5.1.0" 234 | 235 | react-dom@^18.2.0: 236 | version "18.2.0" 237 | resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-18.2.0.tgz#22aaf38708db2674ed9ada224ca4aa708d821e3d" 238 | integrity sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g== 239 | dependencies: 240 | loose-envify "^1.1.0" 241 | scheduler "^0.23.0" 242 | 243 | react@^18.2.0: 244 | version "18.2.0" 245 | resolved "https://registry.yarnpkg.com/react/-/react-18.2.0.tgz#555bd98592883255fa00de14f1151a917b5d77d5" 246 | integrity sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ== 247 | dependencies: 248 | loose-envify "^1.1.0" 249 | 250 | rollup-plugin-terser@^7.0.2: 251 | version "7.0.2" 252 | resolved "https://registry.yarnpkg.com/rollup-plugin-terser/-/rollup-plugin-terser-7.0.2.tgz#e8fbba4869981b2dc35ae7e8a502d5c6c04d324d" 253 | integrity sha512-w3iIaU4OxcF52UUXiZNsNeuXIMDvFrr+ZXK6bFZ0Q60qyVfq4uLptoS4bbq3paG3x216eQllFZX7zt6TIImguQ== 254 | dependencies: 255 | "@babel/code-frame" "^7.10.4" 256 | jest-worker "^26.2.1" 257 | serialize-javascript "^4.0.0" 258 | terser "^5.0.0" 259 | 260 | rollup@^4.9.0: 261 | version "4.9.0" 262 | resolved "https://registry.yarnpkg.com/rollup/-/rollup-4.9.0.tgz#94dff4070f106c1be6b2e88401a49b023c87fa88" 263 | integrity sha512-bUHW/9N21z64gw8s6tP4c88P382Bq/L5uZDowHlHx6s/QWpjJXivIAbEw6LZthgSvlEizZBfLC4OAvWe7aoF7A== 264 | optionalDependencies: 265 | "@rollup/rollup-android-arm-eabi" "4.9.0" 266 | "@rollup/rollup-android-arm64" "4.9.0" 267 | "@rollup/rollup-darwin-arm64" "4.9.0" 268 | "@rollup/rollup-darwin-x64" "4.9.0" 269 | "@rollup/rollup-linux-arm-gnueabihf" "4.9.0" 270 | "@rollup/rollup-linux-arm64-gnu" "4.9.0" 271 | "@rollup/rollup-linux-arm64-musl" "4.9.0" 272 | "@rollup/rollup-linux-riscv64-gnu" "4.9.0" 273 | "@rollup/rollup-linux-x64-gnu" "4.9.0" 274 | "@rollup/rollup-linux-x64-musl" "4.9.0" 275 | "@rollup/rollup-win32-arm64-msvc" "4.9.0" 276 | "@rollup/rollup-win32-ia32-msvc" "4.9.0" 277 | "@rollup/rollup-win32-x64-msvc" "4.9.0" 278 | fsevents "~2.3.2" 279 | 280 | safe-buffer@^5.1.0: 281 | version "5.2.1" 282 | resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" 283 | integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== 284 | 285 | scheduler@^0.23.0: 286 | version "0.23.0" 287 | resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.23.0.tgz#ba8041afc3d30eb206a487b6b384002e4e61fdfe" 288 | integrity sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw== 289 | dependencies: 290 | loose-envify "^1.1.0" 291 | 292 | serialize-javascript@^4.0.0: 293 | version "4.0.0" 294 | resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-4.0.0.tgz#b525e1238489a5ecfc42afacc3fe99e666f4b1aa" 295 | integrity sha512-GaNA54380uFefWghODBWEGisLZFj00nS5ACs6yHa9nLqlLpVLO8ChDGeKRjZnV4Nh4n0Qi7nhYZD/9fCPzEqkw== 296 | dependencies: 297 | randombytes "^2.1.0" 298 | 299 | source-map-support@~0.5.20: 300 | version "0.5.21" 301 | resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.21.tgz#04fe7c7f9e1ed2d662233c28cb2b35b9f63f6e4f" 302 | integrity sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w== 303 | dependencies: 304 | buffer-from "^1.0.0" 305 | source-map "^0.6.0" 306 | 307 | source-map@^0.6.0: 308 | version "0.6.1" 309 | resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" 310 | integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== 311 | 312 | supports-color@^5.3.0: 313 | version "5.5.0" 314 | resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" 315 | integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow== 316 | dependencies: 317 | has-flag "^3.0.0" 318 | 319 | supports-color@^7.0.0: 320 | version "7.2.0" 321 | resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" 322 | integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== 323 | dependencies: 324 | has-flag "^4.0.0" 325 | 326 | terser@^5.0.0: 327 | version "5.26.0" 328 | resolved "https://registry.yarnpkg.com/terser/-/terser-5.26.0.tgz#ee9f05d929f4189a9c28a0feb889d96d50126fe1" 329 | integrity sha512-dytTGoE2oHgbNV9nTzgBEPaqAWvcJNl66VZ0BkJqlvp71IjO8CxdBx/ykCNb47cLnCmCvRZ6ZR0tLkqvZCdVBQ== 330 | dependencies: 331 | "@jridgewell/source-map" "^0.3.3" 332 | acorn "^8.8.2" 333 | commander "^2.20.0" 334 | source-map-support "~0.5.20" 335 | 336 | undici-types@~5.26.4: 337 | version "5.26.5" 338 | resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617" 339 | integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA== 340 | --------------------------------------------------------------------------------