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.
- package/dist/components/common/carousel/CustomCarousel.d.ts +1 -1
- package/dist/components/common/carousel/CustomCarousel.d.ts.map +1 -1
- package/dist/components/common/carousel/CustomCarouselSection.d.ts +1 -1
- package/dist/components/common/carousel/CustomCarouselSection.d.ts.map +1 -1
- package/dist/components/common/form/FormCheckbox.d.ts +1 -1
- package/dist/components/common/form/FormCheckbox.d.ts.map +1 -1
- package/dist/components/common/form/FormInput.d.ts +1 -1
- package/dist/components/common/form/FormInput.d.ts.map +1 -1
- package/dist/components/common/form/FormSelect.d.ts +1 -1
- package/dist/components/common/form/FormSelect.d.ts.map +1 -1
- package/dist/components/common/form/FormTextArea.d.ts +1 -1
- package/dist/components/common/form/FormTextArea.d.ts.map +1 -1
- package/dist/components/common/form/FormWrapper.d.ts +1 -1
- package/dist/components/common/form/FormWrapper.d.ts.map +1 -1
- package/dist/components/common/logo/Logo.d.ts +1 -1
- package/dist/components/common/logo/Logo.d.ts.map +1 -1
- package/dist/components/common/pagination/CustomPagination.d.ts +1 -1
- package/dist/components/common/pagination/CustomPagination.d.ts.map +1 -1
- package/dist/components/common/select/CustomSelect.d.ts +1 -1
- package/dist/components/common/select/CustomSelect.d.ts.map +1 -1
- package/dist/components/common/spinner/Spinner.d.ts +1 -1
- package/dist/components/common/spinner/Spinner.d.ts.map +1 -1
- package/dist/components/common/stepper/Stepper.d.ts +1 -1
- package/dist/components/common/stepper/Stepper.d.ts.map +1 -1
- package/dist/components/common/stepper/Stepper.tsx +1 -1
- package/dist/components/layouts/CoreBaseLayout.d.ts +1 -1
- package/dist/components/layouts/CoreBaseLayout.d.ts.map +1 -1
- package/dist/components/templates/CoreHomeLayout.d.ts +1 -1
- package/dist/components/templates/CoreHomeLayout.d.ts.map +1 -1
- package/dist/components/templates/CorePreviewLayout.d.ts +1 -1
- package/dist/components/templates/CorePreviewLayout.d.ts.map +1 -1
- package/dist/components/ui/accordion.tsx +9 -9
- package/dist/components/ui/alert-dialog.d.ts +2 -2
- package/dist/components/ui/alert-dialog.tsx +16 -16
- package/dist/components/ui/alert.d.ts +3 -3
- package/dist/components/ui/alert.d.ts.map +1 -1
- package/dist/components/ui/alert.tsx +1 -1
- package/dist/components/ui/avatar.tsx +7 -7
- package/dist/components/ui/badge.d.ts +4 -4
- package/dist/components/ui/badge.d.ts.map +1 -1
- package/dist/components/ui/badge.tsx +1 -1
- package/dist/components/ui/breadcrumb.d.ts +2 -2
- package/dist/components/ui/breadcrumb.tsx +3 -4
- package/dist/components/ui/button.d.ts +4 -4
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/button.tsx +2 -2
- package/dist/components/ui/carousel.tsx +2 -3
- package/dist/components/ui/checkbox.tsx +5 -5
- package/dist/components/ui/dialog.d.ts +2 -2
- package/dist/components/ui/dialog.tsx +15 -15
- package/dist/components/ui/dropdown-menu.d.ts +1 -1
- package/dist/components/ui/dropdown-menu.tsx +27 -29
- package/dist/components/ui/form.d.ts +1 -1
- package/dist/components/ui/form.d.ts.map +1 -1
- package/dist/components/ui/form.tsx +2 -2
- package/dist/components/ui/label.d.ts +1 -1
- package/dist/components/ui/label.d.ts.map +1 -1
- package/dist/components/ui/label.tsx +4 -4
- package/dist/components/ui/pagination.d.ts +5 -5
- package/dist/components/ui/pagination.tsx +2 -4
- package/dist/components/ui/popover.tsx +7 -7
- package/dist/components/ui/radio-group.tsx +7 -7
- package/dist/components/ui/select.tsx +25 -27
- package/dist/components/ui/separator.tsx +3 -3
- package/dist/components/ui/sheet.d.ts +5 -5
- package/dist/components/ui/sheet.d.ts.map +1 -1
- package/dist/components/ui/sheet.tsx +16 -16
- package/dist/components/ui/skeleton.d.ts +1 -1
- package/dist/components/ui/skeleton.d.ts.map +1 -1
- package/dist/components/ui/slider.tsx +6 -6
- package/dist/components/ui/stepper.tsx +4 -4
- package/dist/components/ui/switch.tsx +4 -4
- package/dist/components/ui/tabs.tsx +9 -9
- package/dist/components/ui/tooltip.tsx +6 -6
- package/dist/helpers/axiosGlobal.js +1 -2
- package/dist/hooks/useLanguage.js +2 -5
- package/dist/hooks/useNotification.js +1 -1
- package/dist/i18n/config.js +1 -5
- package/dist/lib/utils.js +1 -1
- package/dist/modules/CoreAuth/classes/CoreAuthBuilder.d.ts +2 -2
- package/dist/modules/CoreAuth/classes/CoreAuthBuilder.js +1 -1
- package/dist/modules/CoreAuth/context/AuthContext.d.ts +2 -2
- package/dist/modules/CoreAuth/context/AuthContext.d.ts.map +1 -1
- package/dist/modules/CoreAuth/hooks/useAuth.d.ts +3 -3
- package/dist/modules/CoreAuth/index.js +1 -0
- package/dist/modules/CoreAuth/stores/authStore.d.ts +2 -2
- package/dist/modules/CoreCustomization/classes/CoreCustomizationBuilder.d.ts +8 -8
- package/dist/modules/CoreCustomization/classes/CoreCustomizationBuilder.d.ts.map +1 -1
- package/dist/modules/CoreCustomization/classes/CoreCustomizationBuilder.js +30 -16
- package/dist/modules/CoreCustomization/index.js +1 -0
- package/dist/modules/CoreOrder/classes/CoreOrderBuilder.d.ts.map +1 -1
- package/dist/modules/CoreOrder/classes/CoreOrderBuilder.js +15 -8
- package/dist/modules/CoreOrder/index.js +1 -0
- package/dist/modules/CorePayForm/classes/CorePayFormBuilder.d.ts +2 -2
- package/dist/modules/CorePayForm/classes/CorePayFormBuilder.d.ts.map +1 -1
- package/dist/modules/CorePayForm/classes/CorePayFormBuilder.js +15 -8
- package/dist/modules/CorePayForm/index.js +1 -0
- package/dist/modules/CoreProduct/classes/CoreProductBuilder.d.ts +8 -8
- package/dist/modules/CoreProduct/classes/CoreProductBuilder.d.ts.map +1 -1
- package/dist/modules/CoreProduct/classes/CoreProductBuilder.js +34 -13
- package/dist/modules/CoreProduct/index.js +1 -0
- package/dist/modules/CoreShipment/classes/CoreShipmentBuilder.d.ts +6 -6
- package/dist/modules/CoreShipment/classes/CoreShipmentBuilder.d.ts.map +1 -1
- package/dist/modules/CoreShipment/classes/CoreShipmentBuilder.js +34 -13
- package/dist/modules/CoreShipment/index.js +1 -0
- package/dist/modules/CoreShopCart/classes/CoreShopCartBuilder.d.ts +4 -4
- package/dist/modules/CoreShopCart/classes/CoreShopCartBuilder.d.ts.map +1 -1
- package/dist/modules/CoreShopCart/classes/CoreShopCartBuilder.js +12 -5
- package/package.json +21 -13
- package/src/commands/common/constants.js +10 -0
- package/src/commands/helpers/index.js +15 -0
- package/src/commands/helpers/strings.js +4 -0
- package/src/commands/templates/locale.js +14 -0
- package/src/commands/templates/service.js +12 -0
- package/src/commands/templates/type.js +10 -0
- package/README.md +0 -417
- package/dist/_virtual/index.js +0 -5
- package/dist/_virtual/index2.js +0 -3
- package/dist/_virtual/use-sync-external-store-shim.development.js +0 -3
- package/dist/_virtual/use-sync-external-store-shim.production.js +0 -3
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -814
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -751
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -350
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -161
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -137
- package/dist/node_modules/@radix-ui/number/dist/index.js +0 -6
- package/dist/node_modules/@radix-ui/primitive/dist/index.js +0 -11
- package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +0 -305
- package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.js +0 -147
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +0 -25
- package/dist/node_modules/@radix-ui/react-avatar/dist/index.js +0 -118
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +0 -270
- package/dist/node_modules/@radix-ui/react-collapsible/dist/index.js +0 -145
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js +0 -70
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -39
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +0 -79
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +0 -321
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js +0 -11
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -211
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +0 -267
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -29
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -207
- package/dist/node_modules/@radix-ui/react-id/dist/index.js +0 -15
- package/dist/node_modules/@radix-ui/react-label/dist/index.js +0 -24
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js +0 -834
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +0 -299
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +0 -283
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +0 -17
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +0 -130
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +0 -43
- package/dist/node_modules/@radix-ui/react-radio-group/dist/index.js +0 -282
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +0 -223
- package/dist/node_modules/@radix-ui/react-select/dist/index.js +0 -1156
- package/dist/node_modules/@radix-ui/react-separator/dist/index.js +0 -30
- package/dist/node_modules/@radix-ui/react-slider/dist/index.js +0 -554
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +0 -99
- package/dist/node_modules/@radix-ui/react-switch/dist/index.js +0 -152
- package/dist/node_modules/@radix-ui/react-tabs/dist/index.js +0 -187
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +0 -482
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -12
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -70
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -18
- package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +0 -16
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -7
- package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +0 -15
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +0 -40
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js +0 -35
- package/dist/node_modules/@stepperize/core/dist/index.js +0 -3
- package/dist/node_modules/@stepperize/react/dist/index.js +0 -6
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +0 -137
- package/dist/node_modules/axios/index.js +0 -25
- package/dist/node_modules/axios/lib/adapters/adapters.js +0 -81
- package/dist/node_modules/axios/lib/adapters/fetch.js +0 -229
- package/dist/node_modules/axios/lib/adapters/xhr.js +0 -199
- package/dist/node_modules/axios/lib/axios.js +0 -86
- package/dist/node_modules/axios/lib/cancel/CancelToken.js +0 -133
- package/dist/node_modules/axios/lib/cancel/CanceledError.js +0 -23
- package/dist/node_modules/axios/lib/cancel/isCancel.js +0 -5
- package/dist/node_modules/axios/lib/core/Axios.js +0 -238
- package/dist/node_modules/axios/lib/core/AxiosError.js +0 -101
- package/dist/node_modules/axios/lib/core/AxiosHeaders.js +0 -312
- package/dist/node_modules/axios/lib/core/InterceptorManager.js +0 -69
- package/dist/node_modules/axios/lib/core/buildFullPath.js +0 -22
- package/dist/node_modules/axios/lib/core/dispatchRequest.js +0 -81
- package/dist/node_modules/axios/lib/core/mergeConfig.js +0 -106
- package/dist/node_modules/axios/lib/core/settle.js +0 -27
- package/dist/node_modules/axios/lib/core/transformData.js +0 -28
- package/dist/node_modules/axios/lib/defaults/index.js +0 -159
- package/dist/node_modules/axios/lib/defaults/transitional.js +0 -7
- package/dist/node_modules/axios/lib/env/data.js +0 -3
- package/dist/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -56
- package/dist/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -71
- package/dist/node_modules/axios/lib/helpers/bind.js +0 -7
- package/dist/node_modules/axios/lib/helpers/buildURL.js +0 -69
- package/dist/node_modules/axios/lib/helpers/combineURLs.js +0 -15
- package/dist/node_modules/axios/lib/helpers/composeSignals.js +0 -48
- package/dist/node_modules/axios/lib/helpers/cookies.js +0 -43
- package/dist/node_modules/axios/lib/helpers/formDataToJSON.js +0 -93
- package/dist/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -15
- package/dist/node_modules/axios/lib/helpers/isAxiosError.js +0 -14
- package/dist/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -16
- package/dist/node_modules/axios/lib/helpers/null.js +0 -4
- package/dist/node_modules/axios/lib/helpers/parseHeaders.js +0 -55
- package/dist/node_modules/axios/lib/helpers/parseProtocol.js +0 -6
- package/dist/node_modules/axios/lib/helpers/progressEventReducer.js +0 -46
- package/dist/node_modules/axios/lib/helpers/resolveConfig.js +0 -58
- package/dist/node_modules/axios/lib/helpers/speedometer.js +0 -53
- package/dist/node_modules/axios/lib/helpers/spread.js +0 -28
- package/dist/node_modules/axios/lib/helpers/throttle.js +0 -44
- package/dist/node_modules/axios/lib/helpers/toFormData.js +0 -219
- package/dist/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -19
- package/dist/node_modules/axios/lib/helpers/trackStream.js +0 -88
- package/dist/node_modules/axios/lib/helpers/validator.js +0 -99
- package/dist/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -3
- package/dist/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -3
- package/dist/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -5
- package/dist/node_modules/axios/lib/platform/browser/index.js +0 -15
- package/dist/node_modules/axios/lib/platform/common/utils.js +0 -45
- package/dist/node_modules/axios/lib/platform/index.js +0 -9
- package/dist/node_modules/axios/lib/utils.js +0 -780
- package/dist/node_modules/class-variance-authority/dist/index.js +0 -44
- package/dist/node_modules/clsx/dist/clsx.js +0 -3
- package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +0 -1669
- package/dist/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js +0 -37
- package/dist/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js +0 -38
- package/dist/node_modules/get-nonce/dist/es2015/index.js +0 -8
- package/dist/node_modules/lucide-react/dist/esm/Icon.js +0 -43
- package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +0 -30
- package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +0 -20
- package/dist/node_modules/lucide-react/dist/esm/icons/arrow-left.js +0 -17
- package/dist/node_modules/lucide-react/dist/esm/icons/arrow-right.js +0 -17
- package/dist/node_modules/lucide-react/dist/esm/icons/check.js +0 -14
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.js +0 -14
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-left.js +0 -14
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.js +0 -14
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-up.js +0 -14
- package/dist/node_modules/lucide-react/dist/esm/icons/circle.js +0 -14
- package/dist/node_modules/lucide-react/dist/esm/icons/ellipsis.js +0 -18
- package/dist/node_modules/lucide-react/dist/esm/icons/x.js +0 -17
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +0 -28
- package/dist/node_modules/react-hook-form/dist/index.esm.js +0 -560
- package/dist/node_modules/react-i18next/dist/es/IcuTransUtils/htmlEntityDecoder.js +0 -210
- package/dist/node_modules/react-i18next/dist/es/context.js +0 -18
- package/dist/node_modules/react-i18next/dist/es/defaults.js +0 -22
- package/dist/node_modules/react-i18next/dist/es/i18nInstance.js +0 -7
- package/dist/node_modules/react-i18next/dist/es/initReactI18next.js +0 -12
- package/dist/node_modules/react-i18next/dist/es/unescape.js +0 -27
- package/dist/node_modules/react-i18next/dist/es/useTranslation.js +0 -157
- package/dist/node_modules/react-i18next/dist/es/utils.js +0 -63
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -9
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -167
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -38
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -21
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -110
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -5
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -7
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -56
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -10
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -31
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js +0 -19
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +0 -25
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -51
- package/dist/node_modules/sonner/dist/index.js +0 -299
- package/dist/node_modules/tslib/tslib.es6.js +0 -56
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -24
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -48
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -42
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js +0 -21
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js +0 -77
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +0 -106
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +0 -77
- package/dist/node_modules/use-sync-external-store/shim/index.js +0 -19
- package/dist/node_modules/zustand/esm/react.js +0 -22
- package/dist/node_modules/zustand/esm/vanilla.js +0 -24
- /package/src/{core/commands → commands}/create-core-module.js +0 -0
- /package/src/{core/commands → commands}/create-module.js +0 -0
- /package/src/{core/commands → commands}/create-template.js +0 -0
- /package/src/{core/commands → commands}/rollback-core-module.js +0 -0
- /package/src/{core/commands → commands}/rollback-module.js +0 -0
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
const commonEntities = {
|
|
2
|
-
' ': '\u00A0',
|
|
3
|
-
'&': '&',
|
|
4
|
-
'<': '<',
|
|
5
|
-
'>': '>',
|
|
6
|
-
'"': '"',
|
|
7
|
-
''': "'",
|
|
8
|
-
'©': '©',
|
|
9
|
-
'®': '®',
|
|
10
|
-
'™': '™',
|
|
11
|
-
'…': '…',
|
|
12
|
-
'–': '–',
|
|
13
|
-
'—': '—',
|
|
14
|
-
'‘': '\u2018',
|
|
15
|
-
'’': '\u2019',
|
|
16
|
-
'‚': '\u201A',
|
|
17
|
-
'“': '\u201C',
|
|
18
|
-
'”': '\u201D',
|
|
19
|
-
'„': '\u201E',
|
|
20
|
-
'†': '†',
|
|
21
|
-
'‡': '‡',
|
|
22
|
-
'•': '•',
|
|
23
|
-
'′': '′',
|
|
24
|
-
'″': '″',
|
|
25
|
-
'‹': '‹',
|
|
26
|
-
'›': '›',
|
|
27
|
-
'§': '§',
|
|
28
|
-
'¶': '¶',
|
|
29
|
-
'·': '·',
|
|
30
|
-
' ': '\u2002',
|
|
31
|
-
' ': '\u2003',
|
|
32
|
-
' ': '\u2009',
|
|
33
|
-
'€': '€',
|
|
34
|
-
'£': '£',
|
|
35
|
-
'¥': '¥',
|
|
36
|
-
'¢': '¢',
|
|
37
|
-
'¤': '¤',
|
|
38
|
-
'×': '×',
|
|
39
|
-
'÷': '÷',
|
|
40
|
-
'−': '−',
|
|
41
|
-
'±': '±',
|
|
42
|
-
'≠': '≠',
|
|
43
|
-
'≤': '≤',
|
|
44
|
-
'≥': '≥',
|
|
45
|
-
'≈': '≈',
|
|
46
|
-
'≡': '≡',
|
|
47
|
-
'∞': '∞',
|
|
48
|
-
'∫': '∫',
|
|
49
|
-
'∑': '∑',
|
|
50
|
-
'∏': '∏',
|
|
51
|
-
'√': '√',
|
|
52
|
-
'∂': '∂',
|
|
53
|
-
'‰': '‰',
|
|
54
|
-
'°': '°',
|
|
55
|
-
'µ': 'µ',
|
|
56
|
-
'←': '←',
|
|
57
|
-
'↑': '↑',
|
|
58
|
-
'→': '→',
|
|
59
|
-
'↓': '↓',
|
|
60
|
-
'↔': '↔',
|
|
61
|
-
'↵': '↵',
|
|
62
|
-
'⇐': '⇐',
|
|
63
|
-
'⇑': '⇑',
|
|
64
|
-
'⇒': '⇒',
|
|
65
|
-
'⇓': '⇓',
|
|
66
|
-
'⇔': '⇔',
|
|
67
|
-
'α': 'α',
|
|
68
|
-
'β': 'β',
|
|
69
|
-
'γ': 'γ',
|
|
70
|
-
'δ': 'δ',
|
|
71
|
-
'ε': 'ε',
|
|
72
|
-
'ζ': 'ζ',
|
|
73
|
-
'η': 'η',
|
|
74
|
-
'θ': 'θ',
|
|
75
|
-
'ι': 'ι',
|
|
76
|
-
'κ': 'κ',
|
|
77
|
-
'λ': 'λ',
|
|
78
|
-
'μ': 'μ',
|
|
79
|
-
'ν': 'ν',
|
|
80
|
-
'ξ': 'ξ',
|
|
81
|
-
'ο': 'ο',
|
|
82
|
-
'π': 'π',
|
|
83
|
-
'ρ': 'ρ',
|
|
84
|
-
'σ': 'σ',
|
|
85
|
-
'τ': 'τ',
|
|
86
|
-
'υ': 'υ',
|
|
87
|
-
'φ': 'φ',
|
|
88
|
-
'χ': 'χ',
|
|
89
|
-
'ψ': 'ψ',
|
|
90
|
-
'ω': 'ω',
|
|
91
|
-
'Α': 'Α',
|
|
92
|
-
'Β': 'Β',
|
|
93
|
-
'Γ': 'Γ',
|
|
94
|
-
'Δ': 'Δ',
|
|
95
|
-
'Ε': 'Ε',
|
|
96
|
-
'Ζ': 'Ζ',
|
|
97
|
-
'Η': 'Η',
|
|
98
|
-
'Θ': 'Θ',
|
|
99
|
-
'Ι': 'Ι',
|
|
100
|
-
'Κ': 'Κ',
|
|
101
|
-
'Λ': 'Λ',
|
|
102
|
-
'Μ': 'Μ',
|
|
103
|
-
'Ν': 'Ν',
|
|
104
|
-
'Ξ': 'Ξ',
|
|
105
|
-
'Ο': 'Ο',
|
|
106
|
-
'Π': 'Π',
|
|
107
|
-
'Ρ': 'Ρ',
|
|
108
|
-
'Σ': 'Σ',
|
|
109
|
-
'Τ': 'Τ',
|
|
110
|
-
'Υ': 'Υ',
|
|
111
|
-
'Φ': 'Φ',
|
|
112
|
-
'Χ': 'Χ',
|
|
113
|
-
'Ψ': 'Ψ',
|
|
114
|
-
'Ω': 'Ω',
|
|
115
|
-
'À': 'À',
|
|
116
|
-
'Á': 'Á',
|
|
117
|
-
'Â': 'Â',
|
|
118
|
-
'Ã': 'Ã',
|
|
119
|
-
'Ä': 'Ä',
|
|
120
|
-
'Å': 'Å',
|
|
121
|
-
'Æ': 'Æ',
|
|
122
|
-
'Ç': 'Ç',
|
|
123
|
-
'È': 'È',
|
|
124
|
-
'É': 'É',
|
|
125
|
-
'Ê': 'Ê',
|
|
126
|
-
'Ë': 'Ë',
|
|
127
|
-
'Ì': 'Ì',
|
|
128
|
-
'Í': 'Í',
|
|
129
|
-
'Î': 'Î',
|
|
130
|
-
'Ï': 'Ï',
|
|
131
|
-
'Ð': 'Ð',
|
|
132
|
-
'Ñ': 'Ñ',
|
|
133
|
-
'Ò': 'Ò',
|
|
134
|
-
'Ó': 'Ó',
|
|
135
|
-
'Ô': 'Ô',
|
|
136
|
-
'Õ': 'Õ',
|
|
137
|
-
'Ö': 'Ö',
|
|
138
|
-
'Ø': 'Ø',
|
|
139
|
-
'Ù': 'Ù',
|
|
140
|
-
'Ú': 'Ú',
|
|
141
|
-
'Û': 'Û',
|
|
142
|
-
'Ü': 'Ü',
|
|
143
|
-
'Ý': 'Ý',
|
|
144
|
-
'Þ': 'Þ',
|
|
145
|
-
'ß': 'ß',
|
|
146
|
-
'à': 'à',
|
|
147
|
-
'á': 'á',
|
|
148
|
-
'â': 'â',
|
|
149
|
-
'ã': 'ã',
|
|
150
|
-
'ä': 'ä',
|
|
151
|
-
'å': 'å',
|
|
152
|
-
'æ': 'æ',
|
|
153
|
-
'ç': 'ç',
|
|
154
|
-
'è': 'è',
|
|
155
|
-
'é': 'é',
|
|
156
|
-
'ê': 'ê',
|
|
157
|
-
'ë': 'ë',
|
|
158
|
-
'ì': 'ì',
|
|
159
|
-
'í': 'í',
|
|
160
|
-
'î': 'î',
|
|
161
|
-
'ï': 'ï',
|
|
162
|
-
'ð': 'ð',
|
|
163
|
-
'ñ': 'ñ',
|
|
164
|
-
'ò': 'ò',
|
|
165
|
-
'ó': 'ó',
|
|
166
|
-
'ô': 'ô',
|
|
167
|
-
'õ': 'õ',
|
|
168
|
-
'ö': 'ö',
|
|
169
|
-
'ø': 'ø',
|
|
170
|
-
'ù': 'ù',
|
|
171
|
-
'ú': 'ú',
|
|
172
|
-
'û': 'û',
|
|
173
|
-
'ü': 'ü',
|
|
174
|
-
'ý': 'ý',
|
|
175
|
-
'þ': 'þ',
|
|
176
|
-
'ÿ': 'ÿ',
|
|
177
|
-
'¡': '¡',
|
|
178
|
-
'¿': '¿',
|
|
179
|
-
'ƒ': 'ƒ',
|
|
180
|
-
'ˆ': 'ˆ',
|
|
181
|
-
'˜': '˜',
|
|
182
|
-
'Œ': 'Œ',
|
|
183
|
-
'œ': 'œ',
|
|
184
|
-
'Š': 'Š',
|
|
185
|
-
'š': 'š',
|
|
186
|
-
'Ÿ': 'Ÿ',
|
|
187
|
-
'ª': 'ª',
|
|
188
|
-
'º': 'º',
|
|
189
|
-
'¯': '¯',
|
|
190
|
-
'´': '´',
|
|
191
|
-
'¸': '¸',
|
|
192
|
-
'¹': '¹',
|
|
193
|
-
'²': '²',
|
|
194
|
-
'³': '³',
|
|
195
|
-
'¼': '¼',
|
|
196
|
-
'½': '½',
|
|
197
|
-
'¾': '¾',
|
|
198
|
-
'♠': '♠',
|
|
199
|
-
'♣': '♣',
|
|
200
|
-
'♥': '♥',
|
|
201
|
-
'♦': '♦',
|
|
202
|
-
'◊': '◊',
|
|
203
|
-
'‾': '‾',
|
|
204
|
-
'⁄': '⁄',
|
|
205
|
-
'℘': '℘',
|
|
206
|
-
'ℑ': 'ℑ',
|
|
207
|
-
'ℜ': 'ℜ',
|
|
208
|
-
'ℵ': 'ℵ'
|
|
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,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
|
-
'&': '&',
|
|
4
|
-
'&': '&',
|
|
5
|
-
'<': '<',
|
|
6
|
-
'<': '<',
|
|
7
|
-
'>': '>',
|
|
8
|
-
'>': '>',
|
|
9
|
-
''': "'",
|
|
10
|
-
''': "'",
|
|
11
|
-
'"': '"',
|
|
12
|
-
'"': '"',
|
|
13
|
-
' ': ' ',
|
|
14
|
-
' ': ' ',
|
|
15
|
-
'©': '©',
|
|
16
|
-
'©': '©',
|
|
17
|
-
'®': '®',
|
|
18
|
-
'®': '®',
|
|
19
|
-
'…': '…',
|
|
20
|
-
'…': '…',
|
|
21
|
-
'/': '/',
|
|
22
|
-
'/': '/'
|
|
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 };
|