fastapi-rtk 2.8.0 → 2.9.1

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 (607) hide show
  1. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineObjectInput.cjs +2 -2
  2. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/complex/MantineTableControl/MantineTableControl.cjs +6 -11
  3. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Array/ExpandPanelRenderer.cjs +2 -2
  4. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Array/MantineArrayLayout.cjs +3 -5
  5. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/utils/layout.cjs +2 -2
  6. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineObjectInput.mjs +2 -2
  7. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/complex/MantineTableControl/MantineTableControl.mjs +7 -12
  8. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Array/ExpandPanelRenderer.mjs +2 -2
  9. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Array/MantineArrayLayout.mjs +3 -5
  10. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/utils/layout.mjs +2 -2
  11. package/dist/.external/cjs/html-parse-stringify@3.0.1/html-parse-stringify/dist/html-parse-stringify.module.cjs +59 -0
  12. package/dist/.external/cjs/lodash@4.17.23/lodash/_cloneBuffer.cjs +1 -1
  13. package/dist/.external/cjs/lodash@4.17.23/lodash/_freeGlobal.cjs +1 -1
  14. package/dist/.external/cjs/lodash@4.17.23/lodash/_nodeUtil.cjs +1 -1
  15. package/dist/.external/cjs/lodash@4.17.23/lodash/isBuffer.cjs +1 -1
  16. package/dist/.external/cjs/lodash@4.17.23/lodash/lodash.cjs +2 -2
  17. package/dist/.external/cjs/mantine-react-table@2.0.0-beta.9_patch_hash_b9fcaf5fc0698f1949127d6bfb1f154a5bd28d0d1fe_7b4bd73d03bc0c4b3e9706b344be0f5a/mantine-react-table/locales/de/index.cjs +1 -1
  18. package/dist/.external/cjs/mantine-react-table@2.0.0-beta.9_patch_hash_b9fcaf5fc0698f1949127d6bfb1f154a5bd28d0d1fe_7b4bd73d03bc0c4b3e9706b344be0f5a/mantine-react-table/locales/en/index.cjs +1 -1
  19. package/dist/.external/cjs/react-i18next@15.7.4_i18next@25.8.0_typescript@5.9.3__react-dom@19.2.3_react@19.2.3__react@19.2.3_typescript@5.9.3/react-i18next/dist/es/I18nextProvider.cjs +3 -3
  20. package/dist/.external/cjs/react-i18next@15.7.4_i18next@25.8.0_typescript@5.9.3__react-dom@19.2.3_react@19.2.3__react@19.2.3_typescript@5.9.3/react-i18next/dist/es/Trans.cjs +48 -0
  21. package/dist/.external/cjs/react-i18next@15.7.4_i18next@25.8.0_typescript@5.9.3__react-dom@19.2.3_react@19.2.3__react@19.2.3_typescript@5.9.3/react-i18next/dist/es/TransWithoutContext.cjs +331 -0
  22. package/dist/.external/cjs/react-i18next@15.7.4_i18next@25.8.0_typescript@5.9.3__react-dom@19.2.3_react@19.2.3__react@19.2.3_typescript@5.9.3/react-i18next/dist/es/Translation.cjs +15 -0
  23. package/dist/.external/cjs/react-i18next@15.7.4_i18next@25.8.0_typescript@5.9.3__react-dom@19.2.3_react@19.2.3__react@19.2.3_typescript@5.9.3/react-i18next/dist/es/context.cjs +32 -2
  24. package/dist/.external/cjs/react-i18next@15.7.4_i18next@25.8.0_typescript@5.9.3__react-dom@19.2.3_react@19.2.3__react@19.2.3_typescript@5.9.3/react-i18next/dist/es/index.cjs +42 -0
  25. package/dist/.external/cjs/react-i18next@15.7.4_i18next@25.8.0_typescript@5.9.3__react-dom@19.2.3_react@19.2.3__react@19.2.3_typescript@5.9.3/react-i18next/dist/es/useSSR.cjs +32 -0
  26. package/dist/.external/cjs/react-i18next@15.7.4_i18next@25.8.0_typescript@5.9.3__react-dom@19.2.3_react@19.2.3__react@19.2.3_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs +9 -9
  27. package/dist/.external/cjs/react-i18next@15.7.4_i18next@25.8.0_typescript@5.9.3__react-dom@19.2.3_react@19.2.3__react@19.2.3_typescript@5.9.3/react-i18next/dist/es/utils.cjs +2 -0
  28. package/dist/.external/cjs/react-i18next@15.7.4_i18next@25.8.0_typescript@5.9.3__react-dom@19.2.3_react@19.2.3__react@19.2.3_typescript@5.9.3/react-i18next/dist/es/withSSR.cjs +23 -0
  29. package/dist/.external/cjs/react-i18next@15.7.4_i18next@25.8.0_typescript@5.9.3__react-dom@19.2.3_react@19.2.3__react@19.2.3_typescript@5.9.3/react-i18next/dist/es/withTranslation.cjs +35 -0
  30. package/dist/.external/cjs/toposort@2.0.2/toposort/index.cjs +1 -1
  31. package/dist/.external/cjs/void-elements@3.1.0/void-elements/index.cjs +26 -0
  32. package/dist/.external/cjs/yup@1.7.1/yup/index.esm.cjs +3 -1224
  33. package/dist/.external/cjs/zustand@5.0.10_@types_react@19.2.9_react@19.2.3/zustand/esm/index.cjs +7 -0
  34. package/dist/.external/esm/html-parse-stringify@3.0.1/html-parse-stringify/dist/html-parse-stringify.module.mjs +60 -0
  35. package/dist/.external/esm/lodash@4.17.23/lodash/_cloneBuffer.mjs +1 -1
  36. package/dist/.external/esm/lodash@4.17.23/lodash/_freeGlobal.mjs +1 -1
  37. package/dist/.external/esm/lodash@4.17.23/lodash/_nodeUtil.mjs +1 -1
  38. package/dist/.external/esm/lodash@4.17.23/lodash/isBuffer.mjs +1 -1
  39. package/dist/.external/esm/lodash@4.17.23/lodash/lodash.mjs +2 -2
  40. package/dist/.external/esm/mantine-react-table@2.0.0-beta.9_patch_hash_b9fcaf5fc0698f1949127d6bfb1f154a5bd28d0d1fe_7b4bd73d03bc0c4b3e9706b344be0f5a/mantine-react-table/locales/de/index.mjs +1 -1
  41. package/dist/.external/esm/mantine-react-table@2.0.0-beta.9_patch_hash_b9fcaf5fc0698f1949127d6bfb1f154a5bd28d0d1fe_7b4bd73d03bc0c4b3e9706b344be0f5a/mantine-react-table/locales/en/index.mjs +1 -1
  42. package/dist/.external/esm/react-i18next@15.7.4_i18next@25.8.0_typescript@5.9.3__react-dom@19.2.3_react@19.2.3__react@19.2.3_typescript@5.9.3/react-i18next/dist/es/Trans.mjs +49 -0
  43. package/dist/.external/esm/react-i18next@15.7.4_i18next@25.8.0_typescript@5.9.3__react-dom@19.2.3_react@19.2.3__react@19.2.3_typescript@5.9.3/react-i18next/dist/es/TransWithoutContext.mjs +331 -0
  44. package/dist/.external/esm/react-i18next@15.7.4_i18next@25.8.0_typescript@5.9.3__react-dom@19.2.3_react@19.2.3__react@19.2.3_typescript@5.9.3/react-i18next/dist/es/Translation.mjs +15 -0
  45. package/dist/.external/esm/react-i18next@15.7.4_i18next@25.8.0_typescript@5.9.3__react-dom@19.2.3_react@19.2.3__react@19.2.3_typescript@5.9.3/react-i18next/dist/es/context.mjs +32 -1
  46. package/dist/.external/esm/react-i18next@15.7.4_i18next@25.8.0_typescript@5.9.3__react-dom@19.2.3_react@19.2.3__react@19.2.3_typescript@5.9.3/react-i18next/dist/es/index.mjs +42 -0
  47. package/dist/.external/esm/react-i18next@15.7.4_i18next@25.8.0_typescript@5.9.3__react-dom@19.2.3_react@19.2.3__react@19.2.3_typescript@5.9.3/react-i18next/dist/es/useSSR.mjs +32 -0
  48. package/dist/.external/esm/react-i18next@15.7.4_i18next@25.8.0_typescript@5.9.3__react-dom@19.2.3_react@19.2.3__react@19.2.3_typescript@5.9.3/react-i18next/dist/es/utils.mjs +2 -0
  49. package/dist/.external/esm/react-i18next@15.7.4_i18next@25.8.0_typescript@5.9.3__react-dom@19.2.3_react@19.2.3__react@19.2.3_typescript@5.9.3/react-i18next/dist/es/withSSR.mjs +23 -0
  50. package/dist/.external/esm/react-i18next@15.7.4_i18next@25.8.0_typescript@5.9.3__react-dom@19.2.3_react@19.2.3__react@19.2.3_typescript@5.9.3/react-i18next/dist/es/withTranslation.mjs +35 -0
  51. package/dist/.external/esm/toposort@2.0.2/toposort/index.mjs +1 -1
  52. package/dist/.external/esm/void-elements@3.1.0/void-elements/index.mjs +26 -0
  53. package/dist/.external/esm/yup@1.7.1/yup/index.esm.mjs +4 -1225
  54. package/dist/.external/esm/zustand@5.0.10_@types_react@19.2.9_react@19.2.3/zustand/esm/index.mjs +7 -0
  55. package/dist/.external/esm/zustand@5.0.10_@types_react@19.2.9_react@19.2.3/zustand/esm/react.mjs +5 -5
  56. package/dist/.external/lib/type-fest/index.d.ts +95 -0
  57. package/dist/.external/lib/type-fest/source/async-return-type.d.ts +25 -0
  58. package/dist/.external/lib/type-fest/source/asyncify.d.ts +33 -0
  59. package/dist/.external/lib/type-fest/source/basic.d.ts +45 -0
  60. package/dist/.external/lib/type-fest/source/camel-case.d.ts +73 -0
  61. package/dist/.external/lib/type-fest/source/camel-cased-properties-deep.d.ts +54 -0
  62. package/dist/.external/lib/type-fest/source/camel-cased-properties.d.ts +36 -0
  63. package/dist/.external/lib/type-fest/source/conditional-except.d.ts +45 -0
  64. package/dist/.external/lib/type-fest/source/conditional-keys.d.ts +47 -0
  65. package/dist/.external/lib/type-fest/source/conditional-pick.d.ts +44 -0
  66. package/dist/.external/lib/type-fest/source/delimiter-case.d.ts +93 -0
  67. package/dist/.external/lib/type-fest/source/delimiter-cased-properties-deep.d.ts +60 -0
  68. package/dist/.external/lib/type-fest/source/delimiter-cased-properties.d.ts +37 -0
  69. package/dist/.external/lib/type-fest/source/entries.d.ts +62 -0
  70. package/dist/.external/lib/type-fest/source/entry.d.ts +65 -0
  71. package/dist/.external/lib/type-fest/source/exact.d.ts +73 -0
  72. package/dist/.external/lib/type-fest/source/except.d.ts +57 -0
  73. package/dist/.external/lib/type-fest/source/fixed-length-array.d.ts +43 -0
  74. package/dist/.external/lib/type-fest/source/get.d.ts +184 -0
  75. package/dist/.external/lib/type-fest/source/has-optional-keys.d.ts +21 -0
  76. package/dist/.external/lib/type-fest/source/has-required-keys.d.ts +59 -0
  77. package/dist/.external/lib/type-fest/source/includes.d.ts +22 -0
  78. package/dist/.external/lib/type-fest/source/internal.d.ts +59 -0
  79. package/dist/.external/lib/type-fest/source/invariant-of.d.ts +76 -0
  80. package/dist/.external/lib/type-fest/source/iterable-element.d.ts +54 -0
  81. package/dist/.external/lib/type-fest/source/join.d.ts +30 -0
  82. package/dist/.external/lib/type-fest/source/jsonify.d.ts +90 -0
  83. package/dist/.external/lib/type-fest/source/kebab-case.d.ts +38 -0
  84. package/dist/.external/lib/type-fest/source/kebab-cased-properties-deep.d.ts +47 -0
  85. package/dist/.external/lib/type-fest/source/kebab-cased-properties.d.ts +30 -0
  86. package/dist/.external/lib/type-fest/source/last-array-element.d.ts +28 -0
  87. package/dist/.external/lib/type-fest/source/literal-to-primitive.d.ts +36 -0
  88. package/dist/.external/lib/type-fest/source/literal-union.d.ts +35 -0
  89. package/dist/.external/lib/type-fest/source/merge-exclusive.d.ts +41 -0
  90. package/dist/.external/lib/type-fest/source/merge.d.ts +27 -0
  91. package/dist/.external/lib/type-fest/source/multidimensional-array.d.ts +43 -0
  92. package/dist/.external/lib/type-fest/source/multidimensional-readonly-array.d.ts +47 -0
  93. package/dist/.external/lib/type-fest/source/mutable.d.ts +5 -0
  94. package/dist/.external/lib/type-fest/source/numeric.d.ts +170 -0
  95. package/dist/.external/lib/type-fest/source/observable-like.d.ts +62 -0
  96. package/dist/.external/lib/type-fest/source/opaque.d.ts +107 -0
  97. package/dist/.external/lib/type-fest/source/optional-keys-of.d.ts +38 -0
  98. package/dist/.external/lib/type-fest/source/package-json.d.ts +663 -0
  99. package/dist/.external/lib/type-fest/source/partial-deep.d.ts +113 -0
  100. package/dist/.external/lib/type-fest/source/partial-on-undefined-deep.d.ts +70 -0
  101. package/dist/.external/lib/type-fest/source/pascal-case.d.ts +38 -0
  102. package/dist/.external/lib/type-fest/source/pascal-cased-properties-deep.d.ts +54 -0
  103. package/dist/.external/lib/type-fest/source/pascal-cased-properties.d.ts +34 -0
  104. package/dist/.external/lib/type-fest/source/primitive.d.ts +13 -0
  105. package/dist/.external/lib/type-fest/source/promisable.d.ts +25 -0
  106. package/dist/.external/lib/type-fest/source/promise-value.d.ts +29 -0
  107. package/dist/.external/lib/type-fest/source/readonly-deep.d.ts +85 -0
  108. package/dist/.external/lib/type-fest/source/readonly-tuple.d.ts +41 -0
  109. package/dist/.external/lib/type-fest/source/remove-index-signature.d.ts +104 -0
  110. package/dist/.external/lib/type-fest/source/replace.d.ts +67 -0
  111. package/dist/.external/lib/type-fest/source/require-all-or-none.d.ts +36 -0
  112. package/dist/.external/lib/type-fest/source/require-at-least-one.d.ts +35 -0
  113. package/dist/.external/lib/type-fest/source/require-exactly-one.d.ts +34 -0
  114. package/dist/.external/lib/type-fest/source/required-keys-of.d.ts +29 -0
  115. package/dist/.external/lib/type-fest/source/schema.d.ts +72 -0
  116. package/dist/.external/lib/type-fest/source/screaming-snake-case.d.ts +33 -0
  117. package/dist/.external/lib/type-fest/source/set-non-nullable.d.ts +35 -0
  118. package/dist/.external/lib/type-fest/source/set-optional.d.ts +35 -0
  119. package/dist/.external/lib/type-fest/source/set-required.d.ts +35 -0
  120. package/dist/.external/lib/type-fest/source/set-return-type.d.ts +31 -0
  121. package/dist/.external/lib/type-fest/source/simplify.d.ts +83 -0
  122. package/dist/.external/lib/type-fest/source/snake-case.d.ts +38 -0
  123. package/dist/.external/lib/type-fest/source/snake-cased-properties-deep.d.ts +47 -0
  124. package/dist/.external/lib/type-fest/source/snake-cased-properties.d.ts +30 -0
  125. package/dist/.external/lib/type-fest/source/split.d.ts +29 -0
  126. package/dist/.external/lib/type-fest/source/spread.d.ts +85 -0
  127. package/dist/.external/lib/type-fest/source/string-key-of.d.ts +25 -0
  128. package/dist/.external/lib/type-fest/source/stringified.d.ts +23 -0
  129. package/dist/.external/lib/type-fest/source/trim.d.ts +25 -0
  130. package/dist/.external/lib/type-fest/source/tsconfig-json.d.ts +1172 -0
  131. package/dist/.external/lib/type-fest/source/typed-array.d.ts +17 -0
  132. package/dist/.external/lib/type-fest/source/union-to-intersection.d.ts +60 -0
  133. package/dist/.external/lib/type-fest/source/value-of.d.ts +42 -0
  134. package/dist/.external/lib/type-fest/source/writable.d.ts +40 -0
  135. package/dist/api/cjs/ApiProvider/ApiProvider.cjs +80 -0
  136. package/dist/{core/cjs/Wrappers → api/cjs}/ApiProvider/hooks/useProvideApi.cjs +22 -19
  137. package/dist/{core/cjs/Wrappers → api/cjs}/ApiProvider/hooks/useProvideBulk.cjs +5 -3
  138. package/dist/{core/cjs/Wrappers → api/cjs}/ApiProvider/hooks/useProvideForm.cjs +2 -2
  139. package/dist/{core/cjs/Wrappers → api/cjs}/ApiProvider/hooks/utils/useApiActions.cjs +15 -15
  140. package/dist/{core/cjs/Wrappers → api/cjs}/ApiProvider/hooks/utils/useStreamingData.cjs +1 -1
  141. package/dist/{core/cjs/Wrappers → api/cjs}/ApiProvider/utils/getValidationSchema.cjs +3 -3
  142. package/dist/{core/cjs/Wrappers → api/cjs}/Provider/Contexts/LangContext.cjs +20 -8
  143. package/dist/api/cjs/Provider/Provider.cjs +52 -0
  144. package/dist/{core/cjs/Wrappers → api/cjs}/Provider/hooks/useProvideAuth.cjs +17 -15
  145. package/dist/{core/cjs/Wrappers → api/cjs}/Provider/hooks/useProvideInfo.cjs +5 -3
  146. package/dist/api/cjs/Provider/hooks/useProvideLang.cjs +78 -0
  147. package/dist/api/cjs/adapters/AdaptersContext.cjs +10 -0
  148. package/dist/api/cjs/auth/authFetch.cjs +63 -0
  149. package/dist/api/cjs/auth/userCRUD.cjs +20 -0
  150. package/dist/api/cjs/fetchers/createItem.cjs +14 -0
  151. package/dist/api/cjs/fetchers/deleteItem.cjs +14 -0
  152. package/dist/api/cjs/fetchers/downloadItems.cjs +33 -0
  153. package/dist/api/cjs/fetchers/formCreateItem.cjs +18 -0
  154. package/dist/api/cjs/fetchers/formUpdateItem.cjs +18 -0
  155. package/dist/api/cjs/fetchers/getInfo.cjs +10 -0
  156. package/dist/api/cjs/fetchers/getItem.cjs +14 -0
  157. package/dist/api/cjs/fetchers/getItems.cjs +13 -0
  158. package/dist/api/cjs/fetchers/postBulkAction.cjs +14 -0
  159. package/dist/api/cjs/fetchers/request.cjs +9 -0
  160. package/dist/api/cjs/fetchers/updateItem.cjs +14 -0
  161. package/dist/api/cjs/fetchers/uploadItems.cjs +24 -0
  162. package/dist/{core → api}/cjs/hooks/auth/useAuth.cjs +1 -1
  163. package/dist/{core → api}/cjs/hooks/auth/useInfo.cjs +1 -1
  164. package/dist/api/cjs/hooks/useDidUpdate.cjs +20 -0
  165. package/dist/api/cjs/index.cjs +77 -0
  166. package/dist/{utils/cjs → api/cjs/utils}/convertToFormData/convertToFormData.cjs +5 -5
  167. package/dist/{utils/cjs → api/cjs/utils}/createFetchParams/createFetchParams.cjs +1 -3
  168. package/dist/api/esm/ApiProvider/ApiProvider.mjs +80 -0
  169. package/dist/{core/esm/Wrappers → api/esm}/ApiProvider/hooks/useProvideApi.mjs +21 -18
  170. package/dist/{core/esm/Wrappers → api/esm}/ApiProvider/hooks/useProvideBulk.mjs +5 -3
  171. package/dist/{core/esm/Wrappers → api/esm}/ApiProvider/hooks/useProvideForm.mjs +2 -2
  172. package/dist/{core/esm/Wrappers → api/esm}/ApiProvider/hooks/utils/useApiActions.mjs +15 -15
  173. package/dist/{core/esm/Wrappers → api/esm}/ApiProvider/hooks/utils/useStreamingData.mjs +1 -1
  174. package/dist/{core/esm/Wrappers → api/esm}/ApiProvider/utils/getValidationSchema.mjs +3 -4
  175. package/dist/{core/esm/Wrappers → api/esm}/Provider/Contexts/LangContext.mjs +22 -10
  176. package/dist/api/esm/Provider/Provider.mjs +52 -0
  177. package/dist/{core/esm/Wrappers → api/esm}/Provider/hooks/useProvideAuth.mjs +17 -15
  178. package/dist/{core/esm/Wrappers → api/esm}/Provider/hooks/useProvideInfo.mjs +5 -3
  179. package/dist/api/esm/Provider/hooks/useProvideLang.mjs +78 -0
  180. package/dist/api/esm/adapters/AdaptersContext.mjs +10 -0
  181. package/dist/api/esm/auth/authFetch.mjs +63 -0
  182. package/dist/api/esm/auth/userCRUD.mjs +20 -0
  183. package/dist/api/esm/fetchers/createItem.mjs +14 -0
  184. package/dist/api/esm/fetchers/deleteItem.mjs +14 -0
  185. package/dist/api/esm/fetchers/downloadItems.mjs +33 -0
  186. package/dist/api/esm/fetchers/formCreateItem.mjs +18 -0
  187. package/dist/api/esm/fetchers/formUpdateItem.mjs +18 -0
  188. package/dist/api/esm/fetchers/getInfo.mjs +10 -0
  189. package/dist/api/esm/fetchers/getItem.mjs +14 -0
  190. package/dist/api/esm/fetchers/getItems.mjs +13 -0
  191. package/dist/api/esm/fetchers/postBulkAction.mjs +14 -0
  192. package/dist/api/esm/fetchers/request.mjs +9 -0
  193. package/dist/api/esm/fetchers/updateItem.mjs +14 -0
  194. package/dist/api/esm/fetchers/uploadItems.mjs +24 -0
  195. package/dist/{core → api}/esm/hooks/auth/useAuth.mjs +1 -1
  196. package/dist/{core → api}/esm/hooks/auth/useInfo.mjs +1 -1
  197. package/dist/api/esm/hooks/useDidUpdate.mjs +20 -0
  198. package/dist/api/esm/index.mjs +77 -0
  199. package/dist/{utils/esm → api/esm/utils}/convertToFormData/convertToFormData.mjs +5 -5
  200. package/dist/{utils/esm → api/esm/utils}/createFetchParams/createFetchParams.mjs +1 -3
  201. package/dist/api/lib/ApiProvider/ApiProvider.d.ts +17 -0
  202. package/dist/{core/lib/Wrappers → api/lib}/ApiProvider/Contexts/BulkActionsContext.d.ts +1 -1
  203. package/dist/api/lib/ApiProvider/Contexts/FormContext.d.ts +5 -0
  204. package/dist/api/lib/ApiProvider/hooks/types.d.ts +150 -0
  205. package/dist/api/lib/ApiProvider/hooks/useProvideBulk.d.ts +7 -0
  206. package/dist/api/lib/ApiProvider/hooks/useProvideForm.d.ts +3 -0
  207. package/dist/api/lib/ApiProvider/hooks/utils/useApiActions.d.ts +11 -0
  208. package/dist/api/lib/ApiProvider/hooks/utils/useStreamingData.d.ts +193 -0
  209. package/dist/api/lib/ApiProvider/types.d.ts +51 -0
  210. package/dist/{core/lib/Wrappers → api/lib}/ApiProvider/utils/getDefaultValues.d.ts +2 -2
  211. package/dist/{core/lib/Wrappers → api/lib}/ApiProvider/utils/getValidationSchema.d.ts +1 -1
  212. package/dist/{core/lib/Wrappers → api/lib}/Provider/Contexts/AuthContext.d.ts +1 -1
  213. package/dist/{core/lib/Wrappers → api/lib}/Provider/Contexts/InfoContext.d.ts +1 -1
  214. package/dist/{core/lib/Wrappers → api/lib}/Provider/Contexts/types.d.ts +5 -4
  215. package/dist/api/lib/Provider/Provider.d.ts +14 -0
  216. package/dist/api/lib/Provider/hooks/types.d.ts +22 -0
  217. package/dist/api/lib/Provider/hooks/useProvideAuth.d.ts +17 -0
  218. package/dist/{core/lib/Wrappers → api/lib}/Provider/hooks/useProvideInfo.d.ts +2 -2
  219. package/dist/{core/lib/Wrappers → api/lib}/Provider/hooks/useProvideLang.d.ts +1 -2
  220. package/dist/api/lib/Provider/types.d.ts +35 -0
  221. package/dist/api/lib/adapters/AdaptersContext.d.ts +10 -0
  222. package/dist/api/lib/adapters/types.d.ts +79 -0
  223. package/dist/{core/lib/Wrappers/Provider/utils → api/lib/auth}/authFetch.d.ts +13 -7
  224. package/dist/api/lib/auth/types.d.ts +40 -0
  225. package/dist/api/lib/auth/userCRUD.d.ts +22 -0
  226. package/dist/{core/lib/Wrappers/ApiProvider/utils/bulkActions/types.d.ts → api/lib/fetchers/bulkActions.types.d.ts} +3 -3
  227. package/dist/api/lib/fetchers/createItem.d.ts +4 -0
  228. package/dist/api/lib/fetchers/deleteItem.d.ts +4 -0
  229. package/dist/api/lib/fetchers/downloadItems.d.ts +4 -0
  230. package/dist/api/lib/fetchers/formCreateItem.d.ts +4 -0
  231. package/dist/api/lib/fetchers/formUpdateItem.d.ts +4 -0
  232. package/dist/{core/lib/Wrappers/ApiProvider/utils/api → api/lib/fetchers}/getInfo.d.ts +3 -1
  233. package/dist/api/lib/fetchers/getItem.d.ts +4 -0
  234. package/dist/{core/lib/Wrappers/ApiProvider/utils/api → api/lib/fetchers}/getItems.d.ts +3 -1
  235. package/dist/api/lib/fetchers/postBulkAction.d.ts +4 -0
  236. package/dist/api/lib/fetchers/request.d.ts +7 -0
  237. package/dist/{core/lib/Wrappers/ApiProvider/utils/api → api/lib/fetchers}/types.d.ts +3 -7
  238. package/dist/api/lib/fetchers/updateItem.d.ts +4 -0
  239. package/dist/api/lib/fetchers/uploadItems.d.ts +3 -0
  240. package/dist/api/lib/fetchers/uploadItems.test.d.ts +1 -0
  241. package/dist/{core → api}/lib/hooks/auth/types.d.ts +1 -38
  242. package/dist/api/lib/hooks/auth/useAuth.test.d.ts +1 -0
  243. package/dist/api/lib/hooks/auth/useInfo.test.d.ts +1 -0
  244. package/dist/api/lib/hooks/useDidUpdate.d.ts +3 -0
  245. package/dist/api/lib/index.d.ts +36 -0
  246. package/dist/api/lib/utils/convertToFormData/convertToFormData.d.ts +17 -0
  247. package/dist/api/lib/utils/convertToFormData/convertToFormData.test.d.ts +1 -0
  248. package/dist/{utils/lib → api/lib/utils}/createFetchParams/createFetchParams.d.ts +3 -4
  249. package/dist/api/lib/utils/createFetchParams/createFetchParams.test.d.ts +1 -0
  250. package/dist/{utils/lib → api/lib/utils}/parseResponse/parseResponse.d.ts +1 -2
  251. package/dist/api/lib/utils/parseResponse/parseResponse.test.d.ts +1 -0
  252. package/dist/constants/cjs/index.cjs +16 -7
  253. package/dist/constants/esm/index.mjs +16 -7
  254. package/dist/constants/lib/index.d.ts +1 -6
  255. package/dist/{jsonforms → contexts}/cjs/_virtual/_commonjsHelpers.cjs +0 -2
  256. package/dist/contexts/cjs/_virtual/index.cjs +5 -0
  257. package/dist/contexts/cjs/_virtual/index2.cjs +5 -0
  258. package/dist/contexts/cjs/_virtual/index3.cjs +6 -0
  259. package/dist/{constants → contexts}/cjs/_virtual/index4.cjs +2 -2
  260. package/dist/contexts/cjs/_virtual/index5.cjs +6 -0
  261. package/dist/contexts/cjs/index.cjs +4 -0
  262. package/dist/contexts/esm/_virtual/_commonjsHelpers.mjs +6 -0
  263. package/dist/contexts/esm/_virtual/index.mjs +5 -0
  264. package/dist/contexts/esm/_virtual/index2.mjs +5 -0
  265. package/dist/contexts/esm/_virtual/index3.mjs +7 -0
  266. package/dist/contexts/esm/_virtual/index4.mjs +4 -0
  267. package/dist/contexts/esm/_virtual/index5.mjs +7 -0
  268. package/dist/contexts/esm/index.mjs +5 -1
  269. package/dist/contexts/lib/index.d.ts +2 -0
  270. package/dist/core/cjs/Dialogs/AddDialog.cjs +2 -2
  271. package/dist/core/cjs/Dialogs/EditDialog.cjs +3 -4
  272. package/dist/core/cjs/Menu/UserMenu/UserMenu.cjs +2 -2
  273. package/dist/core/cjs/Modals/CommonModal.cjs +2 -2
  274. package/dist/core/cjs/Tables/DataGrid/Toolbar/Filter/FilterMenu.cjs +8 -9
  275. package/dist/core/cjs/Tables/NextGenDataGrid/components/OptimizedMRT_RowSelectColumn/zustand.cjs +2 -2
  276. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useActions.cjs +5 -5
  277. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/Cell.cjs +4 -4
  278. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter.cjs +4 -4
  279. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/HeaderAdvancedFiltersMenuButton.cjs +4 -4
  280. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/useColumns.cjs +5 -5
  281. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useOptimizations.cjs +1 -2
  282. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useToolbar/useToolbar.cjs +9 -9
  283. package/dist/core/cjs/Wrappers/ApiProvider/ApiProvider.cjs +8 -74
  284. package/dist/core/cjs/Wrappers/Provider/Provider.cjs +18 -47
  285. package/dist/core/cjs/_virtual/index.cjs +25 -3
  286. package/dist/core/cjs/_virtual/index2.cjs +25 -3
  287. package/dist/core/cjs/_virtual/index3.cjs +3 -5
  288. package/dist/core/cjs/_virtual/index4.cjs +2 -2
  289. package/dist/core/cjs/_virtual/index5.cjs +5 -0
  290. package/dist/core/cjs/_virtual/index6.cjs +3 -0
  291. package/dist/core/cjs/_virtual/{isBuffer.cjs → index7.cjs} +2 -2
  292. package/dist/core/cjs/adapters/web/cookieTransport.cjs +15 -0
  293. package/dist/core/cjs/adapters/web/index.cjs +26 -0
  294. package/dist/core/cjs/adapters/web/webFileDownloadAdapter.cjs +16 -0
  295. package/dist/core/cjs/adapters/web/webFormDataAdapter.cjs +8 -0
  296. package/dist/core/cjs/adapters/web/webLocalizationAdapter.cjs +13 -0
  297. package/dist/core/cjs/adapters/web/webNetworkAdapter.cjs +6 -0
  298. package/dist/core/cjs/adapters/web/webOAuthOpener.cjs +26 -0
  299. package/dist/core/cjs/adapters/web/webStorageAdapter.cjs +21 -0
  300. package/dist/core/cjs/fab-react-toolkit-patch/api/hooks/useProvideApi.cjs +7 -12
  301. package/dist/core/cjs/fab-react-toolkit-patch/api/hooks/useProvideBulk.cjs +2 -2
  302. package/dist/core/cjs/fab-react-toolkit-patch/api/utils/api/downloadItems.cjs +5 -3
  303. package/dist/core/cjs/fab-react-toolkit-patch/api/utils/api/getItems.cjs +6 -5
  304. package/dist/core/cjs/fab-react-toolkit-patch/auth/utils/authFetch.cjs +19 -15
  305. package/dist/core/cjs/fab-react-toolkit-patch/auth/utils/userCRUD.cjs +9 -6
  306. package/dist/core/cjs/hooks/api/useBulkActions.cjs +2 -5
  307. package/dist/core/cjs/hooks/api/useForms.cjs +5 -5
  308. package/dist/core/cjs/index.cjs +91 -9
  309. package/dist/core/esm/Dialogs/AddDialog.mjs +1 -1
  310. package/dist/core/esm/Dialogs/EditDialog.mjs +3 -4
  311. package/dist/core/esm/Menu/UserMenu/UserMenu.mjs +1 -1
  312. package/dist/core/esm/Modals/CommonModal.mjs +1 -1
  313. package/dist/core/esm/Tables/DataGrid/Toolbar/Filter/FilterMenu.mjs +8 -9
  314. package/dist/core/esm/Tables/NextGenDataGrid/components/OptimizedMRT_RowSelectColumn/zustand.mjs +2 -2
  315. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useActions.mjs +1 -1
  316. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/Cell.mjs +1 -1
  317. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter.mjs +1 -1
  318. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/HeaderAdvancedFiltersMenuButton.mjs +1 -1
  319. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/useColumns.mjs +1 -1
  320. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useOptimizations.mjs +2 -3
  321. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useToolbar/useToolbar.mjs +1 -1
  322. package/dist/core/esm/Wrappers/ApiProvider/ApiProvider.mjs +5 -73
  323. package/dist/core/esm/Wrappers/Provider/Provider.mjs +15 -46
  324. package/dist/core/esm/_virtual/index.mjs +25 -3
  325. package/dist/core/esm/_virtual/index2.mjs +25 -3
  326. package/dist/core/esm/_virtual/index3.mjs +2 -5
  327. package/dist/core/esm/_virtual/index4.mjs +2 -2
  328. package/dist/core/esm/_virtual/index5.mjs +5 -0
  329. package/dist/core/esm/_virtual/index6.mjs +2 -0
  330. package/dist/core/esm/_virtual/index7.mjs +4 -0
  331. package/dist/core/esm/adapters/web/cookieTransport.mjs +15 -0
  332. package/dist/core/esm/adapters/web/index.mjs +26 -0
  333. package/dist/core/esm/adapters/web/webFileDownloadAdapter.mjs +16 -0
  334. package/dist/core/esm/adapters/web/webFormDataAdapter.mjs +8 -0
  335. package/dist/core/esm/adapters/web/webLocalizationAdapter.mjs +13 -0
  336. package/dist/core/esm/adapters/web/webNetworkAdapter.mjs +6 -0
  337. package/dist/core/esm/adapters/web/webOAuthOpener.mjs +26 -0
  338. package/dist/core/esm/adapters/web/webStorageAdapter.mjs +21 -0
  339. package/dist/core/esm/fab-react-toolkit-patch/api/hooks/useProvideApi.mjs +1 -6
  340. package/dist/core/esm/fab-react-toolkit-patch/api/hooks/useProvideBulk.mjs +1 -1
  341. package/dist/core/esm/fab-react-toolkit-patch/api/utils/api/downloadItems.mjs +5 -3
  342. package/dist/core/esm/fab-react-toolkit-patch/api/utils/api/getItems.mjs +4 -3
  343. package/dist/core/esm/fab-react-toolkit-patch/auth/utils/authFetch.mjs +15 -11
  344. package/dist/core/esm/fab-react-toolkit-patch/auth/utils/userCRUD.mjs +8 -5
  345. package/dist/core/esm/hooks/api/useBulkActions.mjs +2 -5
  346. package/dist/core/esm/hooks/api/useForms.mjs +1 -1
  347. package/dist/core/esm/index.mjs +23 -7
  348. package/dist/core/lib/Tables/NextGenDataGrid/components/OptimizedMRT_RowSelectColumn/zustand.d.ts +3 -3
  349. package/dist/core/lib/Tables/NextGenDataGrid/types.d.ts +3 -3
  350. package/dist/core/lib/Wrappers/ApiProvider/ApiProvider.d.ts +4 -17
  351. package/dist/core/lib/Wrappers/ApiProvider/types.d.ts +3 -47
  352. package/dist/core/lib/Wrappers/Provider/Provider.d.ts +4 -14
  353. package/dist/core/lib/Wrappers/Provider/types.d.ts +6 -27
  354. package/dist/core/lib/adapters/web/cookieTransport.d.ts +2 -0
  355. package/dist/core/lib/adapters/web/index.d.ts +10 -0
  356. package/dist/core/lib/adapters/web/webAdapters.test.d.ts +1 -0
  357. package/dist/core/lib/adapters/web/webFileDownloadAdapter.d.ts +2 -0
  358. package/dist/core/lib/adapters/web/webFormDataAdapter.d.ts +2 -0
  359. package/dist/core/lib/adapters/web/webLocalizationAdapter.d.ts +2 -0
  360. package/dist/core/lib/adapters/web/webNetworkAdapter.d.ts +2 -0
  361. package/dist/core/lib/adapters/web/webOAuthOpener.d.ts +2 -0
  362. package/dist/core/lib/adapters/web/webStorageAdapter.d.ts +3 -0
  363. package/dist/core/lib/fab-react-toolkit-patch/api/hooks/useProvideApi.d.ts +1 -1
  364. package/dist/core/lib/fab-react-toolkit-patch/api/hooks/useProvideBulk.d.ts +1 -1
  365. package/dist/core/lib/fab-react-toolkit-patch/api/utils/api/downloadItems.d.ts +2 -2
  366. package/dist/core/lib/fab-react-toolkit-patch/api/utils/api/getItems.d.ts +3 -2
  367. package/dist/core/lib/fab-react-toolkit-patch/auth/utils/authFetch.d.ts +11 -6
  368. package/dist/core/lib/fab-react-toolkit-patch/auth/utils/userCRUD.d.ts +5 -3
  369. package/dist/core/lib/hooks/api/types.d.ts +1 -59
  370. package/dist/core/lib/hooks/api/useForms.d.ts +1 -1
  371. package/dist/core/lib/index.d.ts +7 -8
  372. package/dist/core/lib/test-helpers/types.d.ts +1 -1
  373. package/dist/jsonforms/cjs/MantineInputs/MantineObjectInput.cjs +2 -2
  374. package/dist/jsonforms/cjs/complex/MantineTableControl/MantineTableControl.cjs +6 -11
  375. package/dist/jsonforms/cjs/layouts/Array/ExpandPanelRenderer.cjs +2 -2
  376. package/dist/jsonforms/cjs/layouts/Array/MantineArrayLayout.cjs +3 -5
  377. package/dist/jsonforms/cjs/utils/layout.cjs +2 -2
  378. package/dist/jsonforms/esm/MantineInputs/MantineObjectInput.mjs +2 -2
  379. package/dist/jsonforms/esm/complex/MantineTableControl/MantineTableControl.mjs +7 -12
  380. package/dist/jsonforms/esm/layouts/Array/ExpandPanelRenderer.mjs +2 -2
  381. package/dist/jsonforms/esm/layouts/Array/MantineArrayLayout.mjs +3 -5
  382. package/dist/jsonforms/esm/utils/layout.mjs +2 -2
  383. package/dist/jsonforms/lib/test-helpers/inputWrap.d.ts +2 -2
  384. package/dist/react-native-adapters/cjs/asyncStorageAdapter.cjs +8 -0
  385. package/dist/react-native-adapters/cjs/bearerTransport.cjs +29 -0
  386. package/dist/react-native-adapters/cjs/createReactNativeAdapters.cjs +24 -0
  387. package/dist/react-native-adapters/cjs/index.cjs +16 -0
  388. package/dist/react-native-adapters/cjs/rnFileDownloadAdapter.cjs +24 -0
  389. package/dist/react-native-adapters/cjs/rnFormDataAdapter.cjs +15 -0
  390. package/dist/react-native-adapters/cjs/rnNetworkAdapter.cjs +9 -0
  391. package/dist/react-native-adapters/cjs/rnOAuthOpener.cjs +9 -0
  392. package/dist/react-native-adapters/esm/asyncStorageAdapter.mjs +8 -0
  393. package/dist/react-native-adapters/esm/bearerTransport.mjs +29 -0
  394. package/dist/react-native-adapters/esm/createReactNativeAdapters.mjs +24 -0
  395. package/dist/react-native-adapters/esm/index.mjs +16 -0
  396. package/dist/react-native-adapters/esm/rnFileDownloadAdapter.mjs +24 -0
  397. package/dist/react-native-adapters/esm/rnFormDataAdapter.mjs +15 -0
  398. package/dist/react-native-adapters/esm/rnNetworkAdapter.mjs +9 -0
  399. package/dist/react-native-adapters/esm/rnOAuthOpener.mjs +9 -0
  400. package/dist/react-native-adapters/lib/asyncStorageAdapter.d.ts +7 -0
  401. package/dist/react-native-adapters/lib/asyncStorageAdapter.test.d.ts +1 -0
  402. package/dist/react-native-adapters/lib/bearerTransport.d.ts +5 -0
  403. package/dist/react-native-adapters/lib/bearerTransport.test.d.ts +1 -0
  404. package/dist/react-native-adapters/lib/createReactNativeAdapters.d.ts +11 -0
  405. package/dist/react-native-adapters/lib/createReactNativeAdapters.test.d.ts +1 -0
  406. package/dist/react-native-adapters/lib/index.d.ts +8 -0
  407. package/dist/react-native-adapters/lib/rnFileDownloadAdapter.d.ts +7 -0
  408. package/dist/react-native-adapters/lib/rnFileDownloadAdapter.test.d.ts +1 -0
  409. package/dist/react-native-adapters/lib/rnFormDataAdapter.d.ts +2 -0
  410. package/dist/react-native-adapters/lib/rnFormDataAdapter.test.d.ts +1 -0
  411. package/dist/react-native-adapters/lib/rnNetworkAdapter.d.ts +4 -0
  412. package/dist/react-native-adapters/lib/rnNetworkAdapter.test.d.ts +1 -0
  413. package/dist/react-native-adapters/lib/rnOAuthOpener.d.ts +5 -0
  414. package/dist/react-native-adapters/lib/rnOAuthOpener.test.d.ts +1 -0
  415. package/dist/react-native-adapters/lib/types.d.ts +23 -0
  416. package/dist/utils/cjs/Memoizer/MemoWrapper.cjs +2 -2
  417. package/dist/utils/cjs/Memoizer/RenderWrapper.cjs +2 -2
  418. package/dist/utils/cjs/_virtual/_commonjsHelpers.cjs +4 -0
  419. package/dist/utils/cjs/_virtual/lodash.cjs +6 -3
  420. package/dist/utils/cjs/index.cjs +4 -6
  421. package/dist/utils/cjs/randomId/randomId.cjs +4 -0
  422. package/dist/utils/esm/Memoizer/MemoWrapper.mjs +1 -1
  423. package/dist/utils/esm/Memoizer/RenderWrapper.mjs +1 -1
  424. package/dist/utils/esm/_virtual/_commonjsHelpers.mjs +5 -1
  425. package/dist/utils/esm/_virtual/lodash.mjs +3 -0
  426. package/dist/utils/esm/index.mjs +4 -6
  427. package/dist/utils/esm/randomId/randomId.mjs +4 -0
  428. package/dist/utils/lib/index.d.ts +3 -3
  429. package/dist/utils/lib/randomId/index.d.ts +1 -0
  430. package/dist/utils/lib/randomId/randomId.d.ts +2 -0
  431. package/dist/utils/lib/randomId/randomId.test.d.ts +1 -0
  432. package/dist/zustand/cjs/index.cjs +2 -0
  433. package/dist/zustand/esm/index.mjs +3 -1
  434. package/dist/zustand/lib/index.d.ts +1 -0
  435. package/package.json +13 -2
  436. package/dist/.bundled/jsonforms/cjs/_virtual/lodash.cjs +0 -5
  437. package/dist/.bundled/jsonforms/cjs/_virtual/lodash2.cjs +0 -4
  438. package/dist/.bundled/jsonforms/cjs/_virtual/map.cjs +0 -6
  439. package/dist/.bundled/jsonforms/cjs/_virtual/union.cjs +0 -6
  440. package/dist/.bundled/jsonforms/esm/_virtual/lodash.mjs +0 -5
  441. package/dist/.bundled/jsonforms/esm/_virtual/lodash2.mjs +0 -4
  442. package/dist/.bundled/jsonforms/esm/_virtual/map.mjs +0 -7
  443. package/dist/.bundled/jsonforms/esm/_virtual/union.mjs +0 -7
  444. package/dist/.external/cjs/lodash@4.17.23/lodash/_arrayIncludesWith.cjs +0 -20
  445. package/dist/.external/cjs/lodash@4.17.23/lodash/_baseMap.cjs +0 -21
  446. package/dist/.external/cjs/lodash@4.17.23/lodash/_baseUniq.cjs +0 -59
  447. package/dist/.external/cjs/lodash@4.17.23/lodash/_createSet.cjs +0 -19
  448. package/dist/.external/cjs/lodash@4.17.23/lodash/map.cjs +0 -20
  449. package/dist/.external/cjs/lodash@4.17.23/lodash/union.cjs +0 -19
  450. package/dist/.external/esm/lodash@4.17.23/lodash/_arrayIncludesWith.mjs +0 -20
  451. package/dist/.external/esm/lodash@4.17.23/lodash/_baseMap.mjs +0 -21
  452. package/dist/.external/esm/lodash@4.17.23/lodash/_baseUniq.mjs +0 -59
  453. package/dist/.external/esm/lodash@4.17.23/lodash/_createSet.mjs +0 -19
  454. package/dist/.external/esm/lodash@4.17.23/lodash/map.mjs +0 -20
  455. package/dist/.external/esm/lodash@4.17.23/lodash/union.mjs +0 -19
  456. package/dist/constants/cjs/_virtual/index.cjs +0 -27
  457. package/dist/constants/cjs/_virtual/index2.cjs +0 -27
  458. package/dist/constants/cjs/_virtual/index3.cjs +0 -4
  459. package/dist/constants/esm/_virtual/index.mjs +0 -27
  460. package/dist/constants/esm/_virtual/index2.mjs +0 -27
  461. package/dist/constants/esm/_virtual/index3.mjs +0 -4
  462. package/dist/constants/esm/_virtual/index4.mjs +0 -4
  463. package/dist/core/cjs/Wrappers/ApiProvider/utils/api/createItem.cjs +0 -14
  464. package/dist/core/cjs/Wrappers/ApiProvider/utils/api/deleteItem.cjs +0 -13
  465. package/dist/core/cjs/Wrappers/ApiProvider/utils/api/downloadItems.cjs +0 -39
  466. package/dist/core/cjs/Wrappers/ApiProvider/utils/api/formCreateItem.cjs +0 -12
  467. package/dist/core/cjs/Wrappers/ApiProvider/utils/api/formUpdateItem.cjs +0 -16
  468. package/dist/core/cjs/Wrappers/ApiProvider/utils/api/getInfo.cjs +0 -9
  469. package/dist/core/cjs/Wrappers/ApiProvider/utils/api/getItem.cjs +0 -13
  470. package/dist/core/cjs/Wrappers/ApiProvider/utils/api/getItems.cjs +0 -9
  471. package/dist/core/cjs/Wrappers/ApiProvider/utils/api/updateItem.cjs +0 -14
  472. package/dist/core/cjs/Wrappers/ApiProvider/utils/api/uploadItems.cjs +0 -26
  473. package/dist/core/cjs/Wrappers/ApiProvider/utils/bulkActions/postBulkAction.cjs +0 -14
  474. package/dist/core/cjs/Wrappers/Provider/hooks/useProvideLang.cjs +0 -45
  475. package/dist/core/cjs/Wrappers/Provider/utils/authFetch.cjs +0 -99
  476. package/dist/core/cjs/Wrappers/Provider/utils/userCRUD.cjs +0 -32
  477. package/dist/core/cjs/_virtual/_commonjsHelpers.cjs +0 -8
  478. package/dist/core/cjs/_virtual/_nodeUtil.cjs +0 -4
  479. package/dist/core/cjs/_virtual/isEqual.cjs +0 -6
  480. package/dist/core/cjs/_virtual/lodash.cjs +0 -5
  481. package/dist/core/cjs/_virtual/lodash2.cjs +0 -4
  482. package/dist/core/esm/Wrappers/ApiProvider/utils/api/createItem.mjs +0 -14
  483. package/dist/core/esm/Wrappers/ApiProvider/utils/api/deleteItem.mjs +0 -13
  484. package/dist/core/esm/Wrappers/ApiProvider/utils/api/downloadItems.mjs +0 -39
  485. package/dist/core/esm/Wrappers/ApiProvider/utils/api/formCreateItem.mjs +0 -12
  486. package/dist/core/esm/Wrappers/ApiProvider/utils/api/formUpdateItem.mjs +0 -16
  487. package/dist/core/esm/Wrappers/ApiProvider/utils/api/getInfo.mjs +0 -9
  488. package/dist/core/esm/Wrappers/ApiProvider/utils/api/getItem.mjs +0 -13
  489. package/dist/core/esm/Wrappers/ApiProvider/utils/api/getItems.mjs +0 -9
  490. package/dist/core/esm/Wrappers/ApiProvider/utils/api/updateItem.mjs +0 -14
  491. package/dist/core/esm/Wrappers/ApiProvider/utils/api/uploadItems.mjs +0 -26
  492. package/dist/core/esm/Wrappers/ApiProvider/utils/bulkActions/postBulkAction.mjs +0 -14
  493. package/dist/core/esm/Wrappers/Provider/hooks/useProvideLang.mjs +0 -45
  494. package/dist/core/esm/Wrappers/Provider/utils/authFetch.mjs +0 -99
  495. package/dist/core/esm/Wrappers/Provider/utils/userCRUD.mjs +0 -32
  496. package/dist/core/esm/_virtual/_commonjsHelpers.mjs +0 -8
  497. package/dist/core/esm/_virtual/_nodeUtil.mjs +0 -4
  498. package/dist/core/esm/_virtual/isBuffer.mjs +0 -4
  499. package/dist/core/esm/_virtual/isEqual.mjs +0 -7
  500. package/dist/core/esm/_virtual/lodash.mjs +0 -5
  501. package/dist/core/esm/_virtual/lodash2.mjs +0 -4
  502. package/dist/core/lib/Wrappers/ApiProvider/Contexts/FormContext.d.ts +0 -5
  503. package/dist/core/lib/Wrappers/ApiProvider/hooks/types.d.ts +0 -90
  504. package/dist/core/lib/Wrappers/ApiProvider/hooks/useProvideBulk.d.ts +0 -8
  505. package/dist/core/lib/Wrappers/ApiProvider/hooks/useProvideForm.d.ts +0 -2
  506. package/dist/core/lib/Wrappers/ApiProvider/hooks/utils/useApiActions.d.ts +0 -11
  507. package/dist/core/lib/Wrappers/ApiProvider/hooks/utils/useStreamingData.d.ts +0 -193
  508. package/dist/core/lib/Wrappers/ApiProvider/utils/api/createItem.d.ts +0 -3
  509. package/dist/core/lib/Wrappers/ApiProvider/utils/api/deleteItem.d.ts +0 -3
  510. package/dist/core/lib/Wrappers/ApiProvider/utils/api/downloadItems.d.ts +0 -3
  511. package/dist/core/lib/Wrappers/ApiProvider/utils/api/formCreateItem.d.ts +0 -3
  512. package/dist/core/lib/Wrappers/ApiProvider/utils/api/formUpdateItem.d.ts +0 -3
  513. package/dist/core/lib/Wrappers/ApiProvider/utils/api/getItem.d.ts +0 -3
  514. package/dist/core/lib/Wrappers/ApiProvider/utils/api/updateItem.d.ts +0 -3
  515. package/dist/core/lib/Wrappers/ApiProvider/utils/api/uploadItems.d.ts +0 -2
  516. package/dist/core/lib/Wrappers/ApiProvider/utils/bulkActions/postBulkAction.d.ts +0 -3
  517. package/dist/core/lib/Wrappers/Provider/hooks/types.d.ts +0 -24
  518. package/dist/core/lib/Wrappers/Provider/hooks/useProvideAuth.d.ts +0 -17
  519. package/dist/core/lib/Wrappers/Provider/utils/userCRUD.d.ts +0 -19
  520. package/dist/jsonforms/cjs/_virtual/_cloneBuffer.cjs +0 -4
  521. package/dist/jsonforms/cjs/_virtual/_nodeUtil.cjs +0 -4
  522. package/dist/jsonforms/cjs/_virtual/isBuffer.cjs +0 -4
  523. package/dist/jsonforms/cjs/_virtual/isEmpty.cjs +0 -6
  524. package/dist/jsonforms/cjs/_virtual/lodash.cjs +0 -5
  525. package/dist/jsonforms/cjs/_virtual/lodash2.cjs +0 -4
  526. package/dist/jsonforms/cjs/_virtual/map.cjs +0 -6
  527. package/dist/jsonforms/cjs/_virtual/merge.cjs +0 -6
  528. package/dist/jsonforms/cjs/_virtual/range.cjs +0 -6
  529. package/dist/jsonforms/cjs/_virtual/startCase.cjs +0 -6
  530. package/dist/jsonforms/cjs/_virtual/union.cjs +0 -6
  531. package/dist/jsonforms/esm/_virtual/_cloneBuffer.mjs +0 -4
  532. package/dist/jsonforms/esm/_virtual/_commonjsHelpers.mjs +0 -8
  533. package/dist/jsonforms/esm/_virtual/_nodeUtil.mjs +0 -4
  534. package/dist/jsonforms/esm/_virtual/isBuffer.mjs +0 -4
  535. package/dist/jsonforms/esm/_virtual/isEmpty.mjs +0 -7
  536. package/dist/jsonforms/esm/_virtual/lodash.mjs +0 -5
  537. package/dist/jsonforms/esm/_virtual/lodash2.mjs +0 -4
  538. package/dist/jsonforms/esm/_virtual/map.mjs +0 -7
  539. package/dist/jsonforms/esm/_virtual/merge.mjs +0 -7
  540. package/dist/jsonforms/esm/_virtual/range.mjs +0 -7
  541. package/dist/jsonforms/esm/_virtual/startCase.mjs +0 -7
  542. package/dist/jsonforms/esm/_virtual/union.mjs +0 -7
  543. package/dist/utils/lib/convertToFormData/convertToFormData.d.ts +0 -15
  544. /package/dist/{core/cjs/Wrappers → api/cjs}/ApiProvider/Contexts/BulkActionsContext.cjs +0 -0
  545. /package/dist/{core/cjs/Wrappers → api/cjs}/ApiProvider/Contexts/FormContext.cjs +0 -0
  546. /package/dist/{core/cjs/Wrappers → api/cjs}/ApiProvider/hooks/utils/useLatest.cjs +0 -0
  547. /package/dist/{core/cjs/Wrappers → api/cjs}/ApiProvider/utils/convertInfo.cjs +0 -0
  548. /package/dist/{core/cjs/Wrappers → api/cjs}/ApiProvider/utils/createQueryParams.cjs +0 -0
  549. /package/dist/{core/cjs/Wrappers → api/cjs}/ApiProvider/utils/getDefaultValues.cjs +0 -0
  550. /package/dist/{core/cjs/Wrappers → api/cjs}/Provider/Contexts/AuthContext.cjs +0 -0
  551. /package/dist/{core/cjs/Wrappers → api/cjs}/Provider/Contexts/InfoContext.cjs +0 -0
  552. /package/dist/{core → api}/cjs/translations/de.cjs +0 -0
  553. /package/dist/{utils/cjs → api/cjs/utils}/parseResponse/parseResponse.cjs +0 -0
  554. /package/dist/{core/esm/Wrappers → api/esm}/ApiProvider/Contexts/BulkActionsContext.mjs +0 -0
  555. /package/dist/{core/esm/Wrappers → api/esm}/ApiProvider/Contexts/FormContext.mjs +0 -0
  556. /package/dist/{core/esm/Wrappers → api/esm}/ApiProvider/hooks/utils/useLatest.mjs +0 -0
  557. /package/dist/{core/esm/Wrappers → api/esm}/ApiProvider/utils/convertInfo.mjs +0 -0
  558. /package/dist/{core/esm/Wrappers → api/esm}/ApiProvider/utils/createQueryParams.mjs +0 -0
  559. /package/dist/{core/esm/Wrappers → api/esm}/ApiProvider/utils/getDefaultValues.mjs +0 -0
  560. /package/dist/{core/esm/Wrappers → api/esm}/Provider/Contexts/AuthContext.mjs +0 -0
  561. /package/dist/{core/esm/Wrappers → api/esm}/Provider/Contexts/InfoContext.mjs +0 -0
  562. /package/dist/{core → api}/esm/translations/de.mjs +0 -0
  563. /package/dist/{utils/esm → api/esm/utils}/parseResponse/parseResponse.mjs +0 -0
  564. /package/dist/{core/lib/Wrappers/ApiProvider/hooks/useProvideApi.test.d.ts → api/lib/ApiProvider/ApiProvider.test.d.ts} +0 -0
  565. /package/dist/{core/lib/Wrappers → api/lib}/ApiProvider/Contexts/ApiContext.d.ts +0 -0
  566. /package/dist/{core/lib/Wrappers → api/lib}/ApiProvider/hooks/useProvideApi.d.ts +0 -0
  567. /package/dist/{core/lib/Wrappers/ApiProvider/hooks/useProvideBulk.test.d.ts → api/lib/ApiProvider/hooks/useProvideApi.test.d.ts} +0 -0
  568. /package/dist/{core/lib/Wrappers/ApiProvider/hooks/useProvideForm.test.d.ts → api/lib/ApiProvider/hooks/useProvideBulk.test.d.ts} +0 -0
  569. /package/dist/{core/lib/Wrappers/ApiProvider/hooks/utils/useApiActions.test.d.ts → api/lib/ApiProvider/hooks/useProvideForm.test.d.ts} +0 -0
  570. /package/dist/{core/lib/Wrappers/ApiProvider/hooks/utils/useLatest.test.d.ts → api/lib/ApiProvider/hooks/utils/useApiActions.test.d.ts} +0 -0
  571. /package/dist/{core/lib/Wrappers → api/lib}/ApiProvider/hooks/utils/useLatest.d.ts +0 -0
  572. /package/dist/{core/lib/Wrappers/ApiProvider/hooks/utils/useStreamingData.test.d.ts → api/lib/ApiProvider/hooks/utils/useLatest.test.d.ts} +0 -0
  573. /package/dist/{core/lib/Wrappers/ApiProvider/utils/api/createItem.test.d.ts → api/lib/ApiProvider/hooks/utils/useStreamingData.test.d.ts} +0 -0
  574. /package/dist/{core/lib/Wrappers → api/lib}/ApiProvider/utils/convertInfo.d.ts +0 -0
  575. /package/dist/{core/lib/Wrappers → api/lib}/ApiProvider/utils/convertInfo.test.d.ts +0 -0
  576. /package/dist/{core/lib/Wrappers → api/lib}/ApiProvider/utils/createQueryParams.d.ts +0 -0
  577. /package/dist/{core/lib/Wrappers → api/lib}/ApiProvider/utils/createQueryParams.test.d.ts +0 -0
  578. /package/dist/{core/lib/Wrappers → api/lib}/ApiProvider/utils/getDefaultValues.test.d.ts +0 -0
  579. /package/dist/{core/lib/Wrappers → api/lib}/ApiProvider/utils/getValidationSchema.test.d.ts +0 -0
  580. /package/dist/{core/lib/Wrappers → api/lib}/ApiProvider/utils/types.d.ts +0 -0
  581. /package/dist/{core/lib/Wrappers → api/lib}/Provider/Contexts/LangContext.d.ts +0 -0
  582. /package/dist/{core/lib/Wrappers/ApiProvider/utils/api/deleteItem.test.d.ts → api/lib/Provider/Provider.test.d.ts} +0 -0
  583. /package/dist/{core/lib/Wrappers → api/lib}/Provider/hooks/useProvideAuth.test.d.ts +0 -0
  584. /package/dist/{core/lib/Wrappers → api/lib}/Provider/hooks/useProvideInfo.test.d.ts +0 -0
  585. /package/dist/{core/lib/Wrappers → api/lib}/Provider/hooks/useProvideLang.test.d.ts +0 -0
  586. /package/dist/{core/lib/Wrappers/ApiProvider/utils/api/downloadItems.test.d.ts → api/lib/__tests__/purity.test.d.ts} +0 -0
  587. /package/dist/{core/lib/Wrappers/ApiProvider/utils/api/formCreateItem.test.d.ts → api/lib/__tests__/smoke.test.d.ts} +0 -0
  588. /package/dist/{core/lib/Wrappers/ApiProvider/utils/api/formUpdateItem.test.d.ts → api/lib/adapters/AdaptersContext.test.d.ts} +0 -0
  589. /package/dist/{core/lib/Wrappers/Provider/utils → api/lib/auth}/authFetch.test.d.ts +0 -0
  590. /package/dist/{core/lib/Wrappers/Provider/utils → api/lib/auth}/userCRUD.test.d.ts +0 -0
  591. /package/dist/{core/lib/Wrappers/ApiProvider/utils/api/getInfo.test.d.ts → api/lib/fetchers/createItem.test.d.ts} +0 -0
  592. /package/dist/{core/lib/Wrappers/ApiProvider/utils/api/getItem.test.d.ts → api/lib/fetchers/deleteItem.test.d.ts} +0 -0
  593. /package/dist/{core/lib/Wrappers/ApiProvider/utils/api/getItems.test.d.ts → api/lib/fetchers/downloadItems.test.d.ts} +0 -0
  594. /package/dist/{core/lib/Wrappers/ApiProvider/utils/api/updateItem.test.d.ts → api/lib/fetchers/formCreateItem.test.d.ts} +0 -0
  595. /package/dist/{core/lib/Wrappers/ApiProvider/utils/api/uploadItems.test.d.ts → api/lib/fetchers/formUpdateItem.test.d.ts} +0 -0
  596. /package/dist/{core/lib/Wrappers/ApiProvider/utils/bulkActions/postBulkAction.test.d.ts → api/lib/fetchers/getInfo.test.d.ts} +0 -0
  597. /package/dist/{core/lib/hooks/auth/useAuth.test.d.ts → api/lib/fetchers/getItem.test.d.ts} +0 -0
  598. /package/dist/{core/lib/hooks/auth/useInfo.test.d.ts → api/lib/fetchers/getItems.test.d.ts} +0 -0
  599. /package/dist/{utils/lib/convertToFormData/convertToFormData.test.d.ts → api/lib/fetchers/postBulkAction.test.d.ts} +0 -0
  600. /package/dist/{utils/lib/createFetchParams/createFetchParams.test.d.ts → api/lib/fetchers/request.test.d.ts} +0 -0
  601. /package/dist/{utils/lib/parseResponse/parseResponse.test.d.ts → api/lib/fetchers/updateItem.test.d.ts} +0 -0
  602. /package/dist/{core → api}/lib/hooks/auth/useAuth.d.ts +0 -0
  603. /package/dist/{core → api}/lib/hooks/auth/useInfo.d.ts +0 -0
  604. /package/dist/{core → api}/lib/translations/de.d.ts +0 -0
  605. /package/dist/{utils/lib → api/lib/utils}/convertToFormData/index.d.ts +0 -0
  606. /package/dist/{utils/lib → api/lib/utils}/createFetchParams/index.d.ts +0 -0
  607. /package/dist/{utils/lib → api/lib/utils}/parseResponse/index.d.ts +0 -0
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const vanilla = require("./vanilla.cjs");
4
+ const react = require("./react.cjs");
5
+ exports.createStore = vanilla.createStore;
6
+ exports.create = react.create;
7
+ exports.useStore = react.useStore;
@@ -0,0 +1,60 @@
1
+ import e from "../../../../../contexts/esm/_virtual/index5.mjs";
2
+ var t = /\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;
3
+ function n(n2) {
4
+ var r2 = { type: "tag", name: "", voidElement: false, attrs: {}, children: [] }, i2 = n2.match(/<\/?([^\s]+?)[/\s>]/);
5
+ if (i2 && (r2.name = i2[1], (e[i2[1]] || "/" === n2.charAt(n2.length - 2)) && (r2.voidElement = true), r2.name.startsWith("!--"))) {
6
+ var s2 = n2.indexOf("-->");
7
+ return { type: "comment", comment: -1 !== s2 ? n2.slice(4, s2) : "" };
8
+ }
9
+ for (var a2 = new RegExp(t), c2 = null; null !== (c2 = a2.exec(n2)); ) if (c2[0].trim()) if (c2[1]) {
10
+ var o = c2[1].trim(), l = [o, ""];
11
+ o.indexOf("=") > -1 && (l = o.split("=")), r2.attrs[l[0]] = l[1], a2.lastIndex--;
12
+ } else c2[2] && (r2.attrs[c2[2]] = c2[3].trim().substring(1, c2[3].length - 1));
13
+ return r2;
14
+ }
15
+ var r = /<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g, i = /^\s*$/, s = /* @__PURE__ */ Object.create(null);
16
+ function a(e2, t2) {
17
+ switch (t2.type) {
18
+ case "text":
19
+ return e2 + t2.content;
20
+ case "tag":
21
+ return e2 += "<" + t2.name + (t2.attrs ? (function(e3) {
22
+ var t3 = [];
23
+ for (var n2 in e3) t3.push(n2 + '="' + e3[n2] + '"');
24
+ return t3.length ? " " + t3.join(" ") : "";
25
+ })(t2.attrs) : "") + (t2.voidElement ? "/>" : ">"), t2.voidElement ? e2 : e2 + t2.children.reduce(a, "") + "</" + t2.name + ">";
26
+ case "comment":
27
+ return e2 + "<!--" + t2.comment + "-->";
28
+ }
29
+ }
30
+ var c = { parse: function(e2, t2) {
31
+ t2 || (t2 = {}), t2.components || (t2.components = s);
32
+ var a2, c2 = [], o = [], l = -1, m = false;
33
+ if (0 !== e2.indexOf("<")) {
34
+ var u = e2.indexOf("<");
35
+ c2.push({ type: "text", content: -1 === u ? e2 : e2.substring(0, u) });
36
+ }
37
+ return e2.replace(r, function(r2, s2) {
38
+ if (m) {
39
+ if (r2 !== "</" + a2.name + ">") return;
40
+ m = false;
41
+ }
42
+ var u2, f = "/" !== r2.charAt(1), h = r2.startsWith("<!--"), p = s2 + r2.length, d = e2.charAt(p);
43
+ if (h) {
44
+ var v = n(r2);
45
+ return l < 0 ? (c2.push(v), c2) : ((u2 = o[l]).children.push(v), c2);
46
+ }
47
+ if (f && (l++, "tag" === (a2 = n(r2)).type && t2.components[a2.name] && (a2.type = "component", m = true), a2.voidElement || m || !d || "<" === d || a2.children.push({ type: "text", content: e2.slice(p, e2.indexOf("<", p)) }), 0 === l && c2.push(a2), (u2 = o[l - 1]) && u2.children.push(a2), o[l] = a2), (!f || a2.voidElement) && (l > -1 && (a2.voidElement || a2.name === r2.slice(2, -1)) && (l--, a2 = -1 === l ? c2 : o[l]), !m && "<" !== d && d)) {
48
+ u2 = -1 === l ? c2 : o[l].children;
49
+ var x = e2.indexOf("<", p), g = e2.slice(p, -1 === x ? void 0 : x);
50
+ i.test(g) && (g = " "), (x > -1 && l + u2.length >= 0 || " " !== g) && u2.push({ type: "text", content: g });
51
+ }
52
+ }), c2;
53
+ }, stringify: function(e2) {
54
+ return e2.reduce(function(e3, t2) {
55
+ return e3 + a("", t2);
56
+ }, "");
57
+ } };
58
+ export {
59
+ c as default
60
+ };
@@ -1,4 +1,4 @@
1
- import { __module as _cloneBuffer } from "../../../../jsonforms/esm/_virtual/_cloneBuffer.mjs";
1
+ import { __module as _cloneBuffer } from "../../../../.bundled/jsonforms/esm/_virtual/_cloneBuffer.mjs";
2
2
  import { __require as require_root } from "./_root.mjs";
3
3
  _cloneBuffer.exports;
4
4
  var hasRequired_cloneBuffer;
@@ -1,4 +1,4 @@
1
- import { commonjsGlobal } from "../../../../core/esm/_virtual/_commonjsHelpers.mjs";
1
+ import { commonjsGlobal } from "../../../../.bundled/jsonforms/esm/_virtual/_commonjsHelpers.mjs";
2
2
  var _freeGlobal;
3
3
  var hasRequired_freeGlobal;
4
4
  function require_freeGlobal() {
@@ -1,4 +1,4 @@
1
- import { __module as _nodeUtil } from "../../../../core/esm/_virtual/_nodeUtil.mjs";
1
+ import { __module as _nodeUtil } from "../../../../.bundled/jsonforms/esm/_virtual/_nodeUtil.mjs";
2
2
  import { __require as require_freeGlobal } from "./_freeGlobal.mjs";
3
3
  _nodeUtil.exports;
4
4
  var hasRequired_nodeUtil;
@@ -1,4 +1,4 @@
1
- import { __module as isBuffer } from "../../../../core/esm/_virtual/isBuffer.mjs";
1
+ import { __module as isBuffer } from "../../../../.bundled/jsonforms/esm/_virtual/isBuffer.mjs";
2
2
  import { __require as require_root } from "./_root.mjs";
3
3
  import { __require as requireStubFalse } from "./stubFalse.mjs";
4
4
  isBuffer.exports;
@@ -1,5 +1,5 @@
1
- import { commonjsGlobal } from "../../../../core/esm/_virtual/_commonjsHelpers.mjs";
2
- import { __module as lodash$1 } from "../../../../core/esm/_virtual/lodash2.mjs";
1
+ import { commonjsGlobal } from "../../../../utils/esm/_virtual/_commonjsHelpers.mjs";
2
+ import { __module as lodash$1 } from "../../../../utils/esm/_virtual/lodash2.mjs";
3
3
  /**
4
4
  * @license
5
5
  * Lodash <https://lodash.com/>
@@ -1,4 +1,4 @@
1
- import { __exports as de } from "../../../../../../constants/esm/_virtual/index3.mjs";
1
+ import { __exports as de } from "../../../../../../core/esm/_virtual/index3.mjs";
2
2
  var hasRequiredDe;
3
3
  function requireDe() {
4
4
  if (hasRequiredDe) return de;
@@ -1,4 +1,4 @@
1
- import { __exports as en } from "../../../../../../constants/esm/_virtual/index4.mjs";
1
+ import { __exports as en } from "../../../../../../core/esm/_virtual/index4.mjs";
2
2
  var hasRequiredEn;
3
3
  function requireEn() {
4
4
  if (hasRequiredEn) return en;
@@ -0,0 +1,49 @@
1
+ import { useContext } from "react";
2
+ import { Trans as Trans$1 } from "./TransWithoutContext.mjs";
3
+ import { nodesToString } from "./TransWithoutContext.mjs";
4
+ import { I18nContext } from "./context.mjs";
5
+ import { getI18n } from "./i18nInstance.mjs";
6
+ function Trans({
7
+ children,
8
+ count,
9
+ parent,
10
+ i18nKey,
11
+ context,
12
+ tOptions = {},
13
+ values,
14
+ defaults,
15
+ components,
16
+ ns,
17
+ i18n: i18nFromProps,
18
+ t: tFromProps,
19
+ shouldUnescape,
20
+ ...additionalProps
21
+ }) {
22
+ var _a;
23
+ const {
24
+ i18n: i18nFromContext,
25
+ defaultNS: defaultNSFromContext
26
+ } = useContext(I18nContext) || {};
27
+ const i18n = i18nFromProps || i18nFromContext || getI18n();
28
+ const t = tFromProps || (i18n == null ? void 0 : i18n.t.bind(i18n));
29
+ return Trans$1({
30
+ children,
31
+ count,
32
+ parent,
33
+ i18nKey,
34
+ context,
35
+ tOptions,
36
+ values,
37
+ defaults,
38
+ components,
39
+ ns: ns || (t == null ? void 0 : t.ns) || defaultNSFromContext || ((_a = i18n == null ? void 0 : i18n.options) == null ? void 0 : _a.defaultNS),
40
+ i18n,
41
+ t: tFromProps,
42
+ shouldUnescape,
43
+ ...additionalProps
44
+ });
45
+ }
46
+ export {
47
+ Trans,
48
+ nodesToString
49
+ };
@@ -0,0 +1,331 @@
1
+ import { createElement, isValidElement, cloneElement, Children, Fragment } from "react";
2
+ import c from "../../../../html-parse-stringify@3.0.1/html-parse-stringify/dist/html-parse-stringify.module.mjs";
3
+ import { warnOnce, isString, warn, isObject } from "./utils.mjs";
4
+ import { getDefaults } from "./defaults.mjs";
5
+ import { getI18n } from "./i18nInstance.mjs";
6
+ const hasChildren = (node, checkLength) => {
7
+ var _a;
8
+ if (!node) return false;
9
+ const base = ((_a = node.props) == null ? void 0 : _a.children) ?? node.children;
10
+ if (checkLength) return base.length > 0;
11
+ return !!base;
12
+ };
13
+ const getChildren = (node) => {
14
+ var _a, _b;
15
+ if (!node) return [];
16
+ const children = ((_a = node.props) == null ? void 0 : _a.children) ?? node.children;
17
+ return ((_b = node.props) == null ? void 0 : _b.i18nIsDynamicList) ? getAsArray(children) : children;
18
+ };
19
+ const hasValidReactChildren = (children) => Array.isArray(children) && children.every(isValidElement);
20
+ const getAsArray = (data) => Array.isArray(data) ? data : [data];
21
+ const mergeProps = (source, target) => {
22
+ const newTarget = {
23
+ ...target
24
+ };
25
+ newTarget.props = Object.assign(source.props, target.props);
26
+ return newTarget;
27
+ };
28
+ const nodesToString = (children, i18nOptions, i18n, i18nKey) => {
29
+ if (!children) return "";
30
+ let stringNode = "";
31
+ const childrenArray = getAsArray(children);
32
+ const keepArray = (i18nOptions == null ? void 0 : i18nOptions.transSupportBasicHtmlNodes) ? i18nOptions.transKeepBasicHtmlNodesFor ?? [] : [];
33
+ childrenArray.forEach((child, childIndex) => {
34
+ if (isString(child)) {
35
+ stringNode += `${child}`;
36
+ return;
37
+ }
38
+ if (isValidElement(child)) {
39
+ const {
40
+ props,
41
+ type
42
+ } = child;
43
+ const childPropsCount = Object.keys(props).length;
44
+ const shouldKeepChild = keepArray.indexOf(type) > -1;
45
+ const childChildren = props.children;
46
+ if (!childChildren && shouldKeepChild && !childPropsCount) {
47
+ stringNode += `<${type}/>`;
48
+ return;
49
+ }
50
+ if (!childChildren && (!shouldKeepChild || childPropsCount) || props.i18nIsDynamicList) {
51
+ stringNode += `<${childIndex}></${childIndex}>`;
52
+ return;
53
+ }
54
+ if (shouldKeepChild && childPropsCount === 1 && isString(childChildren)) {
55
+ stringNode += `<${type}>${childChildren}</${type}>`;
56
+ return;
57
+ }
58
+ const content = nodesToString(childChildren, i18nOptions, i18n, i18nKey);
59
+ stringNode += `<${childIndex}>${content}</${childIndex}>`;
60
+ return;
61
+ }
62
+ if (child === null) {
63
+ warn(i18n, "TRANS_NULL_VALUE", `Passed in a null value as child`, {
64
+ i18nKey
65
+ });
66
+ return;
67
+ }
68
+ if (isObject(child)) {
69
+ const {
70
+ format,
71
+ ...clone
72
+ } = child;
73
+ const keys = Object.keys(clone);
74
+ if (keys.length === 1) {
75
+ const value = format ? `${keys[0]}, ${format}` : keys[0];
76
+ stringNode += `{{${value}}}`;
77
+ return;
78
+ }
79
+ warn(i18n, "TRANS_INVALID_OBJ", `Invalid child - Object should only have keys {{ value, format }} (format is optional).`, {
80
+ i18nKey,
81
+ child
82
+ });
83
+ return;
84
+ }
85
+ warn(i18n, "TRANS_INVALID_VAR", `Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.`, {
86
+ i18nKey,
87
+ child
88
+ });
89
+ });
90
+ return stringNode;
91
+ };
92
+ const renderNodes = (children, knownComponentsMap, targetString, i18n, i18nOptions, combinedTOpts, shouldUnescape) => {
93
+ if (targetString === "") return [];
94
+ const keepArray = i18nOptions.transKeepBasicHtmlNodesFor || [];
95
+ const emptyChildrenButNeedsHandling = targetString && new RegExp(keepArray.map((keep) => `<${keep}`).join("|")).test(targetString);
96
+ if (!children && !knownComponentsMap && !emptyChildrenButNeedsHandling && !shouldUnescape) return [targetString];
97
+ const data = knownComponentsMap ?? {};
98
+ const getData = (childs) => {
99
+ const childrenArray = getAsArray(childs);
100
+ childrenArray.forEach((child) => {
101
+ if (isString(child)) return;
102
+ if (hasChildren(child)) getData(getChildren(child));
103
+ else if (isObject(child) && !isValidElement(child)) Object.assign(data, child);
104
+ });
105
+ };
106
+ getData(children);
107
+ const ast = c.parse(`<0>${targetString}</0>`);
108
+ const opts = {
109
+ ...data,
110
+ ...combinedTOpts
111
+ };
112
+ const renderInner = (child, node, rootReactNode) => {
113
+ var _a;
114
+ const childs = getChildren(child);
115
+ const mappedChildren = mapAST(childs, node.children, rootReactNode);
116
+ return hasValidReactChildren(childs) && mappedChildren.length === 0 || ((_a = child.props) == null ? void 0 : _a.i18nIsDynamicList) ? childs : mappedChildren;
117
+ };
118
+ const pushTranslatedJSX = (child, inner, mem, i, isVoid) => {
119
+ if (child.dummy) {
120
+ child.children = inner;
121
+ mem.push(cloneElement(child, {
122
+ key: i
123
+ }, isVoid ? void 0 : inner));
124
+ } else {
125
+ mem.push(...Children.map([child], (c2) => {
126
+ const props = {
127
+ ...c2.props
128
+ };
129
+ delete props.i18nIsDynamicList;
130
+ return createElement(c2.type, {
131
+ ...props,
132
+ key: i,
133
+ ref: c2.props.ref ?? c2.ref
134
+ }, isVoid ? null : inner);
135
+ }));
136
+ }
137
+ };
138
+ const mapAST = (reactNode, astNode, rootReactNode) => {
139
+ const reactNodes = getAsArray(reactNode);
140
+ const astNodes = getAsArray(astNode);
141
+ return astNodes.reduce((mem, node, i) => {
142
+ var _a, _b;
143
+ const translationContent = ((_b = (_a = node.children) == null ? void 0 : _a[0]) == null ? void 0 : _b.content) && i18n.services.interpolator.interpolate(node.children[0].content, opts, i18n.language);
144
+ if (node.type === "tag") {
145
+ let tmp = reactNodes[parseInt(node.name, 10)];
146
+ if (!tmp && knownComponentsMap) tmp = knownComponentsMap[node.name];
147
+ if (rootReactNode.length === 1 && !tmp) tmp = rootReactNode[0][node.name];
148
+ if (!tmp) tmp = {};
149
+ const child = Object.keys(node.attrs).length !== 0 ? mergeProps({
150
+ props: node.attrs
151
+ }, tmp) : tmp;
152
+ const isElement = isValidElement(child);
153
+ const isValidTranslationWithChildren = isElement && hasChildren(node, true) && !node.voidElement;
154
+ const isEmptyTransWithHTML = emptyChildrenButNeedsHandling && isObject(child) && child.dummy && !isElement;
155
+ const isKnownComponent = isObject(knownComponentsMap) && Object.hasOwnProperty.call(knownComponentsMap, node.name);
156
+ if (isString(child)) {
157
+ const value = i18n.services.interpolator.interpolate(child, opts, i18n.language);
158
+ mem.push(value);
159
+ } else if (hasChildren(child) || isValidTranslationWithChildren) {
160
+ const inner = renderInner(child, node, rootReactNode);
161
+ pushTranslatedJSX(child, inner, mem, i);
162
+ } else if (isEmptyTransWithHTML) {
163
+ const inner = mapAST(reactNodes, node.children, rootReactNode);
164
+ pushTranslatedJSX(child, inner, mem, i);
165
+ } else if (Number.isNaN(parseFloat(node.name))) {
166
+ if (isKnownComponent) {
167
+ const inner = renderInner(child, node, rootReactNode);
168
+ pushTranslatedJSX(child, inner, mem, i, node.voidElement);
169
+ } else if (i18nOptions.transSupportBasicHtmlNodes && keepArray.indexOf(node.name) > -1) {
170
+ if (node.voidElement) {
171
+ mem.push(createElement(node.name, {
172
+ key: `${node.name}-${i}`
173
+ }));
174
+ } else {
175
+ const inner = mapAST(reactNodes, node.children, rootReactNode);
176
+ mem.push(createElement(node.name, {
177
+ key: `${node.name}-${i}`
178
+ }, inner));
179
+ }
180
+ } else if (node.voidElement) {
181
+ mem.push(`<${node.name} />`);
182
+ } else {
183
+ const inner = mapAST(reactNodes, node.children, rootReactNode);
184
+ mem.push(`<${node.name}>${inner}</${node.name}>`);
185
+ }
186
+ } else if (isObject(child) && !isElement) {
187
+ const content = node.children[0] ? translationContent : null;
188
+ if (content) mem.push(content);
189
+ } else {
190
+ pushTranslatedJSX(child, translationContent, mem, i, node.children.length !== 1 || !translationContent);
191
+ }
192
+ } else if (node.type === "text") {
193
+ const wrapTextNodes = i18nOptions.transWrapTextNodes;
194
+ const content = shouldUnescape ? i18nOptions.unescape(i18n.services.interpolator.interpolate(node.content, opts, i18n.language)) : i18n.services.interpolator.interpolate(node.content, opts, i18n.language);
195
+ if (wrapTextNodes) {
196
+ mem.push(createElement(wrapTextNodes, {
197
+ key: `${node.name}-${i}`
198
+ }, content));
199
+ } else {
200
+ mem.push(content);
201
+ }
202
+ }
203
+ return mem;
204
+ }, []);
205
+ };
206
+ const result = mapAST([{
207
+ dummy: true,
208
+ children: children || []
209
+ }], ast, getAsArray(children || []));
210
+ return getChildren(result[0]);
211
+ };
212
+ const fixComponentProps = (component, index, translation) => {
213
+ const componentKey = component.key || index;
214
+ const comp = cloneElement(component, {
215
+ key: componentKey
216
+ });
217
+ if (!comp.props || !comp.props.children || translation.indexOf(`${index}/>`) < 0 && translation.indexOf(`${index} />`) < 0) {
218
+ return comp;
219
+ }
220
+ function Componentized() {
221
+ return createElement(Fragment, null, comp);
222
+ }
223
+ return createElement(Componentized, {
224
+ key: componentKey
225
+ });
226
+ };
227
+ const generateArrayComponents = (components, translation) => components.map((c2, index) => fixComponentProps(c2, index, translation));
228
+ const generateObjectComponents = (components, translation) => {
229
+ const componentMap = {};
230
+ Object.keys(components).forEach((c2) => {
231
+ Object.assign(componentMap, {
232
+ [c2]: fixComponentProps(components[c2], c2, translation)
233
+ });
234
+ });
235
+ return componentMap;
236
+ };
237
+ const generateComponents = (components, translation, i18n, i18nKey) => {
238
+ if (!components) return null;
239
+ if (Array.isArray(components)) {
240
+ return generateArrayComponents(components, translation);
241
+ }
242
+ if (isObject(components)) {
243
+ return generateObjectComponents(components, translation);
244
+ }
245
+ warnOnce(i18n, "TRANS_INVALID_COMPONENTS", `<Trans /> "components" prop expects an object or array`, {
246
+ i18nKey
247
+ });
248
+ return null;
249
+ };
250
+ const isComponentsMap = (object) => {
251
+ if (!isObject(object)) return false;
252
+ if (Array.isArray(object)) return false;
253
+ return Object.keys(object).reduce((acc, key) => acc && Number.isNaN(Number.parseFloat(key)), true);
254
+ };
255
+ function Trans({
256
+ children,
257
+ count,
258
+ parent,
259
+ i18nKey,
260
+ context,
261
+ tOptions = {},
262
+ values,
263
+ defaults,
264
+ components,
265
+ ns,
266
+ i18n: i18nFromProps,
267
+ t: tFromProps,
268
+ shouldUnescape,
269
+ ...additionalProps
270
+ }) {
271
+ var _a, _b, _c, _d, _e, _f;
272
+ const i18n = i18nFromProps || getI18n();
273
+ if (!i18n) {
274
+ warnOnce(i18n, "NO_I18NEXT_INSTANCE", `Trans: You need to pass in an i18next instance using i18nextReactModule`, {
275
+ i18nKey
276
+ });
277
+ return children;
278
+ }
279
+ const t = tFromProps || i18n.t.bind(i18n) || ((k) => k);
280
+ const reactI18nextOptions = {
281
+ ...getDefaults(),
282
+ ...(_a = i18n.options) == null ? void 0 : _a.react
283
+ };
284
+ let namespaces = ns || t.ns || ((_b = i18n.options) == null ? void 0 : _b.defaultNS);
285
+ namespaces = isString(namespaces) ? [namespaces] : namespaces || ["translation"];
286
+ const nodeAsString = nodesToString(children, reactI18nextOptions, i18n, i18nKey);
287
+ const defaultValue = defaults || nodeAsString || reactI18nextOptions.transEmptyNodeValue || i18nKey;
288
+ const {
289
+ hashTransKey
290
+ } = reactI18nextOptions;
291
+ const key = i18nKey || (hashTransKey ? hashTransKey(nodeAsString || defaultValue) : nodeAsString || defaultValue);
292
+ if ((_d = (_c = i18n.options) == null ? void 0 : _c.interpolation) == null ? void 0 : _d.defaultVariables) {
293
+ values = values && Object.keys(values).length > 0 ? {
294
+ ...values,
295
+ ...i18n.options.interpolation.defaultVariables
296
+ } : {
297
+ ...i18n.options.interpolation.defaultVariables
298
+ };
299
+ }
300
+ const interpolationOverride = values || count !== void 0 && !((_f = (_e = i18n.options) == null ? void 0 : _e.interpolation) == null ? void 0 : _f.alwaysFormat) || !children ? tOptions.interpolation : {
301
+ interpolation: {
302
+ ...tOptions.interpolation,
303
+ prefix: "#$?",
304
+ suffix: "?$#"
305
+ }
306
+ };
307
+ const combinedTOpts = {
308
+ ...tOptions,
309
+ context: context || tOptions.context,
310
+ count,
311
+ ...values,
312
+ ...interpolationOverride,
313
+ defaultValue,
314
+ ns: namespaces
315
+ };
316
+ const translation = key ? t(key, combinedTOpts) : defaultValue;
317
+ const generatedComponents = generateComponents(components, translation, i18n, i18nKey);
318
+ let indexedChildren = generatedComponents || children;
319
+ let componentsMap = null;
320
+ if (isComponentsMap(generatedComponents)) {
321
+ componentsMap = generatedComponents;
322
+ indexedChildren = children;
323
+ }
324
+ const content = renderNodes(indexedChildren, componentsMap, translation, i18n, reactI18nextOptions, combinedTOpts, shouldUnescape);
325
+ const useAsParent = parent ?? reactI18nextOptions.defaultTransParent;
326
+ return useAsParent ? createElement(useAsParent, additionalProps, content) : content;
327
+ }
328
+ export {
329
+ Trans,
330
+ nodesToString
331
+ };
@@ -0,0 +1,15 @@
1
+ import { useTranslation } from "./useTranslation.mjs";
2
+ const Translation = ({
3
+ ns,
4
+ children,
5
+ ...options
6
+ }) => {
7
+ const [t, i18n, ready] = useTranslation(ns, options);
8
+ return children(t, {
9
+ i18n,
10
+ lng: i18n.language
11
+ }, ready);
12
+ };
13
+ export {
14
+ Translation
15
+ };
@@ -1,4 +1,6 @@
1
1
  import { createContext } from "react";
2
+ import { getI18n } from "./i18nInstance.mjs";
3
+ import { setI18n } from "./i18nInstance.mjs";
2
4
  const I18nContext = createContext();
3
5
  class ReportNamespaces {
4
6
  constructor() {
@@ -13,7 +15,36 @@ class ReportNamespaces {
13
15
  return Object.keys(this.usedNamespaces);
14
16
  }
15
17
  }
18
+ const composeInitialProps = (ForComponent) => async (ctx) => {
19
+ var _a;
20
+ const componentsInitialProps = await ((_a = ForComponent.getInitialProps) == null ? void 0 : _a.call(ForComponent, ctx)) ?? {};
21
+ const i18nInitialProps = getInitialProps();
22
+ return {
23
+ ...componentsInitialProps,
24
+ ...i18nInitialProps
25
+ };
26
+ };
27
+ const getInitialProps = () => {
28
+ var _a;
29
+ const i18n = getI18n();
30
+ const namespaces = ((_a = i18n.reportNamespaces) == null ? void 0 : _a.getUsedNamespaces()) ?? [];
31
+ const ret = {};
32
+ const initialI18nStore = {};
33
+ i18n.languages.forEach((l) => {
34
+ initialI18nStore[l] = {};
35
+ namespaces.forEach((ns) => {
36
+ initialI18nStore[l][ns] = i18n.getResourceBundle(l, ns) || {};
37
+ });
38
+ });
39
+ ret.initialI18nStore = initialI18nStore;
40
+ ret.initialLanguage = i18n.language;
41
+ return ret;
42
+ };
16
43
  export {
17
44
  I18nContext,
18
- ReportNamespaces
45
+ ReportNamespaces,
46
+ composeInitialProps,
47
+ getI18n,
48
+ getInitialProps,
49
+ setI18n
19
50
  };
@@ -0,0 +1,42 @@
1
+ import { Trans } from "./Trans.mjs";
2
+ import { Trans as Trans2 } from "./TransWithoutContext.mjs";
3
+ import { useTranslation } from "./useTranslation.mjs";
4
+ import { withTranslation } from "./withTranslation.mjs";
5
+ import { Translation } from "./Translation.mjs";
6
+ import { I18nextProvider } from "./I18nextProvider.mjs";
7
+ import { withSSR } from "./withSSR.mjs";
8
+ import { useSSR } from "./useSSR.mjs";
9
+ import { initReactI18next } from "./initReactI18next.mjs";
10
+ import { getDefaults, setDefaults } from "./defaults.mjs";
11
+ import { getI18n, setI18n } from "./i18nInstance.mjs";
12
+ import { I18nContext, composeInitialProps, getInitialProps } from "./context.mjs";
13
+ const date = () => "";
14
+ const time = () => "";
15
+ const number = () => "";
16
+ const select = () => "";
17
+ const plural = () => "";
18
+ const selectOrdinal = () => "";
19
+ export {
20
+ I18nContext,
21
+ I18nextProvider,
22
+ Trans,
23
+ Trans2 as TransWithoutContext,
24
+ Translation,
25
+ composeInitialProps,
26
+ date,
27
+ getDefaults,
28
+ getI18n,
29
+ getInitialProps,
30
+ initReactI18next,
31
+ number,
32
+ plural,
33
+ select,
34
+ selectOrdinal,
35
+ setDefaults,
36
+ setI18n,
37
+ time,
38
+ useSSR,
39
+ useTranslation,
40
+ withSSR,
41
+ withTranslation
42
+ };
@@ -0,0 +1,32 @@
1
+ import { useContext } from "react";
2
+ import { I18nContext } from "./context.mjs";
3
+ import { getI18n } from "./i18nInstance.mjs";
4
+ const useSSR = (initialI18nStore, initialLanguage, props = {}) => {
5
+ var _a;
6
+ const {
7
+ i18n: i18nFromProps
8
+ } = props;
9
+ const {
10
+ i18n: i18nFromContext
11
+ } = useContext(I18nContext) || {};
12
+ const i18n = i18nFromProps || i18nFromContext || getI18n();
13
+ if ((_a = i18n.options) == null ? void 0 : _a.isClone) return;
14
+ if (initialI18nStore && !i18n.initializedStoreOnce) {
15
+ i18n.services.resourceStore.data = initialI18nStore;
16
+ i18n.options.ns = Object.values(initialI18nStore).reduce((mem, lngResources) => {
17
+ Object.keys(lngResources).forEach((ns) => {
18
+ if (mem.indexOf(ns) < 0) mem.push(ns);
19
+ });
20
+ return mem;
21
+ }, i18n.options.ns);
22
+ i18n.initializedStoreOnce = true;
23
+ i18n.isInitialized = true;
24
+ }
25
+ if (initialLanguage && !i18n.initializedLanguageOnce) {
26
+ i18n.changeLanguage(initialLanguage);
27
+ i18n.initializedLanguageOnce = true;
28
+ }
29
+ };
30
+ export {
31
+ useSSR
32
+ };
@@ -58,9 +58,11 @@ const hasLoadedNamespace = (ns, i18n, options = {}) => {
58
58
  }
59
59
  });
60
60
  };
61
+ const getDisplayName = (Component) => Component.displayName || Component.name || (isString(Component) && Component.length > 0 ? Component : "Unknown");
61
62
  const isString = (obj) => typeof obj === "string";
62
63
  const isObject = (obj) => typeof obj === "object" && obj !== null;
63
64
  export {
65
+ getDisplayName,
64
66
  hasLoadedNamespace,
65
67
  isObject,
66
68
  isString,
@@ -0,0 +1,23 @@
1
+ import { createElement } from "react";
2
+ import { useSSR } from "./useSSR.mjs";
3
+ import { composeInitialProps } from "./context.mjs";
4
+ import { getDisplayName } from "./utils.mjs";
5
+ const withSSR = () => function Extend(WrappedComponent) {
6
+ function I18nextWithSSR({
7
+ initialI18nStore,
8
+ initialLanguage,
9
+ ...rest
10
+ }) {
11
+ useSSR(initialI18nStore, initialLanguage);
12
+ return createElement(WrappedComponent, {
13
+ ...rest
14
+ });
15
+ }
16
+ I18nextWithSSR.getInitialProps = composeInitialProps(WrappedComponent);
17
+ I18nextWithSSR.displayName = `withI18nextSSR(${getDisplayName(WrappedComponent)})`;
18
+ I18nextWithSSR.WrappedComponent = WrappedComponent;
19
+ return I18nextWithSSR;
20
+ };
21
+ export {
22
+ withSSR
23
+ };