diff --git a/.eslintrc.json b/.eslintrc.json index 9ca2e830c..2f3cae4c1 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -25,11 +25,6 @@ "files": ["*.ts", "*.tsx"], "extends": ["plugin:@nx/typescript"], "rules": {} - }, - { - "files": ["*.js", "*.jsx"], - "extends": ["plugin:@nx/javascript"], - "rules": {} } ] } diff --git a/.github/workflows/release-main.yml b/.github/workflows/release-main.yml index dc7a6a6ad..75dcfbd60 100644 --- a/.github/workflows/release-main.yml +++ b/.github/workflows/release-main.yml @@ -40,22 +40,10 @@ jobs: run: npx nx run-many --target=test --all --parallel=5 - name: Build for publishing shell: bash - # configuration ci will put the dists in each project directory so changesets can publish - # NOTE: changed from ci to production and added script for copy run: npx nx run-many --target=build --configuration=production --all --parallel=5 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NOTION_TOKEN: ${{ secrets.NOTION_TOKEN }} - - name: Copy dists for publishing - run: ./scripts/copy-dists-for-publishing.sh - - name: Create Release Pull Request or Publish to NPM - uses: changesets/action@v1 - with: - commit: 'chore: release packages' - publish: npm run release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Containers shell: bash run: npx nx run-many --target=container --configuration=production -all --parallel=5 @@ -68,3 +56,19 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NOTION_TOKEN: ${{ secrets.NOTION_TOKEN }} + # If there are changesets, then update the release pull request + - name: Update release pull request or release versions + id: changesets + uses: changesets/action@v1 + with: + commit: 'chore: release packages' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Replace src code with dists for publishing + run: ./scripts/replace-src-with-dists-for-publishing.sh + # If there are no changesets, then try to publish to NPM, + # if the latest versions are already published, may fail + - name: Publish to NPM + if: steps.changesets.outputs.hasChangesets == 'false' + run: npm run release diff --git a/libs/data-sources/.eslintrc.json b/libs/data-sources/.eslintrc.json index 9d9c0db55..306b8e178 100644 --- a/libs/data-sources/.eslintrc.json +++ b/libs/data-sources/.eslintrc.json @@ -3,16 +3,11 @@ "ignorePatterns": ["!**/*"], "overrides": [ { - "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], - "rules": {} - }, - { - "files": ["*.ts", "*.tsx"], - "rules": {} - }, - { - "files": ["*.js", "*.jsx"], - "rules": {} + "files": ["*.json"], + "parser": "jsonc-eslint-parser", + "rules": { + "@nx/dependency-checks": "error" + } } ] } diff --git a/libs/data-sources/package.json b/libs/data-sources/package.json index c08c72bb0..db32c4b89 100644 --- a/libs/data-sources/package.json +++ b/libs/data-sources/package.json @@ -2,7 +2,19 @@ "name": "@siafoundation/data-sources", "description": "Data sources used for stats on the website.", "version": "0.1.0", - "type": "commonjs", "private": true, - "license": "MIT" + "license": "MIT", + "dependencies": { + "axios": "^0.27.2", + "feed": "^4.2.2", + "rss-parser": "^3.13.0", + "lodash": "^4.17.21", + "@notionhq/client": "^2.2.8", + "gray-matter": "^4.0.3", + "next-mdx-remote": "^4.0.3", + "remark-gfm": "^3.0.1", + "dotenv": "^16.0.3", + "tslib": "^2.6.2" + }, + "types": "./src/index.d.ts" } diff --git a/libs/data-sources/project.json b/libs/data-sources/project.json index e412b5647..926e559fc 100644 --- a/libs/data-sources/project.json +++ b/libs/data-sources/project.json @@ -18,7 +18,10 @@ "executor": "@nx/linter:eslint", "outputs": ["{options.outputFile}"], "options": { - "lintFilePatterns": ["libs/data-sources/**/*.ts"] + "lintFilePatterns": [ + "libs/data-sources/**/*.ts", + "libs/data-sources/package.json" + ] } }, "test": { diff --git a/libs/design-system/.eslintrc.json b/libs/design-system/.eslintrc.json index a39ac5d05..1e06b264c 100644 --- a/libs/design-system/.eslintrc.json +++ b/libs/design-system/.eslintrc.json @@ -3,16 +3,11 @@ "ignorePatterns": ["!**/*"], "overrides": [ { - "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], - "rules": {} - }, - { - "files": ["*.ts", "*.tsx"], - "rules": {} - }, - { - "files": ["*.js", "*.jsx"], - "rules": {} + "files": ["*.json"], + "parser": "jsonc-eslint-parser", + "rules": { + "@nx/dependency-checks": "error" + } } ] } diff --git a/libs/design-system/package.json b/libs/design-system/package.json index 16a1511a2..377699ff8 100644 --- a/libs/design-system/package.json +++ b/libs/design-system/package.json @@ -2,5 +2,72 @@ "name": "@siafoundation/design-system", "description": "React-based design system used across Sia apps and websites", "version": "0.57.0", - "license": "MIT" + "license": "MIT", + "dependencies": { + "@siafoundation/react-icons": "*", + "@siafoundation/sia-js": "*", + "@siafoundation/react-core": "*", + "@visx/group": "2.17.0", + "@visx/react-spring": "2.18.0", + "@visx/glyph": "2.17.0", + "@siafoundation/react-sia-central": "*", + "class-variance-authority": "^0.7.0", + "lodash": "^4.17.21", + "react": "18.2.0", + "swr": "^2.1.1", + "bignumber.js": "^9.0.2", + "next": "13.5.2", + "react-idle-timer": "^5.7.2", + "axios": "^0.27.2", + "react-hook-form": "^7.43.9", + "use-local-storage-state": "^18.3.3", + "formik": "^2.2.9", + "yup": "^0.32.11", + "react-qr-code": "^2.0.7", + "next-themes": "^0.2.1", + "date-fns": "^2.28.0", + "@visx/scale": "^2.18.0", + "@visx/pattern": "^2.17.0", + "@visx/brush": "^2.18.0", + "@visx/responsive": "^2.17.0", + "@visx/shape": "^2.18.0", + "@visx/curve": "^2.17.0", + "@visx/marker": "^2.18.0", + "@visx/axis": "^2.18.0", + "@visx/gradient": "^2.17.0", + "@visx/grid": "^2.18.0", + "@visx/tooltip": "^2.17.0", + "@visx/event": "^2.17.0", + "d3-array": "^3.1.6", + "@visx/xychart": "^2.18.0", + "react-dropzone": "^14.2.3", + "@radix-ui/react-radio-group": "^1.0.0", + "tailwindcss": "3.2.7", + "@next/font": "13.1.1", + "tailwind-scrollbar": "^2.0.1", + "tailwindcss-text-fill": "^0.2.0", + "tailwindcss-shadow-fill": "^1.0.1", + "@tailwindcss/container-queries": "^0.1.1", + "@radix-ui/react-accordion": "^1.0.0", + "@radix-ui/react-avatar": "^1.0.0", + "react-currency-input-field": "^3.6.5", + "@radix-ui/react-checkbox": "^1.0.0", + "framer-motion": "^7.6.5", + "@radix-ui/react-dialog": "^1.0.0", + "@radix-ui/react-dropdown-menu": "^1.0.0", + "@radix-ui/react-hover-card": "^1.0.3", + "@radix-ui/react-label": "^1.0.0", + "@radix-ui/react-separator": "^1.0.0", + "@radix-ui/react-navigation-menu": "^1.1.3", + "@radix-ui/react-popover": "^1.0.0", + "@radix-ui/react-progress": "^1.0.0", + "@radix-ui/react-scroll-area": "^1.0.0", + "@radix-ui/react-switch": "^1.0.0", + "@radix-ui/react-tabs": "^1.0.0", + "@radix-ui/react-tooltip": "^1.0.0", + "clipboard-polyfill": "^3.0.3", + "react-hot-toast": "^2.2.0", + "@nx/react": "16.8.1" + }, + "types": "./src/index.d.ts" } diff --git a/libs/design-system/project.json b/libs/design-system/project.json index 43ffa9f9d..b25d231a3 100644 --- a/libs/design-system/project.json +++ b/libs/design-system/project.json @@ -35,7 +35,10 @@ "executor": "@nx/linter:eslint", "outputs": ["{options.outputFile}"], "options": { - "lintFilePatterns": ["libs/design-system/**/*.{ts,tsx,js,jsx}"] + "lintFilePatterns": [ + "libs/design-system/**/*.{ts,tsx,js,jsx}", + "libs/design-system/package.json" + ] } }, "test": { diff --git a/libs/design-system/src/components/PaginatorKnownTotal.tsx b/libs/design-system/src/components/PaginatorKnownTotal.tsx index f3fcf0019..e5d2b6dd7 100644 --- a/libs/design-system/src/components/PaginatorKnownTotal.tsx +++ b/libs/design-system/src/components/PaginatorKnownTotal.tsx @@ -9,7 +9,7 @@ import { PageLast16, } from '@siafoundation/react-icons' import { useRouter } from 'next/router' -import { LoadingDots } from '..' +import { LoadingDots } from '../components/LoadingDots' type Props = { offset: number diff --git a/libs/design-system/src/core/Accordion.tsx b/libs/design-system/src/core/Accordion.tsx index 72aeac22c..dbf609be4 100644 --- a/libs/design-system/src/core/Accordion.tsx +++ b/libs/design-system/src/core/Accordion.tsx @@ -2,10 +2,10 @@ import React from 'react' import * as AccordionPrimitive from '@radix-ui/react-accordion' -import { ChevronDown16 } from '@siafoundation/react-icons' import { cva } from 'class-variance-authority' import { VariantProps } from '../types' import { Button } from './Button' +import { ChevronDown16 } from '@siafoundation/react-icons' export const Accordion = React.forwardRef< React.ElementRef, diff --git a/libs/react-core/.eslintrc.json b/libs/react-core/.eslintrc.json index a39ac5d05..1e06b264c 100644 --- a/libs/react-core/.eslintrc.json +++ b/libs/react-core/.eslintrc.json @@ -3,16 +3,11 @@ "ignorePatterns": ["!**/*"], "overrides": [ { - "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], - "rules": {} - }, - { - "files": ["*.ts", "*.tsx"], - "rules": {} - }, - { - "files": ["*.js", "*.jsx"], - "rules": {} + "files": ["*.json"], + "parser": "jsonc-eslint-parser", + "rules": { + "@nx/dependency-checks": "error" + } } ] } diff --git a/libs/react-core/package.json b/libs/react-core/package.json index 6f8a26ee6..18380881f 100644 --- a/libs/react-core/package.json +++ b/libs/react-core/package.json @@ -2,5 +2,14 @@ "name": "@siafoundation/react-core", "description": "Core Sia types and library methods.", "version": "0.14.0", - "license": "MIT" + "license": "MIT", + "dependencies": { + "swr": "^2.1.1", + "react": "18.2.0", + "axios": "^0.27.2", + "next": "13.5.2", + "use-local-storage-state": "^18.3.3", + "detect-gpu": "^5.0.34" + }, + "types": "./src/index.d.ts" } diff --git a/libs/react-core/project.json b/libs/react-core/project.json index 1680c164f..98b098518 100644 --- a/libs/react-core/project.json +++ b/libs/react-core/project.json @@ -30,7 +30,10 @@ "executor": "@nx/linter:eslint", "outputs": ["{options.outputFile}"], "options": { - "lintFilePatterns": ["libs/react-core/**/*.{ts,tsx,js,jsx}"] + "lintFilePatterns": [ + "libs/react-core/**/*.{ts,tsx,js,jsx}", + "libs/react-core/package.json" + ] } }, "test": { diff --git a/libs/react-hostd/.eslintrc.json b/libs/react-hostd/.eslintrc.json index 914866813..1e06b264c 100644 --- a/libs/react-hostd/.eslintrc.json +++ b/libs/react-hostd/.eslintrc.json @@ -1,18 +1,13 @@ { "extends": ["plugin:@nx/react", "../../.eslintrc.json"], - "ignorePatterns": ["!**/*", "src/types.ts"], + "ignorePatterns": ["!**/*"], "overrides": [ { - "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], - "rules": {} - }, - { - "files": ["*.ts", "*.tsx"], - "rules": {} - }, - { - "files": ["*.js", "*.jsx"], - "rules": {} + "files": ["*.json"], + "parser": "jsonc-eslint-parser", + "rules": { + "@nx/dependency-checks": "error" + } } ] } diff --git a/libs/react-hostd/package.json b/libs/react-hostd/package.json index 93d34be20..f74fe13f8 100644 --- a/libs/react-hostd/package.json +++ b/libs/react-hostd/package.json @@ -2,5 +2,10 @@ "name": "@siafoundation/react-hostd", "description": " React hooks for interacting with `hostd`.", "version": "0.9.0", - "license": "MIT" + "license": "MIT", + "dependencies": { + "@siafoundation/react-core": "*", + "swr": "^2.1.1" + }, + "types": "./src/index.d.ts" } diff --git a/libs/react-hostd/project.json b/libs/react-hostd/project.json index 1087c7e85..75b2f1421 100644 --- a/libs/react-hostd/project.json +++ b/libs/react-hostd/project.json @@ -30,7 +30,10 @@ "executor": "@nx/linter:eslint", "outputs": ["{options.outputFile}"], "options": { - "lintFilePatterns": ["libs/react-hostd/**/*.{ts,tsx,js,jsx}"] + "lintFilePatterns": [ + "libs/react-hostd/**/*.{ts,tsx,js,jsx}", + "libs/react-hostd/package.json" + ] } }, "test": { diff --git a/libs/react-icons/.eslintrc.json b/libs/react-icons/.eslintrc.json index a39ac5d05..1e06b264c 100644 --- a/libs/react-icons/.eslintrc.json +++ b/libs/react-icons/.eslintrc.json @@ -3,16 +3,11 @@ "ignorePatterns": ["!**/*"], "overrides": [ { - "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], - "rules": {} - }, - { - "files": ["*.ts", "*.tsx"], - "rules": {} - }, - { - "files": ["*.js", "*.jsx"], - "rules": {} + "files": ["*.json"], + "parser": "jsonc-eslint-parser", + "rules": { + "@nx/dependency-checks": "error" + } } ] } diff --git a/libs/react-icons/package.json b/libs/react-icons/package.json index 3043cc9c7..f3c1d2625 100644 --- a/libs/react-icons/package.json +++ b/libs/react-icons/package.json @@ -2,5 +2,9 @@ "name": "@siafoundation/react-icons", "description": "React-based icons used across Sia apps and websites", "version": "0.0.1", - "license": "MIT" + "license": "MIT", + "dependencies": { + "@carbon/icons-react": "^10.47.0" + }, + "types": "./src/index.d.ts" } diff --git a/libs/react-icons/project.json b/libs/react-icons/project.json index 61149f750..a557b7862 100644 --- a/libs/react-icons/project.json +++ b/libs/react-icons/project.json @@ -15,6 +15,7 @@ "entryFile": "libs/react-icons/src/index.ts", "external": ["react/jsx-runtime"], "rollupConfig": "@nx/react/plugins/bundle-rollup", + "format": ["esm", "cjs"], "compiler": "swc", "assets": [ { @@ -30,7 +31,10 @@ "executor": "@nx/linter:eslint", "outputs": ["{options.outputFile}"], "options": { - "lintFilePatterns": ["libs/react-icons/**/*.{ts,tsx,js,jsx}"] + "lintFilePatterns": [ + "libs/react-icons/**/*.{ts,tsx,js,jsx}", + "libs/react-icons/package.json" + ] } }, "test": { diff --git a/libs/react-icons/tailwind.config.js b/libs/react-icons/tailwind.config.js deleted file mode 100644 index d7faaa92f..000000000 --- a/libs/react-icons/tailwind.config.js +++ /dev/null @@ -1,14 +0,0 @@ -const { createGlobPatternsForDependencies } = require('@nx/react/tailwind') -const { join } = require('path') - -// This file provides tailwind intellisense within react-icons src files. -module.exports = { - content: [ - join( - __dirname, - 'src/{core,components,app,hooks,icons}/**/*!(*.stories|*.spec).{ts,tsx,html}' - ), - ...createGlobPatternsForDependencies(__dirname), - ], - presets: [require('./src/config/theme.js')], -} diff --git a/libs/react-renterd/.eslintrc.json b/libs/react-renterd/.eslintrc.json index 914866813..1e06b264c 100644 --- a/libs/react-renterd/.eslintrc.json +++ b/libs/react-renterd/.eslintrc.json @@ -1,18 +1,13 @@ { "extends": ["plugin:@nx/react", "../../.eslintrc.json"], - "ignorePatterns": ["!**/*", "src/types.ts"], + "ignorePatterns": ["!**/*"], "overrides": [ { - "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], - "rules": {} - }, - { - "files": ["*.ts", "*.tsx"], - "rules": {} - }, - { - "files": ["*.js", "*.jsx"], - "rules": {} + "files": ["*.json"], + "parser": "jsonc-eslint-parser", + "rules": { + "@nx/dependency-checks": "error" + } } ] } diff --git a/libs/react-renterd/package.json b/libs/react-renterd/package.json index 0cd61d564..a4d984528 100644 --- a/libs/react-renterd/package.json +++ b/libs/react-renterd/package.json @@ -2,5 +2,11 @@ "name": "@siafoundation/react-renterd", "description": " React hooks for interacting with `renterd`.", "version": "0.8.0", - "license": "MIT" + "license": "MIT", + "dependencies": { + "@siafoundation/react-core": "*", + "swr": "^2.1.1", + "lodash": "^4.17.21" + }, + "types": "./src/index.d.ts" } diff --git a/libs/react-renterd/project.json b/libs/react-renterd/project.json index c4aef1391..dd02b2300 100644 --- a/libs/react-renterd/project.json +++ b/libs/react-renterd/project.json @@ -30,7 +30,10 @@ "executor": "@nx/linter:eslint", "outputs": ["{options.outputFile}"], "options": { - "lintFilePatterns": ["libs/react-renterd/**/*.{ts,tsx,js,jsx}"] + "lintFilePatterns": [ + "libs/react-renterd/**/*.{ts,tsx,js,jsx}", + "libs/react-renterd/package.json" + ] } }, "test": { diff --git a/libs/react-sia-central/.eslintrc.json b/libs/react-sia-central/.eslintrc.json index a39ac5d05..1e06b264c 100644 --- a/libs/react-sia-central/.eslintrc.json +++ b/libs/react-sia-central/.eslintrc.json @@ -3,16 +3,11 @@ "ignorePatterns": ["!**/*"], "overrides": [ { - "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], - "rules": {} - }, - { - "files": ["*.ts", "*.tsx"], - "rules": {} - }, - { - "files": ["*.js", "*.jsx"], - "rules": {} + "files": ["*.json"], + "parser": "jsonc-eslint-parser", + "rules": { + "@nx/dependency-checks": "error" + } } ] } diff --git a/libs/react-sia-central/package.json b/libs/react-sia-central/package.json index 6c08ae9af..49d542a07 100644 --- a/libs/react-sia-central/package.json +++ b/libs/react-sia-central/package.json @@ -2,5 +2,10 @@ "name": "@siafoundation/react-sia-central", "description": "React hooks for interacting with the Sia Central API.", "version": "0.0.1", - "license": "MIT" + "license": "MIT", + "dependencies": { + "@siafoundation/react-core": "*", + "@siafoundation/sia-central": "*" + }, + "types": "./src/index.d.ts" } diff --git a/libs/react-sia-central/project.json b/libs/react-sia-central/project.json index 07e1197a4..f2a34bb4e 100644 --- a/libs/react-sia-central/project.json +++ b/libs/react-sia-central/project.json @@ -30,7 +30,10 @@ "executor": "@nx/linter:eslint", "outputs": ["{options.outputFile}"], "options": { - "lintFilePatterns": ["libs/react-sia-central/**/*.{ts,tsx,js,jsx}"] + "lintFilePatterns": [ + "libs/react-sia-central/**/*.{ts,tsx,js,jsx}", + "libs/react-sia-central/package.json" + ] } }, "test": { diff --git a/libs/react-walletd/.eslintrc.json b/libs/react-walletd/.eslintrc.json index 914866813..1e06b264c 100644 --- a/libs/react-walletd/.eslintrc.json +++ b/libs/react-walletd/.eslintrc.json @@ -1,18 +1,13 @@ { "extends": ["plugin:@nx/react", "../../.eslintrc.json"], - "ignorePatterns": ["!**/*", "src/types.ts"], + "ignorePatterns": ["!**/*"], "overrides": [ { - "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], - "rules": {} - }, - { - "files": ["*.ts", "*.tsx"], - "rules": {} - }, - { - "files": ["*.js", "*.jsx"], - "rules": {} + "files": ["*.json"], + "parser": "jsonc-eslint-parser", + "rules": { + "@nx/dependency-checks": "error" + } } ] } diff --git a/libs/react-walletd/package.json b/libs/react-walletd/package.json index 9109e5ae6..d698874a4 100644 --- a/libs/react-walletd/package.json +++ b/libs/react-walletd/package.json @@ -2,5 +2,10 @@ "name": "@siafoundation/react-walletd", "description": " React hooks for interacting with `walletd`.", "version": "0.2.0", - "license": "MIT" + "license": "MIT", + "dependencies": { + "@siafoundation/react-core": "*", + "swr": "^2.1.1" + }, + "types": "./src/index.d.ts" } diff --git a/libs/react-walletd/project.json b/libs/react-walletd/project.json index a54bd69de..797043ec5 100644 --- a/libs/react-walletd/project.json +++ b/libs/react-walletd/project.json @@ -30,7 +30,10 @@ "executor": "@nx/linter:eslint", "outputs": ["{options.outputFile}"], "options": { - "lintFilePatterns": ["libs/react-walletd/**/*.{ts,tsx,js,jsx}"] + "lintFilePatterns": [ + "libs/react-walletd/**/*.{ts,tsx,js,jsx}", + "libs/react-walletd/package.json" + ] } }, "test": { diff --git a/libs/sia-central/.eslintrc.json b/libs/sia-central/.eslintrc.json index a39ac5d05..1e06b264c 100644 --- a/libs/sia-central/.eslintrc.json +++ b/libs/sia-central/.eslintrc.json @@ -3,16 +3,11 @@ "ignorePatterns": ["!**/*"], "overrides": [ { - "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], - "rules": {} - }, - { - "files": ["*.ts", "*.tsx"], - "rules": {} - }, - { - "files": ["*.js", "*.jsx"], - "rules": {} + "files": ["*.json"], + "parser": "jsonc-eslint-parser", + "rules": { + "@nx/dependency-checks": "error" + } } ] } diff --git a/libs/sia-central/package.json b/libs/sia-central/package.json index a5cfbbb1d..7f9c91fe0 100644 --- a/libs/sia-central/package.json +++ b/libs/sia-central/package.json @@ -2,5 +2,9 @@ "name": "@siafoundation/sia-central", "description": "Methods and types for interacting with the Sia Central API.", "version": "0.0.1", - "license": "MIT" + "license": "MIT", + "dependencies": { + "lodash": "^4.17.21" + }, + "types": "./src/index.d.ts" } diff --git a/libs/sia-central/project.json b/libs/sia-central/project.json index 77dc910a8..7b945a1f2 100644 --- a/libs/sia-central/project.json +++ b/libs/sia-central/project.json @@ -30,7 +30,10 @@ "executor": "@nx/linter:eslint", "outputs": ["{options.outputFile}"], "options": { - "lintFilePatterns": ["libs/sia-central/**/*.{ts,tsx,js,jsx}"] + "lintFilePatterns": [ + "libs/sia-central/**/*.{ts,tsx,js,jsx}", + "libs/sia-central/package.json" + ] } }, "test": { diff --git a/libs/sia-js/.eslintrc.json b/libs/sia-js/.eslintrc.json index 9d9c0db55..306b8e178 100644 --- a/libs/sia-js/.eslintrc.json +++ b/libs/sia-js/.eslintrc.json @@ -3,16 +3,11 @@ "ignorePatterns": ["!**/*"], "overrides": [ { - "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], - "rules": {} - }, - { - "files": ["*.ts", "*.tsx"], - "rules": {} - }, - { - "files": ["*.js", "*.jsx"], - "rules": {} + "files": ["*.json"], + "parser": "jsonc-eslint-parser", + "rules": { + "@nx/dependency-checks": "error" + } } ] } diff --git a/libs/sia-js/package.json b/libs/sia-js/package.json index f3630bc40..f55748047 100644 --- a/libs/sia-js/package.json +++ b/libs/sia-js/package.json @@ -2,5 +2,12 @@ "name": "@siafoundation/sia-js", "description": "Core Sia types and library methods for v1 `siad`.", "version": "0.10.0", - "license": "MIT" + "license": "MIT", + "dependencies": { + "blakejs": "^1.2.1", + "lodash": "^4.17.21", + "bignumber.js": "^9.0.2", + "tslib": "^2.6.2" + }, + "types": "./src/index.d.ts" } diff --git a/libs/sia-js/project.json b/libs/sia-js/project.json index 330470ac3..e5407bb6a 100644 --- a/libs/sia-js/project.json +++ b/libs/sia-js/project.json @@ -4,11 +4,23 @@ "sourceRoot": "libs/sia-js/src", "projectType": "library", "targets": { + "build": { + "executor": "@nx/js:tsc", + "outputs": ["{options.outputPath}"], + "options": { + "outputPath": "dist/libs/sia-js", + "tsConfig": "libs/sia-js/tsconfig.lib.json", + "packageJson": "libs/sia-js/package.json", + "main": "libs/sia-js/src/index.ts", + "assets": ["libs/sia-js/*.md"] + }, + "configurations": {} + }, "lint": { "executor": "@nx/linter:eslint", "outputs": ["{options.outputFile}"], "options": { - "lintFilePatterns": ["libs/sia-js/**/*.ts"] + "lintFilePatterns": ["libs/sia-js/**/*.ts", "libs/sia-js/package.json"] } }, "test": { @@ -18,19 +30,6 @@ "jestConfig": "libs/sia-js/jest.config.ts", "passWithNoTests": true } - }, - "build": { - "executor": "@nx/js:tsc", - "outputs": ["{options.outputPath}"], - "options": { - "outputPath": "dist/libs/sia-js", - "tsConfig": "libs/sia-js/tsconfig.lib.json", - "packageJson": "libs/sia-js/package.json", - "main": "libs/sia-js/src/index.ts", - "assets": ["libs/sia-js/*.md"], - "updateBuildableProjectDepsInPackageJson": true - }, - "configurations": {} } }, "tags": [] diff --git a/libs/sia-nodejs/.eslintrc.json b/libs/sia-nodejs/.eslintrc.json index 238b33be2..ef6ba6fa6 100644 --- a/libs/sia-nodejs/.eslintrc.json +++ b/libs/sia-nodejs/.eslintrc.json @@ -1,21 +1,16 @@ { + "rules": { + "@typescript-eslint/no-empty-interface": "off" + }, "extends": ["../../.eslintrc.json"], "ignorePatterns": ["!**/*"], "overrides": [ { - "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], - "rules": {} - }, - { - "files": ["*.ts", "*.tsx"], - "rules": {} - }, - { - "files": ["*.js", "*.jsx"], - "rules": {} + "files": ["*.json"], + "parser": "jsonc-eslint-parser", + "rules": { + "@nx/dependency-checks": "error" + } } - ], - "rules": { - "@typescript-eslint/no-empty-interface": "off" - } + ] } diff --git a/libs/sia-nodejs/package.json b/libs/sia-nodejs/package.json index f32fb0076..c1ae35029 100644 --- a/libs/sia-nodejs/package.json +++ b/libs/sia-nodejs/package.json @@ -3,5 +3,12 @@ "description": "Sia NodeJS client for controlling a v1 `siad`.", "version": "0.1.7", "private": true, - "license": "MIT" + "license": "MIT", + "dependencies": { + "@siafoundation/sia-js": "*", + "request": "^2.88.2", + "request-promise-native": "^1.0.9", + "tslib": "^2.6.2" + }, + "types": "./src/index.d.ts" } diff --git a/libs/sia-nodejs/project.json b/libs/sia-nodejs/project.json index 53259fce3..f3e2992dc 100644 --- a/libs/sia-nodejs/project.json +++ b/libs/sia-nodejs/project.json @@ -4,11 +4,26 @@ "sourceRoot": "libs/sia-nodejs/src", "projectType": "library", "targets": { + "build": { + "executor": "@nx/js:tsc", + "outputs": ["{options.outputPath}"], + "options": { + "outputPath": "dist/libs/sia-nodejs", + "tsConfig": "libs/sia-nodejs/tsconfig.lib.json", + "packageJson": "libs/sia-nodejs/package.json", + "main": "libs/sia-nodejs/src/index.ts", + "assets": ["libs/sia-nodejs/*.md"] + }, + "configurations": {} + }, "lint": { "executor": "@nx/linter:eslint", "outputs": ["{options.outputFile}"], "options": { - "lintFilePatterns": ["libs/sia-nodejs/**/*.ts"] + "lintFilePatterns": [ + "libs/sia-nodejs/**/*.ts", + "libs/sia-nodejs/package.json" + ] } }, "test": { @@ -18,19 +33,6 @@ "jestConfig": "libs/sia-nodejs/jest.config.ts", "passWithNoTests": true } - }, - "build": { - "executor": "@nx/js:tsc", - "outputs": ["{options.outputPath}"], - "options": { - "outputPath": "dist/libs/sia-nodejs", - "tsConfig": "libs/sia-nodejs/tsconfig.lib.json", - "packageJson": "libs/sia-nodejs/package.json", - "main": "libs/sia-nodejs/src/index.ts", - "assets": ["libs/sia-nodejs/*.md"], - "updateBuildableProjectDepsInPackageJson": true - }, - "configurations": {} } }, "tags": [] diff --git a/nx.json b/nx.json index b2272aa68..79cb04149 100644 --- a/nx.json +++ b/nx.json @@ -34,7 +34,8 @@ }, "library": { "style": "none", - "linter": "eslint" + "linter": "eslint", + "unitTestRunner": "jest" } }, "@nx/next": { diff --git a/package-lock.json b/package-lock.json index b7703cfbc..a34d12fd6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -39,6 +39,7 @@ "@radix-ui/react-tabs": "^1.0.0", "@radix-ui/react-tooltip": "^1.0.0", "@radix-ui/react-use-layout-effect": "^1.0.0", + "@react-spring/web": "^9.7.3", "@siacentral/ledgerjs-sia": "^1.1.0", "@tailwindcss/container-queries": "^0.1.1", "@visx/axis": "^2.18.0", @@ -257,6 +258,11 @@ "extraneous": true, "license": "MIT" }, + "libs/foobar": { + "name": "@siafoundation/foobar", + "version": "0.0.1", + "extraneous": true + }, "libs/foobar2": { "version": "0.0.1", "extraneous": true @@ -264,7 +270,15 @@ "libs/react-core": { "name": "@siafoundation/react-core", "version": "0.14.0", - "license": "MIT" + "license": "MIT", + "dependencies": { + "axios": "^0.27.2", + "detect-gpu": "^5.0.34", + "next": "13.5.2", + "react": "18.2.0", + "swr": "^2.1.1", + "use-local-storage-state": "^18.3.3" + } }, "libs/react-hostd": { "name": "@siafoundation/react-hostd", @@ -297,6 +311,10 @@ "version": "0.2.0", "license": "MIT" }, + "libs/shoebar": { + "version": "0.0.1", + "extraneous": true + }, "libs/sia-central": { "name": "@siafoundation/sia-central", "version": "0.0.1", @@ -4309,9 +4327,9 @@ } }, "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.4.14", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", - "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==" + "version": "1.4.15", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==" }, "node_modules/@jridgewell/trace-mapping": { "version": "0.3.19", @@ -7059,7 +7077,6 @@ "version": "9.7.3", "resolved": "https://registry.npmjs.org/@react-spring/animated/-/animated-9.7.3.tgz", "integrity": "sha512-5CWeNJt9pNgyvuSzQH+uy2pvTg8Y4/OisoscZIR8/ZNLIOI+CatFBhGZpDGTF/OzdNFsAoGk3wiUYTwoJ0YIvw==", - "peer": true, "dependencies": { "@react-spring/shared": "~9.7.3", "@react-spring/types": "~9.7.3" @@ -7072,7 +7089,6 @@ "version": "9.7.3", "resolved": "https://registry.npmjs.org/@react-spring/core/-/core-9.7.3.tgz", "integrity": "sha512-IqFdPVf3ZOC1Cx7+M0cXf4odNLxDC+n7IN3MDcVCTIOSBfqEcBebSv+vlY5AhM0zw05PDbjKrNmBpzv/AqpjnQ==", - "peer": true, "dependencies": { "@react-spring/animated": "~9.7.3", "@react-spring/shared": "~9.7.3", @@ -7090,7 +7106,6 @@ "version": "9.7.3", "resolved": "https://registry.npmjs.org/@react-spring/shared/-/shared-9.7.3.tgz", "integrity": "sha512-NEopD+9S5xYyQ0pGtioacLhL2luflh6HACSSDUZOwLHoxA5eku1UPuqcJqjwSD6luKjjLfiLOspxo43FUHKKSA==", - "peer": true, "dependencies": { "@react-spring/types": "~9.7.3" }, @@ -7101,14 +7116,12 @@ "node_modules/@react-spring/types": { "version": "9.7.3", "resolved": "https://registry.npmjs.org/@react-spring/types/-/types-9.7.3.tgz", - "integrity": "sha512-Kpx/fQ/ZFX31OtlqVEFfgaD1ACzul4NksrvIgYfIFq9JpDHFwQkMVZ10tbo0FU/grje4rcL4EIrjekl3kYwgWw==", - "peer": true + "integrity": "sha512-Kpx/fQ/ZFX31OtlqVEFfgaD1ACzul4NksrvIgYfIFq9JpDHFwQkMVZ10tbo0FU/grje4rcL4EIrjekl3kYwgWw==" }, "node_modules/@react-spring/web": { "version": "9.7.3", "resolved": "https://registry.npmjs.org/@react-spring/web/-/web-9.7.3.tgz", "integrity": "sha512-BXt6BpS9aJL/QdVqEIX9YoUy8CE6TJrU0mNCqSoxdXlIeNcEBWOfIyE6B14ENNsyQKS3wOWkiJfco0tCr/9tUg==", - "peer": true, "dependencies": { "@react-spring/animated": "~9.7.3", "@react-spring/core": "~9.7.3", @@ -12014,22 +12027,6 @@ "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.5.0.tgz", "integrity": "sha512-iKuQcq+NdHqlAcwUY0o/HL69XQrUaQdMjmStJ8JFmUaiiQErlhrmuigkg/CU4E2J0IyUKUrMAgl36TvN67MqTw==" }, - "node_modules/cssstyle": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz", - "integrity": "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==", - "dependencies": { - "cssom": "~0.3.6" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/cssstyle/node_modules/cssom": { - "version": "0.3.8", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", - "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==" - }, "node_modules/csstype": { "version": "3.0.10", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.0.10.tgz", @@ -12413,19 +12410,6 @@ "node": ">=12" } }, - "node_modules/data-urls": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-3.0.2.tgz", - "integrity": "sha512-Jy/tj3ldjZJo63sVAvg6LHt2mHvl4V6AgRAmNDtLdm7faqtsx+aJG42rsyCo9JCoRVKwPFzKlIPx3DIibwSIaQ==", - "dependencies": { - "abab": "^2.0.6", - "whatwg-mimetype": "^3.0.0", - "whatwg-url": "^11.0.0" - }, - "engines": { - "node": ">=12" - } - }, "node_modules/date-fns": { "version": "2.28.0", "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.28.0.tgz", @@ -12494,9 +12478,9 @@ } }, "node_modules/decimal.js": { - "version": "10.4.2", - "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.4.2.tgz", - "integrity": "sha512-ic1yEvwT6GuvaYwBLLY6/aFFgjZdySKTE8en/fkU3QICTmRtgtSlFn0u0BXN06InZwtfCelR7j8LRiDI/02iGA==" + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.4.3.tgz", + "integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==" }, "node_modules/decode-named-character-reference": { "version": "1.0.1", @@ -12578,7 +12562,8 @@ "node_modules/deep-is": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==" + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true }, "node_modules/deepmerge": { "version": "4.3.1", @@ -13269,14 +13254,13 @@ } }, "node_modules/escodegen": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.0.0.tgz", - "integrity": "sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz", + "integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==", "dependencies": { "esprima": "^4.0.1", "estraverse": "^5.2.0", - "esutils": "^2.0.2", - "optionator": "^0.8.1" + "esutils": "^2.0.2" }, "bin": { "escodegen": "bin/escodegen.js", @@ -14340,7 +14324,8 @@ "node_modules/fast-levenshtein": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==" + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true }, "node_modules/fastq": { "version": "1.13.0", @@ -14675,9 +14660,9 @@ } }, "node_modules/flatted": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.4.tgz", - "integrity": "sha512-8/sOawo8tJ4QOBX8YlQBMxL8+RLZfxMQOif9o0KUKTNTjMYElWPE0r/m5VNFxTRd0NSw8qSy8dajrwX4RYI1Hw==", + "version": "3.2.9", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.9.tgz", + "integrity": "sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ==", "dev": true }, "node_modules/flatten-tailwindcss-theme": { @@ -17129,6 +17114,113 @@ } } }, + "node_modules/jest-environment-jsdom/node_modules/cssstyle": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz", + "integrity": "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==", + "dependencies": { + "cssom": "~0.3.6" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-environment-jsdom/node_modules/cssstyle/node_modules/cssom": { + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", + "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==" + }, + "node_modules/jest-environment-jsdom/node_modules/data-urls": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-3.0.2.tgz", + "integrity": "sha512-Jy/tj3ldjZJo63sVAvg6LHt2mHvl4V6AgRAmNDtLdm7faqtsx+aJG42rsyCo9JCoRVKwPFzKlIPx3DIibwSIaQ==", + "dependencies": { + "abab": "^2.0.6", + "whatwg-mimetype": "^3.0.0", + "whatwg-url": "^11.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/jest-environment-jsdom/node_modules/jsdom": { + "version": "20.0.3", + "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-20.0.3.tgz", + "integrity": "sha512-SYhBvTh89tTfCD/CRdSOm13mOBa42iTaTyfyEWBdKcGdPxPtLFBXuHR8XHb33YNYaP+lLbmSvBTsnoesCNJEsQ==", + "dependencies": { + "abab": "^2.0.6", + "acorn": "^8.8.1", + "acorn-globals": "^7.0.0", + "cssom": "^0.5.0", + "cssstyle": "^2.3.0", + "data-urls": "^3.0.2", + "decimal.js": "^10.4.2", + "domexception": "^4.0.0", + "escodegen": "^2.0.0", + "form-data": "^4.0.0", + "html-encoding-sniffer": "^3.0.0", + "http-proxy-agent": "^5.0.0", + "https-proxy-agent": "^5.0.1", + "is-potential-custom-element-name": "^1.0.1", + "nwsapi": "^2.2.2", + "parse5": "^7.1.1", + "saxes": "^6.0.0", + "symbol-tree": "^3.2.4", + "tough-cookie": "^4.1.2", + "w3c-xmlserializer": "^4.0.0", + "webidl-conversions": "^7.0.0", + "whatwg-encoding": "^2.0.0", + "whatwg-mimetype": "^3.0.0", + "whatwg-url": "^11.0.0", + "ws": "^8.11.0", + "xml-name-validator": "^4.0.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "canvas": "^2.5.0" + }, + "peerDependenciesMeta": { + "canvas": { + "optional": true + } + } + }, + "node_modules/jest-environment-jsdom/node_modules/parse5": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz", + "integrity": "sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==", + "dependencies": { + "entities": "^4.4.0" + }, + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" + } + }, + "node_modules/jest-environment-jsdom/node_modules/tr46": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-3.0.0.tgz", + "integrity": "sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==", + "dependencies": { + "punycode": "^2.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/jest-environment-jsdom/node_modules/whatwg-url": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-11.0.0.tgz", + "integrity": "sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==", + "dependencies": { + "tr46": "^3.0.0", + "webidl-conversions": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, "node_modules/jest-environment-node": { "version": "29.6.4", "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.6.4.tgz", @@ -17655,61 +17747,6 @@ "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=" }, - "node_modules/jsdom": { - "version": "20.0.1", - "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-20.0.1.tgz", - "integrity": "sha512-pksjj7Rqoa+wdpkKcLzQRHhJCEE42qQhl/xLMUKHgoSejaKOdaXEAnqs6uDNwMl/fciHTzKeR8Wm8cw7N+g98A==", - "dependencies": { - "abab": "^2.0.6", - "acorn": "^8.8.0", - "acorn-globals": "^7.0.0", - "cssom": "^0.5.0", - "cssstyle": "^2.3.0", - "data-urls": "^3.0.2", - "decimal.js": "^10.4.1", - "domexception": "^4.0.0", - "escodegen": "^2.0.0", - "form-data": "^4.0.0", - "html-encoding-sniffer": "^3.0.0", - "http-proxy-agent": "^5.0.0", - "https-proxy-agent": "^5.0.1", - "is-potential-custom-element-name": "^1.0.1", - "nwsapi": "^2.2.2", - "parse5": "^7.1.1", - "saxes": "^6.0.0", - "symbol-tree": "^3.2.4", - "tough-cookie": "^4.1.2", - "w3c-xmlserializer": "^3.0.0", - "webidl-conversions": "^7.0.0", - "whatwg-encoding": "^2.0.0", - "whatwg-mimetype": "^3.0.0", - "whatwg-url": "^11.0.0", - "ws": "^8.9.0", - "xml-name-validator": "^4.0.0" - }, - "engines": { - "node": ">=14" - }, - "peerDependencies": { - "canvas": "^2.5.0" - }, - "peerDependenciesMeta": { - "canvas": { - "optional": true - } - } - }, - "node_modules/jsdom/node_modules/parse5": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.1.tgz", - "integrity": "sha512-kwpuwzB+px5WUg9pyK0IcK/shltJN5/OVhQagxhCQNtT9Y9QRZqNY2e1cmbu/paRh5LMnz/oVTVLBpjFmMZhSg==", - "dependencies": { - "entities": "^4.4.0" - }, - "funding": { - "url": "https://github.com/inikulin/parse5?sponsor=1" - } - }, "node_modules/jsesc": { "version": "2.5.2", "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", @@ -18006,18 +18043,6 @@ "node": ">=6" } }, - "node_modules/levn": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", - "integrity": "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==", - "dependencies": { - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2" - }, - "engines": { - "node": ">= 0.8.0" - } - }, "node_modules/license-webpack-plugin": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/license-webpack-plugin/-/license-webpack-plugin-4.0.2.tgz", @@ -20189,9 +20214,9 @@ } }, "node_modules/nwsapi": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.2.tgz", - "integrity": "sha512-90yv+6538zuvUMnN+zCr8LuV6bPFdq50304114vJYJ8RDyK8D5O9Phpbd6SZWgI7PwzmmfN1upeOJlvybDSgCw==" + "version": "2.2.7", + "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.7.tgz", + "integrity": "sha512-ub5E4+FBPKwAZx0UwIQOjYWGHTEq5sPqHQNRN8Z9e4A7u3Tj1weLJsL59yH9vmvqEtBHaOmT6cYQKIZOxp35FQ==" }, "node_modules/nx": { "version": "16.8.1", @@ -20593,22 +20618,6 @@ "opener": "bin/opener-bin.js" } }, - "node_modules/optionator": { - "version": "0.8.3", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", - "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", - "dependencies": { - "deep-is": "~0.1.3", - "fast-levenshtein": "~2.0.6", - "levn": "~0.3.0", - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2", - "word-wrap": "~1.2.3" - }, - "engines": { - "node": ">= 0.8.0" - } - }, "node_modules/ora": { "version": "5.4.1", "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz", @@ -21745,14 +21754,6 @@ "node": ">=10" } }, - "node_modules/prelude-ls": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", - "integrity": "sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==", - "engines": { - "node": ">= 0.8.0" - } - }, "node_modules/prettier": { "version": "2.7.1", "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz", @@ -21922,9 +21923,9 @@ } }, "node_modules/punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", + "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", "engines": { "node": ">=6" } @@ -25946,17 +25947,6 @@ "node": ">= 4.0.0" } }, - "node_modules/tr46": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-3.0.0.tgz", - "integrity": "sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==", - "dependencies": { - "punycode": "^2.1.1" - }, - "engines": { - "node": ">=12" - } - }, "node_modules/trim-newlines": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-3.0.1.tgz", @@ -26228,17 +26218,6 @@ "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=" }, - "node_modules/type-check": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", - "integrity": "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==", - "dependencies": { - "prelude-ls": "~1.1.2" - }, - "engines": { - "node": ">= 0.8.0" - } - }, "node_modules/type-detect": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", @@ -26973,14 +26952,14 @@ } }, "node_modules/w3c-xmlserializer": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-3.0.0.tgz", - "integrity": "sha512-3WFqGEgSXIyGhOmAFtlicJNMjEps8b1MG31NCA0/vOF9+nKMUW1ckhi9cnNHmf88Rzw5V+dwIwsm2C7X8k9aQg==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-4.0.0.tgz", + "integrity": "sha512-d+BFHzbiCx6zGfz0HyQ6Rg69w9k19nviJspaj4yNscGjrHu94sVP+aRm75yEbCh+r2/yR+7q6hux9LVtbuTGBw==", "dependencies": { "xml-name-validator": "^4.0.0" }, "engines": { - "node": ">=12" + "node": ">=14" } }, "node_modules/walker": { @@ -27418,18 +27397,6 @@ "node": ">=12" } }, - "node_modules/whatwg-url": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-11.0.0.tgz", - "integrity": "sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==", - "dependencies": { - "tr46": "^3.0.0", - "webidl-conversions": "^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, "node_modules/which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", @@ -27516,14 +27483,6 @@ "integrity": "sha512-JcKqAHLPxcdb9KM49dufGXn2x3ssnfjbcaQdLlfZsL9rH9wgDQjUtDxbo8NE0F6SFvydeu1VhZe7hZuHsB2/pw==", "dev": true }, - "node_modules/word-wrap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/wordwrap": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", @@ -30799,9 +30758,9 @@ } }, "@jridgewell/sourcemap-codec": { - "version": "1.4.14", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", - "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==" + "version": "1.4.15", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==" }, "@jridgewell/trace-mapping": { "version": "0.3.19", @@ -32824,7 +32783,6 @@ "version": "9.7.3", "resolved": "https://registry.npmjs.org/@react-spring/animated/-/animated-9.7.3.tgz", "integrity": "sha512-5CWeNJt9pNgyvuSzQH+uy2pvTg8Y4/OisoscZIR8/ZNLIOI+CatFBhGZpDGTF/OzdNFsAoGk3wiUYTwoJ0YIvw==", - "peer": true, "requires": { "@react-spring/shared": "~9.7.3", "@react-spring/types": "~9.7.3" @@ -32834,7 +32792,6 @@ "version": "9.7.3", "resolved": "https://registry.npmjs.org/@react-spring/core/-/core-9.7.3.tgz", "integrity": "sha512-IqFdPVf3ZOC1Cx7+M0cXf4odNLxDC+n7IN3MDcVCTIOSBfqEcBebSv+vlY5AhM0zw05PDbjKrNmBpzv/AqpjnQ==", - "peer": true, "requires": { "@react-spring/animated": "~9.7.3", "@react-spring/shared": "~9.7.3", @@ -32845,7 +32802,6 @@ "version": "9.7.3", "resolved": "https://registry.npmjs.org/@react-spring/shared/-/shared-9.7.3.tgz", "integrity": "sha512-NEopD+9S5xYyQ0pGtioacLhL2luflh6HACSSDUZOwLHoxA5eku1UPuqcJqjwSD6luKjjLfiLOspxo43FUHKKSA==", - "peer": true, "requires": { "@react-spring/types": "~9.7.3" } @@ -32853,14 +32809,12 @@ "@react-spring/types": { "version": "9.7.3", "resolved": "https://registry.npmjs.org/@react-spring/types/-/types-9.7.3.tgz", - "integrity": "sha512-Kpx/fQ/ZFX31OtlqVEFfgaD1ACzul4NksrvIgYfIFq9JpDHFwQkMVZ10tbo0FU/grje4rcL4EIrjekl3kYwgWw==", - "peer": true + "integrity": "sha512-Kpx/fQ/ZFX31OtlqVEFfgaD1ACzul4NksrvIgYfIFq9JpDHFwQkMVZ10tbo0FU/grje4rcL4EIrjekl3kYwgWw==" }, "@react-spring/web": { "version": "9.7.3", "resolved": "https://registry.npmjs.org/@react-spring/web/-/web-9.7.3.tgz", "integrity": "sha512-BXt6BpS9aJL/QdVqEIX9YoUy8CE6TJrU0mNCqSoxdXlIeNcEBWOfIyE6B14ENNsyQKS3wOWkiJfco0tCr/9tUg==", - "peer": true, "requires": { "@react-spring/animated": "~9.7.3", "@react-spring/core": "~9.7.3", @@ -32992,7 +32946,15 @@ "version": "file:libs/design-system" }, "@siafoundation/react-core": { - "version": "file:libs/react-core" + "version": "file:libs/react-core", + "requires": { + "axios": "^0.27.2", + "detect-gpu": "^5.0.34", + "next": "13.5.2", + "react": "18.2.0", + "swr": "^2.1.1", + "use-local-storage-state": "^18.3.3" + } }, "@siafoundation/react-hostd": { "version": "file:libs/react-hostd" @@ -36523,21 +36485,6 @@ "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.5.0.tgz", "integrity": "sha512-iKuQcq+NdHqlAcwUY0o/HL69XQrUaQdMjmStJ8JFmUaiiQErlhrmuigkg/CU4E2J0IyUKUrMAgl36TvN67MqTw==" }, - "cssstyle": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz", - "integrity": "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==", - "requires": { - "cssom": "~0.3.6" - }, - "dependencies": { - "cssom": { - "version": "0.3.8", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", - "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==" - } - } - }, "csstype": { "version": "3.0.10", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.0.10.tgz", @@ -36868,16 +36815,6 @@ "index-array-by": "^1.4.0" } }, - "data-urls": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-3.0.2.tgz", - "integrity": "sha512-Jy/tj3ldjZJo63sVAvg6LHt2mHvl4V6AgRAmNDtLdm7faqtsx+aJG42rsyCo9JCoRVKwPFzKlIPx3DIibwSIaQ==", - "requires": { - "abab": "^2.0.6", - "whatwg-mimetype": "^3.0.0", - "whatwg-url": "^11.0.0" - } - }, "date-fns": { "version": "2.28.0", "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.28.0.tgz", @@ -36924,9 +36861,9 @@ } }, "decimal.js": { - "version": "10.4.2", - "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.4.2.tgz", - "integrity": "sha512-ic1yEvwT6GuvaYwBLLY6/aFFgjZdySKTE8en/fkU3QICTmRtgtSlFn0u0BXN06InZwtfCelR7j8LRiDI/02iGA==" + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.4.3.tgz", + "integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==" }, "decode-named-character-reference": { "version": "1.0.1", @@ -36985,7 +36922,8 @@ "deep-is": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==" + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true }, "deepmerge": { "version": "4.3.1", @@ -37516,14 +37454,13 @@ "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" }, "escodegen": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.0.0.tgz", - "integrity": "sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz", + "integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==", "requires": { "esprima": "^4.0.1", "estraverse": "^5.2.0", "esutils": "^2.0.2", - "optionator": "^0.8.1", "source-map": "~0.6.1" } }, @@ -38316,7 +38253,8 @@ "fast-levenshtein": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==" + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true }, "fastq": { "version": "1.13.0", @@ -38563,9 +38501,9 @@ } }, "flatted": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.4.tgz", - "integrity": "sha512-8/sOawo8tJ4QOBX8YlQBMxL8+RLZfxMQOif9o0KUKTNTjMYElWPE0r/m5VNFxTRd0NSw8qSy8dajrwX4RYI1Hw==", + "version": "3.2.9", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.9.tgz", + "integrity": "sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ==", "dev": true }, "flatten-tailwindcss-theme": { @@ -40302,6 +40240,91 @@ "jest-mock": "^29.4.3", "jest-util": "^29.4.3", "jsdom": "^20.0.0" + }, + "dependencies": { + "cssstyle": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz", + "integrity": "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==", + "requires": { + "cssom": "~0.3.6" + }, + "dependencies": { + "cssom": { + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", + "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==" + } + } + }, + "data-urls": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-3.0.2.tgz", + "integrity": "sha512-Jy/tj3ldjZJo63sVAvg6LHt2mHvl4V6AgRAmNDtLdm7faqtsx+aJG42rsyCo9JCoRVKwPFzKlIPx3DIibwSIaQ==", + "requires": { + "abab": "^2.0.6", + "whatwg-mimetype": "^3.0.0", + "whatwg-url": "^11.0.0" + } + }, + "jsdom": { + "version": "20.0.3", + "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-20.0.3.tgz", + "integrity": "sha512-SYhBvTh89tTfCD/CRdSOm13mOBa42iTaTyfyEWBdKcGdPxPtLFBXuHR8XHb33YNYaP+lLbmSvBTsnoesCNJEsQ==", + "requires": { + "abab": "^2.0.6", + "acorn": "^8.8.1", + "acorn-globals": "^7.0.0", + "cssom": "^0.5.0", + "cssstyle": "^2.3.0", + "data-urls": "^3.0.2", + "decimal.js": "^10.4.2", + "domexception": "^4.0.0", + "escodegen": "^2.0.0", + "form-data": "^4.0.0", + "html-encoding-sniffer": "^3.0.0", + "http-proxy-agent": "^5.0.0", + "https-proxy-agent": "^5.0.1", + "is-potential-custom-element-name": "^1.0.1", + "nwsapi": "^2.2.2", + "parse5": "^7.1.1", + "saxes": "^6.0.0", + "symbol-tree": "^3.2.4", + "tough-cookie": "^4.1.2", + "w3c-xmlserializer": "^4.0.0", + "webidl-conversions": "^7.0.0", + "whatwg-encoding": "^2.0.0", + "whatwg-mimetype": "^3.0.0", + "whatwg-url": "^11.0.0", + "ws": "^8.11.0", + "xml-name-validator": "^4.0.0" + } + }, + "parse5": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz", + "integrity": "sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==", + "requires": { + "entities": "^4.4.0" + } + }, + "tr46": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-3.0.0.tgz", + "integrity": "sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==", + "requires": { + "punycode": "^2.1.1" + } + }, + "whatwg-url": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-11.0.0.tgz", + "integrity": "sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==", + "requires": { + "tr46": "^3.0.0", + "webidl-conversions": "^7.0.0" + } + } } }, "jest-environment-node": { @@ -40723,49 +40746,6 @@ "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=" }, - "jsdom": { - "version": "20.0.1", - "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-20.0.1.tgz", - "integrity": "sha512-pksjj7Rqoa+wdpkKcLzQRHhJCEE42qQhl/xLMUKHgoSejaKOdaXEAnqs6uDNwMl/fciHTzKeR8Wm8cw7N+g98A==", - "requires": { - "abab": "^2.0.6", - "acorn": "^8.8.0", - "acorn-globals": "^7.0.0", - "cssom": "^0.5.0", - "cssstyle": "^2.3.0", - "data-urls": "^3.0.2", - "decimal.js": "^10.4.1", - "domexception": "^4.0.0", - "escodegen": "^2.0.0", - "form-data": "^4.0.0", - "html-encoding-sniffer": "^3.0.0", - "http-proxy-agent": "^5.0.0", - "https-proxy-agent": "^5.0.1", - "is-potential-custom-element-name": "^1.0.1", - "nwsapi": "^2.2.2", - "parse5": "^7.1.1", - "saxes": "^6.0.0", - "symbol-tree": "^3.2.4", - "tough-cookie": "^4.1.2", - "w3c-xmlserializer": "^3.0.0", - "webidl-conversions": "^7.0.0", - "whatwg-encoding": "^2.0.0", - "whatwg-mimetype": "^3.0.0", - "whatwg-url": "^11.0.0", - "ws": "^8.9.0", - "xml-name-validator": "^4.0.0" - }, - "dependencies": { - "parse5": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.1.tgz", - "integrity": "sha512-kwpuwzB+px5WUg9pyK0IcK/shltJN5/OVhQagxhCQNtT9Y9QRZqNY2e1cmbu/paRh5LMnz/oVTVLBpjFmMZhSg==", - "requires": { - "entities": "^4.4.0" - } - } - } - }, "jsesc": { "version": "2.5.2", "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", @@ -40983,15 +40963,6 @@ "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", "dev": true }, - "levn": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", - "integrity": "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==", - "requires": { - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2" - } - }, "license-webpack-plugin": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/license-webpack-plugin/-/license-webpack-plugin-4.0.2.tgz", @@ -42474,9 +42445,9 @@ } }, "nwsapi": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.2.tgz", - "integrity": "sha512-90yv+6538zuvUMnN+zCr8LuV6bPFdq50304114vJYJ8RDyK8D5O9Phpbd6SZWgI7PwzmmfN1upeOJlvybDSgCw==" + "version": "2.2.7", + "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.7.tgz", + "integrity": "sha512-ub5E4+FBPKwAZx0UwIQOjYWGHTEq5sPqHQNRN8Z9e4A7u3Tj1weLJsL59yH9vmvqEtBHaOmT6cYQKIZOxp35FQ==" }, "nx": { "version": "16.8.1", @@ -42763,19 +42734,6 @@ "integrity": "sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A==", "dev": true }, - "optionator": { - "version": "0.8.3", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", - "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", - "requires": { - "deep-is": "~0.1.3", - "fast-levenshtein": "~2.0.6", - "levn": "~0.3.0", - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2", - "word-wrap": "~1.2.3" - } - }, "ora": { "version": "5.4.1", "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz", @@ -43540,11 +43498,6 @@ "which-pm": "2.0.0" } }, - "prelude-ls": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", - "integrity": "sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==" - }, "prettier": { "version": "2.7.1", "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz", @@ -43678,9 +43631,9 @@ } }, "punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", + "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==" }, "pure-rand": { "version": "6.0.3", @@ -46618,14 +46571,6 @@ } } }, - "tr46": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-3.0.0.tgz", - "integrity": "sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==", - "requires": { - "punycode": "^2.1.1" - } - }, "trim-newlines": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-3.0.1.tgz", @@ -46808,14 +46753,6 @@ "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=" }, - "type-check": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", - "integrity": "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==", - "requires": { - "prelude-ls": "~1.1.2" - } - }, "type-detect": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", @@ -47306,9 +47243,9 @@ } }, "w3c-xmlserializer": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-3.0.0.tgz", - "integrity": "sha512-3WFqGEgSXIyGhOmAFtlicJNMjEps8b1MG31NCA0/vOF9+nKMUW1ckhi9cnNHmf88Rzw5V+dwIwsm2C7X8k9aQg==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-4.0.0.tgz", + "integrity": "sha512-d+BFHzbiCx6zGfz0HyQ6Rg69w9k19nviJspaj4yNscGjrHu94sVP+aRm75yEbCh+r2/yR+7q6hux9LVtbuTGBw==", "requires": { "xml-name-validator": "^4.0.0" } @@ -47626,15 +47563,6 @@ "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-3.0.0.tgz", "integrity": "sha512-nt+N2dzIutVRxARx1nghPKGv1xHikU7HKdfafKkLNLindmPU/ch3U31NOCGGA/dmPcmb1VlofO0vnKAcsm0o/Q==" }, - "whatwg-url": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-11.0.0.tgz", - "integrity": "sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==", - "requires": { - "tr46": "^3.0.0", - "webidl-conversions": "^7.0.0" - } - }, "which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", @@ -47700,11 +47628,6 @@ "integrity": "sha512-JcKqAHLPxcdb9KM49dufGXn2x3ssnfjbcaQdLlfZsL9rH9wgDQjUtDxbo8NE0F6SFvydeu1VhZe7hZuHsB2/pw==", "dev": true }, - "word-wrap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==" - }, "wordwrap": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", diff --git a/package.json b/package.json index 3ee1a92b7..e25a73fec 100644 --- a/package.json +++ b/package.json @@ -50,6 +50,7 @@ "@radix-ui/react-tabs": "^1.0.0", "@radix-ui/react-tooltip": "^1.0.0", "@radix-ui/react-use-layout-effect": "^1.0.0", + "@react-spring/web": "^9.7.3", "@siacentral/ledgerjs-sia": "^1.1.0", "@tailwindcss/container-queries": "^0.1.1", "@visx/axis": "^2.18.0", diff --git a/scripts/copy-dists-for-publishing.sh b/scripts/copy-dists-for-publishing.sh deleted file mode 100755 index 1c6b26526..000000000 --- a/scripts/copy-dists-for-publishing.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash - -# from: -# dist/apps/renterd/ -# dist/apps/hostd/ -# dist/libs/react-renterd/ -# dist/libs/design-system/ -# to: -# apps/renterd/dist/ -# apps/hostd/dist/ -# libs/react-renterd/dist/ -# libs/design-system/dist/ - -for dir in dist/apps/* dist/libs/*; do - targetDir="${dir#dist/}" - if [ -d "$targetDir" ]; then - mkdir -p "$targetDir/dist" - cp -rv "$dir"/* "$targetDir/dist/" - fi -done - -# reverse -# for dir in apps/* libs/*; do -# sourceDir="$dir/dist" -# targetDir="dist/${dir}" -# if [ -d "$sourceDir" ]; then -# mkdir -p "$targetDir" -# cp -rv "$sourceDir"/* "$targetDir/" -# fi -# done diff --git a/scripts/delete-nested-dists.sh b/scripts/delete-nested-dists.sh new file mode 100755 index 000000000..bce49cb9f --- /dev/null +++ b/scripts/delete-nested-dists.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +for dir in dist/apps/* dist/libs/*; do + targetDir="${dir#dist/}" + echo $targetDir + if [ -d "$targetDir/dist" ]; then + echo "Removing contents of $targetDir/dist" + rm -rf "$targetDir/dist" + fi +done diff --git a/scripts/replace-src-with-dists-for-publishing.sh b/scripts/replace-src-with-dists-for-publishing.sh new file mode 100755 index 000000000..357ba1fae --- /dev/null +++ b/scripts/replace-src-with-dists-for-publishing.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +# from: +# dist/apps/renterd/* +# dist/apps/hostd/* +# dist/libs/react-renterd/* +# dist/libs/design-system/* +# to: +# apps/renterd/* +# apps/hostd/* +# libs/react-renterd/* +# libs/design-system/* + +for distDir in dist/apps/* dist/libs/*; do + # distDir: dist/apps/foo + # srcDir: apps/foo + srcDir="${distDir#dist/}" + echo "$srcDir" + if [ -d "$srcDir" ]; then + rm -rf "$srcDir/"* + cp -r "$distDir/"* "$srcDir/" + fi +done diff --git a/tsconfig.base.json b/tsconfig.base.json index 6b3d800b3..c9c06d882 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -17,15 +17,15 @@ "paths": { "@siafoundation/data-sources": ["libs/data-sources/src/index.ts"], "@siafoundation/design-system": ["libs/design-system/src/index.ts"], - "@siafoundation/react-icons": ["libs/react-icons/src/index.ts"], "@siafoundation/react-core": ["libs/react-core/src/index.ts"], "@siafoundation/react-hostd": ["libs/react-hostd/src/index.ts"], + "@siafoundation/react-icons": ["libs/react-icons/src/index.ts"], "@siafoundation/react-renterd": ["libs/react-renterd/src/index.ts"], "@siafoundation/react-sia-central": [ "libs/react-sia-central/src/index.ts" ], - "@siafoundation/sia-central": ["libs/sia-central/src/index.ts"], "@siafoundation/react-walletd": ["libs/react-walletd/src/index.ts"], + "@siafoundation/sia-central": ["libs/sia-central/src/index.ts"], "@siafoundation/sia-js": ["libs/sia-js/src/index.ts"], "@siafoundation/sia-nodejs": ["libs/sia-nodejs/src/index.ts"] }