alicezetion 1.8.7 → 1.8.9
Sign up to get free protection for your applications and to get access to all the features.
- package/.cache/replit/modules/{nodejs-20:v25-20240206-fdbd396.res → nodejs-20:v28-20240213-3f08513.res} +1 -1
- package/.cache/replit/modules/replit:v5-20240209-9e3a339.res +1 -0
- package/.cache/typescript/5.3/node_modules/.package-lock.json +32 -3
- package/.cache/typescript/5.3/node_modules/@types/prop-types/LICENSE +21 -0
- package/.cache/typescript/5.3/node_modules/@types/prop-types/README.md +15 -0
- package/.cache/typescript/5.3/node_modules/@types/prop-types/index.d.ts +98 -0
- package/.cache/typescript/5.3/node_modules/@types/prop-types/package.json +35 -0
- package/.cache/typescript/5.3/node_modules/@types/react/LICENSE +21 -0
- package/.cache/typescript/5.3/node_modules/@types/react/README.md +15 -0
- package/.cache/typescript/5.3/node_modules/@types/react/canary.d.ts +112 -0
- package/.cache/typescript/5.3/node_modules/@types/react/experimental.d.ts +126 -0
- package/.cache/typescript/5.3/node_modules/@types/react/global.d.ts +158 -0
- package/.cache/typescript/5.3/node_modules/@types/react/index.d.ts +4351 -0
- package/.cache/typescript/5.3/node_modules/@types/react/jsx-dev-runtime.d.ts +13 -0
- package/.cache/typescript/5.3/node_modules/@types/react/jsx-runtime.d.ts +13 -0
- package/.cache/typescript/5.3/node_modules/@types/react/package.json +206 -0
- package/.cache/typescript/5.3/node_modules/@types/react/ts5.0/canary.d.ts +112 -0
- package/.cache/typescript/5.3/node_modules/@types/react/ts5.0/experimental.d.ts +126 -0
- package/.cache/typescript/5.3/node_modules/@types/react/ts5.0/global.d.ts +158 -0
- package/.cache/typescript/5.3/node_modules/@types/react/ts5.0/index.d.ts +4333 -0
- package/.cache/typescript/5.3/node_modules/@types/react/ts5.0/jsx-dev-runtime.d.ts +12 -0
- package/.cache/typescript/5.3/node_modules/@types/react/ts5.0/jsx-runtime.d.ts +12 -0
- package/.cache/typescript/5.3/node_modules/@types/scheduler/LICENSE +21 -0
- package/.cache/typescript/5.3/node_modules/@types/scheduler/README.md +15 -0
- package/.cache/typescript/5.3/node_modules/@types/scheduler/index.d.ts +30 -0
- package/.cache/typescript/5.3/node_modules/@types/scheduler/package.json +30 -0
- package/.cache/typescript/5.3/node_modules/@types/scheduler/tracing.d.ts +127 -0
- package/.cache/typescript/5.3/node_modules/csstype/LICENSE +19 -0
- package/.cache/typescript/5.3/node_modules/csstype/README.md +277 -0
- package/.cache/typescript/5.3/node_modules/csstype/index.d.ts +21297 -0
- package/.cache/typescript/5.3/node_modules/csstype/index.js.flow +6612 -0
- package/.cache/typescript/5.3/node_modules/csstype/package.json +66 -0
- package/.cache/typescript/5.3/node_modules/types-registry/index.json +1 -1
- package/.cache/typescript/5.3/node_modules/types-registry/package.json +2 -2
- package/.cache/typescript/5.3/package-lock.json +34 -4
- package/.cache/typescript/5.3/package.json +1 -1
- package/leiamnash/listenMqtt.js +823 -814
- package/package.json +1 -1
- package/.cache/replit/modules/replit:v4-20240206-fdbd396.res +0 -1
@@ -0,0 +1,13 @@
|
|
1
|
+
import * as React from "./";
|
2
|
+
|
3
|
+
export namespace JSX {
|
4
|
+
type ElementType = React.JSX.ElementType;
|
5
|
+
interface Element extends React.JSX.Element {}
|
6
|
+
interface ElementClass extends React.JSX.ElementClass {}
|
7
|
+
interface ElementAttributesProperty extends React.JSX.ElementAttributesProperty {}
|
8
|
+
interface ElementChildrenAttribute extends React.JSX.ElementChildrenAttribute {}
|
9
|
+
type LibraryManagedAttributes<C, P> = React.JSX.LibraryManagedAttributes<C, P>;
|
10
|
+
interface IntrinsicAttributes extends React.JSX.IntrinsicAttributes {}
|
11
|
+
interface IntrinsicClassAttributes<T> extends React.JSX.IntrinsicClassAttributes<T> {}
|
12
|
+
interface IntrinsicElements extends React.JSX.IntrinsicElements {}
|
13
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import * as React from "./";
|
2
|
+
|
3
|
+
export namespace JSX {
|
4
|
+
type ElementType = React.JSX.ElementType;
|
5
|
+
interface Element extends React.JSX.Element {}
|
6
|
+
interface ElementClass extends React.JSX.ElementClass {}
|
7
|
+
interface ElementAttributesProperty extends React.JSX.ElementAttributesProperty {}
|
8
|
+
interface ElementChildrenAttribute extends React.JSX.ElementChildrenAttribute {}
|
9
|
+
type LibraryManagedAttributes<C, P> = React.JSX.LibraryManagedAttributes<C, P>;
|
10
|
+
interface IntrinsicAttributes extends React.JSX.IntrinsicAttributes {}
|
11
|
+
interface IntrinsicClassAttributes<T> extends React.JSX.IntrinsicClassAttributes<T> {}
|
12
|
+
interface IntrinsicElements extends React.JSX.IntrinsicElements {}
|
13
|
+
}
|
@@ -0,0 +1,206 @@
|
|
1
|
+
{
|
2
|
+
"name": "@types/react",
|
3
|
+
"version": "18.2.55",
|
4
|
+
"description": "TypeScript definitions for react",
|
5
|
+
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
|
6
|
+
"license": "MIT",
|
7
|
+
"contributors": [
|
8
|
+
{
|
9
|
+
"name": "Asana",
|
10
|
+
"url": "https://asana.com"
|
11
|
+
},
|
12
|
+
{
|
13
|
+
"name": "AssureSign",
|
14
|
+
"url": "http://www.assuresign.com"
|
15
|
+
},
|
16
|
+
{
|
17
|
+
"name": "Microsoft",
|
18
|
+
"url": "https://microsoft.com"
|
19
|
+
},
|
20
|
+
{
|
21
|
+
"name": "John Reilly",
|
22
|
+
"githubUsername": "johnnyreilly",
|
23
|
+
"url": "https://github.com/johnnyreilly"
|
24
|
+
},
|
25
|
+
{
|
26
|
+
"name": "Benoit Benezech",
|
27
|
+
"githubUsername": "bbenezech",
|
28
|
+
"url": "https://github.com/bbenezech"
|
29
|
+
},
|
30
|
+
{
|
31
|
+
"name": "Patricio Zavolinsky",
|
32
|
+
"githubUsername": "pzavolinsky",
|
33
|
+
"url": "https://github.com/pzavolinsky"
|
34
|
+
},
|
35
|
+
{
|
36
|
+
"name": "Eric Anderson",
|
37
|
+
"githubUsername": "ericanderson",
|
38
|
+
"url": "https://github.com/ericanderson"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"name": "Dovydas Navickas",
|
42
|
+
"githubUsername": "DovydasNavickas",
|
43
|
+
"url": "https://github.com/DovydasNavickas"
|
44
|
+
},
|
45
|
+
{
|
46
|
+
"name": "Josh Rutherford",
|
47
|
+
"githubUsername": "theruther4d",
|
48
|
+
"url": "https://github.com/theruther4d"
|
49
|
+
},
|
50
|
+
{
|
51
|
+
"name": "Guilherme Hübner",
|
52
|
+
"githubUsername": "guilhermehubner",
|
53
|
+
"url": "https://github.com/guilhermehubner"
|
54
|
+
},
|
55
|
+
{
|
56
|
+
"name": "Ferdy Budhidharma",
|
57
|
+
"githubUsername": "ferdaber",
|
58
|
+
"url": "https://github.com/ferdaber"
|
59
|
+
},
|
60
|
+
{
|
61
|
+
"name": "Johann Rakotoharisoa",
|
62
|
+
"githubUsername": "jrakotoharisoa",
|
63
|
+
"url": "https://github.com/jrakotoharisoa"
|
64
|
+
},
|
65
|
+
{
|
66
|
+
"name": "Olivier Pascal",
|
67
|
+
"githubUsername": "pascaloliv",
|
68
|
+
"url": "https://github.com/pascaloliv"
|
69
|
+
},
|
70
|
+
{
|
71
|
+
"name": "Martin Hochel",
|
72
|
+
"githubUsername": "hotell",
|
73
|
+
"url": "https://github.com/hotell"
|
74
|
+
},
|
75
|
+
{
|
76
|
+
"name": "Frank Li",
|
77
|
+
"githubUsername": "franklixuefei",
|
78
|
+
"url": "https://github.com/franklixuefei"
|
79
|
+
},
|
80
|
+
{
|
81
|
+
"name": "Jessica Franco",
|
82
|
+
"githubUsername": "Jessidhia",
|
83
|
+
"url": "https://github.com/Jessidhia"
|
84
|
+
},
|
85
|
+
{
|
86
|
+
"name": "Saransh Kataria",
|
87
|
+
"githubUsername": "saranshkataria",
|
88
|
+
"url": "https://github.com/saranshkataria"
|
89
|
+
},
|
90
|
+
{
|
91
|
+
"name": "Kanitkorn Sujautra",
|
92
|
+
"githubUsername": "lukyth",
|
93
|
+
"url": "https://github.com/lukyth"
|
94
|
+
},
|
95
|
+
{
|
96
|
+
"name": "Sebastian Silbermann",
|
97
|
+
"githubUsername": "eps1lon",
|
98
|
+
"url": "https://github.com/eps1lon"
|
99
|
+
},
|
100
|
+
{
|
101
|
+
"name": "Kyle Scully",
|
102
|
+
"githubUsername": "zieka",
|
103
|
+
"url": "https://github.com/zieka"
|
104
|
+
},
|
105
|
+
{
|
106
|
+
"name": "Cong Zhang",
|
107
|
+
"githubUsername": "dancerphil",
|
108
|
+
"url": "https://github.com/dancerphil"
|
109
|
+
},
|
110
|
+
{
|
111
|
+
"name": "Dimitri Mitropoulos",
|
112
|
+
"githubUsername": "dimitropoulos",
|
113
|
+
"url": "https://github.com/dimitropoulos"
|
114
|
+
},
|
115
|
+
{
|
116
|
+
"name": "JongChan Choi",
|
117
|
+
"githubUsername": "disjukr",
|
118
|
+
"url": "https://github.com/disjukr"
|
119
|
+
},
|
120
|
+
{
|
121
|
+
"name": "Victor Magalhães",
|
122
|
+
"githubUsername": "vhfmag",
|
123
|
+
"url": "https://github.com/vhfmag"
|
124
|
+
},
|
125
|
+
{
|
126
|
+
"name": "Dale Tan",
|
127
|
+
"githubUsername": "hellatan",
|
128
|
+
"url": "https://github.com/hellatan"
|
129
|
+
},
|
130
|
+
{
|
131
|
+
"name": "Priyanshu Rav",
|
132
|
+
"githubUsername": "priyanshurav",
|
133
|
+
"url": "https://github.com/priyanshurav"
|
134
|
+
},
|
135
|
+
{
|
136
|
+
"name": "Dmitry Semigradsky",
|
137
|
+
"githubUsername": "Semigradsky",
|
138
|
+
"url": "https://github.com/Semigradsky"
|
139
|
+
}
|
140
|
+
],
|
141
|
+
"main": "",
|
142
|
+
"types": "index.d.ts",
|
143
|
+
"typesVersions": {
|
144
|
+
"<=5.0": {
|
145
|
+
"*": [
|
146
|
+
"ts5.0/*"
|
147
|
+
]
|
148
|
+
}
|
149
|
+
},
|
150
|
+
"exports": {
|
151
|
+
".": {
|
152
|
+
"types@<=5.0": {
|
153
|
+
"default": "./ts5.0/index.d.ts"
|
154
|
+
},
|
155
|
+
"types": {
|
156
|
+
"default": "./index.d.ts"
|
157
|
+
}
|
158
|
+
},
|
159
|
+
"./canary": {
|
160
|
+
"types@<=5.0": {
|
161
|
+
"default": "./ts5.0/canary.d.ts"
|
162
|
+
},
|
163
|
+
"types": {
|
164
|
+
"default": "./canary.d.ts"
|
165
|
+
}
|
166
|
+
},
|
167
|
+
"./experimental": {
|
168
|
+
"types@<=5.0": {
|
169
|
+
"default": "./ts5.0/experimental.d.ts"
|
170
|
+
},
|
171
|
+
"types": {
|
172
|
+
"default": "./experimental.d.ts"
|
173
|
+
}
|
174
|
+
},
|
175
|
+
"./jsx-runtime": {
|
176
|
+
"types@<=5.0": {
|
177
|
+
"default": "./ts5.0/jsx-runtime.d.ts"
|
178
|
+
},
|
179
|
+
"types": {
|
180
|
+
"default": "./jsx-runtime.d.ts"
|
181
|
+
}
|
182
|
+
},
|
183
|
+
"./jsx-dev-runtime": {
|
184
|
+
"types@<=5.0": {
|
185
|
+
"default": "./ts5.0/jsx-dev-runtime.d.ts"
|
186
|
+
},
|
187
|
+
"types": {
|
188
|
+
"default": "./jsx-dev-runtime.d.ts"
|
189
|
+
}
|
190
|
+
},
|
191
|
+
"./package.json": "./package.json"
|
192
|
+
},
|
193
|
+
"repository": {
|
194
|
+
"type": "git",
|
195
|
+
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
196
|
+
"directory": "types/react"
|
197
|
+
},
|
198
|
+
"scripts": {},
|
199
|
+
"dependencies": {
|
200
|
+
"@types/prop-types": "*",
|
201
|
+
"@types/scheduler": "*",
|
202
|
+
"csstype": "^3.0.2"
|
203
|
+
},
|
204
|
+
"typesPublisherContentHash": "41cc4f9203a010eff4158b37583d535e6867e99253ce9e203f10ddc95a2cdb36",
|
205
|
+
"typeScriptVersion": "4.6"
|
206
|
+
}
|
@@ -0,0 +1,112 @@
|
|
1
|
+
/**
|
2
|
+
* These are types for things that are present in the React `canary` release channel.
|
3
|
+
*
|
4
|
+
* To load the types declared here in an actual project, there are three ways. The easiest one,
|
5
|
+
* if your `tsconfig.json` already has a `"types"` array in the `"compilerOptions"` section,
|
6
|
+
* is to add `"react/canary"` to the `"types"` array.
|
7
|
+
*
|
8
|
+
* Alternatively, a specific import syntax can to be used from a typescript file.
|
9
|
+
* This module does not exist in reality, which is why the {} is important:
|
10
|
+
*
|
11
|
+
* ```ts
|
12
|
+
* import {} from 'react/canary'
|
13
|
+
* ```
|
14
|
+
*
|
15
|
+
* It is also possible to include it through a triple-slash reference:
|
16
|
+
*
|
17
|
+
* ```ts
|
18
|
+
* /// <reference types="react/canary" />
|
19
|
+
* ```
|
20
|
+
*
|
21
|
+
* Either the import or the reference only needs to appear once, anywhere in the project.
|
22
|
+
*/
|
23
|
+
|
24
|
+
// See https://github.com/facebook/react/blob/main/packages/react/src/React.js to see how the exports are declared,
|
25
|
+
|
26
|
+
import React = require(".");
|
27
|
+
|
28
|
+
export {};
|
29
|
+
|
30
|
+
declare const UNDEFINED_VOID_ONLY: unique symbol;
|
31
|
+
type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never };
|
32
|
+
|
33
|
+
declare module "." {
|
34
|
+
interface ThenableImpl<T> {
|
35
|
+
then(onFulfill: (value: T) => unknown, onReject: (error: unknown) => unknown): void | PromiseLike<unknown>;
|
36
|
+
}
|
37
|
+
interface UntrackedThenable<T> extends ThenableImpl<T> {
|
38
|
+
status?: void;
|
39
|
+
}
|
40
|
+
|
41
|
+
export interface PendingThenable<T> extends ThenableImpl<T> {
|
42
|
+
status: "pending";
|
43
|
+
}
|
44
|
+
|
45
|
+
export interface FulfilledThenable<T> extends ThenableImpl<T> {
|
46
|
+
status: "fulfilled";
|
47
|
+
value: T;
|
48
|
+
}
|
49
|
+
|
50
|
+
export interface RejectedThenable<T> extends ThenableImpl<T> {
|
51
|
+
status: "rejected";
|
52
|
+
reason: unknown;
|
53
|
+
}
|
54
|
+
|
55
|
+
export type Thenable<T> = UntrackedThenable<T> | PendingThenable<T> | FulfilledThenable<T> | RejectedThenable<T>;
|
56
|
+
|
57
|
+
export type Usable<T> = Thenable<T> | Context<T>;
|
58
|
+
|
59
|
+
export function use<T>(usable: Usable<T>): T;
|
60
|
+
|
61
|
+
interface ServerContextJSONArray extends ReadonlyArray<ServerContextJSONValue> {}
|
62
|
+
export type ServerContextJSONValue =
|
63
|
+
| string
|
64
|
+
| boolean
|
65
|
+
| number
|
66
|
+
| null
|
67
|
+
| ServerContextJSONArray
|
68
|
+
| { [key: string]: ServerContextJSONValue };
|
69
|
+
export interface ServerContext<T extends ServerContextJSONValue> {
|
70
|
+
Provider: Provider<T>;
|
71
|
+
}
|
72
|
+
/**
|
73
|
+
* Accepts a context object (the value returned from `React.createContext` or `React.createServerContext`) and returns the current
|
74
|
+
* context value, as given by the nearest context provider for the given context.
|
75
|
+
*
|
76
|
+
* @version 16.8.0
|
77
|
+
* @see https://react.dev/reference/react/useContext
|
78
|
+
*/
|
79
|
+
function useContext<T extends ServerContextJSONValue>(context: ServerContext<T>): T;
|
80
|
+
export function createServerContext<T extends ServerContextJSONValue>(
|
81
|
+
globalName: string,
|
82
|
+
defaultValue: T,
|
83
|
+
): ServerContext<T>;
|
84
|
+
|
85
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
86
|
+
export function cache<CachedFunction extends Function>(fn: CachedFunction): CachedFunction;
|
87
|
+
|
88
|
+
export function unstable_useCacheRefresh(): () => void;
|
89
|
+
|
90
|
+
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS {
|
91
|
+
functions: (formData: FormData) => void;
|
92
|
+
}
|
93
|
+
|
94
|
+
export interface TransitionStartFunction {
|
95
|
+
/**
|
96
|
+
* Marks all state updates inside the async function as transitions
|
97
|
+
*
|
98
|
+
* @see {https://react.dev/reference/react/ts5.0/useTransition#starttransition}
|
99
|
+
*
|
100
|
+
* @param callback
|
101
|
+
*/
|
102
|
+
(callback: () => Promise<VoidOrUndefinedOnly>): void;
|
103
|
+
}
|
104
|
+
|
105
|
+
function useOptimistic<State>(
|
106
|
+
passthrough: State,
|
107
|
+
): [State, (action: State | ((pendingState: State) => State)) => void];
|
108
|
+
function useOptimistic<State, Action>(
|
109
|
+
passthrough: State,
|
110
|
+
reducer: (state: State, action: Action) => State,
|
111
|
+
): [State, (action: Action) => void];
|
112
|
+
}
|
@@ -0,0 +1,126 @@
|
|
1
|
+
/**
|
2
|
+
* These are types for things that are present in the `experimental` builds of React but not yet
|
3
|
+
* on a stable build.
|
4
|
+
*
|
5
|
+
* Once they are promoted to stable they can just be moved to the main index file.
|
6
|
+
*
|
7
|
+
* To load the types declared here in an actual project, there are three ways. The easiest one,
|
8
|
+
* if your `tsconfig.json` already has a `"types"` array in the `"compilerOptions"` section,
|
9
|
+
* is to add `"react/experimental"` to the `"types"` array.
|
10
|
+
*
|
11
|
+
* Alternatively, a specific import syntax can to be used from a typescript file.
|
12
|
+
* This module does not exist in reality, which is why the {} is important:
|
13
|
+
*
|
14
|
+
* ```ts
|
15
|
+
* import {} from 'react/experimental'
|
16
|
+
* ```
|
17
|
+
*
|
18
|
+
* It is also possible to include it through a triple-slash reference:
|
19
|
+
*
|
20
|
+
* ```ts
|
21
|
+
* /// <reference types="react/experimental" />
|
22
|
+
* ```
|
23
|
+
*
|
24
|
+
* Either the import or the reference only needs to appear once, anywhere in the project.
|
25
|
+
*/
|
26
|
+
|
27
|
+
// See https://github.com/facebook/react/blob/master/packages/react/src/React.js to see how the exports are declared,
|
28
|
+
// and https://github.com/facebook/react/blob/master/packages/shared/ReactFeatureFlags.js to verify which APIs are
|
29
|
+
// flagged experimental or not. Experimental APIs will be tagged with `__EXPERIMENTAL__`.
|
30
|
+
//
|
31
|
+
// For the inputs of types exported as simply a fiber tag, the `beginWork` function of ReactFiberBeginWork.js
|
32
|
+
// is a good place to start looking for details; it generally calls prop validation functions or delegates
|
33
|
+
// all tasks done as part of the render phase (the concurrent part of the React update cycle).
|
34
|
+
//
|
35
|
+
// Suspense-related handling can be found in ReactFiberThrow.js.
|
36
|
+
|
37
|
+
import React = require("./canary");
|
38
|
+
|
39
|
+
export {};
|
40
|
+
|
41
|
+
declare const UNDEFINED_VOID_ONLY: unique symbol;
|
42
|
+
type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never };
|
43
|
+
|
44
|
+
declare module "." {
|
45
|
+
// Need an interface to not cause ReactNode to be a self-referential type.
|
46
|
+
interface PromiseLikeOfReactNode extends PromiseLike<ReactNode> {}
|
47
|
+
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_REACT_NODES {
|
48
|
+
promises: PromiseLikeOfReactNode;
|
49
|
+
}
|
50
|
+
|
51
|
+
export interface SuspenseProps {
|
52
|
+
/**
|
53
|
+
* The presence of this prop indicates that the content is computationally expensive to render.
|
54
|
+
* In other words, the tree is CPU bound and not I/O bound (e.g. due to fetching data).
|
55
|
+
* @see {@link https://github.com/facebook/react/pull/19936}
|
56
|
+
*/
|
57
|
+
unstable_expectedLoadTime?: number | undefined;
|
58
|
+
}
|
59
|
+
|
60
|
+
export type SuspenseListRevealOrder = "forwards" | "backwards" | "together";
|
61
|
+
export type SuspenseListTailMode = "collapsed" | "hidden";
|
62
|
+
|
63
|
+
export interface SuspenseListCommonProps {
|
64
|
+
/**
|
65
|
+
* Note that SuspenseList require more than one child;
|
66
|
+
* it is a runtime warning to provide only a single child.
|
67
|
+
*
|
68
|
+
* It does, however, allow those children to be wrapped inside a single
|
69
|
+
* level of `<React.Fragment>`.
|
70
|
+
*/
|
71
|
+
children: ReactElement | Iterable<ReactElement>;
|
72
|
+
}
|
73
|
+
|
74
|
+
interface DirectionalSuspenseListProps extends SuspenseListCommonProps {
|
75
|
+
/**
|
76
|
+
* Defines the order in which the `SuspenseList` children should be revealed.
|
77
|
+
*/
|
78
|
+
revealOrder: "forwards" | "backwards";
|
79
|
+
/**
|
80
|
+
* Dictates how unloaded items in a SuspenseList is shown.
|
81
|
+
*
|
82
|
+
* - By default, `SuspenseList` will show all fallbacks in the list.
|
83
|
+
* - `collapsed` shows only the next fallback in the list.
|
84
|
+
* - `hidden` doesn’t show any unloaded items.
|
85
|
+
*/
|
86
|
+
tail?: SuspenseListTailMode | undefined;
|
87
|
+
}
|
88
|
+
|
89
|
+
interface NonDirectionalSuspenseListProps extends SuspenseListCommonProps {
|
90
|
+
/**
|
91
|
+
* Defines the order in which the `SuspenseList` children should be revealed.
|
92
|
+
*/
|
93
|
+
revealOrder?: Exclude<SuspenseListRevealOrder, DirectionalSuspenseListProps["revealOrder"]> | undefined;
|
94
|
+
/**
|
95
|
+
* The tail property is invalid when not using the `forwards` or `backwards` reveal orders.
|
96
|
+
*/
|
97
|
+
tail?: never | undefined;
|
98
|
+
}
|
99
|
+
|
100
|
+
export type SuspenseListProps = DirectionalSuspenseListProps | NonDirectionalSuspenseListProps;
|
101
|
+
|
102
|
+
/**
|
103
|
+
* `SuspenseList` helps coordinate many components that can suspend by orchestrating the order
|
104
|
+
* in which these components are revealed to the user.
|
105
|
+
*
|
106
|
+
* When multiple components need to fetch data, this data may arrive in an unpredictable order.
|
107
|
+
* However, if you wrap these items in a `SuspenseList`, React will not show an item in the list
|
108
|
+
* until previous items have been displayed (this behavior is adjustable).
|
109
|
+
*
|
110
|
+
* @see https://reactjs.org/docs/concurrent-mode-reference.html#suspenselist
|
111
|
+
* @see https://reactjs.org/docs/concurrent-mode-patterns.html#suspenselist
|
112
|
+
*/
|
113
|
+
export const unstable_SuspenseList: ExoticComponent<SuspenseListProps>;
|
114
|
+
|
115
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
116
|
+
export function experimental_useEffectEvent<T extends Function>(event: T): T;
|
117
|
+
|
118
|
+
type Reference = object;
|
119
|
+
type TaintableUniqueValue = string | bigint | ArrayBufferView;
|
120
|
+
function experimental_taintUniqueValue(
|
121
|
+
message: string | undefined,
|
122
|
+
lifetime: Reference,
|
123
|
+
value: TaintableUniqueValue,
|
124
|
+
): void;
|
125
|
+
function experimental_taintObjectReference(message: string | undefined, object: Reference): void;
|
126
|
+
}
|
@@ -0,0 +1,158 @@
|
|
1
|
+
/*
|
2
|
+
React projects that don't include the DOM library need these interfaces to compile.
|
3
|
+
React Native applications use React, but there is no DOM available. The JavaScript runtime
|
4
|
+
is ES6/ES2015 only. These definitions allow such projects to compile with only `--lib ES6`.
|
5
|
+
|
6
|
+
Warning: all of these interfaces are empty. If you want type definitions for various properties
|
7
|
+
(such as HTMLInputElement.prototype.value), you need to add `--lib DOM` (via command line or tsconfig.json).
|
8
|
+
*/
|
9
|
+
|
10
|
+
interface Event {}
|
11
|
+
interface AnimationEvent extends Event {}
|
12
|
+
interface ClipboardEvent extends Event {}
|
13
|
+
interface CompositionEvent extends Event {}
|
14
|
+
interface DragEvent extends Event {}
|
15
|
+
interface FocusEvent extends Event {}
|
16
|
+
interface KeyboardEvent extends Event {}
|
17
|
+
interface MouseEvent extends Event {}
|
18
|
+
interface TouchEvent extends Event {}
|
19
|
+
interface PointerEvent extends Event {}
|
20
|
+
interface TransitionEvent extends Event {}
|
21
|
+
interface UIEvent extends Event {}
|
22
|
+
interface WheelEvent extends Event {}
|
23
|
+
|
24
|
+
interface EventTarget {}
|
25
|
+
interface Document {}
|
26
|
+
interface DataTransfer {}
|
27
|
+
interface StyleMedia {}
|
28
|
+
|
29
|
+
interface Element {}
|
30
|
+
interface DocumentFragment {}
|
31
|
+
|
32
|
+
interface HTMLElement extends Element {}
|
33
|
+
interface HTMLAnchorElement extends HTMLElement {}
|
34
|
+
interface HTMLAreaElement extends HTMLElement {}
|
35
|
+
interface HTMLAudioElement extends HTMLElement {}
|
36
|
+
interface HTMLBaseElement extends HTMLElement {}
|
37
|
+
interface HTMLBodyElement extends HTMLElement {}
|
38
|
+
interface HTMLBRElement extends HTMLElement {}
|
39
|
+
interface HTMLButtonElement extends HTMLElement {}
|
40
|
+
interface HTMLCanvasElement extends HTMLElement {}
|
41
|
+
interface HTMLDataElement extends HTMLElement {}
|
42
|
+
interface HTMLDataListElement extends HTMLElement {}
|
43
|
+
interface HTMLDetailsElement extends HTMLElement {}
|
44
|
+
interface HTMLDialogElement extends HTMLElement {}
|
45
|
+
interface HTMLDivElement extends HTMLElement {}
|
46
|
+
interface HTMLDListElement extends HTMLElement {}
|
47
|
+
interface HTMLEmbedElement extends HTMLElement {}
|
48
|
+
interface HTMLFieldSetElement extends HTMLElement {}
|
49
|
+
interface HTMLFormElement extends HTMLElement {}
|
50
|
+
interface HTMLHeadingElement extends HTMLElement {}
|
51
|
+
interface HTMLHeadElement extends HTMLElement {}
|
52
|
+
interface HTMLHRElement extends HTMLElement {}
|
53
|
+
interface HTMLHtmlElement extends HTMLElement {}
|
54
|
+
interface HTMLIFrameElement extends HTMLElement {}
|
55
|
+
interface HTMLImageElement extends HTMLElement {}
|
56
|
+
interface HTMLInputElement extends HTMLElement {}
|
57
|
+
interface HTMLModElement extends HTMLElement {}
|
58
|
+
interface HTMLLabelElement extends HTMLElement {}
|
59
|
+
interface HTMLLegendElement extends HTMLElement {}
|
60
|
+
interface HTMLLIElement extends HTMLElement {}
|
61
|
+
interface HTMLLinkElement extends HTMLElement {}
|
62
|
+
interface HTMLMapElement extends HTMLElement {}
|
63
|
+
interface HTMLMetaElement extends HTMLElement {}
|
64
|
+
interface HTMLMeterElement extends HTMLElement {}
|
65
|
+
interface HTMLObjectElement extends HTMLElement {}
|
66
|
+
interface HTMLOListElement extends HTMLElement {}
|
67
|
+
interface HTMLOptGroupElement extends HTMLElement {}
|
68
|
+
interface HTMLOptionElement extends HTMLElement {}
|
69
|
+
interface HTMLOutputElement extends HTMLElement {}
|
70
|
+
interface HTMLParagraphElement extends HTMLElement {}
|
71
|
+
interface HTMLParamElement extends HTMLElement {}
|
72
|
+
interface HTMLPreElement extends HTMLElement {}
|
73
|
+
interface HTMLProgressElement extends HTMLElement {}
|
74
|
+
interface HTMLQuoteElement extends HTMLElement {}
|
75
|
+
interface HTMLSlotElement extends HTMLElement {}
|
76
|
+
interface HTMLScriptElement extends HTMLElement {}
|
77
|
+
interface HTMLSelectElement extends HTMLElement {}
|
78
|
+
interface HTMLSourceElement extends HTMLElement {}
|
79
|
+
interface HTMLSpanElement extends HTMLElement {}
|
80
|
+
interface HTMLStyleElement extends HTMLElement {}
|
81
|
+
interface HTMLTableElement extends HTMLElement {}
|
82
|
+
interface HTMLTableColElement extends HTMLElement {}
|
83
|
+
interface HTMLTableDataCellElement extends HTMLElement {}
|
84
|
+
interface HTMLTableHeaderCellElement extends HTMLElement {}
|
85
|
+
interface HTMLTableRowElement extends HTMLElement {}
|
86
|
+
interface HTMLTableSectionElement extends HTMLElement {}
|
87
|
+
interface HTMLTemplateElement extends HTMLElement {}
|
88
|
+
interface HTMLTextAreaElement extends HTMLElement {}
|
89
|
+
interface HTMLTimeElement extends HTMLElement {}
|
90
|
+
interface HTMLTitleElement extends HTMLElement {}
|
91
|
+
interface HTMLTrackElement extends HTMLElement {}
|
92
|
+
interface HTMLUListElement extends HTMLElement {}
|
93
|
+
interface HTMLVideoElement extends HTMLElement {}
|
94
|
+
interface HTMLWebViewElement extends HTMLElement {}
|
95
|
+
|
96
|
+
interface SVGElement extends Element {}
|
97
|
+
interface SVGSVGElement extends SVGElement {}
|
98
|
+
interface SVGCircleElement extends SVGElement {}
|
99
|
+
interface SVGClipPathElement extends SVGElement {}
|
100
|
+
interface SVGDefsElement extends SVGElement {}
|
101
|
+
interface SVGDescElement extends SVGElement {}
|
102
|
+
interface SVGEllipseElement extends SVGElement {}
|
103
|
+
interface SVGFEBlendElement extends SVGElement {}
|
104
|
+
interface SVGFEColorMatrixElement extends SVGElement {}
|
105
|
+
interface SVGFEComponentTransferElement extends SVGElement {}
|
106
|
+
interface SVGFECompositeElement extends SVGElement {}
|
107
|
+
interface SVGFEConvolveMatrixElement extends SVGElement {}
|
108
|
+
interface SVGFEDiffuseLightingElement extends SVGElement {}
|
109
|
+
interface SVGFEDisplacementMapElement extends SVGElement {}
|
110
|
+
interface SVGFEDistantLightElement extends SVGElement {}
|
111
|
+
interface SVGFEDropShadowElement extends SVGElement {}
|
112
|
+
interface SVGFEFloodElement extends SVGElement {}
|
113
|
+
interface SVGFEFuncAElement extends SVGElement {}
|
114
|
+
interface SVGFEFuncBElement extends SVGElement {}
|
115
|
+
interface SVGFEFuncGElement extends SVGElement {}
|
116
|
+
interface SVGFEFuncRElement extends SVGElement {}
|
117
|
+
interface SVGFEGaussianBlurElement extends SVGElement {}
|
118
|
+
interface SVGFEImageElement extends SVGElement {}
|
119
|
+
interface SVGFEMergeElement extends SVGElement {}
|
120
|
+
interface SVGFEMergeNodeElement extends SVGElement {}
|
121
|
+
interface SVGFEMorphologyElement extends SVGElement {}
|
122
|
+
interface SVGFEOffsetElement extends SVGElement {}
|
123
|
+
interface SVGFEPointLightElement extends SVGElement {}
|
124
|
+
interface SVGFESpecularLightingElement extends SVGElement {}
|
125
|
+
interface SVGFESpotLightElement extends SVGElement {}
|
126
|
+
interface SVGFETileElement extends SVGElement {}
|
127
|
+
interface SVGFETurbulenceElement extends SVGElement {}
|
128
|
+
interface SVGFilterElement extends SVGElement {}
|
129
|
+
interface SVGForeignObjectElement extends SVGElement {}
|
130
|
+
interface SVGGElement extends SVGElement {}
|
131
|
+
interface SVGImageElement extends SVGElement {}
|
132
|
+
interface SVGLineElement extends SVGElement {}
|
133
|
+
interface SVGLinearGradientElement extends SVGElement {}
|
134
|
+
interface SVGMarkerElement extends SVGElement {}
|
135
|
+
interface SVGMaskElement extends SVGElement {}
|
136
|
+
interface SVGMetadataElement extends SVGElement {}
|
137
|
+
interface SVGPathElement extends SVGElement {}
|
138
|
+
interface SVGPatternElement extends SVGElement {}
|
139
|
+
interface SVGPolygonElement extends SVGElement {}
|
140
|
+
interface SVGPolylineElement extends SVGElement {}
|
141
|
+
interface SVGRadialGradientElement extends SVGElement {}
|
142
|
+
interface SVGRectElement extends SVGElement {}
|
143
|
+
interface SVGStopElement extends SVGElement {}
|
144
|
+
interface SVGSwitchElement extends SVGElement {}
|
145
|
+
interface SVGSymbolElement extends SVGElement {}
|
146
|
+
interface SVGTextElement extends SVGElement {}
|
147
|
+
interface SVGTextPathElement extends SVGElement {}
|
148
|
+
interface SVGTSpanElement extends SVGElement {}
|
149
|
+
interface SVGUseElement extends SVGElement {}
|
150
|
+
interface SVGViewElement extends SVGElement {}
|
151
|
+
|
152
|
+
interface FormData {}
|
153
|
+
interface Text {}
|
154
|
+
interface TouchList {}
|
155
|
+
interface WebGLRenderingContext {}
|
156
|
+
interface WebGL2RenderingContext {}
|
157
|
+
|
158
|
+
interface TrustedHTML {}
|