From 193bdfbc5ee86d14ac9b07ba1cc62bab916cab0a Mon Sep 17 00:00:00 2001 From: Fraz Arshad Date: Fri, 7 Jun 2024 18:44:05 +0500 Subject: [PATCH 1/4] feat: added a testing app for ui-kit --- package.json | 3 +- packages/webapp/.eslintrc.cjs | 18 + packages/webapp/.gitignore | 24 + packages/webapp/README.md | 30 + packages/webapp/index.html | 13 + packages/webapp/package.json | 32 + packages/webapp/src/App.css | 42 ++ packages/webapp/src/App.tsx | 47 ++ packages/webapp/src/index.css | 68 +++ packages/webapp/src/installSesLockdown.ts | 15 + packages/webapp/src/main.tsx | 11 + packages/webapp/src/vite-env.d.ts | 1 + packages/webapp/tsconfig.json | 25 + packages/webapp/tsconfig.node.json | 11 + packages/webapp/vite.config.ts | 13 + yarn.lock | 676 +++++++++++++++++++++- 16 files changed, 1014 insertions(+), 15 deletions(-) create mode 100644 packages/webapp/.eslintrc.cjs create mode 100644 packages/webapp/.gitignore create mode 100644 packages/webapp/README.md create mode 100644 packages/webapp/index.html create mode 100644 packages/webapp/package.json create mode 100644 packages/webapp/src/App.css create mode 100644 packages/webapp/src/App.tsx create mode 100644 packages/webapp/src/index.css create mode 100644 packages/webapp/src/installSesLockdown.ts create mode 100644 packages/webapp/src/main.tsx create mode 100644 packages/webapp/src/vite-env.d.ts create mode 100644 packages/webapp/tsconfig.json create mode 100644 packages/webapp/tsconfig.node.json create mode 100644 packages/webapp/vite.config.ts diff --git a/package.json b/package.json index c95788b..c165ae6 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "workspaces": [ "packages/rpc", "packages/web-components", - "packages/react-components" + "packages/react-components", + "packages/webapp" ], "type": "module", "packageManager": "yarn@4.2.2", diff --git a/packages/webapp/.eslintrc.cjs b/packages/webapp/.eslintrc.cjs new file mode 100644 index 0000000..d6c9537 --- /dev/null +++ b/packages/webapp/.eslintrc.cjs @@ -0,0 +1,18 @@ +module.exports = { + root: true, + env: { browser: true, es2020: true }, + extends: [ + 'eslint:recommended', + 'plugin:@typescript-eslint/recommended', + 'plugin:react-hooks/recommended', + ], + ignorePatterns: ['dist', '.eslintrc.cjs'], + parser: '@typescript-eslint/parser', + plugins: ['react-refresh'], + rules: { + 'react-refresh/only-export-components': [ + 'warn', + { allowConstantExport: true }, + ], + }, +} diff --git a/packages/webapp/.gitignore b/packages/webapp/.gitignore new file mode 100644 index 0000000..a547bf3 --- /dev/null +++ b/packages/webapp/.gitignore @@ -0,0 +1,24 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/packages/webapp/README.md b/packages/webapp/README.md new file mode 100644 index 0000000..0d6babe --- /dev/null +++ b/packages/webapp/README.md @@ -0,0 +1,30 @@ +# React + TypeScript + Vite + +This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. + +Currently, two official plugins are available: + +- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh +- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh + +## Expanding the ESLint configuration + +If you are developing a production application, we recommend updating the configuration to enable type aware lint rules: + +- Configure the top-level `parserOptions` property like this: + +```js +export default { + // other rules... + parserOptions: { + ecmaVersion: 'latest', + sourceType: 'module', + project: ['./tsconfig.json', './tsconfig.node.json'], + tsconfigRootDir: __dirname, + }, +} +``` + +- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked` +- Optionally add `plugin:@typescript-eslint/stylistic-type-checked` +- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list diff --git a/packages/webapp/index.html b/packages/webapp/index.html new file mode 100644 index 0000000..e4b78ea --- /dev/null +++ b/packages/webapp/index.html @@ -0,0 +1,13 @@ + + + + + + + Vite + React + TS + + +
+ + + diff --git a/packages/webapp/package.json b/packages/webapp/package.json new file mode 100644 index 0000000..5d85aa4 --- /dev/null +++ b/packages/webapp/package.json @@ -0,0 +1,32 @@ +{ + "name": "webapp", + "private": true, + "version": "0.0.0", + "type": "module", + "scripts": { + "dev": "vite", + "build": "tsc && vite build", + "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", + "postinstall": "patch-package", + "preview": "vite preview" + }, + "dependencies": { + "@agoric/react-components": "0.2.0", + "patch-package": "^7.0.0", + "react": "^18.2.0", + "react-dom": "^18.2.0", + "ses": "1.3.0" + }, + "devDependencies": { + "@types/react": "^18.2.66", + "@types/react-dom": "^18.2.22", + "@typescript-eslint/eslint-plugin": "^7.2.0", + "@typescript-eslint/parser": "^7.2.0", + "@vitejs/plugin-react": "^4.2.1", + "eslint": "^8.57.0", + "eslint-plugin-react-hooks": "^4.6.0", + "eslint-plugin-react-refresh": "^0.4.6", + "typescript": "^5.2.2", + "vite": "^5.2.0" + } +} diff --git a/packages/webapp/src/App.css b/packages/webapp/src/App.css new file mode 100644 index 0000000..b9d355d --- /dev/null +++ b/packages/webapp/src/App.css @@ -0,0 +1,42 @@ +#root { + max-width: 1280px; + margin: 0 auto; + padding: 2rem; + text-align: center; +} + +.logo { + height: 6em; + padding: 1.5em; + will-change: filter; + transition: filter 300ms; +} +.logo:hover { + filter: drop-shadow(0 0 2em #646cffaa); +} +.logo.react:hover { + filter: drop-shadow(0 0 2em #61dafbaa); +} + +@keyframes logo-spin { + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } +} + +@media (prefers-reduced-motion: no-preference) { + a:nth-of-type(2) .logo { + animation: logo-spin infinite 20s linear; + } +} + +.card { + padding: 2em; +} + +.read-the-docs { + color: #888; +} diff --git a/packages/webapp/src/App.tsx b/packages/webapp/src/App.tsx new file mode 100644 index 0000000..85b9706 --- /dev/null +++ b/packages/webapp/src/App.tsx @@ -0,0 +1,47 @@ +import { AgoricProvider, ConnectWalletButton } from '@agoric/react-components'; +import { wallets } from 'cosmos-kit'; +import { ThemeProvider, useTheme } from '@interchain-ui/react'; +import '@agoric/react-components/dist/style.css'; + +const localnet = { + testChain: { + chainId: 'agoriclocal', + chainName: 'agoric-local', + }, + apis: { + rest: ['http://localhost:1317'], + rpc: ['http://localhost:26657'], + iconUrl: '/agoriclocal.svg', // Optional icon for Network Dropdown component + }, +}; + +// Omit "testChain" to specify the apis for Agoric Mainnet. +const mainnet = { + apis: { + rest: ['https://main.api.agoric.net'], + rpc: ['https://main.rpc.agoric.net'], + }, +}; + +const App = () => { + const { themeClass } = useTheme(); + return ( + +
+ + + +
+
+ ); +}; + +export default App; diff --git a/packages/webapp/src/index.css b/packages/webapp/src/index.css new file mode 100644 index 0000000..6119ad9 --- /dev/null +++ b/packages/webapp/src/index.css @@ -0,0 +1,68 @@ +:root { + font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif; + line-height: 1.5; + font-weight: 400; + + color-scheme: light dark; + color: rgba(255, 255, 255, 0.87); + background-color: #242424; + + font-synthesis: none; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +a { + font-weight: 500; + color: #646cff; + text-decoration: inherit; +} +a:hover { + color: #535bf2; +} + +body { + margin: 0; + display: flex; + place-items: center; + min-width: 320px; + min-height: 100vh; +} + +h1 { + font-size: 3.2em; + line-height: 1.1; +} + +button { + border-radius: 8px; + border: 1px solid transparent; + padding: 0.6em 1.2em; + font-size: 1em; + font-weight: 500; + font-family: inherit; + background-color: #1a1a1a; + cursor: pointer; + transition: border-color 0.25s; +} +button:hover { + border-color: #646cff; +} +button:focus, +button:focus-visible { + outline: 4px auto -webkit-focus-ring-color; +} + +@media (prefers-color-scheme: light) { + :root { + color: #213547; + background-color: #ffffff; + } + a:hover { + color: #747bff; + } + button { + background-color: #f9f9f9; + } +} diff --git a/packages/webapp/src/installSesLockdown.ts b/packages/webapp/src/installSesLockdown.ts new file mode 100644 index 0000000..2f03086 --- /dev/null +++ b/packages/webapp/src/installSesLockdown.ts @@ -0,0 +1,15 @@ +/* global lockdown */ +import 'ses'; +import '@endo/eventual-send/shim.js'; +import { Buffer } from 'buffer'; + +globalThis.Buffer = Buffer; + const consoleTaming = import.meta.env.PROD ? 'safe' : 'unsafe'; + +lockdown({ + errorTaming: 'unsafe', + overrideTaming: 'severe', + consoleTaming, +}); + +Error.stackTraceLimit = Infinity; \ No newline at end of file diff --git a/packages/webapp/src/main.tsx b/packages/webapp/src/main.tsx new file mode 100644 index 0000000..c290a22 --- /dev/null +++ b/packages/webapp/src/main.tsx @@ -0,0 +1,11 @@ +import './installSesLockdown' +import React from 'react' +import ReactDOM from 'react-dom/client' +import App from './App.tsx' +import './index.css' + +ReactDOM.createRoot(document.getElementById('root')!).render( + + + , +) diff --git a/packages/webapp/src/vite-env.d.ts b/packages/webapp/src/vite-env.d.ts new file mode 100644 index 0000000..11f02fe --- /dev/null +++ b/packages/webapp/src/vite-env.d.ts @@ -0,0 +1 @@ +/// diff --git a/packages/webapp/tsconfig.json b/packages/webapp/tsconfig.json new file mode 100644 index 0000000..a7fc6fb --- /dev/null +++ b/packages/webapp/tsconfig.json @@ -0,0 +1,25 @@ +{ + "compilerOptions": { + "target": "ES2020", + "useDefineForClassFields": true, + "lib": ["ES2020", "DOM", "DOM.Iterable"], + "module": "ESNext", + "skipLibCheck": true, + + /* Bundler mode */ + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "resolveJsonModule": true, + "isolatedModules": true, + "noEmit": true, + "jsx": "react-jsx", + + /* Linting */ + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noFallthroughCasesInSwitch": true + }, + "include": ["src"], + "references": [{ "path": "./tsconfig.node.json" }] +} diff --git a/packages/webapp/tsconfig.node.json b/packages/webapp/tsconfig.node.json new file mode 100644 index 0000000..97ede7e --- /dev/null +++ b/packages/webapp/tsconfig.node.json @@ -0,0 +1,11 @@ +{ + "compilerOptions": { + "composite": true, + "skipLibCheck": true, + "module": "ESNext", + "moduleResolution": "bundler", + "allowSyntheticDefaultImports": true, + "strict": true + }, + "include": ["vite.config.ts"] +} diff --git a/packages/webapp/vite.config.ts b/packages/webapp/vite.config.ts new file mode 100644 index 0000000..055efc3 --- /dev/null +++ b/packages/webapp/vite.config.ts @@ -0,0 +1,13 @@ +import { defineConfig, loadEnv } from 'vite' +import react from '@vitejs/plugin-react' + +// https://vitejs.dev/config/ +export default defineConfig(({ mode }) => { + const env = loadEnv(mode, process.cwd(), ''); + return { + define: { + 'process.env': env + }, + plugins: [react()], + } +}) \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index c7f6750..0f4e61f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -328,6 +328,30 @@ __metadata: languageName: node linkType: hard +"@agoric/react-components@npm:0.2.0": + version: 0.2.0 + resolution: "@agoric/react-components@npm:0.2.0" + dependencies: + "@agoric/rpc": "npm:^0.10.0" + "@agoric/web-components": "npm:^0.16.0" + "@cosmos-kit/core": "npm:2.8.9" + "@cosmos-kit/react": "npm:2.10.10" + "@interchain-ui/react": "npm:1.21.18" + "@leapwallet/elements": "npm:0.12.1" + chain-registry: "npm:1.28.0" + react: "npm:18.2.0" + react-dom: "npm:18.2.0" + peerDependencies: + "@cosmos-kit/core": 2.8.9 + "@cosmos-kit/react": 2.10.10 + "@interchain-ui/react": 1.21.18 + chain-registry: 1.28.0 + react: 18.2.0 + react-dom: 18.2.0 + checksum: 10c0/bece264a0cefba9e3f4de0f6fd734b5199fa87345dc6d005792bcd9e9a1ef8febe2b455e1c0fba9cc88b3c8eda7002926e033dfc13f7ed51b8e64ab5dfbefc8c + languageName: node + linkType: hard + "@agoric/react-components@workspace:packages/react-components": version: 0.0.0-use.local resolution: "@agoric/react-components@workspace:packages/react-components" @@ -956,6 +980,16 @@ __metadata: languageName: node linkType: hard +"@babel/code-frame@npm:^7.24.7": + version: 7.24.7 + resolution: "@babel/code-frame@npm:7.24.7" + dependencies: + "@babel/highlight": "npm:^7.24.7" + picocolors: "npm:^1.0.0" + checksum: 10c0/ab0af539473a9f5aeaac7047e377cb4f4edd255a81d84a76058595f8540784cc3fbe8acf73f1e073981104562490aabfb23008cd66dc677a456a4ed5390fdde6 + languageName: node + linkType: hard + "@babel/compat-data@npm:^7.22.6, @babel/compat-data@npm:^7.23.5, @babel/compat-data@npm:^7.24.4": version: 7.24.4 resolution: "@babel/compat-data@npm:7.24.4" @@ -963,6 +997,13 @@ __metadata: languageName: node linkType: hard +"@babel/compat-data@npm:^7.24.7": + version: 7.24.7 + resolution: "@babel/compat-data@npm:7.24.7" + checksum: 10c0/dcd93a5632b04536498fbe2be5af1057f635fd7f7090483d8e797878559037e5130b26862ceb359acbae93ed27e076d395ddb4663db6b28a665756ffd02d324f + languageName: node + linkType: hard + "@babel/core@npm:7.22.10": version: 7.22.10 resolution: "@babel/core@npm:7.22.10" @@ -1009,6 +1050,29 @@ __metadata: languageName: node linkType: hard +"@babel/core@npm:^7.24.5": + version: 7.24.7 + resolution: "@babel/core@npm:7.24.7" + dependencies: + "@ampproject/remapping": "npm:^2.2.0" + "@babel/code-frame": "npm:^7.24.7" + "@babel/generator": "npm:^7.24.7" + "@babel/helper-compilation-targets": "npm:^7.24.7" + "@babel/helper-module-transforms": "npm:^7.24.7" + "@babel/helpers": "npm:^7.24.7" + "@babel/parser": "npm:^7.24.7" + "@babel/template": "npm:^7.24.7" + "@babel/traverse": "npm:^7.24.7" + "@babel/types": "npm:^7.24.7" + convert-source-map: "npm:^2.0.0" + debug: "npm:^4.1.0" + gensync: "npm:^1.0.0-beta.2" + json5: "npm:^2.2.3" + semver: "npm:^6.3.1" + checksum: 10c0/4004ba454d3c20a46ea66264e06c15b82e9f6bdc35f88819907d24620da70dbf896abac1cb4cc4b6bb8642969e45f4d808497c9054a1388a386cf8c12e9b9e0d + languageName: node + linkType: hard + "@babel/generator@npm:^7.22.10, @babel/generator@npm:^7.22.9, @babel/generator@npm:^7.24.1, @babel/generator@npm:^7.24.4": version: 7.24.4 resolution: "@babel/generator@npm:7.24.4" @@ -1021,6 +1085,18 @@ __metadata: languageName: node linkType: hard +"@babel/generator@npm:^7.24.7": + version: 7.24.7 + resolution: "@babel/generator@npm:7.24.7" + dependencies: + "@babel/types": "npm:^7.24.7" + "@jridgewell/gen-mapping": "npm:^0.3.5" + "@jridgewell/trace-mapping": "npm:^0.3.25" + jsesc: "npm:^2.5.1" + checksum: 10c0/06b1f3350baf527a3309e50ffd7065f7aee04dd06e1e7db794ddfde7fe9d81f28df64edd587173f8f9295496a7ddb74b9a185d4bf4de7bb619e6d4ec45c8fd35 + languageName: node + linkType: hard + "@babel/helper-annotate-as-pure@npm:^7.22.5": version: 7.22.5 resolution: "@babel/helper-annotate-as-pure@npm:7.22.5" @@ -1052,6 +1128,19 @@ __metadata: languageName: node linkType: hard +"@babel/helper-compilation-targets@npm:^7.24.7": + version: 7.24.7 + resolution: "@babel/helper-compilation-targets@npm:7.24.7" + dependencies: + "@babel/compat-data": "npm:^7.24.7" + "@babel/helper-validator-option": "npm:^7.24.7" + browserslist: "npm:^4.22.2" + lru-cache: "npm:^5.1.1" + semver: "npm:^6.3.1" + checksum: 10c0/1d580a9bcacefe65e6bf02ba1dafd7ab278269fef45b5e281d8354d95c53031e019890464e7f9351898c01502dd2e633184eb0bcda49ed2ecd538675ce310f51 + languageName: node + linkType: hard + "@babel/helper-create-class-features-plugin@npm:^7.18.6, @babel/helper-create-class-features-plugin@npm:^7.24.1, @babel/helper-create-class-features-plugin@npm:^7.24.4": version: 7.24.4 resolution: "@babel/helper-create-class-features-plugin@npm:7.24.4" @@ -1106,6 +1195,15 @@ __metadata: languageName: node linkType: hard +"@babel/helper-environment-visitor@npm:^7.24.7": + version: 7.24.7 + resolution: "@babel/helper-environment-visitor@npm:7.24.7" + dependencies: + "@babel/types": "npm:^7.24.7" + checksum: 10c0/36ece78882b5960e2d26abf13cf15ff5689bf7c325b10a2895a74a499e712de0d305f8d78bb382dd3c05cfba7e47ec98fe28aab5674243e0625cd38438dd0b2d + languageName: node + linkType: hard + "@babel/helper-function-name@npm:^7.22.5, @babel/helper-function-name@npm:^7.23.0": version: 7.23.0 resolution: "@babel/helper-function-name@npm:7.23.0" @@ -1116,6 +1214,16 @@ __metadata: languageName: node linkType: hard +"@babel/helper-function-name@npm:^7.24.7": + version: 7.24.7 + resolution: "@babel/helper-function-name@npm:7.24.7" + dependencies: + "@babel/template": "npm:^7.24.7" + "@babel/types": "npm:^7.24.7" + checksum: 10c0/e5e41e6cf86bd0f8bf272cbb6e7c5ee0f3e9660414174435a46653efba4f2479ce03ce04abff2aa2ef9359cf057c79c06cb7b134a565ad9c0e8a50dcdc3b43c4 + languageName: node + linkType: hard + "@babel/helper-hoist-variables@npm:^7.22.5": version: 7.22.5 resolution: "@babel/helper-hoist-variables@npm:7.22.5" @@ -1125,6 +1233,15 @@ __metadata: languageName: node linkType: hard +"@babel/helper-hoist-variables@npm:^7.24.7": + version: 7.24.7 + resolution: "@babel/helper-hoist-variables@npm:7.24.7" + dependencies: + "@babel/types": "npm:^7.24.7" + checksum: 10c0/19ee37563bbd1219f9d98991ad0e9abef77803ee5945fd85aa7aa62a67c69efca9a801696a1b58dda27f211e878b3327789e6fd2a6f6c725ccefe36774b5ce95 + languageName: node + linkType: hard + "@babel/helper-member-expression-to-functions@npm:^7.23.0": version: 7.23.0 resolution: "@babel/helper-member-expression-to-functions@npm:7.23.0" @@ -1143,6 +1260,16 @@ __metadata: languageName: node linkType: hard +"@babel/helper-module-imports@npm:^7.24.7": + version: 7.24.7 + resolution: "@babel/helper-module-imports@npm:7.24.7" + dependencies: + "@babel/traverse": "npm:^7.24.7" + "@babel/types": "npm:^7.24.7" + checksum: 10c0/97c57db6c3eeaea31564286e328a9fb52b0313c5cfcc7eee4bc226aebcf0418ea5b6fe78673c0e4a774512ec6c86e309d0f326e99d2b37bfc16a25a032498af0 + languageName: node + linkType: hard + "@babel/helper-module-transforms@npm:^7.22.9, @babel/helper-module-transforms@npm:^7.23.3": version: 7.23.3 resolution: "@babel/helper-module-transforms@npm:7.23.3" @@ -1158,6 +1285,21 @@ __metadata: languageName: node linkType: hard +"@babel/helper-module-transforms@npm:^7.24.7": + version: 7.24.7 + resolution: "@babel/helper-module-transforms@npm:7.24.7" + dependencies: + "@babel/helper-environment-visitor": "npm:^7.24.7" + "@babel/helper-module-imports": "npm:^7.24.7" + "@babel/helper-simple-access": "npm:^7.24.7" + "@babel/helper-split-export-declaration": "npm:^7.24.7" + "@babel/helper-validator-identifier": "npm:^7.24.7" + peerDependencies: + "@babel/core": ^7.0.0 + checksum: 10c0/4f311755fcc3b4cbdb689386309cdb349cf0575a938f0b9ab5d678e1a81bbb265aa34ad93174838245f2ac7ff6d5ddbd0104638a75e4e961958ed514355687b6 + languageName: node + linkType: hard + "@babel/helper-optimise-call-expression@npm:^7.22.5": version: 7.22.5 resolution: "@babel/helper-optimise-call-expression@npm:7.22.5" @@ -1174,6 +1316,13 @@ __metadata: languageName: node linkType: hard +"@babel/helper-plugin-utils@npm:^7.24.7": + version: 7.24.7 + resolution: "@babel/helper-plugin-utils@npm:7.24.7" + checksum: 10c0/c3d38cd9b3520757bb4a279255cc3f956fc0ac1c193964bd0816ebd5c86e30710be8e35252227e0c9d9e0f4f56d9b5f916537f2bc588084b0988b4787a967d31 + languageName: node + linkType: hard + "@babel/helper-remap-async-to-generator@npm:^7.22.20": version: 7.22.20 resolution: "@babel/helper-remap-async-to-generator@npm:7.22.20" @@ -1209,6 +1358,16 @@ __metadata: languageName: node linkType: hard +"@babel/helper-simple-access@npm:^7.24.7": + version: 7.24.7 + resolution: "@babel/helper-simple-access@npm:7.24.7" + dependencies: + "@babel/traverse": "npm:^7.24.7" + "@babel/types": "npm:^7.24.7" + checksum: 10c0/7230e419d59a85f93153415100a5faff23c133d7442c19e0cd070da1784d13cd29096ee6c5a5761065c44e8164f9f80e3a518c41a0256df39e38f7ad6744fed7 + languageName: node + linkType: hard + "@babel/helper-skip-transparent-expression-wrappers@npm:^7.20.0, @babel/helper-skip-transparent-expression-wrappers@npm:^7.22.5": version: 7.22.5 resolution: "@babel/helper-skip-transparent-expression-wrappers@npm:7.22.5" @@ -1227,6 +1386,15 @@ __metadata: languageName: node linkType: hard +"@babel/helper-split-export-declaration@npm:^7.24.7": + version: 7.24.7 + resolution: "@babel/helper-split-export-declaration@npm:7.24.7" + dependencies: + "@babel/types": "npm:^7.24.7" + checksum: 10c0/0254577d7086bf09b01bbde98f731d4fcf4b7c3fa9634fdb87929801307c1f6202a1352e3faa5492450fa8da4420542d44de604daf540704ff349594a78184f6 + languageName: node + linkType: hard + "@babel/helper-string-parser@npm:^7.23.4": version: 7.24.1 resolution: "@babel/helper-string-parser@npm:7.24.1" @@ -1234,6 +1402,13 @@ __metadata: languageName: node linkType: hard +"@babel/helper-string-parser@npm:^7.24.7": + version: 7.24.7 + resolution: "@babel/helper-string-parser@npm:7.24.7" + checksum: 10c0/47840c7004e735f3dc93939c77b099bb41a64bf3dda0cae62f60e6f74a5ff80b63e9b7cf77b5ec25a324516381fc994e1f62f922533236a8e3a6af57decb5e1e + languageName: node + linkType: hard + "@babel/helper-validator-identifier@npm:^7.22.20": version: 7.22.20 resolution: "@babel/helper-validator-identifier@npm:7.22.20" @@ -1241,6 +1416,13 @@ __metadata: languageName: node linkType: hard +"@babel/helper-validator-identifier@npm:^7.24.7": + version: 7.24.7 + resolution: "@babel/helper-validator-identifier@npm:7.24.7" + checksum: 10c0/87ad608694c9477814093ed5b5c080c2e06d44cb1924ae8320474a74415241223cc2a725eea2640dd783ff1e3390e5f95eede978bc540e870053152e58f1d651 + languageName: node + linkType: hard + "@babel/helper-validator-option@npm:^7.23.5": version: 7.23.5 resolution: "@babel/helper-validator-option@npm:7.23.5" @@ -1248,6 +1430,13 @@ __metadata: languageName: node linkType: hard +"@babel/helper-validator-option@npm:^7.24.7": + version: 7.24.7 + resolution: "@babel/helper-validator-option@npm:7.24.7" + checksum: 10c0/21aea2b7bc5cc8ddfb828741d5c8116a84cbc35b4a3184ec53124f08e09746f1f67a6f9217850188995ca86059a7942e36d8965a6730784901def777b7e8a436 + languageName: node + linkType: hard + "@babel/helper-wrap-function@npm:^7.22.20": version: 7.22.20 resolution: "@babel/helper-wrap-function@npm:7.22.20" @@ -1270,6 +1459,16 @@ __metadata: languageName: node linkType: hard +"@babel/helpers@npm:^7.24.7": + version: 7.24.7 + resolution: "@babel/helpers@npm:7.24.7" + dependencies: + "@babel/template": "npm:^7.24.7" + "@babel/types": "npm:^7.24.7" + checksum: 10c0/aa8e230f6668773e17e141dbcab63e935c514b4b0bf1fed04d2eaefda17df68e16b61a56573f7f1d4d1e605ce6cc162b5f7e9fdf159fde1fd9b77c920ae47d27 + languageName: node + linkType: hard + "@babel/highlight@npm:^7.24.2": version: 7.24.2 resolution: "@babel/highlight@npm:7.24.2" @@ -1282,6 +1481,18 @@ __metadata: languageName: node linkType: hard +"@babel/highlight@npm:^7.24.7": + version: 7.24.7 + resolution: "@babel/highlight@npm:7.24.7" + dependencies: + "@babel/helper-validator-identifier": "npm:^7.24.7" + chalk: "npm:^2.4.2" + js-tokens: "npm:^4.0.0" + picocolors: "npm:^1.0.0" + checksum: 10c0/674334c571d2bb9d1c89bdd87566383f59231e16bcdcf5bb7835babdf03c9ae585ca0887a7b25bdf78f303984af028df52831c7989fecebb5101cc132da9393a + languageName: node + linkType: hard + "@babel/parser@npm:^7.1.0, @babel/parser@npm:^7.13.16, @babel/parser@npm:^7.17.3, @babel/parser@npm:^7.20.7, @babel/parser@npm:^7.22.10, @babel/parser@npm:^7.22.7, @babel/parser@npm:^7.24.0, @babel/parser@npm:^7.24.1, @babel/parser@npm:^7.24.4": version: 7.24.4 resolution: "@babel/parser@npm:7.24.4" @@ -1291,6 +1502,15 @@ __metadata: languageName: node linkType: hard +"@babel/parser@npm:^7.24.7": + version: 7.24.7 + resolution: "@babel/parser@npm:7.24.7" + bin: + parser: ./bin/babel-parser.js + checksum: 10c0/8b244756872185a1c6f14b979b3535e682ff08cb5a2a5fd97cc36c017c7ef431ba76439e95e419d43000c5b07720495b00cf29a7f0d9a483643d08802b58819b + languageName: node + linkType: hard + "@babel/plugin-bugfix-firefox-class-in-computed-class-key@npm:^7.24.4": version: 7.24.4 resolution: "@babel/plugin-bugfix-firefox-class-in-computed-class-key@npm:7.24.4" @@ -2093,6 +2313,17 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-react-jsx-self@npm:^7.24.5": + version: 7.24.7 + resolution: "@babel/plugin-transform-react-jsx-self@npm:7.24.7" + dependencies: + "@babel/helper-plugin-utils": "npm:^7.24.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/dcf3b732401f47f06bb29d6016e48066f66de00029a0ded98ddd9983c770a00a109d91cd04d2700d15ee0bcec3ae3027a5f12d69e15ec56efc0bcbfac65e92cb + languageName: node + linkType: hard + "@babel/plugin-transform-react-jsx-source@npm:^7.22.5": version: 7.24.1 resolution: "@babel/plugin-transform-react-jsx-source@npm:7.24.1" @@ -2104,6 +2335,17 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-react-jsx-source@npm:^7.24.1": + version: 7.24.7 + resolution: "@babel/plugin-transform-react-jsx-source@npm:7.24.7" + dependencies: + "@babel/helper-plugin-utils": "npm:^7.24.7" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/970ef1264c7c6c416ab11610665d5309aec2bd2b9086ae394e1132e65138d97b060a7dc9d31054e050d6dc475b5a213938c9707c0202a5022d55dcb4c5abe28f + languageName: node + linkType: hard + "@babel/plugin-transform-react-jsx@npm:^7.14.9": version: 7.23.4 resolution: "@babel/plugin-transform-react-jsx@npm:7.23.4" @@ -2433,6 +2675,17 @@ __metadata: languageName: node linkType: hard +"@babel/template@npm:^7.24.7": + version: 7.24.7 + resolution: "@babel/template@npm:7.24.7" + dependencies: + "@babel/code-frame": "npm:^7.24.7" + "@babel/parser": "npm:^7.24.7" + "@babel/types": "npm:^7.24.7" + checksum: 10c0/95b0b3ee80fcef685b7f4426f5713a855ea2cd5ac4da829b213f8fb5afe48a2a14683c2ea04d446dbc7f711c33c5cd4a965ef34dcbe5bc387c9e966b67877ae3 + languageName: node + linkType: hard + "@babel/traverse@npm:^7.17.3, @babel/traverse@npm:^7.22.10, @babel/traverse@npm:^7.22.8, @babel/traverse@npm:^7.24.1": version: 7.24.1 resolution: "@babel/traverse@npm:7.24.1" @@ -2451,6 +2704,24 @@ __metadata: languageName: node linkType: hard +"@babel/traverse@npm:^7.24.7": + version: 7.24.7 + resolution: "@babel/traverse@npm:7.24.7" + dependencies: + "@babel/code-frame": "npm:^7.24.7" + "@babel/generator": "npm:^7.24.7" + "@babel/helper-environment-visitor": "npm:^7.24.7" + "@babel/helper-function-name": "npm:^7.24.7" + "@babel/helper-hoist-variables": "npm:^7.24.7" + "@babel/helper-split-export-declaration": "npm:^7.24.7" + "@babel/parser": "npm:^7.24.7" + "@babel/types": "npm:^7.24.7" + debug: "npm:^4.3.1" + globals: "npm:^11.1.0" + checksum: 10c0/a5135e589c3f1972b8877805f50a084a04865ccb1d68e5e1f3b94a8841b3485da4142e33413d8fd76bc0e6444531d3adf1f59f359c11ffac452b743d835068ab + languageName: node + linkType: hard + "@babel/types@npm:^7.0.0, @babel/types@npm:^7.17.0, @babel/types@npm:^7.20.7, @babel/types@npm:^7.22.10, @babel/types@npm:^7.22.15, @babel/types@npm:^7.22.19, @babel/types@npm:^7.22.5, @babel/types@npm:^7.23.0, @babel/types@npm:^7.23.4, @babel/types@npm:^7.24.0, @babel/types@npm:^7.4.4, @babel/types@npm:^7.8.3": version: 7.24.0 resolution: "@babel/types@npm:7.24.0" @@ -2462,6 +2733,17 @@ __metadata: languageName: node linkType: hard +"@babel/types@npm:^7.24.7": + version: 7.24.7 + resolution: "@babel/types@npm:7.24.7" + dependencies: + "@babel/helper-string-parser": "npm:^7.24.7" + "@babel/helper-validator-identifier": "npm:^7.24.7" + to-fast-properties: "npm:^2.0.0" + checksum: 10c0/d9ecbfc3eb2b05fb1e6eeea546836ac30d990f395ef3fe3f75ced777a222c3cfc4489492f72e0ce3d9a5a28860a1ce5f81e66b88cf5088909068b3ff4fab72c1 + languageName: node + linkType: hard + "@bcoe/v8-coverage@npm:^0.2.3": version: 0.2.3 resolution: "@bcoe/v8-coverage@npm:0.2.3" @@ -3960,6 +4242,13 @@ __metadata: languageName: node linkType: hard +"@endo/env-options@npm:^1.1.1, @endo/env-options@npm:^1.1.4": + version: 1.1.4 + resolution: "@endo/env-options@npm:1.1.4" + checksum: 10c0/8816c8fe1332a6f3366e7e4849b000d757fcd181eac011ed8363ccc4e66dfa2f2d975f8d5cbfb3844f3e327c5391e77ee7e234a59a21744c74c945f683b56df1 + languageName: node + linkType: hard + "@endo/env-options@npm:^1.1.3": version: 1.1.3 resolution: "@endo/env-options@npm:1.1.3" @@ -3967,13 +4256,6 @@ __metadata: languageName: node linkType: hard -"@endo/env-options@npm:^1.1.4": - version: 1.1.4 - resolution: "@endo/env-options@npm:1.1.4" - checksum: 10c0/8816c8fe1332a6f3366e7e4849b000d757fcd181eac011ed8363ccc4e66dfa2f2d975f8d5cbfb3844f3e327c5391e77ee7e234a59a21744c74c945f683b56df1 - languageName: node - linkType: hard - "@endo/errors@npm:^1.2.1": version: 1.2.1 resolution: "@endo/errors@npm:1.2.1" @@ -9300,7 +9582,7 @@ __metadata: languageName: node linkType: hard -"@types/babel__core@npm:^7.0.0": +"@types/babel__core@npm:^7.0.0, @types/babel__core@npm:^7.20.5": version: 7.20.5 resolution: "@types/babel__core@npm:7.20.5" dependencies: @@ -9634,7 +9916,7 @@ __metadata: languageName: node linkType: hard -"@types/react-dom@npm:18.3.0": +"@types/react-dom@npm:18.3.0, @types/react-dom@npm:^18.2.22": version: 18.3.0 resolution: "@types/react-dom@npm:18.3.0" dependencies: @@ -9672,6 +9954,16 @@ __metadata: languageName: node linkType: hard +"@types/react@npm:^18.2.66": + version: 18.3.3 + resolution: "@types/react@npm:18.3.3" + dependencies: + "@types/prop-types": "npm:*" + csstype: "npm:^3.0.2" + checksum: 10c0/fe455f805c5da13b89964c3d68060cebd43e73ec15001a68b34634604a78140e6fc202f3f61679b9d809dde6d7a7c2cb3ed51e0fd1462557911db09879b55114 + languageName: node + linkType: hard + "@types/resolve@npm:1.17.1": version: 1.17.1 resolution: "@types/resolve@npm:1.17.1" @@ -9732,6 +10024,29 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/eslint-plugin@npm:^7.2.0": + version: 7.12.0 + resolution: "@typescript-eslint/eslint-plugin@npm:7.12.0" + dependencies: + "@eslint-community/regexpp": "npm:^4.10.0" + "@typescript-eslint/scope-manager": "npm:7.12.0" + "@typescript-eslint/type-utils": "npm:7.12.0" + "@typescript-eslint/utils": "npm:7.12.0" + "@typescript-eslint/visitor-keys": "npm:7.12.0" + graphemer: "npm:^1.4.0" + ignore: "npm:^5.3.1" + natural-compare: "npm:^1.4.0" + ts-api-utils: "npm:^1.3.0" + peerDependencies: + "@typescript-eslint/parser": ^7.0.0 + eslint: ^8.56.0 + peerDependenciesMeta: + typescript: + optional: true + checksum: 10c0/abf899e07144e8edd8ae010d25e4679e2acded407a10efc6aaa7ee325af8daf0dd149946ad58e46982e29e0a23f56b1e0dd461ef09aab09b0d94fc24ffc827c2 + languageName: node + linkType: hard + "@typescript-eslint/eslint-plugin@npm:^7.8.0": version: 7.8.0 resolution: "@typescript-eslint/eslint-plugin@npm:7.8.0" @@ -9775,6 +10090,24 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/parser@npm:^7.2.0": + version: 7.12.0 + resolution: "@typescript-eslint/parser@npm:7.12.0" + dependencies: + "@typescript-eslint/scope-manager": "npm:7.12.0" + "@typescript-eslint/types": "npm:7.12.0" + "@typescript-eslint/typescript-estree": "npm:7.12.0" + "@typescript-eslint/visitor-keys": "npm:7.12.0" + debug: "npm:^4.3.4" + peerDependencies: + eslint: ^8.56.0 + peerDependenciesMeta: + typescript: + optional: true + checksum: 10c0/223c32a6ba6cee770ee39108fb0a6d132283673d44c751bec85d8792df3382ddb839617787d183dc8fd7686d8a2018bf1ec0f3d63b7010c4370913f249c80fbc + languageName: node + linkType: hard + "@typescript-eslint/parser@npm:^7.8.0": version: 7.8.0 resolution: "@typescript-eslint/parser@npm:7.8.0" @@ -9823,6 +10156,16 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/scope-manager@npm:7.12.0": + version: 7.12.0 + resolution: "@typescript-eslint/scope-manager@npm:7.12.0" + dependencies: + "@typescript-eslint/types": "npm:7.12.0" + "@typescript-eslint/visitor-keys": "npm:7.12.0" + checksum: 10c0/7af53cd9045cc70459e4f451377affc0ef03e67bd743480ab2cbfebe1b7d8269fc639406966930c5abb26f1b633623c98442c2b60f6257e0ce1555439343d5e9 + languageName: node + linkType: hard + "@typescript-eslint/scope-manager@npm:7.8.0": version: 7.8.0 resolution: "@typescript-eslint/scope-manager@npm:7.8.0" @@ -9833,6 +10176,23 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/type-utils@npm:7.12.0": + version: 7.12.0 + resolution: "@typescript-eslint/type-utils@npm:7.12.0" + dependencies: + "@typescript-eslint/typescript-estree": "npm:7.12.0" + "@typescript-eslint/utils": "npm:7.12.0" + debug: "npm:^4.3.4" + ts-api-utils: "npm:^1.3.0" + peerDependencies: + eslint: ^8.56.0 + peerDependenciesMeta: + typescript: + optional: true + checksum: 10c0/41f4aa20d24724b461eb0cdac69d91ef60c2b628fb4a5739e4dbb8378aa4a7ff20c302f60e5d74ce75d5b99fcd3e3d71b9b3c96a1714aac47ce2ce5d6d611fcd + languageName: node + linkType: hard + "@typescript-eslint/type-utils@npm:7.8.0": version: 7.8.0 resolution: "@typescript-eslint/type-utils@npm:7.8.0" @@ -9871,6 +10231,13 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/types@npm:7.12.0": + version: 7.12.0 + resolution: "@typescript-eslint/types@npm:7.12.0" + checksum: 10c0/76786d02a0838750d74ad6e49b026875c0753b81c5a46a56525a1e82d89c0939a13434b03494e3b31b7ffbba7824f426c5b502a12337806a1f6ca560b5dad46c + languageName: node + linkType: hard + "@typescript-eslint/types@npm:7.8.0": version: 7.8.0 resolution: "@typescript-eslint/types@npm:7.8.0" @@ -9933,6 +10300,25 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/typescript-estree@npm:7.12.0": + version: 7.12.0 + resolution: "@typescript-eslint/typescript-estree@npm:7.12.0" + dependencies: + "@typescript-eslint/types": "npm:7.12.0" + "@typescript-eslint/visitor-keys": "npm:7.12.0" + debug: "npm:^4.3.4" + globby: "npm:^11.1.0" + is-glob: "npm:^4.0.3" + minimatch: "npm:^9.0.4" + semver: "npm:^7.6.0" + ts-api-utils: "npm:^1.3.0" + peerDependenciesMeta: + typescript: + optional: true + checksum: 10c0/855be5ba6c3d7540319ad250555055a798deb04855f26abe719a3b8d555a3227d52e09453930bd829e260a72f65a985998b235514ce2872b31615015da3163c0 + languageName: node + linkType: hard + "@typescript-eslint/typescript-estree@npm:7.8.0": version: 7.8.0 resolution: "@typescript-eslint/typescript-estree@npm:7.8.0" @@ -9952,6 +10338,20 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/utils@npm:7.12.0": + version: 7.12.0 + resolution: "@typescript-eslint/utils@npm:7.12.0" + dependencies: + "@eslint-community/eslint-utils": "npm:^4.4.0" + "@typescript-eslint/scope-manager": "npm:7.12.0" + "@typescript-eslint/types": "npm:7.12.0" + "@typescript-eslint/typescript-estree": "npm:7.12.0" + peerDependencies: + eslint: ^8.56.0 + checksum: 10c0/04241c0313f2d061bc81ec2d5d589c9a723f8c1493e5b83d98f804ff9dac23c5e7157d9bb57bee8b458f40824f56ea65a02ebd344926a37cb58bf151cb4d3bf2 + languageName: node + linkType: hard + "@typescript-eslint/utils@npm:7.8.0": version: 7.8.0 resolution: "@typescript-eslint/utils@npm:7.8.0" @@ -10035,6 +10435,16 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/visitor-keys@npm:7.12.0": + version: 7.12.0 + resolution: "@typescript-eslint/visitor-keys@npm:7.12.0" + dependencies: + "@typescript-eslint/types": "npm:7.12.0" + eslint-visitor-keys: "npm:^3.4.3" + checksum: 10c0/f3aa6704961e65fa8d66fcde57cd28e382412bb8bec2e99312bf8cda38772ae9a74d6d95b9765f76a249bc9ab65624db34b8c00078ebad129b2e1b624e935d90 + languageName: node + linkType: hard + "@typescript-eslint/visitor-keys@npm:7.8.0": version: 7.8.0 resolution: "@typescript-eslint/visitor-keys@npm:7.8.0" @@ -10193,6 +10603,21 @@ __metadata: languageName: node linkType: hard +"@vitejs/plugin-react@npm:^4.2.1": + version: 4.3.0 + resolution: "@vitejs/plugin-react@npm:4.3.0" + dependencies: + "@babel/core": "npm:^7.24.5" + "@babel/plugin-transform-react-jsx-self": "npm:^7.24.5" + "@babel/plugin-transform-react-jsx-source": "npm:^7.24.1" + "@types/babel__core": "npm:^7.20.5" + react-refresh: "npm:^0.14.2" + peerDependencies: + vite: ^4.2.0 || ^5.0.0 + checksum: 10c0/38ef4c4b7fd626d3b47b5498bd248967eed970099c97f051f29dbe9f72792a4f511ccb10f664dff865c595526ab7265eda5837852bc82bb56a24030302eb23e3 + languageName: node + linkType: hard + "@vitest/coverage-c8@npm:^0.25.3": version: 0.25.8 resolution: "@vitest/coverage-c8@npm:0.25.8" @@ -11936,6 +12361,13 @@ __metadata: languageName: node linkType: hard +"at-least-node@npm:^1.0.0": + version: 1.0.0 + resolution: "at-least-node@npm:1.0.0" + checksum: 10c0/4c058baf6df1bc5a1697cf182e2029c58cd99975288a13f9e70068ef5d6f4e1f1fd7c4d2c3c4912eae44797d1725be9700995736deca441b39f3e66d8dee97ef + languageName: node + linkType: hard + "atomic-sleep@npm:^1.0.0": version: 1.0.0 resolution: "atomic-sleep@npm:1.0.0" @@ -12360,6 +12792,15 @@ __metadata: languageName: node linkType: hard +"braces@npm:^3.0.3": + version: 3.0.3 + resolution: "braces@npm:3.0.3" + dependencies: + fill-range: "npm:^7.1.1" + checksum: 10c0/7c6dfd30c338d2997ba77500539227b9d1f85e388a5f43220865201e407e076783d0881f2d297b9f80951b4c957fcf0b51c1d2d24227631643c3f7c284b0aa04 + languageName: node + linkType: hard + "brorand@npm:^1.0.1, brorand@npm:^1.1.0": version: 1.1.0 resolution: "brorand@npm:1.1.0" @@ -12857,7 +13298,7 @@ __metadata: languageName: node linkType: hard -"ci-info@npm:^3.2.0, ci-info@npm:^3.6.1": +"ci-info@npm:^3.2.0, ci-info@npm:^3.6.1, ci-info@npm:^3.7.0": version: 3.9.0 resolution: "ci-info@npm:3.9.0" checksum: 10c0/6f0109e36e111684291d46123d491bc4e7b7a1934c3a20dea28cba89f1d4a03acd892f5f6a81ed3855c38647e285a150e3c9ba062e38943bef57fee6c1554c3a @@ -15202,6 +15643,15 @@ __metadata: languageName: node linkType: hard +"eslint-plugin-react-refresh@npm:^0.4.6": + version: 0.4.7 + resolution: "eslint-plugin-react-refresh@npm:0.4.7" + peerDependencies: + eslint: ">=7" + checksum: 10c0/78600fe6b10905e7a068a377a381f315c962e3cb7c0575ffcb2136a1fe3dd6936bdfabb56c8f053a581b322a8fbffd7b7ec4b6fa7e227e5470f38fbe9bb170ee + languageName: node + linkType: hard + "eslint-plugin-react@npm:7.33.1": version: 7.33.1 resolution: "eslint-plugin-react@npm:7.33.1" @@ -15952,6 +16402,15 @@ __metadata: languageName: node linkType: hard +"fill-range@npm:^7.1.1": + version: 7.1.1 + resolution: "fill-range@npm:7.1.1" + dependencies: + to-regex-range: "npm:^5.0.1" + checksum: 10c0/b75b691bbe065472f38824f694c2f7449d7f5004aa950426a2c28f0306c60db9b880c0b0e4ed819997ffb882d1da02cfcfc819bddc94d71627f5269682edf018 + languageName: node + linkType: hard + "filter-obj@npm:^1.1.0": version: 1.1.0 resolution: "filter-obj@npm:1.1.0" @@ -16054,6 +16513,15 @@ __metadata: languageName: node linkType: hard +"find-yarn-workspace-root@npm:^2.0.0": + version: 2.0.0 + resolution: "find-yarn-workspace-root@npm:2.0.0" + dependencies: + micromatch: "npm:^4.0.2" + checksum: 10c0/b0d3843013fbdaf4e57140e0165889d09fa61745c9e85da2af86e54974f4cc9f1967e40f0d8fc36a79d53091f0829c651d06607d552582e53976f3cd8f4e5689 + languageName: node + linkType: hard + "flat-cache@npm:^3.0.4": version: 3.2.0 resolution: "flat-cache@npm:3.2.0" @@ -16204,6 +16672,18 @@ __metadata: languageName: node linkType: hard +"fs-extra@npm:^9.0.0": + version: 9.1.0 + resolution: "fs-extra@npm:9.1.0" + dependencies: + at-least-node: "npm:^1.0.0" + graceful-fs: "npm:^4.2.0" + jsonfile: "npm:^6.0.1" + universalify: "npm:^2.0.0" + checksum: 10c0/9b808bd884beff5cb940773018179a6b94a966381d005479f00adda6b44e5e3d4abf765135773d849cc27efe68c349e4a7b86acd7d3306d5932c14f3a4b17a92 + languageName: node + linkType: hard + "fs-extra@npm:~7.0.1": version: 7.0.1 resolution: "fs-extra@npm:7.0.1" @@ -17825,7 +18305,7 @@ __metadata: languageName: node linkType: hard -"is-wsl@npm:^2.2.0": +"is-wsl@npm:^2.1.1, is-wsl@npm:^2.2.0": version: 2.2.0 resolution: "is-wsl@npm:2.2.0" dependencies: @@ -18486,6 +18966,15 @@ __metadata: languageName: node linkType: hard +"klaw-sync@npm:^6.0.0": + version: 6.0.0 + resolution: "klaw-sync@npm:6.0.0" + dependencies: + graceful-fs: "npm:^4.1.11" + checksum: 10c0/00d8e4c48d0d699b743b3b028e807295ea0b225caf6179f51029e19783a93ad8bb9bccde617d169659fbe99559d73fb35f796214de031d0023c26b906cecd70a + languageName: node + linkType: hard + "kleur@npm:^3.0.3": version: 3.0.3 resolution: "kleur@npm:3.0.3" @@ -19350,6 +19839,16 @@ __metadata: languageName: node linkType: hard +"micromatch@npm:^4.0.2": + version: 4.0.7 + resolution: "micromatch@npm:4.0.7" + dependencies: + braces: "npm:^3.0.3" + picomatch: "npm:^2.3.1" + checksum: 10c0/58fa99bc5265edec206e9163a1d2cec5fabc46a5b473c45f4a700adce88c2520456ae35f2b301e4410fb3afb27e9521fb2813f6fc96be0a48a89430e0916a772 + languageName: node + linkType: hard + "micromatch@npm:^4.0.4, micromatch@npm:^4.0.5": version: 4.0.5 resolution: "micromatch@npm:4.0.5" @@ -20623,6 +21122,16 @@ __metadata: languageName: node linkType: hard +"open@npm:^7.4.2": + version: 7.4.2 + resolution: "open@npm:7.4.2" + dependencies: + is-docker: "npm:^2.0.0" + is-wsl: "npm:^2.1.1" + checksum: 10c0/77573a6a68f7364f3a19a4c80492712720746b63680ee304555112605ead196afe91052bd3c3d165efdf4e9d04d255e87de0d0a77acec11ef47fd5261251813f + languageName: node + linkType: hard + "open@npm:^8.0.4, open@npm:^8.4.0": version: 8.4.2 resolution: "open@npm:8.4.2" @@ -20985,6 +21494,30 @@ __metadata: languageName: node linkType: hard +"patch-package@npm:^7.0.0": + version: 7.0.2 + resolution: "patch-package@npm:7.0.2" + dependencies: + "@yarnpkg/lockfile": "npm:^1.1.0" + chalk: "npm:^4.1.2" + ci-info: "npm:^3.7.0" + cross-spawn: "npm:^7.0.3" + find-yarn-workspace-root: "npm:^2.0.0" + fs-extra: "npm:^9.0.0" + klaw-sync: "npm:^6.0.0" + minimist: "npm:^1.2.6" + open: "npm:^7.4.2" + rimraf: "npm:^2.6.3" + semver: "npm:^7.5.3" + slash: "npm:^2.0.0" + tmp: "npm:^0.0.33" + yaml: "npm:^2.2.2" + bin: + patch-package: index.js + checksum: 10c0/f17ce30ca57f85c2891f81bdf501211599514844bb6be1f7a0dd5adae9840b448046269eea96797a367435b894999127d508d93d28af7b27e2feb8ceea7b91d2 + languageName: node + linkType: hard + "path-browserify@npm:^1.0.1": version: 1.0.1 resolution: "path-browserify@npm:1.0.1" @@ -21985,6 +22518,18 @@ __metadata: languageName: node linkType: hard +"react-dom@npm:^18.2.0": + version: 18.3.1 + resolution: "react-dom@npm:18.3.1" + dependencies: + loose-envify: "npm:^1.1.0" + scheduler: "npm:^0.23.2" + peerDependencies: + react: ^18.3.1 + checksum: 10c0/a752496c1941f958f2e8ac56239172296fcddce1365ce45222d04a1947e0cc5547df3e8447f855a81d6d39f008d7c32eab43db3712077f09e3f67c4874973e85 + languageName: node + linkType: hard + "react-icons@npm:4.4.0": version: 4.4.0 resolution: "react-icons@npm:4.4.0" @@ -22022,6 +22567,13 @@ __metadata: languageName: node linkType: hard +"react-refresh@npm:^0.14.2": + version: 0.14.2 + resolution: "react-refresh@npm:0.14.2" + checksum: 10c0/875b72ef56b147a131e33f2abd6ec059d1989854b3ff438898e4f9310bfcc73acff709445b7ba843318a953cb9424bcc2c05af2b3d80011cee28f25aef3e2ebb + languageName: node + linkType: hard + "react-remove-scroll-bar@npm:^2.3.3": version: 2.3.6 resolution: "react-remove-scroll-bar@npm:2.3.6" @@ -22116,6 +22668,15 @@ __metadata: languageName: node linkType: hard +"react@npm:^18.2.0": + version: 18.3.1 + resolution: "react@npm:18.3.1" + dependencies: + loose-envify: "npm:^1.1.0" + checksum: 10c0/283e8c5efcf37802c9d1ce767f302dd569dd97a70d9bb8c7be79a789b9902451e0d16334b05d73299b20f048cbc3c7d288bbbde10b701fa194e2089c237dbea3 + languageName: node + linkType: hard + "read-cache@npm:^1.0.0": version: 1.0.0 resolution: "read-cache@npm:1.0.0" @@ -22568,7 +23129,7 @@ __metadata: languageName: node linkType: hard -"rimraf@npm:^2.6.1": +"rimraf@npm:^2.6.1, rimraf@npm:^2.6.3": version: 2.7.1 resolution: "rimraf@npm:2.7.1" dependencies: @@ -22849,6 +23410,15 @@ __metadata: languageName: node linkType: hard +"scheduler@npm:^0.23.2": + version: 0.23.2 + resolution: "scheduler@npm:0.23.2" + dependencies: + loose-envify: "npm:^1.1.0" + checksum: 10c0/26383305e249651d4c58e6705d5f8425f153211aef95f15161c151f7b8de885f24751b377e4a0b3dd42cce09aad3f87a61dab7636859c0d89b7daf1a1e2a5c78 + languageName: node + linkType: hard + "schema-utils@npm:^3.1.1, schema-utils@npm:^3.2.0": version: 3.3.0 resolution: "schema-utils@npm:3.3.0" @@ -22997,6 +23567,15 @@ __metadata: languageName: node linkType: hard +"ses@npm:1.3.0": + version: 1.3.0 + resolution: "ses@npm:1.3.0" + dependencies: + "@endo/env-options": "npm:^1.1.1" + checksum: 10c0/a1385c91a23677de3b91ffa93a8f08134b6657f93c3002b2269c961e28c19deeeadce4ae30a7bcc177a312268fa8d21de2aa5acfc4370055c17dd8c53885ffa4 + languageName: node + linkType: hard + "ses@npm:^0.18.4, ses@npm:^0.18.5, ses@npm:^0.18.8": version: 0.18.8 resolution: "ses@npm:0.18.8" @@ -23218,6 +23797,13 @@ __metadata: languageName: node linkType: hard +"slash@npm:^2.0.0": + version: 2.0.0 + resolution: "slash@npm:2.0.0" + checksum: 10c0/f83dbd3cb62c41bb8fcbbc6bf5473f3234b97fa1d008f571710a9d3757a28c7169e1811cad1554ccb1cc531460b3d221c9a7b37f549398d9a30707f0a5af9193 + languageName: node + linkType: hard + "slice-ansi@npm:^3.0.0": version: 3.0.0 resolution: "slice-ansi@npm:3.0.0" @@ -24598,7 +25184,7 @@ __metadata: languageName: node linkType: hard -"typescript@npm:>=3 < 6": +"typescript@npm:>=3 < 6, typescript@npm:^5.2.2": version: 5.4.5 resolution: "typescript@npm:5.4.5" bin: @@ -24638,7 +25224,7 @@ __metadata: languageName: node linkType: hard -"typescript@patch:typescript@npm%3A>=3 < 6#optional!builtin": +"typescript@patch:typescript@npm%3A>=3 < 6#optional!builtin, typescript@patch:typescript@npm%3A^5.2.2#optional!builtin": version: 5.4.5 resolution: "typescript@patch:typescript@npm%3A5.4.5#optional!builtin::version=5.4.5&hash=5adc0c" bin: @@ -25366,6 +25952,46 @@ __metadata: languageName: node linkType: hard +"vite@npm:^5.2.0": + version: 5.2.12 + resolution: "vite@npm:5.2.12" + dependencies: + esbuild: "npm:^0.20.1" + fsevents: "npm:~2.3.3" + postcss: "npm:^8.4.38" + rollup: "npm:^4.13.0" + peerDependencies: + "@types/node": ^18.0.0 || >=20.0.0 + less: "*" + lightningcss: ^1.21.0 + sass: "*" + stylus: "*" + sugarss: "*" + terser: ^5.4.0 + dependenciesMeta: + fsevents: + optional: true + peerDependenciesMeta: + "@types/node": + optional: true + less: + optional: true + lightningcss: + optional: true + sass: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + bin: + vite: bin/vite.js + checksum: 10c0/f03fdfc320adea3397df3e327029fd875f8220779f679ab183a3a994e8788b4ce531fee28f830361fb274f3cf08ed9adb9429496ecefdc3faf535b38da7ea8b1 + languageName: node + linkType: hard + "vitest@npm:0.25.8": version: 0.25.8 resolution: "vitest@npm:0.25.8" @@ -25545,6 +26171,28 @@ __metadata: languageName: node linkType: hard +"webapp@workspace:packages/webapp": + version: 0.0.0-use.local + resolution: "webapp@workspace:packages/webapp" + dependencies: + "@agoric/react-components": "npm:0.2.0" + "@types/react": "npm:^18.2.66" + "@types/react-dom": "npm:^18.2.22" + "@typescript-eslint/eslint-plugin": "npm:^7.2.0" + "@typescript-eslint/parser": "npm:^7.2.0" + "@vitejs/plugin-react": "npm:^4.2.1" + eslint: "npm:^8.57.0" + eslint-plugin-react-hooks: "npm:^4.6.0" + eslint-plugin-react-refresh: "npm:^0.4.6" + patch-package: "npm:^7.0.0" + react: "npm:^18.2.0" + react-dom: "npm:^18.2.0" + ses: "npm:1.3.0" + typescript: "npm:^5.2.2" + vite: "npm:^5.2.0" + languageName: unknown + linkType: soft + "webextension-polyfill@npm:>=0.10.0 <1.0": version: 0.11.0 resolution: "webextension-polyfill@npm:0.11.0" From 1b2907e384213c7da8d05e7ad2e31f213e636bd8 Mon Sep 17 00:00:00 2001 From: Fraz Arshad Date: Fri, 7 Jun 2024 19:04:16 +0500 Subject: [PATCH 2/4] fixup! feat: added a testing app for ui-kit build: yarn lock update --- yarn.lock | 32 ++++---------------------------- 1 file changed, 4 insertions(+), 28 deletions(-) diff --git a/yarn.lock b/yarn.lock index 0f4e61f..2d71f07 100644 --- a/yarn.lock +++ b/yarn.lock @@ -328,31 +328,7 @@ __metadata: languageName: node linkType: hard -"@agoric/react-components@npm:0.2.0": - version: 0.2.0 - resolution: "@agoric/react-components@npm:0.2.0" - dependencies: - "@agoric/rpc": "npm:^0.10.0" - "@agoric/web-components": "npm:^0.16.0" - "@cosmos-kit/core": "npm:2.8.9" - "@cosmos-kit/react": "npm:2.10.10" - "@interchain-ui/react": "npm:1.21.18" - "@leapwallet/elements": "npm:0.12.1" - chain-registry: "npm:1.28.0" - react: "npm:18.2.0" - react-dom: "npm:18.2.0" - peerDependencies: - "@cosmos-kit/core": 2.8.9 - "@cosmos-kit/react": 2.10.10 - "@interchain-ui/react": 1.21.18 - chain-registry: 1.28.0 - react: 18.2.0 - react-dom: 18.2.0 - checksum: 10c0/bece264a0cefba9e3f4de0f6fd734b5199fa87345dc6d005792bcd9e9a1ef8febe2b455e1c0fba9cc88b3c8eda7002926e033dfc13f7ed51b8e64ab5dfbefc8c - languageName: node - linkType: hard - -"@agoric/react-components@workspace:packages/react-components": +"@agoric/react-components@npm:0.2.0, @agoric/react-components@workspace:packages/react-components": version: 0.0.0-use.local resolution: "@agoric/react-components@workspace:packages/react-components" dependencies: @@ -25953,8 +25929,8 @@ __metadata: linkType: hard "vite@npm:^5.2.0": - version: 5.2.12 - resolution: "vite@npm:5.2.12" + version: 5.2.13 + resolution: "vite@npm:5.2.13" dependencies: esbuild: "npm:^0.20.1" fsevents: "npm:~2.3.3" @@ -25988,7 +25964,7 @@ __metadata: optional: true bin: vite: bin/vite.js - checksum: 10c0/f03fdfc320adea3397df3e327029fd875f8220779f679ab183a3a994e8788b4ce531fee28f830361fb274f3cf08ed9adb9429496ecefdc3faf535b38da7ea8b1 + checksum: 10c0/f7a99da71884e69cc581dcfb43d73c8d56d73b9668d6980131603c544d6323c6003a20f376531dc0cfcf36bf5009bc465f89e6c5f8bd9d22868987aba4e4af1b languageName: node linkType: hard From a97a2d09eb03ea846a6865481e8320de50a22284 Mon Sep 17 00:00:00 2001 From: Fraz Arshad Date: Fri, 7 Jun 2024 23:09:04 +0500 Subject: [PATCH 3/4] fixup! feat: added a testing app for ui-kit chore: rename webapp to example --- package.json | 2 +- packages/{webapp => example}/.eslintrc.cjs | 0 packages/{webapp => example}/.gitignore | 0 packages/{webapp => example}/README.md | 0 packages/{webapp => example}/index.html | 0 packages/{webapp => example}/package.json | 2 +- packages/{webapp => example}/src/App.css | 0 packages/{webapp => example}/src/App.tsx | 0 packages/{webapp => example}/src/index.css | 0 .../src/installSesLockdown.ts | 0 packages/{webapp => example}/src/main.tsx | 0 .../{webapp => example}/src/vite-env.d.ts | 0 packages/{webapp => example}/tsconfig.json | 0 .../{webapp => example}/tsconfig.node.json | 0 packages/{webapp => example}/vite.config.ts | 0 yarn.lock | 44 +++++++++---------- 16 files changed, 24 insertions(+), 24 deletions(-) rename packages/{webapp => example}/.eslintrc.cjs (100%) rename packages/{webapp => example}/.gitignore (100%) rename packages/{webapp => example}/README.md (100%) rename packages/{webapp => example}/index.html (100%) rename packages/{webapp => example}/package.json (97%) rename packages/{webapp => example}/src/App.css (100%) rename packages/{webapp => example}/src/App.tsx (100%) rename packages/{webapp => example}/src/index.css (100%) rename packages/{webapp => example}/src/installSesLockdown.ts (100%) rename packages/{webapp => example}/src/main.tsx (100%) rename packages/{webapp => example}/src/vite-env.d.ts (100%) rename packages/{webapp => example}/tsconfig.json (100%) rename packages/{webapp => example}/tsconfig.node.json (100%) rename packages/{webapp => example}/vite.config.ts (100%) diff --git a/package.json b/package.json index c165ae6..40be833 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "packages/rpc", "packages/web-components", "packages/react-components", - "packages/webapp" + "packages/example" ], "type": "module", "packageManager": "yarn@4.2.2", diff --git a/packages/webapp/.eslintrc.cjs b/packages/example/.eslintrc.cjs similarity index 100% rename from packages/webapp/.eslintrc.cjs rename to packages/example/.eslintrc.cjs diff --git a/packages/webapp/.gitignore b/packages/example/.gitignore similarity index 100% rename from packages/webapp/.gitignore rename to packages/example/.gitignore diff --git a/packages/webapp/README.md b/packages/example/README.md similarity index 100% rename from packages/webapp/README.md rename to packages/example/README.md diff --git a/packages/webapp/index.html b/packages/example/index.html similarity index 100% rename from packages/webapp/index.html rename to packages/example/index.html diff --git a/packages/webapp/package.json b/packages/example/package.json similarity index 97% rename from packages/webapp/package.json rename to packages/example/package.json index 5d85aa4..b13c30a 100644 --- a/packages/webapp/package.json +++ b/packages/example/package.json @@ -1,5 +1,5 @@ { - "name": "webapp", + "name": "example", "private": true, "version": "0.0.0", "type": "module", diff --git a/packages/webapp/src/App.css b/packages/example/src/App.css similarity index 100% rename from packages/webapp/src/App.css rename to packages/example/src/App.css diff --git a/packages/webapp/src/App.tsx b/packages/example/src/App.tsx similarity index 100% rename from packages/webapp/src/App.tsx rename to packages/example/src/App.tsx diff --git a/packages/webapp/src/index.css b/packages/example/src/index.css similarity index 100% rename from packages/webapp/src/index.css rename to packages/example/src/index.css diff --git a/packages/webapp/src/installSesLockdown.ts b/packages/example/src/installSesLockdown.ts similarity index 100% rename from packages/webapp/src/installSesLockdown.ts rename to packages/example/src/installSesLockdown.ts diff --git a/packages/webapp/src/main.tsx b/packages/example/src/main.tsx similarity index 100% rename from packages/webapp/src/main.tsx rename to packages/example/src/main.tsx diff --git a/packages/webapp/src/vite-env.d.ts b/packages/example/src/vite-env.d.ts similarity index 100% rename from packages/webapp/src/vite-env.d.ts rename to packages/example/src/vite-env.d.ts diff --git a/packages/webapp/tsconfig.json b/packages/example/tsconfig.json similarity index 100% rename from packages/webapp/tsconfig.json rename to packages/example/tsconfig.json diff --git a/packages/webapp/tsconfig.node.json b/packages/example/tsconfig.node.json similarity index 100% rename from packages/webapp/tsconfig.node.json rename to packages/example/tsconfig.node.json diff --git a/packages/webapp/vite.config.ts b/packages/example/vite.config.ts similarity index 100% rename from packages/webapp/vite.config.ts rename to packages/example/vite.config.ts diff --git a/yarn.lock b/yarn.lock index 2d71f07..6608ba6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -16046,6 +16046,28 @@ __metadata: languageName: node linkType: hard +"example@workspace:packages/example": + version: 0.0.0-use.local + resolution: "example@workspace:packages/example" + dependencies: + "@agoric/react-components": "npm:0.2.0" + "@types/react": "npm:^18.2.66" + "@types/react-dom": "npm:^18.2.22" + "@typescript-eslint/eslint-plugin": "npm:^7.2.0" + "@typescript-eslint/parser": "npm:^7.2.0" + "@vitejs/plugin-react": "npm:^4.2.1" + eslint: "npm:^8.57.0" + eslint-plugin-react-hooks: "npm:^4.6.0" + eslint-plugin-react-refresh: "npm:^0.4.6" + patch-package: "npm:^7.0.0" + react: "npm:^18.2.0" + react-dom: "npm:^18.2.0" + ses: "npm:1.3.0" + typescript: "npm:^5.2.2" + vite: "npm:^5.2.0" + languageName: unknown + linkType: soft + "execa@npm:5.0.0": version: 5.0.0 resolution: "execa@npm:5.0.0" @@ -26147,28 +26169,6 @@ __metadata: languageName: node linkType: hard -"webapp@workspace:packages/webapp": - version: 0.0.0-use.local - resolution: "webapp@workspace:packages/webapp" - dependencies: - "@agoric/react-components": "npm:0.2.0" - "@types/react": "npm:^18.2.66" - "@types/react-dom": "npm:^18.2.22" - "@typescript-eslint/eslint-plugin": "npm:^7.2.0" - "@typescript-eslint/parser": "npm:^7.2.0" - "@vitejs/plugin-react": "npm:^4.2.1" - eslint: "npm:^8.57.0" - eslint-plugin-react-hooks: "npm:^4.6.0" - eslint-plugin-react-refresh: "npm:^0.4.6" - patch-package: "npm:^7.0.0" - react: "npm:^18.2.0" - react-dom: "npm:^18.2.0" - ses: "npm:1.3.0" - typescript: "npm:^5.2.2" - vite: "npm:^5.2.0" - languageName: unknown - linkType: soft - "webextension-polyfill@npm:>=0.10.0 <1.0": version: 0.11.0 resolution: "webextension-polyfill@npm:0.11.0" From bd51aa42dbe91e8735461b095cef4280a32d4d5a Mon Sep 17 00:00:00 2001 From: Fraz Arshad Date: Fri, 7 Jun 2024 23:11:36 +0500 Subject: [PATCH 4/4] refactor: update method to create process obj --- packages/example/src/installSesLockdown.ts | 8 ++++++-- packages/example/vite.config.ts | 14 +++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/packages/example/src/installSesLockdown.ts b/packages/example/src/installSesLockdown.ts index 2f03086..98e3827 100644 --- a/packages/example/src/installSesLockdown.ts +++ b/packages/example/src/installSesLockdown.ts @@ -4,7 +4,11 @@ import '@endo/eventual-send/shim.js'; import { Buffer } from 'buffer'; globalThis.Buffer = Buffer; - const consoleTaming = import.meta.env.PROD ? 'safe' : 'unsafe'; + +// @ts-expect-error Add process to context for cosmos-kit +globalThis.process = { env: import.meta.env }; + +const consoleTaming = import.meta.env.PROD ? 'safe' : 'unsafe'; lockdown({ errorTaming: 'unsafe', @@ -12,4 +16,4 @@ lockdown({ consoleTaming, }); -Error.stackTraceLimit = Infinity; \ No newline at end of file +Error.stackTraceLimit = Infinity; diff --git a/packages/example/vite.config.ts b/packages/example/vite.config.ts index 055efc3..5a4d960 100644 --- a/packages/example/vite.config.ts +++ b/packages/example/vite.config.ts @@ -1,13 +1,9 @@ -import { defineConfig, loadEnv } from 'vite' -import react from '@vitejs/plugin-react' +import { defineConfig } from 'vite'; +import react from '@vitejs/plugin-react'; // https://vitejs.dev/config/ -export default defineConfig(({ mode }) => { - const env = loadEnv(mode, process.cwd(), ''); +export default defineConfig(() => { return { - define: { - 'process.env': env - }, plugins: [react()], - } -}) \ No newline at end of file + }; +});