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,331 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const react = require("react");
4
+ const htmlParseStringify_module = require("../../../../html-parse-stringify@3.0.1/html-parse-stringify/dist/html-parse-stringify.module.cjs");
5
+ const utils = require("./utils.cjs");
6
+ const defaults = require("./defaults.cjs");
7
+ const i18nInstance = require("./i18nInstance.cjs");
8
+ const hasChildren = (node, checkLength) => {
9
+ var _a;
10
+ if (!node) return false;
11
+ const base = ((_a = node.props) == null ? void 0 : _a.children) ?? node.children;
12
+ if (checkLength) return base.length > 0;
13
+ return !!base;
14
+ };
15
+ const getChildren = (node) => {
16
+ var _a, _b;
17
+ if (!node) return [];
18
+ const children = ((_a = node.props) == null ? void 0 : _a.children) ?? node.children;
19
+ return ((_b = node.props) == null ? void 0 : _b.i18nIsDynamicList) ? getAsArray(children) : children;
20
+ };
21
+ const hasValidReactChildren = (children) => Array.isArray(children) && children.every(react.isValidElement);
22
+ const getAsArray = (data) => Array.isArray(data) ? data : [data];
23
+ const mergeProps = (source, target) => {
24
+ const newTarget = {
25
+ ...target
26
+ };
27
+ newTarget.props = Object.assign(source.props, target.props);
28
+ return newTarget;
29
+ };
30
+ const nodesToString = (children, i18nOptions, i18n, i18nKey) => {
31
+ if (!children) return "";
32
+ let stringNode = "";
33
+ const childrenArray = getAsArray(children);
34
+ const keepArray = (i18nOptions == null ? void 0 : i18nOptions.transSupportBasicHtmlNodes) ? i18nOptions.transKeepBasicHtmlNodesFor ?? [] : [];
35
+ childrenArray.forEach((child, childIndex) => {
36
+ if (utils.isString(child)) {
37
+ stringNode += `${child}`;
38
+ return;
39
+ }
40
+ if (react.isValidElement(child)) {
41
+ const {
42
+ props,
43
+ type
44
+ } = child;
45
+ const childPropsCount = Object.keys(props).length;
46
+ const shouldKeepChild = keepArray.indexOf(type) > -1;
47
+ const childChildren = props.children;
48
+ if (!childChildren && shouldKeepChild && !childPropsCount) {
49
+ stringNode += `<${type}/>`;
50
+ return;
51
+ }
52
+ if (!childChildren && (!shouldKeepChild || childPropsCount) || props.i18nIsDynamicList) {
53
+ stringNode += `<${childIndex}></${childIndex}>`;
54
+ return;
55
+ }
56
+ if (shouldKeepChild && childPropsCount === 1 && utils.isString(childChildren)) {
57
+ stringNode += `<${type}>${childChildren}</${type}>`;
58
+ return;
59
+ }
60
+ const content = nodesToString(childChildren, i18nOptions, i18n, i18nKey);
61
+ stringNode += `<${childIndex}>${content}</${childIndex}>`;
62
+ return;
63
+ }
64
+ if (child === null) {
65
+ utils.warn(i18n, "TRANS_NULL_VALUE", `Passed in a null value as child`, {
66
+ i18nKey
67
+ });
68
+ return;
69
+ }
70
+ if (utils.isObject(child)) {
71
+ const {
72
+ format,
73
+ ...clone
74
+ } = child;
75
+ const keys = Object.keys(clone);
76
+ if (keys.length === 1) {
77
+ const value = format ? `${keys[0]}, ${format}` : keys[0];
78
+ stringNode += `{{${value}}}`;
79
+ return;
80
+ }
81
+ utils.warn(i18n, "TRANS_INVALID_OBJ", `Invalid child - Object should only have keys {{ value, format }} (format is optional).`, {
82
+ i18nKey,
83
+ child
84
+ });
85
+ return;
86
+ }
87
+ utils.warn(i18n, "TRANS_INVALID_VAR", `Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.`, {
88
+ i18nKey,
89
+ child
90
+ });
91
+ });
92
+ return stringNode;
93
+ };
94
+ const renderNodes = (children, knownComponentsMap, targetString, i18n, i18nOptions, combinedTOpts, shouldUnescape) => {
95
+ if (targetString === "") return [];
96
+ const keepArray = i18nOptions.transKeepBasicHtmlNodesFor || [];
97
+ const emptyChildrenButNeedsHandling = targetString && new RegExp(keepArray.map((keep) => `<${keep}`).join("|")).test(targetString);
98
+ if (!children && !knownComponentsMap && !emptyChildrenButNeedsHandling && !shouldUnescape) return [targetString];
99
+ const data = knownComponentsMap ?? {};
100
+ const getData = (childs) => {
101
+ const childrenArray = getAsArray(childs);
102
+ childrenArray.forEach((child) => {
103
+ if (utils.isString(child)) return;
104
+ if (hasChildren(child)) getData(getChildren(child));
105
+ else if (utils.isObject(child) && !react.isValidElement(child)) Object.assign(data, child);
106
+ });
107
+ };
108
+ getData(children);
109
+ const ast = htmlParseStringify_module.parse(`<0>${targetString}</0>`);
110
+ const opts = {
111
+ ...data,
112
+ ...combinedTOpts
113
+ };
114
+ const renderInner = (child, node, rootReactNode) => {
115
+ var _a;
116
+ const childs = getChildren(child);
117
+ const mappedChildren = mapAST(childs, node.children, rootReactNode);
118
+ return hasValidReactChildren(childs) && mappedChildren.length === 0 || ((_a = child.props) == null ? void 0 : _a.i18nIsDynamicList) ? childs : mappedChildren;
119
+ };
120
+ const pushTranslatedJSX = (child, inner, mem, i, isVoid) => {
121
+ if (child.dummy) {
122
+ child.children = inner;
123
+ mem.push(react.cloneElement(child, {
124
+ key: i
125
+ }, isVoid ? void 0 : inner));
126
+ } else {
127
+ mem.push(...react.Children.map([child], (c) => {
128
+ const props = {
129
+ ...c.props
130
+ };
131
+ delete props.i18nIsDynamicList;
132
+ return react.createElement(c.type, {
133
+ ...props,
134
+ key: i,
135
+ ref: c.props.ref ?? c.ref
136
+ }, isVoid ? null : inner);
137
+ }));
138
+ }
139
+ };
140
+ const mapAST = (reactNode, astNode, rootReactNode) => {
141
+ const reactNodes = getAsArray(reactNode);
142
+ const astNodes = getAsArray(astNode);
143
+ return astNodes.reduce((mem, node, i) => {
144
+ var _a, _b;
145
+ 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);
146
+ if (node.type === "tag") {
147
+ let tmp = reactNodes[parseInt(node.name, 10)];
148
+ if (!tmp && knownComponentsMap) tmp = knownComponentsMap[node.name];
149
+ if (rootReactNode.length === 1 && !tmp) tmp = rootReactNode[0][node.name];
150
+ if (!tmp) tmp = {};
151
+ const child = Object.keys(node.attrs).length !== 0 ? mergeProps({
152
+ props: node.attrs
153
+ }, tmp) : tmp;
154
+ const isElement = react.isValidElement(child);
155
+ const isValidTranslationWithChildren = isElement && hasChildren(node, true) && !node.voidElement;
156
+ const isEmptyTransWithHTML = emptyChildrenButNeedsHandling && utils.isObject(child) && child.dummy && !isElement;
157
+ const isKnownComponent = utils.isObject(knownComponentsMap) && Object.hasOwnProperty.call(knownComponentsMap, node.name);
158
+ if (utils.isString(child)) {
159
+ const value = i18n.services.interpolator.interpolate(child, opts, i18n.language);
160
+ mem.push(value);
161
+ } else if (hasChildren(child) || isValidTranslationWithChildren) {
162
+ const inner = renderInner(child, node, rootReactNode);
163
+ pushTranslatedJSX(child, inner, mem, i);
164
+ } else if (isEmptyTransWithHTML) {
165
+ const inner = mapAST(reactNodes, node.children, rootReactNode);
166
+ pushTranslatedJSX(child, inner, mem, i);
167
+ } else if (Number.isNaN(parseFloat(node.name))) {
168
+ if (isKnownComponent) {
169
+ const inner = renderInner(child, node, rootReactNode);
170
+ pushTranslatedJSX(child, inner, mem, i, node.voidElement);
171
+ } else if (i18nOptions.transSupportBasicHtmlNodes && keepArray.indexOf(node.name) > -1) {
172
+ if (node.voidElement) {
173
+ mem.push(react.createElement(node.name, {
174
+ key: `${node.name}-${i}`
175
+ }));
176
+ } else {
177
+ const inner = mapAST(reactNodes, node.children, rootReactNode);
178
+ mem.push(react.createElement(node.name, {
179
+ key: `${node.name}-${i}`
180
+ }, inner));
181
+ }
182
+ } else if (node.voidElement) {
183
+ mem.push(`<${node.name} />`);
184
+ } else {
185
+ const inner = mapAST(reactNodes, node.children, rootReactNode);
186
+ mem.push(`<${node.name}>${inner}</${node.name}>`);
187
+ }
188
+ } else if (utils.isObject(child) && !isElement) {
189
+ const content = node.children[0] ? translationContent : null;
190
+ if (content) mem.push(content);
191
+ } else {
192
+ pushTranslatedJSX(child, translationContent, mem, i, node.children.length !== 1 || !translationContent);
193
+ }
194
+ } else if (node.type === "text") {
195
+ const wrapTextNodes = i18nOptions.transWrapTextNodes;
196
+ const content = shouldUnescape ? i18nOptions.unescape(i18n.services.interpolator.interpolate(node.content, opts, i18n.language)) : i18n.services.interpolator.interpolate(node.content, opts, i18n.language);
197
+ if (wrapTextNodes) {
198
+ mem.push(react.createElement(wrapTextNodes, {
199
+ key: `${node.name}-${i}`
200
+ }, content));
201
+ } else {
202
+ mem.push(content);
203
+ }
204
+ }
205
+ return mem;
206
+ }, []);
207
+ };
208
+ const result = mapAST([{
209
+ dummy: true,
210
+ children: children || []
211
+ }], ast, getAsArray(children || []));
212
+ return getChildren(result[0]);
213
+ };
214
+ const fixComponentProps = (component, index, translation) => {
215
+ const componentKey = component.key || index;
216
+ const comp = react.cloneElement(component, {
217
+ key: componentKey
218
+ });
219
+ if (!comp.props || !comp.props.children || translation.indexOf(`${index}/>`) < 0 && translation.indexOf(`${index} />`) < 0) {
220
+ return comp;
221
+ }
222
+ function Componentized() {
223
+ return react.createElement(react.Fragment, null, comp);
224
+ }
225
+ return react.createElement(Componentized, {
226
+ key: componentKey
227
+ });
228
+ };
229
+ const generateArrayComponents = (components, translation) => components.map((c, index) => fixComponentProps(c, index, translation));
230
+ const generateObjectComponents = (components, translation) => {
231
+ const componentMap = {};
232
+ Object.keys(components).forEach((c) => {
233
+ Object.assign(componentMap, {
234
+ [c]: fixComponentProps(components[c], c, translation)
235
+ });
236
+ });
237
+ return componentMap;
238
+ };
239
+ const generateComponents = (components, translation, i18n, i18nKey) => {
240
+ if (!components) return null;
241
+ if (Array.isArray(components)) {
242
+ return generateArrayComponents(components, translation);
243
+ }
244
+ if (utils.isObject(components)) {
245
+ return generateObjectComponents(components, translation);
246
+ }
247
+ utils.warnOnce(i18n, "TRANS_INVALID_COMPONENTS", `<Trans /> "components" prop expects an object or array`, {
248
+ i18nKey
249
+ });
250
+ return null;
251
+ };
252
+ const isComponentsMap = (object) => {
253
+ if (!utils.isObject(object)) return false;
254
+ if (Array.isArray(object)) return false;
255
+ return Object.keys(object).reduce((acc, key) => acc && Number.isNaN(Number.parseFloat(key)), true);
256
+ };
257
+ function Trans({
258
+ children,
259
+ count,
260
+ parent,
261
+ i18nKey,
262
+ context,
263
+ tOptions = {},
264
+ values,
265
+ defaults: defaults$1,
266
+ components,
267
+ ns,
268
+ i18n: i18nFromProps,
269
+ t: tFromProps,
270
+ shouldUnescape,
271
+ ...additionalProps
272
+ }) {
273
+ var _a, _b, _c, _d, _e, _f;
274
+ const i18n = i18nFromProps || i18nInstance.getI18n();
275
+ if (!i18n) {
276
+ utils.warnOnce(i18n, "NO_I18NEXT_INSTANCE", `Trans: You need to pass in an i18next instance using i18nextReactModule`, {
277
+ i18nKey
278
+ });
279
+ return children;
280
+ }
281
+ const t = tFromProps || i18n.t.bind(i18n) || ((k) => k);
282
+ const reactI18nextOptions = {
283
+ ...defaults.getDefaults(),
284
+ ...(_a = i18n.options) == null ? void 0 : _a.react
285
+ };
286
+ let namespaces = ns || t.ns || ((_b = i18n.options) == null ? void 0 : _b.defaultNS);
287
+ namespaces = utils.isString(namespaces) ? [namespaces] : namespaces || ["translation"];
288
+ const nodeAsString = nodesToString(children, reactI18nextOptions, i18n, i18nKey);
289
+ const defaultValue = defaults$1 || nodeAsString || reactI18nextOptions.transEmptyNodeValue || i18nKey;
290
+ const {
291
+ hashTransKey
292
+ } = reactI18nextOptions;
293
+ const key = i18nKey || (hashTransKey ? hashTransKey(nodeAsString || defaultValue) : nodeAsString || defaultValue);
294
+ if ((_d = (_c = i18n.options) == null ? void 0 : _c.interpolation) == null ? void 0 : _d.defaultVariables) {
295
+ values = values && Object.keys(values).length > 0 ? {
296
+ ...values,
297
+ ...i18n.options.interpolation.defaultVariables
298
+ } : {
299
+ ...i18n.options.interpolation.defaultVariables
300
+ };
301
+ }
302
+ const interpolationOverride = values || count !== void 0 && !((_f = (_e = i18n.options) == null ? void 0 : _e.interpolation) == null ? void 0 : _f.alwaysFormat) || !children ? tOptions.interpolation : {
303
+ interpolation: {
304
+ ...tOptions.interpolation,
305
+ prefix: "#$?",
306
+ suffix: "?$#"
307
+ }
308
+ };
309
+ const combinedTOpts = {
310
+ ...tOptions,
311
+ context: context || tOptions.context,
312
+ count,
313
+ ...values,
314
+ ...interpolationOverride,
315
+ defaultValue,
316
+ ns: namespaces
317
+ };
318
+ const translation = key ? t(key, combinedTOpts) : defaultValue;
319
+ const generatedComponents = generateComponents(components, translation, i18n, i18nKey);
320
+ let indexedChildren = generatedComponents || children;
321
+ let componentsMap = null;
322
+ if (isComponentsMap(generatedComponents)) {
323
+ componentsMap = generatedComponents;
324
+ indexedChildren = children;
325
+ }
326
+ const content = renderNodes(indexedChildren, componentsMap, translation, i18n, reactI18nextOptions, combinedTOpts, shouldUnescape);
327
+ const useAsParent = parent ?? reactI18nextOptions.defaultTransParent;
328
+ return useAsParent ? react.createElement(useAsParent, additionalProps, content) : content;
329
+ }
330
+ exports.Trans = Trans;
331
+ exports.nodesToString = nodesToString;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const useTranslation = require("./useTranslation.cjs");
4
+ const Translation = ({
5
+ ns,
6
+ children,
7
+ ...options
8
+ }) => {
9
+ const [t, i18n, ready] = useTranslation.useTranslation(ns, options);
10
+ return children(t, {
11
+ i18n,
12
+ lng: i18n.language
13
+ }, ready);
14
+ };
15
+ exports.Translation = Translation;
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const React = require("react");
4
- const I18nContext = React.createContext();
3
+ const react = require("react");
4
+ const i18nInstance = require("./i18nInstance.cjs");
5
+ const I18nContext = react.createContext();
5
6
  class ReportNamespaces {
6
7
  constructor() {
7
8
  this.usedNamespaces = {};
@@ -15,5 +16,34 @@ class ReportNamespaces {
15
16
  return Object.keys(this.usedNamespaces);
16
17
  }
17
18
  }
19
+ const composeInitialProps = (ForComponent) => async (ctx) => {
20
+ var _a;
21
+ const componentsInitialProps = await ((_a = ForComponent.getInitialProps) == null ? void 0 : _a.call(ForComponent, ctx)) ?? {};
22
+ const i18nInitialProps = getInitialProps();
23
+ return {
24
+ ...componentsInitialProps,
25
+ ...i18nInitialProps
26
+ };
27
+ };
28
+ const getInitialProps = () => {
29
+ var _a;
30
+ const i18n = i18nInstance.getI18n();
31
+ const namespaces = ((_a = i18n.reportNamespaces) == null ? void 0 : _a.getUsedNamespaces()) ?? [];
32
+ const ret = {};
33
+ const initialI18nStore = {};
34
+ i18n.languages.forEach((l) => {
35
+ initialI18nStore[l] = {};
36
+ namespaces.forEach((ns) => {
37
+ initialI18nStore[l][ns] = i18n.getResourceBundle(l, ns) || {};
38
+ });
39
+ });
40
+ ret.initialI18nStore = initialI18nStore;
41
+ ret.initialLanguage = i18n.language;
42
+ return ret;
43
+ };
44
+ exports.getI18n = i18nInstance.getI18n;
45
+ exports.setI18n = i18nInstance.setI18n;
18
46
  exports.I18nContext = I18nContext;
19
47
  exports.ReportNamespaces = ReportNamespaces;
48
+ exports.composeInitialProps = composeInitialProps;
49
+ exports.getInitialProps = getInitialProps;
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const Trans = require("./Trans.cjs");
4
+ const TransWithoutContext = require("./TransWithoutContext.cjs");
5
+ const useTranslation = require("./useTranslation.cjs");
6
+ const withTranslation = require("./withTranslation.cjs");
7
+ const Translation = require("./Translation.cjs");
8
+ const I18nextProvider = require("./I18nextProvider.cjs");
9
+ const withSSR = require("./withSSR.cjs");
10
+ const useSSR = require("./useSSR.cjs");
11
+ const initReactI18next = require("./initReactI18next.cjs");
12
+ const defaults = require("./defaults.cjs");
13
+ const i18nInstance = require("./i18nInstance.cjs");
14
+ const context = require("./context.cjs");
15
+ const date = () => "";
16
+ const time = () => "";
17
+ const number = () => "";
18
+ const select = () => "";
19
+ const plural = () => "";
20
+ const selectOrdinal = () => "";
21
+ exports.Trans = Trans.Trans;
22
+ exports.TransWithoutContext = TransWithoutContext.Trans;
23
+ exports.useTranslation = useTranslation.useTranslation;
24
+ exports.withTranslation = withTranslation.withTranslation;
25
+ exports.Translation = Translation.Translation;
26
+ exports.I18nextProvider = I18nextProvider.I18nextProvider;
27
+ exports.withSSR = withSSR.withSSR;
28
+ exports.useSSR = useSSR.useSSR;
29
+ exports.initReactI18next = initReactI18next.initReactI18next;
30
+ exports.getDefaults = defaults.getDefaults;
31
+ exports.setDefaults = defaults.setDefaults;
32
+ exports.getI18n = i18nInstance.getI18n;
33
+ exports.setI18n = i18nInstance.setI18n;
34
+ exports.I18nContext = context.I18nContext;
35
+ exports.composeInitialProps = context.composeInitialProps;
36
+ exports.getInitialProps = context.getInitialProps;
37
+ exports.date = date;
38
+ exports.number = number;
39
+ exports.plural = plural;
40
+ exports.select = select;
41
+ exports.selectOrdinal = selectOrdinal;
42
+ exports.time = time;
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const react = require("react");
4
+ const context = require("./context.cjs");
5
+ const i18nInstance = require("./i18nInstance.cjs");
6
+ const useSSR = (initialI18nStore, initialLanguage, props = {}) => {
7
+ var _a;
8
+ const {
9
+ i18n: i18nFromProps
10
+ } = props;
11
+ const {
12
+ i18n: i18nFromContext
13
+ } = react.useContext(context.I18nContext) || {};
14
+ const i18n = i18nFromProps || i18nFromContext || i18nInstance.getI18n();
15
+ if ((_a = i18n.options) == null ? void 0 : _a.isClone) return;
16
+ if (initialI18nStore && !i18n.initializedStoreOnce) {
17
+ i18n.services.resourceStore.data = initialI18nStore;
18
+ i18n.options.ns = Object.values(initialI18nStore).reduce((mem, lngResources) => {
19
+ Object.keys(lngResources).forEach((ns) => {
20
+ if (mem.indexOf(ns) < 0) mem.push(ns);
21
+ });
22
+ return mem;
23
+ }, i18n.options.ns);
24
+ i18n.initializedStoreOnce = true;
25
+ i18n.isInitialized = true;
26
+ }
27
+ if (initialLanguage && !i18n.initializedLanguageOnce) {
28
+ i18n.changeLanguage(initialLanguage);
29
+ i18n.initializedLanguageOnce = true;
30
+ }
31
+ };
32
+ exports.useSSR = useSSR;
@@ -1,19 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const React = require("react");
3
+ const react = require("react");
4
4
  const context = require("./context.cjs");
5
5
  const utils = require("./utils.cjs");
6
6
  const defaults = require("./defaults.cjs");
7
7
  const i18nInstance = require("./i18nInstance.cjs");
8
8
  const usePrevious = (value, ignore) => {
9
- const ref = React.useRef();
10
- React.useEffect(() => {
9
+ const ref = react.useRef();
10
+ react.useEffect(() => {
11
11
  ref.current = value;
12
12
  }, [value, ignore]);
13
13
  return ref.current;
14
14
  };
15
15
  const alwaysNewT = (i18n, language, namespace, keyPrefix) => i18n.getFixedT(language, namespace, keyPrefix);
16
- const useMemoizedT = (i18n, language, namespace, keyPrefix) => React.useCallback(alwaysNewT(i18n, language, namespace, keyPrefix), [i18n, language, namespace, keyPrefix]);
16
+ const useMemoizedT = (i18n, language, namespace, keyPrefix) => react.useCallback(alwaysNewT(i18n, language, namespace, keyPrefix), [i18n, language, namespace, keyPrefix]);
17
17
  const useTranslation = (ns, props = {}) => {
18
18
  var _a, _b, _c, _d;
19
19
  const {
@@ -22,7 +22,7 @@ const useTranslation = (ns, props = {}) => {
22
22
  const {
23
23
  i18n: i18nFromContext,
24
24
  defaultNS: defaultNSFromContext
25
- } = React.useContext(context.I18nContext) || {};
25
+ } = react.useContext(context.I18nContext) || {};
26
26
  const i18n = i18nFromProps || i18nFromContext || i18nInstance.getI18n();
27
27
  if (i18n && !i18n.reportNamespaces) i18n.reportNamespaces = new context.ReportNamespaces();
28
28
  if (!i18n) {
@@ -55,12 +55,12 @@ const useTranslation = (ns, props = {}) => {
55
55
  const memoGetT = useMemoizedT(i18n, props.lng || null, i18nOptions.nsMode === "fallback" ? namespaces : namespaces[0], keyPrefix);
56
56
  const getT = () => memoGetT;
57
57
  const getNewT = () => alwaysNewT(i18n, props.lng || null, i18nOptions.nsMode === "fallback" ? namespaces : namespaces[0], keyPrefix);
58
- const [t, setT] = React.useState(getT);
58
+ const [t, setT] = react.useState(getT);
59
59
  let joinedNS = namespaces.join();
60
60
  if (props.lng) joinedNS = `${props.lng}${joinedNS}`;
61
61
  const previousJoinedNS = usePrevious(joinedNS);
62
- const isMounted = React.useRef(true);
63
- React.useEffect(() => {
62
+ const isMounted = react.useRef(true);
63
+ react.useEffect(() => {
64
64
  const {
65
65
  bindI18n,
66
66
  bindI18nStore
@@ -91,7 +91,7 @@ const useTranslation = (ns, props = {}) => {
91
91
  if (bindI18nStore && i18n) bindI18nStore.split(" ").forEach((e) => i18n.store.off(e, boundReset));
92
92
  };
93
93
  }, [i18n, joinedNS]);
94
- React.useEffect(() => {
94
+ react.useEffect(() => {
95
95
  if (isMounted.current && ready) {
96
96
  setT(getT);
97
97
  }
@@ -60,8 +60,10 @@ const hasLoadedNamespace = (ns, i18n, options = {}) => {
60
60
  }
61
61
  });
62
62
  };
63
+ const getDisplayName = (Component) => Component.displayName || Component.name || (isString(Component) && Component.length > 0 ? Component : "Unknown");
63
64
  const isString = (obj) => typeof obj === "string";
64
65
  const isObject = (obj) => typeof obj === "object" && obj !== null;
66
+ exports.getDisplayName = getDisplayName;
65
67
  exports.hasLoadedNamespace = hasLoadedNamespace;
66
68
  exports.isObject = isObject;
67
69
  exports.isString = isString;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const react = require("react");
4
+ const useSSR = require("./useSSR.cjs");
5
+ const context = require("./context.cjs");
6
+ const utils = require("./utils.cjs");
7
+ const withSSR = () => function Extend(WrappedComponent) {
8
+ function I18nextWithSSR({
9
+ initialI18nStore,
10
+ initialLanguage,
11
+ ...rest
12
+ }) {
13
+ useSSR.useSSR(initialI18nStore, initialLanguage);
14
+ return react.createElement(WrappedComponent, {
15
+ ...rest
16
+ });
17
+ }
18
+ I18nextWithSSR.getInitialProps = context.composeInitialProps(WrappedComponent);
19
+ I18nextWithSSR.displayName = `withI18nextSSR(${utils.getDisplayName(WrappedComponent)})`;
20
+ I18nextWithSSR.WrappedComponent = WrappedComponent;
21
+ return I18nextWithSSR;
22
+ };
23
+ exports.withSSR = withSSR;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const react = require("react");
4
+ const useTranslation = require("./useTranslation.cjs");
5
+ const utils = require("./utils.cjs");
6
+ const withTranslation = (ns, options = {}) => function Extend(WrappedComponent) {
7
+ function I18nextWithTranslation({
8
+ forwardedRef,
9
+ ...rest
10
+ }) {
11
+ const [t, i18n, ready] = useTranslation.useTranslation(ns, {
12
+ ...rest,
13
+ keyPrefix: options.keyPrefix
14
+ });
15
+ const passDownProps = {
16
+ ...rest,
17
+ t,
18
+ i18n,
19
+ tReady: ready
20
+ };
21
+ if (options.withRef && forwardedRef) {
22
+ passDownProps.ref = forwardedRef;
23
+ } else if (!options.withRef && forwardedRef) {
24
+ passDownProps.forwardedRef = forwardedRef;
25
+ }
26
+ return react.createElement(WrappedComponent, passDownProps);
27
+ }
28
+ I18nextWithTranslation.displayName = `withI18nextTranslation(${utils.getDisplayName(WrappedComponent)})`;
29
+ I18nextWithTranslation.WrappedComponent = WrappedComponent;
30
+ const forwardRef = (props, ref) => react.createElement(I18nextWithTranslation, Object.assign({}, props, {
31
+ forwardedRef: ref
32
+ }));
33
+ return options.withRef ? react.forwardRef(forwardRef) : I18nextWithTranslation;
34
+ };
35
+ exports.withTranslation = withTranslation;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("../../../../core/cjs/_virtual/index4.cjs");
3
+ const index = require("../../../../core/cjs/_virtual/index7.cjs");
4
4
  var hasRequiredToposort;
5
5
  function requireToposort() {
6
6
  if (hasRequiredToposort) return index.__module.exports;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ var voidElements;
4
+ var hasRequiredVoidElements;
5
+ function requireVoidElements() {
6
+ if (hasRequiredVoidElements) return voidElements;
7
+ hasRequiredVoidElements = 1;
8
+ voidElements = {
9
+ "area": true,
10
+ "base": true,
11
+ "br": true,
12
+ "col": true,
13
+ "embed": true,
14
+ "hr": true,
15
+ "img": true,
16
+ "input": true,
17
+ "link": true,
18
+ "meta": true,
19
+ "param": true,
20
+ "source": true,
21
+ "track": true,
22
+ "wbr": true
23
+ };
24
+ return voidElements;
25
+ }
26
+ exports.__require = requireVoidElements;