@pinuts/bsr-uikit-relaunch 0.2.9 → 0.2.11

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.
Files changed (192) hide show
  1. package/dist/hooks/withFieldGroup.d.ts.map +1 -1
  2. package/dist/hooks/withFieldGroup.js +0 -1
  3. package/dist/index.js +2 -134
  4. package/dist/{main.js.LICENSE.txt → index.js.LICENSE.txt} +2 -2
  5. package/dist/items/BSRAddressSelector/BSRAddressSelector.d.ts.map +1 -1
  6. package/dist/items/BSRAddressSelector/BSRAddressSelector.js +1 -2
  7. package/dist/items/BSRAddressSelector/BSRStreetPlzSelector.d.ts.map +1 -1
  8. package/dist/items/BSRAddressSelector/BSRStreetPlzSelector.js +1 -2
  9. package/dist/styles/main.scss +5 -3
  10. package/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +2 -2
  11. package/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
  12. package/node_modules/@babel/runtime/helpers/esm/superPropGet.js +4 -4
  13. package/node_modules/@babel/runtime/helpers/esm/superPropSet.js +2 -2
  14. package/node_modules/@babel/runtime/helpers/objectWithoutProperties.js +2 -2
  15. package/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js +1 -1
  16. package/node_modules/@babel/runtime/helpers/superPropGet.js +4 -4
  17. package/node_modules/@babel/runtime/helpers/superPropSet.js +2 -2
  18. package/node_modules/@babel/runtime/package.json +1 -1
  19. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/cs/diagnosticMessages.generated.json +4 -16
  20. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/de/diagnosticMessages.generated.json +4 -16
  21. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/es/diagnosticMessages.generated.json +4 -16
  22. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/fr/diagnosticMessages.generated.json +4 -16
  23. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/it/diagnosticMessages.generated.json +4 -16
  24. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/ja/diagnosticMessages.generated.json +4 -16
  25. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/ko/diagnosticMessages.generated.json +4 -16
  26. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.decorators.d.ts +15 -13
  27. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.dom.d.ts +219 -1115
  28. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2015.core.d.ts +9 -9
  29. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2015.iterable.d.ts +27 -90
  30. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2015.symbol.wellknown.d.ts +10 -10
  31. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2016.array.include.d.ts +9 -9
  32. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2016.intl.d.ts +1 -1
  33. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2017.d.ts +2 -3
  34. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2017.sharedmemory.d.ts +14 -14
  35. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2017.typedarrays.d.ts +9 -9
  36. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2020.bigint.d.ts +50 -54
  37. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2020.intl.d.ts +36 -36
  38. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2020.sharedmemory.d.ts +11 -13
  39. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2020.string.d.ts +0 -2
  40. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2021.intl.d.ts +17 -17
  41. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2021.weakref.d.ts +0 -2
  42. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2022.array.d.ts +11 -11
  43. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2022.d.ts +2 -1
  44. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2022.error.d.ts +0 -2
  45. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2022.intl.d.ts +9 -9
  46. package/node_modules/{typescript/lib/lib.es2024.sharedmemory.d.ts → @pinuts/form-builder/node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts} +0 -29
  47. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2023.array.d.ts +99 -99
  48. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es5.d.ts +252 -252
  49. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.esnext.array.d.ts +1 -1
  50. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.esnext.collection.d.ts +11 -1
  51. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.esnext.d.ts +5 -1
  52. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.webworker.d.ts +34 -311
  53. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/pl/diagnosticMessages.generated.json +4 -16
  54. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/pt-br/diagnosticMessages.generated.json +4 -16
  55. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/ru/diagnosticMessages.generated.json +4 -16
  56. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/tr/diagnosticMessages.generated.json +4 -16
  57. package/node_modules/{typescript/lib/_tsc.js → @pinuts/form-builder/node_modules/typescript/lib/tsc.js} +1863 -3484
  58. package/node_modules/{typescript/lib/_tsserver.js → @pinuts/form-builder/node_modules/typescript/lib/tsserver.js} +1 -1
  59. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/typesMap.json +497 -497
  60. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/typescript.d.ts +22 -82
  61. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/typescript.js +2998 -5593
  62. package/node_modules/{typescript/lib/_typingsInstaller.js → @pinuts/form-builder/node_modules/typescript/lib/typingsInstaller.js} +16 -2
  63. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/zh-cn/diagnosticMessages.generated.json +5 -17
  64. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/zh-tw/diagnosticMessages.generated.json +4 -16
  65. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/package.json +23 -22
  66. package/node_modules/@types/hoist-non-react-statics/README.md +13 -13
  67. package/node_modules/@types/hoist-non-react-statics/index.d.ts +12 -12
  68. package/node_modules/@types/hoist-non-react-statics/package.json +3 -4
  69. package/node_modules/@types/prop-types/LICENSE +21 -0
  70. package/node_modules/@types/prop-types/README.md +15 -0
  71. package/node_modules/@types/prop-types/index.d.ts +114 -0
  72. package/node_modules/@types/prop-types/package.json +35 -0
  73. package/node_modules/@types/react/README.md +3 -3
  74. package/node_modules/@types/react/canary.d.ts +118 -3
  75. package/node_modules/@types/react/experimental.d.ts +4 -89
  76. package/node_modules/@types/react/index.d.ts +772 -435
  77. package/node_modules/@types/react/package.json +9 -9
  78. package/node_modules/@types/react/ts5.0/canary.d.ts +118 -3
  79. package/node_modules/@types/react/ts5.0/experimental.d.ts +4 -89
  80. package/node_modules/@types/react/ts5.0/index.d.ts +768 -431
  81. package/node_modules/hoist-non-react-statics/CHANGELOG.md +37 -0
  82. package/node_modules/tslib/modules/index.d.ts +0 -1
  83. package/node_modules/tslib/modules/index.js +0 -2
  84. package/node_modules/tslib/package.json +1 -1
  85. package/node_modules/tslib/tslib.d.ts +0 -7
  86. package/node_modules/tslib/tslib.es6.js +1 -24
  87. package/node_modules/tslib/tslib.es6.mjs +1 -24
  88. package/node_modules/tslib/tslib.js +1 -56
  89. package/package.json +4 -5
  90. package/webpack.config.js +99 -109
  91. package/.nvmrc +0 -1
  92. package/dist/main.css +0 -4
  93. package/dist/main.js +0 -2
  94. package/dist/styles.css +0 -1
  95. package/dist/styles.js +0 -0
  96. package/node_modules/@types/react/compiler-runtime.d.ts +0 -4
  97. package/node_modules/@types/react/ts5.0/v18/global.d.ts +0 -160
  98. package/node_modules/@types/react/ts5.0/v18/index.d.ts +0 -4543
  99. package/node_modules/@types/react/ts5.0/v18/jsx-dev-runtime.d.ts +0 -45
  100. package/node_modules/@types/react/ts5.0/v18/jsx-runtime.d.ts +0 -36
  101. package/node_modules/@types/react/ts5.0/v18/ts5.0/global.d.ts +0 -160
  102. package/node_modules/@types/react/ts5.0/v18/ts5.0/index.d.ts +0 -4530
  103. package/node_modules/@types/react/ts5.0/v18/ts5.0/jsx-dev-runtime.d.ts +0 -44
  104. package/node_modules/@types/react/ts5.0/v18/ts5.0/jsx-runtime.d.ts +0 -35
  105. package/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts +0 -21
  106. package/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts +0 -65
  107. package/node_modules/typescript/lib/lib.es2024.collection.d.ts +0 -29
  108. package/node_modules/typescript/lib/lib.es2024.d.ts +0 -26
  109. package/node_modules/typescript/lib/lib.es2024.full.d.ts +0 -24
  110. package/node_modules/typescript/lib/tsc.js +0 -8
  111. package/node_modules/typescript/lib/tsserver.js +0 -8
  112. package/node_modules/typescript/lib/typingsInstaller.js +0 -8
  113. /package/dist/styles/{form.scss → _form.scss} +0 -0
  114. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/LICENSE.txt +0 -0
  115. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/README.md +0 -0
  116. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/SECURITY.md +0 -0
  117. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/ThirdPartyNoticeText.txt +0 -0
  118. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/bin/tsc +0 -0
  119. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/bin/tsserver +0 -0
  120. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/cancellationToken.js +0 -0
  121. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.d.ts +0 -0
  122. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.decorators.legacy.d.ts +0 -0
  123. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.dom.asynciterable.d.ts +0 -0
  124. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.dom.iterable.d.ts +0 -0
  125. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2015.collection.d.ts +0 -0
  126. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2015.d.ts +0 -0
  127. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2015.generator.d.ts +0 -0
  128. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2015.promise.d.ts +0 -0
  129. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2015.proxy.d.ts +0 -0
  130. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2015.reflect.d.ts +0 -0
  131. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2015.symbol.d.ts +0 -0
  132. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2016.d.ts +0 -0
  133. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2016.full.d.ts +0 -0
  134. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2017.date.d.ts +0 -0
  135. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2017.full.d.ts +0 -0
  136. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2017.intl.d.ts +0 -0
  137. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2017.object.d.ts +0 -0
  138. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2017.string.d.ts +0 -0
  139. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2018.asyncgenerator.d.ts +0 -0
  140. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2018.asynciterable.d.ts +0 -0
  141. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2018.d.ts +0 -0
  142. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2018.full.d.ts +0 -0
  143. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2018.intl.d.ts +0 -0
  144. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2018.promise.d.ts +0 -0
  145. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2018.regexp.d.ts +0 -0
  146. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2019.array.d.ts +0 -0
  147. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2019.d.ts +0 -0
  148. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2019.full.d.ts +0 -0
  149. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2019.intl.d.ts +0 -0
  150. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2019.object.d.ts +0 -0
  151. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2019.string.d.ts +0 -0
  152. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2019.symbol.d.ts +0 -0
  153. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2020.d.ts +0 -0
  154. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2020.date.d.ts +0 -0
  155. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2020.full.d.ts +0 -0
  156. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2020.number.d.ts +0 -0
  157. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2020.promise.d.ts +0 -0
  158. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2020.symbol.wellknown.d.ts +0 -0
  159. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2021.d.ts +0 -0
  160. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2021.full.d.ts +0 -0
  161. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2021.promise.d.ts +0 -0
  162. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2021.string.d.ts +0 -0
  163. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2022.full.d.ts +0 -0
  164. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2022.object.d.ts +0 -0
  165. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2022.regexp.d.ts +0 -0
  166. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2022.string.d.ts +0 -0
  167. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2023.collection.d.ts +0 -0
  168. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2023.d.ts +0 -0
  169. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2023.full.d.ts +0 -0
  170. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2023.intl.d.ts +0 -0
  171. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es6.d.ts +0 -0
  172. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.esnext.decorators.d.ts +0 -0
  173. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.esnext.disposable.d.ts +0 -0
  174. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.esnext.full.d.ts +0 -0
  175. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.esnext.intl.d.ts +0 -0
  176. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.esnext.iterator.d.ts +0 -0
  177. /package/node_modules/{typescript/lib/lib.es2024.object.d.ts → @pinuts/form-builder/node_modules/typescript/lib/lib.esnext.object.d.ts} +0 -0
  178. /package/node_modules/{typescript/lib/lib.es2024.promise.d.ts → @pinuts/form-builder/node_modules/typescript/lib/lib.esnext.promise.d.ts} +0 -0
  179. /package/node_modules/{typescript/lib/lib.es2024.regexp.d.ts → @pinuts/form-builder/node_modules/typescript/lib/lib.esnext.regexp.d.ts} +0 -0
  180. /package/node_modules/{typescript/lib/lib.es2024.string.d.ts → @pinuts/form-builder/node_modules/typescript/lib/lib.esnext.string.d.ts} +0 -0
  181. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.scripthost.d.ts +0 -0
  182. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.webworker.asynciterable.d.ts +0 -0
  183. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.webworker.importscripts.d.ts +0 -0
  184. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.webworker.iterable.d.ts +0 -0
  185. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/tsserverlibrary.d.ts +0 -0
  186. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/tsserverlibrary.js +0 -0
  187. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/watchGuard.js +0 -0
  188. /package/node_modules/{@babel/runtime/node_modules/regenerator-runtime → regenerator-runtime}/LICENSE +0 -0
  189. /package/node_modules/{@babel/runtime/node_modules/regenerator-runtime → regenerator-runtime}/README.md +0 -0
  190. /package/node_modules/{@babel/runtime/node_modules/regenerator-runtime → regenerator-runtime}/package.json +0 -0
  191. /package/node_modules/{@babel/runtime/node_modules/regenerator-runtime → regenerator-runtime}/path.js +0 -0
  192. /package/node_modules/{@babel/runtime/node_modules/regenerator-runtime → regenerator-runtime}/runtime.js +0 -0
@@ -0,0 +1,114 @@
1
+ // eslint-disable-next-line @definitelytyped/export-just-namespace
2
+ export = PropTypes;
3
+
4
+ declare namespace PropTypes {
5
+ type ReactComponentLike =
6
+ | string
7
+ | ((props: any, context?: any) => any)
8
+ | (new(props: any, context?: any) => any);
9
+
10
+ interface ReactElementLike {
11
+ type: ReactComponentLike;
12
+ props: any;
13
+ key: string | null;
14
+ }
15
+
16
+ interface ReactNodeArray extends Iterable<ReactNodeLike> {}
17
+
18
+ type ReactNodeLike =
19
+ | ReactElementLike
20
+ | ReactNodeArray
21
+ | string
22
+ | number
23
+ | boolean
24
+ | null
25
+ | undefined;
26
+
27
+ const nominalTypeHack: unique symbol;
28
+
29
+ type IsOptional<T> = undefined extends T ? true : false;
30
+
31
+ type RequiredKeys<V> = {
32
+ [K in keyof V]-?: Exclude<V[K], undefined> extends Validator<infer T> ? IsOptional<T> extends true ? never : K
33
+ : never;
34
+ }[keyof V];
35
+ type OptionalKeys<V> = Exclude<keyof V, RequiredKeys<V>>;
36
+ type InferPropsInner<V> = { [K in keyof V]-?: InferType<V[K]> };
37
+
38
+ interface Validator<T> {
39
+ (
40
+ props: { [key: string]: any },
41
+ propName: string,
42
+ componentName: string,
43
+ location: string,
44
+ propFullName: string,
45
+ ): Error | null;
46
+ [nominalTypeHack]?: {
47
+ type: T;
48
+ } | undefined;
49
+ }
50
+
51
+ interface Requireable<T> extends Validator<T | undefined | null> {
52
+ isRequired: Validator<NonNullable<T>>;
53
+ }
54
+
55
+ type ValidationMap<T> = { [K in keyof T]?: Validator<T[K]> };
56
+
57
+ /**
58
+ * Like {@link ValidationMap} but treats `undefined`, `null` and optional properties the same.
59
+ * This type is only added as a migration path in React 19 where this type was removed from React.
60
+ * Runtime and compile time types would mismatch since you could see `undefined` at runtime when your types don't expect this type.
61
+ */
62
+ type WeakValidationMap<T> = {
63
+ [K in keyof T]?: null extends T[K] ? Validator<T[K] | null | undefined>
64
+ : undefined extends T[K] ? Validator<T[K] | null | undefined>
65
+ : Validator<T[K]>;
66
+ };
67
+
68
+ type InferType<V> = V extends Validator<infer T> ? T : any;
69
+ type InferProps<V> =
70
+ & InferPropsInner<Pick<V, RequiredKeys<V>>>
71
+ & Partial<InferPropsInner<Pick<V, OptionalKeys<V>>>>;
72
+
73
+ const any: Requireable<any>;
74
+ const array: Requireable<any[]>;
75
+ const bool: Requireable<boolean>;
76
+ const func: Requireable<(...args: any[]) => any>;
77
+ const number: Requireable<number>;
78
+ const object: Requireable<object>;
79
+ const string: Requireable<string>;
80
+ const node: Requireable<ReactNodeLike>;
81
+ const element: Requireable<ReactElementLike>;
82
+ const symbol: Requireable<symbol>;
83
+ const elementType: Requireable<ReactComponentLike>;
84
+ function instanceOf<T>(expectedClass: new(...args: any[]) => T): Requireable<T>;
85
+ function oneOf<T>(types: readonly T[]): Requireable<T>;
86
+ function oneOfType<T extends Validator<any>>(types: T[]): Requireable<NonNullable<InferType<T>>>;
87
+ function arrayOf<T>(type: Validator<T>): Requireable<T[]>;
88
+ function objectOf<T>(type: Validator<T>): Requireable<{ [K in keyof any]: T }>;
89
+ function shape<P extends ValidationMap<any>>(type: P): Requireable<InferProps<P>>;
90
+ function exact<P extends ValidationMap<any>>(type: P): Requireable<Required<InferProps<P>>>;
91
+
92
+ /**
93
+ * Assert that the values match with the type specs.
94
+ * Error messages are memorized and will only be shown once.
95
+ *
96
+ * @param typeSpecs Map of name to a ReactPropType
97
+ * @param values Runtime values that need to be type-checked
98
+ * @param location e.g. "prop", "context", "child context"
99
+ * @param componentName Name of the component for error messages
100
+ * @param getStack Returns the component stack
101
+ */
102
+ function checkPropTypes(
103
+ typeSpecs: any,
104
+ values: any,
105
+ location: string,
106
+ componentName: string,
107
+ getStack?: () => any,
108
+ ): void;
109
+
110
+ /**
111
+ * Only available if NODE_ENV=production
112
+ */
113
+ function resetWarningCache(): void;
114
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "@types/prop-types",
3
+ "version": "15.7.13",
4
+ "description": "TypeScript definitions for prop-types",
5
+ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/prop-types",
6
+ "license": "MIT",
7
+ "contributors": [
8
+ {
9
+ "name": "DovydasNavickas",
10
+ "githubUsername": "DovydasNavickas",
11
+ "url": "https://github.com/DovydasNavickas"
12
+ },
13
+ {
14
+ "name": "Ferdy Budhidharma",
15
+ "githubUsername": "ferdaber",
16
+ "url": "https://github.com/ferdaber"
17
+ },
18
+ {
19
+ "name": "Sebastian Silbermann",
20
+ "githubUsername": "eps1lon",
21
+ "url": "https://github.com/eps1lon"
22
+ }
23
+ ],
24
+ "main": "",
25
+ "types": "index.d.ts",
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
29
+ "directory": "types/prop-types"
30
+ },
31
+ "scripts": {},
32
+ "dependencies": {},
33
+ "typesPublisherContentHash": "463997a2d1b4bb7e18554d9d12146cc74169e8bda6a4b9008306c38797ae14d3",
34
+ "typeScriptVersion": "4.8"
35
+ }
@@ -8,8 +8,8 @@ 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: Mon, 17 Feb 2025 09:33:55 GMT
12
- * Dependencies: [csstype](https://npmjs.com/package/csstype)
11
+ * Last updated: Tue, 17 Sep 2024 09:08:13 GMT
12
+ * Dependencies: [@types/prop-types](https://npmjs.com/package/@types/prop-types), [csstype](https://npmjs.com/package/csstype)
13
13
 
14
14
  # Credits
15
- 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).
15
+ 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), [Dale Tan](https://github.com/hellatan), [Priyanshu Rav](https://github.com/priyanshurav), [Dmitry Semigradsky](https://github.com/Semigradsky), and [Matt Pocock](https://github.com/mattpocock).
@@ -30,13 +30,128 @@ export {};
30
30
  declare const UNDEFINED_VOID_ONLY: unique symbol;
31
31
  type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never };
32
32
 
33
+ type NativeToggleEvent = ToggleEvent;
34
+
33
35
  declare module "." {
36
+ export type Usable<T> = PromiseLike<T> | Context<T>;
37
+
38
+ export function use<T>(usable: Usable<T>): T;
39
+
40
+ interface ServerContextJSONArray extends ReadonlyArray<ServerContextJSONValue> {}
41
+ export type ServerContextJSONValue =
42
+ | string
43
+ | boolean
44
+ | number
45
+ | null
46
+ | ServerContextJSONArray
47
+ | { [key: string]: ServerContextJSONValue };
48
+ export interface ServerContext<T extends ServerContextJSONValue> {
49
+ Provider: Provider<T>;
50
+ }
51
+ /**
52
+ * Accepts a context object (the value returned from `React.createContext` or `React.createServerContext`) and returns the current
53
+ * context value, as given by the nearest context provider for the given context.
54
+ *
55
+ * @version 16.8.0
56
+ * @see https://react.dev/reference/react/useContext
57
+ */
58
+ function useContext<T extends ServerContextJSONValue>(context: ServerContext<T>): T;
59
+ export function createServerContext<T extends ServerContextJSONValue>(
60
+ globalName: string,
61
+ defaultValue: T,
62
+ ): ServerContext<T>;
63
+
64
+ // eslint-disable-next-line @typescript-eslint/ban-types
65
+ export function cache<CachedFunction extends Function>(fn: CachedFunction): CachedFunction;
66
+
34
67
  export function unstable_useCacheRefresh(): () => void;
35
68
 
69
+ interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS {
70
+ functions: (formData: FormData) => void;
71
+ }
72
+
73
+ export interface TransitionStartFunction {
74
+ /**
75
+ * Marks all state updates inside the async function as transitions
76
+ *
77
+ * @see {https://react.dev/reference/react/useTransition#starttransition}
78
+ *
79
+ * @param callback
80
+ */
81
+ (callback: () => Promise<VoidOrUndefinedOnly>): void;
82
+ }
83
+
36
84
  /**
37
- * Warning: Only available in development builds.
85
+ * Similar to `useTransition` but allows uses where hooks are not available.
38
86
  *
39
- * @see {@link https://react.dev/reference/react/captureOwnerStack Reference docs}
87
+ * @param callback An _asynchronous_ function which causes state updates that can be deferred.
88
+ */
89
+ export function startTransition(scope: () => Promise<VoidOrUndefinedOnly>): void;
90
+
91
+ export function useOptimistic<State>(
92
+ passthrough: State,
93
+ ): [State, (action: State | ((pendingState: State) => State)) => void];
94
+ export function useOptimistic<State, Action>(
95
+ passthrough: State,
96
+ reducer: (state: State, action: Action) => State,
97
+ ): [State, (action: Action) => void];
98
+
99
+ interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES {
100
+ cleanup: () => VoidOrUndefinedOnly;
101
+ }
102
+
103
+ export function useActionState<State>(
104
+ action: (state: Awaited<State>) => State | Promise<State>,
105
+ initialState: Awaited<State>,
106
+ permalink?: string,
107
+ ): [state: Awaited<State>, dispatch: () => void, isPending: boolean];
108
+ export function useActionState<State, Payload>(
109
+ action: (state: Awaited<State>, payload: Payload) => State | Promise<State>,
110
+ initialState: Awaited<State>,
111
+ permalink?: string,
112
+ ): [state: Awaited<State>, dispatch: (payload: Payload) => void, isPending: boolean];
113
+
114
+ interface DOMAttributes<T> {
115
+ // Transition Events
116
+ onTransitionCancel?: TransitionEventHandler<T> | undefined;
117
+ onTransitionCancelCapture?: TransitionEventHandler<T> | undefined;
118
+ onTransitionRun?: TransitionEventHandler<T> | undefined;
119
+ onTransitionRunCapture?: TransitionEventHandler<T> | undefined;
120
+ onTransitionStart?: TransitionEventHandler<T> | undefined;
121
+ onTransitionStartCapture?: TransitionEventHandler<T> | undefined;
122
+ }
123
+
124
+ type ToggleEventHandler<T = Element> = EventHandler<ToggleEvent<T>>;
125
+
126
+ interface HTMLAttributes<T> {
127
+ popover?: "" | "auto" | "manual" | undefined;
128
+ popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
129
+ popoverTarget?: string | undefined;
130
+ onToggle?: ToggleEventHandler<T> | undefined;
131
+ onBeforeToggle?: ToggleEventHandler<T> | undefined;
132
+ }
133
+
134
+ interface ToggleEvent<T = Element> extends SyntheticEvent<T, NativeToggleEvent> {
135
+ oldState: "closed" | "open";
136
+ newState: "closed" | "open";
137
+ }
138
+
139
+ /**
140
+ * @internal Use `Awaited<ReactNode>` instead
40
141
  */
41
- function captureOwnerStack(): string | null;
142
+ // Helper type to enable `Awaited<ReactNode>`.
143
+ // Must be a copy of the non-thenables of `ReactNode`.
144
+ type AwaitedReactNode =
145
+ | ReactElement
146
+ | string
147
+ | number
148
+ | Iterable<AwaitedReactNode>
149
+ | ReactPortal
150
+ | boolean
151
+ | null
152
+ | undefined;
153
+ interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_REACT_NODES {
154
+ promises: Promise<AwaitedReactNode>;
155
+ bigints: bigint;
156
+ }
42
157
  }
@@ -106,7 +106,7 @@ declare module "." {
106
106
  */
107
107
  export const unstable_SuspenseList: ExoticComponent<SuspenseListProps>;
108
108
 
109
- // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
109
+ // eslint-disable-next-line @typescript-eslint/ban-types
110
110
  export function experimental_useEffectEvent<T extends Function>(event: T): T;
111
111
 
112
112
  type Reference = object;
@@ -118,95 +118,10 @@ declare module "." {
118
118
  ): void;
119
119
  function experimental_taintObjectReference(message: string | undefined, object: Reference): void;
120
120
 
121
- export interface ViewTransitionInstance {
121
+ export interface HTMLAttributes<T> {
122
122
  /**
123
- * The {@link ViewTransitionProps name} that was used in the corresponding {@link ViewTransition} component or `"auto"` if the `name` prop was omitted.
123
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/inert
124
124
  */
125
- name: string;
125
+ inert?: boolean | undefined;
126
126
  }
127
-
128
- export interface ViewTransitionProps {
129
- children?: ReactNode | undefined;
130
- /**
131
- * Assigns the {@link https://developer.chrome.com/blog/view-transitions-update-io24#view-transition-class `view-transition-class`} class to the underlying DOM node.
132
- */
133
- className?: string | undefined;
134
- /**
135
- * Combined with {@link className} if this `<ViewTransition>` or its parent Component is mounted and there's no other with the same name being deleted.
136
- * `"none"` is a special value that deactivates the view transition name under that condition.
137
- */
138
- enter?: "none" | (string & {}) | undefined;
139
- /**
140
- * Combined with {@link className} if this `<ViewTransition>` or its parent Component is unmounted 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
- exit?: "none" | (string & {}) | undefined;
144
- /**
145
- * 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.
146
- * `"none"` is a special value that deactivates the view transition name under that condition.
147
- */
148
- layout?: "none" | (string & {}) | undefined;
149
- /**
150
- * "auto" will automatically assign a view-transition-name to the inner DOM node.
151
- * That way you can add a View Transition to a Component without controlling its DOM nodes styling otherwise.
152
- *
153
- * 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.
154
- * @default "auto"
155
- */
156
- name?: "auto" | (string & {}) | undefined;
157
- /**
158
- * The `<ViewTransition>` or its parent Component is mounted and there's no other `<ViewTransition>` with the same name being deleted.
159
- */
160
- onEnter?: (instance: ViewTransitionInstance) => void;
161
- /**
162
- * The `<ViewTransition>` or its parent Component is unmounted and there's no other `<ViewTransition>` with the same name being deleted.
163
- */
164
- onExit?: (instance: ViewTransitionInstance) => void;
165
- /**
166
- * 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.
167
- */
168
- onLayout?: (instance: ViewTransitionInstance) => void;
169
- /**
170
- * This `<ViewTransition>` is being mounted and another `<ViewTransition>` instance with the same name is being unmounted elsewhere.
171
- */
172
- onShare?: (instance: ViewTransitionInstance) => void;
173
- /**
174
- * The content of `<ViewTransition>` has changed either due to DOM mutations or because an inner child `<ViewTransition>` has resized.
175
- */
176
- onUpdate?: (instance: ViewTransitionInstance) => void;
177
- ref?: Ref<ViewTransitionInstance> | undefined;
178
- /**
179
- * Combined with {@link className} if this `<ViewTransition>` is being mounted and another instance with the same name is being unmounted elsewhere.
180
- * `"none"` is a special value that deactivates the view transition name under that condition.
181
- */
182
- share?: "none" | (string & {}) | undefined;
183
- /**
184
- * Combined with {@link className} if the content of this `<ViewTransition>` has changed either due to DOM mutations or because an inner child has resized.
185
- * `"none"` is a special value that deactivates the view transition name under that condition.
186
- */
187
- update?: "none" | (string & {}) | undefined;
188
- }
189
-
190
- /**
191
- * Opt-in for using {@link https://developer.mozilla.org/en-US/docs/Web/API/View_Transition_API View Transitions} in React.
192
- * View Transitions only trigger for async updates like {@link startTransition}, {@link useDeferredValue}, Actions or <{@link Suspense}> revealing from fallback to content.
193
- * Synchronous updates provide an opt-out but also guarantee that they commit immediately which View Transitions can't.
194
- *
195
- * @see {@link https://github.com/facebook/react/pull/31975}
196
- */
197
- export const unstable_ViewTransition: ExoticComponent<ViewTransitionProps>;
198
-
199
- // Implemented by the specific renderer e.g. `react-dom`.
200
- // Keep in mind that augmented interfaces merge their JSDoc so if you put
201
- // JSDoc here and in the renderer, the IDE will display both.
202
- export interface GestureProvider {}
203
-
204
- export type StartGesture = (gestureProvider: GestureProvider) => () => void;
205
-
206
- /** */
207
- export function unstable_useSwipeTransition<Value>(
208
- previous: Value,
209
- current: Value,
210
- next: Value,
211
- ): [value: Value, startGesture: StartGesture];
212
127
  }