aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPauline <git@ethanlibs.co>2023-10-14 22:27:27 -0400
committerPauline <git@ethanlibs.co>2023-10-14 22:27:27 -0400
commit2582162cea2b3a59cd21c78f8b73cb03d0acad40 (patch)
tree432057475f3b51850a85e2cba9969bcb79f3a8e6
parent06f51ccdc496a6581d098edc424f3973e550221d (diff)
downloadNexus-2582162cea2b3a59cd21c78f8b73cb03d0acad40.tar.gz
Nexus-2582162cea2b3a59cd21c78f8b73cb03d0acad40.tar.bz2
Nexus-2582162cea2b3a59cd21c78f8b73cb03d0acad40.zip
refactor(trunk): refactor the entire project idk
-rw-r--r--.cargo/config.toml.mustache23
-rw-r--r--.cargo/readme.md3
-rw-r--r--.editorconfig2
-rw-r--r--.github/ISSUE_TEMPLATE/bug_report.yml61
-rw-r--r--.github/ISSUE_TEMPLATE/config.yml13
-rw-r--r--.github/actions/publish-artifacts/.gitignore2
-rw-r--r--.github/actions/publish-artifacts/action.yaml14
-rw-r--r--.github/actions/publish-artifacts/index.ts101
-rw-r--r--.github/actions/publish-artifacts/package.json17
-rw-r--r--.github/actions/publish-artifacts/tsconfig.json11
-rw-r--r--.github/actions/setup-pnpm/action.yml28
-rw-r--r--.github/actions/setup-rust/action.yaml52
-rw-r--r--.github/actions/setup-system/action.yml36
-rw-r--r--.github/scripts/setup.ps10
-rw-r--r--.github/scripts/setup.sh0
-rw-r--r--.github/workflows/cache-factory.yaml77
-rw-r--r--.github/workflows/release.yaml102
-rw-r--r--.github/workflows/testing.yaml142
-rw-r--r--.gitignore1
-rw-r--r--.prettierrc.js11
-rw-r--r--.vscode/extensions.json16
-rw-r--r--.vscode/settings.json48
-rw-r--r--.vscode/tailwind.json55
-rw-r--r--CODE_OF_CONDUCT.md30
-rw-r--r--CONTRIBUTING.md51
-rw-r--r--README.md18
-rw-r--r--apps/website/.eslintrc.js8
-rw-r--r--apps/website/astro.config.ts7
-rw-r--r--apps/website/config.ts158
-rw-r--r--apps/website/package.json4
-rw-r--r--apps/website/src/styles/global.css10
-rw-r--r--apps/website/src/types/Config.d.ts48
-rw-r--r--apps/website/tailwind.config.cjs53
-rw-r--r--apps/website/tsconfig.json11
-rw-r--r--package.json77
-rw-r--r--packages/assets/README.md3
-rw-r--r--packages/assets/package.json8
-rw-r--r--packages/assets/scripts/generate.mjs62
-rw-r--r--packages/config/.eslintrc.js4
-rw-r--r--packages/config/app.tsconfig.json7
-rw-r--r--packages/config/base.tsconfig.json22
-rw-r--r--packages/config/eslint/base.js79
-rw-r--r--packages/config/eslint/tailwind.js23
-rw-r--r--packages/config/eslint/web.js22
-rw-r--r--packages/config/index.js3
-rw-r--r--packages/config/package.json29
-rw-r--r--packages/config/vite/index.ts27
-rw-r--r--packages/config/vite/relAlias.ts77
-rw-r--r--packages/ui/.eslintrc.js8
-rw-r--r--packages/ui/package.json51
-rw-r--r--packages/ui/postcss.config.js3
-rw-r--r--packages/ui/src/index.ts1
-rw-r--r--packages/ui/src/keys.ts56
-rw-r--r--packages/ui/src/utils.tsx28
-rw-r--r--packages/ui/style/index.js1
-rw-r--r--packages/ui/style/postcss.config.js1
-rw-r--r--packages/ui/style/style.scss30
-rw-r--r--packages/ui/style/tailwind.js119
-rw-r--r--packages/ui/style/tailwind.pcss4
-rw-r--r--packages/ui/tailwind.config.js2
-rw-r--r--packages/ui/tsconfig.json8
-rw-r--r--pkgs/ctjs/index.js3
-rw-r--r--pkgs/ctjs/metadata.json9
-rw-r--r--pkgs/ctjs/package.json4
-rw-r--r--pkgs/ctjs/types/ctjs.d.ts14053
-rw-r--r--pkgs/ctjs/types/schema.json77
-rw-r--r--pnpm-lock.yaml2955
-rw-r--r--pnpm-workspace.yaml9
-rw-r--r--tsconfig.json7
69 files changed, 4525 insertions, 14560 deletions
diff --git a/.cargo/config.toml.mustache b/.cargo/config.toml.mustache
new file mode 100644
index 0000000..8456e90
--- /dev/null
+++ b/.cargo/config.toml.mustache
@@ -0,0 +1,23 @@
+{{#isMacOS}}
+[target.x86_64-apple-darwin]
+rustflags = ["-L", "{{{nativeDeps}}}/lib"]
+
+[target.aarch64-apple-darwin]
+rustflags = ["-L", "{{{nativeDeps}}}/lib"]
+{{/isMacOS}}
+
+{{#isWin}}
+[target.x86_64-pc-windows-msvc]
+rustflags = ["-L", "{{{nativeDeps}}}\\lib"]
+{{/isWin}}
+
+{{#isLinux}}
+[target.x86_64-unknown-linux-gnu]
+rustflags = ["-L", "{{{nativeDeps}}}/lib", "-C", "link-arg=-Wl,-rpath=${ORIGIN}/../lib/nexus"]
+
+[target.aarch64-unknown-linux-gnu]
+rustflags = ["-L", "{{{nativeDeps}}}/lib", "-C", "link-arg=-Wl,-rpath=${ORIGIN}/../lib/nexus"]
+{{/isLinux}}
+
+[alias]
+prisma = "run -p prisma-cli --bin prisma --"
diff --git a/.cargo/readme.md b/.cargo/readme.md
new file mode 100644
index 0000000..1854eae
--- /dev/null
+++ b/.cargo/readme.md
@@ -0,0 +1,3 @@
+# (i): note
+
+make sure to execute the `::setup` script after any modifications to `cargo.toml`.
diff --git a/.editorconfig b/.editorconfig
index 73f4fd2..2de35d8 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -37,6 +37,8 @@ trim_trailing_whitespace = true
# https://prettier.io
[*.{cjs,js,json,jsx,mjs,ts,tsx}]
indent_size = 4
+tab_width = 4
+indent_style = tab
# Kotlin
# https://android.github.io/kotlin-guides/style.html#indentation
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml
new file mode 100644
index 0000000..31ba093
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/bug_report.yml
@@ -0,0 +1,61 @@
+name: 🐞 Bug Report
+description: Report a bug
+labels:
+ - kind/bug
+ - status/needs-triage
+
+body:
+ - type: checkboxes
+ id: product
+ attributes:
+ label: Product name
+ description: What Polyfrost product are you using?
+ options:
+ - label: Website
+ - label: Launcher
+ - label: Installer
+
+ - type: markdown
+ attributes:
+ value: |
+ ## First of all
+ 1. Please search for [existing issues](https://github.com/polyfrost/nexus/issues?q=is%3Aissue) about this problem first.
+ 2. Make sure it's an issue with our products and not something else you are using.
+ 3. Remember to follow our community guidelines and be friendly.
+
+ - type: textarea
+ id: description
+ attributes:
+ label: Describe the bug
+ description: A clear description of what the bug is. Include screenshots if applicable.
+ placeholder: Bug description
+ validations:
+ required: true
+
+ - type: textarea
+ id: reproduction
+ attributes:
+ label: Reproduction
+ description: Steps to reproduce the behavior.
+ placeholder: |
+ 1. Go to ...
+ 2. Click on ...
+ 3. See error
+
+ - type: textarea
+ id: expected-behavior
+ attributes:
+ label: Expected behavior
+ description: A clear description of what you expected to happen.
+
+ - type: textarea
+ id: logs
+ attributes:
+ label: Stack trace (optional)
+ render: Shell
+
+ - type: textarea
+ id: context
+ attributes:
+ label: Additional context
+ description: Add any other context about the problem here.
diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml
new file mode 100644
index 0000000..77fbf47
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/config.yml
@@ -0,0 +1,13 @@
+# tell yaml plugin that this is the config file and not a template of its own:
+# yaml-language-server: $schema=https://json.schemastore.org/github-issue-config.json
+blank_issues_enabled: false
+contact_links:
+ - name: 🙏 Get Help
+ url: https://github.com/polyfrost/nexus/discussions/new?category=help
+ about: If you can't get something to work the way you expect, open a question in our discussion forums.
+ - name: 💡 Feature Request
+ url: https://github.com/polyfrost/nexus/discussions/new?category=ideas
+ about: Suggest any ideas you have using our discussion forums.
+ - name: 💬 Discord Chat
+ url: https://polyfrost.cc/discord
+ about: Ask questions and talk to other Polyfrost product users and the devs.
diff --git a/.github/actions/publish-artifacts/.gitignore b/.github/actions/publish-artifacts/.gitignore
new file mode 100644
index 0000000..5c4b4fd
--- /dev/null
+++ b/.github/actions/publish-artifacts/.gitignore
@@ -0,0 +1,2 @@
+# pls tell me there is a better way
+!dist
diff --git a/.github/actions/publish-artifacts/action.yaml b/.github/actions/publish-artifacts/action.yaml
new file mode 100644
index 0000000..c3679af
--- /dev/null
+++ b/.github/actions/publish-artifacts/action.yaml
@@ -0,0 +1,14 @@
+name: Publish artifacts
+description: Publishes artifacts after CI process
+inputs:
+ target:
+ description: target triples for built artifact
+ profile:
+ description: "'debug' or 'release'"
+ os:
+ description: "'darwin', 'windows', or 'linux'"
+ arch:
+ description: "'x86_64' or 'aarch64'"
+runs:
+ using: node20
+ main: dist/index.js
diff --git a/.github/actions/publish-artifacts/index.ts b/.github/actions/publish-artifacts/index.ts
new file mode 100644
index 0000000..8509194
--- /dev/null
+++ b/.github/actions/publish-artifacts/index.ts
@@ -0,0 +1,101 @@
+import * as artifact from '@actions/artifact';
+import * as core from '@actions/core';
+import * as glob from '@actions/glob';
+import * as io from '@actions/io';
+
+// script to build tauri bundles without pain
+
+type OS = 'darwin' | 'windows' | 'linux';
+type Arch = 'x64' | 'arm64'; // 'aarch64';
+// i could type this with tauri's config but idrc
+type TargetConfig = { bundle: string; ext: string };
+type BuildTarget = {
+ updater: TargetConfig;
+ standalone: Array<TargetConfig>;
+};
+
+const OS_TARGETS = {
+ darwin: {
+ updater: {
+ bundle: 'macos',
+ ext: 'app.tar.gz'
+ },
+ standalone: [{ ext: 'dmg', bundle: 'dmg' }]
+ },
+ windows: {
+ updater: {
+ bundle: 'msi',
+ ext: 'msi.zip'
+ },
+ standalone: [{ ext: 'msi', bundle: 'msi' }]
+ },
+ linux: {
+ updater: {
+ bundle: 'appimage',
+ ext: 'AppImage.tar.gz'
+ },
+ standalone: [
+ { ext: 'deb', bundle: 'deb' },
+ { ext: 'AppImage', bundle: 'appimage' }
+ ]
+ }
+} satisfies Record<OS, BuildTarget>;
+
+const OS: OS = core.getInput('os') as any;
+const ARCH: Arch = core.getInput('arch') as any;
+const TARGET = core.getInput('target');
+const PROFILE = core.getInput('profile');
+
+const BUNDLE_DIR = `target/${TARGET}/${PROFILE}/bundle`;
+const ARTIFACTS_DIR = '.artifacts';
+const ARTIFACT_BASE = `Nexus-${OS}-${ARCH}`;
+const UPDATER_ARTIFACT_NAME = `Nexus-Updater-${OS}-${ARCH}`;
+
+const client = artifact.create();
+
+// globby glob globber :3
+const globFiles = async (pattern: string) => {
+ const globber = await glob.create(pattern);
+ return await globber.glob();
+};
+
+const uploadUpdater = async ({ bundle, ext }: TargetConfig) => {
+ const files = await globFiles(`${BUNDLE_DIR}/${bundle}/*.${ext}*`);
+ const updaterPath = files.find((f) => f.endsWith(ext));
+
+ if (!updaterPath) return console.error(`updater path not found. ${files}`);
+
+ const artifactPath = `${ARTIFACTS_DIR}/${UPDATER_ARTIFACT_NAME}.${ext}`;
+
+ await io.cp(updaterPath, artifactPath);
+ await io.cp(`${updaterPath}.sig`, `${artifactPath}.sig`);
+
+ await client.uploadArtifact(
+ UPDATER_ARTIFACT_NAME,
+ [artifactPath, `${artifactPath}.sig`],
+ ARTIFACTS_DIR
+ );
+};
+
+const uploadStandalone = async ({ bundle, ext }: TargetConfig) => {
+ const files = await globFiles(`${BUNDLE_DIR}/${bundle}/*.${ext}*`);
+ const standalonePath = files.find((f) => f.endsWith(ext));
+
+ if (!standalonePath) return console.error(`standalone path not found. ${files}`);
+
+ const artifactName = `${ARTIFACT_BASE}.${ext}`;
+ const artifactPath = `${ARTIFACTS_DIR}/${artifactName}`;
+
+ await io.cp(standalonePath, artifactPath, { recursive: true });
+ await client.uploadArtifact(artifactName, [artifactPath], ARTIFACTS_DIR);
+};
+
+const run = async () => {
+ await io.mkdirP(ARTIFACTS_DIR);
+ const { updater, standalone } = OS_TARGETS[OS];
+
+ await uploadUpdater(updater);
+ for (const f of standalone) await uploadStandalone(f);
+};
+
+run();
diff --git a/.github/actions/publish-artifacts/package.json b/.github/actions/publish-artifacts/package.json
new file mode 100644
index 0000000..a02cff9
--- /dev/null
+++ b/.github/actions/publish-artifacts/package.json
@@ -0,0 +1,17 @@
+{
+ "private": true,
+ "scripts": {
+ "_build_comment": "there has to be a better way to do this lol",
+ "build": "ncc build index.ts --minify"
+ },
+ "dependencies": {
+ "@actions/artifact": "^1.1.2",
+ "@actions/core": "^1.10.1",
+ "@actions/github": "^6.0.0",
+ "@actions/glob": "^0.4.0",
+ "@actions/io": "^1.1.3"
+ },
+ "devDependencies": {
+ "@vercel/ncc": "^0.38.0"
+ }
+}
diff --git a/.github/actions/publish-artifacts/tsconfig.json b/.github/actions/publish-artifacts/tsconfig.json
new file mode 100644
index 0000000..8b4fecf
--- /dev/null
+++ b/.github/actions/publish-artifacts/tsconfig.json
@@ -0,0 +1,11 @@
+{
+ "compilerOptions": {
+ "target": "ES2015",
+ "module": "ESNext",
+ "moduleResolution": "Node",
+ "esModuleInterop": true,
+ "forceConsistentCasingInFileNames": true,
+ "strict": true,
+ "skipLibCheck": true
+ }
+}
diff --git a/.github/actions/setup-pnpm/action.yml b/.github/actions/setup-pnpm/action.yml
new file mode 100644
index 0000000..97f462e
--- /dev/null
+++ b/.github/actions/setup-pnpm/action.yml
@@ -0,0 +1,28 @@
+name: Setup Node.js, pnpm and dependencies
+description: Setup Node.js, pnpm and dependencies
+inputs:
+ token:
+ description: Github token
+ required: false
+ default: ''
+runs:
+ using: 'composite'
+ steps:
+ - name: Install pnpm
+ uses: pnpm/action-setup@v2
+ with:
+ version: 8.x.x
+
+ - name: Install Node.js
+ uses: actions/setup-node@v3
+ with:
+ token: ${{ inputs.token }}
+ check-latest: true
+ node-version-file: '.nvmrc'
+
+ - name: Install pnpm deps
+ shell: ${{ runner.os == 'Windows' && 'powershell' || 'bash' }}
+ env:
+ NODE_ENV: debug
+ GITHUB_TOKEN: ${{ inputs.token }}
+ run: pnpm i --frozen-lockfile
diff --git a/.github/actions/setup-rust/action.yaml b/.github/actions/setup-rust/action.yaml
new file mode 100644
index 0000000..8cf9997
--- /dev/null
+++ b/.github/actions/setup-rust/action.yaml
@@ -0,0 +1,52 @@
+name: Setup Rust
+description: Setup Rust
+inputs:
+ target:
+ description: toolchain target triple
+ required: false
+ save-cache:
+ description: Whether to save the Rust cache
+ required: false
+ default: 'false'
+runs:
+ using: 'composite'
+ steps:
+ - name: Install Rust
+ id: toolchain
+ uses: dtolnay/rust-toolchain@stable
+ with:
+ target: ${{ inputs.target }}
+ toolchain: stable
+ components: clippy, rustfmt
+
+ - name: Cache Rust Dependencies
+ uses: Swatinem/rust-cache@v2
+ with:
+ save-if: ${{ inputs.save-cache }}
+ prefix-key: 'v0-rust-deps'
+ shared-key: ${{ inputs.target }}
+
+ - name: Cargo config.toml
+ shell: bash
+ run: echo '{}' | npx -y mustache - .cargo/config.toml.mustache .cargo/config.toml
+
+ - name: Restore cached Prisma codegen
+ id: cache-prisma-restore
+ uses: actions/cache/restore@v3
+ with:
+ key: prisma-1-${{ runner.os }}-${{ hashFiles('./core/prisma/*', './Cargo.toml') }}
+ path: crates/prisma/src/**/*.rs
+
+ - name: Generate Prisma client
+ working-directory: core
+ if: ${{ steps.cache-prisma-restore.outputs.cache-hit != 'true' }}
+ shell: bash
+ run: cargo prisma generate
+
+ - name: Save Prisma codegen
+ id: cache-prisma-save
+ if: ${{ inputs.save-cache == 'true' }}
+ uses: actions/cache/save@v3
+ with:
+ key: ${{ steps.cache-prisma-restore.outputs.cache-primary-key }}
+ path: crates/prisma/src/**/*.rs
diff --git a/.github/actions/setup-system/action.yml b/.github/actions/setup-system/action.yml
new file mode 100644
index 0000000..3b33c82
--- /dev/null
+++ b/.github/actions/setup-system/action.yml
@@ -0,0 +1,36 @@
+name: Setup System and Rust
+description: Setup System and Rust
+inputs:
+ token:
+ description: Github token
+ required: false
+ default: ''
+ target:
+ description: toolchain target triple
+ required: false
+ setup-arg:
+ description: Argument for the system setup script
+ required: false
+ default: ''
+ save-cache:
+ description: Whether to save the System cache
+ required: false
+ default: 'false'
+runs:
+ using: 'composite'
+ steps:
+ - name: Setup Rust and Dependencies
+ uses: ./.github/actions/setup-rust
+ with:
+ target: ${{ inputs.target }}
+ save-cache: ${{ inputs.save-cache }}
+
+ - name: Run setup.sh script
+ shell: bash
+ if: ${{ runner.os == 'Linux' || runner.os == 'macOS' }}
+ run: ./.github/scripts/setup.sh ${{ inputs.setup-arg }}
+
+ - name: Run setup.ps1 script
+ shell: powershell
+ if: ${{ runner.os == 'Windows' }}
+ run: ./.github/scripts/setup.ps1
diff --git a/.github/scripts/setup.ps1 b/.github/scripts/setup.ps1
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/.github/scripts/setup.ps1
diff --git a/.github/scripts/setup.sh b/.github/scripts/setup.sh
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/.github/scripts/setup.sh
diff --git a/.github/workflows/cache-factory.yaml b/.github/workflows/cache-factory.yaml
new file mode 100644
index 0000000..d2535ab
--- /dev/null
+++ b/.github/workflows/cache-factory.yaml
@@ -0,0 +1,77 @@
+# This workflow _produces_ caches which are used to speed up pull request builds.
+# Originally from https://github.com/libp2p/rust-libp2p/blob/master/.github/workflows/cache-factory.yml
+
+name: Cache Factory
+
+on:
+ push:
+ paths:
+ - 'Cargo.lock'
+ - './scripts/setup.sh'
+ - './scripts/setup.ps1'
+ - '.github/workflows/cache-factory.yaml'
+ - '.github/actions/**/*.yml'
+ - '.github/actions/**/*.yaml'
+ - '**/build.rs'
+ - 'core/prisma/**'
+ branches:
+ - main
+
+# Cancel previous runs of the same workflow on the same branch.
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: true
+
+jobs:
+ make_cache:
+ strategy:
+ fail-fast: true
+ matrix:
+ settings:
+ - host: macos-latest
+ target: x86_64-apple-darwin
+ - host: macos-latest
+ target: aarch64-apple-darwin
+ - host: windows-latest
+ target: x86_64-pc-windows-msvc
+ - host: ubuntu-20.04
+ target: x86_64-unknown-linux-gnu
+ name: 'Make Cache'
+ runs-on: ${{ matrix.settings.host }}
+ steps:
+ - name: Maximize build space
+ if: ${{ runner.os == 'Linux' }}
+ uses: easimon/maximize-build-space@master
+ with:
+ swap-size-mb: 3072
+ root-reserve-mb: 6144
+ remove-dotnet: 'true'
+ remove-codeql: 'true'
+ remove-haskell: 'true'
+ remove-docker-images: 'true'
+
+ - name: Checkout repository
+ uses: actions/checkout@v3
+
+ - name: Symlink target to C:\
+ if: ${{ runner.os == 'Windows' }}
+ shell: powershell
+ run: |
+ New-Item -ItemType Directory -Force -Path C:\nexus_target
+ New-Item -Path target -ItemType Junction -Value C:\nexus_target
+
+ - name: Setup System and Rust
+ uses: ./.github/actions/setup-system
+ with:
+ token: ${{ secrets.GITHUB_TOKEN }}
+ target: ${{ matrix.settings.target }}
+ save-cache: 'true'
+
+ - name: Clippy
+ run: cargo clippy --workspace --all-features --target ${{ matrix.settings.target }}
+
+ - name: Compile (debug)
+ run: cargo test --workspace --all-features --no-run --target ${{ matrix.settings.target }}
+
+ - name: Compile (release)
+ run: cargo test --workspace --all-features --no-run --release --target ${{ matrix.settings.target }}
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
new file mode 100644
index 0000000..4fbdbcd
--- /dev/null
+++ b/.github/workflows/release.yaml
@@ -0,0 +1,102 @@
+name: Release
+
+on:
+ workflow_dispatch:
+
+# a lot of this isnt necessary but i'm designing ahead for tauri integration
+jobs:
+ desktop-main:
+ strategy:
+ matrix:
+ settings:
+ - host: macos-latest
+ target: x86_64-apple-darwin
+ bundles: app,dmg
+ os: darwin
+ arch: x86_64
+ - host: macos-latest
+ target: aarch64-apple-darwin
+ bundles: app,dmg
+ os: darwin
+ arch: aarch64
+ - host: windows-latest
+ target: x86_64-pc-windows-msvc
+ bundles: msi
+ os: windows
+ arch: x86_64
+ - host: ubuntu-20.04
+ target: x86_64-unknown-linux-gnu
+ bundles: deb,appimage
+ os: linux
+ arch: x86_64
+ name: Desktop - Main ${{ matrix.settings.target }}
+ runs-on: ${{ matrix.settings.host }}
+ steps:
+ - name: Maximize build space
+ if: ${{ runner.os == 'Linux' }}
+ uses: easimon/maximize-build-space@master
+ with:
+ swap-size-mb: 3072
+ root-reserve-mb: 6144
+ remove-dotnet: 'true'
+ remove-codeql: 'true'
+ remove-haskell: 'true'
+ remove-docker-images: 'true'
+
+ - name: Checkout repository
+ uses: actions/checkout@v3
+
+ - name: Symlink target to C:\
+ if: ${{ runner.os == 'Windows' }}
+ shell: powershell
+ run: |
+ New-Item -ItemType Directory -Force -Path C:\nexus_target
+ New-Item -Path target -ItemType Junction -Value C:\nexus_target
+
+ - name: Remove 32-bit libs
+ if: ${{ runner.os == 'Linux' }}
+ run: |
+ dpkg -l | grep i386
+ sudo apt-get purge --allow-remove-essential libc6-i386 ".*:i386"
+ sudo dpkg --remove-architecture i386
+
+ - name: Setup System and Rust
+ uses: ./.github/actions/setup-system
+ with:
+ token: ${{ secrets.GITHUB_TOKEN }}
+ target: ${{ matrix.settings.target }}
+
+ - name: Setup Node.js, pnpm and dependencies
+ uses: ./.github/actions/setup-pnpm
+ with:
+ token: ${{ secrets.GITHUB_TOKEN }}
+
+ - name: Build
+ run: |
+ pnpm tauri build --ci -v --target ${{ matrix.settings.target }} --bundles ${{ matrix.settings.bundles }},updater
+
+ # this doesnt work rn so just uhh dont use it lol
+ - name: Publish Artifacts
+ uses: ./.github/actions/publish-artifacts
+ with:
+ os: ${{ matrix.settings.os }}
+ arch: ${{ matrix.settings.arch }}
+ target: ${{ matrix.settings.target }}
+ profile: release
+
+ release:
+ if: startsWith(github.ref, 'refs/tags/')
+ runs-on: ubuntu-latest
+ name: Create Release
+ needs: desktop-main
+ permissions:
+ contents: write
+ steps:
+ - name: Download artifacts
+ uses: actions/download-artifact@v3
+
+ - name: Create Release
+ uses: softprops/action-gh-release@v1
+ with:
+ draft: true
+ files: '*/**'
diff --git a/.github/workflows/testing.yaml b/.github/workflows/testing.yaml
new file mode 100644
index 0000000..b92345c
--- /dev/null
+++ b/.github/workflows/testing.yaml
@@ -0,0 +1,142 @@
+name: CI
+
+on:
+ pull_request:
+ merge_group:
+
+# Cancel previous runs of the same workflow on the same branch.
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: true
+
+jobs:
+ typescript:
+ name: TypeScript
+ runs-on: ubuntu-20.04
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v3
+
+ - name: Setup Node.js, pnpm and dependencies
+ uses: ./.github/actions/setup-pnpm
+ with:
+ token: ${{ secrets.GITHUB_TOKEN }}
+
+ - name: Perform typechecks
+ run: pnpm typecheck
+
+ eslint:
+ name: ESLint
+ runs-on: ubuntu-20.04
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v3
+
+ - name: Setup Node.js, pnpm and dependencies
+ uses: ./.github/actions/setup-pnpm
+ with:
+ token: ${{ secrets.GITHUB_TOKEN }}
+
+ - name: Perform linting
+ run: pnpm lint
+
+ rustfmt:
+ name: Rust Formatting
+ runs-on: ubuntu-20.04
+ steps:
+ - name: Maximize build space
+ if: ${{ runner.os == 'Linux' }}
+ uses: easimon/maximize-build-space@master
+ with:
+ swap-size-mb: 3072
+ root-reserve-mb: 6144
+ remove-dotnet: 'true'
+ remove-codeql: 'true'
+ remove-haskell: 'true'
+ remove-docker-images: 'true'
+
+ - name: Checkout repository
+ uses: actions/checkout@v3
+
+ - name: Symlink target to C:\
+ if: ${{ runner.os == 'Windows' }}
+ shell: powershell
+ run: |
+ New-Item -ItemType Directory -Force -Path C:\nexus_target
+ New-Item -Path target -ItemType Junction -Value C:\nexus_target
+
+ - uses: dorny/paths-filter@v2
+ id: filter
+ with:
+ filters: |
+ changes:
+ - 'apps/cli/*/**'
+ - 'apps/desktop/crates/*/**'
+ - 'apps/desktop/src-tauri/*/**'
+ - 'core/**'
+ - 'crates/*/**'
+ - 'Cargo.toml'
+ - 'Cargo.lock'
+
+ - name: Setup Rust
+ if: steps.filter.outputs.changes == 'true'
+ uses: ./.github/actions/setup-rust
+
+ - name: Run rustfmt
+ if: steps.filter.outputs.changes == 'true'
+ run: cargo fmt --all -- --check
+
+ clippy:
+ name: Clippy (${{ matrix.platform }})
+ runs-on: ${{ matrix.platform }}
+ strategy:
+ matrix:
+ platform: [ubuntu-20.04, macos-latest, windows-latest]
+ steps:
+ - name: Maximize build space
+ if: ${{ runner.os == 'Linux' }}
+ uses: easimon/maximize-build-space@master
+ with:
+ swap-size-mb: 3072
+ root-reserve-mb: 6144
+ remove-dotnet: 'true'
+ remove-codeql: 'true'
+ remove-haskell: 'true'
+ remove-docker-images: 'true'
+
+ - name: Checkout repository
+ uses: actions/checkout@v3
+
+ - name: Symlink target to C:\
+ if: ${{ runner.os == 'Windows' }}
+ shell: powershell
+ run: |
+ New-Item -ItemType Directory -Force -Path C:\nexus_target
+ New-Item -Path target -ItemType Junction -Value C:\nexus_target
+
+ - uses: dorny/paths-filter@v2
+ id: filter
+ with:
+ # this is also designing ahead for tauri
+ filters: |
+ changes:
+ - 'apps/cli/*/**'
+ - 'apps/desktop/crates/*/**'
+ - 'apps/desktop/src-tauri/*/**'
+ - 'core/**'
+ - 'crates/*/**'
+ - 'Cargo.toml'
+ - 'Cargo.lock'
+
+ - name: Setup System and Rust
+ if: steps.filter.outputs.changes == 'true'
+ uses: ./.github/actions/setup-system
+ with:
+ token: ${{ secrets.GITHUB_TOKEN }}
+
+ - name: Run Clippy
+ if: steps.filter.outputs.changes == 'true'
+ uses: actions-rs/clippy-check@v1
+ with:
+ args: --workspace --all-features
+ token: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.gitignore b/.gitignore
index 3504d58..2fd4ac2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -642,6 +642,7 @@ iOSInjectionProject/
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
+!.vscode/tailwind.json
!.vscode/*.code-snippets
# Local History for Visual Studio Code
diff --git a/.prettierrc.js b/.prettierrc.js
index c223c9b..5eaa8c7 100644
--- a/.prettierrc.js
+++ b/.prettierrc.js
@@ -7,10 +7,13 @@ module.exports = {
bracketSameLine: false,
semi: true,
quoteProps: 'consistent',
- importOrder: ['<THIRD_PARTY_MODULES>', '^@polyfrost/(interface|client|ui)(/.*)?$', '^~/', '^\\.'],
- importOrderSortSpecifiers: true,
+ importOrder: [
+ '<THIRD_PARTY_MODULES>',
+ '^@polyfrost/(interface|client|ui)(/.*)?$',
+ '^~/',
+ '^\\.'
+ ],
importOrderParserPlugins: ['importAssertions', 'typescript', 'jsx'],
- pluginSearchDirs: false,
plugins: ['@ianvs/prettier-plugin-sort-imports', 'prettier-plugin-tailwindcss'],
tailwindConfig: './packages/ui/tailwind.config.js'
-}
+};
diff --git a/.vscode/extensions.json b/.vscode/extensions.json
index 412a742..7ecfae2 100644
--- a/.vscode/extensions.json
+++ b/.vscode/extensions.json
@@ -1,8 +1,10 @@
{
- "recommendations": [
- "tauri-apps.tauri-vscode",
- "rust-lang.rust-analyzer",
- "oscarbeaumont.rspc-vscode",
- "EditorConfig.EditorConfig"
- ]
-} \ No newline at end of file
+ "recommendations": [
+ "tauri-apps.tauri-vscode",
+ "rust-lang.rust-analyzer",
+ "oscarbeaumont.rspc-vscode",
+ "EditorConfig.EditorConfig",
+ "prisma.prisma",
+ "bradlc.vscode-tailwindcss"
+ ]
+}
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 795cf25..1987dec 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -1,28 +1,28 @@
{
- "[rust]": {
- "editor.defaultFormatter": "rust-lang.rust-analyzer"
- },
- "rust-analyzer.procMacro.enable": true,
- "rust-analyzer.diagnostics.experimental.enable": false,
- "tailwindCSS.experimental.classRegex": [
- ["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"], // cva(....)`...`
+ "[rust]": {
+ "editor.defaultFormatter": "rust-lang.rust-analyzer"
+ },
+ "rust-analyzer.procMacro.enable": true,
+ "rust-analyzer.diagnostics.experimental.enable": false,
+ "tailwindCSS.experimental.classRegex": [
+ ["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"], // cva(....)`...`
"tw\\.[^`]+`([^`]*)`", // tw.xxx`...`
- "tw\\(.*?\\).*?`([^`]*)", // tw(....)`...`
- ],
- "search.exclude": {
- "**/node_modules": true,
- "**/bower_components": true,
- "**/*.code-search": true,
+ "tw\\(.*?\\).*?`([^`]*)" // tw(....)`...`
+ ],
+ "search.exclude": {
+ "**/node_modules": true,
+ "**/bower_components": true,
+ "**/*.code-search": true,
"**/pnpm-lock.yaml": true,
- "**/.gitignore": true
- },
- "eslint.lintTask.enable": true,
- "eslint.workingDirectories": [
-
- ],
- "explorer.fileNesting.enabled": true,
- "explorer.fileNesting.patterns": {
- "*.ts": "${capture}.js",
+ "**/.gitignore": true,
+ "/packages/ctjs/types/*": true
+ },
+ "css.customData": [".vscode/tailwind.json"],
+ "eslint.lintTask.enable": true,
+ "eslint.workingDirectories": [],
+ "explorer.fileNesting.enabled": true,
+ "explorer.fileNesting.patterns": {
+ "*.ts": "${capture}.js",
"*.js": "${capture}.js.map, ${capture}.min.js, ${capture}.d.ts",
"*.jsx": "${capture}.js",
"*.tsx": "${capture}.ts",
@@ -31,9 +31,9 @@
"README.md": "CONTRIBUTING.md, CODE_OF_CONDUCT.md, LICENSE",
"Cargo.toml": "Cargo.lock",
".eslintrc.js": ".eslintcache",
- ".prettierrc.*": ".rustfmt.toml, .gitattributes, .editorconfig, .clippy.toml",
+ ".prettierrc.*": ".rustfmt.toml, .gitattributes, .editorconfig, .clippy.toml",
"package.json": "package-lock.json, yarn.lock, pnpm-lock.yaml, pnpm-workspace.yaml, .pnp.cjs, .pnp.loader.mjs",
"tsconfig.json": "tsconfig.*.json",
"flake.nix": "shell.nix, flake.lock, Cargo.nix"
- }
+ }
}
diff --git a/.vscode/tailwind.json b/.vscode/tailwind.json
new file mode 100644
index 0000000..a45bccc
--- /dev/null
+++ b/.vscode/tailwind.json
@@ -0,0 +1,55 @@
+{
+ "version": 1.1,
+ "atDirectives": [
+ {
+ "name": "@tailwind",
+ "description": "Use the `@tailwind` directive to insert Tailwind's `base`, `components`, `utilities` and `screens` styles into your CSS.",
+ "references": [
+ {
+ "name": "Tailwind Documentation",
+ "url": "https://tailwindcss.com/docs/functions-and-directives#tailwind"
+ }
+ ]
+ },
+ {
+ "name": "@apply",
+ "description": "Use the `@apply` directive to inline any existing utility classes into your own custom CSS. This is useful when you find a common utility pattern in your HTML that you’d like to extract to a new component.",
+ "references": [
+ {
+ "name": "Tailwind Documentation",
+ "url": "https://tailwindcss.com/docs/functions-and-directives#apply"
+ }
+ ]
+ },
+ {
+ "name": "@responsive",
+ "description": "You can generate responsive variants of your own classes by wrapping their definitions in the `@responsive` directive:\n```css\n@responsive {\n .alert {\n background-color: #E53E3E;\n }\n}\n```\n",
+ "references": [
+ {
+ "name": "Tailwind Documentation",
+ "url": "https://tailwindcss.com/docs/functions-and-directives#responsive"
+ }
+ ]
+ },
+ {
+ "name": "@screen",
+ "description": "The `@screen` directive allows you to create media queries that reference your breakpoints by **name** instead of duplicating their values in your own CSS:\n```css\n@screen sm {\n /* ... */\n}\n```\n…gets transformed into this:\n```css\n@media (min-width: 640px) {\n /* ... */\n}\n```\n",
+ "references": [
+ {
+ "name": "Tailwind Documentation",
+ "url": "https://tailwindcss.com/docs/functions-and-directives#screen"
+ }
+ ]
+ },
+ {
+ "name": "@variants",
+ "description": "Generate `hover`, `focus`, `active` and other **variants** of your own utilities by wrapping their definitions in the `@variants` directive:\n```css\n@variants hover, focus {\n .btn-brand {\n background-color: #3182CE;\n }\n}\n```\n",
+ "references": [
+ {
+ "name": "Tailwind Documentation",
+ "url": "https://tailwindcss.com/docs/functions-and-directives#variants"
+ }
+ ]
+ }
+ ]
+}
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
index c029a2a..e1ea5d3 100644
--- a/CODE_OF_CONDUCT.md
+++ b/CODE_OF_CONDUCT.md
@@ -17,24 +17,24 @@ diverse, inclusive, and healthy community.
Examples of behavior that contributes to a positive environment for our
community include:
-- Demonstrating empathy and kindness toward other people
-- Being respectful of differing opinions, viewpoints, and experiences
-- Giving and gracefully accepting constructive feedback
-- Accepting responsibility and apologizing to those affected by our mistakes,
- and learning from the experience
-- Focusing on what is best not just for us as individuals, but for the
- overall community
+- Demonstrating empathy and kindness toward other people
+- Being respectful of differing opinions, viewpoints, and experiences
+- Giving and gracefully accepting constructive feedback
+- Accepting responsibility and apologizing to those affected by our mistakes,
+ and learning from the experience
+- Focusing on what is best not just for us as individuals, but for the
+ overall community
Examples of unacceptable behavior include:
-- The use of sexualized language or imagery, and sexual attention or
- advances of any kind
-- Trolling, insulting or derogatory comments, and personal or political attacks
-- Public or private harassment
-- Publishing others' private information, such as a physical or email
- address, without their explicit permission
-- Other conduct which could reasonably be considered inappropriate in a
- professional setting
+- The use of sexualized language or imagery, and sexual attention or
+ advances of any kind
+- Trolling, insulting or derogatory comments, and personal or political attacks
+- Public or private harassment
+- Publishing others' private information, such as a physical or email
+ address, without their explicit permission
+- Other conduct which could reasonably be considered inappropriate in a
+ professional setting
## Enforcement Responsibilities
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 0555dc9..d0bccb7 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -10,12 +10,12 @@ This guide will provide an overview of the contribution workflow, including open
To familiarize yourself with the project, please read the [README](README.md). Here are some resources to help you get started with open-source contributions:
-- [Finding ways to contribute to open-source on GitHub](https://docs.github.com/en/get-started/exploring-projects-on-github/finding-ways-to-contribute-to-open-source-on-github)
-- [Setting up Git](https://docs.github.com/en/get-started/quickstart/set-up-git)
-- [GitHub flow](https://docs.github.com/en/get-started/quickstart/github-flow)
-- [Collaborating with pull requests](https://docs.github.com/en/github/collaborating-with-pull-requests)
-- [Getting started with Tauri](https://tauri.app/v1/guides/getting-started/prerequisites)
-- [pnpm CLI](https://pnpm.io/pnpm-cli)
+- [Finding ways to contribute to open-source on GitHub](https://docs.github.com/en/get-started/exploring-projects-on-github/finding-ways-to-contribute-to-open-source-on-github)
+- [Setting up Git](https://docs.github.com/en/get-started/quickstart/set-up-git)
+- [GitHub flow](https://docs.github.com/en/get-started/quickstart/github-flow)
+- [Collaborating with pull requests](https://docs.github.com/en/github/collaborating-with-pull-requests)
+- [Getting started with Tauri](https://tauri.app/v1/guides/getting-started/prerequisites)
+- [pnpm CLI](https://pnpm.io/pnpm-cli)
## Getting Started
@@ -39,29 +39,30 @@ To make changes locally, follow these steps:
1. Clone the repository: `git clone https://github.com/Polyfrost/Nexus`
2. Navigate to the project directory: `cd Nexus`
-3. For Linux or MacOS users, run: `./.github/scripts/setup-system.sh`
- - This will install all required dependencies for Nexus to build.
-4. For Windows users, run the following command in PowerShell: `.\.github\scripts\setup-system.ps1`
- - This will install pnpm and any other required dependencies for Nexus to build.
+3. For Linux or MacOS users, run: `./.github/scripts/setup.sh`
+ - This will install all required dependencies for Nexus to build.
+4. For Windows users, run the following command in PowerShell: `.\.github\scripts\setup.ps1`
+ - This will install pnpm and any other required dependencies for Nexus to build.
+ - Soon, this will be deprecated in favor of a build CLI system.
5. Install dependencies: `pnpm i`
6. Prepare the build: `pnpm prep` (This will run all necessary codegen and build required dependencies)
To quickly run only the launcher after `prep`, you can use:
-- `pnpm desktop dev`
+- `pnpm desktop dev`
- If necessary, react-devtools can be launched using `pnpm react-devtools`.
- However, it must be executed before starting the desktop app for it to connect.
+ If necessary, react-devtools can be launched using `pnpm react-devtools`.
+ However, it must be executed before starting the desktop app for it to connect.
To run the website app:
-- `pnpm website dev`
+- `pnpm website dev`
If you encounter any issues, ensure that you are using the following versions of Rust, Node and Pnpm:
-- Rust version: **1.70+**
-- Node version: **18+**
-- Pnpm version: **8.0+**
+- Rust version: **1.70+**
+- Node version: **18+**
+- Pnpm version: **8.0+**
After cleaning out your build artifacts using `pnpm clean`, `git clean`, or `cargo clean`, it is necessary to re-run the `setup-system` script.
@@ -71,13 +72,13 @@ Make sure to read the [guidelines](https://docs.polyfrost.org/nexus/developers/p
Once you have finished making your changes, create a pull request (PR) to submit them.
-- Fill out the "Ready for review" template to help reviewers understand your changes and the purpose of your PR.
-- If you are addressing an existing issue, don't forget to [link your PR to the issue](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue).
-- Enable the checkbox to [allow maintainer edits](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/allowing-changes-to-a-pull-request-branch-created-from-a-fork) so that the branch can be updated for merging.
-- Once you submit your PR, a team member will review your proposal. They may ask questions or request additional information.
-- You may be asked to make changes before the PR can be merged, either through [suggested changes](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/incorporating-feedback-in-your-pull-request) or pull request comments. You can apply suggested changes directly through the UI. For other changes, you can make them in your fork and commit them to your branch.
-- As you update your PR and apply changes, mark each conversation as [resolved](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/commenting-on-a-pull-request#resolving-conversations).
-- If you run into any merge issues, refer to this [git tutorial](https://lab.github.com/githubtraining/managing-merge-conflicts) to help you resolve merge conflicts and other issues.
+- Fill out the "Ready for review" template to help reviewers understand your changes and the purpose of your PR.
+- If you are addressing an existing issue, don't forget to [link your PR to the issue](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue).
+- Enable the checkbox to [allow maintainer edits](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/allowing-changes-to-a-pull-request-branch-created-from-a-fork) so that the branch can be updated for merging.
+- Once you submit your PR, a team member will review your proposal. They may ask questions or request additional information.
+- You may be asked to make changes before the PR can be merged, either through [suggested changes](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/incorporating-feedback-in-your-pull-request) or pull request comments. You can apply suggested changes directly through the UI. For other changes, you can make them in your fork and commit them to your branch.
+- As you update your PR and apply changes, mark each conversation as [resolved](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/commenting-on-a-pull-request#resolving-conversations).
+- If you run into any merge issues, refer to this [git tutorial](https://lab.github.com/githubtraining/managing-merge-conflicts) to help you resolve merge conflicts and other issues.
### Your PR is Merged
@@ -91,4 +92,4 @@ to be added
### Credits
-This CONTRIBUTING.md file was inspired by the [github/docs CONTRIBUTING.md](https://github.com/github/docs/blob/main/CONTRIBUTING.md) file, and we extend our gratitude to the original author.
+This CONTRIBUTING.md file was inspired by the [github/docs CONTRIBUTING.md](https://github.com/github/docs/blob/main/CONTRIBUTING.md) file, and we extend our gratitude to the original authors.
diff --git a/README.md b/README.md
index 7a59bfa..e93b948 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# **Nexus**
-![Logo](pkgs/assets/images/NexusLogo.png)
+![Logo](packages/assets/images/NexusLogo.png)
A monorepo containing our website, launcher, and tools used by Polyfrost.
@@ -8,14 +8,14 @@ A monorepo containing our website, launcher, and tools used by Polyfrost.
## Apps
-- [**`apps/desktop`**](apps/launcher): The Polyfrost launcher.
-- [**`apps/website`**](apps/website): The Polyfrost website.
-- [**`apps/cli`**](apps/cli): Our launcher's CLI.
+- [**`apps/desktop`**](apps/launcher): The Polyfrost launcher.
+- [**`apps/website`**](apps/website): The Polyfrost website.
+- [**`apps/cli`**](apps/cli): Our launcher's CLI.
## Packages
-- [**`core`**](core) The core of our launcher, written in Rust.
-- [**`pkgs/client`**](pkgs/client) A TypeScript client library to handle dataflow via RPC between UIs and our Rust core.
-- [**`pkgs/ui`**](pkgs/ui) A shared React component library for our UIs.
-- [**`pkgs/interface`**](pkgs/interface) The complete user interface for our Launcher.
-- [**`pkgs/config`**](pkgs/config) A TypeScript library to handle configuration files.
+- [**`core`**](core) The core of our launcher, written in Rust.
+- [**`packages/client`**](packages/client) A TypeScript client library to handle dataflow via RPC between UIs and our Rust core.
+- [**`packages/ui`**](packages/ui) A shared React component library for our UIs.
+- [**`packages/interface`**](packages/interface) The complete user interface for our Launcher.
+- [**`packages/config`**](packages/config) A TypeScript library to handle configuration files.
diff --git a/apps/website/.eslintrc.js b/apps/website/.eslintrc.js
new file mode 100644
index 0000000..f80eaa9
--- /dev/null
+++ b/apps/website/.eslintrc.js
@@ -0,0 +1,8 @@
+/** @type {import('eslint').ESLint.ConfigData} */
+module.exports = {
+ extends: [require.resolve('@polyfrost/config/eslint/web.js')],
+ parserOptions: {
+ tsconfigRootDir: __dirname,
+ project: './tsconfig.json'
+ }
+};
diff --git a/apps/website/astro.config.ts b/apps/website/astro.config.ts
index c929648..98351a4 100644
--- a/apps/website/astro.config.ts
+++ b/apps/website/astro.config.ts
@@ -1,10 +1,7 @@
-import { defineConfig } from 'astro/config';
-
import tailwind from '@astrojs/tailwind';
+import { defineConfig } from 'astro/config';
// https://astro.build/config
export default defineConfig({
- integrations: [
- tailwind(),
- ]
+ integrations: [tailwind()]
});
diff --git a/apps/website/config.ts b/apps/website/config.ts
index 1b45557..19c92a4 100644
--- a/apps/website/config.ts
+++ b/apps/website/config.ts
@@ -1,93 +1,83 @@
-import type { Config, NavbarDropdown, NavbarElement, Project } from "@webtypes/Config";
+import type { Config, NavbarDropdown, NavbarElement, Project } from '@webtypes/Config';
export const configConst = {
- projects: getProjects(),
- logos: [
- "oneconfig.minimal",
- "polyfrost.full",
- "polyfrost.minimal",
- "polyfrost.minimal_bg",
- ],
- navbar: {
- left: [
- {
- logo: ["polyfrost.full", -1],
- path: "/",
- }
- ],
- right: [
- {
- text: "Home",
- path: "/",
- },
- {
- text: "Projects",
- dropdown: (getProjects().map((project) => {
- (project as any).path = `/projects/${project.name.toLowerCase()}`;
- return project;
- }) as unknown as NavbarDropdown[])
- }
- ]
- }
+ projects: getProjects(),
+ logos: ['oneconfig.minimal', 'polyfrost.full', 'polyfrost.minimal', 'polyfrost.minimal_bg'],
+ navbar: {
+ left: [
+ {
+ logo: ['polyfrost.full', -1],
+ path: '/'
+ }
+ ],
+ right: [
+ {
+ text: 'Home',
+ path: '/'
+ },
+ {
+ text: 'Projects',
+ dropdown: getProjects().map((project) => {
+ (project as any).path = `/projects/${project.name.toLowerCase()}`;
+ return project;
+ }) as unknown as NavbarDropdown[]
+ }
+ ]
+ }
} as const satisfies Config;
function getProjects(): Project[] {
- return [
- {
- name: "OneConfig",
- description: "The next-generation config library for Forge and Fabric",
- logo: "oneconfig.minimal",
- tag: "BETA"
- },
- {
- name: "OneLauncher",
- description: "The next-generation launcher for Forge and Fabric",
- logo: "polyfrost.minimal",
- tag: "SOON"
- },
- {
- name: "OneConfig",
- description: "The next-generation config library for Forge and Fabric",
- logo: "oneconfig.minimal",
- tag: "BETA"
- },
- {
- name: "OneLauncher",
- description: "The next-generation launcher for Forge and Fabric",
- logo: "polyfrost.minimal",
- tag: "SOON"
- },
- {
- name: "OneConfig",
- description: "The next-generation config library for Forge and Fabric",
- logo: "oneconfig.minimal",
- tag: "BETA"
- },
- {
- name: "OneLauncher",
- description: "The next-generation launcher for Forge and Fabric",
- logo: "polyfrost.minimal",
- tag: "SOON"
- },
- {
- name: "OneConfig",
- description: "The next-generation config library for Forge and Fabric",
- logo: "oneconfig.minimal",
- tag: "BETA"
- },
- {
- name: "OneLauncher",
- description: "The next-generation launcher for Forge and Fabric",
- logo: "polyfrost.minimal",
- tag: "SOON"
- },
- ]
+ return [
+ {
+ name: 'OneConfig',
+ description: 'The next-generation config library for Forge and Fabric',
+ logo: 'oneconfig.minimal',
+ tag: 'BETA'
+ },
+ {
+ name: 'OneLauncher',
+ description: 'The next-generation launcher for Forge and Fabric',
+ logo: 'polyfrost.minimal',
+ tag: 'SOON'
+ },
+ {
+ name: 'OneConfig',
+ description: 'The next-generation config library for Forge and Fabric',
+ logo: 'oneconfig.minimal',
+ tag: 'BETA'
+ },
+ {
+ name: 'OneLauncher',
+ description: 'The next-generation launcher for Forge and Fabric',
+ logo: 'polyfrost.minimal',
+ tag: 'SOON'
+ },
+ {
+ name: 'OneConfig',
+ description: 'The next-generation config library for Forge and Fabric',
+ logo: 'oneconfig.minimal',
+ tag: 'BETA'
+ },
+ {
+ name: 'OneLauncher',
+ description: 'The next-generation launcher for Forge and Fabric',
+ logo: 'polyfrost.minimal',
+ tag: 'SOON'
+ },
+ {
+ name: 'OneConfig',
+ description: 'The next-generation config library for Forge and Fabric',
+ logo: 'oneconfig.minimal',
+ tag: 'BETA'
+ },
+ {
+ name: 'OneLauncher',
+ description: 'The next-generation launcher for Forge and Fabric',
+ logo: 'polyfrost.minimal',
+ tag: 'SOON'
+ }
+ ];
}
-
-
-
-
-
// -------------------- NO TOUCH --------------------- //
export default configConst as unknown as Config;
diff --git a/apps/website/package.json b/apps/website/package.json
index 556cae9..214a306 100644
--- a/apps/website/package.json
+++ b/apps/website/package.json
@@ -1,7 +1,7 @@
{
"name": "@polyfrost/website",
"type": "module",
- "private": true,
+ "private": true,
"scripts": {
"dev": "astro dev",
"start": "astro start",
@@ -14,6 +14,8 @@
"tailwindcss": "^3.3.3"
},
"devDependencies": {
+ "@polyfrost/config": "workspace:*",
+ "@types/node": "~18.17.19",
"typescript": "^5.2.2"
}
}
diff --git a/apps/website/src/styles/global.css b/apps/website/src/styles/global.css
index 51f3c19..6520592 100644
--- a/apps/website/src/styles/global.css
+++ b/apps/website/src/styles/global.css
@@ -1,11 +1,11 @@
@tailwind base;
* {
- font-family: 'Poppins', sans-serif;
+ font-family: 'Poppins', sans-serif;
}
@layer base {
- :focus-visible {
- @apply outline-none ring ring-blue-500;
- }
-} \ No newline at end of file
+ :focus-visible {
+ @apply outline-none ring ring-blue-500;
+ }
+}
diff --git a/apps/website/src/types/Config.d.ts b/apps/website/src/types/Config.d.ts
index 82eb4d7..2781b1b 100644
--- a/apps/website/src/types/Config.d.ts
+++ b/apps/website/src/types/Config.d.ts
@@ -1,34 +1,34 @@
-import { type configConst } from "config";
+import { type configConst } from 'config';
-export type LogoType = typeof configConst.logos[number];
+export type LogoType = (typeof configConst.logos)[number];
export interface Project {
- name: string,
- description: string,
- logo?: LogoType,
- tag?: string,
+ name: string;
+ description: string;
+ logo?: LogoType;
+ tag?: string;
}
export type NavbarDropdown = {
- name: string,
- description: string,
- path: string,
- logo?: LogoType,
- tag?: string
-}
+ name: string;
+ description: string;
+ path: string;
+ logo?: LogoType;
+ tag?: string;
+};
export type NavbarElement = {
- text?: string,
- logo?: [string, number],
- path?: string,
- dropdown?: NavbarDropdown[],
-}
+ text?: string;
+ logo?: [string, number];
+ path?: string;
+ dropdown?: NavbarDropdown[];
+};
export interface Config {
- projects: Project[],
- logos: string[],
- navbar: {
- left: NavbarElement[],
- right: NavbarElement[],
- },
-} \ No newline at end of file
+ projects: Project[];
+ logos: string[];
+ navbar: {
+ left: NavbarElement[];
+ right: NavbarElement[];
+ };
+}
diff --git a/apps/website/tailwind.config.cjs b/apps/website/tailwind.config.cjs
new file mode 100644
index 0000000..3cf5259
--- /dev/null
+++ b/apps/website/tailwind.config.cjs
@@ -0,0 +1,53 @@
+/** @type {import('tailwindcss').Config} */
+module.exports = {
+ content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
+ theme: {
+ colors: {
+ blue: {
+ 500: 'rgba(31, 101, 214, 1)'
+ },
+ gray: {
+ 50: 'rgba(240, 242, 244, 1)',
+ 400: 'rgba(138, 150, 168, 1)',
+ 700: 'rgba(65, 74, 88, 1)',
+ 800: 'rgba(42, 47, 55, 1)'
+ },
+ white: {
+ DEFAULT: 'rgba(255, 255, 255, 1)',
+ secondary: 'rgba(238, 241, 254, 1)',
+ hover: 'rgba(231, 235, 252, 1)'
+ },
+ black: {
+ DEFAULT: 'rgba(0, 0, 0, 1)'
+ },
+ text: {
+ DEFAULT: 'rgba(2, 3, 7, 1)',
+ primary: 'rgba(2, 3, 7, 1)'
+ }
+ },
+ borderRadius: {
+ none: '0',
+ sm: '3px',
+ md: '5px',
+ lg: '8px',
+ xl: '12px',
+ full: '100vw'
+ },
+ fontSize: {
+ 'xs': '12px',
+ 'sm': '14px',
+ 'md': '16px',
+ 'lg': '18px',
+
+ 'header-sm': '24px',
+ 'header': '28px',
+ 'header-lg': '32px',
+
+ 'body-sm': '15px',
+ 'body': '16px',
+ 'body-lg': '17px'
+ },
+ extend: {}
+ },
+ plugins: []
+};
diff --git a/apps/website/tsconfig.json b/apps/website/tsconfig.json
index 17881e6..dbadc64 100644
--- a/apps/website/tsconfig.json
+++ b/apps/website/tsconfig.json
@@ -1,10 +1,15 @@
{
- "extends": "astro/tsconfigs/base",
+ "extends": "astro/tsconfigs/strict",
"compilerOptions": {
+ "baseUrl": ".",
+ "composite": true,
"paths": {
- "@layouts/*": ["src/layouts/*"],
"@components/*": ["src/components/*"],
- "@pages/*": ["src/pages/*"]
+ "@layouts/*": ["src/layouts/*"],
+ "@webtypes/*": ["src/types/*"],
+ "@lib/*": ["src/lib/*"],
+ "@public/*": ["public/*"],
+ "@config": ["config.ts"]
}
}
}
diff --git a/package.json b/package.json
index a8163aa..ca76bd2 100644
--- a/package.json
+++ b/package.json
@@ -1,31 +1,50 @@
{
- "name": "@polyfrost/nexus",
- "version": "0.0.0",
- "private": true,
- "scripts": {
- "website": "pnpm --filter @polyfrost/website"
- },
- "devDependencies": {
- "@babel/plugin-syntax-import-assertions": "^7.22.5",
- "@ianvs/prettier-plugin-sort-imports": "^4.1.1",
- "@storybook/react-vite": "^7.4.6",
- "prettier": "^3.0.3",
- "prettier-plugin-tailwindcss": "^0.5.6",
- "turbo": "^1.10.15",
- "turbo-ignore": "^1.10.15",
- "typescript": "^5.2.2",
- "vite": "^4.4.11"
- },
- "overrides": {
- "@types/node": "~18.17.19"
- },
- "engines": {
- "pnpm": ">=8.0.0",
- "npm": "pnpm",
- "yarn": "pnpm",
- "node": ">=18.17 <19 || >=20.1"
- },
- "eslintConfig": {
- "root": true
- }
+ "name": "@polyfrost/nexus",
+ "version": "0.0.0",
+ "private": true,
+ "scripts": {
+ "build": "turbo run build",
+ "typecheck": "pnpm -r typecheck",
+ "format": "prettier --write .",
+ "lint": "turbo run lint",
+ "lint:fix": "turbo run lint -- --fix",
+ "clean": "git clean -qfX .",
+ "prisma": "cd core && cargo prisma",
+ "tauri": "pnpm desktop tauri",
+ "desktop": "pnpm --filter @polyfrost/desktop -- ",
+ "website": "pnpm --filter @polyfrost/website -- ",
+ "interface": "pnpm --filter @polyfrost/interface -- ",
+ "assets": "pnpm --filter @polyfrost/assets -- ",
+ "client": "pnpm --filter @polyfrost/client -- ",
+ "storybook": "pnpm --filter @polyfrost/storybook -- ",
+ "ui": "pnpm --filter @polyfrost/ui -- ",
+ "prep": "pnpm gen:prisma",
+ "postprep": "pnpm codegen",
+ "gen:migrations": "cd core && cargo prisma migrate dev",
+ "gen:prisma": "cd core && cargo prisma generate",
+ "codegen": "cargo test -p nexus-core api::tests::gen -- --exact"
+ },
+ "devDependencies": {
+ "@babel/plugin-syntax-import-assertions": "^7.22.5",
+ "@ianvs/prettier-plugin-sort-imports": "^4.1.1",
+ "@storybook/react-vite": "^7.4.6",
+ "prettier": "^3.0.3",
+ "prettier-plugin-tailwindcss": "^0.5.6",
+ "turbo": "^1.10.15",
+ "turbo-ignore": "^1.10.15",
+ "typescript": "^5.2.2",
+ "vite": "^4.4.11"
+ },
+ "overrides": {
+ "@types/node": "~18.17.19"
+ },
+ "engines": {
+ "pnpm": ">=8.0.0",
+ "npm": "pnpm",
+ "yarn": "pnpm",
+ "node": ">=18.17 <19 || >=20.1"
+ },
+ "eslintConfig": {
+ "root": true
+ }
}
diff --git a/packages/assets/README.md b/packages/assets/README.md
new file mode 100644
index 0000000..bbe042c
--- /dev/null
+++ b/packages/assets/README.md
@@ -0,0 +1,3 @@
+# shared assets
+
+all svgs and other shared assets put here
diff --git a/packages/assets/package.json b/packages/assets/package.json
new file mode 100644
index 0000000..cc29174
--- /dev/null
+++ b/packages/assets/package.json
@@ -0,0 +1,8 @@
+{
+ "name": "@polyfrost/assets",
+ "version": "0.0.0",
+ "private": true,
+ "scripts": {
+ "gen": "node ./scripts/generate.mjs"
+ }
+}
diff --git a/packages/assets/scripts/generate.mjs b/packages/assets/scripts/generate.mjs
new file mode 100644
index 0000000..44ba4e4
--- /dev/null
+++ b/packages/assets/scripts/generate.mjs
@@ -0,0 +1,62 @@
+import fs from 'node:fs/promises';
+import { dirname, join } from 'node:path';
+import { fileURLToPath } from 'node:url';
+import prettier from 'prettier';
+
+const assetFolders = ['icons', 'images', 'svgs/brands', 'svgs/ext/Extras', 'svgs/ext/Code'];
+
+const __filename = fileURLToPath(import.meta.url);
+const __dirname = dirname(__filename);
+
+prettier.resolveConfig(join(__dirname, '..', '..', '..', '.prettierrc.js')).then((options) =>
+ Promise.all(
+ assetFolders.map(async (folder) => {
+ const indexFilePath = join(__dirname, '..', folder, 'index.ts');
+ const assetsFolderPath = join(__dirname, '..', folder);
+
+ if (
+ await fs.access(indexFilePath).then(
+ () => true,
+ () => false
+ )
+ ) {
+ await fs.unlink(indexFilePath);
+ }
+
+ const fileNames = await fs.readdir(assetsFolderPath);
+
+ const assetImports = fileNames
+ .filter((fileName) => fileName !== 'index.ts' && !/(^|\/)\.[^\/\.]/g.test(fileName))
+ .map((fileName) => {
+ const variableName = fileName.split('.')[0].replace(/-/g, '');
+ if (folder.startsWith('svgs')) {
+ return `import { ReactComponent as ${variableName} } from './${fileName}';`;
+ }
+ return `import ${variableName} from './${fileName}';`;
+ })
+ .join('\n');
+
+ const assetExports = fileNames
+ .filter((fileName) => fileName !== 'index.ts' && !/(^|\/)\.[^\/\.]/g.test(fileName))
+ .map((fileName) => `${fileName.split('.')[0].replace(/-/g, '')}`)
+ .join(',\n');
+
+ const indexFileContent = await prettier.format(
+ `
+ /*
+ * This file was automatically generated by a script.
+ * To regenerate this file, run: pnpm assets gen
+ */
+
+ ${assetImports}
+
+ export {
+ ${assetExports}
+ };`,
+ { ...options, parser: 'typescript' }
+ );
+
+ await fs.writeFile(indexFilePath, indexFileContent);
+ })
+ )
+);
diff --git a/packages/config/.eslintrc.js b/packages/config/.eslintrc.js
new file mode 100644
index 0000000..93a0c63
--- /dev/null
+++ b/packages/config/.eslintrc.js
@@ -0,0 +1,4 @@
+/** @type {import('eslint').ESLint.ConfigData} */
+module.exports = {
+ extends: [require.resolve('./eslint/base.js'), require.resolve('./eslint/tailwind.js')]
+};
diff --git a/packages/config/app.tsconfig.json b/packages/config/app.tsconfig.json
new file mode 100644
index 0000000..e17622d
--- /dev/null
+++ b/packages/config/app.tsconfig.json
@@ -0,0 +1,7 @@
+{
+ "extends": "./base.tsconfig.json",
+ "compilerOptions": {
+ "noEmit": true,
+ "emitDeclarationOnly": false
+ }
+}
diff --git a/packages/config/base.tsconfig.json b/packages/config/base.tsconfig.json
new file mode 100644
index 0000000..2d27ce4
--- /dev/null
+++ b/packages/config/base.tsconfig.json
@@ -0,0 +1,22 @@
+{
+ "$schema": "https://json.schemastore.org/tsconfig",
+ "display": "Default",
+ "compilerOptions": {
+ "strict": true,
+ "jsx": "react-jsx",
+ "esModuleInterop": true,
+ "skipLibCheck": true,
+ "preserveWatchOutput": true,
+ "forceConsistentCasingInFileNames": true,
+ "allowSyntheticDefaultImports": true,
+ "noUncheckedIndexedAccess": true,
+ "composite": true,
+ "declaration": true,
+ "emitDeclarationOnly": true,
+ "moduleResolution": "Node",
+ "resolveJsonModule": true,
+ "module": "ESNext",
+ "target": "ESNext",
+ "types": ["vite/client"]
+ }
+}
diff --git a/packages/config/eslint/base.js b/packages/config/eslint/base.js
new file mode 100644
index 0000000..200f17d
--- /dev/null
+++ b/packages/config/eslint/base.js
@@ -0,0 +1,79 @@
+const path = require('node:path');
+
+/** @type {import('eslint').ESLint.ConfigData} */
+module.exports = {
+ parser: '@typescript-eslint/parser',
+ parserOptions: {
+ ecmaFeatures: {
+ jsx: true
+ },
+ ecmaVersion: 12,
+ sourceType: 'module'
+ },
+ extends: [
+ 'eslint:recommended',
+ 'plugin:react/recommended',
+ 'plugin:react-hooks/recommended',
+ 'plugin:@typescript-eslint/recommended',
+ 'plugin:astro/recommended',
+ 'plugin:astro/jsx-a11y-recommended',
+ 'turbo',
+ 'prettier'
+ ],
+ plugins: ['react', 'jsx-a11y'],
+ rules: {
+ 'react/display-name': 'off',
+ 'react/prop-types': 'off',
+ 'react/no-unescaped-entities': 'off',
+ 'react/react-in-jsx-scope': 'off',
+ 'react-hooks/rules-of-hooks': 'warn',
+ 'react-hooks/exhaustive-deps': 'warn',
+ '@typescript-eslint/no-unused-vars': 'off',
+ '@typescript-eslint/ban-ts-comment': 'off',
+ '@typescript-eslint/no-explicit-any': 'off',
+ '@typescript-eslint/no-var-requires': 'off',
+ '@typescript-eslint/no-non-null-assertion': 'off',
+ '@typescript-eslint/explicit-module-boundary-types': 'off',
+ '@typescript-eslint/no-empty-interface': 'off',
+ '@typescript-eslint/no-empty-function': 'off',
+ '@typescript-eslint/ban-types': 'off',
+ 'no-control-regex': 'off',
+ 'no-mixed-spaces-and-tabs': ['warn', 'smart-tabs'],
+ 'turbo/no-undeclared-env-vars': [
+ 'error',
+ {
+ cwd: path.resolve(path.join(__dirname, '..', '..', '..'))
+ }
+ ]
+ },
+ ignorePatterns: ['dist', '**/*.js', '**/*.json', 'node_modules'],
+ settings: {
+ react: {
+ version: 'detect'
+ }
+ },
+ overrides: [
+ {
+ files: ['*.astro'],
+ parser: 'astro-eslint-parser',
+ parserOptions: {
+ parser: '@typescript-eslint/parser',
+ extraFileExtensions: ['.astro']
+ },
+ rules: {
+ 'astro/no-set-html-directive': 2,
+ 'indent': 'off'
+ }
+ },
+ {
+ files: ['*.ts', '*.d.ts', '*.tsx', '*.js', '*.jsx', '*.mjs', '*.cjs'],
+ parser: '@typescript-eslint/parser',
+ parserOptions: {
+ parser: '@typescript-eslint/parser'
+ },
+ rules: {
+ indent: 'off'
+ }
+ }
+ ]
+};
diff --git a/packages/config/eslint/tailwind.js b/packages/config/eslint/tailwind.js
new file mode 100644
index 0000000..9ac36ae
--- /dev/null
+++ b/packages/config/eslint/tailwind.js
@@ -0,0 +1,23 @@
+const path = require('node:path');
+
+/** @type {import('eslint').ESLint.ConfigData} */
+module.exports = {
+ extends: ['plugin:tailwindcss/recommended'],
+ rules: {
+ 'tailwindcss/no-custom-classname': 'off',
+ 'tailwindcss/classnames-order': [
+ 'warn',
+ {
+ config: path.resolve(
+ path.join(__dirname, '../../..', 'packages/ui/tailwind.config.js')
+ )
+ }
+ ]
+ },
+ settings: {
+ tailwindcss: {
+ callees: ['classnames', 'clsx', 'ctl', 'cva', 'tw', 'twStyle'],
+ tags: ['tw', 'twStyle']
+ }
+ }
+};
diff --git a/packages/config/eslint/web.js b/packages/config/eslint/web.js
new file mode 100644
index 0000000..dc010b3
--- /dev/null
+++ b/packages/config/eslint/web.js
@@ -0,0 +1,22 @@
+/** @type {import('eslint').ESLint.ConfigData} */
+module.exports = {
+ extends: [require.resolve('./base.js'), require.resolve('./tailwind.js')],
+ ignorePatterns: ['public', 'vite.config.ts'],
+ env: {
+ browser: true,
+ node: true
+ },
+ rules: {
+ 'no-restricted-syntax': [
+ 'error',
+ {
+ selector: "CallExpression[callee.name='useParams']",
+ message: 'useParams is illegal, use useZodRouteParams!'
+ },
+ {
+ selector: "CallExpression[callee.name='useSearchParams']",
+ message: 'useSearchParams is illegal, use useZodSearchParams!'
+ }
+ ]
+ }
+};
diff --git a/packages/config/index.js b/packages/config/index.js
new file mode 100644
index 0000000..524af3b
--- /dev/null
+++ b/packages/config/index.js
@@ -0,0 +1,3 @@
+module.exports = {
+ vite: require('./vite')
+};
diff --git a/packages/config/package.json b/packages/config/package.json
new file mode 100644
index 0000000..2a16d61
--- /dev/null
+++ b/packages/config/package.json
@@ -0,0 +1,29 @@
+{
+ "name": "@polyfrost/config",
+ "version": "0.0.0",
+ "exports": {
+ "./*": "./*",
+ "./vite": "./vite",
+ "./vite/relAlias": "./vite/relAlias"
+ },
+ "scripts": {
+ "lint": "eslint . --cache"
+ },
+ "devDependencies": {
+ "@typescript-eslint/eslint-plugin": "^6.7.5",
+ "@typescript-eslint/parser": "^6.7.5",
+ "eslint": "^8.51.0",
+ "eslint-config-turbo": "^1.10.15",
+ "eslint-config-prettier": "^9.0.0",
+ "eslint-plugin-prettier": "^5.0.1",
+ "eslint-plugin-react": "^7.33.2",
+ "eslint-plugin-react-hooks": "^4.6.0",
+ "eslint-plugin-tailwindcss": "^3.13.0",
+ "eslint-plugin-astro": "^0.29.1",
+ "eslint-plugin-jsx-a11y": "^6.7.1",
+ "eslint-utils": "^3.0.0",
+ "regexpp": "^3.2.0",
+ "vite-plugin-html": "^3.2.0",
+ "vite-plugin-svgr": "^4.1.0"
+ }
+}
diff --git a/packages/config/vite/index.ts b/packages/config/vite/index.ts
new file mode 100644
index 0000000..a9306a6
--- /dev/null
+++ b/packages/config/vite/index.ts
@@ -0,0 +1,27 @@
+import react from '@vitejs/plugin-react';
+import { defineConfig } from 'vite';
+import { createHtmlPlugin } from 'vite-plugin-html';
+import svg from 'vite-plugin-svgr';
+import tsconfigPaths from 'vite-tsconfig-paths';
+
+export default defineConfig({
+ plugins: [
+ tsconfigPaths(),
+ react(),
+ svg({ svgrOptions: { icon: true } }),
+ createHtmlPlugin({
+ minify: true
+ })
+ ],
+ css: {
+ modules: {
+ localsConvention: 'camelCaseOnly'
+ }
+ },
+ root: 'src',
+ build: {
+ sourcemap: true,
+ outDir: '../dist',
+ assetsDir: '.'
+ }
+});
diff --git a/packages/config/vite/relAlias.ts b/packages/config/vite/relAlias.ts
new file mode 100644
index 0000000..1a502b5
--- /dev/null
+++ b/packages/config/vite/relAlias.ts
@@ -0,0 +1,77 @@
+import fs from 'fs/promises';
+import path from 'path';
+import { Alias } from 'vite';
+
+const projectPath = path.resolve(__dirname, '../../../');
+const pkgJsonCache = new Map();
+
+const SRC_DIR_PATH = `${path.sep}src${path.sep}`;
+
+const resolver: Alias = {
+ find: /^(~\/.+)/,
+ replacement: '$1',
+ async customResolver(source, importer) {
+ let root: null | string = null;
+
+ if (importer) importer = path.normalize(importer);
+
+ const [_, sourcePath] = source.split('~/');
+
+ const relativeImporter = importer?.replace(projectPath, '');
+ if (relativeImporter && relativeImporter.includes(SRC_DIR_PATH)) {
+ const [pkg] = relativeImporter.split(SRC_DIR_PATH);
+ root = path.join(projectPath, pkg, 'src');
+ } else if (importer) {
+ const pathObj = path.parse(importer);
+
+ let parent = pathObj.dir;
+ while (parent !== pathObj.root) {
+ parent = path.dirname(parent);
+
+ let hasPkgJson = pkgJsonCache.get(parent);
+
+ if (hasPkgJson === undefined)
+ try {
+ await fs.stat(path.join(parent, 'package.json'));
+ pkgJsonCache.set(parent, (hasPkgJson = true));
+ } catch {
+ pkgJsonCache.set(parent, (hasPkgJson = false));
+ }
+
+ if (hasPkgJson) {
+ root = parent;
+ break;
+ }
+ }
+
+ if (root === null)
+ throw new Error(`Failed to resolve import path ${source} in file ${importer}`);
+ } else {
+ throw new Error(`Failed to resolve import path ${source} in file ${importer}`);
+ }
+
+ const absolutePath = path.join(root, sourcePath);
+
+ const folderItems = await fs.readdir(path.join(absolutePath, '..'));
+
+ const item = folderItems.find((i) => i.startsWith(sourcePath.split('/').at(-1)!))!;
+
+ const fullPath = absolutePath + path.extname(item);
+
+ const stats = await fs.stat(fullPath);
+
+ if (stats.isDirectory()) {
+ const directoryItems = await fs.readdir(absolutePath + path.extname(item));
+
+ const indexFile = directoryItems.find((i) => i.startsWith('index'));
+ if (!indexFile)
+ throw new Error(`Failed to resolve import path ${source} in file ${importer}`);
+
+ return path.join(absolutePath, indexFile);
+ } else {
+ return fullPath;
+ }
+ }
+};
+
+export default resolver;
diff --git a/packages/ui/.eslintrc.js b/packages/ui/.eslintrc.js
new file mode 100644
index 0000000..f80eaa9
--- /dev/null
+++ b/packages/ui/.eslintrc.js
@@ -0,0 +1,8 @@
+/** @type {import('eslint').ESLint.ConfigData} */
+module.exports = {
+ extends: [require.resolve('@polyfrost/config/eslint/web.js')],
+ parserOptions: {
+ tsconfigRootDir: __dirname,
+ project: './tsconfig.json'
+ }
+};
diff --git a/packages/ui/package.json b/packages/ui/package.json
new file mode 100644
index 0000000..e79d4c0
--- /dev/null
+++ b/packages/ui/package.json
@@ -0,0 +1,51 @@
+{
+ "name": "@polyfrost/ui",
+ "version": "0.0.0",
+ "main": "src/index.ts",
+ "types": "src/index.ts",
+ "exports": {
+ ".": "./src/index.ts",
+ "./src/forms": "./src/forms/index.ts",
+ "./postcss": "./style/postcss.config.js",
+ "./tailwind": "./style/tailwind.js",
+ "./style": "./style/index.js",
+ "./style/style.scss": "./style/style.scss",
+ "./package.json": "./package.json"
+ },
+ "scripts": {
+ "lint": "eslint src --cache",
+ "typecheck": "tsc -b"
+ },
+ "dependencies": {
+ "@headlessui/react": "^1.7.17",
+ "@headlessui/tailwindcss": "^0.1.1",
+ "@react-spring/web": "^9.7.3",
+ "@polyfrost/assets": "workspace:*",
+ "@tailwindcss/forms": "^0.5.6",
+ "class-variance-authority": "^0.7.0",
+ "clsx": "^2.0.0",
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0",
+ "react-router-dom": "^6.16.0",
+ "sonner": "^1.0.3",
+ "tailwindcss-radix": "^2.8.0",
+ "ts-pattern": "^5.0.5",
+ "use-debounce": "^9.0.4",
+ "zod": "^3.22.4"
+ },
+ "devDependencies": {
+ "@babel/core": "^7.23.2",
+ "@polyfrost/config": "workspace:*",
+ "@storybook/types": "^7.4.6",
+ "@tailwindcss/typography": "^0.5.10",
+ "@types/node": "~18.17.19",
+ "@types/react": "^18.2.28",
+ "@types/react-dom": "^18.2.13",
+ "autoprefixer": "^10.4.16",
+ "postcss": "^8.4.31",
+ "sass": "^1.69.3",
+ "tailwindcss": "^3.3.3",
+ "tailwindcss-animate": "^1.0.7",
+ "typescript": "^5.2.2"
+ }
+}
diff --git a/packages/ui/postcss.config.js b/packages/ui/postcss.config.js
new file mode 100644
index 0000000..708cbaf
--- /dev/null
+++ b/packages/ui/postcss.config.js
@@ -0,0 +1,3 @@
+module.exports = {
+ plugins: [require('tailwindcss'), require('autoprefixer')]
+};
diff --git a/packages/ui/src/index.ts b/packages/ui/src/index.ts
new file mode 100644
index 0000000..904db93
--- /dev/null
+++ b/packages/ui/src/index.ts
@@ -0,0 +1 @@
+export { cva, cx } from 'class-variance-authority';
diff --git a/packages/ui/src/keys.ts b/packages/ui/src/keys.ts
new file mode 100644
index 0000000..55940f9
--- /dev/null
+++ b/packages/ui/src/keys.ts
@@ -0,0 +1,56 @@
+export enum ModifierKeys {
+ Alt = 'Alt',
+ Shift = 'Shift',
+ AltGraph = 'AltGraph',
+ CapsLock = 'CapsLock',
+ Control = 'Control',
+ Fn = 'Fn',
+ FnLock = 'FnLock',
+ Meta = 'Meta',
+ NumLock = 'NumLock',
+ ScrollLock = 'ScrollLock',
+ Symbol = 'Symbol',
+ SymbolLock = 'SymbolLock'
+}
+
+export type OSforKeys = 'macOS' | 'Windows' | 'Other';
+
+export const modifierSymbols: Record<
+ ModifierKeys,
+ { macOS?: string; Windows?: string; Other: string }
+> = {
+ Alt: { macOS: '⌥', Other: 'Alt' },
+ AltGraph: { macOS: '⌥', Other: 'Alt' },
+ CapsLock: { Other: '⇪' },
+ Control: { macOS: '⌃', Other: 'Ctrl' },
+ Fn: { macOS: 'fn', Other: 'Fn' },
+ FnLock: { macOS: 'fn', Other: 'Fn' },
+ Meta: { macOS: '⌘', Windows: '⊞ Win', Other: 'Meta' },
+ NumLock: { macOS: '⇭', Other: 'Num' },
+ ScrollLock: { macOS: '⤓', Other: 'ScrLk' },
+ Shift: { Other: 'Shift', macOS: '⇧' },
+ Symbol: { macOS: '⎄', Other: 'Sym' },
+ SymbolLock: { macOS: '⎄', Other: 'Sym' }
+};
+
+export const keySymbols: Record<string, { macOS?: string; Windows?: string; Other: string }> = {
+ ' ': { Other: '␣' },
+ 'Tab': { macOS: '⇥', Other: '⭾' },
+ 'Enter': { macOS: '↩', Other: '↵' },
+ 'Escape': { macOS: '⎋', Other: 'Esc' },
+ 'Backspace': { macOS: '⌫', Other: '⟵' },
+ 'ArrowUp': { Other: '↑' },
+ 'ArrowDown': { Other: '↓' },
+ 'ArrowLeft': { Other: '←' },
+ 'ArrowRight': { Other: '→' },
+ 'Insert': { Other: 'Ins' },
+ 'Delete': { macOS: '⌦', Other: 'Del' },
+ 'Home': { macOS: '↖', Other: 'Home' },
+ 'End': { macOS: '↘', Other: 'End' },
+ 'PageUp': { macOS: '⇞', Other: 'PgUp' },
+ 'PageDown': { macOS: '⇟', Other: 'PgDn' },
+ 'Shift': { macOS: '⇧', Other: 'Shift' },
+ 'PrintScreen': { Other: 'PrtSc' },
+ 'ScrollLock': { macOS: '⤓', Other: 'ScrLk' },
+ 'Pause': { macOS: '⎉', Other: 'Pause' }
+};
diff --git a/packages/ui/src/utils.tsx b/packages/ui/src/utils.tsx
new file mode 100644
index 0000000..5ccb488
--- /dev/null
+++ b/packages/ui/src/utils.tsx
@@ -0,0 +1,28 @@
+import clsx from 'clsx';
+import React from 'react';
+
+const twFactory =
+ (element: any) =>
+ ([newClassNames, ..._]: TemplateStringsArray) =>
+ React.forwardRef(({ className, ...props }: any, ref) =>
+ React.createElement(element, {
+ ...props,
+ className: clsx(newClassNames, className),
+ ref
+ })
+ );
+
+type ClassnameFactory<T> = (s: TemplateStringsArray) => T;
+
+type TailwindFactory = {
+ [K in keyof JSX.IntrinsicElements]: ClassnameFactory<
+ React.ForwardRefExoticComponent<JSX.IntrinsicElements[K]>
+ >;
+} & {
+ <T>(c: T): ClassnameFactory<T>;
+};
+
+export const tw = new Proxy((() => {}) as unknown as TailwindFactory, {
+ get: (_, property: string) => twFactory(property),
+ apply: (_, __, [el]: [React.ReactElement]) => twFactory(el)
+});
diff --git a/packages/ui/style/index.js b/packages/ui/style/index.js
new file mode 100644
index 0000000..423b033
--- /dev/null
+++ b/packages/ui/style/index.js
@@ -0,0 +1 @@
+import './style.scss';
diff --git a/packages/ui/style/postcss.config.js b/packages/ui/style/postcss.config.js
new file mode 100644
index 0000000..0b6eba2
--- /dev/null
+++ b/packages/ui/style/postcss.config.js
@@ -0,0 +1 @@
+module.exports = require('../postcss.config');
diff --git a/packages/ui/style/style.scss b/packages/ui/style/style.scss
new file mode 100644
index 0000000..bf5a2e7
--- /dev/null
+++ b/packages/ui/style/style.scss
@@ -0,0 +1,30 @@
+@tailwind base;
+@tailwind components;
+@tailwind utilities;
+@tailwind variants;
+
+* {
+ font-family: 'Poppins', sans-serif;
+}
+
+@layer base {
+ :focus-visible {
+ @apply outline-none ring ring-blue-500;
+ }
+}
+
+@layer utilities {
+ .no-scrollbar::-webkit-scrollbar {
+ display: none;
+ }
+
+ .no-scrollbar {
+ -ms-overflow-style: none;
+ scrollbar-width: none;
+ }
+}
+
+// tauri button patch
+[type='button'] {
+ -webkit-appearance: none;
+}
diff --git a/packages/ui/style/tailwind.js b/packages/ui/style/tailwind.js
new file mode 100644
index 0000000..fc05bd9
--- /dev/null
+++ b/packages/ui/style/tailwind.js
@@ -0,0 +1,119 @@
+const defaultTheme = require('tailwindcss/defaultTheme');
+
+/** @type {(varName: string) => string} */
+const alpha = (varName) => `hsla(var(${varName}), <alpha-value>)`;
+const contentExts = `{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue,stories.tsx}`;
+
+/**
+ * @param {string} app
+ * @param {import('tailwindcss').Config} options
+ * @returns {import('tailwindcss').Config}
+ */
+module.exports = (app, options) => {
+ /** @type {import('tailwindcss').Config} */
+ let config = {
+ content: [
+ `../../apps/${app}/src/**/*.${contentExts}`,
+ `../../packages/*/src/**/*.${contentExts}`,
+ `../../interface/**/*.${contentExts}`
+ ],
+ darkMode: 'class',
+ theme: {
+ screens: {
+ xs: '475px',
+ sm: '650px',
+ md: '868px',
+ lg: '1024px',
+ xl: '1280px',
+ ...defaultTheme.screens
+ },
+ fontSize: {
+ 'xs': '12px',
+ 'sm': '14px',
+ 'md': '16px',
+ 'lg': '18px',
+ 'header-sm': '24px',
+ 'header': '28px',
+ 'header-lg': '32px',
+ 'body-sm': '15px',
+ 'body': '16px',
+ 'body-lg': '17px'
+ },
+ borderRadius: {
+ none: '0',
+ sm: '3px',
+ md: '5px',
+ lg: '8px',
+ xl: '12px',
+ full: '100vw'
+ },
+ extend: {
+ colors: {
+ blue: {
+ 500: 'rgba(31, 101, 214, 1)'
+ },
+ gray: {
+ 50: 'rgba(240, 242, 244, 1)',
+ 400: 'rgba(138, 150, 168, 1)',
+ 700: 'rgba(65, 74, 88, 1)',
+ 800: 'rgba(42, 47, 55, 1)'
+ },
+ white: {
+ DEFAULT: 'rgba(255, 255, 255, 1)',
+ secondary: 'rgba(238, 241, 254, 1)',
+ hover: 'rgba(231, 235, 252, 1)'
+ },
+ black: {
+ DEFAULT: 'rgba(0, 0, 0, 1)'
+ },
+ text: {
+ DEFAULT: 'rgba(2, 3, 7, 1)',
+ primary: 'rgba(2, 3, 7, 1)'
+ }
+ },
+ extend: {
+ transitionTimingFunction: {
+ 'css': 'ease',
+ 'css-in': 'ease-in',
+ 'css-out': 'ease-out',
+ 'css-in-out': 'ease-in-out',
+ 'in-sine': 'cubic-bezier(0.12, 0, 0.39, 0)',
+ 'out-sine': 'cubic-bezier(0.61, 1, 0.88, 1)',
+ 'in-out-sine': 'cubic-bezier(0.37, 0, 0.63, 1)',
+ 'in-quad': 'cubic-bezier(0.11, 0, 0.5, 0)',
+ 'out-quad': 'cubic-bezier(0.5, 1, 0.89, 1)',
+ 'in-out-quad': 'cubic-bezier(0.45, 0, 0.55, 1)',
+ 'in-cubic': 'cubic-bezier(0.32, 0, 0.67, 0)',
+ 'out-cubic': 'cubic-bezier(0.33, 1, 0.68, 1)',
+ 'in-out-cubic': 'cubic-bezier(0.65, 0, 0.35, 1)',
+ 'in-quart': 'cubic-bezier(0.5, 0, 0.75, 0)',
+ 'out-quart': 'cubic-bezier(0.25, 1, 0.5, 1)',
+ 'in-out-quart': 'cubic-bezier(0.76, 0, 0.24, 1)',
+ 'in-quint': 'cubic-bezier(0.64, 0, 0.78, 0)',
+ 'out-quint': 'cubic-bezier(0.22, 1, 0.36, 1)',
+ 'in-out-quint': 'cubic-bezier(0.83, 0, 0.17, 1)',
+ 'in-expo': 'cubic-bezier(0.7, 0, 0.84, 0)',
+ 'out-expo': 'cubic-bezier(0.16, 1, 0.3, 1)',
+ 'in-out-expo': 'cubic-bezier(0.87, 0, 0.13, 1)',
+ 'in-circ': 'cubic-bezier(0.55, 0, 1, 0.45)',
+ 'out-circ': 'cubic-bezier(0, 0.55, 0.45, 1)',
+ 'in-out-circ': 'cubic-bezier(0.85, 0, 0.15, 1)',
+ 'in-back': 'cubic-bezier(0.36, 0, 0.66, -0.56)',
+ 'out-back': 'cubic-bezier(0.34, 1.56, 0.64, 1)',
+ 'in-out-back': 'cubic-bezier(0.68, -0.6, 0.32, 1.6)'
+ }
+ }
+ }
+ },
+ plugins: [
+ require('@tailwindcss/forms'),
+ require('tailwindcss-animate'),
+ require('@headlessui/tailwindcss'),
+ require('tailwindcss-radix')()
+ ]
+ };
+
+ if (app === 'website') config.plugins.push(require('@tailwindcss/typography'));
+
+ return config;
+};
diff --git a/packages/ui/style/tailwind.pcss b/packages/ui/style/tailwind.pcss
new file mode 100644
index 0000000..510ff1d
--- /dev/null
+++ b/packages/ui/style/tailwind.pcss
@@ -0,0 +1,4 @@
+@tailwind base;
+@tailwind components;
+@tailwind utilities;
+@tailwind variants;
diff --git a/packages/ui/tailwind.config.js b/packages/ui/tailwind.config.js
new file mode 100644
index 0000000..8c53793
--- /dev/null
+++ b/packages/ui/tailwind.config.js
@@ -0,0 +1,2 @@
+/** @type {import('tailwindcss').Config} */
+module.exports = require('./style/tailwind')('web');
diff --git a/packages/ui/tsconfig.json b/packages/ui/tsconfig.json
new file mode 100644
index 0000000..8e080d5
--- /dev/null
+++ b/packages/ui/tsconfig.json
@@ -0,0 +1,8 @@
+{
+ "extends": "../config/base.tsconfig.json",
+ "compilerOptions": {
+ "rootDir": "src",
+ "declarationDir": "dist"
+ },
+ "include": ["src"]
+}
diff --git a/pkgs/ctjs/index.js b/pkgs/ctjs/index.js
deleted file mode 100644
index 33d0d83..0000000
--- a/pkgs/ctjs/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-/// <reference types="./types/ctjs.d.ts" />
-/// <reference lib="es2015" />
-
diff --git a/pkgs/ctjs/metadata.json b/pkgs/ctjs/metadata.json
deleted file mode 100644
index 07496c0..0000000
--- a/pkgs/ctjs/metadata.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "$schema": "./types/schema.json",
- "name": "OneConfig",
- "creator": "Polyfrost",
- "entry": "index.js",
- "isRequired": true,
- "version": "1.0.0",
- "description": "A module that provides functions for the OneConfig API."
-}
diff --git a/pkgs/ctjs/package.json b/pkgs/ctjs/package.json
deleted file mode 100644
index feb19d9..0000000
--- a/pkgs/ctjs/package.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "name": "@polyfrost/ctjs",
- "version": "0.1.0"
-}
diff --git a/pkgs/ctjs/types/ctjs.d.ts b/pkgs/ctjs/types/ctjs.d.ts
deleted file mode 100644
index f10cc1c..0000000
--- a/pkgs/ctjs/types/ctjs.d.ts
+++ /dev/null
@@ -1,14053 +0,0 @@
-// Type definitions for Chattriggers
-// Definitions by: Maxssho13, also a lot of credit to Matt for inspiration and reference
-
-/// <reference no-default-lib="true" />
-/// <reference lib="es2015" />
-export {}; // this line converts this into a module, allowing for importing and modifying global scope
-// everything in global will be put into the global scope
-
-declare global {
- const GuiHandler: GuiHandler;
- const Java: Java;
- /**
- * Helper method register a trigger.
- *
- * Called by taking the original name of the method, i.e. `registerChat`,
- * removing the word register, and comparing it case-insensitively with
- * the methods below.
- *
- * Can also be passed a class of type
- * {@link ForgeEvent net.minecraftforge.fml.common.eventhandler.Event} as the first parameter
- * to register functions for arbitrary forge events.
- *
- * @param triggerType the type of trigger
- * @param method The name of the method or the actual method to callback when the event is fired
- * @return The trigger for additional modification
- */
- const register: IRegister;
- const TriggerRegister: ITriggerRegister;
- const InteractAction: typeof ForgePlayerInteractEvent.Action;
- const Console: Console;
- const Client: Client;
- const NBT: NBT;
- const Config: Config;
- const ChatTriggers: Reference;
- const console: console;
- const GlStateManager: MCTGlStateManger;
- const GL11: JavaGL11;
- const GL12: JavaGL12;
- const GL13: JavaGL13;
- const GL14: JavaGL14;
- const GL15: JavaGL15;
- const GL20: JavaGL20;
- const GL21: JavaGL21;
- const GL30: JavaGL30;
- const GL31: JavaGL31;
- const GL32: JavaGL32;
- const GL33: JavaGL33;
- const GL40: JavaGL40;
- const GL41: JavaGL41;
- const GL42: JavaGL42;
- const GL43: JavaGL43;
- const GL44: JavaGL44;
- const GL45: JavaGL45;
-
- const OnChatTrigger: typeof ChatTrigger;
- const OnCommandTrigger: typeof CommandTrigger;
- const OnRegularTrigger: typeof RegularTrigger;
- const OnRenderTrigger: typeof EventTrigger;
- const OnSoundPlayTrigger: typeof SoundPlayTrigger;
- const OnStepTrigger: typeof StepTrigger;
- const OnTrigger: typeof Trigger;
- const Priority: typeof Trigger.Priority;
-
- // obfuscated type types
- type MCTScoreboard = MCScoreboard;
- type MCTScoreObjective = MCScoreObjective;
- type MCTScorePlayerTeam = MCScorePlayerTeam;
- type MCTTileEntity = MCTileEntity;
- type MCTGuiContainer = MCGuiContainer;
- type MCTSlot = MCSlot;
- type MCTGlStateManger = MCGlStateManager;
- type MCTBlock = MCBlock;
- type MCTBlockPos = MCBlockPos;
- type MCTItem = MCItem;
- type MCTItemStack = MCItemStack;
- type MCTEntityItem = MCEntityItem;
- type MCTIBlockState = MCIBlockState;
- type MCTIInventory = MCIInventory;
- type MCTContainer = MCContainer;
- type MCTEntity = MCEntity;
- type MCTIChatComponent = MCIChatComponent;
- type MCTNBTBase = MCNBTBase;
- type MCTNBTTagCompound = MCNBTTagCompound;
- type MCTChunk = MCChunk;
- type MCTEnumFacing = MCEnumFacing;
- type MCTNBTTagList = MCNBTTagList;
- type MCTMinecraft = MCMinecraft;
- type MCTNetHandlerPlayClient = MCNetHandlerPlayClient;
- type MCTGuiNewChat = MCGuiNewChat;
- type MCTGuiPlayerTabOverlay = MCGuiPlayerTabOverlay;
- type MCTINetHandler = MCINetHandler;
- type MCTPacket<T extends MCINetHandler> = MCPacket<T>;
- type MCTGuiScreen = MCGuiScreen;
- type MCTGameSettings = MCGameSettings;
- type MCTEntityPlayer = MCEntityPlayer;
- type MCTEntityPlayerSP = MCEntityPlayerSP;
- type MCTKeyBinding = MCKeyBinding;
- type MCTGuiButton = MCGuiButton;
- type MCTDynamicTexture = MCDynamicTexture;
- type MCTAbstractTexture = MCAbstractTexture;
- type MCTSoundCategory = MCSoundCategory;
- type MCTPotion = MCPotion;
- type MCTPotionEffect = MCPotionEffect;
- type MCTWorld = MCWorld;
- type MCTEntityFX = MCEntityFX;
- type MCTEnumParticleTypes = MCEnumParticleTypes;
- type MCTFontRenderer = MCFontRenderer;
- type MCTRenderManager = MCRenderManager;
- type MCTEntityLivingBase = MCEntityLivingBase;
- type MCTWorldClient = MCWorldClient;
- type MCTScore = MCScore;
- // forge paths
- type ForgeTClientChatReceivedEvent = ForgeClientChatReceivedEvent;
- type ForgeTRenderGameOverlayEvent = ForgeRenderGameOverlayEvent;
- type ForgeTMouseEvent = ForgeMouseEvent;
- type ForgeTPlaySoundEvent = ForgePlaySoundEvent;
- type ForgeTConfigChangedEvent = ForgeConfigChangedEvent;
- type ForgeTTickEvent = ForgeTickEvent;
- type ForgeTNoteBlockEvent = ForgeNoteBlockEvent;
- type ForgeTDrawBlockHighlightEvent = ForgeDrawBlockHighlightEvent;
- type ForgeTGuiOpenEvent = ForgeGuiOpenEvent;
- type ForgeTEntityItemPickupEvent = ForgeEntityItemPickupEvent;
- type ForgeTPlayerInteractEvent = ForgePlayerInteractEvent;
- type ForgeTGuiScreenEvent = ForgeGuiScreenEvent;
- type ForgeTBlockEvent = ForgeBlockEvent;
- // java paths
- type JavaTGL11 = JavaGL11;
- type JavaTGL12 = JavaGL12;
- type JavaTGL13 = JavaGL13;
- type JavaTGL14 = JavaGL14;
- type JavaTGL15 = JavaGL15;
- type JavaTGL20 = JavaGL20;
- type JavaTGL21 = JavaGL21;
- type JavaTGL30 = JavaGL30;
- type JavaTGL31 = JavaGL31;
- type JavaTGL32 = JavaGL32;
- type JavaTGL33 = JavaGL33;
- type JavaTGL40 = JavaGL40;
- type JavaTGL41 = JavaGL41;
- type JavaTGL42 = JavaGL42;
- type JavaTGL43 = JavaGL43;
- type JavaTGL44 = JavaGL44;
- type JavaTGL45 = JavaGL45;
- type JavaTThread = JavaThread;
- type JavaTUUID = JavaUUID;
- type JavaTFile = JavaFile;
- type JavaTPath = JavaPath;
- type JavaTFileNameFilter = JavaFileNameFilter;
- type JavaTClass<T> = JavaClass<T>;
- type JavaTURL = JavaURL;
- type JavaTURI = JavaURI;
- type JavaTURLStreamHandlerFactory = JavaURLStreamHandlerFactory;
- type JavaTInputStream = JavaInputStream;
- type JavaTURLConnection = JavaURLConnection;
- type JavaTProxy = JavaProxy;
- type JavaTSocketAddress = JavaSocketAddress;
- type JavaTURLStreamHandler = JavaURLStreamHandler;
- type JavaTField = JavaField;
- type JavaTMethod = JavaMethod;
- type JavaTBufferedImage = JavaBufferedImage;
- type JavaTColor = JavaColor;
-
- function cancel(
- event:
- | ForgePlaySoundEvent
- | CancellableEvent
- | ForgeEvent
- | (string | ForgeClientChatReceivedEvent),
- ): void;
- // extend prototype
- interface String {
- addFormatting(): string;
-
- addColor(): string;
-
- removeFormatting(): string;
-
- replaceFormatting(): string;
- }
-
- function easeOut(
- start: number,
- finish: number,
- speed: number,
- jump: number,
- ): number;
-
- function easeColor(
- start: number,
- finish: number,
- speed: number,
- jump: number,
- ): number;
-
- function sync(func: Function, lock: any): any;
-
- function print(toPrint: any, end?: string, color?: JavaColor): void;
-
- function setTimeout(func: () => void, delay: number): void;
-
- interface Number {
- easeOut(to: number, speed: number, jump: number): number;
-
- easeColor(to: number, speed: number, jump: number): number;
- }
-
- enum LogType {
- INFO,
- WARN,
- ERROR,
- }
-
- class Slot {
- constructor(mcSlot: MCSlot);
-
- readonly mcSlot: MCSlot;
-
- getMcSlot(): MCSlot;
-
- getIndex(): number;
-
- getDisplayX(): number;
-
- getDisplayY(): number;
-
- getInventory(): Inventory;
-
- getItem(): Item | null;
-
- toString(): string;
- }
-
- class Renderer {
- readonly colorized: number;
-
- BLACK: number;
- static BLACK: number;
- DARK_BLUE: number;
- static DARK_BLUE: number;
- DARK_GREEN: number;
- static DARK_GREEN: number;
- DARK_AQUA: number;
- static DARK_AQUA: number;
- DARK_RED: number;
- static DARK_RED: number;
- DARK_PURPLE: number;
- static DARK_PURPLE: number;
- GOLD: number;
- static GOLD: number;
- GRAY: number;
- static GRAY: number;
- DARK_GRAY: number;
- static DARK_GRAY: number;
- BLUE: number;
- static BLUE: number;
- GREEN: number;
- static GREEN: number;
- AQUA: number;
- static AQUA: number;
- RED: number;
- static RED: number;
- LIGHT_PURPLE: number;
- static LIGHT_PURPLE: number;
- YELLOW: number;
- static YELLOW: number;
- WHITE: number;
- static WHITE: number;
-
- getColor(color: number): number;
- static getColor(color: number): number;
-
- getFontRenderer(): MCFontRenderer;
- static getFontRenderer(): MCFontRenderer;
-
- getRenderManager(): MCRenderManager;
- static getRenderManager(): MCRenderManager;
-
- getStringWidth(text: string): number;
- static getStringWidth(text: string): number;
-
- color(red: number, green: number, blue: number, alpha?: number): number;
- static color(
- red: number,
- green: number,
- blue: number,
- alpha?: number,
- ): number;
-
- getRainbow(step: number, speed?: number): number;
- static getRainbow(step: number, speed?: number): number;
-
- getRainbowColors(step: number, speed?: number): number[];
- static getRainbowColors(step: number, speed?: number): number[];
-
- retainTransforms(retain: boolean): void;
- static retainTransforms(retain: boolean): void;
-
- translate(x: number, y: number, z?: number): void;
- static translate(x: number, y: number, z?: number): void;
-
- scale(scaleX: number, scaleY?: number): void;
- static scale(scaleX: number, scaleY?: number): void;
-
- rotate(angle: number): void;
- static rotate(angle: number): void;
-
- colorize(red: number, green: number, blue: number, alpha?: number): void;
- static colorize(
- red: number,
- green: number,
- blue: number,
- alpha?: number,
- ): void;
-
- setDrawMode(drawMode: number): Renderer;
- static setDrawMode(drawMode: number): Renderer;
-
- getDrawMode(): number;
- static getDrawMode(): number;
-
- fixAlpha(color: number): number;
- static fixAlpha(color: number): number;
-
- drawRect(
- color: number,
- x: number,
- y: number,
- width: number,
- height: number,
- ): void;
- static drawRect(
- color: number,
- x: number,
- y: number,
- width: number,
- height: number,
- ): void;
-
- drawShape(color: number, ...vertexes: number[][]): void;
- static drawShape(color: number, ...vertexes: number[][]): void;
-
- drawLine(
- color: number,
- x1: number,
- y1: number,
- x2: number,
- y2: number,
- thickness: number,
- drawMode?: number,
- ): void;
- static drawLine(
- color: number,
- x1: number,
- y1: number,
- x2: number,
- y2: number,
- thickness: number,
- drawMode?: number,
- ): void;
-
- drawCircle(
- color: number,
- x: number,
- y: number,
- radius: number,
- steps: number,
- drawMode?: number,
- ): void;
- static drawCircle(
- color: number,
- x: number,
- y: number,
- radius: number,
- steps: number,
- drawMode?: number,
- ): void;
-
- drawString(text: string, x: number, y: number, shadow?: boolean): void;
- static drawString(
- text: string,
- x: number,
- y: number,
- shadow?: boolean,
- ): void;
-
- drawStringWithShadow(text: string, x: number, y: number): void;
- static drawStringWithShadow(text: string, x: number, y: number): void;
-
- drawImage(
- image: Image,
- x: number,
- y: number,
- width: number,
- height: number,
- ): void;
- static drawImage(
- image: Image,
- x: number,
- y: number,
- width: number,
- height: number,
- ): void;
-
- drawPlayer(
- player: PlayerMP | MCEntityPlayer | MCEntityLivingBase,
- x: number,
- y: number,
- rotate?: boolean,
- showNametag?: boolean,
- showCape?: boolean,
- showHeldItem?: boolean,
- showArrows?: boolean,
- ): void;
- static drawPlayer(
- player: PlayerMP | MCEntityPlayer | MCEntityLivingBase,
- x: number,
- y: number,
- rotate?: boolean,
- showNametag?: boolean,
- showCape?: boolean,
- showHeldItem?: boolean,
- showArrows?: boolean,
- ): void;
-
- finishDraw(): void;
- static finishDraw(): void;
- }
-
- namespace Renderer {
- class screen {
- getWidth(): number;
- static getWidth(): number;
-
- getHeight(): number;
- static getHeight(): number;
-
- getScale(): number;
- static getScale(): number;
- }
- }
-
- class Shape {
- constructor(color: number);
-
- copy(): Shape;
-
- clone(): Shape;
-
- getColor(): number;
- setColor(color: number): Shape;
-
- getDrawMode(): number;
-
- /**
- * Sets the GL draw mode of the shape. Possible draw modes are:
- * 0 = points
- * 1 = lines
- * 2 = line loop
- * 3 = line strip
- * 5 = triangles
- * 5 = triangle strip
- * 6 = triangle fan
- * 7 = quads
- * 8 = quad strip
- * 9 = polygon
- */
- setDrawMode(drawMode: number): Shape;
-
- getVertexes(): Vector2f[];
-
- addVertex(x: number, y: number): Shape;
-
- insertVertex(index: number, x: number, y: number): Shape;
-
- removeVertex(index: number): Shape;
-
- /**
- * Sets the shape as a line pointing from [x1, y1] to [x2, y2] with a thickness
- */
- setLine(
- x1: number,
- y1: number,
- x2: number,
- y2: number,
- thickness: number,
- ): Shape;
-
- /**
- * Sets the shape as a circle with a center at [x, y]
- * with radius and number of steps around the circle
- */
- setCircle(x: number, y: number, radius: number, steps: number): Shape;
-
- draw(): Shape;
- }
-
- class Rectangle {
- constructor(
- color: number,
- x: number,
- y: number,
- width: number,
- height: number,
- );
-
- getColor(): number;
- setColor(color: number): Rectangle;
-
- getX(): number;
- setX(x: number): Rectangle;
-
- getY(): number;
- setY(y: number): Rectangle;
-
- getWidth(): number;
- setWidth(width: number): Rectangle;
-
- getHeight(): number;
- setHeight(height: number): Rectangle;
-
- isShadow(): boolean;
- setShadow(shadow: boolean): Rectangle;
-
- getShadowOffset(): Vector2f;
-
- getShadowOffsetX(): number;
- getShadowOffsetY(): number;
-
- setShadowOffset(x: number, y: number): Rectangle;
-
- setShadowOffsetX(x: number): Rectangle;
- setShadowOffsetY(y: number): Rectangle;
-
- getShadowColor(): number;
- setShadowColor(color: number): Rectangle;
-
- setShadow(color: number, x: number, y: number): Rectangle;
-
- getOutline(): boolean;
- setOutline(outline: boolean): Rectangle;
-
- getOutlineColor(): number;
- setOutlineColor(color: number): Rectangle;
-
- getThickness(): number;
- setThickness(thickness: number): Rectangle;
-
- setOutline(color: number, thickness: number): Rectangle;
-
- draw(): Rectangle;
- }
-
- class Tessellator {
- static readonly INSTANCE: Tessellator;
-
- disableAlpha(): Tessellator;
- static disableAlpha(): Tessellator;
-
- enableAlpha(): Tessellator;
- static enableAlpha(): Tessellator;
-
- alphaFunc(func: number, ref: number): Tessellator;
- static alphaFunc(func: number, ref: number): Tessellator;
-
- enableLighting(): Tessellator;
- static enableLighting(): Tessellator;
-
- disableLighting(): Tessellator;
- static disableLighting(): Tessellator;
-
- disableDepth(): Tessellator;
- static disableDepth(): Tessellator;
-
- enableDepth(): Tessellator;
- static enableDepth(): Tessellator;
-
- depthFunc(depthFunc: number): Tessellator;
- static depthFunc(depthFunc: number): Tessellator;
-
- depthMask(flagIn: boolean): Tessellator;
- static depthMask(flagIn: boolean): Tessellator;
-
- disableBlend(): Tessellator;
- static disableBlend(): Tessellator;
-
- enableBlend(): Tessellator;
- static enableBlend(): Tessellator;
-
- blendFunc(sourceFactor: number, destFactor: number): Tessellator;
- static blendFunc(sourceFactor: number, destFactor: number): Tessellator;
-
- tryBlendFuncSeparate(
- sourceFactor: number,
- destFactor: number,
- sourceFactorAlpha: number,
- destFactorAlpha: number,
- ): Tessellator;
- static tryBlendFuncSeparate(
- sourceFactor: number,
- destFactor: number,
- sourceFactorAlpha: number,
- destFactorAlpha: number,
- ): Tessellator;
-
- enableTexture2D(): Tessellator;
- static enableTexture2D(): Tessellator;
-
- disableTexture2D(): Tessellator;
- static disableTexture2D(): Tessellator;
-
- deleteTexture(texture: Image): Tessellator;
- static deleteTexture(texture: Image): Tessellator;
-
- pushMatrix(): Tessellator;
- static pushMatrix(): Tessellator;
-
- popMatrix(): Tessellator;
- static popMatrix(): Tessellator;
-
- static getPartialTicks(): number;
- getPartialTicks(): number;
- static setPartialTicks(p: number): void;
- setPartialTicks(p: number): void;
-
- /**
- * Binds a texture to the client for the Tessellator to use.
- *
- * @param texture the texture to bind
- * @return the Tessellator to allow for method chaining
- */
- bindTexture(texture: Image): Tessellator;
- /**
- * Binds a texture to the client for the Tessellator to use.
- *
- * @param texture the texture to bind
- * @return the Tessellator to allow for method chaining
- */
- static bindTexture(texture: Image): Tessellator;
-
- /**
- * Begin drawing with the Tessellator
- * with default draw mode of quads and textured
- *
- * @param drawMode the GL draw mode
- * @param textured if the Tessellator is textured
- * @return the Tessellator to allow for method chaining
- * @see com.chattriggers.ctjs.minecraft.libs.renderer.Shape.setDrawMode
- */
- begin(drawMode?: number, textured?: boolean): Tessellator;
- /**
- * Begin drawing with the Tessellator
- * with default draw mode of quads and textured
- *
- * @param drawMode the GL draw mode
- * @param textured if the Tessellator is textured
- * @return the Tessellator to allow for method chaining
- * @see com.chattriggers.ctjs.minecraft.libs.renderer.Shape.setDrawMode
- */
- static begin(drawMode?: number, textured?: boolean): Tessellator;
-
- /**
- * Colorize the Tessellator.
- *
- * @param red the red value between 0 and 1
- * @param green the green value between 0 and 1
- * @param blue the blue value between 0 and 1
- * @param alpha the alpha value between 0 and 1
- * @return the Tessellator to allow for method chaining
- */
- colorize(
- red: number,
- green: number,
- blue: number,
- alpha?: number,
- ): Tessellator;
- /**
- * Colorize the Tessellator.
- *
- * @param red the red value between 0 and 1
- * @param green the green value between 0 and 1
- * @param blue the blue value between 0 and 1
- * @param alpha the alpha value between 0 and 1
- * @return the Tessellator to allow for method chaining
- */
- static colorize(
- red: number,
- green: number,
- blue: number,
- alpha?: number,
- ): Tessellator;
-
- /**
- * Rotates the Tessellator in 3d space.
- * Similar to {@link Renderer.rotate com.chattriggers.ctjs.minecraft.libs.renderer.Renderer.rotate}
- *
- * @param angle the angle to rotate
- * @param x if the rotation is around the x axis
- * @param y if the rotation is around the y axis
- * @param z if the rotation is around the z axis
- * @return the Tessellator to allow for method chaining
- */
- rotate(angle: number, x: number, y: number, z: number): Tessellator;
- /**
- * Rotates the Tessellator in 3d space.
- * Similar to {@link Renderer.rotate com.chattriggers.ctjs.minecraft.libs.renderer.Renderer.rotate}
- *
- * @param angle the angle to rotate
- * @param x if the rotation is around the x axis
- * @param y if the rotation is around the y axis
- * @param z if the rotation is around the z axis
- * @return the Tessellator to allow for method chaining
- */
- static rotate(angle: number, x: number, y: number, z: number): Tessellator;
-
- /**
- * Translates the Tessellator in 3d space.
- * Similar to {@link Renderer.translate com.chattriggers.ctjs.minecraft.libs.renderer.Renderer.translate}
- *
- * @param x the x position
- * @param y the y position
- * @param z the z position
- * @return the Tessellator to allow for method chaining
- */
- translate(x: number, y: number, z: number): Tessellator;
- /**
- * Translates the Tessellator in 3d space.
- * Similar to {@link Renderer.translate com.chattriggers.ctjs.minecraft.libs.renderer.Renderer.translate}
- *
- * @param x the x position
- * @param y the y position
- * @param z the z position
- * @return the Tessellator to allow for method chaining
- */
- static translate(x: number, y: number, z: number): Tessellator;
-
- /**
- * Scales the Tessellator in 3d space.
- * Similar to {@link Renderer.scale com.chattriggers.ctjs.minecraft.libs.renderer.Renderer.scale}
- *
- * @param x scale in the x direction or all directions if y and z are not supplied
- * @param y scale in the y direction
- * @param z scale in the z direction
- * @return the Tessellator to allow for method chaining
- */
- scale(x: number, y?: number, z?: number): Tessellator;
- /**
- * Scales the Tessellator in 3d space.
- * Similar to {@link Renderer.scale com.chattriggers.ctjs.minecraft.libs.renderer.Renderer.scale}
- *
- * @param x scale in the x direction or all directions if y and z are not supplied
- * @param y scale in the y direction
- * @param z scale in the z direction
- * @return the Tessellator to allow for method chaining
- */
- static scale(x: number, y?: number, z?: number): Tessellator;
-
- /**
- * Sets a new vertex in the Tessellator.
- *
- * @param x the x position
- * @param y the y position
- * @param z the z position
- * @return the Tessellator to allow for method chaining
- */
- pos(x: number, y: number, z: number): Tessellator;
- /**
- * Sets a new vertex in the Tessellator.
- *
- * @param x the x position
- * @param y the y position
- * @param z the z position
- * @return the Tessellator to allow for method chaining
- */
- static pos(x: number, y: number, z: number): Tessellator;
-
- /**
- * Sets the texture location on the last defined vertex.
- * Use directly after using {@link Tessellator.pos}
- *
- * @param u the u position in the texture
- * @param v the v position in the texture
- * @return the Tessellator to allow for method chaining
- */
- tex(u: number, v: number): Tessellator;
- /**
- * Sets the texture location on the last defined vertex.
- * Use directly after using {@link Tessellator.pos}
- *
- * @param u the u position in the texture
- * @param v the v position in the texture
- * @return the Tessellator to allow for method chaining
- */
- static tex(u: number, v: number): Tessellator;
-
- /**
- * Finalizes and draws the Tessellator.
- */
- draw(): void;
- /**
- * Finalizes and draws the Tessellator.
- */
- static draw(): void;
-
- /**
- * Gets a fixed render position from x, y, and z inputs adjusted with partial ticks
- * @param x the X coordinate
- * @param y the Y coordinate
- * @param z the Z coordinate
- * @return the Vector3f position to render at
- */
- getRenderPos(x: number, y: number, z: number): Vector3f;
- /**
- * Gets a fixed render position from x, y, and z inputs adjusted with partial ticks
- * @param x the X coordinate
- * @param y the Y coordinate
- * @param z the Z coordinate
- * @return the Vector3f position to render at
- */
- static getRenderPos(x: number, y: number, z: number): Vector3f;
-
- /**
- * Renders floating lines of text in the 3D world at a specific position.
- *
- * @param text The string array of text to render
- * @param x X coordinate in the game world
- * @param y Y coordinate in the game world
- * @param z Z coordinate in the game world
- * @param color the color of the text
- * @param renderBlackBox render a pretty black border behind the text
- * @param scale the scale of the text
- * @param increase whether to scale the text up as the player moves away
- */
- drawString(
- text: string,
- x: number,
- y: number,
- z: number,
- color?: number,
- renderBlackBox?: boolean,
- scale?: number,
- increase?: boolean,
- ): void;
- /**
- * Renders floating lines of text in the 3D world at a specific position.
- *
- * @param text The string array of text to render
- * @param x X coordinate in the game world
- * @param y Y coordinate in the game world
- * @param z Z coordinate in the game world
- * @param color the color of the text
- * @param renderBlackBox render a pretty black border behind the text
- * @param scale the scale of the text
- * @param increase whether to scale the text up as the player moves away
- */
- static drawString(
- text: string,
- x: number,
- y: number,
- z: number,
- color?: number,
- renderBlackBox?: boolean,
- scale?: number,
- increase?: boolean,
- ): void;
- }
-
- class MathLib {
- /**
- * Maps a number from one range to another.
- *
- * @param number the number to map
- * @param in_min the original range min
- * @param in_max the original range max
- * @param out_min the final range min
- * @param out_max the final range max
- * @return the re-mapped number
- */
- map(
- number: number,
- in_min: number,
- in_max: number,
- out_min: number,
- out_max: number,
- ): number;
- /**
- * Maps a number from one range to another.
- *
- * @param number the number to map
- * @param in_min the original range min
- * @param in_max the original range max
- * @param out_min the final range min
- * @param out_max the final range max
- * @return the re-mapped number
- */
- static map(
- number: number,
- in_min: number,
- in_max: number,
- out_min: number,
- out_max: number,
- ): number;
-
- /**
- * Clamps a floating number between two values.
- *
- * @param number the number to clamp
- * @param min the minimum
- * @param max the maximum
- * @return the clamped number
- */
- clampFloat(number: number, min: number, max: number): number;
- /**
- * Clamps a floating number between two values.
- *
- * @param number the number to clamp
- * @param min the minimum
- * @param max the maximum
- * @return the clamped number
- */
- static clampFloat(number: number, min: number, max: number): number;
-
- /**
- * Clamps an integer number between two values.
- *
- * @param number the number to clamp
- * @param min the minimum
- * @param max the maximum
- * @return the clamped number
- */
- clamp(number: number, min: number, max: number): number;
- /**
- * Clamps an integer number between two values.
- *
- * @param number the number to clamp
- * @param min the minimum
- * @param max the maximum
- * @return the clamped number
- */
- static clamp(number: number, min: number, max: number): number;
- }
- /**
- * Instances a new Sound with certain properties. These properties
- * should be passed through as a normal JavaScript object.
- *
- * REQUIRED:
- * - source (String) - filename, relative to ChatTriggers assets directory
- *
- * OPTIONAL:
- * - priority (boolean) - whether or not this sound should be prioritized, defaults to false
- * - loop (boolean) - whether or not to loop this sound over and over, defaults to false
- * - stream (boolean) - whether or not to stream this sound rather than preload it (should be true for large files), defaults to false
- *
- * CONFIGURABLE (can be set in config object, or changed later, but MAKE SURE THE WORLD HAS LOADED)
- * - category (String) - which category this sound should be a part of, see {@link setCategory}.
- * - volume (float) - volume of the sound, see {@link setVolume}
- * - pitch (float) - pitch of the sound, see {@link setPitch}
- * - x, y, z (float) - location of the sound, see {@link setPosition}. Defaults to the players position.
- * - attenuation (int) - fade out model of the sound, see {@link setAttenuation}
- *
- * @param config the JavaScript config object
- */
- class Sound {
- constructor(config: ISoundConfig);
-
- isListening: boolean;
-
- /**
- * Sets the category of this sound, making it respect the Player's sound volume sliders.
- * Options are: master, music, record, weather, block, hostile, neutral, player, and ambient
- *
- * @param category the category
- */
- setCategory(category: string): Sound;
-
- /**
- * Sets this sound's volume.
- * Will override the category if called after {@link setCategory}, but not if called before.
- *
- * @param volume New volume, float value ( 0.0f - 1.0f ).
- */
- setVolume(volume: number): Sound;
-
- getVolume(): number;
-
- /**
- * Updates the position of this sound
- *
- * @param x the x coordinate
- * @param y the y coordinate
- * @param z the z coordinate
- */
- setPosition(x: number, y: number, z: number): Sound;
-
- /**
- * Sets this sound's pitch.
- *
- * @param pitch A float value ( 0.5f - 2.0f ).
- */
- setPitch(pitch: number): Sound;
-
- getPitch(): number;
-
- /**
- * Sets the attenuation (fade out over space) of the song.
- * Models are:
- * NONE(0) - no fade
- * ROLLOFF(1) - this is the default, meant to be somewhat realistic
- * LINEAR(2) - fades out linearly, as the name implies
- *
- * @param model the model
- */
- setAttenuation(model: number): Sound;
-
- /**
- * Plays/resumes the sound
- */
- play(): void;
-
- /**
- * Pauses the sound, to be resumed later
- */
- pause(): void;
-
- /**
- * Completely stops the sound
- */
- stop(): void;
-
- /**
- * Immediately restarts the sound
- */
- rewind(): void;
- }
-
- interface ISoundConfig {
- /**filename, relative to ChatTriggers assets directory */
- source: string;
- /**whether or not this sound should be prioritized, defaults to false */
- priority?: boolean;
- /**whether or not to loop this sound over and over, defaults to false */
- loop?: boolean;
- /**whether or not to stream this sound rather than preload it (should be true for large files), defaults to false */
- stream?: boolean;
- /**
- * CONFIGURABLE (can be set in config object, or changed later, but MAKE SURE THE WORLD HAS LOADED)
- * which category this sound should be a part of, see {@link #setCategory(String)}
- */
- category?:
- | "MASTER"
- | "MUSIC"
- | "RECORDS"
- | "WEATHER"
- | "BLOCKS"
- | "MOBS"
- | "ANIMALS"
- | "PLAYERS"
- | "AMBIENT";
- /**
- * CONFIGURABLE (can be set in config object, or changed later, but MAKE SURE THE WORLD HAS LOADED)
- * volume of the sound, see {@link #setVolume(float)}
- **/
- volume?: number;
- /**
- * CONFIGURABLE (can be set in config object, or changed later, but MAKE SURE THE WORLD HAS LOADED)
- * pitch of the sound, see {@link #setPitch(float)}
- */
- pitch?: number;
- /**
- * CONFIGURABLE (can be set in config object, or changed later, but MAKE SURE THE WORLD HAS LOADED)
- * location of the sound, see {@link #setPosition(float, float, float)}. Defaults to the players position
- */
- x?: number;
- /**
- * CONFIGURABLE (can be set in config object, or changed later, but MAKE SURE THE WORLD HAS LOADED)
- * location of the sound, see {@link #setPosition(float, float, float)}. Defaults to the players position
- */
- y?: number;
- /**
- * CONFIGURABLE (can be set in config object, or changed later, but MAKE SURE THE WORLD HAS LOADED)
- * location of the sound, see {@link #setPosition(float, float, float)}. Defaults to the players position
- */
- z?: number;
- /**
- * CONFIGURABLE (can be set in config object, or changed later, but MAKE SURE THE WORLD HAS LOADED)
- * fade out model of the sound, see {@link #setAttenuation(int)}
- */
- attenuation?: number;
- }
-
- class Chunk {
- constructor(chunk: MCChunk);
- readonly chunk: MCChunk;
-
- /**
- * Gets the x position of the chunk
- */
- getX(): number;
- /**
- * Gets the z position of the chunk
- */
- getZ(): number;
-
- /**
- * Gets the minimum x coordinate of a block in the chunk
- *
- * @return the minimum x coordinate
- */
- getMinBlockX(): number;
-
- /**
- * Gets the minimum z coordinate of a block in the chunk
- *
- * @return the minimum z coordinate
- */
- getMinBlockZ(): number;
-
- /**
- * Gets the skylight level at the given position. This is the value seen in the debug (F3) menu
- *
- * @param x the x coordinate
- * @param y the y coordinate
- * @param z the z coordinate
- * @return the skylight level at the location
- */
- getSkyLightLevel(x: number, y: number, z: number): number;
-
- /**
- * Gets the block light level at the given position. This is the value seen in the debug (F3) menu
- *
- * @param x the x coordinate
- * @param y the y coordinate
- * @param z the z coordinate
- * @return the block light level at the location
- */
- getBlockLightLevel(x: number, y: number, z: number): number;
-
- /**
- * Gets every entity in this chunk
- *
- * @return the entity list
- */
- getAllEntities(): Entity[];
-
- /**
- * Gets every entity in this chunk of a certain class
- *
- * @param clazz the class to filter for (Use `Java.type().class` to get this)
- * @return the entity list
- */
- getAllEntitiesOfType(clazz: JavaClass<Entity>): Entity[];
-
- /**
- * Gets every tile entity in this chunk
- *
- * @return the tile entity list
- */
- getAllTileEntities(): TileEntity[];
-
- /**
- * Gets every tile entity in this chunk of a certain class
- *
- * @param clazz the class to filter for (Use `Java.type().class` to get this)
- * @return the tile entity list
- */
- getAllTileEntitiesOfType(clazz: JavaClass<any>): TileEntity[];
- }
-
- class PotionEffect {
- readonly effect: MCPotionEffect;
-
- constructor(effect: MCPotionEffect);
-
- /**
- * Returns the translation key of the potion.
- * Ex: "potion.poison"
- */
- getName(): string;
-
- /**
- * Returns the localized name of the potion that
- * is displayed in the player's inventory.
- * Ex: "Poison"
- */
- getLocalizedName(): string;
-
- getAmplifier(): number;
-
- getDuration(): number;
-
- getID(): number;
-
- isAmbient(): boolean;
-
- isDurationMax(): boolean;
-
- showsParticles(): boolean;
-
- toString(): string;
- }
-
- class BlockFace {
- readonly oppositeIndex: number;
- readonly axisDirection: BlockFace$AxisDirection;
- readonly axis: BlockFace$Axis;
- readonly directionVec: Vec3i;
-
- constructor(
- oppositeIndex: number,
- axisDirection: BlockFace$AxisDirection,
- axis: BlockFace$Axis,
- directionVec: Vec3i,
- );
-
- static readonly DOWN: BlockFace;
- static readonly UP: BlockFace;
- static readonly NORTH: BlockFace;
- static readonly SOUTH: BlockFace;
- static readonly WEST: BlockFace;
- static readonly EAST: BlockFace;
-
- getOpposite(): BlockFace;
-
- getOffsetX(): number;
- getOffsetY(): number;
- getOffsetZ(): number;
-
- rotateAround(axis: BlockFace$Axis): BlockFace;
-
- rotateX(): BlockFace;
- rotateY(): BlockFace;
- rotateZ(): BlockFace;
-
- getName(): string;
-
- static readonly Plane: typeof BlockFace$Plane;
- static readonly AxisDirection: typeof BlockFace$AxisDirection;
- static readonly Axis: typeof BlockFace$Axis;
-
- static fromMCEnumFacing(facing: MCEnumFacing): BlockFace;
- }
-
- class BlockPos extends Vec3i {
- constructor(x: number, y: number, z: number);
-
- constructor(pos: Vec3i);
- constructor(pos: MCBlockPos);
- constructor(source: Entity);
-
- add(other: Vec3i): BlockPos;
- add(x: number, y: number, z: number): BlockPos;
-
- plus(other: Vec3i): BlockPos;
-
- subtract(other: Vec3i): BlockPos;
- subtract(x: number, y: number, z: number): BlockPos;
-
- minus(other: Vec3i): BlockPos;
-
- up(n?: number): BlockPos;
- down(n?: number): BlockPos;
- north(n?: number): BlockPos;
- south(n?: number): BlockPos;
- east(n?: number): BlockPos;
- west(n?: number): BlockPos;
-
- offset(facing: BlockFace, n?: number): BlockPos;
-
- toMCBlock(): MCBlockPos;
- }
-
- /**
- * An immutable wrapper around Minecraft's Block object. Note
- * that this references a block "type", and not an actual block
- * in the world. If a reference to a particular block is needed,
- * use {@link Block}
- */
- class BlockType {
- readonly mcBlock: MCBlock;
-
- constructor(block: BlockType);
- constructor(blockName: string);
- constructor(blockID: number);
- constructor(item: Item);
-
- /**
- * Returns a Block based on this block and the
- * provided BlockPos
- *
- * @param blockPos the block position
- * @return a Block object
- */
- withBlockPos(blockPos: BlockPos): Block;
-
- getID(): number;
-
- /**
- * Gets the block's registry name.
- * Example: minecraft:planks
- *
- * @return the block's registry name
- */
- getRegistryName(): string;
-
- /**
- * Gets the block's unlocalized name.
- * Example: tile.wood
- *
- * @return the block's unlocalized name
- */
- getUnlocalizedName(): string;
-
- /**
- * Gets the block's localized name.
- * Example: Wooden Planks
- *
- * @return the block's localized name
- */
- getName(): string;
-
- getLightValue(): number;
-
- getDefaultState(): MCIBlockState;
-
- getDefaultMetadata(): number;
-
- canProvidePower(): boolean;
-
- getHarvestLevel(): number;
-
- isTranslucent(): boolean;
-
- toString(): `BlockType{name=${string}}`;
- }
-
- class Vec3i {
- readonly x: number;
- readonly y: number;
- readonly z: number;
-
- constructor(x: number, y: number, z: number);
-
- crossProduct(other: Vec3i): Vec3i;
-
- distanceSq(other: Vec3i): number;
-
- distance(other: Vec3i): number;
-
- distanceSqToCenter(x: number, y: number, z: number): number;
-
- compareTo(other: Vec3i): number;
-
- equals(other: any): boolean;
-
- hashCode(): number;
-
- toString(): `Vec3i{x=${number},y=${number},z=${number}}`;
- }
-
- class NBTBase {
- constructor(rawNBT: MCNBTBase);
- readonly rawNBT: MCNBTBase;
- /**Gets the type byte for the tag. */
- getId(): number;
- /**Creates a clone of the tag. */
- copy(): MCNBTBase;
- /**Return whether this compound has no tags. */
- hasNoTags(): boolean;
- hasTags(): boolean;
-
- equals(other: any): boolean;
-
- hashCode(): number;
-
- toString(): string;
- }
-
- class NBTTagCompound extends NBTBase {
- constructor(rawNBT: MCNBTTagCompound);
- readonly rawNBT: MCNBTTagCompound;
- tagMap: Map<string, MCNBTBase>;
-
- getTagMap(): NBTTagCompound["tagMap"];
-
- keySet: Set<string>;
-
- getKeySet(): NBTTagCompound["keySet"];
-
- NBTDataType: typeof NBTDataType;
-
- getTag(key: string): NBTBase | NBTTagCompound | null;
-
- getTagId(key: string): number;
-
- getByte(key: string): number;
- getShort(key: string): number;
- getInteger(key: string): number;
- getLong(key: string): number;
- getFloat(key: string): number;
- getDouble(key: string): number;
- getString(key: string): string;
- getByteArray(key: string): number[];
- getIntArray(key: string): number[];
- getBoolean(key: string): boolean;
- getCompoundTag(key: string): NBTTagCompound;
- getTagList(key: string, type: number): NBTTagList;
-
- get(key: string, type: NBTDataType, tagType?: number): NBTDataType;
-
- get(key: string): NBTBase;
-
- setNBTBase(key: string, value: NBTBase): NBTTagCompound;
-
- setNBTBase(key: string, value: MCNBTBase): NBTTagCompound;
-
- setByte(key: string, value: number): NBTTagCompound;
-
- setShort(key: string, value: number): NBTTagCompound;
-
- setInteger(key: string, value: number): NBTTagCompound;
-
- setLong(key: string, value: number): NBTTagCompound;
-
- setFloat(key: string, value: number): NBTTagCompound;
-
- setDouble(key: string, value: number): NBTTagCompound;
-
- setString(key: string, value: string): NBTTagCompound;
-
- setByteArray(key: string, value: number[]): NBTTagCompound;
-
- setBoolean(key: string, value: boolean): NBTTagCompound;
-
- set(key: string, value: NBTDataType): NBTTagCompound;
-
- removeTag(key: string): NBTTagCompound;
-
- toObject(): NBTType;
- }
-
- class NBTTagList extends NBTBase {
- constructor(rawNBT: MCNBTTagList);
- readonly rawNBT: MCNBTTagList;
-
- tagCount: number;
- getTagCount(): number;
-
- appendTag(nbt: NBTBase): NBTTagList;
-
- appendTag(nbt: MCNBTBase): NBTTagList;
-
- set(id: number, nbt: NBTBase): void;
-
- set(id: number, nbt: MCNBTBase): void;
-
- insertTag(index: number, nbt: NBTBase): NBTTagList;
-
- insertTag(index: number, nbt: MCNBTBase): NBTTagList;
-
- removeTag(index: number): MCNBTBase;
-
- getCompoundTagAt(index: number): MCNBTTagCompound;
-
- getIntArrayAt(index: number): number[];
-
- getDoubleAt(index: number): number;
-
- getFloatAt(index: number): number;
-
- getStringTagAt(index: number): string;
-
- get(index: number): MCNBTBase;
-
- get(
- index: number,
- type: NBTTagCompound["NBTDataType"],
- ): number | string | number[] | MCNBTTagCompound | NBTBase;
-
- toArray(): NBTType[];
- }
-
- class Player {
- readonly INSTANCE: Player;
-
- asPlayerMP(): PlayerMP;
- static asPlayerMP(): PlayerMP;
-
- /**
- * Gets Minecraft's EntityPlayerSP object representing the user
- *
- * @return The Minecraft EntityPlayerSP object representing the user
- */
- getPlayer(): MCEntityPlayerSP;
- /**
- * Gets Minecraft's EntityPlayerSP object representing the user
- *
- * @return The Minecraft EntityPlayerSP object representing the user
- */
- static getPlayer(): MCEntityPlayerSP;
-
- getTeam(): Team | null;
- static getTeam(): Team | null;
-
- getX(): number;
- static getX(): number;
-
- getY(): number;
- static getY(): number;
-
- getZ(): number;
- static getZ(): number;
-
- /**
- * Gets the player's x motion.
- * This is the amount the player will move in the x direction next tick.
- *
- * @return the player's x motion
- */
- getMotionX(): number;
- /**
- * Gets the player's x motion.
- * This is the amount the player will move in the x direction next tick.
- *
- * @return the player's x motion
- */
- static getMotionX(): number;
-
- /**
- * Gets the player's y motion.
- * This is the amount the player will move in the y direction next tick.
- *
- * @return the player's y motion
- */
- getMotionY(): number;
- /**
- * Gets the player's y motion.
- * This is the amount the player will move in the y direction next tick.
- *
- * @return the player's y motion
- */
- static getMotionY(): number;
-
- /**
- * Gets the player's z motion.
- * This is the amount the player will move in the z direction next tick.
- *
- * @return the player's z motion
- */
- getMotionZ(): number;
- /**
- * Gets the player's z motion.
- * This is the amount the player will move in the z direction next tick.
- *
- * @return the player's z motion
- */
- static getMotionZ(): number;
-
- /**
- * Gets the player's camera pitch.
- *
- * @return the player's camera pitch
- */
- getPitch(): number;
- /**
- * Gets the player's camera pitch.
- *
- * @return the player's camera pitch
- */
- static getPitch(): number;
-
- /**
- * Gets the player's camera yaw.
- *
- * @return the player's camera yaw
- */
- getYaw(): number;
- /**
- * Gets the player's camera yaw.
- *
- * @return the player's camera yaw
- */
- static getYaw(): number;
-
- /**
- * Gets the player's yaw rotation without wrapping.
- *
- * @return the yaw
- */
- getRawYaw(): number;
- /**
- * Gets the player's yaw rotation without wrapping.
- *
- * @return the yaw
- */
- static getRawYaw(): number;
-
- /**
- * Gets the player's username.
- *
- * @return the player's username
- */
- getName(): string;
- /**
- * Gets the player's username.
- *
- * @return the player's username
- */
- static getName(): string;
-
- getUUID(): string;
- static getUUID(): string;
-
- getUUIDObj(): JavaUUID;
- static getUUIDObj(): JavaUUID;
-
- getHP(): number;
- static getHP(): number;
-
- getHunger(): number;
- static getHunger(): number;
-
- getSaturation(): number;
- static getSaturation(): number;
-
- getArmorPoints(): number;
- static getArmorPoints(): number;
-
- /**
- * Gets the player's air level.
- *
- * The returned value will be an integer. If the player is not taking damage, it
- * will be between 300 (not in water) and 0. If the player is taking damage, it
- * will be between -20 and 0, getting reset to 0 every time the player takes damage.
- *
- * @return the player's air level
- */
- getAirLevel(): number;
- /**
- * Gets the player's air level.
- *
- * The returned value will be an integer. If the player is not taking damage, it
- * will be between 300 (not in water) and 0. If the player is taking damage, it
- * will be between -20 and 0, getting reset to 0 every time the player takes damage.
- *
- * @return the player's air level
- */
- static getAirLevel(): number;
-
- getXPLevel(): number;
- static getXPLevel(): number;
-
- getXPProgress(): number;
- static getXPProgress(): number;
-
- getBiome():
- | "Ocean"
- | "Plains"
- | "Desert"
- | "Extreme Hills"
- | "Forest"
- | "Taiga"
- | "Swampland"
- | "River"
- | "Hell"
- | "The End"
- | "FrozenOcean"
- | "FrozenRiver"
- | "Ice Plains"
- | "Ice Mountains"
- | "MushroomIsland"
- | "MushroomIslandShore"
- | "Beach"
- | "DesertHills"
- | "ForestHills"
- | "TaigaHills"
- | "Extreme Hills Edge"
- | "Jungle"
- | "JungleHills"
- | "JungleEdge"
- | "Deep Ocean"
- | "Stone Beach"
- | "Cold Beach"
- | "Birch Forest"
- | "Birch Forest Hills"
- | "Roofed Forest"
- | "Cold Taiga"
- | "Cold Taiga Hills"
- | "Mega Taiga"
- | "Mega Taiga Hills"
- | "Extreme Hills+"
- | "Savanna"
- | "Savanna Plateau"
- | "Mesa"
- | "Mesa Plateau F"
- | "Mesa Plateau";
- static getBiome():
- | "Ocean"
- | "Plains"
- | "Desert"
- | "Extreme Hills"
- | "Forest"
- | "Taiga"
- | "Swampland"
- | "River"
- | "Hell"
- | "The End"
- | "FrozenOcean"
- | "FrozenRiver"
- | "Ice Plains"
- | "Ice Mountains"
- | "MushroomIsland"
- | "MushroomIslandShore"
- | "Beach"
- | "DesertHills"
- | "ForestHills"
- | "TaigaHills"
- | "Extreme Hills Edge"
- | "Jungle"
- | "JungleHills"
- | "JungleEdge"
- | "Deep Ocean"
- | "Stone Beach"
- | "Cold Beach"
- | "Birch Forest"
- | "Birch Forest Hills"
- | "Roofed Forest"
- | "Cold Taiga"
- | "Cold Taiga Hills"
- | "Mega Taiga"
- | "Mega Taiga Hills"
- | "Extreme Hills+"
- | "Savanna"
- | "Savanna Plateau"
- | "Mesa"
- | "Mesa Plateau F"
- | "Mesa Plateau";
-
- /**
- * Gets the light level at the player's current position.
- *
- * @return the light level at the player's current position
- */
- getLightLevel(): number;
- /**
- * Gets the light level at the player's current position.
- *
- * @return the light level at the player's current position
- */
- static getLightLevel(): number;
-
- isMoving(): boolean;
- static isMoving(): boolean;
-
- isSneaking(): boolean;
- static isSneaking(): boolean;
-
- isSprinting(): boolean;
- static isSprinting(): boolean;
-
- /**
- * Checks if player can be pushed by water.
- *
- * @return true if the player is flying, false otherwise
- */
- isFlying(): boolean;
- /**
- * Checks if player can be pushed by water.
- *
- * @return true if the player is flying, false otherwise
- */
- static isFlying(): boolean;
-
- isSleeping(): boolean;
- static isSleeping(): boolean;
-
- /**
- * Gets the direction the player is facing.
- * Example: "South West"
- *
- * @return The direction the player is facing, one of the four cardinal directions
- */
- facing():
- | "South"
- | "South West"
- | "West"
- | "North West"
- | "North"
- | "North East"
- | "East"
- | "South East"
- | "";
- /**
- * Gets the direction the player is facing.
- * Example: "South West"
- *
- * @return The direction the player is facing, one of the four cardinal directions
- */
- static facing():
- | "South"
- | "South West"
- | "West"
- | "North West"
- | "North"
- | "North East"
- | "East"
- | "South East"
- | "";
-
- getActivePotionEffects(): PotionEffect[];
- static getActivePotionEffects(): PotionEffect[];
-
- /**
- * Gets the current object that the player is looking at,
- * whether that be a block or an entity. Returns an air {@link BlockType} when not looking
- * at anything.
- *
- * @return the {@link Block}, {@link Entity}, {@link Sign}, or {@link BlockType} being looked at
- */
- lookingAt(): Block | Sign | Entity | BlockType;
- /**
- * Gets the current object that the player is looking at,
- * whether that be a block or an entity. Returns an air {@link BlockType} when not looking
- * at anything.
- *
- * @return the {@link Block}, {@link Entity}, {@link Sign}, or {@link BlockType} being looked at
- */
- static lookingAt(): Block | Sign | Entity | BlockType;
-
- getHeldItem(): Item | null;
- static getHeldItem(): Item | null;
-
- setHeldItemIndex(index: number): void;
- static setHeldItemIndex(index: number): void;
-
- getHeldItemIndex(): number;
- static getHeldItemIndex(): number;
-
- /**
- * Gets the inventory of the player, i.e. the inventory accessed by 'e'.
- *
- * @return the player's inventory
- */
- getInventory(): Inventory | null;
- /**
- * Gets the inventory of the player, i.e. the inventory accessed by 'e'.
- *
- * @return the player's inventory
- */
- static getInventory(): Inventory | null;
-
- /**
- * Gets the display name for the player,
- * i.e. the name shown in tab list and in the player's nametag.
- * @return the display name
- */
- getDisplayName(): TextComponent;
- /**
- * Gets the display name for the player,
- * i.e. the name shown in tab list and in the player's nametag.
- * @return the display name
- */
- static getDisplayName(): TextComponent;
-
- /**
- * Sets the name for this player shown in tab list
- *
- * @param textComponent the new name to display
- */
- setTabDisplayName(textComponent: TextComponent): void;
- /**
- * Sets the name for this player shown in tab list
- *
- * @param textComponent the new name to display
- */
- static setTabDisplayName(textComponent: TextComponent): void;
-
- /**
- * @deprecated Use the better named method getContainer
- */
- getOpenedInventory(): Inventory | undefined;
- /**
- * @deprecated Use the better named method getContainer
- */
- static getOpenedInventory(): Inventory | undefined;
-
- /**
- * Gets the container the user currently has open, i.e. a chest.
- *
- * @return the currently opened container
- */
- getContainer(): Inventory | undefined;
- /**
- * Gets the container the user currently has open, i.e. a chest.
- *
- * @return the currently opened container
- */
- static getContainer(): Inventory | undefined;
-
- /**
- * Draws the player in the GUI
- */
- draw(x: number, y: number, rotate?: boolean): Player;
- /**
- * Draws the player in the GUI
- */
- static draw(
- x: number,
- y: number,
- rotate?: boolean,
- showNametag?: boolean,
- showArmor?: boolean,
- showCape?: boolean,
- showHeldItem?: boolean,
- showArrow?: boolean,
- ): Player;
-
- getLastX(): number;
- static getLastX(): number;
-
- getLastY(): number;
- static getLastY(): number;
-
- getLastZ(): number;
- static getLastZ(): number;
-
- getRenderX(): number;
- static getRenderX(): number;
-
- getRenderY(): number;
- static getRenderY(): number;
-
- getRenderZ(): number;
- static getRenderZ(): number;
- }
- namespace Player {
- class armor {
- /**
- * @return the item in the player's helmet slot
- */
- getHelmet(): Item | null;
- /**
- * @return the item in the player's helmet slot
- */
- static getHelmet(): Item | null;
-
- /**
- * @return the item in the player's chestplate slot
- */
- getChestplate(): Item | null;
- /**
- * @return the item in the player's chestplate slot
- */
- static getChestplate(): Item | null;
-
- /**
- * @return the item in the player's leggings slot
- */
- getLeggings(): Item | null;
- /**
- * @return the item in the player's leggings slot
- */
- static getLeggings(): Item | null;
-
- /**
- * @return the item in the player's boots slot
- */
- getBoots(): Item;
- /**
- * @return the item in the player's boots slot
- */
- static getBoots(): Item;
- }
- }
-
- interface testSound {
- (name: "ambient.cave.cave", volume: number, pitch: number): void;
- }
-
- class World {
- readonly INSTANCE: World;
- /**
- * Gets Minecraft's WorldClient object
- *
- * @return The Minecraft WorldClient object
- */
- getWorld(): MCWorldClient;
- /**
- * Gets Minecraft's WorldClient object
- *
- * @return The Minecraft WorldClient object
- */
- static getWorld(): MCWorldClient;
-
- isLoaded(): boolean;
- static isLoaded(): boolean;
- /**
- * Play a sound at the player location.
- *
- * @param name the name of the sound
- * @param volume the volume of the sound
- * @param pitch the pitch of the sound
- */
- static playSound(name: string, volume: number, pitch: number): void;
- static playSound(
- name: "ambient.cave.cave",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "ambient.weather.rain",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "ambient.weather.thunder",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "game.player.hurt.fall.big",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "game.neutral.hurt.fall.big",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "game.hostile.hurt.fall.big",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "game.player.hurt.fall.small",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "game.neutral.hurt.fall.small",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "game.hostile.hurt.fall.small",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "game.player.hurt",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "game.neutral.hurt",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "game.hostile.hurt",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "game.player.die",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "game.neutral.die",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "game.hostile.die",
- volume: number,
- pitch: number,
- ): void;
- static playSound(name: "dig.cloth", volume: number, pitch: number): void;
- static playSound(name: "dig.glass", volume: number, pitch: number): void;
- static playSound(
- name: "game.potion.smash",
- volume: number,
- pitch: number,
- ): void;
- static playSound(name: "dig.grass", volume: number, pitch: number): void;
- static playSound(name: "dig.gravel", volume: number, pitch: number): void;
- static playSound(name: "dig.sand", volume: number, pitch: number): void;
- static playSound(name: "dig.snow", volume: number, pitch: number): void;
- static playSound(name: "dig.stone", volume: number, pitch: number): void;
- static playSound(name: "dig.wood", volume: number, pitch: number): void;
- static playSound(name: "fire.fire", volume: number, pitch: number): void;
- static playSound(name: "fire.ignite", volume: number, pitch: number): void;
- static playSound(
- name: "item.fireCharge.use",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "fireworks.blast",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "fireworks.blast_far",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "fireworks.largeBlast",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "fireworks.largeBlast_far",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "fireworks.launch",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "fireworks.twinkle",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "fireworks.twinkle_far",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "game.player.swim.splash",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "game.neutral.swim.splash",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "game.hostile.swim.splash",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "game.player.swim",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "game.neutral.swim",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "game.hostile.swim",
- volume: number,
- pitch: number,
- ): void;
- static playSound(name: "liquid.lava", volume: number, pitch: number): void;
- static playSound(
- name: "liquid.lavapop",
- volume: number,
- pitch: number,
- ): void;
- static playSound(name: "liquid.water", volume: number, pitch: number): void;
- static playSound(
- name: "minecart.base",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "minecart.inside",
- volume: number,
- pitch: number,
- ): void;
- static playSound(name: "note.bass", volume: number, pitch: number): void;
- static playSound(
- name: "note.bassattack",
- volume: number,
- pitch: number,
- ): void;
- static playSound(name: "note.bd", volume: number, pitch: number): void;
- static playSound(name: "note.harp", volume: number, pitch: number): void;
- static playSound(name: "note.hat", volume: number, pitch: number): void;
- static playSound(name: "note.pling", volume: number, pitch: number): void;
- static playSound(name: "note.snare", volume: number, pitch: number): void;
- static playSound(
- name: "portal.portal",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "portal.travel",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "portal.trigger",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "random.anvil_break",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "random.anvil_land",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "random.anvil_use",
- volume: number,
- pitch: number,
- ): void;
- static playSound(name: "random.bow", volume: number, pitch: number): void;
- static playSound(
- name: "random.bowhit",
- volume: number,
- pitch: number,
- ): void;
- static playSound(name: "random.break", volume: number, pitch: number): void;
- static playSound(name: "random.burp", volume: number, pitch: number): void;
- static playSound(
- name: "random.chestclosed",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "random.chestopen",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "gui.button.press",
- volume: number,
- pitch: number,
- ): void;
- static playSound(name: "random.click", volume: number, pitch: number): void;
- static playSound(
- name: "random.door_open",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "random.door_close",
- volume: number,
- pitch: number,
- ): void;
- static playSound(name: "random.drink", volume: number, pitch: number): void;
- static playSound(name: "random.eat", volume: number, pitch: number): void;
- static playSound(
- name: "random.explode",
- volume: number,
- pitch: number,
- ): void;
- static playSound(name: "random.fizz", volume: number, pitch: number): void;
- static playSound(
- name: "game.tnt.primed",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "creeper.primed",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "random.levelup",
- volume: number,
- pitch: number,
- ): void;
- static playSound(name: "random.orb", volume: number, pitch: number): void;
- static playSound(name: "random.pop", volume: number, pitch: number): void;
- static playSound(
- name: "random.splash",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "random.successful_hit",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "random.wood_click",
- volume: number,
- pitch: number,
- ): void;
- static playSound(name: "step.cloth", volume: number, pitch: number): void;
- static playSound(name: "step.grass", volume: number, pitch: number): void;
- static playSound(name: "step.gravel", volume: number, pitch: number): void;
- static playSound(name: "step.ladder", volume: number, pitch: number): void;
- static playSound(name: "step.sand", volume: number, pitch: number): void;
- static playSound(name: "step.snow", volume: number, pitch: number): void;
- static playSound(name: "step.stone", volume: number, pitch: number): void;
- static playSound(name: "step.wood", volume: number, pitch: number): void;
- static playSound(
- name: "tile.piston.in",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "tile.piston.out",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.bat.death",
- volume: number,
- pitch: number,
- ): void;
- static playSound(name: "mob.bat.hurt", volume: number, pitch: number): void;
- static playSound(name: "mob.bat.idle", volume: number, pitch: number): void;
- static playSound(name: "mob.bat.loop", volume: number, pitch: number): void;
- static playSound(
- name: "mob.bat.takeoff",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.blaze.breathe",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.blaze.death",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.blaze.hit",
- volume: number,
- pitch: number,
- ): void;
- static playSound(name: "mob.cat.hiss", volume: number, pitch: number): void;
- static playSound(name: "mob.cat.hitt", volume: number, pitch: number): void;
- static playSound(name: "mob.cat.meow", volume: number, pitch: number): void;
- static playSound(name: "mob.cat.purr", volume: number, pitch: number): void;
- static playSound(
- name: "mob.cat.purreow",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.chicken.hurt",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.chicken.plop",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.chicken.say",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.chicken.step",
- volume: number,
- pitch: number,
- ): void;
- static playSound(name: "mob.cow.hurt", volume: number, pitch: number): void;
- static playSound(name: "mob.cow.say", volume: number, pitch: number): void;
- static playSound(name: "mob.cow.step", volume: number, pitch: number): void;
- static playSound(
- name: "mob.creeper.death",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.creeper.say",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.enderdragon.end",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.enderdragon.growl",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.enderdragon.hit",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.enderdragon.wings",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.endermen.death",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.endermen.hit",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.endermen.idle",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.endermen.portal",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.endermen.scream",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.endermen.stare",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.ghast.affectionate_scream",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.ghast.charge",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.ghast.death",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.ghast.fireball",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.ghast.moan",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.ghast.scream",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.guardian.hit",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.guardian.idle",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.guardian.death",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.guardian.elder.hit",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.guardian.elder.idle",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.guardian.elder.death",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.guardian.land.hit",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.guardian.land.idle",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.guardian.land.death",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.guardian.curse",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.guardian.attack",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.guardian.flop",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.horse.angry",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.horse.armor",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.horse.breathe",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.horse.death",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.horse.donkey.angry",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.horse.donkey.death",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.horse.donkey.hit",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.horse.donkey.idle",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.horse.gallop",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.horse.hit",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.horse.idle",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.horse.jump",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.horse.land",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.horse.leather",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.horse.skeleton.death",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.horse.skeleton.hit",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.horse.skeleton.idle",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.horse.soft",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.horse.wood",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.horse.zombie.death",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.horse.zombie.hit",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.horse.zombie.idle",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.irongolem.death",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.irongolem.hit",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.irongolem.throw",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.irongolem.walk",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.magmacube.big",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.magmacube.jump",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.magmacube.small",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.pig.death",
- volume: number,
- pitch: number,
- ): void;
- static playSound(name: "mob.pig.say", volume: number, pitch: number): void;
- static playSound(name: "mob.pig.step", volume: number, pitch: number): void;
- static playSound(
- name: "mob.rabbit.hurt",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.rabbit.idle",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.rabbit.hop",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.rabbit.death",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.sheep.say",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.sheep.shear",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.sheep.step",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.silverfish.hit",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.silverfish.kill",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.silverfish.say",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.silverfish.step",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.skeleton.death",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.skeleton.hurt",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.skeleton.say",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.skeleton.step",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.slime.attack",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.slime.big",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.slime.small",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.spider.death",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.spider.say",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.spider.step",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.villager.death",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.villager.haggle",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.villager.hit",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.villager.idle",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.villager.no",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.villager.yes",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.wither.death",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.wither.hurt",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.wither.idle",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.wither.shoot",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.wither.spawn",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.wolf.bark",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.wolf.death",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.wolf.growl",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.wolf.howl",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.wolf.hurt",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.wolf.panting",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.wolf.shake",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.wolf.step",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.wolf.whine",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.zombie.death",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.zombie.hurt",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.zombie.infect",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.zombie.metal",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.zombie.remedy",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.zombie.say",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.zombie.step",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.zombie.unfect",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.zombie.wood",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.zombie.woodbreak",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.zombiepig.zpig",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.zombiepig.zpigangry",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.zombiepig.zpigdeath",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "mob.zombiepig.zpighurt",
- volume: number,
- pitch: number,
- ): void;
- static playSound(name: "records.11", volume: number, pitch: number): void;
- static playSound(name: "records.13", volume: number, pitch: number): void;
- static playSound(
- name: "records.blocks",
- volume: number,
- pitch: number,
- ): void;
- static playSound(name: "records.cat", volume: number, pitch: number): void;
- static playSound(
- name: "records.chirp",
- volume: number,
- pitch: number,
- ): void;
- static playSound(name: "records.far", volume: number, pitch: number): void;
- static playSound(name: "records.mall", volume: number, pitch: number): void;
- static playSound(
- name: "records.mellohi",
- volume: number,
- pitch: number,
- ): void;
- static playSound(name: "records.stal", volume: number, pitch: number): void;
- static playSound(
- name: "records.strad",
- volume: number,
- pitch: number,
- ): void;
- static playSound(name: "records.wait", volume: number, pitch: number): void;
- static playSound(name: "records.ward", volume: number, pitch: number): void;
- static playSound(name: "music.menu", volume: number, pitch: number): void;
- static playSound(name: "music.game", volume: number, pitch: number): void;
- static playSound(
- name: "music.game.creative",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "music.game.end",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "music.game.end.dragon",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "music.game.end.credits",
- volume: number,
- pitch: number,
- ): void;
- static playSound(
- name: "music.game.nether",
- volume: number,
- pitch: number,
- ): void;
-
- /**
- * Play a record at location x, y, and z.
- * Use null as name in the same location to stop record.
- *
- * @param name the name of the sound/record
- * @param x the x location
- * @param y the y location
- * @param z the z location
- */
- playRecord(name: string, x: number, y: number, z: number): void;
- /**
- * Play a record at location x, y, and z.
- * Use null as name in the same location to stop record.
- *
- * @param name the name of the sound/record
- * @param x the x location
- * @param y the y location
- * @param z the z location
- */
- static playRecord(name: string, x: number, y: number, z: number): void;
-
- stopAllSounds(): void;
- static stopAllSounds(): void;
-
- isRaining(): boolean;
- static isRaining(): boolean;
-
- getRainingStrength(): number;
- static getRainingStrength(): number;
-
- getTime(): number;
- static getTime(): number;
-
- getDifficulty(): "PEACEFUL" | "EASY" | "NORMAL" | "HARD";
- static getDifficulty(): "PEACEFUL" | "EASY" | "NORMAL" | "HARD";
-
- getMoonPhase(): number;
- static getMoonPhase(): number;
-
- getSeed(): number;
- static getSeed(): number;
-
- getType():
- | "default"
- | "flat"
- | "largeBiomes"
- | "amplified"
- | "customized"
- | "debug_all_block_states"
- | "default_1_1";
- static getType():
- | "default"
- | "flat"
- | "largeBiomes"
- | "amplified"
- | "customized"
- | "debug_all_block_states"
- | "default_1_1";
-
- /**
- * Gets the {@link Block} at a location in the world.
- *
- * @param x the x position
- * @param y the y position
- * @param z the z position
- * @return the {@link Block} at the location
- */
- getBlockAt(x: number, y: number, z: number): Block;
- /**
- * Gets the {@link Block} at a location in the world.
- *
- * @param x the x position
- * @param y the y position
- * @param z the z position
- * @return the {@link Block} at the location
- */
- static getBlockAt(x: number, y: number, z: number): Block;
-
- /**
- * Gets the {@link Block} at a location in the world.
- *
- * @param pos The block position
- * @return the {@link Block} at the location
- */
- getBlockAt(pos: BlockPos): Block;
- /**
- * Gets the {@link Block} at a location in the world.
- *
- * @param pos The block position
- * @return the {@link Block} at the location
- */
- static getBlockAt(pos: BlockPos): Block;
-
- /**
- * Gets the {@link MCIBlockState IBlockState} at a location in the world.
- *
- * @param pos The block position
- * @return the {@link MCIBlockState IBlockState} at the location
- */
- getBlockStateAt(pos: BlockPos): MCIBlockState;
- /**
- * Gets the {@link MCIBlockState IBlockState} at a location in the world.
- *
- * @param pos The block position
- * @return the {@link MCIBlockState IBlockState} at the location
- */
- static getBlockStateAt(pos: BlockPos): MCIBlockState;
-
- /**
- * Gets all of the players in the world, and returns their wrapped versions.
- *
- * @return the players
- */
- getAllPlayers(): PlayerMP[];
- /**
- * Gets all of the players in the world, and returns their wrapped versions.
- *
- * @return the players
- */
- static getAllPlayers(): PlayerMP[];
-
- /**
- * Gets a player by their username, must be in the currently loaded chunks!
- *
- * @param name the username
- * @return the player with said username, or null if they don't exist.
- */
- getPlayerByName(name: string): PlayerMP;
- /**
- * Gets a player by their username, must be in the currently loaded chunks!
- *
- * @param name the username
- * @return the player with said username, or null if they don't exist.
- */
- static getPlayerByName(name: string): PlayerMP;
-
- hasPlayer(name: string): boolean;
- static hasPlayer(name: string): boolean;
-
- getChunk(x: number, y: number, z: number): Chunk;
- static getChunk(x: number, y: number, z: number): Chunk;
-
- getAllEntities(): Entity[];
- static getAllEntities(): Entity[];
-
- /**
- * Gets every entity loaded in the world of a certain class
- *
- * @param clazz the class to filter for (Use `Java.type().class` to get this)
- * @return the entity list
- */
- getAllEntitiesOfType(clazz: JavaClass<any>): Entity[];
- /**
- * Gets every entity loaded in the world of a certain class
- *
- * @param clazz the class to filter for (Use `Java.type().class` to get this)
- * @return the entity list
- */
- static getAllEntitiesOfType(clazz: JavaClass<any>): Entity[];
-
- getAllTileEntities(): TileEntity[];
- static getAllTileEntities(): TileEntity[];
-
- getAllTileEntitiesOfType(clazz: JavaClass<any>): TileEntity[];
- static getAllTileEntitiesOfType(clazz: JavaClass<any>): TileEntity[];
- }
- namespace World {
- /**
- * World border object to get border parameters
- */
- class border {
- /**
- * Gets the border center x location.
- *
- * @return the border center x location
- */
- getCenterX(): number;
- /**
- * Gets the border center x location.
- *
- * @return the border center x location
- */
- static getCenterX(): number;
-
- /**
- * Gets the border center z location.
- *
- * @return the border center z location
- */
- getCenterZ(): number;
- /**
- * Gets the border center z location.
- *
- * @return the border center z location
- */
- static getCenterZ(): number;
-
- /**
- * Gets the border size.
- *
- * @return the border size
- */
- getSize(): number;
- /**
- * Gets the border size.
- *
- * @return the border size
- */
- static getSize(): number;
-
- /**
- * Gets the border target size.
- *
- * @return the border target size
- */
- getTargetSize(): number;
- /**
- * Gets the border target size.
- *
- * @return the border target size
- */
- static getTargetSize(): number;
-
- /**
- * Gets the border time until the target size is met.
- *
- * @return the border time until target
- */
- getTimeUntilTarget(): number;
- /**
- * Gets the border time until the target size is met.
- *
- * @return the border time until target
- */
- static getTimeUntilTarget(): number;
- }
-
- /**
- * World spawn object for getting spawn location.
- */
- class spawn {
- /**
- * Gets the spawn x location.
- *
- * @return the spawn x location.
- */
- getX(): number;
- /**
- * Gets the spawn x location.
- *
- * @return the spawn x location.
- */
- static getX(): number;
-
- /**
- * Gets the spawn y location.
- *
- * @return the spawn y location.
- */
- getY(): number;
- /**
- * Gets the spawn y location.
- *
- * @return the spawn y location.
- */
- static getY(): number;
-
- /**
- * Gets the spawn z location.
- *
- * @return the spawn z location.
- */
- getZ(): number;
- /**
- * Gets the spawn z location.
- *
- * @return the spawn z location.
- */
- static getZ(): number;
- }
-
- class particle {
- /**
- * Gets an array of all the different particle names you can pass
- * to {@link spawnParticle}
- *
- * @return the array of name strings
- */
- getParticleNames(): string[];
- /**
- * Gets an array of all the different particle names you can pass
- * to {@link spawnParticle}
- *
- * @return the array of name strings
- */
- static getParticleNames(): string[];
-
- /**
- * Spawns a particle into the world with the given attributes,
- * which can be configured further with the returned {@link Particle}
- *
- * @param particle the name of the particle to spawn, see {@link particle.getParticleNames}
- * @param x the x coordinate to spawn the particle at
- * @param y the y coordinate to spawn the particle at
- * @param z the z coordinate to spawn the particle at
- * @param xSpeed the motion the particle should have in the x direction
- * @param ySpeed the motion the particle should have in the y direction
- * @param zSpeed the motion the particle should have in the z direction
- * @return the newly spawned particle for further configuration
- */
- spawnParticle(
- particle: string,
- x: number,
- y: number,
- z: number,
- xSpeed: number,
- ySpeed: number,
- zSpeed: number,
- ): Particle;
- /**
- * Spawns a particle into the world with the given attributes,
- * which can be configured further with the returned {@link Particle}
- *
- * @param particle the name of the particle to spawn, see {@link particle.getParticleNames}
- * @param x the x coordinate to spawn the particle at
- * @param y the y coordinate to spawn the particle at
- * @param z the z coordinate to spawn the particle at
- * @param xSpeed the motion the particle should have in the x direction
- * @param ySpeed the motion the particle should have in the y direction
- * @param zSpeed the motion the particle should have in the z direction
- * @return the newly spawned particle for further configuration
- */
- static spawnParticle(
- particle: string,
- x: number,
- y: number,
- z: number,
- xSpeed: number,
- ySpeed: number,
- zSpeed: number,
- ): Particle;
-
- spawnParticle(particle: MCEntityFX): void;
- static spawnParticle(particle: MCEntityFX): void;
- }
- }
-
- class Server {
- readonly INSTANCE: Server;
- /**
- * Gets the current server's IP, or "localhost" if the player
- * is in a single-player world.
- *
- * @return The IP of the current server
- */
- getIP(): string;
- /**
- * Gets the current server's IP, or "localhost" if the player
- * is in a single-player world.
- *
- * @return The IP of the current server
- */
- static getIP(): string;
-
- /**
- * Gets the current server's name, or "SinglePlayer" if the player
- * is in a single-player world.
- *
- * @return The name of the current server
- */
- getName(): string;
- /**
- * Gets the current server's name, or "SinglePlayer" if the player
- * is in a single-player world.
- *
- * @return The name of the current server
- */
- static getName(): string;
-
- /**
- * Gets the current server's MOTD, or "SinglePlayer" if the player
- * is in a single-player world.
- *
- * @return The MOTD of the current server
- */
- getMOTD(): string;
- /**
- * Gets the current server's MOTD, or "SinglePlayer" if the player
- * is in a single-player world.
- *
- * @return The MOTD of the current server
- */
- static getMOTD(): string;
-
- /**
- * Gets the ping to the current server, or 5 if the player
- * is in a single-player world.
- *
- * @return The ping to the current server
- */
- getPing(): number;
- /**
- * Gets the ping to the current server, or 5 if the player
- * is in a single-player world.
- *
- * @return The ping to the current server
- */
- static getPing(): number;
- }
-
- class TabList {
- readonly INSTANCE: TabList;
- /**
- * Gets names set in scoreboard objectives
- *
- * @return The formatted names
- */
- getNamesByObjectives(): string[];
- /**
- * Gets names set in scoreboard objectives
- *
- * @return The formatted names
- */
- static getNamesByObjectives(): string[];
-
- getNames(): string[];
- static getNames(): string[];
-
- /**
- * Gets all names in tabs without formatting
- *
- * @return the unformatted names
- */
- getUnformattedNames(): string[];
- /**
- * Gets all names in tabs without formatting
- *
- * @return the unformatted names
- */
- static getUnformattedNames(): string[];
-
- getHeaderMessage(): Message;
- static getHeaderMessage(): Message;
-
- getHeader(): string;
- static getHeader(): string;
-
- /**
- * Sets the header text for the TabList.
- * If `header` is null, it will remove the header entirely
- *
- * @param header the header to set, or null to clear
- */
- setHeader(header: string | Message | MCIChatComponent | null): void;
- /**
- * Sets the header text for the TabList.
- * If `header` is null, it will remove the header entirely
- *
- * @param header the header to set, or null to clear
- */
- static setHeader(header: string | Message | MCIChatComponent | null): void;
-
- clearHeader(): void;
- static clearHeader(): void;
-
- getFooterMessage(): Message;
- static getFooterMessage(): Message;
-
- getFooter(): string;
- static getFooter(): string;
-
- /**
- * Sets the footer text for the TabList.
- * If `footer` is null, it will remove the footer entirely
- *
- * @param footer the footer to set, or null to clear
- */
- setFooter(footer: string | Message | MCIChatComponent | null): void;
- /**
- * Sets the footer text for the TabList.
- * If `footer` is null, it will remove the footer entirely
- *
- * @param footer the footer to set, or null to clear
- */
- static setFooter(footer: string | Message | MCIChatComponent | null): void;
-
- clearFooter(): void;
- static clearFooter(): void;
- }
-
- class Scoreboard {
- readonly INSTANCE: Scoreboard;
-
- getScoreboard(): MCScoreboard | null;
- static getScoreboard(): MCScoreboard | null;
-
- getSidebar(): MCScoreObjective | null;
- static getSidebar(): MCScoreObjective | null;
-
- /**
- * Alias for {@link Scoreboard.getTitle}.
- *
- * @return the scoreboard title
- */
- getScoreboardTitle(): string;
- /**
- * Alias for {@link Scoreboard.getTitle}.
- *
- * @return the scoreboard title
- */
- static getScoreboardTitle(): string;
-
- /**
- * Gets the top-most string which is displayed on the scoreboard. (doesn't have a score on the side).
- * Be aware that this can contain color codes.
- *
- * @return the scoreboard title
- */
- getTitle(): string;
- /**
- * Gets the top-most string which is displayed on the scoreboard. (doesn't have a score on the side).
- * Be aware that this can contain color codes.
- *
- * @return the scoreboard title
- */
- static getTitle(): string;
-
- /**
- * Sets the scoreboard title.
- *
- * @param title the new title
- * @return the scoreboard title
- */
- setTitle(title: string): void;
- /**
- * Sets the scoreboard title.
- *
- * @param title the new title
- * @return the scoreboard title
- */
- static setTitle(title: string): void;
-
- /**
- * Get all currently visible strings on the scoreboard. (excluding title)
- * Be aware that this can contain color codes.
- *
- * @return the list of lines
- */
- getLines(descending?: boolean): Scoreboard.Score[];
- /**
- * Get all currently visible strings on the scoreboard. (excluding title)
- * Be aware that this can contain color codes.
- *
- * @return the list of lines
- */
- static getLines(descending?: boolean): Scoreboard.Score[];
-
- /**
- * Gets the line at the specified index (0 based)
- * Equivalent to Scoreboard.getLines().get(index)
- *
- * @param index the line index
- * @return the score object at the index
- */
- getLineByIndex(index: number): Scoreboard.Score;
- /**
- * Gets the line at the specified index (0 based)
- * Equivalent to Scoreboard.getLines().get(index)
- *
- * @param index the line index
- * @return the score object at the index
- */
- static getLineByIndex(index: number): Scoreboard.Score;
-
- /**
- * Gets a list of lines that have a certain score,
- * i.e. the numbers shown on the right
- *
- * @param score the score to look for
- * @return a list of actual score objects
- */
- getLinesByScore(score: number): Scoreboard.Score[];
- /**
- * Gets a list of lines that have a certain score,
- * i.e. the numbers shown on the right
- *
- * @param score the score to look for
- * @return a list of actual score objects
- */
- static getLinesByScore(score: number): Scoreboard.Score[];
-
- /**
- * Sets a line in the scoreboard to the specified name and score.
- *
- * @param score the score value for this item
- * @param line the string to display on said line
- * @param override whether to remove old lines with the same score
- */
- setLine(score: number, line: string, override: boolean): void;
- /**
- * Sets a line in the scoreboard to the specified name and score.
- *
- * @param score the score value for this item
- * @param line the string to display on said line
- * @param override whether to remove old lines with the same score
- */
- static setLine(score: number, line: string, override: boolean): void;
-
- setShouldRender(shouldRender: boolean): void;
- static setShouldRender(shouldRender: boolean): void;
-
- getShouldRender(): boolean;
- static getShouldRender(): boolean;
-
- resetCache(): void;
- static resetCache(): void;
- }
- namespace Scoreboard {
- class Score {
- constructor(score: MCScore);
-
- score: MCScore;
-
- /**
- * Gets the score point value for this score,
- * i.e. the number on the right of the board
- *
- * @return the actual point value
- */
- getPoints(): number;
- /**
- * Gets the score point value for this score,
- * i.e. the number on the right of the board
- *
- * @return the actual point value
- */
- static getPoints(): number;
-
- /**
- * Gets the display string of this score
- *
- * @return the display name
- */
- getName(): string;
- /**
- * Gets the display string of this score
- *
- * @return the display name
- */
- static getName(): string;
-
- toString(): string;
- }
- }
- /**
- * Creates a new Sign object wrapper.
- * Returned with {@link Player.lookingAt com.chattriggers.ctjs.minecraft.wrappers.Player.lookingAt} when looking at a sign.
- * Extends {@link Block}.
- *
- * @param block the {@link Block} to convert to a Sign
- */
- class Sign extends Block {
- constructor(block: Block);
-
- getLines(): Message[];
-
- getFormattedLines(): string[];
-
- getUnformattedLines(): string[];
-
- toString(): string;
- }
-
- class ReflectionHelper {
- static findField(clazz: JavaClass<any>, ...fieldNames: string[]): JavaField;
-
- static getPrivateValue<T, E>(
- classToAccess: JavaClass<T>,
- instance: T,
- fieldIndex: number,
- ): E;
-
- static setPrivateValue<T, E>(
- classToAccess: JavaClass<T>,
- instance: T,
- value: E,
- fieldIndex: number,
- ): void;
-
- static setPrivateValue<T, E>(
- classToAccess: JavaClass<T>,
- instance: T,
- value: E,
- ...fieldNames: string[]
- ): void;
-
- static getClass(loader: any, ...classNames: string[]): JavaClass<any>;
-
- static findMethod<E>(
- clazz: JavaClass<E>,
- instance: E,
- methodNames: string[],
- ...methodTypes: JavaClass<any>[]
- ): JavaMethod;
- }
-
- class Thread {
- /**
- * Allocates a new Thread
- */
- constructor(method: () => void);
-
- /**
- * Causes the currently executing thread to sleep (temporarily cease execution) for the specified number of milliseconds plus the specified number of nanoseconds, subject to the precision and accuracy of system timers and schedulers.
- */
- static sleep(millis: number, nanos?: number): void;
- /**
- * Causes the currently executing thread to sleep (temporarily cease execution) for the specified number of milliseconds plus the specified number of nanoseconds, subject to the precision and accuracy of system timers and schedulers.
- */
- sleep(millis: number, nanos?: number): void;
-
- /**
- * Returns a reference to the currently executing thread object.
- */
- currentThread(): JavaThread;
- /**
- * Returns a reference to the currently executing thread object.
- */
- static currentThread(): JavaThread;
-
- /**
- * Causes this thread to begin execution; the Java Virtual Machine calls the run method of this thread.
- */
- start(): void;
- }
-
- class ArrayList<T> {
- /**Constructs an empty list with an initial capacity of ten. */
- constructor();
- /**Constructs an empty list with the specified initial capacity. */
- constructor(initialCapacity: number);
-
- /**
- * Appends the specified element to the end of this list
- */
- add(e: T): boolean;
-
- /**
- * Inserts the specified element at the specified position in this list.
- */
- add(index: number, element: T): boolean;
-
- /**
- * Removes all of the elements from this list.
- */
- clear(): void;
-
- /**
- * Returns a shallow copy of this ArrayList instance.
- */
- clone(): ArrayList<T>;
-
- /**
- * Returns true if this list contains the specified element.
- */
- contains(o: T): boolean;
-
- /**
- * Increases the capacity of this ArrayList instance, if necessary, to ensure that it can hold at least the number of elements specified by the minimum capacity argument.
- */
- ensureCapacity(minCapacity: number): void;
-
- /**
- * Returns the element at the specified position in this list.
- */
- get(index: number): T;
-
- /**
- * Returns the index of the first occurrence of the specified element in this list, or -1 if this list does not contain the element.
- */
- indexOf(o: T): number;
-
- /**
- * Returns true if this list contains no elements.
- */
- isEmpty(): boolean;
-
- /**
- * Returns the index of the last occurrence of the specified element in this list, or -1 if this list does not contain the element.
- */
- lastIndexOf(o: T): number;
-
- /**
- * Removes the element at the specified position in this list.
- */
- remove(index: number): T;
-
- /**
- * Removes the first occurrence of the specified element from this list, if it is present.
- */
- remove(o: T): boolean;
-
- /**
- * Replaces the element at the specified position in this list with the specified element.
- */
- set(index: number, element: T): T;
-
- /**
- * Returns the number of elements in this list.
- */
- size(): number;
-
- /**
- * Returns a view of the portion of this list between the specified fromIndex, inclusive, and toIndex, exclusive.
- */
- subList(fromIndex: number, toIndex: number): T[];
-
- /**
- * Returns an array containing all of the elements in this list in proper sequence (from first to last element).
- */
- toArray(): T[];
-
- /**
- * Returns an array containing all of the elements in this list in proper sequence (from first to last element); the runtime type of the returned array is that of the specified array.
- */
- toArray(a: T[]): T[];
-
- /**
- * Trims the capacity of this ArrayList instance to be the list's current size.
- */
- trimToSize(): void;
- }
-
- class HashMap<K, V> {
- /**
- * Constructs an empty HashMap with the default initial capacity (16) and the default load factor (0.75).
- */
- constructor();
-
- /**
- * Constructs an empty HashMap with the specified initial capacity and the default load factor (0.75).
- */
- constructor(initialCapacity: number);
-
- /**
- * Constructs an empty HashMap with the specified initial capacity and load factor.
- */
- constructor(initialCapacity: number, loadFactor: number);
-
- /**
- * Constructs a new HashMap with the same mappings as the specified Map.
- */
- constructor(m: Map<K, V>);
-
- /**
- * Removes all of the mappings from this map.
- */
- clear(): void;
-
- /**
- * Returns a shallow copy of this HashMap instance: the keys and values themselves are not cloned.
- */
- clone(): HashMap<K, V>;
-
- /**
- * Attempts to compute a mapping for the specified key and its current mapped value (or null if there is no current mapping).
- */
- compute(key: any, remappingFunction: (arg1: any, arg2: any) => any): any;
-
- /**
- * If the specified key is not already associated with a value (or is mapped to null), attempts to compute its value using the given mapping function and enters it into this map unless null.
- */
- computeIfAbsent(key: any, mappingFunction: (arg1: any) => any): any;
-
- /**
- * If the value for the specified key is present and non-null, attempts to compute a new mapping given the key and its current mapped value.
- */
- computeIfPresent(
- key: any,
- remappingFunction: (arg1: any, arg2: any) => any,
- ): any;
-
- /**
- * Returns true if this map contains a mapping for the specified key.
- */
- containsKey(key: K): boolean;
-
- /**
- * Returns true if this map maps one or more keys to the specified value.
- */
- containsValue(value: V): boolean;
-
- /**
- * Returns a Set view of the mappings contained in this map.
- */
- entrySet(): Set<any>;
-
- /**
- * Performs the given action for each entry in this map until all entries have been processed or the action throws an exception.
- */
- forEach(action: (arg1: any, arg2: any) => void): void;
-
- /**
- * Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.
- */
- get(key: K): V;
-
- /**
- * Returns the value to which the specified key is mapped, or defaultValue if this map contains no mapping for the key.
- */
- getOrDefault(key: K, defaultValue: V): V;
-
- /**
- * Returns true if this map contains no key-value mappings.
- */
- isEmpty(): boolean;
-
- /**
- * Returns a Set view of the keys contained in this map.
- */
- keySet(): Set<K>;
-
- /**
- * If the specified key is not already associated with a value or is associated with null, associates it with the given non-null value.
- */
- merge(key: K, value: V, remappingFunction: (arg1: V, arg2: V) => V): V;
-
- /**
- * Associates the specified value with the specified key in this map.
- */
- put(key: K, value: V): V;
-
- /**
- * Copies all of the mappings from the specified map to this map.
- */
- putAll(m: Map<K, V>): void;
- /**
- * If the specified key is not already associated with a value (or is mapped to null) associates it with the given value and returns null, else returns the current value.
- */
- putIfAbsent(key: K, value: V): V;
-
- /**
- * Removes the mapping for the specified key from this map if present.
- */
- remove(key: K): any;
-
- /**
- * Removes the entry for the specified key only if it is currently mapped to the specified value.
- */
- remove(key: K, value: V): boolean;
-
- /**
- * Replaces the entry for the specified key only if it is currently mapped to some value.
- */
- replace(key: K, value: V): any;
-
- /**
- * Replaces the entry for the specified key only if currently mapped to the specified value.
- */
- replace(key: K, oldValue: V, newValue: V): boolean;
-
- /**
- * Replaces each entry's value with the result of invoking the given function on that entry until all entries have been processed or the function throws an exception.
- */
- replaceAll(func: (arg1: K, arg2: V) => V): void;
-
- /**
- * Returns the number of key-value mappings in this map.
- */
- size(): number;
- }
-
- /**A raw Keyboard interface. This can be used to poll the current state of the keys, or read all the keyboard presses / releases since the last read. */
- class Keyboard {
- /**
- * The special character meaning that no character was translated for the event.
- */
- static readonly CHAR_NONE: number;
- /**
- * Internal use - event size in bytes
- */
- static readonly EVENT_SIZE: number;
-
- static KEY_0: number;
- static KEY_1: number;
- static KEY_2: number;
- static KEY_3: number;
- static KEY_4: number;
- static KEY_5: number;
- static KEY_6: number;
- static KEY_7: number;
- static KEY_8: number;
- static KEY_9: number;
- static KEY_A: number;
- static KEY_ADD: number;
- static KEY_APOSTROPHE: number;
- static KEY_APPS: number;
- static KEY_AT: number;
- static KEY_AX: number;
- static KEY_B: number;
- static KEY_BACK: number;
- static KEY_BACKSLASH: number;
- static KEY_C: number;
- static KEY_CAPITAL: number;
- static KEY_CIRCUMFLEX: number;
- static KEY_CLEAR: number;
- static KEY_COLON: number;
- static KEY_COMMA: number;
- static KEY_CONVERT: number;
- static KEY_D: number;
- static KEY_DECIMAL: number;
- static KEY_DELETE: number;
- static KEY_DIVIDE: number;
- static KEY_DOWN: number;
- static KEY_E: number;
- static KEY_END: number;
- static KEY_EQUALS: number;
- static KEY_ESCAPE: number;
- static KEY_F: number;
- static KEY_F1: number;
- static KEY_F10: number;
- static KEY_F11: number;
- static KEY_F12: number;
- static KEY_F13: number;
- static KEY_F14: number;
- static KEY_F15: number;
- static KEY_F16: number;
- static KEY_F17: number;
- static KEY_F18: number;
- static KEY_F19: number;
- static KEY_F2: number;
- static KEY_F3: number;
- static KEY_F4: number;
- static KEY_F5: number;
- static KEY_F6: number;
- static KEY_F7: number;
- static KEY_F8: number;
- static KEY_F9: number;
- static KEY_FUNCTION: number;
- static KEY_G: number;
- static KEY_GRAVE: number;
- static KEY_H: number;
- static KEY_HOME: number;
- static KEY_I: number;
- static KEY_INSERT: number;
- static KEY_J: number;
- static KEY_K: number;
- static KEY_KANA: number;
- static KEY_KANJI: number;
- static KEY_L: number;
- static KEY_LBRACKET: number;
- static KEY_LCONTROL: number;
- static KEY_LEFT: number;
- static KEY_LMENU: number;
- static KEY_LMETA: number;
- static KEY_LSHIFT: number;
- /**
- * Deprecated.
- * Use KEY_LMETA instead
- */
- static KEY_LWIN: number;
- static KEY_M: number;
- static KEY_MINUS: number;
- static KEY_MULTIPLY: number;
- static KEY_N: number;
- static KEY_NEXT: number;
- static KEY_NOCONVERT: number;
- /**
- * The special keycode meaning that only the translated character is valid.
- */
- static KEY_NONE: number;
- static KEY_NUMLOCK: number;
- static KEY_NUMPAD0: number;
- static KEY_NUMPAD1: number;
- static KEY_NUMPAD2: number;
- static KEY_NUMPAD3: number;
- static KEY_NUMPAD4: number;
- static KEY_NUMPAD5: number;
- static KEY_NUMPAD6: number;
- static KEY_NUMPAD7: number;
- static KEY_NUMPAD8: number;
- static KEY_NUMPAD9: number;
- static KEY_NUMPADCOMMA: number;
- static KEY_NUMPADENTER: number;
- static KEY_NUMPADEQUALS: number;
- static KEY_O: number;
- static KEY_P: number;
- static KEY_PAUSE: number;
- static KEY_PERIOD: number;
- static KEY_POWER: number;
- static KEY_PRIOR: number;
- static KEY_Q: number;
- static KEY_R: number;
- static KEY_RBRACKET: number;
- static KEY_RCONTROL: number;
- static KEY_RETURN: number;
- static KEY_RIGHT: number;
- static KEY_RMENU: number;
- static KEY_RMETA: number;
- static KEY_RSHIFT: number;
- /**
- * Deprecated.
- * Use KEY_RMETA instead
- */
- static KEY_RWIN: number;
- static KEY_S: number;
- static KEY_SCROLL: number;
- static KEY_SECTION: number;
- static KEY_SEMICOLON: number;
- static KEY_SLASH: number;
- static KEY_SLEEP: number;
- static KEY_SPACE: number;
- static KEY_STOP: number;
- static KEY_SUBTRACT: number;
- static KEY_SYSRQ: number;
- static KEY_T: number;
- static KEY_TAB: number;
- static KEY_U: number;
- static KEY_UNDERLINE: number;
- static KEY_UNLABELED: number;
- static KEY_UP: number;
- static KEY_V: number;
- static KEY_W: number;
- static KEY_X: number;
- static KEY_Y: number;
- static KEY_YEN: number;
- static KEY_Z: number;
- static KEYBOARD_SIZE: number;
-
- /**
- * Check whether repeat events are currently reported or not.
- */
- static areRepeatEventsEnabled(): boolean;
-
- /**
- * "Create" the keyboard.
- */
- static create(): void;
-
- /**
- * "Destroy" the keyboard.
- */
- static destroy(): void;
-
- /**
- * Controls whether repeat events are reported or not.
- */
- static enableRepeatEvents(enable: boolean): void;
-
- static getEventCharacter(): number;
- /**
- * Please not that the key code returned is NOT valid against the current keyboard layout.
- */
- static getEventKey(): number;
-
- /**
- * Gets the state of the key that generated the current event
- */
- static getEventKeyState(): boolean;
-
- /**
- * Gets the time in nanoseconds of the current event.
- */
- static getEventNanoseconds(): number;
-
- static getKeyCount(): number;
-
- /**
- * Get's a key's index.
- */
- static getKeyIndex(keyName: string): number;
-
- /**
- * Gets a key's name
- */
- static getKeyName(key: number): string;
-
- /**
- * Gets the number of keyboard events waiting after doing a buffer enabled poll().
- */
- static getNumKeyboardEvents(): number;
-
- static isCreated(): boolean;
-
- /**
- * Checks to see if a key is down.
- */
- static isKeyDown(key: number): boolean;
-
- static isRepeatEvent(): boolean;
-
- /**
- * Gets the next keyboard event.
- */
- static next(): boolean;
-
- /**
- * Polls the keyboard for its current state.
- */
- static poll(): void;
- }
-
- class Action {
- constructor(slot: number, windowId: number);
-
- setSlot(slot: number): Action;
-
- setWindowId(windowId: number): Action;
-
- complete(): void;
-
- doClick(button: number, mode: number): void;
-
- getSlot(): number;
-
- /**
- * Creates a new action.
- * The Inventory must be a container, see {@link Inventory.isContainer}.
- * The slot can be -999 for outside of the gui
- *
- * @param inventory the inventory to complete the action on
- * @param slot the slot to complete the action on
- * @param typeString the type of action to do (CLICK, DRAG, DROP, KEY)
- * @return the new action
- */
- static of(inventory: Inventory, slot: number, typeString: string): Action;
- }
-
- namespace Action {
- class Companion {
- /**
- * Creates a new action.
- * The Inventory must be a container, see {@link Inventory.isContainer}.
- * The slot can be -999 for outside of the gui
- *
- * @param inventory the inventory to complete the action on
- * @param slot the slot to complete the action on
- * @param typeString the type of action to do (CLICK, DRAG, DROP, KEY)
- * @return the new action
- */
- static of(inventory: Inventory, slot: number, typeString: string): Action;
- }
-
- enum type {
- CLICK,
- DRAG,
- KEY,
- DROP,
- }
- }
-
- /**
- * An immutable reference to a placed block in the world. It
- * has a block type, a position, and optionally a specific face.
- */
- class Block {
- readonly type: BlockType;
- readonly pos: BlockPos;
- readonly face?: BlockFace;
-
- constructor(type: BlockType, pos: BlockPos, face?: BlockFace);
-
- readonly x: number;
- readonly y: number;
- readonly z: number;
- getX(): number;
- getY(): number;
- getZ(): number;
-
- withType(type: BlockType): Block;
- withPos(pos: BlockPos): Block;
-
- /**
- * Narrows this block to reference a certain face. Used by
- * {@link Player.lookingAt} to specify the block face
- * being looked at.
- */
- withFace(face: BlockFace): Block;
-
- getState(): MCIBlockState;
-
- getMetadata(): number;
-
- isPowered(): boolean;
-
- getRedstoneStrength(): number;
-
- /**
- * Checks whether the block can be mined with the tool in the player's hand
- *
- * @return whether the block can be mined
- */
- canBeHarvested(): boolean;
-
- canBeHarvestedWith(item: Item): boolean;
-
- toString(): string;
- }
-
- class Inventory implements JSONImpl {
- readonly inventory: MCIInventory;
- readonly container: MCContainer;
-
- constructor(inventory: MCIInventory);
- constructor(container: MCContainer);
-
- toJSON(key: string): string;
-
- /**
- * Gets the total size of the Inventory.
- * The player's inventory size is 36, 27 for the main inventory, plus 9 for the hotbar.
- * A single chest's size would be 63, because it also counts the player's inventory.
- *
- * @return the size of the Inventory
- */
- getSize(): number;
-
- /**
- * Gets the item in any slot, starting from 0.
- *
- * @param slot the slot index
- * @return the {@link Item} in that slot
- */
- getStackInSlot(slot: number): Item | null;
-
- /**
- * Returns the window identifier number of this Inventory.
- * This Inventory must be backed by a Container {@link isContainer}
- *
- * @return the window id
- */
- getWindowId(): number;
-
- doAction(action: Action): void;
-
- /**
- * Checks if an item can be shift clicked into a certain slot, i.e. coal into the bottom of a furnace.
- *
- * @param slot the slot index
- * @param item the item for checking
- * @return whether it can be shift clicked in
- */
- isItemValidForSlot(slot: number, item: Item): boolean;
-
- /**
- * @return a list of the {@link Item}s in an inventory
- */
- getItems(): (Item | null)[];
-
- /**
- * Checks whether the inventory contains the given item.
- *
- * @param item the item to check for
- * @return whether the inventory contains the item
- */
- contains(item: Item): boolean;
-
- /**
- * Checks whether the inventory contains an item with ID.
- *
- * @param id the ID of the item to match
- * @return whether the inventory contains an item with ID
- */
- contains(id: number): boolean;
-
- /**
- * Gets the index of any item in the inventory, and returns the slot number.
- * Returns -1 if the inventory does not contain the item.
- *
- * @param item the item to check for
- * @return the index of the given item
- */
- indexOf(item: Item): number;
-
- /**
- * Gets the index of any item in the inventory with matching ID, and returns the slot number.
- * Returns -1 if the inventory does not contain the item.
- *
- * @param id the item ID to check for
- * @return the index of the given item with ID
- */
- indexOf(id: number): number;
-
- /**
- * Returns true if this Inventory wraps a {@link MCContainer Container} object
- * rather than an {@link MCIInventory IInventory} object
- *
- * @return if this is a container
- */
- isContainer(): boolean;
-
- /**
- * Shorthand for {@link ClickAction}
- *
- * @param slot the slot to click on
- * @param button the mouse button to use. "LEFT" by default.
- * @param shift whether shift is being held. False by default
- * @return this inventory for method chaining
- */
- click(slot: number, shift?: boolean, button?: string): Inventory;
-
- /**
- * Shorthand for {@link DropAction}
- *
- * @param slot the slot to drop
- * @param ctrl whether control should be held (drops whole stack)
- * @return this inventory for method chaining
- */
- drop(slot: number, ctrl: boolean): Inventory;
-
- /**
- * Shorthand for {@link DragAction}
- *
- * @param type what click type this should be: LEFT, MIDDLE, RIGHT
- * @param slots all of the slots to drag onto
- * @return this inventory for method chaining
- */
- drag(type: string, ...slot: number[]): Inventory;
-
- /**
- * Gets the name of the inventory, simply "container" for most chest-like blocks.
- *
- * @return the name of the inventory
- */
- getName(): string;
-
- getClassName(): string;
-
- toString(): string;
- }
-
- class Item {
- readonly item: MCItem;
- getItem(): MCItem;
-
- itemStack: MCItemStack;
- getItemStack(): MCItemStack;
- setItemStack(itemStack: MCItemStack): void;
-
- constructor(itemStack: MCItemStack);
-
- constructor(itemName: string);
-
- constructor(itemID: number);
-
- constructor(block: BlockType);
-
- constructor(entityItem: MCEntityItem);
-
- /**
- * Create an Item object from an Entity.
- * Has to be wrapping an EntityItem.
- *
- * @param entity the Entity
- */
- constructor(entity: Entity);
-
- getTextComponent(): TextComponent;
-
- getRawNBT(): string;
-
- getNBT(): NBTTagCompound;
-
- /**Deprecated Use the better-named method getNBT*/
- getItemNBT(): NBTTagCompound;
-
- getID(): number;
-
- setStackSize(stackSize: number): Item;
-
- getStackSize(): number;
-
- /**
- * Gets the item's unlocalized name.
- * Example: tile.wood
- *
- * @return the item's unlocalized name
- */
- getUnlocalizedName(): string;
-
- /**
- * Gets the item's registry name.
- * Example: minecraft:planks
- *
- * @return the item's registry name
- */
- getRegistryName(): string;
-
- /**
- * Gets the item's stack display name.
- * Example: Oak Wood Planks
- *
- * @return the item's stack display name
- */
- getName(): string;
-
- /**
- * Sets the item's name.
- * @param name the new name
- */
- setName(name: string): Item;
-
- getEnchantments(): Map<string, number>;
-
- isEnchantable(): boolean;
-
- isEnchanted(): boolean;
-
- getMetadata(): number;
-
- canPlaceOn(block: BlockType): boolean;
-
- canHarvest(block: BlockType): boolean;
-
- canDestroy(block: BlockType): boolean;
-
- /**
- * Gets the item's durability, i.e. the number of uses left
- *
- * @return the item's durability
- */
- getDurability(): number;
-
- getDamage(): number;
-
- setDamage(damage: number): Item;
-
- getMaxDamage(): number;
-
- isDamagable(): boolean;
-
- /**
- * Gets the item's name and lore lines.
- *
- * @return the item's name and lore lines
- */
- getLore(): string[];
-
- /**
- * Sets the item's lore. Does not set the item's name, use {@link setName} instead.
- * @param loreLines the new lore lines
- */
- setLore(...loreLines: string[]): Item;
-
- /**
- * Renders the item icon to the client's overlay, with customizable overlay information.
- *
- * @param x the x location
- * @param y the y location
- * @param scale the scale
- */
- draw(x?: number, y?: number, scale?: number, z?: number): void;
-
- /**
- * Checks whether another Item is the same as this one.
- * It compares id, stack size, and durability.
- *
- * @param other the object to compare to
- * @return whether the objects are equal
- */
- equals(other?: any): boolean;
-
- hashCode(): number;
-
- toString(): string;
- }
-
- class EntityLivingBase extends Entity {
- readonly entityLivingBase: MCEntityLivingBase;
-
- constructor(entityLivingBase: MCEntityLivingBase);
-
- addPotionEffect(effect: PotionEffect): void;
-
- clearPotionEffects(): void;
-
- getActivePotionEffects(): PotionEffect[];
-
- canSeeEntity(other: Entity): boolean;
-
- canSeeEntity(other: MCEntity): boolean;
-
- /**
- * Gets the item currently in the entity's specified inventory slot.
- * 0 for main hand, 1-4 for armor
- * (2 for offhand in 1.12.2, and everything else shifted over).
- *
- * @param slot the slot to access
- * @return the item in said slot
- */
- getItemInSlot(slot: number): Item | undefined;
-
- getHP(): number;
-
- setHP(health: number): EntityLivingBase;
-
- getMaxHP(): number;
-
- getAbsorption(): number;
- setAbsorption(absorption: number): EntityLivingBase;
-
- getAge(): number;
-
- getArmorValue(): number;
-
- isPotionActive(id: number): boolean;
- isPotionActive(potion: MCPotion): boolean;
- isPotionActive(potionEffect: PotionEffect): boolean;
-
- toString(): string;
- }
-
- class Entity {
- constructor(entity: MCEntity);
-
- readonly entity: MCEntity;
-
- distanceTo(other: Entity): number;
- distanceTo(other: MCEntity): number;
- distanceTo(blockPos: BlockPos): number;
- distanceTo(x: number, y: number, z: number): number;
-
- isOnGround(): boolean;
-
- isCollided(): boolean;
-
- getDistanceWalked(): number;
-
- getStepHeight(): number;
-
- hasNoClip(): boolean;
-
- getTicksExisted(): number;
-
- getFireResistance(): number;
-
- isImmuneToFire(): boolean;
-
- isInWater(): boolean;
-
- isWet(): boolean;
-
- isAirborne(): boolean;
-
- getDimension(): number;
-
- setPosition(x: number, y: number, z: number): Entity;
-
- setAngles(yaw: number, pitch: number): Entity;
-
- getMaxInPortalTime(): number;
-
- setOnFire(seconds: number): Entity;
-
- extinguish(): Entity;
-
- move(x: number, y: number, z: number): Entity;
-
- isSilent(): boolean;
-
- setIsSilent(silent: boolean): Entity;
-
- isInLava(): boolean;
-
- addVelocity(x: number, y: number, z: number): Entity;
-
- getLookVector(partialTicks: number): MCVec3;
-
- getEyePosition(partialTicks: number): MCVec3;
-
- canBeCollidedWith(): boolean;
-
- canBePushed(): boolean;
-
- dropItem(item: Item, size: number): MCEntityItem;
-
- isSneaking(): boolean;
-
- setIsSneaking(sneaking: boolean): Entity;
-
- isSprinting(): boolean;
-
- setIsSprinting(sprinting: boolean): Entity;
-
- isInvisible(): boolean;
-
- setIsInvisible(invisible: boolean): Entity;
-
- isEating(): boolean;
-
- setIsEating(eating: boolean): Entity;
-
- isOutsideBorder(): boolean;
-
- setIsOutsideBorder(outside: boolean): Entity;
-
- getWorld(): MCWorld;
-
- getChunk(): Chunk;
-
- isBurning(): boolean;
-
- getX(): number;
- getY(): number;
- getZ(): number;
-
- getPos(): Vec3i;
-
- getLastX(): number;
- getLastY(): number;
- getLastZ(): number;
-
- getRenderX(): number;
- getRenderY(): number;
- getRenderZ(): number;
-
- face: BlockFace;
-
- /**
- * Gets the pitch, the horizontal direction the entity is facing towards.
- * This has a range of -180 to 180.
- *
- * @return the entity's pitch
- */
- getPitch(): number;
-
- /**
- * Gets the yaw, the vertical direction the entity is facing towards.
- * This has a range of -180 to 180.
- *
- * @return the entity's yaw
- */
- getYaw(): number;
-
- /**
- * Gets the entity's x motion.
- * This is the amount the entity will move in the x direction next tick.
- *
- * @return the entitys's x motion
- */
- getMotionX(): number;
-
- /**
- * Gets the entity's y motion.
- * This is the amount the entity will move in the y direction next tick.
- *
- * @return the entity's y motion
- */
- getMotionY(): number;
-
- /**
- * Gets the entity's z motion.
- * This is the amount the entity will move in the z direction next tick.
- *
- * @return the entity's z motion
- */
- getMotionZ(): number;
-
- getRiding(): Entity | null;
-
- getRider(): Entity | null;
-
- getRiders(): Entity[];
-
- /**
- * Checks whether the entity is dead.
- * This is a fairly loose term, dead for a particle could mean it has faded,
- * while dead for an entity means it has no health.
- *
- * @return whether an entity is dead
- */
- isDead(): boolean;
-
- /**
- * Gets the entire width of the entity's hitbox
- *
- * @return the entity's width
- */
- getWidth(): number;
-
- /**
- * Gets the entire height of the entity's hitbox
- *
- * @return the entity's height
- */
- getHeight(): number;
-
- /**
- * Gets the height of the eyes on the entity,
- * can be added to its Y coordinate to get the actual Y location of the eyes.
- * This value defaults to 85% of an entity's height, however is different for some entities.
- *
- * @return the height of the entity's eyes
- */
- getEyeHeight(): number;
-
- /**
- * Gets the name of the entity, could be "Villager",
- * or, if the entity has a custom name, it returns that.
- *
- * @return the (custom) name of the entity
- */
- getName(): string;
-
- /**
- * Gets the Java class name of the entity, for example "EntityVillager"
- *
- * @return the entity's class name
- */
- getClassName(): string;
-
- /**
- * Gets the Java UUID object of this entity.
- * Use of {@link JavaUUID.toString UUID.toString} in conjunction is recommended.
- *
- * @return the entity's uuid
- */
- getUUID(): JavaUUID;
-
- toString(): string;
-
- getEntity(): MCEntity;
-
- /**
- * Gets the entity's air level.
- *
- * The returned value will be an integer. If the player is not taking damage, it
- * will be between 300 (not in water) and 0. If the player is taking damage, it
- * will be between -20 and 0, getting reset to 0 every time the player takes damage.
- *
- * @return the entity's air level
- */
- getAir(): number;
- setAir(air: number): Entity;
- }
-
- class TextComponent {
- chatComponentText: MCIChatComponent;
-
- /**
- * Creates a TextComponent from a string.
- * @param text the text string in the component.
- */
- constructor(text: string);
-
- /**
- * Creates a TextComponent from an existing ITextComponent.
- * @param chatComponent the ITextComponent to convert
- */
- constructor(chatComponent: MCIChatComponent);
-
- /**
- * @return the text in the component
- */
- getText(): string;
-
- /**
- * Sets the components text string.
- * @param text the text string in the component.
- */
- setText(text: string): TextComponent;
-
- /**
- * @return true if the component is formatted
- */
- isFormatted(): boolean;
-
- /**
- * Sets if the component is to be formatted
- * @param formatted true if formatted
- */
- setFormatted(formatted: boolean): TextComponent;
-
- /**
- * Sets the click action and value of the component.
- * See {@link TextComponent.setClickAction} for possible click actions.
- * @param action the click action
- * @param value the click value
- */
- setClick(action: string, value: string): TextComponent;
-
- /**
- * @return the current click action
- */
- getClickAction(): string | null;
-
- /**
- * Sets the action to be performed when the component is clicked on.
- * Possible actions include:
- * - open_url
- * - open_file
- * - run_command
- * - suggest_command
- * - change_page
- * @param action the click action
- */
- setClickAction(action: string): TextComponent;
-
- /**
- * @return the current click value
- */
- getClickValue(): string | null;
-
- /**
- * Sets the value to be used by the click action.
- * See {@link TextComponent.setClickAction} for possible click actions.
- * @param value the click value
- */
- setClickValue(value: string): TextComponent;
-
- /**
- * Sets the hover action and value of the component.
- * See {@link TextComponent.setHoverAction} for possible hover actions.
- * @param action the hover action
- * @param value the hover value
- */
- setHover(action: string, value: string): TextComponent;
-
- /**
- * @return the current hover action
- */
- getHoverAction(): string | null;
-
- /**
- * Sets the action to be performed when the component is hovered over.
- * Hover action is set to 'show_text' by default.
- * Possible actions include:
- * - show_text
- * - show_achievement
- * - show_item
- * - show_entity
- * @param action the hover action
- */
- setHoverAction(action: string): TextComponent;
-
- /**
- * @return the current hover value
- */
- getHoverValue(): string | null;
-
- /**
- * Sets the value to be used by the hover action.
- * See {@link TextComponent.setHoverAction} for possible hover actions.
- * @param value the hover value
- */
- setHoverValue(value: string): TextComponent;
-
- /**
- * Shows the component in chat as a new {@link Message}
- */
- chat(): void;
-
- /**
- * Shows the component on the actionbar as a new {@link Message}
- */
- actionBar(): void;
-
- toString(): string;
- }
-
- class Book {
- constructor(bookName: string);
-
- /**
- * Add a page to the book.
- *
- * @param message the entire message for what the page should be
- * @return the current book to allow method chaining
- */
- addPage(message: Message): Book;
-
- /**
- * Overloaded method for adding a simple page to the book.
- *
- * @param message a simple string to make the page
- * @return the current book to allow method chaining
- */
- addPage(message: string): Book;
-
- /**
- * Sets a page of the book to the specified message.
- *
- * @param pageIndex the index of the page to set
- * @param message the message to set the page to
- * @return the current book to allow method chaining
- */
- setPage(pageIndex: number, message: Message): Book;
-
- updateBookScreen(pages: NBTTagList): void;
-
- display(page?: number): void;
-
- isOpen(): boolean;
-
- getCurrentPage(): number;
- }
-
- class Message {
- /**
- * Creates a new Message object from a chat event.
- * @param event the chat event
- */
- constructor(event: ForgeClientChatReceivedEvent);
-
- /**
- * Creates a new Message object from an IChatComponent.
- * @param component the IChatComponent
- */
- constructor(component: MCIChatComponent);
-
- /**
- * Creates a new Message object in parts of TextComponents or Strings.
- * @param messageParts the list of TextComponents or Strings
- */
- constructor(messageParts: (string | TextComponent | Item)[]);
-
- /**
- * Creates a new Message object in parts of TextComponents or Strings.
- * @param components the TextComponents or Strings
- */
- constructor(...components: string[] | TextComponent[] | Item[]);
- /**
- * @return the parsed message as an ITextComponent
- */
- getChatMessage(): MCIChatComponent;
-
- /**
- * @return the formatted text of the parsed message
- */
- getFormattedText(): string;
-
- /**
- * @return the unformatted text of the parsed message
- */
- getUnformattedText(): string;
-
- /**
- * @return the message {@link TextComponent} parts as a list.
- */
- getMessageParts(): TextComponent[];
-
- /**
- * @return the chat line ID of the message
- */
- getChatLineId(): number;
-
- /**
- * Sets the chat line ID of the message. Useful for updating an already sent chat message.
- */
- setChatLineId(id: number): Message;
-
- /**
- * @return true if the message can trip other triggers.
- */
- isRecursive(): boolean;
-
- /**
- * Sets whether the message can trip other triggers.
- * @param recursive true if message can trip other triggers.
- */
- setRecursive(recursive: boolean): Message;
-
- /**
- * @return true if the message is formatted
- */
- isFormatted(): boolean;
-
- /**
- * Sets if the message is to be formatted
- * @param formatted true if formatted
- */
- setFormatted(formatted: boolean): Message;
-
- /**
- * Sets the TextComponent or String in the Message at index.
- * @param index the index of the TextComponent or String to change
- * @param component the new TextComponent or String to replace with
- * @return the Message for method chaining
- */
- setTextComponent(index: number, component: string | TextComponent): Message;
-
- /**
- * Adds a TextComponent or String to the end of the Message.
- * @param component the new TextComponent or String to add
- * @return the Message for method chaining
- */
- addTextComponent(component: string | TextComponent): Message;
-
- /**
- * Adds a TextComponent or String at index of the Message.
- * @param index the index to insert the new TextComponent or String
- * @param component the new TextComponent or String to insert
- * @return the Message for method chaining
- */
- addTextComponent(index: number, component: string | TextComponent): Message;
-
- clone(): Message;
-
- copy(): Message;
-
- /**
- * Edits this message (once it is already sent)
- * @param replacements the new message(s) to be put in place of the old one
- */
- edit(...replacements: Message[]): void;
-
- /**
- * Outputs the Message into the client's chat.
- */
- chat(): void;
-
- /**
- * Outputs the Message into the client's action bar.
- */
- actionBar(): void;
-
- toString(): string;
- }
-
- class ChatLib {
- static readonly INSTANCE: ChatLib;
- /**
- * Prints text in the chat.
- * The text can be a String, a {@link Message} or a {@link TextComponent}
- *
- * @param text the text to be printed
- */
- static chat(text: Message | string | TextComponent): void;
- /**
- * Prints text in the chat.
- * The text can be a String, a {@link Message} or a {@link TextComponent}
- *
- * @param text the text to be printed
- */
- chat(text: Message | string | TextComponent): void;
-
- /**logs */
- static test(e: any): void;
- /**logs */
- test(e: any): void;
-
- /**
- * Shows text in the action bar.
- * The text can be a String, a {@link Message} or a {@link TextComponent}
- *
- * @param text the text to show
- */
- static actionBar(text: string | Message | TextComponent): void;
- /**
- * Shows text in the action bar.
- * The text can be a String, a {@link Message} or a {@link TextComponent}
- *
- * @param text the text to show
- */
- actionBar(text: string | Message | TextComponent): void;
-
- /**
- * Simulates a chat message to be caught by other triggers for testing.
- * The text can be a String, a {@link Message} or a {@link TextComponent}
- *
- * @param text The message to simulate
- */
- static simulateChat(text: string | Message | TextComponent): void;
- /**
- * Simulates a chat message to be caught by other triggers for testing.
- * The text can be a String, a {@link Message} or a {@link TextComponent}
- *
- * @param text The message to simulate
- */
- simulateChat(text: string | Message | TextComponent): void;
-
- /**
- * Says chat message.
- * This message is actually sent to the server.
- *
- * @param text the message to be sent
- */
- static say(text: string): void;
- /**
- * Says chat message.
- * This message is actually sent to the server.
- *
- * @param text the message to be sent
- */
- say(text: string): void;
-
- /**
- * Runs a command.
- *
- * @param text the command to run, without the leading slash (Ex. "help")
- * @param clientSide should the command be ran as a client side command
- */
- static command(text: string, clientSide?: boolean): void;
- /**
- * Runs a command.
- *
- * @param text the command to run, without the leading slash (Ex. "help")
- * @param clientSide should the command be ran as a client side command
- */
- command(text: string, clientSide?: boolean): void;
-
- /**
- * Clear chat messages with the specified message ID, or all chat messages if no ID is specified
- *
- * @param chatLineIDs the id(s) to be cleared
- */
- static clearChat(...chatLineIDs: number[]): void;
- /**
- * Clear chat messages with the specified message ID, or all chat messages if no ID is specified
- *
- * @param chatLineIDs the id(s) to be cleared
- */
- clearChat(...chatLineIDs: number[]): void;
-
- /**
- * Get a message that will be perfectly one line of chat,
- * the separator repeated as many times as necessary.
- * The separator defaults to "-"
- *
- * @param separator the message to split chat with
- * @return the message that would split chat
- */
- static getChatBreak(separator?: string): string;
- /**
- * Get a message that will be perfectly one line of chat,
- * the separator repeated as many times as necessary.
- * The separator defaults to "-"
- *
- * @param separator the message to split chat with
- * @return the message that would split chat
- */
- getChatBreak(separator?: string): string;
-
- /**
- * Gets the width of Minecraft's chat
- *
- * @return the width of chat
- */
- static getChatWidth(): number;
- /**
- * Gets the width of Minecraft's chat
- *
- * @return the width of chat
- */
- getChatWidth(): number;
-
- /**
- * Remove all formatting
- *
- * @param text the string to un-format
- * @return the unformatted string
- */
- static removeFormatting(text: string): string;
- /**
- * Remove all formatting
- *
- * @param text the string to un-format
- * @return the unformatted string
- */
- removeFormatting(text: string): string;
-
- /**
- * Replaces Minecraft formatted text with normal formatted text
- *
- * @param text the formatted string
- * @return the unformatted string
- */
- static replaceFormatting(text: string): string;
- /**
- * Replaces Minecraft formatted text with normal formatted text
- *
- * @param text the formatted string
- * @return the unformatted string
- */
- replaceFormatting(text: string): string;
-
- /**
- * Get a message that will be perfectly centered in chat.
- *
- * @param text the text to be centered
- * @return the centered message
- */
- static getCenteredText(text: string): string;
- /**
- * Get a message that will be perfectly centered in chat.
- *
- * @param text the text to be centered
- * @return the centered message
- */
- getCenteredText(text: string): string;
-
- /**
- * Edits an already sent chat message matched by {@link regexp}.
- *
- * @param regexp the regex object to match to the message
- * @param replacements the new message(s) to be put in replace of the old one
- */
- editChat(regexp: RegExp, ...replacements: Message[]): void;
- /**
- * Edits an already sent chat message matched by {@link regexp}.
- *
- * @param regexp the regex object to match to the message
- * @param replacements the new message(s) to be put in replace of the old one
- */
- static editChat(regexp: RegExp, ...replacements: Message[]): void;
-
- /**
- * Edits an already sent chat message by the text of the chat
- *
- * @param toReplace the unformatted text of the message to be replaced
- * @param replacements the new message(s) to be put in place of the old one
- */
- editChat(toReplace: string, ...replacements: Message[]): void;
- /**
- * Edits an already sent chat message by the text of the chat
- *
- * @param toReplace the unformatted text of the message to be replaced
- * @param replacements the new message(s) to be put in place of the old one
- */
- static editChat(toReplace: string, ...replacements: Message[]): void;
-
- /**
- * Edits an already sent chat message by the {@link Message}
- *
- * @param toReplace the message to be replaced
- * @param replacements the new message(s) to be put in place of the old one
- */
- editChat(toReplace: Message, ...replacements: Message[]): void;
- /**
- * Edits an already sent chat message by the {@link Message}
- *
- * @param toReplace the message to be replaced
- * @param replacements the new message(s) to be put in place of the old one
- */
- static editChat(toReplace: Message, ...replacements: Message[]): void;
-
- /**
- * Edits an already sent chat message by its chat line id
- *
- * @param chatLineId the chat line id of the message to be replaced
- * @param replacements the new message(s) to be put in place of the old one
- */
- editChat(chatLineId: number, ...replacements: Message[]): void;
- /**
- * Edits an already sent chat message by its chat line id
- *
- * @param chatLineId the chat line id of the message to be replaced
- * @param replacements the new message(s) to be put in place of the old one
- */
- static editChat(chatLineId: number, ...replacements: Message[]): void;
-
- /**
- * Deletes an already sent chat message matching {@link regexp}.
- *
- * @param regexp the regex object to match to the message
- */
- deleteChat(regexp: RegExp): void;
- /**
- * Deletes an already sent chat message matching {@link regexp}.
- *
- * @param regexp the regex object to match to the message
- */
- static deleteChat(regexp: RegExp): void;
-
- /**
- * Deletes an already sent chat message by the text of the chat
- *
- * @param toDelete the unformatted text of the message to be deleted
- */
- deleteChat(toDelete: string): void;
- /**
- * Deletes an already sent chat message by the text of the chat
- *
- * @param toDelete the unformatted text of the message to be deleted
- */
- static deleteChat(toDelete: string): void;
-
- /**
- * Deletes an already sent chat message by the {@link Message}
- *
- * @param toDelete the message to be deleted
- */
- deleteChat(toDelete: Message): void;
- /**
- * Deletes an already sent chat message by the {@link Message}
- *
- * @param toDelete the message to be deleted
- */
- static deleteChat(toDelete: Message): void;
-
- /**
- * Deletes an already sent chat message by its chat line id
- *
- * @param chatLineId the chat line id of the message to be deleted
- */
- deleteChat(chatLineId: number): void;
- /**
- * Deletes an already sent chat message by its chat line id
- *
- * @param chatLineId the chat line id of the message to be deleted
- */
- static deleteChat(chatLineId: number): void;
-
- /**
- * Gets the previous 1000 lines of chat
- *
- * @return A list of the last 1000 chat lines
- */
- static getChatLines(): string[];
- /**
- * Gets the previous 1000 lines of chat
- *
- * @return A list of the last 1000 chat lines
- */
- getChatLines(): string[];
-
- /**
- * Adds a message to the player's chat history. This allows the message to
- * show up for the player when pressing the up/down keys while in the chat gui
- *
- * @param index the index to insert the message
- * @param message the message to add to chat history
- */
- addToSentMessageHistory(index: number, message: string): void;
- /**
- * Adds a message to the player's chat history. This allows the message to
- * show up for the player when pressing the up/down keys while in the chat gui
- *
- * @param index the index to insert the message
- * @param message the message to add to chat history
- */
- static addToSentMessageHistory(index: number, message: string): void;
-
- /**
- * Get the text of a chat event.
- * Defaults to the unformatted version.
- *
- * @param event The chat event passed in by a chat trigger
- * @param formatted If true, returns formatted text. Otherwise, returns
- * unformatted text
- * @return The text of the event
- */
- getChatMessage(
- event: ForgeClientChatReceivedEvent,
- formatted?: boolean,
- ): string;
- /**
- * Get the text of a chat event.
- * Defaults to the unformatted version.
- *
- * @param event The chat event passed in by a chat trigger
- * @param formatted If true, returns formatted text. Otherwise, returns
- * unformatted text
- * @return The text of the event
- */
- static getChatMessage(
- event: ForgeClientChatReceivedEvent,
- formatted?: boolean,
- ): string;
-
- /**
- * Replaces the easier to type '&' color codes with proper color codes in a string.
- *
- * @param message The string to add color codes to
- * @return the formatted message
- */
- addColor(message?: string): string;
- /**
- * Replaces the easier to type '&' color codes with proper color codes in a string.
- *
- * @param message The string to add color codes to
- * @return the formatted message
- */
- static addColor(message?: string): string;
-
- /**
- * helper method to make sure player exists before putting something in chat
- */
- isPlayer(out: string): boolean;
- }
-
- class ClickAction extends Action {
- constructor(slot: number, windowId: number);
-
- getClickType(): ClickAction.ClickType;
-
- /**
- * The type of click (REQUIRED)
- *
- * @param clickType the new click type
- */
- setClickType(clickType: ClickAction.ClickType): ClickAction;
-
- getHoldingShift(): Boolean;
-
- /**
- * Whether the click should act as if shift is being held (defaults to false)
- *
- * @param holdingShift to hold shift or not
- */
- setHoldingShift(holdingShift: Boolean): ClickAction;
-
- getItemInHand(): boolean;
-
- /**
- * Whether the click should act as if an item is being held
- * (defaults to whether there actually is an item in the hand)
- *
- * @param itemInHand to be holding an item or not
- */
- setItemInHand(itemInHand: Boolean): ClickAction;
-
- /**
- * Sets the type of click.
- * Possible values are: LEFT, RIGHT, MIDDLE
- *
- * @param clickType the click type
- * @return the current Action for method chaining
- */
- setClickString(clickType: String): ClickAction;
-
- complete(): void;
- }
-
- namespace ClickAction {
- enum ClickType {
- LEFT,
- RIGHT,
- MIDDLE,
- }
- }
-
- class KeyBind {
- /**
- * Creates a new keybind, editable in the user's controls.
- *
- * @param description what the keybind does
- * @param keyCode the keycode which the keybind will respond to, see Keyboard below. Ex. Keyboard.KEY_A
- * @param category the keybind category the keybind will be in
- * @see [org.lwjgl.input.Keyboard](http://legacy.lwjgl.org/javadoc/org/lwjgl/input/Keyboard.html)
- */
- constructor(description: string, keyCode: number, category?: string);
-
- constructor(keyBinding: MCKeyBinding);
-
- registerKeyPress(method: Function): RegularTrigger;
- registerKeyRelease(method: Function): RegularTrigger;
- registerKeyDown(method: Function): RegularTrigger;
-
- unregisterKeyPress(): KeyBind;
- unregisterKeyRelease(): KeyBind;
- unregisterKeyDown(): KeyBind;
-
- /**
- * Returns true if the key is pressed (used for continuous querying).
- *
- * @return whether the key is pressed
- */
- isKeyDown(): boolean;
-
- /**
- * Returns true on the initial key press. For continuous querying use {@link isKeyDown}.
- *
- * @return whether the key has just been pressed
- */
- isPressed(): boolean;
-
- /**
- * Gets the description of the key.
- *
- * @return the description
- */
- getDescription(): string;
-
- /**
- * Gets the key code of the key.
- *
- * @return the integer key code
- */
- getKeyCode(): number;
-
- /**
- * Gets the category of the key.
- *
- * @return the category
- */
- getCategory(): string;
-
- /**
- * Sets the state of the key.
- *
- * @param pressed True to press, False to release
- */
- setState(pressed: boolean): void;
-
- removeKeyBind(keyBind: KeyBind): void;
- static removeKeyBind(keyBind: KeyBind): void;
-
- clearKeyBinds(): void;
- static clearKeyBinds(): void;
- }
-
- class CPS {
- static INSTANCE: CPS;
-
- static getLeftClicksMax(): number;
-
- static getRightClicksMax(): number;
-
- static getLeftClicks(): number;
-
- static getRightClicks(): number;
-
- static getLeftClicksAverage(): number;
-
- static getRightClicksAverage(): number;
- }
-
- class DisplayHandler {
- registerDisplay(display: Display): boolean;
-
- clearDisplays(): void;
-
- renderDisplayOverlay(event: ForgeRenderGameOverlayEvent): void;
-
- renderDisplayGui(event: ForgeGuiScreenEvent.DrawScreenEvent.Post): void;
- }
- namespace DisplayHandler {
- enum RegisterType {
- RENDER_OVERLAY,
- POST_GUI_RENDER,
- }
-
- enum Background {
- NONE,
- FULL,
- PER_LINE,
- }
-
- enum Align {
- NONE,
- LEFT,
- CENTER,
- RIGHT,
- }
-
- enum Order {
- UP,
- DOWN,
- }
- }
-
- class DisplayLine {
- constructor(text: string);
-
- constructor(text: string, config: DisplayLineConfig);
-
- getText(): Text;
- setText(text: string): DisplayLine;
-
- getTextColor(): number;
- setTextColor(color: number): DisplayLine;
-
- getTextWidth(): number;
-
- setShadow(shadow: boolean): DisplayLine;
- setScale(scale: number): DisplayLine;
-
- getAlign(): DisplayHandler.Align;
- setAlign(align: string | DisplayHandler.Align): DisplayLine;
-
- getBackground(): DisplayHandler.Background;
- setBackground(background: string | DisplayHandler.Background): DisplayLine;
-
- getBackgroundColor(): number;
- setBackgroundColor(color: number): DisplayLine;
-
- registerClicked(
- method: (
- mouseX: number,
- mouseY: number,
- button: number,
- pressed: boolean,
- ) => void,
- ): RegularTrigger;
-
- registerHovered(
- method: (mouseX: number, mouseY: number) => void,
- ): RegularTrigger;
-
- registerMouseLeave(
- method: (mouseX: number, mouseY: number) => void,
- ): RegularTrigger;
-
- registerDragged(
- method: (
- xDist: number,
- yDist: number,
- mouseX: number,
- mouseY: number,
- button: number,
- ) => void,
- ): RegularTrigger;
-
- unregisterClicked(): DisplayLine;
- unregisterHovered(): DisplayLine;
- unregisterMouseLeave(): DisplayLine;
- unregisterDragged(): DisplayLine;
-
- drawLeft(
- x: number,
- y: number,
- maxWidth: number,
- background: DisplayHandler.Background,
- backgroundColor: number,
- textColor: number,
- ): void;
- drawRight(
- x: number,
- y: number,
- maxWidth: number,
- background: DisplayHandler.Background,
- backgroundColor: number,
- textColor: number,
- ): void;
- drawCenter(
- x: number,
- y: number,
- maxWidth: number,
- background: DisplayHandler.Background,
- backgroundColor: number,
- textColor: number,
- ): void;
-
- toString(): string;
- }
- interface DisplayLineConfig {
- textColor?: number;
- backgroundColor?: number;
-
- align?: DisplayHandler.Align;
- background?: DisplayHandler.Background;
- }
-
- class Display {
- constructor();
- constructor(config: DisplayConfig);
-
- getBackgroundColor(): number;
- setBackgroundColor(backgroundColor: number): Display;
-
- getTextColor(): number;
- setTextColor(textColor: number): Display;
-
- getBackground(): DisplayHandler.Background;
- setBackground(background: string | DisplayHandler.Background): Display;
-
- getAlign(): DisplayHandler.Align;
- setAlign(align: string | DisplayHandler.Align): Display;
-
- getOrder(): DisplayHandler.Order;
- setOrder(order: string | DisplayHandler.Order): Display;
-
- getLine(index: number): DisplayLine;
- setLine(index: number, line: string | DisplayLine): Display;
-
- getLines(): DisplayLine[];
- setLines(lines: DisplayLine[]): Display;
-
- addLine(line: string | DisplayLine): Display;
- addLine(index: number, line: string | DisplayLine): Display;
-
- addLines(...lines: string[] | DisplayLine[]): void;
-
- removeLine(index: number): Display;
-
- clearLines(): Display;
-
- getRenderX(): number;
- setRenderX(renderX: number): Display;
-
- getRenderY(): number;
- setRenderY(renderY: number): Display;
-
- setRenderLoc(renderX: number, renderY: number): Display;
-
- getShouldRender(): boolean;
- setShouldRender(shouldRender: boolean): Display;
-
- show(): Display;
-
- hide(): Display;
-
- getWidth(): number;
- getHeight(): number;
- getMinWidth(): number;
- setMinWidth(minWidth: number): Display;
-
- /**
- * Gets the type of register the display will render under.
- *
- * The returned value will be a DisplayHandler.RegisterType
- * renderOverlayEvent: render overlay
- * postGuiRenderEvent: post gui render
- *
- * @return the register type
- */
- getRegisterType(): DisplayHandler.RegisterType;
-
- /**
- * Sets the type of register the display will render under.
- *
- * Possible input values are:.
- * renderOverlayEvent: render overlay
- * postGuiRenderEvent: post gui render
- */
- setRegisterType(
- registerType:
- | "RENDER_OVERLAY_EVENT"
- | "POST_GUI_RENDER_EVENT"
- | DisplayHandler.RegisterType
- | any,
- ): Display;
-
- render(): void;
-
- toString(): string;
- }
-
- interface DisplayConfig {
- shouldRender?: boolean;
- renderX?: number;
- renderY?: number;
- backgroundColor?: number;
- textColor?: number;
- background?: DisplayHandler.Background;
- align?: DisplayHandler.Align;
- order?: DisplayHandler.Order;
- minWidth?: number;
- registerType?: DisplayHandler.RegisterType;
- }
-
- interface TextConfig {
- color?: number;
- formatted?: boolean;
- shadow?: boolean;
- align?: DisplayHandler.Align;
- x?: number;
- y?: number;
- maxLines?: number;
- scale?: number;
- maxWidth?: number;
- }
-
- class Text {
- constructor(string: string, x?: number, y?: number);
- constructor(string: string, config: TextConfig);
-
- getString(): string;
- setString(string: string): Text;
-
- getColor(): number;
- setColor(color: number): Text;
-
- getFormatted(): boolean;
- setFormatted(formatted: boolean): Text;
-
- getShadow(): boolean;
- setShadow(shadow: boolean): Text;
-
- getAlign(): DisplayHandler.Align;
- setAlign(align: string | DisplayHandler.Align): Text;
-
- getX(): number;
- setX(x: number): Text;
-
- getY(): number;
- setY(y: number): Text;
-
- /**
- * Gets the width of the text
- * This is automatically updated when the text is drawn.
- *
- * @return the width of the text
- */
- getWidth(): number;
-
- getLines(): string[];
-
- getMaxLines(): number;
- setMaxLines(maxLines: number): Text;
-
- getScale(): number;
- setScale(scale: number): Text;
-
- /**
- * Sets the maximum width of the text, splitting it into multiple lines if necessary.
- *
- * @param maxWidth the maximum width of the text
- * @return the Text object for method chaining
- */
- setMaxWidth(maxWidth: number): Text;
- getMaxWidth(): number;
-
- getHeight(): number;
-
- exceedsMaxLines(): boolean;
-
- draw(x?: number, y?: number): Text;
-
- toString(): string;
- }
-
- class DragAction extends Action {
- constructor(slot: number, windowId: number);
- readonly slot: number;
- readonly windowId: number;
-
- /**
- * The type of click (REQUIRED)
- *
- * @param clickType the new click type
- */
- setClickType(clickType: DragAction.ClickType): DragAction;
-
- getStage(): DragAction.Stage;
-
- /**
- * The stage of this drag (REQUIRED)
- * BEGIN is when beginning the drag
- * SLOT is for each slot being dragged into
- * END is for ending the drag
- *
- * @param stage the stage
- */
- setStage(stage: DragAction.Stage): DragAction;
-
- /**
- * Sets the type of click.
- * Possible values are: LEFT, RIGHT, MIDDLE
- *
- * @param clickType the click type
- * @return the current Action for method chaining
- */
- setClickString(clickType: keyof typeof DragAction.ClickType): DragAction;
-
- /**
- * Sets the stage of this drag.
- * Possible values are: BEGIN, SLOT, END {@link stage}
- *
- * @param stage the stage
- * @return the current Action for method chaining
- */
- setStageString(stage: keyof typeof DragAction.Stage): DragAction;
- }
-
- namespace DragAction {
- enum ClickType {
- LEFT,
- RIGHT,
- MIDDLE,
- }
- enum Stage {
- BEGIN,
- SLOT,
- END,
- }
- }
-
- class DropAction extends Action {
- constructor(slot: number, windowId: number);
- readonly slot: number;
- readonly windowId: number;
-
- getHoldingCtrl(): boolean;
-
- /**
- * Whether the click should act as if control is being held (defaults to false)
- *
- * @param holdingCtrl to hold ctrl or not
- */
- setHoldingCtrl(holdingCtrl: boolean): DropAction;
- }
-
- class KeyAction extends Action {
- constructor(slot: number, windowId: number);
-
- getKey(): number;
-
- /**
- * Which key to act as if has been clicked (REQUIRED).
- * Options currently are 0-8, representing the hotbar keys
- *
- * @param key which key to "click"
- */
- setKey(key: number): KeyAction;
-
- complete(): void;
- }
-
- class EventLib {
- static readonly INSTANCE: EventLib;
-
- getType(event: ForgeClientChatReceivedEvent): number;
- static getType(event: ForgeClientChatReceivedEvent): number;
-
- getMessage(event: ForgeClientChatReceivedEvent): MCIChatComponent;
- static getMessage(event: ForgeClientChatReceivedEvent): MCIChatComponent;
-
- getName(event: ForgePlaySoundEvent): string;
- static getName(event: ForgePlaySoundEvent): string;
-
- /**
- * Cancel an event. Automatically used with `cancel(event)`.
- *
- * @param event the event to cancel
- * @throws IllegalArgumentException if event can be cancelled "normally"
- */
- cancel(event: ForgePlaySoundEvent | CancellableEvent | ForgeEvent): void;
- /**
- * Cancel an event. Automatically used with `cancel(event)`.
- *
- * @param event the event to cancel
- * @throws IllegalArgumentException if event can be cancelled "normally"
- */
- static cancel(
- event: ForgePlaySoundEvent | CancellableEvent | ForgeEvent,
- ): void;
- }
-
- class FileLib {
- static readonly INSTANCE: FileLib;
-
- /**
- * Writes a file to folder in modules.
- *
- * @param importName name of the import
- * @param fileName name of the file
- * @param toWrite string to write in file
- * @param recursive whether to create folders to the file location if they don't exist
- */
- write(
- importName: string,
- fileName: string,
- toWrite: string,
- recursive?: boolean,
- ): void;
- /**
- * Writes a file to folder in modules.
- *
- * @param importName name of the import
- * @param fileName name of the file
- * @param toWrite string to write in file
- * @param recursive whether to create folders to the file location if they don't exist
- */
- static write(
- importName: string,
- fileName: string,
- toWrite: string,
- recursive?: boolean,
- ): void;
-
- /**
- * Writes a file to anywhere on the system.
- * Use "./" for the ".minecraft" folder.
- *
- * @param fileLocation the location and file name
- * @param toWrite string to write in file
- * @param recursive whether to create folders to the file location if they don't exist
- */
- write(fileLocation: string, toWrite: string, recursive?: boolean): void;
- /**
- * Writes a file to anywhere on the system.
- * Use "./" for the ".minecraft" folder.
- *
- * @param fileLocation the location and file name
- * @param toWrite string to write in file
- * @param recursive whether to create folders to the file location if they don't exist
- */
- static write(
- fileLocation: string,
- toWrite: string,
- recursive?: boolean,
- ): void;
-
- /**
- * Writes a file to folder in modules.
- *
- * @param importName name of the import
- * @param fileName name of the file
- * @param toAppend string to append in file
- */
- append(importName: string, fileName: string, toAppend: string): void;
- /**
- * Writes a file to folder in modules.
- *
- * @param importName name of the import
- * @param fileName name of the file
- * @param toAppend string to append in file
- */
- static append(importName: string, fileName: string, toAppend: string): void;
-
- /**
- * Writes a file to anywhere on the system.
- * Use "./" for the ".minecraft" folder.
- *
- * @param fileLocation the location and file name
- * @param toAppend string to append in file
- */
- append(fileLocation: string, toAppend: string): void;
- /**
- * Writes a file to anywhere on the system.
- * Use "./" for the ".minecraft" folder.
- *
- * @param fileLocation the location and file name
- * @param toAppend string to append in file
- */
- static append(fileLocation: string, toAppend: string): void;
-
- /**
- * Encodes a string to a base64 string
- *
- * @param toEncode string to encode
- * @return base64 encoded string
- */
- encodeBase64(toEncode: string): string;
- /**
- * Encodes a string to a base64 string
- *
- * @param toEncode string to encode
- * @return base64 encoded string
- */
- static encodeBase64(toEncode: string): string;
-
- /**
- * Decodes a base64 string to a string
- *
- * @param toDecode base64 encoded string to decode
- * @return decoded string
- */
- decodeBase64(toDecode: string): string;
- /**
- * Decodes a base64 string to a string
- *
- * @param toDecode base64 encoded string to decode
- * @return decoded string
- */
- static decodeBase64(toDecode: string): string;
-
- /**
- * Reads a file from folder in modules.
- * Returns an empty string if file is not found.
- *
- * @param importName name of the import
- * @param fileName name of the file
- * @return the string in the file
- */
- read(importName: string, fileName: string): string;
- /**
- * Reads a file from folder in modules.
- * Returns an empty string if file is not found.
- *
- * @param importName name of the import
- * @param fileName name of the file
- * @return the string in the file
- */
- static read(importName: string, fileName: string): string;
-
- /**
- * Reads a file from anywhere on the system.
- * Use "./" for the ".minecraft" folder.
- * Returns an empty string if file is not found.
- *
- * @param fileLocation the location and file name
- * @return the string in the file
- */
- read(fileLocation: string): string;
- /**
- * Reads a file from anywhere on the system.
- * Use "./" for the ".minecraft" folder.
- * Returns an empty string if file is not found.
- *
- * @param fileLocation the location and file name
- * @return the string in the file
- */
- static read(fileLocation: string): string;
-
- /**
- * Reads a file from anywhere on the system using java.io.File.
- *
- * @param file the java.io.File to read
- * @return the string in the file
- */
- read(file: JavaFile): string;
- /**
- * Reads a file from anywhere on the system using java.io.File.
- *
- * @param file the java.io.File to read
- * @return the string in the file
- */
- static read(file: JavaFile): string;
- /**
- * Determines if a file or directory exists at the specified location
- *
- * @param fileLocation the location and file name
- * @return if the file exists
- */
- exists(fileLocation: string): boolean;
- /**
- * Determines if a file or directory exists at the specified location
- *
- * @param fileLocation the location and file name
- * @return if the file exists
- */
- static exists(fileLocation: string): boolean;
- /**
- * Determines if a file or directory exists at the specified location
- *
- * @param importName name of the import
- * @param fileName name of the file
- * @return if the file exists
- */
- exists(importName: string, fileName: string): boolean;
- /**
- * Determines if a file or directory exists at the specified location
- *
- * @param importName name of the import
- * @param fileName name of the file
- * @return if the file exists
- */
- static exists(importName: string, fileName: string): boolean;
- /**
- * Gets the contents of a url as a string.
- *
- * @param theUrl the url to get the data from
- * @param userAgent the user agent to use in the connection
- * @return the string stored in the url content
- */
- getUrlContent(theUrl: string, userAgent?: string): string;
- /**
- * Gets the contents of a url as a string.
- *
- * @param theUrl the url to get the data from
- * @param userAgent the user agent to use in the connection
- * @return the string stored in the url content
- */
- static getUrlContent(theUrl: string, userAgent?: string): string;
-
- /**
- * Deletes a file at the specified location
- *
- * @param importName name of the import
- * @param fileName name of the file
- * @return if the file was deleted
- */
- delete(importName: string, fileName: string): boolean;
- /**
- * Deletes a file at the specified location
- *
- * @param importName name of the import
- * @param fileName name of the file
- * @return if the file was deleted
- */
- static delete(importName: string, fileName: string): boolean;
-
- /**
- * Deletes a file at the specified location
- *
- * @param fileLocation the path of the file
- * @return if the file was deleted
- */
- delete(fileLocation: string): boolean;
- /**
- * Deletes a file at the specified location
- *
- * @param fileLocation the path of the file
- * @return if the file was deleted
- */
- static delete(fileLocation: string): boolean;
-
- /**
- * Deletes a directory at the specified location
- *
- * @param dir the directory to delete
- * @return if the directory was deleted
- */
- deleteDirectory(dir: string): boolean;
- /**
- * Deletes a directory at the specified location
- *
- * @param dir the directory to delete
- * @return if the directory was deleted
- */
- static deleteDirectory(dir: string): boolean;
-
- /**
- * Deletes a directory at the specified location
- *
- * @param dir the directory to delete
- * @return if the directory was deleted
- */
- deleteDirectory(dir: JavaFile): boolean;
- /**
- * Deletes a directory at the specified location
- *
- * @param dir the directory to delete
- * @return if the directory was deleted
- */
- static deleteDirectory(dir: JavaFile): boolean;
-
- /**
- * Determines if a file or directory exists at the specified location
- *
- * @param importName name of the import
- * @param fileName name of the file
- * @return if the location is a directory
- */
- isDirectory(importName: string, fileName: string): boolean;
- /**
- * Determines if a file or directory exists at the specified location
- *
- * @param importName name of the import
- * @param fileName name of the file
- * @return if the location is a directory
- */
- static isDirectory(importName: string, fileName: string): boolean;
- /**
- * Determines if a file or directory exists at the specified location
- *
- * @param fileLocation the location and file name
- * @return if the location is a directory
- */
- isDirectory(fileLocation: string): boolean;
- /**
- * Determines if a file or directory exists at the specified location
- *
- * @param fileLocation the location and file name
- * @return if the location is a directory
- */
- static isDirectory(fileLocation: string): boolean;
-
- /**
- * Extracts a zip file specified by the zipFilePath to a directory specified by
- * destDirectory (will be created if does not exist).
- * @param zipFilePath the zip file path
- * @param destDirectory the destination directory
- * @throws IOException IOException
- */
- unzip(zipFilePath: string, destDirectory: string): void;
- /**
- * Extracts a zip file specified by the zipFilePath to a directory specified by
- * destDirectory (will be created if does not exist).
- * @param zipFilePath the zip file path
- * @param destDirectory the destination directory
- * @throws IOException IOException
- */
- static unzip(zipFilePath: string, destDirectory: string): void;
- }
-
- class Gui extends MCGuiScreen {
- constructor();
-
- doesPauseGame: boolean;
-
- open(): void;
-
- close(): void;
-
- isOpen(): boolean;
-
- isControlDown(): boolean;
- isShiftDown(): boolean;
- isAltDown(): boolean;
-
- /**
- * Registers a method to be run while gui is open.
- * Registered method runs on draw.
- * Arguments passed through to method:
- * - int mouseX
- * - int mouseY
- * - float partialTicks
- *
- * @param method the method to run
- * @return the trigger
- */
- registerDraw(
- method: (mouseX: number, mouseY: number, partialTicks: number) => void,
- ): RegularTrigger;
-
- /**
- * Registers a method to be run while gui is open.
- * Registered method runs on mouse click.
- * Arguments passed through to method:
- * - int mouseX
- * - int mouseY
- * - int button
- *
- * @param method the method to run
- * @return the trigger
- */
- registerClicked(
- method: (mouseX: number, mouseY: number, button: number) => void,
- ): RegularTrigger;
-
- /**
- * Registers a method to be run while the gui is open.
- * Registered method runs on mouse scroll.
- * Arguments passed through to method:
- * - int mouseX
- * - int mouseY
- * - int scroll direction
- */
- registerScrolled(
- method: (mouseX: number, mouseY: number, scroll: number) => void,
- ): RegularTrigger;
-
- /**
- * Registers a method to be run while gui is open.
- * Registered method runs on key input.
- * Arguments passed through to method:
- * - char typed character
- * - int key code
- *
- * @param method the method to run
- * @return the trigger
- */
- registerKeyTyped(
- method: (typed: string, key: number) => void,
- ): RegularTrigger;
-
- /**
- * Registers a method to be run while gui is open.
- * Registered method runs on key input.
- * Arguments passed through to method:
- * - int mouseX
- * - int mouseY
- * - int clickedMouseButton
- * - long timeSinceLastClick
- *
- * @param method the method to run
- * @return the trigger
- */
- registerMouseDragged(
- method: (
- mouseX: number,
- mouseY: number,
- clickedMouseButton: number,
- timeSinceLastClick: number,
- ) => void,
- ): RegularTrigger;
-
- /**
- * Registers a method to be run while gui is open.
- * Registered method runs on mouse release.
- * Arguments passed through to method:
- * - int mouseX
- * - int mouseY
- * - int button
- *
- * @param method the method to run
- * @return the trigger
- */
- registerMouseReleased(
- method: (mouseX: number, mouseY: number, button: number) => void,
- ): RegularTrigger;
-
- /**
- * Registers a method to be run while gui is open.
- * Registered method runs when an action is performed (clicking a button)
- * Arguments passed through to method:
- * - the button that is clicked
- *
- * @param method the method to run
- * @return the trigger
- */
- registerActionPerformed(
- method: (button: MCGuiButton) => void,
- ): RegularTrigger;
-
- /**
- * Registers a method to be run when the gui is opened.
- * Arguments passed through to method:
- * - the guithat is opened
- *
- * @param method the method to run
- * @return the trigger
- */
- registerOpened(method: (gui: Gui) => void): RegularTrigger;
-
- /**
- * Registers a method to be run when the gui is closed.
- * Arguments passed through to method:
- * - the gui that is closed
- *
- * @param method the method to run
- * @return the trigger
- */
- registerClosed(method: (gui: Gui) => void): RegularTrigger;
-
- /**
- * Internal method to run trigger. Not meant for public use
- */
- mouseClicked(mouseX: number, mouseY: number, button: number): void;
-
- /**
- * Internal method to run trigger. Not meant for public use
- */
- mouseReleased(mouseX: number, mouseY: number, button: number): void;
-
- /**
- * Internal method to run trigger. Not meant for public use
- */
- actionPerformed(button: MCGuiButton): void;
-
- /**
- * Internal method to run trigger. Not meant for public use
- */
- mouseClickMove(
- mouseX: number,
- mouseY: number,
- clickedMouseButton: number,
- timeSinceLastClick: number,
- ): void;
-
- /**
- * Internal method to run trigger. Not meant for public use
- */
- handleMouseInput(): void;
-
- /**
- * Internal method to run trigger. Not meant for public use
- */
- drawScreen(mouseX: number, mouseY: number, partialTicks: number): void;
-
- /**
- * Internal method to run trigger. Not meant for public use
- */
- keyTyped(typedChar: string, keyCode: number): void;
-
- /**
- * Internal method to run trigger. Not meant for public use
- */
- doesGuiPauseGame(): boolean;
-
- setDoesPauseGame(doesPauseGame: boolean): Gui;
-
- /**
- * Add a base Minecraft button to the gui
- *
- * @param button the button to add
- * @return the Gui for method chaining
- */
- addButton(button: MCGuiButton): Gui;
-
- /**
- * Add a base Minecraft button to the gui
- *
- * @param buttonId id for the button
- * @param x the x position of the button
- * @param y the y position of the button
- * @param width the width of the button
- * @param height the height of the button
- * @param buttonText the label of the button
- * @return the Gui for method chaining
- */
- addButton(
- buttonId: number,
- x: number,
- y: number,
- width: number,
- height: number,
- buttonText: string,
- ): Gui;
-
- /**
- * Removes a button from the gui with the given id
- *
- * @param buttonId the id of the button to remove
- * @return the Gui for method chaining
- */
- removeButton(buttonId: number): Gui;
-
- clearButtons(): Gui;
-
- getButton(buttonId: number): MCGuiButton | null;
-
- getButtonVisibility(buttonId: number): boolean;
-
- /**
- * Sets the visibility of a button
- *
- * @param buttonId the id of the button to change
- * @param visible the new visibility of the button
- * @return the Gui for method chaining
- */
- setButtonVisibility(buttonId: number, visible: boolean): Gui;
-
- getButtonEnabled(buttonId: number): boolean;
-
- /**
- * Sets the enabled state of a button
- *
- * @param buttonId the id of the button to set
- * @param enabled the enabled state of the button
- * @return the Gui for method chaining
- */
- setButtonEnabled(buttonId: number, enabled: boolean): Gui;
-
- getButtonWidth(buttonId: number): number;
- /**
- * Sets the button's width. Button textures break if the width is greater than 200
- *
- * @param buttonId id of the button
- * @param width the new width
- * @return the Gui for method chaining
- */
- setButtonWidth(buttonId: number, width: number): Gui;
-
- getButtonHeight(buttonId: number): number;
- /**
- * Sets the button's height. Button textures break if the height is not 20
- *
- * @param buttonId id of the button
- * @param height the new height
- * @return the Gui for method chaining
- */
- setButtonHeight(buttonId: number, height: number): Gui;
-
- getButtonX(buttonId: number): number;
-
- /**
- * Sets the button's x position
- *
- * @param buttonId id of the button
- * @param x the new x position
- * @return the Gui for method chaining
- */
- setButtonX(buttonId: number, x: number): Gui;
-
- getButtonY(buttonId: number): number;
-
- /**
- * Sets the button's y position
- *
- * @param buttonId id of the button
- * @param y the new y position
- * @return the Gui for method chaining
- */
- setButtonY(buttonId: number, y: number): Gui;
-
- /**
- * Sets the button's position
- *
- * @param buttonId id of the button
- * @param x the new x position
- * @param y the new y position
- * @return the Gui for method chaining
- */
- setButtonLoc(buttonId: number, x: number, y: number): Gui;
-
- /**
- * Draws text on screen
- *
- * @param text the text to draw
- * @param x X position of the text
- * @param y Y position of the text
- * @param color color of the text
- */
- drawString(text: string, x: number, y: number, color: number): void;
-
- /**
- * Draws hovering text that follows the mouse
- *
- * @param text the text to draw
- * @param mouseX X position of mouse
- * @param mouseY Y position of mouse
- */
- drawCreativeTabHoveringString(
- text: string,
- mouseX: number,
- mouseY: number,
- ): void;
-
- /**
- * Draws hovering text that doesn't follow the mouse
- *
- * @param text the text's to draw
- * @param x X position of the text
- * @param y Y position of the text
- */
- drawHoveringString(text: string[], x: number, y: number): void;
- }
-
- class Image {
- constructor(image: JavaBufferedImage);
-
- readonly image: JavaBufferedImage;
-
- /**
- * @deprecated API is ambiguous, especially when called from JavaScript, and is relative to the assets directory.
- * Instead use Image.fromFile() or Image.fromURL().
- */
- constructor(name: string, url?: string);
-
- /**
- * @deprecated Use static method for consistency: Image.fromFile().
- */
- constructor(file: JavaFile);
-
- getTextureWidth(): number;
-
- getTextureHeight(): number;
-
- getTexture(): MCDynamicTexture;
-
- /**
- * Clears the image from GPU memory and removes its references CT side
- * that way it can be garbage collected if not referenced in js code.
- */
- destroy(): void;
-
- onRender(event: ForgeRenderGameOverlayEvent): void;
-
- draw(x: number, y: number, width: number, height: number): Image;
-
- /**
- * Create an image object from a java.io.File object. Throws an exception
- * if the file cannot be found.
- */
- fromFile(file: JavaFile): Image;
- /**
- * Create an image object from a java.io.File object. Throws an exception
- * if the file cannot be found.
- */
- static fromFile(file: JavaFile): Image;
-
- /**
- * Create an image object from a file path. Throws an exception
- * if the file cannot be found.
- */
- fromFile(file: string): Image;
- /**
- * Create an image object from a file path. Throws an exception
- * if the file cannot be found.
- */
- static fromFile(file: string): Image;
-
- /**
- * Create an image object from a file path, relative to the assets directory.
- * Throws an exception if the file cannot be found.
- */
- fromAsset(name: string): Image;
- /**
- * Create an image object from a file path, relative to the assets directory.
- * Throws an exception if the file cannot be found.
- */
- static fromAsset(name: string): Image;
-
- /**
- * Creates an image object from a URL. Throws an exception if an image
- * cannot be created from the URL. Will cache the image in the assets
- */
- fromUrl(url: string): Image;
- /**
- * Creates an image object from a URL. Throws an exception if an image
- * cannot be created from the URL. Will cache the image in the assets
- */
- static fromUrl(url: string): Image;
- }
-
- class PlayerMP extends EntityLivingBase {
- constructor(player: MCEntityPlayer);
-
- readonly player: MCEntityPlayer;
-
- isSpectator(): boolean;
-
- getActivePotionEffects(): PotionEffect[];
-
- getPing(): number;
-
- /**
- * Gets the item currently in the player's specified inventory slot.
- * 0 for main hand, 1-4 for armor
- * (2 for offhand in 1.12.2, and everything else shifted over).
- *
- * @param slot the slot to access
- * @return the item in said slot
- */
- getItemInSlot(slot: number): Item;
-
- getTeam(): Team | null;
-
- /**
- * Gets the display name for this player,
- * i.e. the name shown in tab list and in the player's nametag.
- * @return the display name
- */
- getDisplayName(): TextComponent;
-
- setTabDisplayName(textComponent: TextComponent): void;
-
- /**
- * Sets the name for this player shown above their head,
- * in their name tag
- *
- * @param textComponent the new name to display
- */
- setNametagName(textComponent: TextComponent): void;
-
- /**
- * Draws the player in the GUI
- */
- draw(
- x: number,
- y: number,
- rotate?: boolean,
- showNametag?: boolean,
- showArmor?: boolean,
- showCape?: boolean,
- showHeldItem?: boolean,
- showArrows?: boolean,
- ): PlayerMP;
-
- toString(): string;
-
- getName(): string;
- }
-
- class Particle extends Entity {
- constructor(underlyingEntity: MCEntityFX);
-
- readonly underlyingEntity: MCEntityFX;
- getUnderlyingEntity(): MCEntityFX;
-
- setX(x: number): Particle;
- setY(y: number): Particle;
- setZ(z: number): Particle;
-
- scale(scale: number): Particle;
-
- multiplyVelocity(multiplier: number): Particle;
-
- /**
- * Sets the color of the particle.
- * @param red the red value between 0 and 1.
- * @param green the green value between 0 and 1.
- * @param blue the blue value between 0 and 1.
- */
- setColor(red: number, green: number, blue: number): Particle;
-
- /**
- * Sets the color of the particle.
- * @param red the red value between 0 and 1.
- * @param green the green value between 0 and 1.
- * @param blue the blue value between 0 and 1.
- * @param alpha the alpha value between 0 and 1.
- */
- setColor(red: number, green: number, blue: number, alpha: number): Particle;
-
- setColor(color: number): Particle;
-
- /**
- * Sets the alpha of the particle.
- * @param alpha the alpha value between 0 and 1.
- */
- setAlpha(alpha: number): Particle;
-
- /**
- * Returns the color of the Particle
- *
- * @return A {@link JavaColor java.awt.Color} with the R, G, B and A values
- */
- getColor(): JavaColor;
-
- /**
- * Sets the amount of ticks this particle will live for
- *
- * @param maxAge the particle's max age (in ticks)
- */
- setMaxAge(maxAge: number): Particle;
-
- remove(): Particle;
-
- toString(): string;
- }
-}
-
-declare interface JavaTypePath {
- // obfuscated paths
- (
- path: "net.minecraft.client.gui.inventory.GuiContainer",
- ): typeof MCGuiContainer;
- (path: "net.minecraft.inventory.Slot"): typeof MCSlot;
- (path: "net.minecraft.util.Vec3"): typeof MCVec3;
- (
- path: "net.minecraft.client.renderer.GlStateManager",
- ): typeof MCGlStateManager;
- (path: "net.minecraft.block.Block"): typeof MCBlock;
- (path: "net.minecraft.util.BlockPos"): typeof MCBlockPos;
- (path: "net.minecraft.item.Item"): typeof MCItem;
- (path: "net.minecraft.item.ItemStack"): typeof MCItemStack;
- (path: "net.minecraft.entity.item.EntityItem"): typeof MCEntityItem;
- (path: "net.minecraft.block.state.IBlockState"): typeof MCIBlockState;
- (path: "net.minecraft.inventory.IInventory"): typeof MCIInventory;
- (path: "net.minecraft.inventory.Container"): typeof MCContainer;
- (path: "net.minecraft.entity.Entity"): typeof MCEntity;
- (path: "net.minecraft.util.IChatComponent"): typeof MCIChatComponent;
- (path: "net.minecraft.nbt.NBTBase"): typeof MCNBTBase;
- (path: "net.minecraft.nbt.NBTTagCompound"): typeof MCNBTTagCompound;
- (path: "net.minecraft.world.chunk.Chunk"): typeof MCChunk;
- (path: "net.minecraft.util.EnumFacing"): typeof MCEnumFacing;
- (path: "net.minecraft.nbt.NBTTagList"): typeof MCNBTTagList;
- (path: "net.minecraft.client.Minecraft"): typeof MCMinecraft;
- (
- path: "net.minecraft.client.network.NetHandlerPlayClient",
- ): typeof MCNetHandlerPlayClient;
- (path: "net.minecraft.client.gui.GuiNewChat"): typeof MCGuiNewChat;
- (path: "net.minecraft.client.gui.GuiNewChat"): typeof MCGuiPlayerTabOverlay;
- (path: "net.minecraft.network.INetHandler"): typeof MCINetHandler;
- (path: "net.minecraft.network.Packet"): MCPacket<any>;
- (path: "net.minecraft.client.gui.GuiScreen"): typeof MCGuiScreen;
- (path: "net.minecraft.client.settings.GameSettings"): typeof MCGameSettings;
- (path: "net.minecraft.entity.player.EntityPlayer"): typeof MCEntityPlayer;
- (path: "net.minecraft.client.entity.EntityPlayerSP"): typeof MCEntityPlayerSP;
- (path: "net.minecraft.client.settings.KeyBinding"): typeof MCKeyBinding;
- (path: "net.minecraft.client.gui.GuiButton"): typeof MCGuiButton;
- (
- path: "net.minecraft.client.renderer.texture.DynamicTexture",
- ): typeof MCDynamicTexture;
- (
- path: "net.minecraft.client.renderer.texture.AbstractTexture",
- ): typeof MCAbstractTexture;
- (path: "net.minecraft.client.audio.SoundCategory"): typeof MCSoundCategory;
- (path: "net.minecraft.potion.Potion"): typeof MCPotion;
- (path: "net.minecraft.potion.PotionEffect"): typeof MCPotionEffect;
- (path: "net.minecraft.world.World"): typeof MCWorld;
- (path: "net.minecraft.client.particle.EntityFX"): typeof MCEntityFX;
- (path: "net.minecraft.util.EnumParticleTypes"): typeof MCEnumParticleTypes;
- (path: "net.minecraft.client.gui.FontRenderer"): typeof MCFontRenderer;
- (
- path: "net.minecraft.client.renderer.entity.RenderManager",
- ): typeof MCRenderManager;
- (path: "net.minecraft.entity.EntityLivingBase"): typeof MCEntityLivingBase;
- (path: "net.minecraft.client.multiplayer.WorldClient"): typeof MCWorldClient;
- (path: "net.minecraft.scoreboard.Score"): typeof MCScore;
- // forge paths
- (
- path: "net.minecraftforge.fml.common.network.FMLNetworkEvent",
- ): FMLNetworkEventStatic;
- (
- path: "net.minecraftforge.client.event.ClientChatReceivedEvent",
- ): typeof ForgeClientChatReceivedEvent;
- (
- path: "net.minecraftforge.client.event.RenderGameOverlayEvent",
- ): typeof ForgeRenderGameOverlayEvent;
- (path: "net.minecraftforge.client.event.MouseEvent"): typeof ForgeMouseEvent;
- (
- path: "net.minecraftforge.client.event.sound.PlaySoundEvent",
- ): typeof ForgePlaySoundEvent;
- (
- path: "net.minecraftforge.fml.client.event.ConfigChangedEvent",
- ): typeof ForgeConfigChangedEvent;
- (
- path: "net.minecraftforge.fml.common.gameevent.TickEvent",
- ): typeof ForgeTickEvent;
- (
- path: "net.minecraftforge.event.world.NoteBlockEvent",
- ): typeof ForgeNoteBlockEvent;
- (
- path: "net.minecraftforge.client.event.DrawBlockHighlightEvent",
- ): typeof ForgeDrawBlockHighlightEvent;
- (
- path: "net.minecraftforge.client.event.GuiOpenEvent",
- ): typeof ForgeGuiOpenEvent;
- (
- path: "net.minecraftforge.event.entity.player.EntityItemPickupEvent",
- ): typeof ForgeEntityItemPickupEvent;
- (
- path: "net.minecraftforge.event.entity.player.PlayerInteractEvent",
- ): typeof ForgePlayerInteractEvent;
- (
- path: "net.minecraftforge.client.event.GuiScreenEvent",
- ): typeof ForgeGuiScreenEvent;
- (path: "net.minecraftforge.event.world.BlockEvent"): typeof ForgeBlockEvent;
- // java paths
- (path: "org.lwjgl.opengl.GL11"): typeof JavaGL11;
- (path: "org.lwjgl.opengl.GL12"): typeof JavaGL12;
- (path: "org.lwjgl.opengl.GL13"): typeof JavaGL13;
- (path: "org.lwjgl.opengl.GL14"): typeof JavaGL14;
- (path: "org.lwjgl.opengl.GL15"): typeof JavaGL15;
- (path: "org.lwjgl.opengl.GL20"): typeof JavaGL20;
- (path: "org.lwjgl.opengl.GL21"): typeof JavaGL21;
- (path: "org.lwjgl.opengl.GL30"): typeof JavaGL30;
- (path: "org.lwjgl.opengl.GL31"): typeof JavaGL31;
- (path: "org.lwjgl.opengl.GL32"): typeof JavaGL32;
- (path: "org.lwjgl.opengl.GL33"): typeof JavaGL33;
- (path: "org.lwjgl.opengl.GL40"): typeof JavaGL40;
- (path: "org.lwjgl.opengl.GL41"): typeof JavaGL41;
- (path: "org.lwjgl.opengl.GL42"): typeof JavaGL42;
- (path: "org.lwjgl.opengl.GL43"): typeof JavaGL43;
- (path: "org.lwjgl.opengl.GL44"): typeof JavaGL44;
- (path: "org.lwjgl.opengl.GL45"): typeof JavaGL45;
- (path: "java.lang.Thread"): typeof JavaThread;
- (path: "java.util.UUID"): typeof JavaUUID;
- (path: "java.io.File"): typeof JavaFile;
- (path: "java.nio.file.Path"): JavaPath;
- (path: "java.io.FileNameFilter"): JavaFileNameFilter;
- (path: "java.lang.Class"): typeof JavaClass;
- (path: "java.net.URL"): typeof JavaURL;
- (path: "java.net.URI"): typeof JavaURI;
- (
- path: "java.net.URLStreamHandlerFactory",
- ): typeof JavaURLStreamHandlerFactory;
- (path: "java.io.InputStream"): typeof JavaInputStream;
- (path: "java.net.URLConnection"): typeof JavaURLConnection;
- (path: "java.net.Proxy"): typeof JavaProxy;
- (path: "java.net.SocketAddress"): typeof JavaSocketAddress;
- (path: "java.net.URLStreamHandler"): typeof JavaURLStreamHandler;
- (path: "java.lang.reflect.Field"): typeof JavaField;
- (path: "java.lang.reflect.Method"): typeof JavaMethod;
- (path: "java.awt.image.BufferedImage"): typeof JavaBufferedImage;
- (path: "java.awt.Color"): typeof JavaColor;
-
- (path: string): any;
-}
-
-declare interface Java {
- type: JavaTypePath;
-}
-
-declare class NotFullyTyped {
- [s: string]: any;
- static [s: string]: any;
-}
-
-type NBTType =
- | string
- | number
- | number[]
- | { [key: string]: NBTType }
- | NBTType[];
-
-////////////////////////
-// obfuscated classes //
-////////////////////////
-//#region
-declare class MCScoreboard extends NotFullyTyped {
- class: JavaClass<MCScoreboard>;
- static class: JavaClass<typeof MCScoreboard>;
-}
-
-declare class MCScore extends NotFullyTyped {
- class: JavaClass<MCScore>;
- static class: JavaClass<typeof MCScore>;
-}
-
-declare class MCScoreObjective extends NotFullyTyped {
- class: JavaClass<MCScoreObjective>;
- static class: JavaClass<typeof MCScoreObjective>;
-}
-
-declare class MCScorePlayerTeam extends NotFullyTyped {
- class: JavaClass<MCScorePlayerTeam>;
- static class: JavaClass<typeof MCScorePlayerTeam>;
-}
-
-declare class MCTileEntity extends NotFullyTyped {
- class: JavaClass<MCTileEntity>;
- static class: JavaClass<typeof MCTileEntity>;
-}
-
-declare class MCSlot extends NotFullyTyped {
- class: JavaClass<MCSlot>;
- static class: JavaClass<typeof MCSlot>;
-}
-
-declare class MCGuiContainer extends NotFullyTyped {
- class: JavaClass<MCGuiContainer>;
- static class: JavaClass<typeof MCGuiContainer>;
-}
-
-// TODO probalby should be extending from base object, need to fix issue with static members
-declare class MCVec3 extends NotFullyTyped {
- class: JavaClass<MCVec3>;
- static class: JavaClass<typeof MCVec3>;
-}
-
-declare class MCGlStateManager extends NotFullyTyped {
- class: JavaClass<MCGlStateManager>;
- static class: JavaClass<typeof MCGlStateManager>;
-}
-
-declare class MCBlock extends NotFullyTyped {
- class: JavaClass<MCBlock>;
- static class: JavaClass<typeof MCBlock>;
-}
-declare class MCBlockPos extends NotFullyTyped {
- class: JavaClass<MCBlockPos>;
- static class: JavaClass<typeof MCBlockPos>;
-}
-declare class MCItem extends NotFullyTyped {
- class: JavaClass<MCItem>;
- static class: JavaClass<typeof MCItem>;
-}
-declare class MCItemStack extends NotFullyTyped {
- class: JavaClass<MCItemStack>;
- static class: JavaClass<typeof MCItemStack>;
-}
-declare class MCEntityItem extends NotFullyTyped {
- class: JavaClass<MCEntityItem>;
- static class: JavaClass<typeof MCEntityItem>;
-}
-declare class MCIBlockState extends NotFullyTyped {
- class: JavaClass<MCIBlockState>;
- static class: JavaClass<typeof MCIBlockState>;
-}
-declare class MCIInventory extends NotFullyTyped {
- class: JavaClass<MCIInventory>;
- static class: JavaClass<typeof MCIInventory>;
-}
-declare class MCContainer extends NotFullyTyped {
- class: JavaClass<MCContainer>;
- static class: JavaClass<typeof MCContainer>;
-}
-declare class MCEntity extends NotFullyTyped {
- class: JavaClass<MCEntity>;
- static class: JavaClass<typeof MCEntity>;
-}
-declare class MCIChatComponent extends NotFullyTyped {
- class: JavaClass<MCIChatComponent>;
- static class: JavaClass<typeof MCIChatComponent>;
-}
-declare class MCNBTBase extends NotFullyTyped {
- class: JavaClass<MCNBTBase>;
- static class: JavaClass<typeof MCNBTBase>;
-}
-declare class MCNBTTagCompound extends NotFullyTyped {
- class: JavaClass<MCNBTTagCompound>;
- static class: JavaClass<typeof MCNBTTagCompound>;
-}
-declare class MCChunk extends NotFullyTyped {
- class: JavaClass<MCChunk>;
- static class: JavaClass<typeof MCChunk>;
-}
-// TODO
-declare class MCEnumFacing extends NotFullyTyped {
- class: JavaClass<MCEnumFacing>;
- static class: JavaClass<typeof MCEnumFacing>;
- Axis: any;
-}
-declare class MCNBTTagList extends NotFullyTyped {
- class: JavaClass<MCNBTTagList>;
- static class: JavaClass<typeof MCNBTTagList>;
-}
-declare class MCMinecraft extends NotFullyTyped {
- class: JavaClass<MCMinecraft>;
- static class: JavaClass<typeof MCMinecraft>;
-}
-declare class MCNetHandlerPlayClient extends NotFullyTyped {
- class: JavaClass<MCNetHandlerPlayClient>;
- static class: JavaClass<typeof MCNetHandlerPlayClient>;
-}
-declare class MCGuiNewChat extends NotFullyTyped {
- class: JavaClass<MCGuiNewChat>;
- static class: JavaClass<typeof MCGuiNewChat>;
-}
-declare class MCGuiPlayerTabOverlay extends NotFullyTyped {
- class: JavaClass<MCGuiPlayerTabOverlay>;
- static class: JavaClass<typeof MCGuiPlayerTabOverlay>;
-}
-declare class MCINetHandler extends NotFullyTyped {
- class: JavaClass<MCINetHandler>;
- static class: JavaClass<typeof MCINetHandler>;
-}
-declare interface MCPacket<T extends MCINetHandler> extends NotFullyTyped {
- class: JavaClass<MCPacket<T>>;
-}
-declare class MCGuiScreen extends NotFullyTyped {
- class: JavaClass<MCGuiScreen>;
- static class: JavaClass<typeof MCGuiScreen>;
-}
-declare class MCGameSettings extends NotFullyTyped {
- class: JavaClass<MCGameSettings>;
- static class: JavaClass<typeof MCGameSettings>;
-}
-// enum for MCEntityPlayer
-declare enum EnumChatVisibility {
- FULL,
- SYSTEM,
- HIDDEN,
-}
-declare class MCEntityPlayer extends NotFullyTyped {
- class: JavaClass<MCEntityPlayer>;
- static class: JavaClass<typeof MCEntityPlayer>;
- EnumChatVisibility: EnumChatVisibility;
-}
-
-declare class MCEntityPlayerSP extends NotFullyTyped {
- class: JavaClass<MCEntityPlayerSP>;
- static class: JavaClass<typeof MCEntityPlayerSP>;
-}
-
-declare class MCKeyBinding extends NotFullyTyped {
- class: JavaClass<MCKeyBinding>;
- static class: JavaClass<typeof MCKeyBinding>;
-}
-
-declare class MCGuiButton extends MCGuiScreen {
- class: JavaClass<MCGuiButton>;
- static class: JavaClass<typeof MCGuiButton>;
-}
-declare class MCAbstractTexture extends NotFullyTyped {
- class: JavaClass<MCAbstractTexture>;
- static class: JavaClass<typeof MCAbstractTexture>;
-}
-
-declare class MCDynamicTexture extends MCAbstractTexture {
- class: JavaClass<MCDynamicTexture>;
- static class: JavaClass<typeof MCDynamicTexture>;
-}
-
-declare class MCSoundCategory extends NotFullyTyped {
- class: JavaClass<MCSoundCategory>;
- static class: JavaClass<typeof MCSoundCategory>;
-
- static MASTER: MCSoundCategory;
- static MUSIC: MCSoundCategory;
- static RECORDS: MCSoundCategory;
- static WEATHER: MCSoundCategory;
- static BLOCKS: MCSoundCategory;
- static MOBS: MCSoundCategory;
- static ANIMALS: MCSoundCategory;
- static PLAYERS: MCSoundCategory;
- static AMBIENT: MCSoundCategory;
-}
-
-declare class MCPotion extends NotFullyTyped {
- class: JavaClass<MCPotion>;
- static class: JavaClass<typeof MCPotion>;
-}
-
-declare class MCPotionEffect extends NotFullyTyped {
- class: JavaClass<MCSoundCategory>;
- static class: JavaClass<typeof MCSoundCategory>;
-}
-declare class MCWorld extends NotFullyTyped {
- class: JavaClass<MCWorld>;
- static class: JavaClass<typeof MCWorld>;
-}
-
-declare class MCEntityFX extends NotFullyTyped {
- class: JavaClass<MCEntityFX>;
- static class: JavaClass<typeof MCEntityFX>;
-}
-
-declare class MCEnumParticleTypes extends NotFullyTyped {
- class: JavaClass<MCEnumParticleTypes>;
- static class: JavaClass<typeof MCEnumParticleTypes>;
-
- static EXPLOSION_NORMAL: MCEnumParticleTypes;
- static EXPLOSION_LARGE: MCEnumParticleTypes;
- static EXPLOSION_HUGE: MCEnumParticleTypes;
- static FIREWORKS_SPARK: MCEnumParticleTypes;
- static WATER_BUBBLE: MCEnumParticleTypes;
- static WATER_SPLASH: MCEnumParticleTypes;
- static WATER_WAKE: MCEnumParticleTypes;
- static SUSPENDED: MCEnumParticleTypes;
- static SUSPENDED_DEPTH: MCEnumParticleTypes;
- static CRIT: MCEnumParticleTypes;
- static CRIT_MAGIC: MCEnumParticleTypes;
- static SMOKE_NORMAL: MCEnumParticleTypes;
- static SMOKE_LARGE: MCEnumParticleTypes;
- static SPELL: MCEnumParticleTypes;
- static SPELL_INSTANT: MCEnumParticleTypes;
- static SPELL_MOB: MCEnumParticleTypes;
- static SPELL_MOB_AMBIENT: MCEnumParticleTypes;
- static SPELL_WITCH: MCEnumParticleTypes;
- static DRIP_WATER: MCEnumParticleTypes;
- static DRIP_LAVA: MCEnumParticleTypes;
- static VILLAGER_ANGRY: MCEnumParticleTypes;
- static TOWN_AURA: MCEnumParticleTypes;
- static NOTE: MCEnumParticleTypes;
- static PORTAL: MCEnumParticleTypes;
- static ENCHANTMENT_TABLE: MCEnumParticleTypes;
- static FLAME: MCEnumParticleTypes;
- static LAVA: MCEnumParticleTypes;
- static FOOTSTEP: MCEnumParticleTypes;
- static CLOUD: MCEnumParticleTypes;
- static REDSTONE: MCEnumParticleTypes;
- static SNOWBALL: MCEnumParticleTypes;
- static SNOW_SHOVEL: MCEnumParticleTypes;
- static SLIME: MCEnumParticleTypes;
- static HEART: MCEnumParticleTypes;
- static BARRIER: MCEnumParticleTypes;
- static ITEM_CRACK: MCEnumParticleTypes;
- static BLOCK_CRACK: MCEnumParticleTypes;
- static BLOCK_DUST: MCEnumParticleTypes;
- static WATER_DROP: MCEnumParticleTypes;
- static ITEM_TAKE: MCEnumParticleTypes;
- static MOB_APPEARANCE: MCEnumParticleTypes;
-}
-
-declare class MCFontRenderer extends NotFullyTyped {
- class: JavaClass<MCFontRenderer>;
- static class: JavaClass<typeof MCFontRenderer>;
-}
-
-declare class MCRenderManager extends NotFullyTyped {
- class: JavaClass<MCRenderManager>;
- static class: JavaClass<typeof MCRenderManager>;
-}
-
-declare class MCEntityLivingBase extends NotFullyTyped {
- class: JavaClass<MCEntityLivingBase>;
- static class: JavaClass<typeof MCEntityLivingBase>;
-}
-
-declare class MCWorldClient extends NotFullyTyped {
- class: JavaClass<MCWorldClient>;
- static class: JavaClass<typeof MCWorldClient>;
-}
-
-//#endregion
-///////////////////
-// Forge Classes //
-///////////////////
-//#region
-declare class ForgeEvent {
- static readonly Result: typeof ForgeEvent$Result;
-
- constructor();
-
- /**
- * Determine if this function is cancelable at all.
- * @return If access to setCanceled should be allowed
- *
- * Note:
- * Events with the Cancelable annotation will have this method automatically added to return true.
- */
- isCancelable(): boolean;
-
- /**
- * Determine if this event is canceled and should stop executing.
- * @return The current canceled state
- */
- isCanceled(): boolean;
-
- /**
- * Sets the state of this event, not all events are cancelable, and any attempt to
- * cancel a event that can't be will result in a IllegalArgumentException.
- *
- * The functionality of setting the canceled state is defined on a per-event bases.
- *
- * @param cancel The new canceled value
- */
- setCanceled(cancel: boolean): void;
-
- /**
- * Determines if this event expects a significant result value.
- *
- * Note:
- * Events with the HasResult annotation will have this method automatically added to return true.
- */
- hasResult(): boolean;
-
- /**
- * Returns the value set as the result of this event
- */
- getResult(): ForgeEvent$Result;
-
- /**
- * Sets the result value for this event, not all events can have a result set, and any attempt to
- * set a result for a event that isn't expecting it will result in a IllegalArgumentException.
- *
- * The functionality of setting the result is defined on a per-event bases.
- *
- * @param value The new result
- */
- setResult(value: ForgeEvent$Result): void;
-
- /**
- * Called by the base constructor, this is used by ASM generated
- * event classes to setup various functionality such as the listenerlist.
- */
- protected setup(): void;
-
- /**
- * Returns a ListenerList object that contains all listeners
- * that are registered to this event.
- *
- * @return Listener List
- */
- getListenerList(): NotFullyTyped;
-
- getPhase(): NotFullyTyped;
-}
-
-declare enum ForgeEvent$Result {
- DENY,
- DEFAULT,
- ALLOW,
-}
-
-declare class FMLNetworkEvent$ClientConnectedToServerEvent extends ForgeEvent {
- readonly isLocal: boolean;
- readonly connectionType: string;
-
- constructor(manager: any, connectionType: string);
-}
-
-declare class FMLNetworkEvent$ServerConnectionFromClientEvent extends ForgeEvent {
- readonly isLocal: boolean;
- constructor(manager: any);
-}
-
-declare class FMLNetworkEvent$ServerDisconnectionFromClientEvent extends ForgeEvent {
- constructor(manager: any);
-}
-
-declare class FMLNetworkEvent$ClientDisconnectionFromServerEvent extends ForgeEvent {
- constructor(manager: any);
-}
-
-declare class FMLNetworkEvent$CustomPacketRegistrationEvent extends ForgeEvent {
- readonly registrations: string[];
- readonly operation: string;
- readonly side: any;
-
- new<T>(
- manager: any,
- registrations: string[],
- operation: string,
- side: any,
- type: JavaClass<T>,
- ): FMLNetworkEvent$CustomPacketRegistrationEvent;
-}
-
-declare abstract class FMLNetworkEvent$CustomPacketEvent extends ForgeEvent {
- /**
- * The packet that generated the event
- */
- readonly packet: any;
-
- /**
- * Set this packet to reply to the originator
- */
- readonly reply: any;
-
- new<T>(
- thing: T,
- type: JavaClass<T>,
- manager: any,
- packet: any,
- ): FMLNetworkEvent$CustomPacketEvent;
-
- abstract side(): any;
-}
-
-declare class FMLNetworkEvent$ClientCustomPacketEvent extends FMLNetworkEvent$CustomPacketEvent {
- constructor(manager: any, packet: any);
-
- side(): any;
-}
-
-declare class FMLNetworkEvent$ServerCustomPacketEvent extends FMLNetworkEvent$CustomPacketEvent {
- constructor(manager: any, packet: any);
-
- side(): any;
-}
-
-declare class FMLNetworkEvent$CustomNetworkEvent extends ForgeEvent {
- readonly wrappedEevent: any;
-
- constructor(wrappedEvent: any);
-}
-
-declare interface FMLNetworkEvent extends ForgeEvent, NotFullyTyped {
- readonly class: JavaClass<FMLNetworkEvent>;
-}
-declare interface FMLNetworkEventStatic extends NotFullyTyped {
- readonly class: JavaClass<FMLNetworkEventStatic>;
-
- new <T>(thing: T, type: JavaClass<T>, manager: any): FMLNetworkEvent;
-
- /**
- * Fired at the client when a client connects to a server
- */
- readonly ClientConnectedToServerEvent: typeof FMLNetworkEvent$ClientConnectedToServerEvent;
- /**
- * Fired at the server when a client connects to the server.
- *
- * @author cpw
- *
- */
- readonly ServerConnectionFromClientEvent: typeof FMLNetworkEvent$ServerConnectionFromClientEvent;
- /**
- * Fired at the server when a client disconnects.
- *
- * @author cpw
- *
- */
- readonly ServerDisconnectionFromClientEvent: typeof FMLNetworkEvent$ServerDisconnectionFromClientEvent;
- /**
- * Fired at the client when the client is disconnected from the server.
- *
- * @author cpw
- *
- */
- readonly ClientDisconnectionFromServerEvent: typeof FMLNetworkEvent$ClientDisconnectionFromServerEvent;
- /**
- * Fired when the REGISTER/UNREGISTER for custom channels is received.
- *
- * @author cpw
- *
- * @param <S> The side
- */
- readonly CustomPacketRegistrationEvent: typeof FMLNetworkEvent$CustomPacketRegistrationEvent;
-
- readonly CustomPacketEvent: typeof FMLNetworkEvent$CustomPacketEvent;
-
- /**
- * Fired when a custom packet is received on the client for the channel
- * @author cpw
- *
- */
- readonly ClientCustomPacketEvent: typeof FMLNetworkEvent$ClientCustomPacketEvent;
-
- /**
- * Fired when a custom packet is received at the server for the channel
- * @author cpw
- *
- */
- readonly ServerCustomPacketEvent: typeof FMLNetworkEvent$ServerCustomPacketEvent;
- /**
- * Fired when a custom event, such as {@link NetworkHandshakeEstablished} is fired for the channel
- *
- * @author cpw
- *
- */
- readonly CustomNetworkEvent: typeof FMLNetworkEvent$CustomNetworkEvent;
-}
-
-declare class ForgeClientChatReceivedEvent extends ForgeEvent {
- class: JavaClass<ForgeClientChatReceivedEvent>;
- static class: JavaClass<typeof ForgeClientChatReceivedEvent>;
-
- /**
- * Introduced in 1.8:
- * 0 : Standard Text Message
- * 1 : 'System' message, displayed as standard text.
- * 2 : 'Status' message, displayed above action bar, where song notifications are.
- */
- type: number;
- message: MCIChatComponent;
-
- constructor(type: number, message: MCIChatComponent);
-}
-
-declare class ForgeRenderGameOverlayEvent extends ForgeEvent {
- class: JavaClass<ForgeRenderGameOverlayEvent>;
- static class: JavaClass<typeof ForgeRenderGameOverlayEvent>;
-
- // TODO
- [s: string]: any;
- static [s: string]: any;
-}
-declare class CancellableEventHelper {
- setCanceled: (cancelable: boolean) => void;
-}
-
-declare class ForgeMouseEvent extends ForgeEvent {
- class: JavaClass<ForgeMouseEvent>;
- static class: JavaClass<typeof ForgeMouseEvent>;
-
- readonly x: number;
- readonly y: number;
- readonly dx: number;
- readonly dy: number;
- readonly dwheel: number;
- readonly button: number;
- readonly buttonstate: boolean;
- readonly nanoseconds: number;
-
- constructor();
-}
-
-/***
- * Raised when the SoundManager tries to play a normal sound.
- *
- * If you return null from this function it will prevent the sound from being played,
- * you can return a different entry if you want to change the sound being played.
- */
-declare class ForgePlaySoundEvent extends ForgeEvent {
- class: JavaClass<ForgePlaySoundEvent>;
- static class: JavaClass<typeof ForgePlaySoundEvent>;
-
- // TODO
- [s: string]: any;
- static [s: string]: any;
-}
-
-declare class ForgeConfigChangedEvent extends ForgeEvent {
- class: JavaClass<ForgeConfigChangedEvent>;
- static class: JavaClass<typeof ForgeConfigChangedEvent>;
-
- // TODO
- [s: string]: any;
- static [s: string]: any;
-}
-
-declare class ForgeTickEvent extends ForgeEvent {
- class: JavaClass<ForgeTickEvent>;
- static class: JavaClass<typeof ForgeTickEvent>;
-
- // TODO
- [s: string]: any;
- static [s: string]: any;
-}
-declare namespace ForgeTickEvent {
- class ClientTickEvent extends ForgeTickEvent {
- class: JavaClass<ForgeTickEvent.ClientTickEvent>;
- static class: JavaClass<typeof ForgeTickEvent.ClientTickEvent>;
-
- // TODO
- [s: string]: any;
- static [s: string]: any;
- }
-}
-
-// TODO extend the right class
-declare class ForgeNoteBlockEvent extends ForgeEvent {
- class: JavaClass<ForgeNoteBlockEvent>;
- static class: JavaClass<typeof ForgeNoteBlockEvent>;
-
- // TODO
- [s: string]: any;
- static [s: string]: any;
-}
-declare namespace ForgeNoteBlockEvent {
- class Octave {
- // TODO
- [s: string]: any;
- static [s: string]: any;
- static LOW: ForgeNoteBlockEvent.Octave;
- static MID: ForgeNoteBlockEvent.Octave;
- static HIGH: ForgeNoteBlockEvent.Octave;
-
- static fromId(id: number): ForgeNoteBlockEvent.Octave;
- class: JavaClass<ForgeNoteBlockEvent.Octave>;
- static class: JavaClass<typeof ForgeNoteBlockEvent.Octave>;
- }
- class Note {
- // TODO
- [s: string]: any;
- static [s: string]: any;
- static F_SHARP: ForgeNoteBlockEvent.Note;
- static G: ForgeNoteBlockEvent.Note;
- static G_SHARP: ForgeNoteBlockEvent.Note;
- static A: ForgeNoteBlockEvent.Note;
- static A_SHARP: ForgeNoteBlockEvent.Note;
- static B: ForgeNoteBlockEvent.Note;
- static C: ForgeNoteBlockEvent.Note;
- static C_SHARP: ForgeNoteBlockEvent.Note;
- static D: ForgeNoteBlockEvent.Note;
- static D_SHARP: ForgeNoteBlockEvent.Note;
- static E: ForgeNoteBlockEvent.Note;
- static F: ForgeNoteBlockEvent.Note;
-
- static values: ForgeNoteBlockEvent.Note[];
-
- static fromId(id: number): ForgeNoteBlockEvent.Note;
- }
- class Play extends ForgeNoteBlockEvent {
- // TODO
- [s: string]: any;
- static [s: string]: any;
- setCanceled(canceled: boolean): void;
- class: JavaClass<ForgeNoteBlockEvent.Play>;
- static class: JavaClass<typeof ForgeNoteBlockEvent.Play>;
- }
- class Change extends ForgeNoteBlockEvent {
- // TODO
- [s: string]: any;
- static [s: string]: any;
- setCanceled(canceled: boolean): void;
- class: JavaClass<ForgeNoteBlockEvent.Change>;
- static class: JavaClass<typeof ForgeNoteBlockEvent.Change>;
-
- readonly oldNote: ForgeNoteBlockEvent.Note;
- readonly oldActive: ForgeNoteBlockEvent.Octave;
- }
-}
-
-declare class ForgeDrawBlockHighlightEvent extends ForgeEvent {
- class: JavaClass<ForgeDrawBlockHighlightEvent>;
- static class: JavaClass<typeof ForgeDrawBlockHighlightEvent>;
-
- // TODO
- [s: string]: any;
- static [s: string]: any;
-}
-
-declare class ForgeGuiOpenEvent extends ForgeEvent {
- class: JavaClass<ForgeGuiOpenEvent>;
- static class: JavaClass<typeof ForgeGuiOpenEvent>;
-
- gui: MCGuiScreen;
- constructor(gui: MCGuiScreen);
-}
-
-// TODO: extend the right class
-declare class ForgeEntityItemPickupEvent extends ForgeEvent {
- class: JavaClass<ForgeEntityItemPickupEvent>;
- static class: JavaClass<typeof ForgeEntityItemPickupEvent>;
-
- readonly item: MCEntityItem;
-
- constructor(player: MCEntityPlayer, item: MCEntityItem);
-
- // TODO
- [s: string]: any;
- static [s: string]: any;
-}
-
-// TODO extend the right class
-declare class ForgePlayerInteractEvent extends ForgeEvent {
- class: JavaClass<ForgePlayerInteractEvent>;
- static class: JavaClass<typeof ForgePlayerInteractEvent>;
-
- // TODO
- [s: string]: any;
- static [s: string]: any;
-
- readonly action: ForgePlayerInteractEvent.Action;
- readonly world: MCWorld;
- readonly pos: MCBlockPos;
- readonly face: MCEnumFacing;
-
- constructor(
- player: MCEntityPlayer,
- action: ForgePlayerInteractEvent.Action,
- pos: MCBlockPos,
- face: MCEnumFacing,
- world: MCWorld,
- );
-}
-declare namespace ForgePlayerInteractEvent {
- enum Action {
- RIGHT_CLICK_AIR,
- RIGHT_CLICK_BLOCK,
- LEFT_CLICK_BLOCK,
- }
-}
-
-declare class ForgeGuiScreenEvent extends ForgeEvent {
- class: JavaClass<ForgeGuiScreenEvent>;
- static class: JavaClass<typeof ForgeGuiScreenEvent>;
-
- readonly gui: MCGuiScreen;
-
- constructor(gui: MCGuiScreen);
-
- // TODO
- [s: string]: any;
- static [s: string]: any;
-}
-
-declare namespace ForgeGuiScreenEvent {
- class BackgroundDrawnEvent extends ForgeGuiScreenEvent {
- constructor(gui: MCGuiScreen);
-
- getMouseX(): number;
- getMouseY(): number;
- }
- class DrawScreenEvent extends ForgeGuiScreenEvent {
- readonly mouseX: number;
- readonly mouseY: number;
- readonly renderPartialTicks: number;
- constructor(
- gui: MCGuiScreen,
- mouseX: number,
- mouseY: number,
- renderPartialTicks: number,
- );
- }
-}
-declare namespace ForgeGuiScreenEvent.DrawScreenEvent {
- class Post extends ForgeGuiScreenEvent.DrawScreenEvent {
- constructor(
- gui: MCGuiScreen,
- mouseX: number,
- mouseY: number,
- renderPartialTicks: number,
- );
- }
- class Pre extends ForgeGuiScreenEvent.DrawScreenEvent {
- constructor(
- gui: MCGuiScreen,
- mouseX: number,
- mouseY: number,
- renderPartialTicks: number,
- );
- }
-}
-
-declare class ForgeBlockEvent extends ForgeEvent {
- class: JavaClass<ForgeBlockEvent>;
- static class: JavaClass<typeof ForgeBlockEvent>;
-
- // TODO
- [s: string]: any;
- static [s: string]: any;
-}
-
-declare namespace ForgeBlockEvent {
- class BreakEvent extends ForgeBlockEvent {
- constructor(
- world: MCWorld,
- pos: MCBlockPos,
- state: MCIBlockState,
- player: MCEntityPlayer,
- );
-
- getPlayer(): MCEntityPlayer;
-
- getExpToDrop(): number;
-
- setExpToDrop(exp: number): void;
- }
-}
-
-//#endregion
-
-//////////////////
-// Java Classes //
-//////////////////
-//#region
-
-//TODO
-declare class JavaColor extends NotFullyTyped {
- /**
- * The color black.
- */
- static black: JavaColor;
- /**
- * The color black.
- */
- static BLACK: JavaColor;
- /**
- * The color blue.
- */
- static blue: JavaColor;
- /**
- * The color blue.
- */
- static BLUE: JavaColor;
- /**
- * The color cyan.
- */
- static cyan: JavaColor;
- /**
- * The color cyan.
- */
- static CYAN: JavaColor;
- /**
- * The color dark gray.
- */
- static darkGray: JavaColor;
- /**
- * The color dark gray.
- */
- static DARK_GRAY: JavaColor;
- /**
- * The color gray.
- */
- static gray: JavaColor;
- /**
- * The color gray.
- */
- static GRAY: JavaColor;
- /**
- * The color green.
- */
- static green: JavaColor;
- /**
- * The color green.
- */
- static GREEN: JavaColor;
- /**
- * The color light gray.
- */
- static LIGHT_GRAY: JavaColor;
- /**
- * The color light gray.
- */
- static lightGray: JavaColor;
- /**
- * The color magenta.
- */
- static magenta: JavaColor;
- /**
- * The color magenta.
- */
- static MAGENTA: JavaColor;
- /**
- * The color orange.
- */
- static orange: JavaColor;
- /**
- * The color orange.
- */
- static ORANGE: JavaColor;
- /**
- * The color pink.
- */
- static pink: JavaColor;
- /**
- * The color pink.
- */
- static PINK: JavaColor;
- /**
- * The color red.
- */
- static red: JavaColor;
- /**
- * The color red.
- */
- static RED: JavaColor;
- /**
- * The color white.
- */
- static white: JavaColor;
- /**
- * The color white.
- */
- static WHITE: JavaColor;
- /**
- * The color yellow.
- */
- static yellow: JavaColor;
- /**
- * The color yellow.
- */
- static YELLOW: JavaColor;
-
- /**
- * Creates a color in the specified ColorSpace with the color components specified in the float array and the specified alpha.
- */
- constructor(cspace: any, components: number[], alpha: number);
- /**
- * Creates an opaque sRGB color with the specified red, green, and blue values in the range (0.0 - 1.0).
- */
- constructor(r: number, g: number, b: number);
- /**
- * Creates an opaque sRGB color with the specified combined RGB value consisting of the red component in bits 16-23, the green component in bits 8-15, and the blue component in bits 0-7.
- */
- constructor(rgb: number);
- /**
- * Creates an sRGB color with the specified combined RGBA value consisting of the alpha component in bits 24-31, the red component in bits 16-23, the green component in bits 8-15, and the blue component in bits 0-7.
- */
- constructor(rgb: number, hasalpha: boolean);
- /**
- * Creates an opaque sRGB color with the specified red, green, and blue values in the range (0 - 255).
- */
- constructor(r: number, g: number, b: number);
- /**
- * Creates an sRGB color with the specified red, green, blue, and alpha values in the range (0 - 255).
- */
- constructor(r: number, g: number, b: number, a: number);
-
- /**
- * Creates a new Color that is a brighter version of this Color.
- */
- brighter(): JavaColor;
-
- /**
- * Creates and returns a PaintContext used to generate a solid color field pattern.
- */
- createContext(cm: any, r: any, r2d: any, xform: any, hints: any): any;
-
- /**
- * Creates a new Color that is a darker version of this Color.
- */
- darker(): JavaColor;
-
- /**
- * Converts a String to an integer and returns the specified opaque Color.
- */
- static decode(nm: string): JavaColor;
-
- /**
- * Determines whether another object is equal to this Color.
- */
- equals(obj: any): boolean;
-
- /**
- * Returns the alpha component in the range 0-255.
- */
- getAlpha(): number;
-
- /**
- * Returns the blue component in the range 0-255 in the default sRGB space.
- */
- getBlue(): number;
-
- /**
- * Finds a color in the system properties.
- */
- static getColor(nm: string): JavaColor;
-
- /**
- * Finds a color in the system properties.
- */
- static getColor(nm: string, v: JavaColor): JavaColor;
-
- /**
- * Finds a color in the system properties.
- */
- static getColor(nm: string, v: number): JavaColor;
-
- /**
- * Returns a float array containing only the color components of the Color in the ColorSpace specified by the cspace parameter.
- */
- getColorComponents(cspace: any, compArray: number[]): number[];
-
- /**
- * Returns a float array containing only the color components of the Color, in the ColorSpace of the Color.
- */
- getColorComponents(compArray: number[]): number[];
-
- /**
- * Returns the ColorSpace of this Color.
- */
- getColorSpace(): any;
-
- /**
- * Returns a float array containing the color and alpha components of the Color, in the ColorSpace specified by the cspace parameter.
- */
- getComponents(cspace: any, compArray: number[]): number[];
-
- /**
- * Returns a float array containing the color and alpha components of the Color, in the ColorSpace of the Color.
- */
- getComponents(compArray: number[]): number[];
-
- /**
- * Returns the green component in the range 0-255 in the default sRGB space.
- */
- getGreen(): number;
-
- /**
- * Creates a Color object based on the specified values for the HSB color model.
- */
- static getHSBColor(h: number, s: number, b: number): JavaColor;
-
- /**
- * Returns the red component in the range 0-255 in the default sRGB space.
- */
- getRed(): number;
-
- /**
- * Returns the RGB value representing the color in the default sRGB ColorModel.
- */
- getRGB(): number;
-
- /**
- * Returns a float array containing only the color components of the Color, in the default sRGB color space.
- */
- getRGBColorComponents(compArray: number[]): number[];
-
- /**
- * Returns a float array containing the color and alpha components of the Color, as represented in the default sRGB color space.
- */
- getRGBComponents(compArray: number[]): number[];
-
- /**
- * Returns the transparency mode for this Color.
- */
- getTransparency(): number;
-
- /**
- * Computes the hash code for this Color.
- */
- hashCode(): number;
-
- /**
- * Converts the components of a color, as specified by the HSB model, to an equivalent set of values for the default RGB model.
- */
- static HSBtoRGB(hue: number, saturation: number, brightness: number): number;
-
- /**
- * Converts the components of a color, as specified by the default RGB model, to an equivalent set of values for hue, saturation, and brightness that are the three components of the HSB model.
- */
- static RGBtoHSB(r: number, g: number, b: number, hsbvals: number[]): number[];
-
- /**
- * Returns a string representation of this Color.
- */
- toString(): string;
-}
-
-declare class Vector3f {
- x: number;
- y: number;
- z: number;
-
- constructor(x: number, y: number, z: number);
-
- set(x: number, y: number): void;
-
- set(x: number, y: number, z: number): void;
- /**
- * @return the length squared of the vector
- */
- lengthSquared(): number;
-
- /**
- * Translate a vector
- * @param x The translation in x
- * @param y the translation in y
- * @return this
- */
- translate(x: number, y: number, z: number): Vector3f;
-
- /**
- * Add a vector to another vector and place the result in a destination
- * vector.
- * @param left The LHS vector
- * @param right The RHS vector
- * @param dest The destination vector, or null if a new vector is to be created
- * @return the sum of left and right in dest
- */
- static add(left: Vector3f, right: Vector3f, dest: Vector3f): Vector3f;
-
- /**
- * Subtract a vector from another vector and place the result in a destination
- * vector.
- * @param left The LHS vector
- * @param right The RHS vector
- * @param dest The destination vector, or null if a new vector is to be created
- * @return left minus right in dest
- */
- static sub(left: Vector3f, right: Vector3f, dest: Vector3f): Vector3f;
-
- /**
- * The cross product of two vectors.
- *
- * @param left The LHS vector
- * @param right The RHS vector
- * @param dest The destination result, or null if a new vector is to be created
- * @return left cross right
- */
- static cross(left: Vector3f, right: Vector3f, dest: Vector3f): Vector3f;
-
- /**
- * Negate a vector and place the result in a destination vector.
- * @param dest The destination vector or null if a new vector is to be created
- * @return the negated vector
- */
- negate(dest: Vector3f): Vector3f;
-
- /**
- * Normalise this vector and place the result in another vector.
- * @param dest The destination vector, or null if a new vector is to be created
- * @return the normalised vector
- */
- normalise(dest: Vector3f): Vector3f;
-
- /**
- * The dot product of two vectors is calculated as
- * v1.x * v2.x + v1.y * v2.y + v1.z * v2.z
- * @param left The LHS vector
- * @param right The RHS vector
- * @return left dot right
- */
- static dot(left: Vector3f, right: Vector3f): number;
-
- /**
- * Calculate the angle between two vectors, in radians
- * @param a A vector
- * @param b The other vector
- * @return the angle between the two vectors, in radians
- */
- static angle(a: Vector3f, b: Vector3f): number;
-
- toString(): string;
-
- getX(): number;
- getY(): number;
- setX(x: number): void;
- setY(y: number): void;
- setZ(z: number): void;
- getZ(): number;
-
- equals(obj: any): boolean;
-}
-
-declare class Vector2f {
- x: number;
- y: number;
- /**
- * Constructor for Vector3f.
- */
- constructor();
-
- constructor(src: Vector2f);
-
- constructor(x: number, y: number);
-
- set(x: number, y: number): void;
-
- /**
- * Load from another Vector2f
- * @param src The source vector
- * @return this
- */
- set(src: Vector2f): Vector2f;
-
- /**
- * @return the length squared of the vector
- */
- lengthSquared(): number;
-
- /**
- * Translate a vector
- * @param x The translation in x
- * @param y the translation in y
- * @return this
- */
- translate(x: number, y: number): Vector2f;
-
- /**
- * Negate a vector
- * @return this
- */
- negate(): Vector2f;
-
- /**
- * Negate a vector and place the result in a destination vector.
- * @param dest The destination vector or null if a new vector is to be created
- * @return the negated vector
- */
- negate(dest: Vector2f): Vector2f;
-
- /**
- * Normalise this vector and place the result in another vector.
- * @param dest The destination vector, or null if a new vector is to be created
- * @return the normalised vector
- */
- normalise(dest: Vector2f): Vector2f;
-
- /**
- * The dot product of two vectors is calculated as
- * v1.x * v2.x + v1.y * v2.y + v1.z * v2.z
- * @param left The LHS vector
- * @param right The RHS vector
- * @return left dot right
- */
- static dot(left: Vector2f, right: Vector2f): number;
-
- /**
- * Calculate the angle between two vectors, in radians
- * @param a A vector
- * @param b The other vector
- * @return the angle between the two vectors, in radians
- */
- static angle(a: Vector2f, b: Vector2f): number;
-
- /**
- * Add a vector to another vector and place the result in a destination
- * vector.
- * @param left The LHS vector
- * @param right The RHS vector
- * @param dest The destination vector, or null if a new vector is to be created
- * @return the sum of left and right in dest
- */
- static add(left: Vector2f, right: Vector2f, dest: Vector2f): Vector2f;
-
- /**
- * Subtract a vector from another vector and place the result in a destination
- * vector.
- * @param left The LHS vector
- * @param right The RHS vector
- * @param dest The destination vector, or null if a new vector is to be created
- * @return left minus right in dest
- */
- static sub(left: Vector2f, right: Vector2f, dest: Vector2f): Vector2f;
-
- scale(scale: number): Vector2f;
-
- toString(): string;
-
- /**
- * @return x
- */
- getX(): number;
-
- /**
- * @return Y
- */
- getY(): number;
-
- /**
- * Set X
- * @param x
- */
- setX(x: number): void;
-
- /**
- * Set Y
- * @param y
- */
- setY(y: number): void;
-
- equals(obj: any): boolean;
-}
-declare class JavaBufferedImage extends NotFullyTyped {}
-
-declare class JavaGL11 extends NotFullyTyped {}
-declare class JavaGL12 extends NotFullyTyped {}
-declare class JavaGL13 extends NotFullyTyped {}
-declare class JavaGL14 extends NotFullyTyped {}
-declare class JavaGL15 extends NotFullyTyped {}
-declare class JavaGL20 extends NotFullyTyped {}
-declare class JavaGL21 extends NotFullyTyped {}
-declare class JavaGL30 extends NotFullyTyped {}
-declare class JavaGL31 extends NotFullyTyped {}
-declare class JavaGL32 extends NotFullyTyped {}
-declare class JavaGL33 extends NotFullyTyped {}
-declare class JavaGL40 extends NotFullyTyped {}
-declare class JavaGL41 extends NotFullyTyped {}
-declare class JavaGL42 extends NotFullyTyped {}
-declare class JavaGL43 extends NotFullyTyped {}
-declare class JavaGL44 extends NotFullyTyped {}
-declare class JavaGL45 extends NotFullyTyped {}
-
-declare class JavaThread {
- /**
- * Allocates a new Thread
- */
- constructor(method: () => void);
-
- /**
- * Causes the currently executing thread to sleep (temporarily cease execution) for the specified number of milliseconds plus the specified number of nanoseconds, subject to the precision and accuracy of system timers and schedulers.
- */
- static sleep(millis: number, nanos?: number): void;
-
- /**
- * Returns a reference to the currently executing thread object.
- */
- static currentThread(): JavaThread;
-
- /**
- * Causes this thread to begin execution; the Java Virtual Machine calls the run method of this thread.
- */
- start(): void;
-
- /**
- * Returns an estimate of the number of active threads in the current thread's thread group and its subgroups
- */
- static activeCount(): number;
-
- /**
- * Determines if the currently running thread has permission to modify this thread.
- */
- checkAccess(): void;
-
- /**
- * The definition of this call depends on suspend(), which is deprecated. Further, the results of this call were never well-defined.
- */
- countStackFrames(): number;
-
- /**
- * This method was originally designed to destroy this thread without any cleanup. Any monitors it held would have remained locked. However, the method was never implemented. If if were to be implemented, it would be deadlock-prone in much the manner of suspend(). If the target thread held a lock protecting a critical system resource when it was destroyed, no thread could ever access this resource again. If another thread ever attempted to lock this resource, deadlock would result. Such deadlocks typically manifest themselves as "frozen" processes. For more information, see Why are Thread.stop, Thread.suspend and Thread.resume Deprecated?.
- */
- destroy(): void;
-
- /**
- * Prints a stack trace of the current thread to the standard error stream.
- */
- static dumpStack(): void;
-
- /**
- * Copies into the specified array every active thread in the current thread's thread group and its subgroups.
- */
- static enumerate(tarray: Thread[]): number;
-
- /**
- * Returns the identifier of this Thread.
- */
- getId(): number;
-
- /**
- * Returns this thread's name.
- */
- getName(): string;
-
- /**
- * Returns this thread's priority.
- */
- getPriority(): number;
-
- /**
- * Returns true if and only if the current thread holds the monitor lock on the specified object.
- */
- static holdsLock(obj: any): boolean;
-
- /**
- * Interrupts this thread.
- */
- interrupt(): void;
-
- /**
- * Tests whether the current thread has been interrupted.
- */
- static interrupted(): boolean;
-
- /**
- * Tests if this thread is alive.
- */
- isAlive(): boolean;
-
- /**
- * Tests if this thread is a daemon thread.
- */
- isDaemon(): boolean;
-
- /**
- * Tests whether this thread has been interrupted.
- */
- isInterrupted(): boolean;
-
- /**
- * Waits for this thread to die.
- */
- join(): void;
-
- /**
- * Waits at most millis milliseconds for this thread to die.
- */
- join(millis: number): void;
-
- /**
- * Waits at most millis milliseconds plus nanos nanoseconds for this thread to die.
- */
- join(millis: number, nanos: number): void;
-
- /**
- * This method exists solely for use with suspend(), which has been deprecated because it is deadlock-prone. For more information, see Why are Thread.stop, Thread.suspend and Thread.resume Deprecated?.
- */
- resume(): void;
-
- /**
- * If this thread was constructed using a separate Runnable run object, then that Runnable object's run method is called; otherwise, this method does nothing and returns.
- */
- run(): void;
-
- /**
- * Marks this thread as either a daemon thread or a user thread.
- */
- setDaemon(on: boolean): void;
-
- /**
- * Changes the name of this thread to be equal to the argument name.
- */
- setName(name: string): void;
-
- /**
- * Changes the priority of this thread.
- */
- setPriority(newPriority: number): void;
-
- /**
- * Causes this thread to begin execution; the Java Virtual Machine calls the run method of this thread.
- */
- start(): void;
-
- /**
- * This method is inherently unsafe. Stopping a thread with Thread.stop causes it to unlock all of the monitors that it has locked (as a natural consequence of the unchecked ThreadDeath exception propagating up the stack). If any of the objects previously protected by these monitors were in an inconsistent state, the damaged objects become visible to other threads, potentially resulting in arbitrary behavior. Many uses of stop should be replaced by code that simply modifies some variable to indicate that the target thread should stop running. The target thread should check this variable regularly, and return from its run method in an orderly fashion if the variable indicates that it is to stop running. If the target thread waits for long periods (on a condition variable, for example), the interrupt method should be used to interrupt the wait. For more information, see Why are Thread.stop, Thread.suspend and Thread.resume Deprecated?.
- */
- stop(): void;
-
- /**
- * This method has been deprecated, as it is inherently deadlock-prone. If the target thread holds a lock on the monitor protecting a critical system resource when it is suspended, no thread can access this resource until the target thread is resumed. If the thread that would resume the target thread attempts to lock this monitor prior to calling resume, deadlock results. Such deadlocks typically manifest themselves as "frozen" processes. For more information, see Why are Thread.stop, Thread.suspend and Thread.resume Deprecated?.
- */
- suspend(): void;
-
- /**
- * Returns a string representation of this thread, including the thread's name, priority, and thread group.
- */
- toString(): string;
-
- /**
- * A hint to the scheduler that the current thread is willing to yield its current use of a processor.
- */
- yield(): void;
-}
-
-declare class JavaUUID {
- /**
- * Constructs a new UUID using the specified data.
- */
- constructor(mostSigBitswNBT: number, leastSigBits: number);
-
- /**
- * Creates a UUID from the string standard representation as described in the toString() method.
- */
- static fromString(name: string): JavaUUID;
-
- /**
- * Static factory to retrieve a type 3 (name based) UUID based on the specified byte array.
- */
- static nameUUIDFromBytes(name: number[]): JavaUUID;
-
- /**
- * Static factory to retrieve a type 4 (pseudo randomly generated) UUID.
- */
- static randomUUID(): JavaUUID;
-
- /**
- * The clock sequence value associated with this UUID.
- */
- clockSequence(): number;
- /**
- * Compares this UUID with the specified UUID.
- */
- compareTo(val: JavaUUID): number;
-
- /**
- * Compares this object to the specified object.
- */
- equals(obj: any): boolean;
- /**
- * Returns the least significant 64 bits of this UUID's 128 bit value.
- */
- getLeastSignificantBits(): number;
-
- /**
- * Returns the most significant 64 bits of this UUID's 128 bit value.
- */
- getMostSignificantBits(): number;
-
- /**
- * Returns a hash code for this UUID.
- */
- hashCode(): number;
-
- /**
- * The node value associated with this UUID.
- */
- node(): number;
-
- /**
- * The timestamp value associated with this UUID.
- */
- timestamp(): number;
-
- /**
- * Returns a String object representing this UUID.
- */
- toString(): string;
-
- /**
- * The variant number associated with this UUID.
- */
- variant(): number;
-
- /**
- * The version number associated with this UUID.
- */
- version(): number;
-}
-/**An abstract representation of file and directory pathnames. */
-declare class JavaFile {
- /**
- * The system-dependent path-separator character, represented as a string for convenience.
- */
- static pathSeperator: string;
- /**
- * The system-dependent path-separator character.
- */
- static pathSeperatorChar: number;
- /**
- * The system-dependent default name-separator character, represented as a string for convenience.
- */
- static separator: string;
- /**
- * The system-dependent default name-separator character.
- */
- static separatorChar: number;
-
- /**
- * Creates a new File instance from a parent abstract pathname and a child pathname string.
- */
- constructor(parent: JavaFile, child: string);
-
- /**
- * Creates a new File instance by converting the given pathname string into an abstract pathname.
- */
- constructor(pathname: string);
-
- /**
- * Creates a new File instance from a parent pathname string and a child pathname string.
- */
- constructor(parent: string, child: string);
-
- /**
- * Creates a new File instance by converting the given file: URI into an abstract pathname.
- */
- constructor(uri: JavaURI);
-
- /**
- * Tests whether the application can execute the file denoted by this abstract pathname.
- */
- canExecute(): boolean;
-
- /**
- * Tests whether the application can read the file denoted by this abstract pathname.
- */
- canRead(): boolean;
-
- /**
- * Tests whether the application can modify the file denoted by this abstract pathname.
- */
- canWrite(): boolean;
-
- /**
- * Compares two abstract pathnames lexicographically.
- */
- compareTo(pathname: JavaFile): number;
-
- /**
- * Atomically creates a new, empty file named by this abstract pathname if and only if a file with this name does not yet exist.
- */
- createNewFile(): boolean;
-
- /**
- * Creates an empty file in the default temporary-file directory, using the given prefix and suffix to generate its name.
- */
- static createTempFile(prefix: string, suffix: string): JavaFile;
-
- /**
- * Creates a new empty file in the specified directory, using the given prefix and suffix strings to generate its name.
- */
- static createTempFile(
- prefix: string,
- suffix: string,
- directory: JavaFile,
- ): JavaFile;
-
- /**
- * Deletes the file or directory denoted by this abstract pathname.
- */
- delete(): boolean;
-
- /**
- * Requests that the file or directory denoted by this abstract pathname be deleted when the virtual machine terminates.
- */
- deleteOnExit(): void;
-
- /**
- * Tests this abstract pathname for equality with the given object.
- */
- equals(obj: any): boolean;
-
- /**
- * Tests whether the file or directory denoted by this abstract pathname exists.
- */
- exists(): boolean;
-
- /**
- * Returns the absolute form of this abstract pathname.
- */
- getAbsoluteFile(): JavaFile;
-
- /**
- * Returns the absolute pathname string of this abstract pathname.
- */
- getAbsolutePath(): string;
-
- /**
- * Returns the canonical form of this abstract pathname.
- */
- getCanonicalFile(): JavaFile;
-
- /**
- * Returns the canonical pathname string of this abstract pathname.
- */
- getCanonicalPath(): string;
-
- /**
- * Returns the number of unallocated bytes in the partition named by this abstract path name.
- */
- getFreeSpace(): number;
-
- /**
- * Returns the name of the file or directory denoted by this abstract pathname.
- */
- getName(): string;
-
- /**
- * Returns the pathname string of this abstract pathname's parent, or null if this pathname does not name a parent directory.
- */
- getParent(): string;
-
- /**
- * Returns the abstract pathname of this abstract pathname's parent, or null if this pathname does not name a parent directory.
- */
- getParentFile(): JavaFile;
-
- /**
- * Converts this abstract pathname into a pathname string.
- */
- getPath(): string;
-
- /**
- * Returns the size of the partition named by this abstract pathname.
- */
- getTotalSpace(): number;
-
- /**
- * Returns the number of bytes available to this virtual machine on the partition named by this abstract pathname.
- */
- getUsableSpace(): number;
-
- /**
- * Computes a hash code for this abstract pathname.
- */
- hashCode(): number;
-
- /**
- * Tests whether this abstract pathname is absolute.
- */
- isAbsolute(): boolean;
-
- /**
- * Tests whether the file denoted by this abstract pathname is a directory.
- */
- isDirectory(): boolean;
-
- /**
- * Tests whether the file denoted by this abstract pathname is a normal file.
- */
- isFile(): boolean;
-
- /**
- * Tests whether the file named by this abstract pathname is a hidden file.
- */
- isHidden(): boolean;
-
- /**
- * Returns the time that the file denoted by this abstract pathname was last modified.
- */
- lastModified(): number;
-
- /**
- * Returns the length of the file denoted by this abstract pathname.
- */
- length(): number;
-
- /**
- * Returns an array of strings naming the files and directories in the directory denoted by this abstract pathname.
- */
- list(): string[];
-
- /**
- * Returns an array of strings naming the files and directories in the directory denoted by this abstract pathname that satisfy the specified filter.
- */
- list(filter: JavaFileNameFilter): string[];
-
- /**
- * Returns an array of abstract pathnames denoting the files in the directory denoted by this abstract pathname.
- */
- listFiles(): JavaFile[];
-
- /**
- * Returns an array of abstract pathnames denoting the files and directories in the directory denoted by this abstract pathname that satisfy the specified filter.
- */
- listFiles(filter: JavaFileNameFilter): JavaFile[];
-
- /**
- * List the available filesystem roots.
- */
- static listRoots(): JavaFile[];
-
- /**
- * Creates the directory named by this abstract pathname.
- */
- mkdir(): boolean;
-
- /**
- * Creates the directory named by this abstract pathname, including any necessary but nonexistent parent directories.
- */
- mkdirs(): boolean;
-
- /**
- * Renames the file denoted by this abstract pathname.
- */
- renameTo(dest: JavaFile): boolean;
-
- /**
- * A convenience method to set the owner's execute permission for this abstract pathname.
- */
- setExecutable(executable: boolean): boolean;
-
- /**
- * Sets the owner's or everybody's execute permission for this abstract pathname.
- */
- setExecutable(executable: boolean, ownderOnly: boolean): boolean;
-
- /**
- * Sets the last-modified time of the file or directory named by this abstract pathname.
- */
- setLastModified(time: number): boolean;
-
- /**
- * A convenience method to set the owner's read permission for this abstract pathname.
- */
- setReadable(readable: boolean): boolean;
-
- /**
- * Sets the owner's or everybody's read permission for this abstract pathname.
- */
- setReadable(readable: boolean, ownerOnly: boolean): boolean;
-
- /**
- * Marks the file or directory named by this abstract pathname so that only read operations are allowed.
- */
- setReadOnly(): boolean;
-
- /**
- * A convenience method to set the owner's write permission for this abstract pathname.
- */
- setWritable(writable: boolean): boolean;
-
- /**
- * Sets the owner's or everybody's write permission for this abstract pathname.
- */
- setWritable(writable: boolean, ownerOnly: boolean): boolean;
-
- /**
- * Returns a java.nio.file.Path object constructed from the this abstract path.
- */
- toPath(): JavaPath;
-
- /**
- * Returns the pathname string of this abstract pathname.
- */
- toString(): string;
-
- /**
- * Constructs a file: URI that represents this abstract pathname.
- */
- toURI(): JavaURI;
-
- /**
- * DEPRECATEDThis method does not automatically escape characters that are illegal in URLs. It is recommended that new code convert an abstract pathname into a URL by first converting it into a URI, via the toURI method, and then converting the URI into a URL via the URI.toURL method.
- */
- toURL(): JavaURL;
-}
-//TODO
-/**An object that may be used to locate a file in a file system. It will typically represent a system dependent file path. */
-declare interface JavaPath extends NotFullyTyped {
- /**
- * Compares two abstract paths lexicographically.
- */
- compareTo(other: JavaPath): number;
-
- /**
- * Tests if this path ends with the given path.
- */
- endsWith(other: JavaPath): boolean;
-
- /**
- * Tests if this path ends with a Path, constructed by converting the given path string, in exactly the manner specified by the endsWith(Path) method.
- */
- endsWith(other: string): boolean;
-
- /**
- * Tests this path for equality with the given object.
- */
- equals(other: any): boolean;
-
- /**
- * Returns the name of the file or directory denoted by this path as a Path object.
- */
- getFileName(): JavaPath;
-}
-
-declare interface JavaFileNameFilter {
- /**
- * Tests if a specified file should be included in a file list.
- */
- accept(dir: JavaFile, name: string): boolean;
-}
-
-declare class JavaClass<T> {
- /**
- * casts this Class object to represent a subclass of the class represented by the specified class object.
- */
- asSubclass<U>(clazz: JavaClass<U>): JavaClass<U>;
-
- /**
- * Casts an object to the class or interface represented by this Class object.
- */
- cast(obj: any): T;
-
- /**
- * Returns the assertion status that would be assigned to this class if it were to be initialized at the time this method is invoked.
- */
- desiredAssertionStatus(): boolean;
-
- /**
- * Returns the Class object associated with the class or interface with the given string name.
- */
- static forName(className: string): JavaClass<any>;
-
- /**
- * Returns the canonical name of the underlying class as defined by the Java Language Specification.
- */
- getCanonicalName(): string;
-
- /**
- * Returns an array containing Class objects representing all the public classes and interfaces that are members of the class represented by this Class object.
- */
- getClasses(): JavaClass<any>[];
-
- /**
- * Returns the Class representing the component type of an array.
- */
- getComponentType(): JavaClass<any>;
-
- /**
- * Returns an array of Class objects reflecting all the classes and interfaces declared as members of the class represented by this Class object.
- */
- getDeclaredClasses(): JavaClass<any>[];
-
- /**
- * Returns a Field object that reflects the specified declared field of the class or interface represented by this Class object.
- */
- getDeclaredField(name: string): JavaField;
-
- /**
- * Returns an array of Field objects reflecting all the fields declared by the class or interface represented by this Class object.
- */
- getDeclaredFields(): JavaField[];
-
- /**
- * Returns a Method object that reflects the specified declared method of the class or interface represented by this Class object.
- */
- getDeclaredMethod(
- name: string,
- ...parameterTypes: JavaClass<any>[]
- ): JavaMethod;
-
- /**
- * Returns an array containing Method objects reflecting all the declared methods of the class or interface represented by this Class object, including public, protected, default (package) access, and private methods, but excluding inherited methods.
- */
- getDeclaredMethods(): JavaMethod[];
-
- /**
- * If the class or interface represented by this Class object is a member of another class, returns the Class object representing the class in which it was declared.
- */
- getDeclaringClass(): JavaClass<any>;
-
- /**
- * Returns the immediately enclosing class of the underlying class.
- */
- getEnclosingClass(): JavaClass<any>;
-
- /**
- * If this Class object represents a local or anonymous class within a method, returns a Method object representing the immediately enclosing method of the underlying class.
- */
- getEnclosingMethod(): JavaMethod;
-
- /**
- * Returns the elements of this enum class or null if this Class object does not represent an enum type.
- */
- getEnumConstants(): T[];
-
- /**
- * Returns a Field object that reflects the specified public member field of the class or interface represented by this Class object.
- */
- getField(name: string): JavaField;
-
- /**
- * Returns an array containing Field objects reflecting all the accessible public fields of the class or interface represented by this Class object.
- */
- getFields(): JavaField[];
-
- /**
- * Determines the interfaces implemented by the class or interface represented by this object.
- */
- getInterfaces(): JavaClass<any>[];
-
- /**
- * Returns a Method object that reflects the specified public member method of the class or interface represented by this Class object.
- */
- getMethod(name: string, ...parameterTypes: JavaClass<any>[]): JavaMethod;
-
- /**
- * Returns an array containing Method objects reflecting all the public methods of the class or interface represented by this Class object, including those declared by the class or interface and those inherited from superclasses and superinterfaces.
- */
- getMethods(): JavaMethod[];
-
- /**
- * Returns the Java language modifiers for this class or interface, encoded in an integer.
- */
- getModifiers(): number;
-
- /**
- * Returns the name of the entity (class, interface, array class, primitive type, or void) represented by this Class object, as a String.
- */
- getName(): string;
-
- /**
- * Finds a resource with a given name.
- */
- getResource(name: string): JavaURL;
-
- /**
- * Finds a resource with a given name.
- */
- getResourceAsStream(name: string): JavaInputStream;
-
- /**
- * Gets the signers of this class.
- */
- getSigners(): any[] | null;
-
- /**
- * Returns the simple name of the underlying class as given in the source code.
- */
- getSimpleName(): string;
-
- /**
- * Returns the Class representing the superclass of the entity (class, interface, primitive type or void) represented by this Class.
- */
- getSuperClass(): JavaClass<any>;
-
- /**
- * Return an informative string for the name of this type.
- */
- getTypeName(): string;
-
- /**
- * Returns true if this Class object represents an annotation type.
- */
- isAnnotation(): boolean;
-
- /**
- * Returns true if and only if the underlying class is an anonymous class.
- */
- isAnonymousClass(): boolean;
-
- /**
- * Determines if this Class object represents an array class.
- */
- isArray(): boolean;
-
- /**
- * Determines if the class or interface represented by this Class object is either the same as, or is a superclass or superinterface of, the class or interface represented by the specified Class parameter.
- */
- isAssignableFrom(cls: JavaClass<any>): boolean;
-
- /**
- * Returns true if and only if this class was declared as an enum in the source code.
- */
- isEnum(): boolean;
-
- /**
- * Determines if the specified Object is assignment-compatible with the object represented by this Class.
- */
- isInstance(obj: any): boolean;
-
- /**
- * Determines if the specified Class object represents an interface type.
- */
- isInterface(): boolean;
-
- /**
- * Returns true if and only if the underlying class is a local class.
- */
- isLocalClass(): boolean;
-
- /**
- * Returns true if and only if the underlying class is a member class.
- */
- isMemberClass(): boolean;
-
- /**
- * Determines if the specified Class object represents a primitive type.
- */
- isPrimitive(): boolean;
-
- /**
- * Returns true if this class is a synthetic class; returns false otherwise.
- */
- isSynthetic(): boolean;
-
- /**
- * Creates a new instance of the class represented by this Class object.
- */
- newInstance(): T;
-
- /**
- * Returns a string describing this Class, including information about modifiers and type parameters.
- */
- toGenericString(): string;
-
- /**
- * Converts the object to a string.
- */
- toString(): string;
-}
-
-declare class JavaURL {
- /**
- * Creates a URL object from the String representation.
- */
- constructor(spec: string);
-
- /**
- * Creates a URL object from the specified protocol, host, port number, and file.
- */
- constructor(protocol: string, host: string, port: number, file: string);
-
- /**
- * Creates a URL object from the specified protocol, host, port number, file, and handler.
- */
- constructor(
- protocol: string,
- host: string,
- port: number,
- file: string,
- handler: JavaURLStreamHandler,
- );
-
- /**
- * Creates a URL from the specified protocol name, host name, and file name.
- */
- constructor(protocol: string, host: string, file: string);
-
- /**
- * Creates a URL by parsing the given spec within a specified context.
- */
- constructor(context: JavaURL, spec: string);
-
- /**
- * Creates a URL by parsing the given spec with the specified handler within a specified context.
- */
- constructor(context: JavaURL, spec: string, handler: JavaURLStreamHandler);
-
- /**
- * Compares this URL for equality with another object.
- */
- equals(obj: any): boolean;
-
- /**
- * Gets the authority part of this URL.
- */
- getAuthority(): string;
-
- /**
- * Gets the contents of this URL.
- */
- getContent(): any;
-
- /**
- * Gets the contents of this URL.
- */
- getContent(classes: JavaClass<any>[]): any;
-
- /**
- * Gets the default port number of the protocol associated with this URL.
- */
- getDefaultPort(): number;
-
- /**
- * Gets the file name of this URL.
- */
- getFile(): string;
-
- /**
- * Gets the host name of this URL, if applicable.
- */
- getHost(): string;
-
- /**
- * Gets the path part of this URL.
- */
- getPath(): string;
-
- /**
- * Gets the port number of this URL.
- */
- getPort(): number;
-
- /**
- * Gets the protocol name of this URL.
- */
- getProtocol(): string;
-
- /**
- * Gets the query part of this URL.
- */
- getQuery(): string;
-
- /**
- * Gets the anchor (also known as the "reference") of this URL.
- */
- getRef(): string;
-
- /**
- * Gets the userInfo part of this URL.
- */
- getUserInfo(): string;
-
- /**
- * Returns a URLConnection instance that represents a connection to the remote object referred to by the URL.
- */
- openConnection(): JavaURLConnection;
-
- /**
- * Creates an integer suitable for hash table indexing.
- */
- hashCode(): number;
-
- /**
- * Same as openConnection(), except that the connection will be made through the specified proxy; Protocol handlers that do not support proxing will ignore the proxy parameter and make a normal connection.
- */
- openConnection(proxy: JavaProxy): JavaURLConnection;
-
- /**
- * Opens a connection to this URL and returns an InputStream for reading from that connection.
- */
- openStream(): JavaInputStream;
-
- /**
- * Compares two URLs, excluding the fragment component.
- */
- sameFile(other: JavaURL): boolean;
-
- /**
- * Sets an application's URLStreamHandlerFactory.
- */
- static setURLStreamHandlerFactory(fac: JavaURLStreamHandlerFactory): void;
-
- /**
- * Constructs a string representation of this URL.
- */
- toExternalForm(): string;
-
- /**
- * Constructs a string representation of this URL.
- */
- toString(): string;
-
- /**
- * Returns a URI equivalent to this URL.
- */
- toURI(): JavaURI;
-}
-
-declare class JavaURI {
- /**
- * Constructs a URI by parsing the given string.
- */
- constructor(str: string);
-
- /**
- * Constructs a URI from the given components.
- */
- constructor(scheme: string, ssp: string, fragment: string);
-
- /**
- * Constructs a hierarchical URI from the given components.
- */
- constructor(
- scheme: string,
- userInfo: string,
- host: string,
- port: number,
- path: string,
- query: string,
- fragment: string,
- );
-
- /**
- * Constructs a hierarchical URI from the given components.
- */
- constructor(scheme: string, host: string, path: string, fragment: string);
-
- /**
- * Constructs a hierarchical URI from the given components.
- */
- constructor(
- scheme: string,
- authority: string,
- path: string,
- query: string,
- fragment: string,
- );
-
- /**
- * Compares this URI to another object, which must be a URI.
- */
- compareTo(that: JavaURI): number;
-
- /**
- * Creates a URI by parsing the given string.
- */
- static create(str: string): JavaURI;
-
- /**
- * Tests this URI for equality with another object.
- */
- equals(obj: any): boolean;
-
- /**
- * Returns the decoded authority component of this URI.
- */
- getAuthority(): string;
-
- /**
- * Returns the decoded fragment component of this URI.
- */
- getFragment(): string;
-
- /**
- * Returns the host component of this URI.
- */
- getHost(): string;
-
- /**
- * Returns the decoded path component of this URI.
- */
- getPath(): string;
-
- /**
- * Returns the port number of this URI.
- */
- getPort(): number;
-
- /**
- * Returns the decoded query component of this URI.
- */
- getQuery(): string;
-
- /**
- * Returns the raw authority component of this URI.
- */
- getRawAuthority(): string;
-
- /**
- * Returns the raw fragment component of this URI.
- */
- getRawFragment(): string;
-
- /**
- * Returns the raw path component of this URI.
- */
- getRawPath(): string;
-
- /**
- * Returns the raw query component of this URI.
- */
- getRawQuery(): string;
-
- /**
- * Returns the raw scheme-specific part of this URI.
- */
- getRawSchemeSpecificPart(): string;
-
- /**
- * Returns the raw user-information component of this URI.
- */
- getRawUserInfo(): string;
-
- /**
- * Returns the scheme component of this URI.
- */
- getScheme(): string;
-
- /**
- * Returns the decoded scheme-specific part of this URI.
- */
- getSchemeSpecificPart(): string;
-
- /**
- * Returns the decoded user-information component of this URI.
- */
- getUserInfo(): string;
-
- /**
- * Returns a hash-code value for this URI.
- */
- hashCode(): number;
-
- /**
- * Tells whether or not this URI is absolute.
- */
- isAbsolute(): boolean;
-
- /**
- * Tells whether or not this URI is opaque.
- */
- isOpaque(): boolean;
-
- /**
- * Normalizes this URI's path.
- */
- normalize(): JavaURI;
-
- /**
- * Attempts to parse this URI's authority component, if defined, into user-information, host, and port components.
- */
- parseServerAuthority(): JavaURI;
-
- /**
- * Relativizes the given URI against this URI.
- */
- relativize(uri: JavaURI): JavaURI;
-
- /**
- * Constructs a new URI by parsing the given string and then resolving it against this URI.
- */
- resolve(str: string): JavaURI;
-
- /**
- * Resolves the given URI against this URI.
- */
- resolve(uri: JavaURI): JavaURI;
-
- /**
- * Returns the content of this URI as a US-ASCII string.
- */
- toASCIIString(): string;
-
- /**
- * Returns the content of this URI as a string.
- */
- toString(): string;
-
- /**
- * Constructs a URL from this URI.
- */
- toURL(): JavaURL;
-}
-
-declare class JavaURLStreamHandlerFactory {
- /**
- * Creates a new URLStreamHandler instance with the specified protocol.
- */
- createURLStreamHandler(protocol: string): JavaURLStreamHandlerFactory;
-}
-
-declare class JavaInputStream {
- constructor();
-
- /**
- * Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking by the next invocation of a method for this input stream.
- */
- available(): number;
-
- /**
- * Closes this input stream and releases any system resources associated with the stream.
- */
- close(): void;
-
- /**
- * Marks the current position in this input stream.
- */
- mark(readLimit: number): void;
-
- /**
- * Tests if this input stream supports the mark and reset methods.
- */
- markSupported(): boolean;
- /**
- * Reads the next byte of data from the input stream.
- */
- read(): number;
-
- /**
- * Reads some number of bytes from the input stream and stores them into the buffer array b.
- */
- read(b: number[]): number;
-
- /**
- * Reads up to len bytes of data from the input stream into an array of bytes.
- */
- read(b: number[], off: number, len: number): number;
-
- /**
- * Repositions this stream to the position at the time the mark method was last called on this input stream.
- */
- reset(): void;
-
- /**
- * Skips over and discards n bytes of data from this input stream.
- */
- skip(n: number): number;
-}
-
-declare class JavaURLConnection extends NotFullyTyped {}
-/**
- * This class represents a proxy setting, typically a type (http, socks) and a socket address. A Proxy is an immutable object.
- */
-declare class JavaProxy {
- /**
- * A proxy setting that represents a DIRECT connection, basically telling the protocol handler not to use any proxying.
- */
- static NO_PROXY: JavaProxy;
- /**
- * Creates an entry representing a PROXY connection.
- */
- constructor(type: JavaProxy.Type, sa: JavaSocketAddress);
-
- /**
- * Returns the socket address of the proxy, or null if its a direct connection.
- */
- address(): JavaSocketAddress;
-
- /**
- * Compares this object against the specified object.
- */
- equals(obj: any): boolean;
-
- /**
- * Returns a hashcode for this Proxy.
- */
- hashCode(): number;
-
- /**
- * Constructs a string representation of this Proxy.
- */
- toString(): string;
-
- /**
- * Returns the proxy type.
- */
- type(): JavaProxy.Type;
-}
-declare namespace JavaProxy {
- class Type {
- /**Represents a direct connection, or the absence of a proxy. */
- static readonly DIRECT: JavaProxy.Type;
- /**Represents proxy for high level protocols such as HTTP or FTP. */
- static readonly HTTP: JavaProxy.Type;
- /**Represents a SOCKS (V4 or V5) proxy. */
- static readonly SOCKS: JavaProxy.Type;
- /**
- * Returns the enum constant of this type with the specified name.
- */
- static valueOf(name: string): JavaProxy.Type;
-
- /**
- * Returns an array containing the constants of this enum type, in the order they are declared.
- */
- static values(): JavaProxy.Type;
- }
-}
-/**
- * This class represents a Socket Address with no protocol attachment. As an abstract class, it is meant to be subclassed with a specific, protocol dependent, implementation.
- */
-declare class JavaSocketAddress {
- constructor();
-}
-
-declare class JavaURLStreamHandler {
- constructor();
-}
-
-declare class JavaField {
- /**
- * Compares this Field against the specified object.
- */
- equals(obj: any): boolean;
-
- /**
- * Returns the value of the field represented by this Field, on the specified object.
- */
- get(obj: any): any;
-
- /**
- * Gets the value of a static or instance boolean field.
- */
- getBoolean(obj: any): boolean;
-
- /**
- * Gets the value of a static or instance byte field.
- */
- getByte(obj: any): number;
-
- /**
- * Gets the value of a static or instance field of type char or of another primitive type convertible to type char via a widening conversion.
- */
- getChar(obj: any): number;
-
- /**
- * Returns the Class object representing the class or interface that declares the field represented by this Field object.
- */
- getDeclaringClass(): JavaClass<any>;
-
- /**
- * Gets the value of a static or instance field of type double or of another primitive type convertible to type double via a widening conversion.
- */
- getDouble(obj: any): number;
-
- /**
- * Gets the value of a static or instance field of type float or of another primitive type convertible to type float via a widening conversion.
- */
- getFloat(obj: any): number;
- /**
- *Gets the value of a static or instance field of type int or of another primitive type convertible to type int via a widening conversion.
- */
- getInt(obj: any): number;
-
- /**
- * Gets the value of a static or instance field of type long or of another primitive type convertible to type long via a widening conversion.
- */
- getLong(obj: any): number;
-
- /**
- * Sets the field represented by this Field object on the specified object argument to the specified new value.
- */
- set(obj: any, value: any): void;
- /**
- * Sets the value of a field as a boolean on the specified object.
- */
- setBoolean(obj: any, z: boolean): void;
-
- /**
- * Sets the value of a field as a byte on the specified object.
- */
- setByte(obj: any, b: number): void;
-
- /**
- * Sets the value of a field as a char on the specified object.
- */
- setChar(obj: any, c: number): void;
-
- /**
- * Sets the value of a field as a double on the specified object.
- */
- setDouble(obj: any, d: number): void;
-
- /**
- * Sets the value of a field as a float on the specified object.
- */
- setFloat(obj: any, f: number): void;
-
- /**
- * Sets the value of a field as an int on the specified object.
- */
- setInt(obj: any, i: number): void;
-
- /**
- * Sets the value of a field as a long on the specified object.
- */
- setLong(obj: any, l: number): void;
-
- /**
- * Sets the value of a field as a short on the specified object.
- */
- setShort(obj: any, s: number): void;
-
- /**
- * Returns a string describing this Field, including its generic type.
- */
- toGenericString(): string;
-
- /**
- * Returns a string describing this Field.
- */
- toString(): string;
-}
-/**
- * A Method provides information about, and access to, a single method on a class or interface. The reflected method may be a class method or an instance method (including an abstract method).
- */
-declare class JavaMethod {
- /**
- * Compares this Method against the specified object.
- */
- equals(obj: any): boolean;
-
- /**
- * Returns the Class object representing the class or interface that declares the executable represented by this object.
- */
- getDeclaringClass(): JavaClass<any>;
-
- /**
- * Returns the default value for the annotation member represented by this Method instance.
- */
- getDefaultValue(): any;
-
- /**
- * Returns an array of Class objects that represent the types of exceptions declared to be thrown by the underlying executable represented by this object.
- */
- getExceptionTypes(): JavaClass<any>[];
-
- /**
- * Returns the Java language modifiers for the executable represented by this object.
- */
- getModifiers(): number;
-
- /**
- * Returns the name of the method represented by this Method object, as a String.
- */
- getName(): string;
-
- /**
- * Returns the number of formal parameters (whether explicitly declared or implicitly declared or neither) for the executable represented by this object.
- */
- getParameterCount(): number;
-
- /**
- * Returns an array of Class objects that represent the formal parameter types, in declaration order, of the executable represented by this object.
- */
- getParameterTypes(): JavaClass<any>[];
-
- /**
- * Returns a Class object that represents the formal return type of the method represented by this Method object.
- */
- getReturnType(): JavaClass<any>;
-
- /**
- * Returns a hashcode for this Method.
- */
- hashCode(): number;
-
- /**
- * Invokes the underlying method represented by this Method object, on the specified object with the specified parameters.
- */
- invoke(obj: any, ...args: any[]): any;
-
- /**
- * Returns true if this method is a bridge method; returns false otherwise.
- */
- isBridge(): boolean;
-
- /**
- * Returns true if this method is a default method; returns false otherwise.
- */
- isDefault(): boolean;
-
- /**
- * Returns true if this executable is a synthetic construct; returns false otherwise.
- */
- isSynthetic(): boolean;
-
- /**
- * Returns true if this executable was declared to take a variable number of arguments; returns false otherwise.
- */
- isVarArgs(): boolean;
-
- /**
- * Returns a string describing this Method, including type parameters.
- */
- toGenericString(): string;
-
- /**
- * Returns a string describing this Method.
- */
- toString(): string;
-}
-//#endregion
-
-/////////////////////
-// CT non-included //
-/////////////////////
-//#region
-declare class Trigger {
- /**
- * Sets a trigger's priority using {@link Priority}.
- * Highest runs first.
- * @param priority the priority of the trigger
- * @return the trigger for method chaining
- */
- setPriority(priority: Trigger.Priority): Trigger;
-
- /**
- * Registers a trigger based on its type.
- * This is done automatically with TriggerRegister.
- * @return the trigger for method chaining
- */
- register(): Trigger;
-
- /**
- * Unregisters a trigger.
- * @return the trigger for method chaining
- */
- unregister(): Trigger;
-
- compareTo(other: Trigger): number;
-}
-declare namespace Trigger {
- enum Priority {
- HIGHEST,
- HIGH,
- NORMAL,
- LOW,
- LOWEST,
- }
-}
-
-declare class ChatTrigger extends Trigger {
- constructor(method: Function, type: TriggerType, loader: ILoader);
-
- /**
- * Sets if the chat trigger should run if the chat event has already been canceled.
- * True by default.
- * @param bool Boolean to set
- * @return the trigger object for method chaining
- */
- triggerIfCanceled(bool: boolean): ChatTrigger;
-
- /**
- * Sets the chat criteria for `matchesChatCriteria`.
- * Arguments for the trigger's method can be passed in using ${variable}.
- * Example: `ChatTrigger.setChatCriteria("<${name}> ${message}");`
- * Use ${*} to match a chat message but ignore the pass through.
- * @param chatCriteria the chat criteria to set
- * @return the trigger object for method chaining
- */
- setChatCriteria(chatCriteria: string | RegExp): ChatTrigger;
-
- /**
- * Alias for {@link setChatCriteria}.
- * @param chatCriteria the chat criteria to set
- * @return the trigger object for method chaining
- */
- setCriteria(chatCriteria: string | RegExp): ChatTrigger;
-
- /**
- * Sets the chat parameter for `Parameter`.
- * Clears current parameter list.
- * @param parameter the chat parameter to set
- * @return the trigger object for method chaining
- */
- setParameter(parameter: "contains" | "start" | "end"): ChatTrigger;
-
- /**
- * Sets multiple chat parameters for `Parameter`.
- * Clears current parameter list.
- * @param parameters the chat parameters to set
- * @return the trigger object for method chaining
- */
- setParameters(...parameters: ("contains" | "start" | "end")[]): ChatTrigger;
-
- /**
- * Adds chat parameter for `Parameter`.
- * @param parameter the chat parameter to add
- * @return the trigger object for method chaining
- */
- addParameter(parameter: "contains" | "start" | "end"): ChatTrigger;
-
- /**
- * Adds multiple chat parameters for `Parameter`.
- * @param parameters the chat parameters to add
- * @return the trigger object for method chaining
- */
- addParameters(...parameters: ("contains" | "start" | "end")[]): ChatTrigger;
-
- /**
- * Adds the "start" parameter
- * @return the trigger object for method chaining
- */
- setStart(): ChatTrigger;
-
- /**
- * Adds the "contains" parameter
- * @return the trigger object for method chaining
- */
- setContains(): ChatTrigger;
-
- /**
- * Adds the "end" parameter
- * @return the trigger object for method chaining
- */
- setEnd(): ChatTrigger;
-
- /**
- * Makes the trigger match the entire chat message
- * @return the trigger object for method chaining
- */
- setExact(): ChatTrigger;
-
- /**
- * Makes the chat criteria case insensitive
- * @return the trigger object for method chaining
- */
- setCaseInsensitive(): ChatTrigger;
-
- /**
- * Argument 1 (String) The chat message received
- * Argument 2 (ClientChatReceivedEvent) the chat event fired
- * @param args list of arguments as described
- */
- trigger(args: any[]): void;
-}
-
-declare class CommandTrigger extends Trigger {
- constructor(method: Function, loader: ILoader);
-
- trigger(args: any[]): void;
-
- /**
- * Sets the tab completion options for the command.
- * This method must be used before setting the command name, otherwise, the tab completions will not be set.
- *
- * @param args all the tab completion options.
- */
- setTabCompletions(...args: string[]): CommandTrigger;
-
- /**
- * Sets the tab completion options for the command.
- * This method must be used before setting the command name, otherwise, the tab completions will not be set.
- *
- * @param args all the tab completion options.
- */
- setTabCompletions(args: string[]): CommandTrigger;
-
- /**
- * This sets the possible tab completions for the command.
- * This method must be used before setting the command name, otherwise, the tab completions will not be set.
- *
- * @param callback the callback that returns the tab completion options.
- *
- * For example:
- * ```js
- * register("command", () => {
- *
- * }).setTabCompletions((args) => {
- * return ["option1", "option2"];
- * }).setName("test");
- *```
- * The `args` parameter of the callback are the arguments currently passed to the command.
- * For instance, if you want to not show the options after the user tabs the first time, just add a check
- * for the length of the arguments and return an empty array.
- *
- * The return value of the callback **must be an array of strings**, and in this case will always return the 2
- * options in the array.
- */
- setTabCompletions(callback: (args: string[]) => string[]): CommandTrigger;
-
- /**
- * Sets the aliases for the command.
- *
- * @param args all the aliases.
- */
- setAliases(...args: string[]): CommandTrigger;
-
- /**
- * Sets the command name.
- * Example:
- * CommandTrigger.setCommandName("test")
- * would result in the command being /test
- *
- * @param commandName The command name
- * @param overrideExisting Whether existing commands with the same name should be overridden
- * @return the trigger for additional modification
- */
- setCommandName(
- commandName: string,
- overrideExisting?: boolean,
- ): CommandTrigger;
-
- /**
- * Alias for {@link setCommandName}
- *
- * @param commandName The command name
- * * @param overrideExisting Whether existing commands with the same name should be overridden
- * @return the trigger for additional modification
- */
- setName(commandName: string, overrideExisting?: boolean): CommandTrigger;
-}
-
-declare class RegularTrigger extends Trigger {
- trigger(args: any[]): void;
-}
-
-declare abstract class ClassFilterTrigger extends Trigger {
- constructor(method: Function, triggerType: TriggerType, loader: ILoader);
-
- readonly triggerType: TriggerType;
-
- /**
- * @deprecated Prefer `setFilteredClass(MyClass.class)` instead
- */
- setPacketClass<T>(clazz: JavaClass<T>): this;
-
- /**
- * @deprecated Prefer `setFilteredClasses([A.class, B.class, C.class])` instead
- */
- setPacketClasses(classes: JavaClass<any>[]): this;
-
- /**
- * Alias for `setClasses([A.class, B.class])`
- *
- * @param clazz The class for which this trigger should run for
- */
- setFilteredClass<T>(clazz: JavaClass<T>): this;
-
- /**
- * Sets which classes this trigger should run for. If the list is empty, it runs
- * for every class.
- *
- * @param classes The classes for which this trigger should run for
- * @return This trigger object for chaining
- */
- setFilteredClasses(classes: JavaClass<any>[]): this;
-
- abstract evalTriggerType(args: any[]): any;
-}
-
-declare class RenderEntityTrigger extends ClassFilterTrigger {
- evalTriggerType(args: any[]): MCEntity;
-}
-
-declare class RenderTileEntityTrigger extends ClassFilterTrigger {
- evalTriggerType(args: any[]): MCTileEntity;
-}
-
-declare class PacketTrigger extends ClassFilterTrigger {
- evalTriggerType(args: any[]): MCPacket<any>;
-}
-
-declare class EventTrigger extends Trigger {
- constructor(method: Function, triggerType: TriggerType, loader: ILoader);
-
- /**
- * Sets if this trigger should run if the event has already been canceled.
- * True by default.
- *
- * @param bool Boolean to set
- * @return the trigger object for method chaining
- */
- triggerIfCanceled(bool: boolean): EventTrigger;
-
- trigger(args: any[]): void;
-}
-
-declare class SoundPlayTrigger extends Trigger {
- constructor(method: Function, loader: ILoader);
-
- soundNameCriteria: string;
-
- /**
- * Sets the sound name criteria.
- *
- * @param soundNameCriteria the sound name
- * @return the trigger for method chaining
- */
- setCriteria(soundNameCriteria: string): SoundPlayTrigger;
-
- trigger(args: any[]): void;
-}
-
-declare class StepTrigger extends Trigger {
- constructor(method: Function, loader: ILoader);
-
- /**
- * Sets the frames per second that the trigger activates.
- * This has a maximum one step per second.
- * @param fps the frames per second to set
- * @return the trigger for method chaining
- */
- setFps(fps: number): StepTrigger;
-
- /**
- * Sets the delay in seconds between the trigger activation.
- * This has a minimum of one step every second. This will override {@link setFps}.
- * @param delay The delay in seconds
- * @return the trigger for method chaining
- */
- setDelay(delay: number): StepTrigger;
-
- trigger(args: any[]): void;
-}
-
-declare class ForgeTrigger extends Trigger {
- constructor(method: Function, eventClass: JavaClass<any>, loader: ILoader);
-}
-
-declare class Team {
- constructor(team: MCScorePlayerTeam);
-
- readonly team: MCScorePlayerTeam;
-
- getTeam(): MCScorePlayerTeam;
-
- /**
- * Gets the registered name of the team
- */
- getRegisteredName(): string;
-
- /**
- * Gets the display name of the team
- */
- getName(): string;
-
- /**
- * Sets the display name of the team
- * @param name the new display name
- * @return the team for method chaining
- */
- setName(name: string): Team;
-
- /**
- * Gets the list of names on the team
- */
- getMembers(): String[];
-
- /**
- * Gets the team prefix
- */
- getPrefix(): string;
-
- /**
- * Sets the team prefix
- * @param prefix the prefix to set
- * @return the team for method chaining
- */
- setPrefix(prefix: string): Team;
-
- /**
- * Gets the team suffix
- */
- getSuffix(): string;
-
- /**
- * Sets the team suffix
- * @param suffix the suffix to set
- * @return the team for method chaining
- */
- setSuffix(suffix: string): Team;
-
- /**
- * Gets the team's friendly fire setting
- */
- getFriendlyFire(): boolean;
-
- /**
- * Gets whether the team can see invisible players on the same team
- */
- canSeeInvisibleTeammates(): boolean;
-
- /**
- * Gets the team's name tag visibility
- */
- getNameTagVisibility():
- | "always"
- | "never"
- | "hideForOtherTeams"
- | "hideForOwnTeam";
-
- /**
- * Gets the team's death message visibility
- */
- getDeathMessageVisibility():
- | "always"
- | "never"
- | "hideForOtherTeams"
- | "hideForOwnTeam";
-}
-
-declare interface NBT {
- /**
- * Creates a new {@link NBTBase} from the given {@link nbt}
- *
- * @param nbt the value to convert to NBT
- * @param options optional argument to allow refinement of the NBT data.
- * Possible options include:
- * - coerceNumericStrings: Boolean, default false.
- * E.g. "10b" as a byte, "20s" as a short, "30f" as a float, "40d" as a double,
- * "50l" as a long
- * - preferArraysOverLists: Boolean, default false
- * E.g. a list with all bytes or integers will be converted to an NBTTagByteArray or
- * NBTTagIntArray accordingly
- *
- * @throws `NBTException` if {@link nbt} can not be parsed as valid NBT
- *
- * @return {@link NBTTagCompound} if {@link nbt} is an object, {@link NBTTagList} if {@link nbt}
- * is an array and preferArraysOverLists is false, or {@link NBTBase} otherwise.
- */
- parse(
- nbt: any,
- options?: {
- /**
- * Default false.
- * E.g. "10b" as a byte, "20s" as a short, "30f" as a float, "40d" as a double,
- * "50l" as a long
- */
- coerceNumericStrings?: boolean;
- /**
- * Default false.
- * E.g. a list with all bytes or integers will be converted to an NBTTagByteArray or
- * NBTTagIntArray accordingly
- */
- preferArraysOverLists?: boolean;
- },
- ): NBTBase;
-
- toObject(nbt: NBTTagCompound): NBTType;
-
- toArray(nbt: NBTTagList): NBTType[];
-}
-
-declare class Client {
- /**
- * Get the {@link KeyBind} from an already existing Minecraft KeyBinding, otherwise, returns null.
- *
- * @param keyCode the keycode to search for, see Keyboard below. Ex. Keyboard.KEY_A
- * @return the {@link KeyBind} from a Minecraft KeyBinding, or null if one doesn't exist
- * @see [org.lwjgl.input.Keyboard](http://legacy.lwjgl.org/javadoc/org/lwjgl/input/Keyboard.html)
- */
- getKeyBindFromKey(keyCode: number): KeyBind | null;
-
- /**
- * Get the {@link KeyBind} from an already existing Minecraft KeyBinding, else, return a new one.
- *
- * @param keyCode the keycode which the keybind will respond to, see Keyboard below. Ex. Keyboard.KEY_A
- * @param description the description of the keybind
- * @param category the keybind category the keybind will be in
- * @return the {@link KeyBind} from a Minecraft KeyBinding, or a new one if one doesn't exist
- * @see [org.lwjgl.input.Keyboard](http://legacy.lwjgl.org/javadoc/org/lwjgl/input/Keyboard.html)
- */
- getKeyBindFromKey(
- keyCode: number,
- description: string,
- category: string,
- ): KeyBind;
-
- /**
- * Get the {@link KeyBind} from an already existing Minecraft KeyBinding, else, return a new one.
- * This will create the {@link KeyBind} with the default category "ChatTriggers".
- *
- * @param keyCode the keycode to search for, see Keyboard below. Ex. Keyboard.KEY_A
- * @param description the description of the keybind
- * @return the {@link KeyBind} from a Minecraft KeyBinding, or a new one if one doesn't exist
- * @see [org.lwjgl.input.Keyboard](http://legacy.lwjgl.org/javadoc/org/lwjgl/input/Keyboard.html)
- */
- getKeyBindFromKey(keyCode: number, description: string): KeyBind;
-
- /**
- * Get the {@link KeyBind} from an already existing
- * Minecraft KeyBinding, otherwise, returns null.
- *
- * @param description the description of the keybind
- * @return the {@link KeyBind}, or null if one doesn't exist
- */
- getKeyBindFromDescription(description: string): Keyboard | null;
-
- static readonly INSTANCE: Client;
- static readonly settings: Settings;
- readonly INSTANCE: Client;
- readonly settings: Settings;
-
- getSettings(): Settings;
- static getSettings(): Settings;
-
- /**
- * Gets Minecraft's Minecraft object
- *
- * @return The Minecraft object
- */
- getMinecraft(): MCMinecraft;
- /**
- * Gets Minecraft's Minecraft object
- *
- * @return The Minecraft object
- */
- static getMinecraft(): MCMinecraft;
-
- /**
- * Gets Minecraft's NetHandlerPlayClient object
- *
- * @return The NetHandlerPlayClient object
- */
- getConnection(): MCNetHandlerPlayClient | null;
- /**
- * Gets Minecraft's NetHandlerPlayClient object
- *
- * @return The NetHandlerPlayClient object
- */
- static getConnection(): MCNetHandlerPlayClient | null;
-
- /**
- * Schedule's a task to run on Minecraft's main thread in {@link delay} ticks.
- * Defaults to the next tick.
- * @param delay The delay in ticks
- * @param callback The task to run on the main thread
- */
- scheduleTask(delay: number, callback: () => void): void;
- /**
- * Schedule's a task to run on Minecraft's main thread in {@link delay} ticks.
- * Defaults to the next tick.
- * @param delay The delay in ticks
- * @param callback The task to run on the main thread
- */
- static scheduleTask(delay: number, callback: () => void): void;
-
- /**
- * Schedule's a task to run on Minecraft's main thread in {@link delay} ticks.
- * Defaults to the next tick.
- * @param callback The task to run on the main thread
- */
- scheduleTask(callback: () => void): void;
- /**
- * Schedule's a task to run on Minecraft's main thread in {@link delay} ticks.
- * Defaults to the next tick.
- * @param callback The task to run on the main thread
- */
- static scheduleTask(callback: () => void): void;
-
- /**
- * Quits the client back to the main menu.
- * This acts just like clicking the "Disconnect" or "Save and quit to title" button.
- */
- disconnect(): void;
- /**
- * Quits the client back to the main menu.
- * This acts just like clicking the "Disconnect" or "Save and quit to title" button.
- */
- static disconnect(): void;
-
- /**
- * Connects to the server with the given ip.
- * @param ip The ip to connect to
- */
- connect(ip: string): void;
- /**
- * Connects to the server with the given ip.
- * @param ip The ip to connect to
- */
- static connect(ip: string): void;
-
- /**
- * Gets the Minecraft GuiNewChat object for the chat gui
- *
- * @return The GuiNewChat object for the chat gui
- */
- getChatGUI(): MCGuiNewChat;
- /**
- * Gets the Minecraft GuiNewChat object for the chat gui
- *
- * @return The GuiNewChat object for the chat gui
- */
- static getChatGUI(): MCGuiNewChat;
-
- isInChat(): boolean;
- static isInChat(): boolean;
-
- getTabGui(): MCGuiPlayerTabOverlay;
- static getTabGui(): MCGuiPlayerTabOverlay;
-
- isInTab(): boolean;
- static isInTab(): boolean;
-
- /**
- * Gets whether the Minecraft window is active
- * and in the foreground of the user's screen.
- *
- * @return true if the game is active, false otherwise
- */
- isTabbedIn(): boolean;
- /**
- * Gets whether the Minecraft window is active
- * and in the foreground of the user's screen.
- *
- * @return true if the game is active, false otherwise
- */
- static isTabbedIn(): boolean;
-
- isControlDown(): boolean;
- static isControlDown(): boolean;
-
- isShiftDown(): boolean;
- static isShiftDown(): boolean;
-
- isAltDown(): boolean;
- static isAltDown(): boolean;
-
- getFps(): number;
- static getFps(): number;
-
- getVersion(): string;
- static getVersion(): string;
-
- getMaxMemory(): number;
- static getMaxMemory(): number;
-
- getTotalMemory(): number;
- static getTotalMemory(): number;
-
- getFreeMemory(): number;
- static getFreeMemory(): number;
-
- getMemoryUsage(): number;
- static getMemoryUsage(): number;
-
- getSystemTIme(): number;
- static getSystemTIme(): number;
-
- getMouseX(): number;
- static getMouseX(): number;
-
- getMouseY(): number;
- static getMouseY(): number;
-
- isInGui(): boolean;
- static isInGui(): boolean;
-
- /**
- * Gets the chat message currently typed into the chat gui.
- *
- * @return A blank string if the gui isn't open, otherwise, the message
- */
- getCurrentChatMessage(): string;
- /**
- * Gets the chat message currently typed into the chat gui.
- *
- * @return A blank string if the gui isn't open, otherwise, the message
- */
- static getCurrentChatMessage(): string;
-
- /**
- * Sets the current chat message, if the chat gui is not open, one will be opened.
- *
- * @param message the message to put in the chat text box.
- */
- setCurrentChatMessage(message: string): void;
- /**
- * Sets the current chat message, if the chat gui is not open, one will be opened.
- *
- * @param message the message to put in the chat text box.
- */
- static setCurrentChatMessage(message: string): void;
-
- sendPacket<T extends MCINetHandler>(packet: MCPacket<T>): void;
- static sendPacket<T extends MCINetHandler>(packet: MCPacket<T>): void;
-
- /**
- * Display a title.
- *
- * @param title title text
- * @param subtitle subtitle text
- * @param fadeIn time to fade in
- * @param time time to stay on screen
- * @param fadeOut time to fade out
- */
- showTitle(
- title: string,
- subtitle: string,
- fadeIn: number,
- time: number,
- fadeOut: number,
- ): void;
- /**
- * Display a title.
- *
- * @param title title text
- * @param subtitle subtitle text
- * @param fadeIn time to fade in
- * @param time time to stay on screen
- * @param fadeOut time to fade out
- */
- static showTitle(
- title: string,
- subtitle: string,
- fadeIn: number,
- time: number,
- fadeOut: number,
- ): void;
-}
-declare namespace Client {
- class currentGui {
- /**
- * Gets the Java class name of the currently open gui, for example, "GuiChest"
- *
- * @return the class name of the current gui
- */
- static getClassName(): string;
-
- /**
- * Gets the Minecraft gui class that is currently open
- *
- * @return the Minecraft gui
- */
- static get(): MCGuiScreen;
-
- /**
- * Gets the slot under the mouse in the current gui, if one exists.
- *
- * @return the {@link Slot} under the mouse
- */
- getSlotUnderMouse(): Slot | null;
- /**
- * Gets the slot under the mouse in the current gui, if one exists.
- *
- * @return the {@link Slot}Slot] under the mouse
- */
- static getSlotUnderMouse(): Slot | null;
-
- /**
- * Closes the currently open gui
- */
- static close(): void;
- }
- class camera {
- static getX(): number;
- static getY(): number;
- static getZ(): number;
- }
-}
-
-declare class Console {
- clearConsole(): void;
-
- printStackTrace(error: Error): void;
-
- showConsole(): void;
-
- println(
- obj: any,
- logType?: LogType,
- end?: string,
- customColor?: JavaColor,
- ): void;
-}
-
-declare class console {
- config: IConsoleConfig;
-
- /**
- * Tests whether the given expression is true. If not, logs a message with the visual "error" representation.
- */
- assert(booleanValue: boolean, arg: string): void;
- /**
- * Clears the console.
- * Works by invoking `cmd /c cls` on Windows and `clear` on other OSes.
- */
- clear(): void;
-
- count(label: string): void;
-
- /**
- * Logs a message, with a visual "debug" representation.
- * @todo Optionally include some information for debugging, like the file path or line number where the call occurred from.
- */
- debug(args: any): void;
-
- /**
- * Logs a listing of the properties of the given object.
- * @todo Use the `options` argument.
- */
- dir(arg: any, options: any): void;
-
- /**
- * Logs a space-separated list of formatted representations of the given arguments,
- * using DOM tree representation whenever possible.
- */
- dirxml(args: any): void;
-
- /**
- * Logs a message with the visual "error" representation.
- * @todo Optionally include some information for debugging, like the file path or line number where the call occurred from.
- */
- error(args: any): void;
-
- /**
- * Logs a message as a label for and opens a nested block to indent future messages sent.
- * Call console.groupEnd() to close the block.
- * Representation of block is up to the platform,
- * it can be an interactive block or just a set of indented sub messages.
- */
- group(args: any): void;
-
- groupCollapsed(args: any): void;
-
- /**
- * Closes the most recently opened block created by a call
- * to 'console.group()' or 'console.groupCollapsed()'.
- */
- groupEnd(): void;
-
- /**
- * Logs a message with the visual "info" representation.
- */
- info(args: any): void;
-
- /**
- * Logs a message with the visual "log" representation.
- */
- log(args: any): void;
-
- time(label: any): void;
- /**
- * Stops a timer created by a call to `console.time(label)` and logs the elapsed time.
- */
- timeEnd(lable: any): void;
-
- /**
- * Logs a stack trace for where the call occurred from, using the given arguments as a label.
- */
- trace(args: any): void;
-
- /**
- * @todo Logs a tabular representation of the given data.
- * Fall back to just logging the argument if it can’t be parsed as tabular.
- */
- table(tabularData: any, properties: void): void;
-
- /**
- * Logs a message with the visual "warning" representation.
- */
- warn(args: void): console;
-}
-
-declare interface IConsoleConfig {
- indent: string;
- showMilliseconds: boolean;
- showMessageType: boolean;
- showTimeStamp: boolean;
- useColors: boolean;
- colorsByLogLevel: {
- error: string;
- log: string;
- info: string;
- warn: string;
- };
-}
-
-declare class Config {
- modulesFolder: string;
-
- printChatToConsole: boolean;
-
- showUpdatesInChat: boolean;
-
- updateModulesOnBoot: boolean;
-
- clearConsoleOnLoad: boolean;
-
- openConsoleOnError: boolean;
-
- consolePrettyFont: boolean;
-
- consoleFontSize: string;
-
- consoleTheme:
- | "default.dark"
- | "ashes.dark"
- | "atelierforest.dark"
- | "isotope.dark"
- | "codeschool.dark"
- | "gotham"
- | "hybrid"
- | "3024.light"
- | "chalk.light"
- | "blue"
- | "slate"
- | "red"
- | "green"
- | "aids";
-
- consoleForegroundColor: JavaColor;
-
- consoleBackgroundColor: JavaColor;
-
- threadedLoading: boolean;
-
- moduleImportHelp: boolean;
-}
-
-declare class Reference {
- readonly MODID: string;
- readonly MODNAME: string;
- readonly MODVERSION: string;
-
- isLoaded: boolean;
-
- // deprecated
- reloadCT(): void;
-
- unloadCT(asCommand?: boolean): void;
- static unloadCT(asCommand?: boolean): void;
-
- loadCT(): void;
- static loadCT(): void;
-
- conditionalThread(block: () => void): void;
- static conditionalThread(block: () => void): void;
-}
-
-declare interface JSONImpl {
- toJSON(key: string): string;
-}
-
-declare class BlockFace$Plane {
- static readonly Horizontal: BlockFace$Plane;
- static readonly Vertical: BlockFace$Plane;
-
- test(t: BlockFace): boolean;
-
- facings(): BlockFace[];
-
- iterator(): Iterator<BlockFace>;
-}
-
-declare class BlockFace$AxisDirection {
- readonly offset: number;
- constructor(offset: number);
-
- static readonly Positive: BlockFace$AxisDirection;
- static readonly Negative: BlockFace$AxisDirection;
-}
-
-declare class BlockFace$Axis {
- readonly plane: BlockFace$Plane;
-
- constructor(plane: BlockFace$Plane);
-
- static readonly X: BlockFace$Axis;
- static readonly Y: BlockFace$Axis;
- static readonly Z: BlockFace$Axis;
-
- isHorizontal(): boolean;
- isVertical(): boolean;
-
- test(t: BlockFace): boolean;
-
- getName(): string;
-}
-
-declare enum NBTDataType {
- BYTE = 0,
- SHORT = 1,
- INTEGER = 2,
- LONG = 3,
- FLOAT = 4,
- DOUBLE = 5,
- STRING = 6,
- BYTE_ARRAY = 7,
- INT_ARRAY = 8,
- BOOLEAN = 9,
- COMPOUND_TAG = 10,
- TAG_LIST = 11,
-}
-
-declare class CancellableEvent {
- setCanceled(newVal?: boolean): void;
-
- setCancelled(newVal?: boolean): void;
-
- isCancelable(): boolean;
- isCancellable(): boolean;
-
- isCanceled(): boolean;
- isCancelled(): boolean;
-}
-
-declare class TileEntity {
- constructor(tileEntity: MCTileEntity);
-
- readonly tileEntity: MCTileEntity;
-
- getX(): number;
- getY(): number;
- getZ(): number;
-
- getBlock(): Block;
-
- getBlockType(): BlockType;
-
- getBlockPos(): BlockPos;
-
- getMetadata(): number;
-
- toString(): string;
-}
-
-declare class Settings {
- static getSettings(): MCGameSettings;
- getSettings(): MCGameSettings;
-
- static getFOV(): number;
- getFOV(): number;
-
- static setFOV(fov: number): void;
- setFOV(fov: number): void;
-
- static getDifficulty(): number;
- getDifficulty(): number;
-
- static setDifficulty(difficulty: number): void;
- setDifficulty(difficulty: number): void;
-
- static skin: skin;
- static sound: sound;
- static video: video;
- static chat: chat;
-}
-
-declare class skin {
- getCape(): boolean;
- static getCape(): boolean;
- setCape(toggled: boolean): void;
- static setCape(toggled: boolean): void;
-
- getJacket(): boolean;
- static getJacket(): boolean;
- setJacket(toggled: boolean): void;
- static setJacket(toggled: boolean): void;
-
- getLeftSleeve(): boolean;
- static cgetLeftSleeve(): boolean;
- setLeftSleeve(toggled: boolean): void;
- static setLeftSleeve(toggled: boolean): void;
-
- getRightSleeve(): boolean;
- static getRightSleeve(): boolean;
- setRightSleeve(toggled: boolean): void;
- static setRightSleeve(toggled: boolean): void;
-
- getLeftPantsLeg(): boolean;
- static getLeftPantsLeg(): boolean;
- setLeftPantsLeg(toggled: boolean): void;
- static setLeftPantsLeg(toggled: boolean): void;
-
- getRightPantsLeg(): boolean;
- static getRightPantsLeg(): boolean;
- setRightPantsLeg(toggled: boolean): void;
- static setRightPantsLeg(toggled: boolean): void;
-
- getHat(): boolean;
- static getHat(): boolean;
- setHat(toggled: boolean): void;
- static setHat(toggled: boolean): void;
-}
-
-declare class sound {
- getMasterVolume(): number;
- static getMasterVolume(): number;
- setMasterVolume(level: number): void;
- static setMasterVolume(level: number): void;
-
- getMusicVolume(): number;
- static getMusicVolume(): number;
- setMusicVolume(level: number): void;
- static setMusicVolume(level: number): void;
-
- getNoteblockVolume(): number;
- static getNoteblockVolume(): number;
- setNoteblockVolume(level: number): void;
- static setNoteblockVolume(level: number): void;
-
- getWeather(): number;
- static getWeather(): number;
- setWeather(level: number): void;
- static setWeather(level: number): void;
-
- getBlocks(): number;
- static getBlocks(): number;
- setBlocks(level: number): void;
- static setBlocks(level: number): void;
-
- getHostileCreatures(): number;
- static getHostileCreatures(): number;
- setHostileCreatures(level: number): void;
- static setHostileCreatures(level: number): void;
-
- getFriendlyCreatures(): number;
- static getFriendlyCreatures(): number;
- setFriendlyCreatures(level: number): void;
- static setFriendlyCreatures(level: number): void;
-
- getPlayers(): number;
- static getPlayers(): number;
- setPlayers(level: number): void;
- static setPlayers(level: number): void;
-
- getAmbient(): number;
- static getAmbient(): number;
- setAmbient(level: number): void;
- static setAmbient(level: number): void;
-}
-
-declare class video {
- getGraphics(): boolean;
- static getGraphics(): boolean;
- setGraphics(fancy: boolean): void;
- static setGraphics(fancy: boolean): void;
-
- getRenderDistance(): number;
- static getRenderDistance(): number;
- setRenderDistance(distance: number): void;
- static setRenderDistance(distance: number): void;
-
- getSmoothLighting(): number;
- static getSmoothLighting(): number;
- setSmoothLighting(level: number): void;
- static setSmoothLighting(level: number): void;
-
- getMaxFrameRate(): number;
- static getMaxFrameRate(): number;
- setMaxFrameRate(frameRate: number): void;
- static setMaxFrameRate(frameRate: number): void;
-
- get3dAnaglyph(): boolean;
- static get3dAnaglyph(): boolean;
- set3dAnaglyph(toggled: boolean): void;
- static set3dAnaglyph(toggled: boolean): void;
-
- getBobbing(): boolean;
- static getBobbing(): boolean;
- setBobbing(toggled: boolean): void;
- static setBobbing(toggled: boolean): void;
-
- getGuiScale(): number;
- static getGuiScale(): number;
- setGuiScale(scale: number): void;
- static setGuiScale(scale: number): void;
-
- getBrightness(): number;
- static getBrightness(): number;
- setBrightness(brightness: number): void;
- static setBrightness(brightness: number): void;
-
- getClouds(): number;
- static getClouds(): number;
- setClouds(clouds: number): void;
- static setClouds(clouds: number): void;
-
- getParticles(): number;
- static getParticles(): number;
- setParticles(particles: number): void;
- static setParticles(particles: number): void;
-
- getFullscreen(): boolean;
- static getFullscreen(): boolean;
- setFullscreen(toggled: boolean): void;
- static setFullscreen(toggled: boolean): void;
-
- getVsync(): boolean;
- static getVsync(): boolean;
- setVsync(toggled: boolean): void;
- static setVsync(toggled: boolean): void;
-
- getMipmapLevels(): number;
- static getMipmapLevels(): number;
- setMipmapLevels(mipmapLevels: number): void;
- static setMipmapLevels(mipmapLevels: number): void;
-
- getAlternateBlocks(): boolean;
- static getAlternateBlocks(): boolean;
- setAlternateBlocks(toggled: boolean): void;
- static setAlternateBlocks(toggled: boolean): void;
-
- getVBOs(): boolean;
- static getVBOs(): boolean;
- setVBOs(toggled: boolean): void;
- static setVBOs(toggled: boolean): void;
-
- getEntityShadows(): boolean;
- static getEntityShadows(): boolean;
- setEntityShadows(toggled: boolean): void;
- static setEntityShadows(toggled: boolean): void;
-}
-
-declare class chat {
- getVisibility(): MCEntityPlayer["EnumChatVisibility"];
- static getVisibility(): MCEntityPlayer["EnumChatVisibility"];
- setVisibility(visibility: "hidden" | "commands" | "system" | "full"): void;
- static setVisibility(
- visibility: "hidden" | "commands" | "system" | "full",
- ): void;
-
- getCcolors(): boolean;
- static getCcolors(): boolean;
- setColors(toggled: boolean): void;
- static setColors(toggled: boolean): void;
-
- getWebLinks(): boolean;
- static getWebLinks(): boolean;
- setWebLinks(toggled: boolean): void;
- static setWebLinks(toggled: boolean): void;
-
- getOpacity(): number;
- static getOpacity(): number;
- setOpacity(opacity: number): void;
- static setOpacity(opacity: number): void;
-
- getPromptOnWebLinks(): boolean;
- static getPromptOnWebLinks(): boolean;
- setPromptOnWebLinks(toggled: boolean): void;
- static setPromptOnWebLinks(toggled: boolean): void;
-}
-
-// "enum class"
-declare class TriggerType {
- // client
- static ActionBar: TriggerType;
- static AttackEntity: TriggerType;
- static Chat: TriggerType;
- static ChatComponentClicked: TriggerType;
- static ChatComponentHovered: TriggerType;
- static Clicked: TriggerType;
- static Dragged: TriggerType;
- static DropItem: TriggerType;
- static GameLoad: TriggerType;
- static GameUnload: TriggerType;
- static GuiClosed: TriggerType;
- static GuiDrawBackground: TriggerType;
- static GuiKey: TriggerType;
- static GuiMouseClick: TriggerType;
- static GuiMouseDrag: TriggerType;
- static GuiMouseRelease: TriggerType;
- static GuiOpened: TriggerType;
- static GuiRender: TriggerType;
- static HitBlock: TriggerType;
- static MessageSent: TriggerType;
- static PacketReceived: TriggerType;
- static PacketSent: TriggerType;
- static PickupItem: TriggerType;
- static PlayerInteract: TriggerType;
- static RenderSlot: TriggerType;
- static ScreenshotTaken: TriggerType;
- static Scrolled: TriggerType;
- static ServerConnect: TriggerType;
- static ServerDisconnect: TriggerType;
- static Step: TriggerType;
- static Tick: TriggerType;
- static Tooltip: TriggerType;
-
- // rendering
- static BlockHighlight: TriggerType;
- static PostGuiRender: TriggerType;
- static PostRenderEntity: TriggerType;
- static PostRenderTileEntity: TriggerType;
- static PreItemRender: TriggerType;
- static RenderAir: TriggerType;
- static RenderArmor: TriggerType;
- static RenderBossHealth: TriggerType;
- static RenderChat: TriggerType;
- static RenderCrosshair: TriggerType;
- static RenderDebug: TriggerType;
- static RenderEntity: TriggerType;
- static RenderExperience: TriggerType;
- static RenderFood: TriggerType;
- static RenderHand: TriggerType;
- static RenderHealth: TriggerType;
- static RenderHelmet: TriggerType;
- static RenderHotbar: TriggerType;
- static RenderItemIntoGui: TriggerType;
- static RenderItemOverlayIntoGui: TriggerType;
- static RenderJumpBar: TriggerType;
- static RenderMountHealth: TriggerType;
- static RenderOverlay: TriggerType;
- static RenderPlayerList: TriggerType;
- static RenderPortal: TriggerType;
- static RenderScoreboard: TriggerType;
- static RenderSlotHighlight: TriggerType;
- static RenderTileEntity: TriggerType;
- static RenderTitle: TriggerType;
- static RenderWorld: TriggerType;
-
- // world
- static BlockBreak: TriggerType;
- static EntityDamage: TriggerType;
- static EntityDeath: TriggerType;
- static NoteBlockChange: TriggerType;
- static NoteBlockPlay: TriggerType;
- static PlayerJoin: TriggerType;
- static PlayerLeave: TriggerType;
- static SoundPlay: TriggerType;
- static SpawnParticle: TriggerType;
- static WorldLoad: TriggerType;
- static WorldUnload: TriggerType;
-
- // misc
- static Forge: TriggerType;
- static Command: TriggerType;
- static Other: TriggerType;
-
- triggerAll(...args: any[]): void;
-}
-
-declare class GuiHandler {
- static readonly INSTANCE: GuiHandler;
-
- openGui(gui: MCGuiScreen): void;
-
- clearGuis(): void;
-
- onTick(event: ForgeTickEvent.ClientTickEvent): void;
-}
-
-declare class ClientListener {
- static readonly INSTANCE: ClientListener;
-
- addTask(delay: number, callback: () => void): void;
-
- onReceiveChat(event: ForgeClientChatReceivedEvent): void;
-
- onTick(event: ForgeTickEvent.ClientTickEvent): void;
-
- onDrawScreenEvent(event: ForgeGuiScreenEvent.DrawScreenEvent.Post): void;
-
- onRenderGameOverlay(event: ForgeRenderGameOverlayEvent): void;
-
- onGuiOpened(event: ForgeGuiOpenEvent): void;
-
- onBlockHighlight(event: ForgeDrawBlockHighlightEvent): void;
-
- onPickupItem(event: ForgeEntityItemPickupEvent): void;
-
- onHitBlock(pos: MCBlockPos, facing: MCEnumFacing): boolean;
-
- onDropItem(player: MCEntityPlayer, item: MCItemStack): boolean;
-
- onGuiRender(e: ForgeGuiScreenEvent.BackgroundDrawnEvent): void;
-
- onInteract(e: ForgePlayerInteractEvent): void;
-}
-declare namespace ClientListener {
- class State {
- constructor(x: number, y: number);
-
- getX(): number;
- getY(): number;
- }
- class PlayerInteractAction {
- static RIGHT_CLICK_BLOCK: ClientListener.PlayerInteractAction;
- static RIGHT_CLICK_EMPTY: ClientListener.PlayerInteractAction;
- static UNKNOWN: ClientListener.PlayerInteractAction;
- }
-}
-
-declare class Module {
- constructor(name: string, metadata: any, folder: JavaFile);
-
- readonly name: string;
- readonly metadata: any;
-
- draw(x: number, y: number, width: number): number;
-
- click(x: number, y: number, width: number): void;
-
- toString(): string;
-}
-
-declare interface ILoader {
- triggers: Trigger[];
-
- /**
- * Performs initial engine setup given a list of jars. Note that
- * these are all jars from all modules.
- */
- setup(jars: JavaURL[]): void;
-
- asmSetup(): void;
-
- asmPass(module: Module, asmURI: JavaURI): void;
-
- entrySetup(): void;
-
- /**
- * Loads a list of modules into the loader. This method will only
- * ever be called with modules that have an entry point corresponding
- * to this loader's language's extension
- */
- entryPass(module: Module, entryURI: JavaURI): void;
-
- /**
- * If we inject bytecode through ASM that wishes to callback to the user's script,
- * we need to link it to code that will actually make that call.
- *
- * This method lets each specific engine handle function invocation specifics themselves.
- *
- * @return a `MethodHandle` with type (Object[])Object
- */
- asmInvokeLookup(module: Module, functionURI: JavaURI): any;
-
- /**
- * Tells the loader that it should activate all triggers
- * of a certain type with the specified arguments.
- */
- exec(type: TriggerType, args: any[]): void;
-
- /**
- * Gets the result from evaluating a certain line of code in this loader
- */
- eval(code: string): string | null;
-
- /**
- * Adds a trigger to this loader to be activated during the game
- */
- addTrigger(trigger: Trigger): void;
-
- /**
- * Removes all triggers
- */
- clearTriggers(): void;
-
- /**
- * Returns the names of this specific loader's implemented languages
- */
- getLanguage(): any;
-
- /**
- * Actually calls the method for this trigger in this loader
- */
- trigger(trigger: Trigger, method: Function, args: any[]): void;
-
- /**
- * Removes a trigger from the current pool
- */
- removeTrigger(trigger: Trigger): void;
-
- /**
- * Save a resource to the OS's filesystem from inside the jar
- * @param resourceName name of the file inside the jar
- * @param outputFile file to save to
- * @param replace whether to replace the file being saved to
- */
- saveResource(
- resourceName: string,
- outputFile: JavaFile,
- replace: boolean,
- ): string;
-}
-
-//#endregion
-
-// TODO: Look at this because its awful and there has to be a way to not have to have so much duplicate code
-declare interface ITriggerRegister {
- /**
- * Registers a new trigger that runs before an action bar message is received.
- *
- * Passes through multiple arguments:
- * - Any number of chat criteria variables
- * - The chat event, which can be cancelled
- *
- * Available modifications:
- * - {@link ChatTrigger.triggerIfCanceled} Sets if triggered if event is already cancelled
- * - {@link ChatTrigger.setChatCriteria} Sets the chat criteria
- * - {@link ChatTrigger.setParameter} Sets the chat parameter
- * - {@link Trigger.setPriority} Sets the priority
- *
- * A NOTE ON AUTOCOMPLETE: DUE TO LIMITATIONS WITH REST PARAMETERS, TYPINGS FOR THE PARAMETERS OF THE FUNCTION ARE SLIGHTLY OFF
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerActionBar(
- method: (...params: (string | ForgeClientChatReceivedEvent)[]) => void,
- ): ChatTrigger;
-
- /**
- * Registers a new trigger that runs whenever the player has left clicked on an entity
- *
- * Passes through three arguments:
- * - The {@link Entity com.chattriggers.ctjs.minecraft.wrappers.objects.entity.Entity} that is being hit
- * - The event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerAttackEntity(
- method: (entity: Entity, event: CancellableEvent) => void,
- ): EventTrigger;
-
- /**
- * Registers a new trigger that runs before a chat message is received.
- *
- * Passes through multiple arguments:
- * - Any number of chat criteria variables
- * - The chat event, which can be cancelled
- *
- * Available modifications:
- * - {@link ChatTrigger.triggerIfCanceled} Sets if triggered if event is already cancelled
- * - {@link ChatTrigger.setChatCriteria} Sets the chat criteria
- * - {@link ChatTrigger.setParameter} Sets the chat parameter
- * - {@link Trigger.setPriority} Sets the priority
- *
- * A NOTE ON AUTOCOMPLETE: DUE TO LIMITATIONS WITH REST PARAMETERS, TYPINGS FOR THE PARAMETERS OF THE FUNCTION ARE SLIGHTLY OFF
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerChat(
- method: (...args: (string | ForgeClientChatReceivedEvent)[]) => void,
- ): ChatTrigger;
-
- /**
- * Registers a new trigger that runs whenever the user clicks on a clickable
- * chat component
- *
- * Passes through two arguments:
- * - The {@link TextComponent com.chattriggers.ctjs.minecraft.objects.message.TextComponent}
- * - The event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerChatComponentClicked(
- method: (component: TextComponent, event: CancellableEvent) => void,
- ): EventTrigger;
-
- /**
- * Registers a new trigger that runs whenever the user hovers over a
- * hoverable chat component
- *
- * Passes through two arguments:
- * - The {@link TextComponent com.chattriggers.ctjs.minecraft.objects.message.TextComponent}
- * - The event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerChatComponentHovered(
- method: (component: TextComponent, event: CancellableEvent) => void,
- ): EventTrigger;
-
- /**
- * Registers a new trigger that runs before a mouse button is being pressed or released.
- *
- * Passes through four arguments:
- * - The mouse x position
- * - The mouse y position
- * - The mouse button
- * - The mouse button state (true if button is pressed, false otherwise)
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerClicked(
- method: (
- mouseX: number,
- mouseY: number,
- button: number,
- isButtonDown: boolean,
- ) => void,
- ): RegularTrigger;
-
- /**
- * Registers a new trigger that runs while a mouse button is being held down.
- *
- * Passes through five arguments:
- * - The mouse delta x position (relative to last frame)
- * - The mouse delta y position (relative to last frame)
- * - The mouse x position
- * - The mouse y position
- * - The mouse button
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerDragged(
- method: (
- mouseDeltaX: number,
- mouseDeltaY: number,
- mouseX: number,
- mouseY: number,
- button: number,
- ) => void,
- ): RegularTrigger;
-
- /**
- * Registers a new trigger that runs before an item is dropped.
- *
- * Passes through five arguments:
- * - The {@link Item} that is dropped up
- * - The {@link PlayerMP com.chattriggers.ctjs.minecraft.wrappers.objects.PlayerMP} that dropped the item
- * - The item's position vector
- * - The item's motion vector
- * - The event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerDropItem(
- method: (item: Item, player: PlayerMP, event: CancellableEvent) => void,
- ): EventTrigger;
-
- /**
- * Registers a new trigger that runs after the game loads.
- *
- * This runs after the initial loading of the game directly after scripts are
- * loaded and after "/ct load" happens.
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerGameLoad(method: () => void): RegularTrigger;
-
- /**
- * Registers a new trigger that runs before the game unloads.
- *
- * This runs before shutdown of the JVM and before "/ct load" happens.
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerGameUnload(method: () => void): RegularTrigger;
-
- /**
- * Registers a new trigger that runs when a gui is closed.
- *
- * Passes through one argument:
- * - The gui that was closed
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerGuiClosed(method: (event: MCGuiScreen) => void): RegularTrigger;
-
- /**
- * Registers a new trigger that runs before the gui background is drawn
- * This is useful for drawing custom backgrounds.
- *
- * Passes through one argument:
- * - The {@link MCGuiScreen GuiScreen} that is being drawn
- *
- */
- registerGuiDrawBackground(
- method: (gui: MCGuiScreen, event: CancellableEvent) => void,
- ): EventTrigger;
-
- /**
- * Registers a new trigger that runs whenever a key is typed with a gui open
- *
- * Passes through four arguments:
- * - The character pressed (eg. 'd')
- * - The key code pressed (eg. 41)
- * - The gui
- * - The event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerGuiKey(
- method: (
- char: string,
- keyCode: number,
- gui: MCGuiScreen,
- event: CancellableEvent,
- ) => void,
- ): EventTrigger;
-
- /**
- * Registers a new trigger that runs whenever the mouse is clicked with a
- * gui open
- *
- * Passes through five arguments:
- * - The mouse x position
- * - The mouse y position
- * - The mouse button
- * - The gui
- * - The event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerGuiMouseClick(
- method: (
- mouseX: number,
- mouseY: number,
- mouseButton: number,
- gui: MCGuiScreen,
- event: CancellableEvent,
- ) => void,
- ): EventTrigger;
-
- /**
- * Registers a new trigger that runs whenever a mouse button held and dragged
- * with a gui open
- *
- * Passes through five arguments:
- * - The mouse x position
- * - The mouse y position
- * - The mouse button
- * - The gui
- * - The event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerGuiMouseDrag(
- method: (
- mouseX: number,
- mouseY: number,
- mouseButton: number,
- gui: MCGuiScreen,
- event: CancellableEvent,
- ) => void,
- ): EventTrigger;
-
- /**
- * Registers a new trigger that runs whenever a mouse button is released
- * with a gui open
- *
- * Passes through five arguments:
- * - The mouse x position
- * - The mouse y position
- * - The mouse button
- * - The gui
- * - The event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerGuiMouseRelease(
- method: (
- mouseX: number,
- mouseY: number,
- mouseButton: number,
- gui: MCGuiScreen,
- event: CancellableEvent,
- ) => void,
- ): EventTrigger;
-
- /**
- * Registers a new trigger that runs when a new gui is first opened.
- *
- * Passes through one argument:
- * - The gui opened event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerGuiOpened(method: (event: ForgeGuiOpenEvent) => void): EventTrigger;
-
- /**
- * Registers a new trigger that runs as a gui is rendered
- *
- * Passes through three arguments:
- * - The mouse x position
- * - The mouse y position
- * - The gui
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerGuiRender(
- method: (mouseX: number, mouseY: number, gui: MCGuiScreen) => void,
- ): RegularTrigger;
-
- /**
- * Registers a new trigger that runs whenever a block is left clicked
- *
- * Note: this is not continuously called while the block is being broken, only once
- * when first left clicked.
- *
- * Passes through two arguments:
- * - The {@link Block com.chattriggers.ctjs.minecraft.wrappers.objects.block.Block} being hit
- * - The event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerHitBlock(
- method: (block: Block, event: CancellableEvent) => void,
- ): EventTrigger;
-
- /**
- * Registers a new trigger that runs before a message is sent in chat.
- *
- * Passes through two arguments:
- * - The message
- * - The message event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerMessageSent(
- method: (message: string, event: CancellableEvent) => void,
- ): EventTrigger;
-
- /**
- * Registers a new trigger that runs whenever a packet is sent to the client from the server
- *
- * Passes through two arguments:
- * - The packet
- * - The event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- * - {@link ClassFilterTrigger.setFilteredClasses} Sets the packet classes which this trigger
- * gets fired for
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerPacketReceived(
- method: (packet: MCPacket<MCINetHandler>, event: CancellableEvent) => void,
- ): PacketTrigger;
-
- /**
- * Registers a new trigger that runs whenever a packet is sent from the client to the server
- *
- * Passes through two arguments:
- * - The packet
- * - The event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- * - {@link ClassFilterTrigger.setFilteredClasses} Sets the packet classes which this trigger
- * gets fired for
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerPacketSent(
- method: (packet: MCPacket<MCINetHandler>, event: CancellableEvent) => void,
- ): PacketTrigger;
-
- /**
- * Registers a new trigger that runs before an item is picked up.
- *
- * Passes through five arguments:
- * - The {@link Item} that is picked up
- * - The {@link PlayerMP com.chattriggers.ctjs.minecraft.wrappers.objects.PlayerMP} that picked up the item
- * - The item's position vector
- * - The item's motion vector
- * - The event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerPickupItem(
- method: (
- item: Item,
- player: PlayerMP,
- position: Vector3f,
- motion: Vector3f,
- event: ForgeEntityItemPickupEvent,
- ) => void,
- ): EventTrigger;
-
- /**
- * Registers a new trigger that runs before the player interacts.
- *
- * In 1.8.9, the following events will activate this trigger:
- * - Right clicking a block
- * - Right clicking the air
- *
- * In 1.12.2, the following events will activate this trigger:
- * - Left clicking a block
- * - Left clicking air
- * - Right clicking an entity
- * - Right clicking a block
- * - Right clicking an item
- * - Right clicking air
- *
- * Passes through three arguments:
- * - The {@link ClientListener.PlayerInteractAction}
- * - The position of the target as a Vector3f
- * - The event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerPlayerInteract(
- method: (
- action: ClientListener.PlayerInteractAction,
- position: Vector3f,
- event: ForgePlayerInteractEvent,
- ) => void,
- ): EventTrigger;
-
- /**
- * Registers a new trigger that runs before a slot is drawn in a container
- * This is useful for hiding "background" items in containers used as GUIs.
- *
- * Passes through three arguments:
- * - The {@link Slot} being drawn
- * - The MC GUIScreen that is being drawn
- * - The event, which can be cancelled
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerRenderSlot(
- method: (slot: Slot, gui: MCGuiContainer, event: CancellableEvent) => void,
- ): EventTrigger;
-
- /**
- * Registers a new trigger that runs before a screenshot is taken.
- *
- * Passes through two arguments:
- * - The name of the screenshot
- * - The screenshot event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerScreenshotTaken(
- method: (name: string, event: CancellableEvent) => void,
- ): EventTrigger;
-
- /**
- * Registers a new trigger that runs before the mouse is scrolled.
- *
- * Passes through three arguments:
- * - The mouse x position
- * - The mouse y position
- * - The scroll direction: 1, -1
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerScrolled(
- method: (mouseX: number, mouseY: number, direction: number) => void,
- ): RegularTrigger;
-
- /**
- * Registers a new trigger that runs whenever the player connects to a server
- *
- * Passes through one argument:
- * - The event, which cannot be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerServerConnect(
- method: (event: FMLNetworkEvent$ClientConnectedToServerEvent) => void,
- ): EventTrigger;
-
- /**
- * Registers a new trigger that runs whenever the player disconnects from a server
- *
- * Passes through two arguments:
- * - The event, which cannot be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerServerDisconnect(
- method: (event: FMLNetworkEvent$ClientDisconnectionFromServerEvent) => void,
- ): RegularTrigger;
-
- /**
- * Registers a new trigger that runs in predictable intervals. (60 per second by default)
- *
- * Passes through one argument:
- * - Steps elapsed
- *
- * Available modifications:
- * - {@link StepTrigger.setFps} Sets the fps, i.e. how many times this trigger will fire
- * per second
- * - {@link StepTrigger.setDelay} Sets the delay in seconds, i.e. how many seconds it takes
- * to fire. Overrides {@link StepTrigger.setFps}.
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerStep(method: (elapsed: number) => void): StepTrigger;
-
- /**
- * Registers a new trigger that runs before every game tick.
- *
- * Passes through one argument:
- * - Ticks elapsed
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerTick(method: (elapsed: number) => void): RegularTrigger;
-
- /**
- * Registers a new trigger that runs when a tooltip is being rendered.
- * This allows for the user to modify what text is in the tooltip, and even the
- * ability to cancel rendering completely.
- *
- * Passes through three arguments:
- * - The list of lore to modify.
- * - The {@link Item} that this lore is attached to.
- * - The cancellable event.
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerItemTooltip(
- method: (lore: string[], item: Item, event: CancellableEvent) => void,
- ): EventTrigger;
-
- /**
- * Registers a new trigger that runs before the block highlight box is drawn.
- *
- * Passes through two arguments:
- * - The draw block highlight event's position
- * - The draw block highlight event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerDrawBlockHighlight(
- method: (position: Vector3f, event: ForgeDrawBlockHighlightEvent) => void,
- ): EventTrigger;
-
- /**
- * Registers a new trigger that runs after the current screen is rendered
- *
- * Passes through three arguments:
- * - The mouseX
- * - The mouseY
- * - The GuiScreen
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerPostGuiRender(
- method: (mouseX: number, mouseY: number, gui: MCGuiScreen) => void,
- ): RegularTrigger;
-
- /**
- * Registers a new trigger that runs after an entity is rendered
- *
- * Passes through three arguments:
- * - The {@link Entity com.chattriggers.ctjs.minecraft.wrappers.objects.entity.Entity}
- * - The position as a Vector3f
- * - The partial ticks
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- * - {@link ClassFilterTrigger.setFilteredClasses} Sets the entity classes which this trigger
- * gets fired for
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerPostRenderEntity(
- method: (entity: Entity, pos: Vector3f, partialTicks: number) => void,
- ): RenderEntityTrigger;
-
- /**
- * Registers a new trigger that runs after a tile entity is rendered
- *
- * Passes through three arguments:
- * - The TileEntity
- * - The position as a Vector3f
- * - The partial ticks
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- * - {@link ClassFilterTrigger.setFilteredClasses} Sets the tile entity classes which this trigger gets fired for
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerPostRenderTileEntity(
- method: (entity: MCTileEntity, pos: Vector3f, partialTicks: number) => void,
- ): RenderTileEntityTrigger;
-
- /**
- * Registers a new trigger that runs before the items in the gui are drawn
- *
- * Passes through five arguments:
- * - The mouseX position
- * - The mouseY position
- * - The MC Slot
- * - The GuiContainer
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerPreItemRender(
- method: (
- mouseX: number,
- mouseY: number,
- slot: MCSlot,
- gui: MCGuiContainer,
- ) => void,
- ): RegularTrigger;
-
- /**
- * Registers a new trigger that runs before the player's air level is drawn.
- *
- * Passes through one argument:
- * - The render event, which can be cancelled
- *
- * Available modifications:
- * - {@link EventTrigger.triggerIfCanceled} Sets if triggered if event is already cancelled
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerRenderAir(
- method: (
- event: ForgeRenderGameOverlayEvent & CancellableEventHelper,
- ) => void,
- ): EventTrigger;
-
- /**
- * Registers a new trigger that runs before the player's armor bar is drawn.
- *
- * Passes through one argument:
- * - The render event, which can be cancelled
- *
- * Available modifications:
- * - {@link EventTrigger.triggerIfCanceled} Sets if triggered if event is already cancelled
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerRenderArmor(
- method: (
- event: ForgeRenderGameOverlayEvent & CancellableEventHelper,
- ) => void,
- ): EventTrigger;
-
- /**
- * Registers a new trigger that runs before the boss health bar is being drawn.
- *
- * Passes through one argument:
- * - The render event, which can be cancelled
- *
- * Available modifications:
- * - {@link EventTrigger.triggerIfCanceled} Sets if triggered if event is already cancelled
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerRenderBossHealth(
- method: (
- event: ForgeRenderGameOverlayEvent & CancellableEventHelper,
- ) => void,
- ): EventTrigger;
-
- /**
- * Registers a new trigger that runs before the chat is drawn.
- *
- * Passes through one argument:
- * - The render event, which can be cancelled
- *
- * Available modifications:
- * - {@link EventTrigger.triggerIfCanceled} Sets if triggered if event is already cancelled
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerRenderChat(
- method: (
- event: ForgeRenderGameOverlayEvent & CancellableEventHelper,
- ) => void,
- ): EventTrigger;
-
- /**
- * Registers a new trigger that runs before the crosshair is being drawn.
- *
- * Passes through one argument:
- * - The render event, which can be cancelled
- *
- * Available modifications:
- * - {@link EventTrigger.triggerIfCanceled} Sets if triggered if event is already cancelled
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerRenderCrosshair(
- method: (
- event: ForgeRenderGameOverlayEvent & CancellableEventHelper,
- ) => void,
- ): EventTrigger;
-
- /**
- * Registers a trigger that runs before the debug screen is being drawn.
- *
- * Passes through one argument:
- * - The render event, which can be cancelled
- *
- * Available modifications:
- * - {@link EventTrigger.triggerIfCanceled} Sets if triggered if event is already cancelled
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerRenderDebug(
- method: (
- event: ForgeRenderGameOverlayEvent & CancellableEventHelper,
- ) => void,
- ): EventTrigger;
-
- /**
- * Registers a new trigger that runs whenever an entity is rendered
- *
- * Passes through four arguments:
- * - The {@link Entity com.chattriggers.ctjs.minecraft.wrappers.objects.entity.Entity}
- * - The position as a Vector3f
- * - The partial ticks
- * - The event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- * - {@link ClassFilterTrigger.setFilteredClasses} Sets the entity classes which this trigger
- * gets fired for
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerRenderEntity(
- method: (
- entity: MCEntity,
- position: Vector3f,
- partialTicks: number,
- event: CancellableEvent,
- ) => void,
- ): RenderEntityTrigger;
-
- /**
- * Registers a new trigger that runs before the player's experience is being drawn.
- *
- *
- * Passes through one argument:
- * - The render event, which can be cancelled
- *
- * Available modifications:
- * - {@link EventTrigger.triggerIfCanceled} Sets if triggered if event is already cancelled
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerRenderExperience(
- method: (
- event: ForgeRenderGameOverlayEvent & CancellableEventHelper,
- ) => void,
- ): EventTrigger;
-
- /**
- * Registers a new trigger that runs before the player's food is being drawn.
- *
- * Passes through one argument:
- * - The render event, which can be cancelled
- *
- * Available modifications:
- * - {@link EventTrigger.triggerIfCanceled} Sets if triggered if event is already cancelled
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerRenderFood(
- method: (
- event: ForgeRenderGameOverlayEvent & CancellableEventHelper,
- ) => void,
- ): EventTrigger;
-
- /**
- * Registers a new trigger that runs before the player's hand is drawn.
- *
- * Passes through one argument:
- * - The event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerRenderHand(method: (event: CancellableEvent) => void): EventTrigger;
-
- /**
- * Registers a new trigger that runs before the player's health is being drawn.
- *
- * Passes through one argument:
- * - The render event, which can be cancelled
- *
- * Available modifications:
- * - {@link EventTrigger.triggerIfCanceled} Sets if triggered if event is already cancelled
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerRenderHealth(
- method: (
- event: ForgeRenderGameOverlayEvent & CancellableEventHelper,
- ) => void,
- ): EventTrigger;
-
- /**
- * Registers a new trigger that runs before the player's helmet overlay is drawn.
- * This triggers when a pumpkin is on the player's head
- *
- * Passes through one argument:
- * - The render event, which can be cancelled
- *
- * Available modifications:
- * - {@link EventTrigger.triggerIfCanceled} Sets if triggered if event is already cancelled
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerRenderHelmet(
- method: (
- event: ForgeRenderGameOverlayEvent & CancellableEventHelper,
- ) => void,
- ): EventTrigger;
-
- /**
- * Registers a new trigger that runs before the player's hotbar is drawn.
- *
- * Passes through one argument:
- * - The render event, which can be cancelled
- *
- * Available modifications:
- * - {@link EventTrigger.triggerIfCanceled} Sets if triggered if event is already cancelled
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerRenderHotbar(
- method: (
- event: ForgeRenderGameOverlayEvent & CancellableEventHelper,
- ) => void,
- ): EventTrigger;
-
- /**
- * Registers a new trigger that runs before each item is drawn into a GUI.
- *
- * Passes through four arguments:
- * - The {@link Item}
- * - The x position
- * - The y position
- * - The event, which can be cancelled.
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerRenderItemIntoGui(
- method: (item: Item, x: number, y: number, event: CancellableEvent) => void,
- ): EventTrigger;
-
- /**
- * Registers a new trigger that runs before each item overlay (stack size and damage bar) is drawn.
- *
- * Passes through four arguments:
- * - The {@link Item}
- * - The x position
- * - The y position
- * - The event, which can be cancelled.
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerRenderItemOverlayIntoGui(
- method: (item: Item, x: number, y: number, event: CancellableEvent) => void,
- ): EventTrigger;
-
- /**
- * Registers a new trigger that runs before the jump bar is drawn.
- *
- * Passes through one argument:
- * - The render event, which can be cancelled
- *
- * Available modifications:
- * - {@link EventTrigger.triggerIfCanceled} Sets if triggered if event is already cancelled
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerRenderJumpBar(
- method: (
- event: ForgeRenderGameOverlayEvent & CancellableEventHelper,
- ) => void,
- ): EventTrigger;
-
- /**
- * Registers a new trigger that runs before the player's mount's health is being drawn.
- *
- * Passes through one argument:
- * - The render event, which can be cancelled
- *
- * Available modifications:
- * - {@link EventTrigger.triggerIfCanceled} Sets if triggered if event is already cancelled
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerRenderMountHealth(
- method: (
- event: ForgeRenderGameOverlayEvent & CancellableEventHelper,
- ) => void,
- ): EventTrigger;
-
- /**
- * Registers a new trigger that runs before the overlay is drawn.
- *
- * Passes through one argument:
- * - The render event, which cannot be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerRenderOverlay(
- method: (event: ForgeRenderGameOverlayEvent) => void,
- ): EventTrigger;
-
- /**
- * Registers a new trigger that runs before the player list is being drawn.
- *
- * Passes through one argument:
- * - The render event, which can be cancelled
- *
- * Available modifications:
- * - {@link EventTrigger.triggerIfCanceled} Sets if triggered if event is already cancelled
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerRenderPlayerList(
- method: (
- event: ForgeRenderGameOverlayEvent & CancellableEventHelper,
- ) => void,
- ): EventTrigger;
-
- /**
- * Registers a new trigger that runs before the portal effect is drawn.
- *
- * Passes through one argument:
- * - The render event, which can be cancelled
- *
- * Available modifications:
- * - {@link EventTrigger.triggerIfCanceled} Sets if triggered if event is already cancelled
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerRenderPortal(
- method: (
- event: ForgeRenderGameOverlayEvent & CancellableEventHelper,
- ) => void,
- ): EventTrigger;
-
- /**
- * Registers a new trigger that runs before the scoreboard is drawn.
- *
- * Passes through one argument:
- * - The event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerRenderScoreboard(
- method: (event: CancellableEvent) => void,
- ): EventTrigger;
-
- /**
- * Registers a new trigger that runs before the hovered slot square is drawn.
- *
- * Passes through six arguments:
- * - The mouseX position
- * - The mouseY position
- * - The Slot
- * - The GuiContainer
- * - The event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerRenderSlotHighlight(
- method: (
- mouseX: number,
- mouseY: number,
- slot: MCSlot,
- gui: MCGuiContainer,
- event: CancellableEvent,
- ) => void,
- ): EventTrigger;
-
- /**
- * Registers a new trigger that runs whenever a tile entity is rendered
- *
- * Passes through four arguments:
- * - The TileEntity
- * - The position as a Vector3f
- * - The partial ticks
- * - The event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- * - {@link ClassFilterTrigger.setFilteredClasses} Sets the tile entity classes which this trigger gets fired for
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerRenderTileEntity(
- method: (
- entity: MCTileEntity,
- pos: Vector3f,
- partialTicks: number,
- event: CancellableEvent,
- ) => void,
- ): RenderTileEntityTrigger;
-
- /**
- * Registers a new trigger that runs before the title and subtitle are drawn.
- *
- * Passes through three arguments:
- * - The title
- * - The subtitle
- * - The event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerRenderTitle(
- method: (title: string, subtitle: string, event: CancellableEvent) => void,
- ): EventTrigger;
-
- /**
- * Registers a new trigger that runs before the world is drawn.
- *
- * Passes through one argument:
- * - Partial ticks elapsed
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerRenderWorld(method: (partialTicks: number) => void): RegularTrigger;
-
- /**
- * Registers a new trigger that runs before the player breaks a block
- *
- * Passes through one argument:
- * - The block
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerBlockBreak(method: (block: Block) => void): RegularTrigger;
-
- /**
- * Registers a new trigger that runs before an entity is damaged
- *
- * Passes through two arguments:
- * - The target Entity that is damaged
- * - The PlayerMP attacker
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerEntityDamage(
- method: (target: Entity, attacker: PlayerMP) => void,
- ): RegularTrigger;
-
- /**
- * Registers a new trigger that runs before an entity dies
- *
- * Passes through one argument:
- * - The Entity that died
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerEntityDeath(method: (entity: Entity) => void): RegularTrigger;
-
- /**
- * Registers a new trigger that runs before a noteblock is changed.
- *
- * Passes through four arguments:
- * - The note block change event's Vector3f position
- * - The note block change event's note's name
- * - The note block change event's octave
- * - The note block change event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerNoteBlockChange(
- method: (
- position: Vector3f,
- name: string,
- octave: ForgeNoteBlockEvent.Octave,
- event: ForgeNoteBlockEvent.Change,
- ) => void,
- ): EventTrigger;
-
- /**
- * Registers a new trigger that runs before a noteblock is played.
- *
- * Passes through four arguments:
- * - The note block play event's Vector3f position
- * - The note block play event's note's name
- * - The note block play event's octave
- * - The note block play event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerNoteBlockPlay(
- method: (
- position: Vector3f,
- name: string,
- octave: ForgeNoteBlockEvent.Octave,
- event: ForgeNoteBlockEvent.Play,
- ) => void,
- ): EventTrigger;
-
- /**
- * Registers a new trigger that runs when a player joins the world.
- *
- * Maximum is one per tick. Any extras will queue and run in later ticks.
- * This trigger is asynchronous.
- *
- * Passes through one argument:
- * - The {@link PlayerMP com.chattriggers.ctjs.minecraft.wrappers.objects.PlayerMP} object
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerPlayerJoined(method: (player: PlayerMP) => void): RegularTrigger;
-
- /**
- * Registers a new trigger that runs when a player leaves the world.
- *
- * Maximum is one per tick. Any extras will queue and run in later ticks.
- * This trigger is asynchronous.
- *
- * Passes through one argument:
- * - The name of the player that left
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerPlayerLeft(method: (name: string) => void): RegularTrigger;
-
- /**
- * Registers a new trigger that runs before a sound is played.
- *
- * Passes through six arguments:
- * - The sound event's position
- * - The sound event's name
- * - The sound event's volume
- * - The sound event's pitch
- * - The sound event's category's name
- * - The sound event, which can be cancelled
- *
- * Available modifications:
- * - {@link SoundPlayTrigger.setCriteria} Sets the sound name criteria
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerSoundPlay(
- method: (
- position: Vector3f,
- name: string,
- vol: number,
- pitch: number,
- category: MCSoundCategory,
- event: ForgePlaySoundEvent,
- ) => void,
- ): SoundPlayTrigger;
-
- /**
- * Registers a new trigger that runs whenever a particle is spawned
- *
- * Passes through three arguments:
- * - The {@link Particle com.chattriggers.ctjs.minecraft.wrappers.objects.Particle}
- * - The {@link MCEnumParticleTypes net.minecraft.util.EnumParticleTypes}
- * - The event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerSpawnParticle(
- method: (
- particle: Particle,
- type: MCEnumParticleTypes,
- event: CancellableEvent,
- ) => void,
- ): EventTrigger;
-
- /**
- * Registers a trigger that runs before the world loads.
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerWorldLoad(method: () => void): RegularTrigger;
-
- /**
- * Registers a new trigger that runs before the world unloads.
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerWorldUnload(method: () => void): RegularTrigger;
-
- /**
- * Registers a new command that will run the method provided.
- *
- * Passes through multiple arguments:
- * - The arguments supplied to the command by the user
- *
- * Available modifications:
- * - {@link CommandTrigger.setCommandName} Sets the command name
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- registerCommand(method: (...args: string[]) => void): CommandTrigger;
-
- register: IRegister;
-}
-
-declare interface IRegister {
- /**
- * Registers a new trigger that runs before an action bar message is received.
- *
- * Passes through multiple arguments:
- * - Any number of chat criteria variables
- * - The chat event, which can be cancelled
- *
- * Available modifications:
- * - {@link ChatTrigger.triggerIfCanceled} Sets if triggered if event is already cancelled
- * - {@link ChatTrigger.setChatCriteria} Sets the chat criteria
- * - {@link ChatTrigger.setParameter} Sets the chat parameter
- * - {@link Trigger.setPriority} Sets the priority
- *
- * A NOTE ON AUTOCOMPLETE: DUE TO LIMITATIONS WITH REST PARAMETERS, TYPINGS FOR THE PARAMETERS OF THE FUNCTION ARE SLIGHTLY OFF
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "actionBar",
- method: Parameters<ITriggerRegister["registerActionBar"]>[0],
- ): ReturnType<ITriggerRegister["registerActionBar"]>;
-
- /**
- * Registers a new trigger that runs whenever the player has left clicked on an entity
- *
- * Passes through three arguments:
- * - The {@link Entity com.chattriggers.ctjs.minecraft.wrappers.objects.entity.Entity} that is being hit
- * - The event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "attackEntity",
- method: Parameters<ITriggerRegister["registerAttackEntity"]>[0],
- ): ReturnType<ITriggerRegister["registerAttackEntity"]>;
-
- /**
- * Registers a new trigger that runs before a chat message is received.
- *
- * Passes through multiple arguments:
- * - Any number of chat criteria variables
- * - The chat event, which can be cancelled
- *
- * Available modifications:
- * - {@link ChatTrigger.triggerIfCanceled} Sets if triggered if event is already cancelled
- * - {@link ChatTrigger.setChatCriteria} Sets the chat criteria
- * - {@link ChatTrigger.setParameter} Sets the chat parameter
- * - {@link Trigger.setPriority} Sets the priority
- *
- * A NOTE ON AUTOCOMPLETE: DUE TO LIMITATIONS WITH REST PARAMETERS, TYPINGS FOR THE PARAMETERS OF THE FUNCTION ARE SLIGHTLY OFF
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "chat",
- method: Parameters<ITriggerRegister["registerChat"]>[0],
- ): ReturnType<ITriggerRegister["registerChat"]>;
- /**
- * Registers a new trigger that runs whenever the user clicks on a clickable
- * chat component
- *
- * Passes through two arguments:
- * - The {@link TextComponent com.chattriggers.ctjs.minecraft.objects.message.TextComponent}
- * - The event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "chatComponentClicked",
- method: Parameters<ITriggerRegister["registerChatComponentClicked"]>[0],
- ): ReturnType<ITriggerRegister["registerChatComponentClicked"]>;
-
- /**
- * Registers a new trigger that runs whenever the user hovers over a
- * hoverable chat component
- *
- * Passes through two arguments:
- * - The {@link TextComponent com.chattriggers.ctjs.minecraft.objects.message.TextComponent}
- * - The event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "chatComponentHovered",
- method: Parameters<ITriggerRegister["registerChatComponentHovered"]>[0],
- ): ReturnType<ITriggerRegister["registerChatComponentHovered"]>;
-
- /**
- * Registers a new trigger that runs before a mouse button is being pressed or released.
- *
- * Passes through four arguments:
- * - The mouse x position
- * - The mouse y position
- * - The mouse button
- * - The mouse button state (true if button is pressed, false otherwise)
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "clicked",
- method: Parameters<ITriggerRegister["registerClicked"]>[0],
- ): ReturnType<ITriggerRegister["registerClicked"]>;
-
- /**
- * Registers a new trigger that runs while a mouse button is being held down.
- *
- * Passes through five arguments:
- * - The mouse delta x position (relative to last frame)
- * - The mouse delta y position (relative to last frame)
- * - The mouse x position
- * - The mouse y position
- * - The mouse button
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "dragged",
- method: Parameters<ITriggerRegister["registerDragged"]>[0],
- ): ReturnType<ITriggerRegister["registerDragged"]>;
-
- /**
- * Registers a new trigger that runs before an item is dropped.
- *
- * Passes through five arguments:
- * - The {@link Item} that is dropped up
- * - The {@link PlayerMP com.chattriggers.ctjs.minecraft.wrappers.objects.PlayerMP} that dropped the item
- * - The item's position vector
- * - The item's motion vector
- * - The event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "dropItem",
- method: Parameters<ITriggerRegister["registerDropItem"]>[0],
- ): ReturnType<ITriggerRegister["registerDropItem"]>;
-
- /**
- * Registers a new trigger that runs after the game loads.
- *
- * This runs after the initial loading of the game directly after scripts are
- * loaded and after "/ct load" happens.
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "gameLoad",
- method: Parameters<ITriggerRegister["registerGameLoad"]>[0],
- ): ReturnType<ITriggerRegister["registerGameLoad"]>;
-
- /**
- * Registers a new trigger that runs before the game unloads.
- *
- * This runs before shutdown of the JVM and before "/ct load" happens.
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "gameUnload",
- method: Parameters<ITriggerRegister["registerGameUnload"]>[0],
- ): ReturnType<ITriggerRegister["registerGameUnload"]>;
-
- /**
- * Registers a new trigger that runs when a gui is closed.
- *
- * Passes through one argument:
- * - The gui that was closed
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "guiClosed",
- method: Parameters<ITriggerRegister["registerGuiClosed"]>[0],
- ): ReturnType<ITriggerRegister["registerGuiClosed"]>;
-
- /**
- * Registers a new trigger that runs before the gui background is drawn
- * This is useful for drawing custom backgrounds.
- *
- * Passes through one argument:
- * - The {@link MCGuiScreen GuiScreen} that is being drawn
- *
- */
- (
- triggerType: "guiDrawBackground",
- method: Parameters<ITriggerRegister["registerGuiDrawBackground"]>[0],
- ): ReturnType<ITriggerRegister["registerGuiDrawBackground"]>;
-
- /**
- * Registers a new trigger that runs whenever a key is typed with a gui open
- *
- * Passes through four arguments:
- * - The character pressed (e.g. 'd')
- * - The key code pressed (e.g. 41)
- * - The gui
- * - The event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "guiKey",
- method: Parameters<ITriggerRegister["registerGuiKey"]>[0],
- ): ReturnType<ITriggerRegister["registerGuiKey"]>;
-
- /**
- * Registers a new trigger that runs whenever the mouse is clicked with a
- * gui open
- *
- * Passes through five arguments:
- * - The mouse x position
- * - The mouse y position
- * - The mouse button
- * - The gui
- * - The event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "guiMouseClick",
- method: Parameters<ITriggerRegister["registerGuiMouseClick"]>[0],
- ): ReturnType<ITriggerRegister["registerGuiMouseClick"]>;
-
- /**
- * Registers a new trigger that runs whenever a mouse button held and dragged
- * with a gui open
- *
- * Passes through five arguments:
- * - The mouse x position
- * - The mouse y position
- * - The mouse button
- * - The gui
- * - The event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "guiMouseDrag",
- method: Parameters<ITriggerRegister["registerGuiMouseDrag"]>[0],
- ): ReturnType<ITriggerRegister["registerGuiMouseDrag"]>;
-
- /**
- * Registers a new trigger that runs whenever a mouse button is released
- * with a gui open
- *
- * Passes through five arguments:
- * - The mouse x position
- * - The mouse y position
- * - The mouse button
- * - The gui
- * - The event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "guiMouseRelease",
- method: Parameters<ITriggerRegister["registerGuiMouseRelease"]>[0],
- ): ReturnType<ITriggerRegister["registerGuiMouseRelease"]>;
-
- /**
- * Registers a new trigger that runs when a new gui is first opened.
- *
- * Passes through one argument:
- * - The gui opened event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "guiOpened",
- method: Parameters<ITriggerRegister["registerGuiOpened"]>[0],
- ): ReturnType<ITriggerRegister["registerGuiOpened"]>;
-
- /**
- * Registers a new trigger that runs as a gui is rendered
- *
- * Passes through three arguments:
- * - The mouse x position
- * - The mouse y position
- * - The gui
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "guiRender",
- method: Parameters<ITriggerRegister["registerGuiRender"]>[0],
- ): ReturnType<ITriggerRegister["registerGuiRender"]>;
-
- /**
- * Registers a new trigger that runs whenever a block is left clicked
- *
- * Note: this is not continuously called while the block is being broken, only once
- * when first left clicked.
- *
- * Passes through two arguments:
- * - The {@link Block com.chattriggers.ctjs.minecraft.wrappers.objects.block.Block} being hit
- * - The event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "hitBlock",
- method: Parameters<ITriggerRegister["registerHitBlock"]>[0],
- ): ReturnType<ITriggerRegister["registerHitBlock"]>;
-
- /**
- * Registers a new trigger that runs before a message is sent in chat.
- *
- * Passes through two arguments:
- * - The message
- * - The message event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "messageSent",
- method: Parameters<ITriggerRegister["registerMessageSent"]>[0],
- ): ReturnType<ITriggerRegister["registerMessageSent"]>;
-
- /**
- * Registers a new trigger that runs whenever a packet is sent to the client from the server
- *
- * Passes through two arguments:
- * - The packet
- * - The event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- * - {@link ClassFilterTrigger.setFilteredClasses} Sets the packet classes which this trigger
- * gets fired for
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "packetReceived",
- method: Parameters<ITriggerRegister["registerPacketReceived"]>[0],
- ): ReturnType<ITriggerRegister["registerPacketReceived"]>;
-
- /**
- * Registers a new trigger that runs whenever a packet is sent from the client to the server
- *
- * Passes through two arguments:
- * - The packet
- * - The event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- * - {@link ClassFilterTrigger.setFilteredClasses} Sets the packet classes which this trigger
- * gets fired for
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "packetSent",
- method: Parameters<ITriggerRegister["registerPacketSent"]>[0],
- ): ReturnType<ITriggerRegister["registerPacketSent"]>;
-
- /**
- * Registers a new trigger that runs before an item is picked up.
- *
- * Passes through five arguments:
- * - The {@link Item} that is picked up
- * - The {@link PlayerMP com.chattriggers.ctjs.minecraft.wrappers.objects.PlayerMP} that picked up the item
- * - The item's position vector
- * - The item's motion vector
- * - The event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "pickupItem",
- method: Parameters<ITriggerRegister["registerPickupItem"]>[0],
- ): ReturnType<ITriggerRegister["registerPickupItem"]>;
-
- /**
- * Registers a new trigger that runs before the player interacts.
- *
- * In 1.8.9, the following events will activate this trigger:
- * - Left clicking a block
- * - Right clicking a block
- * - Right clicking the air
- *
- * In 1.12.2, the following events will activate this trigger:
- * - Left clicking a block
- * - Left clicking air
- * - Right clicking an entity
- * - Right clicking a block
- * - Right clicking an item
- * - Right clicking air
- *
- * Passes through three arguments:
- * - The {@link ClientListener.PlayerInteractAction}
- * - The position of the target as a Vector3f
- * - The event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "playerInteract",
- method: Parameters<ITriggerRegister["registerPlayerInteract"]>[0],
- ): ReturnType<ITriggerRegister["registerPlayerInteract"]>;
- /**
- * Registers a new trigger that runs before a slot is drawn in a container
- * This is useful for hiding "background" items in containers used as GUIs.
- *
- * Passes through three arguments:
- * - The Slot] being drawn
- * - The MC GUIScreen that is being drawn
- * - The event, which can be cancelled
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "renderSlot",
- method: Parameters<ITriggerRegister["registerRenderSlot"]>[0],
- ): ReturnType<ITriggerRegister["registerRenderSlot"]>;
-
- /**
- * Registers a new trigger that runs before a screenshot is taken.
- *
- * Passes through two arguments:
- * - The name of the screenshot
- * - The screenshot event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "screenshotTaken",
- method: Parameters<ITriggerRegister["registerScreenshotTaken"]>[0],
- ): ReturnType<ITriggerRegister["registerScreenshotTaken"]>;
-
- /**
- * Registers a new trigger that runs before the mouse is scrolled.
- *
- * Passes through three arguments:
- * - The mouse x position
- * - The mouse y position
- * - The scroll direction: 1, -1
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "scrolled",
- method: Parameters<ITriggerRegister["registerScrolled"]>[0],
- ): ReturnType<ITriggerRegister["registerScrolled"]>;
-
- /**
- * Registers a new trigger that runs whenever the player connects to a server
- *
- * Passes through one argument:
- * - The event, which cannot be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "serverConnect",
- method: Parameters<ITriggerRegister["registerServerConnect"]>[0],
- ): ReturnType<ITriggerRegister["registerServerConnect"]>;
-
- /**
- * Registers a new trigger that runs whenever the player disconnects from a server
- *
- * Passes through two arguments:
- * - The event, which cannot be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "serverDisconnect",
- method: Parameters<ITriggerRegister["registerServerDisconnect"]>[0],
- ): ReturnType<ITriggerRegister["registerServerDisconnect"]>;
-
- /**
- * Registers a new trigger that runs in predictable intervals. (60 per second by default)
- *
- * Passes through one argument:
- * - Steps elapsed
- *
- * Available modifications:
- * - {@link StepTrigger.setFps} Sets the fps, i.e. how many times this trigger will fire
- * per second
- * - {@link StepTrigger.setDelay} Sets the delay in seconds, i.e how many seconds it takes
- * to fire. Overrides {@link StepTrigger.setFps}.
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "step",
- method: Parameters<ITriggerRegister["registerStep"]>[0],
- ): ReturnType<ITriggerRegister["registerStep"]>;
-
- /**
- * Registers a new trigger that runs before every game tick.
- *
- * Passes through one argument:
- * - Ticks elapsed
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "tick",
- method: Parameters<ITriggerRegister["registerTick"]>[0],
- ): ReturnType<ITriggerRegister["registerTick"]>;
-
- /**
- * Registers a new trigger that runs when a tooltip is being rendered.
- * This allows for the user to modify what text is in the tooltip, and even the
- * ability to cancel rendering completely.
- *
- * Passes through three arguments:
- * - The list of lore to modify.
- * - The {@link Item} that this lore is attached to.
- * - The cancellable event.
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "itemTooltip",
- method: Parameters<ITriggerRegister["registerItemTooltip"]>[0],
- ): ReturnType<ITriggerRegister["registerItemTooltip"]>;
-
- /**
- * Registers a new trigger that runs before the block highlight box is drawn.
- *
- * Passes through two arguments:
- * - The draw block highlight event's position
- * - The draw block highlight event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "drawBlockHighlight",
- method: Parameters<ITriggerRegister["registerDrawBlockHighlight"]>[0],
- ): ReturnType<ITriggerRegister["registerDrawBlockHighlight"]>;
-
- /**
- * Registers a new trigger that runs after the current screen is rendered
- *
- * Passes through three arguments:
- * - The mouseX
- * - The mouseY
- * - The GuiScreen
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "postGuiRender",
- method: Parameters<ITriggerRegister["registerPostGuiRender"]>[0],
- ): ReturnType<ITriggerRegister["registerPostGuiRender"]>;
-
- /**
- * Registers a new trigger that runs after an entity is rendered
- *
- * Passes through three arguments:
- * - The {@link Entity com.chattriggers.ctjs.minecraft.wrappers.objects.entity.Entity}
- * - The position as a Vector3f
- * - The partial ticks
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- * - {@link ClassFilterTrigger.setFilteredClasses} Sets the entity classes which this trigger
- * gets fired for
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "postRenderEntity",
- method: Parameters<ITriggerRegister["registerPostRenderEntity"]>[0],
- ): ReturnType<ITriggerRegister["registerPostRenderEntity"]>;
-
- /**
- * Registers a new trigger that runs after a tile entity is rendered
- *
- * Passes through three arguments:
- * - The TileEntity
- * - The position as a Vector3f
- * - The partial ticks
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- * - {@link ClassFilterTrigger.setFilteredClasses} Sets the tile entity classes which this trigger gets fired for
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "postRenderTileEntity",
- method: Parameters<ITriggerRegister["registerPostRenderTileEntity"]>[0],
- ): ReturnType<ITriggerRegister["registerPostRenderTileEntity"]>;
-
- /**
- * Registers a new trigger that runs before the items in the gui are drawn
- *
- * Passes through five arguments:
- * - The mouseX position
- * - The mouseY position
- * - The MC Slot
- * - The GuiContainer
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "preItemRender",
- method: Parameters<ITriggerRegister["registerPreItemRender"]>[0],
- ): ReturnType<ITriggerRegister["registerPreItemRender"]>;
- /**
- * Registers a new trigger that runs before the player's air level is drawn.
- *
- * Passes through one argument:
- * - The render event, which can be cancelled
- *
- * Available modifications:
- * - {@link EventTrigger.triggerIfCanceled} Sets if triggered if event is already cancelled
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "renderAir",
- method: Parameters<ITriggerRegister["registerRenderAir"]>[0],
- ): ReturnType<ITriggerRegister["registerRenderAir"]>;
-
- /**
- * Registers a new trigger that runs before the player's armor bar is drawn.
- *
- * Passes through one argument:
- * - The render event, which can be cancelled
- *
- * Available modifications:
- * - {@link EventTrigger.triggerIfCanceled} Sets if triggered if event is already cancelled
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "renderArmor",
- method: Parameters<ITriggerRegister["registerRenderArmor"]>[0],
- ): ReturnType<ITriggerRegister["registerRenderArmor"]>;
-
- /**
- * Registers a new trigger that runs before the boss health bar is being drawn.
- *
- * Passes through one argument:
- * - The render event, which can be cancelled
- *
- * Available modifications:
- * - {@link EventTrigger.triggerIfCanceled} Sets if triggered if event is already cancelled
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "renderBossHealth",
- method: Parameters<ITriggerRegister["registerRenderBossHealth"]>[0],
- ): ReturnType<ITriggerRegister["registerRenderBossHealth"]>;
-
- /**
- * Registers a new trigger that runs before the chat is drawn.
- *
- * Passes through one argument:
- * - The render event, which can be cancelled
- *
- * Available modifications:
- * - {@link EventTrigger.triggerIfCanceled} Sets if triggered if event is already cancelled
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "renderChat",
- method: Parameters<ITriggerRegister["registerRenderChat"]>[0],
- ): ReturnType<ITriggerRegister["registerRenderChat"]>;
-
- /**
- * Registers a new trigger that runs before the crosshair is being drawn.
- *
- * Passes through one argument:
- * - The render event, which can be cancelled
- *
- * Available modifications:
- * - {@link EventTrigger.triggerIfCanceled} Sets if triggered if event is already cancelled
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "renderCrosshair",
- method: Parameters<ITriggerRegister["registerRenderCrosshair"]>[0],
- ): ReturnType<ITriggerRegister["registerRenderCrosshair"]>;
-
- /**
- * Registers a trigger that runs before the debug screen is being drawn.
- *
- * Passes through one argument:
- * - The render event, which can be cancelled
- *
- * Available modifications:
- * - {@link EventTrigger.triggerIfCanceled} Sets if triggered if event is already cancelled
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "renderDebug",
- method: Parameters<ITriggerRegister["registerRenderDebug"]>[0],
- ): ReturnType<ITriggerRegister["registerRenderDebug"]>;
-
- /**
- * Registers a new trigger that runs whenever an entity is rendered
- *
- * Passes through four arguments:
- * - The {@link Entity com.chattriggers.ctjs.minecraft.wrappers.objects.entity.Entity}
- * - The position as a Vector3f
- * - The partial ticks
- * - The event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- * - {@link ClassFilterTrigger.setFilteredClasses} Sets the entity classes which this trigger
- * gets fired for
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "renderEntity",
- method: Parameters<ITriggerRegister["registerRenderEntity"]>[0],
- ): ReturnType<ITriggerRegister["registerRenderEntity"]>;
-
- /**
- * Registers a new trigger that runs before the player's experience is being drawn.
- *
- *
- * Passes through one argument:
- * - The render event, which can be cancelled
- *
- * Available modifications:
- * - {@link EventTrigger.triggerIfCanceled} Sets if triggered if event is already cancelled
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "renderExperience",
- method: Parameters<ITriggerRegister["registerRenderExperience"]>[0],
- ): ReturnType<ITriggerRegister["registerRenderExperience"]>;
-
- /**
- * Registers a new trigger that runs before the player's food is being drawn.
- *
- * Passes through one argument:
- * - The render event, which can be cancelled
- *
- * Available modifications:
- * - {@link EventTrigger.triggerIfCanceled} Sets if triggered if event is already cancelled
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "renderFood",
- method: Parameters<ITriggerRegister["registerRenderFood"]>[0],
- ): ReturnType<ITriggerRegister["registerRenderFood"]>;
-
- /**
- * Registers a new trigger that runs before the player's hand is drawn.
- *
- * Passes through one argument:
- * - The event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "renderHand",
- method: Parameters<ITriggerRegister["registerRenderHand"]>[0],
- ): ReturnType<ITriggerRegister["registerRenderHand"]>;
-
- /**
- * Registers a new trigger that runs before the player's health is being drawn.
- *
- * Passes through one argument:
- * - The render event, which can be cancelled
- *
- * Available modifications:
- * - {@link EventTrigger.triggerIfCanceled} Sets if triggered if event is already cancelled
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "renderHealth",
- method: Parameters<ITriggerRegister["registerRenderHealth"]>[0],
- ): ReturnType<ITriggerRegister["registerRenderHealth"]>;
-
- /**
- * Registers a new trigger that runs before the player's helmet overlay is drawn.
- * This triggers when a pumpkin is on the player's head
- *
- * Passes through one argument:
- * - The render event, which can be cancelled
- *
- * Available modifications:
- * - {@link EventTrigger.triggerIfCanceled} Sets if triggered if event is already cancelled
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "renderHelmet",
- method: Parameters<ITriggerRegister["registerRenderHelmet"]>[0],
- ): ReturnType<ITriggerRegister["registerRenderHelmet"]>;
-
- /**
- * Registers a new trigger that runs before the player's hotbar is drawn.
- *
- * Passes through one argument:
- * - The render event, which can be cancelled
- *
- * Available modifications:
- * - {@link EventTrigger.triggerIfCanceled} Sets if triggered if event is already cancelled
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "renderHotbar",
- method: Parameters<ITriggerRegister["registerRenderHotbar"]>[0],
- ): ReturnType<ITriggerRegister["registerRenderHotbar"]>;
-
- /**
- * Registers a new trigger that runs before each item is drawn into a GUI.
- *
- * Passes through four arguments:
- * - The {@link Item}
- * - The x position
- * - The y position
- * - The event, which can be cancelled.
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "renderItemIntoGui",
- method: Parameters<ITriggerRegister["registerRenderItemIntoGui"]>[0],
- ): ReturnType<ITriggerRegister["registerRenderItemIntoGui"]>;
-
- /**
- * Registers a new trigger that runs before each item overlay (stack size and damage bar) is drawn.
- *
- * Passes through four arguments:
- * - The {@link Item}
- * - The x position
- * - The y position
- * - The event, which can be cancelled.
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "renderItemOverlayIntoGui",
- method: Parameters<ITriggerRegister["registerRenderItemOverlayIntoGui"]>[0],
- ): ReturnType<ITriggerRegister["registerRenderItemOverlayIntoGui"]>;
-
- /**
- * Registers a new trigger that runs before the jump bar is drawn.
- *
- * Passes through one argument:
- * - The render event, which can be cancelled
- *
- * Available modifications:
- * - {@link EventTrigger.triggerIfCanceled} Sets if triggered if event is already cancelled
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "renderJumpBar",
- method: Parameters<ITriggerRegister["registerRenderJumpBar"]>[0],
- ): ReturnType<ITriggerRegister["registerRenderJumpBar"]>;
-
- /**
- * Registers a new trigger that runs before the player's mount's health is being drawn.
- *
- * Passes through one argument:
- * - The render event, which can be cancelled
- *
- * Available modifications:
- * - {@link EventTrigger.triggerIfCanceled} Sets if triggered if event is already cancelled
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "renderMountHealth",
- method: Parameters<ITriggerRegister["registerRenderMountHealth"]>[0],
- ): ReturnType<ITriggerRegister["registerRenderMountHealth"]>;
-
- /**
- * Registers a new trigger that runs before the overlay is drawn.
- *
- * Passes through one argument:
- * - The render event, which cannot be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "renderOverlay",
- method: Parameters<ITriggerRegister["registerRenderOverlay"]>[0],
- ): ReturnType<ITriggerRegister["registerRenderOverlay"]>;
-
- /**
- * Registers a new trigger that runs before the player list is being drawn.
- *
- * Passes through one argument:
- * - The render event, which can be cancelled
- *
- * Available modifications:
- * - {@link EventTrigger.triggerIfCanceled} Sets if triggered if event is already cancelled
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "renderPlayerList",
- method: Parameters<ITriggerRegister["registerRenderPlayerList"]>[0],
- ): ReturnType<ITriggerRegister["registerRenderPlayerList"]>;
-
- /**
- * Registers a new trigger that runs before the portal effect is drawn.
- *
- * Passes through one argument:
- * - The render event, which can be cancelled
- *
- * Available modifications:
- * - {@link EventTrigger.triggerIfCanceled} Sets if triggered if event is already cancelled
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "renderPortal",
- method: Parameters<ITriggerRegister["registerRenderPortal"]>[0],
- ): ReturnType<ITriggerRegister["registerRenderPortal"]>;
-
- /**
- * Registers a new trigger that runs before the scoreboard is drawn.
- *
- * Passes through one argument:
- * - The event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "renderScoreboard",
- method: Parameters<ITriggerRegister["registerRenderScoreboard"]>[0],
- ): ReturnType<ITriggerRegister["registerRenderScoreboard"]>;
-
- /**
- * Registers a new trigger that runs before the hovered slot square is drawn.
- *
- * Passes through six arguments:
- * - The mouseX position
- * - The mouseY position
- * - The Slot
- * - The GuiContainer
- * - The event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "renderSlotHighlight",
- method: Parameters<ITriggerRegister["registerRenderSlotHighlight"]>[0],
- ): ReturnType<ITriggerRegister["registerRenderSlotHighlight"]>;
-
- /**
- * Registers a new trigger that runs whenever a tile entity is rendered
- *
- * Passes through four arguments:
- * - The TileEntity
- * - The position as a Vector3f
- * - The partial ticks
- * - The event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- * - {@link ClassFilterTrigger.setFilteredClasses} Sets the tile entity classes which this trigger gets fired for
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "renderTileEntity",
- method: Parameters<ITriggerRegister["registerRenderTileEntity"]>[0],
- ): ReturnType<ITriggerRegister["registerRenderTileEntity"]>;
-
- /**
- * Registers a new trigger that runs before the title and subtitle are drawn.
- *
- * Passes through three arguments:
- * - The title
- * - The subtitle
- * - The event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "renderTitle",
- method: Parameters<ITriggerRegister["registerRenderTitle"]>[0],
- ): ReturnType<ITriggerRegister["registerRenderTitle"]>;
-
- /**
- * Registers a new trigger that runs before the world is drawn.
- *
- * Passes through one argument:
- * - Partial ticks elapsed
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "renderWorld",
- method: Parameters<ITriggerRegister["registerRenderWorld"]>[0],
- ): ReturnType<ITriggerRegister["registerRenderWorld"]>;
-
- /**
- * Registers a new trigger that runs before the player breaks a block
- *
- * Passes through one argument:
- * - The block
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "blockBreak",
- method: Parameters<ITriggerRegister["registerBlockBreak"]>[0],
- ): ReturnType<ITriggerRegister["registerBlockBreak"]>;
-
- /**
- * Registers a new trigger that runs before an entity is damaged
- *
- * Passes through two arguments:
- * - The target Entity that is damaged
- * - The PlayerMP attacker
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "entityDamage",
- method: Parameters<ITriggerRegister["registerEntityDamage"]>[0],
- ): ReturnType<ITriggerRegister["registerEntityDamage"]>;
-
- /**
- * Registers a new trigger that runs before an entity dies
- *
- * Passes through one argument:
- * - The Entity that died
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "entityDeath",
- method: Parameters<ITriggerRegister["registerEntityDeath"]>[0],
- ): ReturnType<ITriggerRegister["registerEntityDeath"]>;
-
- /**
- * Registers a new trigger that runs before a noteblock is changed.
- *
- * Passes through four arguments:
- * - The note block change event's Vector3f position
- * - The note block change event's note's name
- * - The note block change event's octave
- * - The note block change event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "noteBlockChange",
- method: Parameters<ITriggerRegister["registerNoteBlockChange"]>[0],
- ): ReturnType<ITriggerRegister["registerNoteBlockChange"]>;
-
- /**
- * Registers a new trigger that runs before a noteblock is played.
- *
- * Passes through four arguments:
- * - The note block play event's Vector3f position
- * - The note block play event's note's name
- * - The note block play event's octave
- * - The note block play event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "noteBlockPlay",
- method: Parameters<ITriggerRegister["registerNoteBlockPlay"]>[0],
- ): ReturnType<ITriggerRegister["registerNoteBlockPlay"]>;
-
- /**
- * Registers a new trigger that runs when a player joins the world.
- *
- * Maximum is one per tick. Any extras will queue and run in later ticks.
- * This trigger is asynchronous.
- *
- * Passes through one argument:
- * - The {@link PlayerMP com.chattriggers.ctjs.minecraft.wrappers.objects.PlayerMP} object
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "playerJoined",
- method: Parameters<ITriggerRegister["registerPlayerJoined"]>[0],
- ): ReturnType<ITriggerRegister["registerPlayerJoined"]>;
-
- /**
- * Registers a new trigger that runs when a player leaves the world.
- *
- * Maximum is one per tick. Any extras will queue and run in later ticks.
- * This trigger is asynchronous.
- *
- * Passes through one argument:
- * - The name of the player that left
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "playerLeft",
- method: Parameters<ITriggerRegister["registerPlayerLeft"]>[0],
- ): ReturnType<ITriggerRegister["registerPlayerLeft"]>;
-
- /**
- * Registers a new trigger that runs before a sound is played.
- *
- * Passes through six arguments:
- * - The sound event's position
- * - The sound event's name
- * - The sound event's volume
- * - The sound event's pitch
- * - The sound event's category's name
- * - The sound event, which can be cancelled
- *
- * Available modifications:
- * - {@link SoundPlayTrigger.setCriteria} Sets the sound name criteria
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "soundPlay",
- method: Parameters<ITriggerRegister["registerSoundPlay"]>[0],
- ): ReturnType<ITriggerRegister["registerSoundPlay"]>;
-
- /**
- * Registers a new trigger that runs whenever a particle is spawned
- *
- * Passes through three arguments:
- * - The {@link Particle com.chattriggers.ctjs.minecraft.wrappers.objects.Particle}
- * - The {@link MCEnumParticleTypes net.minecraft.util.EnumParticleTypes}
- * - The event, which can be cancelled
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "spawnParticle",
- method: Parameters<ITriggerRegister["registerSpawnParticle"]>[0],
- ): ReturnType<ITriggerRegister["registerSpawnParticle"]>;
-
- /**
- * Registers a trigger that runs before the world loads.
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "worldLoad",
- method: Parameters<ITriggerRegister["registerWorldLoad"]>[0],
- ): ReturnType<ITriggerRegister["registerWorldLoad"]>;
-
- /**
- * Registers a new trigger that runs before the world unloads.
- *
- * Available modifications:
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "worldUnload",
- method: Parameters<ITriggerRegister["registerWorldUnload"]>[0],
- ): ReturnType<ITriggerRegister["registerWorldUnload"]>;
-
- /**
- * Registers a new command that will run the method provided.
- *
- * Passes through multiple arguments:
- * - The arguments supplied to the command by the user
- *
- * Available modifications:
- * - {@link CommandTrigger.setCommandName} Sets the command name
- * - {@link Trigger.setPriority} Sets the priority
- *
- * @param method The method to call when the event is fired
- * @return The trigger for additional modification
- */
- (
- triggerType: "command",
- method: Parameters<ITriggerRegister["registerCommand"]>[0],
- ): ReturnType<ITriggerRegister["registerCommand"]>;
-
- <T>(triggerType: JavaClass<T>, method: Function): ForgeTrigger;
-}
diff --git a/pkgs/ctjs/types/schema.json b/pkgs/ctjs/types/schema.json
deleted file mode 100644
index 4eb1f52..0000000
--- a/pkgs/ctjs/types/schema.json
+++ /dev/null
@@ -1,77 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-07/schema#",
- "title": "Metadata.json",
- "description": "Schema for Chattriggers metadata.json",
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the module",
- "type": "string"
- },
- "version": {
- "description": "The version of the module",
- "type": "string"
- },
- "entry": {
- "description": "The entry point of the module",
- "type": "string"
- },
- "asmEntry": {
- "description": "The ASM entry point of the module",
- "type": "string"
- },
- "asmExposedFunctions": {
- "description": "The js functions that you are exposing to your ASM",
- "type": "object",
- "items": {
- "type": "string"
- }
- },
- "tags": {
- "description": "The tags of the module",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "pictureLink": {
- "description": "The imgur link for the image of the module",
- "type": "string"
- },
- "changelog": {
- "description": "A changelog to be printed when the module is updated",
- "type": "string"
- },
- "creator": {
- "description": "The creator of the module",
- "type": "string"
- },
- "description": {
- "description": "The description of the module",
- "type": "string"
- },
- "requires": {
- "description": "The list of dependencies of the module",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "helpMessage": {
- "description": "The chat message to be sent on import",
- "type": "string"
- },
- "ignored": {
- "description": "Appears to do nothing",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "isRequired": {
- "description": "States whether this module will be a dependancy",
- "type": "boolean",
- "default": false
- }
- }
- }
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index e5fe6eb..1f29117 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -10,7 +10,7 @@ importers:
devDependencies:
'@babel/plugin-syntax-import-assertions':
specifier: ^7.22.5
- version: 7.22.5(@babel/core@7.22.10)
+ version: 7.22.5(@babel/core@7.23.2)
'@ianvs/prettier-plugin-sort-imports':
specifier: ^4.1.1
version: 4.1.1(prettier@3.0.3)
@@ -36,6 +36,28 @@ importers:
specifier: ^4.4.11
version: 4.4.11
+ .github/actions/publish-artifacts:
+ dependencies:
+ '@actions/artifact':
+ specifier: ^1.1.2
+ version: 1.1.2
+ '@actions/core':
+ specifier: ^1.10.1
+ version: 1.10.1
+ '@actions/github':
+ specifier: ^6.0.0
+ version: 6.0.0
+ '@actions/glob':
+ specifier: ^0.4.0
+ version: 0.4.0
+ '@actions/io':
+ specifier: ^1.1.3
+ version: 1.1.3
+ devDependencies:
+ '@vercel/ncc':
+ specifier: ^0.38.0
+ version: 0.38.0
+
apps/website:
dependencies:
'@astrojs/tailwind':
@@ -43,23 +65,212 @@ importers:
version: 5.0.2(astro@3.3.0)(tailwindcss@3.3.3)
astro:
specifier: ^3.3.0
- version: 3.3.0(typescript@5.2.2)
+ version: 3.3.0(@types/node@18.17.19)(typescript@5.2.2)
tailwindcss:
specifier: ^3.3.3
version: 3.3.3
devDependencies:
+ '@polyfrost/config':
+ specifier: workspace:*
+ version: link:../../packages/config
+ '@types/node':
+ specifier: ~18.17.19
+ version: 18.17.19
typescript:
specifier: ^5.2.2
version: 5.2.2
- pkgs/ctjs: {}
+ packages/assets: {}
+
+ packages/config:
+ devDependencies:
+ '@typescript-eslint/eslint-plugin':
+ specifier: ^6.7.5
+ version: 6.7.5(@typescript-eslint/parser@6.7.5)(eslint@8.51.0)(typescript@5.2.2)
+ '@typescript-eslint/parser':
+ specifier: ^6.7.5
+ version: 6.7.5(eslint@8.51.0)(typescript@5.2.2)
+ eslint:
+ specifier: ^8.51.0
+ version: 8.51.0
+ eslint-config-prettier:
+ specifier: ^9.0.0
+ version: 9.0.0(eslint@8.51.0)
+ eslint-config-turbo:
+ specifier: ^1.10.15
+ version: 1.10.15(eslint@8.51.0)
+ eslint-plugin-astro:
+ specifier: ^0.29.1
+ version: 0.29.1(eslint@8.51.0)
+ eslint-plugin-jsx-a11y:
+ specifier: ^6.7.1
+ version: 6.7.1(eslint@8.51.0)
+ eslint-plugin-prettier:
+ specifier: ^5.0.1
+ version: 5.0.1(eslint-config-prettier@9.0.0)(eslint@8.51.0)(prettier@3.0.3)
+ eslint-plugin-react:
+ specifier: ^7.33.2
+ version: 7.33.2(eslint@8.51.0)
+ eslint-plugin-react-hooks:
+ specifier: ^4.6.0
+ version: 4.6.0(eslint@8.51.0)
+ eslint-plugin-tailwindcss:
+ specifier: ^3.13.0
+ version: 3.13.0(tailwindcss@3.3.3)
+ eslint-utils:
+ specifier: ^3.0.0
+ version: 3.0.0(eslint@8.51.0)
+ regexpp:
+ specifier: ^3.2.0
+ version: 3.2.0
+ vite-plugin-html:
+ specifier: ^3.2.0
+ version: 3.2.0(vite@4.4.11)
+ vite-plugin-svgr:
+ specifier: ^4.1.0
+ version: 4.1.0(typescript@5.2.2)(vite@4.4.11)
+
+ packages/ui:
+ dependencies:
+ '@headlessui/react':
+ specifier: ^1.7.17
+ version: 1.7.17(react-dom@18.2.0)(react@18.2.0)
+ '@headlessui/tailwindcss':
+ specifier: ^0.1.1
+ version: 0.1.3(tailwindcss@3.3.3)
+ '@polyfrost/assets':
+ specifier: workspace:*
+ version: link:../assets
+ '@react-spring/web':
+ specifier: ^9.7.3
+ version: 9.7.3(react-dom@18.2.0)(react@18.2.0)
+ '@tailwindcss/forms':
+ specifier: ^0.5.6
+ version: 0.5.6(tailwindcss@3.3.3)
+ class-variance-authority:
+ specifier: ^0.7.0
+ version: 0.7.0
+ clsx:
+ specifier: ^2.0.0
+ version: 2.0.0
+ react:
+ specifier: ^18.2.0
+ version: 18.2.0
+ react-dom:
+ specifier: ^18.2.0
+ version: 18.2.0(react@18.2.0)
+ react-router-dom:
+ specifier: ^6.16.0
+ version: 6.16.0(react-dom@18.2.0)(react@18.2.0)
+ sonner:
+ specifier: ^1.0.3
+ version: 1.0.3(react-dom@18.2.0)(react@18.2.0)
+ tailwindcss-radix:
+ specifier: ^2.8.0
+ version: 2.8.0
+ ts-pattern:
+ specifier: ^5.0.5
+ version: 5.0.5
+ use-debounce:
+ specifier: ^9.0.4
+ version: 9.0.4(react@18.2.0)
+ zod:
+ specifier: ^3.22.4
+ version: 3.22.4
+ devDependencies:
+ '@babel/core':
+ specifier: ^7.23.2
+ version: 7.23.2
+ '@polyfrost/config':
+ specifier: workspace:*
+ version: link:../config
+ '@storybook/types':
+ specifier: ^7.4.6
+ version: 7.4.6
+ '@tailwindcss/typography':
+ specifier: ^0.5.10
+ version: 0.5.10(tailwindcss@3.3.3)
+ '@types/node':
+ specifier: ~18.17.19
+ version: 18.17.19
+ '@types/react':
+ specifier: ^18.2.28
+ version: 18.2.28
+ '@types/react-dom':
+ specifier: ^18.2.13
+ version: 18.2.13
+ autoprefixer:
+ specifier: ^10.4.16
+ version: 10.4.16(postcss@8.4.31)
+ postcss:
+ specifier: ^8.4.31
+ version: 8.4.31
+ sass:
+ specifier: ^1.69.3
+ version: 1.69.3
+ tailwindcss:
+ specifier: ^3.3.3
+ version: 3.3.3
+ tailwindcss-animate:
+ specifier: ^1.0.7
+ version: 1.0.7(tailwindcss@3.3.3)
+ typescript:
+ specifier: ^5.2.2
+ version: 5.2.2
packages:
+ /@aashutoshrathi/word-wrap@1.2.6:
+ resolution: {integrity: sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==}
+ engines: {node: '>=0.10.0'}
+ dev: true
+
+ /@actions/artifact@1.1.2:
+ resolution: {integrity: sha512-1gLONA4xw3/Q/9vGxKwkFdV9u1LE2RWGx/IpAqg28ZjprCnJFjwn4pA7LtShqg5mg5WhMek2fjpyH1leCmOlQQ==}
+ dependencies:
+ '@actions/core': 1.10.1
+ '@actions/http-client': 2.2.0
+ tmp: 0.2.1
+ tmp-promise: 3.0.3
+ dev: false
+
+ /@actions/core@1.10.1:
+ resolution: {integrity: sha512-3lBR9EDAY+iYIpTnTIXmWcNbX3T2kCkAEQGIQx4NVQ0575nk2k3GRZDTPQG+vVtS2izSLmINlxXf0uLtnrTP+g==}
+ dependencies:
+ '@actions/http-client': 2.2.0
+ uuid: 8.3.2
+ dev: false
+
+ /@actions/github@6.0.0:
+ resolution: {integrity: sha512-alScpSVnYmjNEXboZjarjukQEzgCRmjMv6Xj47fsdnqGS73bjJNDpiiXmp8jr0UZLdUB6d9jW63IcmddUP+l0g==}
+ dependencies:
+ '@actions/http-client': 2.2.0
+ '@octokit/core': 5.0.1
+ '@octokit/plugin-paginate-rest': 9.0.0(@octokit/core@5.0.1)
+ '@octokit/plugin-rest-endpoint-methods': 10.0.1(@octokit/core@5.0.1)
+ dev: false
+
+ /@actions/glob@0.4.0:
+ resolution: {integrity: sha512-+eKIGFhsFa4EBwaf/GMyzCdWrXWymGXfFmZU3FHQvYS8mPcHtTtZONbkcqqUMzw9mJ/pImEBFET1JNifhqGsAQ==}
+ dependencies:
+ '@actions/core': 1.10.1
+ minimatch: 3.1.2
+ dev: false
+
+ /@actions/http-client@2.2.0:
+ resolution: {integrity: sha512-q+epW0trjVUUHboliPb4UF9g2msf+w61b32tAkFEwL/IwP0DQWgbCMM0Hbe3e3WXSKz5VcUXbzJQgy8Hkra/Lg==}
+ dependencies:
+ tunnel: 0.0.6
+ undici: 5.26.3
+ dev: false
+
+ /@actions/io@1.1.3:
+ resolution: {integrity: sha512-wi9JjgKLYS7U/z8PPbco+PvTb/nRWjeoFlJ1Qer83k/3C5PHQi28hiVdeE2kHXmIL99mQFawx8qt/JPjZilJ8Q==}
+ dev: false
+
/@alloc/quick-lru@5.2.0:
resolution: {integrity: sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==}
engines: {node: '>=10'}
- dev: false
/@ampproject/remapping@2.2.1:
resolution: {integrity: sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==}
@@ -70,7 +281,6 @@ packages:
/@astrojs/compiler@2.2.0:
resolution: {integrity: sha512-JvmckEJgg8uXUw8Rs6VZDvN7LcweCHOdcxsCXpC+4KMDC9FaB5t9EH/NooSE+hu/rnACEhsXA3FKmf9wnhb7hA==}
- dev: false
/@astrojs/internal-helpers@0.2.1:
resolution: {integrity: sha512-06DD2ZnItMwUnH81LBLco3tWjcZ1lGU9rLCCBaeUCGYe9cI0wKyY2W3kDyoW1I6GmcWgt1fu+D1CTvz+FIKf8A==}
@@ -82,7 +292,7 @@ packages:
astro: ^3.3.0
dependencies:
'@astrojs/prism': 3.0.0
- astro: 3.3.0(typescript@5.2.2)
+ astro: 3.3.0(@types/node@18.17.19)(typescript@5.2.2)
github-slugger: 2.0.0
import-meta-resolve: 3.0.0
mdast-util-definitions: 6.0.0
@@ -113,10 +323,10 @@ packages:
astro: ^3.2.4
tailwindcss: ^3.0.24
dependencies:
- astro: 3.3.0(typescript@5.2.2)
- autoprefixer: 10.4.16(postcss@8.4.28)
- postcss: 8.4.28
- postcss-load-config: 4.0.1(postcss@8.4.28)
+ astro: 3.3.0(@types/node@18.17.19)(typescript@5.2.2)
+ autoprefixer: 10.4.16(postcss@8.4.31)
+ postcss: 8.4.31
+ postcss-load-config: 4.0.1(postcss@8.4.31)
tailwindcss: 3.3.3
transitivePeerDependencies:
- ts-node
@@ -137,11 +347,11 @@ packages:
- supports-color
dev: false
- /@babel/code-frame@7.22.10:
- resolution: {integrity: sha512-/KKIMG4UEL35WmI9OlvMhurwtytjvXoFcGNrOvyG9zIzA8YmPjVtIZUf7b05+TPO7G7/GEmLHDaoCgACHl9hhA==}
+ /@babel/code-frame@7.22.13:
+ resolution: {integrity: sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/highlight': 7.22.10
+ '@babel/highlight': 7.22.20
chalk: 2.4.2
/@babel/compat-data@7.22.9:
@@ -153,15 +363,15 @@ packages:
engines: {node: '>=6.9.0'}
dependencies:
'@ampproject/remapping': 2.2.1
- '@babel/code-frame': 7.22.10
- '@babel/generator': 7.22.10
- '@babel/helper-compilation-targets': 7.22.10
- '@babel/helper-module-transforms': 7.22.9(@babel/core@7.22.10)
- '@babel/helpers': 7.22.10
- '@babel/parser': 7.22.10
- '@babel/template': 7.22.5
- '@babel/traverse': 7.22.10
- '@babel/types': 7.22.10
+ '@babel/code-frame': 7.22.13
+ '@babel/generator': 7.23.0
+ '@babel/helper-compilation-targets': 7.22.15
+ '@babel/helper-module-transforms': 7.23.0(@babel/core@7.22.10)
+ '@babel/helpers': 7.23.2
+ '@babel/parser': 7.23.0
+ '@babel/template': 7.22.15
+ '@babel/traverse': 7.23.2
+ '@babel/types': 7.23.0
convert-source-map: 1.9.0
debug: 4.3.4
gensync: 1.0.0-beta.2
@@ -169,12 +379,45 @@ packages:
semver: 6.3.1
transitivePeerDependencies:
- supports-color
+ dev: false
+
+ /@babel/core@7.23.2:
+ resolution: {integrity: sha512-n7s51eWdaWZ3vGT2tD4T7J6eJs3QoBXydv7vkUM06Bf1cbVD2Kc2UrkzhiQwobfV7NwOnQXYL7UBJ5VPU+RGoQ==}
+ engines: {node: '>=6.9.0'}
+ dependencies:
+ '@ampproject/remapping': 2.2.1
+ '@babel/code-frame': 7.22.13
+ '@babel/generator': 7.23.0
+ '@babel/helper-compilation-targets': 7.22.15
+ '@babel/helper-module-transforms': 7.23.0(@babel/core@7.23.2)
+ '@babel/helpers': 7.23.2
+ '@babel/parser': 7.23.0
+ '@babel/template': 7.22.15
+ '@babel/traverse': 7.23.2
+ '@babel/types': 7.23.0
+ convert-source-map: 2.0.0
+ debug: 4.3.4
+ gensync: 1.0.0-beta.2
+ json5: 2.2.3
+ semver: 6.3.1
+ transitivePeerDependencies:
+ - supports-color
+ dev: true
/@babel/generator@7.22.10:
resolution: {integrity: sha512-79KIf7YiWjjdZ81JnLujDRApWtl7BxTqWD88+FFdQEIOG8LJ0etDOM7CXuIgGJa55sGOwZVwuEsaLEm0PJ5/+A==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.22.10
+ '@babel/types': 7.23.0
+ '@jridgewell/gen-mapping': 0.3.3
+ '@jridgewell/trace-mapping': 0.3.19
+ jsesc: 2.5.2
+
+ /@babel/generator@7.23.0:
+ resolution: {integrity: sha512-lN85QRR+5IbYrMWM6Y4pE/noaQtg4pNiqeNGX60eqOfo6gtEj6uw/JagelB8vVztSd7R6M5n1+PQkDbHbBRU4g==}
+ engines: {node: '>=6.9.0'}
+ dependencies:
+ '@babel/types': 7.23.0
'@jridgewell/gen-mapping': 0.3.3
'@jridgewell/trace-mapping': 0.3.19
jsesc: 2.5.2
@@ -183,19 +426,23 @@ packages:
resolution: {integrity: sha512-LvBTxu8bQSQkcyKOU+a1btnNFQ1dMAd0R6PyW3arXes06F6QLWLIrd681bxRPIXlrMGR3XYnW9JyML7dP3qgxg==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.22.10
+ '@babel/types': 7.23.0
dev: false
- /@babel/helper-compilation-targets@7.22.10:
- resolution: {integrity: sha512-JMSwHD4J7SLod0idLq5PKgI+6g/hLD/iuWBq08ZX49xE14VpVEojJ5rHWptpirV2j020MvypRLAXAO50igCJ5Q==}
+ /@babel/helper-compilation-targets@7.22.15:
+ resolution: {integrity: sha512-y6EEzULok0Qvz8yyLkCvVX+02ic+By2UdOhylwUOvOn9dvYc9mKICJuuU1n1XBI02YWsNsnrY1kc6DVbjcXbtw==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/compat-data': 7.22.9
- '@babel/helper-validator-option': 7.22.5
+ '@babel/helper-validator-option': 7.22.15
browserslist: 4.21.10
lru-cache: 5.1.1
semver: 6.3.1
+ /@babel/helper-environment-visitor@7.22.20:
+ resolution: {integrity: sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==}
+ engines: {node: '>=6.9.0'}
+
/@babel/helper-environment-visitor@7.22.5:
resolution: {integrity: sha512-XGmhECfVA/5sAt+H+xpSg0mfrHq6FzNr9Oxh7PSEBBRUb/mL7Kz3NICXb194rCqAEdxkhPT1a88teizAFyvk8Q==}
engines: {node: '>=6.9.0'}
@@ -207,30 +454,59 @@ packages:
'@babel/template': 7.22.5
'@babel/types': 7.22.10
+ /@babel/helper-function-name@7.23.0:
+ resolution: {integrity: sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==}
+ engines: {node: '>=6.9.0'}
+ dependencies:
+ '@babel/template': 7.22.15
+ '@babel/types': 7.23.0
+
/@babel/helper-hoist-variables@7.22.5:
resolution: {integrity: sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.22.10
+ '@babel/types': 7.23.0
+
+ /@babel/helper-module-imports@7.22.15:
+ resolution: {integrity: sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==}
+ engines: {node: '>=6.9.0'}
+ dependencies:
+ '@babel/types': 7.23.0
/@babel/helper-module-imports@7.22.5:
resolution: {integrity: sha512-8Dl6+HD/cKifutF5qGd/8ZJi84QeAKh+CEe1sBzz8UayBBGg1dAIJrdHOcOM5b2MpzWL2yuotJTtGjETq0qjXg==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.22.10
+ '@babel/types': 7.23.0
+ dev: false
- /@babel/helper-module-transforms@7.22.9(@babel/core@7.22.10):
- resolution: {integrity: sha512-t+WA2Xn5K+rTeGtC8jCsdAH52bjggG5TKRuRrAGNM/mjIbO4GxvlLMFOEz9wXY5I2XQ60PMFsAG2WIcG82dQMQ==}
+ /@babel/helper-module-transforms@7.23.0(@babel/core@7.22.10):
+ resolution: {integrity: sha512-WhDWw1tdrlT0gMgUJSlX0IQvoO1eN279zrAUbVB+KpV2c3Tylz8+GnKOLllCS6Z/iZQEyVYxhZVUdPTqs2YYPw==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0
dependencies:
'@babel/core': 7.22.10
- '@babel/helper-environment-visitor': 7.22.5
- '@babel/helper-module-imports': 7.22.5
+ '@babel/helper-environment-visitor': 7.22.20
+ '@babel/helper-module-imports': 7.22.15
'@babel/helper-simple-access': 7.22.5
'@babel/helper-split-export-declaration': 7.22.6
- '@babel/helper-validator-identifier': 7.22.5
+ '@babel/helper-validator-identifier': 7.22.20
+ dev: false
+
+ /@babel/helper-module-transforms@7.23.0(@babel/core@7.23.2):
+ resolution: {integrity: sha512-WhDWw1tdrlT0gMgUJSlX0IQvoO1eN279zrAUbVB+KpV2c3Tylz8+GnKOLllCS6Z/iZQEyVYxhZVUdPTqs2YYPw==}
+ engines: {node: '>=6.9.0'}
+ peerDependencies:
+ '@babel/core': ^7.0.0
+ dependencies:
+ '@babel/core': 7.23.2
+ '@babel/helper-environment-visitor': 7.22.20
+ '@babel/helper-module-imports': 7.22.15
+ '@babel/helper-simple-access': 7.22.5
+ '@babel/helper-split-export-declaration': 7.22.6
+ '@babel/helper-validator-identifier': 7.22.20
+ dev: true
/@babel/helper-plugin-utils@7.22.5:
resolution: {integrity: sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==}
@@ -240,41 +516,45 @@ packages:
resolution: {integrity: sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.22.10
+ '@babel/types': 7.23.0
/@babel/helper-split-export-declaration@7.22.6:
resolution: {integrity: sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.22.10
+ '@babel/types': 7.23.0
/@babel/helper-string-parser@7.22.5:
resolution: {integrity: sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==}
engines: {node: '>=6.9.0'}
+ /@babel/helper-validator-identifier@7.22.20:
+ resolution: {integrity: sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==}
+ engines: {node: '>=6.9.0'}
+
/@babel/helper-validator-identifier@7.22.5:
resolution: {integrity: sha512-aJXu+6lErq8ltp+JhkJUfk1MTGyuA4v7f3pA+BJ5HLfNC6nAQ0Cpi9uOquUj8Hehg0aUiHzWQbOVJGao6ztBAQ==}
engines: {node: '>=6.9.0'}
- /@babel/helper-validator-option@7.22.5:
- resolution: {integrity: sha512-R3oB6xlIVKUnxNUxbmgq7pKjxpru24zlimpE8WK47fACIlM0II/Hm1RS8IaOI7NgCr6LNS+jl5l75m20npAziw==}
+ /@babel/helper-validator-option@7.22.15:
+ resolution: {integrity: sha512-bMn7RmyFjY/mdECUbgn9eoSY4vqvacUnS9i9vGAGttgFWesO6B4CYWA7XlpbWgBt71iv/hfbPlynohStqnu5hA==}
engines: {node: '>=6.9.0'}
- /@babel/helpers@7.22.10:
- resolution: {integrity: sha512-a41J4NW8HyZa1I1vAndrraTlPZ/eZoga2ZgS7fEr0tZJGVU4xqdE80CEm0CcNjha5EZ8fTBYLKHF0kqDUuAwQw==}
+ /@babel/helpers@7.23.2:
+ resolution: {integrity: sha512-lzchcp8SjTSVe/fPmLwtWVBFC7+Tbn8LGHDVfDp9JGxpAY5opSaEFgt8UQvrnECWOTdji2mOWMz1rOhkHscmGQ==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/template': 7.22.5
- '@babel/traverse': 7.22.10
- '@babel/types': 7.22.10
+ '@babel/template': 7.22.15
+ '@babel/traverse': 7.23.2
+ '@babel/types': 7.23.0
transitivePeerDependencies:
- supports-color
- /@babel/highlight@7.22.10:
- resolution: {integrity: sha512-78aUtVcT7MUscr0K5mIEnkwxPE0MaxkR5RxRwuHaQ+JuU5AmTPhY+do2mdzVTnIJJpyBglql2pehuBIWHug+WQ==}
+ /@babel/highlight@7.22.20:
+ resolution: {integrity: sha512-dkdMCN3py0+ksCgYmGG8jKeGA/8Tk+gJwSYYlFGxG5lmhfKNoAy004YpLxpS1W2J8m/EK2Ew+yOs9pVRwO89mg==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/helper-validator-identifier': 7.22.5
+ '@babel/helper-validator-identifier': 7.22.20
chalk: 2.4.2
js-tokens: 4.0.0
@@ -283,15 +563,22 @@ packages:
engines: {node: '>=6.0.0'}
hasBin: true
dependencies:
- '@babel/types': 7.22.10
+ '@babel/types': 7.23.0
- /@babel/plugin-syntax-import-assertions@7.22.5(@babel/core@7.22.10):
+ /@babel/parser@7.23.0:
+ resolution: {integrity: sha512-vvPKKdMemU85V9WE/l5wZEmImpCtLqbnTvqDS2U1fJ96KrxoW7KrXhNsNCblQlg8Ck4b85yxdTyelsMUgFUXiw==}
+ engines: {node: '>=6.0.0'}
+ hasBin: true
+ dependencies:
+ '@babel/types': 7.23.0
+
+ /@babel/plugin-syntax-import-assertions@7.22.5(@babel/core@7.23.2):
resolution: {integrity: sha512-rdV97N7KqsRzeNGoWUOK6yUsWarLjE5Su/Snk9IYPU9CwkWHs4t+rTGOvffTR8XGkJMTAdLfO0xVnXm8wugIJg==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.22.10
+ '@babel/core': 7.23.2
'@babel/helper-plugin-utils': 7.22.5
dev: true
@@ -305,23 +592,23 @@ packages:
'@babel/helper-plugin-utils': 7.22.5
dev: false
- /@babel/plugin-transform-react-jsx-self@7.22.5(@babel/core@7.22.10):
+ /@babel/plugin-transform-react-jsx-self@7.22.5(@babel/core@7.23.2):
resolution: {integrity: sha512-nTh2ogNUtxbiSbxaT4Ds6aXnXEipHweN9YRgOX/oNXdf0cCrGn/+2LozFa3lnPV5D90MkjhgckCPBrsoSc1a7g==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.22.10
+ '@babel/core': 7.23.2
'@babel/helper-plugin-utils': 7.22.5
dev: true
- /@babel/plugin-transform-react-jsx-source@7.22.5(@babel/core@7.22.10):
+ /@babel/plugin-transform-react-jsx-source@7.22.5(@babel/core@7.23.2):
resolution: {integrity: sha512-yIiRO6yobeEIaI0RTbIr8iAK9FcBHLtZq0S89ZPjDLQXBA4xvghaKqI0etp/tF3htTM0sazJKKLz9oEiGRtu7w==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
- '@babel/core': 7.22.10
+ '@babel/core': 7.23.2
'@babel/helper-plugin-utils': 7.22.5
dev: true
@@ -336,29 +623,61 @@ packages:
'@babel/helper-module-imports': 7.22.5
'@babel/helper-plugin-utils': 7.22.5
'@babel/plugin-syntax-jsx': 7.22.5(@babel/core@7.22.10)
- '@babel/types': 7.22.10
+ '@babel/types': 7.23.0
dev: false
+ /@babel/runtime@7.23.2:
+ resolution: {integrity: sha512-mM8eg4yl5D6i3lu2QKPuPH4FArvJ8KhTofbE7jwMUv9KX5mBvwPAqnV3MlyBNqdp9RyRKP6Yck8TrfYrPvX3bg==}
+ engines: {node: '>=6.9.0'}
+ dependencies:
+ regenerator-runtime: 0.14.0
+ dev: true
+
+ /@babel/template@7.22.15:
+ resolution: {integrity: sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==}
+ engines: {node: '>=6.9.0'}
+ dependencies:
+ '@babel/code-frame': 7.22.13
+ '@babel/parser': 7.23.0
+ '@babel/types': 7.23.0
+
/@babel/template@7.22.5:
resolution: {integrity: sha512-X7yV7eiwAxdj9k94NEylvbVHLiVG1nvzCV2EAowhxLTwODV1jl9UzZ48leOC0sH7OnuHrIkllaBgneUykIcZaw==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/code-frame': 7.22.10
- '@babel/parser': 7.22.10
- '@babel/types': 7.22.10
+ '@babel/code-frame': 7.22.13
+ '@babel/parser': 7.23.0
+ '@babel/types': 7.23.0
/@babel/traverse@7.22.10:
resolution: {integrity: sha512-Q/urqV4pRByiNNpb/f5OSv28ZlGJiFiiTh+GAHktbIrkPhPbl90+uW6SmpoLyZqutrg9AEaEf3Q/ZBRHBXgxig==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/code-frame': 7.22.10
- '@babel/generator': 7.22.10
+ '@babel/code-frame': 7.22.13
+ '@babel/generator': 7.23.0
'@babel/helper-environment-visitor': 7.22.5
'@babel/helper-function-name': 7.22.5
'@babel/helper-hoist-variables': 7.22.5
'@babel/helper-split-export-declaration': 7.22.6
- '@babel/parser': 7.22.10
- '@babel/types': 7.22.10
+ '@babel/parser': 7.23.0
+ '@babel/types': 7.23.0
+ debug: 4.3.4
+ globals: 11.12.0
+ transitivePeerDependencies:
+ - supports-color
+
+ /@babel/traverse@7.23.2:
+ resolution: {integrity: sha512-azpe59SQ48qG6nu2CzcMLbxUudtN+dOM9kDbUqGq3HXUJRlo7i8fvPoxQUzYgLZ4cMVmuZgm8vvBpNeRhd6XSw==}
+ engines: {node: '>=6.9.0'}
+ dependencies:
+ '@babel/code-frame': 7.22.13
+ '@babel/generator': 7.23.0
+ '@babel/helper-environment-visitor': 7.22.20
+ '@babel/helper-function-name': 7.23.0
+ '@babel/helper-hoist-variables': 7.22.5
+ '@babel/helper-split-export-declaration': 7.22.6
+ '@babel/parser': 7.23.0
+ '@babel/types': 7.23.0
debug: 4.3.4
globals: 11.12.0
transitivePeerDependencies:
@@ -372,6 +691,14 @@ packages:
'@babel/helper-validator-identifier': 7.22.5
to-fast-properties: 2.0.0
+ /@babel/types@7.23.0:
+ resolution: {integrity: sha512-0oIyUfKoI3mSqMvsxBdclDwxXKXAUA8v/apZbc+iSyARYou1o8ZGDxbUYyLFoW2arqS2jDGqJuZvv1d/io1axg==}
+ engines: {node: '>=6.9.0'}
+ dependencies:
+ '@babel/helper-string-parser': 7.22.5
+ '@babel/helper-validator-identifier': 7.22.20
+ to-fast-properties: 2.0.0
+
/@base2/pretty-print-object@1.0.1:
resolution: {integrity: sha512-4iri8i1AqYHJE2DstZYkyEprg6Pq6sKx3xn5FpySk9sNhH7qN2LLlHJCfDTZRILNwQNPD7mATWM0TBui7uC1pA==}
dev: true
@@ -754,6 +1081,89 @@ packages:
dev: false
optional: true
+ /@eslint-community/eslint-utils@4.4.0(eslint@8.51.0):
+ resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==}
+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
+ peerDependencies:
+ eslint: ^6.0.0 || ^7.0.0 || >=8.0.0
+ dependencies:
+ eslint: 8.51.0
+ eslint-visitor-keys: 3.4.3
+ dev: true
+
+ /@eslint-community/regexpp@4.9.1:
+ resolution: {integrity: sha512-Y27x+MBLjXa+0JWDhykM3+JE+il3kHKAEqabfEWq3SDhZjLYb6/BHL/JKFnH3fe207JaXkyDo685Oc2Glt6ifA==}
+ engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0}
+ dev: true
+
+ /@eslint/eslintrc@2.1.2:
+ resolution: {integrity: sha512-+wvgpDsrB1YqAMdEUCcnTlpfVBH7Vqn6A/NT3D8WVXFIaKMlErPIZT3oCIAVCOtarRpMtelZLqJeU3t7WY6X6g==}
+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
+ dependencies:
+ ajv: 6.12.6
+ debug: 4.3.4
+ espree: 9.6.1
+ globals: 13.23.0
+ ignore: 5.2.4
+ import-fresh: 3.3.0
+ js-yaml: 4.1.0
+ minimatch: 3.1.2
+ strip-json-comments: 3.1.1
+ transitivePeerDependencies:
+ - supports-color
+ dev: true
+
+ /@eslint/js@8.51.0:
+ resolution: {integrity: sha512-HxjQ8Qn+4SI3/AFv6sOrDB+g6PpUTDwSJiQqOrnneEk8L71161srI9gjzzZvYVbzHiVg/BvcH95+cK/zfIt4pg==}
+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
+ dev: true
+
+ /@fastify/busboy@2.0.0:
+ resolution: {integrity: sha512-JUFJad5lv7jxj926GPgymrWQxxjPYuJNiNjNMzqT+HiuP6Vl3dk5xzG+8sTX96np0ZAluvaMzPsjhHZ5rNuNQQ==}
+ engines: {node: '>=14'}
+ dev: false
+
+ /@headlessui/react@1.7.17(react-dom@18.2.0)(react@18.2.0):
+ resolution: {integrity: sha512-4am+tzvkqDSSgiwrsEpGWqgGo9dz8qU5M3znCkC4PgkpY4HcCZzEDEvozltGGGHIKl9jbXbZPSH5TWn4sWJdow==}
+ engines: {node: '>=10'}
+ peerDependencies:
+ react: ^16 || ^17 || ^18
+ react-dom: ^16 || ^17 || ^18
+ dependencies:
+ client-only: 0.0.1
+ react: 18.2.0
+ react-dom: 18.2.0(react@18.2.0)
+ dev: false
+
+ /@headlessui/tailwindcss@0.1.3(tailwindcss@3.3.3):
+ resolution: {integrity: sha512-3aMdDyYZx9A15euRehpppSyQnb2gIw2s/Uccn2ELIoLQ9oDy0+9oRygNWNjXCD5Dt+w1pxo7C+XoiYvGcqA4Kg==}
+ engines: {node: '>=10'}
+ peerDependencies:
+ tailwindcss: ^3.0
+ dependencies:
+ tailwindcss: 3.3.3
+ dev: false
+
+ /@humanwhocodes/config-array@0.11.11:
+ resolution: {integrity: sha512-N2brEuAadi0CcdeMXUkhbZB84eskAc8MEX1By6qEchoVywSgXPIjou4rYsl0V3Hj0ZnuGycGCjdNgockbzeWNA==}
+ engines: {node: '>=10.10.0'}
+ dependencies:
+ '@humanwhocodes/object-schema': 1.2.1
+ debug: 4.3.4
+ minimatch: 3.1.2
+ transitivePeerDependencies:
+ - supports-color
+ dev: true
+
+ /@humanwhocodes/module-importer@1.0.1:
+ resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==}
+ engines: {node: '>=12.22'}
+ dev: true
+
+ /@humanwhocodes/object-schema@1.2.1:
+ resolution: {integrity: sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==}
+ dev: true
+
/@ianvs/prettier-plugin-sort-imports@4.1.1(prettier@3.0.3):
resolution: {integrity: sha512-kJhXq63ngpTQ2dxgf5GasbPJWsJA3LgoOdd7WGhpUSzLgLgI4IsIzYkbJf9kmpOHe7Vdm/o3PcRA3jmizXUuAQ==}
peerDependencies:
@@ -763,7 +1173,7 @@ packages:
'@vue/compiler-sfc':
optional: true
dependencies:
- '@babel/core': 7.22.10
+ '@babel/core': 7.23.2
'@babel/generator': 7.22.10
'@babel/parser': 7.22.10
'@babel/traverse': 7.22.10
@@ -824,6 +1234,13 @@ packages:
resolution: {integrity: sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==}
engines: {node: '>=6.0.0'}
+ /@jridgewell/source-map@0.3.5:
+ resolution: {integrity: sha512-UTYAUj/wviwdsMfzoSJspJxbkH5o1snzwX0//0ENX1u/55kkZZkcTZP6u9bwKGkv+dkk9at4m1Cpt0uY80kcpQ==}
+ dependencies:
+ '@jridgewell/gen-mapping': 0.3.3
+ '@jridgewell/trace-mapping': 0.3.19
+ dev: true
+
/@jridgewell/sourcemap-codec@1.4.15:
resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==}
@@ -839,12 +1256,10 @@ packages:
dependencies:
'@nodelib/fs.stat': 2.0.5
run-parallel: 1.2.0
- dev: false
/@nodelib/fs.stat@2.0.5:
resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==}
engines: {node: '>= 8'}
- dev: false
/@nodelib/fs.walk@1.2.8:
resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==}
@@ -852,6 +1267,91 @@ packages:
dependencies:
'@nodelib/fs.scandir': 2.1.5
fastq: 1.15.0
+
+ /@octokit/auth-token@4.0.0:
+ resolution: {integrity: sha512-tY/msAuJo6ARbK6SPIxZrPBms3xPbfwBrulZe0Wtr/DIY9lje2HeV1uoebShn6mx7SjCHif6EjMvoREj+gZ+SA==}
+ engines: {node: '>= 18'}
+ dev: false
+
+ /@octokit/core@5.0.1:
+ resolution: {integrity: sha512-lyeeeZyESFo+ffI801SaBKmCfsvarO+dgV8/0gD8u1d87clbEdWsP5yC+dSj3zLhb2eIf5SJrn6vDz9AheETHw==}
+ engines: {node: '>= 18'}
+ dependencies:
+ '@octokit/auth-token': 4.0.0
+ '@octokit/graphql': 7.0.2
+ '@octokit/request': 8.1.4
+ '@octokit/request-error': 5.0.1
+ '@octokit/types': 12.0.0
+ before-after-hook: 2.2.3
+ universal-user-agent: 6.0.0
+ dev: false
+
+ /@octokit/endpoint@9.0.1:
+ resolution: {integrity: sha512-hRlOKAovtINHQPYHZlfyFwaM8OyetxeoC81lAkBy34uLb8exrZB50SQdeW3EROqiY9G9yxQTpp5OHTV54QD+vA==}
+ engines: {node: '>= 18'}
+ dependencies:
+ '@octokit/types': 12.0.0
+ is-plain-object: 5.0.0
+ universal-user-agent: 6.0.0
+ dev: false
+
+ /@octokit/graphql@7.0.2:
+ resolution: {integrity: sha512-OJ2iGMtj5Tg3s6RaXH22cJcxXRi7Y3EBqbHTBRq+PQAqfaS8f/236fUrWhfSn8P4jovyzqucxme7/vWSSZBX2Q==}
+ engines: {node: '>= 18'}
+ dependencies:
+ '@octokit/request': 8.1.4
+ '@octokit/types': 12.0.0
+ universal-user-agent: 6.0.0
+ dev: false
+
+ /@octokit/openapi-types@19.0.0:
+ resolution: {integrity: sha512-PclQ6JGMTE9iUStpzMkwLCISFn/wDeRjkZFIKALpvJQNBGwDoYYi2fFvuHwssoQ1rXI5mfh6jgTgWuddeUzfWw==}
+ dev: false
+
+ /@octokit/plugin-paginate-rest@9.0.0(@octokit/core@5.0.1):
+ resolution: {integrity: sha512-oIJzCpttmBTlEhBmRvb+b9rlnGpmFgDtZ0bB6nq39qIod6A5DP+7RkVLMOixIgRCYSHDTeayWqmiJ2SZ6xgfdw==}
+ engines: {node: '>= 18'}
+ peerDependencies:
+ '@octokit/core': '>=5'
+ dependencies:
+ '@octokit/core': 5.0.1
+ '@octokit/types': 12.0.0
+ dev: false
+
+ /@octokit/plugin-rest-endpoint-methods@10.0.1(@octokit/core@5.0.1):
+ resolution: {integrity: sha512-fgS6HPkPvJiz8CCliewLyym9qAx0RZ/LKh3sATaPfM41y/O2wQ4Z9MrdYeGPVh04wYmHFmWiGlKPC7jWVtZXQA==}
+ engines: {node: '>= 18'}
+ peerDependencies:
+ '@octokit/core': '>=5'
+ dependencies:
+ '@octokit/core': 5.0.1
+ '@octokit/types': 12.0.0
+ dev: false
+
+ /@octokit/request-error@5.0.1:
+ resolution: {integrity: sha512-X7pnyTMV7MgtGmiXBwmO6M5kIPrntOXdyKZLigNfQWSEQzVxR4a4vo49vJjTWX70mPndj8KhfT4Dx+2Ng3vnBQ==}
+ engines: {node: '>= 18'}
+ dependencies:
+ '@octokit/types': 12.0.0
+ deprecation: 2.3.1
+ once: 1.4.0
+ dev: false
+
+ /@octokit/request@8.1.4:
+ resolution: {integrity: sha512-M0aaFfpGPEKrg7XoA/gwgRvc9MSXHRO2Ioki1qrPDbl1e9YhjIwVoHE7HIKmv/m3idzldj//xBujcFNqGX6ENA==}
+ engines: {node: '>= 18'}
+ dependencies:
+ '@octokit/endpoint': 9.0.1
+ '@octokit/request-error': 5.0.1
+ '@octokit/types': 12.0.0
+ is-plain-object: 5.0.0
+ universal-user-agent: 6.0.0
+ dev: false
+
+ /@octokit/types@12.0.0:
+ resolution: {integrity: sha512-EzD434aHTFifGudYAygnFlS1Tl6KhbTynEWELQXIbTY8Msvb5nEqTZIm7sbPEt4mQYLZwu3zPKVdeIrw0g7ovg==}
+ dependencies:
+ '@octokit/openapi-types': 19.0.0
dev: false
/@pkgjs/parseargs@0.11.0:
@@ -861,6 +1361,79 @@ packages:
dev: true
optional: true
+ /@pkgr/utils@2.4.2:
+ resolution: {integrity: sha512-POgTXhjrTfbTV63DiFXav4lBHiICLKKwDeaKn9Nphwj7WH6m0hMMCaJkMyRWjgtPFyRKRVoMXXjczsTQRDEhYw==}
+ engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0}
+ dependencies:
+ cross-spawn: 7.0.3
+ fast-glob: 3.3.1
+ is-glob: 4.0.3
+ open: 9.1.0
+ picocolors: 1.0.0
+ tslib: 2.6.2
+ dev: true
+
+ /@react-spring/animated@9.7.3(react@18.2.0):
+ resolution: {integrity: sha512-5CWeNJt9pNgyvuSzQH+uy2pvTg8Y4/OisoscZIR8/ZNLIOI+CatFBhGZpDGTF/OzdNFsAoGk3wiUYTwoJ0YIvw==}
+ peerDependencies:
+ react: ^16.8.0 || ^17.0.0 || ^18.0.0
+ dependencies:
+ '@react-spring/shared': 9.7.3(react@18.2.0)
+ '@react-spring/types': 9.7.3
+ react: 18.2.0
+ dev: false
+
+ /@react-spring/core@9.7.3(react@18.2.0):
+ resolution: {integrity: sha512-IqFdPVf3ZOC1Cx7+M0cXf4odNLxDC+n7IN3MDcVCTIOSBfqEcBebSv+vlY5AhM0zw05PDbjKrNmBpzv/AqpjnQ==}
+ peerDependencies:
+ react: ^16.8.0 || ^17.0.0 || ^18.0.0
+ dependencies:
+ '@react-spring/animated': 9.7.3(react@18.2.0)
+ '@react-spring/shared': 9.7.3(react@18.2.0)
+ '@react-spring/types': 9.7.3
+ react: 18.2.0
+ dev: false
+
+ /@react-spring/shared@9.7.3(react@18.2.0):
+ resolution: {integrity: sha512-NEopD+9S5xYyQ0pGtioacLhL2luflh6HACSSDUZOwLHoxA5eku1UPuqcJqjwSD6luKjjLfiLOspxo43FUHKKSA==}
+ peerDependencies:
+ react: ^16.8.0 || ^17.0.0 || ^18.0.0
+ dependencies:
+ '@react-spring/types': 9.7.3
+ react: 18.2.0
+ dev: false
+
+ /@react-spring/types@9.7.3:
+ resolution: {integrity: sha512-Kpx/fQ/ZFX31OtlqVEFfgaD1ACzul4NksrvIgYfIFq9JpDHFwQkMVZ10tbo0FU/grje4rcL4EIrjekl3kYwgWw==}
+ dev: false
+
+ /@react-spring/web@9.7.3(react-dom@18.2.0)(react@18.2.0):
+ resolution: {integrity: sha512-BXt6BpS9aJL/QdVqEIX9YoUy8CE6TJrU0mNCqSoxdXlIeNcEBWOfIyE6B14ENNsyQKS3wOWkiJfco0tCr/9tUg==}
+ peerDependencies:
+ react: ^16.8.0 || ^17.0.0 || ^18.0.0
+ react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0
+ dependencies:
+ '@react-spring/animated': 9.7.3(react@18.2.0)
+ '@react-spring/core': 9.7.3(react@18.2.0)
+ '@react-spring/shared': 9.7.3(react@18.2.0)
+ '@react-spring/types': 9.7.3
+ react: 18.2.0
+ react-dom: 18.2.0(react@18.2.0)
+ dev: false
+
+ /@remix-run/router@1.9.0:
+ resolution: {integrity: sha512-bV63itrKBC0zdT27qYm6SDZHlkXwFL1xMBuhkn+X7l0+IIhNaH5wuuvZKp6eKhCD4KFhujhfhCT1YxXW6esUIA==}
+ engines: {node: '>=14.0.0'}
+ dev: false
+
+ /@rollup/pluginutils@4.2.1:
+ resolution: {integrity: sha512-iKnFXr7NkdZAIHiIWE+BX5ULi/ucVFYWD6TbAV+rZctiRTY2PL6tsIKhoIOaoskiWAkgu+VsbXgUVDNLHf+InQ==}
+ engines: {node: '>= 8.0.0'}
+ dependencies:
+ estree-walker: 2.0.2
+ picomatch: 2.3.1
+ dev: true
+
/@rollup/pluginutils@5.0.3:
resolution: {integrity: sha512-hfllNN4a80rwNQ9QCxhxuHCGHMAvabXqxNdaChUSSadMre7t4iEUI6fFAhBOn/eIYTgYVhBv7vCLsAJ4u3lf3g==}
engines: {node: '>=14.0.0'}
@@ -875,6 +1448,20 @@ packages:
picomatch: 2.3.1
dev: true
+ /@rollup/pluginutils@5.0.5:
+ resolution: {integrity: sha512-6aEYR910NyP73oHiJglti74iRyOwgFU4x3meH/H8OJx6Ry0j6cOVZ5X/wTvub7G7Ao6qaHBEaNsV3GLJkSsF+Q==}
+ engines: {node: '>=14.0.0'}
+ peerDependencies:
+ rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0
+ peerDependenciesMeta:
+ rollup:
+ optional: true
+ dependencies:
+ '@types/estree': 1.0.1
+ estree-walker: 2.0.2
+ picomatch: 2.3.1
+ dev: true
+
/@storybook/builder-vite@7.4.6(typescript@5.2.2)(vite@4.4.11):
resolution: {integrity: sha512-xV9STYK+TkqWWTf2ydm6jx+7P70fjD2UPd1XTUw08uKszIjhuuxk+bG/OF5R1E25mPunAKXm6kBFh351AKejBg==}
peerDependencies:
@@ -1144,11 +1731,158 @@ packages:
file-system-cache: 2.3.0
dev: true
+ /@svgr/babel-plugin-add-jsx-attribute@8.0.0(@babel/core@7.23.2):
+ resolution: {integrity: sha512-b9MIk7yhdS1pMCZM8VeNfUlSKVRhsHZNMl5O9SfaX0l0t5wjdgu4IDzGB8bpnGBBOjGST3rRFVsaaEtI4W6f7g==}
+ engines: {node: '>=14'}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+ dependencies:
+ '@babel/core': 7.23.2
+ dev: true
+
+ /@svgr/babel-plugin-remove-jsx-attribute@8.0.0(@babel/core@7.23.2):
+ resolution: {integrity: sha512-BcCkm/STipKvbCl6b7QFrMh/vx00vIP63k2eM66MfHJzPr6O2U0jYEViXkHJWqXqQYjdeA9cuCl5KWmlwjDvbA==}
+ engines: {node: '>=14'}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+ dependencies:
+ '@babel/core': 7.23.2
+ dev: true
+
+ /@svgr/babel-plugin-remove-jsx-empty-expression@8.0.0(@babel/core@7.23.2):
+ resolution: {integrity: sha512-5BcGCBfBxB5+XSDSWnhTThfI9jcO5f0Ai2V24gZpG+wXF14BzwxxdDb4g6trdOux0rhibGs385BeFMSmxtS3uA==}
+ engines: {node: '>=14'}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+ dependencies:
+ '@babel/core': 7.23.2
+ dev: true
+
+ /@svgr/babel-plugin-replace-jsx-attribute-value@8.0.0(@babel/core@7.23.2):
+ resolution: {integrity: sha512-KVQ+PtIjb1BuYT3ht8M5KbzWBhdAjjUPdlMtpuw/VjT8coTrItWX6Qafl9+ji831JaJcu6PJNKCV0bp01lBNzQ==}
+ engines: {node: '>=14'}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+ dependencies:
+ '@babel/core': 7.23.2
+ dev: true
+
+ /@svgr/babel-plugin-svg-dynamic-title@8.0.0(@babel/core@7.23.2):
+ resolution: {integrity: sha512-omNiKqwjNmOQJ2v6ge4SErBbkooV2aAWwaPFs2vUY7p7GhVkzRkJ00kILXQvRhA6miHnNpXv7MRnnSjdRjK8og==}
+ engines: {node: '>=14'}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+ dependencies:
+ '@babel/core': 7.23.2
+ dev: true
+
+ /@svgr/babel-plugin-svg-em-dimensions@8.0.0(@babel/core@7.23.2):
+ resolution: {integrity: sha512-mURHYnu6Iw3UBTbhGwE/vsngtCIbHE43xCRK7kCw4t01xyGqb2Pd+WXekRRoFOBIY29ZoOhUCTEweDMdrjfi9g==}
+ engines: {node: '>=14'}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+ dependencies:
+ '@babel/core': 7.23.2
+ dev: true
+
+ /@svgr/babel-plugin-transform-react-native-svg@8.1.0(@babel/core@7.23.2):
+ resolution: {integrity: sha512-Tx8T58CHo+7nwJ+EhUwx3LfdNSG9R2OKfaIXXs5soiy5HtgoAEkDay9LIimLOcG8dJQH1wPZp/cnAv6S9CrR1Q==}
+ engines: {node: '>=14'}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+ dependencies:
+ '@babel/core': 7.23.2
+ dev: true
+
+ /@svgr/babel-plugin-transform-svg-component@8.0.0(@babel/core@7.23.2):
+ resolution: {integrity: sha512-DFx8xa3cZXTdb/k3kfPeaixecQLgKh5NVBMwD0AQxOzcZawK4oo1Jh9LbrcACUivsCA7TLG8eeWgrDXjTMhRmw==}
+ engines: {node: '>=12'}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+ dependencies:
+ '@babel/core': 7.23.2
+ dev: true
+
+ /@svgr/babel-preset@8.1.0(@babel/core@7.23.2):
+ resolution: {integrity: sha512-7EYDbHE7MxHpv4sxvnVPngw5fuR6pw79SkcrILHJ/iMpuKySNCl5W1qcwPEpU+LgyRXOaAFgH0KhwD18wwg6ug==}
+ engines: {node: '>=14'}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+ dependencies:
+ '@babel/core': 7.23.2
+ '@svgr/babel-plugin-add-jsx-attribute': 8.0.0(@babel/core@7.23.2)
+ '@svgr/babel-plugin-remove-jsx-attribute': 8.0.0(@babel/core@7.23.2)
+ '@svgr/babel-plugin-remove-jsx-empty-expression': 8.0.0(@babel/core@7.23.2)
+ '@svgr/babel-plugin-replace-jsx-attribute-value': 8.0.0(@babel/core@7.23.2)
+ '@svgr/babel-plugin-svg-dynamic-title': 8.0.0(@babel/core@7.23.2)
+ '@svgr/babel-plugin-svg-em-dimensions': 8.0.0(@babel/core@7.23.2)
+ '@svgr/babel-plugin-transform-react-native-svg': 8.1.0(@babel/core@7.23.2)
+ '@svgr/babel-plugin-transform-svg-component': 8.0.0(@babel/core@7.23.2)
+ dev: true
+
+ /@svgr/core@8.1.0(typescript@5.2.2):
+ resolution: {integrity: sha512-8QqtOQT5ACVlmsvKOJNEaWmRPmcojMOzCz4Hs2BGG/toAp/K38LcsMRyLp349glq5AzJbCEeimEoxaX6v/fLrA==}
+ engines: {node: '>=14'}
+ dependencies:
+ '@babel/core': 7.23.2
+ '@svgr/babel-preset': 8.1.0(@babel/core@7.23.2)
+ camelcase: 6.3.0
+ cosmiconfig: 8.3.6(typescript@5.2.2)
+ snake-case: 3.0.4
+ transitivePeerDependencies:
+ - supports-color
+ - typescript
+ dev: true
+
+ /@svgr/hast-util-to-babel-ast@8.0.0:
+ resolution: {integrity: sha512-EbDKwO9GpfWP4jN9sGdYwPBU0kdomaPIL2Eu4YwmgP+sJeXT+L7bMwJUBnhzfH8Q2qMBqZ4fJwpCyYsAN3mt2Q==}
+ engines: {node: '>=14'}
+ dependencies:
+ '@babel/types': 7.23.0
+ entities: 4.5.0
+ dev: true
+
+ /@svgr/plugin-jsx@8.1.0(@svgr/core@8.1.0):
+ resolution: {integrity: sha512-0xiIyBsLlr8quN+WyuxooNW9RJ0Dpr8uOnH/xrCVO8GLUcwHISwj1AG0k+LFzteTkAA0GbX0kj9q6Dk70PTiPA==}
+ engines: {node: '>=14'}
+ peerDependencies:
+ '@svgr/core': '*'
+ dependencies:
+ '@babel/core': 7.23.2
+ '@svgr/babel-preset': 8.1.0(@babel/core@7.23.2)
+ '@svgr/core': 8.1.0(typescript@5.2.2)
+ '@svgr/hast-util-to-babel-ast': 8.0.0
+ svg-parser: 2.0.4
+ transitivePeerDependencies:
+ - supports-color
+ dev: true
+
+ /@tailwindcss/forms@0.5.6(tailwindcss@3.3.3):
+ resolution: {integrity: sha512-Fw+2BJ0tmAwK/w01tEFL5TiaJBX1NLT1/YbWgvm7ws3Qcn11kiXxzNTEQDMs5V3mQemhB56l3u0i9dwdzSQldA==}
+ peerDependencies:
+ tailwindcss: '>=3.0.0 || >= 3.0.0-alpha.1'
+ dependencies:
+ mini-svg-data-uri: 1.4.4
+ tailwindcss: 3.3.3
+ dev: false
+
+ /@tailwindcss/typography@0.5.10(tailwindcss@3.3.3):
+ resolution: {integrity: sha512-Pe8BuPJQJd3FfRnm6H0ulKIGoMEQS+Vq01R6M5aCrFB/ccR/shT+0kXLjouGC1gFLm9hopTFN+DMP0pfwRWzPw==}
+ peerDependencies:
+ tailwindcss: '>=3.0.0 || insiders'
+ dependencies:
+ lodash.castarray: 4.4.0
+ lodash.isplainobject: 4.0.6
+ lodash.merge: 4.6.2
+ postcss-selector-parser: 6.0.10
+ tailwindcss: 3.3.3
+ dev: true
+
/@types/babel__core@7.20.1:
resolution: {integrity: sha512-aACu/U/omhdk15O4Nfb+fHgH/z3QsfQzpnvRZhYhThms83ZnAOZz7zZAWO7mn2yyNQaA4xTO8GLK3uqFU4bYYw==}
dependencies:
- '@babel/parser': 7.22.10
- '@babel/types': 7.22.10
+ '@babel/parser': 7.23.0
+ '@babel/types': 7.23.0
'@types/babel__generator': 7.6.4
'@types/babel__template': 7.4.1
'@types/babel__traverse': 7.20.1
@@ -1156,30 +1890,30 @@ packages:
/@types/babel__generator@7.6.4:
resolution: {integrity: sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg==}
dependencies:
- '@babel/types': 7.22.10
+ '@babel/types': 7.23.0
/@types/babel__template@7.4.1:
resolution: {integrity: sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==}
dependencies:
- '@babel/parser': 7.22.10
- '@babel/types': 7.22.10
+ '@babel/parser': 7.23.0
+ '@babel/types': 7.23.0
/@types/babel__traverse@7.20.1:
resolution: {integrity: sha512-MitHFXnhtgwsGZWtT68URpOvLN4EREih1u3QtQiN4VdAxWKRVvGCSvw/Qth0M0Qq3pJpnGOu5JaM/ydK7OGbqg==}
dependencies:
- '@babel/types': 7.22.10
+ '@babel/types': 7.23.0
/@types/body-parser@1.19.2:
resolution: {integrity: sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==}
dependencies:
'@types/connect': 3.4.35
- '@types/node': 18.18.5
+ '@types/node': 18.17.19
dev: true
/@types/connect@3.4.35:
resolution: {integrity: sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==}
dependencies:
- '@types/node': 18.18.5
+ '@types/node': 18.17.19
dev: true
/@types/debug@4.1.8:
@@ -1206,7 +1940,7 @@ packages:
/@types/express-serve-static-core@4.17.36:
resolution: {integrity: sha512-zbivROJ0ZqLAtMzgzIUC4oNqDG9iF0lSsAqpOD9kbs5xcIM3dTiyuHvBc7R8MtWBp3AAWGaovJa+wzWPjLYW7Q==}
dependencies:
- '@types/node': 18.18.5
+ '@types/node': 18.17.19
'@types/qs': 6.9.7
'@types/range-parser': 1.2.4
'@types/send': 0.17.1
@@ -1229,7 +1963,7 @@ packages:
resolution: {integrity: sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==}
dependencies:
'@types/minimatch': 5.1.2
- '@types/node': 18.18.5
+ '@types/node': 18.17.19
dev: true
/@types/hast@2.3.5:
@@ -1252,6 +1986,10 @@ packages:
resolution: {integrity: sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==}
dev: true
+ /@types/json-schema@7.0.13:
+ resolution: {integrity: sha512-RbSSoHliUbnXj3ny0CNFOoxrIDV6SUGyStHsvDqosw6CkdPV8TtWGlfecuK4ToyMEAql6pzNxgCFKanovUzlgQ==}
+ dev: true
+
/@types/mdast@3.0.12:
resolution: {integrity: sha512-DT+iNIRNX884cx0/Q1ja7NyUPpZuv0KPyL5rGNxm1WC1OtHstl7n4Jb7nk+xacNShQMbczJjt8uFzznpp6kYBg==}
dependencies:
@@ -1289,7 +2027,7 @@ packages:
/@types/node-fetch@2.6.4:
resolution: {integrity: sha512-1ZX9fcN4Rvkvgv4E6PAY5WXUFWFcRWxZa3EW83UjycOB9ljJCedb2CupIP4RZMEwF/M3eTcCihbBRgwtGbg5Rg==}
dependencies:
- '@types/node': 18.18.5
+ '@types/node': 18.17.19
form-data: 3.0.1
dev: true
@@ -1297,9 +2035,8 @@ packages:
resolution: {integrity: sha512-YFpgPKPRcwYbeNOimfu70B+TVJe6tr88WiW/TzEldkwGxQXrmabpU+lDjrFlNqdqIi3ON0o69EQBW62VH4MIxw==}
dev: true
- /@types/node@18.18.5:
- resolution: {integrity: sha512-4slmbtwV59ZxitY4ixUZdy1uRLf9eSIvBWPQxNjhHYWEtn0FryfKpyS2cvADYXTayWdKEIsJengncrVvkI4I6A==}
- dev: true
+ /@types/node@18.17.19:
+ resolution: {integrity: sha512-+pMhShR3Or5GR0/sp4Da7FnhVmTalWm81M6MkEldbwjETSaPalw138Z4KdpQaistvqQxLB7Cy4xwYdxpbSOs9Q==}
/@types/parse5@6.0.3:
resolution: {integrity: sha512-SuT16Q1K51EAVPz1K29DJ/sXjhSQ0zjvsypYJ6tlwVsRV9jwW5Adq2ch8Dq8kDBCkYnELS7N7VNCSB5nC56t/g==}
@@ -1309,6 +2046,10 @@ packages:
resolution: {integrity: sha512-VjID5MJb1eGKthz2qUerWT8+R4b9N+CHvGCzg9fn4kWZgaF9AhdYikQio3R7wV8YY1NsQKPaCwKz1Yff+aHNUQ==}
dev: true
+ /@types/prop-types@15.7.8:
+ resolution: {integrity: sha512-kMpQpfZKSCBqltAJwskgePRaYRFukDkm1oItcAbC3gNELR20XIBcN9VRgg4+m8DKsTfkWeA4m4Imp4DDuWy7FQ==}
+ dev: true
+
/@types/qs@6.9.7:
resolution: {integrity: sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw==}
dev: true
@@ -1317,11 +2058,33 @@ packages:
resolution: {integrity: sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw==}
dev: true
+ /@types/react-dom@18.2.13:
+ resolution: {integrity: sha512-eJIUv7rPP+EC45uNYp/ThhSpE16k22VJUknt5OLoH9tbXoi8bMhwLf5xRuWMywamNbWzhrSmU7IBJfPup1+3fw==}
+ dependencies:
+ '@types/react': 18.2.28
+ dev: true
+
+ /@types/react@18.2.28:
+ resolution: {integrity: sha512-ad4aa/RaaJS3hyGz0BGegdnSRXQBkd1CCYDCdNjBPg90UUpLgo+WlJqb9fMYUxtehmzF3PJaTWqRZjko6BRzBg==}
+ dependencies:
+ '@types/prop-types': 15.7.8
+ '@types/scheduler': 0.16.4
+ csstype: 3.1.2
+ dev: true
+
+ /@types/scheduler@0.16.4:
+ resolution: {integrity: sha512-2L9ifAGl7wmXwP4v3pN4p2FLhD0O1qsJpvKmNin5VA8+UvNVb447UDaAEV6UdrkA+m/Xs58U1RFps44x6TFsVQ==}
+ dev: true
+
+ /@types/semver@7.5.3:
+ resolution: {integrity: sha512-OxepLK9EuNEIPxWNME+C6WwbRAOOI2o2BaQEGzz5Lu2e4Z5eDnEo+/aVEDMIXywoJitJ7xWd641wrGLZdtwRyw==}
+ dev: true
+
/@types/send@0.17.1:
resolution: {integrity: sha512-Cwo8LE/0rnvX7kIIa3QHCkcuF21c05Ayb0ZfxPiv0W8VRiZiNW/WuRupHKpqqGVGf7SUA44QSOUKaEd9lIrd/Q==}
dependencies:
'@types/mime': 1.3.2
- '@types/node': 18.18.5
+ '@types/node': 18.17.19
dev: true
/@types/serve-static@1.15.2:
@@ -1329,7 +2092,7 @@ packages:
dependencies:
'@types/http-errors': 2.0.1
'@types/mime': 3.0.1
- '@types/node': 18.18.5
+ '@types/node': 18.17.19
dev: true
/@types/unist@2.0.7:
@@ -1339,19 +2102,176 @@ packages:
resolution: {integrity: sha512-MFETx3tbTjE7Uk6vvnWINA/1iJ7LuMdO4fcq8UfF0pRbj01aGLduVvQcRyswuACJdpnHgg8E3rQLhaRdNEJS0w==}
dev: false
+ /@typescript-eslint/eslint-plugin@6.7.5(@typescript-eslint/parser@6.7.5)(eslint@8.51.0)(typescript@5.2.2):
+ resolution: {integrity: sha512-JhtAwTRhOUcP96D0Y6KYnwig/MRQbOoLGXTON2+LlyB/N35SP9j1boai2zzwXb7ypKELXMx3DVk9UTaEq1vHEw==}
+ engines: {node: ^16.0.0 || >=18.0.0}
+ peerDependencies:
+ '@typescript-eslint/parser': ^6.0.0 || ^6.0.0-alpha
+ eslint: ^7.0.0 || ^8.0.0
+ typescript: '*'
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+ dependencies:
+ '@eslint-community/regexpp': 4.9.1
+ '@typescript-eslint/parser': 6.7.5(eslint@8.51.0)(typescript@5.2.2)
+ '@typescript-eslint/scope-manager': 6.7.5
+ '@typescript-eslint/type-utils': 6.7.5(eslint@8.51.0)(typescript@5.2.2)
+ '@typescript-eslint/utils': 6.7.5(eslint@8.51.0)(typescript@5.2.2)
+ '@typescript-eslint/visitor-keys': 6.7.5
+ debug: 4.3.4
+ eslint: 8.51.0
+ graphemer: 1.4.0
+ ignore: 5.2.4
+ natural-compare: 1.4.0
+ semver: 7.5.4
+ ts-api-utils: 1.0.3(typescript@5.2.2)
+ typescript: 5.2.2
+ transitivePeerDependencies:
+ - supports-color
+ dev: true
+
+ /@typescript-eslint/parser@6.7.5(eslint@8.51.0)(typescript@5.2.2):
+ resolution: {integrity: sha512-bIZVSGx2UME/lmhLcjdVc7ePBwn7CLqKarUBL4me1C5feOd663liTGjMBGVcGr+BhnSLeP4SgwdvNnnkbIdkCw==}
+ engines: {node: ^16.0.0 || >=18.0.0}
+ peerDependencies:
+ eslint: ^7.0.0 || ^8.0.0
+ typescript: '*'
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+ dependencies:
+ '@typescript-eslint/scope-manager': 6.7.5
+ '@typescript-eslint/types': 6.7.5
+ '@typescript-eslint/typescript-estree': 6.7.5(typescript@5.2.2)
+ '@typescript-eslint/visitor-keys': 6.7.5
+ debug: 4.3.4
+ eslint: 8.51.0
+ typescript: 5.2.2
+ transitivePeerDependencies:
+ - supports-color
+ dev: true
+
+ /@typescript-eslint/scope-manager@5.62.0:
+ resolution: {integrity: sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w==}
+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
+ dependencies:
+ '@typescript-eslint/types': 5.62.0
+ '@typescript-eslint/visitor-keys': 5.62.0
+ dev: true
+
+ /@typescript-eslint/scope-manager@6.7.5:
+ resolution: {integrity: sha512-GAlk3eQIwWOJeb9F7MKQ6Jbah/vx1zETSDw8likab/eFcqkjSD7BI75SDAeC5N2L0MmConMoPvTsmkrg71+B1A==}
+ engines: {node: ^16.0.0 || >=18.0.0}
+ dependencies:
+ '@typescript-eslint/types': 6.7.5
+ '@typescript-eslint/visitor-keys': 6.7.5
+ dev: true
+
+ /@typescript-eslint/type-utils@6.7.5(eslint@8.51.0)(typescript@5.2.2):
+ resolution: {integrity: sha512-Gs0qos5wqxnQrvpYv+pf3XfcRXW6jiAn9zE/K+DlmYf6FcpxeNYN0AIETaPR7rHO4K2UY+D0CIbDP9Ut0U4m1g==}
+ engines: {node: ^16.0.0 || >=18.0.0}
+ peerDependencies:
+ eslint: ^7.0.0 || ^8.0.0
+ typescript: '*'
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+ dependencies:
+ '@typescript-eslint/typescript-estree': 6.7.5(typescript@5.2.2)
+ '@typescript-eslint/utils': 6.7.5(eslint@8.51.0)(typescript@5.2.2)
+ debug: 4.3.4
+ eslint: 8.51.0
+ ts-api-utils: 1.0.3(typescript@5.2.2)
+ typescript: 5.2.2
+ transitivePeerDependencies:
+ - supports-color
+ dev: true
+
+ /@typescript-eslint/types@5.62.0:
+ resolution: {integrity: sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ==}
+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
+ dev: true
+
+ /@typescript-eslint/types@6.7.5:
+ resolution: {integrity: sha512-WboQBlOXtdj1tDFPyIthpKrUb+kZf2VroLZhxKa/VlwLlLyqv/PwUNgL30BlTVZV1Wu4Asu2mMYPqarSO4L5ZQ==}
+ engines: {node: ^16.0.0 || >=18.0.0}
+ dev: true
+
+ /@typescript-eslint/typescript-estree@6.7.5(typescript@5.2.2):
+ resolution: {integrity: sha512-NhJiJ4KdtwBIxrKl0BqG1Ur+uw7FiOnOThcYx9DpOGJ/Abc9z2xNzLeirCG02Ig3vkvrc2qFLmYSSsaITbKjlg==}
+ engines: {node: ^16.0.0 || >=18.0.0}
+ peerDependencies:
+ typescript: '*'
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+ dependencies:
+ '@typescript-eslint/types': 6.7.5
+ '@typescript-eslint/visitor-keys': 6.7.5
+ debug: 4.3.4
+ globby: 11.1.0
+ is-glob: 4.0.3
+ semver: 7.5.4
+ ts-api-utils: 1.0.3(typescript@5.2.2)
+ typescript: 5.2.2
+ transitivePeerDependencies:
+ - supports-color
+ dev: true
+
+ /@typescript-eslint/utils@6.7.5(eslint@8.51.0)(typescript@5.2.2):
+ resolution: {integrity: sha512-pfRRrH20thJbzPPlPc4j0UNGvH1PjPlhlCMq4Yx7EGjV7lvEeGX0U6MJYe8+SyFutWgSHsdbJ3BXzZccYggezA==}
+ engines: {node: ^16.0.0 || >=18.0.0}
+ peerDependencies:
+ eslint: ^7.0.0 || ^8.0.0
+ dependencies:
+ '@eslint-community/eslint-utils': 4.4.0(eslint@8.51.0)
+ '@types/json-schema': 7.0.13
+ '@types/semver': 7.5.3
+ '@typescript-eslint/scope-manager': 6.7.5
+ '@typescript-eslint/types': 6.7.5
+ '@typescript-eslint/typescript-estree': 6.7.5(typescript@5.2.2)
+ eslint: 8.51.0
+ semver: 7.5.4
+ transitivePeerDependencies:
+ - supports-color
+ - typescript
+ dev: true
+
+ /@typescript-eslint/visitor-keys@5.62.0:
+ resolution: {integrity: sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw==}
+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
+ dependencies:
+ '@typescript-eslint/types': 5.62.0
+ eslint-visitor-keys: 3.4.3
+ dev: true
+
+ /@typescript-eslint/visitor-keys@6.7.5:
+ resolution: {integrity: sha512-3MaWdDZtLlsexZzDSdQWsFQ9l9nL8B80Z4fImSpyllFC/KLqWQRdEcB+gGGO+N3Q2uL40EsG66wZLsohPxNXvg==}
+ engines: {node: ^16.0.0 || >=18.0.0}
+ dependencies:
+ '@typescript-eslint/types': 6.7.5
+ eslint-visitor-keys: 3.4.3
+ dev: true
+
/@ungap/structured-clone@1.2.0:
resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==}
dev: false
+ /@vercel/ncc@0.38.0:
+ resolution: {integrity: sha512-B4YKZMm/EqMptKSFyAq4q2SlgJe+VCmEH6Y8gf/E1pTlWbsUJpuH1ymik2Ex3aYO5mCWwV1kaSYHSQOT8+4vHA==}
+ hasBin: true
+ dev: true
+
/@vitejs/plugin-react@3.1.0(vite@4.4.11):
resolution: {integrity: sha512-AfgcRL8ZBhAlc3BFdigClmTUMISmmzHn7sB2h9U1odvc5U/MjWXsAaz18b/WoppUTDBzxOJwo2VdClfUcItu9g==}
engines: {node: ^14.18.0 || >=16.0.0}
peerDependencies:
vite: ^4.1.0-beta.0
dependencies:
- '@babel/core': 7.22.10
- '@babel/plugin-transform-react-jsx-self': 7.22.5(@babel/core@7.22.10)
- '@babel/plugin-transform-react-jsx-source': 7.22.5(@babel/core@7.22.10)
+ '@babel/core': 7.23.2
+ '@babel/plugin-transform-react-jsx-self': 7.22.5(@babel/core@7.23.2)
+ '@babel/plugin-transform-react-jsx-source': 7.22.5(@babel/core@7.23.2)
magic-string: 0.27.0
react-refresh: 0.14.0
vite: 4.4.11
@@ -1375,6 +2295,14 @@ packages:
acorn: 7.4.1
dev: true
+ /acorn-jsx@5.3.2(acorn@8.10.0):
+ resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==}
+ peerDependencies:
+ acorn: ^6.0.0 || ^7.0.0 || ^8.0.0
+ dependencies:
+ acorn: 8.10.0
+ dev: true
+
/acorn-walk@7.2.0:
resolution: {integrity: sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==}
engines: {node: '>=0.4.0'}
@@ -1391,6 +2319,15 @@ packages:
engines: {node: '>=0.4.0'}
hasBin: true
+ /ajv@6.12.6:
+ resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==}
+ dependencies:
+ fast-deep-equal: 3.1.3
+ fast-json-stable-stringify: 2.1.0
+ json-schema-traverse: 0.4.1
+ uri-js: 4.4.1
+ dev: true
+
/ansi-align@3.0.1:
resolution: {integrity: sha512-IOfwwBF5iczOjp/WeY4YxyjqAFMQoZufdQWDd19SEExbVLNXqvpzSJ/M7Za4/sCPmQ0+GRquoA7bGcINcxew6w==}
dependencies:
@@ -1424,7 +2361,6 @@ packages:
/any-promise@1.3.0:
resolution: {integrity: sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==}
- dev: false
/anymatch@3.1.3:
resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==}
@@ -1439,7 +2375,6 @@ packages:
/arg@5.0.2:
resolution: {integrity: sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==}
- dev: false
/argparse@1.0.10:
resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==}
@@ -1449,16 +2384,87 @@ packages:
/argparse@2.0.1:
resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==}
- dev: false
+
+ /aria-query@5.3.0:
+ resolution: {integrity: sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==}
+ dependencies:
+ dequal: 2.0.3
+ dev: true
+
+ /array-buffer-byte-length@1.0.0:
+ resolution: {integrity: sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==}
+ dependencies:
+ call-bind: 1.0.2
+ is-array-buffer: 3.0.2
+ dev: true
/array-flatten@1.1.1:
resolution: {integrity: sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==}
dev: true
+ /array-includes@3.1.7:
+ resolution: {integrity: sha512-dlcsNBIiWhPkHdOEEKnehA+RNUWDc4UqFtnIXU4uuYDPtA4LDkr7qip2p0VvFAEXNDr0yWZ9PJyIRiGjRLQzwQ==}
+ engines: {node: '>= 0.4'}
+ dependencies:
+ call-bind: 1.0.2
+ define-properties: 1.2.1
+ es-abstract: 1.22.2
+ get-intrinsic: 1.2.1
+ is-string: 1.0.7
+ dev: true
+
/array-iterate@2.0.1:
resolution: {integrity: sha512-I1jXZMjAgCMmxT4qxXfPXa6SthSoE8h6gkSI9BGGNv8mP8G/v0blc+qFnZu6K42vTOiuME596QaLO0TP3Lk0xg==}
dev: false
+ /array-union@2.1.0:
+ resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==}
+ engines: {node: '>=8'}
+ dev: true
+
+ /array.prototype.flat@1.3.2:
+ resolution: {integrity: sha512-djYB+Zx2vLewY8RWlNCUdHjDXs2XOgm602S9E7P/UpHgfeHL00cRiIF+IN/G/aUJ7kGPb6yO/ErDI5V2s8iycA==}
+ engines: {node: '>= 0.4'}
+ dependencies:
+ call-bind: 1.0.2
+ define-properties: 1.2.1
+ es-abstract: 1.22.2
+ es-shim-unscopables: 1.0.0
+ dev: true
+
+ /array.prototype.flatmap@1.3.2:
+ resolution: {integrity: sha512-Ewyx0c9PmpcsByhSW4r+9zDU7sGjFc86qf/kKtuSCRdhfbk0SNLLkaT5qvcHnRGgc5NP/ly/y+qkXkqONX54CQ==}
+ engines: {node: '>= 0.4'}
+ dependencies:
+ call-bind: 1.0.2
+ define-properties: 1.2.1
+ es-abstract: 1.22.2
+ es-shim-unscopables: 1.0.0
+ dev: true
+
+ /array.prototype.tosorted@1.1.2:
+ resolution: {integrity: sha512-HuQCHOlk1Weat5jzStICBCd83NxiIMwqDg/dHEsoefabn/hJRj5pVdWcPUSpRrwhwxZOsQassMpgN/xRYFBMIg==}
+ dependencies:
+ call-bind: 1.0.2
+ define-properties: 1.2.0
+ es-abstract: 1.22.2
+ es-shim-unscopables: 1.0.0
+ get-intrinsic: 1.2.1
+ dev: true
+
+ /arraybuffer.prototype.slice@1.0.2:
+ resolution: {integrity: sha512-yMBKppFur/fbHu9/6USUe03bZ4knMYiwFBcyiaXB8Go0qNehwX6inYPzK9U0NeQvGxKthcmHcaR8P5MStSRBAw==}
+ engines: {node: '>= 0.4'}
+ dependencies:
+ array-buffer-byte-length: 1.0.0
+ call-bind: 1.0.2
+ define-properties: 1.2.1
+ es-abstract: 1.22.2
+ get-intrinsic: 1.2.1
+ is-array-buffer: 3.0.2
+ is-shared-array-buffer: 1.0.2
+ dev: true
+
/assert@2.0.0:
resolution: {integrity: sha512-se5Cd+js9dXJnu6Ag2JFc00t+HmHOen+8Q+L7O9zI0PqQXr20uk2J0XQqMxZEeo5U50o8Nvmmx7dZrl+Ufr35A==}
dependencies:
@@ -1468,6 +2474,10 @@ packages:
util: 0.12.5
dev: true
+ /ast-types-flow@0.0.7:
+ resolution: {integrity: sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag==}
+ dev: true
+
/ast-types@0.14.2:
resolution: {integrity: sha512-O0yuUDnZeQDL+ncNGlJ78BiO4jnYI3bvMsD5prT0/nsgijG/LpNBIr63gTjVTNsiGkgQhiyCShTgxt8oXOrklA==}
engines: {node: '>=4'}
@@ -1482,7 +2492,23 @@ packages:
tslib: 2.6.2
dev: true
- /astro@3.3.0(typescript@5.2.2):
+ /astro-eslint-parser@0.16.0:
+ resolution: {integrity: sha512-k9ASvY8pa6qttM+fvNJCILxxjftfNg/ou5cjd25SVHsc7moplezGGM9fgMUyf24SRYt8ShO603oHRDn2KqwxMg==}
+ engines: {node: ^14.18.0 || >=16.0.0}
+ dependencies:
+ '@astrojs/compiler': 2.2.0
+ '@typescript-eslint/scope-manager': 5.62.0
+ '@typescript-eslint/types': 5.62.0
+ astrojs-compiler-sync: 0.3.3(@astrojs/compiler@2.2.0)
+ debug: 4.3.4
+ eslint-visitor-keys: 3.4.3
+ espree: 9.6.1
+ semver: 7.5.4
+ transitivePeerDependencies:
+ - supports-color
+ dev: true
+
+ /astro@3.3.0(@types/node@18.17.19)(typescript@5.2.2):
resolution: {integrity: sha512-O3MsXULamxQMy6sBgv07iVe5teJ41o+9tVScB/Yo2Io0XwvLXVhjVrjAxKpulBcKpU3/LyOpVfj/x63fcONbPA==}
engines: {node: '>=18.14.1', npm: '>=6.14.0'}
hasBin: true
@@ -1537,7 +2563,7 @@ packages:
tsconfck: 3.0.0-next.9(typescript@5.2.2)
unist-util-visit: 4.1.2
vfile: 5.3.7
- vite: 4.4.9
+ vite: 4.4.9(@types/node@18.17.19)
vitefu: 0.2.4(vite@4.4.9)
which-pm: 2.1.1
yargs-parser: 21.1.1
@@ -1556,11 +2582,31 @@ packages:
- typescript
dev: false
+ /astrojs-compiler-sync@0.3.3(@astrojs/compiler@2.2.0):
+ resolution: {integrity: sha512-LbhchWgsvjvRBb5n5ez8/Q/f9ZKViuox27VxMDOdTUm8MRv9U7phzOiLue5KluqTmC0z1LId4gY2SekvoDrkuw==}
+ engines: {node: ^14.18.0 || >=16.0.0}
+ peerDependencies:
+ '@astrojs/compiler': '>=0.27.0'
+ dependencies:
+ '@astrojs/compiler': 2.2.0
+ synckit: 0.8.5
+ dev: true
+
+ /async@3.2.4:
+ resolution: {integrity: sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==}
+ dev: true
+
+ /asynciterator.prototype@1.0.0:
+ resolution: {integrity: sha512-wwHYEIS0Q80f5mosx3L/dfG5t5rjEa9Ft51GTaNt862EnpyGHpgz2RkZvLPp1oF5TnAiTohkEKVEu8pQPJI7Vg==}
+ dependencies:
+ has-symbols: 1.0.3
+ dev: true
+
/asynckit@0.4.0:
resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==}
dev: true
- /autoprefixer@10.4.16(postcss@8.4.28):
+ /autoprefixer@10.4.16(postcss@8.4.31):
resolution: {integrity: sha512-7vd3UC6xKp0HLfua5IjZlcXvGAGy7cBAXTg2lyQ/8WpNhd6SiZ8Be+xm3FyBSYJx5GKcpRCzBh7RH4/0dnY+uQ==}
engines: {node: ^10 || ^12 || >=14}
hasBin: true
@@ -1572,15 +2618,25 @@ packages:
fraction.js: 4.3.7
normalize-range: 0.1.2
picocolors: 1.0.0
- postcss: 8.4.28
+ postcss: 8.4.31
postcss-value-parser: 4.2.0
- dev: false
/available-typed-arrays@1.0.5:
resolution: {integrity: sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==}
engines: {node: '>= 0.4'}
dev: true
+ /axe-core@4.8.2:
+ resolution: {integrity: sha512-/dlp0fxyM3R8YW7MFzaHWXrf4zzbr0vaYb23VBFCl83R7nWNPg/yaQw2Dc8jzCMmDVLhSdzH8MjrsuIUuvX+6g==}
+ engines: {node: '>=4'}
+ dev: true
+
+ /axobject-query@3.2.1:
+ resolution: {integrity: sha512-jsyHu61e6N4Vbz/v18DHwWYKK0bSWLqn47eeDSKPB7m8tqMHF9YJ+mhIk2lVteyZrY8tnSj/jHOv4YiTCuCJgg==}
+ dependencies:
+ dequal: 2.0.3
+ dev: true
+
/b4a@1.6.4:
resolution: {integrity: sha512-fpWrvyVHEKyeEvbKZTVOeZF3VSKKWtJxFIxX/jaVPf+cLbGUSitjb49pHLqPV2BUNNZ0LcoeEGfE/YCpyDYHIw==}
requiresBuild: true
@@ -1598,6 +2654,15 @@ packages:
resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==}
dev: false
+ /before-after-hook@2.2.3:
+ resolution: {integrity: sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ==}
+ dev: false
+
+ /big-integer@1.6.51:
+ resolution: {integrity: sha512-GPEid2Y9QU1Exl1rpO9B2IPJGHPSupF5GnVIP0blYvNOMer2bTvSWs1jGOUg04hTmu67nmLsQ9TBo1puaotBHg==}
+ engines: {node: '>=0.6'}
+ dev: true
+
/binary-extensions@2.2.0:
resolution: {integrity: sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==}
engines: {node: '>=8'}
@@ -1640,6 +2705,10 @@ packages:
- supports-color
dev: true
+ /boolbase@1.0.0:
+ resolution: {integrity: sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==}
+ dev: true
+
/boxen@7.1.1:
resolution: {integrity: sha512-2hCgjEmP8YLWQ130n2FerGv7rYpfBmnmp9Uy2Le1vge6X3gZIfSmEzP5QTDElFxcvVcXlEn8Aq6MU/PZygIOog==}
engines: {node: '>=14.16'}
@@ -1654,6 +2723,13 @@ packages:
wrap-ansi: 8.1.0
dev: false
+ /bplist-parser@0.2.0:
+ resolution: {integrity: sha512-z0M+byMThzQmD9NILRniCUXYsYpjwnlO8N5uCFaCqIOpqRsJCrQL9NK3JsD67CN5a08nF5oIL2bD6loTdHOuKw==}
+ engines: {node: '>= 5.10.0'}
+ dependencies:
+ big-integer: 1.6.51
+ dev: true
+
/brace-expansion@1.1.11:
resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==}
dependencies:
@@ -1681,11 +2757,15 @@ packages:
engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}
hasBin: true
dependencies:
- caniuse-lite: 1.0.30001522
+ caniuse-lite: 1.0.30001549
electron-to-chromium: 1.4.499
node-releases: 2.0.13
update-browserslist-db: 1.0.11(browserslist@4.21.10)
+ /buffer-from@1.1.2:
+ resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==}
+ dev: true
+
/buffer@5.7.1:
resolution: {integrity: sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==}
requiresBuild: true
@@ -1702,6 +2782,13 @@ packages:
ieee754: 1.2.1
dev: false
+ /bundle-name@3.0.0:
+ resolution: {integrity: sha512-PKA4BeSvBpQKQ8iPOGCSiell+N8P+Tf1DlwqmYhpe2gAhKPHn8EYOxVT+ShuGmhg8lN8XiSlS80yiExKXrURlw==}
+ engines: {node: '>=12'}
+ dependencies:
+ run-applescript: 5.0.0
+ dev: true
+
/bytes@3.1.2:
resolution: {integrity: sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==}
engines: {node: '>= 0.8'}
@@ -1733,22 +2820,34 @@ packages:
get-intrinsic: 1.2.1
dev: true
+ /callsites@3.1.0:
+ resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==}
+ engines: {node: '>=6'}
+ dev: true
+
+ /camel-case@4.1.2:
+ resolution: {integrity: sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==}
+ dependencies:
+ pascal-case: 3.1.2
+ tslib: 2.6.2
+ dev: true
+
/camelcase-css@2.0.1:
resolution: {integrity: sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==}
engines: {node: '>= 6'}
- dev: false
+
+ /camelcase@6.3.0:
+ resolution: {integrity: sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==}
+ engines: {node: '>=10'}
+ dev: true
/camelcase@7.0.1:
resolution: {integrity: sha512-xlx1yCK2Oc1APsPXDL2LdlNP6+uu8OCDdhOBSVT279M/S+y75O30C2VuD8T2ogdePBBl7PfPF4504tnLgX3zfw==}
engines: {node: '>=14.16'}
dev: false
- /caniuse-lite@1.0.30001522:
- resolution: {integrity: sha512-TKiyTVZxJGhsTszLuzb+6vUZSjVOAhClszBr2Ta2k9IwtNBT/4dzmL6aywt0HCgEZlmwJzXJd8yNiob6HgwTRg==}
-
/caniuse-lite@1.0.30001549:
resolution: {integrity: sha512-qRp48dPYSCYaP+KurZLhDYdVE+yEyht/3NlmcJgVQ2VMGt6JL36ndQ/7rgspdZsJuxDPFIo/OzBT2+GmIJ53BA==}
- dev: false
/ccount@2.0.1:
resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==}
@@ -1812,6 +2911,19 @@ packages:
engines: {node: '>=8'}
dev: false
+ /class-variance-authority@0.7.0:
+ resolution: {integrity: sha512-jFI8IQw4hczaL4ALINxqLEXQbWcNjoSkloa4IaufXCJr6QawJyw7tuRysRsrE8w2p/4gGaxKIt/hX3qz/IbD1A==}
+ dependencies:
+ clsx: 2.0.0
+ dev: false
+
+ /clean-css@5.3.2:
+ resolution: {integrity: sha512-JVJbM+f3d3Q704rF4bqQ5UUyTtuJ0JRKNbTKVEeujCCBoMdkEi+V+e8oktO9qGQNSvHrFTM6JZRXrUvGR1czww==}
+ engines: {node: '>= 10.0'}
+ dependencies:
+ source-map: 0.6.1
+ dev: true
+
/cli-boxes@3.0.0:
resolution: {integrity: sha512-/lzGpEWL/8PfI0BmBOPRwp0c/wFNX1RdUML3jK/RcSBA9T8mZDdQpqYBKtCFTOfQbwPqWEOpjqW+Fnayc0969g==}
engines: {node: '>=10'}
@@ -1829,6 +2941,10 @@ packages:
engines: {node: '>=6'}
dev: false
+ /client-only@0.0.1:
+ resolution: {integrity: sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==}
+ dev: false
+
/cliui@7.0.4:
resolution: {integrity: sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==}
dependencies:
@@ -1879,6 +2995,10 @@ packages:
dev: false
optional: true
+ /colorette@2.0.20:
+ resolution: {integrity: sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==}
+ dev: true
+
/combined-stream@1.0.8:
resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==}
engines: {node: '>= 0.8'}
@@ -1897,7 +3017,11 @@ packages:
/commander@4.1.1:
resolution: {integrity: sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==}
engines: {node: '>= 6'}
- dev: false
+
+ /commander@8.3.0:
+ resolution: {integrity: sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==}
+ engines: {node: '>= 12'}
+ dev: true
/common-ancestor-path@1.0.1:
resolution: {integrity: sha512-L3sHRo1pXXEqX8VU28kfgUY+YGsk09hPqZiZmLacNib6XNTCM8ubYeT7ryXQw8asB1sKgcU5lkB7ONug08aB8w==}
@@ -1910,6 +3034,15 @@ packages:
/concat-map@0.0.1:
resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==}
+ /connect-history-api-fallback@1.6.0:
+ resolution: {integrity: sha512-e54B99q/OUoH64zYYRf3HBP5z24G38h5D3qXu23JGRoigpX5Ss4r9ZnDk3g0Z8uQC2x2lPaJ+UlWBc1ZWBWdLg==}
+ engines: {node: '>=0.8'}
+ dev: true
+
+ /consola@2.15.3:
+ resolution: {integrity: sha512-9vAdYbHj6x2fLKC4+oPH0kFzY/orMZyG2Aj+kNylHxKGJ/Ed4dpNyAQYwJOdqO4zdM7XpVHmyejQDcQHrnuXbw==}
+ dev: true
+
/content-disposition@0.5.4:
resolution: {integrity: sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==}
engines: {node: '>= 0.6'}
@@ -1925,6 +3058,10 @@ packages:
/convert-source-map@1.9.0:
resolution: {integrity: sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==}
+ /convert-source-map@2.0.0:
+ resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==}
+ dev: true
+
/cookie-signature@1.0.6:
resolution: {integrity: sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==}
dev: true
@@ -1933,6 +3070,22 @@ packages:
resolution: {integrity: sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==}
engines: {node: '>= 0.6'}
+ /cosmiconfig@8.3.6(typescript@5.2.2):
+ resolution: {integrity: sha512-kcZ6+W5QzcJ3P1Mt+83OUv/oHFqZHIx8DuxG6eZ5RGMERoLqp4BuGjhHLYGK+Kf5XVkQvqBSmAy/nGWN3qDgEA==}
+ engines: {node: '>=14'}
+ peerDependencies:
+ typescript: '>=4.9.5'
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+ dependencies:
+ import-fresh: 3.3.0
+ js-yaml: 4.1.0
+ parse-json: 5.2.0
+ path-type: 4.0.0
+ typescript: 5.2.2
+ dev: true
+
/cross-spawn@7.0.3:
resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==}
engines: {node: '>= 8'}
@@ -1941,11 +3094,33 @@ packages:
shebang-command: 2.0.0
which: 2.0.2
+ /css-select@4.3.0:
+ resolution: {integrity: sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==}
+ dependencies:
+ boolbase: 1.0.0
+ css-what: 6.1.0
+ domhandler: 4.3.1
+ domutils: 2.8.0
+ nth-check: 2.1.1
+ dev: true
+
+ /css-what@6.1.0:
+ resolution: {integrity: sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==}
+ engines: {node: '>= 6'}
+ dev: true
+
/cssesc@3.0.0:
resolution: {integrity: sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==}
engines: {node: '>=4'}
hasBin: true
- dev: false
+
+ /csstype@3.1.2:
+ resolution: {integrity: sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==}
+ dev: true
+
+ /damerau-levenshtein@1.0.8:
+ resolution: {integrity: sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==}
+ dev: true
/debug@2.6.9:
resolution: {integrity: sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==}
@@ -2001,6 +3176,42 @@ packages:
dev: false
optional: true
+ /deep-is@0.1.4:
+ resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==}
+ dev: true
+
+ /default-browser-id@3.0.0:
+ resolution: {integrity: sha512-OZ1y3y0SqSICtE8DE4S8YOE9UZOJ8wO16fKWVP5J1Qz42kV9jcnMVFrEE/noXb/ss3Q4pZIH79kxofzyNNtUNA==}
+ engines: {node: '>=12'}
+ dependencies:
+ bplist-parser: 0.2.0
+ untildify: 4.0.0
+ dev: true
+
+ /default-browser@4.0.0:
+ resolution: {integrity: sha512-wX5pXO1+BrhMkSbROFsyxUm0i/cJEScyNhA4PPxc41ICuv05ZZB/MX28s8aZx6xjmatvebIapF6hLEKEcpneUA==}
+ engines: {node: '>=14.16'}
+ dependencies:
+ bundle-name: 3.0.0
+ default-browser-id: 3.0.0
+ execa: 7.2.0
+ titleize: 3.0.0
+ dev: true
+
+ /define-data-property@1.1.1:
+ resolution: {integrity: sha512-E7uGkTzkk1d0ByLeSc6ZsFS79Axg+m1P/VsgYsxHgiuc3tFSj+MjMIwe90FC4lOAZzNBdY7kkO2P2wKdsQ1vgQ==}
+ engines: {node: '>= 0.4'}
+ dependencies:
+ get-intrinsic: 1.2.1
+ gopd: 1.0.1
+ has-property-descriptors: 1.0.0
+ dev: true
+
+ /define-lazy-prop@3.0.0:
+ resolution: {integrity: sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==}
+ engines: {node: '>=12'}
+ dev: true
+
/define-properties@1.2.0:
resolution: {integrity: sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==}
engines: {node: '>= 0.4'}
@@ -2009,6 +3220,15 @@ packages:
object-keys: 1.1.1
dev: true
+ /define-properties@1.2.1:
+ resolution: {integrity: sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==}
+ engines: {node: '>= 0.4'}
+ dependencies:
+ define-data-property: 1.1.1
+ has-property-descriptors: 1.0.0
+ object-keys: 1.1.1
+ dev: true
+
/delayed-stream@1.0.0:
resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==}
engines: {node: '>=0.4.0'}
@@ -2019,6 +3239,10 @@ packages:
engines: {node: '>= 0.8'}
dev: true
+ /deprecation@2.3.1:
+ resolution: {integrity: sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==}
+ dev: false
+
/dequal@2.0.3:
resolution: {integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==}
engines: {node: '>=6'}
@@ -2047,16 +3271,28 @@ packages:
/didyoumean@1.2.2:
resolution: {integrity: sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==}
- dev: false
/diff@5.1.0:
resolution: {integrity: sha512-D+mk+qE8VC/PAUrlAU34N+VfXev0ghe5ywmpqrawphmVZc1bEfn56uo9qpyGp1p4xpzOHkSW4ztBd6L7Xx4ACw==}
engines: {node: '>=0.3.1'}
dev: false
+ /dir-glob@3.0.1:
+ resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==}
+ engines: {node: '>=8'}
+ dependencies:
+ path-type: 4.0.0
+ dev: true
+
/dlv@1.1.3:
resolution: {integrity: sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==}
- dev: false
+
+ /doctrine@2.1.0:
+ resolution: {integrity: sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==}
+ engines: {node: '>=0.10.0'}
+ dependencies:
+ esutils: 2.0.3
+ dev: true
/doctrine@3.0.0:
resolution: {integrity: sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==}
@@ -2065,11 +3301,55 @@ packages:
esutils: 2.0.3
dev: true
+ /dom-serializer@1.4.1:
+ resolution: {integrity: sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==}
+ dependencies:
+ domelementtype: 2.3.0
+ domhandler: 4.3.1
+ entities: 2.2.0
+ dev: true
+
+ /domelementtype@2.3.0:
+ resolution: {integrity: sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==}
+ dev: true
+
+ /domhandler@4.3.1:
+ resolution: {integrity: sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==}
+ engines: {node: '>= 4'}
+ dependencies:
+ domelementtype: 2.3.0
+ dev: true
+
+ /domutils@2.8.0:
+ resolution: {integrity: sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==}
+ dependencies:
+ dom-serializer: 1.4.1
+ domelementtype: 2.3.0
+ domhandler: 4.3.1
+ dev: true
+
+ /dot-case@3.0.4:
+ resolution: {integrity: sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==}
+ dependencies:
+ no-case: 3.0.4
+ tslib: 2.6.2
+ dev: true
+
/dotenv-expand@10.0.0:
resolution: {integrity: sha512-GopVGCpVS1UKH75VKHGuQFqS1Gusej0z4FyQkPdwjil2gNIv+LNsqBlboOzpJFZKVT95GkCyWJbBSdFEFUWI2A==}
engines: {node: '>=12'}
dev: true
+ /dotenv-expand@8.0.3:
+ resolution: {integrity: sha512-SErOMvge0ZUyWd5B0NXMQlDkN+8r+HhVUsxgOO7IoPDOdDRD2JjExpN6y3KnFR66jsJMwSn1pqIivhU5rcJiNg==}
+ engines: {node: '>=12'}
+ dev: true
+
+ /dotenv@16.0.3:
+ resolution: {integrity: sha512-7GO6HghkA5fYG9TYnNxi14/7K9f5occMlp3zXAuSxn7CKCxt9xbNWG7yF8hTCSUchlfWSe3uLmlPfigevRItzQ==}
+ engines: {node: '>=12'}
+ dev: true
+
/dotenv@16.3.1:
resolution: {integrity: sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==}
engines: {node: '>=12'}
@@ -2087,6 +3367,14 @@ packages:
resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==}
dev: true
+ /ejs@3.1.9:
+ resolution: {integrity: sha512-rC+QVNMJWv+MtPgkt0y+0rVEIdbtxVADApW9JXrUVlzHetgcyczP/E7DJmWJ4fJCZF2cPcBk0laWO9ZHMG3DmQ==}
+ engines: {node: '>=0.10.0'}
+ hasBin: true
+ dependencies:
+ jake: 10.8.7
+ dev: true
+
/electron-to-chromium@1.4.499:
resolution: {integrity: sha512-0NmjlYBLKVHva4GABWAaHuPJolnDuL0AhV3h1hES6rcLCWEIbRL6/8TghfsVwkx6TEroQVdliX7+aLysUpKvjw==}
@@ -2113,10 +3401,83 @@ packages:
dev: false
optional: true
+ /entities@2.2.0:
+ resolution: {integrity: sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==}
+ dev: true
+
/entities@4.5.0:
resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==}
engines: {node: '>=0.12'}
- dev: false
+
+ /error-ex@1.3.2:
+ resolution: {integrity: sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==}
+ dependencies:
+ is-arrayish: 0.2.1
+ dev: true
+
+ /es-abstract@1.22.2:
+ resolution: {integrity: sha512-YoxfFcDmhjOgWPWsV13+2RNjq1F6UQnfs+8TftwNqtzlmFzEXvlUwdrNrYeaizfjQzRMxkZ6ElWMOJIFKdVqwA==}
+ engines: {node: '>= 0.4'}
+ dependencies:
+ array-buffer-byte-length: 1.0.0
+ arraybuffer.prototype.slice: 1.0.2
+ available-typed-arrays: 1.0.5
+ call-bind: 1.0.2
+ es-set-tostringtag: 2.0.1
+ es-to-primitive: 1.2.1
+ function.prototype.name: 1.1.6
+ get-intrinsic: 1.2.1
+ get-symbol-description: 1.0.0
+ globalthis: 1.0.3
+ gopd: 1.0.1
+ has: 1.0.3
+ has-property-descriptors: 1.0.0
+ has-proto: 1.0.1
+ has-symbols: 1.0.3
+ internal-slot: 1.0.5
+ is-array-buffer: 3.0.2
+ is-callable: 1.2.7
+ is-negative-zero: 2.0.2
+ is-regex: 1.1.4
+ is-shared-array-buffer: 1.0.2
+ is-string: 1.0.7
+ is-typed-array: 1.1.12
+ is-weakref: 1.0.2
+ object-inspect: 1.12.3
+ object-keys: 1.1.1
+ object.assign: 4.1.4
+ regexp.prototype.flags: 1.5.1
+ safe-array-concat: 1.0.1
+ safe-regex-test: 1.0.0
+ string.prototype.trim: 1.2.8
+ string.prototype.trimend: 1.0.7
+ string.prototype.trimstart: 1.0.7
+ typed-array-buffer: 1.0.0
+ typed-array-byte-length: 1.0.0
+ typed-array-byte-offset: 1.0.0
+ typed-array-length: 1.0.4
+ unbox-primitive: 1.0.2
+ which-typed-array: 1.1.11
+ dev: true
+
+ /es-iterator-helpers@1.0.15:
+ resolution: {integrity: sha512-GhoY8uYqd6iwUl2kgjTm4CZAf6oo5mHK7BPqx3rKgx893YSsy0LGHV6gfqqQvZt/8xM8xeOnfXBCfqclMKkJ5g==}
+ dependencies:
+ asynciterator.prototype: 1.0.0
+ call-bind: 1.0.2
+ define-properties: 1.2.1
+ es-abstract: 1.22.2
+ es-set-tostringtag: 2.0.1
+ function-bind: 1.1.1
+ get-intrinsic: 1.2.1
+ globalthis: 1.0.3
+ has-property-descriptors: 1.0.0
+ has-proto: 1.0.1
+ has-symbols: 1.0.3
+ internal-slot: 1.0.5
+ iterator.prototype: 1.1.2
+ safe-array-concat: 1.0.1
+ dev: true
/es-module-lexer@0.9.3:
resolution: {integrity: sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==}
@@ -2126,6 +3487,30 @@ packages:
resolution: {integrity: sha512-vZK7T0N2CBmBOixhmjdqx2gWVbFZ4DXZ/NyRMZVlJXPa7CyFS+/a4QQsDGDQy9ZfEzxFuNEsMLeQJnKP2p5/JA==}
dev: false
+ /es-set-tostringtag@2.0.1:
+ resolution: {integrity: sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==}
+ engines: {node: '>= 0.4'}
+ dependencies:
+ get-intrinsic: 1.2.1
+ has: 1.0.3
+ has-tostringtag: 1.0.0
+ dev: true
+
+ /es-shim-unscopables@1.0.0:
+ resolution: {integrity: sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==}
+ dependencies:
+ has: 1.0.3
+ dev: true
+
+ /es-to-primitive@1.2.1:
+ resolution: {integrity: sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==}
+ engines: {node: '>= 0.4'}
+ dependencies:
+ is-callable: 1.2.7
+ is-date-object: 1.0.5
+ is-symbol: 1.0.4
+ dev: true
+
/es6-object-assign@1.1.0:
resolution: {integrity: sha512-MEl9uirslVwqQU369iHNWZXsI8yaZYGg/D65aOgZkeyFJwHYSxilf7rQzXKI7DdDuBPrBXbfk3sl9hJhmd5AUw==}
dev: true
@@ -2212,6 +3597,11 @@ packages:
resolution: {integrity: sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==}
engines: {node: '>=0.8.0'}
+ /escape-string-regexp@4.0.0:
+ resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==}
+ engines: {node: '>=10'}
+ dev: true
+
/escape-string-regexp@5.0.0:
resolution: {integrity: sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==}
engines: {node: '>=12'}
@@ -2229,11 +3619,243 @@ packages:
source-map: 0.6.1
dev: true
+ /eslint-config-prettier@9.0.0(eslint@8.51.0):
+ resolution: {integrity: sha512-IcJsTkJae2S35pRsRAwoCE+925rJJStOdkKnLVgtE+tEpqU0EVVM7OqrwxqgptKdX29NUwC82I5pXsGFIgSevw==}
+ hasBin: true
+ peerDependencies:
+ eslint: '>=7.0.0'
+ dependencies:
+ eslint: 8.51.0
+ dev: true
+
+ /eslint-config-turbo@1.10.15(eslint@8.51.0):
+ resolution: {integrity: sha512-76mpx2x818JZE26euen14utYcFDxOahZ9NaWA+6Xa4pY2ezVKVschuOxS96EQz3o3ZRSmcgBOapw/gHbN+EKxQ==}
+ peerDependencies:
+ eslint: '>6.6.0'
+ dependencies:
+ eslint: 8.51.0
+ eslint-plugin-turbo: 1.10.15(eslint@8.51.0)
+ dev: true
+
+ /eslint-plugin-astro@0.29.1(eslint@8.51.0):
+ resolution: {integrity: sha512-ffuUc7zFz8HavaAVaS5iRUzWqBf3/YbrFWUhx0GxXW3gVtnbri5UyvkN8EMOkZWkNXG1zqD2y9dlEsAezhbC0w==}
+ engines: {node: ^14.18.0 || >=16.0.0}
+ peerDependencies:
+ eslint: '>=7.0.0'
+ dependencies:
+ '@eslint-community/eslint-utils': 4.4.0(eslint@8.51.0)
+ '@jridgewell/sourcemap-codec': 1.4.15
+ '@typescript-eslint/types': 5.62.0
+ astro-eslint-parser: 0.16.0
+ eslint: 8.51.0
+ postcss: 8.4.31
+ postcss-selector-parser: 6.0.13
+ transitivePeerDependencies:
+ - supports-color
+ dev: true
+
+ /eslint-plugin-jsx-a11y@6.7.1(eslint@8.51.0):
+ resolution: {integrity: sha512-63Bog4iIethyo8smBklORknVjB0T2dwB8Mr/hIC+fBS0uyHdYYpzM/Ed+YC8VxTjlXHEWFOdmgwcDn1U2L9VCA==}
+ engines: {node: '>=4.0'}
+ peerDependencies:
+ eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8
+ dependencies:
+ '@babel/runtime': 7.23.2
+ aria-query: 5.3.0
+ array-includes: 3.1.7
+ array.prototype.flatmap: 1.3.2
+ ast-types-flow: 0.0.7
+ axe-core: 4.8.2
+ axobject-query: 3.2.1
+ damerau-levenshtein: 1.0.8
+ emoji-regex: 9.2.2
+ eslint: 8.51.0
+ has: 1.0.3
+ jsx-ast-utils: 3.3.5
+ language-tags: 1.0.5
+ minimatch: 3.1.2
+ object.entries: 1.1.7
+ object.fromentries: 2.0.7
+ semver: 6.3.1
+ dev: true
+
+ /eslint-plugin-prettier@5.0.1(eslint-config-prettier@9.0.0)(eslint@8.51.0)(prettier@3.0.3):
+ resolution: {integrity: sha512-m3u5RnR56asrwV/lDC4GHorlW75DsFfmUcjfCYylTUs85dBRnB7VM6xG8eCMJdeDRnppzmxZVf1GEPJvl1JmNg==}
+ engines: {node: ^14.18.0 || >=16.0.0}
+ peerDependencies:
+ '@types/eslint': '>=8.0.0'
+ eslint: '>=8.0.0'
+ eslint-config-prettier: '*'
+ prettier: '>=3.0.0'
+ peerDependenciesMeta:
+ '@types/eslint':
+ optional: true
+ eslint-config-prettier:
+ optional: true
+ dependencies:
+ eslint: 8.51.0
+ eslint-config-prettier: 9.0.0(eslint@8.51.0)
+ prettier: 3.0.3
+ prettier-linter-helpers: 1.0.0
+ synckit: 0.8.5
+ dev: true
+
+ /eslint-plugin-react-hooks@4.6.0(eslint@8.51.0):
+ resolution: {integrity: sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==}
+ engines: {node: '>=10'}
+ peerDependencies:
+ eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0
+ dependencies:
+ eslint: 8.51.0
+ dev: true
+
+ /eslint-plugin-react@7.33.2(eslint@8.51.0):
+ resolution: {integrity: sha512-73QQMKALArI8/7xGLNI/3LylrEYrlKZSb5C9+q3OtOewTnMQi5cT+aE9E41sLCmli3I9PGGmD1yiZydyo4FEPw==}
+ engines: {node: '>=4'}
+ peerDependencies:
+ eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8
+ dependencies:
+ array-includes: 3.1.7
+ array.prototype.flatmap: 1.3.2
+ array.prototype.tosorted: 1.1.2
+ doctrine: 2.1.0
+ es-iterator-helpers: 1.0.15
+ eslint: 8.51.0
+ estraverse: 5.3.0
+ jsx-ast-utils: 3.3.5
+ minimatch: 3.1.2
+ object.entries: 1.1.7
+ object.fromentries: 2.0.7
+ object.hasown: 1.1.3
+ object.values: 1.1.7
+ prop-types: 15.8.1
+ resolve: 2.0.0-next.5
+ semver: 6.3.1
+ string.prototype.matchall: 4.0.10
+ dev: true
+
+ /eslint-plugin-tailwindcss@3.13.0(tailwindcss@3.3.3):
+ resolution: {integrity: sha512-Fcep4KDRLWaK3KmkQbdyKHG0P4GdXFmXdDaweTIPcgOP60OOuWFbh1++dufRT28Q4zpKTKaHwTsXPJ4O/EjU2Q==}
+ engines: {node: '>=12.13.0'}
+ peerDependencies:
+ tailwindcss: ^3.3.2
+ dependencies:
+ fast-glob: 3.3.1
+ postcss: 8.4.31
+ tailwindcss: 3.3.3
+ dev: true
+
+ /eslint-plugin-turbo@1.10.15(eslint@8.51.0):
+ resolution: {integrity: sha512-Tv4QSKV/U56qGcTqS/UgOvb9HcKFmWOQcVh3HEaj7of94lfaENgfrtK48E2CckQf7amhKs1i+imhCsNCKjkQyA==}
+ peerDependencies:
+ eslint: '>6.6.0'
+ dependencies:
+ dotenv: 16.0.3
+ eslint: 8.51.0
+ dev: true
+
+ /eslint-scope@7.2.2:
+ resolution: {integrity: sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==}
+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
+ dependencies:
+ esrecurse: 4.3.0
+ estraverse: 5.3.0
+ dev: true
+
+ /eslint-utils@3.0.0(eslint@8.51.0):
+ resolution: {integrity: sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==}
+ engines: {node: ^10.0.0 || ^12.0.0 || >= 14.0.0}
+ peerDependencies:
+ eslint: '>=5'
+ dependencies:
+ eslint: 8.51.0
+ eslint-visitor-keys: 2.1.0
+ dev: true
+
+ /eslint-visitor-keys@2.1.0:
+ resolution: {integrity: sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==}
+ engines: {node: '>=10'}
+ dev: true
+
+ /eslint-visitor-keys@3.4.3:
+ resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==}
+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
+ dev: true
+
+ /eslint@8.51.0:
+ resolution: {integrity: sha512-2WuxRZBrlwnXi+/vFSJyjMqrNjtJqiasMzehF0shoLaW7DzS3/9Yvrmq5JiT66+pNjiX4UBnLDiKHcWAr/OInA==}
+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
+ hasBin: true
+ dependencies:
+ '@eslint-community/eslint-utils': 4.4.0(eslint@8.51.0)
+ '@eslint-community/regexpp': 4.9.1
+ '@eslint/eslintrc': 2.1.2
+ '@eslint/js': 8.51.0
+ '@humanwhocodes/config-array': 0.11.11
+ '@humanwhocodes/module-importer': 1.0.1
+ '@nodelib/fs.walk': 1.2.8
+ ajv: 6.12.6
+ chalk: 4.1.2
+ cross-spawn: 7.0.3
+ debug: 4.3.4
+ doctrine: 3.0.0
+ escape-string-regexp: 4.0.0
+ eslint-scope: 7.2.2
+ eslint-visitor-keys: 3.4.3
+ espree: 9.6.1
+ esquery: 1.5.0
+ esutils: 2.0.3
+ fast-deep-equal: 3.1.3
+ file-entry-cache: 6.0.1
+ find-up: 5.0.0
+ glob-parent: 6.0.2
+ globals: 13.23.0
+ graphemer: 1.4.0
+ ignore: 5.2.4
+ imurmurhash: 0.1.4
+ is-glob: 4.0.3
+ is-path-inside: 3.0.3
+ js-yaml: 4.1.0
+ json-stable-stringify-without-jsonify: 1.0.1
+ levn: 0.4.1
+ lodash.merge: 4.6.2
+ minimatch: 3.1.2
+ natural-compare: 1.4.0
+ optionator: 0.9.3
+ strip-ansi: 6.0.1
+ text-table: 0.2.0
+ transitivePeerDependencies:
+ - supports-color
+ dev: true
+
+ /espree@9.6.1:
+ resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==}
+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
+ dependencies:
+ acorn: 8.10.0
+ acorn-jsx: 5.3.2(acorn@8.10.0)
+ eslint-visitor-keys: 3.4.3
+ dev: true
+
/esprima@4.0.1:
resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==}
engines: {node: '>=4'}
hasBin: true
+ /esquery@1.5.0:
+ resolution: {integrity: sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==}
+ engines: {node: '>=0.10'}
+ dependencies:
+ estraverse: 5.3.0
+ dev: true
+
+ /esrecurse@4.3.0:
+ resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==}
+ engines: {node: '>=4.0'}
+ dependencies:
+ estraverse: 5.3.0
+ dev: true
+
/estraverse@5.3.0:
resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==}
engines: {node: '>=4.0'}
@@ -2270,6 +3892,36 @@ packages:
engines: {node: '>= 0.6'}
dev: true
+ /execa@5.1.1:
+ resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==}
+ engines: {node: '>=10'}
+ dependencies:
+ cross-spawn: 7.0.3
+ get-stream: 6.0.1
+ human-signals: 2.1.0
+ is-stream: 2.0.1
+ merge-stream: 2.0.0
+ npm-run-path: 4.0.1
+ onetime: 5.1.2
+ signal-exit: 3.0.7
+ strip-final-newline: 2.0.0
+ dev: true
+
+ /execa@7.2.0:
+ resolution: {integrity: sha512-UduyVP7TLB5IcAQl+OzLyLcS/l32W/GLg+AhHJ+ow40FOk2U3SAllPwR44v4vmdFwIWqpdwxxpQbF1n5ta9seA==}
+ engines: {node: ^14.18.0 || ^16.14.0 || >=18.0.0}
+ dependencies:
+ cross-spawn: 7.0.3
+ get-stream: 6.0.1
+ human-signals: 4.3.1
+ is-stream: 3.0.0
+ merge-stream: 2.0.0
+ npm-run-path: 5.1.0
+ onetime: 6.0.0
+ signal-exit: 3.0.7
+ strip-final-newline: 3.0.0
+ dev: true
+
/execa@8.0.1:
resolution: {integrity: sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==}
engines: {node: '>=16.17'}
@@ -2341,6 +3993,14 @@ packages:
/extend@3.0.2:
resolution: {integrity: sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==}
+ /fast-deep-equal@3.1.3:
+ resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==}
+ dev: true
+
+ /fast-diff@1.3.0:
+ resolution: {integrity: sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==}
+ dev: true
+
/fast-fifo@1.3.2:
resolution: {integrity: sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==}
requiresBuild: true
@@ -2356,13 +4016,26 @@ packages:
glob-parent: 5.1.2
merge2: 1.4.1
micromatch: 4.0.5
- dev: false
+
+ /fast-json-stable-stringify@2.1.0:
+ resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==}
+ dev: true
+
+ /fast-levenshtein@2.0.6:
+ resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==}
+ dev: true
/fastq@1.15.0:
resolution: {integrity: sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==}
dependencies:
reusify: 1.0.4
- dev: false
+
+ /file-entry-cache@6.0.1:
+ resolution: {integrity: sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==}
+ engines: {node: ^10.12.0 || >=12.0.0}
+ dependencies:
+ flat-cache: 3.1.1
+ dev: true
/file-system-cache@2.3.0:
resolution: {integrity: sha512-l4DMNdsIPsVnKrgEXbJwDJsA5mB8rGwHYERMgqQx/xAUtChPJMre1bXBzDEqqVbWv9AIbFezXMxeEkZDSrXUOQ==}
@@ -2371,6 +4044,12 @@ packages:
ramda: 0.29.0
dev: true
+ /filelist@1.0.4:
+ resolution: {integrity: sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==}
+ dependencies:
+ minimatch: 5.1.6
+ dev: true
+
/fill-range@7.0.1:
resolution: {integrity: sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==}
engines: {node: '>=8'}
@@ -2422,6 +4101,19 @@ packages:
pkg-dir: 4.2.0
dev: false
+ /flat-cache@3.1.1:
+ resolution: {integrity: sha512-/qM2b3LUIaIgviBQovTLvijfyOQXPtSRnRK26ksj2J7rzPIecePUIpJsZ4T02Qg+xiAEKIs5K8dsHEd+VaKa/Q==}
+ engines: {node: '>=12.0.0'}
+ dependencies:
+ flatted: 3.2.9
+ keyv: 4.5.4
+ rimraf: 3.0.2
+ dev: true
+
+ /flatted@3.2.9:
+ resolution: {integrity: sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ==}
+ dev: true
+
/for-each@0.3.3:
resolution: {integrity: sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==}
dependencies:
@@ -2460,7 +4152,6 @@ packages:
/fraction.js@4.3.7:
resolution: {integrity: sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==}
- dev: false
/fresh@0.5.2:
resolution: {integrity: sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==}
@@ -2473,6 +4164,15 @@ packages:
dev: false
optional: true
+ /fs-extra@10.1.0:
+ resolution: {integrity: sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==}
+ engines: {node: '>=12'}
+ dependencies:
+ graceful-fs: 4.2.11
+ jsonfile: 6.1.0
+ universalify: 2.0.0
+ dev: true
+
/fs-extra@11.1.1:
resolution: {integrity: sha512-MGIE4HOvQCeUCzmlHs0vXpih4ysz4wg9qiSAu6cd42lVwPbTM1TjV7RusoyQqMmk/95gdQZX72u+YW+c3eEpFQ==}
engines: {node: '>=14.14'}
@@ -2495,6 +4195,20 @@ packages:
/function-bind@1.1.1:
resolution: {integrity: sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==}
+ /function.prototype.name@1.1.6:
+ resolution: {integrity: sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==}
+ engines: {node: '>= 0.4'}
+ dependencies:
+ call-bind: 1.0.2
+ define-properties: 1.2.1
+ es-abstract: 1.22.2
+ functions-have-names: 1.2.3
+ dev: true
+
+ /functions-have-names@1.2.3:
+ resolution: {integrity: sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==}
+ dev: true
+
/gensync@1.0.0-beta.2:
resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==}
engines: {node: '>=6.9.0'}
@@ -2513,11 +4227,24 @@ packages:
has-symbols: 1.0.3
dev: true
+ /get-stream@6.0.1:
+ resolution: {integrity: sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==}
+ engines: {node: '>=10'}
+ dev: true
+
/get-stream@8.0.1:
resolution: {integrity: sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==}
engines: {node: '>=16'}
dev: false
+ /get-symbol-description@1.0.0:
+ resolution: {integrity: sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==}
+ engines: {node: '>= 0.4'}
+ dependencies:
+ call-bind: 1.0.2
+ get-intrinsic: 1.2.1
+ dev: true
+
/github-from-package@0.0.0:
resolution: {integrity: sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==}
requiresBuild: true
@@ -2543,7 +4270,6 @@ packages:
engines: {node: '>=10.13.0'}
dependencies:
is-glob: 4.0.3
- dev: false
/glob-promise@4.2.2(glob@7.2.3):
resolution: {integrity: sha512-xcUzJ8NWN5bktoTIX7eOclO1Npxd/dyVqUJxlLIDasT4C7KZyqlPIwkdJ0Ypiy3p2ZKahTjK4M9uC3sNSfNMzw==}
@@ -2576,7 +4302,6 @@ packages:
minimatch: 3.1.2
once: 1.4.0
path-is-absolute: 1.0.1
- dev: false
/glob@7.2.3:
resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==}
@@ -2587,12 +4312,37 @@ packages:
minimatch: 3.1.2
once: 1.4.0
path-is-absolute: 1.0.1
- dev: true
/globals@11.12.0:
resolution: {integrity: sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==}
engines: {node: '>=4'}
+ /globals@13.23.0:
+ resolution: {integrity: sha512-XAmF0RjlrjY23MA51q3HltdlGxUpXPvg0GioKiD9X6HD28iMjo2dKC8Vqwm7lne4GNr78+RHTfliktR6ZH09wA==}
+ engines: {node: '>=8'}
+ dependencies:
+ type-fest: 0.20.2
+ dev: true
+
+ /globalthis@1.0.3:
+ resolution: {integrity: sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==}
+ engines: {node: '>= 0.4'}
+ dependencies:
+ define-properties: 1.2.1
+ dev: true
+
+ /globby@11.1.0:
+ resolution: {integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==}
+ engines: {node: '>=10'}
+ dependencies:
+ array-union: 2.1.0
+ dir-glob: 3.0.1
+ fast-glob: 3.3.1
+ ignore: 5.2.4
+ merge2: 1.4.1
+ slash: 3.0.0
+ dev: true
+
/gopd@1.0.1:
resolution: {integrity: sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==}
dependencies:
@@ -2602,6 +4352,10 @@ packages:
/graceful-fs@4.2.11:
resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==}
+ /graphemer@1.4.0:
+ resolution: {integrity: sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==}
+ dev: true
+
/gray-matter@4.0.3:
resolution: {integrity: sha512-5v6yZd4JK3eMI3FqqCouswVqwugaA9r4dNZB1wwcmrD02QkV5H0y7XBQW8QwQqEaZY1pM9aqORSORhJRdNK44Q==}
engines: {node: '>=6.0'}
@@ -2625,6 +4379,10 @@ packages:
uglify-js: 3.17.4
dev: true
+ /has-bigints@1.0.2:
+ resolution: {integrity: sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==}
+ dev: true
+
/has-flag@3.0.0:
resolution: {integrity: sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==}
engines: {node: '>=4'}
@@ -2820,6 +4578,11 @@ packages:
space-separated-tokens: 2.0.2
dev: false
+ /he@1.2.0:
+ resolution: {integrity: sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==}
+ hasBin: true
+ dev: true
+
/html-escaper@2.0.2:
resolution: {integrity: sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==}
dev: true
@@ -2828,6 +4591,20 @@ packages:
resolution: {integrity: sha512-RuMffC89BOWQoY0WKGpIhn5gX3iI54O6nRA0yC124NYVtzjmFWBIiFd8M0x+ZdX0P9R4lADg1mgP8C7PxGOWuQ==}
dev: false
+ /html-minifier-terser@6.1.0:
+ resolution: {integrity: sha512-YXxSlJBZTP7RS3tWnQw74ooKa6L9b9i9QYXY21eUEvhZ3u9XLfv6OnFsQq6RxkhHygsaUMvYsZRV5rU/OVNZxw==}
+ engines: {node: '>=12'}
+ hasBin: true
+ dependencies:
+ camel-case: 4.1.2
+ clean-css: 5.3.2
+ commander: 8.3.0
+ he: 1.2.0
+ param-case: 3.0.4
+ relateurl: 0.2.7
+ terser: 5.21.0
+ dev: true
+
/html-tags@3.3.1:
resolution: {integrity: sha512-ztqyC3kLto0e9WbNp0aeP+M3kTt+nbaIveGmUxAtZa+8iFgKLUOD4YKM5j+f3QD89bra7UeumolZHKuOXnTmeQ==}
engines: {node: '>=8'}
@@ -2856,6 +4633,16 @@ packages:
toidentifier: 1.0.1
dev: true
+ /human-signals@2.1.0:
+ resolution: {integrity: sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==}
+ engines: {node: '>=10.17.0'}
+ dev: true
+
+ /human-signals@4.3.1:
+ resolution: {integrity: sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ==}
+ engines: {node: '>=14.18.0'}
+ dev: true
+
/human-signals@5.0.0:
resolution: {integrity: sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==}
engines: {node: '>=16.17.0'}
@@ -2871,10 +4658,32 @@ packages:
resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==}
dev: false
+ /ignore@5.2.4:
+ resolution: {integrity: sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==}
+ engines: {node: '>= 4'}
+ dev: true
+
+ /immutable@4.3.4:
+ resolution: {integrity: sha512-fsXeu4J4i6WNWSikpI88v/PcVflZz+6kMhUfIwc5SY+poQRPnaf5V7qds6SUyUN3cVxEzuCab7QIoLOQ+DQ1wA==}
+ dev: true
+
+ /import-fresh@3.3.0:
+ resolution: {integrity: sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==}
+ engines: {node: '>=6'}
+ dependencies:
+ parent-module: 1.0.1
+ resolve-from: 4.0.0
+ dev: true
+
/import-meta-resolve@3.0.0:
resolution: {integrity: sha512-4IwhLhNNA8yy445rPjD/lWh++7hMDOml2eHtd58eG7h+qK3EryMuuRbsHGPikCoAgIkkDnckKfWSk2iDla/ejg==}
dev: false
+ /imurmurhash@0.1.4:
+ resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==}
+ engines: {node: '>=0.8.19'}
+ dev: true
+
/inflight@1.0.6:
resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==}
dependencies:
@@ -2890,6 +4699,15 @@ packages:
dev: false
optional: true
+ /internal-slot@1.0.5:
+ resolution: {integrity: sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==}
+ engines: {node: '>= 0.4'}
+ dependencies:
+ get-intrinsic: 1.2.1
+ has: 1.0.3
+ side-channel: 1.0.4
+ dev: true
+
/ipaddr.js@1.9.1:
resolution: {integrity: sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==}
engines: {node: '>= 0.10'}
@@ -2908,18 +4726,51 @@ packages:
has-tostringtag: 1.0.0
dev: true
+ /is-array-buffer@3.0.2:
+ resolution: {integrity: sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==}
+ dependencies:
+ call-bind: 1.0.2
+ get-intrinsic: 1.2.1
+ is-typed-array: 1.1.12
+ dev: true
+
+ /is-arrayish@0.2.1:
+ resolution: {integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==}
+ dev: true
+
/is-arrayish@0.3.2:
resolution: {integrity: sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==}
requiresBuild: true
dev: false
optional: true
+ /is-async-function@2.0.0:
+ resolution: {integrity: sha512-Y1JXKrfykRJGdlDwdKlLpLyMIiWqWvuSd17TvZk68PLAOGOoF4Xyav1z0Xhoi+gCYjZVeC5SI+hYFOfvXmGRCA==}
+ engines: {node: '>= 0.4'}
+ dependencies:
+ has-tostringtag: 1.0.0
+ dev: true
+
+ /is-bigint@1.0.4:
+ resolution: {integrity: sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==}
+ dependencies:
+ has-bigints: 1.0.2
+ dev: true
+
/is-binary-path@2.1.0:
resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==}
engines: {node: '>=8'}
dependencies:
binary-extensions: 2.2.0
+ /is-boolean-object@1.1.2:
+ resolution: {integrity: sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==}
+ engines: {node: '>= 0.4'}
+ dependencies:
+ call-bind: 1.0.2
+ has-tostringtag: 1.0.0
+ dev: true
+
/is-buffer@2.0.5:
resolution: {integrity: sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==}
engines: {node: '>=4'}
@@ -2935,11 +4786,23 @@ packages:
dependencies:
has: 1.0.3
+ /is-date-object@1.0.5:
+ resolution: {integrity: sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==}
+ engines: {node: '>= 0.4'}
+ dependencies:
+ has-tostringtag: 1.0.0
+ dev: true
+
+ /is-docker@2.2.1:
+ resolution: {integrity: sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==}
+ engines: {node: '>=8'}
+ hasBin: true
+ dev: true
+
/is-docker@3.0.0:
resolution: {integrity: sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==}
engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
hasBin: true
- dev: false
/is-extendable@0.1.1:
resolution: {integrity: sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==}
@@ -2950,6 +4813,12 @@ packages:
resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==}
engines: {node: '>=0.10.0'}
+ /is-finalizationregistry@1.0.2:
+ resolution: {integrity: sha512-0by5vtUJs8iFQb5TYUHHPudOR+qXYIMKtiUzvLIZITZUjknFmziyBJuLhVRc+Ds0dREFlskDNJKYIdIzu/9pfw==}
+ dependencies:
+ call-bind: 1.0.2
+ dev: true
+
/is-fullwidth-code-point@3.0.0:
resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==}
engines: {node: '>=8'}
@@ -2973,25 +4842,45 @@ packages:
hasBin: true
dependencies:
is-docker: 3.0.0
- dev: false
/is-interactive@2.0.0:
resolution: {integrity: sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ==}
engines: {node: '>=12'}
dev: false
+ /is-map@2.0.2:
+ resolution: {integrity: sha512-cOZFQQozTha1f4MxLFzlgKYPTyj26picdZTx82hbc/Xf4K/tZOOXSCkMvU4pKioRXGDLJRn0GM7Upe7kR721yg==}
+ dev: true
+
/is-nan@1.3.2:
resolution: {integrity: sha512-E+zBKpQ2t6MEo1VsonYmluk9NxGrbzpeeLC2xIViuO2EjU2xsXsBPwTr3Ykv9l08UYEVEdWeRZNouaZqF6RN0w==}
engines: {node: '>= 0.4'}
dependencies:
call-bind: 1.0.2
- define-properties: 1.2.0
+ define-properties: 1.2.1
+ dev: true
+
+ /is-negative-zero@2.0.2:
+ resolution: {integrity: sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==}
+ engines: {node: '>= 0.4'}
+ dev: true
+
+ /is-number-object@1.0.7:
+ resolution: {integrity: sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==}
+ engines: {node: '>= 0.4'}
+ dependencies:
+ has-tostringtag: 1.0.0
dev: true
/is-number@7.0.0:
resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==}
engines: {node: '>=0.12.0'}
+ /is-path-inside@3.0.3:
+ resolution: {integrity: sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==}
+ engines: {node: '>=8'}
+ dev: true
+
/is-plain-obj@4.1.0:
resolution: {integrity: sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==}
engines: {node: '>=12'}
@@ -3000,12 +4889,47 @@ packages:
/is-plain-object@5.0.0:
resolution: {integrity: sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==}
engines: {node: '>=0.10.0'}
+
+ /is-regex@1.1.4:
+ resolution: {integrity: sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==}
+ engines: {node: '>= 0.4'}
+ dependencies:
+ call-bind: 1.0.2
+ has-tostringtag: 1.0.0
+ dev: true
+
+ /is-set@2.0.2:
+ resolution: {integrity: sha512-+2cnTEZeY5z/iXGbLhPrOAaK/Mau5k5eXq9j14CpRTftq0pAJu2MwVRSZhyZWBzx3o6X795Lz6Bpb6R0GKf37g==}
+ dev: true
+
+ /is-shared-array-buffer@1.0.2:
+ resolution: {integrity: sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==}
+ dependencies:
+ call-bind: 1.0.2
+ dev: true
+
+ /is-stream@2.0.1:
+ resolution: {integrity: sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==}
+ engines: {node: '>=8'}
dev: true
/is-stream@3.0.0:
resolution: {integrity: sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==}
engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
- dev: false
+
+ /is-string@1.0.7:
+ resolution: {integrity: sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==}
+ engines: {node: '>= 0.4'}
+ dependencies:
+ has-tostringtag: 1.0.0
+ dev: true
+
+ /is-symbol@1.0.4:
+ resolution: {integrity: sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==}
+ engines: {node: '>= 0.4'}
+ dependencies:
+ has-symbols: 1.0.3
+ dev: true
/is-typed-array@1.1.12:
resolution: {integrity: sha512-Z14TF2JNG8Lss5/HMqt0//T9JeHXttXy5pH/DBU4vi98ozO2btxzq9MwYDZYnKwU8nRsz/+GVFVRDq3DkVuSPg==}
@@ -3019,6 +4943,30 @@ packages:
engines: {node: '>=12'}
dev: false
+ /is-weakmap@2.0.1:
+ resolution: {integrity: sha512-NSBR4kH5oVj1Uwvv970ruUkCV7O1mzgVFO4/rev2cLRda9Tm9HrL70ZPut4rOHgY0FNrUu9BCbXA2sdQ+x0chA==}
+ dev: true
+
+ /is-weakref@1.0.2:
+ resolution: {integrity: sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==}
+ dependencies:
+ call-bind: 1.0.2
+ dev: true
+
+ /is-weakset@2.0.2:
+ resolution: {integrity: sha512-t2yVvttHkQktwnNNmBQ98AhENLdPUTDTE21uPqAQ0ARwQfGeQKRVS0NNurH7bTf7RrvcVn1OOge45CnBeHCSmg==}
+ dependencies:
+ call-bind: 1.0.2
+ get-intrinsic: 1.2.1
+ dev: true
+
+ /is-wsl@2.2.0:
+ resolution: {integrity: sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==}
+ engines: {node: '>=8'}
+ dependencies:
+ is-docker: 2.2.1
+ dev: true
+
/is-wsl@3.1.0:
resolution: {integrity: sha512-UcVfVfaK4Sc4m7X3dUSoHoozQGBEFeDC+zVo06t98xe8CzHSZZBekNXH+tu0NalHolcJ/QAGqS46Hef7QXBIMw==}
engines: {node: '>=16'}
@@ -3026,6 +4974,10 @@ packages:
is-inside-container: 1.0.0
dev: false
+ /isarray@2.0.5:
+ resolution: {integrity: sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==}
+ dev: true
+
/isexe@2.0.0:
resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}
@@ -3051,6 +5003,16 @@ packages:
istanbul-lib-report: 3.0.1
dev: true
+ /iterator.prototype@1.1.2:
+ resolution: {integrity: sha512-DR33HMMr8EzwuRL8Y9D3u2BMj8+RqSE850jfGu59kS7tbmPLzGkZmVSfyCFSDxuZiEY6Rzt3T2NA/qU+NwVj1w==}
+ dependencies:
+ define-properties: 1.2.1
+ get-intrinsic: 1.2.1
+ has-symbols: 1.0.3
+ reflect.getprototypeof: 1.0.4
+ set-function-name: 2.0.1
+ dev: true
+
/jackspeak@2.3.0:
resolution: {integrity: sha512-uKmsITSsF4rUWQHzqaRUuyAir3fZfW3f202Ee34lz/gZCi970CPZwyQXLGNgWJvvZbvFyzeyGq0+4fcG/mBKZg==}
engines: {node: '>=14'}
@@ -3060,10 +5022,20 @@ packages:
'@pkgjs/parseargs': 0.11.0
dev: true
+ /jake@10.8.7:
+ resolution: {integrity: sha512-ZDi3aP+fG/LchyBzUM804VjddnwfSfsdeYkwt8NcbKRvo4rFkjhs456iLFn3k2ZUWvNe4i48WACDbza8fhq2+w==}
+ engines: {node: '>=10'}
+ hasBin: true
+ dependencies:
+ async: 3.2.4
+ chalk: 4.1.2
+ filelist: 1.0.4
+ minimatch: 3.1.2
+ dev: true
+
/jiti@1.20.0:
resolution: {integrity: sha512-3TV69ZbrvV6U5DfQimop50jE9Dl6J8O1ja1dvBbMba/sZ3YBEQqJ2VZRoQPVnhlzjNtU1vaXRZVrVjU4qtm8yA==}
hasBin: true
- dev: false
/js-tokens@4.0.0:
resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}
@@ -3081,13 +5053,28 @@ packages:
hasBin: true
dependencies:
argparse: 2.0.1
- dev: false
/jsesc@2.5.2:
resolution: {integrity: sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==}
engines: {node: '>=4'}
hasBin: true
+ /json-buffer@3.0.1:
+ resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==}
+ dev: true
+
+ /json-parse-even-better-errors@2.3.1:
+ resolution: {integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==}
+ dev: true
+
+ /json-schema-traverse@0.4.1:
+ resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==}
+ dev: true
+
+ /json-stable-stringify-without-jsonify@1.0.1:
+ resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==}
+ dev: true
+
/json5@2.2.3:
resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==}
engines: {node: '>=6'}
@@ -3101,6 +5088,22 @@ packages:
graceful-fs: 4.2.11
dev: true
+ /jsx-ast-utils@3.3.5:
+ resolution: {integrity: sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ==}
+ engines: {node: '>=4.0'}
+ dependencies:
+ array-includes: 3.1.7
+ array.prototype.flat: 1.3.2
+ object.assign: 4.1.4
+ object.values: 1.1.7
+ dev: true
+
+ /keyv@4.5.4:
+ resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==}
+ dependencies:
+ json-buffer: 3.0.1
+ dev: true
+
/kind-of@6.0.3:
resolution: {integrity: sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==}
engines: {node: '>=0.10.0'}
@@ -3116,6 +5119,16 @@ packages:
engines: {node: '>=6'}
dev: false
+ /language-subtag-registry@0.3.22:
+ resolution: {integrity: sha512-tN0MCzyWnoz/4nHS6uxdlFWoUZT7ABptwKPQ52Ea7URk6vll88bWBVhodtnlfEuCcKWNGoc+uGbw1cwa9IKh/w==}
+ dev: true
+
+ /language-tags@1.0.5:
+ resolution: {integrity: sha512-qJhlO9cGXi6hBGKoxEG/sKZDAHD5Hnu9Hs4WbOY3pCWXDhw0N8x1NenNzm2EnNLkLkk7J2SdxAkDSbb6ftT+UQ==}
+ dependencies:
+ language-subtag-registry: 0.3.22
+ dev: true
+
/lazy-universal-dotenv@4.0.0:
resolution: {integrity: sha512-aXpZJRnTkpK6gQ/z4nk+ZBLd/Qdp118cvPruLSIQzQNRhKwEcdXCOzXuF55VDqIiuAaY3UGZ10DJtvZzDcvsxg==}
engines: {node: '>=14.0.0'}
@@ -3125,14 +5138,20 @@ packages:
dotenv-expand: 10.0.0
dev: true
+ /levn@0.4.1:
+ resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==}
+ engines: {node: '>= 0.8.0'}
+ dependencies:
+ prelude-ls: 1.2.1
+ type-check: 0.4.0
+ dev: true
+
/lilconfig@2.1.0:
resolution: {integrity: sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==}
engines: {node: '>=10'}
- dev: false
/lines-and-columns@1.2.4:
resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==}
- dev: false
/load-yaml-file@0.2.0:
resolution: {integrity: sha512-OfCBkGEw4nN6JLtgRidPX6QxjBQGQf72q3si2uvqyFEMbycSFFHwAZeXx6cJgFM9wmLrf9zBwCP3Ivqa+LLZPw==}
@@ -3156,9 +5175,16 @@ packages:
dependencies:
p-locate: 5.0.0
+ /lodash.castarray@4.4.0:
+ resolution: {integrity: sha512-aVx8ztPv7/2ULbArGJ2Y42bG1mEQ5mGjpdvrbJcJFU3TbYybe+QlLS4pst9zV52ymy2in1KpFPiZnAOATxD4+Q==}
+ dev: true
+
+ /lodash.isplainobject@4.0.6:
+ resolution: {integrity: sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==}
+ dev: true
+
/lodash.merge@4.6.2:
resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==}
- dev: false
/lodash@4.17.21:
resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==}
@@ -3181,6 +5207,11 @@ packages:
hasBin: true
dependencies:
js-tokens: 4.0.0
+
+ /lower-case@2.0.2:
+ resolution: {integrity: sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==}
+ dependencies:
+ tslib: 2.6.2
dev: true
/lru-cache@10.0.1:
@@ -3413,12 +5444,10 @@ packages:
/merge-stream@2.0.0:
resolution: {integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==}
- dev: false
/merge2@1.4.1:
resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==}
engines: {node: '>= 8'}
- dev: false
/methods@1.1.2:
resolution: {integrity: sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==}
@@ -3705,7 +5734,6 @@ packages:
dependencies:
braces: 3.0.2
picomatch: 2.3.1
- dev: false
/mime-db@1.52.0:
resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==}
@@ -3734,12 +5762,10 @@ packages:
/mimic-fn@2.1.0:
resolution: {integrity: sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==}
engines: {node: '>=6'}
- dev: false
/mimic-fn@4.0.0:
resolution: {integrity: sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==}
engines: {node: '>=12'}
- dev: false
/mimic-response@3.1.0:
resolution: {integrity: sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==}
@@ -3753,11 +5779,23 @@ packages:
engines: {node: '>=4'}
dev: true
+ /mini-svg-data-uri@1.4.4:
+ resolution: {integrity: sha512-r9deDe9p5FJUPZAk3A59wGH7Ii9YrjjWw0jmw/liSbHl2CHiyXj6FcDXDu2K3TjVAXqiJdaw3xxwlZZr9E6nHg==}
+ hasBin: true
+ dev: false
+
/minimatch@3.1.2:
resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==}
dependencies:
brace-expansion: 1.1.11
+ /minimatch@5.1.6:
+ resolution: {integrity: sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==}
+ engines: {node: '>=10'}
+ dependencies:
+ brace-expansion: 2.0.1
+ dev: true
+
/minimatch@9.0.3:
resolution: {integrity: sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==}
engines: {node: '>=16 || 14 >=14.17'}
@@ -3799,7 +5837,6 @@ packages:
any-promise: 1.3.0
object-assign: 4.1.1
thenify-all: 1.6.0
- dev: false
/nanoid@3.3.6:
resolution: {integrity: sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==}
@@ -3812,6 +5849,10 @@ packages:
dev: false
optional: true
+ /natural-compare@1.4.0:
+ resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==}
+ dev: true
+
/needle@2.9.1:
resolution: {integrity: sha512-6R9fqJ5Zcmf+uYaFgdIHmLwNldn5HbK8L5ybn7Uz+ylX/rnOsSp1AHcvQSrCaFN+qNM1wpymHqD7mVasEOlHGQ==}
engines: {node: '>= 4.4.x'}
@@ -3839,6 +5880,13 @@ packages:
'@types/nlcst': 1.0.1
dev: false
+ /no-case@3.0.4:
+ resolution: {integrity: sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==}
+ dependencies:
+ lower-case: 2.0.2
+ tslib: 2.6.2
+ dev: true
+
/node-abi@3.50.0:
resolution: {integrity: sha512-2Gxu7Eq7vnBIRfYSmqPruEllMM14FjOQFJSoqdGWthVn+tmwEXzmdPpya6cvvwf0uZA3F5N1fMFr9mijZBplFA==}
engines: {node: '>=10'}
@@ -3873,6 +5921,13 @@ packages:
whatwg-url: 5.0.0
dev: true
+ /node-html-parser@5.4.2:
+ resolution: {integrity: sha512-RaBPP3+51hPne/OolXxcz89iYvQvKOydaqoePpOgXcrOKZhjVIzmpKZz+Hd/RBO2/zN2q6CNJhQzucVz+u3Jyw==}
+ dependencies:
+ css-select: 4.3.0
+ he: 1.2.0
+ dev: true
+
/node-releases@2.0.13:
resolution: {integrity: sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==}
@@ -3883,14 +5938,25 @@ packages:
/normalize-range@0.1.2:
resolution: {integrity: sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==}
engines: {node: '>=0.10.0'}
- dev: false
+
+ /npm-run-path@4.0.1:
+ resolution: {integrity: sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==}
+ engines: {node: '>=8'}
+ dependencies:
+ path-key: 3.1.1
+ dev: true
/npm-run-path@5.1.0:
resolution: {integrity: sha512-sJOdmRGrY2sjNTRMbSvluQqg+8X7ZK61yvzBEIDhz4f8z1TZFYABsqjjCBd/0PUNE9M6QDgHJXQkGUEm7Q+l9Q==}
engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
dependencies:
path-key: 4.0.0
- dev: false
+
+ /nth-check@2.1.1:
+ resolution: {integrity: sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==}
+ dependencies:
+ boolbase: 1.0.0
+ dev: true
/object-assign@4.1.1:
resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==}
@@ -3899,7 +5965,6 @@ packages:
/object-hash@3.0.0:
resolution: {integrity: sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==}
engines: {node: '>= 6'}
- dev: false
/object-inspect@1.12.3:
resolution: {integrity: sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==}
@@ -3910,7 +5975,7 @@ packages:
engines: {node: '>= 0.4'}
dependencies:
call-bind: 1.0.2
- define-properties: 1.2.0
+ define-properties: 1.2.1
dev: true
/object-keys@1.1.1:
@@ -3918,6 +5983,50 @@ packages:
engines: {node: '>= 0.4'}
dev: true
+ /object.assign@4.1.4:
+ resolution: {integrity: sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==}
+ engines: {node: '>= 0.4'}
+ dependencies:
+ call-bind: 1.0.2
+ define-properties: 1.2.1
+ has-symbols: 1.0.3
+ object-keys: 1.1.1
+ dev: true
+
+ /object.entries@1.1.7:
+ resolution: {integrity: sha512-jCBs/0plmPsOnrKAfFQXRG2NFjlhZgjjcBLSmTnEhU8U6vVTsVe8ANeQJCHTl3gSsI4J+0emOoCgoKlmQPMgmA==}
+ engines: {node: '>= 0.4'}
+ dependencies:
+ call-bind: 1.0.2
+ define-properties: 1.2.0
+ es-abstract: 1.22.2
+ dev: true
+
+ /object.fromentries@2.0.7:
+ resolution: {integrity: sha512-UPbPHML6sL8PI/mOqPwsH4G6iyXcCGzLin8KvEPenOZN5lpCNBZZQ+V62vdjB1mQHrmqGQt5/OJzemUA+KJmEA==}
+ engines: {node: '>= 0.4'}
+ dependencies:
+ call-bind: 1.0.2
+ define-properties: 1.2.0
+ es-abstract: 1.22.2
+ dev: true
+
+ /object.hasown@1.1.3:
+ resolution: {integrity: sha512-fFI4VcYpRHvSLXxP7yiZOMAd331cPfd2p7PFDVbgUsYOfCT3tICVqXWngbjr4m49OvsBwUBQ6O2uQoJvy3RexA==}
+ dependencies:
+ define-properties: 1.2.0
+ es-abstract: 1.22.2
+ dev: true
+
+ /object.values@1.1.7:
+ resolution: {integrity: sha512-aU6xnDFYT3x17e/f0IiiwlGPTy2jzMySGfUB4fq6z7CV8l85CWHDk5ErhyhpfDHhrOMwGFhSQkhMGHaIotA6Ng==}
+ engines: {node: '>= 0.4'}
+ dependencies:
+ call-bind: 1.0.2
+ define-properties: 1.2.0
+ es-abstract: 1.22.2
+ dev: true
+
/on-finished@2.4.1:
resolution: {integrity: sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==}
engines: {node: '>= 0.8'}
@@ -3935,14 +6044,34 @@ packages:
engines: {node: '>=6'}
dependencies:
mimic-fn: 2.1.0
- dev: false
/onetime@6.0.0:
resolution: {integrity: sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==}
engines: {node: '>=12'}
dependencies:
mimic-fn: 4.0.0
- dev: false
+
+ /open@9.1.0:
+ resolution: {integrity: sha512-OS+QTnw1/4vrf+9hh1jc1jnYjzSG4ttTBB8UxOwAnInG3Uo4ssetzC1ihqaIHjLJnA5GGlRl6QlZXOTQhRBUvg==}
+ engines: {node: '>=14.16'}
+ dependencies:
+ default-browser: 4.0.0
+ define-lazy-prop: 3.0.0
+ is-inside-container: 1.0.0
+ is-wsl: 2.2.0
+ dev: true
+
+ /optionator@0.9.3:
+ resolution: {integrity: sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==}
+ engines: {node: '>= 0.8.0'}
+ dependencies:
+ '@aashutoshrathi/word-wrap': 1.2.6
+ deep-is: 0.1.4
+ fast-levenshtein: 2.0.6
+ levn: 0.4.1
+ prelude-ls: 1.2.1
+ type-check: 0.4.0
+ dev: true
/ora@7.0.1:
resolution: {integrity: sha512-0TUxTiFJWv+JnjWm4o9yvuskpEJLXTcng8MJuKd+SzAzp2o+OP3HWqNhB4OdJRt1Vsd9/mR0oyaEYlOnL7XIRw==}
@@ -3994,6 +6123,30 @@ packages:
resolution: {integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==}
engines: {node: '>=6'}
+ /param-case@3.0.4:
+ resolution: {integrity: sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==}
+ dependencies:
+ dot-case: 3.0.4
+ tslib: 2.6.2
+ dev: true
+
+ /parent-module@1.0.1:
+ resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==}
+ engines: {node: '>=6'}
+ dependencies:
+ callsites: 3.1.0
+ dev: true
+
+ /parse-json@5.2.0:
+ resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==}
+ engines: {node: '>=8'}
+ dependencies:
+ '@babel/code-frame': 7.22.13
+ error-ex: 1.3.2
+ json-parse-even-better-errors: 2.3.1
+ lines-and-columns: 1.2.4
+ dev: true
+
/parse-latin@5.0.1:
resolution: {integrity: sha512-b/K8ExXaWC9t34kKeDV8kGXBkXZ1HCSAZRYE7HR14eA1GlXX5L8iWhs8USJNhQU9q5ci413jCKF0gOyovvyRBg==}
dependencies:
@@ -4017,6 +6170,13 @@ packages:
engines: {node: '>= 0.8'}
dev: true
+ /pascal-case@3.1.2:
+ resolution: {integrity: sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==}
+ dependencies:
+ no-case: 3.0.4
+ tslib: 2.6.2
+ dev: true
+
/path-exists@4.0.0:
resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==}
engines: {node: '>=8'}
@@ -4032,7 +6192,6 @@ packages:
/path-key@4.0.0:
resolution: {integrity: sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==}
engines: {node: '>=12'}
- dev: false
/path-parse@1.0.7:
resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==}
@@ -4053,6 +6212,15 @@ packages:
resolution: {integrity: sha512-JLyh7xT1kizaEvcaXOQwOc2/Yhw6KZOvPf1S8401UyLk86CU79LN3vl7ztXGm/pZ+YjoyAJ4rxmHwbkBXJX+yw==}
dev: false
+ /path-type@4.0.0:
+ resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==}
+ engines: {node: '>=8'}
+ dev: true
+
+ /pathe@0.2.0:
+ resolution: {integrity: sha512-sTitTPYnn23esFR3RlqYBWn4c45WGeLcsKzQiUpXJAyfcWkolvlYpV8FLo7JishK946oQwMFUCHXQ9AjGPKExw==}
+ dev: true
+
/picocolors@1.0.0:
resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==}
@@ -4063,7 +6231,6 @@ packages:
/pify@2.3.0:
resolution: {integrity: sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==}
engines: {node: '>=0.10.0'}
- dev: false
/pify@4.0.1:
resolution: {integrity: sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==}
@@ -4073,7 +6240,6 @@ packages:
/pirates@4.0.6:
resolution: {integrity: sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==}
engines: {node: '>= 6'}
- dev: false
/pkg-dir@4.2.0:
resolution: {integrity: sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==}
@@ -4088,29 +6254,27 @@ packages:
find-up: 5.0.0
dev: true
- /postcss-import@15.1.0(postcss@8.4.28):
+ /postcss-import@15.1.0(postcss@8.4.31):
resolution: {integrity: sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==}
engines: {node: '>=14.0.0'}
peerDependencies:
postcss: ^8.0.0
dependencies:
- postcss: 8.4.28
+ postcss: 8.4.31
postcss-value-parser: 4.2.0
read-cache: 1.0.0
resolve: 1.22.4
- dev: false
- /postcss-js@4.0.1(postcss@8.4.28):
+ /postcss-js@4.0.1(postcss@8.4.31):
resolution: {integrity: sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw==}
engines: {node: ^12 || ^14 || >= 16}
peerDependencies:
postcss: ^8.4.21
dependencies:
camelcase-css: 2.0.1
- postcss: 8.4.28
- dev: false
+ postcss: 8.4.31
- /postcss-load-config@4.0.1(postcss@8.4.28):
+ /postcss-load-config@4.0.1(postcss@8.4.31):
resolution: {integrity: sha512-vEJIc8RdiBRu3oRAI0ymerOn+7rPuMvRXslTvZUKZonDHFIczxztIyJ1urxM1x9JXEikvpWWTUUqal5j/8QgvA==}
engines: {node: '>= 14'}
peerDependencies:
@@ -4123,19 +6287,25 @@ packages:
optional: true
dependencies:
lilconfig: 2.1.0
- postcss: 8.4.28
+ postcss: 8.4.31
yaml: 2.3.3
- dev: false
- /postcss-nested@6.0.1(postcss@8.4.28):
+ /postcss-nested@6.0.1(postcss@8.4.31):
resolution: {integrity: sha512-mEp4xPMi5bSWiMbsgoPfcP74lsWLHkQbZc3sY+jWYd65CUwXrUaTp0fmNpa01ZcETKlIgUdFN/MpS2xZtqL9dQ==}
engines: {node: '>=12.0'}
peerDependencies:
postcss: ^8.2.14
dependencies:
- postcss: 8.4.28
+ postcss: 8.4.31
postcss-selector-parser: 6.0.13
- dev: false
+
+ /postcss-selector-parser@6.0.10:
+ resolution: {integrity: sha512-IQ7TZdoaqbT+LCpShg46jnZVlhWD2w6iQYAcYXfHARZ7X1t/UGhhceQDs5X0cGqKvYlHNOuv7Oa1xmb0oQuA3w==}
+ engines: {node: '>=4'}
+ dependencies:
+ cssesc: 3.0.0
+ util-deprecate: 1.0.2
+ dev: true
/postcss-selector-parser@6.0.13:
resolution: {integrity: sha512-EaV1Gl4mUEV4ddhDnv/xtj7sxwrwxdetHdWUGnT4VJQf+4d05v6lHYZr8N573k5Z0BViss7BDhfWtKS3+sfAqQ==}
@@ -4143,14 +6313,12 @@ packages:
dependencies:
cssesc: 3.0.0
util-deprecate: 1.0.2
- dev: false
/postcss-value-parser@4.2.0:
resolution: {integrity: sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==}
- dev: false
- /postcss@8.4.28:
- resolution: {integrity: sha512-Z7V5j0cq8oEKyejIKfpD8b4eBy9cwW2JWPk0+fB1HOAMsfHbnAXLLS+PfVWlzMSLQaWttKDt607I0XHmpE67Vw==}
+ /postcss@8.4.31:
+ resolution: {integrity: sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==}
engines: {node: ^10 || ^12 || >=14}
dependencies:
nanoid: 3.3.6
@@ -4188,6 +6356,18 @@ packages:
which-pm: 2.0.0
dev: false
+ /prelude-ls@1.2.1:
+ resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==}
+ engines: {node: '>= 0.8.0'}
+ dev: true
+
+ /prettier-linter-helpers@1.0.0:
+ resolution: {integrity: sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==}
+ engines: {node: '>=6.0.0'}
+ dependencies:
+ fast-diff: 1.3.0
+ dev: true
+
/prettier-plugin-tailwindcss@0.5.6(@ianvs/prettier-plugin-sort-imports@4.1.1)(prettier@3.0.3):
resolution: {integrity: sha512-2Xgb+GQlkPAUCFi3sV+NOYcSI5XgduvDBL2Zt/hwJudeKXkyvRS65c38SB0yb9UB40+1rL83I6m0RtlOQ8eHdg==}
engines: {node: '>=14.21.3'}
@@ -4307,6 +6487,11 @@ packages:
dev: false
optional: true
+ /punycode@2.3.0:
+ resolution: {integrity: sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==}
+ engines: {node: '>=6'}
+ dev: true
+
/qs@6.11.0:
resolution: {integrity: sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==}
engines: {node: '>=0.6'}
@@ -4323,7 +6508,6 @@ packages:
/queue-microtask@1.2.3:
resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==}
- dev: false
/queue-tick@1.0.1:
resolution: {integrity: sha512-kJt5qhMxoszgU/62PLP1CJytzd2NKetjSRnyuj31fDd3Rlcz3fzlFdFLD1SItunPwyqEOkca6GbV612BWfaBag==}
@@ -4375,7 +6559,7 @@ packages:
engines: {node: '>=12.0.0'}
hasBin: true
dependencies:
- '@babel/core': 7.22.10
+ '@babel/core': 7.23.2
'@babel/generator': 7.22.10
ast-types: 0.14.2
commander: 2.20.3
@@ -4397,7 +6581,6 @@ packages:
loose-envify: 1.4.0
react: 18.2.0
scheduler: 0.23.0
- dev: true
/react-element-to-jsx-string@15.0.0(react-dom@18.2.0)(react@18.2.0):
resolution: {integrity: sha512-UDg4lXB6BzlobN60P8fHWVPX3Kyw8ORrTeBtClmIlGdkOOE+GYQSFvmEU5iLLpwp/6v42DINwNcwOhOLfQ//FQ==}
@@ -4425,18 +6608,39 @@ packages:
engines: {node: '>=0.10.0'}
dev: true
+ /react-router-dom@6.16.0(react-dom@18.2.0)(react@18.2.0):
+ resolution: {integrity: sha512-aTfBLv3mk/gaKLxgRDUPbPw+s4Y/O+ma3rEN1u8EgEpLpPe6gNjIsWt9rxushMHHMb7mSwxRGdGlGdvmFsyPIg==}
+ engines: {node: '>=14.0.0'}
+ peerDependencies:
+ react: '>=16.8'
+ react-dom: '>=16.8'
+ dependencies:
+ '@remix-run/router': 1.9.0
+ react: 18.2.0
+ react-dom: 18.2.0(react@18.2.0)
+ react-router: 6.16.0(react@18.2.0)
+ dev: false
+
+ /react-router@6.16.0(react@18.2.0):
+ resolution: {integrity: sha512-VT4Mmc4jj5YyjpOi5jOf0I+TYzGpvzERy4ckNSvSh2RArv8LLoCxlsZ2D+tc7zgjxcY34oTz2hZaeX5RVprKqA==}
+ engines: {node: '>=14.0.0'}
+ peerDependencies:
+ react: '>=16.8'
+ dependencies:
+ '@remix-run/router': 1.9.0
+ react: 18.2.0
+ dev: false
+
/react@18.2.0:
resolution: {integrity: sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==}
engines: {node: '>=0.10.0'}
dependencies:
loose-envify: 1.4.0
- dev: true
/read-cache@1.0.0:
resolution: {integrity: sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==}
dependencies:
pify: 2.3.0
- dev: false
/readable-stream@3.6.2:
resolution: {integrity: sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==}
@@ -4464,6 +6668,36 @@ packages:
tslib: 2.6.2
dev: true
+ /reflect.getprototypeof@1.0.4:
+ resolution: {integrity: sha512-ECkTw8TmJwW60lOTR+ZkODISW6RQ8+2CL3COqtiJKLd6MmB45hN51HprHFziKLGkAuTGQhBb91V8cy+KHlaCjw==}
+ engines: {node: '>= 0.4'}
+ dependencies:
+ call-bind: 1.0.2
+ define-properties: 1.2.1
+ es-abstract: 1.22.2
+ get-intrinsic: 1.2.1
+ globalthis: 1.0.3
+ which-builtin-type: 1.1.3
+ dev: true
+
+ /regenerator-runtime@0.14.0:
+ resolution: {integrity: sha512-srw17NI0TUWHuGa5CFGGmhfNIeja30WMBfbslPNhf6JrqQlLN5gcrvig1oqPxiVaXb0oW0XRKtH6Nngs5lKCIA==}
+ dev: true
+
+ /regexp.prototype.flags@1.5.1:
+ resolution: {integrity: sha512-sy6TXMN+hnP/wMy+ISxg3krXx7BAtWVO4UouuCN/ziM9UEne0euamVNafDfvC83bRNr95y0V5iijeDQFUNpvrg==}
+ engines: {node: '>= 0.4'}
+ dependencies:
+ call-bind: 1.0.2
+ define-properties: 1.2.0
+ set-function-name: 2.0.1
+ dev: true
+
+ /regexpp@3.2.0:
+ resolution: {integrity: sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==}
+ engines: {node: '>=8'}
+ dev: true
+
/rehype-parse@8.0.5:
resolution: {integrity: sha512-Ds3RglaY/+clEX2U2mHflt7NlMA72KspZ0JLUJgBBLpRddBcEw3H8uYZQliQriku22NZpYMfjDdSgHcjxue24A==}
dependencies:
@@ -4498,6 +6732,11 @@ packages:
unified: 10.1.2
dev: false
+ /relateurl@0.2.7:
+ resolution: {integrity: sha512-G08Dxvm4iDN3MLM0EsP62EDV9IuhXPR6blNz6Utcp7zyV3tr4HVNINt6MpaRWbxoOHT3Q7YN2P+jaHX8vUbgog==}
+ engines: {node: '>= 0.10'}
+ dev: true
+
/remark-external-links@8.0.0:
resolution: {integrity: sha512-5vPSX0kHoSsqtdftSHhIYofVINC8qmp0nctkeU9YoJwV3YfiBRiI6cbFRJ0oI/1F9xS+bopXG0m2KS8VFscuKA==}
dependencies:
@@ -4560,6 +6799,11 @@ packages:
engines: {node: '>=0.10.0'}
dev: true
+ /resolve-from@4.0.0:
+ resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==}
+ engines: {node: '>=4'}
+ dev: true
+
/resolve-from@5.0.0:
resolution: {integrity: sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==}
engines: {node: '>=8'}
@@ -4573,6 +6817,15 @@ packages:
path-parse: 1.0.7
supports-preserve-symlinks-flag: 1.0.0
+ /resolve@2.0.0-next.5:
+ resolution: {integrity: sha512-U7WjGVG9sH8tvjW5SmGbQuui75FiyjAX72HX15DwBBwF9dNiQZRQAg9nnPhYy+TUnE0+VcrttuvNI8oSxZcocA==}
+ hasBin: true
+ dependencies:
+ is-core-module: 2.13.0
+ path-parse: 1.0.7
+ supports-preserve-symlinks-flag: 1.0.0
+ dev: true
+
/restore-cursor@4.0.0:
resolution: {integrity: sha512-I9fPXU9geO9bHOt9pHHOhOkYerIMsmVaWB0rA2AI9ERh/+x/i7MV5HKBNrg+ljO5eoPVgCcnFuRjJ9uH6I/3eg==}
engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
@@ -4619,14 +6872,12 @@ packages:
/reusify@1.0.4:
resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==}
engines: {iojs: '>=1.0.0', node: '>=0.10.0'}
- dev: false
/rimraf@3.0.2:
resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==}
hasBin: true
dependencies:
glob: 7.2.3
- dev: true
/rollup@3.28.1:
resolution: {integrity: sha512-R9OMQmIHJm9znrU3m3cpE8uhN0fGdXiawME7aZIpQqvpS/85+Vt1Hq1/yVIcYfOmaQiHjvXkQAoJukvLpau6Yw==}
@@ -4635,11 +6886,17 @@ packages:
optionalDependencies:
fsevents: 2.3.3
+ /run-applescript@5.0.0:
+ resolution: {integrity: sha512-XcT5rBksx1QdIhlFOCtgZkB99ZEouFZ1E2Kc2LHqNW13U3/74YGdkQRmThTwxy4QIyookibDKYZOPqX//6BlAg==}
+ engines: {node: '>=12'}
+ dependencies:
+ execa: 5.1.1
+ dev: true
+
/run-parallel@1.2.0:
resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==}
dependencies:
queue-microtask: 1.2.3
- dev: false
/sade@1.8.1:
resolution: {integrity: sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==}
@@ -4648,12 +6905,40 @@ packages:
mri: 1.2.0
dev: false
+ /safe-array-concat@1.0.1:
+ resolution: {integrity: sha512-6XbUAseYE2KtOuGueyeobCySj9L4+66Tn6KQMOPQJrAJEowYKW/YR/MGJZl7FdydUdaFu4LYyDZjxf4/Nmo23Q==}
+ engines: {node: '>=0.4'}
+ dependencies:
+ call-bind: 1.0.2
+ get-intrinsic: 1.2.1
+ has-symbols: 1.0.3
+ isarray: 2.0.5
+ dev: true
+
/safe-buffer@5.2.1:
resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==}
+ /safe-regex-test@1.0.0:
+ resolution: {integrity: sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==}
+ dependencies:
+ call-bind: 1.0.2
+ get-intrinsic: 1.2.1
+ is-regex: 1.1.4
+ dev: true
+
/safer-buffer@2.1.2:
resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==}
+ /sass@1.69.3:
+ resolution: {integrity: sha512-X99+a2iGdXkdWn1akFPs0ZmelUzyAQfvqYc2P/MPTrJRuIRoTffGzT9W9nFqG00S+c8hXzVmgxhUuHFdrwxkhQ==}
+ engines: {node: '>=14.0.0'}
+ hasBin: true
+ dependencies:
+ chokidar: 3.5.3
+ immutable: 4.3.4
+ source-map-js: 1.0.2
+ dev: true
+
/sax@1.3.0:
resolution: {integrity: sha512-0s+oAmw9zLl1V1cS9BtZN7JAd0cW5e0QH4W3LWEK6a4LaLEA2OTpGYWDY+6XasBLtz6wkm3u1xRw95mRuJ59WA==}
dev: false
@@ -4662,7 +6947,6 @@ packages:
resolution: {integrity: sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==}
dependencies:
loose-envify: 1.4.0
- dev: true
/section-matter@1.0.0:
resolution: {integrity: sha512-vfD3pmTzGpufjScBh50YHKzEu2lxBWhVEHsNGoEXmCmn2hKGfeNLYMzCJpe8cD7gqX7TJluOVpBkAequ6dgMmA==}
@@ -4720,6 +7004,15 @@ packages:
resolution: {integrity: sha512-rb+9B5YBIEzYcD6x2VKidaa+cqYBJQKnU4oe4E3ANwRRN56yk/ua1YCJT1n21NTS8w6CcOclAKNP3PhdCXKYtQ==}
dev: false
+ /set-function-name@2.0.1:
+ resolution: {integrity: sha512-tMNCiqYVkXIZgc2Hnoy2IvC/f8ezc5koaRFkCjrpWzGpCd3qbZXPzVy9MAZzK1ch/X0jvSkojys3oqJN0qCmdA==}
+ engines: {node: '>= 0.4'}
+ dependencies:
+ define-data-property: 1.1.1
+ functions-have-names: 1.2.3
+ has-property-descriptors: 1.0.0
+ dev: true
+
/setprototypeof@1.2.0:
resolution: {integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==}
dev: true
@@ -4799,10 +7092,39 @@ packages:
resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==}
dev: false
+ /slash@3.0.0:
+ resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==}
+ engines: {node: '>=8'}
+ dev: true
+
+ /snake-case@3.0.4:
+ resolution: {integrity: sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg==}
+ dependencies:
+ dot-case: 3.0.4
+ tslib: 2.6.2
+ dev: true
+
+ /sonner@1.0.3(react-dom@18.2.0)(react@18.2.0):
+ resolution: {integrity: sha512-hBoA2zKuYW3lUnpx4K0vAn8j77YuYiwvP9sLQfieNS2pd5FkT20sMyPTDJnl9S+5T27ZJbwQRPiujwvDBwhZQg==}
+ peerDependencies:
+ react: ^18.0.0
+ react-dom: ^18.0.0
+ dependencies:
+ react: 18.2.0
+ react-dom: 18.2.0(react@18.2.0)
+ dev: false
+
/source-map-js@1.0.2:
resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==}
engines: {node: '>=0.10.0'}
+ /source-map-support@0.5.21:
+ resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==}
+ dependencies:
+ buffer-from: 1.1.2
+ source-map: 0.6.1
+ dev: true
+
/source-map@0.6.1:
resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==}
engines: {node: '>=0.10.0'}
@@ -4874,6 +7196,45 @@ packages:
strip-ansi: 7.1.0
dev: false
+ /string.prototype.matchall@4.0.10:
+ resolution: {integrity: sha512-rGXbGmOEosIQi6Qva94HUjgPs9vKW+dkG7Y8Q5O2OYkWL6wFaTRZO8zM4mhP94uX55wgyrXzfS2aGtGzUL7EJQ==}
+ dependencies:
+ call-bind: 1.0.2
+ define-properties: 1.2.0
+ es-abstract: 1.22.2
+ get-intrinsic: 1.2.1
+ has-symbols: 1.0.3
+ internal-slot: 1.0.5
+ regexp.prototype.flags: 1.5.1
+ set-function-name: 2.0.1
+ side-channel: 1.0.4
+ dev: true
+
+ /string.prototype.trim@1.2.8:
+ resolution: {integrity: sha512-lfjY4HcixfQXOfaqCvcBuOIapyaroTXhbkfJN3gcB1OtyupngWK4sEET9Knd0cXd28kTUqu/kHoV4HKSJdnjiQ==}
+ engines: {node: '>= 0.4'}
+ dependencies:
+ call-bind: 1.0.2
+ define-properties: 1.2.1
+ es-abstract: 1.22.2
+ dev: true
+
+ /string.prototype.trimend@1.0.7:
+ resolution: {integrity: sha512-Ni79DqeB72ZFq1uH/L6zJ+DKZTkOtPIHovb3YZHQViE+HDouuU4mBrLOLDn5Dde3RF8qw5qVETEjhu9locMLvA==}
+ dependencies:
+ call-bind: 1.0.2
+ define-properties: 1.2.1
+ es-abstract: 1.22.2
+ dev: true
+
+ /string.prototype.trimstart@1.0.7:
+ resolution: {integrity: sha512-NGhtDFu3jCEm7B4Fy0DpLewdJQOZcQ0rGbwQ/+stjnrp2i+rlKeCvos9hOIeCmqwratM47OBxY7uFZzjxHXmrg==}
+ dependencies:
+ call-bind: 1.0.2
+ define-properties: 1.2.1
+ es-abstract: 1.22.2
+ dev: true
+
/string_decoder@1.3.0:
resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==}
dependencies:
@@ -4909,10 +7270,14 @@ packages:
engines: {node: '>=4'}
dev: false
+ /strip-final-newline@2.0.0:
+ resolution: {integrity: sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==}
+ engines: {node: '>=6'}
+ dev: true
+
/strip-final-newline@3.0.0:
resolution: {integrity: sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==}
engines: {node: '>=12'}
- dev: false
/strip-indent@3.0.0:
resolution: {integrity: sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==}
@@ -4928,6 +7293,11 @@ packages:
dev: false
optional: true
+ /strip-json-comments@3.1.1:
+ resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==}
+ engines: {node: '>=8'}
+ dev: true
+
/sucrase@3.34.0:
resolution: {integrity: sha512-70/LQEZ07TEcxiU2dz51FKaE6hCTWC6vr7FOk3Gr0U60C3shtAN+H+BFr9XlYe5xqf3RA8nrc+VIwzCfnxuXJw==}
engines: {node: '>=8'}
@@ -4940,7 +7310,6 @@ packages:
mz: 2.7.0
pirates: 4.0.6
ts-interface-checker: 0.1.13
- dev: false
/supports-color@5.5.0:
resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==}
@@ -4959,10 +7328,34 @@ packages:
resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==}
engines: {node: '>= 0.4'}
+ /svg-parser@2.0.4:
+ resolution: {integrity: sha512-e4hG1hRwoOdRb37cIMSgzNsxyzKfayW6VOflrwvR+/bzrkyxY/31WkbgnQpgtrNp1SdpJvpUAGTa/ZoiPNDuRQ==}
+ dev: true
+
/synchronous-promise@2.0.17:
resolution: {integrity: sha512-AsS729u2RHUfEra9xJrE39peJcc2stq2+poBXX8bcM08Y6g9j/i/PUzwNQqkaJde7Ntg1TO7bSREbR5sdosQ+g==}
dev: true
+ /synckit@0.8.5:
+ resolution: {integrity: sha512-L1dapNV6vu2s/4Sputv8xGsCdAVlb5nRDMFU/E27D44l5U6cw1g0dGd45uLc+OXjNMmF4ntiMdCimzcjFKQI8Q==}
+ engines: {node: ^14.18.0 || >=16.0.0}
+ dependencies:
+ '@pkgr/utils': 2.4.2
+ tslib: 2.6.2
+ dev: true
+
+ /tailwindcss-animate@1.0.7(tailwindcss@3.3.3):
+ resolution: {integrity: sha512-bl6mpH3T7I3UFxuvDEXLxy/VuFxBk5bbzplh7tXI68mwMokNYd1t9qPBHlnyTwfa4JGC4zP516I1hYYtQ/vspA==}
+ peerDependencies:
+ tailwindcss: '>=3.0.0 || insiders'
+ dependencies:
+ tailwindcss: 3.3.3
+ dev: true
+
+ /tailwindcss-radix@2.8.0:
+ resolution: {integrity: sha512-1k1UfoIYgVyBl13FKwwoKavjnJ5VEaUClCTAsgz3VLquN4ay/lyaMPzkbqD71sACDs2fRGImytAUlMb4TzOt1A==}
+ dev: false
+
/tailwindcss@3.3.3:
resolution: {integrity: sha512-A0KgSkef7eE4Mf+nKJ83i75TMyq8HqY3qmFIJSWy8bNt0v1lG7jUcpGpoTFxAwYcWOphcTBLPPJg+bDfhDf52w==}
engines: {node: '>=14.0.0'}
@@ -4982,17 +7375,16 @@ packages:
normalize-path: 3.0.0
object-hash: 3.0.0
picocolors: 1.0.0
- postcss: 8.4.28
- postcss-import: 15.1.0(postcss@8.4.28)
- postcss-js: 4.0.1(postcss@8.4.28)
- postcss-load-config: 4.0.1(postcss@8.4.28)
- postcss-nested: 6.0.1(postcss@8.4.28)
+ postcss: 8.4.31
+ postcss-import: 15.1.0(postcss@8.4.31)
+ postcss-js: 4.0.1(postcss@8.4.31)
+ postcss-load-config: 4.0.1(postcss@8.4.31)
+ postcss-nested: 6.0.1(postcss@8.4.31)
postcss-selector-parser: 6.0.13
resolve: 1.22.4
sucrase: 3.34.0
transitivePeerDependencies:
- ts-node
- dev: false
/tar-fs@2.1.1:
resolution: {integrity: sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==}
@@ -5044,6 +7436,17 @@ packages:
memoizerific: 1.11.3
dev: true
+ /terser@5.21.0:
+ resolution: {integrity: sha512-WtnFKrxu9kaoXuiZFSGrcAvvBqAdmKx0SFNmVNYdJamMu9yyN3I/QF0FbH4QcqJQ+y1CJnzxGIKH0cSj+FGYRw==}
+ engines: {node: '>=10'}
+ hasBin: true
+ dependencies:
+ '@jridgewell/source-map': 0.3.5
+ acorn: 8.10.0
+ commander: 2.20.3
+ source-map-support: 0.5.21
+ dev: true
+
/test-exclude@6.0.0:
resolution: {integrity: sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==}
engines: {node: '>=8'}
@@ -5053,23 +7456,43 @@ packages:
minimatch: 3.1.2
dev: true
+ /text-table@0.2.0:
+ resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==}
+ dev: true
+
/thenify-all@1.6.0:
resolution: {integrity: sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==}
engines: {node: '>=0.8'}
dependencies:
thenify: 3.3.1
- dev: false
/thenify@3.3.1:
resolution: {integrity: sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==}
dependencies:
any-promise: 1.3.0
- dev: false
/tiny-invariant@1.3.1:
resolution: {integrity: sha512-AD5ih2NlSssTCwsMznbvwMZpJ1cbhkGd2uueNxzv2jDlEeZdU04JQfRnggJQ8DrcVBGjAsCKwFBbDlVNtEMlzw==}
dev: true
+ /titleize@3.0.0:
+ resolution: {integrity: sha512-KxVu8EYHDPBdUYdKZdKtU2aj2XfEx9AfjXxE/Aj0vT06w2icA09Vus1rh6eSu1y01akYg6BjIK/hxyLJINoMLQ==}
+ engines: {node: '>=12'}
+ dev: true
+
+ /tmp-promise@3.0.3:
+ resolution: {integrity: sha512-RwM7MoPojPxsOBYnyd2hy0bxtIlVrihNs9pj5SUvY8Zz1sQcQG2tG1hSr8PDxfgEB8RNKDhqbIlroIarSNDNsQ==}
+ dependencies:
+ tmp: 0.2.1
+ dev: false
+
+ /tmp@0.2.1:
+ resolution: {integrity: sha512-76SUhtfqR2Ijn+xllcI5P1oyannHNHByD80W1q447gU3mp9G9PSpGdWmjUOHRDPiHYacIk66W7ubDTuPF3BEtQ==}
+ engines: {node: '>=8.17.0'}
+ dependencies:
+ rimraf: 3.0.2
+ dev: false
+
/to-fast-properties@2.0.0:
resolution: {integrity: sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==}
engines: {node: '>=4'}
@@ -5097,6 +7520,15 @@ packages:
resolution: {integrity: sha512-AqTiAOLcj85xS7vQ8QkAV41hPDIJ71XJB4RCUrzo/1GM2CQwhkJGaf9Hgr7BOugMRpgGUrqRg/DrBDl4H40+8g==}
dev: false
+ /ts-api-utils@1.0.3(typescript@5.2.2):
+ resolution: {integrity: sha512-wNMeqtMz5NtwpT/UZGY5alT+VoKdSsOOP/kqHFcUW1P/VRhH2wJ48+DN2WwUliNbQ976ETwDL0Ifd2VVvgonvg==}
+ engines: {node: '>=16.13.0'}
+ peerDependencies:
+ typescript: '>=4.2.0'
+ dependencies:
+ typescript: 5.2.2
+ dev: true
+
/ts-dedent@2.2.0:
resolution: {integrity: sha512-q5W7tVM71e2xjHZTlgfTDoPF/SmqKG5hddq9SzR49CH2hayqRKJtQ4mtRlSxKaJlR/+9rEM+mnBHf7I2/BQcpQ==}
engines: {node: '>=6.10'}
@@ -5104,6 +7536,9 @@ packages:
/ts-interface-checker@0.1.13:
resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==}
+
+ /ts-pattern@5.0.5:
+ resolution: {integrity: sha512-tL0w8U/pgaacOmkb9fRlYzWEUDCfVjjv9dD4wHTgZ61MjhuMt46VNWTG747NqW6vRzoWIKABVhFSOJ82FvXrfA==}
dev: false
/tsconfck@3.0.0-next.9(typescript@5.2.2):
@@ -5131,6 +7566,11 @@ packages:
dev: false
optional: true
+ /tunnel@0.0.6:
+ resolution: {integrity: sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==}
+ engines: {node: '>=0.6.11 <=0.7.0 || >=0.7.3'}
+ dev: false
+
/turbo-darwin-64@1.10.15:
resolution: {integrity: sha512-Sik5uogjkRTe1XVP9TC2GryEMOJCaKE2pM/O9uLn4koQDnWKGcLQv+mDU+H+9DXvKLnJnKCD18OVRkwK5tdpoA==}
cpu: [x64]
@@ -5196,6 +7636,18 @@ packages:
turbo-windows-arm64: 1.10.15
dev: true
+ /type-check@0.4.0:
+ resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==}
+ engines: {node: '>= 0.8.0'}
+ dependencies:
+ prelude-ls: 1.2.1
+ dev: true
+
+ /type-fest@0.20.2:
+ resolution: {integrity: sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==}
+ engines: {node: '>=10'}
+ dev: true
+
/type-fest@2.19.0:
resolution: {integrity: sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==}
engines: {node: '>=12.20'}
@@ -5208,6 +7660,44 @@ packages:
mime-types: 2.1.35
dev: true
+ /typed-array-buffer@1.0.0:
+ resolution: {integrity: sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw==}
+ engines: {node: '>= 0.4'}
+ dependencies:
+ call-bind: 1.0.2
+ get-intrinsic: 1.2.1
+ is-typed-array: 1.1.12
+ dev: true
+
+ /typed-array-byte-length@1.0.0:
+ resolution: {integrity: sha512-Or/+kvLxNpeQ9DtSydonMxCx+9ZXOswtwJn17SNLvhptaXYDJvkFFP5zbfU/uLmvnBJlI4yrnXRxpdWH/M5tNA==}
+ engines: {node: '>= 0.4'}
+ dependencies:
+ call-bind: 1.0.2
+ for-each: 0.3.3
+ has-proto: 1.0.1
+ is-typed-array: 1.1.12
+ dev: true
+
+ /typed-array-byte-offset@1.0.0:
+ resolution: {integrity: sha512-RD97prjEt9EL8YgAgpOkf3O4IF9lhJFr9g0htQkm0rchFp/Vx7LW5Q8fSXXub7BXAODyUQohRMyOc3faCPd0hg==}
+ engines: {node: '>= 0.4'}
+ dependencies:
+ available-typed-arrays: 1.0.5
+ call-bind: 1.0.2
+ for-each: 0.3.3
+ has-proto: 1.0.1
+ is-typed-array: 1.1.12
+ dev: true
+
+ /typed-array-length@1.0.4:
+ resolution: {integrity: sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==}
+ dependencies:
+ call-bind: 1.0.2
+ for-each: 0.3.3
+ is-typed-array: 1.1.12
+ dev: true
+
/typescript@5.2.2:
resolution: {integrity: sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==}
engines: {node: '>=14.17'}
@@ -5221,6 +7711,22 @@ packages:
dev: true
optional: true
+ /unbox-primitive@1.0.2:
+ resolution: {integrity: sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==}
+ dependencies:
+ call-bind: 1.0.2
+ has-bigints: 1.0.2
+ has-symbols: 1.0.3
+ which-boxed-primitive: 1.0.2
+ dev: true
+
+ /undici@5.26.3:
+ resolution: {integrity: sha512-H7n2zmKEWgOllKkIUkLvFmsJQj062lSm3uA4EYApG8gLuiOM0/go9bIoC3HVaSnfg4xunowDE2i9p8drkXuvDw==}
+ engines: {node: '>=14.0'}
+ dependencies:
+ '@fastify/busboy': 2.0.0
+ dev: false
+
/unherit@3.0.1:
resolution: {integrity: sha512-akOOQ/Yln8a2sgcLj4U0Jmx0R5jpIg2IUyRrWOzmEbjBtGzBdHtSeFKgoEcoH4KYIG/Pb8GQ/BwtYm0GCq1Sqg==}
dev: false
@@ -5339,6 +7845,10 @@ packages:
unist-util-visit-parents: 6.0.1
dev: false
+ /universal-user-agent@6.0.0:
+ resolution: {integrity: sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w==}
+ dev: false
+
/universalify@2.0.0:
resolution: {integrity: sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==}
engines: {node: '>= 10.0.0'}
@@ -5358,6 +7868,11 @@ packages:
webpack-virtual-modules: 0.5.0
dev: true
+ /untildify@4.0.0:
+ resolution: {integrity: sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==}
+ engines: {node: '>=8'}
+ dev: true
+
/update-browserslist-db@1.0.11(browserslist@4.21.10):
resolution: {integrity: sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==}
hasBin: true
@@ -5368,6 +7883,21 @@ packages:
escalade: 3.1.1
picocolors: 1.0.0
+ /uri-js@4.4.1:
+ resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==}
+ dependencies:
+ punycode: 2.3.0
+ dev: true
+
+ /use-debounce@9.0.4(react@18.2.0):
+ resolution: {integrity: sha512-6X8H/mikbrt0XE8e+JXRtZ8yYVvKkdYRfmIhWZYsP8rcNs9hk3APV8Ua2mFkKRLcJKVdnX2/Vwrmg2GWKUQEaQ==}
+ engines: {node: '>= 10.0.0'}
+ peerDependencies:
+ react: '>=16.8.0'
+ dependencies:
+ react: 18.2.0
+ dev: false
+
/util-deprecate@1.0.2:
resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}
@@ -5386,6 +7916,11 @@ packages:
engines: {node: '>= 0.4.0'}
dev: true
+ /uuid@8.3.2:
+ resolution: {integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==}
+ hasBin: true
+ dev: false
+
/uvu@0.5.6:
resolution: {integrity: sha512-+g8ENReyr8YsOc6fv/NVJs2vFdHBnBNdfE49rshrTzDWOlUx4Gq7KOS2GD8eqhy2j+Ejq29+SbKH8yjkAqXqoA==}
engines: {node: '>=8'}
@@ -5456,6 +7991,41 @@ packages:
vfile-message: 4.0.2
dev: false
+ /vite-plugin-html@3.2.0(vite@4.4.11):
+ resolution: {integrity: sha512-2VLCeDiHmV/BqqNn5h2V+4280KRgQzCFN47cst3WiNK848klESPQnzuC3okH5XHtgwHH/6s1Ho/YV6yIO0pgoQ==}
+ peerDependencies:
+ vite: '>=2.0.0'
+ dependencies:
+ '@rollup/pluginutils': 4.2.1
+ colorette: 2.0.20
+ connect-history-api-fallback: 1.6.0
+ consola: 2.15.3
+ dotenv: 16.3.1
+ dotenv-expand: 8.0.3
+ ejs: 3.1.9
+ fast-glob: 3.3.1
+ fs-extra: 10.1.0
+ html-minifier-terser: 6.1.0
+ node-html-parser: 5.4.2
+ pathe: 0.2.0
+ vite: 4.4.11
+ dev: true
+
+ /vite-plugin-svgr@4.1.0(typescript@5.2.2)(vite@4.4.11):
+ resolution: {integrity: sha512-v7Qic+FWmCChgQNGSI4V8X63OEYsdUoLt66iqIcHozq9bfK/Dwmr0V+LBy1NE8CE98Y8HouEBJ+pto4AMfN5xw==}
+ peerDependencies:
+ vite: ^2.6.0 || 3 || 4
+ dependencies:
+ '@rollup/pluginutils': 5.0.5
+ '@svgr/core': 8.1.0(typescript@5.2.2)
+ '@svgr/plugin-jsx': 8.1.0(@svgr/core@8.1.0)
+ vite: 4.4.11
+ transitivePeerDependencies:
+ - rollup
+ - supports-color
+ - typescript
+ dev: true
+
/vite@4.4.11:
resolution: {integrity: sha512-ksNZJlkcU9b0lBwAGZGGaZHCMqHsc8OpgtoYhsQ4/I2v5cnpmmmqe5pM4nv/4Hn6G/2GhTdj0DhZh2e+Er1q5A==}
engines: {node: ^14.18.0 || >=16.0.0}
@@ -5485,13 +8055,13 @@ packages:
optional: true
dependencies:
esbuild: 0.18.20
- postcss: 8.4.28
+ postcss: 8.4.31
rollup: 3.28.1
optionalDependencies:
fsevents: 2.3.3
dev: true
- /vite@4.4.9:
+ /vite@4.4.9(@types/node@18.17.19):
resolution: {integrity: sha512-2mbUn2LlUmNASWwSCNSJ/EG2HuSRTnVNaydp6vMCm5VIqJsjMfbIWtbH2kDuwUVW5mMUKKZvGPX/rqeqVvv1XA==}
engines: {node: ^14.18.0 || >=16.0.0}
hasBin: true
@@ -5519,8 +8089,9 @@ packages:
terser:
optional: true
dependencies:
+ '@types/node': 18.17.19
esbuild: 0.18.20
- postcss: 8.4.28
+ postcss: 8.4.31
rollup: 3.28.1
optionalDependencies:
fsevents: 2.3.3
@@ -5534,7 +8105,7 @@ packages:
vite:
optional: true
dependencies:
- vite: 4.4.9
+ vite: 4.4.9(@types/node@18.17.19)
dev: false
/web-namespaces@2.0.1:
@@ -5561,6 +8132,43 @@ packages:
webidl-conversions: 3.0.1
dev: true
+ /which-boxed-primitive@1.0.2:
+ resolution: {integrity: sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==}
+ dependencies:
+ is-bigint: 1.0.4
+ is-boolean-object: 1.1.2
+ is-number-object: 1.0.7
+ is-string: 1.0.7
+ is-symbol: 1.0.4
+ dev: true
+
+ /which-builtin-type@1.1.3:
+ resolution: {integrity: sha512-YmjsSMDBYsM1CaFiayOVT06+KJeXf0o5M/CAd4o1lTadFAtacTUM49zoYxr/oroopFDfhvN6iEcBxUyc3gvKmw==}
+ engines: {node: '>= 0.4'}
+ dependencies:
+ function.prototype.name: 1.1.6
+ has-tostringtag: 1.0.0
+ is-async-function: 2.0.0
+ is-date-object: 1.0.5
+ is-finalizationregistry: 1.0.2
+ is-generator-function: 1.0.10
+ is-regex: 1.1.4
+ is-weakref: 1.0.2
+ isarray: 2.0.5
+ which-boxed-primitive: 1.0.2
+ which-collection: 1.0.1
+ which-typed-array: 1.1.11
+ dev: true
+
+ /which-collection@1.0.1:
+ resolution: {integrity: sha512-W8xeTUwaln8i3K/cY1nGXzdnVZlidBcagyNFtBdD5kxnb4TvGKR7FfSIS3mYpwWS1QUCutfKz8IY8RjftB0+1A==}
+ dependencies:
+ is-map: 2.0.2
+ is-set: 2.0.2
+ is-weakmap: 2.0.1
+ is-weakset: 2.0.2
+ dev: true
+
/which-pm-runs@1.1.0:
resolution: {integrity: sha512-n1brCuqClxfFfq/Rb0ICg9giSZqCS+pLtccdag6C2HyufBrh3fBOiy9nb6ggRMvWOVH5GrdJskj5iGTZNxd7SA==}
engines: {node: '>=4'}
@@ -5645,7 +8253,6 @@ packages:
/yaml@2.3.3:
resolution: {integrity: sha512-zw0VAJxgeZ6+++/su5AFoqBbZbrEakwu+X0M5HmcwUiBL7AzcuPKjj5we4xfQLp78LkEMpD0cOnUhmgOVy3KdQ==}
engines: {node: '>= 14'}
- dev: false
/yargs-parser@20.2.9:
resolution: {integrity: sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==}
@@ -5683,6 +8290,10 @@ packages:
resolution: {integrity: sha512-+dTu2m6gmCbO9Ahm4ZBDapx2O6ZY9QSPXst2WXjcznPMwf2YNpn3RevLx4KkZp1OPW/ouFcoBtBzFz/LeY69oA==}
dev: false
+ /zod@3.22.4:
+ resolution: {integrity: sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==}
+ dev: false
+
/zwitch@2.0.4:
resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==}
dev: false
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index bc48b4d..956f1d5 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -1,6 +1,5 @@
packages:
- - 'apps/*'
- - 'pkgs/*'
- - 'interface'
- - 'scripts'
- - '.github/actions/*'
+ - 'apps/*'
+ - 'packages/*'
+ - 'interface'
+ - '.github/actions/*'
diff --git a/tsconfig.json b/tsconfig.json
index d917a07..fbbf698 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -1,4 +1,7 @@
{
- "files": [],
- "references": []
+ "references": [
+ {
+ "path": "packages/ui"
+ }
+ ]
}