@bigbinary/neeto-commons-frontend 4.13.29 → 4.13.31
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/configs/eslint/globals.mjs +22 -0
- package/configs/eslint/helpers/{index.js → index.mjs} +8 -4
- package/configs/eslint/imports/enforced.mjs +34 -0
- package/configs/eslint/imports/order.mjs +71 -0
- package/configs/eslint/index.mjs +206 -0
- package/configs/eslint/overrides.mjs +28 -0
- package/configs/eslint/promise.mjs +12 -0
- package/configs/eslint/react.mjs +94 -0
- package/configs/nanos/eslint/imports/order.mjs +44 -0
- package/configs/nanos/eslint/index.mjs +21 -0
- package/configs/nextjs/eslint/imports/order.mjs +46 -0
- package/configs/nextjs/eslint/index.mjs +21 -0
- package/dist/cjs/constants/index.js.map +1 -1
- package/dist/cjs/constants/regex.js.map +1 -1
- package/dist/cjs/cypress-utils/.eslintrc.js.map +1 -1
- package/dist/cjs/cypress-utils/commands.js +2 -3
- package/dist/cjs/cypress-utils/commands.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/index.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/routes.js +1 -2
- package/dist/cjs/cypress-utils/constants/routes.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/selectors/common.js +1 -2
- package/dist/cjs/cypress-utils/constants/selectors/common.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/selectors/editor.js +1 -2
- package/dist/cjs/cypress-utils/constants/selectors/editor.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/selectors/ipRestriction.js +1 -2
- package/dist/cjs/cypress-utils/constants/selectors/ipRestriction.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/selectors/login.js +1 -2
- package/dist/cjs/cypress-utils/constants/selectors/login.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/selectors/member.js +1 -2
- package/dist/cjs/cypress-utils/constants/selectors/member.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/selectors/navigation.js +1 -2
- package/dist/cjs/cypress-utils/constants/selectors/navigation.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/selectors/roles.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/selectors/signUp.js +1 -2
- package/dist/cjs/cypress-utils/constants/selectors/signUp.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/selectors/tags.js +1 -2
- package/dist/cjs/cypress-utils/constants/selectors/tags.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/texts/common.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/texts/member.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/texts/navigation.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/texts/roles.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/texts/signUp.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/texts/tags.js.map +1 -1
- package/dist/cjs/cypress-utils/fixtures/fake.js.map +1 -1
- package/dist/cjs/cypress-utils/index.js +1 -2
- package/dist/cjs/cypress-utils/index.js.map +1 -1
- package/dist/cjs/cypress-utils/utils/authentication.js +1 -2
- package/dist/cjs/cypress-utils/utils/authentication.js.map +1 -1
- package/dist/cjs/cypress-utils/utils/common.js +2 -3
- package/dist/cjs/cypress-utils/utils/common.js.map +1 -1
- package/dist/cjs/cypress-utils/utils/date.js.map +1 -1
- package/dist/cjs/cypress-utils/utils/email.js +2 -3
- package/dist/cjs/cypress-utils/utils/email.js.map +1 -1
- package/dist/cjs/cypress-utils/utils/member.js +11 -12
- package/dist/cjs/cypress-utils/utils/member.js.map +1 -1
- package/dist/cjs/cypress-utils/utils/navigation.js +1 -2
- package/dist/cjs/cypress-utils/utils/navigation.js.map +1 -1
- package/dist/cjs/cypress-utils/utils/organization.js +1 -2
- package/dist/cjs/cypress-utils/utils/organization.js.map +1 -1
- package/dist/cjs/cypress-utils/utils/validation.js +1 -2
- package/dist/cjs/cypress-utils/utils/validation.js.map +1 -1
- package/dist/cjs/{toPropertyKey-CRgrohXG.js → defineProperty-lChFfVqi.js} +12 -2
- package/dist/cjs/defineProperty-lChFfVqi.js.map +1 -0
- package/dist/cjs/{index-DDd00LFf.js → index-CUYe6FO0.js} +16 -16
- package/dist/cjs/index-CUYe6FO0.js.map +1 -0
- package/dist/cjs/initializers/axios.js +1 -2
- package/dist/cjs/initializers/axios.js.map +1 -1
- package/dist/cjs/initializers/axiosInitializer/index.js +1 -2
- 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.map +1 -1
- package/dist/cjs/initializers/dayjs.js.map +1 -1
- package/dist/cjs/initializers/globalProps.js.map +1 -1
- package/dist/cjs/initializers/i18n.js +59 -11
- package/dist/cjs/initializers/i18n.js.map +1 -1
- package/dist/cjs/initializers/index.js +3 -6
- package/dist/cjs/initializers/index.js.map +1 -1
- package/dist/cjs/initializers/logger.js.map +1 -1
- package/dist/cjs/initializers/mixpanel.js +5 -6
- package/dist/cjs/initializers/mixpanel.js.map +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 +1 -1
- package/dist/cjs/initializers/utils/utils.js.map +1 -1
- package/dist/cjs/mixpanel.module-ajRn5e0J.js +22401 -0
- package/dist/cjs/mixpanel.module-ajRn5e0J.js.map +1 -0
- package/dist/cjs/objectWithoutProperties-wSsbHFcG.js.map +1 -1
- package/dist/cjs/react-utils/AppContainer/AppContainer.js +3 -4
- package/dist/cjs/react-utils/AppContainer/AppContainer.js.map +1 -1
- package/dist/cjs/react-utils/AppContainer/index.js +1 -2
- 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 -1
- package/dist/cjs/react-utils/BrowserPushNotifications/pushHelper.js +1 -1
- package/dist/cjs/react-utils/BrowserPushNotifications/pushHelper.js.map +1 -1
- package/dist/cjs/react-utils/BrowserPushNotifications/registerServiceWorker.js +1 -1
- package/dist/cjs/react-utils/BrowserPushNotifications/registerServiceWorker.js.map +1 -1
- package/dist/cjs/react-utils/HoneybadgerErrorBoundary/FallbackComponent.js +2 -3
- package/dist/cjs/react-utils/HoneybadgerErrorBoundary/FallbackComponent.js.map +1 -1
- package/dist/cjs/react-utils/HoneybadgerErrorBoundary/HoneybadgerErrorBoundary.js +2 -3
- package/dist/cjs/react-utils/HoneybadgerErrorBoundary/HoneybadgerErrorBoundary.js.map +1 -1
- package/dist/cjs/react-utils/HoneybadgerErrorBoundary/constants.js +2 -0
- package/dist/cjs/react-utils/HoneybadgerErrorBoundary/constants.js.map +1 -1
- package/dist/cjs/react-utils/HoneybadgerErrorBoundary/index.js +1 -2
- package/dist/cjs/react-utils/HoneybadgerErrorBoundary/index.js.map +1 -1
- package/dist/cjs/react-utils/HoneybadgerErrorBoundary/utils.js.map +1 -1
- package/dist/cjs/react-utils/PageTitle/PageTitle.js.map +1 -1
- package/dist/cjs/react-utils/PrivateRoute/PrivateRoute.js +2 -3
- package/dist/cjs/react-utils/PrivateRoute/PrivateRoute.js.map +1 -1
- package/dist/cjs/react-utils/PrivateRoute/index.js +1 -2
- package/dist/cjs/react-utils/PrivateRoute/index.js.map +1 -1
- 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 +4 -6
- package/dist/cjs/react-utils/index.js.map +1 -1
- package/dist/cjs/react-utils/metaClick/metaClick.js.map +1 -1
- package/dist/cjs/react-utils/useBreakpoints/index.js +1 -2
- package/dist/cjs/react-utils/useBreakpoints/index.js.map +1 -1
- package/dist/cjs/react-utils/useBreakpoints/utils.js +2 -3
- package/dist/cjs/react-utils/useBreakpoints/utils.js.map +1 -1
- package/dist/cjs/react-utils/useDebounce/index.js +1 -1
- package/dist/cjs/react-utils/useDebounce/useDebounce.js +1 -1
- package/dist/cjs/react-utils/useDebounce/useDebounce.js.map +1 -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 +3 -4
- package/dist/cjs/react-utils/useFetchNeetoApps/index.js.map +1 -1
- package/dist/cjs/react-utils/useFetchNeetoApps/useFetchNeetoApps.js +4 -5
- package/dist/cjs/react-utils/useFetchNeetoApps/useFetchNeetoApps.js.map +1 -1
- package/dist/cjs/react-utils/useFieldSubmit/useFieldSubmit.js.map +1 -1
- package/dist/cjs/react-utils/useFuncDebounce/useFuncDebounce.js.map +1 -1
- package/dist/cjs/react-utils/useIsElementVisibleInDom/index.js +1 -1
- package/dist/cjs/react-utils/useIsElementVisibleInDom/useForceUpdate.js +1 -1
- package/dist/cjs/react-utils/useIsElementVisibleInDom/useForceUpdate.js.map +1 -1
- package/dist/cjs/react-utils/useIsElementVisibleInDom/useIsElementVisibleInDom.js +1 -1
- package/dist/cjs/react-utils/useIsElementVisibleInDom/useIsElementVisibleInDom.js.map +1 -1
- package/dist/cjs/react-utils/useKeyboardShortcutsPaneState/useKeyboardShortcutsPaneState.js.map +1 -1
- package/dist/cjs/react-utils/useLocalStorage/index.js +4 -6
- package/dist/cjs/react-utils/useLocalStorage/index.js.map +1 -1
- package/dist/cjs/react-utils/useLocalStorage/useLocalStorage.js +4 -6
- package/dist/cjs/react-utils/useLocalStorage/useLocalStorage.js.map +1 -1
- package/dist/cjs/react-utils/useMutationWithInvalidation/index.js +1 -2
- package/dist/cjs/react-utils/useMutationWithInvalidation/index.js.map +1 -1
- package/dist/cjs/react-utils/useMutationWithInvalidation/useMutationWithInvalidation.js +2 -3
- package/dist/cjs/react-utils/useMutationWithInvalidation/useMutationWithInvalidation.js.map +1 -1
- package/dist/cjs/react-utils/useOnClickOutside/useOnClickOutside.js.map +1 -1
- package/dist/cjs/react-utils/usePersistedQuery/index.js +3 -4
- package/dist/cjs/react-utils/usePersistedQuery/index.js.map +1 -1
- package/dist/cjs/react-utils/usePersistedQuery/usePersistedQuery.js +4 -5
- package/dist/cjs/react-utils/usePersistedQuery/usePersistedQuery.js.map +1 -1
- package/dist/cjs/react-utils/usePrevious/usePrevious.js.map +1 -1
- package/dist/cjs/react-utils/useQueryParams/index.js +3 -4
- package/dist/cjs/react-utils/useQueryParams/index.js.map +1 -1
- package/dist/cjs/react-utils/useQueryParams/useQueryParams.js +3 -4
- package/dist/cjs/react-utils/useQueryParams/useQueryParams.js.map +1 -1
- package/dist/cjs/react-utils/useRegisterNavigationCheckpoint/index.js +3 -4
- package/dist/cjs/react-utils/useRegisterNavigationCheckpoint/index.js.map +1 -1
- package/dist/cjs/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js +4 -5
- package/dist/cjs/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js.map +1 -1
- package/dist/cjs/react-utils/useRestoreScrollPosition/useRestoreScrollPosition.js.map +1 -1
- package/dist/cjs/react-utils/useStateWithDependency/index.js +1 -1
- package/dist/cjs/react-utils/useStateWithDependency/useStateWithDependency.js +1 -1
- package/dist/cjs/react-utils/useStateWithDependency/useStateWithDependency.js.map +1 -1
- package/dist/cjs/react-utils/useTimer/useTimer.js.map +1 -1
- 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 +1 -2
- package/dist/cjs/react-utils/withTitle/index.js.map +1 -1
- package/dist/cjs/react-utils/withTitle/withTitle.js +2 -3
- package/dist/cjs/react-utils/withTitle/withTitle.js.map +1 -1
- package/dist/cjs/{slicedToArray-Cbh2WzDH.js → slicedToArray-BcL7fKuL.js} +4 -4
- package/dist/cjs/{slicedToArray-Cbh2WzDH.js.map → slicedToArray-BcL7fKuL.js.map} +1 -1
- package/dist/cjs/toConsumableArray-tBKHqzE3.js.map +1 -1
- package/dist/cjs/typeof-D4ZZ_FlZ.js.map +1 -1
- package/dist/cjs/unsupportedIterableToArray-BoHMiKNA.js.map +1 -1
- package/dist/cjs/utils/axios.js.map +1 -1
- package/dist/cjs/utils/buildNestedAttributesPayload.js +2 -3
- package/dist/cjs/utils/buildNestedAttributesPayload.js.map +1 -1
- package/dist/cjs/utils/captureAnalyticsEvent.js +2 -3
- package/dist/cjs/utils/captureAnalyticsEvent.js.map +1 -1
- package/dist/cjs/utils/captureAnalyticsPageView.js +4 -6
- package/dist/cjs/utils/captureAnalyticsPageView.js.map +1 -1
- package/dist/cjs/utils/createSubscription.js +3 -4
- package/dist/cjs/utils/createSubscription.js.map +1 -1
- package/dist/cjs/utils/currencyFormat.js +2 -3
- package/dist/cjs/utils/currencyFormat.js.map +1 -1
- package/dist/cjs/utils/datetime.js +1 -3
- package/dist/cjs/utils/datetime.js.map +1 -1
- package/dist/cjs/utils/dayjs.js +20 -6
- package/dist/cjs/utils/dayjs.js.map +1 -1
- package/dist/cjs/utils/general.js +4 -5
- package/dist/cjs/utils/general.js.map +1 -1
- package/dist/cjs/utils/index.js +4 -6
- package/dist/cjs/utils/index.js.map +1 -1
- package/dist/cjs/utils/loadGoogleFonts.js.map +1 -1
- package/dist/cjs/utils/permissions.js.map +1 -1
- package/dist/cjs/utils/timezonePlugin.js +3 -4
- package/dist/cjs/utils/timezonePlugin.js.map +1 -1
- package/dist/cjs/utils/validators/slug.js.map +1 -1
- package/dist/constants/index.js.map +1 -1
- package/dist/constants/regex.js.map +1 -1
- package/dist/cypress-utils/.eslintrc.js.map +1 -1
- package/dist/cypress-utils/commands.js +2 -3
- package/dist/cypress-utils/commands.js.map +1 -1
- package/dist/cypress-utils/constants/index.js.map +1 -1
- package/dist/cypress-utils/constants/routes.js +2 -3
- package/dist/cypress-utils/constants/routes.js.map +1 -1
- package/dist/cypress-utils/constants/selectors/common.js +2 -3
- package/dist/cypress-utils/constants/selectors/common.js.map +1 -1
- package/dist/cypress-utils/constants/selectors/editor.js +1 -2
- package/dist/cypress-utils/constants/selectors/editor.js.map +1 -1
- package/dist/cypress-utils/constants/selectors/ipRestriction.js +1 -2
- package/dist/cypress-utils/constants/selectors/ipRestriction.js.map +1 -1
- package/dist/cypress-utils/constants/selectors/login.js +1 -2
- package/dist/cypress-utils/constants/selectors/login.js.map +1 -1
- package/dist/cypress-utils/constants/selectors/member.js +1 -2
- package/dist/cypress-utils/constants/selectors/member.js.map +1 -1
- package/dist/cypress-utils/constants/selectors/navigation.js +1 -2
- package/dist/cypress-utils/constants/selectors/navigation.js.map +1 -1
- package/dist/cypress-utils/constants/selectors/roles.js.map +1 -1
- package/dist/cypress-utils/constants/selectors/signUp.js +1 -2
- package/dist/cypress-utils/constants/selectors/signUp.js.map +1 -1
- package/dist/cypress-utils/constants/selectors/tags.js +1 -2
- package/dist/cypress-utils/constants/selectors/tags.js.map +1 -1
- package/dist/cypress-utils/constants/texts/common.js.map +1 -1
- package/dist/cypress-utils/constants/texts/member.js.map +1 -1
- package/dist/cypress-utils/constants/texts/navigation.js.map +1 -1
- package/dist/cypress-utils/constants/texts/roles.js.map +1 -1
- package/dist/cypress-utils/constants/texts/signUp.js.map +1 -1
- package/dist/cypress-utils/constants/texts/tags.js.map +1 -1
- package/dist/cypress-utils/fixtures/fake.js.map +1 -1
- package/dist/cypress-utils/index.js +1 -2
- package/dist/cypress-utils/index.js.map +1 -1
- package/dist/cypress-utils/utils/authentication.js +2 -3
- package/dist/cypress-utils/utils/authentication.js.map +1 -1
- package/dist/cypress-utils/utils/common.js +2 -3
- package/dist/cypress-utils/utils/common.js.map +1 -1
- package/dist/cypress-utils/utils/date.js.map +1 -1
- package/dist/cypress-utils/utils/email.js +2 -3
- package/dist/cypress-utils/utils/email.js.map +1 -1
- package/dist/cypress-utils/utils/member.js +12 -13
- package/dist/cypress-utils/utils/member.js.map +1 -1
- package/dist/cypress-utils/utils/navigation.js +3 -4
- package/dist/cypress-utils/utils/navigation.js.map +1 -1
- package/dist/cypress-utils/utils/organization.js +1 -2
- package/dist/cypress-utils/utils/organization.js.map +1 -1
- package/dist/cypress-utils/utils/validation.js +1 -2
- package/dist/cypress-utils/utils/validation.js.map +1 -1
- package/dist/{toPropertyKey-C6Y0u0Sf.js → defineProperty-CrCYjjU3.js} +12 -3
- package/dist/defineProperty-CrCYjjU3.js.map +1 -0
- package/dist/{index-D_s_toMy.js → index-COfUw8MU.js} +16 -16
- package/dist/index-COfUw8MU.js.map +1 -0
- package/dist/initializers/axios.js +1 -2
- package/dist/initializers/axios.js.map +1 -1
- package/dist/initializers/axiosInitializer/index.js +1 -2
- package/dist/initializers/axiosInitializer/index.js.map +1 -1
- package/dist/initializers/axiosInitializer/paramsSerializer.js.map +1 -1
- package/dist/initializers/constants.js.map +1 -1
- package/dist/initializers/dayjs.js.map +1 -1
- package/dist/initializers/globalProps.js.map +1 -1
- package/dist/initializers/i18n.js +58 -10
- package/dist/initializers/i18n.js.map +1 -1
- package/dist/initializers/index.js +3 -6
- package/dist/initializers/index.js.map +1 -1
- package/dist/initializers/logger.js.map +1 -1
- package/dist/initializers/mixpanel.js +1 -2
- package/dist/initializers/mixpanel.js.map +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 +1 -1
- package/dist/initializers/utils/utils.js.map +1 -1
- package/dist/mixpanel.module-Bu2zrBMQ.js +22399 -0
- package/dist/mixpanel.module-Bu2zrBMQ.js.map +1 -0
- package/dist/objectWithoutProperties-DN7d1SzH.js.map +1 -1
- package/dist/react-utils/AppContainer/AppContainer.js +3 -4
- package/dist/react-utils/AppContainer/AppContainer.js.map +1 -1
- package/dist/react-utils/AppContainer/index.js +1 -2
- 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 -1
- package/dist/react-utils/BrowserPushNotifications/pushHelper.js +1 -1
- package/dist/react-utils/BrowserPushNotifications/pushHelper.js.map +1 -1
- package/dist/react-utils/BrowserPushNotifications/registerServiceWorker.js +1 -1
- package/dist/react-utils/BrowserPushNotifications/registerServiceWorker.js.map +1 -1
- package/dist/react-utils/HoneybadgerErrorBoundary/FallbackComponent.js +2 -3
- package/dist/react-utils/HoneybadgerErrorBoundary/FallbackComponent.js.map +1 -1
- package/dist/react-utils/HoneybadgerErrorBoundary/HoneybadgerErrorBoundary.js +3 -4
- package/dist/react-utils/HoneybadgerErrorBoundary/HoneybadgerErrorBoundary.js.map +1 -1
- package/dist/react-utils/HoneybadgerErrorBoundary/constants.js +2 -1
- package/dist/react-utils/HoneybadgerErrorBoundary/constants.js.map +1 -1
- package/dist/react-utils/HoneybadgerErrorBoundary/index.js +1 -2
- package/dist/react-utils/HoneybadgerErrorBoundary/index.js.map +1 -1
- package/dist/react-utils/HoneybadgerErrorBoundary/utils.js.map +1 -1
- package/dist/react-utils/PageTitle/PageTitle.js.map +1 -1
- package/dist/react-utils/PrivateRoute/PrivateRoute.js +2 -3
- package/dist/react-utils/PrivateRoute/PrivateRoute.js.map +1 -1
- package/dist/react-utils/PrivateRoute/index.js +1 -2
- package/dist/react-utils/PrivateRoute/index.js.map +1 -1
- 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 +4 -6
- package/dist/react-utils/index.js.map +1 -1
- package/dist/react-utils/metaClick/metaClick.js.map +1 -1
- package/dist/react-utils/useBreakpoints/index.js +1 -2
- package/dist/react-utils/useBreakpoints/index.js.map +1 -1
- package/dist/react-utils/useBreakpoints/utils.js +2 -3
- package/dist/react-utils/useBreakpoints/utils.js.map +1 -1
- package/dist/react-utils/useDebounce/index.js +1 -1
- package/dist/react-utils/useDebounce/useDebounce.js +1 -1
- package/dist/react-utils/useDebounce/useDebounce.js.map +1 -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 +3 -4
- package/dist/react-utils/useFetchNeetoApps/index.js.map +1 -1
- package/dist/react-utils/useFetchNeetoApps/useFetchNeetoApps.js +4 -5
- 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 +1 -1
- package/dist/react-utils/useIsElementVisibleInDom/useForceUpdate.js +1 -1
- package/dist/react-utils/useIsElementVisibleInDom/useForceUpdate.js.map +1 -1
- package/dist/react-utils/useIsElementVisibleInDom/useIsElementVisibleInDom.js +1 -1
- package/dist/react-utils/useIsElementVisibleInDom/useIsElementVisibleInDom.js.map +1 -1
- package/dist/react-utils/useKeyboardShortcutsPaneState/useKeyboardShortcutsPaneState.js.map +1 -1
- package/dist/react-utils/useLocalStorage/index.js +4 -6
- package/dist/react-utils/useLocalStorage/index.js.map +1 -1
- package/dist/react-utils/useLocalStorage/useLocalStorage.js +4 -6
- package/dist/react-utils/useLocalStorage/useLocalStorage.js.map +1 -1
- package/dist/react-utils/useMutationWithInvalidation/index.js +1 -2
- package/dist/react-utils/useMutationWithInvalidation/index.js.map +1 -1
- package/dist/react-utils/useMutationWithInvalidation/useMutationWithInvalidation.js +2 -3
- 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 +3 -4
- package/dist/react-utils/usePersistedQuery/index.js.map +1 -1
- package/dist/react-utils/usePersistedQuery/usePersistedQuery.js +5 -6
- package/dist/react-utils/usePersistedQuery/usePersistedQuery.js.map +1 -1
- package/dist/react-utils/usePrevious/usePrevious.js.map +1 -1
- package/dist/react-utils/useQueryParams/index.js +3 -4
- package/dist/react-utils/useQueryParams/index.js.map +1 -1
- package/dist/react-utils/useQueryParams/useQueryParams.js +3 -4
- package/dist/react-utils/useQueryParams/useQueryParams.js.map +1 -1
- package/dist/react-utils/useRegisterNavigationCheckpoint/index.js +3 -4
- package/dist/react-utils/useRegisterNavigationCheckpoint/index.js.map +1 -1
- package/dist/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js +5 -6
- 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 +1 -1
- package/dist/react-utils/useStateWithDependency/useStateWithDependency.js +1 -1
- 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 +1 -2
- package/dist/react-utils/withTitle/index.js.map +1 -1
- package/dist/react-utils/withTitle/withTitle.js +2 -3
- package/dist/react-utils/withTitle/withTitle.js.map +1 -1
- package/dist/{slicedToArray-BWOQ_OdI.js → slicedToArray-DmsZvA_9.js} +4 -4
- package/dist/{slicedToArray-BWOQ_OdI.js.map → slicedToArray-DmsZvA_9.js.map} +1 -1
- package/dist/toConsumableArray-B7CFjjkW.js.map +1 -1
- package/dist/typeof-D-UKOauR.js.map +1 -1
- package/dist/unsupportedIterableToArray-Dqz8Y8_I.js.map +1 -1
- package/dist/utils/axios.js.map +1 -1
- package/dist/utils/buildNestedAttributesPayload.js +2 -3
- package/dist/utils/buildNestedAttributesPayload.js.map +1 -1
- package/dist/utils/captureAnalyticsEvent.js +1 -2
- package/dist/utils/captureAnalyticsEvent.js.map +1 -1
- package/dist/utils/captureAnalyticsPageView.js +3 -5
- package/dist/utils/captureAnalyticsPageView.js.map +1 -1
- package/dist/utils/createSubscription.js +3 -4
- package/dist/utils/createSubscription.js.map +1 -1
- package/dist/utils/currencyFormat.js +2 -3
- package/dist/utils/currencyFormat.js.map +1 -1
- package/dist/utils/datetime.js +1 -3
- package/dist/utils/datetime.js.map +1 -1
- package/dist/utils/dayjs.js +18 -4
- package/dist/utils/dayjs.js.map +1 -1
- package/dist/utils/general.js +6 -7
- package/dist/utils/general.js.map +1 -1
- package/dist/utils/index.js +4 -6
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/loadGoogleFonts.js.map +1 -1
- package/dist/utils/permissions.js.map +1 -1
- package/dist/utils/timezonePlugin.js +3 -4
- package/dist/utils/timezonePlugin.js.map +1 -1
- package/dist/utils/validators/slug.js.map +1 -1
- package/package.json +27 -21
- 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/dist/cjs/createClass-DtcoOmOY.js +0 -23
- package/dist/cjs/createClass-DtcoOmOY.js.map +0 -1
- package/dist/cjs/defineProperty-BB_r6qQ2.js +0 -15
- package/dist/cjs/defineProperty-BB_r6qQ2.js.map +0 -1
- package/dist/cjs/index-DDd00LFf.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/toPropertyKey-CRgrohXG.js.map +0 -1
- package/dist/createClass-BvEaZs3T.js +0 -20
- package/dist/createClass-BvEaZs3T.js.map +0 -1
- package/dist/defineProperty-DuFCEj0A.js +0 -13
- package/dist/defineProperty-DuFCEj0A.js.map +0 -1
- package/dist/index-D_s_toMy.js.map +0 -1
- package/dist/mixpanel.cjs-DTVxnNUt.js +0 -6344
- package/dist/mixpanel.cjs-DTVxnNUt.js.map +0 -1
- package/dist/toPropertyKey-C6Y0u0Sf.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"objectWithoutProperties-DN7d1SzH.js","sources":["../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"],"sourcesContent":["function _objectWithoutPropertiesLoose(r, e) {\n if (null == r) return {};\n var t = {};\n for (var n in r) if ({}.hasOwnProperty.call(r, n)) {\n if (-1 !== e.indexOf(n)) continue;\n t[n] = r[n];\n }\n return t;\n}\nexport { _objectWithoutPropertiesLoose as default };","import objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose.js\";\nfunction _objectWithoutProperties(e, t) {\n if (null == e) return {};\n var o,\n r,\n i = objectWithoutPropertiesLoose(e, t);\n if (Object.getOwnPropertySymbols) {\n var n = Object.getOwnPropertySymbols(e);\n for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);\n }\n return i;\n}\nexport { _objectWithoutProperties as default };"],"names":["objectWithoutPropertiesLoose"],"mappings":"AAAA,SAAS,6BAA6B,CAAC,CAAC,EAAE,CAAC,EAAE;AAC7C,EAAE,IAAI,IAAI,IAAI,CAAC,EAAE,OAAO,EAAE
|
|
1
|
+
{"version":3,"file":"objectWithoutProperties-DN7d1SzH.js","sources":["../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"],"sourcesContent":["function _objectWithoutPropertiesLoose(r, e) {\n if (null == r) return {};\n var t = {};\n for (var n in r) if ({}.hasOwnProperty.call(r, n)) {\n if (-1 !== e.indexOf(n)) continue;\n t[n] = r[n];\n }\n return t;\n}\nexport { _objectWithoutPropertiesLoose as default };","import objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose.js\";\nfunction _objectWithoutProperties(e, t) {\n if (null == e) return {};\n var o,\n r,\n i = objectWithoutPropertiesLoose(e, t);\n if (Object.getOwnPropertySymbols) {\n var n = Object.getOwnPropertySymbols(e);\n for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);\n }\n return i;\n}\nexport { _objectWithoutProperties as default };"],"names":["objectWithoutPropertiesLoose"],"mappings":"AAAA,SAAS,6BAA6B,CAAC,CAAC,EAAE,CAAC,EAAE;AAC7C,EAAE,IAAI,IAAI,IAAI,CAAC,EAAE,OAAO,EAAE;AAC1B,EAAE,IAAI,CAAC,GAAG,EAAE;AACZ,EAAE,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE;AACrD,IAAI,IAAI,EAAE,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;AAC7B,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf;AACA,EAAE,OAAO,CAAC;AACV;;ACPA,SAAS,wBAAwB,CAAC,CAAC,EAAE,CAAC,EAAE;AACxC,EAAE,IAAI,IAAI,IAAI,CAAC,EAAE,OAAO,EAAE;AAC1B,EAAE,IAAI,CAAC;AACP,IAAI,CAAC;AACL,IAAI,CAAC,GAAGA,6BAA4B,CAAC,CAAC,EAAE,CAAC,CAAC;AAC1C,EAAE,IAAI,MAAM,CAAC,qBAAqB,EAAE;AACpC,IAAI,IAAI,CAAC,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC,CAAC;AAC3C,IAAI,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AACvH;AACA,EAAE,OAAO,CAAC;AACV;;;;","x_google_ignoreList":[0,1]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _defineProperty } from '../../defineProperty-
|
|
1
|
+
import { _ as _defineProperty } from '../../defineProperty-CrCYjjU3.js';
|
|
2
2
|
import { ReactQueryDevtools } from '@tanstack/react-query-devtools';
|
|
3
3
|
import BrowserSupport from '@bigbinary/neeto-molecules/BrowserSupport';
|
|
4
4
|
import StickyRibbonsContainer from '@bigbinary/neeto-molecules/StickyRibbonsContainer';
|
|
@@ -7,7 +7,6 @@ import { ToastContainer } from 'react-toastify';
|
|
|
7
7
|
import HoneybadgerErrorBoundary from '../HoneybadgerErrorBoundary/HoneybadgerErrorBoundary.js';
|
|
8
8
|
import QueryClientProvider from '../QueryClientProvider/QueryClientProvider.js';
|
|
9
9
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
10
|
-
import '../../toPropertyKey-C6Y0u0Sf.js';
|
|
11
10
|
import '../../typeof-D-UKOauR.js';
|
|
12
11
|
import '@honeybadger-io/react';
|
|
13
12
|
import '../HoneybadgerErrorBoundary/constants.js';
|
|
@@ -24,13 +23,13 @@ import '../QueryClientProvider/queryClient.js';
|
|
|
24
23
|
import '../../constants/index.js';
|
|
25
24
|
import '../../constants/regex.js';
|
|
26
25
|
|
|
27
|
-
var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s
|
|
26
|
+
var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=true===r.prepend?"prepend":"append",d=true===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
|
|
28
27
|
|
|
29
28
|
var css = ".tsqd-transitions-container aside{z-index:99999}";
|
|
30
29
|
n(css,{});
|
|
31
30
|
|
|
32
31
|
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; }
|
|
33
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t),
|
|
32
|
+
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(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; }
|
|
34
33
|
var AppContainer = function AppContainer(_ref) {
|
|
35
34
|
var children = _ref.children,
|
|
36
35
|
browserSupportProps = _ref.browserSupportProps,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppContainer.js","sources":["../../../node_modules/rollup-plugin-styles/dist/runtime/inject-css.js","../../../src/react-utils/AppContainer/AppContainer.jsx"],"sourcesContent":["var e=[],t=[];function n(n,r){if(n&&\"undefined\"!=typeof document){var a,s=!0===r.prepend?\"prepend\":\"append\",d=!0===r.singleTag,i=\"string\"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName(\"head\")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c()}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n))}function c(){var e=document.createElement(\"style\");if(e.setAttribute(\"type\",\"text/css\"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a=\"prepend\"===s?\"afterbegin\":\"beforeend\";return i.insertAdjacentElement(a,e),e}}export{n as default};\n","import { ReactQueryDevtools } from \"@tanstack/react-query-devtools\";\nimport \"assets/stylesheets/app-container.css\";\nimport BrowserSupport from \"neetomolecules/BrowserSupport\";\nimport StickyRibbonsContainer from \"neetomolecules/StickyRibbonsContainer\";\nimport { BrowserRouter } from \"react-router-dom\";\nimport { ToastContainer } from \"react-toastify\";\nimport HoneybadgerErrorBoundary from \"react-utils/HoneybadgerErrorBoundary\";\nimport QueryClientProvider from \"react-utils/QueryClientProvider/QueryClientProvider\";\n\nconst AppContainer = ({\n children,\n browserSupportProps,\n enableStickyRibbons = true,\n honeybadgerErrorBoundaryProps,\n reactQueryDevtoolsProps,\n toastContainerProps,\n}) => (\n <HoneybadgerErrorBoundary {...honeybadgerErrorBoundaryProps}>\n <BrowserSupport {...browserSupportProps}>\n <ToastContainer {...toastContainerProps} />\n <QueryClientProvider>\n {globalProps.authenticated && enableStickyRibbons && (\n <StickyRibbonsContainer />\n )}\n <BrowserRouter>{children}</BrowserRouter>\n <ReactQueryDevtools\n initialIsOpen={false}\n position=\"bottom\"\n {...reactQueryDevtoolsProps}\n />\n </QueryClientProvider>\n </BrowserSupport>\n </HoneybadgerErrorBoundary>\n);\n\nexport default AppContainer;\n"],"names":["AppContainer","_ref","children","browserSupportProps","_ref$enableStickyRibb","enableStickyRibbons","honeybadgerErrorBoundaryProps","reactQueryDevtoolsProps","toastContainerProps","_jsx","HoneybadgerErrorBoundary","_objectSpread","_jsxs","BrowserSupport","ToastContainer","QueryClientProvider","globalProps","authenticated","StickyRibbonsContainer","BrowserRouter","ReactQueryDevtools","initialIsOpen","position"],"mappings":"
|
|
1
|
+
{"version":3,"file":"AppContainer.js","sources":["../../../node_modules/rollup-plugin-styles/dist/runtime/inject-css.js","../../../src/react-utils/AppContainer/AppContainer.jsx"],"sourcesContent":["var e=[],t=[];function n(n,r){if(n&&\"undefined\"!=typeof document){var a,s=!0===r.prepend?\"prepend\":\"append\",d=!0===r.singleTag,i=\"string\"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName(\"head\")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c()}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n))}function c(){var e=document.createElement(\"style\");if(e.setAttribute(\"type\",\"text/css\"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a=\"prepend\"===s?\"afterbegin\":\"beforeend\";return i.insertAdjacentElement(a,e),e}}export{n as default};\n","import { ReactQueryDevtools } from \"@tanstack/react-query-devtools\";\nimport \"assets/stylesheets/app-container.css\";\nimport BrowserSupport from \"neetomolecules/BrowserSupport\";\nimport StickyRibbonsContainer from \"neetomolecules/StickyRibbonsContainer\";\nimport { BrowserRouter } from \"react-router-dom\";\nimport { ToastContainer } from \"react-toastify\";\nimport HoneybadgerErrorBoundary from \"react-utils/HoneybadgerErrorBoundary\";\nimport QueryClientProvider from \"react-utils/QueryClientProvider/QueryClientProvider\";\n\nconst AppContainer = ({\n children,\n browserSupportProps,\n enableStickyRibbons = true,\n honeybadgerErrorBoundaryProps,\n reactQueryDevtoolsProps,\n toastContainerProps,\n}) => (\n <HoneybadgerErrorBoundary {...honeybadgerErrorBoundaryProps}>\n <BrowserSupport {...browserSupportProps}>\n <ToastContainer {...toastContainerProps} />\n <QueryClientProvider>\n {globalProps.authenticated && enableStickyRibbons && (\n <StickyRibbonsContainer />\n )}\n <BrowserRouter>{children}</BrowserRouter>\n <ReactQueryDevtools\n initialIsOpen={false}\n position=\"bottom\"\n {...reactQueryDevtoolsProps}\n />\n </QueryClientProvider>\n </BrowserSupport>\n </HoneybadgerErrorBoundary>\n);\n\nexport default AppContainer;\n"],"names":["AppContainer","_ref","children","browserSupportProps","_ref$enableStickyRibb","enableStickyRibbons","honeybadgerErrorBoundaryProps","reactQueryDevtoolsProps","toastContainerProps","_jsx","HoneybadgerErrorBoundary","_objectSpread","_jsxs","BrowserSupport","ToastContainer","QueryClientProvider","globalProps","authenticated","StickyRibbonsContainer","BrowserRouter","ReactQueryDevtools","initialIsOpen","position"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,WAAW,EAAE,OAAO,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAE,GAA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sBAAsB,EAAE,EAAA,CAC1B,eACDT,GAAA,CAACU,aAAa,EAAA;AAAAjB,UAAAA,QAAA,EAAEA;AAAQ,SAAgB,CAAC,eACzCO,GAAA,CAACW,kBAAkB,EAAAT,aAAA,CAAA;AACjBU,UAAAA,aAAa,EAAE,KAAM;AACrBC,UAAAA,QAAQ,EAAC;SACLf,EAAAA,uBAAuB,CAC5B,CAAC;AAAA,OACiB,CAAC;KACR,CAAA;AAAC,GAAA,CACO,CAAC;AAAA;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export { default } from './AppContainer.js';
|
|
2
|
-
import '../../defineProperty-
|
|
3
|
-
import '../../toPropertyKey-C6Y0u0Sf.js';
|
|
2
|
+
import '../../defineProperty-CrCYjjU3.js';
|
|
4
3
|
import '../../typeof-D-UKOauR.js';
|
|
5
4
|
import '@tanstack/react-query-devtools';
|
|
6
5
|
import '@bigbinary/neeto-molecules/BrowserSupport';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devices.js","sources":["../../../src/react-utils/BrowserPushNotifications/devices.js"],"sourcesContent":["// THIS FILE HAS BEEN ADDED BY NEETO NOTIFICATIONS ENGINE\n// AND IS USED FOR BROWSER NOTIFICATIONS\n// CONTACT NEETO NOTIFICATIONS TEAM BEFORE MODIFYING THIS FILE\n\nimport axios from \"axios\";\n\nconst devicesBaseUrl = \"/neeto_notifications/api/v1/devices\";\n\nconst create = payload =>\n axios.post(devicesBaseUrl, payload, { showToastr: false });\n\nconst destroy = deviceId =>\n axios.delete(`${devicesBaseUrl}/${deviceId}`, { showToastr: false });\n\nconst devicesApi = { create, destroy };\n\nexport default devicesApi;\n"],"names":["devicesBaseUrl","create","payload","axios","post","showToastr","destroy","deviceId","concat","devicesApi"],"mappings":";;AAAA;AACA;AACA;;AAIA,IAAMA,cAAc,GAAG,qCAAqC
|
|
1
|
+
{"version":3,"file":"devices.js","sources":["../../../src/react-utils/BrowserPushNotifications/devices.js"],"sourcesContent":["// THIS FILE HAS BEEN ADDED BY NEETO NOTIFICATIONS ENGINE\n// AND IS USED FOR BROWSER NOTIFICATIONS\n// CONTACT NEETO NOTIFICATIONS TEAM BEFORE MODIFYING THIS FILE\n\nimport axios from \"axios\";\n\nconst devicesBaseUrl = \"/neeto_notifications/api/v1/devices\";\n\nconst create = payload =>\n axios.post(devicesBaseUrl, payload, { showToastr: false });\n\nconst destroy = deviceId =>\n axios.delete(`${devicesBaseUrl}/${deviceId}`, { showToastr: false });\n\nconst devicesApi = { create, destroy };\n\nexport default devicesApi;\n"],"names":["devicesBaseUrl","create","payload","axios","post","showToastr","destroy","deviceId","concat","devicesApi"],"mappings":";;AAAA;AACA;AACA;;AAIA,IAAMA,cAAc,GAAG,qCAAqC;AAE5D,IAAMC,MAAM,GAAG,SAATA,MAAMA,CAAGC,OAAO,EAAA;AAAA,EAAA,OACpBC,KAAK,CAACC,IAAI,CAACJ,cAAc,EAAEE,OAAO,EAAE;AAAEG,IAAAA,UAAU,EAAE;AAAM,GAAC,CAAC;AAAA,CAAA;AAE5D,IAAMC,OAAO,GAAG,SAAVA,OAAOA,CAAGC,QAAQ,EAAA;EAAA,OACtBJ,KAAK,CAAO,QAAA,CAAA,CAAA,EAAA,CAAAK,MAAA,CAAIR,cAAc,EAAAQ,GAAAA,CAAAA,CAAAA,MAAA,CAAID,QAAQ,CAAI,EAAA;AAAEF,IAAAA,UAAU,EAAE;AAAM,GAAC,CAAC;AAAA,CAAA;AAEtE,IAAMI,UAAU,GAAG;AAAER,EAAAA,MAAM,EAANA,MAAM;AAAEK,EAAAA,OAAO,EAAPA;AAAQ;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _asyncToGenerator, a as _regeneratorRuntime } from '../../index-
|
|
1
|
+
import { _ as _asyncToGenerator, a as _regeneratorRuntime } from '../../index-COfUw8MU.js';
|
|
2
2
|
import devicesApi from './devices.js';
|
|
3
3
|
import { unsubscribeBrowserNotifications, registerServiceWorker } from './registerServiceWorker.js';
|
|
4
4
|
import '../../_commonjsHelpers-B85MJLTf.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pushHelper.js","sources":["../../../src/react-utils/BrowserPushNotifications/pushHelper.js"],"sourcesContent":["// THIS FILE HAS BEEN ADDED BY NEETO NOTIFICATIONS ENGINE\n// AND IS USED FOR BROWSER NOTIFICATIONS\n// CONTACT NEETO NOTIFICATIONS TEAM BEFORE MODIFYING THIS FILE\n\nimport devicesApi from \"./devices\";\nimport {\n unsubscribeBrowserNotifications,\n registerServiceWorker,\n} from \"./registerServiceWorker\";\n\nconst createBrowserSubscription = async subscription => {\n if (subscription) {\n const payload = { device: { subscription, platform: \"browser\" } };\n try {\n await devicesApi.create(payload);\n localStorage.setItem(\n \"deviceId\",\n JSON.stringify(subscription.toJSON().keys.auth)\n );\n } catch (err) {\n logger.error(\"Device registration Failed: \", err);\n }\n } else {\n logger.error(\n \"Something went wrong while registering device for browser subscription\"\n );\n }\n};\n\nexport const destroyBrowserSubscription = async () => {\n try {\n await unsubscribeBrowserNotifications();\n const deviceId = JSON.parse(localStorage.getItem(\"deviceId\"));\n await devicesApi.destroy(deviceId);\n localStorage.removeItem(\"deviceId\");\n } catch (err) {\n logger.error(\n \"Something went wrong while unsubscribing browser notification:\",\n err\n );\n }\n};\n\nexport const registerBrowserNotifications = async (\n vapidPublicKey = process.env.VAPID_PUBLIC_KEY\n) => {\n const response = await registerServiceWorker(vapidPublicKey);\n await createBrowserSubscription(response);\n};\n"],"names":["createBrowserSubscription","_ref","_asyncToGenerator","_regeneratorRuntime","mark","_callee","subscription","payload","wrap","_callee$","_context","prev","next","device","platform","devicesApi","create","localStorage","setItem","JSON","stringify","toJSON","keys","auth","t0","logger","error","stop","_x","apply","arguments","destroyBrowserSubscription","_ref2","_callee2","deviceId","_callee2$","_context2","unsubscribeBrowserNotifications","parse","getItem","destroy","removeItem","registerBrowserNotifications","_ref3","_callee3","vapidPublicKey","response","_args3","_callee3$","_context3","length","undefined","process","env","VAPID_PUBLIC_KEY","registerServiceWorker","sent"],"mappings":";;;;;;AAUA,IAAMA,yBAAyB,gBAAA,YAAA;EAAA,IAAAC,IAAA,GAAAC,iBAAA,cAAAC,mBAAA,CAAAC,IAAA,CAAG,SAAAC,OAAAA,CAAMC,YAAY,EAAA;AAAA,IAAA,IAAAC,OAAA
|
|
1
|
+
{"version":3,"file":"pushHelper.js","sources":["../../../src/react-utils/BrowserPushNotifications/pushHelper.js"],"sourcesContent":["// THIS FILE HAS BEEN ADDED BY NEETO NOTIFICATIONS ENGINE\n// AND IS USED FOR BROWSER NOTIFICATIONS\n// CONTACT NEETO NOTIFICATIONS TEAM BEFORE MODIFYING THIS FILE\n\nimport devicesApi from \"./devices\";\nimport {\n unsubscribeBrowserNotifications,\n registerServiceWorker,\n} from \"./registerServiceWorker\";\n\nconst createBrowserSubscription = async subscription => {\n if (subscription) {\n const payload = { device: { subscription, platform: \"browser\" } };\n try {\n await devicesApi.create(payload);\n localStorage.setItem(\n \"deviceId\",\n JSON.stringify(subscription.toJSON().keys.auth)\n );\n } catch (err) {\n logger.error(\"Device registration Failed: \", err);\n }\n } else {\n logger.error(\n \"Something went wrong while registering device for browser subscription\"\n );\n }\n};\n\nexport const destroyBrowserSubscription = async () => {\n try {\n await unsubscribeBrowserNotifications();\n const deviceId = JSON.parse(localStorage.getItem(\"deviceId\"));\n await devicesApi.destroy(deviceId);\n localStorage.removeItem(\"deviceId\");\n } catch (err) {\n logger.error(\n \"Something went wrong while unsubscribing browser notification:\",\n err\n );\n }\n};\n\nexport const registerBrowserNotifications = async (\n vapidPublicKey = process.env.VAPID_PUBLIC_KEY\n) => {\n const response = await registerServiceWorker(vapidPublicKey);\n await createBrowserSubscription(response);\n};\n"],"names":["createBrowserSubscription","_ref","_asyncToGenerator","_regeneratorRuntime","mark","_callee","subscription","payload","wrap","_callee$","_context","prev","next","device","platform","devicesApi","create","localStorage","setItem","JSON","stringify","toJSON","keys","auth","t0","logger","error","stop","_x","apply","arguments","destroyBrowserSubscription","_ref2","_callee2","deviceId","_callee2$","_context2","unsubscribeBrowserNotifications","parse","getItem","destroy","removeItem","registerBrowserNotifications","_ref3","_callee3","vapidPublicKey","response","_args3","_callee3$","_context3","length","undefined","process","env","VAPID_PUBLIC_KEY","registerServiceWorker","sent"],"mappings":";;;;;;AAUA,IAAMA,yBAAyB,gBAAA,YAAA;EAAA,IAAAC,IAAA,GAAAC,iBAAA,cAAAC,mBAAA,CAAAC,IAAA,CAAG,SAAAC,OAAAA,CAAMC,YAAY,EAAA;AAAA,IAAA,IAAAC,OAAA;AAAA,IAAA,OAAAJ,mBAAA,CAAAK,IAAA,CAAA,SAAAC,SAAAC,QAAA,EAAA;AAAA,MAAA,OAAA,CAAA,EAAA,QAAAA,QAAA,CAAAC,IAAA,GAAAD,QAAA,CAAAE,IAAA;AAAA,QAAA,KAAA,CAAA;AAAA,UAAA,IAAA,CAC9CN,YAAY,EAAA;AAAAI,YAAAA,QAAA,CAAAE,IAAA,GAAA,EAAA;AAAA,YAAA;AAAA;AACRL,UAAAA,OAAO,GAAG;AAAEM,YAAAA,MAAM,EAAE;AAAEP,cAAAA,YAAY,EAAZA,YAAY;AAAEQ,cAAAA,QAAQ,EAAE;AAAU;WAAG;AAAAJ,UAAAA,QAAA,CAAAC,IAAA,GAAA,CAAA;AAAAD,UAAAA,QAAA,CAAAE,IAAA,GAAA,CAAA;AAAA,UAAA,OAEzDG,UAAU,CAACC,MAAM,CAACT,OAAO,CAAC;AAAA,QAAA,KAAA,CAAA;AAChCU,UAAAA,YAAY,CAACC,OAAO,CAClB,UAAU,EACVC,IAAI,CAACC,SAAS,CAACd,YAAY,CAACe,MAAM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AAA,EAAA;AAAA,MAAA,OAAA,CAAA,EAAA,QAAAA,SAAA,CAAAtC,IAAA,GAAAsC,SAAA,CAAArC,IAAA;AAAA,QAAA,KAAA,CAAA;AAC1CiC,UAAAA,cAAc,GAAAE,MAAA,CAAAG,MAAA,QAAAH,MAAA,CAAA,CAAA,CAAA,KAAAI,SAAA,GAAAJ,MAAA,CAAGK,CAAAA,CAAAA,GAAAA,OAAO,CAACC,GAAG,CAACC,gBAAgB;AAAAL,UAAAA,SAAA,CAAArC,IAAA,GAAA,CAAA;UAAA,OAEtB2C,qBAAqB,CAACV,cAAc,CAAC;AAAA,QAAA,KAAA,CAAA;UAAtDC,QAAQ,GAAAG,SAAA,CAAAO,IAAA;AAAAP,UAAAA,SAAA,CAAArC,IAAA,GAAA,CAAA;UAAA,OACRZ,yBAAyB,CAAC8C,QAAQ,CAAC;AAAA,QAAA,KAAA,CAAA;AAAA,QAAA,KAAA,KAAA;UAAA,OAAAG,SAAA,CAAAtB,IAAA,EAAA;AAAA;AAAA,KAAA,EAAAiB,QAAA,CAAA;GAC1C,CAAA,CAAA;AAAA,EAAA,OAAA,SALYF,4BAA4BA,GAAA;AAAA,IAAA,OAAAC,KAAA,CAAAd,KAAA,CAAA,IAAA,EAAAC,SAAA,CAAA;AAAA,GAAA;AAAA,CAKxC;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _asyncToGenerator, a as _regeneratorRuntime } from '../../index-
|
|
1
|
+
import { _ as _asyncToGenerator, a as _regeneratorRuntime } from '../../index-COfUw8MU.js';
|
|
2
2
|
import '../../_commonjsHelpers-B85MJLTf.js';
|
|
3
3
|
|
|
4
4
|
// THIS FILE HAS BEEN ADDED BY NEETO NOTIFICATIONS ENGINE
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registerServiceWorker.js","sources":["../../../src/react-utils/BrowserPushNotifications/registerServiceWorker.js"],"sourcesContent":["// THIS FILE HAS BEEN ADDED BY NEETO NOTIFICATIONS ENGINE\n// AND IS USED FOR BROWSER NOTIFICATIONS\n// CONTACT NEETO NOTIFICATIONS TEAM BEFORE MODIFYING THIS FILE\n\nfunction urlB64ToUint8Array(base64String) {\n const padding = \"=\".repeat((4 - (base64String.length % 4)) % 4);\n const base64 = (base64String + padding).replace(/-/g, \"+\").replace(/_/g, \"/\");\n\n const rawData = window.atob(base64);\n const outputArray = new Uint8Array(rawData.length);\n\n for (let i = 0; i < rawData.length; ++i) {\n outputArray[i] = rawData.charCodeAt(i);\n }\n\n return outputArray;\n}\n\nconst subscribeBrowserNotifications = async vapidPublicKey => {\n let subscription = {};\n try {\n const permission = await Notification.requestPermission();\n if (permission !== \"denied\") {\n await navigator.serviceWorker.register(\"/serviceworker.js\");\n const sw = await navigator.serviceWorker.ready;\n subscription = await sw.pushManager.subscribe({\n userVisibleOnly: true,\n applicationServerKey: urlB64ToUint8Array(vapidPublicKey),\n });\n\n return subscription;\n }\n logger.error(\"Notification Permission Denied\");\n } catch (error) {\n logger.error(error);\n }\n\n return null;\n};\nexport const unsubscribeBrowserNotifications = async () => {\n try {\n const sw = await navigator.serviceWorker.ready;\n const subscription = await sw.pushManager.getSubscription();\n if (subscription) {\n const res = await subscription.unsubscribe();\n logger.error(res);\n }\n } catch (error) {\n logger.error(error);\n }\n};\n\nexport const registerServiceWorker = async vapidPublicKey => {\n if (navigator.serviceWorker && vapidPublicKey) {\n const res = await subscribeBrowserNotifications(vapidPublicKey);\n\n return res;\n }\n logger.error(\"Service worker is not supported in this Browser\");\n\n return null;\n};\n"],"names":["urlB64ToUint8Array","base64String","padding","repeat","length","base64","replace","rawData","window","atob","outputArray","Uint8Array","i","charCodeAt","subscribeBrowserNotifications","_ref","_asyncToGenerator","_regeneratorRuntime","mark","_callee","vapidPublicKey","subscription","permission","sw","wrap","_callee$","_context","prev","next","Notification","requestPermission","sent","navigator","serviceWorker","register","ready","pushManager","subscribe","userVisibleOnly","applicationServerKey","abrupt","logger","error","t0","stop","_x","apply","arguments","unsubscribeBrowserNotifications","_ref2","_callee2","res","_callee2$","_context2","getSubscription","unsubscribe","registerServiceWorker","_ref3","_callee3","_callee3$","_context3","_x2"],"mappings":";;;AAAA;AACA;AACA;;AAEA,SAASA,kBAAkBA,CAACC,YAAY,EAAE;AACxC,EAAA,IAAMC,OAAO,GAAG,GAAG,CAACC,MAAM,CAAC,CAAC,CAAC,GAAIF,YAAY,CAACG,MAAM,GAAG,CAAE,IAAI,CAAC,CAAC
|
|
1
|
+
{"version":3,"file":"registerServiceWorker.js","sources":["../../../src/react-utils/BrowserPushNotifications/registerServiceWorker.js"],"sourcesContent":["// THIS FILE HAS BEEN ADDED BY NEETO NOTIFICATIONS ENGINE\n// AND IS USED FOR BROWSER NOTIFICATIONS\n// CONTACT NEETO NOTIFICATIONS TEAM BEFORE MODIFYING THIS FILE\n\nfunction urlB64ToUint8Array(base64String) {\n const padding = \"=\".repeat((4 - (base64String.length % 4)) % 4);\n const base64 = (base64String + padding).replace(/-/g, \"+\").replace(/_/g, \"/\");\n\n const rawData = window.atob(base64);\n const outputArray = new Uint8Array(rawData.length);\n\n for (let i = 0; i < rawData.length; ++i) {\n outputArray[i] = rawData.charCodeAt(i);\n }\n\n return outputArray;\n}\n\nconst subscribeBrowserNotifications = async vapidPublicKey => {\n let subscription = {};\n try {\n const permission = await Notification.requestPermission();\n if (permission !== \"denied\") {\n await navigator.serviceWorker.register(\"/serviceworker.js\");\n const sw = await navigator.serviceWorker.ready;\n subscription = await sw.pushManager.subscribe({\n userVisibleOnly: true,\n applicationServerKey: urlB64ToUint8Array(vapidPublicKey),\n });\n\n return subscription;\n }\n logger.error(\"Notification Permission Denied\");\n } catch (error) {\n logger.error(error);\n }\n\n return null;\n};\nexport const unsubscribeBrowserNotifications = async () => {\n try {\n const sw = await navigator.serviceWorker.ready;\n const subscription = await sw.pushManager.getSubscription();\n if (subscription) {\n const res = await subscription.unsubscribe();\n logger.error(res);\n }\n } catch (error) {\n logger.error(error);\n }\n};\n\nexport const registerServiceWorker = async vapidPublicKey => {\n if (navigator.serviceWorker && vapidPublicKey) {\n const res = await subscribeBrowserNotifications(vapidPublicKey);\n\n return res;\n }\n logger.error(\"Service worker is not supported in this Browser\");\n\n return null;\n};\n"],"names":["urlB64ToUint8Array","base64String","padding","repeat","length","base64","replace","rawData","window","atob","outputArray","Uint8Array","i","charCodeAt","subscribeBrowserNotifications","_ref","_asyncToGenerator","_regeneratorRuntime","mark","_callee","vapidPublicKey","subscription","permission","sw","wrap","_callee$","_context","prev","next","Notification","requestPermission","sent","navigator","serviceWorker","register","ready","pushManager","subscribe","userVisibleOnly","applicationServerKey","abrupt","logger","error","t0","stop","_x","apply","arguments","unsubscribeBrowserNotifications","_ref2","_callee2","res","_callee2$","_context2","getSubscription","unsubscribe","registerServiceWorker","_ref3","_callee3","_callee3$","_context3","_x2"],"mappings":";;;AAAA;AACA;AACA;;AAEA,SAASA,kBAAkBA,CAACC,YAAY,EAAE;AACxC,EAAA,IAAMC,OAAO,GAAG,GAAG,CAACC,MAAM,CAAC,CAAC,CAAC,GAAIF,YAAY,CAACG,MAAM,GAAG,CAAE,IAAI,CAAC,CAAC;AAC/D,EAAA,IAAMC,MAAM,GAAG,CAACJ,YAAY,GAAGC,OAAO,EAAEI,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAACA,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC;AAE7E,EAAA,IAAMC,OAAO,GAAGC,MAAM,CAACC,IAAI,CAACJ,MAAM,CAAC;EACnC,IAAMK,WAAW,GAAG,IAAIC,UAAU,CAACJ,OAAO,CAACH,MAAM,CAAC;AAElD,EAAA,KAAK,IAAIQ,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGL,OAAO,CAACH,MAAM,EAAE,EAAEQ,CAAC,EAAE;IACvCF,WAAW,CAACE,CAAC,CAAC,GAAGL,OAAO,CAACM,UAAU,CAACD,CAAC,CAAC;AACxC;AAEA,EAAA,OAAOF,WAAW;AACpB;AAEA,IAAMI,6BAA6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C,SAAA,CAAA;AAAA,GAAA;AAAA,CASjC;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _defineProperty } from '../../defineProperty-
|
|
1
|
+
import { _ as _defineProperty } from '../../defineProperty-CrCYjjU3.js';
|
|
2
2
|
import { useEffect } from 'react';
|
|
3
3
|
import DOMPurify from 'dompurify';
|
|
4
4
|
import Button from '@bigbinary/neetoui/Button';
|
|
@@ -6,11 +6,10 @@ import Typography from '@bigbinary/neetoui/Typography';
|
|
|
6
6
|
import { isNil } from 'ramda';
|
|
7
7
|
import { useTranslation, Trans } from 'react-i18next';
|
|
8
8
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
9
|
-
import '../../toPropertyKey-C6Y0u0Sf.js';
|
|
10
9
|
import '../../typeof-D-UKOauR.js';
|
|
11
10
|
|
|
12
11
|
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),
|
|
12
|
+
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(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
13
|
var FallbackComponentImage = function FallbackComponentImage(props) {
|
|
15
14
|
return /*#__PURE__*/jsxs("svg", _objectSpread(_objectSpread({}, props), {}, {
|
|
16
15
|
children: [/*#__PURE__*/jsx("path", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FallbackComponent.js","sources":["../../../src/react-utils/HoneybadgerErrorBoundary/FallbackComponent.jsx"],"sourcesContent":["import { useEffect } from \"react\";\n\nimport FallbackComponentImage from \"assets/images/fallback-component.svg\";\nimport DOMPurify from \"dompurify\";\nimport { Button, Typography } from \"neetoui\";\nimport { isNil } from \"ramda\";\nimport { Trans, useTranslation } from \"react-i18next\";\n\nconst sanitize = DOMPurify.sanitize;\n\nconst FallbackComponent = () => {\n const { t } = useTranslation();\n\n useEffect(() => {\n const listener = e => {\n if (isNil(e.state)) return;\n window.location.href = sanitize(e.target?.location.href);\n };\n window.addEventListener(\"popstate\", listener);\n\n return () => window.removeEventListener(\"popstate\", listener);\n }, []);\n\n return (\n <div className=\"flex h-screen w-full flex-row items-start justify-start\">\n <div className=\"m-auto text-center\">\n <div className=\"m-auto mb-8 flex items-center justify-center\">\n <FallbackComponentImage />\n </div>\n <Typography\n className=\"mb-4\"\n component=\"h2\"\n style=\"h2\"\n weight=\"semibold\"\n >\n {t(\"neetoCommons.fallbackComponent.somethingWentWrong\")}\n </Typography>\n <Typography\n className=\"neeto-ui-text-gray-600 mb-8\"\n component=\"p\"\n style=\"body1\"\n weight=\"normal\"\n >\n <Trans\n i18nKey=\"neetoCommons.fallbackComponent.description\"\n components={{\n reloading: (\n <Button style=\"link\" onClick={() => window.location.reload()} />\n ),\n contactus: (\n <Button\n style=\"link\"\n onClick={() => {\n window.NeetoChat?.contextualHelp?.maximizeWidget();\n window.NeetoChat?.contextualHelp?.openWidget();\n }}\n />\n ),\n }}\n />\n </Typography>\n </div>\n </div>\n );\n};\n\nexport default FallbackComponent;\n"],"names":["FallbackComponentImage","props","_jsxs","_objectSpread","children","_jsx","d","fill","defaultProps","width","height","viewBox","xmlns","sanitize","DOMPurify","FallbackComponent","_useTranslation","useTranslation","t","useEffect","listener","e","_e$target","isNil","state","window","location","href","target","addEventListener","removeEventListener","className","Typography","component","style","weight","Trans","i18nKey","components","reloading","Button","onClick","reload","contactus","_window$NeetoChat","_window$NeetoChat2","NeetoChat","contextualHelp","maximizeWidget","openWidget"],"mappings":"
|
|
1
|
+
{"version":3,"file":"FallbackComponent.js","sources":["../../../src/react-utils/HoneybadgerErrorBoundary/FallbackComponent.jsx"],"sourcesContent":["import { useEffect } from \"react\";\n\nimport FallbackComponentImage from \"assets/images/fallback-component.svg\";\nimport DOMPurify from \"dompurify\";\nimport { Button, Typography } from \"neetoui\";\nimport { isNil } from \"ramda\";\nimport { Trans, useTranslation } from \"react-i18next\";\n\nconst sanitize = DOMPurify.sanitize;\n\nconst FallbackComponent = () => {\n const { t } = useTranslation();\n\n useEffect(() => {\n const listener = e => {\n if (isNil(e.state)) return;\n window.location.href = sanitize(e.target?.location.href);\n };\n window.addEventListener(\"popstate\", listener);\n\n return () => window.removeEventListener(\"popstate\", listener);\n }, []);\n\n return (\n <div className=\"flex h-screen w-full flex-row items-start justify-start\">\n <div className=\"m-auto text-center\">\n <div className=\"m-auto mb-8 flex items-center justify-center\">\n <FallbackComponentImage />\n </div>\n <Typography\n className=\"mb-4\"\n component=\"h2\"\n style=\"h2\"\n weight=\"semibold\"\n >\n {t(\"neetoCommons.fallbackComponent.somethingWentWrong\")}\n </Typography>\n <Typography\n className=\"neeto-ui-text-gray-600 mb-8\"\n component=\"p\"\n style=\"body1\"\n weight=\"normal\"\n >\n <Trans\n i18nKey=\"neetoCommons.fallbackComponent.description\"\n components={{\n reloading: (\n <Button style=\"link\" onClick={() => window.location.reload()} />\n ),\n contactus: (\n <Button\n style=\"link\"\n onClick={() => {\n window.NeetoChat?.contextualHelp?.maximizeWidget();\n window.NeetoChat?.contextualHelp?.openWidget();\n }}\n />\n ),\n }}\n />\n </Typography>\n </div>\n </div>\n );\n};\n\nexport default FallbackComponent;\n"],"names":["FallbackComponentImage","props","_jsxs","_objectSpread","children","_jsx","d","fill","defaultProps","width","height","viewBox","xmlns","sanitize","DOMPurify","FallbackComponent","_useTranslation","useTranslation","t","useEffect","listener","e","_e$target","isNil","state","window","location","href","target","addEventListener","removeEventListener","className","Typography","component","style","weight","Trans","i18nKey","components","reloading","Button","onClick","reload","contactus","_window$NeetoChat","_window$NeetoChat2","NeetoChat","contextualHelp","maximizeWidget","openWidget"],"mappings":";;;;;;;;;;;;AAAkC,IAE3BA,sBAAsB,GAAA,SAAtBA,sBAAsBA,CAAAC,KAAA,EAAA;AAAA,EAAA,oBAAAC,IAAA,CAAAC,KAAAA,EAAAA,aAAA,CAAAA,aAAA,KAAAF,KAAA,CAAA,EAAA,EAAA,EAAA;AAAAG,IAAAA,QAAA,gBAAAC,GAAA,CAAA,MAAA,EAAA;MAAAC,CAAA,EAAA,s8BAAA;MAAAC,IAAA,EAAA;AAAA,KAAA,CAAA,eAAAF,GAAA,CAAA,MAAA,EAAA;MAAAC,CAAA,EAAA,w4BAAA;MAAAC,IAAA,EAAA;AAAA,KAAA,CAAA,eAAAF,GAAA,CAAA,MAAA,EAAA;MAAAC,CAAA,EAAA,w4BAAA;MAAAC,IAAA,EAAA;AAAA,KAAA,CAAA,eAAAF,GAAA,CAAA,MAAA,EAAA;MAAAC,CAAA,EAAA,ipFAAA;MAAAC,IAAA,EAAA;AAAA,KAAA,CAAA,eAAAF,GAAA,CAAA,MAAA,EAAA;MAAAC,CAAA,EAAA,04CAAA;MAAAC,IAAA,EAAA;AAAA,KAAA,CAAA,eAAAF,GAAA,CAAA,MAAA,EAAA;MAAAC,CAAA,EAAA,ukHAAA;MAAAC,IAAA,EAAA;AAAA,KAAA,CAAA;AAAA,GAAA,CAAA,CAAA;AAAA,CAAA;AAAtBP,sBAAsB,CAAAQ,YAAA,GAAA;EAAAC,KAAA,EAAA,KAAA;EAAAC,MAAA,EAAA,KAAA;EAAAC,OAAA,EAAA,aAAA;EAAAJ,IAAA,EAAA,MAAA;AAAA,EAAA,eAAA,EAAA,cAAA;EAAAK,KAAA,EAAA;AAAA,CAAA;AAM7B,IAAMC,QAAQ,GAAGC,SAAS,CAACD,QAAQ;AAEnC,IAAME,iBAAiB,GAAG,SA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LE_ERROR_NAMES_REGEX } from './constants.js';
|
|
2
|
+
import { IGNORABLE_ERRORS_REGEX, IGNORABLE_ERROR_NAMES_REGEX, IGNORABLE_STACKS_REGEX } from './constants.js';
|
|
3
3
|
import FallbackComponent from './FallbackComponent.js';
|
|
4
4
|
import { getSessionReplayUrl, attachContext } from './utils.js';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
6
|
-
import '../../defineProperty-
|
|
7
|
-
import '../../toPropertyKey-C6Y0u0Sf.js';
|
|
6
|
+
import '../../defineProperty-CrCYjjU3.js';
|
|
8
7
|
import '../../typeof-D-UKOauR.js';
|
|
9
8
|
import 'react';
|
|
10
9
|
import 'dompurify';
|
|
@@ -22,7 +21,7 @@ var HoneybadgerErrorBoundary = function HoneybadgerErrorBoundary(_ref) {
|
|
|
22
21
|
Honeybadger.beforeNotify(function (notice) {
|
|
23
22
|
var _globalProps$user;
|
|
24
23
|
if (!notice) return false;
|
|
25
|
-
var isIgnorable = IGNORABLE_ERRORS_REGEX.test(notice.message) || IGNORABLE_ERROR_NAMES_REGEX.test(notice.name) || notice.stack
|
|
24
|
+
var isIgnorable = IGNORABLE_ERRORS_REGEX.test(notice.message) || IGNORABLE_ERROR_NAMES_REGEX.test(notice.name) || IGNORABLE_STACKS_REGEX.test(notice.stack) || (filterErrors === null || filterErrors === void 0 ? void 0 : filterErrors(notice)) === false;
|
|
26
25
|
if (isIgnorable) return false;
|
|
27
26
|
var context = {
|
|
28
27
|
errorClass: notice.name
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HoneybadgerErrorBoundary.js","sources":["../../../src/react-utils/HoneybadgerErrorBoundary/HoneybadgerErrorBoundary.jsx"],"sourcesContent":["import {\n Honeybadger,\n HoneybadgerErrorBoundary as ErrorBoundary,\n} from \"@honeybadger-io/react\";\n\nimport {\n IGNORABLE_ERROR_NAMES_REGEX,\n IGNORABLE_ERRORS_REGEX,\n} from \"./constants\";\nimport FallbackComponent from \"./FallbackComponent\";\nimport { attachContext, getSessionReplayUrl } from \"./utils\";\n\n/** @type {import(\"neetocommons/react-utils\").HoneybadgerErrorBoundary} */\nconst HoneybadgerErrorBoundary = ({\n children,\n ErrorComponent = FallbackComponent,\n filterErrors = undefined,\n}) => {\n Honeybadger.beforeNotify(notice => {\n if (!notice) return false;\n\n const isIgnorable =\n IGNORABLE_ERRORS_REGEX.test(notice.message) ||\n IGNORABLE_ERROR_NAMES_REGEX.test(notice.name) ||\n notice.stack
|
|
1
|
+
{"version":3,"file":"HoneybadgerErrorBoundary.js","sources":["../../../src/react-utils/HoneybadgerErrorBoundary/HoneybadgerErrorBoundary.jsx"],"sourcesContent":["import {\n Honeybadger,\n HoneybadgerErrorBoundary as ErrorBoundary,\n} from \"@honeybadger-io/react\";\n\nimport {\n IGNORABLE_ERROR_NAMES_REGEX,\n IGNORABLE_ERRORS_REGEX,\n IGNORABLE_STACKS_REGEX,\n} from \"./constants\";\nimport FallbackComponent from \"./FallbackComponent\";\nimport { attachContext, getSessionReplayUrl } from \"./utils\";\n\n/** @type {import(\"neetocommons/react-utils\").HoneybadgerErrorBoundary} */\nconst HoneybadgerErrorBoundary = ({\n children,\n ErrorComponent = FallbackComponent,\n filterErrors = undefined,\n}) => {\n Honeybadger.beforeNotify(notice => {\n if (!notice) return false;\n\n const isIgnorable =\n IGNORABLE_ERRORS_REGEX.test(notice.message) ||\n IGNORABLE_ERROR_NAMES_REGEX.test(notice.name) ||\n IGNORABLE_STACKS_REGEX.test(notice.stack) ||\n filterErrors?.(notice) === false;\n\n if (isIgnorable) return false;\n\n const context = { errorClass: notice.name };\n\n if (notice.name === \"ChunkLoadError\") {\n context.IGNORABLE_ERROR_NAMES_REGEX = IGNORABLE_ERROR_NAMES_REGEX;\n context.isChunkLoadError = IGNORABLE_ERROR_NAMES_REGEX.test(notice.name);\n }\n\n const user = globalProps.user?.email;\n if (user) context.user = user;\n\n const sessionReplay = getSessionReplayUrl();\n if (sessionReplay) context.sessionReplay = sessionReplay;\n\n attachContext(notice, context);\n\n return true;\n });\n\n const honeybadger = Honeybadger.configure({\n apiKey: globalProps.honeybadgerApiKey,\n environment: globalProps.railsEnv,\n revision: globalProps.honeybadgerRevision,\n developmentEnvironments: [\"development\", \"test\"],\n enableUncaught: true,\n async: true,\n breadcrumbsEnabled: true,\n projectRoot: \"webpack:///./\",\n enableUnhandledRejection: false,\n });\n\n return (\n <ErrorBoundary {...{ ErrorComponent, honeybadger }}>\n {children}\n </ErrorBoundary>\n );\n};\n\nexport default HoneybadgerErrorBoundary;\n"],"names":["HoneybadgerErrorBoundary","_ref","children","_ref$ErrorComponent","ErrorComponent","FallbackComponent","_ref$filterErrors","filterErrors","undefined","Honeybadger","beforeNotify","notice","_globalProps$user","isIgnorable","IGNORABLE_ERRORS_REGEX","test","message","IGNORABLE_ERROR_NAMES_REGEX","name","IGNORABLE_STACKS_REGEX","stack","context","errorClass","isChunkLoadError","user","globalProps","email","sessionReplay","getSessionReplayUrl","attachContext","honeybadger","configure","apiKey","honeybadgerApiKey","environment","railsEnv","revision","honeybadgerRevision","developmentEnvironments","enableUncaught","async","breadcrumbsEnabled","projectRoot","enableUnhandledRejection","_jsx","ErrorBoundary"],"mappings":";;;;;;;;;;;;;;AAcA,IAAMA,wBAAwB,GAAG,SAA3BA,wBAAwBA,CAAAC,IAAA,EAIxB;AAAA,EAAA,IAHJC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAAC,mBAAA,GAAAF,IAAA,CACRG,cAAc;AAAdA,IAAAA,cAAc,GAAAD,mBAAA,KAAGE,MAAAA,GAAAA,iBAAiB,GAAAF,mBAAA;IAAAG,iBAAA,GAAAL,IAAA,CAClCM,YAAY;AAAZA,IAAAA,YAAY,GAAAD,iBAAA,KAAGE,MAAAA,GAAAA,SAAS,GAAAF,iBAAA;AAExBG,EAAAA,WAAW,CAACC,YAAY,CAAC,UAAAC,MAAM,EAAI;AAAA,IAAA,IAAAC,iBAAA;AACjC,IAAA,IAAI,CAACD,MAAM,EA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AAW,CAACY,mBAAmB;AACzCC,IAAAA,uBAAuB,EAAE,CAAC,aAAa,EAAE,MAAM,CAAC;AAChDC,IAAAA,cAAc,EAAE,IAAI;AACpBC,IAAAA,KAAK,EAAE,IAAI;AACXC,IAAAA,kBAAkB,EAAE,IAAI;AACxBC,IAAAA,WAAW,EAAE,eAAe;AAC5BC,IAAAA,wBAAwB,EAAE;AAC5B,GAAC,CAAC;EAEF,oBACEC,GAAA,CAACC,0BAAa,EAAA;AAAOzC,IAAAA,cAAc,EAAdA,cAAc;AAAE0B,IAAAA,WAAW,EAAXA,WAAW;AAAA5B,IAAAA,QAAA,EAC7CA;AAAQ,GACI,CAAC;AAEpB;;;;"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
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'", "Can't find variable: disableWebkitEnterFullscreen", "rendererInterfaces is null", "Can't find variable: gmo", "Uncaught NetworkError: Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at 'blob:.*' failed to load.", "Can't find variable: zaloJSV2", "Importing a module script failed"].join("|"));
|
|
2
|
+
var IGNORABLE_STACKS_REGEX = new RegExp(["chrome-extension://", "js-agent.newrelic.com"].join("|"));
|
|
2
3
|
var IGNORABLE_ERROR_NAMES_REGEX = /(ChunkLoadError)/;
|
|
3
4
|
|
|
4
|
-
export { IGNORABLE_ERRORS_REGEX, IGNORABLE_ERROR_NAMES_REGEX };
|
|
5
|
+
export { IGNORABLE_ERRORS_REGEX, IGNORABLE_ERROR_NAMES_REGEX, IGNORABLE_STACKS_REGEX };
|
|
5
6
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sources":["../../../src/react-utils/HoneybadgerErrorBoundary/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 \"Can't find variable: disableWebkitEnterFullscreen\",\n \"rendererInterfaces is null\",\n \"Can't find variable: gmo\",\n \"Uncaught NetworkError: Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at 'blob:.*' failed to load.\",\n \"Can't find variable: zaloJSV2\",\n \"Importing a module script failed\",\n ].join(\"|\")\n);\nexport const IGNORABLE_ERROR_NAMES_REGEX = /(ChunkLoadError)/;\n"],"names":["IGNORABLE_ERRORS_REGEX","RegExp","join","IGNORABLE_ERROR_NAMES_REGEX"],"mappings":"IAAaA,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,mDAAmD,EACnD,4BAA4B,EAC5B,0BAA0B,EAC1B,0HAA0H,EAC1H,+BAA+B,EAC/B,kCAAkC,CACnC,CAACC,IAAI,CAAC,GAAG,CACZ,
|
|
1
|
+
{"version":3,"file":"constants.js","sources":["../../../src/react-utils/HoneybadgerErrorBoundary/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 \"Can't find variable: disableWebkitEnterFullscreen\",\n \"rendererInterfaces is null\",\n \"Can't find variable: gmo\",\n \"Uncaught NetworkError: Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at 'blob:.*' failed to load.\",\n \"Can't find variable: zaloJSV2\",\n \"Importing a module script failed\",\n ].join(\"|\")\n);\nexport const IGNORABLE_STACKS_REGEX = new RegExp(\n [\"chrome-extension://\", \"js-agent.newrelic.com\"].join(\"|\")\n);\nexport const IGNORABLE_ERROR_NAMES_REGEX = /(ChunkLoadError)/;\n"],"names":["IGNORABLE_ERRORS_REGEX","RegExp","join","IGNORABLE_STACKS_REGEX","IGNORABLE_ERROR_NAMES_REGEX"],"mappings":"IAAaA,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,mDAAmD,EACnD,4BAA4B,EAC5B,0BAA0B,EAC1B,0HAA0H,EAC1H,+BAA+B,EAC/B,kCAAkC,CACnC,CAACC,IAAI,CAAC,GAAG,CACZ;IACaC,sBAAsB,GAAG,IAAIF,MAAM,CAC9C,CAAC,qBAAqB,EAAE,uBAAuB,CAAC,CAACC,IAAI,CAAC,GAAG,CAC3D;AACO,IAAME,2BAA2B,GAAG;;;;"}
|
|
@@ -2,8 +2,7 @@ export { default } from './HoneybadgerErrorBoundary.js';
|
|
|
2
2
|
import '@honeybadger-io/react';
|
|
3
3
|
import './constants.js';
|
|
4
4
|
import './FallbackComponent.js';
|
|
5
|
-
import '../../defineProperty-
|
|
6
|
-
import '../../toPropertyKey-C6Y0u0Sf.js';
|
|
5
|
+
import '../../defineProperty-CrCYjjU3.js';
|
|
7
6
|
import '../../typeof-D-UKOauR.js';
|
|
8
7
|
import 'react';
|
|
9
8
|
import 'dompurify';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sources":["../../../src/react-utils/HoneybadgerErrorBoundary/utils.js"],"sourcesContent":["export const attachContext = (notice, context) => {\n if (notice.context) Object.assign(notice.context, context);\n else notice.context = context;\n};\n\nexport const getSessionReplayUrl = () => {\n const storage = sessionStorage.getItem(\"neeto-replay-widget--session\");\n const currentTimestamp = new Date().getTime();\n\n return storage ? `${JSON.parse(storage).url}?goto=${currentTimestamp}` : \"\";\n};\n"],"names":["attachContext","notice","context","Object","assign","getSessionReplayUrl","storage","sessionStorage","getItem","currentTimestamp","Date","getTime","concat","JSON","parse","url"],"mappings":"AAAO,IAAMA,aAAa,GAAG,SAAhBA,aAAaA,CAAIC,MAAM,EAAEC,OAAO,EAAK;EAChD,IAAID,MAAM,CAACC,OAAO,EAAEC,MAAM,CAACC,MAAM,CAACH,MAAM,CAACC,OAAO,EAAEA,OAAO,CAAC,CAAC,KACtDD,MAAM,CAACC,OAAO,GAAGA,OAAO
|
|
1
|
+
{"version":3,"file":"utils.js","sources":["../../../src/react-utils/HoneybadgerErrorBoundary/utils.js"],"sourcesContent":["export const attachContext = (notice, context) => {\n if (notice.context) Object.assign(notice.context, context);\n else notice.context = context;\n};\n\nexport const getSessionReplayUrl = () => {\n const storage = sessionStorage.getItem(\"neeto-replay-widget--session\");\n const currentTimestamp = new Date().getTime();\n\n return storage ? `${JSON.parse(storage).url}?goto=${currentTimestamp}` : \"\";\n};\n"],"names":["attachContext","notice","context","Object","assign","getSessionReplayUrl","storage","sessionStorage","getItem","currentTimestamp","Date","getTime","concat","JSON","parse","url"],"mappings":"AAAO,IAAMA,aAAa,GAAG,SAAhBA,aAAaA,CAAIC,MAAM,EAAEC,OAAO,EAAK;EAChD,IAAID,MAAM,CAACC,OAAO,EAAEC,MAAM,CAACC,MAAM,CAACH,MAAM,CAACC,OAAO,EAAEA,OAAO,CAAC,CAAC,KACtDD,MAAM,CAACC,OAAO,GAAGA,OAAO;AAC/B;IAEaG,mBAAmB,GAAG,SAAtBA,mBAAmBA,GAAS;AACvC,EAAA,IAAMC,OAAO,GAAGC,cAAc,CAACC,OAAO,CAAC,8BAA8B,CAAC;EACtE,IAAMC,gBAAgB,GAAG,IAAIC,IAAI,EAAE,CAACC,OAAO,EAAE;AAE7C,EAAA,OAAOL,OAAO,GAAAM,EAAAA,CAAAA,MAAA,CAAMC,IAAI,CAACC,KAAK,CAACR,OAAO,CAAC,CAACS,GAAG,EAAA,QAAA,CAAA,CAAAH,MAAA,CAASH,gBAAgB,IAAK,EAAE;AAC7E;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageTitle.js","sources":["../../../src/react-utils/PageTitle/PageTitle.jsx"],"sourcesContent":["import { globalProps } from \"neetocommons/initializers\";\nimport PropTypes from \"prop-types\";\nimport Helmet from \"react-helmet\";\n\nconst PageTitle = ({ title }) => {\n const pageTitle = title\n ? `${title} | ${globalProps.appName}`\n : globalProps.appName;\n\n return (\n <Helmet>\n <title>{pageTitle}</title>\n </Helmet>\n );\n};\n\nPageTitle.propTypes = {\n /**\n * Title to be set to the page.\n */\n title: PropTypes.string,\n};\n\nexport default PageTitle;\n"],"names":["PageTitle","_ref","title","pageTitle","concat","globalProps","appName","_jsx","Helmet","children"],"mappings":";;;;AAIA,IAAMA,SAAS,GAAG,SAAZA,SAASA,CAAAC,IAAA,EAAkB;AAAA,EAAA,IAAZC,KAAK,GAAAD,IAAA,CAALC,KAAK
|
|
1
|
+
{"version":3,"file":"PageTitle.js","sources":["../../../src/react-utils/PageTitle/PageTitle.jsx"],"sourcesContent":["import { globalProps } from \"neetocommons/initializers\";\nimport PropTypes from \"prop-types\";\nimport Helmet from \"react-helmet\";\n\nconst PageTitle = ({ title }) => {\n const pageTitle = title\n ? `${title} | ${globalProps.appName}`\n : globalProps.appName;\n\n return (\n <Helmet>\n <title>{pageTitle}</title>\n </Helmet>\n );\n};\n\nPageTitle.propTypes = {\n /**\n * Title to be set to the page.\n */\n title: PropTypes.string,\n};\n\nexport default PageTitle;\n"],"names":["PageTitle","_ref","title","pageTitle","concat","globalProps","appName","_jsx","Helmet","children"],"mappings":";;;;AAIA,IAAMA,SAAS,GAAG,SAAZA,SAASA,CAAAC,IAAA,EAAkB;AAAA,EAAA,IAAZC,KAAK,GAAAD,IAAA,CAALC,KAAK;AACxB,EAAA,IAAMC,SAAS,GAAGD,KAAK,GAAAE,EAAAA,CAAAA,MAAA,CAChBF,KAAK,EAAA,KAAA,CAAA,CAAAE,MAAA,CAAMC,WAAW,CAACC,OAAO,CACjCD,GAAAA,WAAW,CAACC,OAAO;EAEvB,oBACEC,GAAA,CAACC,MAAM,EAAA;AAAAC,IAAAA,QAAA,eACLF,GAAA,CAAA,OAAA,EAAA;AAAAE,MAAAA,QAAA,EAAQN;KAAiB;AAAC,GACpB,CAAC;AAEb;;;;"}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { _ as _defineProperty } from '../../defineProperty-
|
|
1
|
+
import { _ as _defineProperty } from '../../defineProperty-CrCYjjU3.js';
|
|
2
2
|
import { _ as _objectWithoutProperties } from '../../objectWithoutProperties-DN7d1SzH.js';
|
|
3
3
|
import ErrorPage from '@bigbinary/neeto-molecules/ErrorPage';
|
|
4
4
|
import { includes, __ } from 'ramda';
|
|
5
5
|
import { Route, Redirect } from 'react-router-dom';
|
|
6
6
|
import { jsx } from 'react/jsx-runtime';
|
|
7
|
-
import '../../toPropertyKey-C6Y0u0Sf.js';
|
|
8
7
|
import '../../typeof-D-UKOauR.js';
|
|
9
8
|
|
|
10
9
|
var _excluded = ["condition", "redirectRoute", "errorPage", "permissions"];
|
|
11
10
|
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; }
|
|
12
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t),
|
|
11
|
+
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(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; }
|
|
13
12
|
var PrivateRoute = function PrivateRoute(_ref) {
|
|
14
13
|
var _ref$condition = _ref.condition,
|
|
15
14
|
condition = _ref$condition === void 0 ? globalProps.authenticated : _ref$condition,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrivateRoute.js","sources":["../../../src/react-utils/PrivateRoute/PrivateRoute.jsx"],"sourcesContent":["import ErrorPage from \"neetomolecules/ErrorPage\";\nimport { __, includes } from \"ramda\";\nimport { Redirect, Route } from \"react-router-dom\";\n\nconst PrivateRoute = ({\n condition = globalProps.authenticated,\n redirectRoute = undefined,\n errorPage = undefined,\n permissions = undefined,\n ...props\n}) => {\n if (condition) {\n if (permissions) {\n return globalProps.permissions.some(includes(__, permissions)) ? (\n <Route {...props} />\n ) : (\n <Route\n {...props}\n component={() => errorPage || <ErrorPage status={403} />}\n />\n );\n }\n\n return <Route {...props} />;\n }\n\n if (redirectRoute) {\n return <Redirect to={{ pathname: redirectRoute }} />;\n }\n\n return errorPage || <ErrorPage status={403} />;\n};\n\nexport default PrivateRoute;\n"],"names":["PrivateRoute","_ref","_ref$condition","condition","globalProps","authenticated","_ref$redirectRoute","redirectRoute","undefined","_ref$errorPage","errorPage","_ref$permissions","permissions","props","_objectWithoutProperties","_excluded","some","includes","__","_jsx","Route","_objectSpread","component","ErrorPage","status","Redirect","to","pathname"],"mappings":"
|
|
1
|
+
{"version":3,"file":"PrivateRoute.js","sources":["../../../src/react-utils/PrivateRoute/PrivateRoute.jsx"],"sourcesContent":["import ErrorPage from \"neetomolecules/ErrorPage\";\nimport { __, includes } from \"ramda\";\nimport { Redirect, Route } from \"react-router-dom\";\n\nconst PrivateRoute = ({\n condition = globalProps.authenticated,\n redirectRoute = undefined,\n errorPage = undefined,\n permissions = undefined,\n ...props\n}) => {\n if (condition) {\n if (permissions) {\n return globalProps.permissions.some(includes(__, permissions)) ? (\n <Route {...props} />\n ) : (\n <Route\n {...props}\n component={() => errorPage || <ErrorPage status={403} />}\n />\n );\n }\n\n return <Route {...props} />;\n }\n\n if (redirectRoute) {\n return <Redirect to={{ pathname: redirectRoute }} />;\n }\n\n return errorPage || <ErrorPage status={403} />;\n};\n\nexport default PrivateRoute;\n"],"names":["PrivateRoute","_ref","_ref$condition","condition","globalProps","authenticated","_ref$redirectRoute","redirectRoute","undefined","_ref$errorPage","errorPage","_ref$permissions","permissions","props","_objectWithoutProperties","_excluded","some","includes","__","_jsx","Route","_objectSpread","component","ErrorPage","status","Redirect","to","pathname"],"mappings":";;;;;;;;;;;AAIA,IAAMA,YAAY,GAAG,SAAfA,YAAYA,CAAAC,IAAA,EAMZ;AAAA,EAAA,IAAAC,cAAA,GAAAD,IAAA,CALJE,SAAS;AAATA,IAAAA,SAAS,GAAAD,cAAA,KAAA,MAAA,GAAGE,WAAW,CAACC,aAAa,GAAAH,cAAA;IAAAI,kBAAA,GAAAL,IAAA,CACrCM,aAAa;AAAbA,IAAAA,aAAa,GAAAD,kBAAA,KAAGE,MAAAA,GAAAA,SAAS,GAAAF,kBAAA;IAAAG,cAAA,GAAAR,IAAA,CACzBS,SAAS;AAATA,IAAAA,SAAS,GAAAD,cAAA,KAAGD,MAAAA,GAAAA,SAAS,GAAAC,cAAA;IAAAE,gBAAA,GAAAV,IAAA,CACrBW,WAAW;AAAXA,IAAAA,WAAW,GAAAD,gBAAA,KAAGH,MAAAA,GAAAA,SAAS,GAAAG,gBAAA;AACpBE,IAAAA,KAAK,GAAAC,wBAAA,CAAAb,IAAA,EAAAc,SAAA,CAAA;AAER,EAAA,IAAIZ,SAAS,EAAE;AACb,IAAA,IAAIS,WAAW,EAAE;AACf,MAAA,OAAOR,WAAW,CAACQ,WAAW,CAACI,IAAI,CAACC,QAAQ,CAACC,EAAE,EAAEN,WAAW,CAAC,CAAC,gBAC5DO,GAAA,CAACC,KAAK,EAAAC,aAAA,CAAA,EAAA,EAAKR,KAAK,CAAG,CAAC,gBAEpBM,GAAA,CAACC,KAAK,EAAAC,aAAA,CAAAA,aAAA,KACAR,KAAK,CAAA,EAAA,EAAA,EAAA;QACTS,SAAS,EAAE,SAAXA,SAASA,GAAA;AAAA,UAAA,OAAQZ,SAAS,iBAAIS,GAAA,CAACI,SAAS,EAAA;AAACC,YAAAA,MAAM,EAAE;AAAI,WAAE,CAAC;AAAA;AAAC,OAAA,CAC1D,CACF;AACH;IAEA,oBAAOL,GAAA,CAACC,KAAK,EAAAC,aAAA,CAAKR,EAAAA,EAAAA,KAAK,CAAG,CAAC;AAC7B;AAEA,EAAA,IAAIN,aAAa,EAAE;IACjB,oBAAOY,GAAA,CAACM,QAAQ,EAAA;AAACC,MAAAA,EAAE,EAAE;AAAEC,QAAAA,QAAQ,EAAEpB;AAAc;AAAE,KAAE,CAAC;AACtD;AAEA,EAAA,OAAOG,SAAS,iBAAIS,GAAA,CAACI,SAAS,EAAA;AAACC,IAAAA,MAAM,EAAE;AAAI,GAAE,CAAC;AAChD;;;;"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export { default } from './PrivateRoute.js';
|
|
2
|
-
import '../../defineProperty-
|
|
3
|
-
import '../../toPropertyKey-C6Y0u0Sf.js';
|
|
2
|
+
import '../../defineProperty-CrCYjjU3.js';
|
|
4
3
|
import '../../typeof-D-UKOauR.js';
|
|
5
4
|
import '../../objectWithoutProperties-DN7d1SzH.js';
|
|
6
5
|
import '@bigbinary/neeto-molecules/ErrorPage';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryClientProvider.js","sources":["../../../src/react-utils/QueryClientProvider/QueryClientProvider.jsx"],"sourcesContent":["import { QueryClientProvider as TanstackQueryClientProvider } from \"@tanstack/react-query\";\n\nimport queryClient from \"./queryClient\";\n\nconst QueryClientProvider = ({ children }) => (\n <TanstackQueryClientProvider client={queryClient}>\n {children}\n </TanstackQueryClientProvider>\n);\n\nexport default QueryClientProvider;\n"],"names":["QueryClientProvider","_ref","children","_jsx","TanstackQueryClientProvider","client","queryClient"],"mappings":";;;;;;AAIA,IAAMA,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMC,QAAQ,GAAAD,IAAA,CAARC,QAAQ
|
|
1
|
+
{"version":3,"file":"QueryClientProvider.js","sources":["../../../src/react-utils/QueryClientProvider/QueryClientProvider.jsx"],"sourcesContent":["import { QueryClientProvider as TanstackQueryClientProvider } from \"@tanstack/react-query\";\n\nimport queryClient from \"./queryClient\";\n\nconst QueryClientProvider = ({ children }) => (\n <TanstackQueryClientProvider client={queryClient}>\n {children}\n </TanstackQueryClientProvider>\n);\n\nexport default QueryClientProvider;\n"],"names":["QueryClientProvider","_ref","children","_jsx","TanstackQueryClientProvider","client","queryClient"],"mappings":";;;;;;AAIA,IAAMA,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;EAAA,oBACrCC,GAAA,CAACC,qBAA2B,EAAA;AAACC,IAAAA,MAAM,EAAEC,WAAY;AAAAJ,IAAAA,QAAA,EAC9CA;AAAQ,GACkB,CAAC;AAAA;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queryClient.js","sources":["../../../src/react-utils/QueryClientProvider/queryClient.js"],"sourcesContent":["import {\n QueryClient,\n QueryCache,\n keepPreviousData,\n} from \"@tanstack/react-query\";\n\n// eslint-disable-next-line @bigbinary/neeto/use-webpack-alias\nimport { DEFAULT_STALE_TIME } from \"../../constants\";\n\nconst queryClient = new QueryClient({\n queryCache: new QueryCache(),\n defaultOptions: {\n queries: {\n refetchOnWindowFocus: false,\n staleTime: DEFAULT_STALE_TIME,\n placeholderData: keepPreviousData,\n },\n },\n});\n\nexport default queryClient;\n"],"names":["queryClient","QueryClient","queryCache","QueryCache","defaultOptions","queries","refetchOnWindowFocus","staleTime","DEFAULT_STALE_TIME","placeholderData","keepPreviousData"],"mappings":";;;;AASA,IAAMA,WAAW,GAAG,IAAIC,WAAW,CAAC;AAClCC,EAAAA,UAAU,EAAE,IAAIC,UAAU,EAAE;AAC5BC,EAAAA,cAAc,EAAE;AACdC,IAAAA,OAAO,EAAE;AACPC,MAAAA,oBAAoB,EAAE,KAAK;AAC3BC,MAAAA,SAAS,EAAEC,kBAAkB;AAC7BC,MAAAA,eAAe,EAAEC
|
|
1
|
+
{"version":3,"file":"queryClient.js","sources":["../../../src/react-utils/QueryClientProvider/queryClient.js"],"sourcesContent":["import {\n QueryClient,\n QueryCache,\n keepPreviousData,\n} from \"@tanstack/react-query\";\n\n// eslint-disable-next-line @bigbinary/neeto/use-webpack-alias\nimport { DEFAULT_STALE_TIME } from \"../../constants\";\n\nconst queryClient = new QueryClient({\n queryCache: new QueryCache(),\n defaultOptions: {\n queries: {\n refetchOnWindowFocus: false,\n staleTime: DEFAULT_STALE_TIME,\n placeholderData: keepPreviousData,\n },\n },\n});\n\nexport default queryClient;\n"],"names":["queryClient","QueryClient","queryCache","QueryCache","defaultOptions","queries","refetchOnWindowFocus","staleTime","DEFAULT_STALE_TIME","placeholderData","keepPreviousData"],"mappings":";;;;AASA,IAAMA,WAAW,GAAG,IAAIC,WAAW,CAAC;AAClCC,EAAAA,UAAU,EAAE,IAAIC,UAAU,EAAE;AAC5BC,EAAAA,cAAc,EAAE;AACdC,IAAAA,OAAO,EAAE;AACPC,MAAAA,oBAAoB,EAAE,KAAK;AAC3BC,MAAAA,SAAS,EAAEC,kBAAkB;AAC7BC,MAAAA,eAAe,EAAEC;AACnB;AACF;AACF,CAAC;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sources":["../../../src/react-utils/constants/constants.js"],"sourcesContent":["export const QUERY_CACHE_NAME_SPACE = \"queryCache\";\nexport const NEETO_APPS_LIST_STALE_TIME = 30 * 24 * 60 * 60 * 1000; // 30 days\nexport const STORAGE_KEY = \"navigationCheckpoints\";\n"],"names":["QUERY_CACHE_NAME_SPACE","NEETO_APPS_LIST_STALE_TIME","STORAGE_KEY"],"mappings":"AAAO,IAAMA,sBAAsB,GAAG
|
|
1
|
+
{"version":3,"file":"constants.js","sources":["../../../src/react-utils/constants/constants.js"],"sourcesContent":["export const QUERY_CACHE_NAME_SPACE = \"queryCache\";\nexport const NEETO_APPS_LIST_STALE_TIME = 30 * 24 * 60 * 60 * 1000; // 30 days\nexport const STORAGE_KEY = \"navigationCheckpoints\";\n"],"names":["QUERY_CACHE_NAME_SPACE","NEETO_APPS_LIST_STALE_TIME","STORAGE_KEY"],"mappings":"AAAO,IAAMA,sBAAsB,GAAG;AACzBC,IAAAA,0BAA0B,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,KAAK;AAC5D,IAAMC,WAAW,GAAG;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.js","sources":["../../../src/react-utils/constants/query.js"],"sourcesContent":["export const QUERY_KEYS = { NEETO_APPS_LIST: \"neeto-apps-list\" };\n"],"names":["QUERY_KEYS","NEETO_APPS_LIST"],"mappings":"AAAO,IAAMA,UAAU,GAAG;AAAEC,EAAAA,eAAe,EAAE
|
|
1
|
+
{"version":3,"file":"query.js","sources":["../../../src/react-utils/constants/query.js"],"sourcesContent":["export const QUERY_KEYS = { NEETO_APPS_LIST: \"neeto-apps-list\" };\n"],"names":["QUERY_KEYS","NEETO_APPS_LIST"],"mappings":"AAAO,IAAMA,UAAU,GAAG;AAAEC,EAAAA,eAAe,EAAE;AAAkB;;;;"}
|
|
@@ -31,8 +31,7 @@ export { default as AppContainer } from './AppContainer/AppContainer.js';
|
|
|
31
31
|
import '@honeybadger-io/react';
|
|
32
32
|
import './HoneybadgerErrorBoundary/constants.js';
|
|
33
33
|
import './HoneybadgerErrorBoundary/FallbackComponent.js';
|
|
34
|
-
import '../defineProperty-
|
|
35
|
-
import '../toPropertyKey-C6Y0u0Sf.js';
|
|
34
|
+
import '../defineProperty-CrCYjjU3.js';
|
|
36
35
|
import '../typeof-D-UKOauR.js';
|
|
37
36
|
import 'react';
|
|
38
37
|
import 'dompurify';
|
|
@@ -47,7 +46,7 @@ import '@bigbinary/neeto-molecules/ErrorPage';
|
|
|
47
46
|
import 'react-router-dom';
|
|
48
47
|
import '@bigbinary/neeto-commons-frontend/initializers';
|
|
49
48
|
import 'react-helmet';
|
|
50
|
-
import '../slicedToArray-
|
|
49
|
+
import '../slicedToArray-DmsZvA_9.js';
|
|
51
50
|
import '../unsupportedIterableToArray-Dqz8Y8_I.js';
|
|
52
51
|
import 'zustand';
|
|
53
52
|
import '@bigbinary/neeto-cist';
|
|
@@ -59,19 +58,18 @@ import './useIsElementVisibleInDom/useForceUpdate.js';
|
|
|
59
58
|
import 'zustand/shallow';
|
|
60
59
|
import '../initializers/constants.js';
|
|
61
60
|
import '../utils/general.js';
|
|
62
|
-
import '../index-
|
|
61
|
+
import '../index-COfUw8MU.js';
|
|
63
62
|
import '../_commonjsHelpers-B85MJLTf.js';
|
|
64
63
|
import 'i18next';
|
|
65
64
|
import '@bigbinary/neetoui/Toastr';
|
|
66
65
|
import 'qs';
|
|
67
66
|
import '../utils/dayjs.js';
|
|
68
67
|
import '../toConsumableArray-B7CFjjkW.js';
|
|
69
|
-
import '../createClass-BvEaZs3T.js';
|
|
70
68
|
import 'dayjs';
|
|
71
69
|
import '../utils/createSubscription.js';
|
|
72
70
|
import '@rails/actioncable';
|
|
73
71
|
import 'yup';
|
|
74
|
-
import '../mixpanel.
|
|
72
|
+
import '../mixpanel.module-Bu2zrBMQ.js';
|
|
75
73
|
import '@tanstack/react-query';
|
|
76
74
|
import './useBreakpoints/utils.js';
|
|
77
75
|
import './BrowserPushNotifications/devices.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metaClick.js","sources":["../../../src/react-utils/metaClick/metaClick.js"],"sourcesContent":["import { curry } from \"ramda\";\n\nexport const handleMetaClick = curry((history, params, event, options = {}) => {\n if (isMetaKeyPressed(event)) {\n return window.open(params.pathname || params, \"_blank\");\n }\n\n const { isHistoryReplace = false } = options;\n const historyMethod = isHistoryReplace ? history.replace : history.push;\n\n return historyMethod(params);\n});\n\nexport const isMetaKeyPressed = event => !!(event?.ctrlKey || event?.metaKey);\n"],"names":["handleMetaClick","curry","history","params","event","options","arguments","length","undefined","isMetaKeyPressed","window","open","pathname","_options$isHistoryRep","isHistoryReplace","historyMethod","replace","push","ctrlKey","metaKey"],"mappings":";;AAEO,IAAMA,eAAe,GAAGC,KAAK,CAAC,UAACC,OAAO,EAAEC,MAAM,EAAEC,KAAK,EAAmB;AAAA,EAAA,IAAjBC,OAAO,GAAAC,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAG,EAAE
|
|
1
|
+
{"version":3,"file":"metaClick.js","sources":["../../../src/react-utils/metaClick/metaClick.js"],"sourcesContent":["import { curry } from \"ramda\";\n\nexport const handleMetaClick = curry((history, params, event, options = {}) => {\n if (isMetaKeyPressed(event)) {\n return window.open(params.pathname || params, \"_blank\");\n }\n\n const { isHistoryReplace = false } = options;\n const historyMethod = isHistoryReplace ? history.replace : history.push;\n\n return historyMethod(params);\n});\n\nexport const isMetaKeyPressed = event => !!(event?.ctrlKey || event?.metaKey);\n"],"names":["handleMetaClick","curry","history","params","event","options","arguments","length","undefined","isMetaKeyPressed","window","open","pathname","_options$isHistoryRep","isHistoryReplace","historyMethod","replace","push","ctrlKey","metaKey"],"mappings":";;AAEO,IAAMA,eAAe,GAAGC,KAAK,CAAC,UAACC,OAAO,EAAEC,MAAM,EAAEC,KAAK,EAAmB;AAAA,EAAA,IAAjBC,OAAO,GAAAC,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAG,EAAE;AACxE,EAAA,IAAIG,gBAAgB,CAACL,KAAK,CAAC,EAAE;IAC3B,OAAOM,MAAM,CAACC,IAAI,CAACR,MAAM,CAACS,QAAQ,IAAIT,MAAM,EAAE,QAAQ,CAAC;AACzD;AAEA,EAAA,IAAAU,qBAAA,GAAqCR,OAAO,CAApCS,gBAAgB;AAAhBA,IAAAA,gBAAgB,GAAAD,qBAAA,KAAG,MAAA,GAAA,KAAK,GAAAA,qBAAA;EAChC,IAAME,aAAa,GAAGD,gBAAgB,GAAGZ,OAAO,CAACc,OAAO,GAAGd,OAAO,CAACe,IAAI;EAEvE,OAAOF,aAAa,CAACZ,MAAM,CAAC;AAC9B,CAAC;IAEYM,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAGL,KAAK,EAAA;AAAA,EAAA,OAAI,CAAC,EAAEA,KAAK,KAALA,IAAAA,IAAAA,KAAK,eAALA,KAAK,CAAEc,OAAO,IAAId,KAAK,KAALA,IAAAA,IAAAA,KAAK,eAALA,KAAK,CAAEe,OAAO,CAAC;AAAA;;;;"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { useSyncExternalStore } from 'react';
|
|
2
2
|
import { equals } from 'ramda';
|
|
3
3
|
import { subscribe, getCurrentSize } from './utils.js';
|
|
4
|
-
import '../../defineProperty-
|
|
5
|
-
import '../../toPropertyKey-C6Y0u0Sf.js';
|
|
4
|
+
import '../../defineProperty-CrCYjjU3.js';
|
|
6
5
|
import '../../typeof-D-UKOauR.js';
|
|
7
6
|
|
|
8
7
|
var useBreakpoints = function useBreakpoints(breakpointOverrides) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/react-utils/useBreakpoints/index.js"],"sourcesContent":["import { useSyncExternalStore } from \"react\";\n\nimport { equals } from \"ramda\";\n\nimport { getCurrentSize, subscribe } from \"./utils\";\n\nconst useBreakpoints = breakpointOverrides => {\n const getSnapshot = () => getCurrentSize(window, breakpointOverrides);\n const currentSize = useSyncExternalStore(subscribe, getSnapshot);\n\n return { currentSize, isSize: equals(currentSize) };\n};\n\nexport default useBreakpoints;\n"],"names":["useBreakpoints","breakpointOverrides","getSnapshot","getCurrentSize","window","currentSize","useSyncExternalStore","subscribe","isSize","equals"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/react-utils/useBreakpoints/index.js"],"sourcesContent":["import { useSyncExternalStore } from \"react\";\n\nimport { equals } from \"ramda\";\n\nimport { getCurrentSize, subscribe } from \"./utils\";\n\nconst useBreakpoints = breakpointOverrides => {\n const getSnapshot = () => getCurrentSize(window, breakpointOverrides);\n const currentSize = useSyncExternalStore(subscribe, getSnapshot);\n\n return { currentSize, isSize: equals(currentSize) };\n};\n\nexport default useBreakpoints;\n"],"names":["useBreakpoints","breakpointOverrides","getSnapshot","getCurrentSize","window","currentSize","useSyncExternalStore","subscribe","isSize","equals"],"mappings":";;;;;;AAMA,IAAMA,cAAc,GAAG,SAAjBA,cAAcA,CAAGC,mBAAmB,EAAI;AAC5C,EAAA,IAAMC,WAAW,GAAG,SAAdA,WAAWA,GAAA;AAAA,IAAA,OAASC,cAAc,CAACC,MAAM,EAAEH,mBAAmB,CAAC;AAAA,GAAA;AACrE,EAAA,IAAMI,WAAW,GAAGC,oBAAoB,CAACC,SAAS,EAAEL,WAAW,CAAC;EAEhE,OAAO;AAAEG,IAAAA,WAAW,EAAXA,WAAW;IAAEG,MAAM,EAAEC,MAAM,CAACJ,WAAW;GAAG;AACrD;;;;"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { _ as _defineProperty } from '../../defineProperty-
|
|
2
|
-
import '../../toPropertyKey-C6Y0u0Sf.js';
|
|
1
|
+
import { _ as _defineProperty } from '../../defineProperty-CrCYjjU3.js';
|
|
3
2
|
import '../../typeof-D-UKOauR.js';
|
|
4
3
|
|
|
5
4
|
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; }
|
|
6
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t),
|
|
5
|
+
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(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; }
|
|
7
6
|
var subscribe = function subscribe(listener) {
|
|
8
7
|
window.addEventListener("resize", listener);
|
|
9
8
|
return function () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sources":["../../../src/react-utils/useBreakpoints/utils.js"],"sourcesContent":["export const subscribe = listener => {\n window.addEventListener(\"resize\", listener);\n\n return () => window.removeEventListener(\"resize\", listener);\n};\n\nexport const getCurrentSize = (window, breakpointOverrides) => {\n const { innerWidth } = window;\n const sizes = {\n mobile: innerWidth < 768,\n tablet: innerWidth >= 768 && innerWidth < 1024,\n desktop: innerWidth >= 1024 && innerWidth < 1280,\n largeDesktop: innerWidth >= 1280,\n ...breakpointOverrides?.(window),\n };\n\n const size = Object.keys(sizes).find(breakpoint => sizes[breakpoint]) || \"\";\n\n return size;\n};\n"],"names":["subscribe","listener","window","addEventListener","removeEventListener","getCurrentSize","breakpointOverrides","innerWidth","sizes","_objectSpread","mobile","tablet","desktop","largeDesktop","size","Object","keys","find","breakpoint"],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.js","sources":["../../../src/react-utils/useBreakpoints/utils.js"],"sourcesContent":["export const subscribe = listener => {\n window.addEventListener(\"resize\", listener);\n\n return () => window.removeEventListener(\"resize\", listener);\n};\n\nexport const getCurrentSize = (window, breakpointOverrides) => {\n const { innerWidth } = window;\n const sizes = {\n mobile: innerWidth < 768,\n tablet: innerWidth >= 768 && innerWidth < 1024,\n desktop: innerWidth >= 1024 && innerWidth < 1280,\n largeDesktop: innerWidth >= 1280,\n ...breakpointOverrides?.(window),\n };\n\n const size = Object.keys(sizes).find(breakpoint => sizes[breakpoint]) || \"\";\n\n return size;\n};\n"],"names":["subscribe","listener","window","addEventListener","removeEventListener","getCurrentSize","breakpointOverrides","innerWidth","sizes","_objectSpread","mobile","tablet","desktop","largeDesktop","size","Object","keys","find","breakpoint"],"mappings":";;;;;IAAaA,SAAS,GAAG,SAAZA,SAASA,CAAGC,QAAQ,EAAI;AACnCC,EAAAA,MAAM,CAACC,gBAAgB,CAAC,QAAQ,EAAEF,QAAQ,CAAC;EAE3C,OAAO,YAAA;AAAA,IAAA,OAAMC,MAAM,CAACE,mBAAmB,CAAC,QAAQ,EAAEH,QAAQ,CAAC;AAAA,GAAA;AAC7D;AAEO,IAAMI,cAAc,GAAG,SAAjBA,cAAcA,CAAIH,MAAM,EAAEI,mBAAmB,EAAK;AAC7D,EAAA,IAAQC,UAAU,GAAKL,MAAM,CAArBK,UAAU;EAClB,IAAMC,KAAK,GAAAC,aAAA,CAAA;IACTC,MAAM,EAAEH,UAAU,GAAG,GAAG;AACxBI,IAAAA,MAAM,EAAEJ,UAAU,IAAI,GAAG,IAAIA,UAAU,GAAG,IAAI;AAC9CK,IAAAA,OAAO,EAAEL,UAAU,IAAI,IAAI,IAAIA,UAAU,GAAG,IAAI;IAChDM,YAAY,EAAEN,UAAU,IAAI;GACzBD,EAAAA,mBAAmB,aAAnBA,mBAAmB,KAAA,MAAA,GAAA,MAAA,GAAnBA,mBAAmB,CAAGJ,MAAM,CAAC,CACjC;AAED,EAAA,IAAMY,IAAI,GAAGC,MAAM,CAACC,IAAI,CAACR,KAAK,CAAC,CAACS,IAAI,CAAC,UAAAC,UAAU,EAAA;IAAA,OAAIV,KAAK,CAACU,UAAU,CAAC;AAAA,GAAA,CAAC,IAAI,EAAE;AAE3E,EAAA,OAAOJ,IAAI;AACb;;;;"}
|