fastapi-rtk 2.7.1 → 2.9.0

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 (515) hide show
  1. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineFileInput.cjs +13 -4
  2. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineObjectInput.cjs +23 -12
  3. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/complex/MantineArrayControl/DeleteDialog.cjs +38 -7
  4. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/complex/MantineArrayControl/MantineArrayControl.cjs +16 -11
  5. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/complex/MantineTableControl/MantineTableControl.cjs +117 -23
  6. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/complex/MantineTableControl/TableToolbar.cjs +30 -4
  7. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useContextProps.cjs +5 -7
  8. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useNavigationComponent.cjs +48 -13
  9. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useToolbarComponent.cjs +31 -11
  10. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/labels/MantineLabelRenderer.cjs +9 -1
  11. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Array/ArrayToolbar.cjs +15 -4
  12. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Array/ExpandPanelRenderer.cjs +83 -18
  13. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Array/MantineArrayLayout.cjs +76 -43
  14. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/MantineHotizontalLayoutRenderer.cjs +2 -2
  15. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/MantineVerticalLayoutRenderer.cjs +2 -2
  16. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineFileInput.mjs +16 -7
  17. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineObjectInput.mjs +23 -12
  18. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/complex/MantineArrayControl/DeleteDialog.mjs +40 -9
  19. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/complex/MantineArrayControl/MantineArrayControl.mjs +17 -12
  20. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/complex/MantineTableControl/MantineTableControl.mjs +118 -24
  21. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/complex/MantineTableControl/TableToolbar.mjs +31 -5
  22. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useContextProps.mjs +5 -7
  23. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useNavigationComponent.mjs +49 -14
  24. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useToolbarComponent.mjs +32 -12
  25. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/labels/MantineLabelRenderer.mjs +9 -1
  26. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Array/ArrayToolbar.mjs +16 -5
  27. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Array/ExpandPanelRenderer.mjs +85 -20
  28. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Array/MantineArrayLayout.mjs +79 -46
  29. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/MantineHotizontalLayoutRenderer.mjs +2 -2
  30. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/MantineVerticalLayoutRenderer.mjs +2 -2
  31. package/dist/.external/cjs/yup@1.7.1/yup/index.esm.cjs +1 -435
  32. package/dist/.external/esm/yup@1.7.1/yup/index.esm.mjs +2 -436
  33. package/dist/.external/lib/type-fest/index.d.ts +95 -0
  34. package/dist/.external/lib/type-fest/source/async-return-type.d.ts +25 -0
  35. package/dist/.external/lib/type-fest/source/asyncify.d.ts +33 -0
  36. package/dist/.external/lib/type-fest/source/basic.d.ts +45 -0
  37. package/dist/.external/lib/type-fest/source/camel-case.d.ts +73 -0
  38. package/dist/.external/lib/type-fest/source/camel-cased-properties-deep.d.ts +54 -0
  39. package/dist/.external/lib/type-fest/source/camel-cased-properties.d.ts +36 -0
  40. package/dist/.external/lib/type-fest/source/conditional-except.d.ts +45 -0
  41. package/dist/.external/lib/type-fest/source/conditional-keys.d.ts +47 -0
  42. package/dist/.external/lib/type-fest/source/conditional-pick.d.ts +44 -0
  43. package/dist/.external/lib/type-fest/source/delimiter-case.d.ts +93 -0
  44. package/dist/.external/lib/type-fest/source/delimiter-cased-properties-deep.d.ts +60 -0
  45. package/dist/.external/lib/type-fest/source/delimiter-cased-properties.d.ts +37 -0
  46. package/dist/.external/lib/type-fest/source/entries.d.ts +62 -0
  47. package/dist/.external/lib/type-fest/source/entry.d.ts +65 -0
  48. package/dist/.external/lib/type-fest/source/exact.d.ts +73 -0
  49. package/dist/.external/lib/type-fest/source/except.d.ts +57 -0
  50. package/dist/.external/lib/type-fest/source/fixed-length-array.d.ts +43 -0
  51. package/dist/.external/lib/type-fest/source/get.d.ts +184 -0
  52. package/dist/.external/lib/type-fest/source/has-optional-keys.d.ts +21 -0
  53. package/dist/.external/lib/type-fest/source/has-required-keys.d.ts +59 -0
  54. package/dist/.external/lib/type-fest/source/includes.d.ts +22 -0
  55. package/dist/.external/lib/type-fest/source/internal.d.ts +59 -0
  56. package/dist/.external/lib/type-fest/source/invariant-of.d.ts +76 -0
  57. package/dist/.external/lib/type-fest/source/iterable-element.d.ts +54 -0
  58. package/dist/.external/lib/type-fest/source/join.d.ts +30 -0
  59. package/dist/.external/lib/type-fest/source/jsonify.d.ts +90 -0
  60. package/dist/.external/lib/type-fest/source/kebab-case.d.ts +38 -0
  61. package/dist/.external/lib/type-fest/source/kebab-cased-properties-deep.d.ts +47 -0
  62. package/dist/.external/lib/type-fest/source/kebab-cased-properties.d.ts +30 -0
  63. package/dist/.external/lib/type-fest/source/last-array-element.d.ts +28 -0
  64. package/dist/.external/lib/type-fest/source/literal-to-primitive.d.ts +36 -0
  65. package/dist/.external/lib/type-fest/source/literal-union.d.ts +35 -0
  66. package/dist/.external/lib/type-fest/source/merge-exclusive.d.ts +41 -0
  67. package/dist/.external/lib/type-fest/source/merge.d.ts +27 -0
  68. package/dist/.external/lib/type-fest/source/multidimensional-array.d.ts +43 -0
  69. package/dist/.external/lib/type-fest/source/multidimensional-readonly-array.d.ts +47 -0
  70. package/dist/.external/lib/type-fest/source/mutable.d.ts +5 -0
  71. package/dist/.external/lib/type-fest/source/numeric.d.ts +170 -0
  72. package/dist/.external/lib/type-fest/source/observable-like.d.ts +62 -0
  73. package/dist/.external/lib/type-fest/source/opaque.d.ts +107 -0
  74. package/dist/.external/lib/type-fest/source/optional-keys-of.d.ts +38 -0
  75. package/dist/.external/lib/type-fest/source/package-json.d.ts +663 -0
  76. package/dist/.external/lib/type-fest/source/partial-deep.d.ts +113 -0
  77. package/dist/.external/lib/type-fest/source/partial-on-undefined-deep.d.ts +70 -0
  78. package/dist/.external/lib/type-fest/source/pascal-case.d.ts +38 -0
  79. package/dist/.external/lib/type-fest/source/pascal-cased-properties-deep.d.ts +54 -0
  80. package/dist/.external/lib/type-fest/source/pascal-cased-properties.d.ts +34 -0
  81. package/dist/.external/lib/type-fest/source/primitive.d.ts +13 -0
  82. package/dist/.external/lib/type-fest/source/promisable.d.ts +25 -0
  83. package/dist/.external/lib/type-fest/source/promise-value.d.ts +29 -0
  84. package/dist/.external/lib/type-fest/source/readonly-deep.d.ts +85 -0
  85. package/dist/.external/lib/type-fest/source/readonly-tuple.d.ts +41 -0
  86. package/dist/.external/lib/type-fest/source/remove-index-signature.d.ts +104 -0
  87. package/dist/.external/lib/type-fest/source/replace.d.ts +67 -0
  88. package/dist/.external/lib/type-fest/source/require-all-or-none.d.ts +36 -0
  89. package/dist/.external/lib/type-fest/source/require-at-least-one.d.ts +35 -0
  90. package/dist/.external/lib/type-fest/source/require-exactly-one.d.ts +34 -0
  91. package/dist/.external/lib/type-fest/source/required-keys-of.d.ts +29 -0
  92. package/dist/.external/lib/type-fest/source/schema.d.ts +72 -0
  93. package/dist/.external/lib/type-fest/source/screaming-snake-case.d.ts +33 -0
  94. package/dist/.external/lib/type-fest/source/set-non-nullable.d.ts +35 -0
  95. package/dist/.external/lib/type-fest/source/set-optional.d.ts +35 -0
  96. package/dist/.external/lib/type-fest/source/set-required.d.ts +35 -0
  97. package/dist/.external/lib/type-fest/source/set-return-type.d.ts +31 -0
  98. package/dist/.external/lib/type-fest/source/simplify.d.ts +83 -0
  99. package/dist/.external/lib/type-fest/source/snake-case.d.ts +38 -0
  100. package/dist/.external/lib/type-fest/source/snake-cased-properties-deep.d.ts +47 -0
  101. package/dist/.external/lib/type-fest/source/snake-cased-properties.d.ts +30 -0
  102. package/dist/.external/lib/type-fest/source/split.d.ts +29 -0
  103. package/dist/.external/lib/type-fest/source/spread.d.ts +85 -0
  104. package/dist/.external/lib/type-fest/source/string-key-of.d.ts +25 -0
  105. package/dist/.external/lib/type-fest/source/stringified.d.ts +23 -0
  106. package/dist/.external/lib/type-fest/source/trim.d.ts +25 -0
  107. package/dist/.external/lib/type-fest/source/tsconfig-json.d.ts +1172 -0
  108. package/dist/.external/lib/type-fest/source/typed-array.d.ts +17 -0
  109. package/dist/.external/lib/type-fest/source/union-to-intersection.d.ts +60 -0
  110. package/dist/.external/lib/type-fest/source/value-of.d.ts +42 -0
  111. package/dist/.external/lib/type-fest/source/writable.d.ts +40 -0
  112. package/dist/api/cjs/ApiProvider/ApiProvider.cjs +80 -0
  113. package/dist/{core/cjs/Wrappers → api/cjs}/ApiProvider/hooks/useProvideApi.cjs +26 -25
  114. package/dist/{core/cjs/Wrappers → api/cjs}/ApiProvider/hooks/useProvideBulk.cjs +5 -3
  115. package/dist/{core/cjs/Wrappers → api/cjs}/ApiProvider/hooks/useProvideForm.cjs +1 -1
  116. package/dist/{core/cjs/Wrappers → api/cjs}/ApiProvider/hooks/utils/useApiActions.cjs +15 -15
  117. package/dist/{core/cjs/Wrappers → api/cjs}/ApiProvider/hooks/utils/useStreamingData.cjs +2 -2
  118. package/dist/{core/cjs/Wrappers → api/cjs}/ApiProvider/utils/getValidationSchema.cjs +1 -1
  119. package/dist/{core/cjs/Wrappers → api/cjs}/Provider/Contexts/LangContext.cjs +20 -6
  120. package/dist/api/cjs/Provider/Provider.cjs +51 -0
  121. package/dist/{core/cjs/Wrappers → api/cjs}/Provider/hooks/useProvideAuth.cjs +18 -17
  122. package/dist/{core/cjs/Wrappers → api/cjs}/Provider/hooks/useProvideInfo.cjs +6 -4
  123. package/dist/api/cjs/Provider/hooks/useProvideLang.cjs +76 -0
  124. package/dist/api/cjs/_virtual/_commonjsHelpers.cjs +6 -0
  125. package/dist/api/cjs/_virtual/index.cjs +5 -0
  126. package/dist/api/cjs/_virtual/index2.cjs +5 -0
  127. package/dist/api/cjs/_virtual/index3.cjs +6 -0
  128. package/dist/api/cjs/_virtual/index4.cjs +4 -0
  129. package/dist/api/cjs/adapters/AdaptersContext.cjs +10 -0
  130. package/dist/api/cjs/auth/authFetch.cjs +63 -0
  131. package/dist/api/cjs/auth/userCRUD.cjs +20 -0
  132. package/dist/api/cjs/fetchers/createItem.cjs +14 -0
  133. package/dist/api/cjs/fetchers/deleteItem.cjs +14 -0
  134. package/dist/api/cjs/fetchers/downloadItems.cjs +33 -0
  135. package/dist/api/cjs/fetchers/formCreateItem.cjs +18 -0
  136. package/dist/api/cjs/fetchers/formUpdateItem.cjs +18 -0
  137. package/dist/api/cjs/fetchers/getInfo.cjs +10 -0
  138. package/dist/api/cjs/fetchers/getItem.cjs +14 -0
  139. package/dist/api/cjs/fetchers/getItems.cjs +13 -0
  140. package/dist/api/cjs/fetchers/postBulkAction.cjs +14 -0
  141. package/dist/api/cjs/fetchers/request.cjs +9 -0
  142. package/dist/api/cjs/fetchers/updateItem.cjs +14 -0
  143. package/dist/api/cjs/fetchers/uploadItems.cjs +24 -0
  144. package/dist/{core → api}/cjs/hooks/auth/useAuth.cjs +1 -1
  145. package/dist/{core → api}/cjs/hooks/auth/useInfo.cjs +1 -1
  146. package/dist/api/cjs/hooks/useDidUpdate.cjs +20 -0
  147. package/dist/api/cjs/index.cjs +75 -0
  148. package/dist/{utils/cjs → api/cjs/utils}/convertToFormData/convertToFormData.cjs +5 -5
  149. package/dist/{utils/cjs → api/cjs/utils}/createFetchParams/createFetchParams.cjs +1 -3
  150. package/dist/api/esm/ApiProvider/ApiProvider.mjs +80 -0
  151. package/dist/{core/esm/Wrappers → api/esm}/ApiProvider/hooks/useProvideApi.mjs +19 -18
  152. package/dist/{core/esm/Wrappers → api/esm}/ApiProvider/hooks/useProvideBulk.mjs +5 -3
  153. package/dist/{core/esm/Wrappers → api/esm}/ApiProvider/hooks/useProvideForm.mjs +1 -1
  154. package/dist/{core/esm/Wrappers → api/esm}/ApiProvider/hooks/utils/useApiActions.mjs +15 -15
  155. package/dist/{core/esm/Wrappers → api/esm}/ApiProvider/hooks/utils/useStreamingData.mjs +1 -1
  156. package/dist/{core/esm/Wrappers → api/esm}/ApiProvider/utils/getValidationSchema.mjs +2 -2
  157. package/dist/{core/esm/Wrappers → api/esm}/Provider/Contexts/LangContext.mjs +21 -7
  158. package/dist/api/esm/Provider/Provider.mjs +51 -0
  159. package/dist/{core/esm/Wrappers → api/esm}/Provider/hooks/useProvideAuth.mjs +16 -15
  160. package/dist/{core/esm/Wrappers → api/esm}/Provider/hooks/useProvideInfo.mjs +5 -3
  161. package/dist/api/esm/Provider/hooks/useProvideLang.mjs +76 -0
  162. package/dist/api/esm/_virtual/_commonjsHelpers.mjs +6 -0
  163. package/dist/api/esm/_virtual/index.mjs +5 -0
  164. package/dist/api/esm/_virtual/index2.mjs +5 -0
  165. package/dist/api/esm/_virtual/index3.mjs +7 -0
  166. package/dist/api/esm/_virtual/index4.mjs +4 -0
  167. package/dist/api/esm/adapters/AdaptersContext.mjs +10 -0
  168. package/dist/api/esm/auth/authFetch.mjs +63 -0
  169. package/dist/api/esm/auth/userCRUD.mjs +20 -0
  170. package/dist/api/esm/fetchers/createItem.mjs +14 -0
  171. package/dist/api/esm/fetchers/deleteItem.mjs +14 -0
  172. package/dist/api/esm/fetchers/downloadItems.mjs +33 -0
  173. package/dist/api/esm/fetchers/formCreateItem.mjs +18 -0
  174. package/dist/api/esm/fetchers/formUpdateItem.mjs +18 -0
  175. package/dist/api/esm/fetchers/getInfo.mjs +10 -0
  176. package/dist/api/esm/fetchers/getItem.mjs +14 -0
  177. package/dist/api/esm/fetchers/getItems.mjs +13 -0
  178. package/dist/api/esm/fetchers/postBulkAction.mjs +14 -0
  179. package/dist/api/esm/fetchers/request.mjs +9 -0
  180. package/dist/api/esm/fetchers/updateItem.mjs +14 -0
  181. package/dist/api/esm/fetchers/uploadItems.mjs +24 -0
  182. package/dist/{core → api}/esm/hooks/auth/useAuth.mjs +1 -1
  183. package/dist/{core → api}/esm/hooks/auth/useInfo.mjs +1 -1
  184. package/dist/api/esm/hooks/useDidUpdate.mjs +20 -0
  185. package/dist/api/esm/index.mjs +75 -0
  186. package/dist/{utils/esm → api/esm/utils}/convertToFormData/convertToFormData.mjs +5 -5
  187. package/dist/{utils/esm → api/esm/utils}/createFetchParams/createFetchParams.mjs +1 -3
  188. package/dist/api/lib/ApiProvider/ApiProvider.d.ts +17 -0
  189. package/dist/{core/lib/Wrappers → api/lib}/ApiProvider/Contexts/BulkActionsContext.d.ts +1 -1
  190. package/dist/api/lib/ApiProvider/Contexts/FormContext.d.ts +5 -0
  191. package/dist/api/lib/ApiProvider/hooks/types.d.ts +150 -0
  192. package/dist/api/lib/ApiProvider/hooks/useProvideBulk.d.ts +7 -0
  193. package/dist/api/lib/ApiProvider/hooks/useProvideForm.d.ts +2 -0
  194. package/dist/api/lib/ApiProvider/hooks/utils/useApiActions.d.ts +11 -0
  195. package/dist/{core/lib/Wrappers → api/lib}/ApiProvider/hooks/utils/useStreamingData.d.ts +26 -26
  196. package/dist/api/lib/ApiProvider/types.d.ts +51 -0
  197. package/dist/{core/lib/Wrappers → api/lib}/ApiProvider/utils/getDefaultValues.d.ts +2 -2
  198. package/dist/{core/lib/Wrappers → api/lib}/ApiProvider/utils/getValidationSchema.d.ts +1 -1
  199. package/dist/{core/lib/Wrappers → api/lib}/Provider/Contexts/AuthContext.d.ts +1 -1
  200. package/dist/{core/lib/Wrappers → api/lib}/Provider/Contexts/InfoContext.d.ts +1 -1
  201. package/dist/{core/lib/Wrappers → api/lib}/Provider/Contexts/types.d.ts +5 -4
  202. package/dist/api/lib/Provider/Provider.d.ts +14 -0
  203. package/dist/api/lib/Provider/hooks/types.d.ts +22 -0
  204. package/dist/api/lib/Provider/hooks/useProvideAuth.d.ts +17 -0
  205. package/dist/{core/lib/Wrappers → api/lib}/Provider/hooks/useProvideInfo.d.ts +2 -2
  206. package/dist/{core/lib/Wrappers → api/lib}/Provider/hooks/useProvideLang.d.ts +1 -2
  207. package/dist/api/lib/Provider/types.d.ts +35 -0
  208. package/dist/api/lib/adapters/AdaptersContext.d.ts +10 -0
  209. package/dist/api/lib/adapters/types.d.ts +69 -0
  210. package/dist/{core/lib/Wrappers/Provider/utils → api/lib/auth}/authFetch.d.ts +13 -7
  211. package/dist/api/lib/auth/types.d.ts +40 -0
  212. package/dist/api/lib/auth/userCRUD.d.ts +22 -0
  213. package/dist/{core/lib/Wrappers/ApiProvider/utils/bulkActions/types.d.ts → api/lib/fetchers/bulkActions.types.d.ts} +3 -3
  214. package/dist/api/lib/fetchers/createItem.d.ts +4 -0
  215. package/dist/api/lib/fetchers/deleteItem.d.ts +4 -0
  216. package/dist/api/lib/fetchers/downloadItems.d.ts +4 -0
  217. package/dist/api/lib/fetchers/formCreateItem.d.ts +4 -0
  218. package/dist/api/lib/fetchers/formUpdateItem.d.ts +4 -0
  219. package/dist/{core/lib/Wrappers/ApiProvider/utils/api → api/lib/fetchers}/getInfo.d.ts +3 -1
  220. package/dist/api/lib/fetchers/getItem.d.ts +4 -0
  221. package/dist/{core/lib/Wrappers/ApiProvider/utils/api → api/lib/fetchers}/getItems.d.ts +3 -1
  222. package/dist/api/lib/fetchers/postBulkAction.d.ts +4 -0
  223. package/dist/api/lib/fetchers/request.d.ts +7 -0
  224. package/dist/{core/lib/Wrappers/ApiProvider/utils/api → api/lib/fetchers}/types.d.ts +3 -7
  225. package/dist/api/lib/fetchers/updateItem.d.ts +4 -0
  226. package/dist/api/lib/fetchers/uploadItems.d.ts +3 -0
  227. package/dist/api/lib/fetchers/uploadItems.test.d.ts +1 -0
  228. package/dist/{core → api}/lib/hooks/auth/types.d.ts +2 -39
  229. package/dist/api/lib/hooks/auth/useAuth.test.d.ts +1 -0
  230. package/dist/api/lib/hooks/auth/useInfo.test.d.ts +1 -0
  231. package/dist/api/lib/hooks/useDidUpdate.d.ts +3 -0
  232. package/dist/api/lib/index.d.ts +35 -0
  233. package/dist/api/lib/utils/convertToFormData/convertToFormData.d.ts +17 -0
  234. package/dist/api/lib/utils/convertToFormData/convertToFormData.test.d.ts +1 -0
  235. package/dist/{utils/lib → api/lib/utils}/createFetchParams/createFetchParams.d.ts +3 -4
  236. package/dist/api/lib/utils/createFetchParams/createFetchParams.test.d.ts +1 -0
  237. package/dist/{utils/lib → api/lib/utils}/parseResponse/parseResponse.d.ts +1 -2
  238. package/dist/api/lib/utils/parseResponse/parseResponse.test.d.ts +1 -0
  239. package/dist/constants/cjs/index.cjs +16 -2
  240. package/dist/constants/esm/index.mjs +16 -2
  241. package/dist/core/cjs/Dialogs/AddDialog.cjs +2 -2
  242. package/dist/core/cjs/Dialogs/EditDialog.cjs +2 -2
  243. package/dist/core/cjs/Menu/UserMenu/UserMenu.cjs +2 -2
  244. package/dist/core/cjs/Modals/CommonModal.cjs +2 -2
  245. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useActions.cjs +5 -5
  246. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/Cell.cjs +4 -4
  247. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter.cjs +4 -4
  248. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/HeaderAdvancedFiltersMenuButton.cjs +4 -4
  249. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/useColumns.cjs +5 -5
  250. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useToolbar/useToolbar.cjs +9 -9
  251. package/dist/core/cjs/Wrappers/ApiProvider/ApiProvider.cjs +8 -74
  252. package/dist/core/cjs/Wrappers/Provider/Provider.cjs +18 -47
  253. package/dist/core/cjs/adapters/web/cookieTransport.cjs +15 -0
  254. package/dist/core/cjs/adapters/web/index.cjs +23 -0
  255. package/dist/core/cjs/adapters/web/webFileDownloadAdapter.cjs +16 -0
  256. package/dist/core/cjs/adapters/web/webFormDataAdapter.cjs +8 -0
  257. package/dist/core/cjs/adapters/web/webNetworkAdapter.cjs +6 -0
  258. package/dist/core/cjs/adapters/web/webOAuthOpener.cjs +26 -0
  259. package/dist/core/cjs/adapters/web/webStorageAdapter.cjs +21 -0
  260. package/dist/core/cjs/fab-react-toolkit-patch/api/hooks/useProvideApi.cjs +7 -12
  261. package/dist/core/cjs/fab-react-toolkit-patch/api/hooks/useProvideBulk.cjs +2 -2
  262. package/dist/core/cjs/fab-react-toolkit-patch/api/utils/api/downloadItems.cjs +5 -3
  263. package/dist/core/cjs/fab-react-toolkit-patch/api/utils/api/getItems.cjs +6 -5
  264. package/dist/core/cjs/fab-react-toolkit-patch/auth/utils/authFetch.cjs +19 -15
  265. package/dist/core/cjs/fab-react-toolkit-patch/auth/utils/userCRUD.cjs +9 -6
  266. package/dist/core/cjs/hooks/api/useBulkActions.cjs +2 -5
  267. package/dist/core/cjs/hooks/api/useForms.cjs +5 -5
  268. package/dist/core/cjs/index.cjs +83 -6
  269. package/dist/core/esm/Dialogs/AddDialog.mjs +1 -1
  270. package/dist/core/esm/Dialogs/EditDialog.mjs +1 -1
  271. package/dist/core/esm/Menu/UserMenu/UserMenu.mjs +1 -1
  272. package/dist/core/esm/Modals/CommonModal.mjs +1 -1
  273. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useActions.mjs +1 -1
  274. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/Cell.mjs +1 -1
  275. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter.mjs +1 -1
  276. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/HeaderAdvancedFiltersMenuButton.mjs +1 -1
  277. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/useColumns.mjs +1 -1
  278. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useToolbar/useToolbar.mjs +1 -1
  279. package/dist/core/esm/Wrappers/ApiProvider/ApiProvider.mjs +5 -73
  280. package/dist/core/esm/Wrappers/Provider/Provider.mjs +15 -46
  281. package/dist/core/esm/adapters/web/cookieTransport.mjs +15 -0
  282. package/dist/core/esm/adapters/web/index.mjs +23 -0
  283. package/dist/core/esm/adapters/web/webFileDownloadAdapter.mjs +16 -0
  284. package/dist/core/esm/adapters/web/webFormDataAdapter.mjs +8 -0
  285. package/dist/core/esm/adapters/web/webNetworkAdapter.mjs +6 -0
  286. package/dist/core/esm/adapters/web/webOAuthOpener.mjs +26 -0
  287. package/dist/core/esm/adapters/web/webStorageAdapter.mjs +21 -0
  288. package/dist/core/esm/fab-react-toolkit-patch/api/hooks/useProvideApi.mjs +1 -6
  289. package/dist/core/esm/fab-react-toolkit-patch/api/hooks/useProvideBulk.mjs +1 -1
  290. package/dist/core/esm/fab-react-toolkit-patch/api/utils/api/downloadItems.mjs +5 -3
  291. package/dist/core/esm/fab-react-toolkit-patch/api/utils/api/getItems.mjs +4 -3
  292. package/dist/core/esm/fab-react-toolkit-patch/auth/utils/authFetch.mjs +15 -11
  293. package/dist/core/esm/fab-react-toolkit-patch/auth/utils/userCRUD.mjs +8 -5
  294. package/dist/core/esm/hooks/api/useBulkActions.mjs +2 -5
  295. package/dist/core/esm/hooks/api/useForms.mjs +1 -1
  296. package/dist/core/esm/index.mjs +21 -4
  297. package/dist/core/lib/Tables/NextGenDataGrid/types.d.ts +1 -1
  298. package/dist/core/lib/Wrappers/ApiProvider/ApiProvider.d.ts +4 -17
  299. package/dist/core/lib/Wrappers/ApiProvider/types.d.ts +3 -47
  300. package/dist/core/lib/Wrappers/Provider/Provider.d.ts +4 -14
  301. package/dist/core/lib/Wrappers/Provider/types.d.ts +6 -27
  302. package/dist/core/lib/adapters/web/cookieTransport.d.ts +2 -0
  303. package/dist/core/lib/adapters/web/index.d.ts +9 -0
  304. package/dist/core/lib/adapters/web/webAdapters.test.d.ts +1 -0
  305. package/dist/core/lib/adapters/web/webFileDownloadAdapter.d.ts +2 -0
  306. package/dist/core/lib/adapters/web/webFormDataAdapter.d.ts +2 -0
  307. package/dist/core/lib/adapters/web/webNetworkAdapter.d.ts +2 -0
  308. package/dist/core/lib/adapters/web/webOAuthOpener.d.ts +2 -0
  309. package/dist/core/lib/adapters/web/webStorageAdapter.d.ts +3 -0
  310. package/dist/core/lib/fab-react-toolkit-patch/api/hooks/useProvideApi.d.ts +1 -1
  311. package/dist/core/lib/fab-react-toolkit-patch/api/hooks/useProvideBulk.d.ts +1 -1
  312. package/dist/core/lib/fab-react-toolkit-patch/api/utils/api/downloadItems.d.ts +2 -2
  313. package/dist/core/lib/fab-react-toolkit-patch/api/utils/api/getItems.d.ts +3 -2
  314. package/dist/core/lib/fab-react-toolkit-patch/auth/utils/authFetch.d.ts +11 -6
  315. package/dist/core/lib/fab-react-toolkit-patch/auth/utils/userCRUD.d.ts +5 -3
  316. package/dist/core/lib/hooks/api/types.d.ts +1 -59
  317. package/dist/core/lib/hooks/api/useForms.d.ts +1 -1
  318. package/dist/core/lib/index.d.ts +5 -6
  319. package/dist/core/lib/test-helpers/types.d.ts +1 -1
  320. package/dist/jsonforms/cjs/MantineInputs/MantineFileInput.cjs +13 -4
  321. package/dist/jsonforms/cjs/MantineInputs/MantineObjectInput.cjs +23 -12
  322. package/dist/jsonforms/cjs/complex/MantineArrayControl/DeleteDialog.cjs +38 -7
  323. package/dist/jsonforms/cjs/complex/MantineArrayControl/MantineArrayControl.cjs +16 -11
  324. package/dist/jsonforms/cjs/complex/MantineTableControl/MantineTableControl.cjs +117 -23
  325. package/dist/jsonforms/cjs/complex/MantineTableControl/TableToolbar.cjs +30 -4
  326. package/dist/jsonforms/cjs/hooks/useContextProps.cjs +5 -7
  327. package/dist/jsonforms/cjs/hooks/useNavigationComponent.cjs +48 -13
  328. package/dist/jsonforms/cjs/hooks/useToolbarComponent.cjs +31 -11
  329. package/dist/jsonforms/cjs/labels/MantineLabelRenderer.cjs +9 -1
  330. package/dist/jsonforms/cjs/layouts/Array/ArrayToolbar.cjs +15 -4
  331. package/dist/jsonforms/cjs/layouts/Array/ExpandPanelRenderer.cjs +83 -18
  332. package/dist/jsonforms/cjs/layouts/Array/MantineArrayLayout.cjs +76 -43
  333. package/dist/jsonforms/cjs/layouts/MantineHotizontalLayoutRenderer.cjs +2 -2
  334. package/dist/jsonforms/cjs/layouts/MantineVerticalLayoutRenderer.cjs +2 -2
  335. package/dist/jsonforms/esm/MantineInputs/MantineFileInput.mjs +16 -7
  336. package/dist/jsonforms/esm/MantineInputs/MantineObjectInput.mjs +23 -12
  337. package/dist/jsonforms/esm/complex/MantineArrayControl/DeleteDialog.mjs +40 -9
  338. package/dist/jsonforms/esm/complex/MantineArrayControl/MantineArrayControl.mjs +17 -12
  339. package/dist/jsonforms/esm/complex/MantineTableControl/MantineTableControl.mjs +118 -24
  340. package/dist/jsonforms/esm/complex/MantineTableControl/TableToolbar.mjs +31 -5
  341. package/dist/jsonforms/esm/hooks/useContextProps.mjs +5 -7
  342. package/dist/jsonforms/esm/hooks/useNavigationComponent.mjs +49 -14
  343. package/dist/jsonforms/esm/hooks/useToolbarComponent.mjs +32 -12
  344. package/dist/jsonforms/esm/labels/MantineLabelRenderer.mjs +9 -1
  345. package/dist/jsonforms/esm/layouts/Array/ArrayToolbar.mjs +16 -5
  346. package/dist/jsonforms/esm/layouts/Array/ExpandPanelRenderer.mjs +85 -20
  347. package/dist/jsonforms/esm/layouts/Array/MantineArrayLayout.mjs +79 -46
  348. package/dist/jsonforms/esm/layouts/MantineHotizontalLayoutRenderer.mjs +2 -2
  349. package/dist/jsonforms/esm/layouts/MantineVerticalLayoutRenderer.mjs +2 -2
  350. package/dist/jsonforms/lib/MantineInputs/MantineObjectInput.d.ts +1 -1
  351. package/dist/jsonforms/lib/complex/MantineTableControl/MantineTableControl.customizer.test.d.ts +1 -0
  352. package/dist/jsonforms/lib/complex/MantineTableControl/types.d.ts +1 -0
  353. package/dist/jsonforms/lib/hooks/useContextProps.d.ts +3 -1
  354. package/dist/jsonforms/lib/hooks/useNavigationComponent.d.ts +1 -1
  355. package/dist/jsonforms/lib/layouts/Array/ExpandPanelRenderer.d.ts +1 -1
  356. package/dist/jsonforms/lib/layouts/Array/MantineArrayLayout.d.ts +1 -1
  357. package/dist/jsonforms/lib/test-helpers/inputWrap.d.ts +2 -2
  358. package/dist/react-native-adapters/cjs/asyncStorageAdapter.cjs +8 -0
  359. package/dist/react-native-adapters/cjs/bearerTransport.cjs +29 -0
  360. package/dist/react-native-adapters/cjs/createReactNativeAdapters.cjs +24 -0
  361. package/dist/react-native-adapters/cjs/index.cjs +16 -0
  362. package/dist/react-native-adapters/cjs/rnFileDownloadAdapter.cjs +24 -0
  363. package/dist/react-native-adapters/cjs/rnFormDataAdapter.cjs +15 -0
  364. package/dist/react-native-adapters/cjs/rnNetworkAdapter.cjs +9 -0
  365. package/dist/react-native-adapters/cjs/rnOAuthOpener.cjs +9 -0
  366. package/dist/react-native-adapters/esm/asyncStorageAdapter.mjs +8 -0
  367. package/dist/react-native-adapters/esm/bearerTransport.mjs +29 -0
  368. package/dist/react-native-adapters/esm/createReactNativeAdapters.mjs +24 -0
  369. package/dist/react-native-adapters/esm/index.mjs +16 -0
  370. package/dist/react-native-adapters/esm/rnFileDownloadAdapter.mjs +24 -0
  371. package/dist/react-native-adapters/esm/rnFormDataAdapter.mjs +15 -0
  372. package/dist/react-native-adapters/esm/rnNetworkAdapter.mjs +9 -0
  373. package/dist/react-native-adapters/esm/rnOAuthOpener.mjs +9 -0
  374. package/dist/react-native-adapters/lib/asyncStorageAdapter.d.ts +7 -0
  375. package/dist/react-native-adapters/lib/asyncStorageAdapter.test.d.ts +1 -0
  376. package/dist/react-native-adapters/lib/bearerTransport.d.ts +5 -0
  377. package/dist/react-native-adapters/lib/bearerTransport.test.d.ts +1 -0
  378. package/dist/react-native-adapters/lib/createReactNativeAdapters.d.ts +11 -0
  379. package/dist/react-native-adapters/lib/createReactNativeAdapters.test.d.ts +1 -0
  380. package/dist/react-native-adapters/lib/index.d.ts +8 -0
  381. package/dist/react-native-adapters/lib/rnFileDownloadAdapter.d.ts +7 -0
  382. package/dist/react-native-adapters/lib/rnFileDownloadAdapter.test.d.ts +1 -0
  383. package/dist/react-native-adapters/lib/rnFormDataAdapter.d.ts +2 -0
  384. package/dist/react-native-adapters/lib/rnFormDataAdapter.test.d.ts +1 -0
  385. package/dist/react-native-adapters/lib/rnNetworkAdapter.d.ts +4 -0
  386. package/dist/react-native-adapters/lib/rnNetworkAdapter.test.d.ts +1 -0
  387. package/dist/react-native-adapters/lib/rnOAuthOpener.d.ts +5 -0
  388. package/dist/react-native-adapters/lib/rnOAuthOpener.test.d.ts +1 -0
  389. package/dist/react-native-adapters/lib/types.d.ts +23 -0
  390. package/dist/utils/cjs/Memoizer/MemoWrapper.cjs +2 -2
  391. package/dist/utils/cjs/Memoizer/RenderWrapper.cjs +2 -2
  392. package/dist/utils/cjs/deepMerge/deepMerge.cjs +1 -1
  393. package/dist/utils/cjs/index.cjs +2 -6
  394. package/dist/utils/cjs/randomId/randomId.cjs +4 -0
  395. package/dist/utils/esm/Memoizer/MemoWrapper.mjs +1 -1
  396. package/dist/utils/esm/Memoizer/RenderWrapper.mjs +1 -1
  397. package/dist/utils/esm/deepMerge/deepMerge.mjs +1 -1
  398. package/dist/utils/esm/index.mjs +2 -6
  399. package/dist/utils/esm/randomId/randomId.mjs +4 -0
  400. package/dist/utils/lib/deepMerge/deepMerge.d.ts +2 -0
  401. package/dist/utils/lib/index.d.ts +1 -3
  402. package/dist/utils/lib/randomId/index.d.ts +1 -0
  403. package/dist/utils/lib/randomId/randomId.d.ts +2 -0
  404. package/dist/utils/lib/randomId/randomId.test.d.ts +1 -0
  405. package/package.json +11 -1
  406. package/dist/core/cjs/Wrappers/ApiProvider/utils/api/createItem.cjs +0 -14
  407. package/dist/core/cjs/Wrappers/ApiProvider/utils/api/deleteItem.cjs +0 -13
  408. package/dist/core/cjs/Wrappers/ApiProvider/utils/api/downloadItems.cjs +0 -39
  409. package/dist/core/cjs/Wrappers/ApiProvider/utils/api/formCreateItem.cjs +0 -12
  410. package/dist/core/cjs/Wrappers/ApiProvider/utils/api/formUpdateItem.cjs +0 -16
  411. package/dist/core/cjs/Wrappers/ApiProvider/utils/api/getInfo.cjs +0 -9
  412. package/dist/core/cjs/Wrappers/ApiProvider/utils/api/getItem.cjs +0 -13
  413. package/dist/core/cjs/Wrappers/ApiProvider/utils/api/getItems.cjs +0 -9
  414. package/dist/core/cjs/Wrappers/ApiProvider/utils/api/updateItem.cjs +0 -14
  415. package/dist/core/cjs/Wrappers/ApiProvider/utils/api/uploadItems.cjs +0 -26
  416. package/dist/core/cjs/Wrappers/ApiProvider/utils/bulkActions/postBulkAction.cjs +0 -14
  417. package/dist/core/cjs/Wrappers/Provider/hooks/useProvideLang.cjs +0 -45
  418. package/dist/core/cjs/Wrappers/Provider/utils/authFetch.cjs +0 -99
  419. package/dist/core/cjs/Wrappers/Provider/utils/userCRUD.cjs +0 -32
  420. package/dist/core/esm/Wrappers/ApiProvider/utils/api/createItem.mjs +0 -14
  421. package/dist/core/esm/Wrappers/ApiProvider/utils/api/deleteItem.mjs +0 -13
  422. package/dist/core/esm/Wrappers/ApiProvider/utils/api/downloadItems.mjs +0 -39
  423. package/dist/core/esm/Wrappers/ApiProvider/utils/api/formCreateItem.mjs +0 -12
  424. package/dist/core/esm/Wrappers/ApiProvider/utils/api/formUpdateItem.mjs +0 -16
  425. package/dist/core/esm/Wrappers/ApiProvider/utils/api/getInfo.mjs +0 -9
  426. package/dist/core/esm/Wrappers/ApiProvider/utils/api/getItem.mjs +0 -13
  427. package/dist/core/esm/Wrappers/ApiProvider/utils/api/getItems.mjs +0 -9
  428. package/dist/core/esm/Wrappers/ApiProvider/utils/api/updateItem.mjs +0 -14
  429. package/dist/core/esm/Wrappers/ApiProvider/utils/api/uploadItems.mjs +0 -26
  430. package/dist/core/esm/Wrappers/ApiProvider/utils/bulkActions/postBulkAction.mjs +0 -14
  431. package/dist/core/esm/Wrappers/Provider/hooks/useProvideLang.mjs +0 -45
  432. package/dist/core/esm/Wrappers/Provider/utils/authFetch.mjs +0 -99
  433. package/dist/core/esm/Wrappers/Provider/utils/userCRUD.mjs +0 -32
  434. package/dist/core/lib/Wrappers/ApiProvider/Contexts/FormContext.d.ts +0 -5
  435. package/dist/core/lib/Wrappers/ApiProvider/hooks/types.d.ts +0 -90
  436. package/dist/core/lib/Wrappers/ApiProvider/hooks/useProvideBulk.d.ts +0 -8
  437. package/dist/core/lib/Wrappers/ApiProvider/hooks/useProvideForm.d.ts +0 -2
  438. package/dist/core/lib/Wrappers/ApiProvider/hooks/utils/useApiActions.d.ts +0 -11
  439. package/dist/core/lib/Wrappers/ApiProvider/utils/api/createItem.d.ts +0 -3
  440. package/dist/core/lib/Wrappers/ApiProvider/utils/api/deleteItem.d.ts +0 -3
  441. package/dist/core/lib/Wrappers/ApiProvider/utils/api/downloadItems.d.ts +0 -3
  442. package/dist/core/lib/Wrappers/ApiProvider/utils/api/formCreateItem.d.ts +0 -3
  443. package/dist/core/lib/Wrappers/ApiProvider/utils/api/formUpdateItem.d.ts +0 -3
  444. package/dist/core/lib/Wrappers/ApiProvider/utils/api/getItem.d.ts +0 -3
  445. package/dist/core/lib/Wrappers/ApiProvider/utils/api/updateItem.d.ts +0 -3
  446. package/dist/core/lib/Wrappers/ApiProvider/utils/api/uploadItems.d.ts +0 -2
  447. package/dist/core/lib/Wrappers/ApiProvider/utils/bulkActions/postBulkAction.d.ts +0 -3
  448. package/dist/core/lib/Wrappers/Provider/hooks/types.d.ts +0 -24
  449. package/dist/core/lib/Wrappers/Provider/hooks/useProvideAuth.d.ts +0 -17
  450. package/dist/core/lib/Wrappers/Provider/utils/userCRUD.d.ts +0 -19
  451. package/dist/utils/lib/convertToFormData/convertToFormData.d.ts +0 -15
  452. /package/dist/{core/cjs/Wrappers → api/cjs}/ApiProvider/Contexts/BulkActionsContext.cjs +0 -0
  453. /package/dist/{core/cjs/Wrappers → api/cjs}/ApiProvider/Contexts/FormContext.cjs +0 -0
  454. /package/dist/{core/cjs/Wrappers → api/cjs}/ApiProvider/hooks/utils/useLatest.cjs +0 -0
  455. /package/dist/{core/cjs/Wrappers → api/cjs}/ApiProvider/utils/convertInfo.cjs +0 -0
  456. /package/dist/{core/cjs/Wrappers → api/cjs}/ApiProvider/utils/createQueryParams.cjs +0 -0
  457. /package/dist/{core/cjs/Wrappers → api/cjs}/ApiProvider/utils/getDefaultValues.cjs +0 -0
  458. /package/dist/{core/cjs/Wrappers → api/cjs}/Provider/Contexts/AuthContext.cjs +0 -0
  459. /package/dist/{core/cjs/Wrappers → api/cjs}/Provider/Contexts/InfoContext.cjs +0 -0
  460. /package/dist/{core → api}/cjs/translations/de.cjs +0 -0
  461. /package/dist/{utils/cjs → api/cjs/utils}/parseResponse/parseResponse.cjs +0 -0
  462. /package/dist/{core/esm/Wrappers → api/esm}/ApiProvider/Contexts/BulkActionsContext.mjs +0 -0
  463. /package/dist/{core/esm/Wrappers → api/esm}/ApiProvider/Contexts/FormContext.mjs +0 -0
  464. /package/dist/{core/esm/Wrappers → api/esm}/ApiProvider/hooks/utils/useLatest.mjs +0 -0
  465. /package/dist/{core/esm/Wrappers → api/esm}/ApiProvider/utils/convertInfo.mjs +0 -0
  466. /package/dist/{core/esm/Wrappers → api/esm}/ApiProvider/utils/createQueryParams.mjs +0 -0
  467. /package/dist/{core/esm/Wrappers → api/esm}/ApiProvider/utils/getDefaultValues.mjs +0 -0
  468. /package/dist/{core/esm/Wrappers → api/esm}/Provider/Contexts/AuthContext.mjs +0 -0
  469. /package/dist/{core/esm/Wrappers → api/esm}/Provider/Contexts/InfoContext.mjs +0 -0
  470. /package/dist/{core → api}/esm/translations/de.mjs +0 -0
  471. /package/dist/{utils/esm → api/esm/utils}/parseResponse/parseResponse.mjs +0 -0
  472. /package/dist/{core/lib/Wrappers/ApiProvider/hooks/useProvideApi.test.d.ts → api/lib/ApiProvider/ApiProvider.test.d.ts} +0 -0
  473. /package/dist/{core/lib/Wrappers → api/lib}/ApiProvider/Contexts/ApiContext.d.ts +0 -0
  474. /package/dist/{core/lib/Wrappers → api/lib}/ApiProvider/hooks/useProvideApi.d.ts +0 -0
  475. /package/dist/{core/lib/Wrappers/ApiProvider/hooks/useProvideBulk.test.d.ts → api/lib/ApiProvider/hooks/useProvideApi.test.d.ts} +0 -0
  476. /package/dist/{core/lib/Wrappers/ApiProvider/hooks/useProvideForm.test.d.ts → api/lib/ApiProvider/hooks/useProvideBulk.test.d.ts} +0 -0
  477. /package/dist/{core/lib/Wrappers/ApiProvider/hooks/utils/useApiActions.test.d.ts → api/lib/ApiProvider/hooks/useProvideForm.test.d.ts} +0 -0
  478. /package/dist/{core/lib/Wrappers/ApiProvider/hooks/utils/useLatest.test.d.ts → api/lib/ApiProvider/hooks/utils/useApiActions.test.d.ts} +0 -0
  479. /package/dist/{core/lib/Wrappers → api/lib}/ApiProvider/hooks/utils/useLatest.d.ts +0 -0
  480. /package/dist/{core/lib/Wrappers/ApiProvider/hooks/utils/useStreamingData.test.d.ts → api/lib/ApiProvider/hooks/utils/useLatest.test.d.ts} +0 -0
  481. /package/dist/{core/lib/Wrappers/ApiProvider/utils/api/createItem.test.d.ts → api/lib/ApiProvider/hooks/utils/useStreamingData.test.d.ts} +0 -0
  482. /package/dist/{core/lib/Wrappers → api/lib}/ApiProvider/utils/convertInfo.d.ts +0 -0
  483. /package/dist/{core/lib/Wrappers → api/lib}/ApiProvider/utils/convertInfo.test.d.ts +0 -0
  484. /package/dist/{core/lib/Wrappers → api/lib}/ApiProvider/utils/createQueryParams.d.ts +0 -0
  485. /package/dist/{core/lib/Wrappers → api/lib}/ApiProvider/utils/createQueryParams.test.d.ts +0 -0
  486. /package/dist/{core/lib/Wrappers → api/lib}/ApiProvider/utils/getDefaultValues.test.d.ts +0 -0
  487. /package/dist/{core/lib/Wrappers → api/lib}/ApiProvider/utils/getValidationSchema.test.d.ts +0 -0
  488. /package/dist/{core/lib/Wrappers → api/lib}/ApiProvider/utils/types.d.ts +0 -0
  489. /package/dist/{core/lib/Wrappers → api/lib}/Provider/Contexts/LangContext.d.ts +0 -0
  490. /package/dist/{core/lib/Wrappers/ApiProvider/utils/api/deleteItem.test.d.ts → api/lib/Provider/Provider.test.d.ts} +0 -0
  491. /package/dist/{core/lib/Wrappers → api/lib}/Provider/hooks/useProvideAuth.test.d.ts +0 -0
  492. /package/dist/{core/lib/Wrappers → api/lib}/Provider/hooks/useProvideInfo.test.d.ts +0 -0
  493. /package/dist/{core/lib/Wrappers → api/lib}/Provider/hooks/useProvideLang.test.d.ts +0 -0
  494. /package/dist/{core/lib/Wrappers/ApiProvider/utils/api/downloadItems.test.d.ts → api/lib/__tests__/purity.test.d.ts} +0 -0
  495. /package/dist/{core/lib/Wrappers/ApiProvider/utils/api/formCreateItem.test.d.ts → api/lib/__tests__/smoke.test.d.ts} +0 -0
  496. /package/dist/{core/lib/Wrappers/ApiProvider/utils/api/formUpdateItem.test.d.ts → api/lib/adapters/AdaptersContext.test.d.ts} +0 -0
  497. /package/dist/{core/lib/Wrappers/Provider/utils → api/lib/auth}/authFetch.test.d.ts +0 -0
  498. /package/dist/{core/lib/Wrappers/Provider/utils → api/lib/auth}/userCRUD.test.d.ts +0 -0
  499. /package/dist/{core/lib/Wrappers/ApiProvider/utils/api/getInfo.test.d.ts → api/lib/fetchers/createItem.test.d.ts} +0 -0
  500. /package/dist/{core/lib/Wrappers/ApiProvider/utils/api/getItem.test.d.ts → api/lib/fetchers/deleteItem.test.d.ts} +0 -0
  501. /package/dist/{core/lib/Wrappers/ApiProvider/utils/api/getItems.test.d.ts → api/lib/fetchers/downloadItems.test.d.ts} +0 -0
  502. /package/dist/{core/lib/Wrappers/ApiProvider/utils/api/updateItem.test.d.ts → api/lib/fetchers/formCreateItem.test.d.ts} +0 -0
  503. /package/dist/{core/lib/Wrappers/ApiProvider/utils/api/uploadItems.test.d.ts → api/lib/fetchers/formUpdateItem.test.d.ts} +0 -0
  504. /package/dist/{core/lib/Wrappers/ApiProvider/utils/bulkActions/postBulkAction.test.d.ts → api/lib/fetchers/getInfo.test.d.ts} +0 -0
  505. /package/dist/{core/lib/hooks/auth/useAuth.test.d.ts → api/lib/fetchers/getItem.test.d.ts} +0 -0
  506. /package/dist/{core/lib/hooks/auth/useInfo.test.d.ts → api/lib/fetchers/getItems.test.d.ts} +0 -0
  507. /package/dist/{utils/lib/convertToFormData/convertToFormData.test.d.ts → api/lib/fetchers/postBulkAction.test.d.ts} +0 -0
  508. /package/dist/{utils/lib/createFetchParams/createFetchParams.test.d.ts → api/lib/fetchers/request.test.d.ts} +0 -0
  509. /package/dist/{utils/lib/parseResponse/parseResponse.test.d.ts → api/lib/fetchers/updateItem.test.d.ts} +0 -0
  510. /package/dist/{core → api}/lib/hooks/auth/useAuth.d.ts +0 -0
  511. /package/dist/{core → api}/lib/hooks/auth/useInfo.d.ts +0 -0
  512. /package/dist/{core → api}/lib/translations/de.d.ts +0 -0
  513. /package/dist/{utils/lib → api/lib/utils}/convertToFormData/index.d.ts +0 -0
  514. /package/dist/{utils/lib → api/lib/utils}/createFetchParams/index.d.ts +0 -0
  515. /package/dist/{utils/lib → api/lib/utils}/parseResponse/index.d.ts +0 -0
@@ -184,7 +184,7 @@ let tuple = {
184
184
  return ValidationError.formatError(mixed.notType, params);
185
185
  }
186
186
  };
187
- var locale = Object.assign(/* @__PURE__ */ Object.create(null), {
187
+ Object.assign(/* @__PURE__ */ Object.create(null), {
188
188
  mixed,
189
189
  string,
190
190
  number,
@@ -234,9 +234,6 @@ const prefixes = {
234
234
  context: "$",
235
235
  value: "."
236
236
  };
237
- function create$9(key, options) {
238
- return new Reference(key, options);
239
- }
240
237
  class Reference {
241
238
  constructor(key, options = {}) {
242
239
  this.key = void 0;
@@ -426,9 +423,6 @@ function getIn(schema, path, value, context = value) {
426
423
  parentPath: lastPart
427
424
  };
428
425
  }
429
- function reach(obj, path, value, context) {
430
- return getIn(obj, path, value, context).schema;
431
- }
432
426
  class ReferenceSet extends Set {
433
427
  describe() {
434
428
  const description = [];
@@ -1159,80 +1153,6 @@ class MixedSchema extends Schema {
1159
1153
  }
1160
1154
  }
1161
1155
  create$8.prototype = MixedSchema.prototype;
1162
- function create$7() {
1163
- return new BooleanSchema();
1164
- }
1165
- class BooleanSchema extends Schema {
1166
- constructor() {
1167
- super({
1168
- type: "boolean",
1169
- check(v) {
1170
- if (v instanceof Boolean) v = v.valueOf();
1171
- return typeof v === "boolean";
1172
- }
1173
- });
1174
- this.withMutation(() => {
1175
- this.transform((value, _raw) => {
1176
- if (this.spec.coerce && !this.isType(value)) {
1177
- if (/^(true|1)$/i.test(String(value))) return true;
1178
- if (/^(false|0)$/i.test(String(value))) return false;
1179
- }
1180
- return value;
1181
- });
1182
- });
1183
- }
1184
- isTrue(message = boolean.isValue) {
1185
- return this.test({
1186
- message,
1187
- name: "is-value",
1188
- exclusive: true,
1189
- params: {
1190
- value: "true"
1191
- },
1192
- test(value) {
1193
- return isAbsent(value) || value === true;
1194
- }
1195
- });
1196
- }
1197
- isFalse(message = boolean.isValue) {
1198
- return this.test({
1199
- message,
1200
- name: "is-value",
1201
- exclusive: true,
1202
- params: {
1203
- value: "false"
1204
- },
1205
- test(value) {
1206
- return isAbsent(value) || value === false;
1207
- }
1208
- });
1209
- }
1210
- default(def) {
1211
- return super.default(def);
1212
- }
1213
- defined(msg) {
1214
- return super.defined(msg);
1215
- }
1216
- optional() {
1217
- return super.optional();
1218
- }
1219
- required(msg) {
1220
- return super.required(msg);
1221
- }
1222
- notRequired() {
1223
- return super.notRequired();
1224
- }
1225
- nullable() {
1226
- return super.nullable();
1227
- }
1228
- nonNullable(msg) {
1229
- return super.nonNullable(msg);
1230
- }
1231
- strip(v) {
1232
- return super.strip(v);
1233
- }
1234
- }
1235
- create$7.prototype = BooleanSchema.prototype;
1236
1156
  const isoReg = /^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;
1237
1157
  function parseIsoDate(date2) {
1238
1158
  const struct = parseDateStruct(date2);
@@ -1489,121 +1409,8 @@ class StringSchema extends Schema {
1489
1409
  }
1490
1410
  }
1491
1411
  create$6.prototype = StringSchema.prototype;
1492
- let isNaN$1 = (value) => value != +value;
1493
- function create$5() {
1494
- return new NumberSchema();
1495
- }
1496
- class NumberSchema extends Schema {
1497
- constructor() {
1498
- super({
1499
- type: "number",
1500
- check(value) {
1501
- if (value instanceof Number) value = value.valueOf();
1502
- return typeof value === "number" && !isNaN$1(value);
1503
- }
1504
- });
1505
- this.withMutation(() => {
1506
- this.transform((value, _raw) => {
1507
- if (!this.spec.coerce) return value;
1508
- let parsed = value;
1509
- if (typeof parsed === "string") {
1510
- parsed = parsed.replace(/\s/g, "");
1511
- if (parsed === "") return NaN;
1512
- parsed = +parsed;
1513
- }
1514
- if (this.isType(parsed) || parsed === null) return parsed;
1515
- return parseFloat(parsed);
1516
- });
1517
- });
1518
- }
1519
- min(min, message = number.min) {
1520
- return this.test({
1521
- message,
1522
- name: "min",
1523
- exclusive: true,
1524
- params: {
1525
- min
1526
- },
1527
- skipAbsent: true,
1528
- test(value) {
1529
- return value >= this.resolve(min);
1530
- }
1531
- });
1532
- }
1533
- max(max, message = number.max) {
1534
- return this.test({
1535
- message,
1536
- name: "max",
1537
- exclusive: true,
1538
- params: {
1539
- max
1540
- },
1541
- skipAbsent: true,
1542
- test(value) {
1543
- return value <= this.resolve(max);
1544
- }
1545
- });
1546
- }
1547
- lessThan(less, message = number.lessThan) {
1548
- return this.test({
1549
- message,
1550
- name: "max",
1551
- exclusive: true,
1552
- params: {
1553
- less
1554
- },
1555
- skipAbsent: true,
1556
- test(value) {
1557
- return value < this.resolve(less);
1558
- }
1559
- });
1560
- }
1561
- moreThan(more, message = number.moreThan) {
1562
- return this.test({
1563
- message,
1564
- name: "min",
1565
- exclusive: true,
1566
- params: {
1567
- more
1568
- },
1569
- skipAbsent: true,
1570
- test(value) {
1571
- return value > this.resolve(more);
1572
- }
1573
- });
1574
- }
1575
- positive(msg = number.positive) {
1576
- return this.moreThan(0, msg);
1577
- }
1578
- negative(msg = number.negative) {
1579
- return this.lessThan(0, msg);
1580
- }
1581
- integer(message = number.integer) {
1582
- return this.test({
1583
- name: "integer",
1584
- message,
1585
- skipAbsent: true,
1586
- test: (val) => Number.isInteger(val)
1587
- });
1588
- }
1589
- truncate() {
1590
- return this.transform((value) => !isAbsent(value) ? value | 0 : value);
1591
- }
1592
- round(method) {
1593
- var _method;
1594
- let avail = ["ceil", "floor", "round", "trunc"];
1595
- method = ((_method = method) == null ? void 0 : _method.toLowerCase()) || "round";
1596
- if (method === "trunc") return this.truncate();
1597
- if (avail.indexOf(method.toLowerCase()) === -1) throw new TypeError("Only valid options for round() are: " + avail.join(", "));
1598
- return this.transform((value) => !isAbsent(value) ? Math[method](value) : value);
1599
- }
1600
- }
1601
- create$5.prototype = NumberSchema.prototype;
1602
1412
  let invalidDate = /* @__PURE__ */ new Date("");
1603
1413
  let isDate = (obj) => Object.prototype.toString.call(obj) === "[object Date]";
1604
- function create$4() {
1605
- return new DateSchema();
1606
- }
1607
1414
  class DateSchema extends Schema {
1608
1415
  constructor() {
1609
1416
  super({
@@ -1663,8 +1470,6 @@ class DateSchema extends Schema {
1663
1470
  }
1664
1471
  }
1665
1472
  DateSchema.INVALID_DATE = invalidDate;
1666
- create$4.prototype = DateSchema.prototype;
1667
- create$4.INVALID_DATE = invalidDate;
1668
1473
  function sortFields(fields, excludedEdges = []) {
1669
1474
  let edges = [];
1670
1475
  let nodes = /* @__PURE__ */ new Set();
@@ -2210,258 +2015,19 @@ class ArraySchema extends Schema {
2210
2015
  }
2211
2016
  }
2212
2017
  create$2.prototype = ArraySchema.prototype;
2213
- function create$1(schemas) {
2214
- return new TupleSchema(schemas);
2215
- }
2216
- class TupleSchema extends Schema {
2217
- constructor(schemas) {
2218
- super({
2219
- type: "tuple",
2220
- spec: {
2221
- types: schemas
2222
- },
2223
- check(v) {
2224
- const types = this.spec.types;
2225
- return Array.isArray(v) && v.length === types.length;
2226
- }
2227
- });
2228
- this.withMutation(() => {
2229
- this.typeError(tuple.notType);
2230
- });
2231
- }
2232
- _cast(inputValue, options) {
2233
- const {
2234
- types
2235
- } = this.spec;
2236
- const value = super._cast(inputValue, options);
2237
- if (!this._typeCheck(value)) {
2238
- return value;
2239
- }
2240
- let isChanged = false;
2241
- const castArray = types.map((type, idx) => {
2242
- const castElement = type.cast(value[idx], Object.assign({}, options, {
2243
- path: `${options.path || ""}[${idx}]`,
2244
- parent: value,
2245
- originalValue: value[idx],
2246
- value: value[idx],
2247
- index: idx
2248
- }));
2249
- if (castElement !== value[idx]) isChanged = true;
2250
- return castElement;
2251
- });
2252
- return isChanged ? castArray : value;
2253
- }
2254
- _validate(_value, options = {}, panic, next) {
2255
- let itemTypes = this.spec.types;
2256
- super._validate(_value, options, panic, (tupleErrors, value) => {
2257
- var _options$originalValu2;
2258
- if (!this._typeCheck(value)) {
2259
- next(tupleErrors, value);
2260
- return;
2261
- }
2262
- let tests = [];
2263
- for (let [index, itemSchema] of itemTypes.entries()) {
2264
- var _options$originalValu;
2265
- tests[index] = itemSchema.asNestedTest({
2266
- options,
2267
- index,
2268
- parent: value,
2269
- parentPath: options.path,
2270
- originalParent: (_options$originalValu = options.originalValue) != null ? _options$originalValu : _value
2271
- });
2272
- }
2273
- this.runTests({
2274
- value,
2275
- tests,
2276
- originalValue: (_options$originalValu2 = options.originalValue) != null ? _options$originalValu2 : _value,
2277
- options
2278
- }, panic, (innerTypeErrors) => next(innerTypeErrors.concat(tupleErrors), value));
2279
- });
2280
- }
2281
- describe(options) {
2282
- const next = (options ? this.resolve(options) : this).clone();
2283
- const base = super.describe(options);
2284
- base.innerType = next.spec.types.map((schema, index) => {
2285
- var _innerOptions;
2286
- let innerOptions = options;
2287
- if ((_innerOptions = innerOptions) != null && _innerOptions.value) {
2288
- innerOptions = Object.assign({}, innerOptions, {
2289
- parent: innerOptions.value,
2290
- value: innerOptions.value[index]
2291
- });
2292
- }
2293
- return schema.describe(innerOptions);
2294
- });
2295
- return base;
2296
- }
2297
- }
2298
- create$1.prototype = TupleSchema.prototype;
2299
- function create(builder) {
2300
- return new Lazy(builder);
2301
- }
2302
- function catchValidationError(fn) {
2303
- try {
2304
- return fn();
2305
- } catch (err) {
2306
- if (ValidationError.isError(err)) return Promise.reject(err);
2307
- throw err;
2308
- }
2309
- }
2310
- class Lazy {
2311
- constructor(builder) {
2312
- this.type = "lazy";
2313
- this.__isYupSchema__ = true;
2314
- this.spec = void 0;
2315
- this._resolve = (value, options = {}) => {
2316
- let schema = this.builder(value, options);
2317
- if (!isSchema(schema)) throw new TypeError("lazy() functions must return a valid schema");
2318
- if (this.spec.optional) schema = schema.optional();
2319
- return schema.resolve(options);
2320
- };
2321
- this.builder = builder;
2322
- this.spec = {
2323
- meta: void 0,
2324
- optional: false
2325
- };
2326
- }
2327
- clone(spec) {
2328
- const next = new Lazy(this.builder);
2329
- next.spec = Object.assign({}, this.spec, spec);
2330
- return next;
2331
- }
2332
- optionality(optional) {
2333
- const next = this.clone({
2334
- optional
2335
- });
2336
- return next;
2337
- }
2338
- optional() {
2339
- return this.optionality(true);
2340
- }
2341
- resolve(options) {
2342
- return this._resolve(options.value, options);
2343
- }
2344
- cast(value, options) {
2345
- return this._resolve(value, options).cast(value, options);
2346
- }
2347
- asNestedTest(config) {
2348
- let {
2349
- key,
2350
- index,
2351
- parent,
2352
- options
2353
- } = config;
2354
- let value = parent[index != null ? index : key];
2355
- return this._resolve(value, Object.assign({}, options, {
2356
- value,
2357
- parent
2358
- })).asNestedTest(config);
2359
- }
2360
- validate(value, options) {
2361
- return catchValidationError(() => this._resolve(value, options).validate(value, options));
2362
- }
2363
- validateSync(value, options) {
2364
- return this._resolve(value, options).validateSync(value, options);
2365
- }
2366
- validateAt(path, value, options) {
2367
- return catchValidationError(() => this._resolve(value, options).validateAt(path, value, options));
2368
- }
2369
- validateSyncAt(path, value, options) {
2370
- return this._resolve(value, options).validateSyncAt(path, value, options);
2371
- }
2372
- isValid(value, options) {
2373
- try {
2374
- return this._resolve(value, options).isValid(value, options);
2375
- } catch (err) {
2376
- if (ValidationError.isError(err)) {
2377
- return Promise.resolve(false);
2378
- }
2379
- throw err;
2380
- }
2381
- }
2382
- isValidSync(value, options) {
2383
- return this._resolve(value, options).isValidSync(value, options);
2384
- }
2385
- describe(options) {
2386
- return options ? this.resolve(options).describe(options) : {
2387
- type: "lazy",
2388
- meta: this.spec.meta,
2389
- label: void 0
2390
- };
2391
- }
2392
- meta(...args) {
2393
- if (args.length === 0) return this.spec.meta;
2394
- let next = this.clone();
2395
- next.spec.meta = Object.assign(next.spec.meta || {}, args[0]);
2396
- return next;
2397
- }
2398
- get ["~standard"]() {
2399
- const schema = this;
2400
- const standard = {
2401
- version: 1,
2402
- vendor: "yup",
2403
- async validate(value) {
2404
- try {
2405
- const result = await schema.validate(value, {
2406
- abortEarly: false
2407
- });
2408
- return {
2409
- value: result
2410
- };
2411
- } catch (err) {
2412
- if (ValidationError.isError(err)) {
2413
- return {
2414
- issues: issuesFromValidationError(err)
2415
- };
2416
- }
2417
- throw err;
2418
- }
2419
- }
2420
- };
2421
- return standard;
2422
- }
2423
- }
2424
- function setLocale(custom) {
2425
- Object.keys(custom).forEach((type) => {
2426
- Object.keys(custom[type]).forEach((method) => {
2427
- locale[type][method] = custom[type][method];
2428
- });
2429
- });
2430
- }
2431
- function addMethod(schemaType, name, fn) {
2432
- if (!schemaType || !isSchema(schemaType.prototype)) throw new TypeError("You must provide a yup schema constructor function");
2433
- if (typeof name !== "string") throw new TypeError("A Method name must be provided");
2434
- if (typeof fn !== "function") throw new TypeError("Method function must be provided");
2435
- schemaType.prototype[name] = fn;
2436
- }
2437
2018
  export {
2438
2019
  ArraySchema,
2439
- BooleanSchema,
2440
2020
  DateSchema,
2441
- Lazy as LazySchema,
2442
2021
  MixedSchema,
2443
- NumberSchema,
2444
2022
  ObjectSchema,
2445
2023
  Schema,
2446
2024
  StringSchema,
2447
- TupleSchema,
2448
2025
  ValidationError,
2449
- addMethod,
2450
2026
  create$2 as array,
2451
- create$7 as bool,
2452
- create$7 as boolean,
2453
- create$4 as date,
2454
- locale as defaultLocale,
2455
2027
  getIn,
2456
2028
  isSchema,
2457
- create as lazy,
2458
2029
  create$8 as mixed,
2459
- create$5 as number,
2460
2030
  create$3 as object,
2461
2031
  printValue,
2462
- reach,
2463
- create$9 as ref,
2464
- setLocale,
2465
- create$6 as string,
2466
- create$1 as tuple
2032
+ create$6 as string
2467
2033
  };
@@ -0,0 +1,95 @@
1
+ // Basic
2
+ export * from './source/primitive';
3
+ export * from './source/typed-array';
4
+ export * from './source/basic';
5
+ export * from './source/observable-like';
6
+
7
+ // Utilities
8
+ export {Except} from './source/except';
9
+ export {Mutable} from './source/mutable';
10
+ export {Writable} from './source/writable';
11
+ export {Merge} from './source/merge';
12
+ export {MergeExclusive} from './source/merge-exclusive';
13
+ export {RequireAtLeastOne} from './source/require-at-least-one';
14
+ export {RequireExactlyOne} from './source/require-exactly-one';
15
+ export {RequireAllOrNone} from './source/require-all-or-none';
16
+ export {RemoveIndexSignature} from './source/remove-index-signature';
17
+ export {PartialDeep, PartialDeepOptions} from './source/partial-deep';
18
+ export {PartialOnUndefinedDeep, PartialOnUndefinedDeepOptions} from './source/partial-on-undefined-deep';
19
+ export {ReadonlyDeep} from './source/readonly-deep';
20
+ export {LiteralUnion} from './source/literal-union';
21
+ export {Promisable} from './source/promisable';
22
+ export {Opaque, UnwrapOpaque} from './source/opaque';
23
+ export {InvariantOf} from './source/invariant-of';
24
+ export {SetOptional} from './source/set-optional';
25
+ export {SetRequired} from './source/set-required';
26
+ export {SetNonNullable} from './source/set-non-nullable';
27
+ export {ValueOf} from './source/value-of';
28
+ export {PromiseValue} from './source/promise-value';
29
+ export {AsyncReturnType} from './source/async-return-type';
30
+ export {ConditionalExcept} from './source/conditional-except';
31
+ export {ConditionalKeys} from './source/conditional-keys';
32
+ export {ConditionalPick} from './source/conditional-pick';
33
+ export {UnionToIntersection} from './source/union-to-intersection';
34
+ export {Stringified} from './source/stringified';
35
+ export {FixedLengthArray} from './source/fixed-length-array';
36
+ export {MultidimensionalArray} from './source/multidimensional-array';
37
+ export {MultidimensionalReadonlyArray} from './source/multidimensional-readonly-array';
38
+ export {IterableElement} from './source/iterable-element';
39
+ export {Entry} from './source/entry';
40
+ export {Entries} from './source/entries';
41
+ export {SetReturnType} from './source/set-return-type';
42
+ export {Asyncify} from './source/asyncify';
43
+ export {Simplify, SimplifyOptions} from './source/simplify';
44
+ export {Jsonify} from './source/jsonify';
45
+ export {Schema} from './source/schema';
46
+ export {LiteralToPrimitive} from './source/literal-to-primitive';
47
+ export {
48
+ PositiveInfinity,
49
+ NegativeInfinity,
50
+ Finite,
51
+ Integer,
52
+ Float,
53
+ NegativeFloat,
54
+ Negative,
55
+ NonNegative,
56
+ NegativeInteger,
57
+ NonNegativeInteger,
58
+ } from './source/numeric';
59
+ export {StringKeyOf} from './source/string-key-of';
60
+ export {Exact} from './source/exact';
61
+ export {ReadonlyTuple} from './source/readonly-tuple';
62
+ export {OptionalKeysOf} from './source/optional-keys-of';
63
+ export {HasOptionalKeys} from './source/has-optional-keys';
64
+ export {RequiredKeysOf} from './source/required-keys-of';
65
+ export {HasRequiredKeys} from './source/has-required-keys';
66
+ export {Spread} from './source/spread';
67
+
68
+ // Template literal types
69
+ export {CamelCase} from './source/camel-case';
70
+ export {CamelCasedProperties} from './source/camel-cased-properties';
71
+ export {CamelCasedPropertiesDeep} from './source/camel-cased-properties-deep';
72
+ export {KebabCase} from './source/kebab-case';
73
+ export {KebabCasedProperties} from './source/kebab-cased-properties';
74
+ export {KebabCasedPropertiesDeep} from './source/kebab-cased-properties-deep';
75
+ export {PascalCase} from './source/pascal-case';
76
+ export {PascalCasedProperties} from './source/pascal-cased-properties';
77
+ export {PascalCasedPropertiesDeep} from './source/pascal-cased-properties-deep';
78
+ export {SnakeCase} from './source/snake-case';
79
+ export {SnakeCasedProperties} from './source/snake-cased-properties';
80
+ export {SnakeCasedPropertiesDeep} from './source/snake-cased-properties-deep';
81
+ export {ScreamingSnakeCase} from './source/screaming-snake-case';
82
+ export {DelimiterCase} from './source/delimiter-case';
83
+ export {DelimiterCasedProperties} from './source/delimiter-cased-properties';
84
+ export {DelimiterCasedPropertiesDeep} from './source/delimiter-cased-properties-deep';
85
+ export {Join} from './source/join';
86
+ export {Split} from './source/split';
87
+ export {Trim} from './source/trim';
88
+ export {Replace} from './source/replace';
89
+ export {Includes} from './source/includes';
90
+ export {Get} from './source/get';
91
+ export {LastArrayElement} from './source/last-array-element';
92
+
93
+ // Miscellaneous
94
+ export {PackageJson} from './source/package-json';
95
+ export {TsConfigJson} from './source/tsconfig-json';
@@ -0,0 +1,25 @@
1
+ import type {PromiseValue} from './promise-value';
2
+
3
+ type AsyncFunction = (...args: any[]) => Promise<unknown>;
4
+
5
+ /**
6
+ Unwrap the return type of a function that returns a `Promise`.
7
+
8
+ There has been [discussion](https://github.com/microsoft/TypeScript/pull/35998) about implementing this type in TypeScript.
9
+
10
+ @example
11
+ ```ts
12
+ import type {AsyncReturnType} from '..';
13
+ import {asyncFunction} from '../../api';
14
+
15
+ // This type resolves to the unwrapped return type of `asyncFunction`.
16
+ type Value = AsyncReturnType<typeof asyncFunction>;
17
+
18
+ async function doSomething(value: Value) {}
19
+
20
+ asyncFunction().then(value => doSomething(value));
21
+ ```
22
+
23
+ @category Async
24
+ */
25
+ export type AsyncReturnType<Target extends AsyncFunction> = PromiseValue<ReturnType<Target>>;
@@ -0,0 +1,33 @@
1
+ import type {PromiseValue} from './promise-value';
2
+ import type {SetReturnType} from './set-return-type';
3
+
4
+ /**
5
+ Create an async version of the given function type, by boxing the return type in `Promise` while keeping the same parameter types.
6
+
7
+ Use-case: You have two functions, one synchronous and one asynchronous that do the same thing. Instead of having to duplicate the type definition, you can use `Asyncify` to reuse the synchronous type.
8
+
9
+ @example
10
+ ```
11
+ import type {Asyncify} from '..';
12
+
13
+ // Synchronous function.
14
+ function getFooSync(someArg: SomeType): Foo {
15
+ // …
16
+ }
17
+
18
+ type AsyncifiedFooGetter = Asyncify<typeof getFooSync>;
19
+ //=> type AsyncifiedFooGetter = (someArg: SomeType) => Promise<Foo>;
20
+
21
+ // Same as `getFooSync` but asynchronous.
22
+ const getFooAsync: AsyncifiedFooGetter = (someArg) => {
23
+ // TypeScript now knows that `someArg` is `SomeType` automatically.
24
+ // It also knows that this function must return `Promise<Foo>`.
25
+ // If you have `@typescript-eslint/promise-function-async` linter rule enabled, it will even report that "Functions that return promises must be async.".
26
+
27
+ // …
28
+ }
29
+ ```
30
+
31
+ @category Async
32
+ */
33
+ export type Asyncify<Fn extends (...args: any[]) => any> = SetReturnType<Fn, Promise<PromiseValue<ReturnType<Fn>>>>;
@@ -0,0 +1,45 @@
1
+ /**
2
+ Matches a [`class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes).
3
+
4
+ @category Class
5
+ */
6
+ export type Class<T, Arguments extends unknown[] = any[]> = Constructor<T, Arguments> & {prototype: T};
7
+
8
+ /**
9
+ Matches a [`class` constructor](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes).
10
+
11
+ @category Class
12
+ */
13
+ export type Constructor<T, Arguments extends unknown[] = any[]> = new(...arguments_: Arguments) => T;
14
+
15
+ /**
16
+ Matches a JSON object.
17
+
18
+ This type can be useful to enforce some input to be JSON-compatible or as a super-type to be extended from. Don't use this as a direct return type as the user would have to double-cast it: `jsonObject as unknown as CustomResponse`. Instead, you could extend your CustomResponse type from it to ensure your type only uses JSON-compatible types: `interface CustomResponse extends JsonObject { … }`.
19
+
20
+ @category JSON
21
+ */
22
+ export type JsonObject = {[Key in string]?: JsonValue};
23
+
24
+ /**
25
+ Matches a JSON array.
26
+
27
+ @category JSON
28
+ */
29
+ export type JsonArray = JsonValue[];
30
+
31
+ /**
32
+ Matches any valid JSON primitive value.
33
+
34
+ @category JSON
35
+ */
36
+ export type JsonPrimitive = string | number | boolean | null;
37
+
38
+ /**
39
+ Matches any valid JSON value.
40
+
41
+ @see `Jsonify` if you need to transform a type to one that is assignable to `JsonValue`.
42
+
43
+ @category JSON
44
+ */
45
+ export type JsonValue = JsonPrimitive | JsonObject | JsonArray;