@bigbinary/neeto-commons-frontend 4.8.4 → 4.8.8
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/babel.js +11 -0
- package/dist/{_commonjsHelpers-ae89b920.js → _commonjsHelpers-B85MJLTf.js} +1 -1
- package/dist/_commonjsHelpers-B85MJLTf.js.map +1 -0
- package/dist/cjs/{_commonjsHelpers-755157d3.js → _commonjsHelpers-CFO10eej.js} +1 -1
- package/dist/cjs/_commonjsHelpers-CFO10eej.js.map +1 -0
- package/dist/cjs/constants/index.js +0 -2
- package/dist/cjs/constants/index.js.map +1 -1
- package/dist/cjs/constants/regex.js +0 -2
- package/dist/cjs/constants/regex.js.map +1 -1
- package/dist/cjs/cypress-utils/.eslintrc.js +1 -1
- package/dist/cjs/cypress-utils/commands.js +4 -6
- package/dist/cjs/cypress-utils/commands.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/index.js +0 -2
- package/dist/cjs/cypress-utils/constants/index.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/routes.js +1 -3
- package/dist/cjs/cypress-utils/constants/routes.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/selectors/common.js +1 -3
- package/dist/cjs/cypress-utils/constants/selectors/common.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/selectors/editor.js +1 -3
- package/dist/cjs/cypress-utils/constants/selectors/editor.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/selectors/ipRestriction.js +1 -3
- package/dist/cjs/cypress-utils/constants/selectors/ipRestriction.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/selectors/login.js +1 -3
- package/dist/cjs/cypress-utils/constants/selectors/login.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/selectors/member.js +1 -3
- package/dist/cjs/cypress-utils/constants/selectors/member.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/selectors/navigation.js +1 -3
- package/dist/cjs/cypress-utils/constants/selectors/navigation.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/selectors/roles.js +0 -2
- package/dist/cjs/cypress-utils/constants/selectors/roles.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/selectors/signUp.js +1 -3
- package/dist/cjs/cypress-utils/constants/selectors/signUp.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/selectors/tags.js +1 -3
- package/dist/cjs/cypress-utils/constants/selectors/tags.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/texts/common.js +0 -2
- package/dist/cjs/cypress-utils/constants/texts/common.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/texts/member.js +0 -2
- package/dist/cjs/cypress-utils/constants/texts/member.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/texts/navigation.js +0 -2
- package/dist/cjs/cypress-utils/constants/texts/navigation.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/texts/roles.js +0 -2
- package/dist/cjs/cypress-utils/constants/texts/roles.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/texts/signUp.js +0 -2
- package/dist/cjs/cypress-utils/constants/texts/signUp.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/texts/tags.js +0 -2
- package/dist/cjs/cypress-utils/constants/texts/tags.js.map +1 -1
- package/dist/cjs/cypress-utils/fixtures/fake.js +0 -2
- package/dist/cjs/cypress-utils/fixtures/fake.js.map +1 -1
- package/dist/cjs/cypress-utils/index.js +4 -6
- package/dist/cjs/cypress-utils/index.js.map +1 -1
- package/dist/cjs/cypress-utils/jsconfig.js +1 -1
- package/dist/cjs/cypress-utils/utils/authentication.js +1 -3
- package/dist/cjs/cypress-utils/utils/authentication.js.map +1 -1
- package/dist/cjs/cypress-utils/utils/common.js +1 -3
- package/dist/cjs/cypress-utils/utils/common.js.map +1 -1
- package/dist/cjs/cypress-utils/utils/date.js +3 -9
- package/dist/cjs/cypress-utils/utils/date.js.map +1 -1
- package/dist/cjs/cypress-utils/utils/email.js +1 -3
- package/dist/cjs/cypress-utils/utils/email.js.map +1 -1
- package/dist/cjs/cypress-utils/utils/member.js +1 -3
- package/dist/cjs/cypress-utils/utils/member.js.map +1 -1
- package/dist/cjs/cypress-utils/utils/navigation.js +1 -3
- package/dist/cjs/cypress-utils/utils/navigation.js.map +1 -1
- package/dist/cjs/cypress-utils/utils/organization.js +1 -3
- package/dist/cjs/cypress-utils/utils/organization.js.map +1 -1
- package/dist/cjs/cypress-utils/utils/validation.js +1 -3
- package/dist/cjs/cypress-utils/utils/validation.js.map +1 -1
- package/dist/cjs/{defineProperty-ba7cd53d.js → defineProperty-997UgAIV.js} +1 -1
- package/dist/cjs/{defineProperty-ba7cd53d.js.map → defineProperty-997UgAIV.js.map} +1 -1
- package/dist/cjs/{index-25a068b1.js → index-H4FWVZW-.js} +2 -6
- package/dist/cjs/{index-25a068b1.js.map → index-H4FWVZW-.js.map} +1 -1
- package/dist/cjs/initializers/axios.js +2 -2
- package/dist/cjs/initializers/axiosInitializer/index.js +15 -21
- package/dist/cjs/initializers/axiosInitializer/index.js.map +1 -1
- package/dist/cjs/initializers/axiosInitializer/paramsSerializer.js +2 -7
- package/dist/cjs/initializers/axiosInitializer/paramsSerializer.js.map +1 -1
- package/dist/cjs/initializers/constants.js +0 -2
- package/dist/cjs/initializers/constants.js.map +1 -1
- package/dist/cjs/initializers/dayjs.js +19 -39
- package/dist/cjs/initializers/dayjs.js.map +1 -1
- package/dist/cjs/initializers/i18n.js +7 -12
- package/dist/cjs/initializers/i18n.js.map +1 -1
- package/dist/cjs/initializers/index.js +11 -11
- package/dist/cjs/initializers/index.js.map +1 -1
- package/dist/cjs/initializers/logger.js +3 -7
- package/dist/cjs/initializers/logger.js.map +1 -1
- package/dist/cjs/initializers/mixpanel.js +2 -2
- package/dist/cjs/initializers/reactDevTools.js +1 -1
- package/dist/cjs/initializers/utils/customFormatters.js +1 -7
- package/dist/cjs/initializers/utils/customFormatters.js.map +1 -1
- package/dist/cjs/initializers/utils/customPostProcessors.js +0 -2
- package/dist/cjs/initializers/utils/customPostProcessors.js.map +1 -1
- package/dist/cjs/initializers/utils/utils.js +4 -10
- package/dist/cjs/initializers/utils/utils.js.map +1 -1
- package/dist/cjs/{mixpanel.cjs-e97a1ff5.js → mixpanel.cjs-DyVaCR4W.js} +2 -2
- package/dist/cjs/{mixpanel.cjs-e97a1ff5.js.map → mixpanel.cjs-DyVaCR4W.js.map} +1 -1
- package/dist/cjs/{objectWithoutProperties-60b52fdb.js → objectWithoutProperties-DKElrbI9.js} +1 -1
- package/dist/cjs/{objectWithoutProperties-60b52fdb.js.map → objectWithoutProperties-DKElrbI9.js.map} +1 -1
- package/dist/cjs/react-utils/AppContainer/AppContainer.js +3 -8
- package/dist/cjs/react-utils/AppContainer/AppContainer.js.map +1 -1
- package/dist/cjs/react-utils/AppContainer/index.js +1 -1
- package/dist/cjs/react-utils/BrowserPushNotifications/devices.js +5 -6
- package/dist/cjs/react-utils/BrowserPushNotifications/devices.js.map +1 -1
- package/dist/cjs/react-utils/BrowserPushNotifications/index.js +2 -4
- package/dist/cjs/react-utils/BrowserPushNotifications/index.js.map +1 -1
- package/dist/cjs/react-utils/BrowserPushNotifications/pushHelper.js +2 -4
- package/dist/cjs/react-utils/BrowserPushNotifications/pushHelper.js.map +1 -1
- package/dist/cjs/react-utils/BrowserPushNotifications/registerServiceWorker.js +2 -4
- package/dist/cjs/react-utils/BrowserPushNotifications/registerServiceWorker.js.map +1 -1
- package/dist/cjs/react-utils/HoneybadgerErrorBoundary/FallbackComponent.js +5 -10
- package/dist/cjs/react-utils/HoneybadgerErrorBoundary/FallbackComponent.js.map +1 -1
- package/dist/cjs/react-utils/HoneybadgerErrorBoundary/HoneybadgerErrorBoundary.js +1 -1
- package/dist/cjs/react-utils/HoneybadgerErrorBoundary/constants.js +0 -2
- package/dist/cjs/react-utils/HoneybadgerErrorBoundary/constants.js.map +1 -1
- package/dist/cjs/react-utils/HoneybadgerErrorBoundary/index.js +1 -1
- package/dist/cjs/react-utils/HoneybadgerErrorBoundary/utils.js +0 -2
- package/dist/cjs/react-utils/HoneybadgerErrorBoundary/utils.js.map +1 -1
- package/dist/cjs/react-utils/PageTitle/PageTitle.js +1 -5
- package/dist/cjs/react-utils/PageTitle/PageTitle.js.map +1 -1
- package/dist/cjs/react-utils/PrivateRoute/PrivateRoute.js +4 -8
- package/dist/cjs/react-utils/PrivateRoute/PrivateRoute.js.map +1 -1
- package/dist/cjs/react-utils/PrivateRoute/index.js +2 -2
- package/dist/cjs/react-utils/QueryClientProvider/index.js +1 -1
- package/dist/cjs/react-utils/constants/constants.js +0 -2
- package/dist/cjs/react-utils/constants/constants.js.map +1 -1
- package/dist/cjs/react-utils/constants/index.js +0 -2
- package/dist/cjs/react-utils/constants/index.js.map +1 -1
- package/dist/cjs/react-utils/constants/query.js +0 -2
- package/dist/cjs/react-utils/constants/query.js.map +1 -1
- package/dist/cjs/react-utils/index.js +11 -13
- package/dist/cjs/react-utils/index.js.map +1 -1
- package/dist/cjs/react-utils/metaClick/index.js +0 -2
- package/dist/cjs/react-utils/metaClick/index.js.map +1 -1
- package/dist/cjs/react-utils/metaClick/metaClick.js +0 -2
- package/dist/cjs/react-utils/metaClick/metaClick.js.map +1 -1
- package/dist/cjs/react-utils/useBreakpoints/index.js +1 -1
- package/dist/cjs/react-utils/useBreakpoints/utils.js +1 -3
- 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/useDisplayErrorPage/index.js +1 -1
- package/dist/cjs/react-utils/useDisplayErrorPage/useDisplayErrorPage.js +1 -1
- package/dist/cjs/react-utils/useFetchNeetoApps/apis/neeto_apps.js +1 -5
- package/dist/cjs/react-utils/useFetchNeetoApps/apis/neeto_apps.js.map +1 -1
- package/dist/cjs/react-utils/useFetchNeetoApps/index.js +6 -6
- package/dist/cjs/react-utils/useFetchNeetoApps/useFetchNeetoApps.js +6 -6
- 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/useIsElementVisibleInDom.js +2 -2
- package/dist/cjs/react-utils/useLocalStorage/index.js +8 -8
- package/dist/cjs/react-utils/useLocalStorage/useLocalStorage.js +8 -8
- package/dist/cjs/react-utils/useMutationWithInvalidation/index.js +2 -2
- package/dist/cjs/react-utils/useMutationWithInvalidation/useMutationWithInvalidation.js +2 -2
- package/dist/cjs/react-utils/usePersistedQuery/index.js +6 -6
- package/dist/cjs/react-utils/usePersistedQuery/usePersistedQuery.js +6 -6
- package/dist/cjs/react-utils/useQueryParams/index.js +6 -6
- package/dist/cjs/react-utils/useQueryParams/useQueryParams.js +6 -6
- package/dist/cjs/react-utils/useRegisterNavigationCheckpoint/index.js +7 -7
- package/dist/cjs/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js +7 -7
- package/dist/cjs/react-utils/useRestoreScrollPosition/index.js +1 -1
- package/dist/cjs/react-utils/useRestoreScrollPosition/useRestoreScrollPosition.js +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/withTitle/index.js +1 -1
- package/dist/cjs/react-utils/withTitle/withTitle.js +1 -1
- package/dist/cjs/{slicedToArray-c9e22c6a.js → slicedToArray-xtNEn5LJ.js} +2 -2
- package/dist/cjs/{slicedToArray-c9e22c6a.js.map → slicedToArray-xtNEn5LJ.js.map} +1 -1
- package/dist/cjs/{toConsumableArray-7afb7984.js → toConsumableArray-Da_S-3Fb.js} +2 -2
- package/dist/cjs/{toConsumableArray-7afb7984.js.map → toConsumableArray-Da_S-3Fb.js.map} +1 -1
- package/dist/cjs/{typeof-a861d137.js → typeof-CKZ7gZmW.js} +1 -1
- package/dist/cjs/{typeof-a861d137.js.map → typeof-CKZ7gZmW.js.map} +1 -1
- package/dist/cjs/{unsupportedIterableToArray-294d47a8.js → unsupportedIterableToArray-CP9uaN0w.js} +1 -1
- package/dist/cjs/{unsupportedIterableToArray-294d47a8.js.map → unsupportedIterableToArray-CP9uaN0w.js.map} +1 -1
- package/dist/cjs/utils/axios.js +1 -7
- package/dist/cjs/utils/axios.js.map +1 -1
- package/dist/cjs/utils/buildNestedAttributesPayload.js +3 -5
- package/dist/cjs/utils/buildNestedAttributesPayload.js.map +1 -1
- package/dist/cjs/utils/captureAnalyticsEvent.js +2 -4
- package/dist/cjs/utils/captureAnalyticsEvent.js.map +1 -1
- package/dist/cjs/utils/captureAnalyticsPageView.js +3 -5
- package/dist/cjs/utils/captureAnalyticsPageView.js.map +1 -1
- package/dist/cjs/utils/createSubscription.js +6 -8
- package/dist/cjs/utils/createSubscription.js.map +1 -1
- package/dist/cjs/utils/currencyFormat.js +2 -8
- package/dist/cjs/utils/currencyFormat.js.map +1 -1
- package/dist/cjs/utils/datetime.js +3 -5
- package/dist/cjs/utils/datetime.js.map +1 -1
- package/dist/cjs/utils/dayjs.js +78 -15
- package/dist/cjs/utils/dayjs.js.map +1 -1
- package/dist/cjs/utils/general.js +13 -20
- package/dist/cjs/utils/general.js.map +1 -1
- package/dist/cjs/utils/index.js +9 -11
- package/dist/cjs/utils/index.js.map +1 -1
- package/dist/cjs/utils/permissions.js +0 -2
- package/dist/cjs/utils/permissions.js.map +1 -1
- package/dist/cjs/utils/timezonePlugin.js +177 -0
- package/dist/cjs/utils/timezonePlugin.js.map +1 -0
- package/dist/cjs/utils/validators/index.js +0 -2
- package/dist/cjs/utils/validators/index.js.map +1 -1
- package/dist/cjs/utils/validators/slug.js +3 -6
- package/dist/cjs/utils/validators/slug.js.map +1 -1
- package/dist/cypress-utils/.eslintrc.js +1 -1
- package/dist/cypress-utils/commands.js +4 -4
- package/dist/cypress-utils/constants/routes.js +1 -1
- package/dist/cypress-utils/constants/selectors/common.js +1 -1
- package/dist/cypress-utils/constants/selectors/editor.js +1 -1
- package/dist/cypress-utils/constants/selectors/ipRestriction.js +1 -1
- package/dist/cypress-utils/constants/selectors/login.js +1 -1
- package/dist/cypress-utils/constants/selectors/member.js +1 -1
- package/dist/cypress-utils/constants/selectors/navigation.js +1 -1
- package/dist/cypress-utils/constants/selectors/signUp.js +1 -1
- package/dist/cypress-utils/constants/selectors/tags.js +1 -1
- package/dist/cypress-utils/index.js +4 -4
- package/dist/cypress-utils/utils/authentication.js +1 -1
- package/dist/cypress-utils/utils/common.js +1 -1
- package/dist/cypress-utils/utils/email.js +1 -1
- package/dist/cypress-utils/utils/member.js +1 -1
- package/dist/cypress-utils/utils/navigation.js +1 -1
- package/dist/cypress-utils/utils/organization.js +1 -1
- package/dist/cypress-utils/utils/validation.js +1 -1
- package/dist/{defineProperty-18999f8e.js → defineProperty-CEd-kZQW.js} +1 -1
- package/dist/{defineProperty-18999f8e.js.map → defineProperty-CEd-kZQW.js.map} +1 -1
- package/dist/{index-fa7de82b.js → index-CRoDfiJc.js} +2 -6
- package/dist/{index-fa7de82b.js.map → index-CRoDfiJc.js.map} +1 -1
- package/dist/initializers/axios.js +6 -3
- package/dist/initializers/axios.js.map +1 -1
- package/dist/initializers/axiosInitializer/index.js +2 -2
- package/dist/initializers/dayjs.js +1 -1
- package/dist/initializers/i18n.js +5 -6
- package/dist/initializers/i18n.js.map +1 -1
- package/dist/initializers/index.js +7 -7
- package/dist/initializers/mixpanel.js +2 -2
- package/dist/initializers/reactDevTools.js +1 -1
- package/dist/initializers/utils/utils.js +3 -3
- package/dist/{mixpanel.cjs-55fbae33.js → mixpanel.cjs-DTVxnNUt.js} +2 -2
- package/dist/{mixpanel.cjs-55fbae33.js.map → mixpanel.cjs-DTVxnNUt.js.map} +1 -1
- package/dist/{objectWithoutProperties-00c72f1d.js → objectWithoutProperties-B90Wg9LD.js} +1 -1
- package/dist/{objectWithoutProperties-00c72f1d.js.map → objectWithoutProperties-B90Wg9LD.js.map} +1 -1
- package/dist/react-utils/AppContainer/AppContainer.js +1 -1
- package/dist/react-utils/AppContainer/AppContainer.js.map +1 -1
- package/dist/react-utils/AppContainer/index.js +1 -1
- package/dist/react-utils/BrowserPushNotifications/devices.js +3 -0
- package/dist/react-utils/BrowserPushNotifications/devices.js.map +1 -1
- package/dist/react-utils/BrowserPushNotifications/index.js +2 -2
- package/dist/react-utils/BrowserPushNotifications/pushHelper.js +2 -2
- package/dist/react-utils/BrowserPushNotifications/registerServiceWorker.js +2 -2
- package/dist/react-utils/HoneybadgerErrorBoundary/FallbackComponent.js +1 -1
- package/dist/react-utils/HoneybadgerErrorBoundary/HoneybadgerErrorBoundary.js +1 -1
- package/dist/react-utils/HoneybadgerErrorBoundary/index.js +1 -1
- package/dist/react-utils/PrivateRoute/PrivateRoute.js +2 -2
- package/dist/react-utils/PrivateRoute/index.js +2 -2
- package/dist/react-utils/index.js +8 -8
- package/dist/react-utils/useBreakpoints/index.js +1 -1
- package/dist/react-utils/useBreakpoints/utils.js +1 -1
- package/dist/react-utils/useDebounce/index.js +2 -2
- package/dist/react-utils/useDebounce/useDebounce.js +2 -2
- package/dist/react-utils/useFetchNeetoApps/index.js +6 -6
- package/dist/react-utils/useFetchNeetoApps/useFetchNeetoApps.js +6 -6
- package/dist/react-utils/useIsElementVisibleInDom/index.js +2 -2
- package/dist/react-utils/useIsElementVisibleInDom/useForceUpdate.js +2 -2
- package/dist/react-utils/useIsElementVisibleInDom/useIsElementVisibleInDom.js +2 -2
- package/dist/react-utils/useLocalStorage/index.js +8 -8
- package/dist/react-utils/useLocalStorage/useLocalStorage.js +8 -8
- package/dist/react-utils/useMutationWithInvalidation/index.js +2 -2
- package/dist/react-utils/useMutationWithInvalidation/useMutationWithInvalidation.js +2 -2
- package/dist/react-utils/usePersistedQuery/index.js +6 -6
- package/dist/react-utils/usePersistedQuery/usePersistedQuery.js +6 -6
- package/dist/react-utils/useQueryParams/index.js +6 -6
- package/dist/react-utils/useQueryParams/useQueryParams.js +6 -6
- package/dist/react-utils/useRegisterNavigationCheckpoint/index.js +6 -6
- package/dist/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js +6 -6
- package/dist/react-utils/useStateWithDependency/index.js +2 -2
- package/dist/react-utils/useStateWithDependency/useStateWithDependency.js +2 -2
- package/dist/react-utils/withTitle/index.js +1 -1
- package/dist/react-utils/withTitle/withTitle.js +1 -1
- package/dist/{slicedToArray-5531a6cb.js → slicedToArray-B_J-CC8-.js} +2 -2
- package/dist/{slicedToArray-5531a6cb.js.map → slicedToArray-B_J-CC8-.js.map} +1 -1
- package/dist/{toConsumableArray-7f764fb5.js → toConsumableArray-CQcqnqnw.js} +2 -2
- package/dist/{toConsumableArray-7f764fb5.js.map → toConsumableArray-CQcqnqnw.js.map} +1 -1
- package/dist/{typeof-92b42de1.js → typeof-C6-BY_SI.js} +1 -1
- package/dist/{typeof-92b42de1.js.map → typeof-C6-BY_SI.js.map} +1 -1
- package/dist/{unsupportedIterableToArray-577176bf.js → unsupportedIterableToArray-wRn9bJ2J.js} +1 -1
- package/dist/{unsupportedIterableToArray-577176bf.js.map → unsupportedIterableToArray-wRn9bJ2J.js.map} +1 -1
- package/dist/utils/buildNestedAttributesPayload.js +3 -3
- package/dist/utils/captureAnalyticsEvent.js +2 -2
- package/dist/utils/captureAnalyticsPageView.js +3 -3
- package/dist/utils/createSubscription.js +6 -6
- package/dist/utils/currencyFormat.js +1 -1
- package/dist/utils/datetime.js +3 -3
- package/dist/utils/dayjs.js +77 -10
- package/dist/utils/dayjs.js.map +1 -1
- package/dist/utils/general.js +6 -6
- package/dist/utils/index.js +9 -9
- package/dist/utils/timezonePlugin.js +175 -0
- package/dist/utils/timezonePlugin.js.map +1 -0
- package/package.json +3 -3
- package/dist/_commonjsHelpers-ae89b920.js.map +0 -1
- package/dist/cjs/_commonjsHelpers-755157d3.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slicedToArray-
|
|
1
|
+
{"version":3,"file":"slicedToArray-B_J-CC8-.js","sources":["../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js","../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js","../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js","../node_modules/@babel/runtime/helpers/esm/slicedToArray.js"],"sourcesContent":["export default function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}","export default function _iterableToArrayLimit(arr, i) {\n var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"];\n\n if (_i == null) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n\n var _s, _e;\n\n try {\n for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}","export default function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}","import arrayWithHoles from \"./arrayWithHoles.js\";\nimport iterableToArrayLimit from \"./iterableToArrayLimit.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableRest from \"./nonIterableRest.js\";\nexport default function _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();\n}"],"names":["arrayWithHoles","iterableToArrayLimit","unsupportedIterableToArray","nonIterableRest"],"mappings":";;AAAe,SAAS,eAAe,CAAC,GAAG,EAAE;AAC7C,EAAE,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,OAAO,GAAG,CAAC;AACrC;;ACFe,SAAS,qBAAqB,CAAC,GAAG,EAAE,CAAC,EAAE;AACtD,EAAE,IAAI,EAAE,GAAG,GAAG,IAAI,IAAI,GAAG,IAAI,GAAG,OAAO,MAAM,KAAK,WAAW,IAAI,G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,qBAAoB,CAAC,GAAG,EAAE,CAAC,CAAC,IAAIC,2BAA0B,CAAC,GAAG,EAAE,CAAC,CAAC,IAAIC,gBAAe,EAAE,CAAC;AACxH;;;;","x_google_ignoreList":[0,1,2,3]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as _arrayLikeToArray, _ as _unsupportedIterableToArray } from './unsupportedIterableToArray-
|
|
1
|
+
import { a as _arrayLikeToArray, _ as _unsupportedIterableToArray } from './unsupportedIterableToArray-wRn9bJ2J.js';
|
|
2
2
|
|
|
3
3
|
function _arrayWithoutHoles(arr) {
|
|
4
4
|
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
@@ -17,4 +17,4 @@ function _toConsumableArray(arr) {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export { _toConsumableArray as _ };
|
|
20
|
-
//# sourceMappingURL=toConsumableArray-
|
|
20
|
+
//# sourceMappingURL=toConsumableArray-CQcqnqnw.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toConsumableArray-
|
|
1
|
+
{"version":3,"file":"toConsumableArray-CQcqnqnw.js","sources":["../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js","../node_modules/@babel/runtime/helpers/esm/iterableToArray.js","../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js","../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"],"sourcesContent":["import arrayLikeToArray from \"./arrayLikeToArray.js\";\nexport default function _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return arrayLikeToArray(arr);\n}","export default function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}","export default function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}","import arrayWithoutHoles from \"./arrayWithoutHoles.js\";\nimport iterableToArray from \"./iterableToArray.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableSpread from \"./nonIterableSpread.js\";\nexport default function _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();\n}"],"names":["arrayLikeToArray","arrayWithoutHoles","iterableToArray","unsupportedIterableToArray","nonIterableSpread"],"mappings":";;AACe,SAAS,kBAAkB,CAAC,GAAG,EAAE;AAChD,EAAE,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,OAAOA,iBAAgB,CAAC,GAAG,CAAC,CAAC;AACvD;;ACHe,SAAS,gBAAgB,CAAC,IAAI,EAAE;AAC/C,EAAE,IAAI,OAAO,MAAM,KAAK,WAAW,IAAI,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,IAAI,IAAI,IAAI,CAAC,YAAY,CAAC,IAAI,IAAI,EAAE,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC5H;;ACFe,SAAS,kBAAkB,GAAG;AAC7C,EAAE,MAAM,IAAI,SAAS,CAAC,sIAAsI,CAAC,CAAC;AAC9J;;ACEe,SAAS,kBAAkB,CAAC,GAAG,EAAE;AAChD,EAAE,OAAOC,kBAAiB,CAAC,GAAG,CAAC,IAAIC,gBAAe,CAAC,GAAG,CAAC,IAAIC,2BAA0B,CAAC,GAAG,CAAC,IAAIC,kBAAiB,EAAE,CAAC;AAClH;;;;","x_google_ignoreList":[0,1,2,3]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeof-
|
|
1
|
+
{"version":3,"file":"typeof-C6-BY_SI.js","sources":["../node_modules/@babel/runtime/helpers/esm/typeof.js"],"sourcesContent":["export default function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}"],"names":[],"mappings":"AAAe,SAAS,OAAO,CAAC,GAAG,EAAE;AACrC,EAAE,yBAAyB,CAAC;AAC5B;AACA,EAAE,OAAO,OAAO,GAAG,UAAU,IAAI,OAAO,MAAM,IAAI,QAAQ,IAAI,OAAO,MAAM,CAAC,QAAQ,GAAG,UAAU,GAAG,EAAE;AACtG,IAAI,OAAO,OAAO,GAAG,CAAC;AACtB,GAAG,GAAG,UAAU,GAAG,EAAE;AACrB,IAAI,OAAO,GAAG,IAAI,UAAU,IAAI,OAAO,MAAM,IAAI,GAAG,CAAC,WAAW,KAAK,MAAM,IAAI,GAAG,KAAK,MAAM,CAAC,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,CAAC;AAChI,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;AAClB;;;;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unsupportedIterableToArray-
|
|
1
|
+
{"version":3,"file":"unsupportedIterableToArray-wRn9bJ2J.js","sources":["../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js","../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js"],"sourcesContent":["export default function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nexport default function _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}"],"names":["array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 as _toConsumableArray } from '../toConsumableArray-
|
|
2
|
-
import { _ as _defineProperty } from '../defineProperty-
|
|
1
|
+
import { _ as _toConsumableArray } from '../toConsumableArray-CQcqnqnw.js';
|
|
2
|
+
import { _ as _defineProperty } from '../defineProperty-CEd-kZQW.js';
|
|
3
3
|
import { isNotPresent, findBy } from '@bigbinary/neeto-cist';
|
|
4
4
|
import { omit } from 'ramda';
|
|
5
|
-
import '../unsupportedIterableToArray-
|
|
5
|
+
import '../unsupportedIterableToArray-wRn9bJ2J.js';
|
|
6
6
|
|
|
7
7
|
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; }
|
|
8
8
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { m as mixpanel } from '../mixpanel.cjs-
|
|
2
|
-
import '../_commonjsHelpers-
|
|
1
|
+
import { m as mixpanel } from '../mixpanel.cjs-DTVxnNUt.js';
|
|
2
|
+
import '../_commonjsHelpers-B85MJLTf.js';
|
|
3
3
|
|
|
4
4
|
var captureAnalyticsEvent = function captureAnalyticsEvent(name) {
|
|
5
5
|
var properties = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as _defineProperty } from '../defineProperty-
|
|
2
|
-
import { m as mixpanel } from '../mixpanel.cjs-
|
|
3
|
-
import '../_commonjsHelpers-
|
|
1
|
+
import { _ as _defineProperty } from '../defineProperty-CEd-kZQW.js';
|
|
2
|
+
import { m as mixpanel } from '../mixpanel.cjs-DTVxnNUt.js';
|
|
3
|
+
import '../_commonjsHelpers-B85MJLTf.js';
|
|
4
4
|
|
|
5
5
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6
6
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { createConsumer } from '@rails/actioncable';
|
|
2
2
|
import { buildUrl } from './general.js';
|
|
3
|
-
import '../objectWithoutProperties-
|
|
4
|
-
import '../slicedToArray-
|
|
5
|
-
import '../unsupportedIterableToArray-
|
|
6
|
-
import '../index-
|
|
7
|
-
import '../_commonjsHelpers-
|
|
8
|
-
import '../defineProperty-
|
|
3
|
+
import '../objectWithoutProperties-B90Wg9LD.js';
|
|
4
|
+
import '../slicedToArray-B_J-CC8-.js';
|
|
5
|
+
import '../unsupportedIterableToArray-wRn9bJ2J.js';
|
|
6
|
+
import '../index-CRoDfiJc.js';
|
|
7
|
+
import '../_commonjsHelpers-B85MJLTf.js';
|
|
8
|
+
import '../defineProperty-CEd-kZQW.js';
|
|
9
9
|
import 'i18next';
|
|
10
10
|
import '@bigbinary/neeto-cist';
|
|
11
11
|
import '@bigbinary/neetoui/Toastr';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _defineProperty } from '../defineProperty-
|
|
1
|
+
import { _ as _defineProperty } from '../defineProperty-CEd-kZQW.js';
|
|
2
2
|
import pureDayjs from 'dayjs';
|
|
3
3
|
|
|
4
4
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
package/dist/utils/datetime.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import dayjs from './dayjs.js';
|
|
2
|
-
import '../defineProperty-
|
|
3
|
-
import '../toConsumableArray-
|
|
4
|
-
import '../unsupportedIterableToArray-
|
|
2
|
+
import '../defineProperty-CEd-kZQW.js';
|
|
3
|
+
import '../toConsumableArray-CQcqnqnw.js';
|
|
4
|
+
import '../unsupportedIterableToArray-wRn9bJ2J.js';
|
|
5
5
|
import 'dayjs';
|
|
6
6
|
|
|
7
7
|
/* eslint-disable @bigbinary/neeto/use-standard-date-time-formats */
|
package/dist/utils/dayjs.js
CHANGED
|
@@ -1,23 +1,85 @@
|
|
|
1
|
-
import { _ as _defineProperty } from '../defineProperty-
|
|
2
|
-
import { _ as _toConsumableArray } from '../toConsumableArray-
|
|
1
|
+
import { _ as _defineProperty } from '../defineProperty-CEd-kZQW.js';
|
|
2
|
+
import { _ as _toConsumableArray } from '../toConsumableArray-CQcqnqnw.js';
|
|
3
3
|
import pureDayjs from 'dayjs';
|
|
4
|
-
import '../unsupportedIterableToArray-
|
|
4
|
+
import '../unsupportedIterableToArray-wRn9bJ2J.js';
|
|
5
|
+
|
|
6
|
+
function _classCallCheck(instance, Constructor) {
|
|
7
|
+
if (!(instance instanceof Constructor)) {
|
|
8
|
+
throw new TypeError("Cannot call a class as a function");
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
function _defineProperties(target, props) {
|
|
13
|
+
for (var i = 0; i < props.length; i++) {
|
|
14
|
+
var descriptor = props[i];
|
|
15
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
16
|
+
descriptor.configurable = true;
|
|
17
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
18
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
23
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
24
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
25
|
+
writable: false
|
|
26
|
+
});
|
|
27
|
+
return Constructor;
|
|
28
|
+
}
|
|
5
29
|
|
|
6
30
|
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; }
|
|
7
31
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
32
|
+
var LRUCache = /*#__PURE__*/function () {
|
|
33
|
+
function LRUCache(limit) {
|
|
34
|
+
_classCallCheck(this, LRUCache);
|
|
35
|
+
this.limit = limit;
|
|
36
|
+
this.cache = new Map();
|
|
37
|
+
}
|
|
38
|
+
return _createClass(LRUCache, [{
|
|
39
|
+
key: "get",
|
|
40
|
+
value: function get(key) {
|
|
41
|
+
var value = this.cache.get(key);
|
|
42
|
+
this.cache["delete"](key);
|
|
43
|
+
this.cache.set(key, value);
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
}, {
|
|
47
|
+
key: "set",
|
|
48
|
+
value: function set(key, value) {
|
|
49
|
+
if (this.cache.size >= this.limit) {
|
|
50
|
+
var oldestKey = this.cache.keys().next().value;
|
|
51
|
+
this.cache["delete"](oldestKey);
|
|
52
|
+
}
|
|
53
|
+
this.cache.set(key, value);
|
|
54
|
+
}
|
|
55
|
+
}, {
|
|
56
|
+
key: "has",
|
|
57
|
+
value: function has(key) {
|
|
58
|
+
return this.cache.has(key);
|
|
59
|
+
}
|
|
60
|
+
}]);
|
|
61
|
+
}();
|
|
8
62
|
var hasTimezone = function hasTimezone(dateString) {
|
|
9
|
-
var timezoneRegex = /Z|[+-]\d{2}:\d{2}$|GMT([+-]\d{4})?$/;
|
|
63
|
+
var timezoneRegex = /Z|[+-]\d{2}:\d{2}$|[+-]\d{4}$|GMT([+-]\d{4})?$/;
|
|
10
64
|
return timezoneRegex.test(dateString);
|
|
11
65
|
};
|
|
66
|
+
var cache = new LRUCache(1000);
|
|
12
67
|
var dayjs = function dayjs() {
|
|
13
68
|
var _args$;
|
|
14
69
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
15
70
|
args[_key] = arguments[_key];
|
|
16
71
|
}
|
|
17
|
-
|
|
18
|
-
|
|
72
|
+
var cacheKey = JSON.stringify(args);
|
|
73
|
+
if (cache.has(cacheKey) && args[0] !== undefined) return cache.get(cacheKey);
|
|
74
|
+
var userTimezone = pureDayjs.tz().$x.$timezone;
|
|
75
|
+
var browserTimezone = pureDayjs.tz.guess();
|
|
76
|
+
var timezone = userTimezone || browserTimezone;
|
|
77
|
+
if (userTimezone === browserTimezone || userTimezone === undefined) {
|
|
78
|
+
var _result = pureDayjs.apply(void 0, args);
|
|
79
|
+
if (args[0] !== undefined) cache.set(cacheKey, _result);
|
|
80
|
+
return _result;
|
|
19
81
|
}
|
|
20
|
-
if (args.length > 0 && typeof args[0] === "string") {
|
|
82
|
+
if (args.length > 0 && (typeof args[0] === "string" || args[0] === null)) {
|
|
21
83
|
var pureDayjsArgs = args.slice(0, Math.min(args.length, 2));
|
|
22
84
|
if (hasTimezone(args[0])) {
|
|
23
85
|
args[0] = pureDayjs.apply(void 0, _toConsumableArray(pureDayjsArgs));
|
|
@@ -26,9 +88,14 @@ var dayjs = function dayjs() {
|
|
|
26
88
|
args[1] = "YYYY-MM-DD HH:mm:ss";
|
|
27
89
|
}
|
|
28
90
|
}
|
|
29
|
-
if (((_args$ = args[0]) === null || _args$ === void 0 ? void 0 : _args$.toString()) === "Invalid Date")
|
|
30
|
-
|
|
31
|
-
|
|
91
|
+
if (((_args$ = args[0]) === null || _args$ === void 0 ? void 0 : _args$.toString()) === "Invalid Date") {
|
|
92
|
+
var _result2 = pureDayjs.apply(void 0, args);
|
|
93
|
+
if (args[0] !== undefined) cache.set(cacheKey, _result2);
|
|
94
|
+
return _result2;
|
|
95
|
+
}
|
|
96
|
+
var result = args.length === 2 ? pureDayjs.tz.apply(pureDayjs, args.concat([timezone])) : pureDayjs.tz.apply(pureDayjs, args);
|
|
97
|
+
if (args[0] !== undefined) cache.set(cacheKey, result);
|
|
98
|
+
return result;
|
|
32
99
|
};
|
|
33
100
|
Object.assign(dayjs, _objectSpread({}, pureDayjs));
|
|
34
101
|
|
package/dist/utils/dayjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dayjs.js","sources":["../../src/utils/dayjs.js"],"sourcesContent":["// eslint-disable-next-line @bigbinary/neeto/use-dayjs-from-neeto-commons-fronted\nimport pureDayjs from \"dayjs\";\n\nconst hasTimezone = dateString => {\n const timezoneRegex = /Z|[+-]\\d{2}:\\d{2}$|GMT([+-]\\d{4})?$/;\n\n return timezoneRegex.test(dateString);\n};\n\nconst dayjs = (...args) => {\n if (\n
|
|
1
|
+
{"version":3,"file":"dayjs.js","sources":["../../node_modules/@babel/runtime/helpers/esm/classCallCheck.js","../../node_modules/@babel/runtime/helpers/esm/createClass.js","../../src/utils/dayjs.js"],"sourcesContent":["export default function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}","function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nexport default function _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}","// eslint-disable-next-line @bigbinary/neeto/use-dayjs-from-neeto-commons-fronted\nimport pureDayjs from \"dayjs\";\n\nclass LRUCache {\n constructor(limit) {\n this.limit = limit;\n this.cache = new Map();\n }\n\n get(key) {\n const value = this.cache.get(key);\n this.cache.delete(key);\n this.cache.set(key, value);\n\n return value;\n }\n\n set(key, value) {\n if (this.cache.size >= this.limit) {\n const oldestKey = this.cache.keys().next().value;\n this.cache.delete(oldestKey);\n }\n this.cache.set(key, value);\n }\n\n has(key) {\n return this.cache.has(key);\n }\n}\n\nconst hasTimezone = dateString => {\n const timezoneRegex = /Z|[+-]\\d{2}:\\d{2}$|[+-]\\d{4}$|GMT([+-]\\d{4})?$/;\n\n return timezoneRegex.test(dateString);\n};\n\nconst cache = new LRUCache(1000);\n\nconst dayjs = (...args) => {\n const cacheKey = JSON.stringify(args);\n\n if (cache.has(cacheKey) && args[0] !== undefined) return cache.get(cacheKey);\n\n const userTimezone = pureDayjs.tz().$x.$timezone;\n const browserTimezone = pureDayjs.tz.guess();\n const timezone = userTimezone || browserTimezone;\n\n if (userTimezone === browserTimezone || userTimezone === undefined) {\n const result = pureDayjs(...args);\n\n if (args[0] !== undefined) cache.set(cacheKey, result);\n\n return result;\n }\n\n if (args.length > 0 && (typeof args[0] === \"string\" || args[0] === null)) {\n const pureDayjsArgs = args.slice(0, Math.min(args.length, 2));\n\n if (hasTimezone(args[0])) {\n args[0] = pureDayjs(...pureDayjsArgs);\n } else {\n args[0] = pureDayjs(...pureDayjsArgs).format(\"YYYY-MM-DD HH:mm:ss\");\n args[1] = \"YYYY-MM-DD HH:mm:ss\";\n }\n }\n\n if (args[0]?.toString() === \"Invalid Date\") {\n const result = pureDayjs(...args);\n\n if (args[0] !== undefined) cache.set(cacheKey, result);\n\n return result;\n }\n\n const result =\n args.length === 2 ? pureDayjs.tz(...args, timezone) : pureDayjs.tz(...args);\n\n if (args[0] !== undefined) cache.set(cacheKey, result);\n\n return result;\n};\n\nObject.assign(dayjs, { ...pureDayjs });\n\nexport default dayjs;\n"],"names":["LRUCache","limit","_classCallCheck","cache","Map","_createClass","key","value","get","set","size","oldestKey","keys","next","has","hasTimezone","dateString","timezoneRegex","test","dayjs","_args$","_len","arguments","length","args","Array","_key","cacheKey","JSON","stringify","undefined","userTimezone","pureDayjs","tz","$x","$timezone","browserTimezone","guess","timezone","result","apply","pureDayjsArgs","slice","Math","min","_toConsumableArray","format","toString","concat","Object","assign","_objectSpread"],"mappings":";;;;;AAAe,SAAS,eAAe,CAAC,QAAQ,EAAE,WAAW,EAAE;AAC/D,EAAE,IAAI,EAAE,QAAQ,YAAY,WAAW,CAAC,EAAE;AAC1C,IAAI,MAAM,IAAI,SAAS,CAAC,mCAAmC,CAAC,CAAC;AAC7D,GAAG;AACH;;ACJA,SAAS,iBAAiB,CAAC,MAAM,EAAE,KAAK,EAAE;AAC1C,EAAE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AACzC,IAAI,IAAI,UAAU,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;AAC9B,IAAI,UAAU,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,IAAI,KAAK,CAAC;AAC3D,IAAI,UAAU,CAAC,YAAY,GAAG,IAAI,CAAC;AACnC,IAAI,IAAI,OAAO,IAAI,UAAU,EAAE,UAAU,CAAC,QAAQ,GAAG,IAAI,CAAC;AAC1D,IAAI,MAAM,CA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ithoutProperties } from '../objectWithoutProperties-
|
|
2
|
-
import { _ as _slicedToArray } from '../slicedToArray-
|
|
3
|
-
import { _ as _asyncToGenerator, a as _regeneratorRuntime } from '../index-
|
|
4
|
-
import { _ as _defineProperty } from '../defineProperty-
|
|
1
|
+
import { _ as _objectWithoutProperties } from '../objectWithoutProperties-B90Wg9LD.js';
|
|
2
|
+
import { _ as _slicedToArray } from '../slicedToArray-B_J-CC8-.js';
|
|
3
|
+
import { _ as _asyncToGenerator, a as _regeneratorRuntime } from '../index-CRoDfiJc.js';
|
|
4
|
+
import { _ as _defineProperty } from '../defineProperty-CEd-kZQW.js';
|
|
5
5
|
import i18next from 'i18next';
|
|
6
6
|
import { getRandomInt, transformObjectDeep, camelToSnakeCase } from '@bigbinary/neeto-cist';
|
|
7
7
|
import Toastr from '@bigbinary/neetoui/Toastr';
|
|
8
8
|
import { stringify, parse } from 'qs';
|
|
9
9
|
import { curry, toPairs, pipe, omit, isEmpty, identity } from 'ramda';
|
|
10
|
-
import '../unsupportedIterableToArray-
|
|
11
|
-
import '../_commonjsHelpers-
|
|
10
|
+
import '../unsupportedIterableToArray-wRn9bJ2J.js';
|
|
11
|
+
import '../_commonjsHelpers-B85MJLTf.js';
|
|
12
12
|
|
|
13
13
|
var _this = undefined;
|
|
14
14
|
var _excluded = ["toCamelCase"];
|
package/dist/utils/index.js
CHANGED
|
@@ -12,20 +12,20 @@ export { default as dayjs } from './dayjs.js';
|
|
|
12
12
|
import 'axios';
|
|
13
13
|
import '../initializers/constants.js';
|
|
14
14
|
import 'ramda';
|
|
15
|
-
import '../objectWithoutProperties-
|
|
16
|
-
import '../slicedToArray-
|
|
17
|
-
import '../unsupportedIterableToArray-
|
|
18
|
-
import '../index-
|
|
19
|
-
import '../_commonjsHelpers-
|
|
20
|
-
import '../defineProperty-
|
|
15
|
+
import '../objectWithoutProperties-B90Wg9LD.js';
|
|
16
|
+
import '../slicedToArray-B_J-CC8-.js';
|
|
17
|
+
import '../unsupportedIterableToArray-wRn9bJ2J.js';
|
|
18
|
+
import '../index-CRoDfiJc.js';
|
|
19
|
+
import '../_commonjsHelpers-B85MJLTf.js';
|
|
20
|
+
import '../defineProperty-CEd-kZQW.js';
|
|
21
21
|
import 'i18next';
|
|
22
22
|
import '@bigbinary/neeto-cist';
|
|
23
23
|
import '@bigbinary/neetoui/Toastr';
|
|
24
24
|
import 'qs';
|
|
25
|
-
import '../toConsumableArray-7f764fb5.js';
|
|
26
|
-
import 'dayjs';
|
|
27
25
|
import '@rails/actioncable';
|
|
26
|
+
import 'dayjs';
|
|
28
27
|
import '../constants/regex.js';
|
|
29
28
|
import 'yup';
|
|
30
|
-
import '../mixpanel.cjs-
|
|
29
|
+
import '../mixpanel.cjs-DTVxnNUt.js';
|
|
30
|
+
import '../toConsumableArray-CQcqnqnw.js';
|
|
31
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { _ as _slicedToArray } from '../slicedToArray-B_J-CC8-.js';
|
|
2
|
+
import { _ as _defineProperty } from '../defineProperty-CEd-kZQW.js';
|
|
3
|
+
import '../unsupportedIterableToArray-wRn9bJ2J.js';
|
|
4
|
+
|
|
5
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
|
+
var typeToPos = {
|
|
8
|
+
year: 0,
|
|
9
|
+
month: 1,
|
|
10
|
+
day: 2,
|
|
11
|
+
hour: 3,
|
|
12
|
+
minute: 4,
|
|
13
|
+
second: 5
|
|
14
|
+
};
|
|
15
|
+
var dateTimeFormatDefaults = {
|
|
16
|
+
year: "numeric",
|
|
17
|
+
month: "2-digit",
|
|
18
|
+
day: "2-digit",
|
|
19
|
+
hour: "2-digit",
|
|
20
|
+
minute: "2-digit",
|
|
21
|
+
second: "2-digit"
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
// Cache time-zone lookups from Intl.DateTimeFormat,
|
|
25
|
+
// as it is a *very* slow method.
|
|
26
|
+
var dtfCache = {};
|
|
27
|
+
var getDateTimeFormat = function getDateTimeFormat(timezone) {
|
|
28
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
29
|
+
var timeZoneName = options.timeZoneName || "short";
|
|
30
|
+
var key = "".concat(timezone, "|").concat(timeZoneName);
|
|
31
|
+
var dtf = dtfCache[key];
|
|
32
|
+
if (!dtf) {
|
|
33
|
+
dtf = new Intl.DateTimeFormat("en-US", _objectSpread(_objectSpread({}, dateTimeFormatDefaults), {}, {
|
|
34
|
+
hour12: false,
|
|
35
|
+
timeZone: timezone,
|
|
36
|
+
timeZoneName: timeZoneName
|
|
37
|
+
}));
|
|
38
|
+
dtfCache[key] = dtf;
|
|
39
|
+
}
|
|
40
|
+
return dtf;
|
|
41
|
+
};
|
|
42
|
+
var localeStringifierCache = {};
|
|
43
|
+
var getLocaleStringifier = function getLocaleStringifier(timezone) {
|
|
44
|
+
var localeStringifier = localeStringifierCache[timezone];
|
|
45
|
+
if (!localeStringifier) {
|
|
46
|
+
localeStringifier = new Intl.DateTimeFormat("en-US", _objectSpread(_objectSpread({}, dateTimeFormatDefaults), {}, {
|
|
47
|
+
timeZone: timezone
|
|
48
|
+
}));
|
|
49
|
+
localeStringifierCache[timezone] = localeStringifier;
|
|
50
|
+
}
|
|
51
|
+
return localeStringifier;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
// eslint-disable-next-line no-unused-vars
|
|
55
|
+
var timezonePlugin = (function (o, c, d) {
|
|
56
|
+
var defaultTimezone;
|
|
57
|
+
var makeFormatParts = function makeFormatParts(timestamp, timezone) {
|
|
58
|
+
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
59
|
+
var date = new Date(timestamp);
|
|
60
|
+
var dtf = getDateTimeFormat(timezone, options);
|
|
61
|
+
return dtf.formatToParts(date);
|
|
62
|
+
};
|
|
63
|
+
var tzOffset = function tzOffset(timestamp, timezone) {
|
|
64
|
+
var formatResult = makeFormatParts(timestamp, timezone);
|
|
65
|
+
var filled = [];
|
|
66
|
+
for (var i = 0; i < formatResult.length; i += 1) {
|
|
67
|
+
var _formatResult$i = formatResult[i],
|
|
68
|
+
type = _formatResult$i.type,
|
|
69
|
+
value = _formatResult$i.value;
|
|
70
|
+
var pos = typeToPos[type];
|
|
71
|
+
if (pos >= 0) {
|
|
72
|
+
filled[pos] = parseInt(value, 10);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
var hour = filled[3];
|
|
76
|
+
// Workaround for the same behavior in different node version
|
|
77
|
+
// https://github.com/nodejs/node/issues/33027
|
|
78
|
+
/* istanbul ignore next */
|
|
79
|
+
var fixedHour = hour === 24 ? 0 : hour;
|
|
80
|
+
var utcString = "".concat(filled[0], "-").concat(filled[1], "-").concat(filled[2], " ").concat(fixedHour, ":").concat(filled[4], ":").concat(filled[5], ":000");
|
|
81
|
+
var utcTs = d.utc(utcString).valueOf();
|
|
82
|
+
var asTS = Number(timestamp);
|
|
83
|
+
var over = asTS % 1000;
|
|
84
|
+
asTS -= over;
|
|
85
|
+
return (utcTs - asTS) / (60 * 1000);
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
// find the right offset a given local time. The o input is our guess, which determines which
|
|
89
|
+
// offset we'll pick in ambiguous cases (e.g. there are two 3 AMs b/c Fallback DST)
|
|
90
|
+
// https://github.com/moment/luxon/blob/master/src/datetime.js#L76
|
|
91
|
+
var fixOffset = function fixOffset(localTS, o0, tz) {
|
|
92
|
+
// Our UTC time is just a guess because our offset is just a guess
|
|
93
|
+
var utcGuess = localTS - o0 * 60 * 1000;
|
|
94
|
+
// Test whether the zone matches the offset for this ts
|
|
95
|
+
var o2 = tzOffset(utcGuess, tz);
|
|
96
|
+
// If so, offset didn't change and we're done
|
|
97
|
+
if (o0 === o2) {
|
|
98
|
+
return [utcGuess, o0];
|
|
99
|
+
}
|
|
100
|
+
// If not, change the ts by the difference in the offset
|
|
101
|
+
utcGuess -= (o2 - o0) * 60 * 1000;
|
|
102
|
+
// If that gives us the local time we want, we're done
|
|
103
|
+
var o3 = tzOffset(utcGuess, tz);
|
|
104
|
+
if (o2 === o3) {
|
|
105
|
+
return [utcGuess, o2];
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
// If it's different, we're in a hole time.
|
|
109
|
+
// The offset has changed, but the we don't adjust the time
|
|
110
|
+
return [localTS - Math.min(o2, o3) * 60 * 1000, Math.max(o2, o3)];
|
|
111
|
+
};
|
|
112
|
+
var proto = c.prototype;
|
|
113
|
+
|
|
114
|
+
// eslint-disable-next-line default-param-last
|
|
115
|
+
proto.tz = function () {
|
|
116
|
+
var timezone = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultTimezone;
|
|
117
|
+
var keepLocalTime = arguments.length > 1 ? arguments[1] : undefined;
|
|
118
|
+
var oldOffset = this.utcOffset();
|
|
119
|
+
var date = this.toDate();
|
|
120
|
+
var target = getLocaleStringifier(timezone).format(date);
|
|
121
|
+
var diff = Math.round((date - new Date(target)) / 1000 / 60);
|
|
122
|
+
var ins = d(target).$set("millisecond", this.$ms).utcOffset(-Math.round(date.getTimezoneOffset() / 15) * 15 - diff, true);
|
|
123
|
+
if (keepLocalTime) {
|
|
124
|
+
var newOffset = ins.utcOffset();
|
|
125
|
+
ins = ins.add(oldOffset - newOffset, "minute");
|
|
126
|
+
}
|
|
127
|
+
ins.$x.$timezone = timezone;
|
|
128
|
+
return ins;
|
|
129
|
+
};
|
|
130
|
+
proto.offsetName = function (type) {
|
|
131
|
+
// type: short(default) / long
|
|
132
|
+
var zone = this.$x.$timezone || d.tz.guess();
|
|
133
|
+
var result = makeFormatParts(this.valueOf(), zone, {
|
|
134
|
+
timeZoneName: type
|
|
135
|
+
}).find(function (m) {
|
|
136
|
+
return m.type.toLowerCase() === "timezonename";
|
|
137
|
+
});
|
|
138
|
+
return result && result.value;
|
|
139
|
+
};
|
|
140
|
+
var oldStartOf = proto.startOf;
|
|
141
|
+
proto.startOf = function (units, startOf) {
|
|
142
|
+
if (!this.$x || !this.$x.$timezone) {
|
|
143
|
+
return oldStartOf.call(this, units, startOf);
|
|
144
|
+
}
|
|
145
|
+
var withoutTz = d(this.format("YYYY-MM-DD HH:mm:ss:SSS"));
|
|
146
|
+
var startOfWithoutTz = oldStartOf.call(withoutTz, units, startOf);
|
|
147
|
+
return startOfWithoutTz.tz(this.$x.$timezone, true);
|
|
148
|
+
};
|
|
149
|
+
d.tz = function (input, arg1, arg2) {
|
|
150
|
+
var parseFormat = arg2 && arg1;
|
|
151
|
+
var timezone = arg2 || arg1 || defaultTimezone;
|
|
152
|
+
var previousOffset = tzOffset(Number(d()), timezone);
|
|
153
|
+
if (typeof input !== "string") {
|
|
154
|
+
// timestamp number || js Date || Day.js
|
|
155
|
+
return d(input).tz(timezone);
|
|
156
|
+
}
|
|
157
|
+
var localTs = d.utc(input, parseFormat).valueOf();
|
|
158
|
+
var _fixOffset = fixOffset(localTs, previousOffset, timezone),
|
|
159
|
+
_fixOffset2 = _slicedToArray(_fixOffset, 2),
|
|
160
|
+
targetTs = _fixOffset2[0],
|
|
161
|
+
targetOffset = _fixOffset2[1];
|
|
162
|
+
var ins = d(targetTs).utcOffset(targetOffset);
|
|
163
|
+
ins.$x.$timezone = timezone;
|
|
164
|
+
return ins;
|
|
165
|
+
};
|
|
166
|
+
d.tz.guess = function () {
|
|
167
|
+
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
168
|
+
};
|
|
169
|
+
d.tz.setDefault = function (timezone) {
|
|
170
|
+
defaultTimezone = timezone;
|
|
171
|
+
};
|
|
172
|
+
});
|
|
173
|
+
|
|
174
|
+
export { timezonePlugin as default };
|
|
175
|
+
//# sourceMappingURL=timezonePlugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timezonePlugin.js","sources":["../../src/utils/timezonePlugin.js"],"sourcesContent":["const typeToPos = {\n year: 0,\n month: 1,\n day: 2,\n hour: 3,\n minute: 4,\n second: 5,\n};\n\nconst dateTimeFormatDefaults = {\n year: \"numeric\",\n month: \"2-digit\",\n day: \"2-digit\",\n hour: \"2-digit\",\n minute: \"2-digit\",\n second: \"2-digit\",\n};\n\n// Cache time-zone lookups from Intl.DateTimeFormat,\n// as it is a *very* slow method.\nconst dtfCache = {};\nconst getDateTimeFormat = (timezone, options = {}) => {\n const timeZoneName = options.timeZoneName || \"short\";\n const key = `${timezone}|${timeZoneName}`;\n let dtf = dtfCache[key];\n if (!dtf) {\n dtf = new Intl.DateTimeFormat(\"en-US\", {\n ...dateTimeFormatDefaults,\n hour12: false,\n timeZone: timezone,\n timeZoneName,\n });\n dtfCache[key] = dtf;\n }\n\n return dtf;\n};\n\nconst localeStringifierCache = {};\nconst getLocaleStringifier = timezone => {\n let localeStringifier = localeStringifierCache[timezone];\n if (!localeStringifier) {\n localeStringifier = new Intl.DateTimeFormat(\"en-US\", {\n ...dateTimeFormatDefaults,\n timeZone: timezone,\n });\n localeStringifierCache[timezone] = localeStringifier;\n }\n\n return localeStringifier;\n};\n\n// eslint-disable-next-line no-unused-vars\nexport default (o, c, d) => {\n let defaultTimezone;\n\n const makeFormatParts = (timestamp, timezone, options = {}) => {\n const date = new Date(timestamp);\n const dtf = getDateTimeFormat(timezone, options);\n\n return dtf.formatToParts(date);\n };\n\n const tzOffset = (timestamp, timezone) => {\n const formatResult = makeFormatParts(timestamp, timezone);\n const filled = [];\n for (let i = 0; i < formatResult.length; i += 1) {\n const { type, value } = formatResult[i];\n const pos = typeToPos[type];\n\n if (pos >= 0) {\n filled[pos] = parseInt(value, 10);\n }\n }\n const hour = filled[3];\n // Workaround for the same behavior in different node version\n // https://github.com/nodejs/node/issues/33027\n /* istanbul ignore next */\n const fixedHour = hour === 24 ? 0 : hour;\n const utcString = `${filled[0]}-${filled[1]}-${filled[2]} ${fixedHour}:${filled[4]}:${filled[5]}:000`;\n const utcTs = d.utc(utcString).valueOf();\n let asTS = Number(timestamp);\n const over = asTS % 1000;\n asTS -= over;\n\n return (utcTs - asTS) / (60 * 1000);\n };\n\n // find the right offset a given local time. The o input is our guess, which determines which\n // offset we'll pick in ambiguous cases (e.g. there are two 3 AMs b/c Fallback DST)\n // https://github.com/moment/luxon/blob/master/src/datetime.js#L76\n const fixOffset = (localTS, o0, tz) => {\n // Our UTC time is just a guess because our offset is just a guess\n let utcGuess = localTS - o0 * 60 * 1000;\n // Test whether the zone matches the offset for this ts\n const o2 = tzOffset(utcGuess, tz);\n // If so, offset didn't change and we're done\n if (o0 === o2) {\n return [utcGuess, o0];\n }\n // If not, change the ts by the difference in the offset\n utcGuess -= (o2 - o0) * 60 * 1000;\n // If that gives us the local time we want, we're done\n const o3 = tzOffset(utcGuess, tz);\n if (o2 === o3) {\n return [utcGuess, o2];\n }\n\n // If it's different, we're in a hole time.\n // The offset has changed, but the we don't adjust the time\n return [localTS - Math.min(o2, o3) * 60 * 1000, Math.max(o2, o3)];\n };\n\n const proto = c.prototype;\n\n // eslint-disable-next-line default-param-last\n proto.tz = function (timezone = defaultTimezone, keepLocalTime) {\n const oldOffset = this.utcOffset();\n const date = this.toDate();\n const target = getLocaleStringifier(timezone).format(date);\n const diff = Math.round((date - new Date(target)) / 1000 / 60);\n let ins = d(target)\n .$set(\"millisecond\", this.$ms)\n .utcOffset(-Math.round(date.getTimezoneOffset() / 15) * 15 - diff, true);\n if (keepLocalTime) {\n const newOffset = ins.utcOffset();\n ins = ins.add(oldOffset - newOffset, \"minute\");\n }\n ins.$x.$timezone = timezone;\n\n return ins;\n };\n\n proto.offsetName = function (type) {\n // type: short(default) / long\n const zone = this.$x.$timezone || d.tz.guess();\n const result = makeFormatParts(this.valueOf(), zone, {\n timeZoneName: type,\n }).find(m => m.type.toLowerCase() === \"timezonename\");\n\n return result && result.value;\n };\n\n const oldStartOf = proto.startOf;\n proto.startOf = function (units, startOf) {\n if (!this.$x || !this.$x.$timezone) {\n return oldStartOf.call(this, units, startOf);\n }\n\n const withoutTz = d(this.format(\"YYYY-MM-DD HH:mm:ss:SSS\"));\n const startOfWithoutTz = oldStartOf.call(withoutTz, units, startOf);\n\n return startOfWithoutTz.tz(this.$x.$timezone, true);\n };\n\n d.tz = function (input, arg1, arg2) {\n const parseFormat = arg2 && arg1;\n const timezone = arg2 || arg1 || defaultTimezone;\n const previousOffset = tzOffset(Number(d()), timezone);\n if (typeof input !== \"string\") {\n // timestamp number || js Date || Day.js\n return d(input).tz(timezone);\n }\n const localTs = d.utc(input, parseFormat).valueOf();\n const [targetTs, targetOffset] = fixOffset(\n localTs,\n previousOffset,\n timezone\n );\n const ins = d(targetTs).utcOffset(targetOffset);\n ins.$x.$timezone = timezone;\n\n return ins;\n };\n\n d.tz.guess = function () {\n return Intl.DateTimeFormat().resolvedOptions().timeZone;\n };\n\n d.tz.setDefault = function (timezone) {\n defaultTimezone = timezone;\n };\n};\n"],"names":["typeToPos","year","month","day","hour","minute","second","dateTimeFormatDefaults","dtfCache","getDateTimeFormat","timezone","options","arguments","length","undefined","timeZoneName","key","concat","dtf","Intl","DateTimeFormat","_objectSpread","hour12","timeZone","localeStringifierCache","getLocaleStringifier","localeStringifier","o","c","d","defaultTimezone","makeFormatParts","timestamp","date","Date","formatToParts","tzOffset","formatResult","filled","i","_formatResult$i","type","value","pos","parseInt","fixedHour","utcString","utcTs","utc","valueOf","asTS","Number","over","fixOffset","localTS","o0","tz","utcGuess","o2","o3","Math","min","max","proto","prototype","keepLocalTime","oldOffset","utcOffset","toDate","target","format","diff","round","ins","$set","$ms","getTimezoneOffset","newOffset","add","$x","$timezone","offsetName","zone","guess","result","find","m","toLowerCase","oldStartOf","startOf","units","call","withoutTz","startOfWithoutTz","input","arg1","arg2","parseFormat","previousOffset","localTs","_fixOffset","_fixOffset2","_slicedToArray","targetTs","targetOffset","resolvedOptions","setDefault"],"mappings":";;;;;;AAAA,IAAMA,SAAS,GAAG;AAChBC,EAAAA,IAAI,EAAE,CAAC;AACPC,EAAAA,KAAK,EAAE,CAAC;AACRC,EAAAA,GAAG,EAAE,CAAC;AACNC,EAAAA,IAAI,EAAE,CAAC;AACPC,EAAAA,MAAM,EAAE,CAAC;AACTC,EAAAA,MAAM,EAAE,CAAA;AACV,CAAC,CAAA;AAED,IAAMC,sBAAsB,GAAG;AAC7BN,EAAAA,IAAI,EAAE,SAAS;AACfC,EAAAA,KAAK,EAAE,SAAS;AAChBC,EAAAA,GAAG,EAAE,SAAS;AACdC,EAAAA,IAAI,EAAE,SAAS;AACfC,EAAAA,MAAM,EAAE,SAAS;AACjBC,EAAAA,MAAM,EAAE,SAAA;AACV,CAAC,CAAA;;AAED;AACA;AACA,IAAME,QAAQ,GAAG,EAAE,CAAA;AACnB,IAAMC,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAIC,QAAQ,EAAmB;AAAA,EAAA,IAAjBC,OAAO,GAAAC,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAG,EAAE,CAAA;AAC/C,EAAA,IAAMG,YAAY,GAAGJ,OAAO,CAACI,YAAY,IAAI,OAAO,CAAA;EACpD,IAAMC,GAAG,MAAAC,MAAA,CAAMP,QAAQ,EAAAO,GAAAA,CAAAA,CAAAA,MAAA,CAAIF,YAAY,CAAE,CAAA;AACzC,EAAA,IAAIG,GAAG,GAAGV,QAAQ,CAACQ,GAAG,CAAC,CAAA;EACvB,IAAI,CAACE,GAAG,EA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AAC,CAAC2B,EAAE,CAAC2B,KAAK,GAAG,YAAY;IACvB,OAAOhE,IAAI,CAACC,cAAc,EAAE,CAACqF,eAAe,EAAE,CAAClF,QAAQ,CAAA;GACxD,CAAA;AAEDM,EAAAA,CAAC,CAAC2B,EAAE,CAACkD,UAAU,GAAG,UAAUhG,QAAQ,EAAE;AACpCoB,IAAAA,eAAe,GAAGpB,QAAQ,CAAA;GAC3B,CAAA;AACH,CAAC;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-commons-frontend",
|
|
3
|
-
"version": "4.8.
|
|
3
|
+
"version": "4.8.8",
|
|
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>",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"remove-unused-translation-keys": "./configs/scripts/remove-unused-translation-keys/index.js"
|
|
11
11
|
},
|
|
12
12
|
"scripts": {
|
|
13
|
-
"build": "yarn build:jsdoc && NODE_ENV=production rollup -c rollup.config.js --environment production",
|
|
13
|
+
"build": "yarn build:jsdoc && NODE_ENV=production rollup --bundleConfigAsCjs -c rollup.config.js --environment production",
|
|
14
14
|
"build:jsdoc": "node ./.scripts/jsdoc-builder.mjs",
|
|
15
15
|
"prepare": "husky install",
|
|
16
16
|
"sync_with_wheel": "./.scripts/sync_with_wheel.sh",
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
"react-router-dom": "5.3.3",
|
|
190
190
|
"react-toastify": "8.0.2",
|
|
191
191
|
"remark-parse": "^10.0.1",
|
|
192
|
-
"rollup": "
|
|
192
|
+
"rollup": "^4.24.0",
|
|
193
193
|
"rollup-plugin-analyzer": "4.0.0",
|
|
194
194
|
"rollup-plugin-copy": "3.5.0",
|
|
195
195
|
"rollup-plugin-peer-deps-external": "2.2.4",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_commonjsHelpers-ae89b920.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_commonjsHelpers-755157d3.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|