@types/react 19.0.5 → 19.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- react/README.md +1 -1
- react/experimental.d.ts +46 -1
- react/package.json +2 -2
- react/ts5.0/experimental.d.ts +46 -1
react/README.md
CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for react (https://react.dev/).
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react.
|
9
9
|
|
10
10
|
### Additional Details
|
11
|
-
* Last updated:
|
11
|
+
* Last updated: Tue, 14 Jan 2025 09:02:32 GMT
|
12
12
|
* Dependencies: [csstype](https://npmjs.com/package/csstype)
|
13
13
|
|
14
14
|
# Credits
|
react/experimental.d.ts
CHANGED
@@ -136,15 +136,60 @@ declare module "." {
|
|
136
136
|
* Assigns the {@link https://developer.chrome.com/blog/view-transitions-update-io24#view-transition-class `view-transition-class`} class to the underlying DOM node.
|
137
137
|
*/
|
138
138
|
className?: string | undefined;
|
139
|
+
/**
|
140
|
+
* Combined with {@link className} if this `<ViewTransition>` or its parent Component is mounted and there's no other with the same name being deleted.
|
141
|
+
* `"none"` is a special value that deactivates the view transition name under that condition.
|
142
|
+
*/
|
143
|
+
enter?: "none" | (string & {}) | undefined;
|
144
|
+
/**
|
145
|
+
* Combined with {@link className} if this `<ViewTransition>` or its parent Component is unmounted and there's no other with the same name being deleted.
|
146
|
+
* `"none"` is a special value that deactivates the view transition name under that condition.
|
147
|
+
*/
|
148
|
+
exit?: "none" | (string & {}) | undefined;
|
149
|
+
/**
|
150
|
+
* Combined with {@link className} there are no updates to the content inside this boundary itself but the boundary has resized or moved due to other changes to siblings.
|
151
|
+
* `"none"` is a special value that deactivates the view transition name under that condition.
|
152
|
+
*/
|
153
|
+
layout?: "none" | (string & {}) | undefined;
|
139
154
|
/**
|
140
155
|
* "auto" will automatically assign a view-transition-name to the inner DOM node.
|
141
156
|
* That way you can add a View Transition to a Component without controlling its DOM nodes styling otherwise.
|
142
157
|
*
|
143
|
-
* A difference between this and the browser's built-in view-transition-name: auto is that switching the DOM nodes within the
|
158
|
+
* 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.
|
144
159
|
* @default "auto"
|
145
160
|
*/
|
146
161
|
name?: "auto" | (string & {}) | undefined;
|
162
|
+
/**
|
163
|
+
* The `<ViewTransition>` or its parent Component is mounted and there's no other `<ViewTransition>` with the same name being deleted.
|
164
|
+
*/
|
165
|
+
onEnter?: (instance: ViewTransitionInstance) => void;
|
166
|
+
/**
|
167
|
+
* The `<ViewTransition>` or its parent Component is unmounted and there's no other `<ViewTransition>` with the same name being deleted.
|
168
|
+
*/
|
169
|
+
onExit?: (instance: ViewTransitionInstance) => void;
|
170
|
+
/**
|
171
|
+
* There are no updates to the content inside this `<ViewTransition>` boundary itself but the boundary has resized or moved due to other changes to siblings.
|
172
|
+
*/
|
173
|
+
onLayout?: (instance: ViewTransitionInstance) => void;
|
174
|
+
/**
|
175
|
+
* This `<ViewTransition>` is being mounted and another `<ViewTransition>` instance with the same name is being unmounted elsewhere.
|
176
|
+
*/
|
177
|
+
onShare?: (instance: ViewTransitionInstance) => void;
|
178
|
+
/**
|
179
|
+
* The content of `<ViewTransition>` has changed either due to DOM mutations or because an inner child `<ViewTransition>` has resized.
|
180
|
+
*/
|
181
|
+
onUpdate?: (instance: ViewTransitionInstance) => void;
|
147
182
|
ref?: Ref<ViewTransitionInstance> | undefined;
|
183
|
+
/**
|
184
|
+
* Combined with {@link className} if this `<ViewTransition>` is being mounted and another instance with the same name is being unmounted elsewhere.
|
185
|
+
* `"none"` is a special value that deactivates the view transition name under that condition.
|
186
|
+
*/
|
187
|
+
share?: "none" | (string & {}) | undefined;
|
188
|
+
/**
|
189
|
+
* Combined with {@link className} if the content of this `<ViewTransition>` has changed either due to DOM mutations or because an inner child has resized.
|
190
|
+
* `"none"` is a special value that deactivates the view transition name under that condition.
|
191
|
+
*/
|
192
|
+
update?: "none" | (string & {}) | undefined;
|
148
193
|
}
|
149
194
|
|
150
195
|
/**
|
react/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react",
|
3
|
-
"version": "19.0.
|
3
|
+
"version": "19.0.7",
|
4
4
|
"description": "TypeScript definitions for react",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
|
6
6
|
"license": "MIT",
|
@@ -205,6 +205,6 @@
|
|
205
205
|
"csstype": "^3.0.2"
|
206
206
|
},
|
207
207
|
"peerDependencies": {},
|
208
|
-
"typesPublisherContentHash": "
|
208
|
+
"typesPublisherContentHash": "95916085602513b1b9df08b2b73421062fc6293cbd04000ddec39d3917b25295",
|
209
209
|
"typeScriptVersion": "5.0"
|
210
210
|
}
|
react/ts5.0/experimental.d.ts
CHANGED
@@ -136,15 +136,60 @@ declare module "." {
|
|
136
136
|
* Assigns the {@link https://developer.chrome.com/blog/view-transitions-update-io24#view-transition-class `view-transition-class`} class to the underlying DOM node.
|
137
137
|
*/
|
138
138
|
className?: string | undefined;
|
139
|
+
/**
|
140
|
+
* Combined with {@link className} if this `<ViewTransition>` or its parent Component is mounted and there's no other with the same name being deleted.
|
141
|
+
* `"none"` is a special value that deactivates the view transition name under that condition.
|
142
|
+
*/
|
143
|
+
enter?: "none" | (string & {}) | undefined;
|
144
|
+
/**
|
145
|
+
* Combined with {@link className} if this `<ViewTransition>` or its parent Component is unmounted and there's no other with the same name being deleted.
|
146
|
+
* `"none"` is a special value that deactivates the view transition name under that condition.
|
147
|
+
*/
|
148
|
+
exit?: "none" | (string & {}) | undefined;
|
149
|
+
/**
|
150
|
+
* Combined with {@link className} there are no updates to the content inside this boundary itself but the boundary has resized or moved due to other changes to siblings.
|
151
|
+
* `"none"` is a special value that deactivates the view transition name under that condition.
|
152
|
+
*/
|
153
|
+
layout?: "none" | (string & {}) | undefined;
|
139
154
|
/**
|
140
155
|
* "auto" will automatically assign a view-transition-name to the inner DOM node.
|
141
156
|
* That way you can add a View Transition to a Component without controlling its DOM nodes styling otherwise.
|
142
157
|
*
|
143
|
-
* A difference between this and the browser's built-in view-transition-name: auto is that switching the DOM nodes within the
|
158
|
+
* 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.
|
144
159
|
* @default "auto"
|
145
160
|
*/
|
146
161
|
name?: "auto" | (string & {}) | undefined;
|
162
|
+
/**
|
163
|
+
* The `<ViewTransition>` or its parent Component is mounted and there's no other `<ViewTransition>` with the same name being deleted.
|
164
|
+
*/
|
165
|
+
onEnter?: (instance: ViewTransitionInstance) => void;
|
166
|
+
/**
|
167
|
+
* The `<ViewTransition>` or its parent Component is unmounted and there's no other `<ViewTransition>` with the same name being deleted.
|
168
|
+
*/
|
169
|
+
onExit?: (instance: ViewTransitionInstance) => void;
|
170
|
+
/**
|
171
|
+
* There are no updates to the content inside this `<ViewTransition>` boundary itself but the boundary has resized or moved due to other changes to siblings.
|
172
|
+
*/
|
173
|
+
onLayout?: (instance: ViewTransitionInstance) => void;
|
174
|
+
/**
|
175
|
+
* This `<ViewTransition>` is being mounted and another `<ViewTransition>` instance with the same name is being unmounted elsewhere.
|
176
|
+
*/
|
177
|
+
onShare?: (instance: ViewTransitionInstance) => void;
|
178
|
+
/**
|
179
|
+
* The content of `<ViewTransition>` has changed either due to DOM mutations or because an inner child `<ViewTransition>` has resized.
|
180
|
+
*/
|
181
|
+
onUpdate?: (instance: ViewTransitionInstance) => void;
|
147
182
|
ref?: Ref<ViewTransitionInstance> | undefined;
|
183
|
+
/**
|
184
|
+
* Combined with {@link className} if this `<ViewTransition>` is being mounted and another instance with the same name is being unmounted elsewhere.
|
185
|
+
* `"none"` is a special value that deactivates the view transition name under that condition.
|
186
|
+
*/
|
187
|
+
share?: "none" | (string & {}) | undefined;
|
188
|
+
/**
|
189
|
+
* Combined with {@link className} if the content of this `<ViewTransition>` has changed either due to DOM mutations or because an inner child has resized.
|
190
|
+
* `"none"` is a special value that deactivates the view transition name under that condition.
|
191
|
+
*/
|
192
|
+
update?: "none" | (string & {}) | undefined;
|
148
193
|
}
|
149
194
|
|
150
195
|
/**
|