@bigbinary/neeto-commons-frontend 4.13.30 → 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 +1 -2
- package/dist/cjs/react-utils/HoneybadgerErrorBoundary/HoneybadgerErrorBoundary.js.map +1 -1
- 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 +1 -2
- package/dist/react-utils/HoneybadgerErrorBoundary/HoneybadgerErrorBoundary.js.map +1 -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":"useDebounce.js","sources":["../../../../src/react-utils/useDebounce/useDebounce.js"],"sourcesContent":["import { useState, useEffect } from \"react\";\n\nconst useDebounce = (value, delay = 350) => {\n const [debouncedValue, setDebouncedValue] = useState(value);\n\n useEffect(() => {\n const handler = setTimeout(() => {\n setDebouncedValue(value);\n }, delay);\n\n return () => {\n clearTimeout(handler);\n };\n }, [value]);\n\n return debouncedValue;\n};\n\nexport default useDebounce;\n"],"names":["useDebounce","value","delay","arguments","length","undefined","_useState","useState","_useState2","_slicedToArray","debouncedValue","setDebouncedValue","useEffect","handler","setTimeout","clearTimeout"],"mappings":";;;;;;AAEA,IAAMA,WAAW,GAAG,SAAdA,WAAWA,CAAIC,KAAK,EAAkB;AAAA,EAAA,IAAhBC,KAAK,GAAAC,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAG,GAAG
|
|
1
|
+
{"version":3,"file":"useDebounce.js","sources":["../../../../src/react-utils/useDebounce/useDebounce.js"],"sourcesContent":["import { useState, useEffect } from \"react\";\n\nconst useDebounce = (value, delay = 350) => {\n const [debouncedValue, setDebouncedValue] = useState(value);\n\n useEffect(() => {\n const handler = setTimeout(() => {\n setDebouncedValue(value);\n }, delay);\n\n return () => {\n clearTimeout(handler);\n };\n }, [value]);\n\n return debouncedValue;\n};\n\nexport default useDebounce;\n"],"names":["useDebounce","value","delay","arguments","length","undefined","_useState","useState","_useState2","_slicedToArray","debouncedValue","setDebouncedValue","useEffect","handler","setTimeout","clearTimeout"],"mappings":";;;;;;AAEA,IAAMA,WAAW,GAAG,SAAdA,WAAWA,CAAIC,KAAK,EAAkB;AAAA,EAAA,IAAhBC,KAAK,GAAAC,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAG,GAAG;AACrC,EAAA,IAAAG,SAAA,GAA4CC,cAAQ,CAACN,KAAK,CAAC;IAAAO,UAAA,GAAAC,4BAAA,CAAAH,SAAA,EAAA,CAAA,CAAA;AAApDI,IAAAA,cAAc,GAAAF,UAAA,CAAA,CAAA,CAAA;AAAEG,IAAAA,iBAAiB,GAAAH,UAAA,CAAA,CAAA,CAAA;AAExCI,EAAAA,eAAS,CAAC,YAAM;AACd,IAAA,IAAMC,OAAO,GAAGC,UAAU,CAAC,YAAM;MAC/BH,iBAAiB,CAACV,KAAK,CAAC;KACzB,EAAEC,KAAK,CAAC;AAET,IAAA,OAAO,YAAM;MACXa,YAAY,CAACF,OAAO,CAAC;KACtB;AACH,GAAC,EAAE,CAACZ,KAAK,CAAC,CAAC;AAEX,EAAA,OAAOS,cAAc;AACvB;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDisplayErrorPage.js","sources":["../../../../src/react-utils/useDisplayErrorPage/useDisplayErrorPage.js"],"sourcesContent":["import { prop } from \"ramda\";\nimport { create } from \"zustand\";\n\nconst useDisplayErrorPage = () => useErrorDisplayStore(prop(\"showErrorPage\"));\n\nexport const useErrorDisplayStore = create(() => ({\n showErrorPage: false,\n statusCode: 404,\n failedApiUrl: \"\",\n failedApiPath: \"\",\n showRefreshRibbon: false,\n}));\n\nexport default useDisplayErrorPage;\n"],"names":["useDisplayErrorPage","useErrorDisplayStore","prop","create","showErrorPage","statusCode","failedApiUrl","failedApiPath","showRefreshRibbon"],"mappings":";;;;;;;AAGA,IAAMA,mBAAmB,GAAG,SAAtBA,mBAAmBA,GAAA;AAAA,EAAA,OAASC,oBAAoB,CAACC,UAAI,CAAC,eAAe,CAAC,CAAC
|
|
1
|
+
{"version":3,"file":"useDisplayErrorPage.js","sources":["../../../../src/react-utils/useDisplayErrorPage/useDisplayErrorPage.js"],"sourcesContent":["import { prop } from \"ramda\";\nimport { create } from \"zustand\";\n\nconst useDisplayErrorPage = () => useErrorDisplayStore(prop(\"showErrorPage\"));\n\nexport const useErrorDisplayStore = create(() => ({\n showErrorPage: false,\n statusCode: 404,\n failedApiUrl: \"\",\n failedApiPath: \"\",\n showRefreshRibbon: false,\n}));\n\nexport default useDisplayErrorPage;\n"],"names":["useDisplayErrorPage","useErrorDisplayStore","prop","create","showErrorPage","statusCode","failedApiUrl","failedApiPath","showRefreshRibbon"],"mappings":";;;;;;;AAGA,IAAMA,mBAAmB,GAAG,SAAtBA,mBAAmBA,GAAA;AAAA,EAAA,OAASC,oBAAoB,CAACC,UAAI,CAAC,eAAe,CAAC,CAAC;AAAA;AAEhED,IAAAA,oBAAoB,GAAGE,cAAM,CAAC,YAAA;EAAA,OAAO;AAChDC,IAAAA,aAAa,EAAE,KAAK;AACpBC,IAAAA,UAAU,EAAE,GAAG;AACfC,IAAAA,YAAY,EAAE,EAAE;AAChBC,IAAAA,aAAa,EAAE,EAAE;AACjBC,IAAAA,iBAAiB,EAAE;GACpB;AAAA,CAAC;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"neeto_apps.js","sources":["../../../../../src/react-utils/useFetchNeetoApps/apis/neeto_apps.js"],"sourcesContent":["import axios from \"axios\";\n\nconst fetch = () => axios.get(\"/api/v1/neeto_apps\");\n\nconst neetoAppsApi = { fetch };\n\nexport default neetoAppsApi;\n"],"names":["fetch","axios","get","neetoAppsApi"],"mappings":";;;;AAEA,IAAMA,KAAK,GAAG,SAARA,KAAKA,GAAA;AAAA,EAAA,OAASC,KAAK,CAACC,GAAG,CAAC,oBAAoB,CAAC
|
|
1
|
+
{"version":3,"file":"neeto_apps.js","sources":["../../../../../src/react-utils/useFetchNeetoApps/apis/neeto_apps.js"],"sourcesContent":["import axios from \"axios\";\n\nconst fetch = () => axios.get(\"/api/v1/neeto_apps\");\n\nconst neetoAppsApi = { fetch };\n\nexport default neetoAppsApi;\n"],"names":["fetch","axios","get","neetoAppsApi"],"mappings":";;;;AAEA,IAAMA,KAAK,GAAG,SAARA,KAAKA,GAAA;AAAA,EAAA,OAASC,KAAK,CAACC,GAAG,CAAC,oBAAoB,CAAC;AAAA,CAAA;AAEnD,IAAMC,YAAY,GAAG;AAAEH,EAAAA,KAAK,EAALA;AAAM;;;;"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var reactUtils_useFetchNeetoApps_useFetchNeetoApps = require('./useFetchNeetoApps.js');
|
|
4
|
-
require('../../defineProperty-
|
|
5
|
-
require('../../toPropertyKey-CRgrohXG.js');
|
|
4
|
+
require('../../defineProperty-lChFfVqi.js');
|
|
6
5
|
require('../../typeof-D4ZZ_FlZ.js');
|
|
7
6
|
require('@bigbinary/neeto-cist');
|
|
8
7
|
require('../usePersistedQuery/usePersistedQuery.js');
|
|
@@ -12,9 +11,9 @@ require('ramda');
|
|
|
12
11
|
require('../constants/constants.js');
|
|
13
12
|
require('../../utils/general.js');
|
|
14
13
|
require('../../objectWithoutProperties-wSsbHFcG.js');
|
|
15
|
-
require('../../slicedToArray-
|
|
14
|
+
require('../../slicedToArray-BcL7fKuL.js');
|
|
16
15
|
require('../../unsupportedIterableToArray-BoHMiKNA.js');
|
|
17
|
-
require('../../index-
|
|
16
|
+
require('../../index-CUYe6FO0.js');
|
|
18
17
|
require('../../_commonjsHelpers-CFO10eej.js');
|
|
19
18
|
require('i18next');
|
|
20
19
|
require('@bigbinary/neetoui/Toastr');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var defineProperty = require('../../defineProperty-
|
|
3
|
+
var defineProperty = require('../../defineProperty-lChFfVqi.js');
|
|
4
4
|
var neetoCist = require('@bigbinary/neeto-cist');
|
|
5
5
|
var reactUtils_usePersistedQuery_usePersistedQuery = require('../usePersistedQuery/usePersistedQuery.js');
|
|
6
6
|
var reactUtils_useFetchNeetoApps_apis_neeto_apps = require('./apis/neeto_apps.js');
|
|
7
7
|
var reactUtils_constants_constants = require('../constants/constants.js');
|
|
8
8
|
var reactUtils_constants_query = require('../constants/query.js');
|
|
9
|
-
require('../../toPropertyKey-CRgrohXG.js');
|
|
10
9
|
require('../../typeof-D4ZZ_FlZ.js');
|
|
11
10
|
require('react');
|
|
12
11
|
require('@tanstack/react-query');
|
|
13
12
|
require('ramda');
|
|
14
13
|
require('../../utils/general.js');
|
|
15
14
|
require('../../objectWithoutProperties-wSsbHFcG.js');
|
|
16
|
-
require('../../slicedToArray-
|
|
15
|
+
require('../../slicedToArray-BcL7fKuL.js');
|
|
17
16
|
require('../../unsupportedIterableToArray-BoHMiKNA.js');
|
|
18
|
-
require('../../index-
|
|
17
|
+
require('../../index-CUYe6FO0.js');
|
|
19
18
|
require('../../_commonjsHelpers-CFO10eej.js');
|
|
20
19
|
require('i18next');
|
|
21
20
|
require('@bigbinary/neetoui/Toastr');
|
|
@@ -23,7 +22,7 @@ require('qs');
|
|
|
23
22
|
require('axios');
|
|
24
23
|
|
|
25
24
|
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; }
|
|
26
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t),
|
|
25
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { defineProperty._defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
27
26
|
var useFetchNeetoApps = function useFetchNeetoApps(options) {
|
|
28
27
|
var _globalProps$user;
|
|
29
28
|
var scopedQueryKey = ["".concat(reactUtils_constants_query.QUERY_KEYS.NEETO_APPS_LIST, "-").concat((_globalProps$user = globalProps.user) === null || _globalProps$user === void 0 ? void 0 : _globalProps$user.id)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFetchNeetoApps.js","sources":["../../../../src/react-utils/useFetchNeetoApps/useFetchNeetoApps.js"],"sourcesContent":["import { isNotPresent } from \"neetocist\";\nimport usePersistedQuery from \"react-utils/usePersistedQuery\";\n\nimport neetoAppsApi from \"./apis/neeto_apps\";\n\nimport { NEETO_APPS_LIST_STALE_TIME } from \"../constants\";\nimport { QUERY_KEYS } from \"../constants/query\";\n\nconst useFetchNeetoApps = options => {\n const scopedQueryKey = [\n `${QUERY_KEYS.NEETO_APPS_LIST}-${globalProps.user?.id}`,\n ];\n\n const { data, modifiedAt } = usePersistedQuery.getCache(scopedQueryKey) || {};\n const expired = modifiedAt <= Date.now() - NEETO_APPS_LIST_STALE_TIME;\n\n return usePersistedQuery(scopedQueryKey, neetoAppsApi.fetch, {\n staleTime: NEETO_APPS_LIST_STALE_TIME,\n enabled: expired || isNotPresent(data),\n ...options,\n });\n};\n\nexport default useFetchNeetoApps;\n"],"names":["useFetchNeetoApps","options","_globalProps$user","scopedQueryKey","concat","QUERY_KEYS","NEETO_APPS_LIST","globalProps","user","id","_ref","usePersistedQuery","getCache","data","modifiedAt","expired","Date","now","NEETO_APPS_LIST_STALE_TIME","neetoAppsApi","fetch","_objectSpread","staleTime","enabled","isNotPresent"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useFetchNeetoApps.js","sources":["../../../../src/react-utils/useFetchNeetoApps/useFetchNeetoApps.js"],"sourcesContent":["import { isNotPresent } from \"neetocist\";\nimport usePersistedQuery from \"react-utils/usePersistedQuery\";\n\nimport neetoAppsApi from \"./apis/neeto_apps\";\n\nimport { NEETO_APPS_LIST_STALE_TIME } from \"../constants\";\nimport { QUERY_KEYS } from \"../constants/query\";\n\nconst useFetchNeetoApps = options => {\n const scopedQueryKey = [\n `${QUERY_KEYS.NEETO_APPS_LIST}-${globalProps.user?.id}`,\n ];\n\n const { data, modifiedAt } = usePersistedQuery.getCache(scopedQueryKey) || {};\n const expired = modifiedAt <= Date.now() - NEETO_APPS_LIST_STALE_TIME;\n\n return usePersistedQuery(scopedQueryKey, neetoAppsApi.fetch, {\n staleTime: NEETO_APPS_LIST_STALE_TIME,\n enabled: expired || isNotPresent(data),\n ...options,\n });\n};\n\nexport default useFetchNeetoApps;\n"],"names":["useFetchNeetoApps","options","_globalProps$user","scopedQueryKey","concat","QUERY_KEYS","NEETO_APPS_LIST","globalProps","user","id","_ref","usePersistedQuery","getCache","data","modifiedAt","expired","Date","now","NEETO_APPS_LIST_STALE_TIME","neetoAppsApi","fetch","_objectSpread","staleTime","enabled","isNotPresent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAQA,IAAMA,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAGC,OAAO,EAAI;AAAA,EAAA,IAAAC,iBAAA;EACnC,IAAMC,cAAc,GAAG,CAAAC,EAAAA,CAAAA,MAAA,CAClBC,qCAAU,CAACC,eAAe,EAAA,GAAA,CAAA,CAAAF,MAAA,CAAA,CAAAF,iBAAA,GAAIK,WAAW,CAACC,IAAI,MAAA,IAAA,IAAAN,iBAAA,KAAhBA,MAAAA,GAAAA,MAAAA,GAAAA,iBAAA,CAAkBO,EAAE,CACtD,CAAA;EAED,IAAAC,IAAA,GAA6BC,8CAAiB,CAACC,QAAQ,CAACT,cAAc,CAAC,IAAI,EAAE;IAArEU,IAAI,GAAAH,IAAA,CAAJG,IAAI;IAAEC,UAAU,GAAAJ,IAAA,CAAVI,UAAU;EACxB,IAAMC,OAAO,GAAGD,UAAU,IAAIE,IAAI,CAACC,GAAG,EAAE,GAAGC,yDAA0B;EAErE,OAAOP,8CAAiB,CAACR,cAAc,EAAEgB,4CAAY,CAACC,KAAK,EAAAC,aAAA,CAAA;AACzDC,IAAAA,SAAS,EAAEJ,yDAA0B;AACrCK,IAAAA,OAAO,EAAER,OAAO,IAAIS,sBAAY,CAACX,IAAI;GAClCZ,EAAAA,OAAO,CACX,CAAC;AACJ;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFieldSubmit.js","sources":["../../../../src/react-utils/useFieldSubmit/useFieldSubmit.js"],"sourcesContent":["import { useCallback, useEffect, useRef } from \"react\";\n\nconst useFieldSubmit = onSubmit => {\n /** @type {{ current: HTMLInputElement & HTMLTextAreaElement }} */\n // @ts-ignore\n const ref = useRef(null);\n\n const keyDownHandler = useCallback(event => {\n if (event.key !== \"Enter\") return;\n\n if (event.shiftKey) {\n event.stopPropagation();\n } else {\n onSubmit();\n event.preventDefault();\n }\n }, []);\n\n useEffect(() => {\n const element = ref.current;\n if (!element) return undefined;\n\n element.addEventListener(\"keydown\", keyDownHandler);\n\n return () => element.removeEventListener(\"keydown\", keyDownHandler);\n }, []);\n\n return ref;\n};\n\nexport default useFieldSubmit;\n"],"names":["useFieldSubmit","onSubmit","ref","useRef","keyDownHandler","useCallback","event","key","shiftKey","stopPropagation","preventDefault","useEffect","element","current","undefined","addEventListener","removeEventListener"],"mappings":";;;;AAEA,IAAMA,cAAc,GAAG,SAAjBA,cAAcA,CAAGC,QAAQ,EAAI;AACjC;AACA;AACA,EAAA,IAAMC,GAAG,GAAGC,YAAM,CAAC,IAAI,CAAC
|
|
1
|
+
{"version":3,"file":"useFieldSubmit.js","sources":["../../../../src/react-utils/useFieldSubmit/useFieldSubmit.js"],"sourcesContent":["import { useCallback, useEffect, useRef } from \"react\";\n\nconst useFieldSubmit = onSubmit => {\n /** @type {{ current: HTMLInputElement & HTMLTextAreaElement }} */\n // @ts-ignore\n const ref = useRef(null);\n\n const keyDownHandler = useCallback(event => {\n if (event.key !== \"Enter\") return;\n\n if (event.shiftKey) {\n event.stopPropagation();\n } else {\n onSubmit();\n event.preventDefault();\n }\n }, []);\n\n useEffect(() => {\n const element = ref.current;\n if (!element) return undefined;\n\n element.addEventListener(\"keydown\", keyDownHandler);\n\n return () => element.removeEventListener(\"keydown\", keyDownHandler);\n }, []);\n\n return ref;\n};\n\nexport default useFieldSubmit;\n"],"names":["useFieldSubmit","onSubmit","ref","useRef","keyDownHandler","useCallback","event","key","shiftKey","stopPropagation","preventDefault","useEffect","element","current","undefined","addEventListener","removeEventListener"],"mappings":";;;;AAEA,IAAMA,cAAc,GAAG,SAAjBA,cAAcA,CAAGC,QAAQ,EAAI;AACjC;AACA;AACA,EAAA,IAAMC,GAAG,GAAGC,YAAM,CAAC,IAAI,CAAC;AAExB,EAAA,IAAMC,cAAc,GAAGC,iBAAW,CAAC,UAAAC,KAAK,EAAI;AAC1C,IAAA,IAAIA,KAAK,CAACC,GAAG,KAAK,OAAO,EAAE;IAE3B,IAAID,KAAK,CAACE,QAAQ,EAAE;MAClBF,KAAK,CAACG,eAAe,EAAE;AACzB,KAAC,MAAM;AACLR,MAAAA,QAAQ,EAAE;MACVK,KAAK,CAACI,cAAc,EAAE;AACxB;GACD,EAAE,EAAE,CAAC;AAENC,EAAAA,eAAS,CAAC,YAAM;AACd,IAAA,IAAMC,OAAO,GAAGV,GAAG,CAACW,OAAO;AAC3B,IAAA,IAAI,CAACD,OAAO,EAAE,OAAOE,SAAS;AAE9BF,IAAAA,OAAO,CAACG,gBAAgB,CAAC,SAAS,EAAEX,cAAc,CAAC;IAEnD,OAAO,YAAA;AAAA,MAAA,OAAMQ,OAAO,CAACI,mBAAmB,CAAC,SAAS,EAAEZ,cAAc,CAAC;AAAA,KAAA;GACpE,EAAE,EAAE,CAAC;AAEN,EAAA,OAAOF,GAAG;AACZ;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFuncDebounce.js","sources":["../../../../src/react-utils/useFuncDebounce/useFuncDebounce.js"],"sourcesContent":["import { useRef } from \"react\";\n\nconst useFuncDebounce = (func, delay = 350) => {\n const timer = useRef(null);\n const debouncedFunc = (...args) => {\n clearTimeout(timer.current);\n timer.current = setTimeout(() => func(...args), delay);\n };\n debouncedFunc.cancel = () => clearTimeout(timer.current);\n\n return debouncedFunc;\n};\n\nexport default useFuncDebounce;\n"],"names":["useFuncDebounce","func","delay","arguments","length","undefined","timer","useRef","debouncedFunc","_len","args","Array","_key","clearTimeout","current","setTimeout","apply","cancel"],"mappings":";;;;AAEA,IAAMA,eAAe,GAAG,SAAlBA,eAAeA,CAAIC,IAAI,EAAkB;AAAA,EAAA,IAAhBC,KAAK,GAAAC,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAG,GAAG
|
|
1
|
+
{"version":3,"file":"useFuncDebounce.js","sources":["../../../../src/react-utils/useFuncDebounce/useFuncDebounce.js"],"sourcesContent":["import { useRef } from \"react\";\n\nconst useFuncDebounce = (func, delay = 350) => {\n const timer = useRef(null);\n const debouncedFunc = (...args) => {\n clearTimeout(timer.current);\n timer.current = setTimeout(() => func(...args), delay);\n };\n debouncedFunc.cancel = () => clearTimeout(timer.current);\n\n return debouncedFunc;\n};\n\nexport default useFuncDebounce;\n"],"names":["useFuncDebounce","func","delay","arguments","length","undefined","timer","useRef","debouncedFunc","_len","args","Array","_key","clearTimeout","current","setTimeout","apply","cancel"],"mappings":";;;;AAEA,IAAMA,eAAe,GAAG,SAAlBA,eAAeA,CAAIC,IAAI,EAAkB;AAAA,EAAA,IAAhBC,KAAK,GAAAC,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAG,GAAG;AACxC,EAAA,IAAMG,KAAK,GAAGC,YAAM,CAAC,IAAI,CAAC;AAC1B,EAAA,IAAMC,aAAa,GAAG,SAAhBA,aAAaA,GAAgB;AAAA,IAAA,KAAA,IAAAC,IAAA,GAAAN,SAAA,CAAAC,MAAA,EAATM,IAAI,GAAAC,IAAAA,KAAA,CAAAF,IAAA,GAAAG,IAAA,GAAA,CAAA,EAAAA,IAAA,GAAAH,IAAA,EAAAG,IAAA,EAAA,EAAA;AAAJF,MAAAA,IAAI,CAAAE,IAAA,CAAAT,GAAAA,SAAA,CAAAS,IAAA,CAAA;AAAA;AAC5BC,IAAAA,YAAY,CAACP,KAAK,CAACQ,OAAO,CAAC;AAC3BR,IAAAA,KAAK,CAACQ,OAAO,GAAGC,UAAU,CAAC,YAAA;AAAA,MAAA,OAAMd,IAAI,CAAAe,KAAA,CAAA,MAAA,EAAIN,IAAI,CAAC;AAAA,KAAA,EAAER,KAAK,CAAC;GACvD;EACDM,aAAa,CAACS,MAAM,GAAG,YAAA;AAAA,IAAA,OAAMJ,YAAY,CAACP,KAAK,CAACQ,OAAO,CAAC;AAAA,GAAA;AAExD,EAAA,OAAON,aAAa;AACtB;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var reactUtils_useIsElementVisibleInDom_useIsElementVisibleInDom = require('./useIsElementVisibleInDom.js');
|
|
4
|
-
require('../../slicedToArray-
|
|
4
|
+
require('../../slicedToArray-BcL7fKuL.js');
|
|
5
5
|
require('../../unsupportedIterableToArray-BoHMiKNA.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('./useForceUpdate.js');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useForceUpdate.js","sources":["../../../../src/react-utils/useIsElementVisibleInDom/useForceUpdate.js"],"sourcesContent":["import { useState } from \"react\";\n\nconst useForceUpdate = () => {\n // eslint-disable-next-line react/hook-use-state\n const [, setValue] = useState(0);\n\n return () => setValue(value => value + 1);\n};\n\nexport default useForceUpdate;\n"],"names":["useForceUpdate","_useState","useState","_useState2","_slicedToArray","setValue","value"],"mappings":";;;;;;AAEA,IAAMA,cAAc,GAAG,SAAjBA,cAAcA,GAAS;AAC3B;AACA,EAAA,IAAAC,SAAA,GAAqBC,cAAQ,CAAC,CAAC,CAAC;IAAAC,UAAA,GAAAC,4BAAA,CAAAH,SAAA,EAAA,CAAA,CAAA;AAAvBI,IAAAA,QAAQ,GAAAF,UAAA,CAAA,CAAA,CAAA
|
|
1
|
+
{"version":3,"file":"useForceUpdate.js","sources":["../../../../src/react-utils/useIsElementVisibleInDom/useForceUpdate.js"],"sourcesContent":["import { useState } from \"react\";\n\nconst useForceUpdate = () => {\n // eslint-disable-next-line react/hook-use-state\n const [, setValue] = useState(0);\n\n return () => setValue(value => value + 1);\n};\n\nexport default useForceUpdate;\n"],"names":["useForceUpdate","_useState","useState","_useState2","_slicedToArray","setValue","value"],"mappings":";;;;;;AAEA,IAAMA,cAAc,GAAG,SAAjBA,cAAcA,GAAS;AAC3B;AACA,EAAA,IAAAC,SAAA,GAAqBC,cAAQ,CAAC,CAAC,CAAC;IAAAC,UAAA,GAAAC,4BAAA,CAAAH,SAAA,EAAA,CAAA,CAAA;AAAvBI,IAAAA,QAAQ,GAAAF,UAAA,CAAA,CAAA,CAAA;EAEjB,OAAO,YAAA;IAAA,OAAME,QAAQ,CAAC,UAAAC,KAAK,EAAA;MAAA,OAAIA,KAAK,GAAG,CAAC;KAAC,CAAA;AAAA,GAAA;AAC3C;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var slicedToArray = require('../../slicedToArray-
|
|
3
|
+
var slicedToArray = require('../../slicedToArray-BcL7fKuL.js');
|
|
4
4
|
var react = require('react');
|
|
5
5
|
var reactUtils_useIsElementVisibleInDom_useForceUpdate = require('./useForceUpdate.js');
|
|
6
6
|
require('../../unsupportedIterableToArray-BoHMiKNA.js');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIsElementVisibleInDom.js","sources":["../../../../src/react-utils/useIsElementVisibleInDom/useIsElementVisibleInDom.js"],"sourcesContent":["import { useEffect, useState } from \"react\";\n\nimport useForceUpdate from \"./useForceUpdate\";\n\nconst useIsElementVisibleInDom = (target, options = undefined) => {\n const [isIntersecting, setIsIntersecting] = useState(false);\n const forceUpdate = useForceUpdate();\n\n useEffect(() => {\n if (!target) return forceUpdate();\n\n const observer = new IntersectionObserver(\n ([entry]) => setIsIntersecting(entry.isIntersecting),\n options\n );\n observer.observe(target);\n\n return () => observer.unobserve(target);\n }, [target, options]);\n\n return isIntersecting;\n};\n\nexport default useIsElementVisibleInDom;\n"],"names":["useIsElementVisibleInDom","target","options","arguments","length","undefined","_useState","useState","_useState2","_slicedToArray","isIntersecting","setIsIntersecting","forceUpdate","useForceUpdate","useEffect","observer","IntersectionObserver","_ref","_ref2","entry","observe","unobserve"],"mappings":";;;;;;;AAIA,IAAMA,wBAAwB,GAAG,SAA3BA,wBAAwBA,CAAIC,MAAM,EAA0B;AAAA,EAAA,IAAxBC,OAAO,GAAAC,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAGE,SAAS
|
|
1
|
+
{"version":3,"file":"useIsElementVisibleInDom.js","sources":["../../../../src/react-utils/useIsElementVisibleInDom/useIsElementVisibleInDom.js"],"sourcesContent":["import { useEffect, useState } from \"react\";\n\nimport useForceUpdate from \"./useForceUpdate\";\n\nconst useIsElementVisibleInDom = (target, options = undefined) => {\n const [isIntersecting, setIsIntersecting] = useState(false);\n const forceUpdate = useForceUpdate();\n\n useEffect(() => {\n if (!target) return forceUpdate();\n\n const observer = new IntersectionObserver(\n ([entry]) => setIsIntersecting(entry.isIntersecting),\n options\n );\n observer.observe(target);\n\n return () => observer.unobserve(target);\n }, [target, options]);\n\n return isIntersecting;\n};\n\nexport default useIsElementVisibleInDom;\n"],"names":["useIsElementVisibleInDom","target","options","arguments","length","undefined","_useState","useState","_useState2","_slicedToArray","isIntersecting","setIsIntersecting","forceUpdate","useForceUpdate","useEffect","observer","IntersectionObserver","_ref","_ref2","entry","observe","unobserve"],"mappings":";;;;;;;AAIA,IAAMA,wBAAwB,GAAG,SAA3BA,wBAAwBA,CAAIC,MAAM,EAA0B;AAAA,EAAA,IAAxBC,OAAO,GAAAC,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAGE,SAAS;AAC3D,EAAA,IAAAC,SAAA,GAA4CC,cAAQ,CAAC,KAAK,CAAC;IAAAC,UAAA,GAAAC,4BAAA,CAAAH,SAAA,EAAA,CAAA,CAAA;AAApDI,IAAAA,cAAc,GAAAF,UAAA,CAAA,CAAA,CAAA;AAAEG,IAAAA,iBAAiB,GAAAH,UAAA,CAAA,CAAA,CAAA;AACxC,EAAA,IAAMI,WAAW,GAAGC,kDAAc,EAAE;AAEpCC,EAAAA,eAAS,CAAC,YAAM;AACd,IAAA,IAAI,CAACb,MAAM,EAAE,OAAOW,WAAW,EAAE;AAEjC,IAAA,IAAMG,QAAQ,GAAG,IAAIC,oBAAoB,CACvC,UAAAC,IAAA,EAAA;AAAA,MAAA,IAAAC,KAAA,GAAAT,4BAAA,CAAAQ,IAAA,EAAA,CAAA,CAAA;AAAEE,QAAAA,KAAK,GAAAD,KAAA,CAAA,CAAA,CAAA;AAAA,MAAA,OAAMP,iBAAiB,CAACQ,KAAK,CAACT,cAAc,CAAC;AAAA,KAAA,EACpDR,OACF,CAAC;AACDa,IAAAA,QAAQ,CAACK,OAAO,CAACnB,MAAM,CAAC;IAExB,OAAO,YAAA;AAAA,MAAA,OAAMc,QAAQ,CAACM,SAAS,CAACpB,MAAM,CAAC;AAAA,KAAA;AACzC,GAAC,EAAE,CAACA,MAAM,EAAEC,OAAO,CAAC,CAAC;AAErB,EAAA,OAAOQ,cAAc;AACvB;;;;"}
|
package/dist/cjs/react-utils/useKeyboardShortcutsPaneState/useKeyboardShortcutsPaneState.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useKeyboardShortcutsPaneState.js","sources":["../../../../src/react-utils/useKeyboardShortcutsPaneState/useKeyboardShortcutsPaneState.js"],"sourcesContent":["import { create } from \"zustand\";\nimport { shallow } from \"zustand/shallow\";\n\nconst useKeyboardShortcutsStore = create(set => ({\n isOpen: false,\n\n setIsOpen: arg => {\n if (typeof arg === \"function\") {\n set(state => ({ isOpen: arg(state.isOpen) }));\n } else {\n set({ isOpen: arg });\n }\n },\n}));\n\nconst useKeyboardShortcutsPaneState = () =>\n useKeyboardShortcutsStore(\n ({ isOpen, setIsOpen }) => [isOpen, setIsOpen],\n shallow\n );\n\nexport default useKeyboardShortcutsPaneState;\n"],"names":["useKeyboardShortcutsStore","create","set","isOpen","setIsOpen","arg","state","useKeyboardShortcutsPaneState","_ref","shallow"],"mappings":";;;;;AAGA,IAAMA,yBAAyB,GAAGC,cAAM,CAAC,UAAAC,GAAG,EAAA;EAAA,OAAK;AAC/CC,IAAAA,MAAM,EAAE,KAAK;AAEbC,IAAAA,SAAS,EAAE,SAAXA,SAASA,CAAEC,GAAG,EAAI;AAChB,MAAA,IAAI,OAAOA,GAAG,KAAK,UAAU,EAAE;QAC7BH,GAAG,CAAC,UAAAI,KAAK,EAAA;UAAA,OAAK;AAAEH,YAAAA,MAAM,EAAEE,GAAG,CAACC,KAAK,CAACH,MAAM
|
|
1
|
+
{"version":3,"file":"useKeyboardShortcutsPaneState.js","sources":["../../../../src/react-utils/useKeyboardShortcutsPaneState/useKeyboardShortcutsPaneState.js"],"sourcesContent":["import { create } from \"zustand\";\nimport { shallow } from \"zustand/shallow\";\n\nconst useKeyboardShortcutsStore = create(set => ({\n isOpen: false,\n\n setIsOpen: arg => {\n if (typeof arg === \"function\") {\n set(state => ({ isOpen: arg(state.isOpen) }));\n } else {\n set({ isOpen: arg });\n }\n },\n}));\n\nconst useKeyboardShortcutsPaneState = () =>\n useKeyboardShortcutsStore(\n ({ isOpen, setIsOpen }) => [isOpen, setIsOpen],\n shallow\n );\n\nexport default useKeyboardShortcutsPaneState;\n"],"names":["useKeyboardShortcutsStore","create","set","isOpen","setIsOpen","arg","state","useKeyboardShortcutsPaneState","_ref","shallow"],"mappings":";;;;;AAGA,IAAMA,yBAAyB,GAAGC,cAAM,CAAC,UAAAC,GAAG,EAAA;EAAA,OAAK;AAC/CC,IAAAA,MAAM,EAAE,KAAK;AAEbC,IAAAA,SAAS,EAAE,SAAXA,SAASA,CAAEC,GAAG,EAAI;AAChB,MAAA,IAAI,OAAOA,GAAG,KAAK,UAAU,EAAE;QAC7BH,GAAG,CAAC,UAAAI,KAAK,EAAA;UAAA,OAAK;AAAEH,YAAAA,MAAM,EAAEE,GAAG,CAACC,KAAK,CAACH,MAAM;WAAG;AAAA,SAAC,CAAC;AAC/C,OAAC,MAAM;AACLD,QAAAA,GAAG,CAAC;AAAEC,UAAAA,MAAM,EAAEE;AAAI,SAAC,CAAC;AACtB;AACF;GACD;AAAA,CAAC,CAAC;AAEH,IAAME,6BAA6B,GAAG,SAAhCA,6BAA6BA,GAAA;EAAA,OACjCP,yBAAyB,CACvB,UAAAQ,IAAA,EAAA;AAAA,IAAA,IAAGL,MAAM,GAAAK,IAAA,CAANL,MAAM;MAAEC,SAAS,GAAAI,IAAA,CAATJ,SAAS;AAAA,IAAA,OAAO,CAACD,MAAM,EAAEC,SAAS,CAAC;AAAA,GAAA,EAC9CK,eACF,CAAC;AAAA;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var reactUtils_useLocalStorage_useLocalStorage = require('./useLocalStorage.js');
|
|
4
|
-
require('../../slicedToArray-
|
|
4
|
+
require('../../slicedToArray-BcL7fKuL.js');
|
|
5
5
|
require('../../unsupportedIterableToArray-BoHMiKNA.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('ramda');
|
|
@@ -9,10 +9,9 @@ require('axios');
|
|
|
9
9
|
require('../../initializers/constants.js');
|
|
10
10
|
require('../../utils/general.js');
|
|
11
11
|
require('../../objectWithoutProperties-wSsbHFcG.js');
|
|
12
|
-
require('../../index-
|
|
12
|
+
require('../../index-CUYe6FO0.js');
|
|
13
13
|
require('../../_commonjsHelpers-CFO10eej.js');
|
|
14
|
-
require('../../defineProperty-
|
|
15
|
-
require('../../toPropertyKey-CRgrohXG.js');
|
|
14
|
+
require('../../defineProperty-lChFfVqi.js');
|
|
16
15
|
require('../../typeof-D4ZZ_FlZ.js');
|
|
17
16
|
require('i18next');
|
|
18
17
|
require('@bigbinary/neeto-cist');
|
|
@@ -20,12 +19,11 @@ require('@bigbinary/neetoui/Toastr');
|
|
|
20
19
|
require('qs');
|
|
21
20
|
require('../../utils/dayjs.js');
|
|
22
21
|
require('../../toConsumableArray-tBKHqzE3.js');
|
|
23
|
-
require('../../createClass-DtcoOmOY.js');
|
|
24
22
|
require('dayjs');
|
|
25
23
|
require('../../utils/createSubscription.js');
|
|
26
24
|
require('@rails/actioncable');
|
|
27
25
|
require('yup');
|
|
28
|
-
require('../../mixpanel.
|
|
26
|
+
require('../../mixpanel.module-ajRn5e0J.js');
|
|
29
27
|
|
|
30
28
|
|
|
31
29
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var slicedToArray = require('../../slicedToArray-
|
|
3
|
+
var slicedToArray = require('../../slicedToArray-BcL7fKuL.js');
|
|
4
4
|
var react = require('react');
|
|
5
5
|
var ramda = require('ramda');
|
|
6
6
|
require('axios');
|
|
@@ -11,19 +11,17 @@ require('../../utils/createSubscription.js');
|
|
|
11
11
|
require('dayjs');
|
|
12
12
|
require('i18next');
|
|
13
13
|
require('yup');
|
|
14
|
-
require('../../mixpanel.
|
|
14
|
+
require('../../mixpanel.module-ajRn5e0J.js');
|
|
15
15
|
require('@bigbinary/neeto-cist');
|
|
16
16
|
require('../../unsupportedIterableToArray-BoHMiKNA.js');
|
|
17
17
|
require('../../objectWithoutProperties-wSsbHFcG.js');
|
|
18
|
-
require('../../index-
|
|
18
|
+
require('../../index-CUYe6FO0.js');
|
|
19
19
|
require('../../_commonjsHelpers-CFO10eej.js');
|
|
20
|
-
require('../../defineProperty-
|
|
21
|
-
require('../../toPropertyKey-CRgrohXG.js');
|
|
20
|
+
require('../../defineProperty-lChFfVqi.js');
|
|
22
21
|
require('../../typeof-D4ZZ_FlZ.js');
|
|
23
22
|
require('@bigbinary/neetoui/Toastr');
|
|
24
23
|
require('qs');
|
|
25
24
|
require('../../toConsumableArray-tBKHqzE3.js');
|
|
26
|
-
require('../../createClass-DtcoOmOY.js');
|
|
27
25
|
require('@rails/actioncable');
|
|
28
26
|
|
|
29
27
|
var getStorageValue = function getStorageValue(key, defaultValue) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLocalStorage.js","sources":["../../../../src/react-utils/useLocalStorage/useLocalStorage.js"],"sourcesContent":["/* eslint-disable @bigbinary/neeto/no-local-storage */\n\nimport { useState } from \"react\";\n\nimport { isNil } from \"ramda\";\nimport { removeFromLocalStorage, setToLocalStorage } from \"utils\";\n\nconst getStorageValue = (key, defaultValue) => {\n try {\n const storedValue = localStorage.getItem(key);\n\n return storedValue ? JSON.parse(storedValue) : defaultValue;\n } catch (error) {\n logger.error(error);\n\n return defaultValue;\n }\n};\n\nconst useLocalStorage = (key, defaultValue) => {\n const [storedValue, setStoredValue] = useState(() =>\n getStorageValue(key, defaultValue)\n );\n\n const setValue = value =>\n setStoredValue(prevStoredValue => {\n const newValue =\n typeof value === \"function\" ? value(prevStoredValue) : value;\n\n if (isNil(newValue)) {\n removeFromLocalStorage(key);\n } else {\n setToLocalStorage(key, newValue);\n }\n\n return newValue;\n });\n\n return [storedValue, setValue];\n};\n\nexport default useLocalStorage;\n"],"names":["getStorageValue","key","defaultValue","storedValue","localStorage","getItem","JSON","parse","error","logger","useLocalStorage","_useState","useState","_useState2","_slicedToArray","setStoredValue","setValue","value","prevStoredValue","newValue","isNil","removeFromLocalStorage","setToLocalStorage"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useLocalStorage.js","sources":["../../../../src/react-utils/useLocalStorage/useLocalStorage.js"],"sourcesContent":["/* eslint-disable @bigbinary/neeto/no-local-storage */\n\nimport { useState } from \"react\";\n\nimport { isNil } from \"ramda\";\nimport { removeFromLocalStorage, setToLocalStorage } from \"utils\";\n\nconst getStorageValue = (key, defaultValue) => {\n try {\n const storedValue = localStorage.getItem(key);\n\n return storedValue ? JSON.parse(storedValue) : defaultValue;\n } catch (error) {\n logger.error(error);\n\n return defaultValue;\n }\n};\n\nconst useLocalStorage = (key, defaultValue) => {\n const [storedValue, setStoredValue] = useState(() =>\n getStorageValue(key, defaultValue)\n );\n\n const setValue = value =>\n setStoredValue(prevStoredValue => {\n const newValue =\n typeof value === \"function\" ? value(prevStoredValue) : value;\n\n if (isNil(newValue)) {\n removeFromLocalStorage(key);\n } else {\n setToLocalStorage(key, newValue);\n }\n\n return newValue;\n });\n\n return [storedValue, setValue];\n};\n\nexport default useLocalStorage;\n"],"names":["getStorageValue","key","defaultValue","storedValue","localStorage","getItem","JSON","parse","error","logger","useLocalStorage","_useState","useState","_useState2","_slicedToArray","setStoredValue","setValue","value","prevStoredValue","newValue","isNil","removeFromLocalStorage","setToLocalStorage"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,IAAMA,eAAe,GAAG,SAAlBA,eAAeA,CAAIC,GAAG,EAAEC,YAAY,EAAK;EAC7C,IAAI;AACF,IAAA,IAAMC,WAAW,GAAGC,YAAY,CAACC,OAAO,CAACJ,GAAG,CAAC;IAE7C,OAAOE,WAAW,GAAGG,IAAI,CAACC,KAAK,CAACJ,WAAW,CAAC,GAAGD,YAAY;GAC5D,CAAC,OAAOM,KAAK,EAAE;AACdC,IAAAA,MAAM,CAACD,KAAK,CAACA,KAAK,CAAC;AAEnB,IAAA,OAAON,YAAY;AACrB;AACF,CAAC;AAEKQ,IAAAA,eAAe,GAAG,SAAlBA,eAAeA,CAAIT,GAAG,EAAEC,YAAY,EAAK;EAC7C,IAAAS,SAAA,GAAsCC,cAAQ,CAAC,YAAA;AAAA,MAAA,OAC7CZ,eAAe,CAACC,GAAG,EAAEC,YAAY,CAAC;AAAA,KACpC,CAAC;IAAAW,UAAA,GAAAC,4BAAA,CAAAH,SAAA,EAAA,CAAA,CAAA;AAFMR,IAAAA,WAAW,GAAAU,UAAA,CAAA,CAAA,CAAA;AAAEE,IAAAA,cAAc,GAAAF,UAAA,CAAA,CAAA,CAAA;AAIlC,EAAA,IAAMG,QAAQ,GAAG,SAAXA,QAAQA,CAAGC,KAAK,EAAA;AAAA,IAAA,OACpBF,cAAc,CAAC,UAAAG,eAAe,EAAI;AAChC,MAAA,IAAMC,QAAQ,GACZ,OAAOF,KAAK,KAAK,UAAU,GAAGA,KAAK,CAACC,eAAe,CAAC,GAAGD,KAAK;AAE9D,MAAA,IAAIG,WAAK,CAACD,QAAQ,CAAC,EAAE;QACnBE,oCAAsB,CAACpB,GAAG,CAAC;AAC7B,OAAC,MAAM;AACLqB,QAAAA,+BAAiB,CAACrB,GAAG,EAAEkB,QAAQ,CAAC;AAClC;AAEA,MAAA,OAAOA,QAAQ;AACjB,KAAC,CAAC;AAAA,GAAA;AAEJ,EAAA,OAAO,CAAChB,WAAW,EAAEa,QAAQ,CAAC;AAChC;;;;"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var reactUtils_useMutationWithInvalidation_useMutationWithInvalidation = require('./useMutationWithInvalidation.js');
|
|
4
|
-
require('../../defineProperty-
|
|
5
|
-
require('../../toPropertyKey-CRgrohXG.js');
|
|
4
|
+
require('../../defineProperty-lChFfVqi.js');
|
|
6
5
|
require('../../typeof-D4ZZ_FlZ.js');
|
|
7
6
|
require('../../objectWithoutProperties-wSsbHFcG.js');
|
|
8
7
|
require('@tanstack/react-query');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var defineProperty = require('../../defineProperty-
|
|
3
|
+
var defineProperty = require('../../defineProperty-lChFfVqi.js');
|
|
4
4
|
var objectWithoutProperties = require('../../objectWithoutProperties-wSsbHFcG.js');
|
|
5
5
|
var reactQuery = require('@tanstack/react-query');
|
|
6
6
|
var ramda = require('ramda');
|
|
7
|
-
require('../../toPropertyKey-CRgrohXG.js');
|
|
8
7
|
require('../../typeof-D4ZZ_FlZ.js');
|
|
9
8
|
|
|
10
9
|
var _excluded = ["keysToInvalidate"],
|
|
11
10
|
_excluded2 = ["onSuccess"];
|
|
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._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 useMutationWithInvalidation = function useMutationWithInvalidation(mutationFn, _ref) {
|
|
15
14
|
var keysToInvalidate = _ref.keysToInvalidate,
|
|
16
15
|
options = objectWithoutProperties._objectWithoutProperties(_ref, _excluded);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMutationWithInvalidation.js","sources":["../../../../src/react-utils/useMutationWithInvalidation/useMutationWithInvalidation.js"],"sourcesContent":["import { useQueryClient, useMutation } from \"@tanstack/react-query\";\nimport { type } from \"ramda\";\n\nconst useMutationWithInvalidation = (\n mutationFn,\n { keysToInvalidate, ...options }\n) => {\n const queryClient = useQueryClient();\n const { onSuccess, ...otherOptions } = options;\n\n return useMutation({\n mutationFn,\n onSuccess: (data, variables, context) => {\n keysToInvalidate.forEach(key => {\n const result =\n type(key) === \"Function\" ? key(data, variables, context) : key;\n\n if (type(result) === \"Object\") {\n queryClient.invalidateQueries(result);\n } else if (type(result) === \"String\") {\n queryClient.invalidateQueries({ queryKey: [result] });\n } else {\n queryClient.invalidateQueries({ queryKey: result });\n }\n });\n\n onSuccess?.(data, variables, context);\n },\n\n ...otherOptions,\n });\n};\n\nexport default useMutationWithInvalidation;\n"],"names":["useMutationWithInvalidation","mutationFn","_ref","keysToInvalidate","options","_objectWithoutProperties","_excluded","queryClient","useQueryClient","onSuccess","otherOptions","_excluded2","useMutation","_objectSpread","data","variables","context","forEach","key","result","type","invalidateQueries","queryKey"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useMutationWithInvalidation.js","sources":["../../../../src/react-utils/useMutationWithInvalidation/useMutationWithInvalidation.js"],"sourcesContent":["import { useQueryClient, useMutation } from \"@tanstack/react-query\";\nimport { type } from \"ramda\";\n\nconst useMutationWithInvalidation = (\n mutationFn,\n { keysToInvalidate, ...options }\n) => {\n const queryClient = useQueryClient();\n const { onSuccess, ...otherOptions } = options;\n\n return useMutation({\n mutationFn,\n onSuccess: (data, variables, context) => {\n keysToInvalidate.forEach(key => {\n const result =\n type(key) === \"Function\" ? key(data, variables, context) : key;\n\n if (type(result) === \"Object\") {\n queryClient.invalidateQueries(result);\n } else if (type(result) === \"String\") {\n queryClient.invalidateQueries({ queryKey: [result] });\n } else {\n queryClient.invalidateQueries({ queryKey: result });\n }\n });\n\n onSuccess?.(data, variables, context);\n },\n\n ...otherOptions,\n });\n};\n\nexport default useMutationWithInvalidation;\n"],"names":["useMutationWithInvalidation","mutationFn","_ref","keysToInvalidate","options","_objectWithoutProperties","_excluded","queryClient","useQueryClient","onSuccess","otherOptions","_excluded2","useMutation","_objectSpread","data","variables","context","forEach","key","result","type","invalidateQueries","queryKey"],"mappings":";;;;;;;;;;;;AAGMA,IAAAA,2BAA2B,GAAG,SAA9BA,2BAA2BA,CAC/BC,UAAU,EAAAC,IAAA,EAEP;AAAA,EAAA,IADDC,gBAAgB,GAAAD,IAAA,CAAhBC,gBAAgB;AAAKC,IAAAA,OAAO,GAAAC,gDAAA,CAAAH,IAAA,EAAAI,SAAA,CAAA;AAE9B,EAAA,IAAMC,WAAW,GAAGC,yBAAc,EAAE;AACpC,EAAA,IAAQC,UAAS,GAAsBL,OAAO,CAAtCK,SAAS;AAAKC,IAAAA,YAAY,GAAAL,gDAAA,CAAKD,OAAO,EAAAO,UAAA,CAAA;EAE9C,OAAOC,sBAAW,CAAAC,aAAA,CAAA;AAChBZ,IAAAA,UAAU,EAAVA,UAAU;IACVQ,SAAS,EAAE,SAAXA,SAASA,CAAGK,IAAI,EAAEC,SAAS,EAAEC,OAAO,EAAK;AACvCb,MAAAA,gBAAgB,CAACc,OAAO,CAAC,UAAAC,GAAG,EAAI;AAC9B,QAAA,IAAMC,MAAM,GACVC,UAAI,CAACF,GAAG,CAAC,KAAK,UAAU,GAAGA,GAAG,CAACJ,IAAI,EAAEC,SAAS,EAAEC,OAAO,CAAC,GAAGE,GAAG;AAEhE,QAAA,IAAIE,UAAI,CAACD,MAAM,CAAC,KAAK,QAAQ,EAAE;AAC7BZ,UAAAA,WAAW,CAACc,iBAAiB,CAACF,MAAM,CAAC;SACtC,MAAM,IAAIC,UAAI,CAACD,MAAM,CAAC,KAAK,QAAQ,EAAE;UACpCZ,WAAW,CAACc,iBAAiB,CAAC;YAAEC,QAAQ,EAAE,CAACH,MAAM;AAAE,WAAC,CAAC;AACvD,SAAC,MAAM;UACLZ,WAAW,CAACc,iBAAiB,CAAC;AAAEC,YAAAA,QAAQ,EAAEH;AAAO,WAAC,CAAC;AACrD;AACF,OAAC,CAAC;MAEFV,UAAS,KAAA,IAAA,IAATA,UAAS,KAAA,MAAA,IAATA,UAAS,CAAGK,IAAI,EAAEC,SAAS,EAAEC,OAAO,CAAC;AACvC;GAEGN,EAAAA,YAAY,CAChB,CAAC;AACJ;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useOnClickOutside.js","sources":["../../../../src/react-utils/useOnClickOutside/useOnClickOutside.js"],"sourcesContent":["import { useEffect } from \"react\";\n\nconst useOnClickOutside = (ref, handler, { enabled = true } = {}) => {\n useEffect(() => {\n const listener = event => {\n // Do nothing if clicking ref's element or descendent elements\n if (!ref.current || ref.current.contains(event.target)) {\n return;\n }\n handler(event);\n };\n\n if (enabled) {\n document.addEventListener(\"mousedown\", listener);\n document.addEventListener(\"touchstart\", listener);\n }\n\n return () => {\n document.removeEventListener(\"mousedown\", listener);\n document.removeEventListener(\"touchstart\", listener);\n };\n }, [handler, enabled]);\n};\n\nexport default useOnClickOutside;\n"],"names":["useOnClickOutside","ref","handler","_ref","arguments","length","undefined","_ref$enabled","enabled","useEffect","listener","event","current","contains","target","document","addEventListener","removeEventListener"],"mappings":";;;;AAEMA,IAAAA,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAIC,GAAG,EAAEC,OAAO,EAA8B;AAAA,EAAA,IAAAC,IAAA,GAAAC,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAP,EAAE;IAAAG,YAAA,GAAAJ,IAAA,CAArBK,OAAO;AAAPA,IAAAA,OAAO,GAAAD,YAAA,KAAG,
|
|
1
|
+
{"version":3,"file":"useOnClickOutside.js","sources":["../../../../src/react-utils/useOnClickOutside/useOnClickOutside.js"],"sourcesContent":["import { useEffect } from \"react\";\n\nconst useOnClickOutside = (ref, handler, { enabled = true } = {}) => {\n useEffect(() => {\n const listener = event => {\n // Do nothing if clicking ref's element or descendent elements\n if (!ref.current || ref.current.contains(event.target)) {\n return;\n }\n handler(event);\n };\n\n if (enabled) {\n document.addEventListener(\"mousedown\", listener);\n document.addEventListener(\"touchstart\", listener);\n }\n\n return () => {\n document.removeEventListener(\"mousedown\", listener);\n document.removeEventListener(\"touchstart\", listener);\n };\n }, [handler, enabled]);\n};\n\nexport default useOnClickOutside;\n"],"names":["useOnClickOutside","ref","handler","_ref","arguments","length","undefined","_ref$enabled","enabled","useEffect","listener","event","current","contains","target","document","addEventListener","removeEventListener"],"mappings":";;;;AAEMA,IAAAA,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAIC,GAAG,EAAEC,OAAO,EAA8B;AAAA,EAAA,IAAAC,IAAA,GAAAC,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAP,EAAE;IAAAG,YAAA,GAAAJ,IAAA,CAArBK,OAAO;AAAPA,IAAAA,OAAO,GAAAD,YAAA,KAAG,MAAA,GAAA,IAAI,GAAAA,YAAA;AACvDE,EAAAA,eAAS,CAAC,YAAM;AACd,IAAA,IAAMC,QAAQ,GAAG,SAAXA,QAAQA,CAAGC,KAAK,EAAI;AACxB;AACA,MAAA,IAAI,CAACV,GAAG,CAACW,OAAO,IAAIX,GAAG,CAACW,OAAO,CAACC,QAAQ,CAACF,KAAK,CAACG,MAAM,CAAC,EAAE;AACtD,QAAA;AACF;MACAZ,OAAO,CAACS,KAAK,CAAC;KACf;AAED,IAAA,IAAIH,OAAO,EAAE;AACXO,MAAAA,QAAQ,CAACC,gBAAgB,CAAC,WAAW,EAAEN,QAAQ,CAAC;AAChDK,MAAAA,QAAQ,CAACC,gBAAgB,CAAC,YAAY,EAAEN,QAAQ,CAAC;AACnD;AAEA,IAAA,OAAO,YAAM;AACXK,MAAAA,QAAQ,CAACE,mBAAmB,CAAC,WAAW,EAAEP,QAAQ,CAAC;AACnDK,MAAAA,QAAQ,CAACE,mBAAmB,CAAC,YAAY,EAAEP,QAAQ,CAAC;KACrD;AACH,GAAC,EAAE,CAACR,OAAO,EAAEM,OAAO,CAAC,CAAC;AACxB;;;;"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var reactUtils_usePersistedQuery_usePersistedQuery = require('./usePersistedQuery.js');
|
|
4
|
-
require('../../defineProperty-
|
|
5
|
-
require('../../toPropertyKey-CRgrohXG.js');
|
|
4
|
+
require('../../defineProperty-lChFfVqi.js');
|
|
6
5
|
require('../../typeof-D4ZZ_FlZ.js');
|
|
7
6
|
require('react');
|
|
8
7
|
require('@tanstack/react-query');
|
|
@@ -10,9 +9,9 @@ require('ramda');
|
|
|
10
9
|
require('../constants/constants.js');
|
|
11
10
|
require('../../utils/general.js');
|
|
12
11
|
require('../../objectWithoutProperties-wSsbHFcG.js');
|
|
13
|
-
require('../../slicedToArray-
|
|
12
|
+
require('../../slicedToArray-BcL7fKuL.js');
|
|
14
13
|
require('../../unsupportedIterableToArray-BoHMiKNA.js');
|
|
15
|
-
require('../../index-
|
|
14
|
+
require('../../index-CUYe6FO0.js');
|
|
16
15
|
require('../../_commonjsHelpers-CFO10eej.js');
|
|
17
16
|
require('i18next');
|
|
18
17
|
require('@bigbinary/neeto-cist');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var defineProperty = require('../../defineProperty-
|
|
3
|
+
var defineProperty = require('../../defineProperty-lChFfVqi.js');
|
|
4
4
|
var react = require('react');
|
|
5
5
|
var reactQuery = require('@tanstack/react-query');
|
|
6
6
|
var ramda = require('ramda');
|
|
7
7
|
var reactUtils_constants_constants = require('../constants/constants.js');
|
|
8
8
|
var utils_general = require('../../utils/general.js');
|
|
9
|
-
require('../../toPropertyKey-CRgrohXG.js');
|
|
10
9
|
require('../../typeof-D4ZZ_FlZ.js');
|
|
11
10
|
require('../../objectWithoutProperties-wSsbHFcG.js');
|
|
12
|
-
require('../../slicedToArray-
|
|
11
|
+
require('../../slicedToArray-BcL7fKuL.js');
|
|
13
12
|
require('../../unsupportedIterableToArray-BoHMiKNA.js');
|
|
14
|
-
require('../../index-
|
|
13
|
+
require('../../index-CUYe6FO0.js');
|
|
15
14
|
require('../../_commonjsHelpers-CFO10eej.js');
|
|
16
15
|
require('i18next');
|
|
17
16
|
require('@bigbinary/neeto-cist');
|
|
@@ -19,7 +18,7 @@ require('@bigbinary/neetoui/Toastr');
|
|
|
19
18
|
require('qs');
|
|
20
19
|
|
|
21
20
|
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; }
|
|
22
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t),
|
|
21
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { defineProperty._defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
23
22
|
var localStorageQueryCache = {
|
|
24
23
|
set: function set(key, data) {
|
|
25
24
|
var cache = localStorageQueryCache.getAll();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePersistedQuery.js","sources":["../../../../src/react-utils/usePersistedQuery/usePersistedQuery.js"],"sourcesContent":["import { useEffect } from \"react\";\n\nimport { useQuery } from \"@tanstack/react-query\";\nimport { isNil } from \"ramda\";\nimport { QUERY_CACHE_NAME_SPACE } from \"react-utils/constants\";\nimport { getFromLocalStorage, setToLocalStorage } from \"utils/general\";\n\nconst localStorageQueryCache = {\n set: (key, data) => {\n const cache = localStorageQueryCache.getAll();\n const newCache = { ...cache, [key]: { data, modifiedAt: Date.now() } };\n setToLocalStorage(QUERY_CACHE_NAME_SPACE, newCache);\n },\n getAll: () => {\n const cache = getFromLocalStorage(QUERY_CACHE_NAME_SPACE);\n if (!cache) return {};\n\n return cache;\n },\n get: key => localStorageQueryCache.getAll()[key],\n};\n\nconst isOutdated = (localCache, staleTime) => {\n if (isNil(localCache)) return true;\n\n if (isNil(staleTime)) return false;\n\n return localCache.modifiedAt <= Date.now() - staleTime;\n};\n\nconst usePersistedQuery = (queryKey, fetch, options) => {\n const queryResult = useQuery({\n queryKey,\n queryFn: fetch,\n ...options,\n });\n const localCache = localStorageQueryCache.get(queryKey);\n\n useEffect(() => {\n if (!queryResult.isSuccess) return;\n localStorageQueryCache.set(queryKey, queryResult.data);\n }, [queryKey, queryResult.data, queryResult.isSuccess]);\n\n if (isOutdated(localCache, options?.staleTime)) {\n return { ...queryResult, isFreshLoading: queryResult.isLoading };\n }\n\n return {\n ...queryResult,\n data: queryResult.data || localCache.data,\n isFreshLoading: false,\n };\n};\n\nusePersistedQuery.getCache = localStorageQueryCache.get;\n\nexport default usePersistedQuery;\n"],"names":["localStorageQueryCache","set","key","data","cache","getAll","newCache","_objectSpread","_defineProperty","modifiedAt","Date","now","setToLocalStorage","QUERY_CACHE_NAME_SPACE","getFromLocalStorage","get","isOutdated","localCache","staleTime","isNil","usePersistedQuery","queryKey","fetch","options","queryResult","useQuery","queryFn","useEffect","isSuccess","isFreshLoading","isLoading","getCache"],"mappings":"
|
|
1
|
+
{"version":3,"file":"usePersistedQuery.js","sources":["../../../../src/react-utils/usePersistedQuery/usePersistedQuery.js"],"sourcesContent":["import { useEffect } from \"react\";\n\nimport { useQuery } from \"@tanstack/react-query\";\nimport { isNil } from \"ramda\";\nimport { QUERY_CACHE_NAME_SPACE } from \"react-utils/constants\";\nimport { getFromLocalStorage, setToLocalStorage } from \"utils/general\";\n\nconst localStorageQueryCache = {\n set: (key, data) => {\n const cache = localStorageQueryCache.getAll();\n const newCache = { ...cache, [key]: { data, modifiedAt: Date.now() } };\n setToLocalStorage(QUERY_CACHE_NAME_SPACE, newCache);\n },\n getAll: () => {\n const cache = getFromLocalStorage(QUERY_CACHE_NAME_SPACE);\n if (!cache) return {};\n\n return cache;\n },\n get: key => localStorageQueryCache.getAll()[key],\n};\n\nconst isOutdated = (localCache, staleTime) => {\n if (isNil(localCache)) return true;\n\n if (isNil(staleTime)) return false;\n\n return localCache.modifiedAt <= Date.now() - staleTime;\n};\n\nconst usePersistedQuery = (queryKey, fetch, options) => {\n const queryResult = useQuery({\n queryKey,\n queryFn: fetch,\n ...options,\n });\n const localCache = localStorageQueryCache.get(queryKey);\n\n useEffect(() => {\n if (!queryResult.isSuccess) return;\n localStorageQueryCache.set(queryKey, queryResult.data);\n }, [queryKey, queryResult.data, queryResult.isSuccess]);\n\n if (isOutdated(localCache, options?.staleTime)) {\n return { ...queryResult, isFreshLoading: queryResult.isLoading };\n }\n\n return {\n ...queryResult,\n data: queryResult.data || localCache.data,\n isFreshLoading: false,\n };\n};\n\nusePersistedQuery.getCache = localStorageQueryCache.get;\n\nexport default usePersistedQuery;\n"],"names":["localStorageQueryCache","set","key","data","cache","getAll","newCache","_objectSpread","_defineProperty","modifiedAt","Date","now","setToLocalStorage","QUERY_CACHE_NAME_SPACE","getFromLocalStorage","get","isOutdated","localCache","staleTime","isNil","usePersistedQuery","queryKey","fetch","options","queryResult","useQuery","queryFn","useEffect","isSuccess","isFreshLoading","isLoading","getCache"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAOA,IAAMA,sBAAsB,GAAG;AAC7BC,EAAAA,GAAG,EAAE,SAALA,GAAGA,CAAGC,GAAG,EAAEC,IAAI,EAAK;AAClB,IAAA,IAAMC,KAAK,GAAGJ,sBAAsB,CAACK,MAAM,EAAE;IAC7C,IAAMC,QAAQ,GAAAC,aAAA,CAAAA,aAAA,CAAQH,EAAAA,EAAAA,KAAK,CAAAI,EAAAA,EAAAA,EAAAA,8BAAA,CAAGN,EAAAA,EAAAA,GAAG,EAAG;AAAEC,MAAAA,IAAI,EAAJA,IAAI;AAAEM,MAAAA,UAAU,EAAEC,IAAI,CAACC,GAAG;AAAG,KAAC,CAAE,CAAA;AACtEC,IAAAA,+BAAiB,CAACC,qDAAsB,EAAEP,QAAQ,CAAC;GACpD;AACDD,EAAAA,MAAM,EAAE,SAARA,MAAMA,GAAQ;AACZ,IAAA,IAAMD,KAAK,GAAGU,iCAAmB,CAACD,qDAAsB,CAAC;AACzD,IAAA,IAAI,CAACT,KAAK,EAAE,OAAO,EAAE;AAErB,IAAA,OAAOA,KAAK;GACb;AACDW,EAAAA,GAAG,EAAE,SAALA,GAAGA,CAAEb,GAAG,EAAA;AAAA,IAAA,OAAIF,sBAAsB,CAACK,MAAM,EAAE,CAACH,GAAG,CAAC;AAAA;AAClD,CAAC;AAED,IAAMc,UAAU,GAAG,SAAbA,UAAUA,CAAIC,UAAU,EAAEC,SAAS,EAAK;AAC5C,EAAA,IAAIC,WAAK,CAACF,UAAU,CAAC,EAAE,OAAO,IAAI;AAElC,EAAA,IAAIE,WAAK,CAACD,SAAS,CAAC,EAAE,OAAO,KAAK;EAElC,OAAOD,UAAU,CAACR,UAAU,IAAIC,IAAI,CAACC,GAAG,EAAE,GAAGO,SAAS;AACxD,CAAC;AAEKE,IAAAA,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAIC,QAAQ,EAAEC,KAAK,EAAEC,OAAO,EAAK;AACtD,EAAA,IAAMC,WAAW,GAAGC,mBAAQ,CAAAlB,aAAA,CAAA;AAC1Bc,IAAAA,QAAQ,EAARA,QAAQ;AACRK,IAAAA,OAAO,EAAEJ;GACNC,EAAAA,OAAO,CACX,CAAC;AACF,EAAA,IAAMN,UAAU,GAAGjB,sBAAsB,CAACe,GAAG,CAACM,QAAQ,CAAC;AAEvDM,EAAAA,eAAS,CAAC,YAAM;AACd,IAAA,IAAI,CAACH,WAAW,CAACI,SAAS,EAAE;IAC5B5B,sBAAsB,CAACC,GAAG,CAACoB,QAAQ,EAAEG,WAAW,CAACrB,IAAI,CAAC;AACxD,GAAC,EAAE,CAACkB,QAAQ,EAAEG,WAAW,CAACrB,IAAI,EAAEqB,WAAW,CAACI,SAAS,CAAC,CAAC;AAEvD,EAAA,IAAIZ,UAAU,CAACC,UAAU,EAAEM,OAAO,KAAA,IAAA,IAAPA,OAAO,KAAA,MAAA,GAAA,MAAA,GAAPA,OAAO,CAAEL,SAAS,CAAC,EAAE;AAC9C,IAAA,OAAAX,aAAA,CAAAA,aAAA,CAAA,EAAA,EAAYiB,WAAW,CAAA,EAAA,EAAA,EAAA;MAAEK,cAAc,EAAEL,WAAW,CAACM;AAAS,KAAA,CAAA;AAChE;AAEA,EAAA,OAAAvB,aAAA,CAAAA,aAAA,CAAA,EAAA,EACKiB,WAAW,CAAA,EAAA,EAAA,EAAA;AACdrB,IAAAA,IAAI,EAAEqB,WAAW,CAACrB,IAAI,IAAIc,UAAU,CAACd,IAAI;AACzC0B,IAAAA,cAAc,EAAE;AAAK,GAAA,CAAA;AAEzB;AAEAT,iBAAiB,CAACW,QAAQ,GAAG/B,sBAAsB,CAACe,GAAG;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePrevious.js","sources":["../../../../src/react-utils/usePrevious/usePrevious.js"],"sourcesContent":["import { useEffect, useRef } from \"react\";\n\nconst usePrevious = value => {\n const ref = useRef(value);\n\n useEffect(() => {\n ref.current = value;\n }, [value]);\n\n return ref.current;\n};\n\nexport default usePrevious;\n"],"names":["usePrevious","value","ref","useRef","useEffect","current"],"mappings":";;;;AAEA,IAAMA,WAAW,GAAG,SAAdA,WAAWA,CAAGC,KAAK,EAAI;AAC3B,EAAA,IAAMC,GAAG,GAAGC,YAAM,CAACF,KAAK,CAAC
|
|
1
|
+
{"version":3,"file":"usePrevious.js","sources":["../../../../src/react-utils/usePrevious/usePrevious.js"],"sourcesContent":["import { useEffect, useRef } from \"react\";\n\nconst usePrevious = value => {\n const ref = useRef(value);\n\n useEffect(() => {\n ref.current = value;\n }, [value]);\n\n return ref.current;\n};\n\nexport default usePrevious;\n"],"names":["usePrevious","value","ref","useRef","useEffect","current"],"mappings":";;;;AAEA,IAAMA,WAAW,GAAG,SAAdA,WAAWA,CAAGC,KAAK,EAAI;AAC3B,EAAA,IAAMC,GAAG,GAAGC,YAAM,CAACF,KAAK,CAAC;AAEzBG,EAAAA,eAAS,CAAC,YAAM;IACdF,GAAG,CAACG,OAAO,GAAGJ,KAAK;AACrB,GAAC,EAAE,CAACA,KAAK,CAAC,CAAC;EAEX,OAAOC,GAAG,CAACG,OAAO;AACpB;;;;"}
|
|
@@ -4,12 +4,11 @@ var reactUtils_useQueryParams_useQueryParams = require('./useQueryParams.js');
|
|
|
4
4
|
require('react-router-dom');
|
|
5
5
|
require('../../utils/general.js');
|
|
6
6
|
require('../../objectWithoutProperties-wSsbHFcG.js');
|
|
7
|
-
require('../../slicedToArray-
|
|
7
|
+
require('../../slicedToArray-BcL7fKuL.js');
|
|
8
8
|
require('../../unsupportedIterableToArray-BoHMiKNA.js');
|
|
9
|
-
require('../../index-
|
|
9
|
+
require('../../index-CUYe6FO0.js');
|
|
10
10
|
require('../../_commonjsHelpers-CFO10eej.js');
|
|
11
|
-
require('../../defineProperty-
|
|
12
|
-
require('../../toPropertyKey-CRgrohXG.js');
|
|
11
|
+
require('../../defineProperty-lChFfVqi.js');
|
|
13
12
|
require('../../typeof-D4ZZ_FlZ.js');
|
|
14
13
|
require('i18next');
|
|
15
14
|
require('@bigbinary/neeto-cist');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -3,12 +3,11 @@
|
|
|
3
3
|
var reactRouterDom = require('react-router-dom');
|
|
4
4
|
var utils_general = require('../../utils/general.js');
|
|
5
5
|
require('../../objectWithoutProperties-wSsbHFcG.js');
|
|
6
|
-
require('../../slicedToArray-
|
|
6
|
+
require('../../slicedToArray-BcL7fKuL.js');
|
|
7
7
|
require('../../unsupportedIterableToArray-BoHMiKNA.js');
|
|
8
|
-
require('../../index-
|
|
8
|
+
require('../../index-CUYe6FO0.js');
|
|
9
9
|
require('../../_commonjsHelpers-CFO10eej.js');
|
|
10
|
-
require('../../defineProperty-
|
|
11
|
-
require('../../toPropertyKey-CRgrohXG.js');
|
|
10
|
+
require('../../defineProperty-lChFfVqi.js');
|
|
12
11
|
require('../../typeof-D4ZZ_FlZ.js');
|
|
13
12
|
require('i18next');
|
|
14
13
|
require('@bigbinary/neeto-cist');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useQueryParams.js","sources":["../../../../src/react-utils/useQueryParams/useQueryParams.js"],"sourcesContent":["import { useLocation } from \"react-router-dom\";\nimport { parseQueryParams } from \"utils/general\";\n\nconst useQueryParams = options => {\n const location = useLocation();\n\n return parseQueryParams(location.search, options);\n};\n\nexport default useQueryParams;\n"],"names":["useQueryParams","options","location","useLocation","parseQueryParams","search"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useQueryParams.js","sources":["../../../../src/react-utils/useQueryParams/useQueryParams.js"],"sourcesContent":["import { useLocation } from \"react-router-dom\";\nimport { parseQueryParams } from \"utils/general\";\n\nconst useQueryParams = options => {\n const location = useLocation();\n\n return parseQueryParams(location.search, options);\n};\n\nexport default useQueryParams;\n"],"names":["useQueryParams","options","location","useLocation","parseQueryParams","search"],"mappings":";;;;;;;;;;;;;;;;;AAGA,IAAMA,cAAc,GAAG,SAAjBA,cAAcA,CAAGC,OAAO,EAAI;AAChC,EAAA,IAAMC,QAAQ,GAAGC,0BAAW,EAAE;AAE9B,EAAA,OAAOC,8BAAgB,CAACF,QAAQ,CAACG,MAAM,EAAEJ,OAAO,CAAC;AACnD;;;;"}
|
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var reactUtils_useRegisterNavigationCheckpoint_useRegisterNavigationCheckpoint = require('./useRegisterNavigationCheckpoint.js');
|
|
6
|
-
require('../../defineProperty-
|
|
7
|
-
require('../../toPropertyKey-CRgrohXG.js');
|
|
6
|
+
require('../../defineProperty-lChFfVqi.js');
|
|
8
7
|
require('../../typeof-D4ZZ_FlZ.js');
|
|
9
8
|
require('react');
|
|
10
9
|
require('ramda');
|
|
@@ -12,9 +11,9 @@ require('../constants/constants.js');
|
|
|
12
11
|
require('../withImmutableActions/withImmutableActions.js');
|
|
13
12
|
require('../../utils/general.js');
|
|
14
13
|
require('../../objectWithoutProperties-wSsbHFcG.js');
|
|
15
|
-
require('../../slicedToArray-
|
|
14
|
+
require('../../slicedToArray-BcL7fKuL.js');
|
|
16
15
|
require('../../unsupportedIterableToArray-BoHMiKNA.js');
|
|
17
|
-
require('../../index-
|
|
16
|
+
require('../../index-CUYe6FO0.js');
|
|
18
17
|
require('../../_commonjsHelpers-CFO10eej.js');
|
|
19
18
|
require('i18next');
|
|
20
19
|
require('@bigbinary/neeto-cist');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/cjs/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var defineProperty = require('../../defineProperty-
|
|
5
|
+
var defineProperty = require('../../defineProperty-lChFfVqi.js');
|
|
6
6
|
var react = require('react');
|
|
7
7
|
var ramda = require('ramda');
|
|
8
8
|
var reactUtils_constants_constants = require('../constants/constants.js');
|
|
@@ -10,12 +10,11 @@ var reactUtils_withImmutableActions_withImmutableActions = require('../withImmut
|
|
|
10
10
|
var utils_general = require('../../utils/general.js');
|
|
11
11
|
var zustand = require('zustand');
|
|
12
12
|
var shallow = require('zustand/shallow');
|
|
13
|
-
require('../../toPropertyKey-CRgrohXG.js');
|
|
14
13
|
require('../../typeof-D4ZZ_FlZ.js');
|
|
15
14
|
require('../../objectWithoutProperties-wSsbHFcG.js');
|
|
16
|
-
require('../../slicedToArray-
|
|
15
|
+
require('../../slicedToArray-BcL7fKuL.js');
|
|
17
16
|
require('../../unsupportedIterableToArray-BoHMiKNA.js');
|
|
18
|
-
require('../../index-
|
|
17
|
+
require('../../index-CUYe6FO0.js');
|
|
19
18
|
require('../../_commonjsHelpers-CFO10eej.js');
|
|
20
19
|
require('i18next');
|
|
21
20
|
require('@bigbinary/neeto-cist');
|
|
@@ -23,7 +22,7 @@ require('@bigbinary/neetoui/Toastr');
|
|
|
23
22
|
require('qs');
|
|
24
23
|
|
|
25
24
|
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; }
|
|
26
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t),
|
|
25
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { defineProperty._defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
27
26
|
var getLocalStorageData = function getLocalStorageData() {
|
|
28
27
|
return utils_general.getFromLocalStorage(reactUtils_constants_constants.STORAGE_KEY) || {};
|
|
29
28
|
};
|