@types/react 18.2.56 → 18.2.58

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 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: Sat, 17 Feb 2024 06:35:43 GMT
11
+ * Last updated: Fri, 23 Feb 2024 08:07:48 GMT
12
12
  * Dependencies: [@types/prop-types](https://npmjs.com/package/@types/prop-types), [@types/scheduler](https://npmjs.com/package/@types/scheduler), [csstype](https://npmjs.com/package/csstype)
13
13
 
14
14
  # Credits
react/index.d.ts CHANGED
@@ -3137,6 +3137,7 @@ declare namespace React {
3137
3137
  alt?: string | undefined;
3138
3138
  crossOrigin?: CrossOrigin;
3139
3139
  decoding?: "async" | "auto" | "sync" | undefined;
3140
+ fetchPriority?: "high" | "low" | "auto";
3140
3141
  height?: number | string | undefined;
3141
3142
  loading?: "eager" | "lazy" | undefined;
3142
3143
  referrerPolicy?: HTMLAttributeReferrerPolicy | undefined;
@@ -3177,10 +3178,72 @@ declare namespace React {
3177
3178
  | "week"
3178
3179
  | (string & {});
3179
3180
 
3181
+ type AutoFillAddressKind = "billing" | "shipping";
3182
+ type AutoFillBase = "" | "off" | "on";
3183
+ type AutoFillContactField =
3184
+ | "email"
3185
+ | "tel"
3186
+ | "tel-area-code"
3187
+ | "tel-country-code"
3188
+ | "tel-extension"
3189
+ | "tel-local"
3190
+ | "tel-local-prefix"
3191
+ | "tel-local-suffix"
3192
+ | "tel-national";
3193
+ type AutoFillContactKind = "home" | "mobile" | "work";
3194
+ type AutoFillCredentialField = "webauthn";
3195
+ type AutoFillNormalField =
3196
+ | "additional-name"
3197
+ | "address-level1"
3198
+ | "address-level2"
3199
+ | "address-level3"
3200
+ | "address-level4"
3201
+ | "address-line1"
3202
+ | "address-line2"
3203
+ | "address-line3"
3204
+ | "bday-day"
3205
+ | "bday-month"
3206
+ | "bday-year"
3207
+ | "cc-csc"
3208
+ | "cc-exp"
3209
+ | "cc-exp-month"
3210
+ | "cc-exp-year"
3211
+ | "cc-family-name"
3212
+ | "cc-given-name"
3213
+ | "cc-name"
3214
+ | "cc-number"
3215
+ | "cc-type"
3216
+ | "country"
3217
+ | "country-name"
3218
+ | "current-password"
3219
+ | "family-name"
3220
+ | "given-name"
3221
+ | "honorific-prefix"
3222
+ | "honorific-suffix"
3223
+ | "name"
3224
+ | "new-password"
3225
+ | "one-time-code"
3226
+ | "organization"
3227
+ | "postal-code"
3228
+ | "street-address"
3229
+ | "transaction-amount"
3230
+ | "transaction-currency"
3231
+ | "username";
3232
+ type OptionalPrefixToken<T extends string> = `${T} ` | "";
3233
+ type OptionalPostfixToken<T extends string> = ` ${T}` | "";
3234
+ type AutoFillField = AutoFillNormalField | `${OptionalPrefixToken<AutoFillContactKind>}${AutoFillContactField}`;
3235
+ type AutoFillSection = `section-${string}`;
3236
+ type AutoFill =
3237
+ | AutoFillBase
3238
+ | `${OptionalPrefixToken<AutoFillSection>}${OptionalPrefixToken<
3239
+ AutoFillAddressKind
3240
+ >}${AutoFillField}${OptionalPostfixToken<AutoFillCredentialField>}`;
3241
+ type HTMLInputAutoCompleteAttribute = AutoFill | (string & {});
3242
+
3180
3243
  interface InputHTMLAttributes<T> extends HTMLAttributes<T> {
3181
3244
  accept?: string | undefined;
3182
3245
  alt?: string | undefined;
3183
- autoComplete?: string | undefined;
3246
+ autoComplete?: HTMLInputAutoCompleteAttribute | undefined;
3184
3247
  capture?: boolean | "user" | "environment" | undefined; // https://www.w3.org/TR/html-media-capture/#the-capture-attribute
3185
3248
  checked?: boolean | undefined;
3186
3249
  disabled?: boolean | undefined;
react/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "18.2.56",
3
+ "version": "18.2.58",
4
4
  "description": "TypeScript definitions for react",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
6
6
  "license": "MIT",
@@ -201,6 +201,6 @@
201
201
  "@types/scheduler": "*",
202
202
  "csstype": "^3.0.2"
203
203
  },
204
- "typesPublisherContentHash": "441f282a57e8185bea6f7d4ceb52897740d863fb37267b433337b6c790deeab4",
204
+ "typesPublisherContentHash": "a179697ac06a0f559d1633405ad04e6aad961a4bfc327575f032c02e791e0e05",
205
205
  "typeScriptVersion": "4.6"
206
206
  }
react/ts5.0/index.d.ts CHANGED
@@ -3175,10 +3175,72 @@ declare namespace React {
3175
3175
  | "week"
3176
3176
  | (string & {});
3177
3177
 
3178
+ type AutoFillAddressKind = "billing" | "shipping";
3179
+ type AutoFillBase = "" | "off" | "on";
3180
+ type AutoFillContactField =
3181
+ | "email"
3182
+ | "tel"
3183
+ | "tel-area-code"
3184
+ | "tel-country-code"
3185
+ | "tel-extension"
3186
+ | "tel-local"
3187
+ | "tel-local-prefix"
3188
+ | "tel-local-suffix"
3189
+ | "tel-national";
3190
+ type AutoFillContactKind = "home" | "mobile" | "work";
3191
+ type AutoFillCredentialField = "webauthn";
3192
+ type AutoFillNormalField =
3193
+ | "additional-name"
3194
+ | "address-level1"
3195
+ | "address-level2"
3196
+ | "address-level3"
3197
+ | "address-level4"
3198
+ | "address-line1"
3199
+ | "address-line2"
3200
+ | "address-line3"
3201
+ | "bday-day"
3202
+ | "bday-month"
3203
+ | "bday-year"
3204
+ | "cc-csc"
3205
+ | "cc-exp"
3206
+ | "cc-exp-month"
3207
+ | "cc-exp-year"
3208
+ | "cc-family-name"
3209
+ | "cc-given-name"
3210
+ | "cc-name"
3211
+ | "cc-number"
3212
+ | "cc-type"
3213
+ | "country"
3214
+ | "country-name"
3215
+ | "current-password"
3216
+ | "family-name"
3217
+ | "given-name"
3218
+ | "honorific-prefix"
3219
+ | "honorific-suffix"
3220
+ | "name"
3221
+ | "new-password"
3222
+ | "one-time-code"
3223
+ | "organization"
3224
+ | "postal-code"
3225
+ | "street-address"
3226
+ | "transaction-amount"
3227
+ | "transaction-currency"
3228
+ | "username";
3229
+ type OptionalPrefixToken<T extends string> = `${T} ` | "";
3230
+ type OptionalPostfixToken<T extends string> = ` ${T}` | "";
3231
+ type AutoFillField = AutoFillNormalField | `${OptionalPrefixToken<AutoFillContactKind>}${AutoFillContactField}`;
3232
+ type AutoFillSection = `section-${string}`;
3233
+ type AutoFill =
3234
+ | AutoFillBase
3235
+ | `${OptionalPrefixToken<AutoFillSection>}${OptionalPrefixToken<
3236
+ AutoFillAddressKind
3237
+ >}${AutoFillField}${OptionalPostfixToken<AutoFillCredentialField>}`;
3238
+ type HTMLInputAutoCompleteAttribute = AutoFill | (string & {});
3239
+
3178
3240
  interface InputHTMLAttributes<T> extends HTMLAttributes<T> {
3179
3241
  accept?: string | undefined;
3180
3242
  alt?: string | undefined;
3181
- autoComplete?: string | undefined;
3243
+ autoComplete?: HTMLInputAutoCompleteAttribute | undefined;
3182
3244
  capture?: boolean | "user" | "environment" | undefined; // https://www.w3.org/TR/html-media-capture/#the-capture-attribute
3183
3245
  checked?: boolean | undefined;
3184
3246
  disabled?: boolean | undefined;