@bigbinary/neeto-commons-frontend 4.14.0-beta.0 → 4.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/configs/esbuild/utils.js +2 -4
- 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/configs/vite/index.js +3 -2
- package/configs/vite/plugins/nanoDevelopment.js +29 -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 +5 -5
- 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 +2 -1
- package/dist/cjs/cypress-utils/constants/routes.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/selectors/common.js +2 -1
- package/dist/cjs/cypress-utils/constants/selectors/common.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/selectors/editor.js +2 -1
- package/dist/cjs/cypress-utils/constants/selectors/editor.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/selectors/ipRestriction.js +2 -1
- package/dist/cjs/cypress-utils/constants/selectors/ipRestriction.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/selectors/login.js +2 -1
- package/dist/cjs/cypress-utils/constants/selectors/login.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/selectors/member.js +2 -1
- package/dist/cjs/cypress-utils/constants/selectors/member.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/selectors/navigation.js +2 -1
- 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 +2 -1
- package/dist/cjs/cypress-utils/constants/selectors/signUp.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/selectors/tags.js +2 -1
- 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 +4 -4
- package/dist/cjs/cypress-utils/utils/authentication.js +2 -1
- package/dist/cjs/cypress-utils/utils/authentication.js.map +1 -1
- package/dist/cjs/cypress-utils/utils/common.js +3 -2
- 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 +3 -2
- package/dist/cjs/cypress-utils/utils/email.js.map +1 -1
- package/dist/cjs/cypress-utils/utils/member.js +12 -11
- package/dist/cjs/cypress-utils/utils/member.js.map +1 -1
- package/dist/cjs/cypress-utils/utils/navigation.js +2 -1
- package/dist/cjs/cypress-utils/utils/navigation.js.map +1 -1
- package/dist/cjs/cypress-utils/utils/organization.js +2 -1
- package/dist/cjs/cypress-utils/utils/organization.js.map +1 -1
- package/dist/cjs/cypress-utils/utils/validation.js +2 -1
- package/dist/cjs/cypress-utils/utils/validation.js.map +1 -1
- package/dist/cjs/defineProperty-lChFfVqi.js +32 -0
- package/dist/cjs/defineProperty-lChFfVqi.js.map +1 -0
- package/dist/cjs/index-CUYe6FO0.js +378 -0
- package/dist/cjs/index-CUYe6FO0.js.map +1 -0
- package/dist/cjs/initializers/axios.js +2 -2
- package/dist/cjs/initializers/axiosInitializer/index.js +22 -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 +4 -4
- package/dist/cjs/initializers/dayjs.js.map +1 -1
- package/dist/cjs/initializers/globalProps.js +3 -3
- package/dist/cjs/initializers/globalProps.js.map +1 -1
- package/dist/cjs/initializers/i18n.js +42 -41
- package/dist/cjs/initializers/i18n.js.map +1 -1
- package/dist/cjs/initializers/index.js +5 -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 +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 +3 -3
- 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 +26 -0
- package/dist/cjs/objectWithoutProperties-wSsbHFcG.js.map +1 -0
- package/dist/cjs/react-utils/AppContainer/AppContainer.js +4 -3
- package/dist/cjs/react-utils/AppContainer/AppContainer.js.map +1 -1
- package/dist/cjs/react-utils/AppContainer/index.js +2 -1
- 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 +6 -5
- package/dist/cjs/react-utils/HoneybadgerErrorBoundary/FallbackComponent.js.map +1 -1
- package/dist/cjs/react-utils/HoneybadgerErrorBoundary/HoneybadgerErrorBoundary.js +3 -2
- package/dist/cjs/react-utils/HoneybadgerErrorBoundary/HoneybadgerErrorBoundary.js.map +1 -1
- package/dist/cjs/react-utils/HoneybadgerErrorBoundary/constants.js +3 -1
- package/dist/cjs/react-utils/HoneybadgerErrorBoundary/constants.js.map +1 -1
- package/dist/cjs/react-utils/HoneybadgerErrorBoundary/index.js +2 -1
- 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 +11 -6
- package/dist/cjs/react-utils/PrivateRoute/PrivateRoute.js.map +1 -1
- package/dist/cjs/react-utils/PrivateRoute/index.js +3 -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 +8 -7
- 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 +2 -1
- package/dist/cjs/react-utils/useBreakpoints/index.js.map +1 -1
- package/dist/cjs/react-utils/useBreakpoints/utils.js +3 -2
- package/dist/cjs/react-utils/useBreakpoints/utils.js.map +1 -1
- package/dist/cjs/react-utils/useDebounce/index.js +2 -2
- package/dist/cjs/react-utils/useDebounce/useDebounce.js +2 -2
- package/dist/cjs/react-utils/useDebounce/useDebounce.js.map +1 -1
- package/dist/cjs/react-utils/useDisplayErrorPage/useDisplayErrorPage.js +2 -1
- package/dist/cjs/react-utils/useDisplayErrorPage/useDisplayErrorPage.js.map +1 -1
- package/dist/cjs/react-utils/useFetchNeetoApps/apis/neeto_apps.js.map +1 -1
- package/dist/cjs/react-utils/useFetchNeetoApps/index.js +6 -5
- package/dist/cjs/react-utils/useFetchNeetoApps/index.js.map +1 -1
- package/dist/cjs/react-utils/useFetchNeetoApps/useFetchNeetoApps.js +7 -6
- 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 +2 -2
- package/dist/cjs/react-utils/useIsElementVisibleInDom/useForceUpdate.js +2 -2
- package/dist/cjs/react-utils/useIsElementVisibleInDom/useForceUpdate.js.map +1 -1
- package/dist/cjs/react-utils/useIsElementVisibleInDom/useIsElementVisibleInDom.js +2 -2
- 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 +8 -7
- package/dist/cjs/react-utils/useLocalStorage/index.js.map +1 -1
- package/dist/cjs/react-utils/useLocalStorage/useLocalStorage.js +8 -7
- package/dist/cjs/react-utils/useLocalStorage/useLocalStorage.js.map +1 -1
- package/dist/cjs/react-utils/useMutationWithInvalidation/index.js +3 -2
- package/dist/cjs/react-utils/useMutationWithInvalidation/index.js.map +1 -1
- package/dist/cjs/react-utils/useMutationWithInvalidation/useMutationWithInvalidation.js +5 -4
- 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 +6 -5
- package/dist/cjs/react-utils/usePersistedQuery/index.js.map +1 -1
- package/dist/cjs/react-utils/usePersistedQuery/usePersistedQuery.js +7 -6
- 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 +6 -5
- package/dist/cjs/react-utils/useQueryParams/index.js.map +1 -1
- package/dist/cjs/react-utils/useQueryParams/useQueryParams.js +6 -5
- package/dist/cjs/react-utils/useQueryParams/useQueryParams.js.map +1 -1
- package/dist/cjs/react-utils/useRegisterNavigationCheckpoint/index.js +6 -5
- package/dist/cjs/react-utils/useRegisterNavigationCheckpoint/index.js.map +1 -1
- package/dist/cjs/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js +7 -6
- 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 +2 -2
- package/dist/cjs/react-utils/useStateWithDependency/useStateWithDependency.js +2 -2
- 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 +2 -1
- package/dist/cjs/react-utils/withTitle/index.js.map +1 -1
- package/dist/cjs/react-utils/withTitle/withTitle.js +3 -2
- package/dist/cjs/react-utils/withTitle/withTitle.js.map +1 -1
- package/dist/cjs/slicedToArray-BcL7fKuL.js +46 -0
- package/dist/cjs/slicedToArray-BcL7fKuL.js.map +1 -0
- package/dist/cjs/toConsumableArray-tBKHqzE3.js +22 -0
- package/dist/cjs/toConsumableArray-tBKHqzE3.js.map +1 -0
- package/dist/cjs/typeof-D4ZZ_FlZ.js +14 -0
- package/dist/cjs/typeof-D4ZZ_FlZ.js.map +1 -0
- package/dist/cjs/unsupportedIterableToArray-BoHMiKNA.js +19 -0
- package/dist/cjs/unsupportedIterableToArray-BoHMiKNA.js.map +1 -0
- package/dist/cjs/utils/axios.js.map +1 -1
- package/dist/cjs/utils/buildNestedAttributesPayload.js +5 -4
- 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 +5 -5
- package/dist/cjs/utils/captureAnalyticsPageView.js.map +1 -1
- package/dist/cjs/utils/createSubscription.js +6 -5
- package/dist/cjs/utils/createSubscription.js.map +1 -1
- package/dist/cjs/utils/currencyFormat.js +3 -2
- package/dist/cjs/utils/currencyFormat.js.map +1 -1
- package/dist/cjs/utils/datetime.js +6 -5
- package/dist/cjs/utils/datetime.js.map +1 -1
- package/dist/cjs/utils/dayjs.js +18 -26
- package/dist/cjs/utils/dayjs.js.map +1 -1
- package/dist/cjs/utils/general.js +9 -8
- package/dist/cjs/utils/general.js.map +1 -1
- package/dist/cjs/utils/index.js +8 -7
- 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 +5 -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 +5 -5
- 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 +3 -2
- package/dist/cypress-utils/constants/routes.js.map +1 -1
- package/dist/cypress-utils/constants/selectors/common.js +3 -2
- package/dist/cypress-utils/constants/selectors/common.js.map +1 -1
- package/dist/cypress-utils/constants/selectors/editor.js +2 -1
- package/dist/cypress-utils/constants/selectors/editor.js.map +1 -1
- package/dist/cypress-utils/constants/selectors/ipRestriction.js +2 -1
- package/dist/cypress-utils/constants/selectors/ipRestriction.js.map +1 -1
- package/dist/cypress-utils/constants/selectors/login.js +2 -1
- package/dist/cypress-utils/constants/selectors/login.js.map +1 -1
- package/dist/cypress-utils/constants/selectors/member.js +2 -1
- package/dist/cypress-utils/constants/selectors/member.js.map +1 -1
- package/dist/cypress-utils/constants/selectors/navigation.js +2 -1
- 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 +2 -1
- package/dist/cypress-utils/constants/selectors/signUp.js.map +1 -1
- package/dist/cypress-utils/constants/selectors/tags.js +2 -1
- 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 +4 -4
- package/dist/cypress-utils/utils/authentication.js +3 -2
- package/dist/cypress-utils/utils/authentication.js.map +1 -1
- package/dist/cypress-utils/utils/common.js +3 -2
- 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 +3 -2
- package/dist/cypress-utils/utils/email.js.map +1 -1
- package/dist/cypress-utils/utils/member.js +13 -12
- package/dist/cypress-utils/utils/member.js.map +1 -1
- package/dist/cypress-utils/utils/navigation.js +4 -3
- package/dist/cypress-utils/utils/navigation.js.map +1 -1
- package/dist/cypress-utils/utils/organization.js +2 -1
- package/dist/cypress-utils/utils/organization.js.map +1 -1
- package/dist/cypress-utils/utils/validation.js +2 -1
- package/dist/cypress-utils/utils/validation.js.map +1 -1
- package/dist/defineProperty-CrCYjjU3.js +29 -0
- package/dist/defineProperty-CrCYjjU3.js.map +1 -0
- package/dist/index-COfUw8MU.js +375 -0
- package/dist/index-COfUw8MU.js.map +1 -0
- package/dist/initializers/axios.js +2 -2
- package/dist/initializers/axiosInitializer/index.js +22 -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 +4 -4
- package/dist/initializers/dayjs.js.map +1 -1
- package/dist/initializers/globalProps.js +3 -3
- package/dist/initializers/globalProps.js.map +1 -1
- package/dist/initializers/i18n.js +42 -41
- package/dist/initializers/i18n.js.map +1 -1
- package/dist/initializers/index.js +5 -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 +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 +3 -3
- 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 +24 -0
- package/dist/objectWithoutProperties-DN7d1SzH.js.map +1 -0
- package/dist/react-utils/AppContainer/AppContainer.js +4 -3
- package/dist/react-utils/AppContainer/AppContainer.js.map +1 -1
- package/dist/react-utils/AppContainer/index.js +2 -1
- 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 +6 -5
- package/dist/react-utils/HoneybadgerErrorBoundary/FallbackComponent.js.map +1 -1
- package/dist/react-utils/HoneybadgerErrorBoundary/HoneybadgerErrorBoundary.js +4 -3
- package/dist/react-utils/HoneybadgerErrorBoundary/HoneybadgerErrorBoundary.js.map +1 -1
- package/dist/react-utils/HoneybadgerErrorBoundary/constants.js +3 -2
- package/dist/react-utils/HoneybadgerErrorBoundary/constants.js.map +1 -1
- package/dist/react-utils/HoneybadgerErrorBoundary/index.js +2 -1
- 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 +11 -6
- package/dist/react-utils/PrivateRoute/PrivateRoute.js.map +1 -1
- package/dist/react-utils/PrivateRoute/index.js +3 -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 +8 -7
- 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 +2 -1
- package/dist/react-utils/useBreakpoints/index.js.map +1 -1
- package/dist/react-utils/useBreakpoints/utils.js +3 -2
- package/dist/react-utils/useBreakpoints/utils.js.map +1 -1
- package/dist/react-utils/useDebounce/index.js +2 -2
- package/dist/react-utils/useDebounce/useDebounce.js +2 -2
- package/dist/react-utils/useDebounce/useDebounce.js.map +1 -1
- package/dist/react-utils/useDisplayErrorPage/useDisplayErrorPage.js +2 -1
- package/dist/react-utils/useDisplayErrorPage/useDisplayErrorPage.js.map +1 -1
- package/dist/react-utils/useFetchNeetoApps/apis/neeto_apps.js.map +1 -1
- package/dist/react-utils/useFetchNeetoApps/index.js +6 -5
- package/dist/react-utils/useFetchNeetoApps/index.js.map +1 -1
- package/dist/react-utils/useFetchNeetoApps/useFetchNeetoApps.js +7 -6
- package/dist/react-utils/useFetchNeetoApps/useFetchNeetoApps.js.map +1 -1
- package/dist/react-utils/useFieldSubmit/useFieldSubmit.js.map +1 -1
- package/dist/react-utils/useFuncDebounce/useFuncDebounce.js.map +1 -1
- package/dist/react-utils/useIsElementVisibleInDom/index.js +2 -2
- package/dist/react-utils/useIsElementVisibleInDom/useForceUpdate.js +2 -2
- package/dist/react-utils/useIsElementVisibleInDom/useForceUpdate.js.map +1 -1
- package/dist/react-utils/useIsElementVisibleInDom/useIsElementVisibleInDom.js +2 -2
- package/dist/react-utils/useIsElementVisibleInDom/useIsElementVisibleInDom.js.map +1 -1
- package/dist/react-utils/useKeyboardShortcutsPaneState/useKeyboardShortcutsPaneState.js.map +1 -1
- package/dist/react-utils/useLocalStorage/index.js +8 -7
- package/dist/react-utils/useLocalStorage/index.js.map +1 -1
- package/dist/react-utils/useLocalStorage/useLocalStorage.js +8 -7
- package/dist/react-utils/useLocalStorage/useLocalStorage.js.map +1 -1
- package/dist/react-utils/useMutationWithInvalidation/index.js +3 -2
- package/dist/react-utils/useMutationWithInvalidation/index.js.map +1 -1
- package/dist/react-utils/useMutationWithInvalidation/useMutationWithInvalidation.js +5 -4
- package/dist/react-utils/useMutationWithInvalidation/useMutationWithInvalidation.js.map +1 -1
- package/dist/react-utils/useOnClickOutside/useOnClickOutside.js.map +1 -1
- package/dist/react-utils/usePersistedQuery/index.js +6 -5
- package/dist/react-utils/usePersistedQuery/index.js.map +1 -1
- package/dist/react-utils/usePersistedQuery/usePersistedQuery.js +8 -7
- 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 +6 -5
- package/dist/react-utils/useQueryParams/index.js.map +1 -1
- package/dist/react-utils/useQueryParams/useQueryParams.js +6 -5
- package/dist/react-utils/useQueryParams/useQueryParams.js.map +1 -1
- package/dist/react-utils/useRegisterNavigationCheckpoint/index.js +6 -5
- package/dist/react-utils/useRegisterNavigationCheckpoint/index.js.map +1 -1
- package/dist/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js +8 -7
- package/dist/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js.map +1 -1
- package/dist/react-utils/useRestoreScrollPosition/useRestoreScrollPosition.js +1 -1
- package/dist/react-utils/useRestoreScrollPosition/useRestoreScrollPosition.js.map +1 -1
- package/dist/react-utils/useStateWithDependency/index.js +2 -2
- package/dist/react-utils/useStateWithDependency/useStateWithDependency.js +2 -2
- package/dist/react-utils/useStateWithDependency/useStateWithDependency.js.map +1 -1
- package/dist/react-utils/useTimer/useTimer.js.map +1 -1
- package/dist/react-utils/useUpdateEffect/useUpdateEffect.js.map +1 -1
- package/dist/react-utils/withImmutableActions/withImmutableActions.js.map +1 -1
- package/dist/react-utils/withT/withT.js.map +1 -1
- package/dist/react-utils/withTitle/index.js +2 -1
- package/dist/react-utils/withTitle/index.js.map +1 -1
- package/dist/react-utils/withTitle/withTitle.js +3 -2
- package/dist/react-utils/withTitle/withTitle.js.map +1 -1
- package/dist/slicedToArray-DmsZvA_9.js +44 -0
- package/dist/slicedToArray-DmsZvA_9.js.map +1 -0
- package/dist/toConsumableArray-B7CFjjkW.js +20 -0
- package/dist/toConsumableArray-B7CFjjkW.js.map +1 -0
- package/dist/typeof-D-UKOauR.js +12 -0
- package/dist/typeof-D-UKOauR.js.map +1 -0
- package/dist/unsupportedIterableToArray-Dqz8Y8_I.js +16 -0
- package/dist/unsupportedIterableToArray-Dqz8Y8_I.js.map +1 -0
- package/dist/utils/axios.js.map +1 -1
- package/dist/utils/buildNestedAttributesPayload.js +5 -4
- 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 +4 -4
- package/dist/utils/captureAnalyticsPageView.js.map +1 -1
- package/dist/utils/createSubscription.js +6 -5
- package/dist/utils/createSubscription.js.map +1 -1
- package/dist/utils/currencyFormat.js +3 -2
- package/dist/utils/currencyFormat.js.map +1 -1
- package/dist/utils/datetime.js +6 -5
- package/dist/utils/datetime.js.map +1 -1
- package/dist/utils/dayjs.js +18 -26
- package/dist/utils/dayjs.js.map +1 -1
- package/dist/utils/general.js +11 -10
- package/dist/utils/general.js.map +1 -1
- package/dist/utils/index.js +8 -7
- 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 +5 -4
- package/dist/utils/timezonePlugin.js.map +1 -1
- package/dist/utils/validators/slug.js.map +1 -1
- package/initializers.d.ts +2 -0
- package/package.json +61 -56
- package/react-utils.d.ts +1 -0
- 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/defineProperty-997UgAIV.js +0 -19
- package/dist/cjs/defineProperty-997UgAIV.js.map +0 -1
- package/dist/cjs/index-H4FWVZW-.js +0 -439
- package/dist/cjs/index-H4FWVZW-.js.map +0 -1
- package/dist/cjs/mixpanel.cjs-DyVaCR4W.js +0 -6346
- package/dist/cjs/mixpanel.cjs-DyVaCR4W.js.map +0 -1
- package/dist/cjs/objectWithoutProperties-DKElrbI9.js +0 -38
- package/dist/cjs/objectWithoutProperties-DKElrbI9.js.map +0 -1
- package/dist/cjs/slicedToArray-xtNEn5LJ.js +0 -48
- package/dist/cjs/slicedToArray-xtNEn5LJ.js.map +0 -1
- package/dist/cjs/toConsumableArray-Da_S-3Fb.js +0 -22
- package/dist/cjs/toConsumableArray-Da_S-3Fb.js.map +0 -1
- package/dist/cjs/typeof-CKZ7gZmW.js +0 -14
- package/dist/cjs/typeof-CKZ7gZmW.js.map +0 -1
- package/dist/cjs/unsupportedIterableToArray-CP9uaN0w.js +0 -24
- package/dist/cjs/unsupportedIterableToArray-CP9uaN0w.js.map +0 -1
- package/dist/defineProperty-CEd-kZQW.js +0 -17
- package/dist/defineProperty-CEd-kZQW.js.map +0 -1
- package/dist/index-CRoDfiJc.js +0 -436
- package/dist/index-CRoDfiJc.js.map +0 -1
- package/dist/mixpanel.cjs-DTVxnNUt.js +0 -6344
- package/dist/mixpanel.cjs-DTVxnNUt.js.map +0 -1
- package/dist/objectWithoutProperties-B90Wg9LD.js +0 -36
- package/dist/objectWithoutProperties-B90Wg9LD.js.map +0 -1
- package/dist/slicedToArray-B_J-CC8-.js +0 -46
- package/dist/slicedToArray-B_J-CC8-.js.map +0 -1
- package/dist/toConsumableArray-CQcqnqnw.js +0 -20
- package/dist/toConsumableArray-CQcqnqnw.js.map +0 -1
- package/dist/typeof-C6-BY_SI.js +0 -12
- package/dist/typeof-C6-BY_SI.js.map +0 -1
- package/dist/unsupportedIterableToArray-wRn9bJ2J.js +0 -21
- package/dist/unsupportedIterableToArray-wRn9bJ2J.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-commons-frontend",
|
|
3
|
-
"version": "4.14.0
|
|
3
|
+
"version": "4.14.0",
|
|
4
4
|
"description": "A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.",
|
|
5
5
|
"repository": "git@github.com:bigbinary/neeto-commons-frontend.git",
|
|
6
6
|
"author": "Amaljith K <amaljith.k@bigbinary.com>",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"test": "TZ=UTC jest --detectOpenHandles --runInBand"
|
|
18
18
|
},
|
|
19
19
|
"engines": {
|
|
20
|
-
"node": ">=
|
|
20
|
+
"node": ">=22.13",
|
|
21
21
|
"npm": ">=9",
|
|
22
22
|
"yarn": ">=1.22"
|
|
23
23
|
},
|
|
@@ -78,18 +78,19 @@
|
|
|
78
78
|
],
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@babel/cli": "^7.23.0",
|
|
81
|
-
"@babel/core": "
|
|
82
|
-
"@babel/eslint-parser": "7.
|
|
81
|
+
"@babel/core": "7.26.0",
|
|
82
|
+
"@babel/eslint-parser": "7.25.9",
|
|
83
83
|
"@babel/generator": "^7.20.7",
|
|
84
|
-
"@babel/plugin-
|
|
85
|
-
"@babel/
|
|
86
|
-
"@babel/preset-
|
|
87
|
-
"@babel/preset-
|
|
88
|
-
"@babel/
|
|
84
|
+
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
85
|
+
"@babel/plugin-transform-runtime": "7.25.9",
|
|
86
|
+
"@babel/preset-env": "7.26.0",
|
|
87
|
+
"@babel/preset-react": "7.25.9",
|
|
88
|
+
"@babel/preset-typescript": "7.26.0",
|
|
89
|
+
"@babel/runtime": "7.26.10",
|
|
89
90
|
"@babel/types": "^7.20.7",
|
|
90
|
-
"@bigbinary/babel-preset-neeto": "
|
|
91
|
-
"@bigbinary/eslint-plugin-neeto": "1.5.
|
|
92
|
-
"@bigbinary/neeto-audit-frontend": "^2.0
|
|
91
|
+
"@bigbinary/babel-preset-neeto": "1.0.8",
|
|
92
|
+
"@bigbinary/eslint-plugin-neeto": "1.5.8",
|
|
93
|
+
"@bigbinary/neeto-audit-frontend": "^2.1.0",
|
|
93
94
|
"@bigbinary/neeto-cist": "1.0.11",
|
|
94
95
|
"@bigbinary/neeto-commons-frontend": "4.4.6",
|
|
95
96
|
"@bigbinary/neeto-editor": "1.38.1",
|
|
@@ -97,9 +98,12 @@
|
|
|
97
98
|
"@bigbinary/neeto-icons": "1.20.5",
|
|
98
99
|
"@bigbinary/neeto-molecules": "3.5.2",
|
|
99
100
|
"@bigbinary/neetoui": "8.2.13",
|
|
101
|
+
"@eslint/compat": "^1.2.8",
|
|
102
|
+
"@eslint/eslintrc": "^3.3.1",
|
|
103
|
+
"@eslint/js": "^9.25.1",
|
|
100
104
|
"@faker-js/faker": "8.2.0",
|
|
101
|
-
"@honeybadger-io/js": "
|
|
102
|
-
"@honeybadger-io/react": "
|
|
105
|
+
"@honeybadger-io/js": "6.10.1",
|
|
106
|
+
"@honeybadger-io/react": "6.1.25",
|
|
103
107
|
"@modyfi/vite-plugin-yaml": "^1.1.0",
|
|
104
108
|
"@rails/actioncable": "7.2.100",
|
|
105
109
|
"@rollup/plugin-alias": "5.0.1",
|
|
@@ -117,18 +121,18 @@
|
|
|
117
121
|
"@storybook/react": "6.5.16",
|
|
118
122
|
"@svgr/rollup": "8.1.0",
|
|
119
123
|
"@tailwindcss/container-queries": "^0.1.1",
|
|
120
|
-
"@tanstack/react-query": "5.
|
|
121
|
-
"@tanstack/react-query-devtools": "5.
|
|
124
|
+
"@tanstack/react-query": "5.59.20",
|
|
125
|
+
"@tanstack/react-query-devtools": "5.59.20",
|
|
122
126
|
"@testing-library/jest-dom": "5.16.2",
|
|
123
127
|
"@testing-library/react": "^14.0.0",
|
|
124
128
|
"@testing-library/react-hooks": "^8.0.0",
|
|
125
129
|
"@testing-library/user-event": "13.5.0",
|
|
126
130
|
"@tippyjs/react": "4.2.6",
|
|
127
131
|
"@vitejs/plugin-react": "^4.3.4",
|
|
128
|
-
"antd": "5.
|
|
129
|
-
"autoprefixer": "
|
|
132
|
+
"antd": "5.22.0",
|
|
133
|
+
"autoprefixer": "10.4.20",
|
|
130
134
|
"avvvatars-react": "0.4.2",
|
|
131
|
-
"axios": "1.
|
|
135
|
+
"axios": "1.8.2",
|
|
132
136
|
"babel-jest": "27.0.6",
|
|
133
137
|
"babel-loader": "^8.2.5",
|
|
134
138
|
"babel-plugin-dynamic-import-node": "^2.3.3",
|
|
@@ -144,7 +148,7 @@
|
|
|
144
148
|
"babel-preset-typescript": "^7.0.0-alpha.19",
|
|
145
149
|
"css-loader": "4.3.0",
|
|
146
150
|
"cypress": "11.2.0",
|
|
147
|
-
"dayjs": "1.11.
|
|
151
|
+
"dayjs": "1.11.13",
|
|
148
152
|
"dompurify": "^2.4.0",
|
|
149
153
|
"esbuild": "0.24.0",
|
|
150
154
|
"esbuild-plugin-svgr": "^3.1.0",
|
|
@@ -152,23 +156,24 @@
|
|
|
152
156
|
"esbuild-plugins-node-modules-polyfill": "^1.6.8",
|
|
153
157
|
"esbuild-rails": "^1.0.7",
|
|
154
158
|
"esbuild-sass-plugin": "^3.3.1",
|
|
155
|
-
"eslint": "
|
|
156
|
-
"eslint-config-prettier": "
|
|
157
|
-
"eslint-plugin-cypress": "
|
|
158
|
-
"eslint-plugin-import": "2.
|
|
159
|
-
"eslint-plugin-jam3": "0.2.3",
|
|
160
|
-
"eslint-plugin-json": "
|
|
161
|
-
"eslint-plugin-prettier": "
|
|
162
|
-
"eslint-plugin-promise": "
|
|
163
|
-
"eslint-plugin-react": "7.
|
|
164
|
-
"eslint-plugin-react-hooks": "
|
|
165
|
-
"eslint-plugin-security": "^
|
|
166
|
-
"eslint-plugin-sonarjs": "^0.
|
|
167
|
-
"eslint-plugin-unused-imports": "
|
|
159
|
+
"eslint": "^9.25.1",
|
|
160
|
+
"eslint-config-prettier": "^10.1.2",
|
|
161
|
+
"eslint-plugin-cypress": "^4.3.0",
|
|
162
|
+
"eslint-plugin-import": "^2.31.0",
|
|
163
|
+
"eslint-plugin-jam3": "^0.2.3",
|
|
164
|
+
"eslint-plugin-json": "^4.0.1",
|
|
165
|
+
"eslint-plugin-prettier": "^5.2.6",
|
|
166
|
+
"eslint-plugin-promise": "^7.2.1",
|
|
167
|
+
"eslint-plugin-react": "^7.37.5",
|
|
168
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
169
|
+
"eslint-plugin-security": "^3.0.1",
|
|
170
|
+
"eslint-plugin-sonarjs": "^3.0.2",
|
|
171
|
+
"eslint-plugin-unused-imports": "^4.1.4",
|
|
168
172
|
"eslint-plugin-xss": "^0.1.12",
|
|
169
|
-
"formik": "2.
|
|
170
|
-
"framer-motion": "11.
|
|
173
|
+
"formik": "2.4.6",
|
|
174
|
+
"framer-motion": "11.11.11",
|
|
171
175
|
"glob": "^10.3.10",
|
|
176
|
+
"globals": "^16.0.0",
|
|
172
177
|
"husky": "7.0.4",
|
|
173
178
|
"i18next": "22.5.1",
|
|
174
179
|
"i18next-browser-languagedetector": "^7.1.0",
|
|
@@ -176,18 +181,18 @@
|
|
|
176
181
|
"jest": "27.5.1",
|
|
177
182
|
"js-logger": "1.6.1",
|
|
178
183
|
"linkify-react": "4.1.3",
|
|
179
|
-
"linkifyjs": "4.1.
|
|
184
|
+
"linkifyjs": "4.1.3",
|
|
180
185
|
"lint-staged": "12.4.1",
|
|
181
186
|
"mixpanel-browser": "^2.50.0",
|
|
182
187
|
"nock": "^13.3.2",
|
|
183
188
|
"platform": "1.3.6",
|
|
184
|
-
"postcss": "
|
|
189
|
+
"postcss": "8.4.49",
|
|
185
190
|
"postcss-import": "^15.0.0",
|
|
186
191
|
"postcss-loader": "^7.0.1",
|
|
187
192
|
"postcss-preset-env": "7.8.2",
|
|
188
|
-
"prettier": "
|
|
193
|
+
"prettier": "3",
|
|
189
194
|
"prettier-plugin-tailwindcss": "0.1.10",
|
|
190
|
-
"qs": "
|
|
195
|
+
"qs": "6.13.0",
|
|
191
196
|
"ramda": "0.29.1",
|
|
192
197
|
"react": "18.2.0",
|
|
193
198
|
"react-colorful": "5.6.1",
|
|
@@ -195,7 +200,7 @@
|
|
|
195
200
|
"react-drag-listview": "2.0.0",
|
|
196
201
|
"react-helmet": "^6.1.0",
|
|
197
202
|
"react-i18next": "12.3.1",
|
|
198
|
-
"react-resizable": "3.0.
|
|
203
|
+
"react-resizable": "3.0.5",
|
|
199
204
|
"react-router-dom": "5.3.3",
|
|
200
205
|
"react-toastify": "8.0.2",
|
|
201
206
|
"remark-parse": "^10.0.1",
|
|
@@ -204,7 +209,7 @@
|
|
|
204
209
|
"rollup-plugin-copy": "3.5.0",
|
|
205
210
|
"rollup-plugin-peer-deps-external": "2.2.4",
|
|
206
211
|
"rollup-plugin-styles": "4.0.0",
|
|
207
|
-
"sass": "
|
|
212
|
+
"sass": "1.62.0",
|
|
208
213
|
"sass-loader": "^13.0.2",
|
|
209
214
|
"tailwindcss": "^3.4.1",
|
|
210
215
|
"unified": "11.0.0",
|
|
@@ -215,7 +220,7 @@
|
|
|
215
220
|
"zustand": "4.3.2"
|
|
216
221
|
},
|
|
217
222
|
"peerDependencies": {
|
|
218
|
-
"@bigbinary/babel-preset-neeto": "
|
|
223
|
+
"@bigbinary/babel-preset-neeto": "1.0.8",
|
|
219
224
|
"@bigbinary/neeto-cist": "1.0.11",
|
|
220
225
|
"@bigbinary/neeto-commons-frontend": "4.4.6",
|
|
221
226
|
"@bigbinary/neeto-editor": "1.38.1",
|
|
@@ -224,21 +229,21 @@
|
|
|
224
229
|
"@bigbinary/neeto-molecules": "3.5.2",
|
|
225
230
|
"@bigbinary/neetoui": "8.2.13",
|
|
226
231
|
"@faker-js/faker": "8.2.0",
|
|
227
|
-
"@honeybadger-io/js": "
|
|
228
|
-
"@honeybadger-io/react": "
|
|
232
|
+
"@honeybadger-io/js": "6.10.1",
|
|
233
|
+
"@honeybadger-io/react": "6.1.25",
|
|
229
234
|
"@rails/actioncable": "7.2.100",
|
|
230
235
|
"@svgr/rollup": "8.1.0",
|
|
231
236
|
"@tailwindcss/container-queries": "^0.1.1",
|
|
232
|
-
"@tanstack/react-query": "5.
|
|
233
|
-
"@tanstack/react-query-devtools": "5.
|
|
237
|
+
"@tanstack/react-query": "5.59.20",
|
|
238
|
+
"@tanstack/react-query-devtools": "5.59.20",
|
|
234
239
|
"@tippyjs/react": "4.2.6",
|
|
235
240
|
"@vitejs/plugin-react": "^4.3.4",
|
|
236
|
-
"antd": "5.
|
|
237
|
-
"autoprefixer": "
|
|
241
|
+
"antd": "5.22.0",
|
|
242
|
+
"autoprefixer": "10.4.20",
|
|
238
243
|
"avvvatars-react": "0.4.2",
|
|
239
|
-
"axios": "1.
|
|
244
|
+
"axios": "1.8.2",
|
|
240
245
|
"cypress": "11.2.0",
|
|
241
|
-
"dayjs": "1.11.
|
|
246
|
+
"dayjs": "1.11.13",
|
|
242
247
|
"dompurify": "^2.4.0",
|
|
243
248
|
"dotenv-webpack": "^8.0.1",
|
|
244
249
|
"esbuild": "0.24.0",
|
|
@@ -246,14 +251,14 @@
|
|
|
246
251
|
"esbuild-plugins-node-modules-polyfill": "^1.6.8",
|
|
247
252
|
"esbuild-rails": "^1.0.7",
|
|
248
253
|
"esbuild-sass-plugin": "^3.3.1",
|
|
249
|
-
"formik": "2.
|
|
250
|
-
"framer-motion": "11.
|
|
254
|
+
"formik": "2.4.6",
|
|
255
|
+
"framer-motion": "11.11.11",
|
|
251
256
|
"husky": "7.0.4",
|
|
252
257
|
"i18next": "22.5.1",
|
|
253
258
|
"js-logger": "1.6.1",
|
|
254
259
|
"linkify-react": "4.1.3",
|
|
255
|
-
"linkifyjs": "4.1.
|
|
256
|
-
"qs": "
|
|
260
|
+
"linkifyjs": "4.1.3",
|
|
261
|
+
"qs": "6.13.0",
|
|
257
262
|
"ramda": "0.29.1",
|
|
258
263
|
"react": "18.2.0",
|
|
259
264
|
"react-colorful": "5.6.1",
|
|
@@ -261,10 +266,10 @@
|
|
|
261
266
|
"react-drag-listview": "2.0.0",
|
|
262
267
|
"react-helmet": "^6.1.0",
|
|
263
268
|
"react-i18next": "12.3.1",
|
|
264
|
-
"react-resizable": "3.0.
|
|
269
|
+
"react-resizable": "3.0.5",
|
|
265
270
|
"react-router-dom": "5.3.3",
|
|
266
271
|
"react-toastify": "8.0.2",
|
|
267
|
-
"sass": "
|
|
272
|
+
"sass": "1.62.0",
|
|
268
273
|
"shakapacker": "^6.5.5",
|
|
269
274
|
"tailwindcss": "^3.4.1",
|
|
270
275
|
"util": "^0.12.5",
|
package/react-utils.d.ts
CHANGED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
// Globals can be disabled with the string "off"
|
|
3
|
-
// "writable" to allow the variable to be overwritten or "readonly" to disallow overwriting.
|
|
4
|
-
globals: {
|
|
5
|
-
Atomics: "readonly",
|
|
6
|
-
SharedArrayBuffer: "readonly",
|
|
7
|
-
// Makes logger function available everywhere. Else eslint will complaint of undef-var.
|
|
8
|
-
logger: "readonly",
|
|
9
|
-
module: "writable",
|
|
10
|
-
// Makes props obtained from Rails backend available everywhere in this project.
|
|
11
|
-
globalProps: "readonly",
|
|
12
|
-
preval: "readonly",
|
|
13
|
-
},
|
|
14
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
rules: {
|
|
3
|
-
// not-auto-fixable: Prefer a default export if module exports a single name.
|
|
4
|
-
"import/prefer-default-export": "off",
|
|
5
|
-
// not-auto-fixable: Forbid a module from importing a module with a dependency path back to itself.
|
|
6
|
-
"import/no-cycle": ["warn", { maxDepth: 1, ignoreExternal: true }],
|
|
7
|
-
// not-auto-fixable: Prevent unnecessary path segments in import and require statements.
|
|
8
|
-
"import/no-useless-path-segments": ["error", { noUselessIndex: true }],
|
|
9
|
-
// not-auto-fixable: Report any invalid exports, i.e. re-export of the same name.
|
|
10
|
-
"import/export": "error",
|
|
11
|
-
// not-auto-fixable: Forbid the use of mutable exports with var or let.
|
|
12
|
-
"import/no-mutable-exports": "error",
|
|
13
|
-
// not-auto-fixable: Ensure all imports appear before other statements.
|
|
14
|
-
"import/first": "error",
|
|
15
|
-
// not-auto-fixable: Ensure all exports appear after other statements.
|
|
16
|
-
"import/exports-last": "error",
|
|
17
|
-
// auto-fixable: Enforce a newline after import statements.
|
|
18
|
-
"import/newline-after-import": ["error", { count: 1 }],
|
|
19
|
-
// auto-fixable: Remove file extensions for import statements.
|
|
20
|
-
"import/extensions": [
|
|
21
|
-
"error",
|
|
22
|
-
"never",
|
|
23
|
-
{
|
|
24
|
-
ignorePackages: true,
|
|
25
|
-
pattern: { json: "always", ico: "always", yml: "always" },
|
|
26
|
-
},
|
|
27
|
-
],
|
|
28
|
-
},
|
|
29
|
-
};
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
const { buildPathGroupsBasedOnWebpackAliases } = require("../helpers");
|
|
2
|
-
|
|
3
|
-
const pathGroups = buildPathGroupsBasedOnWebpackAliases({});
|
|
4
|
-
|
|
5
|
-
const pathGroupForKeepingReactImportsAtTop = {
|
|
6
|
-
pattern: "react+(-native|)",
|
|
7
|
-
group: "external",
|
|
8
|
-
position: "before",
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
/*
|
|
12
|
-
Example pathGroups structure. Adding this here
|
|
13
|
-
so that if anyone wants to add custom config,
|
|
14
|
-
they can make use of this:
|
|
15
|
-
[
|
|
16
|
-
{ pattern: 'apis/**', group: 'internal' },
|
|
17
|
-
{ pattern: 'common/**', group: 'internal' },
|
|
18
|
-
{ pattern: 'components/**', group: 'internal' },
|
|
19
|
-
{ pattern: 'constants/**', group: 'internal' },
|
|
20
|
-
{ pattern: 'contexts/**', group: 'internal' },
|
|
21
|
-
{ pattern: 'reducers/**', group: 'internal' },
|
|
22
|
-
{ pattern: 'Constants', group: 'internal' },
|
|
23
|
-
{ pattern: 'neetoui/**', group: 'external' },
|
|
24
|
-
{
|
|
25
|
-
pattern: 'react+(-native|)',
|
|
26
|
-
group: 'external',
|
|
27
|
-
position: 'before'
|
|
28
|
-
}
|
|
29
|
-
]
|
|
30
|
-
*/
|
|
31
|
-
pathGroups.push(pathGroupForKeepingReactImportsAtTop);
|
|
32
|
-
|
|
33
|
-
module.exports = {
|
|
34
|
-
rules: {
|
|
35
|
-
// auto-fixable: Enforce a convention in module import order - we enforce https://www.bigbinary.com/react-best-practices/sort-import-statements
|
|
36
|
-
"import/order": [
|
|
37
|
-
"error",
|
|
38
|
-
{
|
|
39
|
-
"newlines-between": "always",
|
|
40
|
-
alphabetize: { order: "asc", caseInsensitive: true },
|
|
41
|
-
warnOnUnassignedImports: true,
|
|
42
|
-
groups: [
|
|
43
|
-
"builtin",
|
|
44
|
-
"external",
|
|
45
|
-
"internal",
|
|
46
|
-
"index",
|
|
47
|
-
"sibling",
|
|
48
|
-
"parent",
|
|
49
|
-
"object",
|
|
50
|
-
"type",
|
|
51
|
-
],
|
|
52
|
-
/*
|
|
53
|
-
* Currently we check for existence of webpack alias
|
|
54
|
-
* config and then iterate over the aliases and create
|
|
55
|
-
* these pathGroups. Only caveat with this mechanism
|
|
56
|
-
* is that in VSCode eslint plugin won't dynamically
|
|
57
|
-
* read it. But eslint cli would!
|
|
58
|
-
*/
|
|
59
|
-
pathGroups,
|
|
60
|
-
// Ignore react imports so that they're always ordered to the top of the file.
|
|
61
|
-
pathGroupsExcludedImportTypes: ["react", "react-native"],
|
|
62
|
-
},
|
|
63
|
-
],
|
|
64
|
-
},
|
|
65
|
-
};
|
package/configs/eslint/index.js
DELETED
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
env: {
|
|
3
|
-
browser: true, // window object etc part of browser are made available globally.
|
|
4
|
-
es2020: true, // to include BigInt support
|
|
5
|
-
es6: true,
|
|
6
|
-
commonjs: true,
|
|
7
|
-
node: true,
|
|
8
|
-
},
|
|
9
|
-
/*
|
|
10
|
-
* The order of extending each plugin matters a LOT!!
|
|
11
|
-
* Thus don't change order of items in this array
|
|
12
|
-
* unless you're sure of it.
|
|
13
|
-
*/
|
|
14
|
-
extends: [
|
|
15
|
-
"plugin:@bigbinary/neeto/recommended",
|
|
16
|
-
"plugin:cypress/recommended",
|
|
17
|
-
"plugin:json/recommended",
|
|
18
|
-
"eslint:recommended",
|
|
19
|
-
"plugin:react/recommended",
|
|
20
|
-
"./node_modules/@bigbinary/neeto-commons-frontend/configs/eslint/globals",
|
|
21
|
-
"./node_modules/@bigbinary/neeto-commons-frontend/configs/eslint/imports/order",
|
|
22
|
-
"./node_modules/@bigbinary/neeto-commons-frontend/configs/eslint/overrides",
|
|
23
|
-
"./node_modules/@bigbinary/neeto-commons-frontend/configs/eslint/imports/enforced",
|
|
24
|
-
"./node_modules/@bigbinary/neeto-commons-frontend/configs/eslint/react",
|
|
25
|
-
"./node_modules/@bigbinary/neeto-commons-frontend/configs/eslint/promise",
|
|
26
|
-
"prettier",
|
|
27
|
-
],
|
|
28
|
-
settings: {
|
|
29
|
-
react: { version: "detect" },
|
|
30
|
-
// We need this for the import/extensions rule to work: https://github.com/import-js/eslint-plugin-import#importextensions
|
|
31
|
-
"import/resolver": {
|
|
32
|
-
node: {
|
|
33
|
-
extensions: [".js", ".jsx", ".ts", ".tsx", ".svg", ".json"],
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
parserOptions: {
|
|
38
|
-
ecmaFeatures: { jsx: true },
|
|
39
|
-
ecmaVersion: 2018,
|
|
40
|
-
sourceType: "module",
|
|
41
|
-
babelOptions: { presets: ["@babel/preset-react"] },
|
|
42
|
-
},
|
|
43
|
-
// babel-eslint is deprecated now. This is the latest package.
|
|
44
|
-
parser: "@babel/eslint-parser",
|
|
45
|
-
plugins: [
|
|
46
|
-
"react",
|
|
47
|
-
"prettier",
|
|
48
|
-
"import",
|
|
49
|
-
"react-hooks",
|
|
50
|
-
"promise",
|
|
51
|
-
"jam3",
|
|
52
|
-
"unused-imports",
|
|
53
|
-
"sonarjs",
|
|
54
|
-
"security",
|
|
55
|
-
"xss",
|
|
56
|
-
"@bigbinary/neeto",
|
|
57
|
-
],
|
|
58
|
-
rules: {
|
|
59
|
-
// auto-fixable: Respect all Prettier rules and apply it.
|
|
60
|
-
"prettier/prettier": "error",
|
|
61
|
-
// not-auto-fixable: No unused variables allowed.
|
|
62
|
-
"no-unused-vars": [
|
|
63
|
-
"error",
|
|
64
|
-
{
|
|
65
|
-
args: "all",
|
|
66
|
-
argsIgnorePattern: "^_",
|
|
67
|
-
destructuredArrayIgnorePattern: "^_",
|
|
68
|
-
caughtErrors: "all",
|
|
69
|
-
},
|
|
70
|
-
],
|
|
71
|
-
// not-auto-fixable: No undefined variables allowed.
|
|
72
|
-
"no-undef": "error",
|
|
73
|
-
// not-auto-fixable: Dont use console statements. Use logger which babel will remove during bundling.
|
|
74
|
-
"no-console": "error",
|
|
75
|
-
// not-auto-fixable: require `return` statements to either always or never specify values.
|
|
76
|
-
"consistent-return": "error",
|
|
77
|
-
// auto-fixable: disallows repeating variable name when declaring object properties.
|
|
78
|
-
"object-shorthand": "error",
|
|
79
|
-
// auto-fixable: sadly this doesn't support guard clauses yet.
|
|
80
|
-
"padding-line-between-statements": [
|
|
81
|
-
"error",
|
|
82
|
-
{ blankLine: "always", prev: "if", next: ["if", "return"] },
|
|
83
|
-
// The newline-before-return rule is deprecated in favor of the following:
|
|
84
|
-
{ blankLine: "always", prev: "*", next: "return" },
|
|
85
|
-
// Add newline between function declarations
|
|
86
|
-
{
|
|
87
|
-
blankLine: "always",
|
|
88
|
-
prev: [
|
|
89
|
-
"block",
|
|
90
|
-
"multiline-block-like",
|
|
91
|
-
"function",
|
|
92
|
-
"iife",
|
|
93
|
-
"multiline-const",
|
|
94
|
-
"multiline-expression",
|
|
95
|
-
],
|
|
96
|
-
next: ["function", "iife", "multiline-const", "multiline-expression"],
|
|
97
|
-
},
|
|
98
|
-
],
|
|
99
|
-
// auto-fixable: Single line statements needn't have any braces. But in all other cases enforce curly braces.
|
|
100
|
-
curly: ["error", "multi-line"],
|
|
101
|
-
// auto-fixable: Remove the else part, if the "if" or "else-if" chain has a return statement
|
|
102
|
-
"no-else-return": "error",
|
|
103
|
-
// not-auto-fixable: Prevent un-sanitized dangerouslySetInnerHTML.
|
|
104
|
-
"jam3/no-sanitizer-with-danger": [
|
|
105
|
-
2,
|
|
106
|
-
{ wrapperName: ["dompurify", "sanitizer", "sanitize"] },
|
|
107
|
-
],
|
|
108
|
-
// auto-fixable: Requires trailing commas when the last element or property is in a different line than the closing ] or }
|
|
109
|
-
"comma-dangle": [
|
|
110
|
-
"error",
|
|
111
|
-
{
|
|
112
|
-
arrays: "always-multiline",
|
|
113
|
-
objects: "always-multiline",
|
|
114
|
-
imports: "always-multiline",
|
|
115
|
-
exports: "always-multiline",
|
|
116
|
-
functions: "never",
|
|
117
|
-
},
|
|
118
|
-
],
|
|
119
|
-
// auto-fixable: If a variable is never reassigned, using the const declaration is better.
|
|
120
|
-
"prefer-const": "error",
|
|
121
|
-
// auto-fixable: It is considered good practice to use the type-safe equality operators === and !==.
|
|
122
|
-
eqeqeq: "error",
|
|
123
|
-
// not-auto-fixable: Rule flags optional chaining expressions in positions where short-circuiting to undefined causes throwing a TypeError afterward.
|
|
124
|
-
"no-unsafe-optional-chaining": "error",
|
|
125
|
-
// auto-fixable: Remove all unused imports.
|
|
126
|
-
"unused-imports/no-unused-imports": "error",
|
|
127
|
-
// auto-fixable-1-level-deep: Using nested ternary operators make the code unreadable. Use if/else or switch with if/else. If it's JSX then move it out into a function or a variable. It's fine to use nestedTernary in JSX when it makes code more readable.
|
|
128
|
-
"no-nested-ternary": "warn",
|
|
129
|
-
// auto-fixable: Enforces no braces where they can be omitted.
|
|
130
|
-
"arrow-body-style": ["error", "as-needed"],
|
|
131
|
-
// auto-fixable: Suggests using template literals instead of string concatenation.
|
|
132
|
-
"prefer-template": "error",
|
|
133
|
-
// auto-fixable: Disallows ternary operators when simpler alternatives exist.
|
|
134
|
-
"no-unneeded-ternary": ["error", { defaultAssignment: false }],
|
|
135
|
-
// not-auto-fixable: Enforces declaring default params last
|
|
136
|
-
"default-param-last": "error",
|
|
137
|
-
// not-auto-fixable: Remove redundant async-awaits
|
|
138
|
-
"no-return-await": "warn",
|
|
139
|
-
// not-auto-fixable: Disallow empty block statements
|
|
140
|
-
"no-empty": ["error", { allowEmptyCatch: true }],
|
|
141
|
-
// not-auto-fixable: Enforce return statements in callbacks of array methods.
|
|
142
|
-
"array-callback-return": ["error"],
|
|
143
|
-
// auto-fixable: Partially fixable. Unless there's a need to the this keyword, there's no advantage of using a plain function.
|
|
144
|
-
"prefer-arrow-callback": ["error", { allowUnboundThis: true }],
|
|
145
|
-
// not-auto-fixable: Convert multiple imports from same module into a single import.
|
|
146
|
-
"no-duplicate-imports": ["error", { includeExports: true }],
|
|
147
|
-
// auto-fixable: Partially fixable. In JavaScript, there are a lot of different ways to convert value types. Allow only readable coercions.
|
|
148
|
-
"no-implicit-coercion": ["error", { allow: ["!!"] }],
|
|
149
|
-
// auto-fixable: Require let or const instead of var.
|
|
150
|
-
"no-var": "error",
|
|
151
|
-
// auto-fixable: This rule conflicts with prettier rules. Thus we've NOT kept this rule in react file. This rule ensures we don't add blank lines in JSX.
|
|
152
|
-
"react/jsx-newline": ["error", { prevent: true }],
|
|
153
|
-
// not-auto-fixable: Disallow async functions which have no await expression
|
|
154
|
-
"require-await": "error",
|
|
155
|
-
// auto-fixable: This rule ensures immediate returns in functions where constants are declared and then directly returned.
|
|
156
|
-
"sonarjs/prefer-immediate-return": "error",
|
|
157
|
-
// not-auto-fixable: This rule enforces merging adjacent collapsible if statements.
|
|
158
|
-
"sonarjs/no-collapsible-if": "error",
|
|
159
|
-
// not-auto-fixable: This rule prevents identical conditions inside if-else statements.
|
|
160
|
-
"sonarjs/no-identical-conditions": "error",
|
|
161
|
-
// not-auto-fixable: This rule prevents using a function with no return as output, passing it to another function, or assigning its result to a variable.
|
|
162
|
-
"sonarjs/no-use-of-empty-return-value": "error",
|
|
163
|
-
// not-auto-fixable: This rule prevents using loops with at most one iteration.
|
|
164
|
-
"sonarjs/no-one-iteration-loop": "error",
|
|
165
|
-
// not-auto-fixable: This rule prevents using catch clause that only throws an error.
|
|
166
|
-
"sonarjs/no-useless-catch": "error",
|
|
167
|
-
// not-auto-fixable: This rule warns against "eval(variable)" which can allow an attacker to run arbitrary code inside your process.
|
|
168
|
-
"security/detect-eval-with-expression": "warn",
|
|
169
|
-
// not-auto-fixable: This rule ensures that you are calling escape function before location.href assignment.
|
|
170
|
-
"xss/no-location-href-assign": ["error", { escapeFunc: "sanitize" }],
|
|
171
|
-
},
|
|
172
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
// Currently we are using this section for excluding certain files from certain rules.
|
|
3
|
-
overrides: [
|
|
4
|
-
{
|
|
5
|
-
files: [
|
|
6
|
-
".eslintrc.js",
|
|
7
|
-
".prettierrc.js",
|
|
8
|
-
"app/assets/**/*",
|
|
9
|
-
"app/javascript/packs/**/*",
|
|
10
|
-
"*.json",
|
|
11
|
-
],
|
|
12
|
-
rules: {
|
|
13
|
-
"import/order": "off",
|
|
14
|
-
"react-hooks/rules-of-hooks": "off",
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
files: ["app/javascript/packs/**/*.{js,jsx}"],
|
|
19
|
-
rules: { "no-redeclare": "off" },
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
files: ["**/*.spec.js", "**/*.spec.jsx", "**/*.test.jsx"],
|
|
23
|
-
env: { jest: true },
|
|
24
|
-
},
|
|
25
|
-
],
|
|
26
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
rules: {
|
|
3
|
-
// not-auto-fixable: ensure people use async/await promising chaining rather than using "then-catch-finally" statements
|
|
4
|
-
"promise/prefer-await-to-then": "error",
|
|
5
|
-
// auto-fixable: avoid calling "new" on a Promise static method like reject, resolve etc
|
|
6
|
-
"promise/no-new-statics": "error",
|
|
7
|
-
},
|
|
8
|
-
};
|