@bigbinary/neeto-commons-frontend 4.14.0-beta.0 → 4.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -4
- package/configs/babel.js +2 -0
- package/configs/esbuild/alias.js +6 -0
- package/configs/esbuild/constants.js +14 -1
- package/configs/esbuild/importMap.js +258 -0
- package/configs/esbuild/index.js +10 -5
- package/configs/esbuild/plugins/packageTranslations.js +16 -0
- package/configs/esbuild/plugins/preval.js +25 -8
- package/configs/esbuild/plugins/reactGiphy.js +1 -0
- package/configs/esbuild/plugins/stripSourcemaps.js +46 -0
- package/configs/esbuild/utils.js +187 -6
- package/configs/eslint/globals.mjs +22 -0
- package/configs/eslint/helpers/{index.js → index.mjs} +12 -5
- package/configs/eslint/imports/enforced.mjs +34 -0
- package/configs/eslint/imports/order.mjs +71 -0
- package/configs/eslint/index.mjs +233 -0
- package/configs/eslint/overrides.mjs +28 -0
- package/configs/eslint/promise.mjs +12 -0
- package/configs/eslint/react.mjs +94 -0
- package/configs/jest/prevalTransformer.js +33 -0
- package/configs/nanos/eslint/imports/order.mjs +44 -0
- package/configs/nanos/eslint/index.mjs +29 -0
- package/configs/nanos/rollup/watchConfig.js +136 -0
- package/configs/nanos/webpack/resolve.js +25 -1
- package/configs/nextjs/eslint/imports/order.mjs +46 -0
- package/configs/nextjs/eslint/index.mjs +29 -0
- package/configs/prettier.js +1 -0
- package/configs/scripts/buildTranslationImports.js +21 -0
- package/configs/scripts/dead-code-eliminator/index.js +101 -21
- package/configs/scripts/getEnglishTranslation.js +11 -0
- package/configs/utils/packageTranslations.js +100 -0
- package/configs/utils/prevalReplace.js +65 -0
- package/configs/utils.js +20 -1
- package/configs/vite/index.js +31 -3
- package/configs/vite/plugins/nanoDevelopment.js +70 -0
- package/configs/vite/plugins/packageTranslations.js +112 -0
- package/configs/vite/plugins/preval.js +18 -8
- package/configs/webpack/prevalLoader.js +7 -0
- package/configs/webpack/resolve.js +26 -1
- package/configs/webpack/rules.js +1 -1
- package/constants.d.ts +2 -0
- package/dist/.ready +1 -0
- package/dist/app-container-k74rOpXb.js +5 -0
- package/dist/app-container-k74rOpXb.js.map +1 -0
- package/dist/asyncToGenerator-CPKhuIh2.js +28 -0
- package/dist/asyncToGenerator-CPKhuIh2.js.map +1 -0
- package/dist/cjs/app-container-Ck1J-BjW.js +7 -0
- package/dist/cjs/app-container-Ck1J-BjW.js.map +1 -0
- package/dist/cjs/asyncToGenerator-8vhqAwJl.js +30 -0
- package/dist/cjs/asyncToGenerator-8vhqAwJl.js.map +1 -0
- package/dist/cjs/constants/index.js +152 -0
- package/dist/cjs/constants/index.js.map +1 -1
- package/dist/cjs/constants/regex.js +1 -1
- package/dist/cjs/constants/regex.js.map +1 -1
- package/dist/cjs/createClass-CCk0Wrd_.js +23 -0
- package/dist/cjs/createClass-CCk0Wrd_.js.map +1 -0
- package/dist/cjs/defineProperty-COGyJ6Og.js +15 -0
- package/dist/cjs/defineProperty-COGyJ6Og.js.map +1 -0
- package/dist/cjs/index-XyG3hfIR.js +475 -0
- package/dist/cjs/index-XyG3hfIR.js.map +1 -0
- package/dist/cjs/initializers/axios.js +3 -2
- package/dist/cjs/initializers/axios.js.map +1 -1
- package/dist/cjs/initializers/axiosInitializer/index.js +37 -9
- package/dist/cjs/initializers/axiosInitializer/index.js.map +1 -1
- package/dist/cjs/initializers/axiosInitializer/paramsSerializer.js.map +1 -1
- package/dist/cjs/initializers/constants.js +3 -0
- package/dist/cjs/initializers/constants.js.map +1 -1
- package/dist/cjs/initializers/dayjs.js +19 -8
- package/dist/cjs/initializers/dayjs.js.map +1 -1
- package/dist/cjs/initializers/domPatch.js +78 -0
- package/dist/cjs/initializers/domPatch.js.map +1 -0
- package/dist/cjs/initializers/globalProps.js +3 -3
- package/dist/cjs/initializers/globalProps.js.map +1 -1
- package/dist/cjs/initializers/honeybadger/constants.js +14 -0
- package/dist/cjs/initializers/honeybadger/constants.js.map +1 -0
- package/dist/cjs/initializers/honeybadger/index.js +55 -0
- package/dist/cjs/initializers/honeybadger/index.js.map +1 -0
- package/dist/cjs/initializers/honeybadger/utils.js +36 -0
- package/dist/cjs/initializers/honeybadger/utils.js.map +1 -0
- package/dist/cjs/initializers/i18n.js +159 -586
- package/dist/cjs/initializers/i18n.js.map +1 -1
- package/dist/cjs/initializers/index.js +63 -28
- package/dist/cjs/initializers/index.js.map +1 -1
- package/dist/cjs/initializers/logger.js.map +1 -1
- package/dist/cjs/initializers/reactDevTools.js +1 -1
- package/dist/cjs/initializers/reactDevTools.js.map +1 -1
- package/dist/cjs/initializers/utils/customFormatters.js.map +1 -1
- package/dist/cjs/initializers/utils/customPostProcessors.js.map +1 -1
- package/dist/cjs/initializers/utils/{utils.js → index.js} +4 -4
- package/dist/cjs/initializers/utils/index.js.map +1 -0
- package/dist/cjs/lodash-Dn9Lp_19.js +17260 -0
- package/dist/cjs/lodash-Dn9Lp_19.js.map +1 -0
- package/dist/cjs/objectWithoutProperties-wSsbHFcG.js +26 -0
- package/dist/cjs/objectWithoutProperties-wSsbHFcG.js.map +1 -0
- package/dist/cjs/react-utils/AppContainer/AppContainer.js +17 -12
- package/dist/cjs/react-utils/AppContainer/AppContainer.js.map +1 -1
- package/dist/cjs/react-utils/AppContainer/index.js +8 -4
- package/dist/cjs/react-utils/AppContainer/index.js.map +1 -1
- package/dist/cjs/react-utils/BrowserPushNotifications/devices.js.map +1 -1
- package/dist/cjs/react-utils/BrowserPushNotifications/index.js +1 -2
- package/dist/cjs/react-utils/BrowserPushNotifications/index.js.map +1 -1
- package/dist/cjs/react-utils/BrowserPushNotifications/pushHelper.js +48 -50
- package/dist/cjs/react-utils/BrowserPushNotifications/pushHelper.js.map +1 -1
- package/dist/cjs/react-utils/BrowserPushNotifications/registerServiceWorker.js +64 -70
- package/dist/cjs/react-utils/BrowserPushNotifications/registerServiceWorker.js.map +1 -1
- package/dist/cjs/react-utils/HoneybadgerErrorBoundary/FallbackComponent.js +9 -7
- package/dist/cjs/react-utils/HoneybadgerErrorBoundary/FallbackComponent.js.map +1 -1
- package/dist/cjs/react-utils/HoneybadgerErrorBoundary/HoneybadgerErrorBoundary.js +19 -35
- package/dist/cjs/react-utils/HoneybadgerErrorBoundary/HoneybadgerErrorBoundary.js.map +1 -1
- package/dist/cjs/react-utils/HoneybadgerErrorBoundary/index.js +7 -4
- package/dist/cjs/react-utils/HoneybadgerErrorBoundary/index.js.map +1 -1
- package/dist/cjs/react-utils/OnlyInDevelopment/OnlyInDevelopment.js +63 -0
- package/dist/cjs/react-utils/OnlyInDevelopment/OnlyInDevelopment.js.map +1 -0
- package/dist/cjs/react-utils/OnlyInDevelopment/constants.js +31 -0
- package/dist/cjs/react-utils/OnlyInDevelopment/constants.js.map +1 -0
- package/dist/cjs/react-utils/OnlyInDevelopment/index.js +12 -0
- package/dist/cjs/react-utils/OnlyInDevelopment/index.js.map +1 -0
- package/dist/cjs/react-utils/OnlyInDevelopment/utils.js +32 -0
- package/dist/cjs/react-utils/OnlyInDevelopment/utils.js.map +1 -0
- package/dist/cjs/react-utils/PageTitle/PageTitle.js +1 -2
- package/dist/cjs/react-utils/PageTitle/PageTitle.js.map +1 -1
- package/dist/cjs/react-utils/PageTitle/index.js +0 -1
- package/dist/cjs/react-utils/PageTitle/index.js.map +1 -1
- package/dist/cjs/react-utils/PrivateRoute/PrivateRoute.js +26 -16
- package/dist/cjs/react-utils/PrivateRoute/PrivateRoute.js.map +1 -1
- package/dist/cjs/react-utils/PrivateRoute/constants.js +8 -0
- package/dist/cjs/react-utils/PrivateRoute/constants.js.map +1 -0
- package/dist/cjs/react-utils/PrivateRoute/index.js +6 -2
- package/dist/cjs/react-utils/PrivateRoute/index.js.map +1 -1
- package/dist/cjs/react-utils/PrivateRoute/utils.js +16 -0
- package/dist/cjs/react-utils/PrivateRoute/utils.js.map +1 -0
- package/dist/cjs/react-utils/QueryClientProvider/QueryClientProvider.js.map +1 -1
- package/dist/cjs/react-utils/QueryClientProvider/queryClient.js.map +1 -1
- package/dist/cjs/react-utils/constants/constants.js.map +1 -1
- package/dist/cjs/react-utils/constants/query.js.map +1 -1
- package/dist/cjs/react-utils/index.js +42 -12
- package/dist/cjs/react-utils/index.js.map +1 -1
- package/dist/cjs/react-utils/lazyWithRetry/index.js +10 -0
- package/dist/cjs/react-utils/lazyWithRetry/index.js.map +1 -0
- package/dist/cjs/react-utils/lazyWithRetry/lazyWithRetry.js +15 -0
- package/dist/cjs/react-utils/lazyWithRetry/lazyWithRetry.js.map +1 -0
- package/dist/cjs/react-utils/metaClick/metaClick.js.map +1 -1
- package/dist/cjs/react-utils/mount/index.js +17 -0
- package/dist/cjs/react-utils/mount/index.js.map +1 -0
- package/dist/cjs/react-utils/mount/mount.js +134 -0
- package/dist/cjs/react-utils/mount/mount.js.map +1 -0
- package/dist/cjs/react-utils/useBreakpoints/index.js +5 -3
- package/dist/cjs/react-utils/useBreakpoints/index.js.map +1 -1
- package/dist/cjs/react-utils/useBreakpoints/utils.js +4 -2
- package/dist/cjs/react-utils/useBreakpoints/utils.js.map +1 -1
- package/dist/cjs/react-utils/useColumnConfig/api.js +22 -0
- package/dist/cjs/react-utils/useColumnConfig/api.js.map +1 -0
- package/dist/cjs/react-utils/useColumnConfig/constants.js +8 -0
- package/dist/cjs/react-utils/useColumnConfig/constants.js.map +1 -0
- package/dist/cjs/react-utils/useColumnConfig/index.js +21 -0
- package/dist/cjs/react-utils/useColumnConfig/index.js.map +1 -0
- package/dist/cjs/react-utils/useColumnConfig/useColumnConfig.js +52 -0
- package/dist/cjs/react-utils/useColumnConfig/useColumnConfig.js.map +1 -0
- package/dist/cjs/react-utils/useColumnConfig/useConfigApi.js +33 -0
- package/dist/cjs/react-utils/useColumnConfig/useConfigApi.js.map +1 -0
- package/dist/cjs/react-utils/useColumnConfig/utils.js +30 -0
- package/dist/cjs/react-utils/useColumnConfig/utils.js.map +1 -0
- package/dist/cjs/react-utils/useDebounce/index.js +2 -2
- package/dist/cjs/react-utils/useDebounce/useDebounce.js +5 -5
- package/dist/cjs/react-utils/useDebounce/useDebounce.js.map +1 -1
- package/dist/cjs/react-utils/useDisplayErrorPage/useDisplayErrorPage.js +2 -1
- package/dist/cjs/react-utils/useDisplayErrorPage/useDisplayErrorPage.js.map +1 -1
- package/dist/cjs/react-utils/useFetchNeetoApps/apis/neeto_apps.js.map +1 -1
- package/dist/cjs/react-utils/useFetchNeetoApps/index.js +7 -6
- package/dist/cjs/react-utils/useFetchNeetoApps/index.js.map +1 -1
- package/dist/cjs/react-utils/useFetchNeetoApps/useFetchNeetoApps.js +8 -7
- package/dist/cjs/react-utils/useFetchNeetoApps/useFetchNeetoApps.js.map +1 -1
- package/dist/cjs/react-utils/useFieldSubmit/useFieldSubmit.js +4 -4
- package/dist/cjs/react-utils/useFieldSubmit/useFieldSubmit.js.map +1 -1
- package/dist/cjs/react-utils/useFuncDebounce/useFuncDebounce.js +2 -2
- package/dist/cjs/react-utils/useFuncDebounce/useFuncDebounce.js.map +1 -1
- package/dist/cjs/react-utils/useIsElementVisibleInDom/index.js +2 -2
- package/dist/cjs/react-utils/useIsElementVisibleInDom/useForceUpdate.js +4 -4
- package/dist/cjs/react-utils/useIsElementVisibleInDom/useForceUpdate.js.map +1 -1
- package/dist/cjs/react-utils/useIsElementVisibleInDom/useIsElementVisibleInDom.js +5 -5
- package/dist/cjs/react-utils/useIsElementVisibleInDom/useIsElementVisibleInDom.js.map +1 -1
- package/dist/cjs/react-utils/useKeyboardShortcutsPaneState/useKeyboardShortcutsPaneState.js +2 -2
- package/dist/cjs/react-utils/useKeyboardShortcutsPaneState/useKeyboardShortcutsPaneState.js.map +1 -1
- package/dist/cjs/react-utils/useLocalStorage/index.js +16 -8
- package/dist/cjs/react-utils/useLocalStorage/index.js.map +1 -1
- package/dist/cjs/react-utils/useLocalStorage/useLocalStorage.js +19 -11
- package/dist/cjs/react-utils/useLocalStorage/useLocalStorage.js.map +1 -1
- package/dist/cjs/react-utils/useMutationWithInvalidation/index.js +4 -2
- package/dist/cjs/react-utils/useMutationWithInvalidation/index.js.map +1 -1
- package/dist/cjs/react-utils/useMutationWithInvalidation/useMutationWithInvalidation.js +6 -4
- package/dist/cjs/react-utils/useMutationWithInvalidation/useMutationWithInvalidation.js.map +1 -1
- package/dist/cjs/react-utils/useOnClickOutside/useOnClickOutside.js +2 -2
- package/dist/cjs/react-utils/useOnClickOutside/useOnClickOutside.js.map +1 -1
- package/dist/cjs/react-utils/usePersistedQuery/index.js +7 -6
- package/dist/cjs/react-utils/usePersistedQuery/index.js.map +1 -1
- package/dist/cjs/react-utils/usePersistedQuery/usePersistedQuery.js +10 -9
- package/dist/cjs/react-utils/usePersistedQuery/usePersistedQuery.js.map +1 -1
- package/dist/cjs/react-utils/usePrefersReducedMotion/constants.js +6 -0
- package/dist/cjs/react-utils/usePrefersReducedMotion/constants.js.map +1 -0
- package/dist/cjs/react-utils/usePrefersReducedMotion/index.js +12 -0
- package/dist/cjs/react-utils/usePrefersReducedMotion/index.js.map +1 -0
- package/dist/cjs/react-utils/usePrefersReducedMotion/usePrefersReducedMotion.js +46 -0
- package/dist/cjs/react-utils/usePrefersReducedMotion/usePrefersReducedMotion.js.map +1 -0
- package/dist/cjs/react-utils/usePrevious/usePrevious.js +3 -3
- package/dist/cjs/react-utils/usePrevious/usePrevious.js.map +1 -1
- package/dist/cjs/react-utils/useQueryParams/index.js +7 -6
- package/dist/cjs/react-utils/useQueryParams/index.js.map +1 -1
- package/dist/cjs/react-utils/useQueryParams/useQueryParams.js +8 -7
- package/dist/cjs/react-utils/useQueryParams/useQueryParams.js.map +1 -1
- package/dist/cjs/react-utils/useRegisterNavigationCheckpoint/index.js +7 -6
- package/dist/cjs/react-utils/useRegisterNavigationCheckpoint/index.js.map +1 -1
- package/dist/cjs/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js +12 -11
- package/dist/cjs/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js.map +1 -1
- package/dist/cjs/react-utils/useRestoreScrollPosition/useRestoreScrollPosition.js +2 -2
- package/dist/cjs/react-utils/useRestoreScrollPosition/useRestoreScrollPosition.js.map +1 -1
- package/dist/cjs/react-utils/useStateWithDependency/index.js +2 -2
- package/dist/cjs/react-utils/useStateWithDependency/useStateWithDependency.js +5 -5
- package/dist/cjs/react-utils/useStateWithDependency/useStateWithDependency.js.map +1 -1
- package/dist/cjs/react-utils/useTimer/useTimer.js +3 -3
- package/dist/cjs/react-utils/useTimer/useTimer.js.map +1 -1
- package/dist/cjs/react-utils/useUpdateEffect/useUpdateEffect.js +3 -3
- package/dist/cjs/react-utils/useUpdateEffect/useUpdateEffect.js.map +1 -1
- package/dist/cjs/react-utils/withImmutableActions/withImmutableActions.js.map +1 -1
- package/dist/cjs/react-utils/withT/withT.js.map +1 -1
- package/dist/cjs/react-utils/withTitle/index.js +3 -1
- package/dist/cjs/react-utils/withTitle/index.js.map +1 -1
- package/dist/cjs/react-utils/withTitle/withTitle.js +4 -2
- package/dist/cjs/react-utils/withTitle/withTitle.js.map +1 -1
- package/dist/cjs/slicedToArray-BcL7fKuL.js +46 -0
- package/dist/cjs/slicedToArray-BcL7fKuL.js.map +1 -0
- package/dist/cjs/toConsumableArray-tBKHqzE3.js +22 -0
- package/dist/cjs/toConsumableArray-tBKHqzE3.js.map +1 -0
- package/dist/cjs/toPropertyKey-DW-YC76_.js +22 -0
- package/dist/cjs/toPropertyKey-DW-YC76_.js.map +1 -0
- package/dist/cjs/typeof-D4ZZ_FlZ.js +14 -0
- package/dist/cjs/typeof-D4ZZ_FlZ.js.map +1 -0
- package/dist/cjs/unsupportedIterableToArray-BoHMiKNA.js +19 -0
- package/dist/cjs/unsupportedIterableToArray-BoHMiKNA.js.map +1 -0
- package/dist/cjs/utils/axios.js.map +1 -1
- package/dist/cjs/utils/buildNestedAttributesPayload.js +6 -4
- package/dist/cjs/utils/buildNestedAttributesPayload.js.map +1 -1
- package/dist/cjs/utils/captureAnalyticsEvent.js +3 -5
- package/dist/cjs/utils/captureAnalyticsEvent.js.map +1 -1
- package/dist/cjs/utils/captureAnalyticsPageView.js +3 -10
- package/dist/cjs/utils/captureAnalyticsPageView.js.map +1 -1
- package/dist/cjs/utils/constants.js +14 -0
- package/dist/cjs/utils/constants.js.map +1 -0
- package/dist/cjs/utils/createSubscription.js +7 -6
- package/dist/cjs/utils/createSubscription.js.map +1 -1
- package/dist/cjs/utils/currencyFormat.js +4 -2
- package/dist/cjs/utils/currencyFormat.js.map +1 -1
- package/dist/cjs/utils/customParseFormatPlugin.js +308 -0
- package/dist/cjs/utils/customParseFormatPlugin.js.map +1 -0
- package/dist/cjs/utils/datetime.js +120 -54
- package/dist/cjs/utils/datetime.js.map +1 -1
- package/dist/cjs/utils/dayjs.js +42 -41
- package/dist/cjs/utils/dayjs.js.map +1 -1
- package/dist/cjs/utils/dayjsFormatOverrides/default.js +30 -0
- package/dist/cjs/utils/dayjsFormatOverrides/default.js.map +1 -0
- package/dist/cjs/utils/dayjsFormatOverrides/ja.js +29 -0
- package/dist/cjs/utils/dayjsFormatOverrides/ja.js.map +1 -0
- package/dist/cjs/utils/deviceInformation.js +209 -0
- package/dist/cjs/utils/deviceInformation.js.map +1 -0
- package/dist/cjs/utils/general.js +61 -44
- package/dist/cjs/utils/general.js.map +1 -1
- package/dist/cjs/utils/index.js +19 -8
- package/dist/cjs/utils/index.js.map +1 -1
- package/dist/cjs/utils/loadGoogleFonts.js.map +1 -1
- package/dist/cjs/utils/localePlugin.js +522 -0
- package/dist/cjs/utils/localePlugin.js.map +1 -0
- package/dist/cjs/utils/permissions.js.map +1 -1
- package/dist/cjs/utils/retryImport.js +37 -0
- package/dist/cjs/utils/retryImport.js.map +1 -0
- package/dist/cjs/utils/timezonePlugin.js +63 -31
- package/dist/cjs/utils/timezonePlugin.js.map +1 -1
- package/dist/cjs/utils/validators/slug.js.map +1 -1
- package/dist/cjs/v2/constants/index.js +183 -0
- package/dist/cjs/v2/constants/index.js.map +1 -0
- package/dist/cjs/v2/constants/regex.js +10 -0
- package/dist/cjs/v2/constants/regex.js.map +1 -0
- package/dist/cjs/v2/initializers/axios.js +23 -0
- package/dist/cjs/v2/initializers/axios.js.map +1 -0
- package/dist/cjs/v2/initializers/axiosInitializer/index.js +296 -0
- package/dist/cjs/v2/initializers/axiosInitializer/index.js.map +1 -0
- package/dist/cjs/v2/initializers/axiosInitializer/paramsSerializer.js +17 -0
- package/dist/cjs/v2/initializers/axiosInitializer/paramsSerializer.js.map +1 -0
- package/dist/cjs/v2/initializers/constants.js +27 -0
- package/dist/cjs/v2/initializers/constants.js.map +1 -0
- package/dist/cjs/v2/initializers/dayjs.js +68 -0
- package/dist/cjs/v2/initializers/dayjs.js.map +1 -0
- package/dist/cjs/v2/initializers/domPatch.js +78 -0
- package/dist/cjs/v2/initializers/domPatch.js.map +1 -0
- package/dist/cjs/v2/initializers/globalProps.js +16 -0
- package/dist/cjs/v2/initializers/globalProps.js.map +1 -0
- package/dist/cjs/v2/initializers/honeybadger/constants.js +14 -0
- package/dist/cjs/v2/initializers/honeybadger/constants.js.map +1 -0
- package/dist/cjs/v2/initializers/honeybadger/index.js +55 -0
- package/dist/cjs/v2/initializers/honeybadger/index.js.map +1 -0
- package/dist/cjs/v2/initializers/honeybadger/utils.js +36 -0
- package/dist/cjs/v2/initializers/honeybadger/utils.js.map +1 -0
- package/dist/cjs/v2/initializers/i18n.js +183 -0
- package/dist/cjs/v2/initializers/i18n.js.map +1 -0
- package/dist/cjs/v2/initializers/index.js +117 -0
- package/dist/cjs/v2/initializers/index.js.map +1 -0
- package/dist/cjs/v2/initializers/logger.js +15 -0
- package/dist/cjs/v2/initializers/logger.js.map +1 -0
- package/dist/cjs/v2/initializers/reactDevTools.js +23 -0
- package/dist/cjs/v2/initializers/reactDevTools.js.map +1 -0
- package/dist/cjs/v2/initializers/utils/customFormatters.js +49 -0
- package/dist/cjs/v2/initializers/utils/customFormatters.js.map +1 -0
- package/dist/cjs/v2/initializers/utils/customPostProcessors.js +19 -0
- package/dist/cjs/v2/initializers/utils/customPostProcessors.js.map +1 -0
- package/dist/cjs/v2/initializers/utils/index.js +35 -0
- package/dist/cjs/v2/initializers/utils/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/AppContainer/AppContainer.js +61 -0
- package/dist/cjs/v2/react-utils/AppContainer/AppContainer.js.map +1 -0
- package/dist/cjs/v2/react-utils/AppContainer/index.js +34 -0
- package/dist/cjs/v2/react-utils/AppContainer/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/BrowserPushNotifications/devices.js +26 -0
- package/dist/cjs/v2/react-utils/BrowserPushNotifications/devices.js.map +1 -0
- package/dist/cjs/v2/react-utils/BrowserPushNotifications/index.js +13 -0
- package/dist/cjs/v2/react-utils/BrowserPushNotifications/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/BrowserPushNotifications/pushHelper.js +108 -0
- package/dist/cjs/v2/react-utils/BrowserPushNotifications/pushHelper.js.map +1 -0
- package/dist/cjs/v2/react-utils/BrowserPushNotifications/registerServiceWorker.js +135 -0
- package/dist/cjs/v2/react-utils/BrowserPushNotifications/registerServiceWorker.js.map +1 -0
- package/dist/cjs/v2/react-utils/HoneybadgerErrorBoundary/FallbackComponent.js +104 -0
- package/dist/cjs/v2/react-utils/HoneybadgerErrorBoundary/FallbackComponent.js.map +1 -0
- package/dist/cjs/v2/react-utils/HoneybadgerErrorBoundary/HoneybadgerErrorBoundary.js +43 -0
- package/dist/cjs/v2/react-utils/HoneybadgerErrorBoundary/HoneybadgerErrorBoundary.js.map +1 -0
- package/dist/cjs/v2/react-utils/HoneybadgerErrorBoundary/index.js +22 -0
- package/dist/cjs/v2/react-utils/HoneybadgerErrorBoundary/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/OnlyInDevelopment/OnlyInDevelopment.js +63 -0
- package/dist/cjs/v2/react-utils/OnlyInDevelopment/OnlyInDevelopment.js.map +1 -0
- package/dist/cjs/v2/react-utils/OnlyInDevelopment/constants.js +31 -0
- package/dist/cjs/v2/react-utils/OnlyInDevelopment/constants.js.map +1 -0
- package/dist/cjs/v2/react-utils/OnlyInDevelopment/index.js +12 -0
- package/dist/cjs/v2/react-utils/OnlyInDevelopment/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/OnlyInDevelopment/utils.js +32 -0
- package/dist/cjs/v2/react-utils/OnlyInDevelopment/utils.js.map +1 -0
- package/dist/cjs/v2/react-utils/PageTitle/PageTitle.js +17 -0
- package/dist/cjs/v2/react-utils/PageTitle/PageTitle.js.map +1 -0
- package/dist/cjs/v2/react-utils/PageTitle/index.js +10 -0
- package/dist/cjs/v2/react-utils/PageTitle/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/PrivateRoute/PrivateRoute.js +54 -0
- package/dist/cjs/v2/react-utils/PrivateRoute/PrivateRoute.js.map +1 -0
- package/dist/cjs/v2/react-utils/PrivateRoute/constants.js +8 -0
- package/dist/cjs/v2/react-utils/PrivateRoute/constants.js.map +1 -0
- package/dist/cjs/v2/react-utils/PrivateRoute/index.js +18 -0
- package/dist/cjs/v2/react-utils/PrivateRoute/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/PrivateRoute/utils.js +16 -0
- package/dist/cjs/v2/react-utils/PrivateRoute/utils.js.map +1 -0
- package/dist/cjs/v2/react-utils/QueryClientProvider/QueryClientProvider.js +18 -0
- package/dist/cjs/v2/react-utils/QueryClientProvider/QueryClientProvider.js.map +1 -0
- package/dist/cjs/v2/react-utils/QueryClientProvider/index.js +16 -0
- package/dist/cjs/v2/react-utils/QueryClientProvider/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/QueryClientProvider/queryClient.js +19 -0
- package/dist/cjs/v2/react-utils/QueryClientProvider/queryClient.js.map +1 -0
- package/dist/cjs/v2/react-utils/constants/constants.js +10 -0
- package/dist/cjs/v2/react-utils/constants/constants.js.map +1 -0
- package/dist/cjs/v2/react-utils/constants/index.js +12 -0
- package/dist/cjs/v2/react-utils/constants/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/constants/query.js +8 -0
- package/dist/cjs/v2/react-utils/constants/query.js.map +1 -0
- package/dist/cjs/v2/react-utils/index.js +158 -0
- package/dist/cjs/v2/react-utils/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/lazyWithRetry/index.js +10 -0
- package/dist/cjs/v2/react-utils/lazyWithRetry/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/lazyWithRetry/lazyWithRetry.js +15 -0
- package/dist/cjs/v2/react-utils/lazyWithRetry/lazyWithRetry.js.map +1 -0
- package/dist/cjs/v2/react-utils/metaClick/index.js +10 -0
- package/dist/cjs/v2/react-utils/metaClick/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/metaClick/metaClick.js +21 -0
- package/dist/cjs/v2/react-utils/metaClick/metaClick.js.map +1 -0
- package/dist/cjs/v2/react-utils/mount/index.js +17 -0
- package/dist/cjs/v2/react-utils/mount/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/mount/mount.js +134 -0
- package/dist/cjs/v2/react-utils/mount/mount.js.map +1 -0
- package/dist/cjs/v2/react-utils/useBreakpoints/index.js +22 -0
- package/dist/cjs/v2/react-utils/useBreakpoints/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/useBreakpoints/utils.js +31 -0
- package/dist/cjs/v2/react-utils/useBreakpoints/utils.js.map +1 -0
- package/dist/cjs/v2/react-utils/useColumnConfig/api.js +22 -0
- package/dist/cjs/v2/react-utils/useColumnConfig/api.js.map +1 -0
- package/dist/cjs/v2/react-utils/useColumnConfig/constants.js +8 -0
- package/dist/cjs/v2/react-utils/useColumnConfig/constants.js.map +1 -0
- package/dist/cjs/v2/react-utils/useColumnConfig/index.js +21 -0
- package/dist/cjs/v2/react-utils/useColumnConfig/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/useColumnConfig/useColumnConfig.js +52 -0
- package/dist/cjs/v2/react-utils/useColumnConfig/useColumnConfig.js.map +1 -0
- package/dist/cjs/v2/react-utils/useColumnConfig/useConfigApi.js +33 -0
- package/dist/cjs/v2/react-utils/useColumnConfig/useConfigApi.js.map +1 -0
- package/dist/cjs/v2/react-utils/useColumnConfig/utils.js +30 -0
- package/dist/cjs/v2/react-utils/useColumnConfig/utils.js.map +1 -0
- package/dist/cjs/v2/react-utils/useDebounce/index.js +11 -0
- package/dist/cjs/v2/react-utils/useDebounce/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/useDebounce/useDebounce.js +25 -0
- package/dist/cjs/v2/react-utils/useDebounce/useDebounce.js.map +1 -0
- package/dist/cjs/v2/react-utils/useDisplayErrorPage/index.js +13 -0
- package/dist/cjs/v2/react-utils/useDisplayErrorPage/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/useDisplayErrorPage/useDisplayErrorPage.js +23 -0
- package/dist/cjs/v2/react-utils/useDisplayErrorPage/useDisplayErrorPage.js.map +1 -0
- package/dist/cjs/v2/react-utils/useFetchNeetoApps/apis/neeto_apps.js +13 -0
- package/dist/cjs/v2/react-utils/useFetchNeetoApps/apis/neeto_apps.js.map +1 -0
- package/dist/cjs/v2/react-utils/useFetchNeetoApps/index.js +28 -0
- package/dist/cjs/v2/react-utils/useFetchNeetoApps/useFetchNeetoApps.js +40 -0
- package/dist/cjs/v2/react-utils/useFetchNeetoApps/useFetchNeetoApps.js.map +1 -0
- package/dist/cjs/v2/react-utils/useFieldSubmit/index.js +9 -0
- package/dist/cjs/v2/react-utils/useFieldSubmit/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/useFieldSubmit/useFieldSubmit.js +30 -0
- package/dist/cjs/v2/react-utils/useFieldSubmit/useFieldSubmit.js.map +1 -0
- package/dist/cjs/v2/react-utils/useFuncDebounce/index.js +9 -0
- package/dist/cjs/v2/react-utils/useFuncDebounce/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/useFuncDebounce/useFuncDebounce.js +24 -0
- package/dist/cjs/v2/react-utils/useFuncDebounce/useFuncDebounce.js.map +1 -0
- package/dist/cjs/v2/react-utils/useGlobalSearch.js +68 -0
- package/dist/cjs/v2/react-utils/useGlobalSearch.js.map +1 -0
- package/dist/cjs/v2/react-utils/useIsElementVisibleInDom/index.js +12 -0
- package/dist/cjs/v2/react-utils/useIsElementVisibleInDom/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/useIsElementVisibleInDom/useForceUpdate.js +20 -0
- package/dist/cjs/v2/react-utils/useIsElementVisibleInDom/useForceUpdate.js.map +1 -0
- package/dist/cjs/v2/react-utils/useIsElementVisibleInDom/useIsElementVisibleInDom.js +31 -0
- package/dist/cjs/v2/react-utils/useIsElementVisibleInDom/useIsElementVisibleInDom.js.map +1 -0
- package/dist/cjs/v2/react-utils/useKeyboardShortcutsPaneState/index.js +10 -0
- package/dist/cjs/v2/react-utils/useKeyboardShortcutsPaneState/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/useKeyboardShortcutsPaneState/useKeyboardShortcutsPaneState.js +33 -0
- package/dist/cjs/v2/react-utils/useKeyboardShortcutsPaneState/useKeyboardShortcutsPaneState.js.map +1 -0
- package/dist/cjs/v2/react-utils/useLocalStorage/index.js +38 -0
- package/dist/cjs/v2/react-utils/useLocalStorage/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/useLocalStorage/useLocalStorage.js +65 -0
- package/dist/cjs/v2/react-utils/useLocalStorage/useLocalStorage.js.map +1 -0
- package/dist/cjs/v2/react-utils/useMutationWithInvalidation/index.js +14 -0
- package/dist/cjs/v2/react-utils/useMutationWithInvalidation/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/useMutationWithInvalidation/useMutationWithInvalidation.js +43 -0
- package/dist/cjs/v2/react-utils/useMutationWithInvalidation/useMutationWithInvalidation.js.map +1 -0
- package/dist/cjs/v2/react-utils/useOnClickOutside/index.js +9 -0
- package/dist/cjs/v2/react-utils/useOnClickOutside/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/useOnClickOutside/useOnClickOutside.js +29 -0
- package/dist/cjs/v2/react-utils/useOnClickOutside/useOnClickOutside.js.map +1 -0
- package/dist/cjs/v2/react-utils/usePersistedQuery/index.js +24 -0
- package/dist/cjs/v2/react-utils/usePersistedQuery/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/usePersistedQuery/usePersistedQuery.js +68 -0
- package/dist/cjs/v2/react-utils/usePersistedQuery/usePersistedQuery.js.map +1 -0
- package/dist/cjs/v2/react-utils/usePrefersReducedMotion/constants.js +6 -0
- package/dist/cjs/v2/react-utils/usePrefersReducedMotion/constants.js.map +1 -0
- package/dist/cjs/v2/react-utils/usePrefersReducedMotion/index.js +12 -0
- package/dist/cjs/v2/react-utils/usePrefersReducedMotion/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/usePrefersReducedMotion/usePrefersReducedMotion.js +46 -0
- package/dist/cjs/v2/react-utils/usePrefersReducedMotion/usePrefersReducedMotion.js.map +1 -0
- package/dist/cjs/v2/react-utils/usePrevious/index.js +9 -0
- package/dist/cjs/v2/react-utils/usePrevious/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/usePrevious/usePrevious.js +14 -0
- package/dist/cjs/v2/react-utils/usePrevious/usePrevious.js.map +1 -0
- package/dist/cjs/v2/react-utils/useQueryParams/index.js +22 -0
- package/dist/cjs/v2/react-utils/useQueryParams/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/useQueryParams/useQueryParams.js +24 -0
- package/dist/cjs/v2/react-utils/useQueryParams/useQueryParams.js.map +1 -0
- package/dist/cjs/v2/react-utils/useRegisterNavigationCheckpoint/index.js +30 -0
- package/dist/cjs/v2/react-utils/useRegisterNavigationCheckpoint/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js +86 -0
- package/dist/cjs/v2/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js.map +1 -0
- package/dist/cjs/v2/react-utils/useRestoreScrollPosition/index.js +18 -0
- package/dist/cjs/v2/react-utils/useRestoreScrollPosition/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/useRestoreScrollPosition/useRestoreScrollPosition.js +70 -0
- package/dist/cjs/v2/react-utils/useRestoreScrollPosition/useRestoreScrollPosition.js.map +1 -0
- package/dist/cjs/v2/react-utils/useStateWithDependency/index.js +11 -0
- package/dist/cjs/v2/react-utils/useStateWithDependency/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/useStateWithDependency/useStateWithDependency.js +20 -0
- package/dist/cjs/v2/react-utils/useStateWithDependency/useStateWithDependency.js.map +1 -0
- package/dist/cjs/v2/react-utils/useTimer/index.js +10 -0
- package/dist/cjs/v2/react-utils/useTimer/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/useTimer/useTimer.js +43 -0
- package/dist/cjs/v2/react-utils/useTimer/useTimer.js.map +1 -0
- package/dist/cjs/v2/react-utils/useUpdateEffect/index.js +9 -0
- package/dist/cjs/v2/react-utils/useUpdateEffect/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/useUpdateEffect/useUpdateEffect.js +18 -0
- package/dist/cjs/v2/react-utils/useUpdateEffect/useUpdateEffect.js.map +1 -0
- package/dist/cjs/v2/react-utils/withImmutableActions/index.js +9 -0
- package/dist/cjs/v2/react-utils/withImmutableActions/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/withImmutableActions/withImmutableActions.js +26 -0
- package/dist/cjs/v2/react-utils/withImmutableActions/withImmutableActions.js.map +1 -0
- package/dist/cjs/v2/react-utils/withT/index.js +9 -0
- package/dist/cjs/v2/react-utils/withT/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/withT/withT.js +11 -0
- package/dist/cjs/v2/react-utils/withT/withT.js.map +1 -0
- package/dist/cjs/v2/react-utils/withTitle/index.js +13 -0
- package/dist/cjs/v2/react-utils/withTitle/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/withTitle/withTitle.js +26 -0
- package/dist/cjs/v2/react-utils/withTitle/withTitle.js.map +1 -0
- package/dist/cjs/v2/utils/axios.js +14 -0
- package/dist/cjs/v2/utils/axios.js.map +1 -0
- package/dist/cjs/v2/utils/buildNestedAttributesPayload.js +40 -0
- package/dist/cjs/v2/utils/buildNestedAttributesPayload.js.map +1 -0
- package/dist/cjs/v2/utils/captureAnalyticsEvent.js +10 -0
- package/dist/cjs/v2/utils/captureAnalyticsEvent.js.map +1 -0
- package/dist/cjs/v2/utils/captureAnalyticsPageView.js +10 -0
- package/dist/cjs/v2/utils/captureAnalyticsPageView.js.map +1 -0
- package/dist/cjs/v2/utils/constants.js +14 -0
- package/dist/cjs/v2/utils/constants.js.map +1 -0
- package/dist/cjs/v2/utils/createSubscription.js +31 -0
- package/dist/cjs/v2/utils/createSubscription.js.map +1 -0
- package/dist/cjs/v2/utils/currencyFormat.js +49 -0
- package/dist/cjs/v2/utils/currencyFormat.js.map +1 -0
- package/dist/cjs/v2/utils/customParseFormatPlugin.js +308 -0
- package/dist/cjs/v2/utils/customParseFormatPlugin.js.map +1 -0
- package/dist/cjs/v2/utils/datetime.js +133 -0
- package/dist/cjs/v2/utils/datetime.js.map +1 -0
- package/dist/cjs/v2/utils/dayjs.js +103 -0
- package/dist/cjs/v2/utils/dayjs.js.map +1 -0
- package/dist/cjs/v2/utils/dayjsFormatOverrides/default.js +30 -0
- package/dist/cjs/v2/utils/dayjsFormatOverrides/default.js.map +1 -0
- package/dist/cjs/v2/utils/dayjsFormatOverrides/ja.js +29 -0
- package/dist/cjs/v2/utils/dayjsFormatOverrides/ja.js.map +1 -0
- package/dist/cjs/v2/utils/deviceInformation.js +209 -0
- package/dist/cjs/v2/utils/deviceInformation.js.map +1 -0
- package/dist/cjs/v2/utils/general.js +237 -0
- package/dist/cjs/v2/utils/general.js.map +1 -0
- package/dist/cjs/v2/utils/index.js +77 -0
- package/dist/cjs/{cypress-utils → v2/utils}/index.js.map +1 -1
- package/dist/cjs/v2/utils/loadGoogleFonts.js +13 -0
- package/dist/cjs/v2/utils/loadGoogleFonts.js.map +1 -0
- package/dist/cjs/v2/utils/localePlugin.js +522 -0
- package/dist/cjs/v2/utils/localePlugin.js.map +1 -0
- package/dist/cjs/v2/utils/permissions.js +24 -0
- package/dist/cjs/v2/utils/permissions.js.map +1 -0
- package/dist/cjs/v2/utils/retryImport.js +37 -0
- package/dist/cjs/v2/utils/retryImport.js.map +1 -0
- package/dist/cjs/v2/utils/timezonePlugin.js +209 -0
- package/dist/cjs/v2/utils/timezonePlugin.js.map +1 -0
- package/dist/cjs/v2/utils/validators/index.js +11 -0
- package/dist/cjs/v2/utils/validators/index.js.map +1 -0
- package/dist/cjs/v2/utils/validators/slug.js +72 -0
- package/dist/cjs/v2/utils/validators/slug.js.map +1 -0
- package/dist/constants/index.js +151 -1
- package/dist/constants/index.js.map +1 -1
- package/dist/constants/regex.js +1 -1
- package/dist/constants/regex.js.map +1 -1
- package/dist/createClass-CuM_Q_Jb.js +20 -0
- package/dist/createClass-CuM_Q_Jb.js.map +1 -0
- package/dist/defineProperty-Dcer7TUY.js +13 -0
- package/dist/defineProperty-Dcer7TUY.js.map +1 -0
- package/dist/index-CgFudTTK.js +472 -0
- package/dist/index-CgFudTTK.js.map +1 -0
- package/dist/initializers/axios.js +3 -2
- package/dist/initializers/axios.js.map +1 -1
- package/dist/initializers/axiosInitializer/index.js +37 -9
- package/dist/initializers/axiosInitializer/index.js.map +1 -1
- package/dist/initializers/axiosInitializer/paramsSerializer.js.map +1 -1
- package/dist/initializers/constants.js +3 -1
- package/dist/initializers/constants.js.map +1 -1
- package/dist/initializers/dayjs.js +17 -6
- package/dist/initializers/dayjs.js.map +1 -1
- package/dist/initializers/domPatch.js +76 -0
- package/dist/initializers/domPatch.js.map +1 -0
- package/dist/initializers/globalProps.js +3 -3
- package/dist/initializers/globalProps.js.map +1 -1
- package/dist/initializers/honeybadger/constants.js +10 -0
- package/dist/initializers/honeybadger/constants.js.map +1 -0
- package/dist/initializers/honeybadger/index.js +50 -0
- package/dist/initializers/honeybadger/index.js.map +1 -0
- package/dist/initializers/honeybadger/utils.js +31 -0
- package/dist/initializers/honeybadger/utils.js.map +1 -0
- package/dist/initializers/i18n.js +160 -587
- package/dist/initializers/i18n.js.map +1 -1
- package/dist/initializers/index.js +63 -28
- package/dist/initializers/index.js.map +1 -1
- package/dist/initializers/logger.js.map +1 -1
- package/dist/initializers/reactDevTools.js +1 -1
- package/dist/initializers/reactDevTools.js.map +1 -1
- package/dist/initializers/utils/customFormatters.js.map +1 -1
- package/dist/initializers/utils/customPostProcessors.js.map +1 -1
- package/dist/initializers/utils/{utils.js → index.js} +4 -4
- package/dist/initializers/utils/index.js.map +1 -0
- package/dist/lodash-BmsmkciF.js +17258 -0
- package/dist/lodash-BmsmkciF.js.map +1 -0
- package/dist/objectWithoutProperties-DN7d1SzH.js +24 -0
- package/dist/objectWithoutProperties-DN7d1SzH.js.map +1 -0
- package/dist/react-utils/AppContainer/AppContainer.js +17 -12
- package/dist/react-utils/AppContainer/AppContainer.js.map +1 -1
- package/dist/react-utils/AppContainer/index.js +8 -4
- package/dist/react-utils/AppContainer/index.js.map +1 -1
- package/dist/react-utils/BrowserPushNotifications/devices.js.map +1 -1
- package/dist/react-utils/BrowserPushNotifications/index.js +1 -2
- package/dist/react-utils/BrowserPushNotifications/index.js.map +1 -1
- package/dist/react-utils/BrowserPushNotifications/pushHelper.js +48 -50
- package/dist/react-utils/BrowserPushNotifications/pushHelper.js.map +1 -1
- package/dist/react-utils/BrowserPushNotifications/registerServiceWorker.js +64 -70
- package/dist/react-utils/BrowserPushNotifications/registerServiceWorker.js.map +1 -1
- package/dist/react-utils/HoneybadgerErrorBoundary/FallbackComponent.js +7 -5
- package/dist/react-utils/HoneybadgerErrorBoundary/FallbackComponent.js.map +1 -1
- package/dist/react-utils/HoneybadgerErrorBoundary/HoneybadgerErrorBoundary.js +20 -36
- package/dist/react-utils/HoneybadgerErrorBoundary/HoneybadgerErrorBoundary.js.map +1 -1
- package/dist/react-utils/HoneybadgerErrorBoundary/index.js +7 -4
- package/dist/react-utils/HoneybadgerErrorBoundary/index.js.map +1 -1
- package/dist/react-utils/OnlyInDevelopment/OnlyInDevelopment.js +61 -0
- package/dist/react-utils/OnlyInDevelopment/OnlyInDevelopment.js.map +1 -0
- package/dist/react-utils/OnlyInDevelopment/constants.js +27 -0
- package/dist/react-utils/OnlyInDevelopment/constants.js.map +1 -0
- package/dist/react-utils/OnlyInDevelopment/index.js +6 -0
- package/dist/react-utils/OnlyInDevelopment/index.js.map +1 -0
- package/dist/react-utils/OnlyInDevelopment/utils.js +30 -0
- package/dist/react-utils/OnlyInDevelopment/utils.js.map +1 -0
- package/dist/react-utils/PageTitle/PageTitle.js +0 -1
- package/dist/react-utils/PageTitle/PageTitle.js.map +1 -1
- package/dist/react-utils/PageTitle/index.js +0 -1
- package/dist/react-utils/PageTitle/index.js.map +1 -1
- package/dist/react-utils/PrivateRoute/PrivateRoute.js +26 -16
- package/dist/react-utils/PrivateRoute/PrivateRoute.js.map +1 -1
- package/dist/react-utils/PrivateRoute/constants.js +5 -0
- package/dist/react-utils/PrivateRoute/constants.js.map +1 -0
- package/dist/react-utils/PrivateRoute/index.js +6 -2
- package/dist/react-utils/PrivateRoute/index.js.map +1 -1
- package/dist/react-utils/PrivateRoute/utils.js +14 -0
- package/dist/react-utils/PrivateRoute/utils.js.map +1 -0
- package/dist/react-utils/QueryClientProvider/QueryClientProvider.js.map +1 -1
- package/dist/react-utils/QueryClientProvider/queryClient.js +1 -1
- package/dist/react-utils/QueryClientProvider/queryClient.js.map +1 -1
- package/dist/react-utils/constants/constants.js.map +1 -1
- package/dist/react-utils/constants/query.js.map +1 -1
- package/dist/react-utils/index.js +37 -12
- package/dist/react-utils/index.js.map +1 -1
- package/dist/react-utils/lazyWithRetry/index.js +4 -0
- package/dist/react-utils/lazyWithRetry/index.js.map +1 -0
- package/dist/react-utils/lazyWithRetry/lazyWithRetry.js +13 -0
- package/dist/react-utils/lazyWithRetry/lazyWithRetry.js.map +1 -0
- package/dist/react-utils/metaClick/metaClick.js.map +1 -1
- package/dist/react-utils/mount/index.js +11 -0
- package/dist/react-utils/mount/index.js.map +1 -0
- package/dist/react-utils/mount/mount.js +132 -0
- package/dist/react-utils/mount/mount.js.map +1 -0
- package/dist/react-utils/useBreakpoints/index.js +3 -1
- package/dist/react-utils/useBreakpoints/index.js.map +1 -1
- package/dist/react-utils/useBreakpoints/utils.js +4 -2
- package/dist/react-utils/useBreakpoints/utils.js.map +1 -1
- package/dist/react-utils/useColumnConfig/api.js +20 -0
- package/dist/react-utils/useColumnConfig/api.js.map +1 -0
- package/dist/react-utils/useColumnConfig/constants.js +5 -0
- package/dist/react-utils/useColumnConfig/constants.js.map +1 -0
- package/dist/react-utils/useColumnConfig/index.js +15 -0
- package/dist/react-utils/useColumnConfig/index.js.map +1 -0
- package/dist/react-utils/useColumnConfig/useColumnConfig.js +50 -0
- package/dist/react-utils/useColumnConfig/useColumnConfig.js.map +1 -0
- package/dist/react-utils/useColumnConfig/useConfigApi.js +30 -0
- package/dist/react-utils/useColumnConfig/useConfigApi.js.map +1 -0
- package/dist/react-utils/useColumnConfig/utils.js +27 -0
- package/dist/react-utils/useColumnConfig/utils.js.map +1 -0
- package/dist/react-utils/useDebounce/index.js +2 -2
- package/dist/react-utils/useDebounce/useDebounce.js +2 -2
- package/dist/react-utils/useDebounce/useDebounce.js.map +1 -1
- package/dist/react-utils/useDisplayErrorPage/useDisplayErrorPage.js +2 -1
- package/dist/react-utils/useDisplayErrorPage/useDisplayErrorPage.js.map +1 -1
- package/dist/react-utils/useFetchNeetoApps/apis/neeto_apps.js.map +1 -1
- package/dist/react-utils/useFetchNeetoApps/index.js +7 -6
- package/dist/react-utils/useFetchNeetoApps/index.js.map +1 -1
- package/dist/react-utils/useFetchNeetoApps/useFetchNeetoApps.js +8 -7
- package/dist/react-utils/useFetchNeetoApps/useFetchNeetoApps.js.map +1 -1
- package/dist/react-utils/useFieldSubmit/useFieldSubmit.js.map +1 -1
- package/dist/react-utils/useFuncDebounce/useFuncDebounce.js.map +1 -1
- package/dist/react-utils/useIsElementVisibleInDom/index.js +2 -2
- package/dist/react-utils/useIsElementVisibleInDom/useForceUpdate.js +2 -2
- package/dist/react-utils/useIsElementVisibleInDom/useForceUpdate.js.map +1 -1
- package/dist/react-utils/useIsElementVisibleInDom/useIsElementVisibleInDom.js +2 -2
- package/dist/react-utils/useIsElementVisibleInDom/useIsElementVisibleInDom.js.map +1 -1
- package/dist/react-utils/useKeyboardShortcutsPaneState/useKeyboardShortcutsPaneState.js +3 -3
- package/dist/react-utils/useKeyboardShortcutsPaneState/useKeyboardShortcutsPaneState.js.map +1 -1
- package/dist/react-utils/useLocalStorage/index.js +16 -8
- package/dist/react-utils/useLocalStorage/index.js.map +1 -1
- package/dist/react-utils/useLocalStorage/useLocalStorage.js +17 -9
- package/dist/react-utils/useLocalStorage/useLocalStorage.js.map +1 -1
- package/dist/react-utils/useMutationWithInvalidation/index.js +4 -2
- package/dist/react-utils/useMutationWithInvalidation/index.js.map +1 -1
- package/dist/react-utils/useMutationWithInvalidation/useMutationWithInvalidation.js +6 -4
- package/dist/react-utils/useMutationWithInvalidation/useMutationWithInvalidation.js.map +1 -1
- package/dist/react-utils/useOnClickOutside/useOnClickOutside.js.map +1 -1
- package/dist/react-utils/usePersistedQuery/index.js +7 -6
- package/dist/react-utils/usePersistedQuery/index.js.map +1 -1
- package/dist/react-utils/usePersistedQuery/usePersistedQuery.js +9 -8
- package/dist/react-utils/usePersistedQuery/usePersistedQuery.js.map +1 -1
- package/dist/react-utils/usePrefersReducedMotion/constants.js +4 -0
- package/dist/react-utils/usePrefersReducedMotion/constants.js.map +1 -0
- package/dist/react-utils/usePrefersReducedMotion/index.js +6 -0
- package/dist/react-utils/usePrefersReducedMotion/index.js.map +1 -0
- package/dist/react-utils/usePrefersReducedMotion/usePrefersReducedMotion.js +44 -0
- package/dist/react-utils/usePrefersReducedMotion/usePrefersReducedMotion.js.map +1 -0
- package/dist/react-utils/usePrevious/usePrevious.js.map +1 -1
- package/dist/react-utils/useQueryParams/index.js +7 -6
- package/dist/react-utils/useQueryParams/index.js.map +1 -1
- package/dist/react-utils/useQueryParams/useQueryParams.js +8 -7
- package/dist/react-utils/useQueryParams/useQueryParams.js.map +1 -1
- package/dist/react-utils/useRegisterNavigationCheckpoint/index.js +7 -6
- package/dist/react-utils/useRegisterNavigationCheckpoint/index.js.map +1 -1
- package/dist/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js +12 -11
- package/dist/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js.map +1 -1
- package/dist/react-utils/useRestoreScrollPosition/useRestoreScrollPosition.js +1 -1
- package/dist/react-utils/useRestoreScrollPosition/useRestoreScrollPosition.js.map +1 -1
- package/dist/react-utils/useStateWithDependency/index.js +2 -2
- package/dist/react-utils/useStateWithDependency/useStateWithDependency.js +2 -2
- package/dist/react-utils/useStateWithDependency/useStateWithDependency.js.map +1 -1
- package/dist/react-utils/useTimer/useTimer.js.map +1 -1
- package/dist/react-utils/useUpdateEffect/useUpdateEffect.js.map +1 -1
- package/dist/react-utils/withImmutableActions/withImmutableActions.js.map +1 -1
- package/dist/react-utils/withT/withT.js.map +1 -1
- package/dist/react-utils/withTitle/index.js +3 -1
- package/dist/react-utils/withTitle/index.js.map +1 -1
- package/dist/react-utils/withTitle/withTitle.js +4 -2
- package/dist/react-utils/withTitle/withTitle.js.map +1 -1
- package/dist/slicedToArray-DmsZvA_9.js +44 -0
- package/dist/slicedToArray-DmsZvA_9.js.map +1 -0
- package/dist/toConsumableArray-B7CFjjkW.js +20 -0
- package/dist/toConsumableArray-B7CFjjkW.js.map +1 -0
- package/dist/toPropertyKey-BAXkSB3z.js +20 -0
- package/dist/toPropertyKey-BAXkSB3z.js.map +1 -0
- package/dist/translations/ar.json +116 -0
- package/dist/translations/bg.json +116 -0
- package/dist/translations/ca.json +116 -0
- package/dist/translations/cs.json +116 -0
- package/dist/translations/da.json +116 -0
- package/dist/translations/de.json +116 -0
- package/dist/translations/en.json +8 -2
- package/dist/translations/es-MX.json +116 -0
- package/dist/translations/es.json +116 -0
- package/dist/translations/et.json +116 -0
- package/dist/translations/fi.json +116 -0
- package/dist/translations/fil.json +116 -0
- package/dist/translations/fr.json +116 -0
- package/dist/translations/he.json +116 -0
- package/dist/translations/hi.json +116 -0
- package/dist/translations/hr.json +116 -0
- package/dist/translations/hu.json +116 -0
- package/dist/translations/id.json +116 -0
- package/dist/translations/it.json +116 -0
- package/dist/translations/ja.json +116 -0
- package/dist/translations/ko.json +116 -0
- package/dist/translations/lv.json +116 -0
- package/dist/translations/nl.json +116 -0
- package/dist/translations/pl.json +116 -0
- package/dist/translations/pt-BR.json +116 -0
- package/dist/translations/pt.json +116 -0
- package/dist/translations/ro.json +116 -0
- package/dist/translations/ru.json +116 -0
- package/dist/translations/sk.json +116 -0
- package/dist/translations/sl.json +116 -0
- package/dist/translations/sv.json +116 -0
- package/dist/translations/th.json +116 -0
- package/dist/translations/tr.json +116 -0
- package/dist/translations/uk.json +116 -0
- package/dist/translations/vi.json +116 -0
- package/dist/translations/zh-CN.json +116 -0
- package/dist/translations/zh-TW.json +116 -0
- package/dist/typeof-D-UKOauR.js +12 -0
- package/dist/typeof-D-UKOauR.js.map +1 -0
- package/dist/unsupportedIterableToArray-Dqz8Y8_I.js +16 -0
- package/dist/unsupportedIterableToArray-Dqz8Y8_I.js.map +1 -0
- package/dist/utils/axios.js.map +1 -1
- package/dist/utils/buildNestedAttributesPayload.js +6 -4
- package/dist/utils/buildNestedAttributesPayload.js.map +1 -1
- package/dist/utils/captureAnalyticsEvent.js +3 -5
- package/dist/utils/captureAnalyticsEvent.js.map +1 -1
- package/dist/utils/captureAnalyticsPageView.js +3 -10
- package/dist/utils/captureAnalyticsPageView.js.map +1 -1
- package/dist/utils/constants.js +9 -0
- package/dist/utils/constants.js.map +1 -0
- package/dist/utils/createSubscription.js +7 -6
- package/dist/utils/createSubscription.js.map +1 -1
- package/dist/utils/currencyFormat.js +4 -2
- package/dist/utils/currencyFormat.js.map +1 -1
- package/dist/utils/customParseFormatPlugin.js +306 -0
- package/dist/utils/customParseFormatPlugin.js.map +1 -0
- package/dist/utils/datetime.js +119 -55
- package/dist/utils/datetime.js.map +1 -1
- package/dist/utils/dayjs.js +40 -39
- package/dist/utils/dayjs.js.map +1 -1
- package/dist/utils/dayjsFormatOverrides/default.js +28 -0
- package/dist/utils/dayjsFormatOverrides/default.js.map +1 -0
- package/dist/utils/dayjsFormatOverrides/ja.js +27 -0
- package/dist/utils/dayjsFormatOverrides/ja.js.map +1 -0
- package/dist/utils/deviceInformation.js +207 -0
- package/dist/utils/deviceInformation.js.map +1 -0
- package/dist/utils/general.js +63 -46
- package/dist/utils/general.js.map +1 -1
- package/dist/utils/index.js +17 -9
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/loadGoogleFonts.js.map +1 -1
- package/dist/utils/localePlugin.js +516 -0
- package/dist/utils/localePlugin.js.map +1 -0
- package/dist/utils/permissions.js.map +1 -1
- package/dist/utils/retryImport.js +35 -0
- package/dist/utils/retryImport.js.map +1 -0
- package/dist/utils/timezonePlugin.js +63 -31
- package/dist/utils/timezonePlugin.js.map +1 -1
- package/dist/utils/validators/slug.js.map +1 -1
- package/dist/v2/constants/index.js +170 -0
- package/dist/v2/constants/index.js.map +1 -0
- package/dist/v2/constants/regex.js +6 -0
- package/dist/v2/constants/regex.js.map +1 -0
- package/dist/v2/initializers/axios.js +21 -0
- package/dist/v2/initializers/axios.js.map +1 -0
- package/dist/v2/initializers/axiosInitializer/index.js +294 -0
- package/dist/v2/initializers/axiosInitializer/index.js.map +1 -0
- package/dist/v2/initializers/axiosInitializer/paramsSerializer.js +15 -0
- package/dist/v2/initializers/axiosInitializer/paramsSerializer.js.map +1 -0
- package/dist/v2/initializers/constants.js +19 -0
- package/dist/v2/initializers/constants.js.map +1 -0
- package/dist/v2/initializers/dayjs.js +66 -0
- package/dist/v2/initializers/dayjs.js.map +1 -0
- package/dist/v2/initializers/domPatch.js +76 -0
- package/dist/v2/initializers/domPatch.js.map +1 -0
- package/dist/v2/initializers/globalProps.js +14 -0
- package/dist/v2/initializers/globalProps.js.map +1 -0
- package/dist/v2/initializers/honeybadger/constants.js +10 -0
- package/dist/v2/initializers/honeybadger/constants.js.map +1 -0
- package/dist/v2/initializers/honeybadger/index.js +50 -0
- package/dist/v2/initializers/honeybadger/index.js.map +1 -0
- package/dist/v2/initializers/honeybadger/utils.js +31 -0
- package/dist/v2/initializers/honeybadger/utils.js.map +1 -0
- package/dist/v2/initializers/i18n.js +179 -0
- package/dist/v2/initializers/i18n.js.map +1 -0
- package/dist/v2/initializers/index.js +109 -0
- package/dist/v2/initializers/index.js.map +1 -0
- package/dist/v2/initializers/logger.js +13 -0
- package/dist/v2/initializers/logger.js.map +1 -0
- package/dist/v2/initializers/reactDevTools.js +21 -0
- package/dist/v2/initializers/reactDevTools.js.map +1 -0
- package/dist/v2/initializers/utils/customFormatters.js +46 -0
- package/dist/v2/initializers/utils/customFormatters.js.map +1 -0
- package/dist/v2/initializers/utils/customPostProcessors.js +17 -0
- package/dist/v2/initializers/utils/customPostProcessors.js.map +1 -0
- package/dist/v2/initializers/utils/index.js +33 -0
- package/dist/v2/initializers/utils/index.js.map +1 -0
- package/dist/v2/react-utils/AppContainer/AppContainer.js +59 -0
- package/dist/v2/react-utils/AppContainer/AppContainer.js.map +1 -0
- package/dist/v2/react-utils/AppContainer/index.js +28 -0
- package/dist/v2/react-utils/AppContainer/index.js.map +1 -0
- package/dist/v2/react-utils/BrowserPushNotifications/devices.js +24 -0
- package/dist/v2/react-utils/BrowserPushNotifications/devices.js.map +1 -0
- package/dist/v2/react-utils/BrowserPushNotifications/index.js +6 -0
- package/dist/v2/react-utils/BrowserPushNotifications/index.js.map +1 -0
- package/dist/v2/react-utils/BrowserPushNotifications/pushHelper.js +105 -0
- package/dist/v2/react-utils/BrowserPushNotifications/pushHelper.js.map +1 -0
- package/dist/v2/react-utils/BrowserPushNotifications/registerServiceWorker.js +132 -0
- package/dist/v2/react-utils/BrowserPushNotifications/registerServiceWorker.js.map +1 -0
- package/dist/v2/react-utils/HoneybadgerErrorBoundary/FallbackComponent.js +102 -0
- package/dist/v2/react-utils/HoneybadgerErrorBoundary/FallbackComponent.js.map +1 -0
- package/dist/v2/react-utils/HoneybadgerErrorBoundary/HoneybadgerErrorBoundary.js +41 -0
- package/dist/v2/react-utils/HoneybadgerErrorBoundary/HoneybadgerErrorBoundary.js.map +1 -0
- package/dist/v2/react-utils/HoneybadgerErrorBoundary/index.js +16 -0
- package/dist/v2/react-utils/HoneybadgerErrorBoundary/index.js.map +1 -0
- package/dist/v2/react-utils/OnlyInDevelopment/OnlyInDevelopment.js +61 -0
- package/dist/v2/react-utils/OnlyInDevelopment/OnlyInDevelopment.js.map +1 -0
- package/dist/v2/react-utils/OnlyInDevelopment/constants.js +27 -0
- package/dist/v2/react-utils/OnlyInDevelopment/constants.js.map +1 -0
- package/dist/v2/react-utils/OnlyInDevelopment/index.js +6 -0
- package/dist/v2/react-utils/OnlyInDevelopment/index.js.map +1 -0
- package/dist/v2/react-utils/OnlyInDevelopment/utils.js +30 -0
- package/dist/v2/react-utils/OnlyInDevelopment/utils.js.map +1 -0
- package/dist/v2/react-utils/PageTitle/PageTitle.js +15 -0
- package/dist/v2/react-utils/PageTitle/PageTitle.js.map +1 -0
- package/dist/v2/react-utils/PageTitle/index.js +4 -0
- package/dist/v2/react-utils/PageTitle/index.js.map +1 -0
- package/dist/v2/react-utils/PrivateRoute/PrivateRoute.js +52 -0
- package/dist/v2/react-utils/PrivateRoute/PrivateRoute.js.map +1 -0
- package/dist/v2/react-utils/PrivateRoute/constants.js +5 -0
- package/dist/v2/react-utils/PrivateRoute/constants.js.map +1 -0
- package/dist/v2/react-utils/PrivateRoute/index.js +12 -0
- package/dist/v2/react-utils/PrivateRoute/index.js.map +1 -0
- package/dist/v2/react-utils/PrivateRoute/utils.js +14 -0
- package/dist/v2/react-utils/PrivateRoute/utils.js.map +1 -0
- package/dist/v2/react-utils/QueryClientProvider/QueryClientProvider.js +16 -0
- package/dist/v2/react-utils/QueryClientProvider/QueryClientProvider.js.map +1 -0
- package/dist/v2/react-utils/QueryClientProvider/index.js +7 -0
- package/dist/v2/react-utils/QueryClientProvider/index.js.map +1 -0
- package/dist/v2/react-utils/QueryClientProvider/queryClient.js +17 -0
- package/dist/v2/react-utils/QueryClientProvider/queryClient.js.map +1 -0
- package/dist/v2/react-utils/constants/constants.js +6 -0
- package/dist/v2/react-utils/constants/constants.js.map +1 -0
- package/dist/v2/react-utils/constants/index.js +3 -0
- package/dist/v2/react-utils/constants/index.js.map +1 -0
- package/dist/v2/react-utils/constants/query.js +6 -0
- package/dist/v2/react-utils/constants/query.js.map +1 -0
- package/dist/v2/react-utils/index.js +109 -0
- package/dist/v2/react-utils/index.js.map +1 -0
- package/dist/v2/react-utils/lazyWithRetry/index.js +4 -0
- package/dist/v2/react-utils/lazyWithRetry/index.js.map +1 -0
- package/dist/v2/react-utils/lazyWithRetry/lazyWithRetry.js +13 -0
- package/dist/v2/react-utils/lazyWithRetry/lazyWithRetry.js.map +1 -0
- package/dist/v2/react-utils/metaClick/index.js +3 -0
- package/dist/v2/react-utils/metaClick/index.js.map +1 -0
- package/dist/v2/react-utils/metaClick/metaClick.js +18 -0
- package/dist/v2/react-utils/metaClick/metaClick.js.map +1 -0
- package/dist/v2/react-utils/mount/index.js +11 -0
- package/dist/v2/react-utils/mount/index.js.map +1 -0
- package/dist/v2/react-utils/mount/mount.js +132 -0
- package/dist/v2/react-utils/mount/mount.js.map +1 -0
- package/dist/v2/react-utils/useBreakpoints/index.js +20 -0
- package/dist/v2/react-utils/useBreakpoints/index.js.map +1 -0
- package/dist/v2/react-utils/useBreakpoints/utils.js +28 -0
- package/dist/v2/react-utils/useBreakpoints/utils.js.map +1 -0
- package/dist/v2/react-utils/useColumnConfig/api.js +20 -0
- package/dist/v2/react-utils/useColumnConfig/api.js.map +1 -0
- package/dist/v2/react-utils/useColumnConfig/constants.js +5 -0
- package/dist/v2/react-utils/useColumnConfig/constants.js.map +1 -0
- package/dist/v2/react-utils/useColumnConfig/index.js +15 -0
- package/dist/v2/react-utils/useColumnConfig/index.js.map +1 -0
- package/dist/v2/react-utils/useColumnConfig/useColumnConfig.js +50 -0
- package/dist/v2/react-utils/useColumnConfig/useColumnConfig.js.map +1 -0
- package/dist/v2/react-utils/useColumnConfig/useConfigApi.js +30 -0
- package/dist/v2/react-utils/useColumnConfig/useConfigApi.js.map +1 -0
- package/dist/v2/react-utils/useColumnConfig/utils.js +27 -0
- package/dist/v2/react-utils/useColumnConfig/utils.js.map +1 -0
- package/dist/v2/react-utils/useDebounce/index.js +5 -0
- package/dist/v2/react-utils/useDebounce/index.js.map +1 -0
- package/dist/v2/react-utils/useDebounce/useDebounce.js +23 -0
- package/dist/v2/react-utils/useDebounce/useDebounce.js.map +1 -0
- package/dist/v2/react-utils/useDisplayErrorPage/index.js +4 -0
- package/dist/v2/react-utils/useDisplayErrorPage/index.js.map +1 -0
- package/dist/v2/react-utils/useDisplayErrorPage/useDisplayErrorPage.js +18 -0
- package/dist/v2/react-utils/useDisplayErrorPage/useDisplayErrorPage.js.map +1 -0
- package/dist/v2/react-utils/useFetchNeetoApps/apis/neeto_apps.js +11 -0
- package/dist/v2/react-utils/useFetchNeetoApps/apis/neeto_apps.js.map +1 -0
- package/dist/v2/react-utils/useFetchNeetoApps/index.js +22 -0
- package/dist/v2/react-utils/useFetchNeetoApps/index.js.map +1 -0
- package/dist/v2/react-utils/useFetchNeetoApps/useFetchNeetoApps.js +38 -0
- package/dist/v2/react-utils/useFetchNeetoApps/useFetchNeetoApps.js.map +1 -0
- package/dist/v2/react-utils/useFieldSubmit/index.js +3 -0
- package/dist/v2/react-utils/useFieldSubmit/index.js.map +1 -0
- package/dist/v2/react-utils/useFieldSubmit/useFieldSubmit.js +28 -0
- package/dist/v2/react-utils/useFieldSubmit/useFieldSubmit.js.map +1 -0
- package/dist/v2/react-utils/useFuncDebounce/index.js +3 -0
- package/dist/v2/react-utils/useFuncDebounce/index.js.map +1 -0
- package/dist/v2/react-utils/useFuncDebounce/useFuncDebounce.js +22 -0
- package/dist/v2/react-utils/useFuncDebounce/useFuncDebounce.js.map +1 -0
- package/dist/v2/react-utils/useGlobalSearch.js +63 -0
- package/dist/v2/react-utils/useGlobalSearch.js.map +1 -0
- package/dist/v2/react-utils/useIsElementVisibleInDom/index.js +6 -0
- package/dist/v2/react-utils/useIsElementVisibleInDom/index.js.map +1 -0
- package/dist/v2/react-utils/useIsElementVisibleInDom/useForceUpdate.js +18 -0
- package/dist/v2/react-utils/useIsElementVisibleInDom/useForceUpdate.js.map +1 -0
- package/dist/v2/react-utils/useIsElementVisibleInDom/useIsElementVisibleInDom.js +29 -0
- package/dist/v2/react-utils/useIsElementVisibleInDom/useIsElementVisibleInDom.js.map +1 -0
- package/dist/v2/react-utils/useKeyboardShortcutsPaneState/index.js +4 -0
- package/dist/v2/react-utils/useKeyboardShortcutsPaneState/index.js.map +1 -0
- package/dist/v2/react-utils/useKeyboardShortcutsPaneState/useKeyboardShortcutsPaneState.js +31 -0
- package/dist/v2/react-utils/useKeyboardShortcutsPaneState/useKeyboardShortcutsPaneState.js.map +1 -0
- package/dist/v2/react-utils/useLocalStorage/index.js +32 -0
- package/dist/v2/react-utils/useLocalStorage/index.js.map +1 -0
- package/dist/v2/react-utils/useLocalStorage/useLocalStorage.js +63 -0
- package/dist/v2/react-utils/useLocalStorage/useLocalStorage.js.map +1 -0
- package/dist/v2/react-utils/useMutationWithInvalidation/index.js +8 -0
- package/dist/v2/react-utils/useMutationWithInvalidation/index.js.map +1 -0
- package/dist/v2/react-utils/useMutationWithInvalidation/useMutationWithInvalidation.js +41 -0
- package/dist/v2/react-utils/useMutationWithInvalidation/useMutationWithInvalidation.js.map +1 -0
- package/dist/v2/react-utils/useOnClickOutside/index.js +3 -0
- package/dist/v2/react-utils/useOnClickOutside/index.js.map +1 -0
- package/dist/v2/react-utils/useOnClickOutside/useOnClickOutside.js +27 -0
- package/dist/v2/react-utils/useOnClickOutside/useOnClickOutside.js.map +1 -0
- package/dist/v2/react-utils/usePersistedQuery/index.js +18 -0
- package/dist/v2/react-utils/usePersistedQuery/index.js.map +1 -0
- package/dist/v2/react-utils/usePersistedQuery/usePersistedQuery.js +66 -0
- package/dist/v2/react-utils/usePersistedQuery/usePersistedQuery.js.map +1 -0
- package/dist/v2/react-utils/usePrefersReducedMotion/constants.js +4 -0
- package/dist/v2/react-utils/usePrefersReducedMotion/constants.js.map +1 -0
- package/dist/v2/react-utils/usePrefersReducedMotion/index.js +6 -0
- package/dist/v2/react-utils/usePrefersReducedMotion/index.js.map +1 -0
- package/dist/v2/react-utils/usePrefersReducedMotion/usePrefersReducedMotion.js +44 -0
- package/dist/v2/react-utils/usePrefersReducedMotion/usePrefersReducedMotion.js.map +1 -0
- package/dist/v2/react-utils/usePrevious/index.js +3 -0
- package/dist/v2/react-utils/usePrevious/index.js.map +1 -0
- package/dist/v2/react-utils/usePrevious/usePrevious.js +12 -0
- package/dist/v2/react-utils/usePrevious/usePrevious.js.map +1 -0
- package/dist/v2/react-utils/useQueryParams/index.js +16 -0
- package/dist/v2/react-utils/useQueryParams/index.js.map +1 -0
- package/dist/v2/react-utils/useQueryParams/useQueryParams.js +22 -0
- package/dist/v2/react-utils/useQueryParams/useQueryParams.js.map +1 -0
- package/dist/v2/react-utils/useRegisterNavigationCheckpoint/index.js +20 -0
- package/dist/v2/react-utils/useRegisterNavigationCheckpoint/index.js.map +1 -0
- package/dist/v2/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js +80 -0
- package/dist/v2/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js.map +1 -0
- package/dist/v2/react-utils/useRestoreScrollPosition/index.js +7 -0
- package/dist/v2/react-utils/useRestoreScrollPosition/index.js.map +1 -0
- package/dist/v2/react-utils/useRestoreScrollPosition/useRestoreScrollPosition.js +63 -0
- package/dist/v2/react-utils/useRestoreScrollPosition/useRestoreScrollPosition.js.map +1 -0
- package/dist/v2/react-utils/useStateWithDependency/index.js +5 -0
- package/dist/v2/react-utils/useStateWithDependency/index.js.map +1 -0
- package/dist/v2/react-utils/useStateWithDependency/useStateWithDependency.js +18 -0
- package/dist/v2/react-utils/useStateWithDependency/useStateWithDependency.js.map +1 -0
- package/dist/v2/react-utils/useTimer/index.js +4 -0
- package/dist/v2/react-utils/useTimer/index.js.map +1 -0
- package/dist/v2/react-utils/useTimer/useTimer.js +41 -0
- package/dist/v2/react-utils/useTimer/useTimer.js.map +1 -0
- package/dist/v2/react-utils/useUpdateEffect/index.js +3 -0
- package/dist/v2/react-utils/useUpdateEffect/index.js.map +1 -0
- package/dist/v2/react-utils/useUpdateEffect/useUpdateEffect.js +16 -0
- package/dist/v2/react-utils/useUpdateEffect/useUpdateEffect.js.map +1 -0
- package/dist/v2/react-utils/withImmutableActions/index.js +3 -0
- package/dist/v2/react-utils/withImmutableActions/index.js.map +1 -0
- package/dist/v2/react-utils/withImmutableActions/withImmutableActions.js +24 -0
- package/dist/v2/react-utils/withImmutableActions/withImmutableActions.js.map +1 -0
- package/dist/v2/react-utils/withT/index.js +3 -0
- package/dist/v2/react-utils/withT/index.js.map +1 -0
- package/dist/v2/react-utils/withT/withT.js +9 -0
- package/dist/v2/react-utils/withT/withT.js.map +1 -0
- package/dist/v2/react-utils/withTitle/index.js +7 -0
- package/dist/v2/react-utils/withTitle/index.js.map +1 -0
- package/dist/v2/react-utils/withTitle/withTitle.js +24 -0
- package/dist/v2/react-utils/withTitle/withTitle.js.map +1 -0
- package/dist/v2/utils/axios.js +12 -0
- package/dist/v2/utils/axios.js.map +1 -0
- package/dist/v2/utils/buildNestedAttributesPayload.js +38 -0
- package/dist/v2/utils/buildNestedAttributesPayload.js.map +1 -0
- package/dist/v2/utils/captureAnalyticsEvent.js +8 -0
- package/dist/v2/utils/captureAnalyticsEvent.js.map +1 -0
- package/dist/v2/utils/captureAnalyticsPageView.js +8 -0
- package/dist/v2/utils/captureAnalyticsPageView.js.map +1 -0
- package/dist/v2/utils/constants.js +9 -0
- package/dist/v2/utils/constants.js.map +1 -0
- package/dist/v2/utils/createSubscription.js +29 -0
- package/dist/v2/utils/createSubscription.js.map +1 -0
- package/dist/v2/utils/currencyFormat.js +47 -0
- package/dist/v2/utils/currencyFormat.js.map +1 -0
- package/dist/v2/utils/customParseFormatPlugin.js +306 -0
- package/dist/v2/utils/customParseFormatPlugin.js.map +1 -0
- package/dist/v2/utils/datetime.js +128 -0
- package/dist/v2/utils/datetime.js.map +1 -0
- package/dist/v2/utils/dayjs.js +101 -0
- package/dist/v2/utils/dayjs.js.map +1 -0
- package/dist/v2/utils/dayjsFormatOverrides/default.js +28 -0
- package/dist/v2/utils/dayjsFormatOverrides/default.js.map +1 -0
- package/dist/v2/utils/dayjsFormatOverrides/ja.js +27 -0
- package/dist/v2/utils/dayjsFormatOverrides/ja.js.map +1 -0
- package/dist/v2/utils/deviceInformation.js +207 -0
- package/dist/v2/utils/deviceInformation.js.map +1 -0
- package/dist/v2/utils/general.js +221 -0
- package/dist/v2/utils/general.js.map +1 -0
- package/dist/v2/utils/index.js +40 -0
- package/dist/v2/utils/index.js.map +1 -0
- package/dist/v2/utils/loadGoogleFonts.js +11 -0
- package/dist/v2/utils/loadGoogleFonts.js.map +1 -0
- package/dist/v2/utils/localePlugin.js +516 -0
- package/dist/v2/utils/localePlugin.js.map +1 -0
- package/dist/v2/utils/permissions.js +20 -0
- package/dist/v2/utils/permissions.js.map +1 -0
- package/dist/v2/utils/retryImport.js +35 -0
- package/dist/v2/utils/retryImport.js.map +1 -0
- package/dist/v2/utils/timezonePlugin.js +207 -0
- package/dist/v2/utils/timezonePlugin.js.map +1 -0
- package/dist/v2/utils/validators/index.js +5 -0
- package/dist/v2/utils/validators/index.js.map +1 -0
- package/dist/v2/utils/validators/slug.js +51 -0
- package/dist/v2/utils/validators/slug.js.map +1 -0
- package/initializers.d.ts +6 -1
- package/package.json +173 -130
- package/react-utils.d.ts +317 -5
- package/src/translations/ar.json +116 -0
- package/src/translations/bg.json +116 -0
- package/src/translations/ca.json +116 -0
- package/src/translations/cs.json +116 -0
- package/src/translations/da.json +116 -0
- package/src/translations/de.json +116 -0
- package/src/translations/en.json +116 -0
- package/src/translations/es-MX.json +116 -0
- package/src/translations/es.json +116 -0
- package/src/translations/et.json +116 -0
- package/src/translations/fi.json +116 -0
- package/src/translations/fil.json +116 -0
- package/src/translations/fr.json +116 -0
- package/src/translations/he.json +116 -0
- package/src/translations/hi.json +116 -0
- package/src/translations/hr.json +116 -0
- package/src/translations/hu.json +116 -0
- package/src/translations/id.json +116 -0
- package/src/translations/it.json +116 -0
- package/src/translations/ja.json +116 -0
- package/src/translations/ko.json +116 -0
- package/src/translations/lv.json +116 -0
- package/src/translations/nl.json +116 -0
- package/src/translations/pl.json +116 -0
- package/src/translations/pt-BR.json +116 -0
- package/src/translations/pt.json +116 -0
- package/src/translations/ro.json +116 -0
- package/src/translations/ru.json +116 -0
- package/src/translations/sk.json +116 -0
- package/src/translations/sl.json +116 -0
- package/src/translations/sv.json +116 -0
- package/src/translations/th.json +116 -0
- package/src/translations/tr.json +116 -0
- package/src/translations/uk.json +116 -0
- package/src/translations/vi.json +116 -0
- package/src/translations/zh-CN.json +116 -0
- package/src/translations/zh-TW.json +116 -0
- package/utils.d.ts +203 -58
- package/configs/eslint/globals.js +0 -14
- package/configs/eslint/imports/enforced.js +0 -29
- package/configs/eslint/imports/order.js +0 -65
- package/configs/eslint/index.js +0 -172
- package/configs/eslint/overrides.js +0 -26
- package/configs/eslint/promise.js +0 -8
- package/configs/eslint/react.js +0 -90
- package/configs/nanos/eslint/imports/order.js +0 -25
- package/configs/nanos/eslint/index.js +0 -28
- package/configs/nextjs/eslint/imports/order.js +0 -25
- package/configs/nextjs/eslint/index.js +0 -22
- package/configs/scripts/getPkgTranslations.js +0 -45
- package/cypress-commands.d.ts +0 -110
- package/cypress-configs/initializer.js +0 -32
- package/cypress-configs/plugins.js +0 -114
- package/cypress-configs/resolve.js +0 -17
- package/cypress-configs/webpack.config.js +0 -19
- package/cypress-utils.d.ts +0 -637
- package/dist/_commonjsHelpers-B85MJLTf.js +0 -6
- package/dist/_commonjsHelpers-B85MJLTf.js.map +0 -1
- package/dist/cjs/_commonjsHelpers-CFO10eej.js +0 -8
- package/dist/cjs/_commonjsHelpers-CFO10eej.js.map +0 -1
- package/dist/cjs/cypress-utils/.eslintrc.js +0 -40
- package/dist/cjs/cypress-utils/.eslintrc.js.map +0 -1
- package/dist/cjs/cypress-utils/commands.js +0 -288
- package/dist/cjs/cypress-utils/commands.js.map +0 -1
- package/dist/cjs/cypress-utils/constants/index.js +0 -11
- package/dist/cjs/cypress-utils/constants/index.js.map +0 -1
- package/dist/cjs/cypress-utils/constants/routes.js +0 -40
- package/dist/cjs/cypress-utils/constants/routes.js.map +0 -1
- package/dist/cjs/cypress-utils/constants/selectors/common.js +0 -103
- package/dist/cjs/cypress-utils/constants/selectors/common.js.map +0 -1
- package/dist/cjs/cypress-utils/constants/selectors/editor.js +0 -29
- package/dist/cjs/cypress-utils/constants/selectors/editor.js.map +0 -1
- package/dist/cjs/cypress-utils/constants/selectors/ipRestriction.js +0 -19
- package/dist/cjs/cypress-utils/constants/selectors/ipRestriction.js.map +0 -1
- package/dist/cjs/cypress-utils/constants/selectors/login.js +0 -21
- package/dist/cjs/cypress-utils/constants/selectors/login.js.map +0 -1
- package/dist/cjs/cypress-utils/constants/selectors/member.js +0 -66
- package/dist/cjs/cypress-utils/constants/selectors/member.js.map +0 -1
- package/dist/cjs/cypress-utils/constants/selectors/navigation.js +0 -28
- package/dist/cjs/cypress-utils/constants/selectors/navigation.js.map +0 -1
- package/dist/cjs/cypress-utils/constants/selectors/roles.js +0 -22
- package/dist/cjs/cypress-utils/constants/selectors/roles.js.map +0 -1
- package/dist/cjs/cypress-utils/constants/selectors/signUp.js +0 -23
- package/dist/cjs/cypress-utils/constants/selectors/signUp.js.map +0 -1
- package/dist/cjs/cypress-utils/constants/selectors/tags.js +0 -31
- package/dist/cjs/cypress-utils/constants/selectors/tags.js.map +0 -1
- package/dist/cjs/cypress-utils/constants/texts/common.js +0 -37
- package/dist/cjs/cypress-utils/constants/texts/common.js.map +0 -1
- package/dist/cjs/cypress-utils/constants/texts/member.js +0 -65
- package/dist/cjs/cypress-utils/constants/texts/member.js.map +0 -1
- package/dist/cjs/cypress-utils/constants/texts/navigation.js +0 -21
- package/dist/cjs/cypress-utils/constants/texts/navigation.js.map +0 -1
- package/dist/cjs/cypress-utils/constants/texts/roles.js +0 -22
- package/dist/cjs/cypress-utils/constants/texts/roles.js.map +0 -1
- package/dist/cjs/cypress-utils/constants/texts/signUp.js +0 -11
- package/dist/cjs/cypress-utils/constants/texts/signUp.js.map +0 -1
- package/dist/cjs/cypress-utils/constants/texts/tags.js +0 -25
- package/dist/cjs/cypress-utils/constants/texts/tags.js.map +0 -1
- package/dist/cjs/cypress-utils/fixtures/fake.js +0 -175
- package/dist/cjs/cypress-utils/fixtures/fake.js.map +0 -1
- package/dist/cjs/cypress-utils/index.js +0 -72
- package/dist/cjs/cypress-utils/jsconfig.js +0 -33
- package/dist/cjs/cypress-utils/jsconfig.js.map +0 -1
- package/dist/cjs/cypress-utils/utils/authentication.js +0 -49
- package/dist/cjs/cypress-utils/utils/authentication.js.map +0 -1
- package/dist/cjs/cypress-utils/utils/common.js +0 -89
- package/dist/cjs/cypress-utils/utils/common.js.map +0 -1
- package/dist/cjs/cypress-utils/utils/date.js +0 -25
- package/dist/cjs/cypress-utils/utils/date.js.map +0 -1
- package/dist/cjs/cypress-utils/utils/email.js +0 -162
- package/dist/cjs/cypress-utils/utils/email.js.map +0 -1
- package/dist/cjs/cypress-utils/utils/member.js +0 -352
- package/dist/cjs/cypress-utils/utils/member.js.map +0 -1
- package/dist/cjs/cypress-utils/utils/navigation.js +0 -213
- package/dist/cjs/cypress-utils/utils/navigation.js.map +0 -1
- package/dist/cjs/cypress-utils/utils/organization.js +0 -109
- package/dist/cjs/cypress-utils/utils/organization.js.map +0 -1
- package/dist/cjs/cypress-utils/utils/validation.js +0 -18
- package/dist/cjs/cypress-utils/utils/validation.js.map +0 -1
- package/dist/cjs/defineProperty-997UgAIV.js +0 -19
- package/dist/cjs/defineProperty-997UgAIV.js.map +0 -1
- package/dist/cjs/index-H4FWVZW-.js +0 -439
- package/dist/cjs/index-H4FWVZW-.js.map +0 -1
- package/dist/cjs/initializers/mixpanel.js +0 -30
- package/dist/cjs/initializers/mixpanel.js.map +0 -1
- package/dist/cjs/initializers/utils/utils.js.map +0 -1
- package/dist/cjs/mixpanel.cjs-DyVaCR4W.js +0 -6346
- package/dist/cjs/mixpanel.cjs-DyVaCR4W.js.map +0 -1
- package/dist/cjs/objectWithoutProperties-DKElrbI9.js +0 -38
- package/dist/cjs/objectWithoutProperties-DKElrbI9.js.map +0 -1
- package/dist/cjs/react-utils/HoneybadgerErrorBoundary/constants.js +0 -8
- package/dist/cjs/react-utils/HoneybadgerErrorBoundary/constants.js.map +0 -1
- package/dist/cjs/react-utils/HoneybadgerErrorBoundary/utils.js +0 -14
- package/dist/cjs/react-utils/HoneybadgerErrorBoundary/utils.js.map +0 -1
- package/dist/cjs/slicedToArray-xtNEn5LJ.js +0 -48
- package/dist/cjs/slicedToArray-xtNEn5LJ.js.map +0 -1
- package/dist/cjs/toConsumableArray-Da_S-3Fb.js +0 -22
- package/dist/cjs/toConsumableArray-Da_S-3Fb.js.map +0 -1
- package/dist/cjs/typeof-CKZ7gZmW.js +0 -14
- package/dist/cjs/typeof-CKZ7gZmW.js.map +0 -1
- package/dist/cjs/unsupportedIterableToArray-CP9uaN0w.js +0 -24
- package/dist/cjs/unsupportedIterableToArray-CP9uaN0w.js.map +0 -1
- package/dist/cypress-utils/.eslintrc.js +0 -38
- package/dist/cypress-utils/.eslintrc.js.map +0 -1
- package/dist/cypress-utils/commands.js +0 -286
- package/dist/cypress-utils/commands.js.map +0 -1
- package/dist/cypress-utils/constants/index.js +0 -9
- package/dist/cypress-utils/constants/index.js.map +0 -1
- package/dist/cypress-utils/constants/routes.js +0 -37
- package/dist/cypress-utils/constants/routes.js.map +0 -1
- package/dist/cypress-utils/constants/selectors/common.js +0 -99
- package/dist/cypress-utils/constants/selectors/common.js.map +0 -1
- package/dist/cypress-utils/constants/selectors/editor.js +0 -27
- package/dist/cypress-utils/constants/selectors/editor.js.map +0 -1
- package/dist/cypress-utils/constants/selectors/ipRestriction.js +0 -17
- package/dist/cypress-utils/constants/selectors/ipRestriction.js.map +0 -1
- package/dist/cypress-utils/constants/selectors/login.js +0 -19
- package/dist/cypress-utils/constants/selectors/login.js.map +0 -1
- package/dist/cypress-utils/constants/selectors/member.js +0 -62
- package/dist/cypress-utils/constants/selectors/member.js.map +0 -1
- package/dist/cypress-utils/constants/selectors/navigation.js +0 -25
- package/dist/cypress-utils/constants/selectors/navigation.js.map +0 -1
- package/dist/cypress-utils/constants/selectors/roles.js +0 -20
- package/dist/cypress-utils/constants/selectors/roles.js.map +0 -1
- package/dist/cypress-utils/constants/selectors/signUp.js +0 -21
- package/dist/cypress-utils/constants/selectors/signUp.js.map +0 -1
- package/dist/cypress-utils/constants/selectors/tags.js +0 -28
- package/dist/cypress-utils/constants/selectors/tags.js.map +0 -1
- package/dist/cypress-utils/constants/texts/common.js +0 -35
- package/dist/cypress-utils/constants/texts/common.js.map +0 -1
- package/dist/cypress-utils/constants/texts/member.js +0 -61
- package/dist/cypress-utils/constants/texts/member.js.map +0 -1
- package/dist/cypress-utils/constants/texts/navigation.js +0 -18
- package/dist/cypress-utils/constants/texts/navigation.js.map +0 -1
- package/dist/cypress-utils/constants/texts/roles.js +0 -20
- package/dist/cypress-utils/constants/texts/roles.js.map +0 -1
- package/dist/cypress-utils/constants/texts/signUp.js +0 -9
- package/dist/cypress-utils/constants/texts/signUp.js.map +0 -1
- package/dist/cypress-utils/constants/texts/tags.js +0 -23
- package/dist/cypress-utils/constants/texts/tags.js.map +0 -1
- package/dist/cypress-utils/fixtures/fake.js +0 -173
- package/dist/cypress-utils/fixtures/fake.js.map +0 -1
- package/dist/cypress-utils/index.js +0 -28
- package/dist/cypress-utils/jsconfig.js +0 -26
- package/dist/cypress-utils/jsconfig.js.map +0 -1
- package/dist/cypress-utils/utils/authentication.js +0 -47
- package/dist/cypress-utils/utils/authentication.js.map +0 -1
- package/dist/cypress-utils/utils/common.js +0 -77
- package/dist/cypress-utils/utils/common.js.map +0 -1
- package/dist/cypress-utils/utils/date.js +0 -23
- package/dist/cypress-utils/utils/date.js.map +0 -1
- package/dist/cypress-utils/utils/email.js +0 -159
- package/dist/cypress-utils/utils/email.js.map +0 -1
- package/dist/cypress-utils/utils/member.js +0 -350
- package/dist/cypress-utils/utils/member.js.map +0 -1
- package/dist/cypress-utils/utils/navigation.js +0 -211
- package/dist/cypress-utils/utils/navigation.js.map +0 -1
- package/dist/cypress-utils/utils/organization.js +0 -107
- package/dist/cypress-utils/utils/organization.js.map +0 -1
- package/dist/cypress-utils/utils/validation.js +0 -16
- package/dist/cypress-utils/utils/validation.js.map +0 -1
- package/dist/defineProperty-CEd-kZQW.js +0 -17
- package/dist/defineProperty-CEd-kZQW.js.map +0 -1
- package/dist/index-CRoDfiJc.js +0 -436
- package/dist/index-CRoDfiJc.js.map +0 -1
- package/dist/initializers/mixpanel.js +0 -28
- package/dist/initializers/mixpanel.js.map +0 -1
- package/dist/initializers/utils/utils.js.map +0 -1
- package/dist/mixpanel.cjs-DTVxnNUt.js +0 -6344
- package/dist/mixpanel.cjs-DTVxnNUt.js.map +0 -1
- package/dist/objectWithoutProperties-B90Wg9LD.js +0 -36
- package/dist/objectWithoutProperties-B90Wg9LD.js.map +0 -1
- package/dist/react-utils/HoneybadgerErrorBoundary/constants.js +0 -5
- package/dist/react-utils/HoneybadgerErrorBoundary/constants.js.map +0 -1
- package/dist/react-utils/HoneybadgerErrorBoundary/utils.js +0 -11
- package/dist/react-utils/HoneybadgerErrorBoundary/utils.js.map +0 -1
- package/dist/slicedToArray-B_J-CC8-.js +0 -46
- package/dist/slicedToArray-B_J-CC8-.js.map +0 -1
- package/dist/toConsumableArray-CQcqnqnw.js +0 -20
- package/dist/toConsumableArray-CQcqnqnw.js.map +0 -1
- package/dist/typeof-C6-BY_SI.js +0 -12
- package/dist/typeof-C6-BY_SI.js.map +0 -1
- package/dist/unsupportedIterableToArray-wRn9bJ2J.js +0 -21
- package/dist/unsupportedIterableToArray-wRn9bJ2J.js.map +0 -1
- /package/dist/{cypress-utils → cjs/v2/react-utils/useFetchNeetoApps}/index.js.map +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var defineProperty = require('../../defineProperty-
|
|
4
|
-
var _typeof = require('../../typeof-
|
|
3
|
+
var defineProperty = require('../../defineProperty-COGyJ6Og.js');
|
|
4
|
+
var _typeof = require('../../typeof-D4ZZ_FlZ.js');
|
|
5
5
|
var axios = require('axios');
|
|
6
6
|
var i18next = require('i18next');
|
|
7
7
|
var neetoCist = require('@bigbinary/neeto-cist');
|
|
@@ -12,6 +12,7 @@ var reactUtils_useDisplayErrorPage_useDisplayErrorPage = require('../../react-ut
|
|
|
12
12
|
var utils_axios = require('../../utils/axios.js');
|
|
13
13
|
var initializers_axiosInitializer_paramsSerializer = require('./paramsSerializer.js');
|
|
14
14
|
var initializers_constants = require('../constants.js');
|
|
15
|
+
require('../../toPropertyKey-DW-YC76_.js');
|
|
15
16
|
require('zustand');
|
|
16
17
|
require('qs');
|
|
17
18
|
|
|
@@ -73,6 +74,7 @@ var showSuccessToastr = function showSuccessToastr(response) {
|
|
|
73
74
|
showThumbsUpToastr: true
|
|
74
75
|
}, response.data)) {
|
|
75
76
|
// @ts-ignore
|
|
77
|
+
// eslint-disable-next-line @bigbinary/neeto/use-show-thumbs-up-toastr
|
|
76
78
|
Toastr.success("", {
|
|
77
79
|
icon: "👍",
|
|
78
80
|
className: "w-20"
|
|
@@ -81,6 +83,7 @@ var showSuccessToastr = function showSuccessToastr(response) {
|
|
|
81
83
|
noticeCode: "thumbs_up"
|
|
82
84
|
}, response.data)) {
|
|
83
85
|
// @ts-ignore
|
|
86
|
+
// eslint-disable-next-line @bigbinary/neeto/use-show-thumbs-up-toastr
|
|
84
87
|
Toastr.success("", {
|
|
85
88
|
icon: "👍",
|
|
86
89
|
className: "w-20"
|
|
@@ -95,10 +98,25 @@ var pullDataFromResponse = function pullDataFromResponse(response) {
|
|
|
95
98
|
includeMetadataInResponse = _response$config$incl === void 0 ? false : _response$config$incl;
|
|
96
99
|
return includeMetadataInResponse ? response : response.data;
|
|
97
100
|
};
|
|
101
|
+
var checkForReleaseVersionMismatch = function checkForReleaseVersionMismatch(response) {
|
|
102
|
+
var _res$headers, _globalProps;
|
|
103
|
+
var res = (response === null || response === void 0 ? void 0 : response.response) || response;
|
|
104
|
+
var newReleaseVersion = Number(res === null || res === void 0 || (_res$headers = res.headers) === null || _res$headers === void 0 ? void 0 : _res$headers["x-deploy-release-version"]);
|
|
105
|
+
var currentReleaseVersion = Number((_globalProps = globalProps) === null || _globalProps === void 0 ? void 0 : _globalProps.deployReleaseVersion);
|
|
106
|
+
if (newReleaseVersion && currentReleaseVersion && newReleaseVersion !== currentReleaseVersion) {
|
|
107
|
+
reactUtils_useDisplayErrorPage_useDisplayErrorPage.useErrorDisplayStore.setState({
|
|
108
|
+
showRefreshRibbon: true
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
return response;
|
|
112
|
+
};
|
|
98
113
|
var buildSuccessResponseHandler = function buildSuccessResponseHandler(skip) {
|
|
99
114
|
var interceptors = [];
|
|
100
115
|
if (!(skip !== null && skip !== void 0 && skip.transformCase)) interceptors.push(transformResponseKeysToCamelCase);
|
|
101
116
|
if (!(skip !== null && skip !== void 0 && skip.showToastr)) interceptors.push(showSuccessToastr);
|
|
117
|
+
if (!(skip !== null && skip !== void 0 && skip.checkForReleaseVersionMismatch)) {
|
|
118
|
+
interceptors.push(checkForReleaseVersionMismatch);
|
|
119
|
+
}
|
|
102
120
|
if (!(skip !== null && skip !== void 0 && skip.pullDataFromResponse)) interceptors.push(pullDataFromResponse);
|
|
103
121
|
return createPipe(interceptors);
|
|
104
122
|
};
|
|
@@ -112,8 +130,6 @@ var handleUnauthorizedErrorResponse = function handleUnauthorizedErrorResponse(e
|
|
|
112
130
|
if (redirectOnError) {
|
|
113
131
|
setTimeout(function () {
|
|
114
132
|
var redirectTo = window.location.pathname === "/login" ? "/login" : "/login?redirect_uri=".concat(encodeURIComponent(window.location.href));
|
|
115
|
-
|
|
116
|
-
// eslint-disable-next-line xss/no-location-href-assign
|
|
117
133
|
window.location.href = redirectTo;
|
|
118
134
|
}, 300);
|
|
119
135
|
}
|
|
@@ -123,7 +139,7 @@ var isOnline = function isOnline() {
|
|
|
123
139
|
return window.navigator.onLine;
|
|
124
140
|
};
|
|
125
141
|
var showOfflineToastr = function showOfflineToastr() {
|
|
126
|
-
var toastId = Toastr.error(i18next.t("neetoCommons.toastr.error.
|
|
142
|
+
var toastId = Toastr.error(i18next.t("neetoCommons.toastr.error.noInternetConnection"));
|
|
127
143
|
if (toastId) {
|
|
128
144
|
var dismissToastInterval = setInterval(function () {
|
|
129
145
|
if (!isOnline()) return;
|
|
@@ -155,6 +171,8 @@ var showErrorToastr = function showErrorToastr(error) {
|
|
|
155
171
|
showToastr = _ref3$showToastr === void 0 ? true : _ref3$showToastr,
|
|
156
172
|
_ref3$show422ErrorToa = _ref3.show422ErrorToastr,
|
|
157
173
|
show422ErrorToastr = _ref3$show422ErrorToa === void 0 ? true : _ref3$show422ErrorToa,
|
|
174
|
+
_ref3$show429ErrorPag = _ref3.show429ErrorPage,
|
|
175
|
+
show429ErrorPage = _ref3$show429ErrorPag === void 0 ? true : _ref3$show429ErrorPag,
|
|
158
176
|
_ref3$url = _ref3.url,
|
|
159
177
|
requestUrl = _ref3$url === void 0 ? "" : _ref3$url,
|
|
160
178
|
_ref3$method = _ref3.method,
|
|
@@ -175,12 +193,17 @@ var showErrorToastr = function showErrorToastr(error) {
|
|
|
175
193
|
shouldShowToastr = true;
|
|
176
194
|
}
|
|
177
195
|
if (status === 422 && show422ErrorToastr) shouldShowToastr = true;
|
|
196
|
+
if (status === 429 && show429ErrorPage) shouldShowToastr = false;
|
|
178
197
|
if (status === 520) {
|
|
179
198
|
shouldShowToastr = true;
|
|
180
199
|
if (globalProps.railsEnv === "production") {
|
|
181
200
|
toastrContent = i18next.t("generic.error");
|
|
182
201
|
}
|
|
183
202
|
}
|
|
203
|
+
if (status === 0) {
|
|
204
|
+
toastrContent = i18next.t("neetoCommons.toastr.error.networkError");
|
|
205
|
+
shouldShowToastr = true;
|
|
206
|
+
}
|
|
184
207
|
var toastIdKey = "".concat(requestMethod, ":").concat(requestUrl);
|
|
185
208
|
var errorToastId = requestErrorToasts[toastIdKey];
|
|
186
209
|
if (errorToastId) reactToastify.toast.dismiss(errorToastId);
|
|
@@ -203,15 +226,17 @@ var getUrlPathName = function getUrlPathName(url) {
|
|
|
203
226
|
return url;
|
|
204
227
|
}
|
|
205
228
|
};
|
|
206
|
-
var
|
|
229
|
+
var handleErrorPageResponse = function handleErrorPageResponse(error) {
|
|
207
230
|
var _error$config4, _error$response4;
|
|
208
231
|
var _ref5 = (_error$config4 = error.config) !== null && _error$config4 !== void 0 ? _error$config4 : {},
|
|
209
232
|
_ref5$show404ErrorPag = _ref5.show404ErrorPage,
|
|
210
233
|
show404ErrorPage = _ref5$show404ErrorPag === void 0 ? true : _ref5$show404ErrorPag,
|
|
211
234
|
_ref5$show403ErrorPag = _ref5.show403ErrorPage,
|
|
212
|
-
show403ErrorPage = _ref5$show403ErrorPag === void 0 ? true : _ref5$show403ErrorPag
|
|
235
|
+
show403ErrorPage = _ref5$show403ErrorPag === void 0 ? true : _ref5$show403ErrorPag,
|
|
236
|
+
_ref5$show429ErrorPag = _ref5.show429ErrorPage,
|
|
237
|
+
show429ErrorPage = _ref5$show429ErrorPag === void 0 ? true : _ref5$show429ErrorPag;
|
|
213
238
|
var status = (_error$response4 = error.response) === null || _error$response4 === void 0 ? void 0 : _error$response4.status;
|
|
214
|
-
if (status === 404 && show404ErrorPage || status === 403 && show403ErrorPage) {
|
|
239
|
+
if (status === 404 && show404ErrorPage || status === 403 && show403ErrorPage || status === 429 && show429ErrorPage) {
|
|
215
240
|
var _error$request;
|
|
216
241
|
var fullUrl = ((_error$request = error.request) === null || _error$request === void 0 ? void 0 : _error$request.responseURL) || error.config.url;
|
|
217
242
|
reactUtils_useDisplayErrorPage_useDisplayErrorPage.useErrorDisplayStore.setState({
|
|
@@ -226,9 +251,12 @@ var handle404ErrorResponse = function handle404ErrorResponse(error) {
|
|
|
226
251
|
var buildErrorResponseHandler = function buildErrorResponseHandler(skip) {
|
|
227
252
|
var interceptors = [];
|
|
228
253
|
if (!(skip !== null && skip !== void 0 && skip.transformCase)) interceptors.push(transformErrorKeysToCamelCase);
|
|
229
|
-
if (!(skip !== null && skip !== void 0 && skip.show404ErrorPage)) interceptors.push(
|
|
254
|
+
if (!(skip !== null && skip !== void 0 && skip.show404ErrorPage)) interceptors.push(handleErrorPageResponse);
|
|
230
255
|
if (!(skip !== null && skip !== void 0 && skip.logoutOn401)) interceptors.push(handleUnauthorizedErrorResponse);
|
|
231
256
|
if (!(skip !== null && skip !== void 0 && skip.showToastr)) interceptors.push(showErrorToastr);
|
|
257
|
+
if (!(skip !== null && skip !== void 0 && skip.checkForReleaseVersionMismatch)) {
|
|
258
|
+
interceptors.push(checkForReleaseVersionMismatch);
|
|
259
|
+
}
|
|
232
260
|
interceptors.push(Promise.reject.bind(Promise));
|
|
233
261
|
return createPipe(interceptors);
|
|
234
262
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/initializers/axiosInitializer/index.js"],"sourcesContent":["import axios from \"axios\";\nimport i18next from \"i18next\";\nimport {\n isNotEmpty,\n keysToCamelCase,\n matches,\n serializeKeysToSnakeCase,\n} from \"neetocist\";\nimport { Toastr } from \"neetoui\";\nimport { dissoc, evolve, omit } from \"ramda\";\nimport { toast } from \"react-toastify\";\nimport { useErrorDisplayStore } from \"react-utils/useDisplayErrorPage\";\nimport { resetAuthTokens } from \"utils/axios\";\n\nimport setParamsSerializer from \"./paramsSerializer\";\n\nimport { HEADERS_KEYS, MAXIMUM_OFFLINE_DURATION } from \"../constants\";\n\nlet checkOnlineInterval = null;\nlet requestErrorToasts = {};\n\nconst shouldNot = skip => typeof skip === \"object\" || !skip;\n\nconst shouldShowToastr = response =>\n (typeof response === \"string\" && isNotEmpty(response)) ||\n (typeof response === \"object\" && (response?.notice || response?.noticeCode));\n\nconst setAuthHeaders = () => {\n // @ts-ignore\n axios.defaults.headers = {\n [HEADERS_KEYS.accept]: \"application/json\",\n [HEADERS_KEYS.contentType]: \"application/json\",\n [HEADERS_KEYS.xCsrfToken]: document\n .querySelector('[name=\"csrf-token\"]')\n ?.getAttribute(\"content\"),\n };\n};\n\n// pipe function from ramda doesn't accept array of functions.\n// We can't use spread operator too. So this is a workaround.\nconst createPipe = functions => data =>\n functions.reduce((acc, fn) => fn(acc), data);\n\nconst transformResponseKeysToCamelCase = response => {\n const { transformResponseCase = true } = response.config;\n\n if (response.data && transformResponseCase) {\n response.data = keysToCamelCase(response.data);\n }\n\n return response;\n};\n\nconst transformErrorKeysToCamelCase = error => {\n const { transformResponseCase = true } = error.config ?? {};\n\n if (error.response?.data && transformResponseCase) {\n error.response.data = keysToCamelCase(error.response.data);\n }\n\n return error;\n};\n\nconst showSuccessToastr = response => {\n const {\n showToastr = true,\n url: requestUrl,\n method: requestMethod,\n } = response.config;\n if (!showToastr) return response;\n\n const toastIdKey = `${requestMethod}:${requestUrl}`;\n const errorToastId = requestErrorToasts[toastIdKey];\n if (errorToastId) {\n toast.dismiss(errorToastId);\n requestErrorToasts = dissoc(toastIdKey, requestErrorToasts);\n }\n\n if (matches({ showThumbsUpToastr: true }, response.data)) {\n // @ts-ignore\n Toastr.success(\"\", { icon: \"👍\", className: \"w-20\" });\n } else if (matches({ noticeCode: \"thumbs_up\" }, response.data)) {\n // @ts-ignore\n Toastr.success(\"\", { icon: \"👍\", className: \"w-20\" });\n } else if (shouldShowToastr(response.data)) {\n Toastr.success(response.data);\n }\n\n return response;\n};\n\nconst pullDataFromResponse = response => {\n const { includeMetadataInResponse = false } = response.config;\n\n return includeMetadataInResponse ? response : response.data;\n};\n\nconst buildSuccessResponseHandler = skip => {\n const interceptors = [];\n if (!skip?.transformCase) interceptors.push(transformResponseKeysToCamelCase);\n\n if (!skip?.showToastr) interceptors.push(showSuccessToastr);\n\n if (!skip?.pullDataFromResponse) interceptors.push(pullDataFromResponse);\n\n return createPipe(interceptors);\n};\n\nconst handleUnauthorizedErrorResponse = error => {\n if (error.response?.status !== 401) return error;\n\n resetAuthTokens();\n\n const { redirectOnError = true } = error.config ?? {};\n if (redirectOnError) {\n setTimeout(() => {\n const redirectTo =\n window.location.pathname === \"/login\"\n ? \"/login\"\n : `/login?redirect_uri=${encodeURIComponent(window.location.href)}`;\n\n // eslint-disable-next-line xss/no-location-href-assign\n window.location.href = redirectTo;\n }, 300);\n }\n\n return error;\n};\n\nconst isOnline = () => window.navigator.onLine;\n\nconst showOfflineToastr = () => {\n const toastId = Toastr.error(\n i18next.t(\"neetoCommons.toastr.error.networkError\")\n );\n\n if (toastId) {\n const dismissToastInterval = setInterval(() => {\n if (!isOnline()) return;\n\n toast.dismiss(toastId);\n clearInterval(dismissToastInterval);\n checkOnlineInterval = null;\n }, 1000);\n }\n};\n\nconst handleNetworkError = error => {\n if (checkOnlineInterval) return error;\n\n const startTime = Date.now();\n\n checkOnlineInterval = setInterval(() => {\n const elapsedTime = Date.now() - startTime;\n\n if (isOnline()) {\n clearInterval(checkOnlineInterval);\n checkOnlineInterval = null;\n } else if (elapsedTime >= MAXIMUM_OFFLINE_DURATION) {\n clearInterval(checkOnlineInterval);\n showOfflineToastr();\n }\n }, 1000);\n\n return error;\n};\n\nconst showErrorToastr = error => {\n const {\n showToastr = true,\n show422ErrorToastr = true,\n url: requestUrl = \"\",\n method: requestMethod = \"\",\n } = error.config ?? {};\n const { status } = error.response ?? {};\n\n if (!showToastr) return error;\n\n if (error.message === \"Network Error\") return handleNetworkError(error);\n\n if (error.code === \"ECONNABORTED\") {\n return error;\n }\n\n let shouldShowToastr = false,\n toastrContent = error;\n\n const skippedStatusCodes = [403, 404, 520, 422];\n if (!skippedStatusCodes.includes(status) && !axios.isCancel(error)) {\n // we already display a page in case of 403 & 404 and we don't want to show a toastr for cancelled requests.\n // We handle cloudflare error differently for production and other environments.\n shouldShowToastr = true;\n }\n\n if (status === 422 && show422ErrorToastr) shouldShowToastr = true;\n\n if (status === 520) {\n shouldShowToastr = true;\n if (globalProps.railsEnv === \"production\") {\n toastrContent = i18next.t(\"generic.error\");\n }\n }\n\n const toastIdKey = `${requestMethod}:${requestUrl}`;\n const errorToastId = requestErrorToasts[toastIdKey];\n if (errorToastId) toast.dismiss(errorToastId);\n\n if (shouldShowToastr) {\n if (errorToastId) {\n // if there's an existing toastr with the same message, the onClose callback in the neetoUI which\n // removes the toastr from the unique list will be fired only after the toast is completely removed\n // from the UI. If there's no delay, the new toastr will be considered as duplicate and ignored.\n setTimeout(() => {\n requestErrorToasts[toastIdKey] = Toastr.error(toastrContent);\n }, 1200);\n } else requestErrorToasts[toastIdKey] = Toastr.error(toastrContent);\n }\n\n return error;\n};\n\nconst getUrlPathName = url => {\n try {\n return new URL(url).pathname;\n } catch {\n return url;\n }\n};\n\nconst handle404ErrorResponse = error => {\n const { show404ErrorPage = true, show403ErrorPage = true } =\n error.config ?? {};\n\n const status = error.response?.status;\n if (\n (status === 404 && show404ErrorPage) ||\n (status === 403 && show403ErrorPage)\n ) {\n const fullUrl = error.request?.responseURL || error.config.url;\n useErrorDisplayStore.setState({\n showErrorPage: true,\n statusCode: status,\n failedApiUrl: fullUrl,\n failedApiPath: getUrlPathName(fullUrl),\n });\n }\n\n return error;\n};\n\nconst buildErrorResponseHandler = skip => {\n const interceptors = [];\n if (!skip?.transformCase) interceptors.push(transformErrorKeysToCamelCase);\n\n if (!skip?.show404ErrorPage) interceptors.push(handle404ErrorResponse);\n\n if (!skip?.logoutOn401) interceptors.push(handleUnauthorizedErrorResponse);\n\n if (!skip?.showToastr) interceptors.push(showErrorToastr);\n\n interceptors.push(Promise.reject.bind(Promise));\n\n return createPipe(interceptors);\n};\n\nconst cleanupCredentialsForCrossOrigin = request => {\n if (!request.url.includes(\"://\")) return request;\n\n if (request.url.includes(window.location.hostname)) return request;\n\n return evolve({ headers: omit([HEADERS_KEYS.xCsrfToken]) })(request);\n};\n\nconst transformDataToSnakeCase = request => {\n const { transformRequestCase = true } = request;\n\n if (!transformRequestCase) return request;\n\n return evolve(\n { data: serializeKeysToSnakeCase, params: serializeKeysToSnakeCase },\n request\n );\n};\n\nconst addRequestInterceptors = skip => {\n if (!skip?.cleanCredentialsForCrossOrigin) {\n axios.interceptors.request.use(cleanupCredentialsForCrossOrigin);\n }\n\n if (!skip?.transformCase) {\n axios.interceptors.request.use(transformDataToSnakeCase);\n }\n};\n\nconst addResponseInterceptors = skip => {\n axios.interceptors.response.use(\n buildSuccessResponseHandler(skip),\n buildErrorResponseHandler(skip)\n );\n};\n\nconst registerIntercepts = skip => {\n if (shouldNot(skip?.request)) addRequestInterceptors(skip?.request);\n\n if (shouldNot(skip?.response)) addResponseInterceptors(skip?.response);\n};\n\nexport default function initializeAxios(skip) {\n if (!skip?.baseURL) axios.defaults.baseURL = \"/\";\n\n if (!skip?.authHeaders) setAuthHeaders();\n\n if (!skip?.paramsSerializer) setParamsSerializer();\n\n if (shouldNot(skip?.interceptors)) registerIntercepts(skip?.interceptors);\n}\n"],"names":["checkOnlineInterval","requestErrorToasts","shouldNot","skip","_typeof","shouldShowToastr","response","isNotEmpty","notice","noticeCode","setAuthHeaders","_document$querySelect","axios","defaults","headers","_defineProperty","HEADERS_KEYS","accept","contentType","xCsrfToken","document","querySelector","getAttribute","createPipe","functions","data","reduce","acc","fn","transformResponseKeysToCamelCase","_response$config$tran","config","transformResponseCase","keysToCamelCase","transformErrorKeysToCamelCase","error","_error$config","_error$response","_ref","_ref$transformRespons","showSuccessToastr","_response$config","_response$config$show","showToastr","requestUrl","url","requestMethod","method","toastIdKey","concat","errorToastId","toast","dismiss","dissoc","matches","showThumbsUpToastr","Toastr","success","icon","className","pullDataFromResponse","_response$config$incl","includeMetadataInResponse","buildSuccessResponseHandler","interceptors","transformCase","push","handleUnauthorizedErrorResponse","_error$response2","_error$config2","status","resetAuthTokens","_ref2","_ref2$redirectOnError","redirectOnError","setTimeout","redirectTo","window","location","pathname","encodeURIComponent","href","isOnline","navigator","onLine","showOfflineToastr","toastId","i18next","t","dismissToastInterval","setInterval","clearInterval","handleNetworkError","startTime","Date","now","elapsedTime","MAXIMUM_OFFLINE_DURATION","showErrorToastr","_error$config3","_error$response3","_ref3","_ref3$showToastr","_ref3$show422ErrorToa","show422ErrorToastr","_ref3$url","_ref3$method","_ref4","message","code","toastrContent","skippedStatusCodes","includes","isCancel","globalProps","railsEnv","getUrlPathName","URL","_unused","handle404ErrorResponse","_error$config4","_error$response4","_ref5","_ref5$show404ErrorPag","show404ErrorPage","_ref5$show403ErrorPag","show403ErrorPage","_error$request","fullUrl","request","responseURL","useErrorDisplayStore","setState","showErrorPage","statusCode","failedApiUrl","failedApiPath","buildErrorResponseHandler","logoutOn401","Promise","reject","bind","cleanupCredentialsForCrossOrigin","hostname","evolve","omit","transformDataToSnakeCase","_request$transformReq","transformRequestCase","serializeKeysToSnakeCase","params","addRequestInterceptors","cleanCredentialsForCrossOrigin","use","addResponseInterceptors","registerIntercepts","initializeAxios","baseURL","authHeaders","paramsSerializer","setParamsSerializer"],"mappings":";;;;;;;;;;;;;;;;;AAkBA,IAAIA,mBAAmB,GAAG,IAAI,CAAA;AAC9B,IAAIC,kBAAkB,GAAG,EAAE,CAAA;AAE3B,IAAMC,SAAS,GAAG,SAAZA,SAASA,CAAGC,IAAI,EAAA;AAAA,EAAA,OAAIC,eAAA,CAAOD,IAAI,MAAK,QAAQ,IAAI,CAACA,IAAI,CAAA;AAAA,CAAA,CAAA;AAE3D,IAAME,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAGC,QAAQ,EAAA;AAAA,EAAA,OAC9B,OAAO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axios from \"axios\";\nimport i18next from \"i18next\";\nimport {\n isNotEmpty,\n keysToCamelCase,\n matches,\n serializeKeysToSnakeCase,\n} from \"neetocist\";\nimport { Toastr } from \"neetoui\";\nimport { dissoc, evolve, omit } from \"ramda\";\nimport { toast } from \"react-toastify\";\nimport { useErrorDisplayStore } from \"react-utils/useDisplayErrorPage\";\nimport { resetAuthTokens } from \"utils/axios\";\n\nimport setParamsSerializer from \"./paramsSerializer\";\n\nimport { HEADERS_KEYS, MAXIMUM_OFFLINE_DURATION } from \"../constants\";\n\nlet checkOnlineInterval = null;\nlet requestErrorToasts = {};\n\nconst shouldNot = skip => typeof skip === \"object\" || !skip;\n\nconst shouldShowToastr = response =>\n (typeof response === \"string\" && isNotEmpty(response)) ||\n (typeof response === \"object\" && (response?.notice || response?.noticeCode));\n\nconst setAuthHeaders = () => {\n // @ts-ignore\n axios.defaults.headers = {\n [HEADERS_KEYS.accept]: \"application/json\",\n [HEADERS_KEYS.contentType]: \"application/json\",\n [HEADERS_KEYS.xCsrfToken]: document\n .querySelector('[name=\"csrf-token\"]')\n ?.getAttribute(\"content\"),\n };\n};\n\n// pipe function from ramda doesn't accept array of functions.\n// We can't use spread operator too. So this is a workaround.\nconst createPipe = functions => data =>\n functions.reduce((acc, fn) => fn(acc), data);\n\nconst transformResponseKeysToCamelCase = response => {\n const { transformResponseCase = true } = response.config;\n\n if (response.data && transformResponseCase) {\n response.data = keysToCamelCase(response.data);\n }\n\n return response;\n};\n\nconst transformErrorKeysToCamelCase = error => {\n const { transformResponseCase = true } = error.config ?? {};\n\n if (error.response?.data && transformResponseCase) {\n error.response.data = keysToCamelCase(error.response.data);\n }\n\n return error;\n};\n\nconst showSuccessToastr = response => {\n const {\n showToastr = true,\n url: requestUrl,\n method: requestMethod,\n } = response.config;\n if (!showToastr) return response;\n\n const toastIdKey = `${requestMethod}:${requestUrl}`;\n const errorToastId = requestErrorToasts[toastIdKey];\n if (errorToastId) {\n toast.dismiss(errorToastId);\n requestErrorToasts = dissoc(toastIdKey, requestErrorToasts);\n }\n\n if (matches({ showThumbsUpToastr: true }, response.data)) {\n // @ts-ignore\n // eslint-disable-next-line @bigbinary/neeto/use-show-thumbs-up-toastr\n Toastr.success(\"\", { icon: \"👍\", className: \"w-20\" });\n } else if (matches({ noticeCode: \"thumbs_up\" }, response.data)) {\n // @ts-ignore\n // eslint-disable-next-line @bigbinary/neeto/use-show-thumbs-up-toastr\n Toastr.success(\"\", { icon: \"👍\", className: \"w-20\" });\n } else if (shouldShowToastr(response.data)) {\n Toastr.success(response.data);\n }\n\n return response;\n};\n\nconst pullDataFromResponse = response => {\n const { includeMetadataInResponse = false } = response.config;\n\n return includeMetadataInResponse ? response : response.data;\n};\n\nconst checkForReleaseVersionMismatch = response => {\n const res = response?.response || response;\n const newReleaseVersion = Number(res?.headers?.[\"x-deploy-release-version\"]);\n const currentReleaseVersion = Number(globalProps?.deployReleaseVersion);\n\n if (\n newReleaseVersion &&\n currentReleaseVersion &&\n newReleaseVersion !== currentReleaseVersion\n ) {\n useErrorDisplayStore.setState({ showRefreshRibbon: true });\n }\n\n return response;\n};\n\nconst buildSuccessResponseHandler = skip => {\n const interceptors = [];\n if (!skip?.transformCase) interceptors.push(transformResponseKeysToCamelCase);\n\n if (!skip?.showToastr) interceptors.push(showSuccessToastr);\n\n if (!skip?.checkForReleaseVersionMismatch) {\n interceptors.push(checkForReleaseVersionMismatch);\n }\n\n if (!skip?.pullDataFromResponse) interceptors.push(pullDataFromResponse);\n\n return createPipe(interceptors);\n};\n\nconst handleUnauthorizedErrorResponse = error => {\n if (error.response?.status !== 401) return error;\n\n resetAuthTokens();\n\n const { redirectOnError = true } = error.config ?? {};\n if (redirectOnError) {\n setTimeout(() => {\n const redirectTo =\n window.location.pathname === \"/login\"\n ? \"/login\"\n : `/login?redirect_uri=${encodeURIComponent(window.location.href)}`;\n\n window.location.href = redirectTo;\n }, 300);\n }\n\n return error;\n};\n\nconst isOnline = () => window.navigator.onLine;\n\nconst showOfflineToastr = () => {\n const toastId = Toastr.error(\n i18next.t(\"neetoCommons.toastr.error.noInternetConnection\")\n );\n\n if (toastId) {\n const dismissToastInterval = setInterval(() => {\n if (!isOnline()) return;\n\n toast.dismiss(toastId);\n clearInterval(dismissToastInterval);\n checkOnlineInterval = null;\n }, 1000);\n }\n};\n\nconst handleNetworkError = error => {\n if (checkOnlineInterval) return error;\n\n const startTime = Date.now();\n\n checkOnlineInterval = setInterval(() => {\n const elapsedTime = Date.now() - startTime;\n\n if (isOnline()) {\n clearInterval(checkOnlineInterval);\n checkOnlineInterval = null;\n } else if (elapsedTime >= MAXIMUM_OFFLINE_DURATION) {\n clearInterval(checkOnlineInterval);\n showOfflineToastr();\n }\n }, 1000);\n\n return error;\n};\n\nconst showErrorToastr = error => {\n const {\n showToastr = true,\n show422ErrorToastr = true,\n show429ErrorPage = true,\n url: requestUrl = \"\",\n method: requestMethod = \"\",\n } = error.config ?? {};\n const { status } = error.response ?? {};\n\n if (!showToastr) return error;\n\n if (error.message === \"Network Error\") return handleNetworkError(error);\n\n if (error.code === \"ECONNABORTED\") {\n return error;\n }\n\n let shouldShowToastr = false,\n toastrContent = error;\n\n const skippedStatusCodes = [403, 404, 520, 422];\n if (!skippedStatusCodes.includes(status) && !axios.isCancel(error)) {\n // we already display a page in case of 403 & 404 and we don't want to show a toastr for cancelled requests.\n // We handle cloudflare error differently for production and other environments.\n shouldShowToastr = true;\n }\n\n if (status === 422 && show422ErrorToastr) shouldShowToastr = true;\n\n if (status === 429 && show429ErrorPage) shouldShowToastr = false;\n\n if (status === 520) {\n shouldShowToastr = true;\n if (globalProps.railsEnv === \"production\") {\n toastrContent = i18next.t(\"generic.error\");\n }\n }\n\n if (status === 0) {\n toastrContent = i18next.t(\"neetoCommons.toastr.error.networkError\");\n shouldShowToastr = true;\n }\n\n const toastIdKey = `${requestMethod}:${requestUrl}`;\n const errorToastId = requestErrorToasts[toastIdKey];\n if (errorToastId) toast.dismiss(errorToastId);\n\n if (shouldShowToastr) {\n if (errorToastId) {\n // if there's an existing toastr with the same message, the onClose callback in the neetoUI which\n // removes the toastr from the unique list will be fired only after the toast is completely removed\n // from the UI. If there's no delay, the new toastr will be considered as duplicate and ignored.\n setTimeout(() => {\n requestErrorToasts[toastIdKey] = Toastr.error(toastrContent);\n }, 1200);\n } else requestErrorToasts[toastIdKey] = Toastr.error(toastrContent);\n }\n\n return error;\n};\n\nconst getUrlPathName = url => {\n try {\n return new URL(url).pathname;\n } catch {\n return url;\n }\n};\n\nconst handleErrorPageResponse = error => {\n const {\n show404ErrorPage = true,\n show403ErrorPage = true,\n show429ErrorPage = true,\n } = error.config ?? {};\n\n const status = error.response?.status;\n if (\n (status === 404 && show404ErrorPage) ||\n (status === 403 && show403ErrorPage) ||\n (status === 429 && show429ErrorPage)\n ) {\n const fullUrl = error.request?.responseURL || error.config.url;\n useErrorDisplayStore.setState({\n showErrorPage: true,\n statusCode: status,\n failedApiUrl: fullUrl,\n failedApiPath: getUrlPathName(fullUrl),\n });\n }\n\n return error;\n};\n\nconst buildErrorResponseHandler = skip => {\n const interceptors = [];\n if (!skip?.transformCase) interceptors.push(transformErrorKeysToCamelCase);\n\n if (!skip?.show404ErrorPage) interceptors.push(handleErrorPageResponse);\n\n if (!skip?.logoutOn401) interceptors.push(handleUnauthorizedErrorResponse);\n\n if (!skip?.showToastr) interceptors.push(showErrorToastr);\n\n if (!skip?.checkForReleaseVersionMismatch) {\n interceptors.push(checkForReleaseVersionMismatch);\n }\n\n interceptors.push(Promise.reject.bind(Promise));\n\n return createPipe(interceptors);\n};\n\nconst cleanupCredentialsForCrossOrigin = request => {\n if (!request.url.includes(\"://\")) return request;\n\n if (request.url.includes(window.location.hostname)) return request;\n\n return evolve({ headers: omit([HEADERS_KEYS.xCsrfToken]) })(request);\n};\n\nconst transformDataToSnakeCase = request => {\n const { transformRequestCase = true } = request;\n\n if (!transformRequestCase) return request;\n\n return evolve(\n { data: serializeKeysToSnakeCase, params: serializeKeysToSnakeCase },\n request\n );\n};\n\nconst addRequestInterceptors = skip => {\n if (!skip?.cleanCredentialsForCrossOrigin) {\n axios.interceptors.request.use(cleanupCredentialsForCrossOrigin);\n }\n\n if (!skip?.transformCase) {\n axios.interceptors.request.use(transformDataToSnakeCase);\n }\n};\n\nconst addResponseInterceptors = skip => {\n axios.interceptors.response.use(\n buildSuccessResponseHandler(skip),\n buildErrorResponseHandler(skip)\n );\n};\n\nconst registerIntercepts = skip => {\n if (shouldNot(skip?.request)) addRequestInterceptors(skip?.request);\n\n if (shouldNot(skip?.response)) addResponseInterceptors(skip?.response);\n};\n\nexport default function initializeAxios(skip) {\n if (!skip?.baseURL) axios.defaults.baseURL = \"/\";\n\n if (!skip?.authHeaders) setAuthHeaders();\n\n if (!skip?.paramsSerializer) setParamsSerializer();\n\n if (shouldNot(skip?.interceptors)) registerIntercepts(skip?.interceptors);\n}\n"],"names":["checkOnlineInterval","requestErrorToasts","shouldNot","skip","_typeof","shouldShowToastr","response","isNotEmpty","notice","noticeCode","setAuthHeaders","_document$querySelect","axios","defaults","headers","_defineProperty","HEADERS_KEYS","accept","contentType","xCsrfToken","document","querySelector","getAttribute","createPipe","functions","data","reduce","acc","fn","transformResponseKeysToCamelCase","_response$config$tran","config","transformResponseCase","keysToCamelCase","transformErrorKeysToCamelCase","error","_error$config","_error$response","_ref","_ref$transformRespons","showSuccessToastr","_response$config","_response$config$show","showToastr","requestUrl","url","requestMethod","method","toastIdKey","concat","errorToastId","toast","dismiss","dissoc","matches","showThumbsUpToastr","Toastr","success","icon","className","pullDataFromResponse","_response$config$incl","includeMetadataInResponse","checkForReleaseVersionMismatch","_res$headers","_globalProps","res","newReleaseVersion","Number","currentReleaseVersion","globalProps","deployReleaseVersion","useErrorDisplayStore","setState","showRefreshRibbon","buildSuccessResponseHandler","interceptors","transformCase","push","handleUnauthorizedErrorResponse","_error$response2","_error$config2","status","resetAuthTokens","_ref2","_ref2$redirectOnError","redirectOnError","setTimeout","redirectTo","window","location","pathname","encodeURIComponent","href","isOnline","navigator","onLine","showOfflineToastr","toastId","i18next","t","dismissToastInterval","setInterval","clearInterval","handleNetworkError","startTime","Date","now","elapsedTime","MAXIMUM_OFFLINE_DURATION","showErrorToastr","_error$config3","_error$response3","_ref3","_ref3$showToastr","_ref3$show422ErrorToa","show422ErrorToastr","_ref3$show429ErrorPag","show429ErrorPage","_ref3$url","_ref3$method","_ref4","message","code","toastrContent","skippedStatusCodes","includes","isCancel","railsEnv","getUrlPathName","URL","_unused","handleErrorPageResponse","_error$config4","_error$response4","_ref5","_ref5$show404ErrorPag","show404ErrorPage","_ref5$show403ErrorPag","show403ErrorPage","_ref5$show429ErrorPag","_error$request","fullUrl","request","responseURL","showErrorPage","statusCode","failedApiUrl","failedApiPath","buildErrorResponseHandler","logoutOn401","Promise","reject","bind","cleanupCredentialsForCrossOrigin","hostname","evolve","omit","transformDataToSnakeCase","_request$transformReq","transformRequestCase","serializeKeysToSnakeCase","params","addRequestInterceptors","cleanCredentialsForCrossOrigin","use","addResponseInterceptors","registerIntercepts","initializeAxios","baseURL","authHeaders","paramsSerializer","setParamsSerializer"],"mappings":";;;;;;;;;;;;;;;;;;AAkBA,IAAIA,mBAAmB,GAAG,IAAI;AAC9B,IAAIC,kBAAkB,GAAG,EAAE;AAE3B,IAAMC,SAAS,GAAG,SAAZA,SAASA,CAAGC,IAAI,EAAA;AAAA,EAAA,OAAIC,eAAA,CAAOD,IAAI,MAAK,QAAQ,IAAI,CAACA,IAAI;AAAA,CAAA;AAE3D,IAAME,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAGC,QAAQ,EAAA;AAAA,EAAA,OAC9B,OAAOA,QAAQ,KAAK,QAAQ,IAAIC,oBAAU,CAACD,QAAQ,CAAC,IACpDF,eAAA,CAAOE,QAAQ,MAAK,QAAQ,KAAK,CAAAA,QAAQ,KAAA,IAAA,IAARA,QAAQ,KAAA,MAAA,GAAA,MAAA,GAARA,QAAQ,CAAEE,MAAM,MAAIF,QAAQ,KAAA,IAAA,IAARA,Q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IAAJA,IAAI,KAAA,MAAA,IAAJA,IAAI,CAAEwK,gBAAgB,CAAA,EAAEC,8CAAmB,EAAE;EAElD,IAAI1K,SAAS,CAACC,IAAI,KAAA,IAAA,IAAJA,IAAI,KAAA,MAAA,GAAA,MAAA,GAAJA,IAAI,CAAEyE,YAAY,CAAC,EAAE2F,kBAAkB,CAACpK,IAAI,KAAA,IAAA,IAAJA,IAAI,uBAAJA,IAAI,CAAEyE,YAAY,CAAC;AAC3E;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paramsSerializer.js","sources":["../../../../src/initializers/axiosInitializer/paramsSerializer.js"],"sourcesContent":["/* eslint-disable @bigbinary/neeto/use-snake-case-for-api-connector-filename */\nimport axios from \"axios\";\nimport qs from \"qs\";\n\nconst setParamsSerializer = () => {\n axios.defaults.paramsSerializer = params =>\n qs.stringify(params, { arrayFormat: \"brackets\", skipNulls: true });\n};\n\nexport default setParamsSerializer;\n"],"names":["setParamsSerializer","axios","defaults","paramsSerializer","params","qs","stringify","arrayFormat","skipNulls"],"mappings":";;;;;AAAA;AAIA,IAAMA,mBAAmB,GAAG,SAAtBA,mBAAmBA,GAAS;AAChCC,EAAAA,KAAK,CAACC,QAAQ,CAACC,gBAAgB,GAAG,UAAAC,MAAM,EAAA;AAAA,IAAA,OACtCC,EAAE,CAACC,SAAS,CAACF,MAAM,EAAE;AAAEG,MAAAA,WAAW,EAAE,UAAU;AAAEC,MAAAA,SAAS,EAAE
|
|
1
|
+
{"version":3,"file":"paramsSerializer.js","sources":["../../../../src/initializers/axiosInitializer/paramsSerializer.js"],"sourcesContent":["/* eslint-disable @bigbinary/neeto/use-snake-case-for-api-connector-filename */\nimport axios from \"axios\";\nimport qs from \"qs\";\n\nconst setParamsSerializer = () => {\n axios.defaults.paramsSerializer = params =>\n qs.stringify(params, { arrayFormat: \"brackets\", skipNulls: true });\n};\n\nexport default setParamsSerializer;\n"],"names":["setParamsSerializer","axios","defaults","paramsSerializer","params","qs","stringify","arrayFormat","skipNulls"],"mappings":";;;;;AAAA;AAIA,IAAMA,mBAAmB,GAAG,SAAtBA,mBAAmBA,GAAS;AAChCC,EAAAA,KAAK,CAACC,QAAQ,CAACC,gBAAgB,GAAG,UAAAC,MAAM,EAAA;AAAA,IAAA,OACtCC,EAAE,CAACC,SAAS,CAACF,MAAM,EAAE;AAAEG,MAAAA,WAAW,EAAE,UAAU;AAAEC,MAAAA,SAAS,EAAE;AAAK,KAAC,CAAC;AAAA,EAAA,CAAA;AACtE;;;;"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var _window;
|
|
3
4
|
var HEADERS_KEYS = {
|
|
4
5
|
xCsrfToken: "X-CSRF-TOKEN",
|
|
5
6
|
contentType: "Content-Type",
|
|
@@ -14,9 +15,11 @@ var FORMATS = {
|
|
|
14
15
|
};
|
|
15
16
|
var LIST_FORMATS = [FORMATS.boldList, FORMATS.list];
|
|
16
17
|
var MAXIMUM_OFFLINE_DURATION = 10000;
|
|
18
|
+
var IS_CHROME_EXTENSION = typeof window !== "undefined" && !!((_window = window) !== null && _window !== void 0 && (_window = _window.chrome) !== null && _window !== void 0 && (_window = _window.runtime) !== null && _window !== void 0 && _window.id);
|
|
17
19
|
|
|
18
20
|
exports.FORMATS = FORMATS;
|
|
19
21
|
exports.HEADERS_KEYS = HEADERS_KEYS;
|
|
22
|
+
exports.IS_CHROME_EXTENSION = IS_CHROME_EXTENSION;
|
|
20
23
|
exports.LIST_FORMATS = LIST_FORMATS;
|
|
21
24
|
exports.LOWERCASED = LOWERCASED;
|
|
22
25
|
exports.LOWERCASED_GLOBAL_REGEX = LOWERCASED_GLOBAL_REGEX;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sources":["../../../src/initializers/constants.js"],"sourcesContent":["export const HEADERS_KEYS = {\n xCsrfToken: \"X-CSRF-TOKEN\",\n contentType: \"Content-Type\",\n accept: \"Accept\",\n};\n\nexport const LOWERCASED = \"__LOWERCASED__\";\nexport const LOWERCASED_GLOBAL_REGEX = new RegExp(LOWERCASED, \"g\");\n\nexport const FORMATS = {\n boldList: \"boldList\",\n list: \"list\",\n anyCase: \"anyCase\",\n};\nexport const LIST_FORMATS = [FORMATS.boldList, FORMATS.list];\n\nexport const MAXIMUM_OFFLINE_DURATION = 10000;\n"],"names":["HEADERS_KEYS","xCsrfToken","contentType","accept","LOWERCASED","LOWERCASED_GLOBAL_REGEX","RegExp","FORMATS","boldList","list","anyCase","LIST_FORMATS","MAXIMUM_OFFLINE_DURATION"],"mappings":"
|
|
1
|
+
{"version":3,"file":"constants.js","sources":["../../../src/initializers/constants.js"],"sourcesContent":["export const HEADERS_KEYS = {\n xCsrfToken: \"X-CSRF-TOKEN\",\n contentType: \"Content-Type\",\n accept: \"Accept\",\n};\n\nexport const LOWERCASED = \"__LOWERCASED__\";\nexport const LOWERCASED_GLOBAL_REGEX = new RegExp(LOWERCASED, \"g\");\n\nexport const FORMATS = {\n boldList: \"boldList\",\n list: \"list\",\n anyCase: \"anyCase\",\n};\nexport const LIST_FORMATS = [FORMATS.boldList, FORMATS.list];\n\nexport const MAXIMUM_OFFLINE_DURATION = 10000;\n\nexport const IS_CHROME_EXTENSION =\n typeof window !== \"undefined\" && !!window?.chrome?.runtime?.id;\n"],"names":["HEADERS_KEYS","xCsrfToken","contentType","accept","LOWERCASED","LOWERCASED_GLOBAL_REGEX","RegExp","FORMATS","boldList","list","anyCase","LIST_FORMATS","MAXIMUM_OFFLINE_DURATION","IS_CHROME_EXTENSION","window","_window","chrome","runtime","id"],"mappings":";;;AAAO,IAAMA,YAAY,GAAG;AAC1BC,EAAAA,UAAU,EAAE,cAAc;AAC1BC,EAAAA,WAAW,EAAE,cAAc;AAC3BC,EAAAA,MAAM,EAAE;AACV;AAEO,IAAMC,UAAU,GAAG;AACnB,IAAMC,uBAAuB,GAAG,IAAIC,MAAM,CAACF,UAAU,EAAE,GAAG;AAE1D,IAAMG,OAAO,GAAG;AACrBC,EAAAA,QAAQ,EAAE,UAAU;AACpBC,EAAAA,IAAI,EAAE,MAAM;AACZC,EAAAA,OAAO,EAAE;AACX;AACO,IAAMC,YAAY,GAAG,CAACJ,OAAO,CAACC,QAAQ,EAAED,OAAO,CAACE,IAAI;AAEpD,IAAMG,wBAAwB,GAAG;AAEjC,IAAMC,mBAAmB,GAC9B,OAAOC,MAAM,KAAK,WAAW,IAAI,CAAC,GAAAC,OAAA,GAACD,MAAM,MAAA,IAAA,IAAAC,OAAA,KAAA,MAAA,IAAA,CAAAA,OAAA,GAANA,OAAA,CAAQC,MAAM,MAAA,IAAA,IAAAD,OAAA,gBAAAA,OAAA,GAAdA,OAAA,CAAgBE,OAAO,MAAA,IAAA,IAAAF,OAAA,KAAA,MAAA,IAAvBA,OAAA,CAAyBG,EAAE;;;;;;;;;;"}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
var pureDayjs = require('dayjs');
|
|
4
4
|
var advancedFormat = require('dayjs/plugin/advancedFormat');
|
|
5
|
-
var customParseFormat = require('dayjs/plugin/customParseFormat');
|
|
6
5
|
var duration = require('dayjs/plugin/duration');
|
|
7
6
|
var isSameOrAfter = require('dayjs/plugin/isSameOrAfter');
|
|
8
7
|
var isSameOrBefore = require('dayjs/plugin/isSameOrBefore');
|
|
@@ -12,11 +11,22 @@ var localizedFormat = require('dayjs/plugin/localizedFormat');
|
|
|
12
11
|
var minMax = require('dayjs/plugin/minMax');
|
|
13
12
|
var quarterOfYear = require('dayjs/plugin/quarterOfYear');
|
|
14
13
|
var relativeTime = require('dayjs/plugin/relativeTime');
|
|
15
|
-
var timezone = require('@bigbinary/neeto-commons-frontend/utils/timezonePlugin');
|
|
16
14
|
var updateLocale = require('dayjs/plugin/updateLocale');
|
|
17
15
|
var utc = require('dayjs/plugin/utc');
|
|
18
16
|
var weekday = require('dayjs/plugin/weekday');
|
|
19
17
|
var weekOfYear = require('dayjs/plugin/weekOfYear');
|
|
18
|
+
var utils_customParseFormatPlugin = require('../utils/customParseFormatPlugin.js');
|
|
19
|
+
var utils_localePlugin = require('../utils/localePlugin.js');
|
|
20
|
+
var utils_timezonePlugin = require('../utils/timezonePlugin.js');
|
|
21
|
+
require('../slicedToArray-BcL7fKuL.js');
|
|
22
|
+
require('../unsupportedIterableToArray-BoHMiKNA.js');
|
|
23
|
+
require('../defineProperty-COGyJ6Og.js');
|
|
24
|
+
require('../toPropertyKey-DW-YC76_.js');
|
|
25
|
+
require('../typeof-D4ZZ_FlZ.js');
|
|
26
|
+
require('../asyncToGenerator-8vhqAwJl.js');
|
|
27
|
+
require('i18next');
|
|
28
|
+
require('../utils/constants.js');
|
|
29
|
+
require('../utils/dayjsFormatOverrides/default.js');
|
|
20
30
|
|
|
21
31
|
// eslint-disable-next-line @bigbinary/neeto/use-dayjs-from-neeto-commons-fronted
|
|
22
32
|
var isValidTimezone = function isValidTimezone(timezone) {
|
|
@@ -28,10 +38,10 @@ var isValidTimezone = function isValidTimezone(timezone) {
|
|
|
28
38
|
}
|
|
29
39
|
};
|
|
30
40
|
var initializeDayjs = function initializeDayjs() {
|
|
31
|
-
var _globalProps,
|
|
41
|
+
var _globalProps, _globalProps2;
|
|
32
42
|
var skipTimezone = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
33
43
|
pureDayjs.extend(advancedFormat);
|
|
34
|
-
pureDayjs.extend(
|
|
44
|
+
pureDayjs.extend(utils_customParseFormatPlugin);
|
|
35
45
|
pureDayjs.extend(duration);
|
|
36
46
|
pureDayjs.extend(isSameOrAfter);
|
|
37
47
|
pureDayjs.extend(isSameOrBefore);
|
|
@@ -41,15 +51,16 @@ var initializeDayjs = function initializeDayjs() {
|
|
|
41
51
|
pureDayjs.extend(minMax);
|
|
42
52
|
pureDayjs.extend(quarterOfYear);
|
|
43
53
|
pureDayjs.extend(relativeTime);
|
|
44
|
-
pureDayjs.extend(
|
|
54
|
+
pureDayjs.extend(utils_timezonePlugin);
|
|
45
55
|
pureDayjs.extend(updateLocale);
|
|
46
56
|
pureDayjs.extend(utc);
|
|
47
57
|
pureDayjs.extend(weekday);
|
|
48
58
|
pureDayjs.extend(weekOfYear);
|
|
49
|
-
|
|
59
|
+
pureDayjs.extend(utils_localePlugin.default);
|
|
60
|
+
var shouldInitializeTimezone = !skipTimezone && ((_globalProps = globalProps) === null || _globalProps === void 0 || (_globalProps = _globalProps.user) === null || _globalProps === void 0 ? void 0 : _globalProps.timeZone) && isValidTimezone((_globalProps2 = globalProps) === null || _globalProps2 === void 0 || (_globalProps2 = _globalProps2.user) === null || _globalProps2 === void 0 ? void 0 : _globalProps2.timeZone);
|
|
50
61
|
if (shouldInitializeTimezone) {
|
|
51
|
-
var _globalProps3
|
|
52
|
-
pureDayjs.tz.setDefault((_globalProps3 = globalProps) === null || _globalProps3 === void 0
|
|
62
|
+
var _globalProps3;
|
|
63
|
+
pureDayjs.tz.setDefault((_globalProps3 = globalProps) === null || _globalProps3 === void 0 || (_globalProps3 = _globalProps3.user) === null || _globalProps3 === void 0 ? void 0 : _globalProps3.timeZone);
|
|
53
64
|
}
|
|
54
65
|
};
|
|
55
66
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dayjs.js","sources":["../../../src/initializers/dayjs.js"],"sourcesContent":["// eslint-disable-next-line @bigbinary/neeto/use-dayjs-from-neeto-commons-fronted\nimport pureDayjs from \"dayjs\";\nimport advancedFormat from \"dayjs/plugin/advancedFormat\";\nimport
|
|
1
|
+
{"version":3,"file":"dayjs.js","sources":["../../../src/initializers/dayjs.js"],"sourcesContent":["// eslint-disable-next-line @bigbinary/neeto/use-dayjs-from-neeto-commons-fronted\nimport pureDayjs from \"dayjs\";\nimport advancedFormat from \"dayjs/plugin/advancedFormat\";\nimport duration from \"dayjs/plugin/duration\";\nimport isSameOrAfter from \"dayjs/plugin/isSameOrAfter\";\nimport isSameOrBefore from \"dayjs/plugin/isSameOrBefore\";\nimport isToday from \"dayjs/plugin/isToday\";\nimport localeData from \"dayjs/plugin/localeData\";\nimport localizedFormat from \"dayjs/plugin/localizedFormat\";\nimport minMax from \"dayjs/plugin/minMax\";\nimport quarterOfYear from \"dayjs/plugin/quarterOfYear\";\nimport relativeTime from \"dayjs/plugin/relativeTime\";\nimport updateLocale from \"dayjs/plugin/updateLocale\";\nimport utc from \"dayjs/plugin/utc\";\nimport weekday from \"dayjs/plugin/weekday\";\nimport weekOfYear from \"dayjs/plugin/weekOfYear\";\n\nimport customParseFormat from \"../utils/customParseFormatPlugin\";\nimport localePlugin from \"../utils/localePlugin\";\nimport timezone from \"../utils/timezonePlugin\";\n\nconst isValidTimezone = timezone => {\n try {\n pureDayjs().tz(timezone);\n\n return true;\n } catch {\n return false;\n }\n};\n\nconst initializeDayjs = (skipTimezone = false) => {\n pureDayjs.extend(advancedFormat);\n pureDayjs.extend(customParseFormat);\n pureDayjs.extend(duration);\n pureDayjs.extend(isSameOrAfter);\n pureDayjs.extend(isSameOrBefore);\n pureDayjs.extend(isToday);\n pureDayjs.extend(localeData);\n pureDayjs.extend(localizedFormat);\n pureDayjs.extend(minMax);\n pureDayjs.extend(quarterOfYear);\n pureDayjs.extend(relativeTime);\n pureDayjs.extend(timezone);\n pureDayjs.extend(updateLocale);\n pureDayjs.extend(utc);\n pureDayjs.extend(weekday);\n pureDayjs.extend(weekOfYear);\n pureDayjs.extend(localePlugin);\n\n const shouldInitializeTimezone =\n !skipTimezone &&\n globalProps?.user?.timeZone &&\n isValidTimezone(globalProps?.user?.timeZone);\n\n if (shouldInitializeTimezone) {\n pureDayjs.tz.setDefault(globalProps?.user?.timeZone);\n }\n};\n\nexport default initializeDayjs;\n"],"names":["isValidTimezone","timezone","pureDayjs","tz","_unused","initializeDayjs","_globalProps","_globalProps2","skipTimezone","arguments","length","undefined","extend","advancedFormat","customParseFormat","duration","isSameOrAfter","isSameOrBefore","isToday","localeData","localizedFormat","minMax","quarterOfYear","relativeTime","updateLocale","utc","weekday","weekOfYear","localePlugin","shou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Y,CAAC;AAC9BtB,EAAAA,SAAS,CAACU,MAAM,CAACa,GAAG,CAAC;AACrBvB,EAAAA,SAAS,CAACU,MAAM,CAACc,OAAO,CAAC;AACzBxB,EAAAA,SAAS,CAACU,MAAM,CAACe,UAAU,CAAC;AAC5BzB,EAAAA,SAAS,CAACU,MAAM,CAACgB,0BAAY,CAAC;AAE9B,EAAA,IAAMC,wBAAwB,GAC5B,CAACrB,YAAY,KAAA,CAAAF,YAAA,GACbwB,WAAW,MAAA,IAAA,IAAAxB,YAAA,KAAA,MAAA,IAAA,CAAAA,YAAA,GAAXA,YAAA,CAAayB,IAAI,MAAA,IAAA,IAAAzB,YAAA,uBAAjBA,YAAA,CAAmB0B,QAAQ,CAAA,IAC3BhC,eAAe,CAAA,CAAAO,aAAA,GAACuB,WAAW,MAAA,IAAA,IAAAvB,aAAA,KAAA,MAAA,IAAA,CAAAA,aAAA,GAAXA,aAAA,CAAawB,IAAI,MAAA,IAAA,IAAAxB,aAAA,uBAAjBA,aAAA,CAAmByB,QAAQ,CAAC;AAE9C,EAAA,IAAIH,wBAAwB,EAAE;AAAA,IAAA,IAAAI,aAAA;IAC5B/B,SAAS,CAACC,EAAE,CAAC+B,UAAU,EAAAD,aAAA,GAACH,WAAW,MAAA,IAAA,IAAAG,aAAA,KAAA,MAAA,IAAA,CAAAA,aAAA,GAAXA,aAAA,CAAaF,IAAI,MAAA,IAAA,IAAAE,aAAA,KAAA,MAAA,GAAA,MAAA,GAAjBA,aAAA,CAAmBD,QAAQ,CAAC;AACtD,EAAA;AACF;;;;"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/* eslint-disable no-console */
|
|
4
|
+
// Monkey-patches Node.prototype.removeChild and insertBefore to prevent
|
|
5
|
+
// crashes caused by external DOM mutations conflicting with React's virtual
|
|
6
|
+
// DOM reconciliation.
|
|
7
|
+
//
|
|
8
|
+
// Problem:
|
|
9
|
+
// React maintains references to DOM nodes in its virtual DOM. When external
|
|
10
|
+
// libraries or browser features modify or remove those nodes before React's
|
|
11
|
+
// own cleanup runs, React calls removeChild/insertBefore on nodes that no
|
|
12
|
+
// longer exist in the expected parent, causing a crash:
|
|
13
|
+
// - WebKit/iOS: "NotFoundError: The object can not be found here"
|
|
14
|
+
// - Blink: "Failed to execute 'removeChild' on 'Node'"
|
|
15
|
+
//
|
|
16
|
+
// Known triggers:
|
|
17
|
+
// 1. @tippyjs/react portals — @tippyjs/react uses a hybrid DOM model:
|
|
18
|
+
// React renders content into a container via createPortal(), but
|
|
19
|
+
// tippy.js owns the container element and manages its attachment to
|
|
20
|
+
// document.body. On unmount (e.g., route navigation via history.push),
|
|
21
|
+
// tippy.js's destroy() removes the container from the DOM via
|
|
22
|
+
// removeChild(), while React's reconciler is also trying to clean up
|
|
23
|
+
// the portal children inside that same container. If tippy.js removes
|
|
24
|
+
// the container first, React's subsequent removeChild calls fail
|
|
25
|
+
// because the nodes are no longer under the expected parent.
|
|
26
|
+
// 2. Browser translation — Google Translate replaces text nodes with <font>
|
|
27
|
+
// elements. React still holds references to the original text nodes and
|
|
28
|
+
// crashes when trying to remove them.
|
|
29
|
+
//
|
|
30
|
+
// What this patch does:
|
|
31
|
+
// Before calling removeChild/insertBefore, it checks if the node actually
|
|
32
|
+
// belongs to the expected parent. If not, it logs a console.error and
|
|
33
|
+
// returns early instead of crashing the app.
|
|
34
|
+
//
|
|
35
|
+
// Side effect:
|
|
36
|
+
// If application code has a legitimate bug where removeChild is called on
|
|
37
|
+
// the wrong parent, this patch will log an error instead of throwing. The
|
|
38
|
+
// bug will still be visible in the console but won't crash the page. In
|
|
39
|
+
// practice this is rare — removeChild is called by React's internals, not
|
|
40
|
+
// application code, and the only time the parent mismatch occurs is when
|
|
41
|
+
// something external has moved or removed the node.
|
|
42
|
+
//
|
|
43
|
+
// Recommended by Dan Abramov (React core team):
|
|
44
|
+
// https://github.com/facebook/react/issues/11538#issuecomment-417504600
|
|
45
|
+
|
|
46
|
+
function patchDomForExternalMutations() {
|
|
47
|
+
if (typeof Node !== "function" || !Node.prototype) return;
|
|
48
|
+
if (Node.prototype.__neetoPatched) return;
|
|
49
|
+
Object.defineProperty(Node.prototype, "__neetoPatched", {
|
|
50
|
+
value: true,
|
|
51
|
+
enumerable: false,
|
|
52
|
+
configurable: false,
|
|
53
|
+
writable: false
|
|
54
|
+
});
|
|
55
|
+
var originalRemoveChild = Node.prototype.removeChild;
|
|
56
|
+
Node.prototype.removeChild = function (child) {
|
|
57
|
+
if (child.parentNode !== this) {
|
|
58
|
+
if (console) {
|
|
59
|
+
console.error("Cannot remove a child from a different parent", child, this);
|
|
60
|
+
}
|
|
61
|
+
return child;
|
|
62
|
+
}
|
|
63
|
+
return originalRemoveChild.apply(this, arguments);
|
|
64
|
+
};
|
|
65
|
+
var originalInsertBefore = Node.prototype.insertBefore;
|
|
66
|
+
Node.prototype.insertBefore = function (newNode, referenceNode) {
|
|
67
|
+
if (referenceNode && referenceNode.parentNode !== this) {
|
|
68
|
+
if (console) {
|
|
69
|
+
console.error("Cannot insert before a reference node from a different parent", referenceNode, this);
|
|
70
|
+
}
|
|
71
|
+
return newNode;
|
|
72
|
+
}
|
|
73
|
+
return originalInsertBefore.apply(this, arguments);
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
module.exports = patchDomForExternalMutations;
|
|
78
|
+
//# sourceMappingURL=domPatch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domPatch.js","sources":["../../../src/initializers/domPatch.js"],"sourcesContent":["/* eslint-disable no-console */\n// Monkey-patches Node.prototype.removeChild and insertBefore to prevent\n// crashes caused by external DOM mutations conflicting with React's virtual\n// DOM reconciliation.\n//\n// Problem:\n// React maintains references to DOM nodes in its virtual DOM. When external\n// libraries or browser features modify or remove those nodes before React's\n// own cleanup runs, React calls removeChild/insertBefore on nodes that no\n// longer exist in the expected parent, causing a crash:\n// - WebKit/iOS: \"NotFoundError: The object can not be found here\"\n// - Blink: \"Failed to execute 'removeChild' on 'Node'\"\n//\n// Known triggers:\n// 1. @tippyjs/react portals — @tippyjs/react uses a hybrid DOM model:\n// React renders content into a container via createPortal(), but\n// tippy.js owns the container element and manages its attachment to\n// document.body. On unmount (e.g., route navigation via history.push),\n// tippy.js's destroy() removes the container from the DOM via\n// removeChild(), while React's reconciler is also trying to clean up\n// the portal children inside that same container. If tippy.js removes\n// the container first, React's subsequent removeChild calls fail\n// because the nodes are no longer under the expected parent.\n// 2. Browser translation — Google Translate replaces text nodes with <font>\n// elements. React still holds references to the original text nodes and\n// crashes when trying to remove them.\n//\n// What this patch does:\n// Before calling removeChild/insertBefore, it checks if the node actually\n// belongs to the expected parent. If not, it logs a console.error and\n// returns early instead of crashing the app.\n//\n// Side effect:\n// If application code has a legitimate bug where removeChild is called on\n// the wrong parent, this patch will log an error instead of throwing. The\n// bug will still be visible in the console but won't crash the page. In\n// practice this is rare — removeChild is called by React's internals, not\n// application code, and the only time the parent mismatch occurs is when\n// something external has moved or removed the node.\n//\n// Recommended by Dan Abramov (React core team):\n// https://github.com/facebook/react/issues/11538#issuecomment-417504600\n\nexport default function patchDomForExternalMutations() {\n if (typeof Node !== \"function\" || !Node.prototype) return;\n\n if (Node.prototype.__neetoPatched) return;\n\n Object.defineProperty(Node.prototype, \"__neetoPatched\", {\n value: true,\n enumerable: false,\n configurable: false,\n writable: false,\n });\n\n const originalRemoveChild = Node.prototype.removeChild;\n Node.prototype.removeChild = function (child) {\n if (child.parentNode !== this) {\n if (console) {\n console.error(\n \"Cannot remove a child from a different parent\",\n child,\n this\n );\n }\n\n return child;\n }\n\n return originalRemoveChild.apply(this, arguments);\n };\n\n const originalInsertBefore = Node.prototype.insertBefore;\n Node.prototype.insertBefore = function (newNode, referenceNode) {\n if (referenceNode && referenceNode.parentNode !== this) {\n if (console) {\n console.error(\n \"Cannot insert before a reference node from a different parent\",\n referenceNode,\n this\n );\n }\n\n return newNode;\n }\n\n return originalInsertBefore.apply(this, arguments);\n };\n}\n"],"names":["patchDomForExternalMutations","Node","prototype","__neetoPatched","Object","defineProperty","value","enumerable","configurable","writable","originalRemoveChild","removeChild","child","parentNode","console","error","apply","arguments","originalInsertBefore","insertBefore","newNode","referenceNode"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEe,SAASA,4BAA4BA,GAAG;EACrD,IAAI,OAAOC,IAAI,KAAK,UAAU,IAAI,CAACA,IAAI,CAACC,SAAS,EAAE;AAEnD,EAAA,IAAID,IAAI,CAACC,SAAS,CAACC,cAAc,EAAE;EAEnCC,MAAM,CAACC,cAAc,CAACJ,IAAI,CAACC,SAAS,EAAE,gBAAgB,EAAE;AACtDI,IAAAA,KAAK,EAAE,IAAI;AACXC,IAAAA,UAAU,EAAE,KAAK;AACjBC,IAAAA,YAAY,EAAE,KAAK;AACnBC,IAAAA,QAAQ,EAAE;AACZ,GAAC,CAAC;AAEF,EAAA,IAAMC,mBAAmB,GAAGT,IAAI,CAACC,SAAS,CAACS,WAAW;AACtDV,EAAAA,IAAI,CAACC,SAAS,CAACS,WAAW,GAAG,UAAUC,KAAK,EAAE;AAC5C,IAAA,IAAIA,KAAK,CAACC,UAAU,KAAK,IAAI,EAAE;AAC7B,MAAA,IAAIC,OAAO,EAAE;QACXA,OAAO,CAACC,KAAK,CACX,+CAA+C,EAC/CH,KAAK,EACL,IACF,CAAC;AACH,MAAA;AAEA,MAAA,OAAOA,KAAK;AACd,IAAA;AAEA,IAAA,OAAOF,mBAAmB,CAACM,KAAK,CAAC,IAAI,EAAEC,SAAS,CAAC;EACnD,CAAC;AAED,EAAA,IAAMC,oBAAoB,GAAGjB,IAAI,CAACC,SAAS,CAACiB,YAAY;EACxDlB,IAAI,CAACC,SAAS,CAACiB,YAAY,GAAG,UAAUC,OAAO,EAAEC,aAAa,EAAE;AAC9D,IAAA,IAAIA,aAAa,IAAIA,aAAa,CAACR,UAAU,KAAK,IAAI,EAAE;AACtD,MAAA,IAAIC,OAAO,EAAE;QACXA,OAAO,CAACC,KAAK,CACX,+DAA+D,EAC/DM,aAAa,EACb,IACF,CAAC;AACH,MAAA;AAEA,MAAA,OAAOD,OAAO;AAChB,IAAA;AAEA,IAAA,OAAOF,oBAAoB,CAACF,KAAK,CAAC,IAAI,EAAEC,SAAS,CAAC;EACpD,CAAC;AACH;;;;"}
|
|
@@ -4,9 +4,9 @@ var neetoCist = require('@bigbinary/neeto-cist');
|
|
|
4
4
|
|
|
5
5
|
/* eslint-disable @bigbinary/neeto/no-globalProps-reassignment */
|
|
6
6
|
function initializeGlobalProps() {
|
|
7
|
-
var _document$getElements,
|
|
8
|
-
window.globalProps = neetoCist.keysToCamelCase(JSON.parse(((_document$getElements = document.getElementsByClassName("root-container")[0]) === null || _document$getElements === void 0
|
|
9
|
-
if ((_window = window) !== null && _window !== void 0 && (_window
|
|
7
|
+
var _document$getElements, _window;
|
|
8
|
+
window.globalProps = neetoCist.keysToCamelCase(JSON.parse(((_document$getElements = document.getElementsByClassName("root-container")[0]) === null || _document$getElements === void 0 || (_document$getElements = _document$getElements.dataset) === null || _document$getElements === void 0 ? void 0 : _document$getElements.reactProps) || "{}"));
|
|
9
|
+
if ((_window = window) !== null && _window !== void 0 && (_window = _window.globalProps) !== null && _window !== void 0 && _window.appName) {
|
|
10
10
|
window.globalProps.appName = neetoCist.capitalize(window.globalProps.appName);
|
|
11
11
|
}
|
|
12
12
|
neetoCist.deepFreezeObject(window.globalProps);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"globalProps.js","sources":["../../../src/initializers/globalProps.js"],"sourcesContent":["/* eslint-disable @bigbinary/neeto/no-globalProps-reassignment */\nimport { keysToCamelCase, deepFreezeObject, capitalize } from \"neetocist\";\n\nexport default function initializeGlobalProps() {\n window.globalProps = keysToCamelCase(\n JSON.parse(\n document.getElementsByClassName(\"root-container\")[0]?.dataset\n ?.reactProps || \"{}\"\n )\n );\n\n if (window?.globalProps?.appName) {\n window.globalProps.appName = capitalize(window.globalProps.appName);\n }\n\n deepFreezeObject(window.globalProps);\n}\n"],"names":["initializeGlobalProps","_document$getElements","
|
|
1
|
+
{"version":3,"file":"globalProps.js","sources":["../../../src/initializers/globalProps.js"],"sourcesContent":["/* eslint-disable @bigbinary/neeto/no-globalProps-reassignment */\nimport { keysToCamelCase, deepFreezeObject, capitalize } from \"neetocist\";\n\nexport default function initializeGlobalProps() {\n window.globalProps = keysToCamelCase(\n JSON.parse(\n document.getElementsByClassName(\"root-container\")[0]?.dataset\n ?.reactProps || \"{}\"\n )\n );\n\n if (window?.globalProps?.appName) {\n window.globalProps.appName = capitalize(window.globalProps.appName);\n }\n\n deepFreezeObject(window.globalProps);\n}\n"],"names":["initializeGlobalProps","_document$getElements","_window","window","globalProps","keysToCamelCase","JSON","parse","document","getElementsByClassName","dataset","reactProps","appName","capitalize","deepFreezeObject"],"mappings":";;;;AAAA;AAGe,SAASA,qBAAqBA,GAAG;EAAA,IAAAC,qBAAA,EAAAC,OAAA;AAC9CC,EAAAA,MAAM,CAACC,WAAW,GAAGC,yBAAe,CAClCC,IAAI,CAACC,KAAK,CACR,CAAA,CAAAN,qBAAA,GAAAO,QAAQ,CAACC,sBAAsB,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,cAAAR,qBAAA,KAAA,MAAA,IAAA,CAAAA,qBAAA,GAApDA,qBAAA,CAAsDS,OAAO,MAAA,IAAA,IAAAT,qBAAA,uBAA7DA,qBAAA,CACIU,UAAU,KAAI,IACpB,CACF,CAAC;AAED,EAAA,IAAA,CAAAT,OAAA,GAAIC,MAAM,MAAA,IAAA,IAAAD,OAAA,gBAAAA,OAAA,GAANA,OAAA,CAAQE,WAAW,MAAA,IAAA,IAAAF,OAAA,eAAnBA,OAAA,CAAqBU,OAAO,EAAE;AAChCT,IAAAA,MAAM,CAACC,WAAW,CAACQ,OAAO,GAAGC,oBAAU,CAACV,MAAM,CAACC,WAAW,CAACQ,OAAO,CAAC;AACrE,EAAA;AAEAE,EAAAA,0BAAgB,CAACX,MAAM,CAACC,WAAW,CAAC;AACtC;;;;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var IGNORABLE_ERRORS_REGEX = new RegExp(["window.requestAnimationFrame", "ResizeObserver", "ChunkLoadError", "window.webkit.messageHandlers", "Request aborted", "Network Error", "Cannot redefine property: googletag", "Failed to execute 'removeChild' on 'Node'", "Failed to execute 'insertBefore' on 'Node'", "Converting circular structure to JSON[\\s\\S]*__reactFiber", "Can't find variable: disableWebkitEnterFullscreen", "rendererInterfaces is null", "Can't find variable: gmo", "Can't find variable: _AutofillCallbackHandler", "Uncaught NetworkError: Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at 'blob:.*' failed to load.", "Can't find variable: zaloJSV2", "zaloJSV2 is not defined", "Can't find variable: __firefox__", "__firefox__ is not defined", "window\\.__firefox__\\.reader", "window\\.__firefox__\\.refresh_youtube_quality_", "Importing a module script failed", "Failed to fetch dynamically imported module", "error loading dynamically imported module", "Cross-origin script load denied by Cross-Origin Resource Sharing policy", "Unexpected token '='", "e\\.backends is (null|undefined)", "Failed to execute 'importScripts' on 'WorkerGlobalScope':.*monaco-editor.*workerMain.js", "window\\.ethereum\\.selectedAddress"].join("|"));
|
|
4
|
+
var IGNORABLE_STACKS_REGEX = new RegExp(["chrome-extension://", "moz-extension://", "safari-web-extension://", "safari-extension://", "ms-browser-extension://", "js-agent\\.newrelic\\.com", "cdn\\.inspectlet\\.com", "static\\.cloudflareinsights\\.com",
|
|
5
|
+
// Scripts injected by Meta's in-app browsers (Instagram/Facebook) into every
|
|
6
|
+
// page they render. They fail in non-secure contexts (http pages, or https
|
|
7
|
+
// pages iframed inside an http parent) before our code ever runs.
|
|
8
|
+
"initInjectedKey", "setContactAutofillValuesFromBridge"].join("|"));
|
|
9
|
+
var IGNORABLE_ERROR_NAMES_REGEX = /(ChunkLoadError)/;
|
|
10
|
+
|
|
11
|
+
exports.IGNORABLE_ERRORS_REGEX = IGNORABLE_ERRORS_REGEX;
|
|
12
|
+
exports.IGNORABLE_ERROR_NAMES_REGEX = IGNORABLE_ERROR_NAMES_REGEX;
|
|
13
|
+
exports.IGNORABLE_STACKS_REGEX = IGNORABLE_STACKS_REGEX;
|
|
14
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sources":["../../../../src/initializers/honeybadger/constants.js"],"sourcesContent":["export const IGNORABLE_ERRORS_REGEX = new RegExp(\n [\n \"window.requestAnimationFrame\",\n \"ResizeObserver\",\n \"ChunkLoadError\",\n \"window.webkit.messageHandlers\",\n \"Request aborted\",\n \"Network Error\",\n \"Cannot redefine property: googletag\",\n \"Failed to execute 'removeChild' on 'Node'\",\n \"Failed to execute 'insertBefore' on 'Node'\",\n \"Converting circular structure to JSON[\\\\s\\\\S]*__reactFiber\",\n \"Can't find variable: disableWebkitEnterFullscreen\",\n \"rendererInterfaces is null\",\n \"Can't find variable: gmo\",\n \"Can't find variable: _AutofillCallbackHandler\",\n \"Uncaught NetworkError: Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at 'blob:.*' failed to load.\",\n \"Can't find variable: zaloJSV2\",\n \"zaloJSV2 is not defined\",\n \"Can't find variable: __firefox__\",\n \"__firefox__ is not defined\",\n \"window\\\\.__firefox__\\\\.reader\",\n \"window\\\\.__firefox__\\\\.refresh_youtube_quality_\",\n \"Importing a module script failed\",\n \"Failed to fetch dynamically imported module\",\n \"error loading dynamically imported module\",\n \"Cross-origin script load denied by Cross-Origin Resource Sharing policy\",\n \"Unexpected token '='\",\n \"e\\\\.backends is (null|undefined)\",\n \"Failed to execute 'importScripts' on 'WorkerGlobalScope':.*monaco-editor.*workerMain.js\",\n \"window\\\\.ethereum\\\\.selectedAddress\",\n ].join(\"|\")\n);\n\nexport const IGNORABLE_STACKS_REGEX = new RegExp(\n [\n \"chrome-extension://\",\n \"moz-extension://\",\n \"safari-web-extension://\",\n \"safari-extension://\",\n \"ms-browser-extension://\",\n \"js-agent\\\\.newrelic\\\\.com\",\n \"cdn\\\\.inspectlet\\\\.com\",\n \"static\\\\.cloudflareinsights\\\\.com\",\n // Scripts injected by Meta's in-app browsers (Instagram/Facebook) into every\n // page they render. They fail in non-secure contexts (http pages, or https\n // pages iframed inside an http parent) before our code ever runs.\n \"initInjectedKey\",\n \"setContactAutofillValuesFromBridge\",\n ].join(\"|\")\n);\n\nexport const IGNORABLE_ERROR_NAMES_REGEX = /(ChunkLoadError)/;\n"],"names":["IGNORABLE_ERRORS_REGEX","RegExp","join","IGNORABLE_STACKS_REGEX","IGNORABLE_ERROR_NAMES_REGEX"],"mappings":";;AAAO,IAAMA,sBAAsB,GAAG,IAAIC,MAAM,CAC9C,CACE,8BAA8B,EAC9B,gBAAgB,EAChB,gBAAgB,EAChB,+BAA+B,EAC/B,iBAAiB,EACjB,eAAe,EACf,qCAAqC,EACrC,2CAA2C,EAC3C,4CAA4C,EAC5C,4DAA4D,EAC5D,mDAAmD,EACnD,4BAA4B,EAC5B,0BAA0B,EAC1B,+CAA+C,EAC/C,0HAA0H,EAC1H,+BAA+B,EAC/B,yBAAyB,EACzB,kCAAkC,EAClC,4BAA4B,EAC5B,+BAA+B,EAC/B,iDAAiD,EACjD,kCAAkC,EAClC,6CAA6C,EAC7C,2CAA2C,EAC3C,yEAAyE,EACzE,sBAAsB,EACtB,kCAAkC,EAClC,yFAAyF,EACzF,qCAAqC,CACtC,CAACC,IAAI,CAAC,GAAG,CACZ;AAEO,IAAMC,sBAAsB,GAAG,IAAIF,MAAM,CAC9C,CACE,qBAAqB,EACrB,kBAAkB,EAClB,yBAAyB,EACzB,qBAAqB,EACrB,yBAAyB,EACzB,2BAA2B,EAC3B,wBAAwB,EACxB,mCAAmC;AACnC;AACA;AACA;AACA,iBAAiB,EACjB,oCAAoC,CACrC,CAACC,IAAI,CAAC,GAAG,CACZ;AAEO,IAAME,2BAA2B,GAAG;;;;;;"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var defineProperty = require('../../defineProperty-COGyJ6Og.js');
|
|
6
|
+
var react = require('@honeybadger-io/react');
|
|
7
|
+
var initializers_honeybadger_constants = require('./constants.js');
|
|
8
|
+
var initializers_honeybadger_utils = require('./utils.js');
|
|
9
|
+
require('../../toPropertyKey-DW-YC76_.js');
|
|
10
|
+
require('../../typeof-D4ZZ_FlZ.js');
|
|
11
|
+
|
|
12
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { defineProperty._defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14
|
+
var activeFilterErrors = null;
|
|
15
|
+
var beforeNotifyRegistered = false;
|
|
16
|
+
function initializeHoneybadger() {
|
|
17
|
+
var _window$globalProps2, _window$globalProps3, _window$globalProps4;
|
|
18
|
+
var overrides = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
19
|
+
if (!beforeNotifyRegistered) {
|
|
20
|
+
beforeNotifyRegistered = true;
|
|
21
|
+
react.Honeybadger.beforeNotify(function (notice) {
|
|
22
|
+
var _activeFilterErrors, _window$globalProps;
|
|
23
|
+
if (!notice) return false;
|
|
24
|
+
var isIgnorable = initializers_honeybadger_constants.IGNORABLE_ERRORS_REGEX.test(notice.message) || initializers_honeybadger_constants.IGNORABLE_ERROR_NAMES_REGEX.test(notice.name) || initializers_honeybadger_constants.IGNORABLE_STACKS_REGEX.test(notice.stack) || initializers_honeybadger_utils.isNeetoReplaySecurityError(notice) || initializers_honeybadger_utils.isAnonymousScriptError(notice) || ((_activeFilterErrors = activeFilterErrors) === null || _activeFilterErrors === void 0 ? void 0 : _activeFilterErrors(notice)) === false;
|
|
25
|
+
if (isIgnorable) return false;
|
|
26
|
+
var context = {
|
|
27
|
+
errorClass: notice.name
|
|
28
|
+
};
|
|
29
|
+
var user = (_window$globalProps = window.globalProps) === null || _window$globalProps === void 0 || (_window$globalProps = _window$globalProps.user) === null || _window$globalProps === void 0 ? void 0 : _window$globalProps.email;
|
|
30
|
+
if (user) context.user = user;
|
|
31
|
+
var sessionReplay = initializers_honeybadger_utils.getSessionReplayUrl();
|
|
32
|
+
if (sessionReplay) context.sessionReplay = sessionReplay;
|
|
33
|
+
initializers_honeybadger_utils.attachContext(notice, context);
|
|
34
|
+
return true;
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
return react.Honeybadger.configure(_objectSpread({
|
|
38
|
+
apiKey: (_window$globalProps2 = window.globalProps) === null || _window$globalProps2 === void 0 ? void 0 : _window$globalProps2.honeybadgerApiKey,
|
|
39
|
+
environment: (_window$globalProps3 = window.globalProps) === null || _window$globalProps3 === void 0 ? void 0 : _window$globalProps3.railsEnv,
|
|
40
|
+
revision: (_window$globalProps4 = window.globalProps) === null || _window$globalProps4 === void 0 ? void 0 : _window$globalProps4.honeybadgerRevision,
|
|
41
|
+
developmentEnvironments: ["development", "test"],
|
|
42
|
+
enableUncaught: true,
|
|
43
|
+
async: true,
|
|
44
|
+
breadcrumbsEnabled: true,
|
|
45
|
+
projectRoot: "",
|
|
46
|
+
enableUnhandledRejection: false
|
|
47
|
+
}, overrides));
|
|
48
|
+
}
|
|
49
|
+
var setHoneybadgerErrorFilter = function setHoneybadgerErrorFilter(fn) {
|
|
50
|
+
activeFilterErrors = fn;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
exports.default = initializeHoneybadger;
|
|
54
|
+
exports.setHoneybadgerErrorFilter = setHoneybadgerErrorFilter;
|
|
55
|
+
//# sourceMappingURL=index.js.map
|