ingeniuscliq-core 0.4.19 → 0.4.21

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 (279) hide show
  1. package/dist/components/common/carousel/CustomCarousel.d.ts +1 -1
  2. package/dist/components/common/carousel/CustomCarousel.d.ts.map +1 -1
  3. package/dist/components/common/carousel/CustomCarouselSection.d.ts +1 -1
  4. package/dist/components/common/carousel/CustomCarouselSection.d.ts.map +1 -1
  5. package/dist/components/common/form/FormCheckbox.d.ts +1 -1
  6. package/dist/components/common/form/FormCheckbox.d.ts.map +1 -1
  7. package/dist/components/common/form/FormInput.d.ts +1 -1
  8. package/dist/components/common/form/FormInput.d.ts.map +1 -1
  9. package/dist/components/common/form/FormSelect.d.ts +1 -1
  10. package/dist/components/common/form/FormSelect.d.ts.map +1 -1
  11. package/dist/components/common/form/FormTextArea.d.ts +1 -1
  12. package/dist/components/common/form/FormTextArea.d.ts.map +1 -1
  13. package/dist/components/common/form/FormWrapper.d.ts +1 -1
  14. package/dist/components/common/form/FormWrapper.d.ts.map +1 -1
  15. package/dist/components/common/logo/Logo.d.ts +1 -1
  16. package/dist/components/common/logo/Logo.d.ts.map +1 -1
  17. package/dist/components/common/pagination/CustomPagination.d.ts +1 -1
  18. package/dist/components/common/pagination/CustomPagination.d.ts.map +1 -1
  19. package/dist/components/common/select/CustomSelect.d.ts +1 -1
  20. package/dist/components/common/select/CustomSelect.d.ts.map +1 -1
  21. package/dist/components/common/spinner/Spinner.d.ts +1 -1
  22. package/dist/components/common/spinner/Spinner.d.ts.map +1 -1
  23. package/dist/components/common/stepper/Stepper.d.ts +1 -1
  24. package/dist/components/common/stepper/Stepper.d.ts.map +1 -1
  25. package/dist/components/common/stepper/Stepper.tsx +1 -1
  26. package/dist/components/layouts/CoreBaseLayout.d.ts +1 -1
  27. package/dist/components/layouts/CoreBaseLayout.d.ts.map +1 -1
  28. package/dist/components/templates/CoreHomeLayout.d.ts +1 -1
  29. package/dist/components/templates/CoreHomeLayout.d.ts.map +1 -1
  30. package/dist/components/templates/CorePreviewLayout.d.ts +1 -1
  31. package/dist/components/templates/CorePreviewLayout.d.ts.map +1 -1
  32. package/dist/components/ui/accordion.tsx +9 -9
  33. package/dist/components/ui/alert-dialog.d.ts +2 -2
  34. package/dist/components/ui/alert-dialog.tsx +16 -16
  35. package/dist/components/ui/alert.d.ts +3 -3
  36. package/dist/components/ui/alert.d.ts.map +1 -1
  37. package/dist/components/ui/alert.tsx +1 -1
  38. package/dist/components/ui/avatar.tsx +7 -7
  39. package/dist/components/ui/badge.d.ts +4 -4
  40. package/dist/components/ui/badge.d.ts.map +1 -1
  41. package/dist/components/ui/badge.tsx +1 -1
  42. package/dist/components/ui/breadcrumb.d.ts +2 -2
  43. package/dist/components/ui/breadcrumb.tsx +3 -4
  44. package/dist/components/ui/button.d.ts +4 -4
  45. package/dist/components/ui/button.d.ts.map +1 -1
  46. package/dist/components/ui/button.tsx +2 -2
  47. package/dist/components/ui/carousel.tsx +2 -3
  48. package/dist/components/ui/checkbox.tsx +5 -5
  49. package/dist/components/ui/dialog.d.ts +2 -2
  50. package/dist/components/ui/dialog.tsx +15 -15
  51. package/dist/components/ui/dropdown-menu.d.ts +1 -1
  52. package/dist/components/ui/dropdown-menu.tsx +27 -29
  53. package/dist/components/ui/form.d.ts +1 -1
  54. package/dist/components/ui/form.d.ts.map +1 -1
  55. package/dist/components/ui/form.tsx +2 -2
  56. package/dist/components/ui/label.d.ts +1 -1
  57. package/dist/components/ui/label.d.ts.map +1 -1
  58. package/dist/components/ui/label.tsx +4 -4
  59. package/dist/components/ui/pagination.d.ts +5 -5
  60. package/dist/components/ui/pagination.tsx +2 -4
  61. package/dist/components/ui/popover.tsx +7 -7
  62. package/dist/components/ui/radio-group.tsx +7 -7
  63. package/dist/components/ui/select.tsx +25 -27
  64. package/dist/components/ui/separator.tsx +3 -3
  65. package/dist/components/ui/sheet.d.ts +5 -5
  66. package/dist/components/ui/sheet.d.ts.map +1 -1
  67. package/dist/components/ui/sheet.tsx +16 -16
  68. package/dist/components/ui/skeleton.d.ts +1 -1
  69. package/dist/components/ui/skeleton.d.ts.map +1 -1
  70. package/dist/components/ui/slider.tsx +6 -6
  71. package/dist/components/ui/stepper.tsx +4 -4
  72. package/dist/components/ui/switch.tsx +4 -4
  73. package/dist/components/ui/tabs.tsx +9 -9
  74. package/dist/components/ui/tooltip.tsx +6 -6
  75. package/dist/helpers/axiosGlobal.js +1 -2
  76. package/dist/hooks/useLanguage.js +2 -5
  77. package/dist/hooks/useNotification.js +1 -1
  78. package/dist/i18n/config.js +1 -5
  79. package/dist/lib/utils.js +1 -1
  80. package/dist/modules/CoreAuth/classes/CoreAuthBuilder.d.ts +2 -2
  81. package/dist/modules/CoreAuth/classes/CoreAuthBuilder.js +1 -1
  82. package/dist/modules/CoreAuth/context/AuthContext.d.ts +2 -2
  83. package/dist/modules/CoreAuth/context/AuthContext.d.ts.map +1 -1
  84. package/dist/modules/CoreAuth/hooks/useAuth.d.ts +3 -3
  85. package/dist/modules/CoreAuth/index.js +1 -0
  86. package/dist/modules/CoreAuth/stores/authStore.d.ts +2 -2
  87. package/dist/modules/CoreCustomization/classes/CoreCustomizationBuilder.d.ts +8 -8
  88. package/dist/modules/CoreCustomization/classes/CoreCustomizationBuilder.d.ts.map +1 -1
  89. package/dist/modules/CoreCustomization/classes/CoreCustomizationBuilder.js +30 -16
  90. package/dist/modules/CoreCustomization/index.js +1 -0
  91. package/dist/modules/CoreOrder/classes/CoreOrderBuilder.d.ts.map +1 -1
  92. package/dist/modules/CoreOrder/classes/CoreOrderBuilder.js +15 -8
  93. package/dist/modules/CoreOrder/index.js +1 -0
  94. package/dist/modules/CorePayForm/classes/CorePayFormBuilder.d.ts +2 -2
  95. package/dist/modules/CorePayForm/classes/CorePayFormBuilder.d.ts.map +1 -1
  96. package/dist/modules/CorePayForm/classes/CorePayFormBuilder.js +15 -8
  97. package/dist/modules/CorePayForm/index.js +1 -0
  98. package/dist/modules/CoreProduct/classes/CoreProductBuilder.d.ts +8 -8
  99. package/dist/modules/CoreProduct/classes/CoreProductBuilder.d.ts.map +1 -1
  100. package/dist/modules/CoreProduct/classes/CoreProductBuilder.js +34 -13
  101. package/dist/modules/CoreProduct/index.js +1 -0
  102. package/dist/modules/CoreShipment/classes/CoreShipmentBuilder.d.ts +6 -6
  103. package/dist/modules/CoreShipment/classes/CoreShipmentBuilder.d.ts.map +1 -1
  104. package/dist/modules/CoreShipment/classes/CoreShipmentBuilder.js +34 -13
  105. package/dist/modules/CoreShipment/index.js +1 -0
  106. package/dist/modules/CoreShopCart/classes/CoreShopCartBuilder.d.ts +4 -4
  107. package/dist/modules/CoreShopCart/classes/CoreShopCartBuilder.d.ts.map +1 -1
  108. package/dist/modules/CoreShopCart/classes/CoreShopCartBuilder.js +12 -5
  109. package/package.json +21 -13
  110. package/src/commands/common/constants.js +10 -0
  111. package/src/commands/helpers/index.js +15 -0
  112. package/src/commands/helpers/strings.js +4 -0
  113. package/src/commands/templates/locale.js +14 -0
  114. package/src/commands/templates/service.js +12 -0
  115. package/src/commands/templates/type.js +10 -0
  116. package/README.md +0 -417
  117. package/dist/_virtual/index.js +0 -5
  118. package/dist/_virtual/index2.js +0 -3
  119. package/dist/_virtual/use-sync-external-store-shim.development.js +0 -3
  120. package/dist/_virtual/use-sync-external-store-shim.production.js +0 -3
  121. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -814
  122. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -751
  123. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -350
  124. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -161
  125. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -137
  126. package/dist/node_modules/@radix-ui/number/dist/index.js +0 -6
  127. package/dist/node_modules/@radix-ui/primitive/dist/index.js +0 -11
  128. package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +0 -305
  129. package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.js +0 -147
  130. package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +0 -25
  131. package/dist/node_modules/@radix-ui/react-avatar/dist/index.js +0 -118
  132. package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +0 -270
  133. package/dist/node_modules/@radix-ui/react-collapsible/dist/index.js +0 -145
  134. package/dist/node_modules/@radix-ui/react-collection/dist/index.js +0 -70
  135. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -39
  136. package/dist/node_modules/@radix-ui/react-context/dist/index.js +0 -79
  137. package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +0 -321
  138. package/dist/node_modules/@radix-ui/react-direction/dist/index.js +0 -11
  139. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -211
  140. package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +0 -267
  141. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -29
  142. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -207
  143. package/dist/node_modules/@radix-ui/react-id/dist/index.js +0 -15
  144. package/dist/node_modules/@radix-ui/react-label/dist/index.js +0 -24
  145. package/dist/node_modules/@radix-ui/react-menu/dist/index.js +0 -834
  146. package/dist/node_modules/@radix-ui/react-popover/dist/index.js +0 -299
  147. package/dist/node_modules/@radix-ui/react-popper/dist/index.js +0 -283
  148. package/dist/node_modules/@radix-ui/react-portal/dist/index.js +0 -17
  149. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +0 -130
  150. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +0 -43
  151. package/dist/node_modules/@radix-ui/react-radio-group/dist/index.js +0 -282
  152. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +0 -223
  153. package/dist/node_modules/@radix-ui/react-select/dist/index.js +0 -1156
  154. package/dist/node_modules/@radix-ui/react-separator/dist/index.js +0 -30
  155. package/dist/node_modules/@radix-ui/react-slider/dist/index.js +0 -554
  156. package/dist/node_modules/@radix-ui/react-slot/dist/index.js +0 -99
  157. package/dist/node_modules/@radix-ui/react-switch/dist/index.js +0 -152
  158. package/dist/node_modules/@radix-ui/react-tabs/dist/index.js +0 -187
  159. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +0 -482
  160. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -12
  161. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -70
  162. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -18
  163. package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +0 -16
  164. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -7
  165. package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +0 -15
  166. package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +0 -40
  167. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js +0 -35
  168. package/dist/node_modules/@stepperize/core/dist/index.js +0 -3
  169. package/dist/node_modules/@stepperize/react/dist/index.js +0 -6
  170. package/dist/node_modules/aria-hidden/dist/es2015/index.js +0 -137
  171. package/dist/node_modules/axios/index.js +0 -25
  172. package/dist/node_modules/axios/lib/adapters/adapters.js +0 -81
  173. package/dist/node_modules/axios/lib/adapters/fetch.js +0 -229
  174. package/dist/node_modules/axios/lib/adapters/xhr.js +0 -199
  175. package/dist/node_modules/axios/lib/axios.js +0 -86
  176. package/dist/node_modules/axios/lib/cancel/CancelToken.js +0 -133
  177. package/dist/node_modules/axios/lib/cancel/CanceledError.js +0 -23
  178. package/dist/node_modules/axios/lib/cancel/isCancel.js +0 -5
  179. package/dist/node_modules/axios/lib/core/Axios.js +0 -238
  180. package/dist/node_modules/axios/lib/core/AxiosError.js +0 -101
  181. package/dist/node_modules/axios/lib/core/AxiosHeaders.js +0 -312
  182. package/dist/node_modules/axios/lib/core/InterceptorManager.js +0 -69
  183. package/dist/node_modules/axios/lib/core/buildFullPath.js +0 -22
  184. package/dist/node_modules/axios/lib/core/dispatchRequest.js +0 -81
  185. package/dist/node_modules/axios/lib/core/mergeConfig.js +0 -106
  186. package/dist/node_modules/axios/lib/core/settle.js +0 -27
  187. package/dist/node_modules/axios/lib/core/transformData.js +0 -28
  188. package/dist/node_modules/axios/lib/defaults/index.js +0 -159
  189. package/dist/node_modules/axios/lib/defaults/transitional.js +0 -7
  190. package/dist/node_modules/axios/lib/env/data.js +0 -3
  191. package/dist/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -56
  192. package/dist/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -71
  193. package/dist/node_modules/axios/lib/helpers/bind.js +0 -7
  194. package/dist/node_modules/axios/lib/helpers/buildURL.js +0 -69
  195. package/dist/node_modules/axios/lib/helpers/combineURLs.js +0 -15
  196. package/dist/node_modules/axios/lib/helpers/composeSignals.js +0 -48
  197. package/dist/node_modules/axios/lib/helpers/cookies.js +0 -43
  198. package/dist/node_modules/axios/lib/helpers/formDataToJSON.js +0 -93
  199. package/dist/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -15
  200. package/dist/node_modules/axios/lib/helpers/isAxiosError.js +0 -14
  201. package/dist/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -16
  202. package/dist/node_modules/axios/lib/helpers/null.js +0 -4
  203. package/dist/node_modules/axios/lib/helpers/parseHeaders.js +0 -55
  204. package/dist/node_modules/axios/lib/helpers/parseProtocol.js +0 -6
  205. package/dist/node_modules/axios/lib/helpers/progressEventReducer.js +0 -46
  206. package/dist/node_modules/axios/lib/helpers/resolveConfig.js +0 -58
  207. package/dist/node_modules/axios/lib/helpers/speedometer.js +0 -53
  208. package/dist/node_modules/axios/lib/helpers/spread.js +0 -28
  209. package/dist/node_modules/axios/lib/helpers/throttle.js +0 -44
  210. package/dist/node_modules/axios/lib/helpers/toFormData.js +0 -219
  211. package/dist/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -19
  212. package/dist/node_modules/axios/lib/helpers/trackStream.js +0 -88
  213. package/dist/node_modules/axios/lib/helpers/validator.js +0 -99
  214. package/dist/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -3
  215. package/dist/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -3
  216. package/dist/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -5
  217. package/dist/node_modules/axios/lib/platform/browser/index.js +0 -15
  218. package/dist/node_modules/axios/lib/platform/common/utils.js +0 -45
  219. package/dist/node_modules/axios/lib/platform/index.js +0 -9
  220. package/dist/node_modules/axios/lib/utils.js +0 -780
  221. package/dist/node_modules/class-variance-authority/dist/index.js +0 -44
  222. package/dist/node_modules/clsx/dist/clsx.js +0 -3
  223. package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +0 -1669
  224. package/dist/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js +0 -37
  225. package/dist/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js +0 -38
  226. package/dist/node_modules/get-nonce/dist/es2015/index.js +0 -8
  227. package/dist/node_modules/lucide-react/dist/esm/Icon.js +0 -43
  228. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +0 -30
  229. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +0 -20
  230. package/dist/node_modules/lucide-react/dist/esm/icons/arrow-left.js +0 -17
  231. package/dist/node_modules/lucide-react/dist/esm/icons/arrow-right.js +0 -17
  232. package/dist/node_modules/lucide-react/dist/esm/icons/check.js +0 -14
  233. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.js +0 -14
  234. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-left.js +0 -14
  235. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.js +0 -14
  236. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-up.js +0 -14
  237. package/dist/node_modules/lucide-react/dist/esm/icons/circle.js +0 -14
  238. package/dist/node_modules/lucide-react/dist/esm/icons/ellipsis.js +0 -18
  239. package/dist/node_modules/lucide-react/dist/esm/icons/x.js +0 -17
  240. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +0 -28
  241. package/dist/node_modules/react-hook-form/dist/index.esm.js +0 -560
  242. package/dist/node_modules/react-i18next/dist/es/IcuTransUtils/htmlEntityDecoder.js +0 -210
  243. package/dist/node_modules/react-i18next/dist/es/context.js +0 -18
  244. package/dist/node_modules/react-i18next/dist/es/defaults.js +0 -22
  245. package/dist/node_modules/react-i18next/dist/es/i18nInstance.js +0 -7
  246. package/dist/node_modules/react-i18next/dist/es/initReactI18next.js +0 -12
  247. package/dist/node_modules/react-i18next/dist/es/unescape.js +0 -27
  248. package/dist/node_modules/react-i18next/dist/es/useTranslation.js +0 -157
  249. package/dist/node_modules/react-i18next/dist/es/utils.js +0 -63
  250. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -9
  251. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -167
  252. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -38
  253. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -21
  254. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -110
  255. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -5
  256. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -7
  257. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -56
  258. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -10
  259. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -31
  260. package/dist/node_modules/react-style-singleton/dist/es2015/component.js +0 -19
  261. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +0 -25
  262. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -51
  263. package/dist/node_modules/sonner/dist/index.js +0 -299
  264. package/dist/node_modules/tslib/tslib.es6.js +0 -56
  265. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -24
  266. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -48
  267. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -42
  268. package/dist/node_modules/use-sidecar/dist/es2015/exports.js +0 -21
  269. package/dist/node_modules/use-sidecar/dist/es2015/medium.js +0 -77
  270. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +0 -106
  271. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +0 -77
  272. package/dist/node_modules/use-sync-external-store/shim/index.js +0 -19
  273. package/dist/node_modules/zustand/esm/react.js +0 -22
  274. package/dist/node_modules/zustand/esm/vanilla.js +0 -24
  275. /package/src/{core/commands → commands}/create-core-module.js +0 -0
  276. /package/src/{core/commands → commands}/create-module.js +0 -0
  277. /package/src/{core/commands → commands}/create-template.js +0 -0
  278. /package/src/{core/commands → commands}/rollback-core-module.js +0 -0
  279. /package/src/{core/commands → commands}/rollback-module.js +0 -0
@@ -1,210 +0,0 @@
1
- const commonEntities = {
2
- ' ': '\u00A0',
3
- '&': '&',
4
- '&lt;': '<',
5
- '&gt;': '>',
6
- '&quot;': '"',
7
- '&apos;': "'",
8
- '&copy;': '©',
9
- '&reg;': '®',
10
- '&trade;': '™',
11
- '&hellip;': '…',
12
- '&ndash;': '–',
13
- '&mdash;': '—',
14
- '&lsquo;': '\u2018',
15
- '&rsquo;': '\u2019',
16
- '&sbquo;': '\u201A',
17
- '&ldquo;': '\u201C',
18
- '&rdquo;': '\u201D',
19
- '&bdquo;': '\u201E',
20
- '&dagger;': '†',
21
- '&Dagger;': '‡',
22
- '&bull;': '•',
23
- '&prime;': '′',
24
- '&Prime;': '″',
25
- '&lsaquo;': '‹',
26
- '&rsaquo;': '›',
27
- '&sect;': '§',
28
- '&para;': '¶',
29
- '&middot;': '·',
30
- '&ensp;': '\u2002',
31
- '&emsp;': '\u2003',
32
- '&thinsp;': '\u2009',
33
- '&euro;': '€',
34
- '&pound;': '£',
35
- '&yen;': '¥',
36
- '&cent;': '¢',
37
- '&curren;': '¤',
38
- '&times;': '×',
39
- '&divide;': '÷',
40
- '&minus;': '−',
41
- '&plusmn;': '±',
42
- '&ne;': '≠',
43
- '&le;': '≤',
44
- '&ge;': '≥',
45
- '&asymp;': '≈',
46
- '&equiv;': '≡',
47
- '&infin;': '∞',
48
- '&int;': '∫',
49
- '&sum;': '∑',
50
- '&prod;': '∏',
51
- '&radic;': '√',
52
- '&part;': '∂',
53
- '&permil;': '‰',
54
- '&deg;': '°',
55
- '&micro;': 'µ',
56
- '&larr;': '←',
57
- '&uarr;': '↑',
58
- '&rarr;': '→',
59
- '&darr;': '↓',
60
- '&harr;': '↔',
61
- '&crarr;': '↵',
62
- '&lArr;': '⇐',
63
- '&uArr;': '⇑',
64
- '&rArr;': '⇒',
65
- '&dArr;': '⇓',
66
- '&hArr;': '⇔',
67
- '&alpha;': 'α',
68
- '&beta;': 'β',
69
- '&gamma;': 'γ',
70
- '&delta;': 'δ',
71
- '&epsilon;': 'ε',
72
- '&zeta;': 'ζ',
73
- '&eta;': 'η',
74
- '&theta;': 'θ',
75
- '&iota;': 'ι',
76
- '&kappa;': 'κ',
77
- '&lambda;': 'λ',
78
- '&mu;': 'μ',
79
- '&nu;': 'ν',
80
- '&xi;': 'ξ',
81
- '&omicron;': 'ο',
82
- '&pi;': 'π',
83
- '&rho;': 'ρ',
84
- '&sigma;': 'σ',
85
- '&tau;': 'τ',
86
- '&upsilon;': 'υ',
87
- '&phi;': 'φ',
88
- '&chi;': 'χ',
89
- '&psi;': 'ψ',
90
- '&omega;': 'ω',
91
- '&Alpha;': 'Α',
92
- '&Beta;': 'Β',
93
- '&Gamma;': 'Γ',
94
- '&Delta;': 'Δ',
95
- '&Epsilon;': 'Ε',
96
- '&Zeta;': 'Ζ',
97
- '&Eta;': 'Η',
98
- '&Theta;': 'Θ',
99
- '&Iota;': 'Ι',
100
- '&Kappa;': 'Κ',
101
- '&Lambda;': 'Λ',
102
- '&Mu;': 'Μ',
103
- '&Nu;': 'Ν',
104
- '&Xi;': 'Ξ',
105
- '&Omicron;': 'Ο',
106
- '&Pi;': 'Π',
107
- '&Rho;': 'Ρ',
108
- '&Sigma;': 'Σ',
109
- '&Tau;': 'Τ',
110
- '&Upsilon;': 'Υ',
111
- '&Phi;': 'Φ',
112
- '&Chi;': 'Χ',
113
- '&Psi;': 'Ψ',
114
- '&Omega;': 'Ω',
115
- '&Agrave;': 'À',
116
- '&Aacute;': 'Á',
117
- '&Acirc;': 'Â',
118
- '&Atilde;': 'Ã',
119
- '&Auml;': 'Ä',
120
- '&Aring;': 'Å',
121
- '&AElig;': 'Æ',
122
- '&Ccedil;': 'Ç',
123
- '&Egrave;': 'È',
124
- '&Eacute;': 'É',
125
- '&Ecirc;': 'Ê',
126
- '&Euml;': 'Ë',
127
- '&Igrave;': 'Ì',
128
- '&Iacute;': 'Í',
129
- '&Icirc;': 'Î',
130
- '&Iuml;': 'Ï',
131
- '&ETH;': 'Ð',
132
- '&Ntilde;': 'Ñ',
133
- '&Ograve;': 'Ò',
134
- '&Oacute;': 'Ó',
135
- '&Ocirc;': 'Ô',
136
- '&Otilde;': 'Õ',
137
- '&Ouml;': 'Ö',
138
- '&Oslash;': 'Ø',
139
- '&Ugrave;': 'Ù',
140
- '&Uacute;': 'Ú',
141
- '&Ucirc;': 'Û',
142
- '&Uuml;': 'Ü',
143
- '&Yacute;': 'Ý',
144
- '&THORN;': 'Þ',
145
- '&szlig;': 'ß',
146
- '&agrave;': 'à',
147
- '&aacute;': 'á',
148
- '&acirc;': 'â',
149
- '&atilde;': 'ã',
150
- '&auml;': 'ä',
151
- '&aring;': 'å',
152
- '&aelig;': 'æ',
153
- '&ccedil;': 'ç',
154
- '&egrave;': 'è',
155
- '&eacute;': 'é',
156
- '&ecirc;': 'ê',
157
- '&euml;': 'ë',
158
- '&igrave;': 'ì',
159
- '&iacute;': 'í',
160
- '&icirc;': 'î',
161
- '&iuml;': 'ï',
162
- '&eth;': 'ð',
163
- '&ntilde;': 'ñ',
164
- '&ograve;': 'ò',
165
- '&oacute;': 'ó',
166
- '&ocirc;': 'ô',
167
- '&otilde;': 'õ',
168
- '&ouml;': 'ö',
169
- '&oslash;': 'ø',
170
- '&ugrave;': 'ù',
171
- '&uacute;': 'ú',
172
- '&ucirc;': 'û',
173
- '&uuml;': 'ü',
174
- '&yacute;': 'ý',
175
- '&thorn;': 'þ',
176
- '&yuml;': 'ÿ',
177
- '&iexcl;': '¡',
178
- '&iquest;': '¿',
179
- '&fnof;': 'ƒ',
180
- '&circ;': 'ˆ',
181
- '&tilde;': '˜',
182
- '&OElig;': 'Œ',
183
- '&oelig;': 'œ',
184
- '&Scaron;': 'Š',
185
- '&scaron;': 'š',
186
- '&Yuml;': 'Ÿ',
187
- '&ordf;': 'ª',
188
- '&ordm;': 'º',
189
- '&macr;': '¯',
190
- '&acute;': '´',
191
- '&cedil;': '¸',
192
- '&sup1;': '¹',
193
- '&sup2;': '²',
194
- '&sup3;': '³',
195
- '&frac14;': '¼',
196
- '&frac12;': '½',
197
- '&frac34;': '¾',
198
- '&spades;': '♠',
199
- '&clubs;': '♣',
200
- '&hearts;': '♥',
201
- '&diams;': '♦',
202
- '&loz;': '◊',
203
- '&oline;': '‾',
204
- '&frasl;': '⁄',
205
- '&weierp;': '℘',
206
- '&image;': 'ℑ',
207
- '&real;': 'ℜ',
208
- '&alefsym;': 'ℵ'
209
- };
210
- new RegExp(Object.keys(commonEntities).map(entity => entity.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')).join('|'), 'g');
@@ -1,18 +0,0 @@
1
- import { createContext } from 'react';
2
-
3
- const I18nContext = createContext();
4
- class ReportNamespaces {
5
- constructor() {
6
- this.usedNamespaces = {};
7
- }
8
- addUsedNamespaces(namespaces) {
9
- namespaces.forEach(ns => {
10
- if (!this.usedNamespaces[ns]) this.usedNamespaces[ns] = true;
11
- });
12
- }
13
- getUsedNamespaces() {
14
- return Object.keys(this.usedNamespaces);
15
- }
16
- }
17
-
18
- export { I18nContext, ReportNamespaces };
@@ -1,22 +0,0 @@
1
- import { unescape } from './unescape.js';
2
-
3
- let defaultOptions = {
4
- bindI18n: 'languageChanged',
5
- bindI18nStore: '',
6
- transEmptyNodeValue: '',
7
- transSupportBasicHtmlNodes: true,
8
- transWrapTextNodes: '',
9
- transKeepBasicHtmlNodesFor: ['br', 'strong', 'i', 'p'],
10
- useSuspense: true,
11
- unescape,
12
- transDefaultProps: undefined
13
- };
14
- const setDefaults = (options = {}) => {
15
- defaultOptions = {
16
- ...defaultOptions,
17
- ...options
18
- };
19
- };
20
- const getDefaults = () => defaultOptions;
21
-
22
- export { getDefaults, setDefaults };
@@ -1,7 +0,0 @@
1
- let i18nInstance;
2
- const setI18n = instance => {
3
- i18nInstance = instance;
4
- };
5
- const getI18n = () => i18nInstance;
6
-
7
- export { getI18n, setI18n };
@@ -1,12 +0,0 @@
1
- import { setDefaults } from './defaults.js';
2
- import { setI18n } from './i18nInstance.js';
3
-
4
- const initReactI18next = {
5
- type: '3rdParty',
6
- init(instance) {
7
- setDefaults(instance.options.react);
8
- setI18n(instance);
9
- }
10
- };
11
-
12
- export { initReactI18next };
@@ -1,27 +0,0 @@
1
- const matchHtmlEntity = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;
2
- const htmlEntities = {
3
- '&amp;': '&',
4
- '&#38;': '&',
5
- '&lt;': '<',
6
- '&#60;': '<',
7
- '&gt;': '>',
8
- '&#62;': '>',
9
- '&apos;': "'",
10
- '&#39;': "'",
11
- '&quot;': '"',
12
- '&#34;': '"',
13
- '&nbsp;': ' ',
14
- '&#160;': ' ',
15
- '&copy;': '©',
16
- '&#169;': '©',
17
- '&reg;': '®',
18
- '&#174;': '®',
19
- '&hellip;': '…',
20
- '&#8230;': '…',
21
- '&#x2F;': '/',
22
- '&#47;': '/'
23
- };
24
- const unescapeHtmlEntity = m => htmlEntities[m];
25
- const unescape = text => text.replace(matchHtmlEntity, unescapeHtmlEntity);
26
-
27
- export { unescape };
@@ -1,157 +0,0 @@
1
- import { useContext, useMemo, useRef, useCallback, useState, useEffect } from 'react';
2
- import { s as shimExports } from '../../../../_virtual/index.js';
3
- import { I18nContext, ReportNamespaces } from './context.js';
4
- import { warnOnce, hasLoadedNamespace, loadLanguages, loadNamespaces, isString, isObject } from './utils.js';
5
- import { getI18n } from './i18nInstance.js';
6
- import { getDefaults } from './defaults.js';
7
-
8
- const notReadyT = (k, optsOrDefaultValue) => {
9
- if (isString(optsOrDefaultValue)) return optsOrDefaultValue;
10
- if (isObject(optsOrDefaultValue) && isString(optsOrDefaultValue.defaultValue)) return optsOrDefaultValue.defaultValue;
11
- return Array.isArray(k) ? k[k.length - 1] : k;
12
- };
13
- const notReadySnapshot = {
14
- t: notReadyT,
15
- ready: false
16
- };
17
- const dummySubscribe = () => () => {};
18
- const useTranslation = (ns, props = {}) => {
19
- const {
20
- i18n: i18nFromProps
21
- } = props;
22
- const {
23
- i18n: i18nFromContext,
24
- defaultNS: defaultNSFromContext
25
- } = useContext(I18nContext) || {};
26
- const i18n = i18nFromProps || i18nFromContext || getI18n();
27
- if (i18n && !i18n.reportNamespaces) i18n.reportNamespaces = new ReportNamespaces();
28
- if (!i18n) {
29
- warnOnce(i18n, 'NO_I18NEXT_INSTANCE', 'useTranslation: You will need to pass in an i18next instance by using initReactI18next');
30
- }
31
- const i18nOptions = useMemo(() => ({
32
- ...getDefaults(),
33
- ...i18n?.options?.react,
34
- ...props
35
- }), [i18n, props]);
36
- const {
37
- useSuspense,
38
- keyPrefix
39
- } = i18nOptions;
40
- const nsOrContext = defaultNSFromContext || i18n?.options?.defaultNS;
41
- const unstableNamespaces = isString(nsOrContext) ? [nsOrContext] : nsOrContext || ['translation'];
42
- const namespaces = useMemo(() => unstableNamespaces, unstableNamespaces);
43
- i18n?.reportNamespaces?.addUsedNamespaces?.(namespaces);
44
- const revisionRef = useRef(0);
45
- const subscribe = useCallback(callback => {
46
- if (!i18n) return dummySubscribe;
47
- const {
48
- bindI18n,
49
- bindI18nStore
50
- } = i18nOptions;
51
- const wrappedCallback = () => {
52
- revisionRef.current += 1;
53
- callback();
54
- };
55
- if (bindI18n) i18n.on(bindI18n, wrappedCallback);
56
- if (bindI18nStore) i18n.store.on(bindI18nStore, wrappedCallback);
57
- return () => {
58
- if (bindI18n) bindI18n.split(' ').forEach(e => i18n.off(e, wrappedCallback));
59
- if (bindI18nStore) bindI18nStore.split(' ').forEach(e => i18n.store.off(e, wrappedCallback));
60
- };
61
- }, [i18n, i18nOptions]);
62
- const snapshotRef = useRef();
63
- const getSnapshot = useCallback(() => {
64
- if (!i18n) {
65
- return notReadySnapshot;
66
- }
67
- const calculatedReady = !!(i18n.isInitialized || i18n.initializedStoreOnce) && namespaces.every(n => hasLoadedNamespace(n, i18n, i18nOptions));
68
- const currentLng = props.lng || i18n.language;
69
- const currentRevision = revisionRef.current;
70
- const lastSnapshot = snapshotRef.current;
71
- if (lastSnapshot && lastSnapshot.ready === calculatedReady && lastSnapshot.lng === currentLng && lastSnapshot.keyPrefix === keyPrefix && lastSnapshot.revision === currentRevision) {
72
- return lastSnapshot;
73
- }
74
- const calculatedT = i18n.getFixedT(currentLng, i18nOptions.nsMode === 'fallback' ? namespaces : namespaces[0], keyPrefix);
75
- const newSnapshot = {
76
- t: calculatedT,
77
- ready: calculatedReady,
78
- lng: currentLng,
79
- keyPrefix,
80
- revision: currentRevision
81
- };
82
- snapshotRef.current = newSnapshot;
83
- return newSnapshot;
84
- }, [i18n, namespaces, keyPrefix, i18nOptions, props.lng]);
85
- const [loadCount, setLoadCount] = useState(0);
86
- const {
87
- t,
88
- ready
89
- } = shimExports.useSyncExternalStore(subscribe, getSnapshot, getSnapshot);
90
- useEffect(() => {
91
- if (i18n && !ready && !useSuspense) {
92
- const onLoaded = () => setLoadCount(c => c + 1);
93
- if (props.lng) {
94
- loadLanguages(i18n, props.lng, namespaces, onLoaded);
95
- } else {
96
- loadNamespaces(i18n, namespaces, onLoaded);
97
- }
98
- }
99
- }, [i18n, props.lng, namespaces, ready, useSuspense, loadCount]);
100
- const finalI18n = i18n || {};
101
- const wrapperRef = useRef(null);
102
- const wrapperLangRef = useRef();
103
- const createI18nWrapper = original => {
104
- const descriptors = Object.getOwnPropertyDescriptors(original);
105
- if (descriptors.__original) delete descriptors.__original;
106
- const wrapper = Object.create(Object.getPrototypeOf(original), descriptors);
107
- if (!Object.prototype.hasOwnProperty.call(wrapper, '__original')) {
108
- try {
109
- Object.defineProperty(wrapper, '__original', {
110
- value: original,
111
- writable: false,
112
- enumerable: false,
113
- configurable: false
114
- });
115
- } catch (_) {}
116
- }
117
- return wrapper;
118
- };
119
- const ret = useMemo(() => {
120
- const original = finalI18n;
121
- const lang = original?.language;
122
- let i18nWrapper = original;
123
- if (original) {
124
- if (wrapperRef.current && wrapperRef.current.__original === original) {
125
- if (wrapperLangRef.current !== lang) {
126
- i18nWrapper = createI18nWrapper(original);
127
- wrapperRef.current = i18nWrapper;
128
- wrapperLangRef.current = lang;
129
- } else {
130
- i18nWrapper = wrapperRef.current;
131
- }
132
- } else {
133
- i18nWrapper = createI18nWrapper(original);
134
- wrapperRef.current = i18nWrapper;
135
- wrapperLangRef.current = lang;
136
- }
137
- }
138
- const arr = [t, i18nWrapper, ready];
139
- arr.t = t;
140
- arr.i18n = i18nWrapper;
141
- arr.ready = ready;
142
- return arr;
143
- }, [t, finalI18n, ready, finalI18n.resolvedLanguage, finalI18n.language, finalI18n.languages]);
144
- if (i18n && useSuspense && !ready) {
145
- throw new Promise(resolve => {
146
- const onLoaded = () => resolve();
147
- if (props.lng) {
148
- loadLanguages(i18n, props.lng, namespaces, onLoaded);
149
- } else {
150
- loadNamespaces(i18n, namespaces, onLoaded);
151
- }
152
- });
153
- }
154
- return ret;
155
- };
156
-
157
- export { useTranslation };
@@ -1,63 +0,0 @@
1
- const warn = (i18n, code, msg, rest) => {
2
- const args = [msg, {
3
- code,
4
- ...(rest || {})
5
- }];
6
- if (i18n?.services?.logger?.forward) {
7
- return i18n.services.logger.forward(args, 'warn', 'react-i18next::', true);
8
- }
9
- if (isString(args[0])) args[0] = `react-i18next:: ${args[0]}`;
10
- if (i18n?.services?.logger?.warn) {
11
- i18n.services.logger.warn(...args);
12
- } else if (console?.warn) {
13
- console.warn(...args);
14
- }
15
- };
16
- const alreadyWarned = {};
17
- const warnOnce = (i18n, code, msg, rest) => {
18
- if (isString(msg) && alreadyWarned[msg]) return;
19
- if (isString(msg)) alreadyWarned[msg] = new Date();
20
- warn(i18n, code, msg, rest);
21
- };
22
- const loadedClb = (i18n, cb) => () => {
23
- if (i18n.isInitialized) {
24
- cb();
25
- } else {
26
- const initialized = () => {
27
- setTimeout(() => {
28
- i18n.off('initialized', initialized);
29
- }, 0);
30
- cb();
31
- };
32
- i18n.on('initialized', initialized);
33
- }
34
- };
35
- const loadNamespaces = (i18n, ns, cb) => {
36
- i18n.loadNamespaces(ns, loadedClb(i18n, cb));
37
- };
38
- const loadLanguages = (i18n, lng, ns, cb) => {
39
- if (isString(ns)) ns = [ns];
40
- if (i18n.options.preload && i18n.options.preload.indexOf(lng) > -1) return loadNamespaces(i18n, ns, cb);
41
- ns.forEach(n => {
42
- if (i18n.options.ns.indexOf(n) < 0) i18n.options.ns.push(n);
43
- });
44
- i18n.loadLanguages(lng, loadedClb(i18n, cb));
45
- };
46
- const hasLoadedNamespace = (ns, i18n, options = {}) => {
47
- if (!i18n.languages || !i18n.languages.length) {
48
- warnOnce(i18n, 'NO_LANGUAGES', 'i18n.languages were undefined or empty', {
49
- languages: i18n.languages
50
- });
51
- return true;
52
- }
53
- return i18n.hasLoadedNamespace(ns, {
54
- lng: options.lng,
55
- precheck: (i18nInstance, loadNotPending) => {
56
- if (options.bindI18n && options.bindI18n.indexOf('languageChanging') > -1 && i18nInstance.services.backendConnector.backend && i18nInstance.isLanguageChangingTo && !loadNotPending(i18nInstance.isLanguageChangingTo, ns)) return false;
57
- }
58
- });
59
- };
60
- const isString = obj => typeof obj === 'string';
61
- const isObject = obj => typeof obj === 'object' && obj !== null;
62
-
63
- export { hasLoadedNamespace, isObject, isString, loadLanguages, loadNamespaces, warn, warnOnce };
@@ -1,9 +0,0 @@
1
- import { __assign } from '../../../tslib/tslib.es6.js';
2
- import * as React from 'react';
3
- import { RemoveScroll } from './UI.js';
4
- import SideCar from './sidecar.js';
5
-
6
- var ReactRemoveScroll = React.forwardRef(function (props, ref) { return (React.createElement(RemoveScroll, __assign({}, props, { ref: ref, sideCar: SideCar }))); });
7
- ReactRemoveScroll.classNames = RemoveScroll.classNames;
8
-
9
- export { ReactRemoveScroll as default };