├── .gitignore ├── assets └── .gitkeep ├── tests ├── README.md ├── .eslintrc.json ├── .prettierrc ├── CHANGELOG.md ├── assets │ └── command-icon.png ├── src │ ├── menuonly.tsx │ ├── action │ │ └── props.ts │ ├── menu │ │ └── props.ts │ ├── test.tsx │ └── menucmd.tsx ├── .gitignore ├── tsconfig.json ├── package.json └── package-lock.json ├── src ├── index.ts ├── components │ ├── menu │ │ ├── root.tsx │ │ ├── submenu.tsx │ │ ├── utils.ts │ │ ├── section.tsx │ │ ├── item.tsx │ │ └── index.tsx │ └── action │ │ ├── maps.tsx │ │ ├── preferences.tsx │ │ ├── index.tsx │ │ └── numeric.tsx └── lib │ ├── maps.ts │ ├── utils.ts │ └── rctypes.ts ├── .prettierrc ├── CHANGELOG.md ├── docs ├── index.md ├── actions.md └── menubarextra.md ├── tsconfig.json ├── .github └── workflows │ └── test.yml ├── .eslintrc.json ├── LICENSE ├── package.json └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | dist 3 | .DS_Store 4 | -------------------------------------------------------------------------------- /assets/.gitkeep: -------------------------------------------------------------------------------- 1 | // ray build throw an error if the directory does not exist -------------------------------------------------------------------------------- /tests/README.md: -------------------------------------------------------------------------------- 1 | # RaycastUI Tests 2 | 3 | Extension to test RaycastUI 4 | -------------------------------------------------------------------------------- /tests/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "root": true, 3 | "extends": ["@raycast"] 4 | } 5 | -------------------------------------------------------------------------------- /tests/.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "printWidth": 120, 3 | "singleQuote": false 4 | } 5 | -------------------------------------------------------------------------------- /tests/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # RaycastUI Tests Changelog 2 | 3 | ## [Initial Version] - 2024-01-06 -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./components/menu"; 2 | export * from "./components/action"; 3 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "tabWidth": 2, 3 | "printWidth": 120, 4 | "singleQuote": false 5 | } 6 | -------------------------------------------------------------------------------- /tests/assets/command-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tonka3000/raycastui/HEAD/tests/assets/command-icon.png -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # RaycastUI Changelog 2 | 3 | ## [1.0.1] - 2024-07-24 4 | 5 | - Fix latitude longitude coordinate swap when calling Apple Maps 6 | 7 | ## [Initial Version] - 2024-02-18 8 | -------------------------------------------------------------------------------- /docs/index.md: -------------------------------------------------------------------------------- 1 | # RaycastUI 2 | 3 | The RaycastUI components are build in the same way the native ones are working. 4 | 5 | - [Actions](actions.md) 6 | - [MenuBarExtra](menubarextra.md) 7 | -------------------------------------------------------------------------------- /tests/src/menuonly.tsx: -------------------------------------------------------------------------------- 1 | import { MenuBarExtra } from "@raycast-community/ui"; 2 | import { showHUD } from "@raycast/api"; 3 | 4 | export default function MenuCommand() { 5 | return showHUD("Menu Clicked")} />; 6 | } 7 | -------------------------------------------------------------------------------- /tests/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | 6 | # Raycast specific files 7 | raycast-env.d.ts 8 | .raycast-swift-build 9 | .swiftpm 10 | compiled_raycast_swift 11 | 12 | # misc 13 | .DS_Store 14 | -------------------------------------------------------------------------------- /tests/src/action/props.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable @typescript-eslint/no-unused-vars */ 2 | import { Action } from "@raycast-community/ui"; 3 | 4 | type ActionPropsTest = Action.Props; 5 | type ActionOpenExtensionPreferencesPropsTest = Action.OpenExtensionPreferences.Props; 6 | type ActionOpenCommandPreferencesPropsTest = Action.OpenCommandPreferences.Props; 7 | type ActionNumericPropsTest = Action.Numeric.Props; 8 | type ActionOpenMapsPropsTest = Action.OpenMaps.Props; 9 | -------------------------------------------------------------------------------- /src/components/menu/root.tsx: -------------------------------------------------------------------------------- 1 | import { Image, MenuBarExtra } from "@raycast/api"; 2 | import React from "react"; 3 | 4 | export interface MenuBarRootProps { 5 | children: React.ReactNode; 6 | icon?: Image.ImageLike; 7 | isLoading?: boolean; 8 | title?: string; 9 | tooltip?: string; 10 | } 11 | 12 | export function MenuBarRoot({ children, ...restProps }: MenuBarRootProps): JSX.Element { 13 | return {children}; 14 | } 15 | -------------------------------------------------------------------------------- /tests/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json.schemastore.org/tsconfig", 3 | "include": ["src/**/*", "raycast-env.d.ts"], 4 | "compilerOptions": { 5 | "lib": ["ES2021"], 6 | "module": "commonjs", 7 | "target": "ES2021", 8 | "strict": true, 9 | "isolatedModules": true, 10 | "esModuleInterop": true, 11 | "skipLibCheck": true, 12 | "forceConsistentCasingInFileNames": true, 13 | "jsx": "react-jsx", 14 | "resolveJsonModule": true 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json.schemastore.org/tsconfig", 3 | "include": ["src/**/*", "scripts/**/*"], 4 | "compilerOptions": { 5 | "lib": ["ES2021"], 6 | "module": "commonjs", 7 | "target": "ES2021", 8 | "strict": true, 9 | "isolatedModules": true, 10 | "esModuleInterop": true, 11 | "skipLibCheck": true, 12 | "forceConsistentCasingInFileNames": true, 13 | "jsx": "react-jsx", 14 | "resolveJsonModule": true, 15 | "declaration": true, 16 | "declarationMap": true, 17 | "outDir": "dist" 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /tests/src/menu/props.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable @typescript-eslint/no-unused-vars */ 2 | import { MenuBarExtra } from "@raycast-community/ui"; 3 | 4 | type MenuBarExtraPropsTest = MenuBarExtra.Props; 5 | type MenuBarExtraItemPropsTest = MenuBarExtra.Item.Props; 6 | type MenuBarExtraSectionPropsTest = MenuBarExtra.Section.Props; 7 | type MenuBarExtraSubmenuPropsTest = MenuBarExtra.Submenu.Props; 8 | type MenuBarExtraOpenInBrowser = MenuBarExtra.OpenInBrowser.Props; 9 | type MenuBarExtraCopyToClipboard = MenuBarExtra.CopyToClipboard.Props; 10 | type MenuBarExtraLaunchCommand = MenuBarExtra.LaunchCommand.Props; 11 | type MenuBarExtraConfigureCommand = MenuBarExtra.ConfigureCommand.Props; 12 | type MenuBarExtraConfigureExtension = MenuBarExtra.ConfigureExtension.Props; 13 | type MenuBarExtraOpenMaps = MenuBarExtra.OpenMaps.Props; 14 | -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- 1 | name: Test 2 | 3 | on: 4 | workflow_dispatch: 5 | pull_request: 6 | branches: 7 | - "*" 8 | - "!main" 9 | push: 10 | branches: 11 | - "*" 12 | - "!main" 13 | 14 | jobs: 15 | tests: 16 | if: github.repository == 'tonka3000/raycastui' 17 | runs-on: ubuntu-latest 18 | steps: 19 | - name: Checkout 20 | uses: actions/checkout@v4 21 | - name: Setup node 22 | uses: raycast/github-actions/setup-node@v1.16.0 23 | with: 24 | node-version: 20 25 | - name: Npm Install 26 | run: npm ci 27 | - name: Npm Lint 28 | run: npm run test 29 | - name: Prettier 30 | run: npm run prettier 31 | - name: Build 32 | run: npm run build 33 | - name: Npm Install Tests 34 | run: npm ci 35 | working-directory: ./tests 36 | - name: Build tests 37 | run: npm run build 38 | working-directory: ./tests 39 | -------------------------------------------------------------------------------- /src/lib/maps.ts: -------------------------------------------------------------------------------- 1 | import { open } from "@raycast/api"; 2 | 3 | export interface Coordinates { 4 | long: number; 5 | lat: number; 6 | } 7 | 8 | export type MapType = "Standard" | "Satellite" | "Hybrid" | "Transit"; 9 | 10 | export interface MapsQuery { 11 | coordinates?: Coordinates; 12 | mapType?: MapType; 13 | } 14 | 15 | const mapTypeMapping: Record = { 16 | Standard: "m", 17 | Satellite: "k", 18 | Hybrid: "h", 19 | Transit: "r", 20 | }; 21 | 22 | export async function openInMaps({ coordinates: c, mapType }: MapsQuery) { 23 | // schema see https://developer.apple.com/library/archive/featuredarticles/iPhoneURLScheme_Reference/MapLinks/MapLinks.html 24 | const up = new URL("maps://maps.apple.com/"); 25 | const mt = mapType ? mapTypeMapping[mapType] : undefined; 26 | if (c) { 27 | up.searchParams.set("q", `${c.lat},${c.long}`); 28 | } 29 | if (mt) { 30 | up.searchParams.set("t", mt); 31 | } 32 | const url = up.toString(); 33 | return open(url); 34 | } 35 | -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "root": true, 3 | "env": { 4 | "es2021": true, 5 | "node": true 6 | }, 7 | "parser": "@typescript-eslint/parser", 8 | "plugins": ["@typescript-eslint", "react-hooks"], 9 | "extends": [ 10 | "eslint:recommended", 11 | "plugin:import/recommended", 12 | "plugin:import/typescript", 13 | "plugin:@typescript-eslint/recommended", 14 | "prettier", 15 | "plugin:react-hooks/recommended" 16 | ], 17 | "rules": { 18 | "react-hooks/rules-of-hooks": "error", 19 | "react-hooks/exhaustive-deps": "warn", 20 | "@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }], 21 | "import/no-unresolved": [2, { "ignore": ["@raycast/api"] }], 22 | "@typescript-eslint/no-explicit-any": "warn" 23 | }, 24 | "overrides": [ 25 | { 26 | "files": ["*.ts", "*.tsx"], 27 | "rules": { 28 | "@typescript-eslint/explicit-module-boundary-types": "off", 29 | "@typescript-eslint/no-namespace": "off" 30 | } 31 | } 32 | ] 33 | } -------------------------------------------------------------------------------- /src/components/menu/submenu.tsx: -------------------------------------------------------------------------------- 1 | import { Image, MenuBarExtra as RCMenuBarExtra } from "@raycast/api"; 2 | import { ReactNode } from "react"; 3 | import { joinNonEmpty } from "./utils"; 4 | 5 | export interface MenuBarSubmenuProps { 6 | title: string; 7 | subtitle?: string; 8 | /** The separator which will be used when a subtitle is set */ 9 | titleSeparator?: string; 10 | icon?: Image.ImageLike | undefined; 11 | children?: ReactNode; 12 | } 13 | 14 | /** Use {@link MenuBarExtra.Submenu} instead */ 15 | export function MenuBarSubmenu({ 16 | title, 17 | titleSeparator, 18 | subtitle, 19 | children, 20 | ...restProps 21 | }: MenuBarSubmenuProps): JSX.Element { 22 | const sep = titleSeparator && titleSeparator.trim().length > 0 ? titleSeparator.trim() : ""; 23 | const fullTitle = joinNonEmpty( 24 | [title, subtitle].filter((e) => e), 25 | ` ${sep} `, 26 | ); 27 | return ( 28 | 29 | {children} 30 | 31 | ); 32 | } 33 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 Michael Aigner 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /src/components/menu/utils.ts: -------------------------------------------------------------------------------- 1 | import { Clipboard, getPreferenceValues, showHUD } from "@raycast/api"; 2 | 3 | export function joinNonEmpty(parts?: (string | undefined)[], separator?: string | undefined): string | undefined { 4 | if (!parts || parts.length <= 0) { 5 | return undefined; 6 | } 7 | return parts.join(separator); 8 | } 9 | 10 | export function getBoundedPreferenceNumber(params: { 11 | name: string; 12 | min?: number; 13 | max?: number; 14 | default?: number; 15 | }): number { 16 | const boundMin = params.min || 1; 17 | const boundMax = params.max || 100; 18 | const fallback = params.default || 10; 19 | const prefs = getPreferenceValues(); 20 | const maxtext = (prefs[params.name] as string) || ""; 21 | const max = Number(maxtext); 22 | if (isNaN(max)) { 23 | return fallback; 24 | } 25 | if (max < boundMin) { 26 | return fallback; 27 | } 28 | if (max > boundMax) { 29 | return fallback; 30 | } 31 | return max; 32 | } 33 | 34 | export async function copyToClipboardWithHUD(content: string | number | Clipboard.Content) { 35 | await Clipboard.copy(content); 36 | showHUD("Copied to Clipboard"); 37 | } 38 | -------------------------------------------------------------------------------- /src/lib/utils.ts: -------------------------------------------------------------------------------- 1 | import { Clipboard, LaunchType, Toast, environment, showToast } from "@raycast/api"; 2 | 3 | export async function showErrorToast(message: string, title?: string): Promise { 4 | if (environment.launchType === LaunchType.Background) { 5 | // don't show in background schedule otherwise we will get an exception 6 | console.error("showErrorToast can not be launch in Background"); 7 | return; 8 | } 9 | const t = title || "Something went wrong"; 10 | showToast({ 11 | style: Toast.Style.Failure, 12 | title: t, 13 | message: message, 14 | primaryAction: { 15 | title: "Copy Error Message", 16 | onAction: (toast) => Clipboard.copy(`${t}: ${toast.message ?? ""}`), 17 | shortcut: { modifiers: ["cmd", "shift"], key: "c" }, 18 | }, 19 | }); 20 | } 21 | 22 | // eslint-disable-next-line @typescript-eslint/no-explicit-any 23 | export function getErrorMessage(error: unknown | any): string { 24 | if (error instanceof Error) { 25 | return error.message; 26 | } else { 27 | if (typeof error === "string") { 28 | return error as string; 29 | } 30 | return "Unknown Error"; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/components/action/maps.tsx: -------------------------------------------------------------------------------- 1 | import { Icon, Action as RCAction, showHUD } from "@raycast/api"; 2 | import { Action } from "."; 3 | import { getErrorMessage, showErrorToast } from "../../lib/utils"; 4 | import { Coordinates, MapType, MapsQuery, openInMaps } from "../../lib/maps"; 5 | 6 | export interface ActionOpenInMapsProps extends Omit { 7 | /** The title displayed for submenu. */ 8 | title?: string; 9 | /** The coordinate of the location which should be shown. */ 10 | coordinates?: Coordinates; 11 | /** Which map type should be used like `Satellite` */ 12 | mapType?: MapType; 13 | } 14 | 15 | /** Use {@link Action.OpenMaps} instead */ 16 | export function ActionOpenInMaps({ title, icon, coordinates, mapType, ...restProps }: ActionOpenInMapsProps) { 17 | const onAction = async () => { 18 | try { 19 | const query: MapsQuery = { 20 | coordinates, 21 | mapType, 22 | }; 23 | showHUD("Open Maps"); 24 | await openInMaps(query); 25 | } catch (error) { 26 | showErrorToast(getErrorMessage(error)); 27 | } 28 | }; 29 | return ; 30 | } 31 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@raycast-community/ui", 3 | "description": "Components and Utils for Raycast extensions", 4 | "version": "0.1.1", 5 | "author": "tonka3000", 6 | "license": "MIT", 7 | "main": "dist/index.js", 8 | "types": "dist/index.d.ts", 9 | "peerDependencies": { 10 | "@raycast/api": ">=1.64.0" 11 | }, 12 | "keywords": [ 13 | "Raycast", 14 | "utilities", 15 | "extensions" 16 | ], 17 | "files": [ 18 | "dist", 19 | "README.md" 20 | ], 21 | "devDependencies": { 22 | "@raycast/api": "1.64.0", 23 | "@types/node": "^20.8.10", 24 | "@types/react": "^18.2.27", 25 | "@typescript-eslint/eslint-plugin": "6.7.5", 26 | "@typescript-eslint/parser": "6.7.5", 27 | "eslint": "^8.56.0", 28 | "eslint-config-prettier": "9.0.0", 29 | "eslint-plugin-import": "2.28.1", 30 | "eslint-plugin-jest": "27.4.2", 31 | "eslint-plugin-prettier": "5.0.0", 32 | "eslint-plugin-react-hooks": "4.6.0", 33 | "prettier": "^3.0.3", 34 | "typescript": "^5.2.2" 35 | }, 36 | "scripts": { 37 | "build": "tsc", 38 | "buildray": "ray build -e dist", 39 | "dev": "tsc --watch", 40 | "lint": "eslint src/", 41 | "prettier": "prettier --check src docs/**.md *.md", 42 | "fix-prettier": "prettier --write src docs/**.md *.md", 43 | "test": "npm run lint", 44 | "prepublishOnly": "npm run build && npm test" 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /tests/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://www.raycast.com/schemas/extension.json", 3 | "name": "raycastui-tests", 4 | "title": "RaycastUI Tests", 5 | "description": "This is a test extension for RaycastUI", 6 | "icon": "command-icon.png", 7 | "author": "tonka3000", 8 | "license": "MIT", 9 | "commands": [ 10 | { 11 | "name": "test", 12 | "title": "Test", 13 | "description": "Test Command", 14 | "mode": "view" 15 | }, 16 | { 17 | "name": "menucmd", 18 | "title": "Menu", 19 | "description": "A test menu command", 20 | "mode": "menu-bar" 21 | }, 22 | { 23 | "name": "menuonly", 24 | "title": "Menu Only", 25 | "description": "A test menu command with only the root menu", 26 | "mode": "menu-bar" 27 | } 28 | ], 29 | "dependencies": { 30 | "@raycast/api": "^1.64.5", 31 | "@raycast-community/ui": "file:../" 32 | }, 33 | "devDependencies": { 34 | "@raycast/eslint-config": "^1.0.6", 35 | "@types/node": "20.8.10", 36 | "@types/react": "18.2.27", 37 | "eslint": "^8.51.0", 38 | "prettier": "^3.0.3", 39 | "typescript": "^5.2.2" 40 | }, 41 | "scripts": { 42 | "build": "ray build -e dist", 43 | "watch-build" : "tsc --watch --noEmit", 44 | "dev": "ray develop", 45 | "fix-lint": "ray lint --fix", 46 | "lint": "ray lint", 47 | "publish": "npx @raycast/api@latest publish" 48 | } 49 | } -------------------------------------------------------------------------------- /src/components/action/preferences.tsx: -------------------------------------------------------------------------------- 1 | import { openCommandPreferences, Action as RCAction, Icon } from "@raycast/api"; 2 | import { Action } from "."; 3 | import { showErrorToast, getErrorMessage } from "../../lib/utils"; 4 | 5 | export interface ActionOpenExtensionPreferencesProps extends Omit { 6 | title?: string; 7 | } 8 | 9 | /** Use {@link Action.OpenExtensionPreferences} instead */ 10 | export function ActionOpenExtensionPreferences({ title, icon, ...restProps }: ActionOpenExtensionPreferencesProps) { 11 | const onAction = async () => { 12 | try { 13 | await openCommandPreferences(); 14 | } catch (error) { 15 | showErrorToast(getErrorMessage(error), "Could not launch Configure Extension Command"); 16 | } 17 | }; 18 | return ; 19 | } 20 | 21 | export interface ActionOpenCommandPreferencesProps extends Omit { 22 | title?: string; 23 | } 24 | 25 | /** Use {@link Action.OpenCommandPreferences} instead */ 26 | export function ActionOpenCommandPreferences({ title, icon, ...restProps }: ActionOpenCommandPreferencesProps) { 27 | const onAction = async () => { 28 | try { 29 | await openCommandPreferences(); 30 | } catch (error) { 31 | showErrorToast(getErrorMessage(error), "Could not launch Configure Command"); 32 | } 33 | }; 34 | return ; 35 | } 36 | -------------------------------------------------------------------------------- /src/lib/rctypes.ts: -------------------------------------------------------------------------------- 1 | import { LaunchType } from "@raycast/api"; 2 | 3 | export interface Arguments { 4 | /** 5 | * The representation of arguments given that key here is the `name` defined in manifest file and value is the user's input 6 | */ 7 | // eslint-disable-next-line @typescript-eslint/no-explicit-any 8 | [item: string]: any; 9 | } 10 | 11 | export interface LaunchContext { 12 | /** 13 | * The context values for a command launch. 14 | */ 15 | // eslint-disable-next-line @typescript-eslint/no-explicit-any 16 | [item: string]: any; 17 | } 18 | 19 | export type InterExtensionLaunchOptions = IntraExtensionLaunchOptions & { 20 | /** when launching command from a different extension, the owner or author (as defined in the extension's manifest) is necessary */ 21 | ownerOrAuthorName: string; 22 | /** when launching command from a different extension, the extension name (as defined in the extension's manifest) is necessary */ 23 | extensionName: string; 24 | }; 25 | 26 | /** 27 | * Options for launching a command from the same extension. 28 | */ 29 | export type IntraExtensionLaunchOptions = { 30 | /** command name as defined in the extension's manifest */ 31 | name: string; 32 | /** {@link LaunchType.UserInitiated} or {@link LaunchType.Background} */ 33 | type: LaunchType; 34 | /** optional object for the argument properties and values as defined in the extension's manifest, for example: `{ "argument1": "value1" }` */ 35 | arguments?: Arguments | null; 36 | /** arbitrary object for custom data that should be passed to the command and accessible as `environment.launchContext`; the object must be JSON serializable (Dates and Buffers supported) */ 37 | context?: LaunchContext | null; 38 | /** optional string to send as fallback text to the command */ 39 | fallbackText?: string | null; 40 | }; 41 | 42 | export type LaunchOptions = IntraExtensionLaunchOptions | InterExtensionLaunchOptions; 43 | -------------------------------------------------------------------------------- /src/components/menu/section.tsx: -------------------------------------------------------------------------------- 1 | import { MenuBarExtra as RCMenuBarExtra } from "@raycast/api"; 2 | import React, { Children, ReactNode } from "react"; 3 | import { joinNonEmpty } from "./utils"; 4 | 5 | interface ElementLimit { 6 | /** This function is called when there are more then max elements. 7 | * The given component will be shown as menu item. 8 | */ 9 | moreElement?: (hidden: number) => JSX.Element | null; 10 | /** Maximum number of children */ 11 | max?: number; 12 | } 13 | 14 | export interface MenuBarSectionProps extends RCMenuBarExtra.Props { 15 | subtitle?: string; 16 | /** The separator which will be used when a subtitle is set */ 17 | titleSeparator?: string; 18 | /** Set the children limits */ 19 | childrenLimit?: ElementLimit; 20 | } 21 | 22 | /** 23 | * Use {@link MenuBarExtra.Section} instead 24 | */ 25 | export function MenuBarSection({ 26 | title: inTitle, 27 | subtitle, 28 | children, 29 | childrenLimit, 30 | titleSeparator, 31 | }: MenuBarSectionProps) { 32 | const sep = titleSeparator && titleSeparator.trim().length > 0 ? titleSeparator.trim() : ""; 33 | const title = joinNonEmpty( 34 | [inTitle, subtitle].filter((e) => e), 35 | ` ${sep} `, 36 | ); 37 | const { shown, hidden } = shownElements(children, childrenLimit?.max); 38 | if (Children.count(children) <= 0) { 39 | return null; 40 | } 41 | return ( 42 | 43 | {shown} 44 | {hidden > 0 && childrenLimit?.moreElement && childrenLimit?.moreElement(hidden)} 45 | 46 | ); 47 | } 48 | 49 | function shownElements(elements?: ReactNode, maxElements?: number): { shown?: ReactNode; hidden: number } { 50 | if (!maxElements) { 51 | return { shown: elements, hidden: 0 }; 52 | } 53 | if (React.isValidElement(elements)) { 54 | return { shown: [elements], hidden: 0 }; 55 | } 56 | const els = elements as JSX.Element[] | undefined; 57 | if (!els || els.length <= 0) { 58 | return { shown: undefined, hidden: 0 }; 59 | } 60 | const maxShown = maxElements || 10; 61 | const shown = els.slice(0, maxShown); 62 | const hidden = els.length - shown.length; 63 | return { shown, hidden }; 64 | } 65 | -------------------------------------------------------------------------------- /tests/src/test.tsx: -------------------------------------------------------------------------------- 1 | import { ActionPanel, List } from "@raycast/api"; 2 | import { Action } from "@raycast-community/ui"; 3 | 4 | export default function MyTest() { 5 | return ( 6 | 7 | 8 | 12 | v.toPrecision(2)} 17 | onValueChanged={(v) => console.log(`Number changed to ${v}`)} 18 | enableCustomNumber={true} 19 | /> 20 | console.log(`Number changed to ${v}`)} 25 | /> 26 | console.log(`Number changed to ${v}`)} 32 | /> 33 | console.log(`Number changed to ${v}`)} 39 | enableCustomNumber={true} 40 | /> 41 | `${v.toPrecision(2)} °C`} 45 | onValueChanged={(v) => console.log(`Number changed to ${v}`)} 46 | enableCustomNumber={true} 47 | /> 48 | 49 | } 50 | /> 51 | 55 | 56 | 57 | 58 | } 59 | /> 60 | 64 | 65 | 66 | 67 | } 68 | /> 69 | 70 | 71 | ); 72 | } 73 | -------------------------------------------------------------------------------- /tests/src/menucmd.tsx: -------------------------------------------------------------------------------- 1 | import { LaunchType, showHUD } from "@raycast/api"; 2 | import { MenuBarExtra } from "@raycast-community/ui"; 3 | 4 | export default function MenuCommand() { 5 | return ( 6 | 7 | showHUD("Simple Item")} /> 8 | 9 | {}} /> 10 | 11 | 12 | showHUD(`Long Text`)} 16 | /> 17 | {}} 21 | /> 22 | {}} 27 | /> 28 | 29 | 30 | {}} /> 31 | 32 | 33 | {}} /> 34 | 35 | {/* Is not visible if there are not children*/} 36 | ( 41 | showHUD(`You have ${hidden} hidden elements`)} /> 42 | ), 43 | }} 44 | > 45 | {Array.from(Array(10).keys()).map((i) => ( 46 | {}} /> 47 | ))} 48 | 49 | 50 | 51 | 52 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | ); 76 | } 77 | -------------------------------------------------------------------------------- /src/components/action/index.tsx: -------------------------------------------------------------------------------- 1 | import { Action as RCAction } from "@raycast/api"; 2 | import { 3 | ActionOpenCommandPreferences, 4 | ActionOpenCommandPreferencesProps, 5 | ActionOpenExtensionPreferences, 6 | ActionOpenExtensionPreferencesProps, 7 | } from "./preferences"; 8 | import { ActionNumeric, ActionNumericProps } from "./numeric"; 9 | import { ActionOpenInMaps, ActionOpenInMapsProps } from "./maps"; 10 | 11 | interface ActionProps extends RCAction.Props {} 12 | 13 | const Action: React.FC & { 14 | /** 15 | * Open the current Extension Preferences 16 | * 17 | * @example 18 | * ```tsx 19 | * import { ActionPanel, List } from "@raycast/api"; 20 | * import { Action } from "@raycast-community/ui"; 21 | * 22 | * export default function Command() { 23 | * return ( 24 | * 25 | * 29 | * 30 | * 31 | * } 32 | * /> 33 | * 34 | * ); 35 | * } 36 | * ``` 37 | */ 38 | OpenExtensionPreferences: typeof ActionOpenExtensionPreferences; 39 | /** 40 | * Open the current Command Preferences 41 | * 42 | * @example 43 | * ```tsx 44 | * import { ActionPanel, List } from "@raycast/api"; 45 | * import { Action } from "@raycast-community/ui"; 46 | * 47 | * export default function Command() { 48 | * return ( 49 | * 50 | * 54 | * 55 | * 56 | * } 57 | * /> 58 | * 59 | * ); 60 | * } 61 | * ``` 62 | */ 63 | OpenCommandPreferences: typeof ActionOpenCommandPreferences; 64 | /** 65 | * @experimental 66 | * 67 | * Select a number via an Action.Submenu 68 | * 69 | * @example 70 | * ```tsx 71 | * import { ActionPanel, List } from "@raycast/api"; 72 | * import { Action } from "@raycast-community/ui"; 73 | * 74 | * export default function Command() { 75 | * return ( 76 | * 77 | * 78 | * 82 | * console.log(`Number changed to ${v}`)} 87 | * /> 88 | * 89 | * } 90 | * /> 91 | * 92 | * 93 | * ); 94 | * } 95 | * ``` 96 | */ 97 | Numeric: typeof ActionNumeric; 98 | /** 99 | * Open Apple Maps 100 | */ 101 | OpenMaps: typeof ActionOpenInMaps; 102 | } = (props) => { 103 | return ; 104 | }; 105 | Action.OpenExtensionPreferences = ActionOpenExtensionPreferences; 106 | Action.OpenCommandPreferences = ActionOpenCommandPreferences; 107 | Action.Numeric = ActionNumeric; 108 | Action.OpenMaps = ActionOpenInMaps; 109 | 110 | namespace Action { 111 | export type Props = ActionProps; 112 | 113 | export namespace OpenExtensionPreferences { 114 | export type Props = ActionOpenExtensionPreferencesProps; 115 | } 116 | export namespace OpenCommandPreferences { 117 | export type Props = ActionOpenCommandPreferencesProps; 118 | } 119 | export namespace Numeric { 120 | export type Props = ActionNumericProps; 121 | } 122 | export namespace OpenMaps { 123 | export type Props = ActionOpenInMapsProps; 124 | } 125 | } 126 | 127 | export { Action }; 128 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # RaycastUI 2 | 3 | Ready to use [Raycast](https://raycast.com) Components. 4 | 5 | The components are based on native Raycast components (`@raycast/api`), but they are offer more functionality. 6 | Some components are specifically designed for particular use cases, such as `MenuBarExtra.RootOnly`. 7 | 8 | ⚠️ This is not(!) an official Raycast library ⚠️ 9 | 10 | ## Why RaycastUI? 11 | 12 | Raycast's native components are awesome, and you can build a lot of stuff with them. 13 | After developing many extensions, I found myself rebuilding the same components repeatedly. 14 | While some parts may eventually be added to the native components over time, some are out of the scope of `@raycast/api` in my opinion. 15 | This library is here to address these needs. 16 | 17 | ## How to install 18 | 19 | `npm install @raycast-community/ui` 20 | 21 | ## Requirements 22 | 23 | Minimum Raycast API version `1.64.0`. The minimum version may increase over time to support the latest features. 24 | 25 | ## Versioning 26 | 27 | This library is still in development. I try not to break existing features, but it can happen. 28 | I would recommend setting the `@raycast-community/ui` in `package.json` to `~` (for only upgrading the fix versions) for now, instead of the common `^`prefix (which automatically updates every minor version)! 29 | 30 | e.g. `"@raycast-community/ui": "~0.1"` 31 | 32 | ## How to use 33 | 34 | The components are mainly structured as you know them from Raycast itself and can be used mixed with native components. 35 | 36 | ### Mixing with @raycast/api 37 | 38 | You can mix the components with the native ones. 39 | It is recommended to prefix the component upon import to avoid naming collision when mixing Raycast native components with RaycastUI components. 40 | 41 | This can be done in various ways like following ... 42 | 43 | ```tsx 44 | import * as rui from "@raycast-community/ui"; 45 | ``` 46 | 47 | ```tsx 48 | import { Action as RUIAction } from "@raycast-community/ui"; 49 | ``` 50 | 51 | ```tsx 52 | import { Action as RCAction } from "@raycast/api"; // alias Raycast native components 53 | import { Action } from "@raycast-community/ui"; // use RaycastUI without alias 54 | ``` 55 | 56 | ### Reference 57 | 58 | You can find an API reference for all components [here](docs/index.md) 59 | 60 | ### Examples 61 | 62 | Check out the [test commands](tests/src) in this repository to see how to use the components. 63 | 64 | You can clone this repository and build it yourself to play around with different components from the library. 65 | 66 | ### Numeric Action Example 67 | 68 | ```tsx 69 | import { ActionPanel, List } from "@raycast/api"; 70 | import { Action } from "@raycast-community/ui"; 71 | 72 | export default function Command() { 73 | return ( 74 | 75 | 76 | 80 | console.log(`Number changed to ${v}`)} 85 | /> 86 | 87 | } 88 | /> 89 | 90 | 91 | ); 92 | } 93 | ``` 94 | 95 | ### Menu Command Example 96 | 97 | ```tsx 98 | import { LaunchType, showHUD } from "@raycast/api"; 99 | import { MenuBarExtra } from "@raycast-community/ui"; 100 | 101 | export default function MenuCommand() { 102 | return ( 103 | 104 | showHUD("Child Menu from Menubar")} 108 | /> 109 | 110 | 111 | 112 | 113 | 114 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | ); 129 | } 130 | ``` 131 | 132 | ## Development 133 | 134 | To build the library you need to call `npm ci && npm run build`. 135 | 136 | Go to the [tests](tests) directory and build it to be able to test the components. Don't forget to build the library first before using the tests! 137 | 138 | Build it via `cd tests && npm ci && npm run build` 139 | 140 | ## License 141 | 142 | [MIT](LICENSE) 143 | -------------------------------------------------------------------------------- /src/components/action/numeric.tsx: -------------------------------------------------------------------------------- 1 | import { ActionPanel, Icon } from "@raycast/api"; 2 | import { Action } from "."; 3 | import { useState } from "react"; 4 | 5 | function numberArray(min: number, max: number, step: number): number[] { 6 | const result: number[] = []; 7 | 8 | if (step <= 0) { 9 | throw new Error("Step value must be greater than zero"); 10 | } 11 | 12 | if (min > max) { 13 | throw new Error("Minimum value cannot be greater than maximum value"); 14 | } 15 | 16 | for (let i = min; i <= max; i += step) { 17 | result.push(i); 18 | } 19 | 20 | return result; 21 | } 22 | 23 | export interface NumericRange { 24 | min: number; 25 | max: number; 26 | steps?: number; 27 | } 28 | 29 | export interface NumericBoundary { 30 | value: number; 31 | reachable?: boolean; 32 | } 33 | 34 | export interface NumericRangeBoundary { 35 | min?: NumericBoundary; 36 | max?: NumericBoundary; 37 | } 38 | 39 | function isNumericRange(object: NumericValues) { 40 | if (typeof object !== "object") { 41 | return false; 42 | } 43 | // eslint-disable-next-line @typescript-eslint/no-explicit-any 44 | const o = object as any; 45 | return o.min !== undefined && o.max !== undefined; 46 | } 47 | 48 | export type NumericValues = number[] | NumericRange; 49 | 50 | export interface ActionNumericProps extends ActionPanel.Submenu.Props { 51 | /** The limits of the value */ 52 | limits?: NumericRangeBoundary; 53 | /** Values which a user can choose from */ 54 | predefined?: NumericValues; 55 | /** The default which will be shown as the first value in the list */ 56 | defaultValue?: number; 57 | /** The given string will be shown at the of the default value to indicate the default value */ 58 | defaultMarker?: string; 59 | /** The given function will be used to convert a number to a string. Custom formatting can be applied here. */ 60 | onFormat?: (value: number) => string; 61 | /** Enable custom number. When true the user search-text will be added to the input at the top if it is a valid number */ 62 | enableCustomNumber?: boolean; 63 | /** Function will be called when a user has selected a value */ 64 | onValueChanged?: (value: number) => void; 65 | } 66 | 67 | function extractNumbers(value: NumericValues): number[] { 68 | if (Array.isArray(value)) { 69 | if (value.length <= 0) { 70 | return []; 71 | } 72 | if (value.every((item) => typeof item === "number")) { 73 | const nums = value as number[]; 74 | return nums; 75 | } 76 | } 77 | if (isNumericRange(value)) { 78 | const r = value as NumericRange; 79 | const [start, stop] = r.min > r.max ? [r.max, r.min] : [r.min, r.max]; 80 | const steps = r.steps === undefined || r.steps === null ? 10 : r.steps; 81 | const stepSize = (stop - start) / steps; 82 | return numberArray(start, stop, stepSize); 83 | } 84 | return []; 85 | } 86 | 87 | function valueUnderLimit(value: number, boundary: NumericBoundary) { 88 | const reachable = boundary.reachable === false ? false : true; 89 | if (reachable) { 90 | return value <= boundary.value; 91 | } else { 92 | return value < boundary.value; 93 | } 94 | } 95 | 96 | function valueOverLimit(value: number, boundary: NumericBoundary) { 97 | const reachable = boundary.reachable === false ? false : true; 98 | if (reachable) { 99 | return value >= boundary.value; 100 | } else { 101 | return value > boundary.value; 102 | } 103 | } 104 | 105 | function inBoundary(value: number, boundary: NumericRangeBoundary | undefined) { 106 | if (!boundary) { 107 | return true; 108 | } 109 | if (boundary.min) { 110 | if (valueUnderLimit(value, boundary.min)) { 111 | return false; 112 | } 113 | } 114 | if (boundary.max) { 115 | if (valueOverLimit(value, boundary.max)) { 116 | return false; 117 | } 118 | } 119 | return true; 120 | } 121 | 122 | /** 123 | * @experimental 124 | * 125 | * Select a number 126 | * 127 | * @example 128 | * ```typescript 129 | * import * as rui from "@raycast-community/ui"; 130 | * 131 | * v.toPrecision(2)} 137 | * onNumberChanged={(v) => console.log(`Number changed to ${v}`)} 138 | * enableCustomNumber={true} 139 | * /> 140 | * ``` 141 | */ 142 | export function ActionNumeric({ 143 | onFormat, 144 | limits, 145 | icon, 146 | predefined, 147 | defaultValue, 148 | defaultMarker: defaultMarkerCaller, 149 | enableCustomNumber, 150 | onValueChanged, 151 | ...restProps 152 | }: ActionNumericProps) { 153 | let numbers = (predefined ? extractNumbers(predefined) : []).filter((e) => inBoundary(e, limits)); 154 | if (defaultValue !== undefined && defaultValue !== null) { 155 | const defaultExists = numbers.find((e) => e === defaultValue) !== undefined; 156 | if (defaultExists) { 157 | numbers = numbers.filter((e) => e !== defaultValue); 158 | } 159 | numbers = [defaultValue, ...numbers]; // show default as first value because ActionPanel.Submenu has no selection mechanism 160 | } 161 | const format = onFormat ? onFormat : (value: number) => value.toString(); 162 | const [customNumber, setCustomNumber] = useState(); 163 | const [filterNumbers, setFilterNumbers] = useState(numbers); 164 | const onSearchTextChange = (searchText: string) => { 165 | const ttext = searchText.trim(); 166 | const filtered = numbers.filter((e) => format(e).includes(ttext)); 167 | if (filtered && filtered.length > 0) { 168 | setFilterNumbers(filtered); 169 | } else { 170 | setFilterNumbers([]); 171 | } 172 | if (enableCustomNumber) { 173 | const n = Number(ttext); 174 | if (ttext.length <= 0 || isNaN(n)) { 175 | setCustomNumber(undefined); 176 | } else { 177 | setCustomNumber(n); 178 | } 179 | } 180 | }; 181 | 182 | const onAction = (value: number) => { 183 | if (onValueChanged) { 184 | if (inBoundary(value, limits)) onValueChanged(value); 185 | } 186 | }; 187 | 188 | const defaultMarker = defaultMarkerCaller ? defaultMarkerCaller : "(Default)"; 189 | 190 | return ( 191 | 192 | {customNumber !== undefined && inBoundary(customNumber, limits) && ( 193 | onAction(customNumber)} /> 194 | )} 195 | {filterNumbers?.map((e) => ( 196 | onAction(e)} 200 | /> 201 | ))} 202 | 203 | ); 204 | } 205 | -------------------------------------------------------------------------------- /src/components/menu/item.tsx: -------------------------------------------------------------------------------- 1 | import { 2 | Clipboard, 3 | Icon, 4 | Image, 5 | Keyboard, 6 | MenuBarExtra as RCMenuBarExtra, 7 | environment, 8 | launchCommand, 9 | open, 10 | openCommandPreferences, 11 | showHUD, 12 | } from "@raycast/api"; 13 | import { showErrorToast, getErrorMessage } from "../../lib/utils"; 14 | import { LaunchOptions } from "../../lib/rctypes"; 15 | import { copyToClipboardWithHUD } from "./utils"; 16 | import { Coordinates, MapType, MapsQuery, openInMaps } from "../../lib/maps"; 17 | 18 | function shouldClip(text: string, maxLength: number = 100) { 19 | const ml = maxLength > 0 ? maxLength : 100; 20 | return text.length > ml; 21 | } 22 | 23 | function clipText(text: string, maxLength: number = 100) { 24 | const ml = maxLength > 0 ? maxLength : 100; 25 | if (text.length > ml) { 26 | return text.slice(0, ml) + " ..."; 27 | } 28 | return text; 29 | } 30 | 31 | export interface TextLimitProps { 32 | maxLength: number; 33 | /** Show the full title as tooltip if the text is clipped. Default is true */ 34 | autoTooltip?: boolean; 35 | } 36 | 37 | export interface MenuBarItemProps { 38 | // no props from Raycast (1.66.2) 39 | title: string; 40 | subtitle?: string; 41 | icon?: Image.ImageLike; 42 | shortcut?: Keyboard.Shortcut | undefined; 43 | onAction?: ((event: object) => void) | undefined; 44 | tooltip?: string; 45 | /** Clip text if defined */ 46 | textLimits?: TextLimitProps; 47 | } 48 | 49 | /** Use {@link MenuBarExtra.Item} instead */ 50 | const MenuBarItem: React.FC = ({ title, textLimits, tooltip, ...restProps }) => { 51 | const maxLength = textLimits?.maxLength || 100; 52 | const clipped = shouldClip(title, maxLength); 53 | const getTooltip = () => { 54 | if (tooltip) { 55 | return tooltip; 56 | } 57 | if (textLimits) { 58 | const att = textLimits.autoTooltip; 59 | if ((att === undefined || att === true) && clipped) { 60 | return title; 61 | } 62 | } 63 | }; 64 | 65 | return ; 66 | }; 67 | 68 | export interface MenuBarItemConfigureCommandProps extends Omit { 69 | /** The title displayed for the item */ 70 | title?: string; 71 | } 72 | 73 | /** 74 | * Use {@link MenuBarExtra.ConfigureCommand} instead 75 | */ 76 | export function MenuBarItemConfigureCommand({ 77 | title, 78 | shortcut, 79 | icon, 80 | ...restProps 81 | }: MenuBarItemConfigureCommandProps): JSX.Element { 82 | return ( 83 | openCommandPreferences()} 88 | {...restProps} 89 | /> 90 | ); 91 | } 92 | 93 | export interface MenuBarOpenExtensionPreferencesItemProps extends Omit { 94 | title?: string; 95 | } 96 | 97 | /** 98 | * Use {@link MenuBarExtra.ConfigureExtension} instead 99 | */ 100 | export function MenuBarOpenExtensionPreferencesItem({ 101 | title, 102 | icon, 103 | shortcut, 104 | ...restProps 105 | }: MenuBarOpenExtensionPreferencesItemProps) { 106 | const onAction = async () => { 107 | environment.commandName; 108 | try { 109 | await openCommandPreferences(); 110 | } catch (error) { 111 | showErrorToast(getErrorMessage(error), "Could not launch Configure Extension Command"); 112 | console.log(error); 113 | } 114 | }; 115 | return ( 116 | 123 | ); 124 | } 125 | 126 | export interface MenuBarOpenInBrowserItemProps extends Omit { 127 | /** This url which should be opened */ 128 | url: string; 129 | /** The title of the item */ 130 | title?: string; 131 | /** Callback when the URL was opened in the browser */ 132 | onOpen?: (url: string) => void; 133 | } 134 | 135 | /** Use {@link MenuBarExtra.OpenInBrowser} instead */ 136 | export function MenuBarOpenInBrowserItem({ title, url, onOpen, icon, ...restProps }: MenuBarOpenInBrowserItemProps) { 137 | const onAction = () => { 138 | open(url) 139 | .then(() => { 140 | if (onOpen) { 141 | onOpen(url); 142 | } 143 | }) 144 | .catch((error) => showErrorToast(getErrorMessage(error))); 145 | }; 146 | return ( 147 | 153 | ); 154 | } 155 | 156 | export interface MenuBarLaunchCommandItemProps extends MenuBarItemProps { 157 | /** The command + options which should be launched */ 158 | command: LaunchOptions; 159 | } 160 | 161 | /** Use {@link MenubarExtra.LaunchCommand} instead */ 162 | export function MenuBarLaunchCommandItem({ title, command, icon, ...restProps }: MenuBarLaunchCommandItemProps) { 163 | const onAction = async () => { 164 | try { 165 | await launchCommand(command); 166 | } catch (error) { 167 | showErrorToast(getErrorMessage(error)); 168 | } 169 | }; 170 | return ( 171 | 177 | ); 178 | } 179 | 180 | export interface MenuBarCopyToClipboardProps extends Omit { 181 | /** The contents that will be copied to the clipboard */ 182 | content: string | number | Clipboard.Content; 183 | /** The title displayed for the item */ 184 | title?: string; 185 | } 186 | 187 | /** Use {@link MenuBarExtra.CopyToClipboard} instead */ 188 | export function MenuBarCopyToClipboard({ content, title, icon, onAction, ...restProps }: MenuBarCopyToClipboardProps) { 189 | const copyToClipboard = async () => { 190 | try { 191 | await copyToClipboardWithHUD(content); 192 | } catch (error) { 193 | showErrorToast(getErrorMessage(error)); 194 | } 195 | }; 196 | return ( 197 | 203 | ); 204 | } 205 | 206 | export interface MenuBarOpenMapsProps extends Omit { 207 | /** The title displayed for the item */ 208 | title?: string; 209 | /** The coordinate of the location which should be shown */ 210 | coordinates?: Coordinates; 211 | /** Which map type should be used like `Satellite` */ 212 | mapType?: MapType; 213 | } 214 | 215 | /** Use {@link MenuBarExtra.OpenMaps} instead */ 216 | export function MenuBarOpenMaps({ title, icon, coordinates, mapType, ...restProps }: MenuBarOpenMapsProps) { 217 | const onAction = async () => { 218 | try { 219 | const query: MapsQuery = { 220 | coordinates, 221 | mapType, 222 | }; 223 | showHUD("Open Maps"); 224 | await openInMaps(query); 225 | } catch (error) { 226 | showErrorToast(getErrorMessage(error)); 227 | } 228 | }; 229 | return ; 230 | } 231 | 232 | export { MenuBarItem }; 233 | -------------------------------------------------------------------------------- /src/components/menu/index.tsx: -------------------------------------------------------------------------------- 1 | export * from "./root"; 2 | export * from "./item"; 3 | export * from "./section"; 4 | export * from "./submenu"; 5 | import { LaunchType, MenuBarExtra as RCMenuBarExtra, environment } from "@raycast/api"; 6 | import { MenuBarRoot, MenuBarRootProps } from "./root"; 7 | import { 8 | MenuBarCopyToClipboard, 9 | MenuBarCopyToClipboardProps, 10 | MenuBarItem, 11 | MenuBarItemConfigureCommand, 12 | MenuBarItemConfigureCommandProps, 13 | MenuBarItemProps, 14 | MenuBarLaunchCommandItem, 15 | MenuBarLaunchCommandItemProps, 16 | MenuBarOpenExtensionPreferencesItem, 17 | MenuBarOpenExtensionPreferencesItemProps, 18 | MenuBarOpenInBrowserItem, 19 | MenuBarOpenInBrowserItemProps, 20 | MenuBarOpenMaps, 21 | MenuBarOpenMapsProps, 22 | } from "./item"; 23 | import { MenuBarSection, MenuBarSectionProps } from "./section"; 24 | import { MenuBarSubmenu, MenuBarSubmenuProps } from "./submenu"; 25 | 26 | interface MenuBarExtraOnlyProps extends Omit { 27 | onAction?: () => void; 28 | } 29 | 30 | function MenuBarExtraOnlyFunction(props: { onAction: () => void }) { 31 | if (environment.launchType === LaunchType.UserInitiated) { 32 | props.onAction(); 33 | } 34 | return null; 35 | } 36 | 37 | /** Use {@link MenuBarExtra.RootOnly} instead */ 38 | function MenuBarExtraOnly({ onAction, ...restProps }: MenuBarExtraOnlyProps) { 39 | return {onAction && }; 40 | } 41 | 42 | interface MenuBarExtraProps extends RCMenuBarExtra.Props { 43 | children?: React.ReactNode; 44 | } 45 | 46 | const MenuBarExtra: React.FC & { 47 | /** 48 | * An item in the {@link MenuBarExtra} or {@link MenuBarExtra.Submenu}. 49 | * 50 | * @example 51 | * ```tsx 52 | * import { MenuBarExtra } from "@raycast-community/ui"; 53 | * import { LaunchType, showHUD } from "@raycast/api"; 54 | * 55 | * export default function MenuCommand() { 56 | * return ( 57 | * 58 | * showHUD("Child Menu from Menubar")} 62 | * /> 63 | * ); 64 | * } 65 | */ 66 | Item: typeof MenuBarItem; 67 | /** 68 | * Menubar Section. The section will be shown when there is at least one child. 69 | * 70 | * @example 71 | * ```tsx 72 | * import { MenuBarExtra } from "@raycast-community/ui"; 73 | * 74 | * export default function MenuCommand() { 75 | * return ( 76 | * 77 | * 78 | * 79 | * 80 | * 81 | * ); 82 | * } 83 | * ``` 84 | */ 85 | Section: typeof MenuBarSection; 86 | /** 87 | * A group of related {@link MenuBarExtra.Item} or {@link MenuBarExtra.Submenu} 88 | * 89 | * @example 90 | * ```tsx 91 | * import { MenuBarExtra } from "@raycast-community/ui"; 92 | * 93 | * export default function MenuCommand() { 94 | * return ( 95 | * 96 | * 97 | * 98 | * 99 | * 100 | * ); 101 | * } 102 | * ``` 103 | */ 104 | Submenu: typeof MenuBarSubmenu; 105 | /** 106 | * @experimental 107 | * 108 | * Only show a MenubarExtra without any items. Start the given action on user click. 109 | * 110 | * Warning: The onAction will also get called on the command activation e.g. during loading or reloading. 111 | * 112 | * @example 113 | * ```tsx 114 | * import { MenuBarExtra } from "@raycast-community/ui"; 115 | * import { showHUD } from "@raycast/api"; 116 | * 117 | * export default function MenuCommand() { 118 | * return showHUD("Menu Clicked")} />; 119 | * } 120 | * ``` 121 | */ 122 | RootOnly: typeof MenuBarExtraOnly; 123 | /** 124 | * Open the given url in the default browser 125 | * 126 | * @example 127 | * ```tsx 128 | * import { MenuBarExtra } from "@raycast-community/ui"; 129 | * 130 | * export default function MenuCommand() { 131 | * return ( 132 | * 133 | * 134 | * 135 | * ); 136 | * } 137 | * ``` 138 | */ 139 | OpenInBrowser: typeof MenuBarOpenInBrowserItem; 140 | /** 141 | * Copy given content to the clipboard 142 | * 143 | * @example 144 | * ```tsx 145 | * import { MenuBarExtra } from "@raycast-community/ui"; 146 | * 147 | * export default function MenuCommand() { 148 | * return ( 149 | * 150 | * 151 | * 152 | * ); 153 | * } 154 | * ``` 155 | */ 156 | CopyToClipboard: typeof MenuBarCopyToClipboard; 157 | /** 158 | * Launch the given Raycast command {@link LaunchOptions} 159 | * 160 | * @example 161 | * ```tsx 162 | * import { MenuBarExtra } from "@raycast-community/ui"; 163 | * 164 | * export default function MenuCommand() { 165 | * return ( 166 | * 167 | * 174 | * 175 | * ); 176 | * } 177 | * ``` 178 | */ 179 | LaunchCommand: typeof MenuBarLaunchCommandItem; 180 | /** 181 | * Open the current Command Preferences 182 | * 183 | * @example 184 | * ```tsx 185 | * import { MenuBarExtra } from "@raycast-community/ui"; 186 | * 187 | * export default function MenuCommand() { 188 | * return ( 189 | * 190 | * 191 | * 192 | * ); 193 | * } 194 | * ``` 195 | * */ 196 | ConfigureCommand: typeof MenuBarItemConfigureCommand; 197 | /** 198 | * Open the current Extension Preferences 199 | * 200 | * @example 201 | * ```tsx 202 | * import { MenuBarExtra } from "@raycast-community/ui"; 203 | * 204 | * export default function MenuCommand() { 205 | * return ( 206 | * 207 | * 208 | * 209 | * ); 210 | * } 211 | * ``` 212 | */ 213 | ConfigureExtension: typeof MenuBarOpenExtensionPreferencesItem; 214 | /** Open Apple Maps 215 | * 216 | * @example 217 | * ```tsx 218 | * import { MenuBarExtra } from "@raycast-community/ui"; 219 | * 220 | * export default function MenuCommand() { 221 | * return ( 222 | * 223 | * 224 | * 225 | * 226 | * 227 | * 228 | * 229 | * ); 230 | * } 231 | * ``` 232 | */ 233 | OpenMaps: typeof MenuBarOpenMaps; 234 | } = ({ children, ...restProps }) => { 235 | return {children}; 236 | }; 237 | 238 | MenuBarExtra.Item = MenuBarItem; 239 | MenuBarExtra.Section = MenuBarSection; 240 | MenuBarExtra.Submenu = MenuBarSubmenu; 241 | MenuBarExtra.RootOnly = MenuBarExtraOnly; 242 | MenuBarExtra.OpenInBrowser = MenuBarOpenInBrowserItem; 243 | MenuBarExtra.CopyToClipboard = MenuBarCopyToClipboard; 244 | MenuBarExtra.LaunchCommand = MenuBarLaunchCommandItem; 245 | MenuBarExtra.ConfigureCommand = MenuBarItemConfigureCommand; 246 | MenuBarExtra.ConfigureExtension = MenuBarOpenExtensionPreferencesItem; 247 | MenuBarExtra.OpenMaps = MenuBarOpenMaps; 248 | 249 | namespace MenuBarExtra { 250 | export type Props = MenuBarRootProps; 251 | 252 | export namespace RootOnly { 253 | export type Props = MenuBarExtraOnlyProps; 254 | } 255 | 256 | export namespace Item { 257 | export type Props = MenuBarItemProps; 258 | } 259 | 260 | export namespace Section { 261 | export type Props = MenuBarSectionProps; 262 | } 263 | 264 | export namespace Submenu { 265 | export type Props = MenuBarSubmenuProps; 266 | } 267 | 268 | export namespace OpenInBrowser { 269 | export type Props = MenuBarOpenInBrowserItemProps; 270 | } 271 | 272 | export namespace CopyToClipboard { 273 | export type Props = MenuBarCopyToClipboardProps; 274 | } 275 | 276 | export namespace LaunchCommand { 277 | export type Props = MenuBarLaunchCommandItemProps; 278 | } 279 | 280 | export namespace ConfigureCommand { 281 | export type Props = MenuBarItemConfigureCommandProps; 282 | } 283 | 284 | export namespace ConfigureExtension { 285 | export type Props = MenuBarOpenExtensionPreferencesItemProps; 286 | } 287 | 288 | export namespace OpenMaps { 289 | export type Props = MenuBarOpenMapsProps; 290 | } 291 | } 292 | 293 | export { MenuBarExtra }; 294 | -------------------------------------------------------------------------------- /docs/actions.md: -------------------------------------------------------------------------------- 1 | # Actions 2 | 3 | ## API Reference 4 | 5 | ### Action 6 | 7 | A context-specific action that can be performed by the user. 8 | Assign keyboard shortcuts to items to make it easier for users to perform frequently used actions. 9 | 10 | > This action forward all props directly to the Raycast [Action](https://developers.raycast.com/api-reference/user-interface/actions#action) without any modification. 11 | 12 | #### Example 13 | 14 | ```tsx 15 | import { Action, List } from "@raycast-community/ui"; 16 | import { ActionPanel } from "@raycast/api"; 17 | 18 | export default function Command() { 19 | return ( 20 | 21 | 26 | console.log("Triggered")} /> 27 | 28 | } 29 | /> 30 | 31 | ); 32 | } 33 | ``` 34 | 35 | #### Props 36 | 37 | | Prop | Description | Type | Default | 38 | | --------- | ------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | 39 | | title\* | The title displayed for the Action. | `string` | - | 40 | | autoFocus | Indicates whether the Action should be focused automatically when the parent ActionPanel (or Actionpanel.Submenu) opens. | `boolean` | - | 41 | | icon | The icon displayed for the Action. | [Image.ImageLike](https://developers.raycast.com/api-reference/user-interface/icons-and-images#image.imagelike) | - | 42 | | shortcut | The keyboard shortcut for the Action. | [Keyboard.Shortcut](https://developers.raycast.com/api-reference/keyboard#keyboard.shortcut) | - | 43 | | style | Defines the visual style of the Action. | [Alert.ActionStyle](https://developers.raycast.com/api-reference/feedback/alert#alert.actionstyle) | [Action.Style.Regu](https://developers.raycast.com/api-reference/user-interface/actions#action.style) | 44 | | onAction | Callback that is triggered when the Action is selected. | `() => void` | - | 45 | 46 | ### Action.Numeric 47 | 48 | `🧪 Experimental` 49 | 50 | Action that let choose a number. 51 | You can define a list of possible options and/or the number which the user entered. 52 | 53 | #### Example 54 | 55 | ```tsx 56 | import { ActionPanel, List } from "@raycast/api"; 57 | import { Action } from "@raycast-community/ui"; 58 | 59 | export default function Command() { 60 | return ( 61 | 62 | 63 | 67 | console.log(`Number changed to ${v}`)} 72 | /> 73 | 74 | } 75 | /> 76 | 77 | 78 | ); 79 | } 80 | ``` 81 | 82 | #### Props 83 | 84 | | Prop | Description | Type | Default | 85 | | ------------------ | ------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------- | ------- | 86 | | title\* | The title displayed for the Action. | `string` | - | 87 | | icon | The icon displayed for the Action. | [Image.ImageLike](https://developers.raycast.com/api-reference/user-interface/icons-and-images#image.imagelike) | - | 88 | | shortcut | The keyboard shortcut for the Action. | [Keyboard.Shortcut](https://developers.raycast.com/api-reference/keyboard#keyboard.shortcut) | - | 89 | | limits | The limits of the value | `NumericRangeBoundary` | - | 90 | | predefined | Values which a user can choose from | `NumericValues` | - | 91 | | defaultValue | The default which will be shown as the first value in the list | `number` | - | 92 | | defaultMarker | The given string will be shown at the of the default value to indicate the default value | `string` | - | 93 | | onFormat | The given function will be used to convert a number to a string. Custom formatting can be applied here | `(value: number) => string` | - | 94 | | enableCustomNumber | When true the user search-text will be added to the input at the top if it is a valid number | `boolean` | - | 95 | | onValueChanged | Function will be called when a user has selected a value | `(value: number) => void` | - | 96 | 97 | ### Action.OpenExtensionPreferences 98 | 99 | Open the current Extension Preferences 100 | 101 | #### Example 102 | 103 | ```tsx 104 | import { ActionPanel, List } from "@raycast/api"; 105 | import { Action } from "@raycast-community/ui"; 106 | 107 | export default function Command() { 108 | return ( 109 | 110 | 114 | 115 | 116 | } 117 | /> 118 | 119 | ); 120 | } 121 | ``` 122 | 123 | #### Props 124 | 125 | | Prop | Description | Type | Default | 126 | | --------- | ------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | 127 | | title | The title displayed for the Action. | `string` | `Configure Extension` | 128 | | autoFocus | Indicates whether the Action should be focused automatically when the parent ActionPanel (or Actionpanel.Submenu) opens. | `boolean` | - | 129 | | icon | The icon displayed for the Action. | [Image.ImageLike](https://developers.raycast.com/api-reference/user-interface/icons-and-images#image.imagelike) | - | 130 | | shortcut | The keyboard shortcut for the Action. | [Keyboard.Shortcut](https://developers.raycast.com/api-reference/keyboard#keyboard.shortcut) | - | 131 | | style | Defines the visual style of the Action. | [Alert.ActionStyle](https://developers.raycast.com/api-reference/feedback/alert#alert.actionstyle) | [Action.Style.Regu](https://developers.raycast.com/api-reference/user-interface/actions#action.style) | 132 | 133 | ### Action.OpenCommandPreferences 134 | 135 | Open the current Command Preferences 136 | 137 | #### Example 138 | 139 | ```tsx 140 | import { ActionPanel, List } from "@raycast/api"; 141 | import { Action } from "@raycast-community/ui"; 142 | 143 | export default function Command() { 144 | return ( 145 | 146 | 150 | 151 | 152 | } 153 | /> 154 | 155 | ); 156 | } 157 | ``` 158 | 159 | #### Props 160 | 161 | | Prop | Description | Type | Default | 162 | | --------- | ------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | 163 | | title | The title displayed for the Action. | `string` | `Configure Command` | 164 | | autoFocus | Indicates whether the Action should be focused automatically when the parent ActionPanel (or Actionpanel.Submenu) opens. | `boolean` | - | 165 | | icon | The icon displayed for the Action. | [Image.ImageLike](https://developers.raycast.com/api-reference/user-interface/icons-and-images#image.imagelike) | - | 166 | | shortcut | The keyboard shortcut for the Action. | [Keyboard.Shortcut](https://developers.raycast.com/api-reference/keyboard#keyboard.shortcut) | - | 167 | | style | Defines the visual style of the Action. | [Alert.ActionStyle](https://developers.raycast.com/api-reference/feedback/alert#alert.actionstyle) | [Action.Style.Regu](https://developers.raycast.com/api-reference/user-interface/actions#action.style) | 168 | 169 | ### Action.OpenMaps 170 | 171 | Open Apple Maps 172 | 173 | #### Example 174 | 175 | ```tsx 176 | import { ActionPanel, List } from "@raycast/api"; 177 | import { Action } from "@raycast-community/ui"; 178 | 179 | export default function Command() { 180 | return ( 181 | 182 | 186 | 187 | 188 | 189 | } 190 | /> 191 | 192 | ); 193 | } 194 | ``` 195 | 196 | #### Props 197 | 198 | | Prop | Description | Type | Default | 199 | | ----------- | ------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | 200 | | title\* | The title displayed for the Action. | `string` | - | 201 | | autoFocus | Indicates whether the Action should be focused automatically when the parent ActionPanel (or Actionpanel.Submenu) opens. | `boolean` | - | 202 | | icon | The icon displayed for the Action. | [Image.ImageLike](https://developers.raycast.com/api-reference/user-interface/icons-and-images#image.imagelike) | - | 203 | | shortcut | The keyboard shortcut for the Action. | [Keyboard.Shortcut](https://developers.raycast.com/api-reference/keyboard#keyboard.shortcut) | - | 204 | | style | Defines the visual style of the Action. | [Alert.ActionStyle](https://developers.raycast.com/api-reference/feedback/alert#alert.actionstyle) | [Action.Style.Regu](https://developers.raycast.com/api-reference/user-interface/actions#action.style) | 205 | | onAction | Callback that is triggered when the Action is selected. | `() => void` | - | 206 | | coordinates | The coordinate of the location which should be shown. | `Coordinates` | - | 207 | | mapType | Which map type should be used like `Satellite` | `MapType` | - | 208 | -------------------------------------------------------------------------------- /docs/menubarextra.md: -------------------------------------------------------------------------------- 1 | # MenuBarExtra 2 | 3 | ## API Reference 4 | 5 | ### MenuBarExtra 6 | 7 | Adds an item to the menu bar, optionally with a menu attached in case its children prop is non-empty. 8 | 9 | > Currently all props are just passed to [MenuBarExtra](https://developers.raycast.com/api-reference/menu-bar-commands#menubarextra) 10 | 11 | #### Example 12 | 13 | ```tsx 14 | import { LaunchType, showHUD } from "@raycast/api"; 15 | import { MenuBarExtra } from "@raycast-community/ui"; 16 | 17 | export default function MenuCommand() { 18 | return ( 19 | 20 | showHUD("Child Menu from Menubar")} 23 | /> 24 | ); 25 | } 26 | ``` 27 | 28 | #### Props 29 | 30 | Same as [native MenuBarExtra](https://developers.raycast.com/api-reference/menu-bar-commands#props). 31 | 32 | ### MenuBarExtra.RootOnly 33 | 34 | `🧪 Experimental` 35 | 36 | Only show a MenubarExtra without any items. Start the given action on user click. 37 | 38 | ⚠️ Warning: The `onAction` will also get called on the command activation e.g. during loading or reloading. 39 | 40 | #### Example 41 | 42 | ```tsx 43 | import { MenuBarExtra } from "@raycast-community/ui"; 44 | import { showHUD } from "@raycast/api"; 45 | 46 | export default function MenuCommand() { 47 | return showHUD("Menu Clicked")} />; 48 | } 49 | ``` 50 | 51 | #### Props 52 | 53 | Same as [native MenuBarExtra](https://developers.raycast.com/api-reference/menu-bar-commands#props) but no `children`. 54 | 55 | Extra Props: 56 | 57 | | Prop | Description | Type | Default | 58 | | -------- | ---------------------------------------------------- | ------------ | ------- | 59 | | onAction | Callback that is triggered when the item is clicked. | `() => void` | - | 60 | 61 | ### MenuBarExtra.Item 62 | 63 | An enhanced version of [MenuBarExtra.Item](https://developers.raycast.com/api-reference/menu-bar-commands#menubarextra.item). 64 | 65 | #### Example 66 | 67 | ```tsx 68 | import { MenuBarExtra } from "@raycast-community/ui"; 69 | import { LaunchType, showHUD } from "@raycast/api"; 70 | 71 | export default function MenuCommand() { 72 | return ( 73 | 74 | showHUD("Child Menu from Menubar")} 78 | /> 79 | ); 80 | } 81 | ``` 82 | 83 | #### Props 84 | 85 | | Prop | Description | Type | Default | 86 | | ---------- | ------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | ------- | 87 | | title\* | The title displayed for the item. | `string` | - | 88 | | subtitle | The subtitle displayed for the item. | `string` | - | 89 | | icon | The icon displayed for the item. | [Image.ImageLike](https://developers.raycast.com/api-reference/user-interface/icons-and-images#image.imagelike) | - | 90 | | shortcut | The keyboard shortcut for the item. | [Keyboard.Shortcut](https://developers.raycast.com/api-reference/keyboard#keyboard.shortcut) | - | 91 | | onAction | Callback that is triggered when the Action is selected. | `() => void` | - | 92 | | tooltip | A tooltip to display when the cursor hovers the item. | `string` | - | 93 | | textLimits | Clip text if defined | `TextLimitProps` | - | 94 | 95 | ### MenuBarExtra.Section 96 | 97 | An enhanced version of the native [MenuBarExtra.Section](https://developers.raycast.com/api-reference/menu-bar-commands#menubarextra.section). 98 | 99 | #### Example 100 | 101 | ```tsx 102 | import { MenuBarExtra } from "@raycast-community/ui"; 103 | 104 | export default function MenuCommand() { 105 | return ( 106 | 107 | 108 | 109 | 110 | 111 | ); 112 | } 113 | ``` 114 | 115 | #### Props 116 | 117 | | Prop | Description | Type | Default | 118 | | -------------- | ------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | ------- | 119 | | title\* | The title displayed for the item. | `string` | - | 120 | | subtitle | The subtitle displayed for the item. | `string` | - | 121 | | icon | The icon displayed for the item. | [Image.ImageLike](https://developers.raycast.com/api-reference/user-interface/icons-and-images#image.imagelike) | - | 122 | | shortcut | The keyboard shortcut for the item. | [Keyboard.Shortcut](https://developers.raycast.com/api-reference/keyboard#keyboard.shortcut) | - | 123 | | onAction | Callback that is triggered when the Action is selected. | `() => void` | - | 124 | | tooltip | A tooltip to display when the cursor hovers the item. | `string` | - | 125 | | titleSeparator | The separator which will be used when a subtitle is set | `string` | - | 126 | | childrenLimit | Set the children limits | `ElementLimit` | - | 127 | 128 | ### MenuBarExtra.Submenu 129 | 130 | An enhanced version of the native [MenuBarExtra.Submenu](https://developers.raycast.com/api-reference/menu-bar-commands#menubarextra.submenu). 131 | 132 | #### Example 133 | 134 | ```tsx 135 | import { MenuBarExtra } from "@raycast-community/ui"; 136 | 137 | export default function MenuCommand() { 138 | return ( 139 | 140 | 141 | 142 | 143 | 144 | ); 145 | } 146 | ``` 147 | 148 | #### Props 149 | 150 | | Prop | Description | Type | Default | 151 | | -------------- | ------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | ------- | 152 | | title\* | The title displayed for the item. | `string` | - | 153 | | subtitle | The subtitle displayed for the item. | `string` | - | 154 | | icon | The icon displayed for the item. | [Image.ImageLike](https://developers.raycast.com/api-reference/user-interface/icons-and-images#image.imagelike) | - | 155 | | shortcut | The keyboard shortcut for the item. | [Keyboard.Shortcut](https://developers.raycast.com/api-reference/keyboard#keyboard.shortcut) | - | 156 | | onAction | Callback that is triggered when the Action is selected. | `() => void` | - | 157 | | tooltip | A tooltip to display when the cursor hovers the item. | `string` | - | 158 | | titleSeparator | The separator which will be used when a subtitle is set | `string` | - | 159 | 160 | ### MenuBarExtra.OpenInBrowser 161 | 162 | Open the given url in the default browser. 163 | 164 | #### Example 165 | 166 | ```tsx 167 | import { MenuBarExtra } from "@raycast-community/ui"; 168 | 169 | export default function MenuCommand() { 170 | return ( 171 | 172 | 173 | 174 | ); 175 | } 176 | ``` 177 | 178 | #### Props 179 | 180 | | Prop | Description | Type | Default | 181 | | ---------- | ------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | ------- | 182 | | title\* | The title displayed for the item. | `string` | - | 183 | | subtitle | The subtitle displayed for the item. | `string` | - | 184 | | icon | The icon displayed for the item. | [Image.ImageLike](https://developers.raycast.com/api-reference/user-interface/icons-and-images#image.imagelike) | - | 185 | | shortcut | The keyboard shortcut for the item. | [Keyboard.Shortcut](https://developers.raycast.com/api-reference/keyboard#keyboard.shortcut) | - | 186 | | onAction | Callback that is triggered when the Action is selected. | `() => void` | - | 187 | | tooltip | A tooltip to display when the cursor hovers the item. | `string` | - | 188 | | textLimits | Clip text if defined | `TextLimitProps` | - | 189 | | url\* | This url which should be opened | `string` | - | 190 | | onOpen | Callback when the URL was opened in the browser | `(url: string) => void` | - | 191 | 192 | ### MenuBarExtra.CopyToClipboard 193 | 194 | Copy given content to the clipboard. 195 | 196 | #### Example 197 | 198 | ```tsx 199 | import { MenuBarExtra } from "@raycast-community/ui"; 200 | 201 | export default function MenuCommand() { 202 | return ( 203 | 204 | 205 | 206 | ); 207 | } 208 | ``` 209 | 210 | #### Props 211 | 212 | | Prop | Description | Type | Default | 213 | | ---------- | ------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | ------- | 214 | | title\* | The title displayed for the item. | `string` | - | 215 | | subtitle | The subtitle displayed for the item. | `string` | - | 216 | | icon | The icon displayed for the item. | [Image.ImageLike](https://developers.raycast.com/api-reference/user-interface/icons-and-images#image.imagelike) | - | 217 | | shortcut | The keyboard shortcut for the item. | [Keyboard.Shortcut](https://developers.raycast.com/api-reference/keyboard#keyboard.shortcut) | - | 218 | | onAction | Callback that is triggered when the Action is selected. | `() => void` | - | 219 | | tooltip | A tooltip to display when the cursor hovers the item. | `string` | - | 220 | | textLimits | Clip text if defined | `TextLimitProps` | - | 221 | | content | The contents that will be copied to the clipboard | `string` or `number` or [Clipboard.Content](https://developers.raycast.com/api-reference/clipboard#clipboard.content) | - | 222 | 223 | ### MenuBarExtra.LaunchCommand 224 | 225 | Launch the given Raycast command via the given [LaunchOptions](https://developers.raycast.com/api-reference/command#launchoptions). 226 | 227 | #### Example 228 | 229 | ```tsx 230 | import { MenuBarExtra } from "@raycast-community/ui"; 231 | 232 | export default function MenuCommand() { 233 | return ( 234 | 235 | 242 | 243 | ); 244 | } 245 | ``` 246 | 247 | #### Props 248 | 249 | | Prop | Description | Type | Default | 250 | | ---------- | ------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | ------- | 251 | | title\* | The title displayed for the item. | `string` | - | 252 | | subtitle | The subtitle displayed for the item. | `string` | - | 253 | | icon | The icon displayed for the item. | [Image.ImageLike](https://developers.raycast.com/api-reference/user-interface/icons-and-images#image.imagelike) | - | 254 | | shortcut | The keyboard shortcut for the item. | [Keyboard.Shortcut](https://developers.raycast.com/api-reference/keyboard#keyboard.shortcut) | - | 255 | | onAction | Callback that is triggered when the Action is selected. | `() => void` | - | 256 | | tooltip | A tooltip to display when the cursor hovers the item. | `string` | - | 257 | | textLimits | Clip text if defined | `TextLimitProps` | - | 258 | | command | The command + options which should be launched | [LaunchOptions](https://developers.raycast.com/api-reference/command#launchoptions) | - | 259 | 260 | ### MenuBarExtra.ConfigureCommand 261 | 262 | Open the current Command Preferences. 263 | 264 | #### Example 265 | 266 | ```tsx 267 | import { MenuBarExtra } from "@raycast-community/ui"; 268 | 269 | export default function MenuCommand() { 270 | return ( 271 | 272 | 273 | 274 | ); 275 | } 276 | ``` 277 | 278 | #### Props 279 | 280 | | Prop | Description | Type | Default | 281 | | ---------- | ------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | ------- | 282 | | title\* | The title displayed for the item. | `string` | - | 283 | | subtitle | The subtitle displayed for the item. | `string` | - | 284 | | icon | The icon displayed for the item. | [Image.ImageLike](https://developers.raycast.com/api-reference/user-interface/icons-and-images#image.imagelike) | - | 285 | | shortcut | The keyboard shortcut for the item. | [Keyboard.Shortcut](https://developers.raycast.com/api-reference/keyboard#keyboard.shortcut) | - | 286 | | onAction | Callback that is triggered when the Action is selected. | `() => void` | - | 287 | | tooltip | A tooltip to display when the cursor hovers the item. | `string` | - | 288 | | textLimits | Clip text if defined | `TextLimitProps` | - | 289 | 290 | ### MenuBarExtra.ConfigureExtension 291 | 292 | Open the current Extension Preferences 293 | 294 | #### Example 295 | 296 | ```tsx 297 | import { MenuBarExtra } from "@raycast-community/ui"; 298 | 299 | export default function MenuCommand() { 300 | return ( 301 | 302 | 303 | 304 | ); 305 | } 306 | ``` 307 | 308 | #### Props 309 | 310 | | Prop | Description | Type | Default | 311 | | ---------- | ------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | ------- | 312 | | title\* | The title displayed for the item. | `string` | - | 313 | | subtitle | The subtitle displayed for the item. | `string` | - | 314 | | icon | The icon displayed for the item. | [Image.ImageLike](https://developers.raycast.com/api-reference/user-interface/icons-and-images#image.imagelike) | - | 315 | | shortcut | The keyboard shortcut for the item. | [Keyboard.Shortcut](https://developers.raycast.com/api-reference/keyboard#keyboard.shortcut) | - | 316 | | onAction | Callback that is triggered when the Action is selected. | `() => void` | - | 317 | | tooltip | A tooltip to display when the cursor hovers the item. | `string` | - | 318 | | textLimits | Clip text if defined | `TextLimitProps` | - | 319 | 320 | ### MenuBarExtra.OpenMaps 321 | 322 | Open Apple Maps. 323 | 324 | #### Example 325 | 326 | ```tsx 327 | import { MenuBarExtra } from "@raycast-community/ui"; 328 | 329 | export default function MenuCommand() { 330 | return ( 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | ); 339 | } 340 | ``` 341 | 342 | #### Props 343 | 344 | | Prop | Description | Type | Default | 345 | | ----------- | ------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | ------- | 346 | | title\* | The title displayed for the item. | `string` | - | 347 | | subtitle | The subtitle displayed for the item. | `string` | - | 348 | | icon | The icon displayed for the item. | [Image.ImageLike](https://developers.raycast.com/api-reference/user-interface/icons-and-images#image.imagelike) | - | 349 | | shortcut | The keyboard shortcut for the item. | [Keyboard.Shortcut](https://developers.raycast.com/api-reference/keyboard#keyboard.shortcut) | - | 350 | | onAction | Callback that is triggered when the Action is selected. | `() => void` | - | 351 | | tooltip | A tooltip to display when the cursor hovers the item. | `string` | - | 352 | | textLimits | Clip text if defined | `TextLimitProps` | - | 353 | | coordinates | The coordinate of the location which should be shown | `Coordinates` | - | 354 | | mapType | Which map type should be used like `Satellite` | `MapType` | - | 355 | -------------------------------------------------------------------------------- /tests/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "raycastui-tests", 3 | "lockfileVersion": 3, 4 | "requires": true, 5 | "packages": { 6 | "": { 7 | "name": "raycastui-tests", 8 | "license": "MIT", 9 | "dependencies": { 10 | "@raycast-community/ui": "file:../", 11 | "@raycast/api": "^1.64.5" 12 | }, 13 | "devDependencies": { 14 | "@raycast/eslint-config": "^1.0.6", 15 | "@types/node": "20.8.10", 16 | "@types/react": "18.2.27", 17 | "eslint": "^8.51.0", 18 | "prettier": "^3.0.3", 19 | "typescript": "^5.2.2" 20 | } 21 | }, 22 | "..": { 23 | "name": "@raycast-community/ui", 24 | "version": "0.0.1", 25 | "license": "MIT", 26 | "devDependencies": { 27 | "@raycast/api": "1.64.0", 28 | "@types/node": "^20.8.10", 29 | "@types/react": "^18.2.27", 30 | "@typescript-eslint/eslint-plugin": "6.7.5", 31 | "@typescript-eslint/parser": "6.7.5", 32 | "eslint": "^8.51.0", 33 | "eslint-config-prettier": "9.0.0", 34 | "eslint-plugin-import": "2.28.1", 35 | "eslint-plugin-jest": "27.4.2", 36 | "eslint-plugin-prettier": "5.0.0", 37 | "eslint-plugin-react-hooks": "4.6.0", 38 | "prettier": "^3.0.3", 39 | "typescript": "^5.2.2" 40 | }, 41 | "peerDependencies": { 42 | "@raycast/api": ">=1.64.0" 43 | } 44 | }, 45 | "node_modules/@aashutoshrathi/word-wrap": { 46 | "version": "1.2.6", 47 | "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", 48 | "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", 49 | "dev": true, 50 | "engines": { 51 | "node": ">=0.10.0" 52 | } 53 | }, 54 | "node_modules/@eslint-community/eslint-utils": { 55 | "version": "4.4.0", 56 | "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", 57 | "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", 58 | "dev": true, 59 | "dependencies": { 60 | "eslint-visitor-keys": "^3.3.0" 61 | }, 62 | "engines": { 63 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 64 | }, 65 | "peerDependencies": { 66 | "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" 67 | } 68 | }, 69 | "node_modules/@eslint-community/regexpp": { 70 | "version": "4.10.0", 71 | "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.10.0.tgz", 72 | "integrity": "sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==", 73 | "dev": true, 74 | "engines": { 75 | "node": "^12.0.0 || ^14.0.0 || >=16.0.0" 76 | } 77 | }, 78 | "node_modules/@eslint/eslintrc": { 79 | "version": "2.1.4", 80 | "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", 81 | "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", 82 | "dev": true, 83 | "dependencies": { 84 | "ajv": "^6.12.4", 85 | "debug": "^4.3.2", 86 | "espree": "^9.6.0", 87 | "globals": "^13.19.0", 88 | "ignore": "^5.2.0", 89 | "import-fresh": "^3.2.1", 90 | "js-yaml": "^4.1.0", 91 | "minimatch": "^3.1.2", 92 | "strip-json-comments": "^3.1.1" 93 | }, 94 | "engines": { 95 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 96 | }, 97 | "funding": { 98 | "url": "https://opencollective.com/eslint" 99 | } 100 | }, 101 | "node_modules/@eslint/eslintrc/node_modules/brace-expansion": { 102 | "version": "1.1.11", 103 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 104 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 105 | "dev": true, 106 | "dependencies": { 107 | "balanced-match": "^1.0.0", 108 | "concat-map": "0.0.1" 109 | } 110 | }, 111 | "node_modules/@eslint/eslintrc/node_modules/minimatch": { 112 | "version": "3.1.2", 113 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", 114 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 115 | "dev": true, 116 | "dependencies": { 117 | "brace-expansion": "^1.1.7" 118 | }, 119 | "engines": { 120 | "node": "*" 121 | } 122 | }, 123 | "node_modules/@eslint/js": { 124 | "version": "8.56.0", 125 | "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.56.0.tgz", 126 | "integrity": "sha512-gMsVel9D7f2HLkBma9VbtzZRehRogVRfbr++f06nL2vnCGCNlzOD+/MUov/F4p8myyAHspEhVobgjpX64q5m6A==", 127 | "dev": true, 128 | "engines": { 129 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 130 | } 131 | }, 132 | "node_modules/@humanwhocodes/config-array": { 133 | "version": "0.11.14", 134 | "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz", 135 | "integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==", 136 | "dev": true, 137 | "dependencies": { 138 | "@humanwhocodes/object-schema": "^2.0.2", 139 | "debug": "^4.3.1", 140 | "minimatch": "^3.0.5" 141 | }, 142 | "engines": { 143 | "node": ">=10.10.0" 144 | } 145 | }, 146 | "node_modules/@humanwhocodes/config-array/node_modules/brace-expansion": { 147 | "version": "1.1.11", 148 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 149 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 150 | "dev": true, 151 | "dependencies": { 152 | "balanced-match": "^1.0.0", 153 | "concat-map": "0.0.1" 154 | } 155 | }, 156 | "node_modules/@humanwhocodes/config-array/node_modules/minimatch": { 157 | "version": "3.1.2", 158 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", 159 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 160 | "dev": true, 161 | "dependencies": { 162 | "brace-expansion": "^1.1.7" 163 | }, 164 | "engines": { 165 | "node": "*" 166 | } 167 | }, 168 | "node_modules/@humanwhocodes/module-importer": { 169 | "version": "1.0.1", 170 | "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", 171 | "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", 172 | "dev": true, 173 | "engines": { 174 | "node": ">=12.22" 175 | }, 176 | "funding": { 177 | "type": "github", 178 | "url": "https://github.com/sponsors/nzakas" 179 | } 180 | }, 181 | "node_modules/@humanwhocodes/object-schema": { 182 | "version": "2.0.2", 183 | "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.2.tgz", 184 | "integrity": "sha512-6EwiSjwWYP7pTckG6I5eyFANjPhmPjUX9JRLUSfNPC7FX7zK9gyZAfUEaECL6ALTpGX5AjnBq3C9XmVWPitNpw==", 185 | "dev": true 186 | }, 187 | "node_modules/@nodelib/fs.scandir": { 188 | "version": "2.1.5", 189 | "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", 190 | "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", 191 | "dev": true, 192 | "dependencies": { 193 | "@nodelib/fs.stat": "2.0.5", 194 | "run-parallel": "^1.1.9" 195 | }, 196 | "engines": { 197 | "node": ">= 8" 198 | } 199 | }, 200 | "node_modules/@nodelib/fs.stat": { 201 | "version": "2.0.5", 202 | "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", 203 | "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", 204 | "dev": true, 205 | "engines": { 206 | "node": ">= 8" 207 | } 208 | }, 209 | "node_modules/@nodelib/fs.walk": { 210 | "version": "1.2.8", 211 | "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", 212 | "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", 213 | "dev": true, 214 | "dependencies": { 215 | "@nodelib/fs.scandir": "2.1.5", 216 | "fastq": "^1.6.0" 217 | }, 218 | "engines": { 219 | "node": ">= 8" 220 | } 221 | }, 222 | "node_modules/@raycast-community/ui": { 223 | "resolved": "..", 224 | "link": true 225 | }, 226 | "node_modules/@raycast/api": { 227 | "version": "1.67.0", 228 | "resolved": "https://registry.npmjs.org/@raycast/api/-/api-1.67.0.tgz", 229 | "integrity": "sha512-eu6ztfjPcy8eH+HWSs6i7tA3Cb4eK/N2O9NOxUxil0BQ+P+JBTMQqJD9EJJuWyuSWxT0ArfLoWBrjWiA5oF5WA==", 230 | "hasInstallScript": true, 231 | "dependencies": { 232 | "@types/node": "^20.8.10", 233 | "@types/react": "^18.2.27", 234 | "react": "18.2.0" 235 | }, 236 | "bin": { 237 | "ray": "bin/ray" 238 | }, 239 | "peerDependencies": { 240 | "@types/node": "20.8.10", 241 | "@types/react": "18.2.27", 242 | "react-devtools": "4.28.4" 243 | }, 244 | "peerDependenciesMeta": { 245 | "@types/node": { 246 | "optional": true 247 | }, 248 | "@types/react": { 249 | "optional": true 250 | }, 251 | "react-devtools": { 252 | "optional": true 253 | } 254 | } 255 | }, 256 | "node_modules/@raycast/eslint-config": { 257 | "version": "1.0.8", 258 | "resolved": "https://registry.npmjs.org/@raycast/eslint-config/-/eslint-config-1.0.8.tgz", 259 | "integrity": "sha512-xYopHeM7CJ1hhBOC6GPCbhBcVDQlkWxGh3Uft3zKf+dsOzSO16B6oAFArXYpjaoEGA2Rc2HPEBD5X1DOjLdF6Q==", 260 | "dev": true, 261 | "dependencies": { 262 | "@raycast/eslint-plugin": "^1.0.7", 263 | "@rushstack/eslint-patch": "^1.5.1", 264 | "@typescript-eslint/eslint-plugin": "^6.8.0", 265 | "@typescript-eslint/parser": "^6.8.0", 266 | "eslint-config-prettier": "^9.0.0" 267 | }, 268 | "peerDependencies": { 269 | "eslint": ">=7", 270 | "prettier": ">=2", 271 | "typescript": ">=4" 272 | } 273 | }, 274 | "node_modules/@raycast/eslint-plugin": { 275 | "version": "1.0.7", 276 | "resolved": "https://registry.npmjs.org/@raycast/eslint-plugin/-/eslint-plugin-1.0.7.tgz", 277 | "integrity": "sha512-JSoX/cNcg0PzVvXCXjuvXjAGZdTBT+1UZgTAn7fxQ2XhufGx3C+7KOtJOeem4k0k0ptLsskvHksgCZRUwY95fg==", 278 | "dev": true, 279 | "dependencies": { 280 | "@typescript-eslint/utils": "^5.48.1", 281 | "title-case": "^3.0.3" 282 | }, 283 | "peerDependencies": { 284 | "eslint": ">=7" 285 | } 286 | }, 287 | "node_modules/@rushstack/eslint-patch": { 288 | "version": "1.7.2", 289 | "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.7.2.tgz", 290 | "integrity": "sha512-RbhOOTCNoCrbfkRyoXODZp75MlpiHMgbE5MEBZAnnnLyQNgrigEj4p0lzsMDyc1zVsJDLrivB58tgg3emX0eEA==", 291 | "dev": true 292 | }, 293 | "node_modules/@types/json-schema": { 294 | "version": "7.0.15", 295 | "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", 296 | "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", 297 | "dev": true 298 | }, 299 | "node_modules/@types/node": { 300 | "version": "20.8.10", 301 | "resolved": "https://registry.npmjs.org/@types/node/-/node-20.8.10.tgz", 302 | "integrity": "sha512-TlgT8JntpcbmKUFzjhsyhGfP2fsiz1Mv56im6enJ905xG1DAYesxJaeSbGqQmAw8OWPdhyJGhGSQGKRNJ45u9w==", 303 | "dependencies": { 304 | "undici-types": "~5.26.4" 305 | } 306 | }, 307 | "node_modules/@types/prop-types": { 308 | "version": "15.7.11", 309 | "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.11.tgz", 310 | "integrity": "sha512-ga8y9v9uyeiLdpKddhxYQkxNDrfvuPrlFb0N1qnZZByvcElJaXthF1UhvCh9TLWJBEHeNtdnbysW7Y6Uq8CVng==" 311 | }, 312 | "node_modules/@types/react": { 313 | "version": "18.2.27", 314 | "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.27.tgz", 315 | "integrity": "sha512-Wfv7B7FZiR2r3MIqbAlXoY1+tXm4bOqfz4oRr+nyXdBqapDBZ0l/IGcSlAfvxIHEEJjkPU0MYAc/BlFPOcrgLw==", 316 | "dependencies": { 317 | "@types/prop-types": "*", 318 | "@types/scheduler": "*", 319 | "csstype": "^3.0.2" 320 | } 321 | }, 322 | "node_modules/@types/scheduler": { 323 | "version": "0.16.8", 324 | "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.8.tgz", 325 | "integrity": "sha512-WZLiwShhwLRmeV6zH+GkbOFT6Z6VklCItrDioxUnv+u4Ll+8vKeFySoFyK/0ctcRpOmwAicELfmys1sDc/Rw+A==" 326 | }, 327 | "node_modules/@types/semver": { 328 | "version": "7.5.6", 329 | "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.6.tgz", 330 | "integrity": "sha512-dn1l8LaMea/IjDoHNd9J52uBbInB796CDffS6VdIxvqYCPSG0V0DzHp76GpaWnlhg88uYyPbXCDIowa86ybd5A==", 331 | "dev": true 332 | }, 333 | "node_modules/@typescript-eslint/eslint-plugin": { 334 | "version": "6.21.0", 335 | "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.21.0.tgz", 336 | "integrity": "sha512-oy9+hTPCUFpngkEZUSzbf9MxI65wbKFoQYsgPdILTfbUldp5ovUuphZVe4i30emU9M/kP+T64Di0mxl7dSw3MA==", 337 | "dev": true, 338 | "dependencies": { 339 | "@eslint-community/regexpp": "^4.5.1", 340 | "@typescript-eslint/scope-manager": "6.21.0", 341 | "@typescript-eslint/type-utils": "6.21.0", 342 | "@typescript-eslint/utils": "6.21.0", 343 | "@typescript-eslint/visitor-keys": "6.21.0", 344 | "debug": "^4.3.4", 345 | "graphemer": "^1.4.0", 346 | "ignore": "^5.2.4", 347 | "natural-compare": "^1.4.0", 348 | "semver": "^7.5.4", 349 | "ts-api-utils": "^1.0.1" 350 | }, 351 | "engines": { 352 | "node": "^16.0.0 || >=18.0.0" 353 | }, 354 | "funding": { 355 | "type": "opencollective", 356 | "url": "https://opencollective.com/typescript-eslint" 357 | }, 358 | "peerDependencies": { 359 | "@typescript-eslint/parser": "^6.0.0 || ^6.0.0-alpha", 360 | "eslint": "^7.0.0 || ^8.0.0" 361 | }, 362 | "peerDependenciesMeta": { 363 | "typescript": { 364 | "optional": true 365 | } 366 | } 367 | }, 368 | "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils": { 369 | "version": "6.21.0", 370 | "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.21.0.tgz", 371 | "integrity": "sha512-NfWVaC8HP9T8cbKQxHcsJBY5YE1O33+jpMwN45qzWWaPDZgLIbo12toGMWnmhvCpd3sIxkpDw3Wv1B3dYrbDQQ==", 372 | "dev": true, 373 | "dependencies": { 374 | "@eslint-community/eslint-utils": "^4.4.0", 375 | "@types/json-schema": "^7.0.12", 376 | "@types/semver": "^7.5.0", 377 | "@typescript-eslint/scope-manager": "6.21.0", 378 | "@typescript-eslint/types": "6.21.0", 379 | "@typescript-eslint/typescript-estree": "6.21.0", 380 | "semver": "^7.5.4" 381 | }, 382 | "engines": { 383 | "node": "^16.0.0 || >=18.0.0" 384 | }, 385 | "funding": { 386 | "type": "opencollective", 387 | "url": "https://opencollective.com/typescript-eslint" 388 | }, 389 | "peerDependencies": { 390 | "eslint": "^7.0.0 || ^8.0.0" 391 | } 392 | }, 393 | "node_modules/@typescript-eslint/parser": { 394 | "version": "6.21.0", 395 | "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.21.0.tgz", 396 | "integrity": "sha512-tbsV1jPne5CkFQCgPBcDOt30ItF7aJoZL997JSF7MhGQqOeT3svWRYxiqlfA5RUdlHN6Fi+EI9bxqbdyAUZjYQ==", 397 | "dev": true, 398 | "dependencies": { 399 | "@typescript-eslint/scope-manager": "6.21.0", 400 | "@typescript-eslint/types": "6.21.0", 401 | "@typescript-eslint/typescript-estree": "6.21.0", 402 | "@typescript-eslint/visitor-keys": "6.21.0", 403 | "debug": "^4.3.4" 404 | }, 405 | "engines": { 406 | "node": "^16.0.0 || >=18.0.0" 407 | }, 408 | "funding": { 409 | "type": "opencollective", 410 | "url": "https://opencollective.com/typescript-eslint" 411 | }, 412 | "peerDependencies": { 413 | "eslint": "^7.0.0 || ^8.0.0" 414 | }, 415 | "peerDependenciesMeta": { 416 | "typescript": { 417 | "optional": true 418 | } 419 | } 420 | }, 421 | "node_modules/@typescript-eslint/scope-manager": { 422 | "version": "6.21.0", 423 | "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.21.0.tgz", 424 | "integrity": "sha512-OwLUIWZJry80O99zvqXVEioyniJMa+d2GrqpUTqi5/v5D5rOrppJVBPa0yKCblcigC0/aYAzxxqQ1B+DS2RYsg==", 425 | "dev": true, 426 | "dependencies": { 427 | "@typescript-eslint/types": "6.21.0", 428 | "@typescript-eslint/visitor-keys": "6.21.0" 429 | }, 430 | "engines": { 431 | "node": "^16.0.0 || >=18.0.0" 432 | }, 433 | "funding": { 434 | "type": "opencollective", 435 | "url": "https://opencollective.com/typescript-eslint" 436 | } 437 | }, 438 | "node_modules/@typescript-eslint/type-utils": { 439 | "version": "6.21.0", 440 | "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.21.0.tgz", 441 | "integrity": "sha512-rZQI7wHfao8qMX3Rd3xqeYSMCL3SoiSQLBATSiVKARdFGCYSRvmViieZjqc58jKgs8Y8i9YvVVhRbHSTA4VBag==", 442 | "dev": true, 443 | "dependencies": { 444 | "@typescript-eslint/typescript-estree": "6.21.0", 445 | "@typescript-eslint/utils": "6.21.0", 446 | "debug": "^4.3.4", 447 | "ts-api-utils": "^1.0.1" 448 | }, 449 | "engines": { 450 | "node": "^16.0.0 || >=18.0.0" 451 | }, 452 | "funding": { 453 | "type": "opencollective", 454 | "url": "https://opencollective.com/typescript-eslint" 455 | }, 456 | "peerDependencies": { 457 | "eslint": "^7.0.0 || ^8.0.0" 458 | }, 459 | "peerDependenciesMeta": { 460 | "typescript": { 461 | "optional": true 462 | } 463 | } 464 | }, 465 | "node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils": { 466 | "version": "6.21.0", 467 | "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.21.0.tgz", 468 | "integrity": "sha512-NfWVaC8HP9T8cbKQxHcsJBY5YE1O33+jpMwN45qzWWaPDZgLIbo12toGMWnmhvCpd3sIxkpDw3Wv1B3dYrbDQQ==", 469 | "dev": true, 470 | "dependencies": { 471 | "@eslint-community/eslint-utils": "^4.4.0", 472 | "@types/json-schema": "^7.0.12", 473 | "@types/semver": "^7.5.0", 474 | "@typescript-eslint/scope-manager": "6.21.0", 475 | "@typescript-eslint/types": "6.21.0", 476 | "@typescript-eslint/typescript-estree": "6.21.0", 477 | "semver": "^7.5.4" 478 | }, 479 | "engines": { 480 | "node": "^16.0.0 || >=18.0.0" 481 | }, 482 | "funding": { 483 | "type": "opencollective", 484 | "url": "https://opencollective.com/typescript-eslint" 485 | }, 486 | "peerDependencies": { 487 | "eslint": "^7.0.0 || ^8.0.0" 488 | } 489 | }, 490 | "node_modules/@typescript-eslint/types": { 491 | "version": "6.21.0", 492 | "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.21.0.tgz", 493 | "integrity": "sha512-1kFmZ1rOm5epu9NZEZm1kckCDGj5UJEf7P1kliH4LKu/RkwpsfqqGmY2OOcUs18lSlQBKLDYBOGxRVtrMN5lpg==", 494 | "dev": true, 495 | "engines": { 496 | "node": "^16.0.0 || >=18.0.0" 497 | }, 498 | "funding": { 499 | "type": "opencollective", 500 | "url": "https://opencollective.com/typescript-eslint" 501 | } 502 | }, 503 | "node_modules/@typescript-eslint/typescript-estree": { 504 | "version": "6.21.0", 505 | "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.21.0.tgz", 506 | "integrity": "sha512-6npJTkZcO+y2/kr+z0hc4HwNfrrP4kNYh57ek7yCNlrBjWQ1Y0OS7jiZTkgumrvkX5HkEKXFZkkdFNkaW2wmUQ==", 507 | "dev": true, 508 | "dependencies": { 509 | "@typescript-eslint/types": "6.21.0", 510 | "@typescript-eslint/visitor-keys": "6.21.0", 511 | "debug": "^4.3.4", 512 | "globby": "^11.1.0", 513 | "is-glob": "^4.0.3", 514 | "minimatch": "9.0.3", 515 | "semver": "^7.5.4", 516 | "ts-api-utils": "^1.0.1" 517 | }, 518 | "engines": { 519 | "node": "^16.0.0 || >=18.0.0" 520 | }, 521 | "funding": { 522 | "type": "opencollective", 523 | "url": "https://opencollective.com/typescript-eslint" 524 | }, 525 | "peerDependenciesMeta": { 526 | "typescript": { 527 | "optional": true 528 | } 529 | } 530 | }, 531 | "node_modules/@typescript-eslint/utils": { 532 | "version": "5.62.0", 533 | "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.62.0.tgz", 534 | "integrity": "sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==", 535 | "dev": true, 536 | "dependencies": { 537 | "@eslint-community/eslint-utils": "^4.2.0", 538 | "@types/json-schema": "^7.0.9", 539 | "@types/semver": "^7.3.12", 540 | "@typescript-eslint/scope-manager": "5.62.0", 541 | "@typescript-eslint/types": "5.62.0", 542 | "@typescript-eslint/typescript-estree": "5.62.0", 543 | "eslint-scope": "^5.1.1", 544 | "semver": "^7.3.7" 545 | }, 546 | "engines": { 547 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 548 | }, 549 | "funding": { 550 | "type": "opencollective", 551 | "url": "https://opencollective.com/typescript-eslint" 552 | }, 553 | "peerDependencies": { 554 | "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" 555 | } 556 | }, 557 | "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/scope-manager": { 558 | "version": "5.62.0", 559 | "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.62.0.tgz", 560 | "integrity": "sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w==", 561 | "dev": true, 562 | "dependencies": { 563 | "@typescript-eslint/types": "5.62.0", 564 | "@typescript-eslint/visitor-keys": "5.62.0" 565 | }, 566 | "engines": { 567 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 568 | }, 569 | "funding": { 570 | "type": "opencollective", 571 | "url": "https://opencollective.com/typescript-eslint" 572 | } 573 | }, 574 | "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/types": { 575 | "version": "5.62.0", 576 | "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.62.0.tgz", 577 | "integrity": "sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ==", 578 | "dev": true, 579 | "engines": { 580 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 581 | }, 582 | "funding": { 583 | "type": "opencollective", 584 | "url": "https://opencollective.com/typescript-eslint" 585 | } 586 | }, 587 | "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/typescript-estree": { 588 | "version": "5.62.0", 589 | "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.62.0.tgz", 590 | "integrity": "sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==", 591 | "dev": true, 592 | "dependencies": { 593 | "@typescript-eslint/types": "5.62.0", 594 | "@typescript-eslint/visitor-keys": "5.62.0", 595 | "debug": "^4.3.4", 596 | "globby": "^11.1.0", 597 | "is-glob": "^4.0.3", 598 | "semver": "^7.3.7", 599 | "tsutils": "^3.21.0" 600 | }, 601 | "engines": { 602 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 603 | }, 604 | "funding": { 605 | "type": "opencollective", 606 | "url": "https://opencollective.com/typescript-eslint" 607 | }, 608 | "peerDependenciesMeta": { 609 | "typescript": { 610 | "optional": true 611 | } 612 | } 613 | }, 614 | "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/visitor-keys": { 615 | "version": "5.62.0", 616 | "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.62.0.tgz", 617 | "integrity": "sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw==", 618 | "dev": true, 619 | "dependencies": { 620 | "@typescript-eslint/types": "5.62.0", 621 | "eslint-visitor-keys": "^3.3.0" 622 | }, 623 | "engines": { 624 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 625 | }, 626 | "funding": { 627 | "type": "opencollective", 628 | "url": "https://opencollective.com/typescript-eslint" 629 | } 630 | }, 631 | "node_modules/@typescript-eslint/visitor-keys": { 632 | "version": "6.21.0", 633 | "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.21.0.tgz", 634 | "integrity": "sha512-JJtkDduxLi9bivAB+cYOVMtbkqdPOhZ+ZI5LC47MIRrDV4Yn2o+ZnW10Nkmr28xRpSpdJ6Sm42Hjf2+REYXm0A==", 635 | "dev": true, 636 | "dependencies": { 637 | "@typescript-eslint/types": "6.21.0", 638 | "eslint-visitor-keys": "^3.4.1" 639 | }, 640 | "engines": { 641 | "node": "^16.0.0 || >=18.0.0" 642 | }, 643 | "funding": { 644 | "type": "opencollective", 645 | "url": "https://opencollective.com/typescript-eslint" 646 | } 647 | }, 648 | "node_modules/@ungap/structured-clone": { 649 | "version": "1.2.0", 650 | "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", 651 | "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", 652 | "dev": true 653 | }, 654 | "node_modules/acorn": { 655 | "version": "8.11.3", 656 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", 657 | "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", 658 | "dev": true, 659 | "bin": { 660 | "acorn": "bin/acorn" 661 | }, 662 | "engines": { 663 | "node": ">=0.4.0" 664 | } 665 | }, 666 | "node_modules/acorn-jsx": { 667 | "version": "5.3.2", 668 | "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", 669 | "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", 670 | "dev": true, 671 | "peerDependencies": { 672 | "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" 673 | } 674 | }, 675 | "node_modules/ajv": { 676 | "version": "6.12.6", 677 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", 678 | "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", 679 | "dev": true, 680 | "dependencies": { 681 | "fast-deep-equal": "^3.1.1", 682 | "fast-json-stable-stringify": "^2.0.0", 683 | "json-schema-traverse": "^0.4.1", 684 | "uri-js": "^4.2.2" 685 | }, 686 | "funding": { 687 | "type": "github", 688 | "url": "https://github.com/sponsors/epoberezkin" 689 | } 690 | }, 691 | "node_modules/ansi-regex": { 692 | "version": "5.0.1", 693 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 694 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 695 | "dev": true, 696 | "engines": { 697 | "node": ">=8" 698 | } 699 | }, 700 | "node_modules/ansi-styles": { 701 | "version": "4.3.0", 702 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", 703 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", 704 | "dev": true, 705 | "dependencies": { 706 | "color-convert": "^2.0.1" 707 | }, 708 | "engines": { 709 | "node": ">=8" 710 | }, 711 | "funding": { 712 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 713 | } 714 | }, 715 | "node_modules/argparse": { 716 | "version": "2.0.1", 717 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", 718 | "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", 719 | "dev": true 720 | }, 721 | "node_modules/array-union": { 722 | "version": "2.1.0", 723 | "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", 724 | "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", 725 | "dev": true, 726 | "engines": { 727 | "node": ">=8" 728 | } 729 | }, 730 | "node_modules/balanced-match": { 731 | "version": "1.0.2", 732 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 733 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", 734 | "dev": true 735 | }, 736 | "node_modules/brace-expansion": { 737 | "version": "2.0.1", 738 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", 739 | "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", 740 | "dev": true, 741 | "dependencies": { 742 | "balanced-match": "^1.0.0" 743 | } 744 | }, 745 | "node_modules/braces": { 746 | "version": "3.0.2", 747 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", 748 | "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", 749 | "dev": true, 750 | "dependencies": { 751 | "fill-range": "^7.0.1" 752 | }, 753 | "engines": { 754 | "node": ">=8" 755 | } 756 | }, 757 | "node_modules/callsites": { 758 | "version": "3.1.0", 759 | "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", 760 | "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", 761 | "dev": true, 762 | "engines": { 763 | "node": ">=6" 764 | } 765 | }, 766 | "node_modules/chalk": { 767 | "version": "4.1.2", 768 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", 769 | "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", 770 | "dev": true, 771 | "dependencies": { 772 | "ansi-styles": "^4.1.0", 773 | "supports-color": "^7.1.0" 774 | }, 775 | "engines": { 776 | "node": ">=10" 777 | }, 778 | "funding": { 779 | "url": "https://github.com/chalk/chalk?sponsor=1" 780 | } 781 | }, 782 | "node_modules/color-convert": { 783 | "version": "2.0.1", 784 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 785 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 786 | "dev": true, 787 | "dependencies": { 788 | "color-name": "~1.1.4" 789 | }, 790 | "engines": { 791 | "node": ">=7.0.0" 792 | } 793 | }, 794 | "node_modules/color-name": { 795 | "version": "1.1.4", 796 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 797 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", 798 | "dev": true 799 | }, 800 | "node_modules/concat-map": { 801 | "version": "0.0.1", 802 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 803 | "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", 804 | "dev": true 805 | }, 806 | "node_modules/cross-spawn": { 807 | "version": "7.0.3", 808 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", 809 | "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", 810 | "dev": true, 811 | "dependencies": { 812 | "path-key": "^3.1.0", 813 | "shebang-command": "^2.0.0", 814 | "which": "^2.0.1" 815 | }, 816 | "engines": { 817 | "node": ">= 8" 818 | } 819 | }, 820 | "node_modules/csstype": { 821 | "version": "3.1.3", 822 | "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", 823 | "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==" 824 | }, 825 | "node_modules/debug": { 826 | "version": "4.3.4", 827 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", 828 | "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", 829 | "dev": true, 830 | "dependencies": { 831 | "ms": "2.1.2" 832 | }, 833 | "engines": { 834 | "node": ">=6.0" 835 | }, 836 | "peerDependenciesMeta": { 837 | "supports-color": { 838 | "optional": true 839 | } 840 | } 841 | }, 842 | "node_modules/deep-is": { 843 | "version": "0.1.4", 844 | "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", 845 | "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", 846 | "dev": true 847 | }, 848 | "node_modules/dir-glob": { 849 | "version": "3.0.1", 850 | "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", 851 | "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", 852 | "dev": true, 853 | "dependencies": { 854 | "path-type": "^4.0.0" 855 | }, 856 | "engines": { 857 | "node": ">=8" 858 | } 859 | }, 860 | "node_modules/doctrine": { 861 | "version": "3.0.0", 862 | "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", 863 | "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", 864 | "dev": true, 865 | "dependencies": { 866 | "esutils": "^2.0.2" 867 | }, 868 | "engines": { 869 | "node": ">=6.0.0" 870 | } 871 | }, 872 | "node_modules/escape-string-regexp": { 873 | "version": "4.0.0", 874 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", 875 | "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", 876 | "dev": true, 877 | "engines": { 878 | "node": ">=10" 879 | }, 880 | "funding": { 881 | "url": "https://github.com/sponsors/sindresorhus" 882 | } 883 | }, 884 | "node_modules/eslint": { 885 | "version": "8.56.0", 886 | "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.56.0.tgz", 887 | "integrity": "sha512-Go19xM6T9puCOWntie1/P997aXxFsOi37JIHRWI514Hc6ZnaHGKY9xFhrU65RT6CcBEzZoGG1e6Nq+DT04ZtZQ==", 888 | "dev": true, 889 | "dependencies": { 890 | "@eslint-community/eslint-utils": "^4.2.0", 891 | "@eslint-community/regexpp": "^4.6.1", 892 | "@eslint/eslintrc": "^2.1.4", 893 | "@eslint/js": "8.56.0", 894 | "@humanwhocodes/config-array": "^0.11.13", 895 | "@humanwhocodes/module-importer": "^1.0.1", 896 | "@nodelib/fs.walk": "^1.2.8", 897 | "@ungap/structured-clone": "^1.2.0", 898 | "ajv": "^6.12.4", 899 | "chalk": "^4.0.0", 900 | "cross-spawn": "^7.0.2", 901 | "debug": "^4.3.2", 902 | "doctrine": "^3.0.0", 903 | "escape-string-regexp": "^4.0.0", 904 | "eslint-scope": "^7.2.2", 905 | "eslint-visitor-keys": "^3.4.3", 906 | "espree": "^9.6.1", 907 | "esquery": "^1.4.2", 908 | "esutils": "^2.0.2", 909 | "fast-deep-equal": "^3.1.3", 910 | "file-entry-cache": "^6.0.1", 911 | "find-up": "^5.0.0", 912 | "glob-parent": "^6.0.2", 913 | "globals": "^13.19.0", 914 | "graphemer": "^1.4.0", 915 | "ignore": "^5.2.0", 916 | "imurmurhash": "^0.1.4", 917 | "is-glob": "^4.0.0", 918 | "is-path-inside": "^3.0.3", 919 | "js-yaml": "^4.1.0", 920 | "json-stable-stringify-without-jsonify": "^1.0.1", 921 | "levn": "^0.4.1", 922 | "lodash.merge": "^4.6.2", 923 | "minimatch": "^3.1.2", 924 | "natural-compare": "^1.4.0", 925 | "optionator": "^0.9.3", 926 | "strip-ansi": "^6.0.1", 927 | "text-table": "^0.2.0" 928 | }, 929 | "bin": { 930 | "eslint": "bin/eslint.js" 931 | }, 932 | "engines": { 933 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 934 | }, 935 | "funding": { 936 | "url": "https://opencollective.com/eslint" 937 | } 938 | }, 939 | "node_modules/eslint-config-prettier": { 940 | "version": "9.1.0", 941 | "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz", 942 | "integrity": "sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==", 943 | "dev": true, 944 | "bin": { 945 | "eslint-config-prettier": "bin/cli.js" 946 | }, 947 | "peerDependencies": { 948 | "eslint": ">=7.0.0" 949 | } 950 | }, 951 | "node_modules/eslint-scope": { 952 | "version": "5.1.1", 953 | "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", 954 | "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", 955 | "dev": true, 956 | "dependencies": { 957 | "esrecurse": "^4.3.0", 958 | "estraverse": "^4.1.1" 959 | }, 960 | "engines": { 961 | "node": ">=8.0.0" 962 | } 963 | }, 964 | "node_modules/eslint-visitor-keys": { 965 | "version": "3.4.3", 966 | "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", 967 | "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", 968 | "dev": true, 969 | "engines": { 970 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 971 | }, 972 | "funding": { 973 | "url": "https://opencollective.com/eslint" 974 | } 975 | }, 976 | "node_modules/eslint/node_modules/brace-expansion": { 977 | "version": "1.1.11", 978 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 979 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 980 | "dev": true, 981 | "dependencies": { 982 | "balanced-match": "^1.0.0", 983 | "concat-map": "0.0.1" 984 | } 985 | }, 986 | "node_modules/eslint/node_modules/eslint-scope": { 987 | "version": "7.2.2", 988 | "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", 989 | "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", 990 | "dev": true, 991 | "dependencies": { 992 | "esrecurse": "^4.3.0", 993 | "estraverse": "^5.2.0" 994 | }, 995 | "engines": { 996 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 997 | }, 998 | "funding": { 999 | "url": "https://opencollective.com/eslint" 1000 | } 1001 | }, 1002 | "node_modules/eslint/node_modules/estraverse": { 1003 | "version": "5.3.0", 1004 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", 1005 | "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", 1006 | "dev": true, 1007 | "engines": { 1008 | "node": ">=4.0" 1009 | } 1010 | }, 1011 | "node_modules/eslint/node_modules/minimatch": { 1012 | "version": "3.1.2", 1013 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", 1014 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 1015 | "dev": true, 1016 | "dependencies": { 1017 | "brace-expansion": "^1.1.7" 1018 | }, 1019 | "engines": { 1020 | "node": "*" 1021 | } 1022 | }, 1023 | "node_modules/espree": { 1024 | "version": "9.6.1", 1025 | "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", 1026 | "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", 1027 | "dev": true, 1028 | "dependencies": { 1029 | "acorn": "^8.9.0", 1030 | "acorn-jsx": "^5.3.2", 1031 | "eslint-visitor-keys": "^3.4.1" 1032 | }, 1033 | "engines": { 1034 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 1035 | }, 1036 | "funding": { 1037 | "url": "https://opencollective.com/eslint" 1038 | } 1039 | }, 1040 | "node_modules/esquery": { 1041 | "version": "1.5.0", 1042 | "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", 1043 | "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", 1044 | "dev": true, 1045 | "dependencies": { 1046 | "estraverse": "^5.1.0" 1047 | }, 1048 | "engines": { 1049 | "node": ">=0.10" 1050 | } 1051 | }, 1052 | "node_modules/esquery/node_modules/estraverse": { 1053 | "version": "5.3.0", 1054 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", 1055 | "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", 1056 | "dev": true, 1057 | "engines": { 1058 | "node": ">=4.0" 1059 | } 1060 | }, 1061 | "node_modules/esrecurse": { 1062 | "version": "4.3.0", 1063 | "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", 1064 | "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", 1065 | "dev": true, 1066 | "dependencies": { 1067 | "estraverse": "^5.2.0" 1068 | }, 1069 | "engines": { 1070 | "node": ">=4.0" 1071 | } 1072 | }, 1073 | "node_modules/esrecurse/node_modules/estraverse": { 1074 | "version": "5.3.0", 1075 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", 1076 | "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", 1077 | "dev": true, 1078 | "engines": { 1079 | "node": ">=4.0" 1080 | } 1081 | }, 1082 | "node_modules/estraverse": { 1083 | "version": "4.3.0", 1084 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", 1085 | "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", 1086 | "dev": true, 1087 | "engines": { 1088 | "node": ">=4.0" 1089 | } 1090 | }, 1091 | "node_modules/esutils": { 1092 | "version": "2.0.3", 1093 | "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", 1094 | "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", 1095 | "dev": true, 1096 | "engines": { 1097 | "node": ">=0.10.0" 1098 | } 1099 | }, 1100 | "node_modules/fast-deep-equal": { 1101 | "version": "3.1.3", 1102 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", 1103 | "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", 1104 | "dev": true 1105 | }, 1106 | "node_modules/fast-glob": { 1107 | "version": "3.3.2", 1108 | "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", 1109 | "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", 1110 | "dev": true, 1111 | "dependencies": { 1112 | "@nodelib/fs.stat": "^2.0.2", 1113 | "@nodelib/fs.walk": "^1.2.3", 1114 | "glob-parent": "^5.1.2", 1115 | "merge2": "^1.3.0", 1116 | "micromatch": "^4.0.4" 1117 | }, 1118 | "engines": { 1119 | "node": ">=8.6.0" 1120 | } 1121 | }, 1122 | "node_modules/fast-glob/node_modules/glob-parent": { 1123 | "version": "5.1.2", 1124 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", 1125 | "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", 1126 | "dev": true, 1127 | "dependencies": { 1128 | "is-glob": "^4.0.1" 1129 | }, 1130 | "engines": { 1131 | "node": ">= 6" 1132 | } 1133 | }, 1134 | "node_modules/fast-json-stable-stringify": { 1135 | "version": "2.1.0", 1136 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", 1137 | "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", 1138 | "dev": true 1139 | }, 1140 | "node_modules/fast-levenshtein": { 1141 | "version": "2.0.6", 1142 | "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", 1143 | "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", 1144 | "dev": true 1145 | }, 1146 | "node_modules/fastq": { 1147 | "version": "1.17.1", 1148 | "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", 1149 | "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", 1150 | "dev": true, 1151 | "dependencies": { 1152 | "reusify": "^1.0.4" 1153 | } 1154 | }, 1155 | "node_modules/file-entry-cache": { 1156 | "version": "6.0.1", 1157 | "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", 1158 | "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", 1159 | "dev": true, 1160 | "dependencies": { 1161 | "flat-cache": "^3.0.4" 1162 | }, 1163 | "engines": { 1164 | "node": "^10.12.0 || >=12.0.0" 1165 | } 1166 | }, 1167 | "node_modules/fill-range": { 1168 | "version": "7.0.1", 1169 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", 1170 | "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", 1171 | "dev": true, 1172 | "dependencies": { 1173 | "to-regex-range": "^5.0.1" 1174 | }, 1175 | "engines": { 1176 | "node": ">=8" 1177 | } 1178 | }, 1179 | "node_modules/find-up": { 1180 | "version": "5.0.0", 1181 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", 1182 | "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", 1183 | "dev": true, 1184 | "dependencies": { 1185 | "locate-path": "^6.0.0", 1186 | "path-exists": "^4.0.0" 1187 | }, 1188 | "engines": { 1189 | "node": ">=10" 1190 | }, 1191 | "funding": { 1192 | "url": "https://github.com/sponsors/sindresorhus" 1193 | } 1194 | }, 1195 | "node_modules/flat-cache": { 1196 | "version": "3.2.0", 1197 | "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", 1198 | "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", 1199 | "dev": true, 1200 | "dependencies": { 1201 | "flatted": "^3.2.9", 1202 | "keyv": "^4.5.3", 1203 | "rimraf": "^3.0.2" 1204 | }, 1205 | "engines": { 1206 | "node": "^10.12.0 || >=12.0.0" 1207 | } 1208 | }, 1209 | "node_modules/flatted": { 1210 | "version": "3.2.9", 1211 | "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.9.tgz", 1212 | "integrity": "sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ==", 1213 | "dev": true 1214 | }, 1215 | "node_modules/fs.realpath": { 1216 | "version": "1.0.0", 1217 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 1218 | "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", 1219 | "dev": true 1220 | }, 1221 | "node_modules/glob": { 1222 | "version": "7.2.3", 1223 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", 1224 | "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", 1225 | "dev": true, 1226 | "dependencies": { 1227 | "fs.realpath": "^1.0.0", 1228 | "inflight": "^1.0.4", 1229 | "inherits": "2", 1230 | "minimatch": "^3.1.1", 1231 | "once": "^1.3.0", 1232 | "path-is-absolute": "^1.0.0" 1233 | }, 1234 | "engines": { 1235 | "node": "*" 1236 | }, 1237 | "funding": { 1238 | "url": "https://github.com/sponsors/isaacs" 1239 | } 1240 | }, 1241 | "node_modules/glob-parent": { 1242 | "version": "6.0.2", 1243 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", 1244 | "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", 1245 | "dev": true, 1246 | "dependencies": { 1247 | "is-glob": "^4.0.3" 1248 | }, 1249 | "engines": { 1250 | "node": ">=10.13.0" 1251 | } 1252 | }, 1253 | "node_modules/glob/node_modules/brace-expansion": { 1254 | "version": "1.1.11", 1255 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 1256 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 1257 | "dev": true, 1258 | "dependencies": { 1259 | "balanced-match": "^1.0.0", 1260 | "concat-map": "0.0.1" 1261 | } 1262 | }, 1263 | "node_modules/glob/node_modules/minimatch": { 1264 | "version": "3.1.2", 1265 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", 1266 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 1267 | "dev": true, 1268 | "dependencies": { 1269 | "brace-expansion": "^1.1.7" 1270 | }, 1271 | "engines": { 1272 | "node": "*" 1273 | } 1274 | }, 1275 | "node_modules/globals": { 1276 | "version": "13.24.0", 1277 | "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", 1278 | "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", 1279 | "dev": true, 1280 | "dependencies": { 1281 | "type-fest": "^0.20.2" 1282 | }, 1283 | "engines": { 1284 | "node": ">=8" 1285 | }, 1286 | "funding": { 1287 | "url": "https://github.com/sponsors/sindresorhus" 1288 | } 1289 | }, 1290 | "node_modules/globby": { 1291 | "version": "11.1.0", 1292 | "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", 1293 | "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", 1294 | "dev": true, 1295 | "dependencies": { 1296 | "array-union": "^2.1.0", 1297 | "dir-glob": "^3.0.1", 1298 | "fast-glob": "^3.2.9", 1299 | "ignore": "^5.2.0", 1300 | "merge2": "^1.4.1", 1301 | "slash": "^3.0.0" 1302 | }, 1303 | "engines": { 1304 | "node": ">=10" 1305 | }, 1306 | "funding": { 1307 | "url": "https://github.com/sponsors/sindresorhus" 1308 | } 1309 | }, 1310 | "node_modules/graphemer": { 1311 | "version": "1.4.0", 1312 | "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", 1313 | "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", 1314 | "dev": true 1315 | }, 1316 | "node_modules/has-flag": { 1317 | "version": "4.0.0", 1318 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", 1319 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", 1320 | "dev": true, 1321 | "engines": { 1322 | "node": ">=8" 1323 | } 1324 | }, 1325 | "node_modules/ignore": { 1326 | "version": "5.3.1", 1327 | "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz", 1328 | "integrity": "sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==", 1329 | "dev": true, 1330 | "engines": { 1331 | "node": ">= 4" 1332 | } 1333 | }, 1334 | "node_modules/import-fresh": { 1335 | "version": "3.3.0", 1336 | "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", 1337 | "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", 1338 | "dev": true, 1339 | "dependencies": { 1340 | "parent-module": "^1.0.0", 1341 | "resolve-from": "^4.0.0" 1342 | }, 1343 | "engines": { 1344 | "node": ">=6" 1345 | }, 1346 | "funding": { 1347 | "url": "https://github.com/sponsors/sindresorhus" 1348 | } 1349 | }, 1350 | "node_modules/imurmurhash": { 1351 | "version": "0.1.4", 1352 | "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", 1353 | "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", 1354 | "dev": true, 1355 | "engines": { 1356 | "node": ">=0.8.19" 1357 | } 1358 | }, 1359 | "node_modules/inflight": { 1360 | "version": "1.0.6", 1361 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 1362 | "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", 1363 | "dev": true, 1364 | "dependencies": { 1365 | "once": "^1.3.0", 1366 | "wrappy": "1" 1367 | } 1368 | }, 1369 | "node_modules/inherits": { 1370 | "version": "2.0.4", 1371 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 1372 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 1373 | "dev": true 1374 | }, 1375 | "node_modules/is-extglob": { 1376 | "version": "2.1.1", 1377 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 1378 | "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", 1379 | "dev": true, 1380 | "engines": { 1381 | "node": ">=0.10.0" 1382 | } 1383 | }, 1384 | "node_modules/is-glob": { 1385 | "version": "4.0.3", 1386 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", 1387 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", 1388 | "dev": true, 1389 | "dependencies": { 1390 | "is-extglob": "^2.1.1" 1391 | }, 1392 | "engines": { 1393 | "node": ">=0.10.0" 1394 | } 1395 | }, 1396 | "node_modules/is-number": { 1397 | "version": "7.0.0", 1398 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 1399 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", 1400 | "dev": true, 1401 | "engines": { 1402 | "node": ">=0.12.0" 1403 | } 1404 | }, 1405 | "node_modules/is-path-inside": { 1406 | "version": "3.0.3", 1407 | "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", 1408 | "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", 1409 | "dev": true, 1410 | "engines": { 1411 | "node": ">=8" 1412 | } 1413 | }, 1414 | "node_modules/isexe": { 1415 | "version": "2.0.0", 1416 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 1417 | "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", 1418 | "dev": true 1419 | }, 1420 | "node_modules/js-tokens": { 1421 | "version": "4.0.0", 1422 | "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", 1423 | "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" 1424 | }, 1425 | "node_modules/js-yaml": { 1426 | "version": "4.1.0", 1427 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", 1428 | "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", 1429 | "dev": true, 1430 | "dependencies": { 1431 | "argparse": "^2.0.1" 1432 | }, 1433 | "bin": { 1434 | "js-yaml": "bin/js-yaml.js" 1435 | } 1436 | }, 1437 | "node_modules/json-buffer": { 1438 | "version": "3.0.1", 1439 | "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", 1440 | "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", 1441 | "dev": true 1442 | }, 1443 | "node_modules/json-schema-traverse": { 1444 | "version": "0.4.1", 1445 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", 1446 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", 1447 | "dev": true 1448 | }, 1449 | "node_modules/json-stable-stringify-without-jsonify": { 1450 | "version": "1.0.1", 1451 | "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", 1452 | "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", 1453 | "dev": true 1454 | }, 1455 | "node_modules/keyv": { 1456 | "version": "4.5.4", 1457 | "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", 1458 | "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", 1459 | "dev": true, 1460 | "dependencies": { 1461 | "json-buffer": "3.0.1" 1462 | } 1463 | }, 1464 | "node_modules/levn": { 1465 | "version": "0.4.1", 1466 | "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", 1467 | "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", 1468 | "dev": true, 1469 | "dependencies": { 1470 | "prelude-ls": "^1.2.1", 1471 | "type-check": "~0.4.0" 1472 | }, 1473 | "engines": { 1474 | "node": ">= 0.8.0" 1475 | } 1476 | }, 1477 | "node_modules/locate-path": { 1478 | "version": "6.0.0", 1479 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", 1480 | "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", 1481 | "dev": true, 1482 | "dependencies": { 1483 | "p-locate": "^5.0.0" 1484 | }, 1485 | "engines": { 1486 | "node": ">=10" 1487 | }, 1488 | "funding": { 1489 | "url": "https://github.com/sponsors/sindresorhus" 1490 | } 1491 | }, 1492 | "node_modules/lodash.merge": { 1493 | "version": "4.6.2", 1494 | "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", 1495 | "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", 1496 | "dev": true 1497 | }, 1498 | "node_modules/loose-envify": { 1499 | "version": "1.4.0", 1500 | "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", 1501 | "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", 1502 | "dependencies": { 1503 | "js-tokens": "^3.0.0 || ^4.0.0" 1504 | }, 1505 | "bin": { 1506 | "loose-envify": "cli.js" 1507 | } 1508 | }, 1509 | "node_modules/lru-cache": { 1510 | "version": "6.0.0", 1511 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", 1512 | "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", 1513 | "dev": true, 1514 | "dependencies": { 1515 | "yallist": "^4.0.0" 1516 | }, 1517 | "engines": { 1518 | "node": ">=10" 1519 | } 1520 | }, 1521 | "node_modules/merge2": { 1522 | "version": "1.4.1", 1523 | "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", 1524 | "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", 1525 | "dev": true, 1526 | "engines": { 1527 | "node": ">= 8" 1528 | } 1529 | }, 1530 | "node_modules/micromatch": { 1531 | "version": "4.0.5", 1532 | "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", 1533 | "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", 1534 | "dev": true, 1535 | "dependencies": { 1536 | "braces": "^3.0.2", 1537 | "picomatch": "^2.3.1" 1538 | }, 1539 | "engines": { 1540 | "node": ">=8.6" 1541 | } 1542 | }, 1543 | "node_modules/minimatch": { 1544 | "version": "9.0.3", 1545 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", 1546 | "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", 1547 | "dev": true, 1548 | "dependencies": { 1549 | "brace-expansion": "^2.0.1" 1550 | }, 1551 | "engines": { 1552 | "node": ">=16 || 14 >=14.17" 1553 | }, 1554 | "funding": { 1555 | "url": "https://github.com/sponsors/isaacs" 1556 | } 1557 | }, 1558 | "node_modules/ms": { 1559 | "version": "2.1.2", 1560 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 1561 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", 1562 | "dev": true 1563 | }, 1564 | "node_modules/natural-compare": { 1565 | "version": "1.4.0", 1566 | "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", 1567 | "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", 1568 | "dev": true 1569 | }, 1570 | "node_modules/once": { 1571 | "version": "1.4.0", 1572 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 1573 | "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", 1574 | "dev": true, 1575 | "dependencies": { 1576 | "wrappy": "1" 1577 | } 1578 | }, 1579 | "node_modules/optionator": { 1580 | "version": "0.9.3", 1581 | "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", 1582 | "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", 1583 | "dev": true, 1584 | "dependencies": { 1585 | "@aashutoshrathi/word-wrap": "^1.2.3", 1586 | "deep-is": "^0.1.3", 1587 | "fast-levenshtein": "^2.0.6", 1588 | "levn": "^0.4.1", 1589 | "prelude-ls": "^1.2.1", 1590 | "type-check": "^0.4.0" 1591 | }, 1592 | "engines": { 1593 | "node": ">= 0.8.0" 1594 | } 1595 | }, 1596 | "node_modules/p-limit": { 1597 | "version": "3.1.0", 1598 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", 1599 | "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", 1600 | "dev": true, 1601 | "dependencies": { 1602 | "yocto-queue": "^0.1.0" 1603 | }, 1604 | "engines": { 1605 | "node": ">=10" 1606 | }, 1607 | "funding": { 1608 | "url": "https://github.com/sponsors/sindresorhus" 1609 | } 1610 | }, 1611 | "node_modules/p-locate": { 1612 | "version": "5.0.0", 1613 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", 1614 | "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", 1615 | "dev": true, 1616 | "dependencies": { 1617 | "p-limit": "^3.0.2" 1618 | }, 1619 | "engines": { 1620 | "node": ">=10" 1621 | }, 1622 | "funding": { 1623 | "url": "https://github.com/sponsors/sindresorhus" 1624 | } 1625 | }, 1626 | "node_modules/parent-module": { 1627 | "version": "1.0.1", 1628 | "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", 1629 | "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", 1630 | "dev": true, 1631 | "dependencies": { 1632 | "callsites": "^3.0.0" 1633 | }, 1634 | "engines": { 1635 | "node": ">=6" 1636 | } 1637 | }, 1638 | "node_modules/path-exists": { 1639 | "version": "4.0.0", 1640 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", 1641 | "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", 1642 | "dev": true, 1643 | "engines": { 1644 | "node": ">=8" 1645 | } 1646 | }, 1647 | "node_modules/path-is-absolute": { 1648 | "version": "1.0.1", 1649 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 1650 | "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", 1651 | "dev": true, 1652 | "engines": { 1653 | "node": ">=0.10.0" 1654 | } 1655 | }, 1656 | "node_modules/path-key": { 1657 | "version": "3.1.1", 1658 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", 1659 | "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", 1660 | "dev": true, 1661 | "engines": { 1662 | "node": ">=8" 1663 | } 1664 | }, 1665 | "node_modules/path-type": { 1666 | "version": "4.0.0", 1667 | "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", 1668 | "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", 1669 | "dev": true, 1670 | "engines": { 1671 | "node": ">=8" 1672 | } 1673 | }, 1674 | "node_modules/picomatch": { 1675 | "version": "2.3.1", 1676 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", 1677 | "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", 1678 | "dev": true, 1679 | "engines": { 1680 | "node": ">=8.6" 1681 | }, 1682 | "funding": { 1683 | "url": "https://github.com/sponsors/jonschlinkert" 1684 | } 1685 | }, 1686 | "node_modules/prelude-ls": { 1687 | "version": "1.2.1", 1688 | "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", 1689 | "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", 1690 | "dev": true, 1691 | "engines": { 1692 | "node": ">= 0.8.0" 1693 | } 1694 | }, 1695 | "node_modules/prettier": { 1696 | "version": "3.2.5", 1697 | "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.5.tgz", 1698 | "integrity": "sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==", 1699 | "dev": true, 1700 | "bin": { 1701 | "prettier": "bin/prettier.cjs" 1702 | }, 1703 | "engines": { 1704 | "node": ">=14" 1705 | }, 1706 | "funding": { 1707 | "url": "https://github.com/prettier/prettier?sponsor=1" 1708 | } 1709 | }, 1710 | "node_modules/punycode": { 1711 | "version": "2.3.1", 1712 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", 1713 | "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", 1714 | "dev": true, 1715 | "engines": { 1716 | "node": ">=6" 1717 | } 1718 | }, 1719 | "node_modules/queue-microtask": { 1720 | "version": "1.2.3", 1721 | "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", 1722 | "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", 1723 | "dev": true, 1724 | "funding": [ 1725 | { 1726 | "type": "github", 1727 | "url": "https://github.com/sponsors/feross" 1728 | }, 1729 | { 1730 | "type": "patreon", 1731 | "url": "https://www.patreon.com/feross" 1732 | }, 1733 | { 1734 | "type": "consulting", 1735 | "url": "https://feross.org/support" 1736 | } 1737 | ] 1738 | }, 1739 | "node_modules/react": { 1740 | "version": "18.2.0", 1741 | "resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz", 1742 | "integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==", 1743 | "dependencies": { 1744 | "loose-envify": "^1.1.0" 1745 | }, 1746 | "engines": { 1747 | "node": ">=0.10.0" 1748 | } 1749 | }, 1750 | "node_modules/resolve-from": { 1751 | "version": "4.0.0", 1752 | "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", 1753 | "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", 1754 | "dev": true, 1755 | "engines": { 1756 | "node": ">=4" 1757 | } 1758 | }, 1759 | "node_modules/reusify": { 1760 | "version": "1.0.4", 1761 | "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", 1762 | "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", 1763 | "dev": true, 1764 | "engines": { 1765 | "iojs": ">=1.0.0", 1766 | "node": ">=0.10.0" 1767 | } 1768 | }, 1769 | "node_modules/rimraf": { 1770 | "version": "3.0.2", 1771 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", 1772 | "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", 1773 | "dev": true, 1774 | "dependencies": { 1775 | "glob": "^7.1.3" 1776 | }, 1777 | "bin": { 1778 | "rimraf": "bin.js" 1779 | }, 1780 | "funding": { 1781 | "url": "https://github.com/sponsors/isaacs" 1782 | } 1783 | }, 1784 | "node_modules/run-parallel": { 1785 | "version": "1.2.0", 1786 | "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", 1787 | "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", 1788 | "dev": true, 1789 | "funding": [ 1790 | { 1791 | "type": "github", 1792 | "url": "https://github.com/sponsors/feross" 1793 | }, 1794 | { 1795 | "type": "patreon", 1796 | "url": "https://www.patreon.com/feross" 1797 | }, 1798 | { 1799 | "type": "consulting", 1800 | "url": "https://feross.org/support" 1801 | } 1802 | ], 1803 | "dependencies": { 1804 | "queue-microtask": "^1.2.2" 1805 | } 1806 | }, 1807 | "node_modules/semver": { 1808 | "version": "7.6.0", 1809 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", 1810 | "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", 1811 | "dev": true, 1812 | "dependencies": { 1813 | "lru-cache": "^6.0.0" 1814 | }, 1815 | "bin": { 1816 | "semver": "bin/semver.js" 1817 | }, 1818 | "engines": { 1819 | "node": ">=10" 1820 | } 1821 | }, 1822 | "node_modules/shebang-command": { 1823 | "version": "2.0.0", 1824 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", 1825 | "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", 1826 | "dev": true, 1827 | "dependencies": { 1828 | "shebang-regex": "^3.0.0" 1829 | }, 1830 | "engines": { 1831 | "node": ">=8" 1832 | } 1833 | }, 1834 | "node_modules/shebang-regex": { 1835 | "version": "3.0.0", 1836 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", 1837 | "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", 1838 | "dev": true, 1839 | "engines": { 1840 | "node": ">=8" 1841 | } 1842 | }, 1843 | "node_modules/slash": { 1844 | "version": "3.0.0", 1845 | "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", 1846 | "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", 1847 | "dev": true, 1848 | "engines": { 1849 | "node": ">=8" 1850 | } 1851 | }, 1852 | "node_modules/strip-ansi": { 1853 | "version": "6.0.1", 1854 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 1855 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 1856 | "dev": true, 1857 | "dependencies": { 1858 | "ansi-regex": "^5.0.1" 1859 | }, 1860 | "engines": { 1861 | "node": ">=8" 1862 | } 1863 | }, 1864 | "node_modules/strip-json-comments": { 1865 | "version": "3.1.1", 1866 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", 1867 | "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", 1868 | "dev": true, 1869 | "engines": { 1870 | "node": ">=8" 1871 | }, 1872 | "funding": { 1873 | "url": "https://github.com/sponsors/sindresorhus" 1874 | } 1875 | }, 1876 | "node_modules/supports-color": { 1877 | "version": "7.2.0", 1878 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", 1879 | "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", 1880 | "dev": true, 1881 | "dependencies": { 1882 | "has-flag": "^4.0.0" 1883 | }, 1884 | "engines": { 1885 | "node": ">=8" 1886 | } 1887 | }, 1888 | "node_modules/text-table": { 1889 | "version": "0.2.0", 1890 | "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", 1891 | "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", 1892 | "dev": true 1893 | }, 1894 | "node_modules/title-case": { 1895 | "version": "3.0.3", 1896 | "resolved": "https://registry.npmjs.org/title-case/-/title-case-3.0.3.tgz", 1897 | "integrity": "sha512-e1zGYRvbffpcHIrnuqT0Dh+gEJtDaxDSoG4JAIpq4oDFyooziLBIiYQv0GBT4FUAnUop5uZ1hiIAj7oAF6sOCA==", 1898 | "dev": true, 1899 | "dependencies": { 1900 | "tslib": "^2.0.3" 1901 | } 1902 | }, 1903 | "node_modules/to-regex-range": { 1904 | "version": "5.0.1", 1905 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 1906 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 1907 | "dev": true, 1908 | "dependencies": { 1909 | "is-number": "^7.0.0" 1910 | }, 1911 | "engines": { 1912 | "node": ">=8.0" 1913 | } 1914 | }, 1915 | "node_modules/ts-api-utils": { 1916 | "version": "1.2.1", 1917 | "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.2.1.tgz", 1918 | "integrity": "sha512-RIYA36cJn2WiH9Hy77hdF9r7oEwxAtB/TS9/S4Qd90Ap4z5FSiin5zEiTL44OII1Y3IIlEvxwxFUVgrHSZ/UpA==", 1919 | "dev": true, 1920 | "engines": { 1921 | "node": ">=16" 1922 | }, 1923 | "peerDependencies": { 1924 | "typescript": ">=4.2.0" 1925 | } 1926 | }, 1927 | "node_modules/tslib": { 1928 | "version": "2.6.2", 1929 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", 1930 | "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==", 1931 | "dev": true 1932 | }, 1933 | "node_modules/tsutils": { 1934 | "version": "3.21.0", 1935 | "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", 1936 | "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", 1937 | "dev": true, 1938 | "dependencies": { 1939 | "tslib": "^1.8.1" 1940 | }, 1941 | "engines": { 1942 | "node": ">= 6" 1943 | }, 1944 | "peerDependencies": { 1945 | "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" 1946 | } 1947 | }, 1948 | "node_modules/tsutils/node_modules/tslib": { 1949 | "version": "1.14.1", 1950 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", 1951 | "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", 1952 | "dev": true 1953 | }, 1954 | "node_modules/type-check": { 1955 | "version": "0.4.0", 1956 | "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", 1957 | "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", 1958 | "dev": true, 1959 | "dependencies": { 1960 | "prelude-ls": "^1.2.1" 1961 | }, 1962 | "engines": { 1963 | "node": ">= 0.8.0" 1964 | } 1965 | }, 1966 | "node_modules/type-fest": { 1967 | "version": "0.20.2", 1968 | "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", 1969 | "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", 1970 | "dev": true, 1971 | "engines": { 1972 | "node": ">=10" 1973 | }, 1974 | "funding": { 1975 | "url": "https://github.com/sponsors/sindresorhus" 1976 | } 1977 | }, 1978 | "node_modules/typescript": { 1979 | "version": "5.3.3", 1980 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz", 1981 | "integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==", 1982 | "dev": true, 1983 | "bin": { 1984 | "tsc": "bin/tsc", 1985 | "tsserver": "bin/tsserver" 1986 | }, 1987 | "engines": { 1988 | "node": ">=14.17" 1989 | } 1990 | }, 1991 | "node_modules/undici-types": { 1992 | "version": "5.26.5", 1993 | "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", 1994 | "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==" 1995 | }, 1996 | "node_modules/uri-js": { 1997 | "version": "4.4.1", 1998 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", 1999 | "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", 2000 | "dev": true, 2001 | "dependencies": { 2002 | "punycode": "^2.1.0" 2003 | } 2004 | }, 2005 | "node_modules/which": { 2006 | "version": "2.0.2", 2007 | "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", 2008 | "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", 2009 | "dev": true, 2010 | "dependencies": { 2011 | "isexe": "^2.0.0" 2012 | }, 2013 | "bin": { 2014 | "node-which": "bin/node-which" 2015 | }, 2016 | "engines": { 2017 | "node": ">= 8" 2018 | } 2019 | }, 2020 | "node_modules/wrappy": { 2021 | "version": "1.0.2", 2022 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 2023 | "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", 2024 | "dev": true 2025 | }, 2026 | "node_modules/yallist": { 2027 | "version": "4.0.0", 2028 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", 2029 | "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", 2030 | "dev": true 2031 | }, 2032 | "node_modules/yocto-queue": { 2033 | "version": "0.1.0", 2034 | "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", 2035 | "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", 2036 | "dev": true, 2037 | "engines": { 2038 | "node": ">=10" 2039 | }, 2040 | "funding": { 2041 | "url": "https://github.com/sponsors/sindresorhus" 2042 | } 2043 | } 2044 | } 2045 | } 2046 | --------------------------------------------------------------------------------