Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 66c72f46a2 | |||
| fa024ff1f4 | |||
| 8d6ecabdd2 | |||
| 50fc6d12a6 | |||
| 2b6b5706bb |
38
.gitattributes
vendored
Normal file
38
.gitattributes
vendored
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
####################################
|
||||||
|
# Fin de ligne cohérente
|
||||||
|
####################################
|
||||||
|
* text=auto eol=lf
|
||||||
|
|
||||||
|
####################################
|
||||||
|
# Code tiers / dépendances
|
||||||
|
####################################
|
||||||
|
node_modules/** linguist-vendored
|
||||||
|
vendor/** linguist-vendored
|
||||||
|
third_party/** linguist-vendored
|
||||||
|
|
||||||
|
####################################
|
||||||
|
# Code généré / IA / outputs
|
||||||
|
####################################
|
||||||
|
generated/** linguist-generated
|
||||||
|
lovable-output/** linguist-generated
|
||||||
|
lovable-generated/** linguist-generated
|
||||||
|
*.ai linguist-generated
|
||||||
|
*.lovable linguist-generated
|
||||||
|
*.gen.* linguist-generated
|
||||||
|
|
||||||
|
####################################
|
||||||
|
# Binaires
|
||||||
|
####################################
|
||||||
|
*.png binary
|
||||||
|
*.jpg binary
|
||||||
|
*.jpeg binary
|
||||||
|
*.gif binary
|
||||||
|
*.ico binary
|
||||||
|
*.svg binary
|
||||||
|
|
||||||
|
####################################
|
||||||
|
# Forcer types de fichiers si nécessaire
|
||||||
|
####################################
|
||||||
|
*.ts linguist-language=TypeScript
|
||||||
|
*.go linguist-language=Go
|
||||||
|
*.rs linguist-language=Rust
|
||||||
80
.gitignore
vendored
80
.gitignore
vendored
@ -1,27 +1,79 @@
|
|||||||
# ---> Go
|
####################################
|
||||||
# If you prefer the allow list template instead of the deny list, see community template:
|
# Système
|
||||||
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
|
####################################
|
||||||
#
|
.DS_Store
|
||||||
# Binaries for programs and plugins
|
Thumbs.db
|
||||||
|
*.swp
|
||||||
|
*.tmp
|
||||||
|
*.log
|
||||||
|
|
||||||
|
####################################
|
||||||
|
# Node.js / Frontend
|
||||||
|
####################################
|
||||||
|
node_modules/
|
||||||
|
dist/
|
||||||
|
build/
|
||||||
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
package-lock.json
|
||||||
|
.env
|
||||||
|
.env.local
|
||||||
|
.env.*.local
|
||||||
|
|
||||||
|
####################################
|
||||||
|
# Go
|
||||||
|
####################################
|
||||||
|
# Binaires
|
||||||
*.exe
|
*.exe
|
||||||
*.exe~
|
*.exe~
|
||||||
*.dll
|
*.dll
|
||||||
*.so
|
*.so
|
||||||
*.dylib
|
*.dylib
|
||||||
|
|
||||||
# Test binary, built with `go test -c`
|
|
||||||
*.test
|
*.test
|
||||||
|
|
||||||
# Output of the go coverage tool, specifically when used with LiteIDE
|
|
||||||
*.out
|
*.out
|
||||||
|
|
||||||
# Dependency directories (remove the comment below to include it)
|
# Go workspace
|
||||||
# vendor/
|
bin/
|
||||||
|
pkg/
|
||||||
|
|
||||||
# Go workspace file
|
# Modules
|
||||||
go.work
|
go.work
|
||||||
go.work.sum
|
go.work.sum
|
||||||
|
|
||||||
# env file
|
####################################
|
||||||
.env
|
# Rust
|
||||||
|
####################################
|
||||||
|
target/
|
||||||
|
*.rs.bk
|
||||||
|
# Cargo.lock géré par toi si nécessaire
|
||||||
|
|
||||||
|
####################################
|
||||||
|
# Docker
|
||||||
|
####################################
|
||||||
|
docker-compose.override.yml
|
||||||
|
|
||||||
|
####################################
|
||||||
|
# CI / IDE
|
||||||
|
####################################
|
||||||
|
.vscode/
|
||||||
|
.idea/
|
||||||
|
*.iml
|
||||||
|
|
||||||
|
####################################
|
||||||
|
# Lovable / code généré par IA
|
||||||
|
####################################
|
||||||
|
# Dossiers générés
|
||||||
|
lovable-output/
|
||||||
|
lovable-generated/
|
||||||
|
.generated/
|
||||||
|
generated/
|
||||||
|
.ai/
|
||||||
|
.ai-output/
|
||||||
|
|
||||||
|
# Fichiers générés
|
||||||
|
*.lovable
|
||||||
|
*.prompt
|
||||||
|
*.completion
|
||||||
|
*.response
|
||||||
|
*.gen.*
|
||||||
86
README.md
86
README.md
@ -1,2 +1,88 @@
|
|||||||
|
|
||||||
# ServiceManager
|
# ServiceManager
|
||||||
|
|
||||||
|
Monitoring your services from different machine on a same place.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
docker-compose.yaml
|
||||||
|
|
||||||
|
```YAML
|
||||||
|
services:
|
||||||
|
migrate:
|
||||||
|
image: migrate/migrate
|
||||||
|
volumes:
|
||||||
|
# Attention : assure-toi que le dossier migrations est présent sur ton serveur
|
||||||
|
- ./migrations:/migrations
|
||||||
|
networks:
|
||||||
|
- app-net
|
||||||
|
command: -path=/migrations/ -database "postgres://admin:admin@db:5432/monitoring?sslmode=disable" up
|
||||||
|
depends_on:
|
||||||
|
db:
|
||||||
|
condition: service_healthy
|
||||||
|
|
||||||
|
backend:
|
||||||
|
image: gitea.anthonybouteiller.ovh/blomios/servicemanager-backend:latest
|
||||||
|
container_name: sm-api
|
||||||
|
networks:
|
||||||
|
- app-net
|
||||||
|
depends_on:
|
||||||
|
migrate:
|
||||||
|
condition: service_completed_successfully
|
||||||
|
# On expose les ports si nécessaire, sinon Nginx s'en occupe via le réseau interne
|
||||||
|
expose:
|
||||||
|
- "8080"
|
||||||
|
|
||||||
|
frontend:
|
||||||
|
image: gitea.anthonybouteiller.ovh/blomios/servicemanager-frontend:latest
|
||||||
|
container_name: sm-ui
|
||||||
|
networks:
|
||||||
|
- app-net
|
||||||
|
depends_on:
|
||||||
|
- backend
|
||||||
|
expose:
|
||||||
|
- "3000"
|
||||||
|
|
||||||
|
db:
|
||||||
|
image: postgres:16-alpine
|
||||||
|
container_name: db
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: admin
|
||||||
|
POSTGRES_PASSWORD: admin
|
||||||
|
POSTGRES_DB: monitoring
|
||||||
|
ports:
|
||||||
|
- "5432:5432"
|
||||||
|
volumes:
|
||||||
|
- db-data:/var/lib/postgresql/data
|
||||||
|
networks:
|
||||||
|
- app-net
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "pg_isready -U admin -d monitoring"]
|
||||||
|
interval: 5s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 5
|
||||||
|
|
||||||
|
nginx:
|
||||||
|
image: nginx:alpine
|
||||||
|
container_name: monitor-proxy
|
||||||
|
ports:
|
||||||
|
- "8082:80"
|
||||||
|
- "444:443"
|
||||||
|
volumes:
|
||||||
|
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
||||||
|
depends_on:
|
||||||
|
- frontend
|
||||||
|
- backend
|
||||||
|
networks:
|
||||||
|
- app-net
|
||||||
|
|
||||||
|
networks:
|
||||||
|
app-net:
|
||||||
|
driver: bridge
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
db-data:
|
||||||
|
```
|
||||||
|
|
||||||
21
node_modules/@types/react-dom/LICENSE
generated
vendored
21
node_modules/@types/react-dom/LICENSE
generated
vendored
@ -1,21 +0,0 @@
|
|||||||
MIT License
|
|
||||||
|
|
||||||
Copyright (c) Microsoft Corporation.
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
|
||||||
copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
||||||
SOFTWARE
|
|
||||||
16
node_modules/@types/react-dom/README.md
generated
vendored
16
node_modules/@types/react-dom/README.md
generated
vendored
@ -1,16 +0,0 @@
|
|||||||
# Installation
|
|
||||||
> `npm install --save @types/react-dom`
|
|
||||||
|
|
||||||
# Summary
|
|
||||||
This package contains type definitions for react-dom (https://react.dev/).
|
|
||||||
|
|
||||||
# Details
|
|
||||||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dom.
|
|
||||||
|
|
||||||
### Additional Details
|
|
||||||
* Last updated: Wed, 12 Nov 2025 04:37:38 GMT
|
|
||||||
* Dependencies: none
|
|
||||||
* Peer dependencies: [@types/react](https://npmjs.com/package/@types/react)
|
|
||||||
|
|
||||||
# Credits
|
|
||||||
These definitions were written by [Asana](https://asana.com), [AssureSign](http://www.assuresign.com), [Microsoft](https://microsoft.com), [MartynasZilinskas](https://github.com/MartynasZilinskas), [Josh Rutherford](https://github.com/theruther4d), [Jessica Franco](https://github.com/Jessidhia), and [Sebastian Silbermann](https://github.com/eps1lon).
|
|
||||||
71
node_modules/@types/react-dom/canary.d.ts
generated
vendored
71
node_modules/@types/react-dom/canary.d.ts
generated
vendored
@ -1,71 +0,0 @@
|
|||||||
/* eslint-disable @definitelytyped/no-self-import -- self-imports in module augmentations aren't self-imports */
|
|
||||||
/* eslint-disable @definitelytyped/no-declare-current-package -- The module augmentations are optional */
|
|
||||||
/**
|
|
||||||
* These are types for things that are present in the upcoming React 18 release.
|
|
||||||
*
|
|
||||||
* Once React 18 is released they can just be moved to the main index file.
|
|
||||||
*
|
|
||||||
* To load the types declared here in an actual project, there are three ways. The easiest one,
|
|
||||||
* if your `tsconfig.json` already has a `"types"` array in the `"compilerOptions"` section,
|
|
||||||
* is to add `"react-dom/canary"` to the `"types"` array.
|
|
||||||
*
|
|
||||||
* Alternatively, a specific import syntax can to be used from a typescript file.
|
|
||||||
* This module does not exist in reality, which is why the {} is important:
|
|
||||||
*
|
|
||||||
* ```ts
|
|
||||||
* import {} from 'react-dom/canary'
|
|
||||||
* ```
|
|
||||||
*
|
|
||||||
* It is also possible to include it through a triple-slash reference:
|
|
||||||
*
|
|
||||||
* ```ts
|
|
||||||
* /// <reference types="react-dom/canary" />
|
|
||||||
* ```
|
|
||||||
*
|
|
||||||
* Either the import or the reference only needs to appear once, anywhere in the project.
|
|
||||||
*/
|
|
||||||
|
|
||||||
// See https://github.com/facebook/react/blob/main/packages/react-dom/index.js to see how the exports are declared,
|
|
||||||
// but confirm with published source code (e.g. https://unpkg.com/react-dom@canary) that these exports end up in the published code
|
|
||||||
|
|
||||||
import React = require("react");
|
|
||||||
import ReactDOM = require(".");
|
|
||||||
|
|
||||||
export {};
|
|
||||||
|
|
||||||
declare module "react" {
|
|
||||||
// @enableViewTransition
|
|
||||||
interface ViewTransitionPseudoElement extends Animatable {
|
|
||||||
getComputedStyle: () => CSSStyleDeclaration;
|
|
||||||
}
|
|
||||||
|
|
||||||
interface ViewTransitionInstance {
|
|
||||||
group: ViewTransitionPseudoElement;
|
|
||||||
imagePair: ViewTransitionPseudoElement;
|
|
||||||
old: ViewTransitionPseudoElement;
|
|
||||||
new: ViewTransitionPseudoElement;
|
|
||||||
}
|
|
||||||
|
|
||||||
// @enableFragmentRefs
|
|
||||||
interface FragmentInstance {
|
|
||||||
blur: () => void;
|
|
||||||
focus: (focusOptions?: FocusOptions | undefined) => void;
|
|
||||||
focusLast: (focusOptions?: FocusOptions | undefined) => void;
|
|
||||||
observeUsing(observer: IntersectionObserver | ResizeObserver): void;
|
|
||||||
unobserveUsing(observer: IntersectionObserver | ResizeObserver): void;
|
|
||||||
getClientRects(): Array<DOMRect>;
|
|
||||||
getRootNode(getRootNodeOptions?: GetRootNodeOptions | undefined): Document | ShadowRoot | FragmentInstance;
|
|
||||||
addEventListener(
|
|
||||||
type: string,
|
|
||||||
listener: EventListener,
|
|
||||||
optionsOrUseCapture?: Parameters<Element["addEventListener"]>[2],
|
|
||||||
): void;
|
|
||||||
removeEventListener(
|
|
||||||
type: string,
|
|
||||||
listener: EventListener,
|
|
||||||
optionsOrUseCapture?: Parameters<Element["removeEventListener"]>[2],
|
|
||||||
): void;
|
|
||||||
dispatchEvent(event: Event): boolean;
|
|
||||||
scrollIntoView(alignToTop?: boolean): void;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
105
node_modules/@types/react-dom/client.d.ts
generated
vendored
105
node_modules/@types/react-dom/client.d.ts
generated
vendored
@ -1,105 +0,0 @@
|
|||||||
/**
|
|
||||||
* WARNING: This entrypoint is only available starting with `react-dom@18.0.0-rc.1`
|
|
||||||
*/
|
|
||||||
|
|
||||||
// See https://github.com/facebook/react/blob/main/packages/react-dom/client.js to see how the exports are declared,
|
|
||||||
|
|
||||||
import React = require("react");
|
|
||||||
|
|
||||||
export {};
|
|
||||||
|
|
||||||
declare const REACT_FORM_STATE_SIGIL: unique symbol;
|
|
||||||
export interface ReactFormState {
|
|
||||||
[REACT_FORM_STATE_SIGIL]: never;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface HydrationOptions {
|
|
||||||
formState?: ReactFormState | null;
|
|
||||||
/**
|
|
||||||
* Prefix for `useId`.
|
|
||||||
*/
|
|
||||||
identifierPrefix?: string;
|
|
||||||
onUncaughtError?:
|
|
||||||
| ((error: unknown, errorInfo: { componentStack?: string | undefined }) => void)
|
|
||||||
| undefined;
|
|
||||||
onRecoverableError?: (error: unknown, errorInfo: ErrorInfo) => void;
|
|
||||||
onCaughtError?:
|
|
||||||
| ((
|
|
||||||
error: unknown,
|
|
||||||
errorInfo: {
|
|
||||||
componentStack?: string | undefined;
|
|
||||||
errorBoundary?: React.Component<unknown> | undefined;
|
|
||||||
},
|
|
||||||
) => void)
|
|
||||||
| undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface RootOptions {
|
|
||||||
/**
|
|
||||||
* Prefix for `useId`.
|
|
||||||
*/
|
|
||||||
identifierPrefix?: string;
|
|
||||||
onUncaughtError?:
|
|
||||||
| ((error: unknown, errorInfo: { componentStack?: string | undefined }) => void)
|
|
||||||
| undefined;
|
|
||||||
onRecoverableError?: (error: unknown, errorInfo: ErrorInfo) => void;
|
|
||||||
onCaughtError?:
|
|
||||||
| ((
|
|
||||||
error: unknown,
|
|
||||||
errorInfo: {
|
|
||||||
componentStack?: string | undefined;
|
|
||||||
errorBoundary?: React.Component<unknown> | undefined;
|
|
||||||
},
|
|
||||||
) => void)
|
|
||||||
| undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ErrorInfo {
|
|
||||||
componentStack?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface Root {
|
|
||||||
render(children: React.ReactNode): void;
|
|
||||||
unmount(): void;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Different release channels declare additional types of ReactNode this particular release channel accepts.
|
|
||||||
* App or library types should never augment this interface.
|
|
||||||
*/
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
||||||
export interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_CREATE_ROOT_CONTAINERS {}
|
|
||||||
|
|
||||||
export type Container =
|
|
||||||
| Element
|
|
||||||
| DocumentFragment
|
|
||||||
| Document
|
|
||||||
| DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_CREATE_ROOT_CONTAINERS[
|
|
||||||
keyof DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_CREATE_ROOT_CONTAINERS
|
|
||||||
];
|
|
||||||
|
|
||||||
/**
|
|
||||||
* createRoot lets you create a root to display React components inside a browser DOM node.
|
|
||||||
*
|
|
||||||
* @see {@link https://react.dev/reference/react-dom/client/createRoot API Reference for `createRoot`}
|
|
||||||
*/
|
|
||||||
export function createRoot(container: Container, options?: RootOptions): Root;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Same as `createRoot()`, but is used to hydrate a container whose HTML contents were rendered by ReactDOMServer.
|
|
||||||
*
|
|
||||||
* React will attempt to attach event listeners to the existing markup.
|
|
||||||
*
|
|
||||||
* **Example Usage**
|
|
||||||
*
|
|
||||||
* ```jsx
|
|
||||||
* hydrateRoot(document.querySelector('#root'), <App />)
|
|
||||||
* ```
|
|
||||||
*
|
|
||||||
* @see https://react.dev/reference/react-dom/client/hydrateRoot
|
|
||||||
*/
|
|
||||||
export function hydrateRoot(
|
|
||||||
container: Element | Document,
|
|
||||||
initialChildren: React.ReactNode,
|
|
||||||
options?: HydrationOptions,
|
|
||||||
): Root;
|
|
||||||
54
node_modules/@types/react-dom/experimental.d.ts
generated
vendored
54
node_modules/@types/react-dom/experimental.d.ts
generated
vendored
@ -1,54 +0,0 @@
|
|||||||
/**
|
|
||||||
* These are types for things that are present in the `experimental` builds of React but not yet
|
|
||||||
* on a stable build.
|
|
||||||
*
|
|
||||||
* Once they are promoted to stable they can just be moved to the main index file.
|
|
||||||
*
|
|
||||||
* To load the types declared here in an actual project, there are three ways. The easiest one,
|
|
||||||
* if your `tsconfig.json` already has a `"types"` array in the `"compilerOptions"` section,
|
|
||||||
* is to add `"react-dom/experimental"` to the `"types"` array.
|
|
||||||
*
|
|
||||||
* Alternatively, a specific import syntax can to be used from a typescript file.
|
|
||||||
* This module does not exist in reality, which is why the {} is important:
|
|
||||||
*
|
|
||||||
* ```ts
|
|
||||||
* import {} from 'react-dom/experimental'
|
|
||||||
* ```
|
|
||||||
*
|
|
||||||
* It is also possible to include it through a triple-slash reference:
|
|
||||||
*
|
|
||||||
* ```ts
|
|
||||||
* /// <reference types="react-dom/experimental" />
|
|
||||||
* ```
|
|
||||||
*
|
|
||||||
* Either the import or the reference only needs to appear once, anywhere in the project.
|
|
||||||
*/
|
|
||||||
|
|
||||||
// See https://github.com/facebook/react/blob/main/packages/react-dom/index.experimental.js to see how the exports are declared,
|
|
||||||
// but confirm with published source code (e.g. https://unpkg.com/react-dom@experimental) that these exports end up in the published code
|
|
||||||
|
|
||||||
import React = require("react");
|
|
||||||
import ReactDOM = require("./canary");
|
|
||||||
|
|
||||||
export {};
|
|
||||||
|
|
||||||
declare const UNDEFINED_VOID_ONLY: unique symbol;
|
|
||||||
type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never };
|
|
||||||
|
|
||||||
declare module "." {
|
|
||||||
}
|
|
||||||
|
|
||||||
declare module "react" {
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
||||||
interface GestureProvider extends AnimationTimeline {}
|
|
||||||
}
|
|
||||||
|
|
||||||
declare module "./client" {
|
|
||||||
type TransitionIndicatorCleanup = () => VoidOrUndefinedOnly;
|
|
||||||
interface RootOptions {
|
|
||||||
onDefaultTransitionIndicator?: (() => void | TransitionIndicatorCleanup) | undefined;
|
|
||||||
}
|
|
||||||
interface HydrationOptions {
|
|
||||||
onDefaultTransitionIndicator?: (() => void | TransitionIndicatorCleanup) | undefined;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
133
node_modules/@types/react-dom/index.d.ts
generated
vendored
133
node_modules/@types/react-dom/index.d.ts
generated
vendored
@ -1,133 +0,0 @@
|
|||||||
// NOTE: Users of the `experimental` builds of React should add a reference
|
|
||||||
// to 'react-dom/experimental' in their project. See experimental.d.ts's top comment
|
|
||||||
// for reference and documentation on how exactly to do it.
|
|
||||||
|
|
||||||
export as namespace ReactDOM;
|
|
||||||
|
|
||||||
import { Key, ReactNode, ReactPortal } from "react";
|
|
||||||
|
|
||||||
declare module "react" {
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
||||||
interface CacheSignal extends AbortSignal {}
|
|
||||||
}
|
|
||||||
|
|
||||||
export function createPortal(
|
|
||||||
children: ReactNode,
|
|
||||||
container: Element | DocumentFragment,
|
|
||||||
key?: Key | null,
|
|
||||||
): ReactPortal;
|
|
||||||
|
|
||||||
export const version: string;
|
|
||||||
|
|
||||||
export function flushSync<R>(fn: () => R): R;
|
|
||||||
|
|
||||||
export function unstable_batchedUpdates<A, R>(callback: (a: A) => R, a: A): R;
|
|
||||||
export function unstable_batchedUpdates<R>(callback: () => R): R;
|
|
||||||
|
|
||||||
export interface FormStatusNotPending {
|
|
||||||
pending: false;
|
|
||||||
data: null;
|
|
||||||
method: null;
|
|
||||||
action: null;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface FormStatusPending {
|
|
||||||
pending: true;
|
|
||||||
data: FormData;
|
|
||||||
method: string;
|
|
||||||
action: string | ((formData: FormData) => void | Promise<void>);
|
|
||||||
}
|
|
||||||
|
|
||||||
export type FormStatus = FormStatusPending | FormStatusNotPending;
|
|
||||||
|
|
||||||
export function useFormStatus(): FormStatus;
|
|
||||||
|
|
||||||
export function useFormState<State>(
|
|
||||||
action: (state: Awaited<State>) => State | Promise<State>,
|
|
||||||
initialState: Awaited<State>,
|
|
||||||
permalink?: string,
|
|
||||||
): [state: Awaited<State>, dispatch: () => void, isPending: boolean];
|
|
||||||
export function useFormState<State, Payload>(
|
|
||||||
action: (state: Awaited<State>, payload: Payload) => State | Promise<State>,
|
|
||||||
initialState: Awaited<State>,
|
|
||||||
permalink?: string,
|
|
||||||
): [state: Awaited<State>, dispatch: (payload: Payload) => void, isPending: boolean];
|
|
||||||
|
|
||||||
export function prefetchDNS(href: string): void;
|
|
||||||
|
|
||||||
export interface PreconnectOptions {
|
|
||||||
// Don't create a helper type.
|
|
||||||
// It would have to be in module scope to be inlined in TS tooltips.
|
|
||||||
// But then it becomes part of the public API.
|
|
||||||
// TODO: Upstream to microsoft/TypeScript-DOM-lib-generator -> w3c/webref
|
|
||||||
// since the spec has a notion of a dedicated type: https://html.spec.whatwg.org/multipage/urls-and-fetching.html#cors-settings-attribute
|
|
||||||
crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
|
|
||||||
}
|
|
||||||
export function preconnect(href: string, options?: PreconnectOptions): void;
|
|
||||||
|
|
||||||
export type PreloadAs =
|
|
||||||
| "audio"
|
|
||||||
| "document"
|
|
||||||
| "embed"
|
|
||||||
| "fetch"
|
|
||||||
| "font"
|
|
||||||
| "image"
|
|
||||||
| "object"
|
|
||||||
| "track"
|
|
||||||
| "script"
|
|
||||||
| "style"
|
|
||||||
| "video"
|
|
||||||
| "worker";
|
|
||||||
export interface PreloadOptions {
|
|
||||||
as: PreloadAs;
|
|
||||||
crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
|
|
||||||
fetchPriority?: "high" | "low" | "auto" | undefined;
|
|
||||||
// TODO: These should only be allowed with `as: 'image'` but it's not trivial to write tests against the full TS support matrix.
|
|
||||||
imageSizes?: string | undefined;
|
|
||||||
imageSrcSet?: string | undefined;
|
|
||||||
integrity?: string | undefined;
|
|
||||||
type?: string | undefined;
|
|
||||||
nonce?: string | undefined;
|
|
||||||
referrerPolicy?: ReferrerPolicy | undefined;
|
|
||||||
media?: string | undefined;
|
|
||||||
}
|
|
||||||
export function preload(href: string, options?: PreloadOptions): void;
|
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/links.html#link-type-modulepreload
|
|
||||||
export type PreloadModuleAs = RequestDestination;
|
|
||||||
export interface PreloadModuleOptions {
|
|
||||||
/**
|
|
||||||
* @default "script"
|
|
||||||
*/
|
|
||||||
as: PreloadModuleAs;
|
|
||||||
crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
|
|
||||||
integrity?: string | undefined;
|
|
||||||
nonce?: string | undefined;
|
|
||||||
}
|
|
||||||
export function preloadModule(href: string, options?: PreloadModuleOptions): void;
|
|
||||||
|
|
||||||
export type PreinitAs = "script" | "style";
|
|
||||||
export interface PreinitOptions {
|
|
||||||
as: PreinitAs;
|
|
||||||
crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
|
|
||||||
fetchPriority?: "high" | "low" | "auto" | undefined;
|
|
||||||
precedence?: string | undefined;
|
|
||||||
integrity?: string | undefined;
|
|
||||||
nonce?: string | undefined;
|
|
||||||
}
|
|
||||||
export function preinit(href: string, options?: PreinitOptions): void;
|
|
||||||
|
|
||||||
// Will be expanded to include all of https://github.com/tc39/proposal-import-attributes
|
|
||||||
export type PreinitModuleAs = "script";
|
|
||||||
export interface PreinitModuleOptions {
|
|
||||||
/**
|
|
||||||
* @default "script"
|
|
||||||
*/
|
|
||||||
as?: PreinitModuleAs;
|
|
||||||
crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
|
|
||||||
integrity?: string | undefined;
|
|
||||||
nonce?: string | undefined;
|
|
||||||
}
|
|
||||||
export function preinitModule(href: string, options?: PreinitModuleOptions): void;
|
|
||||||
|
|
||||||
export function requestFormReset(form: HTMLFormElement): void;
|
|
||||||
128
node_modules/@types/react-dom/package.json
generated
vendored
128
node_modules/@types/react-dom/package.json
generated
vendored
@ -1,128 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "@types/react-dom",
|
|
||||||
"version": "19.2.3",
|
|
||||||
"description": "TypeScript definitions for react-dom",
|
|
||||||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dom",
|
|
||||||
"license": "MIT",
|
|
||||||
"contributors": [
|
|
||||||
{
|
|
||||||
"name": "Asana",
|
|
||||||
"url": "https://asana.com"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "AssureSign",
|
|
||||||
"url": "http://www.assuresign.com"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Microsoft",
|
|
||||||
"url": "https://microsoft.com"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "MartynasZilinskas",
|
|
||||||
"githubUsername": "MartynasZilinskas",
|
|
||||||
"url": "https://github.com/MartynasZilinskas"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Josh Rutherford",
|
|
||||||
"githubUsername": "theruther4d",
|
|
||||||
"url": "https://github.com/theruther4d"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Jessica Franco",
|
|
||||||
"githubUsername": "Jessidhia",
|
|
||||||
"url": "https://github.com/Jessidhia"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Sebastian Silbermann",
|
|
||||||
"githubUsername": "eps1lon",
|
|
||||||
"url": "https://github.com/eps1lon"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"main": "",
|
|
||||||
"types": "index.d.ts",
|
|
||||||
"exports": {
|
|
||||||
".": {
|
|
||||||
"types": {
|
|
||||||
"default": "./index.d.ts"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"./client": {
|
|
||||||
"types": {
|
|
||||||
"default": "./client.d.ts"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"./canary": {
|
|
||||||
"types": {
|
|
||||||
"default": "./canary.d.ts"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"./server": {
|
|
||||||
"types": {
|
|
||||||
"default": "./server.d.ts"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"./server.browser": {
|
|
||||||
"types": {
|
|
||||||
"default": "./server.browser.d.ts"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"./server.bun": {
|
|
||||||
"types": {
|
|
||||||
"default": "./server.bun.d.ts"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"./server.edge": {
|
|
||||||
"types": {
|
|
||||||
"default": "./server.edge.d.ts"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"./server.node": {
|
|
||||||
"types": {
|
|
||||||
"default": "./server.node.d.ts"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"./static": {
|
|
||||||
"types": {
|
|
||||||
"default": "./static.d.ts"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"./static.browser": {
|
|
||||||
"types": {
|
|
||||||
"default": "./static.browser.d.ts"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"./static.edge": {
|
|
||||||
"types": {
|
|
||||||
"default": "./static.edge.d.ts"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"./static.node": {
|
|
||||||
"types": {
|
|
||||||
"default": "./static.node.d.ts"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"./experimental": {
|
|
||||||
"types": {
|
|
||||||
"default": "./experimental.d.ts"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"./test-utils": {
|
|
||||||
"types": {
|
|
||||||
"default": "./test-utils/index.d.ts"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"./package.json": "./package.json"
|
|
||||||
},
|
|
||||||
"repository": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
|
||||||
"directory": "types/react-dom"
|
|
||||||
},
|
|
||||||
"scripts": {},
|
|
||||||
"dependencies": {},
|
|
||||||
"peerDependencies": {
|
|
||||||
"@types/react": "^19.2.0"
|
|
||||||
},
|
|
||||||
"typesPublisherContentHash": "6f16aac4f50b7ebe3201fdac53a58874d2899d6108894538ade2d61fbb99f8c5",
|
|
||||||
"typeScriptVersion": "5.2"
|
|
||||||
}
|
|
||||||
1
node_modules/@types/react-dom/server.browser.d.ts
generated
vendored
1
node_modules/@types/react-dom/server.browser.d.ts
generated
vendored
@ -1 +0,0 @@
|
|||||||
export { renderToReadableStream, renderToStaticMarkup, renderToString } from "./server";
|
|
||||||
1
node_modules/@types/react-dom/server.bun.d.ts
generated
vendored
1
node_modules/@types/react-dom/server.bun.d.ts
generated
vendored
@ -1 +0,0 @@
|
|||||||
export { renderToReadableStream, renderToStaticMarkup, renderToString } from "./server";
|
|
||||||
183
node_modules/@types/react-dom/server.d.ts
generated
vendored
183
node_modules/@types/react-dom/server.d.ts
generated
vendored
@ -1,183 +0,0 @@
|
|||||||
// forward declarations
|
|
||||||
declare global {
|
|
||||||
namespace NodeJS {
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
||||||
interface ReadableStream {}
|
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
||||||
interface WritableStream {}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Stub for https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal
|
|
||||||
*/
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
||||||
interface AbortSignal {}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Stub for https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream
|
|
||||||
*/
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
||||||
interface ReadableStream {}
|
|
||||||
}
|
|
||||||
|
|
||||||
import { ReactNode } from "react";
|
|
||||||
import { ErrorInfo, ReactFormState } from "./client";
|
|
||||||
import { PostponedState, ResumeOptions } from "./static";
|
|
||||||
|
|
||||||
export interface BootstrapScriptDescriptor {
|
|
||||||
src: string;
|
|
||||||
integrity?: string | undefined;
|
|
||||||
crossOrigin?: string | undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @see {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/script/type/importmap Import maps}
|
|
||||||
*/
|
|
||||||
// TODO: Ideally TypeScripts standard library would include this type.
|
|
||||||
// Until then we keep the prefixed one for future compatibility.
|
|
||||||
export interface ReactImportMap {
|
|
||||||
/**
|
|
||||||
* @see {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/script/type/importmap#imports `imports` reference}
|
|
||||||
*/
|
|
||||||
imports?: {
|
|
||||||
[specifier: string]: string;
|
|
||||||
} | undefined;
|
|
||||||
/**
|
|
||||||
* @see {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/script/type/importmap#integrity `integrity` reference}
|
|
||||||
*/
|
|
||||||
integrity?: {
|
|
||||||
[moduleURL: string]: string;
|
|
||||||
} | undefined;
|
|
||||||
/**
|
|
||||||
* @see {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/script/type/importmap#scopes `scopes` reference}
|
|
||||||
*/
|
|
||||||
scopes?: {
|
|
||||||
[scope: string]: {
|
|
||||||
[specifier: string]: string;
|
|
||||||
};
|
|
||||||
} | undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface RenderToPipeableStreamOptions {
|
|
||||||
identifierPrefix?: string;
|
|
||||||
namespaceURI?: string;
|
|
||||||
nonce?: string;
|
|
||||||
bootstrapScriptContent?: string;
|
|
||||||
bootstrapScripts?: Array<string | BootstrapScriptDescriptor>;
|
|
||||||
bootstrapModules?: Array<string | BootstrapScriptDescriptor>;
|
|
||||||
/**
|
|
||||||
* Maximum length of the header content in unicode code units i.e. string.length.
|
|
||||||
* Must be a positive integer if specified.
|
|
||||||
* @default 2000
|
|
||||||
*/
|
|
||||||
headersLengthHint?: number | undefined;
|
|
||||||
importMap?: ReactImportMap | undefined;
|
|
||||||
progressiveChunkSize?: number;
|
|
||||||
onHeaders?: ((headers: Headers) => void) | undefined;
|
|
||||||
onShellReady?: () => void;
|
|
||||||
onShellError?: (error: unknown) => void;
|
|
||||||
onAllReady?: () => void;
|
|
||||||
onError?: (error: unknown, errorInfo: ErrorInfo) => string | void;
|
|
||||||
formState?: ReactFormState | null;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface PipeableStream {
|
|
||||||
abort: (reason?: unknown) => void;
|
|
||||||
pipe: <Writable extends NodeJS.WritableStream>(destination: Writable) => Writable;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ServerOptions {
|
|
||||||
identifierPrefix?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Only available in the environments with [Node.js Streams](https://nodejs.dev/learn/nodejs-streams).
|
|
||||||
*
|
|
||||||
* @see [API](https://react.dev/reference/react-dom/server/renderToPipeableStream)
|
|
||||||
*
|
|
||||||
* @param children
|
|
||||||
* @param options
|
|
||||||
*/
|
|
||||||
export function renderToPipeableStream(children: ReactNode, options?: RenderToPipeableStreamOptions): PipeableStream;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Render a React element to its initial HTML. This should only be used on the server.
|
|
||||||
* React will return an HTML string. You can use this method to generate HTML on the server
|
|
||||||
* and send the markup down on the initial request for faster page loads and to allow search
|
|
||||||
* engines to crawl your pages for SEO purposes.
|
|
||||||
*
|
|
||||||
* If you call `ReactDOMClient.hydrateRoot()` on a node that already has this server-rendered markup,
|
|
||||||
* React will preserve it and only attach event handlers, allowing you
|
|
||||||
* to have a very performant first-load experience.
|
|
||||||
*/
|
|
||||||
export function renderToString(element: ReactNode, options?: ServerOptions): string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Similar to `renderToString`, except this doesn't create extra DOM attributes
|
|
||||||
* such as `data-reactid`, that React uses internally. This is useful if you want
|
|
||||||
* to use React as a simple static page generator, as stripping away the extra
|
|
||||||
* attributes can save lots of bytes.
|
|
||||||
*/
|
|
||||||
export function renderToStaticMarkup(element: ReactNode, options?: ServerOptions): string;
|
|
||||||
|
|
||||||
export interface RenderToReadableStreamOptions {
|
|
||||||
identifierPrefix?: string;
|
|
||||||
importMap?: ReactImportMap | undefined;
|
|
||||||
namespaceURI?: string;
|
|
||||||
nonce?: string;
|
|
||||||
bootstrapScriptContent?: string;
|
|
||||||
bootstrapScripts?: Array<string | BootstrapScriptDescriptor>;
|
|
||||||
bootstrapModules?: Array<string | BootstrapScriptDescriptor>;
|
|
||||||
/**
|
|
||||||
* Maximum length of the header content in unicode code units i.e. string.length.
|
|
||||||
* Must be a positive integer if specified.
|
|
||||||
* @default 2000
|
|
||||||
*/
|
|
||||||
headersLengthHint?: number | undefined;
|
|
||||||
progressiveChunkSize?: number;
|
|
||||||
signal?: AbortSignal;
|
|
||||||
onError?: (error: unknown, errorInfo: ErrorInfo) => string | void;
|
|
||||||
onHeaders?: ((headers: Headers) => void) | undefined;
|
|
||||||
formState?: ReactFormState | null;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ReactDOMServerReadableStream extends ReadableStream {
|
|
||||||
allReady: Promise<void>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Only available in the environments with [Web Streams](https://developer.mozilla.org/en-US/docs/Web/API/Streams_API) (this includes browsers, Deno, and some modern edge runtimes).
|
|
||||||
*
|
|
||||||
* @see [API](https://react.dev/reference/react-dom/server/renderToReadableStream)
|
|
||||||
*/
|
|
||||||
export function renderToReadableStream(
|
|
||||||
children: ReactNode,
|
|
||||||
options?: RenderToReadableStreamOptions,
|
|
||||||
): Promise<ReactDOMServerReadableStream>;
|
|
||||||
|
|
||||||
export { ResumeOptions };
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @see {@link https://react.dev/reference/react-dom/server/resume `resume`` reference documentation}
|
|
||||||
* @version 19.2
|
|
||||||
*/
|
|
||||||
export function resume(
|
|
||||||
children: React.ReactNode,
|
|
||||||
postponedState: PostponedState,
|
|
||||||
options?: ResumeOptions,
|
|
||||||
): Promise<ReactDOMServerReadableStream>;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @see {@link https://react.dev/reference/react-dom/server/resumeToPipeableStream `resumeToPipeableStream`` reference documentation}
|
|
||||||
* @version 19.2
|
|
||||||
*/
|
|
||||||
export function resumeToPipeableStream(
|
|
||||||
children: React.ReactNode,
|
|
||||||
postponedState: PostponedState,
|
|
||||||
options?: ResumeOptions,
|
|
||||||
): Promise<PipeableStream>;
|
|
||||||
|
|
||||||
export const version: string;
|
|
||||||
|
|
||||||
export as namespace ReactDOMServer;
|
|
||||||
1
node_modules/@types/react-dom/server.edge.d.ts
generated
vendored
1
node_modules/@types/react-dom/server.edge.d.ts
generated
vendored
@ -1 +0,0 @@
|
|||||||
export { renderToReadableStream, renderToStaticMarkup, renderToString, resume } from "./server";
|
|
||||||
8
node_modules/@types/react-dom/server.node.d.ts
generated
vendored
8
node_modules/@types/react-dom/server.node.d.ts
generated
vendored
@ -1,8 +0,0 @@
|
|||||||
export {
|
|
||||||
renderToPipeableStream,
|
|
||||||
renderToReadableStream,
|
|
||||||
renderToStaticMarkup,
|
|
||||||
renderToString,
|
|
||||||
resume,
|
|
||||||
resumeToPipeableStream,
|
|
||||||
} from "./server";
|
|
||||||
1
node_modules/@types/react-dom/static.browser.d.ts
generated
vendored
1
node_modules/@types/react-dom/static.browser.d.ts
generated
vendored
@ -1 +0,0 @@
|
|||||||
export { prerender, version } from "./static";
|
|
||||||
153
node_modules/@types/react-dom/static.d.ts
generated
vendored
153
node_modules/@types/react-dom/static.d.ts
generated
vendored
@ -1,153 +0,0 @@
|
|||||||
// forward declarations
|
|
||||||
declare global {
|
|
||||||
namespace NodeJS {
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
||||||
interface ReadableStream {}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Stub for https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal
|
|
||||||
*/
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
||||||
interface AbortSignal {}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Stub for https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream
|
|
||||||
*/
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
||||||
interface ReadableStream<R = any> {}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Stub for https://developer.mozilla.org/en-US/docs/Web/API/Uint8Array
|
|
||||||
*/
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
||||||
interface Uint8Array {}
|
|
||||||
}
|
|
||||||
|
|
||||||
import { ReactNode } from "react";
|
|
||||||
import { ErrorInfo } from "./client";
|
|
||||||
export {};
|
|
||||||
|
|
||||||
declare const POSTPONED_STATE_SIGIL: unique symbol;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This is an opaque type i.e. users should not make any assumptions about its structure.
|
|
||||||
* It is JSON-serializeable to be a able to store it and retrvieve later for use with {@link https://react.dev/reference/react-dom/server/resume `resume`}.
|
|
||||||
*/
|
|
||||||
export interface PostponedState {
|
|
||||||
[POSTPONED_STATE_SIGIL]: never;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @see {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/script/type/importmap Import maps}
|
|
||||||
*/
|
|
||||||
// TODO: Ideally TypeScripts standard library would include this type.
|
|
||||||
// Until then we keep the prefixed one for future compatibility.
|
|
||||||
export interface ReactImportMap {
|
|
||||||
/**
|
|
||||||
* @see {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/script/type/importmap#imports `imports` reference}
|
|
||||||
*/
|
|
||||||
imports?: {
|
|
||||||
[specifier: string]: string;
|
|
||||||
} | undefined;
|
|
||||||
/**
|
|
||||||
* @see {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/script/type/importmap#integrity `integrity` reference}
|
|
||||||
*/
|
|
||||||
integrity?: {
|
|
||||||
[moduleURL: string]: string;
|
|
||||||
} | undefined;
|
|
||||||
/**
|
|
||||||
* @see {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/script/type/importmap#scopes `scopes` reference}
|
|
||||||
*/
|
|
||||||
scopes?: {
|
|
||||||
[scope: string]: {
|
|
||||||
[specifier: string]: string;
|
|
||||||
};
|
|
||||||
} | undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface BootstrapScriptDescriptor {
|
|
||||||
src: string;
|
|
||||||
integrity?: string | undefined;
|
|
||||||
crossOrigin?: string | undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface PrerenderOptions {
|
|
||||||
bootstrapScriptContent?: string;
|
|
||||||
bootstrapScripts?: Array<string | BootstrapScriptDescriptor>;
|
|
||||||
bootstrapModules?: Array<string | BootstrapScriptDescriptor>;
|
|
||||||
/**
|
|
||||||
* Maximum length of the header content in unicode code units i.e. string.length.
|
|
||||||
* Must be a positive integer if specified.
|
|
||||||
* @default 2000
|
|
||||||
*/
|
|
||||||
headersLengthHint?: number | undefined;
|
|
||||||
identifierPrefix?: string;
|
|
||||||
importMap?: ReactImportMap | undefined;
|
|
||||||
namespaceURI?: string;
|
|
||||||
onError?: (error: unknown, errorInfo: ErrorInfo) => string | void;
|
|
||||||
onHeaders?: (headers: Headers) => void | undefined;
|
|
||||||
progressiveChunkSize?: number;
|
|
||||||
signal?: AbortSignal;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface PrerenderResult {
|
|
||||||
postponed: null | PostponedState;
|
|
||||||
prelude: ReadableStream<Uint8Array>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Only available in the environments with [Web Streams](https://developer.mozilla.org/en-US/docs/Web/API/Streams_API) (this includes browsers, Deno, and some modern edge runtimes).
|
|
||||||
*
|
|
||||||
* @see [API](https://react.dev/reference/react-dom/static/prerender)
|
|
||||||
*/
|
|
||||||
export function prerender(
|
|
||||||
reactNode: ReactNode,
|
|
||||||
options?: PrerenderOptions,
|
|
||||||
): Promise<PrerenderResult>;
|
|
||||||
|
|
||||||
export interface PrerenderToNodeStreamResult {
|
|
||||||
prelude: NodeJS.ReadableStream;
|
|
||||||
postponed: null | PostponedState;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Only available in the environments with [Node.js Streams](https://nodejs.dev/learn/nodejs-streams).
|
|
||||||
*
|
|
||||||
* @see [API](https://react.dev/reference/react-dom/static/prerenderToNodeStream)
|
|
||||||
*
|
|
||||||
* @param children
|
|
||||||
* @param options
|
|
||||||
*/
|
|
||||||
export function prerenderToNodeStream(
|
|
||||||
reactNode: ReactNode,
|
|
||||||
options?: PrerenderOptions,
|
|
||||||
): Promise<PrerenderToNodeStreamResult>;
|
|
||||||
|
|
||||||
export interface ResumeOptions {
|
|
||||||
nonce?: string;
|
|
||||||
signal?: AbortSignal;
|
|
||||||
onError?: (error: unknown) => string | undefined | void;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @see {@link https://react.dev/reference/react-dom/static/resumeAndPrerender `resumeAndPrerender` reference documentation}
|
|
||||||
* @version 19.2
|
|
||||||
*/
|
|
||||||
export function resumeAndPrerender(
|
|
||||||
children: React.ReactNode,
|
|
||||||
postponedState: null | PostponedState,
|
|
||||||
options?: Omit<ResumeOptions, "nonce">,
|
|
||||||
): Promise<PrerenderResult>;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @see {@link https://react.dev/reference/react-dom/static/resumeAndPrerenderToNodeStream `resumeAndPrerenderToNodeStream`` reference documentation}
|
|
||||||
* @version 19.2
|
|
||||||
*/
|
|
||||||
export function resumeAndPrerenderToNodeStream(
|
|
||||||
children: React.ReactNode,
|
|
||||||
postponedState: null | PostponedState,
|
|
||||||
options?: Omit<ResumeOptions, "nonce">,
|
|
||||||
): Promise<PrerenderToNodeStreamResult>;
|
|
||||||
|
|
||||||
export const version: string;
|
|
||||||
1
node_modules/@types/react-dom/static.edge.d.ts
generated
vendored
1
node_modules/@types/react-dom/static.edge.d.ts
generated
vendored
@ -1 +0,0 @@
|
|||||||
export { prerender, resumeAndPrerender, version } from "./static";
|
|
||||||
7
node_modules/@types/react-dom/static.node.d.ts
generated
vendored
7
node_modules/@types/react-dom/static.node.d.ts
generated
vendored
@ -1,7 +0,0 @@
|
|||||||
export {
|
|
||||||
prerender,
|
|
||||||
prerenderToNodeStream,
|
|
||||||
resumeAndPrerender,
|
|
||||||
resumeAndPrerenderToNodeStream,
|
|
||||||
version,
|
|
||||||
} from "./static";
|
|
||||||
7
node_modules/@types/react-dom/test-utils/index.d.ts
generated
vendored
7
node_modules/@types/react-dom/test-utils/index.d.ts
generated
vendored
@ -1,7 +0,0 @@
|
|||||||
export {};
|
|
||||||
|
|
||||||
export {
|
|
||||||
/**
|
|
||||||
* @deprecated Import `act` from `react` instead.
|
|
||||||
*/ act,
|
|
||||||
} from "react";
|
|
||||||
21
node_modules/@types/react/LICENSE
generated
vendored
21
node_modules/@types/react/LICENSE
generated
vendored
@ -1,21 +0,0 @@
|
|||||||
MIT License
|
|
||||||
|
|
||||||
Copyright (c) Microsoft Corporation.
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
|
||||||
copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
||||||
SOFTWARE
|
|
||||||
15
node_modules/@types/react/README.md
generated
vendored
15
node_modules/@types/react/README.md
generated
vendored
@ -1,15 +0,0 @@
|
|||||||
# Installation
|
|
||||||
> `npm install --save @types/react`
|
|
||||||
|
|
||||||
# Summary
|
|
||||||
This package contains type definitions for react (https://react.dev/).
|
|
||||||
|
|
||||||
# Details
|
|
||||||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react.
|
|
||||||
|
|
||||||
### Additional Details
|
|
||||||
* Last updated: Mon, 24 Nov 2025 09:38:12 GMT
|
|
||||||
* Dependencies: [csstype](https://npmjs.com/package/csstype)
|
|
||||||
|
|
||||||
# Credits
|
|
||||||
These definitions were written by [Asana](https://asana.com), [AssureSign](http://www.assuresign.com), [Microsoft](https://microsoft.com), [John Reilly](https://github.com/johnnyreilly), [Benoit Benezech](https://github.com/bbenezech), [Patricio Zavolinsky](https://github.com/pzavolinsky), [Eric Anderson](https://github.com/ericanderson), [Dovydas Navickas](https://github.com/DovydasNavickas), [Josh Rutherford](https://github.com/theruther4d), [Guilherme Hübner](https://github.com/guilhermehubner), [Ferdy Budhidharma](https://github.com/ferdaber), [Johann Rakotoharisoa](https://github.com/jrakotoharisoa), [Olivier Pascal](https://github.com/pascaloliv), [Martin Hochel](https://github.com/hotell), [Frank Li](https://github.com/franklixuefei), [Jessica Franco](https://github.com/Jessidhia), [Saransh Kataria](https://github.com/saranshkataria), [Kanitkorn Sujautra](https://github.com/lukyth), [Sebastian Silbermann](https://github.com/eps1lon), [Kyle Scully](https://github.com/zieka), [Cong Zhang](https://github.com/dancerphil), [Dimitri Mitropoulos](https://github.com/dimitropoulos), [JongChan Choi](https://github.com/disjukr), [Victor Magalhães](https://github.com/vhfmag), [Priyanshu Rav](https://github.com/priyanshurav), [Dmitry Semigradsky](https://github.com/Semigradsky), and [Matt Pocock](https://github.com/mattpocock).
|
|
||||||
120
node_modules/@types/react/canary.d.ts
generated
vendored
120
node_modules/@types/react/canary.d.ts
generated
vendored
@ -1,120 +0,0 @@
|
|||||||
/**
|
|
||||||
* These are types for things that are present in the React `canary` release channel.
|
|
||||||
*
|
|
||||||
* To load the types declared here in an actual project, there are three ways. The easiest one,
|
|
||||||
* if your `tsconfig.json` already has a `"types"` array in the `"compilerOptions"` section,
|
|
||||||
* is to add `"react/canary"` to the `"types"` array.
|
|
||||||
*
|
|
||||||
* Alternatively, a specific import syntax can to be used from a typescript file.
|
|
||||||
* This module does not exist in reality, which is why the {} is important:
|
|
||||||
*
|
|
||||||
* ```ts
|
|
||||||
* import {} from 'react/canary'
|
|
||||||
* ```
|
|
||||||
*
|
|
||||||
* It is also possible to include it through a triple-slash reference:
|
|
||||||
*
|
|
||||||
* ```ts
|
|
||||||
* /// <reference types="react/canary" />
|
|
||||||
* ```
|
|
||||||
*
|
|
||||||
* Either the import or the reference only needs to appear once, anywhere in the project.
|
|
||||||
*/
|
|
||||||
|
|
||||||
// See https://github.com/facebook/react/blob/main/packages/react/src/React.js to see how the exports are declared,
|
|
||||||
|
|
||||||
import React = require(".");
|
|
||||||
|
|
||||||
export {};
|
|
||||||
|
|
||||||
declare const UNDEFINED_VOID_ONLY: unique symbol;
|
|
||||||
type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never };
|
|
||||||
|
|
||||||
declare module "." {
|
|
||||||
export function unstable_useCacheRefresh(): () => void;
|
|
||||||
|
|
||||||
// @enableViewTransition
|
|
||||||
export interface ViewTransitionInstance {
|
|
||||||
/**
|
|
||||||
* The {@link ViewTransitionProps name} that was used in the corresponding {@link ViewTransition} component or `"auto"` if the `name` prop was omitted.
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ViewTransitionClassPerType = Record<"default" | (string & {}), "none" | "auto" | (string & {})>;
|
|
||||||
export type ViewTransitionClass = ViewTransitionClassPerType | ViewTransitionClassPerType[string];
|
|
||||||
|
|
||||||
export interface ViewTransitionProps {
|
|
||||||
children?: ReactNode | undefined;
|
|
||||||
/**
|
|
||||||
* Assigns the {@link https://developer.chrome.com/blog/view-transitions-update-io24#view-transition-class `view-transition-class`} class to the underlying DOM node.
|
|
||||||
*/
|
|
||||||
default?: ViewTransitionClass | undefined;
|
|
||||||
/**
|
|
||||||
* Combined with {@link className} if this `<ViewTransition>` or its parent Component is mounted and there's no other with the same name being deleted.
|
|
||||||
* `"none"` is a special value that deactivates the view transition name under that condition.
|
|
||||||
*/
|
|
||||||
enter?: ViewTransitionClass | undefined;
|
|
||||||
/**
|
|
||||||
* Combined with {@link className} if this `<ViewTransition>` or its parent Component is unmounted and there's no other with the same name being deleted.
|
|
||||||
* `"none"` is a special value that deactivates the view transition name under that condition.
|
|
||||||
*/
|
|
||||||
exit?: ViewTransitionClass | undefined;
|
|
||||||
/**
|
|
||||||
* "auto" will automatically assign a view-transition-name to the inner DOM node.
|
|
||||||
* That way you can add a View Transition to a Component without controlling its DOM nodes styling otherwise.
|
|
||||||
*
|
|
||||||
* A difference between this and the browser's built-in view-transition-name: auto is that switching the DOM nodes within the `<ViewTransition>` component preserves the same name so this example cross-fades between the DOM nodes instead of causing an exit and enter.
|
|
||||||
* @default "auto"
|
|
||||||
*/
|
|
||||||
name?: "auto" | (string & {}) | undefined;
|
|
||||||
/**
|
|
||||||
* The `<ViewTransition>` or its parent Component is mounted and there's no other `<ViewTransition>` with the same name being deleted.
|
|
||||||
*/
|
|
||||||
onEnter?: (instance: ViewTransitionInstance, types: Array<string>) => void;
|
|
||||||
/**
|
|
||||||
* The `<ViewTransition>` or its parent Component is unmounted and there's no other `<ViewTransition>` with the same name being deleted.
|
|
||||||
*/
|
|
||||||
onExit?: (instance: ViewTransitionInstance, types: Array<string>) => void;
|
|
||||||
/**
|
|
||||||
* This `<ViewTransition>` is being mounted and another `<ViewTransition>` instance with the same name is being unmounted elsewhere.
|
|
||||||
*/
|
|
||||||
onShare?: (instance: ViewTransitionInstance, types: Array<string>) => void;
|
|
||||||
/**
|
|
||||||
* The content of `<ViewTransition>` has changed either due to DOM mutations or because an inner child `<ViewTransition>` has resized.
|
|
||||||
*/
|
|
||||||
onUpdate?: (instance: ViewTransitionInstance, types: Array<string>) => void;
|
|
||||||
ref?: Ref<ViewTransitionInstance> | undefined;
|
|
||||||
/**
|
|
||||||
* Combined with {@link className} if this `<ViewTransition>` is being mounted and another instance with the same name is being unmounted elsewhere.
|
|
||||||
* `"none"` is a special value that deactivates the view transition name under that condition.
|
|
||||||
*/
|
|
||||||
share?: ViewTransitionClass | undefined;
|
|
||||||
/**
|
|
||||||
* Combined with {@link className} if the content of this `<ViewTransition>` has changed either due to DOM mutations or because an inner child has resized.
|
|
||||||
* `"none"` is a special value that deactivates the view transition name under that condition.
|
|
||||||
*/
|
|
||||||
update?: ViewTransitionClass | undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Opt-in for using {@link https://developer.mozilla.org/en-US/docs/Web/API/View_Transition_API View Transitions} in React.
|
|
||||||
* View Transitions only trigger for async updates like {@link startTransition}, {@link useDeferredValue}, Actions or <{@link Suspense}> revealing from fallback to content.
|
|
||||||
* Synchronous updates provide an opt-out but also guarantee that they commit immediately which View Transitions can't.
|
|
||||||
*
|
|
||||||
* @see {@link https://react.dev/reference/react/ViewTransition `<ViewTransition>` reference documentation}
|
|
||||||
*/
|
|
||||||
export const ViewTransition: ExoticComponent<ViewTransitionProps>;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @see {@link https://react.dev/reference/react/addTransitionType `addTransitionType` reference documentation}
|
|
||||||
*/
|
|
||||||
export function addTransitionType(type: string): void;
|
|
||||||
|
|
||||||
// @enableFragmentRefs
|
|
||||||
export interface FragmentInstance {}
|
|
||||||
|
|
||||||
export interface FragmentProps {
|
|
||||||
ref?: Ref<FragmentInstance> | undefined;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
4
node_modules/@types/react/compiler-runtime.d.ts
generated
vendored
4
node_modules/@types/react/compiler-runtime.d.ts
generated
vendored
@ -1,4 +0,0 @@
|
|||||||
// Not meant to be used directly
|
|
||||||
// Omitting all exports so that they don't appear in IDE autocomplete.
|
|
||||||
|
|
||||||
export {};
|
|
||||||
147
node_modules/@types/react/experimental.d.ts
generated
vendored
147
node_modules/@types/react/experimental.d.ts
generated
vendored
@ -1,147 +0,0 @@
|
|||||||
/**
|
|
||||||
* These are types for things that are present in the `experimental` builds of React but not yet
|
|
||||||
* on a stable build.
|
|
||||||
*
|
|
||||||
* Once they are promoted to stable they can just be moved to the main index file.
|
|
||||||
*
|
|
||||||
* To load the types declared here in an actual project, there are three ways. The easiest one,
|
|
||||||
* if your `tsconfig.json` already has a `"types"` array in the `"compilerOptions"` section,
|
|
||||||
* is to add `"react/experimental"` to the `"types"` array.
|
|
||||||
*
|
|
||||||
* Alternatively, a specific import syntax can to be used from a typescript file.
|
|
||||||
* This module does not exist in reality, which is why the {} is important:
|
|
||||||
*
|
|
||||||
* ```ts
|
|
||||||
* import {} from 'react/experimental'
|
|
||||||
* ```
|
|
||||||
*
|
|
||||||
* It is also possible to include it through a triple-slash reference:
|
|
||||||
*
|
|
||||||
* ```ts
|
|
||||||
* /// <reference types="react/experimental" />
|
|
||||||
* ```
|
|
||||||
*
|
|
||||||
* Either the import or the reference only needs to appear once, anywhere in the project.
|
|
||||||
*/
|
|
||||||
|
|
||||||
// See https://github.com/facebook/react/blob/master/packages/react/src/React.js to see how the exports are declared,
|
|
||||||
// and https://github.com/facebook/react/blob/master/packages/shared/ReactFeatureFlags.js to verify which APIs are
|
|
||||||
// flagged experimental or not. Experimental APIs will be tagged with `__EXPERIMENTAL__`.
|
|
||||||
//
|
|
||||||
// For the inputs of types exported as simply a fiber tag, the `beginWork` function of ReactFiberBeginWork.js
|
|
||||||
// is a good place to start looking for details; it generally calls prop validation functions or delegates
|
|
||||||
// all tasks done as part of the render phase (the concurrent part of the React update cycle).
|
|
||||||
//
|
|
||||||
// Suspense-related handling can be found in ReactFiberThrow.js.
|
|
||||||
|
|
||||||
import React = require("./canary");
|
|
||||||
|
|
||||||
export {};
|
|
||||||
|
|
||||||
declare const UNDEFINED_VOID_ONLY: unique symbol;
|
|
||||||
type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never };
|
|
||||||
|
|
||||||
declare module "." {
|
|
||||||
export interface SuspenseProps {
|
|
||||||
// @enableCPUSuspense
|
|
||||||
/**
|
|
||||||
* The presence of this prop indicates that the content is computationally expensive to render.
|
|
||||||
* In other words, the tree is CPU bound and not I/O bound (e.g. due to fetching data).
|
|
||||||
* @see {@link https://github.com/facebook/react/pull/19936}
|
|
||||||
*/
|
|
||||||
defer?: boolean | undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
export type SuspenseListRevealOrder = "forwards" | "backwards" | "together" | "independent";
|
|
||||||
export type SuspenseListTailMode = "collapsed" | "hidden" | "visible";
|
|
||||||
|
|
||||||
export interface SuspenseListCommonProps {
|
|
||||||
}
|
|
||||||
|
|
||||||
interface DirectionalSuspenseListProps extends SuspenseListCommonProps {
|
|
||||||
/**
|
|
||||||
* Note that SuspenseList require more than one child;
|
|
||||||
* it is a runtime warning to provide only a single child.
|
|
||||||
*
|
|
||||||
* It does, however, allow those children to be wrapped inside a single
|
|
||||||
* level of `<React.Fragment>`.
|
|
||||||
*/
|
|
||||||
children: Iterable<ReactElement> | AsyncIterable<ReactElement>;
|
|
||||||
/**
|
|
||||||
* Defines the order in which the `SuspenseList` children should be revealed.
|
|
||||||
* @default "forwards"
|
|
||||||
*/
|
|
||||||
revealOrder?: "forwards" | "backwards" | "unstable_legacy-backwards" | undefined;
|
|
||||||
/**
|
|
||||||
* Dictates how unloaded items in a SuspenseList is shown.
|
|
||||||
*
|
|
||||||
* - `collapsed` shows only the next fallback in the list.
|
|
||||||
* - `hidden` doesn't show any unloaded items.
|
|
||||||
* - `visible` shows all fallbacks in the list.
|
|
||||||
*
|
|
||||||
* @default "hidden"
|
|
||||||
*/
|
|
||||||
tail?: SuspenseListTailMode | undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
interface NonDirectionalSuspenseListProps extends SuspenseListCommonProps {
|
|
||||||
children: ReactNode;
|
|
||||||
/**
|
|
||||||
* Defines the order in which the `SuspenseList` children should be revealed.
|
|
||||||
*/
|
|
||||||
revealOrder: Exclude<SuspenseListRevealOrder, DirectionalSuspenseListProps["revealOrder"]>;
|
|
||||||
/**
|
|
||||||
* The tail property is invalid when not using the `forwards` or `backwards` reveal orders.
|
|
||||||
*/
|
|
||||||
tail?: never;
|
|
||||||
}
|
|
||||||
|
|
||||||
export type SuspenseListProps = DirectionalSuspenseListProps | NonDirectionalSuspenseListProps;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* `SuspenseList` helps coordinate many components that can suspend by orchestrating the order
|
|
||||||
* in which these components are revealed to the user.
|
|
||||||
*
|
|
||||||
* When multiple components need to fetch data, this data may arrive in an unpredictable order.
|
|
||||||
* However, if you wrap these items in a `SuspenseList`, React will not show an item in the list
|
|
||||||
* until previous items have been displayed (this behavior is adjustable).
|
|
||||||
*
|
|
||||||
* @see https://reactjs.org/docs/concurrent-mode-reference.html#suspenselist
|
|
||||||
* @see https://reactjs.org/docs/concurrent-mode-patterns.html#suspenselist
|
|
||||||
*/
|
|
||||||
export const unstable_SuspenseList: ExoticComponent<SuspenseListProps>;
|
|
||||||
|
|
||||||
type Reference = object;
|
|
||||||
type TaintableUniqueValue = string | bigint | ArrayBufferView;
|
|
||||||
function experimental_taintUniqueValue(
|
|
||||||
message: string | undefined,
|
|
||||||
lifetime: Reference,
|
|
||||||
value: TaintableUniqueValue,
|
|
||||||
): void;
|
|
||||||
function experimental_taintObjectReference(message: string | undefined, object: Reference): void;
|
|
||||||
|
|
||||||
// @enableGestureTransition
|
|
||||||
// Implemented by the specific renderer e.g. `react-dom`.
|
|
||||||
// Keep in mind that augmented interfaces merge their JSDoc so if you put
|
|
||||||
// JSDoc here and in the renderer, the IDE will display both.
|
|
||||||
export interface GestureProvider {}
|
|
||||||
export interface GestureOptions {
|
|
||||||
rangeStart?: number | undefined;
|
|
||||||
rangeEnd?: number | undefined;
|
|
||||||
}
|
|
||||||
/** */
|
|
||||||
export function unstable_startGestureTransition(
|
|
||||||
provider: GestureProvider,
|
|
||||||
scope: () => void,
|
|
||||||
options?: GestureOptions,
|
|
||||||
): () => void;
|
|
||||||
|
|
||||||
// @enableSrcObject
|
|
||||||
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_IMG_SRC_TYPES {
|
|
||||||
srcObject: Blob;
|
|
||||||
}
|
|
||||||
|
|
||||||
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_MEDIA_SRC_TYPES {
|
|
||||||
srcObject: Blob | MediaSource | MediaStream;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
165
node_modules/@types/react/global.d.ts
generated
vendored
165
node_modules/@types/react/global.d.ts
generated
vendored
@ -1,165 +0,0 @@
|
|||||||
/*
|
|
||||||
React projects that don't include the DOM library need these interfaces to compile.
|
|
||||||
React Native applications use React, but there is no DOM available. The JavaScript runtime
|
|
||||||
is ES6/ES2015 only. These definitions allow such projects to compile with only `--lib ES6`.
|
|
||||||
|
|
||||||
Warning: all of these interfaces are empty. If you want type definitions for various properties
|
|
||||||
(such as HTMLInputElement.prototype.value), you need to add `--lib DOM` (via command line or tsconfig.json).
|
|
||||||
*/
|
|
||||||
|
|
||||||
interface Event {}
|
|
||||||
interface AnimationEvent extends Event {}
|
|
||||||
interface ClipboardEvent extends Event {}
|
|
||||||
interface CompositionEvent extends Event {}
|
|
||||||
interface DragEvent extends Event {}
|
|
||||||
interface FocusEvent extends Event {}
|
|
||||||
interface InputEvent extends Event {}
|
|
||||||
interface KeyboardEvent extends Event {}
|
|
||||||
interface MouseEvent extends Event {}
|
|
||||||
interface TouchEvent extends Event {}
|
|
||||||
interface PointerEvent extends Event {}
|
|
||||||
interface ToggleEvent extends Event {}
|
|
||||||
interface TransitionEvent extends Event {}
|
|
||||||
interface UIEvent extends Event {}
|
|
||||||
interface WheelEvent extends Event {}
|
|
||||||
|
|
||||||
interface EventTarget {}
|
|
||||||
interface Document {}
|
|
||||||
interface DataTransfer {}
|
|
||||||
interface StyleMedia {}
|
|
||||||
|
|
||||||
interface Element {}
|
|
||||||
interface DocumentFragment {}
|
|
||||||
|
|
||||||
interface HTMLElement extends Element {}
|
|
||||||
interface HTMLAnchorElement extends HTMLElement {}
|
|
||||||
interface HTMLAreaElement extends HTMLElement {}
|
|
||||||
interface HTMLAudioElement extends HTMLElement {}
|
|
||||||
interface HTMLBaseElement extends HTMLElement {}
|
|
||||||
interface HTMLBodyElement extends HTMLElement {}
|
|
||||||
interface HTMLBRElement extends HTMLElement {}
|
|
||||||
interface HTMLButtonElement extends HTMLElement {}
|
|
||||||
interface HTMLCanvasElement extends HTMLElement {}
|
|
||||||
interface HTMLDataElement extends HTMLElement {}
|
|
||||||
interface HTMLDataListElement extends HTMLElement {}
|
|
||||||
interface HTMLDetailsElement extends HTMLElement {}
|
|
||||||
interface HTMLDialogElement extends HTMLElement {}
|
|
||||||
interface HTMLDivElement extends HTMLElement {}
|
|
||||||
interface HTMLDListElement extends HTMLElement {}
|
|
||||||
interface HTMLEmbedElement extends HTMLElement {}
|
|
||||||
interface HTMLFieldSetElement extends HTMLElement {}
|
|
||||||
interface HTMLFormElement extends HTMLElement {}
|
|
||||||
interface HTMLHeadingElement extends HTMLElement {}
|
|
||||||
interface HTMLHeadElement extends HTMLElement {}
|
|
||||||
interface HTMLHRElement extends HTMLElement {}
|
|
||||||
interface HTMLHtmlElement extends HTMLElement {}
|
|
||||||
interface HTMLIFrameElement extends HTMLElement {}
|
|
||||||
interface HTMLImageElement extends HTMLElement {}
|
|
||||||
interface HTMLInputElement extends HTMLElement {}
|
|
||||||
interface HTMLModElement extends HTMLElement {}
|
|
||||||
interface HTMLLabelElement extends HTMLElement {}
|
|
||||||
interface HTMLLegendElement extends HTMLElement {}
|
|
||||||
interface HTMLLIElement extends HTMLElement {}
|
|
||||||
interface HTMLLinkElement extends HTMLElement {}
|
|
||||||
interface HTMLMapElement extends HTMLElement {}
|
|
||||||
interface HTMLMetaElement extends HTMLElement {}
|
|
||||||
interface HTMLMeterElement extends HTMLElement {}
|
|
||||||
interface HTMLObjectElement extends HTMLElement {}
|
|
||||||
interface HTMLOListElement extends HTMLElement {}
|
|
||||||
interface HTMLOptGroupElement extends HTMLElement {}
|
|
||||||
interface HTMLOptionElement extends HTMLElement {}
|
|
||||||
interface HTMLOutputElement extends HTMLElement {}
|
|
||||||
interface HTMLParagraphElement extends HTMLElement {}
|
|
||||||
interface HTMLParamElement extends HTMLElement {}
|
|
||||||
interface HTMLPreElement extends HTMLElement {}
|
|
||||||
interface HTMLProgressElement extends HTMLElement {}
|
|
||||||
interface HTMLQuoteElement extends HTMLElement {}
|
|
||||||
interface HTMLSlotElement extends HTMLElement {}
|
|
||||||
interface HTMLScriptElement extends HTMLElement {}
|
|
||||||
interface HTMLSelectElement extends HTMLElement {}
|
|
||||||
interface HTMLSourceElement extends HTMLElement {}
|
|
||||||
interface HTMLSpanElement extends HTMLElement {}
|
|
||||||
interface HTMLStyleElement extends HTMLElement {}
|
|
||||||
interface HTMLTableElement extends HTMLElement {}
|
|
||||||
interface HTMLTableColElement extends HTMLElement {}
|
|
||||||
interface HTMLTableDataCellElement extends HTMLElement {}
|
|
||||||
interface HTMLTableHeaderCellElement extends HTMLElement {}
|
|
||||||
interface HTMLTableRowElement extends HTMLElement {}
|
|
||||||
interface HTMLTableSectionElement extends HTMLElement {}
|
|
||||||
interface HTMLTemplateElement extends HTMLElement {}
|
|
||||||
interface HTMLTextAreaElement extends HTMLElement {}
|
|
||||||
interface HTMLTimeElement extends HTMLElement {}
|
|
||||||
interface HTMLTitleElement extends HTMLElement {}
|
|
||||||
interface HTMLTrackElement extends HTMLElement {}
|
|
||||||
interface HTMLUListElement extends HTMLElement {}
|
|
||||||
interface HTMLVideoElement extends HTMLElement {}
|
|
||||||
interface HTMLWebViewElement extends HTMLElement {}
|
|
||||||
|
|
||||||
interface SVGElement extends Element {}
|
|
||||||
interface SVGSVGElement extends SVGElement {}
|
|
||||||
interface SVGCircleElement extends SVGElement {}
|
|
||||||
interface SVGClipPathElement extends SVGElement {}
|
|
||||||
interface SVGDefsElement extends SVGElement {}
|
|
||||||
interface SVGDescElement extends SVGElement {}
|
|
||||||
interface SVGEllipseElement extends SVGElement {}
|
|
||||||
interface SVGFEBlendElement extends SVGElement {}
|
|
||||||
interface SVGFEColorMatrixElement extends SVGElement {}
|
|
||||||
interface SVGFEComponentTransferElement extends SVGElement {}
|
|
||||||
interface SVGFECompositeElement extends SVGElement {}
|
|
||||||
interface SVGFEConvolveMatrixElement extends SVGElement {}
|
|
||||||
interface SVGFEDiffuseLightingElement extends SVGElement {}
|
|
||||||
interface SVGFEDisplacementMapElement extends SVGElement {}
|
|
||||||
interface SVGFEDistantLightElement extends SVGElement {}
|
|
||||||
interface SVGFEDropShadowElement extends SVGElement {}
|
|
||||||
interface SVGFEFloodElement extends SVGElement {}
|
|
||||||
interface SVGFEFuncAElement extends SVGElement {}
|
|
||||||
interface SVGFEFuncBElement extends SVGElement {}
|
|
||||||
interface SVGFEFuncGElement extends SVGElement {}
|
|
||||||
interface SVGFEFuncRElement extends SVGElement {}
|
|
||||||
interface SVGFEGaussianBlurElement extends SVGElement {}
|
|
||||||
interface SVGFEImageElement extends SVGElement {}
|
|
||||||
interface SVGFEMergeElement extends SVGElement {}
|
|
||||||
interface SVGFEMergeNodeElement extends SVGElement {}
|
|
||||||
interface SVGFEMorphologyElement extends SVGElement {}
|
|
||||||
interface SVGFEOffsetElement extends SVGElement {}
|
|
||||||
interface SVGFEPointLightElement extends SVGElement {}
|
|
||||||
interface SVGFESpecularLightingElement extends SVGElement {}
|
|
||||||
interface SVGFESpotLightElement extends SVGElement {}
|
|
||||||
interface SVGFETileElement extends SVGElement {}
|
|
||||||
interface SVGFETurbulenceElement extends SVGElement {}
|
|
||||||
interface SVGFilterElement extends SVGElement {}
|
|
||||||
interface SVGForeignObjectElement extends SVGElement {}
|
|
||||||
interface SVGGElement extends SVGElement {}
|
|
||||||
interface SVGImageElement extends SVGElement {}
|
|
||||||
interface SVGLineElement extends SVGElement {}
|
|
||||||
interface SVGLinearGradientElement extends SVGElement {}
|
|
||||||
interface SVGMarkerElement extends SVGElement {}
|
|
||||||
interface SVGMaskElement extends SVGElement {}
|
|
||||||
interface SVGMetadataElement extends SVGElement {}
|
|
||||||
interface SVGPathElement extends SVGElement {}
|
|
||||||
interface SVGPatternElement extends SVGElement {}
|
|
||||||
interface SVGPolygonElement extends SVGElement {}
|
|
||||||
interface SVGPolylineElement extends SVGElement {}
|
|
||||||
interface SVGRadialGradientElement extends SVGElement {}
|
|
||||||
interface SVGRectElement extends SVGElement {}
|
|
||||||
interface SVGSetElement extends SVGElement {}
|
|
||||||
interface SVGStopElement extends SVGElement {}
|
|
||||||
interface SVGSwitchElement extends SVGElement {}
|
|
||||||
interface SVGSymbolElement extends SVGElement {}
|
|
||||||
interface SVGTextElement extends SVGElement {}
|
|
||||||
interface SVGTextPathElement extends SVGElement {}
|
|
||||||
interface SVGTSpanElement extends SVGElement {}
|
|
||||||
interface SVGUseElement extends SVGElement {}
|
|
||||||
interface SVGViewElement extends SVGElement {}
|
|
||||||
|
|
||||||
interface FormData {}
|
|
||||||
interface Text {}
|
|
||||||
interface TouchList {}
|
|
||||||
interface WebGLRenderingContext {}
|
|
||||||
interface WebGL2RenderingContext {}
|
|
||||||
|
|
||||||
interface TrustedHTML {}
|
|
||||||
|
|
||||||
interface Blob {}
|
|
||||||
interface MediaStream {}
|
|
||||||
interface MediaSource {}
|
|
||||||
4324
node_modules/@types/react/index.d.ts
generated
vendored
4324
node_modules/@types/react/index.d.ts
generated
vendored
File diff suppressed because it is too large
Load Diff
45
node_modules/@types/react/jsx-dev-runtime.d.ts
generated
vendored
45
node_modules/@types/react/jsx-dev-runtime.d.ts
generated
vendored
@ -1,45 +0,0 @@
|
|||||||
import * as React from "./";
|
|
||||||
export { Fragment } from "./";
|
|
||||||
|
|
||||||
export namespace JSX {
|
|
||||||
type ElementType = React.JSX.ElementType;
|
|
||||||
interface Element extends React.JSX.Element {}
|
|
||||||
interface ElementClass extends React.JSX.ElementClass {}
|
|
||||||
interface ElementAttributesProperty extends React.JSX.ElementAttributesProperty {}
|
|
||||||
interface ElementChildrenAttribute extends React.JSX.ElementChildrenAttribute {}
|
|
||||||
type LibraryManagedAttributes<C, P> = React.JSX.LibraryManagedAttributes<C, P>;
|
|
||||||
interface IntrinsicAttributes extends React.JSX.IntrinsicAttributes {}
|
|
||||||
interface IntrinsicClassAttributes<T> extends React.JSX.IntrinsicClassAttributes<T> {}
|
|
||||||
interface IntrinsicElements extends React.JSX.IntrinsicElements {}
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface JSXSource {
|
|
||||||
/**
|
|
||||||
* The source file where the element originates from.
|
|
||||||
*/
|
|
||||||
fileName?: string | undefined;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The line number where the element was created.
|
|
||||||
*/
|
|
||||||
lineNumber?: number | undefined;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The column number where the element was created.
|
|
||||||
*/
|
|
||||||
columnNumber?: number | undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Create a React element.
|
|
||||||
*
|
|
||||||
* You should not use this function directly. Use JSX and a transpiler instead.
|
|
||||||
*/
|
|
||||||
export function jsxDEV(
|
|
||||||
type: React.ElementType,
|
|
||||||
props: unknown,
|
|
||||||
key: React.Key | undefined,
|
|
||||||
isStatic: boolean,
|
|
||||||
source?: JSXSource,
|
|
||||||
self?: unknown,
|
|
||||||
): React.ReactElement;
|
|
||||||
36
node_modules/@types/react/jsx-runtime.d.ts
generated
vendored
36
node_modules/@types/react/jsx-runtime.d.ts
generated
vendored
@ -1,36 +0,0 @@
|
|||||||
import * as React from "./";
|
|
||||||
export { Fragment } from "./";
|
|
||||||
|
|
||||||
export namespace JSX {
|
|
||||||
type ElementType = React.JSX.ElementType;
|
|
||||||
interface Element extends React.JSX.Element {}
|
|
||||||
interface ElementClass extends React.JSX.ElementClass {}
|
|
||||||
interface ElementAttributesProperty extends React.JSX.ElementAttributesProperty {}
|
|
||||||
interface ElementChildrenAttribute extends React.JSX.ElementChildrenAttribute {}
|
|
||||||
type LibraryManagedAttributes<C, P> = React.JSX.LibraryManagedAttributes<C, P>;
|
|
||||||
interface IntrinsicAttributes extends React.JSX.IntrinsicAttributes {}
|
|
||||||
interface IntrinsicClassAttributes<T> extends React.JSX.IntrinsicClassAttributes<T> {}
|
|
||||||
interface IntrinsicElements extends React.JSX.IntrinsicElements {}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Create a React element.
|
|
||||||
*
|
|
||||||
* You should not use this function directly. Use JSX and a transpiler instead.
|
|
||||||
*/
|
|
||||||
export function jsx(
|
|
||||||
type: React.ElementType,
|
|
||||||
props: unknown,
|
|
||||||
key?: React.Key,
|
|
||||||
): React.ReactElement;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Create a React element.
|
|
||||||
*
|
|
||||||
* You should not use this function directly. Use JSX and a transpiler instead.
|
|
||||||
*/
|
|
||||||
export function jsxs(
|
|
||||||
type: React.ElementType,
|
|
||||||
props: unknown,
|
|
||||||
key?: React.Key,
|
|
||||||
): React.ReactElement;
|
|
||||||
210
node_modules/@types/react/package.json
generated
vendored
210
node_modules/@types/react/package.json
generated
vendored
@ -1,210 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "@types/react",
|
|
||||||
"version": "19.2.7",
|
|
||||||
"description": "TypeScript definitions for react",
|
|
||||||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
|
|
||||||
"license": "MIT",
|
|
||||||
"contributors": [
|
|
||||||
{
|
|
||||||
"name": "Asana",
|
|
||||||
"url": "https://asana.com"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "AssureSign",
|
|
||||||
"url": "http://www.assuresign.com"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Microsoft",
|
|
||||||
"url": "https://microsoft.com"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "John Reilly",
|
|
||||||
"githubUsername": "johnnyreilly",
|
|
||||||
"url": "https://github.com/johnnyreilly"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Benoit Benezech",
|
|
||||||
"githubUsername": "bbenezech",
|
|
||||||
"url": "https://github.com/bbenezech"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Patricio Zavolinsky",
|
|
||||||
"githubUsername": "pzavolinsky",
|
|
||||||
"url": "https://github.com/pzavolinsky"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Eric Anderson",
|
|
||||||
"githubUsername": "ericanderson",
|
|
||||||
"url": "https://github.com/ericanderson"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Dovydas Navickas",
|
|
||||||
"githubUsername": "DovydasNavickas",
|
|
||||||
"url": "https://github.com/DovydasNavickas"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Josh Rutherford",
|
|
||||||
"githubUsername": "theruther4d",
|
|
||||||
"url": "https://github.com/theruther4d"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Guilherme Hübner",
|
|
||||||
"githubUsername": "guilhermehubner",
|
|
||||||
"url": "https://github.com/guilhermehubner"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Ferdy Budhidharma",
|
|
||||||
"githubUsername": "ferdaber",
|
|
||||||
"url": "https://github.com/ferdaber"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Johann Rakotoharisoa",
|
|
||||||
"githubUsername": "jrakotoharisoa",
|
|
||||||
"url": "https://github.com/jrakotoharisoa"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Olivier Pascal",
|
|
||||||
"githubUsername": "pascaloliv",
|
|
||||||
"url": "https://github.com/pascaloliv"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Martin Hochel",
|
|
||||||
"githubUsername": "hotell",
|
|
||||||
"url": "https://github.com/hotell"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Frank Li",
|
|
||||||
"githubUsername": "franklixuefei",
|
|
||||||
"url": "https://github.com/franklixuefei"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Jessica Franco",
|
|
||||||
"githubUsername": "Jessidhia",
|
|
||||||
"url": "https://github.com/Jessidhia"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Saransh Kataria",
|
|
||||||
"githubUsername": "saranshkataria",
|
|
||||||
"url": "https://github.com/saranshkataria"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Kanitkorn Sujautra",
|
|
||||||
"githubUsername": "lukyth",
|
|
||||||
"url": "https://github.com/lukyth"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Sebastian Silbermann",
|
|
||||||
"githubUsername": "eps1lon",
|
|
||||||
"url": "https://github.com/eps1lon"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Kyle Scully",
|
|
||||||
"githubUsername": "zieka",
|
|
||||||
"url": "https://github.com/zieka"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Cong Zhang",
|
|
||||||
"githubUsername": "dancerphil",
|
|
||||||
"url": "https://github.com/dancerphil"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Dimitri Mitropoulos",
|
|
||||||
"githubUsername": "dimitropoulos",
|
|
||||||
"url": "https://github.com/dimitropoulos"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "JongChan Choi",
|
|
||||||
"githubUsername": "disjukr",
|
|
||||||
"url": "https://github.com/disjukr"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Victor Magalhães",
|
|
||||||
"githubUsername": "vhfmag",
|
|
||||||
"url": "https://github.com/vhfmag"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Priyanshu Rav",
|
|
||||||
"githubUsername": "priyanshurav",
|
|
||||||
"url": "https://github.com/priyanshurav"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Dmitry Semigradsky",
|
|
||||||
"githubUsername": "Semigradsky",
|
|
||||||
"url": "https://github.com/Semigradsky"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Matt Pocock",
|
|
||||||
"githubUsername": "mattpocock",
|
|
||||||
"url": "https://github.com/mattpocock"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"main": "",
|
|
||||||
"types": "index.d.ts",
|
|
||||||
"typesVersions": {
|
|
||||||
"<=5.0": {
|
|
||||||
"*": [
|
|
||||||
"ts5.0/*"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"exports": {
|
|
||||||
".": {
|
|
||||||
"types@<=5.0": {
|
|
||||||
"default": "./ts5.0/index.d.ts"
|
|
||||||
},
|
|
||||||
"types": {
|
|
||||||
"default": "./index.d.ts"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"./canary": {
|
|
||||||
"types@<=5.0": {
|
|
||||||
"default": "./ts5.0/canary.d.ts"
|
|
||||||
},
|
|
||||||
"types": {
|
|
||||||
"default": "./canary.d.ts"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"./compiler-runtime": {
|
|
||||||
"types": {
|
|
||||||
"default": "./compiler-runtime.d.ts"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"./experimental": {
|
|
||||||
"types@<=5.0": {
|
|
||||||
"default": "./ts5.0/experimental.d.ts"
|
|
||||||
},
|
|
||||||
"types": {
|
|
||||||
"default": "./experimental.d.ts"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"./jsx-runtime": {
|
|
||||||
"types@<=5.0": {
|
|
||||||
"default": "./ts5.0/jsx-runtime.d.ts"
|
|
||||||
},
|
|
||||||
"types": {
|
|
||||||
"default": "./jsx-runtime.d.ts"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"./jsx-dev-runtime": {
|
|
||||||
"types@<=5.0": {
|
|
||||||
"default": "./ts5.0/jsx-dev-runtime.d.ts"
|
|
||||||
},
|
|
||||||
"types": {
|
|
||||||
"default": "./jsx-dev-runtime.d.ts"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"./package.json": "./package.json"
|
|
||||||
},
|
|
||||||
"repository": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
|
||||||
"directory": "types/react"
|
|
||||||
},
|
|
||||||
"scripts": {},
|
|
||||||
"dependencies": {
|
|
||||||
"csstype": "^3.2.2"
|
|
||||||
},
|
|
||||||
"peerDependencies": {},
|
|
||||||
"typesPublisherContentHash": "fd69ea47f2fc8e9d139677eb6bcca67ee4b3ac279ce5ceb2e6e23ce8403c356d",
|
|
||||||
"typeScriptVersion": "5.2"
|
|
||||||
}
|
|
||||||
120
node_modules/@types/react/ts5.0/canary.d.ts
generated
vendored
120
node_modules/@types/react/ts5.0/canary.d.ts
generated
vendored
@ -1,120 +0,0 @@
|
|||||||
/**
|
|
||||||
* These are types for things that are present in the React `canary` release channel.
|
|
||||||
*
|
|
||||||
* To load the types declared here in an actual project, there are three ways. The easiest one,
|
|
||||||
* if your `tsconfig.json` already has a `"types"` array in the `"compilerOptions"` section,
|
|
||||||
* is to add `"react/canary"` to the `"types"` array.
|
|
||||||
*
|
|
||||||
* Alternatively, a specific import syntax can to be used from a typescript file.
|
|
||||||
* This module does not exist in reality, which is why the {} is important:
|
|
||||||
*
|
|
||||||
* ```ts
|
|
||||||
* import {} from 'react/canary'
|
|
||||||
* ```
|
|
||||||
*
|
|
||||||
* It is also possible to include it through a triple-slash reference:
|
|
||||||
*
|
|
||||||
* ```ts
|
|
||||||
* /// <reference types="react/canary" />
|
|
||||||
* ```
|
|
||||||
*
|
|
||||||
* Either the import or the reference only needs to appear once, anywhere in the project.
|
|
||||||
*/
|
|
||||||
|
|
||||||
// See https://github.com/facebook/react/blob/main/packages/react/src/React.js to see how the exports are declared,
|
|
||||||
|
|
||||||
import React = require(".");
|
|
||||||
|
|
||||||
export {};
|
|
||||||
|
|
||||||
declare const UNDEFINED_VOID_ONLY: unique symbol;
|
|
||||||
type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never };
|
|
||||||
|
|
||||||
declare module "." {
|
|
||||||
export function unstable_useCacheRefresh(): () => void;
|
|
||||||
|
|
||||||
// @enableViewTransition
|
|
||||||
export interface ViewTransitionInstance {
|
|
||||||
/**
|
|
||||||
* The {@link ViewTransitionProps name} that was used in the corresponding {@link ViewTransition} component or `"auto"` if the `name` prop was omitted.
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ViewTransitionClassPerType = Record<"default" | (string & {}), "none" | "auto" | (string & {})>;
|
|
||||||
export type ViewTransitionClass = ViewTransitionClassPerType | ViewTransitionClassPerType[string];
|
|
||||||
|
|
||||||
export interface ViewTransitionProps {
|
|
||||||
children?: ReactNode | undefined;
|
|
||||||
/**
|
|
||||||
* Assigns the {@link https://developer.chrome.com/blog/view-transitions-update-io24#view-transition-class `view-transition-class`} class to the underlying DOM node.
|
|
||||||
*/
|
|
||||||
default?: ViewTransitionClass | undefined;
|
|
||||||
/**
|
|
||||||
* Combined with {@link className} if this `<ViewTransition>` or its parent Component is mounted and there's no other with the same name being deleted.
|
|
||||||
* `"none"` is a special value that deactivates the view transition name under that condition.
|
|
||||||
*/
|
|
||||||
enter?: ViewTransitionClass | undefined;
|
|
||||||
/**
|
|
||||||
* Combined with {@link className} if this `<ViewTransition>` or its parent Component is unmounted and there's no other with the same name being deleted.
|
|
||||||
* `"none"` is a special value that deactivates the view transition name under that condition.
|
|
||||||
*/
|
|
||||||
exit?: ViewTransitionClass | undefined;
|
|
||||||
/**
|
|
||||||
* "auto" will automatically assign a view-transition-name to the inner DOM node.
|
|
||||||
* That way you can add a View Transition to a Component without controlling its DOM nodes styling otherwise.
|
|
||||||
*
|
|
||||||
* A difference between this and the browser's built-in view-transition-name: auto is that switching the DOM nodes within the `<ViewTransition>` component preserves the same name so this example cross-fades between the DOM nodes instead of causing an exit and enter.
|
|
||||||
* @default "auto"
|
|
||||||
*/
|
|
||||||
name?: "auto" | (string & {}) | undefined;
|
|
||||||
/**
|
|
||||||
* The `<ViewTransition>` or its parent Component is mounted and there's no other `<ViewTransition>` with the same name being deleted.
|
|
||||||
*/
|
|
||||||
onEnter?: (instance: ViewTransitionInstance, types: Array<string>) => void;
|
|
||||||
/**
|
|
||||||
* The `<ViewTransition>` or its parent Component is unmounted and there's no other `<ViewTransition>` with the same name being deleted.
|
|
||||||
*/
|
|
||||||
onExit?: (instance: ViewTransitionInstance, types: Array<string>) => void;
|
|
||||||
/**
|
|
||||||
* This `<ViewTransition>` is being mounted and another `<ViewTransition>` instance with the same name is being unmounted elsewhere.
|
|
||||||
*/
|
|
||||||
onShare?: (instance: ViewTransitionInstance, types: Array<string>) => void;
|
|
||||||
/**
|
|
||||||
* The content of `<ViewTransition>` has changed either due to DOM mutations or because an inner child `<ViewTransition>` has resized.
|
|
||||||
*/
|
|
||||||
onUpdate?: (instance: ViewTransitionInstance, types: Array<string>) => void;
|
|
||||||
ref?: Ref<ViewTransitionInstance> | undefined;
|
|
||||||
/**
|
|
||||||
* Combined with {@link className} if this `<ViewTransition>` is being mounted and another instance with the same name is being unmounted elsewhere.
|
|
||||||
* `"none"` is a special value that deactivates the view transition name under that condition.
|
|
||||||
*/
|
|
||||||
share?: ViewTransitionClass | undefined;
|
|
||||||
/**
|
|
||||||
* Combined with {@link className} if the content of this `<ViewTransition>` has changed either due to DOM mutations or because an inner child has resized.
|
|
||||||
* `"none"` is a special value that deactivates the view transition name under that condition.
|
|
||||||
*/
|
|
||||||
update?: ViewTransitionClass | undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Opt-in for using {@link https://developer.mozilla.org/en-US/docs/Web/API/View_Transition_API View Transitions} in React.
|
|
||||||
* View Transitions only trigger for async updates like {@link startTransition}, {@link useDeferredValue}, Actions or <{@link Suspense}> revealing from fallback to content.
|
|
||||||
* Synchronous updates provide an opt-out but also guarantee that they commit immediately which View Transitions can't.
|
|
||||||
*
|
|
||||||
* @see {@link https://react.dev/reference/react/ViewTransition `<ViewTransition>` reference documentation}
|
|
||||||
*/
|
|
||||||
export const ViewTransition: ExoticComponent<ViewTransitionProps>;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @see {@link https://react.dev/reference/react/addTransitionType `addTransitionType` reference documentation}
|
|
||||||
*/
|
|
||||||
export function addTransitionType(type: string): void;
|
|
||||||
|
|
||||||
// @enableFragmentRefs
|
|
||||||
export interface FragmentInstance {}
|
|
||||||
|
|
||||||
export interface FragmentProps {
|
|
||||||
ref?: Ref<FragmentInstance> | undefined;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
147
node_modules/@types/react/ts5.0/experimental.d.ts
generated
vendored
147
node_modules/@types/react/ts5.0/experimental.d.ts
generated
vendored
@ -1,147 +0,0 @@
|
|||||||
/**
|
|
||||||
* These are types for things that are present in the `experimental` builds of React but not yet
|
|
||||||
* on a stable build.
|
|
||||||
*
|
|
||||||
* Once they are promoted to stable they can just be moved to the main index file.
|
|
||||||
*
|
|
||||||
* To load the types declared here in an actual project, there are three ways. The easiest one,
|
|
||||||
* if your `tsconfig.json` already has a `"types"` array in the `"compilerOptions"` section,
|
|
||||||
* is to add `"react/experimental"` to the `"types"` array.
|
|
||||||
*
|
|
||||||
* Alternatively, a specific import syntax can to be used from a typescript file.
|
|
||||||
* This module does not exist in reality, which is why the {} is important:
|
|
||||||
*
|
|
||||||
* ```ts
|
|
||||||
* import {} from 'react/experimental'
|
|
||||||
* ```
|
|
||||||
*
|
|
||||||
* It is also possible to include it through a triple-slash reference:
|
|
||||||
*
|
|
||||||
* ```ts
|
|
||||||
* /// <reference types="react/experimental" />
|
|
||||||
* ```
|
|
||||||
*
|
|
||||||
* Either the import or the reference only needs to appear once, anywhere in the project.
|
|
||||||
*/
|
|
||||||
|
|
||||||
// See https://github.com/facebook/react/blob/master/packages/react/src/React.js to see how the exports are declared,
|
|
||||||
// and https://github.com/facebook/react/blob/master/packages/shared/ReactFeatureFlags.js to verify which APIs are
|
|
||||||
// flagged experimental or not. Experimental APIs will be tagged with `__EXPERIMENTAL__`.
|
|
||||||
//
|
|
||||||
// For the inputs of types exported as simply a fiber tag, the `beginWork` function of ReactFiberBeginWork.js
|
|
||||||
// is a good place to start looking for details; it generally calls prop validation functions or delegates
|
|
||||||
// all tasks done as part of the render phase (the concurrent part of the React update cycle).
|
|
||||||
//
|
|
||||||
// Suspense-related handling can be found in ReactFiberThrow.js.
|
|
||||||
|
|
||||||
import React = require("./canary");
|
|
||||||
|
|
||||||
export {};
|
|
||||||
|
|
||||||
declare const UNDEFINED_VOID_ONLY: unique symbol;
|
|
||||||
type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never };
|
|
||||||
|
|
||||||
declare module "." {
|
|
||||||
export interface SuspenseProps {
|
|
||||||
// @enableCPUSuspense
|
|
||||||
/**
|
|
||||||
* The presence of this prop indicates that the content is computationally expensive to render.
|
|
||||||
* In other words, the tree is CPU bound and not I/O bound (e.g. due to fetching data).
|
|
||||||
* @see {@link https://github.com/facebook/react/pull/19936}
|
|
||||||
*/
|
|
||||||
defer?: boolean | undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
export type SuspenseListRevealOrder = "forwards" | "backwards" | "together" | "independent";
|
|
||||||
export type SuspenseListTailMode = "collapsed" | "hidden" | "visible";
|
|
||||||
|
|
||||||
export interface SuspenseListCommonProps {
|
|
||||||
}
|
|
||||||
|
|
||||||
interface DirectionalSuspenseListProps extends SuspenseListCommonProps {
|
|
||||||
/**
|
|
||||||
* Note that SuspenseList require more than one child;
|
|
||||||
* it is a runtime warning to provide only a single child.
|
|
||||||
*
|
|
||||||
* It does, however, allow those children to be wrapped inside a single
|
|
||||||
* level of `<React.Fragment>`.
|
|
||||||
*/
|
|
||||||
children: Iterable<ReactElement> | AsyncIterable<ReactElement>;
|
|
||||||
/**
|
|
||||||
* Defines the order in which the `SuspenseList` children should be revealed.
|
|
||||||
* @default "forwards"
|
|
||||||
*/
|
|
||||||
revealOrder?: "forwards" | "backwards" | "unstable_legacy-backwards" | undefined;
|
|
||||||
/**
|
|
||||||
* Dictates how unloaded items in a SuspenseList is shown.
|
|
||||||
*
|
|
||||||
* - `collapsed` shows only the next fallback in the list.
|
|
||||||
* - `hidden` doesn't show any unloaded items.
|
|
||||||
* - `visible` shows all fallbacks in the list.
|
|
||||||
*
|
|
||||||
* @default "hidden"
|
|
||||||
*/
|
|
||||||
tail?: SuspenseListTailMode | undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
interface NonDirectionalSuspenseListProps extends SuspenseListCommonProps {
|
|
||||||
children: ReactNode;
|
|
||||||
/**
|
|
||||||
* Defines the order in which the `SuspenseList` children should be revealed.
|
|
||||||
*/
|
|
||||||
revealOrder: Exclude<SuspenseListRevealOrder, DirectionalSuspenseListProps["revealOrder"]>;
|
|
||||||
/**
|
|
||||||
* The tail property is invalid when not using the `forwards` or `backwards` reveal orders.
|
|
||||||
*/
|
|
||||||
tail?: never;
|
|
||||||
}
|
|
||||||
|
|
||||||
export type SuspenseListProps = DirectionalSuspenseListProps | NonDirectionalSuspenseListProps;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* `SuspenseList` helps coordinate many components that can suspend by orchestrating the order
|
|
||||||
* in which these components are revealed to the user.
|
|
||||||
*
|
|
||||||
* When multiple components need to fetch data, this data may arrive in an unpredictable order.
|
|
||||||
* However, if you wrap these items in a `SuspenseList`, React will not show an item in the list
|
|
||||||
* until previous items have been displayed (this behavior is adjustable).
|
|
||||||
*
|
|
||||||
* @see https://reactjs.org/docs/concurrent-mode-reference.html#suspenselist
|
|
||||||
* @see https://reactjs.org/docs/concurrent-mode-patterns.html#suspenselist
|
|
||||||
*/
|
|
||||||
export const unstable_SuspenseList: ExoticComponent<SuspenseListProps>;
|
|
||||||
|
|
||||||
type Reference = object;
|
|
||||||
type TaintableUniqueValue = string | bigint | ArrayBufferView;
|
|
||||||
function experimental_taintUniqueValue(
|
|
||||||
message: string | undefined,
|
|
||||||
lifetime: Reference,
|
|
||||||
value: TaintableUniqueValue,
|
|
||||||
): void;
|
|
||||||
function experimental_taintObjectReference(message: string | undefined, object: Reference): void;
|
|
||||||
|
|
||||||
// @enableGestureTransition
|
|
||||||
// Implemented by the specific renderer e.g. `react-dom`.
|
|
||||||
// Keep in mind that augmented interfaces merge their JSDoc so if you put
|
|
||||||
// JSDoc here and in the renderer, the IDE will display both.
|
|
||||||
export interface GestureProvider {}
|
|
||||||
export interface GestureOptions {
|
|
||||||
rangeStart?: number | undefined;
|
|
||||||
rangeEnd?: number | undefined;
|
|
||||||
}
|
|
||||||
/** */
|
|
||||||
export function unstable_startGestureTransition(
|
|
||||||
provider: GestureProvider,
|
|
||||||
scope: () => void,
|
|
||||||
options?: GestureOptions,
|
|
||||||
): () => void;
|
|
||||||
|
|
||||||
// @enableSrcObject
|
|
||||||
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_IMG_SRC_TYPES {
|
|
||||||
srcObject: Blob;
|
|
||||||
}
|
|
||||||
|
|
||||||
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_MEDIA_SRC_TYPES {
|
|
||||||
srcObject: Blob | MediaSource | MediaStream;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
165
node_modules/@types/react/ts5.0/global.d.ts
generated
vendored
165
node_modules/@types/react/ts5.0/global.d.ts
generated
vendored
@ -1,165 +0,0 @@
|
|||||||
/*
|
|
||||||
React projects that don't include the DOM library need these interfaces to compile.
|
|
||||||
React Native applications use React, but there is no DOM available. The JavaScript runtime
|
|
||||||
is ES6/ES2015 only. These definitions allow such projects to compile with only `--lib ES6`.
|
|
||||||
|
|
||||||
Warning: all of these interfaces are empty. If you want type definitions for various properties
|
|
||||||
(such as HTMLInputElement.prototype.value), you need to add `--lib DOM` (via command line or tsconfig.json).
|
|
||||||
*/
|
|
||||||
|
|
||||||
interface Event {}
|
|
||||||
interface AnimationEvent extends Event {}
|
|
||||||
interface ClipboardEvent extends Event {}
|
|
||||||
interface CompositionEvent extends Event {}
|
|
||||||
interface DragEvent extends Event {}
|
|
||||||
interface FocusEvent extends Event {}
|
|
||||||
interface InputEvent extends Event {}
|
|
||||||
interface KeyboardEvent extends Event {}
|
|
||||||
interface MouseEvent extends Event {}
|
|
||||||
interface TouchEvent extends Event {}
|
|
||||||
interface PointerEvent extends Event {}
|
|
||||||
interface ToggleEvent extends Event {}
|
|
||||||
interface TransitionEvent extends Event {}
|
|
||||||
interface UIEvent extends Event {}
|
|
||||||
interface WheelEvent extends Event {}
|
|
||||||
|
|
||||||
interface EventTarget {}
|
|
||||||
interface Document {}
|
|
||||||
interface DataTransfer {}
|
|
||||||
interface StyleMedia {}
|
|
||||||
|
|
||||||
interface Element {}
|
|
||||||
interface DocumentFragment {}
|
|
||||||
|
|
||||||
interface HTMLElement extends Element {}
|
|
||||||
interface HTMLAnchorElement extends HTMLElement {}
|
|
||||||
interface HTMLAreaElement extends HTMLElement {}
|
|
||||||
interface HTMLAudioElement extends HTMLElement {}
|
|
||||||
interface HTMLBaseElement extends HTMLElement {}
|
|
||||||
interface HTMLBodyElement extends HTMLElement {}
|
|
||||||
interface HTMLBRElement extends HTMLElement {}
|
|
||||||
interface HTMLButtonElement extends HTMLElement {}
|
|
||||||
interface HTMLCanvasElement extends HTMLElement {}
|
|
||||||
interface HTMLDataElement extends HTMLElement {}
|
|
||||||
interface HTMLDataListElement extends HTMLElement {}
|
|
||||||
interface HTMLDetailsElement extends HTMLElement {}
|
|
||||||
interface HTMLDialogElement extends HTMLElement {}
|
|
||||||
interface HTMLDivElement extends HTMLElement {}
|
|
||||||
interface HTMLDListElement extends HTMLElement {}
|
|
||||||
interface HTMLEmbedElement extends HTMLElement {}
|
|
||||||
interface HTMLFieldSetElement extends HTMLElement {}
|
|
||||||
interface HTMLFormElement extends HTMLElement {}
|
|
||||||
interface HTMLHeadingElement extends HTMLElement {}
|
|
||||||
interface HTMLHeadElement extends HTMLElement {}
|
|
||||||
interface HTMLHRElement extends HTMLElement {}
|
|
||||||
interface HTMLHtmlElement extends HTMLElement {}
|
|
||||||
interface HTMLIFrameElement extends HTMLElement {}
|
|
||||||
interface HTMLImageElement extends HTMLElement {}
|
|
||||||
interface HTMLInputElement extends HTMLElement {}
|
|
||||||
interface HTMLModElement extends HTMLElement {}
|
|
||||||
interface HTMLLabelElement extends HTMLElement {}
|
|
||||||
interface HTMLLegendElement extends HTMLElement {}
|
|
||||||
interface HTMLLIElement extends HTMLElement {}
|
|
||||||
interface HTMLLinkElement extends HTMLElement {}
|
|
||||||
interface HTMLMapElement extends HTMLElement {}
|
|
||||||
interface HTMLMetaElement extends HTMLElement {}
|
|
||||||
interface HTMLMeterElement extends HTMLElement {}
|
|
||||||
interface HTMLObjectElement extends HTMLElement {}
|
|
||||||
interface HTMLOListElement extends HTMLElement {}
|
|
||||||
interface HTMLOptGroupElement extends HTMLElement {}
|
|
||||||
interface HTMLOptionElement extends HTMLElement {}
|
|
||||||
interface HTMLOutputElement extends HTMLElement {}
|
|
||||||
interface HTMLParagraphElement extends HTMLElement {}
|
|
||||||
interface HTMLParamElement extends HTMLElement {}
|
|
||||||
interface HTMLPreElement extends HTMLElement {}
|
|
||||||
interface HTMLProgressElement extends HTMLElement {}
|
|
||||||
interface HTMLQuoteElement extends HTMLElement {}
|
|
||||||
interface HTMLSlotElement extends HTMLElement {}
|
|
||||||
interface HTMLScriptElement extends HTMLElement {}
|
|
||||||
interface HTMLSelectElement extends HTMLElement {}
|
|
||||||
interface HTMLSourceElement extends HTMLElement {}
|
|
||||||
interface HTMLSpanElement extends HTMLElement {}
|
|
||||||
interface HTMLStyleElement extends HTMLElement {}
|
|
||||||
interface HTMLTableElement extends HTMLElement {}
|
|
||||||
interface HTMLTableColElement extends HTMLElement {}
|
|
||||||
interface HTMLTableDataCellElement extends HTMLElement {}
|
|
||||||
interface HTMLTableHeaderCellElement extends HTMLElement {}
|
|
||||||
interface HTMLTableRowElement extends HTMLElement {}
|
|
||||||
interface HTMLTableSectionElement extends HTMLElement {}
|
|
||||||
interface HTMLTemplateElement extends HTMLElement {}
|
|
||||||
interface HTMLTextAreaElement extends HTMLElement {}
|
|
||||||
interface HTMLTimeElement extends HTMLElement {}
|
|
||||||
interface HTMLTitleElement extends HTMLElement {}
|
|
||||||
interface HTMLTrackElement extends HTMLElement {}
|
|
||||||
interface HTMLUListElement extends HTMLElement {}
|
|
||||||
interface HTMLVideoElement extends HTMLElement {}
|
|
||||||
interface HTMLWebViewElement extends HTMLElement {}
|
|
||||||
|
|
||||||
interface SVGElement extends Element {}
|
|
||||||
interface SVGSVGElement extends SVGElement {}
|
|
||||||
interface SVGCircleElement extends SVGElement {}
|
|
||||||
interface SVGClipPathElement extends SVGElement {}
|
|
||||||
interface SVGDefsElement extends SVGElement {}
|
|
||||||
interface SVGDescElement extends SVGElement {}
|
|
||||||
interface SVGEllipseElement extends SVGElement {}
|
|
||||||
interface SVGFEBlendElement extends SVGElement {}
|
|
||||||
interface SVGFEColorMatrixElement extends SVGElement {}
|
|
||||||
interface SVGFEComponentTransferElement extends SVGElement {}
|
|
||||||
interface SVGFECompositeElement extends SVGElement {}
|
|
||||||
interface SVGFEConvolveMatrixElement extends SVGElement {}
|
|
||||||
interface SVGFEDiffuseLightingElement extends SVGElement {}
|
|
||||||
interface SVGFEDisplacementMapElement extends SVGElement {}
|
|
||||||
interface SVGFEDistantLightElement extends SVGElement {}
|
|
||||||
interface SVGFEDropShadowElement extends SVGElement {}
|
|
||||||
interface SVGFEFloodElement extends SVGElement {}
|
|
||||||
interface SVGFEFuncAElement extends SVGElement {}
|
|
||||||
interface SVGFEFuncBElement extends SVGElement {}
|
|
||||||
interface SVGFEFuncGElement extends SVGElement {}
|
|
||||||
interface SVGFEFuncRElement extends SVGElement {}
|
|
||||||
interface SVGFEGaussianBlurElement extends SVGElement {}
|
|
||||||
interface SVGFEImageElement extends SVGElement {}
|
|
||||||
interface SVGFEMergeElement extends SVGElement {}
|
|
||||||
interface SVGFEMergeNodeElement extends SVGElement {}
|
|
||||||
interface SVGFEMorphologyElement extends SVGElement {}
|
|
||||||
interface SVGFEOffsetElement extends SVGElement {}
|
|
||||||
interface SVGFEPointLightElement extends SVGElement {}
|
|
||||||
interface SVGFESpecularLightingElement extends SVGElement {}
|
|
||||||
interface SVGFESpotLightElement extends SVGElement {}
|
|
||||||
interface SVGFETileElement extends SVGElement {}
|
|
||||||
interface SVGFETurbulenceElement extends SVGElement {}
|
|
||||||
interface SVGFilterElement extends SVGElement {}
|
|
||||||
interface SVGForeignObjectElement extends SVGElement {}
|
|
||||||
interface SVGGElement extends SVGElement {}
|
|
||||||
interface SVGImageElement extends SVGElement {}
|
|
||||||
interface SVGLineElement extends SVGElement {}
|
|
||||||
interface SVGLinearGradientElement extends SVGElement {}
|
|
||||||
interface SVGMarkerElement extends SVGElement {}
|
|
||||||
interface SVGMaskElement extends SVGElement {}
|
|
||||||
interface SVGMetadataElement extends SVGElement {}
|
|
||||||
interface SVGPathElement extends SVGElement {}
|
|
||||||
interface SVGPatternElement extends SVGElement {}
|
|
||||||
interface SVGPolygonElement extends SVGElement {}
|
|
||||||
interface SVGPolylineElement extends SVGElement {}
|
|
||||||
interface SVGRadialGradientElement extends SVGElement {}
|
|
||||||
interface SVGRectElement extends SVGElement {}
|
|
||||||
interface SVGSetElement extends SVGElement {}
|
|
||||||
interface SVGStopElement extends SVGElement {}
|
|
||||||
interface SVGSwitchElement extends SVGElement {}
|
|
||||||
interface SVGSymbolElement extends SVGElement {}
|
|
||||||
interface SVGTextElement extends SVGElement {}
|
|
||||||
interface SVGTextPathElement extends SVGElement {}
|
|
||||||
interface SVGTSpanElement extends SVGElement {}
|
|
||||||
interface SVGUseElement extends SVGElement {}
|
|
||||||
interface SVGViewElement extends SVGElement {}
|
|
||||||
|
|
||||||
interface FormData {}
|
|
||||||
interface Text {}
|
|
||||||
interface TouchList {}
|
|
||||||
interface WebGLRenderingContext {}
|
|
||||||
interface WebGL2RenderingContext {}
|
|
||||||
|
|
||||||
interface TrustedHTML {}
|
|
||||||
|
|
||||||
interface Blob {}
|
|
||||||
interface MediaStream {}
|
|
||||||
interface MediaSource {}
|
|
||||||
4311
node_modules/@types/react/ts5.0/index.d.ts
generated
vendored
4311
node_modules/@types/react/ts5.0/index.d.ts
generated
vendored
File diff suppressed because it is too large
Load Diff
44
node_modules/@types/react/ts5.0/jsx-dev-runtime.d.ts
generated
vendored
44
node_modules/@types/react/ts5.0/jsx-dev-runtime.d.ts
generated
vendored
@ -1,44 +0,0 @@
|
|||||||
import * as React from "./";
|
|
||||||
export { Fragment } from "./";
|
|
||||||
|
|
||||||
export namespace JSX {
|
|
||||||
interface Element extends React.JSX.Element {}
|
|
||||||
interface ElementClass extends React.JSX.ElementClass {}
|
|
||||||
interface ElementAttributesProperty extends React.JSX.ElementAttributesProperty {}
|
|
||||||
interface ElementChildrenAttribute extends React.JSX.ElementChildrenAttribute {}
|
|
||||||
type LibraryManagedAttributes<C, P> = React.JSX.LibraryManagedAttributes<C, P>;
|
|
||||||
interface IntrinsicAttributes extends React.JSX.IntrinsicAttributes {}
|
|
||||||
interface IntrinsicClassAttributes<T> extends React.JSX.IntrinsicClassAttributes<T> {}
|
|
||||||
interface IntrinsicElements extends React.JSX.IntrinsicElements {}
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface JSXSource {
|
|
||||||
/**
|
|
||||||
* The source file where the element originates from.
|
|
||||||
*/
|
|
||||||
fileName?: string | undefined;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The line number where the element was created.
|
|
||||||
*/
|
|
||||||
lineNumber?: number | undefined;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The column number where the element was created.
|
|
||||||
*/
|
|
||||||
columnNumber?: number | undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Create a React element.
|
|
||||||
*
|
|
||||||
* You should not use this function directly. Use JSX and a transpiler instead.
|
|
||||||
*/
|
|
||||||
export function jsxDEV(
|
|
||||||
type: React.ElementType,
|
|
||||||
props: unknown,
|
|
||||||
key: React.Key | undefined,
|
|
||||||
isStatic: boolean,
|
|
||||||
source?: JSXSource,
|
|
||||||
self?: unknown,
|
|
||||||
): React.ReactElement;
|
|
||||||
35
node_modules/@types/react/ts5.0/jsx-runtime.d.ts
generated
vendored
35
node_modules/@types/react/ts5.0/jsx-runtime.d.ts
generated
vendored
@ -1,35 +0,0 @@
|
|||||||
import * as React from "./";
|
|
||||||
export { Fragment } from "./";
|
|
||||||
|
|
||||||
export namespace JSX {
|
|
||||||
interface Element extends React.JSX.Element {}
|
|
||||||
interface ElementClass extends React.JSX.ElementClass {}
|
|
||||||
interface ElementAttributesProperty extends React.JSX.ElementAttributesProperty {}
|
|
||||||
interface ElementChildrenAttribute extends React.JSX.ElementChildrenAttribute {}
|
|
||||||
type LibraryManagedAttributes<C, P> = React.JSX.LibraryManagedAttributes<C, P>;
|
|
||||||
interface IntrinsicAttributes extends React.JSX.IntrinsicAttributes {}
|
|
||||||
interface IntrinsicClassAttributes<T> extends React.JSX.IntrinsicClassAttributes<T> {}
|
|
||||||
interface IntrinsicElements extends React.JSX.IntrinsicElements {}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Create a React element.
|
|
||||||
*
|
|
||||||
* You should not use this function directly. Use JSX and a transpiler instead.
|
|
||||||
*/
|
|
||||||
export function jsx(
|
|
||||||
type: React.ElementType,
|
|
||||||
props: unknown,
|
|
||||||
key?: React.Key,
|
|
||||||
): React.ReactElement;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Create a React element.
|
|
||||||
*
|
|
||||||
* You should not use this function directly. Use JSX and a transpiler instead.
|
|
||||||
*/
|
|
||||||
export function jsxs(
|
|
||||||
type: React.ElementType,
|
|
||||||
props: unknown,
|
|
||||||
key?: React.Key,
|
|
||||||
): React.ReactElement;
|
|
||||||
19
node_modules/csstype/LICENSE
generated
vendored
19
node_modules/csstype/LICENSE
generated
vendored
@ -1,19 +0,0 @@
|
|||||||
Copyright (c) 2017-2018 Fredrik Nicol
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
|
||||||
copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
||||||
SOFTWARE.
|
|
||||||
291
node_modules/csstype/README.md
generated
vendored
291
node_modules/csstype/README.md
generated
vendored
@ -1,291 +0,0 @@
|
|||||||
# CSSType
|
|
||||||
|
|
||||||
[](https://www.npmjs.com/package/csstype)
|
|
||||||
|
|
||||||
TypeScript and Flow definitions for CSS, generated by [data from MDN](https://github.com/mdn/data). It provides autocompletion and type checking for CSS properties and values.
|
|
||||||
|
|
||||||
**TypeScript**
|
|
||||||
|
|
||||||
```ts
|
|
||||||
import type * as CSS from 'csstype';
|
|
||||||
|
|
||||||
const style: CSS.Properties = {
|
|
||||||
colour: 'white', // Type error on property
|
|
||||||
textAlign: 'middle', // Type error on value
|
|
||||||
};
|
|
||||||
```
|
|
||||||
|
|
||||||
**Flow**
|
|
||||||
|
|
||||||
```js
|
|
||||||
// @flow strict
|
|
||||||
import * as CSS from 'csstype';
|
|
||||||
|
|
||||||
const style: CSS.Properties<> = {
|
|
||||||
colour: 'white', // Type error on property
|
|
||||||
textAlign: 'middle', // Type error on value
|
|
||||||
};
|
|
||||||
```
|
|
||||||
|
|
||||||
_Further examples below will be in TypeScript!_
|
|
||||||
|
|
||||||
## Getting started
|
|
||||||
|
|
||||||
```sh
|
|
||||||
$ npm install csstype
|
|
||||||
```
|
|
||||||
|
|
||||||
## Table of content
|
|
||||||
|
|
||||||
- [Style types](#style-types)
|
|
||||||
- [At-rule types](#at-rule-types)
|
|
||||||
- [Pseudo types](#pseudo-types)
|
|
||||||
- [Generics](#generics)
|
|
||||||
- [Usage](#usage)
|
|
||||||
- [What should I do when I get type errors?](#what-should-i-do-when-i-get-type-errors)
|
|
||||||
- [Version 3.0](#version-30)
|
|
||||||
- [Contributing](#contributing)
|
|
||||||
|
|
||||||
## Style types
|
|
||||||
|
|
||||||
Properties are categorized in different uses and in several technical variations to provide typings that suits as many as possible.
|
|
||||||
|
|
||||||
| | Default | `Hyphen` | `Fallback` | `HyphenFallback` |
|
|
||||||
| -------------- | -------------------- | -------------------------- | ---------------------------- | ---------------------------------- |
|
|
||||||
| **All** | `Properties` | `PropertiesHyphen` | `PropertiesFallback` | `PropertiesHyphenFallback` |
|
|
||||||
| **`Standard`** | `StandardProperties` | `StandardPropertiesHyphen` | `StandardPropertiesFallback` | `StandardPropertiesHyphenFallback` |
|
|
||||||
| **`Vendor`** | `VendorProperties` | `VendorPropertiesHyphen` | `VendorPropertiesFallback` | `VendorPropertiesHyphenFallback` |
|
|
||||||
| **`Obsolete`** | `ObsoleteProperties` | `ObsoletePropertiesHyphen` | `ObsoletePropertiesFallback` | `ObsoletePropertiesHyphenFallback` |
|
|
||||||
| **`Svg`** | `SvgProperties` | `SvgPropertiesHyphen` | `SvgPropertiesFallback` | `SvgPropertiesHyphenFallback` |
|
|
||||||
|
|
||||||
Categories:
|
|
||||||
|
|
||||||
- **All** - Includes `Standard`, `Vendor`, `Obsolete` and `Svg`
|
|
||||||
- **`Standard`** - Current properties and extends subcategories `StandardLonghand` and `StandardShorthand` _(e.g. `StandardShorthandProperties`)_
|
|
||||||
- **`Vendor`** - Vendor prefixed properties and extends subcategories `VendorLonghand` and `VendorShorthand` _(e.g. `VendorShorthandProperties`)_
|
|
||||||
- **`Obsolete`** - Removed or deprecated properties
|
|
||||||
- **`Svg`** - SVG-specific properties
|
|
||||||
|
|
||||||
Variations:
|
|
||||||
|
|
||||||
- **Default** - JavaScript (camel) cased property names
|
|
||||||
- **`Hyphen`** - CSS (kebab) cased property names
|
|
||||||
- **`Fallback`** - Also accepts array of values e.g. `string | string[]`
|
|
||||||
|
|
||||||
## At-rule types
|
|
||||||
|
|
||||||
At-rule interfaces with descriptors.
|
|
||||||
|
|
||||||
**TypeScript**: These will be found in the `AtRule` namespace, e.g. `AtRule.Viewport`.
|
|
||||||
**Flow**: These will be prefixed with `AtRule$`, e.g. `AtRule$Viewport`.
|
|
||||||
|
|
||||||
| | Default | `Hyphen` | `Fallback` | `HyphenFallback` |
|
|
||||||
| -------------------- | -------------- | -------------------- | ---------------------- | ---------------------------- |
|
|
||||||
| **`@counter-style`** | `CounterStyle` | `CounterStyleHyphen` | `CounterStyleFallback` | `CounterStyleHyphenFallback` |
|
|
||||||
| **`@font-face`** | `FontFace` | `FontFaceHyphen` | `FontFaceFallback` | `FontFaceHyphenFallback` |
|
|
||||||
| **`@viewport`** | `Viewport` | `ViewportHyphen` | `ViewportFallback` | `ViewportHyphenFallback` |
|
|
||||||
|
|
||||||
## Pseudo types
|
|
||||||
|
|
||||||
String literals of pseudo classes and pseudo elements
|
|
||||||
|
|
||||||
- `Pseudos`
|
|
||||||
|
|
||||||
Extends:
|
|
||||||
- `AdvancedPseudos`
|
|
||||||
|
|
||||||
Function-like pseudos e.g. `:not(:first-child)`. The string literal contains the value excluding the parenthesis: `:not`. These are separated because they require an argument that results in infinite number of variations.
|
|
||||||
|
|
||||||
- `SimplePseudos`
|
|
||||||
|
|
||||||
Plain pseudos e.g. `:hover` that can only be **one** variation.
|
|
||||||
|
|
||||||
## Generics
|
|
||||||
|
|
||||||
All interfaces has two optional generic argument to define length and time: `CSS.Properties<TLength = string | 0, TTime = string>`
|
|
||||||
|
|
||||||
- **Length** is the first generic parameter and defaults to `string | 0` because `0` is the only [length where the unit identifier is optional](https://drafts.csswg.org/css-values-3/#lengths). You can specify this, e.g. `string | number`, for platforms and libraries that accepts any numeric value as length with a specific unit.
|
|
||||||
```tsx
|
|
||||||
const style: CSS.Properties<string | number> = {
|
|
||||||
width: 100,
|
|
||||||
};
|
|
||||||
```
|
|
||||||
- **Time** is the second generic argument and defaults to `string`. You can specify this, e.g. `string | number`, for platforms and libraries that accepts any numeric value as length with a specific unit.
|
|
||||||
```tsx
|
|
||||||
const style: CSS.Properties<string | number, number> = {
|
|
||||||
transitionDuration: 1000,
|
|
||||||
};
|
|
||||||
```
|
|
||||||
|
|
||||||
## Usage
|
|
||||||
|
|
||||||
```ts
|
|
||||||
import type * as CSS from 'csstype';
|
|
||||||
|
|
||||||
const style: CSS.Properties = {
|
|
||||||
width: '10px',
|
|
||||||
margin: '1em',
|
|
||||||
};
|
|
||||||
```
|
|
||||||
|
|
||||||
In some cases, like for CSS-in-JS libraries, an array of values is a way to provide fallback values in CSS. Using `CSS.PropertiesFallback` instead of `CSS.Properties` will add the possibility to use any property value as an array of values.
|
|
||||||
|
|
||||||
```ts
|
|
||||||
import type * as CSS from 'csstype';
|
|
||||||
|
|
||||||
const style: CSS.PropertiesFallback = {
|
|
||||||
display: ['-webkit-flex', 'flex'],
|
|
||||||
color: 'white',
|
|
||||||
};
|
|
||||||
```
|
|
||||||
|
|
||||||
There's even string literals for pseudo selectors and elements.
|
|
||||||
|
|
||||||
```ts
|
|
||||||
import type * as CSS from 'csstype';
|
|
||||||
|
|
||||||
const pseudos: { [P in CSS.SimplePseudos]?: CSS.Properties } = {
|
|
||||||
':hover': {
|
|
||||||
display: 'flex',
|
|
||||||
},
|
|
||||||
};
|
|
||||||
```
|
|
||||||
|
|
||||||
Hyphen cased (kebab cased) properties are provided in `CSS.PropertiesHyphen` and `CSS.PropertiesHyphenFallback`. It's not **not** added by default in `CSS.Properties`. To allow both of them, you can simply extend with `CSS.PropertiesHyphen` or/and `CSS.PropertiesHyphenFallback`.
|
|
||||||
|
|
||||||
```ts
|
|
||||||
import type * as CSS from 'csstype';
|
|
||||||
|
|
||||||
interface Style extends CSS.Properties, CSS.PropertiesHyphen {}
|
|
||||||
|
|
||||||
const style: Style = {
|
|
||||||
'flex-grow': 1,
|
|
||||||
'flex-shrink': 0,
|
|
||||||
'font-weight': 'normal',
|
|
||||||
backgroundColor: 'white',
|
|
||||||
};
|
|
||||||
```
|
|
||||||
|
|
||||||
Adding type checked CSS properties to a `HTMLElement`.
|
|
||||||
|
|
||||||
```ts
|
|
||||||
import type * as CSS from 'csstype';
|
|
||||||
|
|
||||||
const style: CSS.Properties = {
|
|
||||||
color: 'red',
|
|
||||||
margin: '1em',
|
|
||||||
};
|
|
||||||
|
|
||||||
let button = document.createElement('button');
|
|
||||||
|
|
||||||
Object.assign(button.style, style);
|
|
||||||
```
|
|
||||||
|
|
||||||
## What should I do when I get type errors?
|
|
||||||
|
|
||||||
The goal is to have as perfect types as possible and we're trying to do our best. But with CSS Custom Properties, the CSS specification changing frequently and vendors implementing their own specifications with new releases sometimes causes type errors even if it should work. Here's some steps you could take to get it fixed:
|
|
||||||
|
|
||||||
_If you're using CSS Custom Properties you can step directly to step 3._
|
|
||||||
|
|
||||||
1. **First of all, make sure you're doing it right.** A type error could also indicate that you're not :wink:
|
|
||||||
- Some CSS specs that some vendors has implemented could have been officially rejected or haven't yet received any official acceptance and are therefor not included
|
|
||||||
- If you're using TypeScript, [type widening](https://blog.mariusschulz.com/2017/02/04/TypeScript-2-1-literal-type-widening) could be the reason you get `Type 'string' is not assignable to...` errors
|
|
||||||
|
|
||||||
2. **Have a look in [issues](https://github.com/frenic/csstype/issues) to see if an issue already has been filed. If not, create a new one.** To help us out, please refer to any information you have found.
|
|
||||||
3. Fix the issue locally with **TypeScript** (Flow further down):
|
|
||||||
- The recommended way is to use **module augmentation**. Here's a few examples:
|
|
||||||
|
|
||||||
```ts
|
|
||||||
// My css.d.ts file
|
|
||||||
import type * as CSS from 'csstype';
|
|
||||||
|
|
||||||
declare module 'csstype' {
|
|
||||||
interface Properties {
|
|
||||||
// Add a missing property
|
|
||||||
WebkitRocketLauncher?: string;
|
|
||||||
|
|
||||||
// Add a CSS Custom Property
|
|
||||||
'--theme-color'?: 'black' | 'white';
|
|
||||||
|
|
||||||
// Allow namespaced CSS Custom Properties
|
|
||||||
[index: `--theme-${string}`]: any;
|
|
||||||
|
|
||||||
// Allow any CSS Custom Properties
|
|
||||||
[index: `--${string}`]: any;
|
|
||||||
|
|
||||||
// ...or allow any other property
|
|
||||||
[index: string]: any;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
- The alternative way is to use **type assertion**. Here's a few examples:
|
|
||||||
|
|
||||||
```ts
|
|
||||||
const style: CSS.Properties = {
|
|
||||||
// Add a missing property
|
|
||||||
['WebkitRocketLauncher' as any]: 'launching',
|
|
||||||
|
|
||||||
// Add a CSS Custom Property
|
|
||||||
['--theme-color' as any]: 'black',
|
|
||||||
};
|
|
||||||
```
|
|
||||||
|
|
||||||
Fix the issue locally with **Flow**:
|
|
||||||
- Use **type assertion**. Here's a few examples:
|
|
||||||
|
|
||||||
```js
|
|
||||||
const style: $Exact<CSS.Properties<*>> = {
|
|
||||||
// Add a missing property
|
|
||||||
[('WebkitRocketLauncher': any)]: 'launching',
|
|
||||||
|
|
||||||
// Add a CSS Custom Property
|
|
||||||
[('--theme-color': any)]: 'black',
|
|
||||||
};
|
|
||||||
```
|
|
||||||
|
|
||||||
## Version 3.2
|
|
||||||
|
|
||||||
- **No longer compatible with version 2**
|
|
||||||
Conflicts may occur when both version ^3.2.0 and ^2.0.0 are installed. Potential fix for Npm would be to force resolution in `package.json`:
|
|
||||||
```json
|
|
||||||
{
|
|
||||||
"overrides": {
|
|
||||||
"csstype": "^3.2.0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
## Version 3.1
|
|
||||||
|
|
||||||
- **Data types are exposed**
|
|
||||||
TypeScript: `DataType.Color`
|
|
||||||
Flow: `DataType$Color`
|
|
||||||
|
|
||||||
## Version 3.0
|
|
||||||
|
|
||||||
- **All property types are exposed with namespace**
|
|
||||||
TypeScript: `Property.AlignContent` (was `AlignContentProperty` before)
|
|
||||||
Flow: `Property$AlignContent`
|
|
||||||
- **All at-rules are exposed with namespace**
|
|
||||||
TypeScript: `AtRule.FontFace` (was `FontFace` before)
|
|
||||||
Flow: `AtRule$FontFace`
|
|
||||||
- **Data types are NOT exposed**
|
|
||||||
E.g. `Color` and `Box`. Because the generation of data types may suddenly be removed or renamed.
|
|
||||||
- **TypeScript hack for autocompletion**
|
|
||||||
Uses `(string & {})` for literal string unions and `(number & {})` for literal number unions ([related issue](https://github.com/microsoft/TypeScript/issues/29729)). Utilize `PropertyValue<T>` to unpack types from e.g. `(string & {})` to `string`.
|
|
||||||
- **New generic for time**
|
|
||||||
Read more on the ["Generics"](#generics) section.
|
|
||||||
- **Flow types improvements**
|
|
||||||
Flow Strict enabled and exact types are used.
|
|
||||||
|
|
||||||
## Contributing
|
|
||||||
|
|
||||||
**Never modify `index.d.ts` and `index.js.flow` directly. They are generated automatically and committed so that we can easily follow any change it results in.** Therefor it's important that you run `$ git config merge.ours.driver true` after you've forked and cloned. That setting prevents merge conflicts when doing rebase.
|
|
||||||
|
|
||||||
### Commands
|
|
||||||
|
|
||||||
- `npm run build` Generates typings and type checks them
|
|
||||||
- `npm run watch` Runs build on each save
|
|
||||||
- `npm run test` Runs the tests
|
|
||||||
- `npm run lazy` Type checks, lints and formats everything
|
|
||||||
22569
node_modules/csstype/index.d.ts
generated
vendored
22569
node_modules/csstype/index.d.ts
generated
vendored
File diff suppressed because it is too large
Load Diff
6863
node_modules/csstype/index.js.flow
generated
vendored
6863
node_modules/csstype/index.js.flow
generated
vendored
File diff suppressed because it is too large
Load Diff
70
node_modules/csstype/package.json
generated
vendored
70
node_modules/csstype/package.json
generated
vendored
@ -1,70 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "csstype",
|
|
||||||
"version": "3.2.3",
|
|
||||||
"main": "",
|
|
||||||
"types": "index.d.ts",
|
|
||||||
"description": "Strict TypeScript and Flow types for style based on MDN data",
|
|
||||||
"repository": "https://github.com/frenic/csstype",
|
|
||||||
"author": "Fredrik Nicol <fredrik.nicol@gmail.com>",
|
|
||||||
"license": "MIT",
|
|
||||||
"devDependencies": {
|
|
||||||
"@babel/core": "^7.28.5",
|
|
||||||
"@babel/preset-env": "^7.28.5",
|
|
||||||
"@babel/preset-typescript": "^7.28.5",
|
|
||||||
"@eslint/js": "^9.39.1",
|
|
||||||
"@mdn/browser-compat-data": "7.1.21",
|
|
||||||
"@tsconfig/node24": "^24.0.2",
|
|
||||||
"@types/chokidar": "^2.1.7",
|
|
||||||
"@types/css-tree": "^2.3.11",
|
|
||||||
"@types/jest": "^30.0.0",
|
|
||||||
"@types/jsdom": "^27.0.0",
|
|
||||||
"@types/node": "^24.10.1",
|
|
||||||
"@types/prettier": "^3.0.0",
|
|
||||||
"@types/turndown": "^5.0.6",
|
|
||||||
"babel-jest": "^30.2.0",
|
|
||||||
"chalk": "^5.6.2",
|
|
||||||
"chokidar": "^4.0.3",
|
|
||||||
"css-tree": "^3.1.0",
|
|
||||||
"eslint-config-prettier": "^10.1.8",
|
|
||||||
"eslint-plugin-prettier": "^5.5.4",
|
|
||||||
"flow-bin": "^0.291.0",
|
|
||||||
"jest": "^30.2.0",
|
|
||||||
"jsdom": "^27.2.0",
|
|
||||||
"mdn-data": "2.25.0",
|
|
||||||
"prettier": "^3.6.2",
|
|
||||||
"release-it": "^19.0.6",
|
|
||||||
"tsx": "^4.20.6",
|
|
||||||
"turndown": "^7.2.2",
|
|
||||||
"typescript": "~5.9.3",
|
|
||||||
"typescript-eslint": "^8.46.4"
|
|
||||||
},
|
|
||||||
"overrides": {
|
|
||||||
"js-yaml": ">=4.1.1"
|
|
||||||
},
|
|
||||||
"scripts": {
|
|
||||||
"prepublish": "npm install --no-save --prefix __tests__ && npm install --no-save --prefix __tests__/__fixtures__",
|
|
||||||
"release": "release-it",
|
|
||||||
"update": "tsx update.ts",
|
|
||||||
"build": "tsx --inspect build.ts --start",
|
|
||||||
"watch": "tsx build.ts --watch",
|
|
||||||
"lint": "eslint . --ext .js,.jsx,.ts,.tsx --fix",
|
|
||||||
"pretty": "prettier --write build.ts **/*.{ts,js,json,md}",
|
|
||||||
"lazy": "tsc && npm run lint",
|
|
||||||
"test": "jest --runInBand",
|
|
||||||
"test:src": "jest src.*.ts",
|
|
||||||
"test:dist": "jest dist.*.ts --runInBand"
|
|
||||||
},
|
|
||||||
"files": [
|
|
||||||
"index.d.ts",
|
|
||||||
"index.js.flow"
|
|
||||||
],
|
|
||||||
"keywords": [
|
|
||||||
"css",
|
|
||||||
"style",
|
|
||||||
"typescript",
|
|
||||||
"flow",
|
|
||||||
"typings",
|
|
||||||
"types",
|
|
||||||
"definitions"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user