fastapi-rtk 2.9.0 → 2.9.2

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 (229) hide show
  1. package/dist/.bundled/jsonforms/cjs/_virtual/index10.cjs +2 -2
  2. package/dist/.bundled/jsonforms/cjs/_virtual/index6.cjs +2 -2
  3. package/dist/.bundled/jsonforms/cjs/_virtual/index7.cjs +2 -2
  4. package/dist/.bundled/jsonforms/cjs/_virtual/index8.cjs +2 -2
  5. package/dist/.bundled/jsonforms/cjs/_virtual/index9.cjs +2 -2
  6. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineObjectInput.cjs +2 -2
  7. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/complex/MantineTableControl/MantineTableControl.cjs +6 -11
  8. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Array/ExpandPanelRenderer.cjs +2 -2
  9. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Array/MantineArrayLayout.cjs +3 -5
  10. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/utils/layout.cjs +2 -2
  11. package/dist/.bundled/jsonforms/esm/_virtual/index10.mjs +2 -2
  12. package/dist/.bundled/jsonforms/esm/_virtual/index6.mjs +2 -2
  13. package/dist/.bundled/jsonforms/esm/_virtual/index7.mjs +2 -2
  14. package/dist/.bundled/jsonforms/esm/_virtual/index8.mjs +2 -2
  15. package/dist/.bundled/jsonforms/esm/_virtual/index9.mjs +2 -2
  16. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineObjectInput.mjs +2 -2
  17. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/complex/MantineTableControl/MantineTableControl.mjs +7 -12
  18. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Array/ExpandPanelRenderer.mjs +2 -2
  19. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Array/MantineArrayLayout.mjs +3 -5
  20. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/utils/layout.mjs +2 -2
  21. package/dist/.external/cjs/ajv@8.17.1/ajv/dist/compile/index.cjs +1 -1
  22. package/dist/.external/cjs/ajv@8.17.1/ajv/dist/vocabularies/applicator/index.cjs +1 -1
  23. package/dist/.external/cjs/ajv@8.17.1/ajv/dist/vocabularies/core/index.cjs +1 -1
  24. package/dist/.external/cjs/ajv@8.17.1/ajv/dist/vocabularies/format/index.cjs +1 -1
  25. package/dist/.external/cjs/ajv@8.17.1/ajv/dist/vocabularies/validation/index.cjs +1 -1
  26. package/dist/.external/cjs/html-parse-stringify@3.0.1/html-parse-stringify/dist/html-parse-stringify.module.cjs +59 -0
  27. package/dist/.external/cjs/lodash@4.17.23/lodash/_cloneBuffer.cjs +1 -1
  28. package/dist/.external/cjs/lodash@4.17.23/lodash/_freeGlobal.cjs +1 -1
  29. package/dist/.external/cjs/lodash@4.17.23/lodash/_nodeUtil.cjs +1 -1
  30. package/dist/.external/cjs/lodash@4.17.23/lodash/isBuffer.cjs +1 -1
  31. package/dist/.external/cjs/lodash@4.17.23/lodash/lodash.cjs +2 -2
  32. 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
  33. 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
  34. 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
  35. 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
  36. 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
  37. 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
  38. 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
  39. 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
  40. 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
  41. 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
  42. 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
  43. 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
  44. 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
  45. package/dist/.external/cjs/toposort@2.0.2/toposort/index.cjs +1 -1
  46. package/dist/.external/cjs/void-elements@3.1.0/void-elements/index.cjs +26 -0
  47. package/dist/.external/cjs/yup@1.7.1/yup/index.esm.cjs +3 -3
  48. package/dist/.external/cjs/zustand@5.0.10_@types_react@19.2.9_react@19.2.3/zustand/esm/index.cjs +7 -0
  49. package/dist/.external/esm/ajv@8.17.1/ajv/dist/compile/index.mjs +1 -1
  50. package/dist/.external/esm/ajv@8.17.1/ajv/dist/vocabularies/applicator/index.mjs +1 -1
  51. package/dist/.external/esm/ajv@8.17.1/ajv/dist/vocabularies/core/index.mjs +1 -1
  52. package/dist/.external/esm/ajv@8.17.1/ajv/dist/vocabularies/format/index.mjs +1 -1
  53. package/dist/.external/esm/ajv@8.17.1/ajv/dist/vocabularies/validation/index.mjs +1 -1
  54. package/dist/.external/esm/html-parse-stringify@3.0.1/html-parse-stringify/dist/html-parse-stringify.module.mjs +60 -0
  55. package/dist/.external/esm/lodash@4.17.23/lodash/_cloneBuffer.mjs +1 -1
  56. package/dist/.external/esm/lodash@4.17.23/lodash/_freeGlobal.mjs +1 -1
  57. package/dist/.external/esm/lodash@4.17.23/lodash/_nodeUtil.mjs +1 -1
  58. package/dist/.external/esm/lodash@4.17.23/lodash/isBuffer.mjs +1 -1
  59. package/dist/.external/esm/lodash@4.17.23/lodash/lodash.mjs +2 -2
  60. 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
  61. 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
  62. 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
  63. 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
  64. 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
  65. 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
  66. 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
  67. 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
  68. 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
  69. 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
  70. 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
  71. package/dist/.external/esm/toposort@2.0.2/toposort/index.mjs +1 -1
  72. package/dist/.external/esm/void-elements@3.1.0/void-elements/index.mjs +26 -0
  73. package/dist/.external/esm/yup@1.7.1/yup/index.esm.mjs +3 -3
  74. package/dist/.external/esm/zustand@5.0.10_@types_react@19.2.9_react@19.2.3/zustand/esm/index.mjs +7 -0
  75. package/dist/.external/esm/zustand@5.0.10_@types_react@19.2.9_react@19.2.3/zustand/esm/react.mjs +5 -5
  76. package/dist/api/cjs/ApiProvider/hooks/useProvideApi.cjs +9 -7
  77. package/dist/api/cjs/ApiProvider/hooks/useProvideForm.cjs +2 -2
  78. package/dist/api/cjs/ApiProvider/hooks/utils/useStreamingData.cjs +2 -2
  79. package/dist/api/cjs/Provider/Contexts/LangContext.cjs +2 -4
  80. package/dist/api/cjs/Provider/Provider.cjs +4 -3
  81. package/dist/api/cjs/Provider/hooks/useProvideAuth.cjs +4 -3
  82. package/dist/api/cjs/Provider/hooks/useProvideInfo.cjs +2 -2
  83. package/dist/api/cjs/Provider/hooks/useProvideLang.cjs +9 -7
  84. package/dist/api/cjs/index.cjs +2 -0
  85. package/dist/api/esm/ApiProvider/hooks/useProvideApi.mjs +3 -1
  86. package/dist/api/esm/ApiProvider/hooks/useProvideForm.mjs +2 -2
  87. package/dist/api/esm/ApiProvider/hooks/utils/useStreamingData.mjs +1 -1
  88. package/dist/api/esm/Provider/Contexts/LangContext.mjs +3 -5
  89. package/dist/api/esm/Provider/Provider.mjs +2 -1
  90. package/dist/api/esm/Provider/hooks/useProvideAuth.mjs +2 -1
  91. package/dist/api/esm/Provider/hooks/useProvideInfo.mjs +1 -1
  92. package/dist/api/esm/Provider/hooks/useProvideLang.mjs +10 -8
  93. package/dist/api/esm/index.mjs +2 -0
  94. package/dist/api/lib/ApiProvider/hooks/types.d.ts +1 -1
  95. package/dist/api/lib/ApiProvider/hooks/useProvideForm.d.ts +2 -1
  96. package/dist/api/lib/ApiProvider/hooks/utils/useStreamingData.d.ts +26 -26
  97. package/dist/api/lib/ApiProvider/types.d.ts +1 -1
  98. package/dist/api/lib/Provider/hooks/useProvideAuth.d.ts +3 -3
  99. package/dist/api/lib/Provider/hooks/useProvideInfo.d.ts +1 -1
  100. package/dist/api/lib/Provider/types.d.ts +1 -1
  101. package/dist/api/lib/adapters/types.d.ts +10 -0
  102. package/dist/api/lib/hooks/auth/types.d.ts +1 -1
  103. package/dist/api/lib/index.d.ts +1 -0
  104. package/dist/constants/cjs/index.cjs +0 -5
  105. package/dist/constants/esm/index.mjs +0 -5
  106. package/dist/constants/lib/index.d.ts +1 -6
  107. package/dist/{jsonforms → contexts}/cjs/_virtual/_commonjsHelpers.cjs +0 -2
  108. package/dist/contexts/cjs/_virtual/index.cjs +6 -0
  109. package/dist/contexts/cjs/index.cjs +2 -0
  110. package/dist/contexts/esm/_virtual/_commonjsHelpers.mjs +6 -0
  111. package/dist/contexts/esm/_virtual/index.mjs +7 -0
  112. package/dist/contexts/esm/index.mjs +2 -0
  113. package/dist/contexts/lib/index.d.ts +1 -0
  114. package/dist/core/cjs/Dialogs/EditDialog.cjs +1 -2
  115. package/dist/core/cjs/Tables/NextGenDataGrid/components/OptimizedMRT_RowSelectColumn/zustand.cjs +2 -2
  116. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useOptimizations.cjs +1 -2
  117. package/dist/core/cjs/_virtual/_commonjsHelpers.cjs +0 -2
  118. package/dist/core/cjs/_virtual/index.cjs +25 -3
  119. package/dist/core/cjs/_virtual/index2.cjs +25 -3
  120. package/dist/core/cjs/_virtual/index3.cjs +3 -5
  121. package/dist/core/cjs/_virtual/index4.cjs +2 -2
  122. package/dist/core/cjs/_virtual/index5.cjs +5 -0
  123. package/dist/core/cjs/_virtual/index6.cjs +5 -0
  124. package/dist/core/cjs/_virtual/index7.cjs +6 -0
  125. package/dist/core/cjs/_virtual/{isBuffer.cjs → index8.cjs} +2 -2
  126. package/dist/core/cjs/adapters/web/index.cjs +4 -1
  127. package/dist/core/cjs/adapters/web/webLocalizationAdapter.cjs +13 -0
  128. package/dist/core/cjs/index.cjs +10 -5
  129. package/dist/core/esm/Dialogs/EditDialog.mjs +2 -3
  130. package/dist/core/esm/Tables/NextGenDataGrid/components/OptimizedMRT_RowSelectColumn/zustand.mjs +2 -2
  131. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useOptimizations.mjs +2 -3
  132. package/dist/core/esm/_virtual/_commonjsHelpers.mjs +0 -2
  133. package/dist/core/esm/_virtual/index.mjs +25 -3
  134. package/dist/core/esm/_virtual/index2.mjs +25 -3
  135. package/dist/core/esm/_virtual/index3.mjs +2 -5
  136. package/dist/core/esm/_virtual/index4.mjs +2 -2
  137. package/dist/core/esm/_virtual/index5.mjs +5 -0
  138. package/dist/core/esm/_virtual/index6.mjs +5 -0
  139. package/dist/core/esm/_virtual/index7.mjs +7 -0
  140. package/dist/core/esm/_virtual/index8.mjs +4 -0
  141. package/dist/core/esm/adapters/web/index.mjs +4 -1
  142. package/dist/core/esm/adapters/web/webLocalizationAdapter.mjs +13 -0
  143. package/dist/core/esm/index.mjs +3 -4
  144. package/dist/core/lib/Tables/NextGenDataGrid/components/OptimizedMRT_RowSelectColumn/zustand.d.ts +3 -3
  145. package/dist/core/lib/Tables/NextGenDataGrid/types.d.ts +2 -2
  146. package/dist/core/lib/adapters/web/index.d.ts +2 -1
  147. package/dist/core/lib/adapters/web/webLocalizationAdapter.d.ts +2 -0
  148. package/dist/core/lib/index.d.ts +2 -2
  149. package/dist/jsonforms/cjs/MantineInputs/MantineObjectInput.cjs +2 -2
  150. package/dist/jsonforms/cjs/complex/MantineTableControl/MantineTableControl.cjs +6 -11
  151. package/dist/jsonforms/cjs/layouts/Array/ExpandPanelRenderer.cjs +2 -2
  152. package/dist/jsonforms/cjs/layouts/Array/MantineArrayLayout.cjs +3 -5
  153. package/dist/jsonforms/cjs/utils/layout.cjs +2 -2
  154. package/dist/jsonforms/esm/MantineInputs/MantineObjectInput.mjs +2 -2
  155. package/dist/jsonforms/esm/complex/MantineTableControl/MantineTableControl.mjs +7 -12
  156. package/dist/jsonforms/esm/layouts/Array/ExpandPanelRenderer.mjs +2 -2
  157. package/dist/jsonforms/esm/layouts/Array/MantineArrayLayout.mjs +3 -5
  158. package/dist/jsonforms/esm/utils/layout.mjs +2 -2
  159. package/dist/utils/cjs/_virtual/_commonjsHelpers.cjs +4 -0
  160. package/dist/utils/cjs/_virtual/lodash.cjs +6 -3
  161. package/dist/utils/cjs/index.cjs +2 -0
  162. package/dist/utils/esm/_virtual/_commonjsHelpers.mjs +5 -1
  163. package/dist/utils/esm/_virtual/lodash.mjs +3 -0
  164. package/dist/utils/esm/index.mjs +2 -0
  165. package/dist/utils/lib/index.d.ts +2 -0
  166. package/dist/zustand/cjs/index.cjs +2 -0
  167. package/dist/zustand/esm/index.mjs +3 -1
  168. package/dist/zustand/lib/index.d.ts +1 -0
  169. package/package.json +3 -2
  170. package/dist/.bundled/jsonforms/cjs/_virtual/lodash.cjs +0 -5
  171. package/dist/.bundled/jsonforms/cjs/_virtual/lodash2.cjs +0 -4
  172. package/dist/.bundled/jsonforms/cjs/_virtual/map.cjs +0 -6
  173. package/dist/.bundled/jsonforms/cjs/_virtual/union.cjs +0 -6
  174. package/dist/.bundled/jsonforms/esm/_virtual/lodash.mjs +0 -5
  175. package/dist/.bundled/jsonforms/esm/_virtual/lodash2.mjs +0 -4
  176. package/dist/.bundled/jsonforms/esm/_virtual/map.mjs +0 -7
  177. package/dist/.bundled/jsonforms/esm/_virtual/union.mjs +0 -7
  178. package/dist/.external/cjs/lodash@4.17.23/lodash/_arrayIncludesWith.cjs +0 -20
  179. package/dist/.external/cjs/lodash@4.17.23/lodash/_baseMap.cjs +0 -21
  180. package/dist/.external/cjs/lodash@4.17.23/lodash/_baseUniq.cjs +0 -59
  181. package/dist/.external/cjs/lodash@4.17.23/lodash/_createSet.cjs +0 -19
  182. package/dist/.external/cjs/lodash@4.17.23/lodash/map.cjs +0 -20
  183. package/dist/.external/cjs/lodash@4.17.23/lodash/union.cjs +0 -19
  184. package/dist/.external/esm/lodash@4.17.23/lodash/_arrayIncludesWith.mjs +0 -20
  185. package/dist/.external/esm/lodash@4.17.23/lodash/_baseMap.mjs +0 -21
  186. package/dist/.external/esm/lodash@4.17.23/lodash/_baseUniq.mjs +0 -59
  187. package/dist/.external/esm/lodash@4.17.23/lodash/_createSet.mjs +0 -19
  188. package/dist/.external/esm/lodash@4.17.23/lodash/map.mjs +0 -20
  189. package/dist/.external/esm/lodash@4.17.23/lodash/union.mjs +0 -19
  190. package/dist/constants/cjs/_virtual/index.cjs +0 -27
  191. package/dist/constants/cjs/_virtual/index2.cjs +0 -27
  192. package/dist/constants/cjs/_virtual/index3.cjs +0 -4
  193. package/dist/constants/cjs/_virtual/index4.cjs +0 -4
  194. package/dist/constants/esm/_virtual/index.mjs +0 -27
  195. package/dist/constants/esm/_virtual/index2.mjs +0 -27
  196. package/dist/constants/esm/_virtual/index3.mjs +0 -4
  197. package/dist/constants/esm/_virtual/index4.mjs +0 -4
  198. package/dist/core/cjs/_virtual/_nodeUtil.cjs +0 -4
  199. package/dist/core/cjs/_virtual/isEqual.cjs +0 -6
  200. package/dist/core/cjs/_virtual/lodash.cjs +0 -5
  201. package/dist/core/cjs/_virtual/lodash2.cjs +0 -4
  202. package/dist/core/esm/_virtual/_nodeUtil.mjs +0 -4
  203. package/dist/core/esm/_virtual/isBuffer.mjs +0 -4
  204. package/dist/core/esm/_virtual/isEqual.mjs +0 -7
  205. package/dist/core/esm/_virtual/lodash.mjs +0 -5
  206. package/dist/core/esm/_virtual/lodash2.mjs +0 -4
  207. package/dist/jsonforms/cjs/_virtual/_cloneBuffer.cjs +0 -4
  208. package/dist/jsonforms/cjs/_virtual/_nodeUtil.cjs +0 -4
  209. package/dist/jsonforms/cjs/_virtual/isBuffer.cjs +0 -4
  210. package/dist/jsonforms/cjs/_virtual/isEmpty.cjs +0 -6
  211. package/dist/jsonforms/cjs/_virtual/lodash.cjs +0 -5
  212. package/dist/jsonforms/cjs/_virtual/lodash2.cjs +0 -4
  213. package/dist/jsonforms/cjs/_virtual/map.cjs +0 -6
  214. package/dist/jsonforms/cjs/_virtual/merge.cjs +0 -6
  215. package/dist/jsonforms/cjs/_virtual/range.cjs +0 -6
  216. package/dist/jsonforms/cjs/_virtual/startCase.cjs +0 -6
  217. package/dist/jsonforms/cjs/_virtual/union.cjs +0 -6
  218. package/dist/jsonforms/esm/_virtual/_cloneBuffer.mjs +0 -4
  219. package/dist/jsonforms/esm/_virtual/_commonjsHelpers.mjs +0 -8
  220. package/dist/jsonforms/esm/_virtual/_nodeUtil.mjs +0 -4
  221. package/dist/jsonforms/esm/_virtual/isBuffer.mjs +0 -4
  222. package/dist/jsonforms/esm/_virtual/isEmpty.mjs +0 -7
  223. package/dist/jsonforms/esm/_virtual/lodash.mjs +0 -5
  224. package/dist/jsonforms/esm/_virtual/lodash2.mjs +0 -4
  225. package/dist/jsonforms/esm/_virtual/map.mjs +0 -7
  226. package/dist/jsonforms/esm/_virtual/merge.mjs +0 -7
  227. package/dist/jsonforms/esm/_virtual/range.mjs +0 -7
  228. package/dist/jsonforms/esm/_virtual/startCase.mjs +0 -7
  229. package/dist/jsonforms/esm/_virtual/union.mjs +0 -7
@@ -1,4 +1,4 @@
1
- import { __exports as core } from "../../../../../../../.bundled/jsonforms/esm/_virtual/index7.mjs";
1
+ import { __exports as core } from "../../../../../../../.bundled/jsonforms/esm/_virtual/index6.mjs";
2
2
  import { __require as requireId } from "./id.mjs";
3
3
  import { __require as requireRef } from "./ref.mjs";
4
4
  var hasRequiredCore;
@@ -1,4 +1,4 @@
1
- import { __exports as format } from "../../../../../../../.bundled/jsonforms/esm/_virtual/index10.mjs";
1
+ import { __exports as format } from "../../../../../../../.bundled/jsonforms/esm/_virtual/index9.mjs";
2
2
  import { __require as requireFormat$1 } from "./format.mjs";
3
3
  var hasRequiredFormat;
4
4
  function requireFormat() {
@@ -1,4 +1,4 @@
1
- import { __exports as validation } from "../../../../../../../.bundled/jsonforms/esm/_virtual/index8.mjs";
1
+ import { __exports as validation } from "../../../../../../../.bundled/jsonforms/esm/_virtual/index7.mjs";
2
2
  import { __require as requireLimitNumber } from "./limitNumber.mjs";
3
3
  import { __require as requireMultipleOf } from "./multipleOf.mjs";
4
4
  import { __require as requireLimitLength } from "./limitLength.mjs";
@@ -0,0 +1,60 @@
1
+ import e from "../../../../../contexts/esm/_virtual/index.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,