@bigbinary/neeto-commons-frontend 4.16.0-beta1 → 5.0.0-beta1
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/dist/.ready +1 -1
- package/dist/cjs/initializers/constants.js +0 -6
- package/dist/cjs/initializers/constants.js.map +1 -1
- package/dist/cjs/initializers/dayjs.js +1 -2
- package/dist/cjs/initializers/dayjs.js.map +1 -1
- package/dist/cjs/initializers/i18n.js +3 -10
- package/dist/cjs/initializers/i18n.js.map +1 -1
- package/dist/cjs/initializers/index.js +2 -6
- package/dist/cjs/initializers/index.js.map +1 -1
- package/dist/cjs/initializers/utils/index.js +1 -2
- package/dist/cjs/initializers/utils/index.js.map +1 -1
- package/dist/cjs/react-utils/index.js +2 -4
- package/dist/cjs/react-utils/index.js.map +1 -1
- package/dist/cjs/react-utils/useDebounce/index.js +1 -2
- package/dist/cjs/react-utils/useDebounce/index.js.map +1 -1
- package/dist/cjs/react-utils/useDebounce/useDebounce.js +1 -2
- package/dist/cjs/react-utils/useDebounce/useDebounce.js.map +1 -1
- package/dist/cjs/react-utils/useFetchNeetoApps/index.js +1 -2
- package/dist/cjs/react-utils/useFetchNeetoApps/index.js.map +1 -1
- package/dist/cjs/react-utils/useFetchNeetoApps/useFetchNeetoApps.js +1 -2
- package/dist/cjs/react-utils/useFetchNeetoApps/useFetchNeetoApps.js.map +1 -1
- package/dist/cjs/react-utils/useIsElementVisibleInDom/index.js +1 -2
- package/dist/cjs/react-utils/useIsElementVisibleInDom/index.js.map +1 -1
- package/dist/cjs/react-utils/useIsElementVisibleInDom/useForceUpdate.js +1 -2
- package/dist/cjs/react-utils/useIsElementVisibleInDom/useForceUpdate.js.map +1 -1
- package/dist/cjs/react-utils/useIsElementVisibleInDom/useIsElementVisibleInDom.js +1 -2
- package/dist/cjs/react-utils/useIsElementVisibleInDom/useIsElementVisibleInDom.js.map +1 -1
- package/dist/cjs/react-utils/useLocalStorage/index.js +2 -4
- package/dist/cjs/react-utils/useLocalStorage/index.js.map +1 -1
- package/dist/cjs/react-utils/useLocalStorage/useLocalStorage.js +2 -4
- package/dist/cjs/react-utils/useLocalStorage/useLocalStorage.js.map +1 -1
- package/dist/cjs/react-utils/usePersistedQuery/index.js +1 -2
- package/dist/cjs/react-utils/usePersistedQuery/index.js.map +1 -1
- package/dist/cjs/react-utils/usePersistedQuery/usePersistedQuery.js +1 -2
- package/dist/cjs/react-utils/usePersistedQuery/usePersistedQuery.js.map +1 -1
- package/dist/cjs/react-utils/usePrefersReducedMotion/index.js +1 -2
- package/dist/cjs/react-utils/usePrefersReducedMotion/index.js.map +1 -1
- package/dist/cjs/react-utils/usePrefersReducedMotion/usePrefersReducedMotion.js +1 -2
- package/dist/cjs/react-utils/usePrefersReducedMotion/usePrefersReducedMotion.js.map +1 -1
- package/dist/cjs/react-utils/useQueryParams/index.js +1 -2
- package/dist/cjs/react-utils/useQueryParams/index.js.map +1 -1
- package/dist/cjs/react-utils/useQueryParams/useQueryParams.js +1 -2
- package/dist/cjs/react-utils/useQueryParams/useQueryParams.js.map +1 -1
- package/dist/cjs/react-utils/useRegisterNavigationCheckpoint/index.js +1 -2
- package/dist/cjs/react-utils/useRegisterNavigationCheckpoint/index.js.map +1 -1
- package/dist/cjs/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js +1 -2
- package/dist/cjs/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js.map +1 -1
- package/dist/cjs/react-utils/useStateWithDependency/index.js +1 -2
- package/dist/cjs/react-utils/useStateWithDependency/index.js.map +1 -1
- package/dist/cjs/react-utils/useStateWithDependency/useStateWithDependency.js +1 -2
- package/dist/cjs/react-utils/useStateWithDependency/useStateWithDependency.js.map +1 -1
- package/dist/cjs/{slicedToArray-C4VK6qBN.js → slicedToArray-BcL7fKuL.js} +10 -3
- package/dist/cjs/slicedToArray-BcL7fKuL.js.map +1 -0
- package/dist/cjs/{toConsumableArray-CcFjhlHw.js → toConsumableArray-tBKHqzE3.js} +6 -3
- package/dist/cjs/toConsumableArray-tBKHqzE3.js.map +1 -0
- package/dist/cjs/utils/buildNestedAttributesPayload.js +1 -2
- package/dist/cjs/utils/buildNestedAttributesPayload.js.map +1 -1
- package/dist/cjs/utils/createSubscription.js +1 -2
- package/dist/cjs/utils/createSubscription.js.map +1 -1
- package/dist/cjs/utils/customParseFormatPlugin.js +1 -2
- package/dist/cjs/utils/customParseFormatPlugin.js.map +1 -1
- package/dist/cjs/utils/datetime.js +1 -2
- package/dist/cjs/utils/datetime.js.map +1 -1
- package/dist/cjs/utils/dayjs.js +1 -2
- package/dist/cjs/utils/dayjs.js.map +1 -1
- package/dist/cjs/utils/deviceInformation.js +1 -2
- package/dist/cjs/utils/deviceInformation.js.map +1 -1
- package/dist/cjs/utils/general.js +1 -2
- package/dist/cjs/utils/general.js.map +1 -1
- package/dist/cjs/utils/index.js +2 -4
- package/dist/cjs/utils/index.js.map +1 -1
- package/dist/cjs/utils/timezonePlugin.js +1 -2
- package/dist/cjs/utils/timezonePlugin.js.map +1 -1
- package/dist/cjs/v2/initializers/constants.js +0 -6
- package/dist/cjs/v2/initializers/constants.js.map +1 -1
- package/dist/cjs/v2/initializers/dayjs.js +1 -2
- package/dist/cjs/v2/initializers/dayjs.js.map +1 -1
- package/dist/cjs/v2/initializers/i18n.js +3 -10
- package/dist/cjs/v2/initializers/i18n.js.map +1 -1
- package/dist/cjs/v2/initializers/index.js +2 -6
- package/dist/cjs/v2/initializers/index.js.map +1 -1
- package/dist/cjs/v2/initializers/utils/index.js +1 -2
- package/dist/cjs/v2/initializers/utils/index.js.map +1 -1
- package/dist/cjs/v2/react-utils/index.js +2 -4
- package/dist/cjs/v2/react-utils/index.js.map +1 -1
- package/dist/cjs/v2/react-utils/useDebounce/index.js +1 -2
- package/dist/cjs/v2/react-utils/useDebounce/index.js.map +1 -1
- package/dist/cjs/v2/react-utils/useDebounce/useDebounce.js +1 -2
- package/dist/cjs/v2/react-utils/useDebounce/useDebounce.js.map +1 -1
- package/dist/cjs/v2/react-utils/useFetchNeetoApps/index.js +1 -2
- package/dist/cjs/v2/react-utils/useFetchNeetoApps/index.js.map +1 -1
- package/dist/cjs/v2/react-utils/useFetchNeetoApps/useFetchNeetoApps.js +1 -2
- package/dist/cjs/v2/react-utils/useFetchNeetoApps/useFetchNeetoApps.js.map +1 -1
- package/dist/cjs/v2/react-utils/useGlobalSearch.js +1 -2
- package/dist/cjs/v2/react-utils/useGlobalSearch.js.map +1 -1
- package/dist/cjs/v2/react-utils/useIsElementVisibleInDom/index.js +1 -2
- package/dist/cjs/v2/react-utils/useIsElementVisibleInDom/index.js.map +1 -1
- package/dist/cjs/v2/react-utils/useIsElementVisibleInDom/useForceUpdate.js +1 -2
- package/dist/cjs/v2/react-utils/useIsElementVisibleInDom/useForceUpdate.js.map +1 -1
- package/dist/cjs/v2/react-utils/useIsElementVisibleInDom/useIsElementVisibleInDom.js +1 -2
- package/dist/cjs/v2/react-utils/useIsElementVisibleInDom/useIsElementVisibleInDom.js.map +1 -1
- package/dist/cjs/v2/react-utils/useLocalStorage/index.js +2 -4
- package/dist/cjs/v2/react-utils/useLocalStorage/index.js.map +1 -1
- package/dist/cjs/v2/react-utils/useLocalStorage/useLocalStorage.js +2 -4
- package/dist/cjs/v2/react-utils/useLocalStorage/useLocalStorage.js.map +1 -1
- package/dist/cjs/v2/react-utils/usePersistedQuery/index.js +1 -2
- package/dist/cjs/v2/react-utils/usePersistedQuery/index.js.map +1 -1
- package/dist/cjs/v2/react-utils/usePersistedQuery/usePersistedQuery.js +1 -2
- package/dist/cjs/v2/react-utils/usePersistedQuery/usePersistedQuery.js.map +1 -1
- package/dist/cjs/v2/react-utils/usePrefersReducedMotion/index.js +1 -2
- package/dist/cjs/v2/react-utils/usePrefersReducedMotion/index.js.map +1 -1
- package/dist/cjs/v2/react-utils/usePrefersReducedMotion/usePrefersReducedMotion.js +1 -2
- package/dist/cjs/v2/react-utils/usePrefersReducedMotion/usePrefersReducedMotion.js.map +1 -1
- package/dist/cjs/v2/react-utils/useQueryParams/index.js +1 -2
- package/dist/cjs/v2/react-utils/useQueryParams/index.js.map +1 -1
- package/dist/cjs/v2/react-utils/useQueryParams/useQueryParams.js +1 -2
- package/dist/cjs/v2/react-utils/useQueryParams/useQueryParams.js.map +1 -1
- package/dist/cjs/v2/react-utils/useRegisterNavigationCheckpoint/index.js +1 -2
- package/dist/cjs/v2/react-utils/useRegisterNavigationCheckpoint/index.js.map +1 -1
- package/dist/cjs/v2/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js +1 -2
- package/dist/cjs/v2/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js.map +1 -1
- package/dist/cjs/v2/react-utils/useStateWithDependency/index.js +1 -2
- package/dist/cjs/v2/react-utils/useStateWithDependency/index.js.map +1 -1
- package/dist/cjs/v2/react-utils/useStateWithDependency/useStateWithDependency.js +1 -2
- package/dist/cjs/v2/react-utils/useStateWithDependency/useStateWithDependency.js.map +1 -1
- package/dist/cjs/v2/utils/buildNestedAttributesPayload.js +1 -2
- package/dist/cjs/v2/utils/buildNestedAttributesPayload.js.map +1 -1
- package/dist/cjs/v2/utils/createSubscription.js +1 -2
- package/dist/cjs/v2/utils/createSubscription.js.map +1 -1
- package/dist/cjs/v2/utils/customParseFormatPlugin.js +1 -2
- package/dist/cjs/v2/utils/customParseFormatPlugin.js.map +1 -1
- package/dist/cjs/v2/utils/datetime.js +1 -2
- package/dist/cjs/v2/utils/datetime.js.map +1 -1
- package/dist/cjs/v2/utils/dayjs.js +1 -2
- package/dist/cjs/v2/utils/dayjs.js.map +1 -1
- package/dist/cjs/v2/utils/deviceInformation.js +1 -2
- package/dist/cjs/v2/utils/deviceInformation.js.map +1 -1
- package/dist/cjs/v2/utils/general.js +1 -2
- package/dist/cjs/v2/utils/general.js.map +1 -1
- package/dist/cjs/v2/utils/index.js +2 -4
- package/dist/cjs/v2/utils/index.js.map +1 -1
- package/dist/cjs/v2/utils/timezonePlugin.js +1 -2
- package/dist/cjs/v2/utils/timezonePlugin.js.map +1 -1
- package/dist/initializers/constants.js +1 -4
- package/dist/initializers/constants.js.map +1 -1
- package/dist/initializers/dayjs.js +1 -2
- package/dist/initializers/dayjs.js.map +1 -1
- package/dist/initializers/i18n.js +3 -10
- package/dist/initializers/i18n.js.map +1 -1
- package/dist/initializers/index.js +2 -6
- package/dist/initializers/index.js.map +1 -1
- package/dist/initializers/utils/index.js +1 -2
- package/dist/initializers/utils/index.js.map +1 -1
- package/dist/react-utils/index.js +2 -4
- package/dist/react-utils/index.js.map +1 -1
- package/dist/react-utils/useDebounce/index.js +1 -2
- package/dist/react-utils/useDebounce/index.js.map +1 -1
- package/dist/react-utils/useDebounce/useDebounce.js +1 -2
- package/dist/react-utils/useDebounce/useDebounce.js.map +1 -1
- package/dist/react-utils/useFetchNeetoApps/index.js +1 -2
- package/dist/react-utils/useFetchNeetoApps/index.js.map +1 -1
- package/dist/react-utils/useFetchNeetoApps/useFetchNeetoApps.js +1 -2
- package/dist/react-utils/useFetchNeetoApps/useFetchNeetoApps.js.map +1 -1
- package/dist/react-utils/useIsElementVisibleInDom/index.js +1 -2
- package/dist/react-utils/useIsElementVisibleInDom/index.js.map +1 -1
- package/dist/react-utils/useIsElementVisibleInDom/useForceUpdate.js +1 -2
- package/dist/react-utils/useIsElementVisibleInDom/useForceUpdate.js.map +1 -1
- package/dist/react-utils/useIsElementVisibleInDom/useIsElementVisibleInDom.js +1 -2
- package/dist/react-utils/useIsElementVisibleInDom/useIsElementVisibleInDom.js.map +1 -1
- package/dist/react-utils/useLocalStorage/index.js +2 -4
- package/dist/react-utils/useLocalStorage/index.js.map +1 -1
- package/dist/react-utils/useLocalStorage/useLocalStorage.js +2 -4
- package/dist/react-utils/useLocalStorage/useLocalStorage.js.map +1 -1
- package/dist/react-utils/usePersistedQuery/index.js +1 -2
- package/dist/react-utils/usePersistedQuery/index.js.map +1 -1
- package/dist/react-utils/usePersistedQuery/usePersistedQuery.js +1 -2
- package/dist/react-utils/usePersistedQuery/usePersistedQuery.js.map +1 -1
- package/dist/react-utils/usePrefersReducedMotion/index.js +1 -2
- package/dist/react-utils/usePrefersReducedMotion/index.js.map +1 -1
- package/dist/react-utils/usePrefersReducedMotion/usePrefersReducedMotion.js +1 -2
- package/dist/react-utils/usePrefersReducedMotion/usePrefersReducedMotion.js.map +1 -1
- package/dist/react-utils/useQueryParams/index.js +1 -2
- package/dist/react-utils/useQueryParams/index.js.map +1 -1
- package/dist/react-utils/useQueryParams/useQueryParams.js +1 -2
- package/dist/react-utils/useQueryParams/useQueryParams.js.map +1 -1
- package/dist/react-utils/useRegisterNavigationCheckpoint/index.js +1 -2
- package/dist/react-utils/useRegisterNavigationCheckpoint/index.js.map +1 -1
- package/dist/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js +1 -2
- package/dist/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js.map +1 -1
- package/dist/react-utils/useStateWithDependency/index.js +1 -2
- package/dist/react-utils/useStateWithDependency/index.js.map +1 -1
- package/dist/react-utils/useStateWithDependency/useStateWithDependency.js +1 -2
- package/dist/react-utils/useStateWithDependency/useStateWithDependency.js.map +1 -1
- package/dist/{slicedToArray-BkMe3jhN.js → slicedToArray-DmsZvA_9.js} +9 -2
- package/dist/slicedToArray-DmsZvA_9.js.map +1 -0
- package/dist/{toConsumableArray-xgAQXh23.js → toConsumableArray-B7CFjjkW.js} +5 -2
- package/dist/toConsumableArray-B7CFjjkW.js.map +1 -0
- package/dist/utils/buildNestedAttributesPayload.js +1 -2
- package/dist/utils/buildNestedAttributesPayload.js.map +1 -1
- package/dist/utils/createSubscription.js +1 -2
- package/dist/utils/createSubscription.js.map +1 -1
- package/dist/utils/customParseFormatPlugin.js +1 -2
- package/dist/utils/customParseFormatPlugin.js.map +1 -1
- package/dist/utils/datetime.js +1 -2
- package/dist/utils/datetime.js.map +1 -1
- package/dist/utils/dayjs.js +1 -2
- package/dist/utils/dayjs.js.map +1 -1
- package/dist/utils/deviceInformation.js +1 -2
- package/dist/utils/deviceInformation.js.map +1 -1
- package/dist/utils/general.js +1 -2
- package/dist/utils/general.js.map +1 -1
- package/dist/utils/index.js +2 -4
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/timezonePlugin.js +1 -2
- package/dist/utils/timezonePlugin.js.map +1 -1
- package/dist/v2/initializers/constants.js +1 -4
- package/dist/v2/initializers/constants.js.map +1 -1
- package/dist/v2/initializers/dayjs.js +1 -2
- package/dist/v2/initializers/dayjs.js.map +1 -1
- package/dist/v2/initializers/i18n.js +3 -10
- package/dist/v2/initializers/i18n.js.map +1 -1
- package/dist/v2/initializers/index.js +2 -6
- package/dist/v2/initializers/index.js.map +1 -1
- package/dist/v2/initializers/utils/index.js +1 -2
- package/dist/v2/initializers/utils/index.js.map +1 -1
- package/dist/v2/react-utils/index.js +2 -4
- package/dist/v2/react-utils/index.js.map +1 -1
- package/dist/v2/react-utils/useDebounce/index.js +1 -2
- package/dist/v2/react-utils/useDebounce/index.js.map +1 -1
- package/dist/v2/react-utils/useDebounce/useDebounce.js +1 -2
- package/dist/v2/react-utils/useDebounce/useDebounce.js.map +1 -1
- package/dist/v2/react-utils/useFetchNeetoApps/index.js +1 -2
- package/dist/v2/react-utils/useFetchNeetoApps/index.js.map +1 -1
- package/dist/v2/react-utils/useFetchNeetoApps/useFetchNeetoApps.js +1 -2
- package/dist/v2/react-utils/useFetchNeetoApps/useFetchNeetoApps.js.map +1 -1
- package/dist/v2/react-utils/useGlobalSearch.js +1 -2
- package/dist/v2/react-utils/useGlobalSearch.js.map +1 -1
- package/dist/v2/react-utils/useIsElementVisibleInDom/index.js +1 -2
- package/dist/v2/react-utils/useIsElementVisibleInDom/index.js.map +1 -1
- package/dist/v2/react-utils/useIsElementVisibleInDom/useForceUpdate.js +1 -2
- package/dist/v2/react-utils/useIsElementVisibleInDom/useForceUpdate.js.map +1 -1
- package/dist/v2/react-utils/useIsElementVisibleInDom/useIsElementVisibleInDom.js +1 -2
- package/dist/v2/react-utils/useIsElementVisibleInDom/useIsElementVisibleInDom.js.map +1 -1
- package/dist/v2/react-utils/useLocalStorage/index.js +2 -4
- package/dist/v2/react-utils/useLocalStorage/index.js.map +1 -1
- package/dist/v2/react-utils/useLocalStorage/useLocalStorage.js +2 -4
- package/dist/v2/react-utils/useLocalStorage/useLocalStorage.js.map +1 -1
- package/dist/v2/react-utils/usePersistedQuery/index.js +1 -2
- package/dist/v2/react-utils/usePersistedQuery/index.js.map +1 -1
- package/dist/v2/react-utils/usePersistedQuery/usePersistedQuery.js +1 -2
- package/dist/v2/react-utils/usePersistedQuery/usePersistedQuery.js.map +1 -1
- package/dist/v2/react-utils/usePrefersReducedMotion/index.js +1 -2
- package/dist/v2/react-utils/usePrefersReducedMotion/index.js.map +1 -1
- package/dist/v2/react-utils/usePrefersReducedMotion/usePrefersReducedMotion.js +1 -2
- package/dist/v2/react-utils/usePrefersReducedMotion/usePrefersReducedMotion.js.map +1 -1
- package/dist/v2/react-utils/useQueryParams/index.js +1 -2
- package/dist/v2/react-utils/useQueryParams/index.js.map +1 -1
- package/dist/v2/react-utils/useQueryParams/useQueryParams.js +1 -2
- package/dist/v2/react-utils/useQueryParams/useQueryParams.js.map +1 -1
- package/dist/v2/react-utils/useRegisterNavigationCheckpoint/index.js +1 -2
- package/dist/v2/react-utils/useRegisterNavigationCheckpoint/index.js.map +1 -1
- package/dist/v2/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js +1 -2
- package/dist/v2/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js.map +1 -1
- package/dist/v2/react-utils/useStateWithDependency/index.js +1 -2
- package/dist/v2/react-utils/useStateWithDependency/index.js.map +1 -1
- package/dist/v2/react-utils/useStateWithDependency/useStateWithDependency.js +1 -2
- package/dist/v2/react-utils/useStateWithDependency/useStateWithDependency.js.map +1 -1
- package/dist/v2/utils/buildNestedAttributesPayload.js +1 -2
- package/dist/v2/utils/buildNestedAttributesPayload.js.map +1 -1
- package/dist/v2/utils/createSubscription.js +1 -2
- package/dist/v2/utils/createSubscription.js.map +1 -1
- package/dist/v2/utils/customParseFormatPlugin.js +1 -2
- package/dist/v2/utils/customParseFormatPlugin.js.map +1 -1
- package/dist/v2/utils/datetime.js +1 -2
- package/dist/v2/utils/datetime.js.map +1 -1
- package/dist/v2/utils/dayjs.js +1 -2
- package/dist/v2/utils/dayjs.js.map +1 -1
- package/dist/v2/utils/deviceInformation.js +1 -2
- package/dist/v2/utils/deviceInformation.js.map +1 -1
- package/dist/v2/utils/general.js +1 -2
- package/dist/v2/utils/general.js.map +1 -1
- package/dist/v2/utils/index.js +2 -4
- package/dist/v2/utils/index.js.map +1 -1
- package/dist/v2/utils/timezonePlugin.js +1 -2
- package/dist/v2/utils/timezonePlugin.js.map +1 -1
- package/package.json +2 -2
- package/dist/cjs/initializers/utils/chineseLanguage.js +0 -39
- package/dist/cjs/initializers/utils/chineseLanguage.js.map +0 -1
- package/dist/cjs/iterableToArray-DleUNhX7.js +0 -8
- package/dist/cjs/iterableToArray-DleUNhX7.js.map +0 -1
- package/dist/cjs/nonIterableRest-BoRARYE5.js +0 -13
- package/dist/cjs/nonIterableRest-BoRARYE5.js.map +0 -1
- package/dist/cjs/slicedToArray-C4VK6qBN.js.map +0 -1
- package/dist/cjs/toArray-C7Mv72M_.js +0 -12
- package/dist/cjs/toArray-C7Mv72M_.js.map +0 -1
- package/dist/cjs/toConsumableArray-CcFjhlHw.js.map +0 -1
- package/dist/cjs/v2/initializers/utils/chineseLanguage.js +0 -39
- package/dist/cjs/v2/initializers/utils/chineseLanguage.js.map +0 -1
- package/dist/initializers/utils/chineseLanguage.js +0 -37
- package/dist/initializers/utils/chineseLanguage.js.map +0 -1
- package/dist/iterableToArray-Db9fVUMi.js +0 -6
- package/dist/iterableToArray-Db9fVUMi.js.map +0 -1
- package/dist/nonIterableRest-BZgkRyt5.js +0 -10
- package/dist/nonIterableRest-BZgkRyt5.js.map +0 -1
- package/dist/slicedToArray-BkMe3jhN.js.map +0 -1
- package/dist/toArray-CvRFt8yt.js +0 -10
- package/dist/toArray-CvRFt8yt.js.map +0 -1
- package/dist/toConsumableArray-xgAQXh23.js.map +0 -1
- package/dist/v2/initializers/utils/chineseLanguage.js +0 -37
- package/dist/v2/initializers/utils/chineseLanguage.js.map +0 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export { default } from './useDebounce.js';
|
|
2
|
-
import '../../slicedToArray-
|
|
3
|
-
import '../../nonIterableRest-BZgkRyt5.js';
|
|
2
|
+
import '../../slicedToArray-DmsZvA_9.js';
|
|
4
3
|
import '../../unsupportedIterableToArray-Dqz8Y8_I.js';
|
|
5
4
|
import 'react';
|
|
6
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { _ as _slicedToArray } from '../../slicedToArray-
|
|
1
|
+
import { _ as _slicedToArray } from '../../slicedToArray-DmsZvA_9.js';
|
|
2
2
|
import { useState, useEffect } from 'react';
|
|
3
|
-
import '../../nonIterableRest-BZgkRyt5.js';
|
|
4
3
|
import '../../unsupportedIterableToArray-Dqz8Y8_I.js';
|
|
5
4
|
|
|
6
5
|
var useDebounce = function useDebounce(value) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDebounce.js","sources":["../../../src/react-utils/useDebounce/useDebounce.js"],"sourcesContent":["import { useState, useEffect } from \"react\";\n\nconst useDebounce = (value, delay = 350) => {\n const [debouncedValue, setDebouncedValue] = useState(value);\n\n useEffect(() => {\n const handler = setTimeout(() => {\n setDebouncedValue(value);\n }, delay);\n\n return () => {\n clearTimeout(handler);\n };\n }, [value]);\n\n return debouncedValue;\n};\n\nexport default useDebounce;\n"],"names":["useDebounce","value","delay","arguments","length","undefined","_useState","useState","_useState2","_slicedToArray","debouncedValue","setDebouncedValue","useEffect","handler","setTimeout","clearTimeout"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useDebounce.js","sources":["../../../src/react-utils/useDebounce/useDebounce.js"],"sourcesContent":["import { useState, useEffect } from \"react\";\n\nconst useDebounce = (value, delay = 350) => {\n const [debouncedValue, setDebouncedValue] = useState(value);\n\n useEffect(() => {\n const handler = setTimeout(() => {\n setDebouncedValue(value);\n }, delay);\n\n return () => {\n clearTimeout(handler);\n };\n }, [value]);\n\n return debouncedValue;\n};\n\nexport default useDebounce;\n"],"names":["useDebounce","value","delay","arguments","length","undefined","_useState","useState","_useState2","_slicedToArray","debouncedValue","setDebouncedValue","useEffect","handler","setTimeout","clearTimeout"],"mappings":";;;;AAEA,IAAMA,WAAW,GAAG,SAAdA,WAAWA,CAAIC,KAAK,EAAkB;AAAA,EAAA,IAAhBC,KAAK,GAAAC,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAG,GAAG;AACrC,EAAA,IAAAG,SAAA,GAA4CC,QAAQ,CAACN,KAAK,CAAC;IAAAO,UAAA,GAAAC,cAAA,CAAAH,SAAA,EAAA,CAAA,CAAA;AAApDI,IAAAA,cAAc,GAAAF,UAAA,CAAA,CAAA,CAAA;AAAEG,IAAAA,iBAAiB,GAAAH,UAAA,CAAA,CAAA,CAAA;AAExCI,EAAAA,SAAS,CAAC,YAAM;AACd,IAAA,IAAMC,OAAO,GAAGC,UAAU,CAAC,YAAM;MAC/BH,iBAAiB,CAACV,KAAK,CAAC;IAC1B,CAAC,EAAEC,KAAK,CAAC;AAET,IAAA,OAAO,YAAM;MACXa,YAAY,CAACF,OAAO,CAAC;IACvB,CAAC;AACH,EAAA,CAAC,EAAE,CAACZ,KAAK,CAAC,CAAC;AAEX,EAAA,OAAOS,cAAc;AACvB;;;;"}
|
|
@@ -10,8 +10,7 @@ import 'ramda';
|
|
|
10
10
|
import '../constants/constants.js';
|
|
11
11
|
import '../../utils/general.js';
|
|
12
12
|
import '../../objectWithoutProperties-DN7d1SzH.js';
|
|
13
|
-
import '../../slicedToArray-
|
|
14
|
-
import '../../nonIterableRest-BZgkRyt5.js';
|
|
13
|
+
import '../../slicedToArray-DmsZvA_9.js';
|
|
15
14
|
import '../../unsupportedIterableToArray-Dqz8Y8_I.js';
|
|
16
15
|
import '../../asyncToGenerator-CPKhuIh2.js';
|
|
17
16
|
import 'i18next';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -11,8 +11,7 @@ import '@tanstack/react-query';
|
|
|
11
11
|
import 'ramda';
|
|
12
12
|
import '../../utils/general.js';
|
|
13
13
|
import '../../objectWithoutProperties-DN7d1SzH.js';
|
|
14
|
-
import '../../slicedToArray-
|
|
15
|
-
import '../../nonIterableRest-BZgkRyt5.js';
|
|
14
|
+
import '../../slicedToArray-DmsZvA_9.js';
|
|
16
15
|
import '../../unsupportedIterableToArray-Dqz8Y8_I.js';
|
|
17
16
|
import '../../asyncToGenerator-CPKhuIh2.js';
|
|
18
17
|
import 'i18next';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFetchNeetoApps.js","sources":["../../../src/react-utils/useFetchNeetoApps/useFetchNeetoApps.js"],"sourcesContent":["import { isNotPresent } from \"neetocist\";\nimport usePersistedQuery from \"react-utils/usePersistedQuery\";\n\nimport neetoAppsApi from \"./apis/neeto_apps\";\n\nimport { NEETO_APPS_LIST_STALE_TIME } from \"../constants\";\nimport { QUERY_KEYS } from \"../constants/query\";\n\nconst useFetchNeetoApps = options => {\n const scopedQueryKey = [\n `${QUERY_KEYS.NEETO_APPS_LIST}-${globalProps.user?.id}`,\n ];\n\n const { data, modifiedAt } = usePersistedQuery.getCache(scopedQueryKey) || {};\n const expired = modifiedAt <= Date.now() - NEETO_APPS_LIST_STALE_TIME;\n\n return usePersistedQuery(scopedQueryKey, neetoAppsApi.fetch, {\n staleTime: NEETO_APPS_LIST_STALE_TIME,\n enabled: expired || isNotPresent(data),\n ...options,\n });\n};\n\nexport default useFetchNeetoApps;\n"],"names":["useFetchNeetoApps","options","_globalProps$user","scopedQueryKey","concat","QUERY_KEYS","NEETO_APPS_LIST","globalProps","user","id","_ref","usePersistedQuery","getCache","data","modifiedAt","expired","Date","now","NEETO_APPS_LIST_STALE_TIME","neetoAppsApi","fetch","_objectSpread","staleTime","enabled","isNotPresent"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useFetchNeetoApps.js","sources":["../../../src/react-utils/useFetchNeetoApps/useFetchNeetoApps.js"],"sourcesContent":["import { isNotPresent } from \"neetocist\";\nimport usePersistedQuery from \"react-utils/usePersistedQuery\";\n\nimport neetoAppsApi from \"./apis/neeto_apps\";\n\nimport { NEETO_APPS_LIST_STALE_TIME } from \"../constants\";\nimport { QUERY_KEYS } from \"../constants/query\";\n\nconst useFetchNeetoApps = options => {\n const scopedQueryKey = [\n `${QUERY_KEYS.NEETO_APPS_LIST}-${globalProps.user?.id}`,\n ];\n\n const { data, modifiedAt } = usePersistedQuery.getCache(scopedQueryKey) || {};\n const expired = modifiedAt <= Date.now() - NEETO_APPS_LIST_STALE_TIME;\n\n return usePersistedQuery(scopedQueryKey, neetoAppsApi.fetch, {\n staleTime: NEETO_APPS_LIST_STALE_TIME,\n enabled: expired || isNotPresent(data),\n ...options,\n });\n};\n\nexport default useFetchNeetoApps;\n"],"names":["useFetchNeetoApps","options","_globalProps$user","scopedQueryKey","concat","QUERY_KEYS","NEETO_APPS_LIST","globalProps","user","id","_ref","usePersistedQuery","getCache","data","modifiedAt","expired","Date","now","NEETO_APPS_LIST_STALE_TIME","neetoAppsApi","fetch","_objectSpread","staleTime","enabled","isNotPresent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAQA,IAAMA,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAGC,OAAO,EAAI;AAAA,EAAA,IAAAC,iBAAA;EACnC,IAAMC,cAAc,GAAG,CAAA,EAAA,CAAAC,MAAA,CAClBC,UAAU,CAACC,eAAe,EAAA,GAAA,CAAA,CAAAF,MAAA,CAAA,CAAAF,iBAAA,GAAIK,WAAW,CAACC,IAAI,MAAA,IAAA,IAAAN,iBAAA,KAAA,MAAA,GAAA,MAAA,GAAhBA,iBAAA,CAAkBO,EAAE,CAAA,CACtD;EAED,IAAAC,IAAA,GAA6BC,iBAAiB,CAACC,QAAQ,CAACT,cAAc,CAAC,IAAI,EAAE;IAArEU,IAAI,GAAAH,IAAA,CAAJG,IAAI;IAAEC,UAAU,GAAAJ,IAAA,CAAVI,UAAU;EACxB,IAAMC,OAAO,GAAGD,UAAU,IAAIE,IAAI,CAACC,GAAG,EAAE,GAAGC,0BAA0B;EAErE,OAAOP,iBAAiB,CAACR,cAAc,EAAEgB,YAAY,CAACC,KAAK,EAAAC,aAAA,CAAA;AACzDC,IAAAA,SAAS,EAAEJ,0BAA0B;AACrCK,IAAAA,OAAO,EAAER,OAAO,IAAIS,YAAY,CAACX,IAAI;GAAC,EACnCZ,OAAO,CACX,CAAC;AACJ;;;;"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export { default } from './useIsElementVisibleInDom.js';
|
|
2
|
-
import '../../slicedToArray-
|
|
3
|
-
import '../../nonIterableRest-BZgkRyt5.js';
|
|
2
|
+
import '../../slicedToArray-DmsZvA_9.js';
|
|
4
3
|
import '../../unsupportedIterableToArray-Dqz8Y8_I.js';
|
|
5
4
|
import 'react';
|
|
6
5
|
import './useForceUpdate.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { _ as _slicedToArray } from '../../slicedToArray-
|
|
1
|
+
import { _ as _slicedToArray } from '../../slicedToArray-DmsZvA_9.js';
|
|
2
2
|
import { useState } from 'react';
|
|
3
|
-
import '../../nonIterableRest-BZgkRyt5.js';
|
|
4
3
|
import '../../unsupportedIterableToArray-Dqz8Y8_I.js';
|
|
5
4
|
|
|
6
5
|
var useForceUpdate = function useForceUpdate() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useForceUpdate.js","sources":["../../../src/react-utils/useIsElementVisibleInDom/useForceUpdate.js"],"sourcesContent":["import { useState } from \"react\";\n\nconst useForceUpdate = () => {\n // eslint-disable-next-line react/hook-use-state\n const [, setValue] = useState(0);\n\n return () => setValue(value => value + 1);\n};\n\nexport default useForceUpdate;\n"],"names":["useForceUpdate","_useState","useState","_useState2","_slicedToArray","setValue","value"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useForceUpdate.js","sources":["../../../src/react-utils/useIsElementVisibleInDom/useForceUpdate.js"],"sourcesContent":["import { useState } from \"react\";\n\nconst useForceUpdate = () => {\n // eslint-disable-next-line react/hook-use-state\n const [, setValue] = useState(0);\n\n return () => setValue(value => value + 1);\n};\n\nexport default useForceUpdate;\n"],"names":["useForceUpdate","_useState","useState","_useState2","_slicedToArray","setValue","value"],"mappings":";;;;AAEA,IAAMA,cAAc,GAAG,SAAjBA,cAAcA,GAAS;AAC3B;AACA,EAAA,IAAAC,SAAA,GAAqBC,QAAQ,CAAC,CAAC,CAAC;IAAAC,UAAA,GAAAC,cAAA,CAAAH,SAAA,EAAA,CAAA,CAAA;AAAvBI,IAAAA,QAAQ,GAAAF,UAAA,CAAA,CAAA,CAAA;EAEjB,OAAO,YAAA;IAAA,OAAME,QAAQ,CAAC,UAAAC,KAAK,EAAA;MAAA,OAAIA,KAAK,GAAG,CAAC;IAAA,CAAA,CAAC;AAAA,EAAA,CAAA;AAC3C;;;;"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { _ as _slicedToArray } from '../../slicedToArray-
|
|
1
|
+
import { _ as _slicedToArray } from '../../slicedToArray-DmsZvA_9.js';
|
|
2
2
|
import { useState, useEffect } from 'react';
|
|
3
3
|
import useForceUpdate from './useForceUpdate.js';
|
|
4
|
-
import '../../nonIterableRest-BZgkRyt5.js';
|
|
5
4
|
import '../../unsupportedIterableToArray-Dqz8Y8_I.js';
|
|
6
5
|
|
|
7
6
|
var useIsElementVisibleInDom = function useIsElementVisibleInDom(target) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIsElementVisibleInDom.js","sources":["../../../src/react-utils/useIsElementVisibleInDom/useIsElementVisibleInDom.js"],"sourcesContent":["import { useEffect, useState } from \"react\";\n\nimport useForceUpdate from \"./useForceUpdate\";\n\nconst useIsElementVisibleInDom = (target, options = undefined) => {\n const [isIntersecting, setIsIntersecting] = useState(false);\n const forceUpdate = useForceUpdate();\n\n useEffect(() => {\n if (!target) return forceUpdate();\n\n const observer = new IntersectionObserver(\n ([entry]) => setIsIntersecting(entry.isIntersecting),\n options\n );\n observer.observe(target);\n\n return () => observer.unobserve(target);\n }, [target, options]);\n\n return isIntersecting;\n};\n\nexport default useIsElementVisibleInDom;\n"],"names":["useIsElementVisibleInDom","target","options","arguments","length","undefined","_useState","useState","_useState2","_slicedToArray","isIntersecting","setIsIntersecting","forceUpdate","useForceUpdate","useEffect","observer","IntersectionObserver","_ref","_ref2","entry","observe","unobserve"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useIsElementVisibleInDom.js","sources":["../../../src/react-utils/useIsElementVisibleInDom/useIsElementVisibleInDom.js"],"sourcesContent":["import { useEffect, useState } from \"react\";\n\nimport useForceUpdate from \"./useForceUpdate\";\n\nconst useIsElementVisibleInDom = (target, options = undefined) => {\n const [isIntersecting, setIsIntersecting] = useState(false);\n const forceUpdate = useForceUpdate();\n\n useEffect(() => {\n if (!target) return forceUpdate();\n\n const observer = new IntersectionObserver(\n ([entry]) => setIsIntersecting(entry.isIntersecting),\n options\n );\n observer.observe(target);\n\n return () => observer.unobserve(target);\n }, [target, options]);\n\n return isIntersecting;\n};\n\nexport default useIsElementVisibleInDom;\n"],"names":["useIsElementVisibleInDom","target","options","arguments","length","undefined","_useState","useState","_useState2","_slicedToArray","isIntersecting","setIsIntersecting","forceUpdate","useForceUpdate","useEffect","observer","IntersectionObserver","_ref","_ref2","entry","observe","unobserve"],"mappings":";;;;;AAIA,IAAMA,wBAAwB,GAAG,SAA3BA,wBAAwBA,CAAIC,MAAM,EAA0B;AAAA,EAAA,IAAxBC,OAAO,GAAAC,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAGE,SAAS;AAC3D,EAAA,IAAAC,SAAA,GAA4CC,QAAQ,CAAC,KAAK,CAAC;IAAAC,UAAA,GAAAC,cAAA,CAAAH,SAAA,EAAA,CAAA,CAAA;AAApDI,IAAAA,cAAc,GAAAF,UAAA,CAAA,CAAA,CAAA;AAAEG,IAAAA,iBAAiB,GAAAH,UAAA,CAAA,CAAA,CAAA;AACxC,EAAA,IAAMI,WAAW,GAAGC,cAAc,EAAE;AAEpCC,EAAAA,SAAS,CAAC,YAAM;AACd,IAAA,IAAI,CAACb,MAAM,EAAE,OAAOW,WAAW,EAAE;AAEjC,IAAA,IAAMG,QAAQ,GAAG,IAAIC,oBAAoB,CACvC,UAAAC,IAAA,EAAA;AAAA,MAAA,IAAAC,KAAA,GAAAT,cAAA,CAAAQ,IAAA,EAAA,CAAA,CAAA;AAAEE,QAAAA,KAAK,GAAAD,KAAA,CAAA,CAAA,CAAA;AAAA,MAAA,OAAMP,iBAAiB,CAACQ,KAAK,CAACT,cAAc,CAAC;AAAA,IAAA,CAAA,EACpDR,OACF,CAAC;AACDa,IAAAA,QAAQ,CAACK,OAAO,CAACnB,MAAM,CAAC;IAExB,OAAO,YAAA;AAAA,MAAA,OAAMc,QAAQ,CAACM,SAAS,CAACpB,MAAM,CAAC;AAAA,IAAA,CAAA;AACzC,EAAA,CAAC,EAAE,CAACA,MAAM,EAAEC,OAAO,CAAC,CAAC;AAErB,EAAA,OAAOQ,cAAc;AACvB;;;;"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export { default } from './useLocalStorage.js';
|
|
2
|
-
import '../../slicedToArray-
|
|
3
|
-
import '../../nonIterableRest-BZgkRyt5.js';
|
|
2
|
+
import '../../slicedToArray-DmsZvA_9.js';
|
|
4
3
|
import '../../unsupportedIterableToArray-Dqz8Y8_I.js';
|
|
5
4
|
import 'react';
|
|
6
5
|
import 'ramda';
|
|
@@ -19,8 +18,7 @@ import 'qs';
|
|
|
19
18
|
import '../../utils/datetime.js';
|
|
20
19
|
import '../../utils/constants.js';
|
|
21
20
|
import '../../utils/dayjs.js';
|
|
22
|
-
import '../../toConsumableArray-
|
|
23
|
-
import '../../iterableToArray-Db9fVUMi.js';
|
|
21
|
+
import '../../toConsumableArray-B7CFjjkW.js';
|
|
24
22
|
import '../../createClass-CuM_Q_Jb.js';
|
|
25
23
|
import 'dayjs';
|
|
26
24
|
import '../../utils/dayjsFormatOverrides/default.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _slicedToArray } from '../../slicedToArray-
|
|
1
|
+
import { _ as _slicedToArray } from '../../slicedToArray-DmsZvA_9.js';
|
|
2
2
|
import { useState } from 'react';
|
|
3
3
|
import { isNil } from 'ramda';
|
|
4
4
|
import 'axios';
|
|
@@ -14,7 +14,6 @@ import '@bigbinary/neeto-cist';
|
|
|
14
14
|
import '@bigbinary/neeto-time-zones';
|
|
15
15
|
import 'ua-parser-js';
|
|
16
16
|
import '../../utils/dayjs.js';
|
|
17
|
-
import '../../nonIterableRest-BZgkRyt5.js';
|
|
18
17
|
import '../../unsupportedIterableToArray-Dqz8Y8_I.js';
|
|
19
18
|
import '../../objectWithoutProperties-DN7d1SzH.js';
|
|
20
19
|
import '../../asyncToGenerator-CPKhuIh2.js';
|
|
@@ -27,8 +26,7 @@ import '../../utils/constants.js';
|
|
|
27
26
|
import '../../utils/dayjsFormatOverrides/default.js';
|
|
28
27
|
import '../../utils/localePlugin.js';
|
|
29
28
|
import '@rails/actioncable';
|
|
30
|
-
import '../../toConsumableArray-
|
|
31
|
-
import '../../iterableToArray-Db9fVUMi.js';
|
|
29
|
+
import '../../toConsumableArray-B7CFjjkW.js';
|
|
32
30
|
import '../../createClass-CuM_Q_Jb.js';
|
|
33
31
|
|
|
34
32
|
var getStorageValue = function getStorageValue(key, defaultValue) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLocalStorage.js","sources":["../../../src/react-utils/useLocalStorage/useLocalStorage.js"],"sourcesContent":["/* eslint-disable @bigbinary/neeto/no-local-storage */\n\nimport { useState } from \"react\";\n\nimport { isNil } from \"ramda\";\nimport { removeFromLocalStorage, setToLocalStorage } from \"utils\";\n\nconst getStorageValue = (key, defaultValue) => {\n try {\n const storedValue = localStorage.getItem(key);\n\n return storedValue ? JSON.parse(storedValue) : defaultValue;\n } catch (error) {\n logger.error(error);\n\n return defaultValue;\n }\n};\n\nconst useLocalStorage = (key, defaultValue) => {\n const [storedValue, setStoredValue] = useState(() =>\n getStorageValue(key, defaultValue)\n );\n\n const setValue = value =>\n setStoredValue(prevStoredValue => {\n const newValue =\n typeof value === \"function\" ? value(prevStoredValue) : value;\n\n if (isNil(newValue)) {\n removeFromLocalStorage(key);\n } else {\n setToLocalStorage(key, newValue);\n }\n\n return newValue;\n });\n\n return [storedValue, setValue];\n};\n\nexport default useLocalStorage;\n"],"names":["getStorageValue","key","defaultValue","storedValue","localStorage","getItem","JSON","parse","error","logger","useLocalStorage","_useState","useState","_useState2","_slicedToArray","setStoredValue","setValue","value","prevStoredValue","newValue","isNil","removeFromLocalStorage","setToLocalStorage"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useLocalStorage.js","sources":["../../../src/react-utils/useLocalStorage/useLocalStorage.js"],"sourcesContent":["/* eslint-disable @bigbinary/neeto/no-local-storage */\n\nimport { useState } from \"react\";\n\nimport { isNil } from \"ramda\";\nimport { removeFromLocalStorage, setToLocalStorage } from \"utils\";\n\nconst getStorageValue = (key, defaultValue) => {\n try {\n const storedValue = localStorage.getItem(key);\n\n return storedValue ? JSON.parse(storedValue) : defaultValue;\n } catch (error) {\n logger.error(error);\n\n return defaultValue;\n }\n};\n\nconst useLocalStorage = (key, defaultValue) => {\n const [storedValue, setStoredValue] = useState(() =>\n getStorageValue(key, defaultValue)\n );\n\n const setValue = value =>\n setStoredValue(prevStoredValue => {\n const newValue =\n typeof value === \"function\" ? value(prevStoredValue) : value;\n\n if (isNil(newValue)) {\n removeFromLocalStorage(key);\n } else {\n setToLocalStorage(key, newValue);\n }\n\n return newValue;\n });\n\n return [storedValue, setValue];\n};\n\nexport default useLocalStorage;\n"],"names":["getStorageValue","key","defaultValue","storedValue","localStorage","getItem","JSON","parse","error","logger","useLocalStorage","_useState","useState","_useState2","_slicedToArray","setStoredValue","setValue","value","prevStoredValue","newValue","isNil","removeFromLocalStorage","setToLocalStorage"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,IAAMA,eAAe,GAAG,SAAlBA,eAAeA,CAAIC,GAAG,EAAEC,YAAY,EAAK;EAC7C,IAAI;AACF,IAAA,IAAMC,WAAW,GAAGC,YAAY,CAACC,OAAO,CAACJ,GAAG,CAAC;IAE7C,OAAOE,WAAW,GAAGG,IAAI,CAACC,KAAK,CAACJ,WAAW,CAAC,GAAGD,YAAY;EAC7D,CAAC,CAAC,OAAOM,KAAK,EAAE;AACdC,IAAAA,MAAM,CAACD,KAAK,CAACA,KAAK,CAAC;AAEnB,IAAA,OAAON,YAAY;AACrB,EAAA;AACF,CAAC;AAED,IAAMQ,eAAe,GAAG,SAAlBA,eAAeA,CAAIT,GAAG,EAAEC,YAAY,EAAK;EAC7C,IAAAS,SAAA,GAAsCC,QAAQ,CAAC,YAAA;AAAA,MAAA,OAC7CZ,eAAe,CAACC,GAAG,EAAEC,YAAY,CAAC;AAAA,IAAA,CACpC,CAAC;IAAAW,UAAA,GAAAC,cAAA,CAAAH,SAAA,EAAA,CAAA,CAAA;AAFMR,IAAAA,WAAW,GAAAU,UAAA,CAAA,CAAA,CAAA;AAAEE,IAAAA,cAAc,GAAAF,UAAA,CAAA,CAAA,CAAA;AAIlC,EAAA,IAAMG,QAAQ,GAAG,SAAXA,QAAQA,CAAGC,KAAK,EAAA;AAAA,IAAA,OACpBF,cAAc,CAAC,UAAAG,eAAe,EAAI;AAChC,MAAA,IAAMC,QAAQ,GACZ,OAAOF,KAAK,KAAK,UAAU,GAAGA,KAAK,CAACC,eAAe,CAAC,GAAGD,KAAK;AAE9D,MAAA,IAAIG,KAAK,CAACD,QAAQ,CAAC,EAAE;QACnBE,sBAAsB,CAACpB,GAAG,CAAC;AAC7B,MAAA,CAAC,MAAM;AACLqB,QAAAA,iBAAiB,CAACrB,GAAG,EAAEkB,QAAQ,CAAC;AAClC,MAAA;AAEA,MAAA,OAAOA,QAAQ;AACjB,IAAA,CAAC,CAAC;AAAA,EAAA,CAAA;AAEJ,EAAA,OAAO,CAAChB,WAAW,EAAEa,QAAQ,CAAC;AAChC;;;;"}
|
|
@@ -8,8 +8,7 @@ import 'ramda';
|
|
|
8
8
|
import '../constants/constants.js';
|
|
9
9
|
import '../../utils/general.js';
|
|
10
10
|
import '../../objectWithoutProperties-DN7d1SzH.js';
|
|
11
|
-
import '../../slicedToArray-
|
|
12
|
-
import '../../nonIterableRest-BZgkRyt5.js';
|
|
11
|
+
import '../../slicedToArray-DmsZvA_9.js';
|
|
13
12
|
import '../../unsupportedIterableToArray-Dqz8Y8_I.js';
|
|
14
13
|
import '../../asyncToGenerator-CPKhuIh2.js';
|
|
15
14
|
import 'i18next';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
|
|
@@ -7,8 +7,7 @@ import { getFromLocalStorage, setToLocalStorage } from '../../utils/general.js';
|
|
|
7
7
|
import '../../toPropertyKey-BAXkSB3z.js';
|
|
8
8
|
import '../../typeof-D-UKOauR.js';
|
|
9
9
|
import '../../objectWithoutProperties-DN7d1SzH.js';
|
|
10
|
-
import '../../slicedToArray-
|
|
11
|
-
import '../../nonIterableRest-BZgkRyt5.js';
|
|
10
|
+
import '../../slicedToArray-DmsZvA_9.js';
|
|
12
11
|
import '../../unsupportedIterableToArray-Dqz8Y8_I.js';
|
|
13
12
|
import '../../asyncToGenerator-CPKhuIh2.js';
|
|
14
13
|
import 'i18next';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePersistedQuery.js","sources":["../../../src/react-utils/usePersistedQuery/usePersistedQuery.js"],"sourcesContent":["import { useEffect } from \"react\";\n\nimport { useQuery } from \"@tanstack/react-query\";\nimport { isNil } from \"ramda\";\nimport { QUERY_CACHE_NAME_SPACE } from \"react-utils/constants\";\nimport { getFromLocalStorage, setToLocalStorage } from \"utils/general\";\n\nconst localStorageQueryCache = {\n set: (key, data) => {\n const cache = localStorageQueryCache.getAll();\n const newCache = { ...cache, [key]: { data, modifiedAt: Date.now() } };\n setToLocalStorage(QUERY_CACHE_NAME_SPACE, newCache);\n },\n getAll: () => {\n const cache = getFromLocalStorage(QUERY_CACHE_NAME_SPACE);\n if (!cache) return {};\n\n return cache;\n },\n get: key => localStorageQueryCache.getAll()[key],\n};\n\nconst isOutdated = (localCache, staleTime) => {\n if (isNil(localCache)) return true;\n\n if (isNil(staleTime)) return false;\n\n return localCache.modifiedAt <= Date.now() - staleTime;\n};\n\nconst usePersistedQuery = (queryKey, fetch, options) => {\n const queryResult = useQuery({\n queryKey,\n queryFn: fetch,\n ...options,\n });\n const localCache = localStorageQueryCache.get(queryKey);\n\n useEffect(() => {\n if (!queryResult.isSuccess) return;\n localStorageQueryCache.set(queryKey, queryResult.data);\n }, [queryKey, queryResult.data, queryResult.isSuccess]);\n\n if (isOutdated(localCache, options?.staleTime)) {\n return { ...queryResult, isFreshLoading: queryResult.isLoading };\n }\n\n return {\n ...queryResult,\n data: queryResult.data || localCache.data,\n isFreshLoading: false,\n };\n};\n\nusePersistedQuery.getCache = localStorageQueryCache.get;\n\nexport default usePersistedQuery;\n"],"names":["localStorageQueryCache","set","key","data","cache","getAll","newCache","_objectSpread","_defineProperty","modifiedAt","Date","now","setToLocalStorage","QUERY_CACHE_NAME_SPACE","getFromLocalStorage","get","isOutdated","localCache","staleTime","isNil","usePersistedQuery","queryKey","fetch","options","queryResult","useQuery","queryFn","useEffect","isSuccess","isFreshLoading","isLoading","getCache"],"mappings":"
|
|
1
|
+
{"version":3,"file":"usePersistedQuery.js","sources":["../../../src/react-utils/usePersistedQuery/usePersistedQuery.js"],"sourcesContent":["import { useEffect } from \"react\";\n\nimport { useQuery } from \"@tanstack/react-query\";\nimport { isNil } from \"ramda\";\nimport { QUERY_CACHE_NAME_SPACE } from \"react-utils/constants\";\nimport { getFromLocalStorage, setToLocalStorage } from \"utils/general\";\n\nconst localStorageQueryCache = {\n set: (key, data) => {\n const cache = localStorageQueryCache.getAll();\n const newCache = { ...cache, [key]: { data, modifiedAt: Date.now() } };\n setToLocalStorage(QUERY_CACHE_NAME_SPACE, newCache);\n },\n getAll: () => {\n const cache = getFromLocalStorage(QUERY_CACHE_NAME_SPACE);\n if (!cache) return {};\n\n return cache;\n },\n get: key => localStorageQueryCache.getAll()[key],\n};\n\nconst isOutdated = (localCache, staleTime) => {\n if (isNil(localCache)) return true;\n\n if (isNil(staleTime)) return false;\n\n return localCache.modifiedAt <= Date.now() - staleTime;\n};\n\nconst usePersistedQuery = (queryKey, fetch, options) => {\n const queryResult = useQuery({\n queryKey,\n queryFn: fetch,\n ...options,\n });\n const localCache = localStorageQueryCache.get(queryKey);\n\n useEffect(() => {\n if (!queryResult.isSuccess) return;\n localStorageQueryCache.set(queryKey, queryResult.data);\n }, [queryKey, queryResult.data, queryResult.isSuccess]);\n\n if (isOutdated(localCache, options?.staleTime)) {\n return { ...queryResult, isFreshLoading: queryResult.isLoading };\n }\n\n return {\n ...queryResult,\n data: queryResult.data || localCache.data,\n isFreshLoading: false,\n };\n};\n\nusePersistedQuery.getCache = localStorageQueryCache.get;\n\nexport default usePersistedQuery;\n"],"names":["localStorageQueryCache","set","key","data","cache","getAll","newCache","_objectSpread","_defineProperty","modifiedAt","Date","now","setToLocalStorage","QUERY_CACHE_NAME_SPACE","getFromLocalStorage","get","isOutdated","localCache","staleTime","isNil","usePersistedQuery","queryKey","fetch","options","queryResult","useQuery","queryFn","useEffect","isSuccess","isFreshLoading","isLoading","getCache"],"mappings":";;;;;;;;;;;;;;;;;;;AAOA,IAAMA,sBAAsB,GAAG;AAC7BC,EAAAA,GAAG,EAAE,SAALA,GAAGA,CAAGC,GAAG,EAAEC,IAAI,EAAK;AAClB,IAAA,IAAMC,KAAK,GAAGJ,sBAAsB,CAACK,MAAM,EAAE;IAC7C,IAAMC,QAAQ,GAAAC,aAAA,CAAAA,aAAA,CAAA,EAAA,EAAQH,KAAK,CAAA,EAAA,EAAA,EAAAI,eAAA,CAAA,EAAA,EAAGN,GAAG,EAAG;AAAEC,MAAAA,IAAI,EAAJA,IAAI;AAAEM,MAAAA,UAAU,EAAEC,IAAI,CAACC,GAAG;AAAG,KAAC,CAAA,CAAE;AACtEC,IAAAA,iBAAiB,CAACC,sBAAsB,EAAEP,QAAQ,CAAC;EACrD,CAAC;AACDD,EAAAA,MAAM,EAAE,SAARA,MAAMA,GAAQ;AACZ,IAAA,IAAMD,KAAK,GAAGU,mBAAmB,CAACD,sBAAsB,CAAC;AACzD,IAAA,IAAI,CAACT,KAAK,EAAE,OAAO,EAAE;AAErB,IAAA,OAAOA,KAAK;EACd,CAAC;AACDW,EAAAA,GAAG,EAAE,SAALA,GAAGA,CAAEb,GAAG,EAAA;AAAA,IAAA,OAAIF,sBAAsB,CAACK,MAAM,EAAE,CAACH,GAAG,CAAC;AAAA,EAAA;AAClD,CAAC;AAED,IAAMc,UAAU,GAAG,SAAbA,UAAUA,CAAIC,UAAU,EAAEC,SAAS,EAAK;AAC5C,EAAA,IAAIC,KAAK,CAACF,UAAU,CAAC,EAAE,OAAO,IAAI;AAElC,EAAA,IAAIE,KAAK,CAACD,SAAS,CAAC,EAAE,OAAO,KAAK;EAElC,OAAOD,UAAU,CAACR,UAAU,IAAIC,IAAI,CAACC,GAAG,EAAE,GAAGO,SAAS;AACxD,CAAC;AAED,IAAME,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAIC,QAAQ,EAAEC,KAAK,EAAEC,OAAO,EAAK;AACtD,EAAA,IAAMC,WAAW,GAAGC,QAAQ,CAAAlB,aAAA,CAAA;AAC1Bc,IAAAA,QAAQ,EAARA,QAAQ;AACRK,IAAAA,OAAO,EAAEJ;GAAK,EACXC,OAAO,CACX,CAAC;AACF,EAAA,IAAMN,UAAU,GAAGjB,sBAAsB,CAACe,GAAG,CAACM,QAAQ,CAAC;AAEvDM,EAAAA,SAAS,CAAC,YAAM;AACd,IAAA,IAAI,CAACH,WAAW,CAACI,SAAS,EAAE;IAC5B5B,sBAAsB,CAACC,GAAG,CAACoB,QAAQ,EAAEG,WAAW,CAACrB,IAAI,CAAC;AACxD,EAAA,CAAC,EAAE,CAACkB,QAAQ,EAAEG,WAAW,CAACrB,IAAI,EAAEqB,WAAW,CAACI,SAAS,CAAC,CAAC;AAEvD,EAAA,IAAIZ,UAAU,CAACC,UAAU,EAAEM,OAAO,KAAA,IAAA,IAAPA,OAAO,KAAA,MAAA,GAAA,MAAA,GAAPA,OAAO,CAAEL,SAAS,CAAC,EAAE;AAC9C,IAAA,OAAAX,aAAA,CAAAA,aAAA,CAAA,EAAA,EAAYiB,WAAW,CAAA,EAAA,EAAA,EAAA;MAAEK,cAAc,EAAEL,WAAW,CAACM;AAAS,KAAA,CAAA;AAChE,EAAA;AAEA,EAAA,OAAAvB,aAAA,CAAAA,aAAA,CAAA,EAAA,EACKiB,WAAW,CAAA,EAAA,EAAA,EAAA;AACdrB,IAAAA,IAAI,EAAEqB,WAAW,CAACrB,IAAI,IAAIc,UAAU,CAACd,IAAI;AACzC0B,IAAAA,cAAc,EAAE;AAAK,GAAA,CAAA;AAEzB;AAEAT,iBAAiB,CAACW,QAAQ,GAAG/B,sBAAsB,CAACe,GAAG;;;;"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export { default } from './usePrefersReducedMotion.js';
|
|
2
|
-
import '../../slicedToArray-
|
|
3
|
-
import '../../nonIterableRest-BZgkRyt5.js';
|
|
2
|
+
import '../../slicedToArray-DmsZvA_9.js';
|
|
4
3
|
import '../../unsupportedIterableToArray-Dqz8Y8_I.js';
|
|
5
4
|
import 'react';
|
|
6
5
|
import './constants.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { _ as _slicedToArray } from '../../slicedToArray-
|
|
1
|
+
import { _ as _slicedToArray } from '../../slicedToArray-DmsZvA_9.js';
|
|
2
2
|
import { useState, useEffect } from 'react';
|
|
3
3
|
import { QUERY } from './constants.js';
|
|
4
|
-
import '../../nonIterableRest-BZgkRyt5.js';
|
|
5
4
|
import '../../unsupportedIterableToArray-Dqz8Y8_I.js';
|
|
6
5
|
|
|
7
6
|
var isRenderingOnServer = typeof window === "undefined";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePrefersReducedMotion.js","sources":["../../../src/react-utils/usePrefersReducedMotion/usePrefersReducedMotion.js"],"sourcesContent":["import { useState, useEffect } from \"react\";\n\nimport { QUERY } from \"./constants\";\n\nconst isRenderingOnServer = typeof window === \"undefined\";\n\nconst getInitialState = () =>\n // For our initial server render, we won't know if the user\n // prefers reduced motion, but it doesn't matter. This value\n // will be overwritten on the client, before any animations\n // occur.\n isRenderingOnServer ? true : !window.matchMedia(QUERY).matches;\n\nconst usePrefersReducedMotion = () => {\n const [prefersReducedMotion, setPrefersReducedMotion] =\n useState(getInitialState);\n\n useEffect(() => {\n if (isRenderingOnServer) return undefined;\n\n const mediaQueryList = window.matchMedia(QUERY);\n\n const listener = event => {\n setPrefersReducedMotion(!event.matches);\n };\n\n if (mediaQueryList.addEventListener) {\n mediaQueryList.addEventListener(\"change\", listener);\n } else {\n mediaQueryList.addListener(listener);\n }\n\n return () => {\n if (mediaQueryList.removeEventListener) {\n mediaQueryList.removeEventListener(\"change\", listener);\n } else {\n mediaQueryList.removeListener(listener);\n }\n };\n }, []);\n\n return prefersReducedMotion;\n};\n\nexport default usePrefersReducedMotion;\n"],"names":["isRenderingOnServer","window","getInitialState","matchMedia","QUERY","matches","usePrefersReducedMotion","_useState","useState","_useState2","_slicedToArray","prefersReducedMotion","setPrefersReducedMotion","useEffect","undefined","mediaQueryList","listener","event","addEventListener","addListener","removeEventListener","removeListener"],"mappings":"
|
|
1
|
+
{"version":3,"file":"usePrefersReducedMotion.js","sources":["../../../src/react-utils/usePrefersReducedMotion/usePrefersReducedMotion.js"],"sourcesContent":["import { useState, useEffect } from \"react\";\n\nimport { QUERY } from \"./constants\";\n\nconst isRenderingOnServer = typeof window === \"undefined\";\n\nconst getInitialState = () =>\n // For our initial server render, we won't know if the user\n // prefers reduced motion, but it doesn't matter. This value\n // will be overwritten on the client, before any animations\n // occur.\n isRenderingOnServer ? true : !window.matchMedia(QUERY).matches;\n\nconst usePrefersReducedMotion = () => {\n const [prefersReducedMotion, setPrefersReducedMotion] =\n useState(getInitialState);\n\n useEffect(() => {\n if (isRenderingOnServer) return undefined;\n\n const mediaQueryList = window.matchMedia(QUERY);\n\n const listener = event => {\n setPrefersReducedMotion(!event.matches);\n };\n\n if (mediaQueryList.addEventListener) {\n mediaQueryList.addEventListener(\"change\", listener);\n } else {\n mediaQueryList.addListener(listener);\n }\n\n return () => {\n if (mediaQueryList.removeEventListener) {\n mediaQueryList.removeEventListener(\"change\", listener);\n } else {\n mediaQueryList.removeListener(listener);\n }\n };\n }, []);\n\n return prefersReducedMotion;\n};\n\nexport default usePrefersReducedMotion;\n"],"names":["isRenderingOnServer","window","getInitialState","matchMedia","QUERY","matches","usePrefersReducedMotion","_useState","useState","_useState2","_slicedToArray","prefersReducedMotion","setPrefersReducedMotion","useEffect","undefined","mediaQueryList","listener","event","addEventListener","addListener","removeEventListener","removeListener"],"mappings":";;;;;AAIA,IAAMA,mBAAmB,GAAG,OAAOC,MAAM,KAAK,WAAW;AAEzD,IAAMC,eAAe,GAAG,SAAlBA,eAAeA,GAAA;AAAA,EAAA;AACnB;AACA;AACA;AACA;IACAF,mBAAmB,GAAG,IAAI,GAAG,CAACC,MAAM,CAACE,UAAU,CAACC,KAAK,CAAC,CAACC;AAAO;AAAA,CAAA;AAEhE,IAAMC,uBAAuB,GAAG,SAA1BA,uBAAuBA,GAAS;AACpC,EAAA,IAAAC,SAAA,GACEC,QAAQ,CAACN,eAAe,CAAC;IAAAO,UAAA,GAAAC,cAAA,CAAAH,SAAA,EAAA,CAAA,CAAA;AADpBI,IAAAA,oBAAoB,GAAAF,UAAA,CAAA,CAAA,CAAA;AAAEG,IAAAA,uBAAuB,GAAAH,UAAA,CAAA,CAAA,CAAA;AAGpDI,EAAAA,SAAS,CAAC,YAAM;IACd,IAAIb,mBAAmB,EAAE,OAAOc,SAAS;AAEzC,IAAA,IAAMC,cAAc,GAAGd,MAAM,CAACE,UAAU,CAACC,KAAK,CAAC;AAE/C,IAAA,IAAMY,QAAQ,GAAG,SAAXA,QAAQA,CAAGC,KAAK,EAAI;AACxBL,MAAAA,uBAAuB,CAAC,CAACK,KAAK,CAACZ,OAAO,CAAC;IACzC,CAAC;IAED,IAAIU,cAAc,CAACG,gBAAgB,EAAE;AACnCH,MAAAA,cAAc,CAACG,gBAAgB,CAAC,QAAQ,EAAEF,QAAQ,CAAC;AACrD,IAAA,CAAC,MAAM;AACLD,MAAAA,cAAc,CAACI,WAAW,CAACH,QAAQ,CAAC;AACtC,IAAA;AAEA,IAAA,OAAO,YAAM;MACX,IAAID,cAAc,CAACK,mBAAmB,EAAE;AACtCL,QAAAA,cAAc,CAACK,mBAAmB,CAAC,QAAQ,EAAEJ,QAAQ,CAAC;AACxD,MAAA,CAAC,MAAM;AACLD,QAAAA,cAAc,CAACM,cAAc,CAACL,QAAQ,CAAC;AACzC,MAAA;IACF,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;AAEN,EAAA,OAAOL,oBAAoB;AAC7B;;;;"}
|
|
@@ -2,8 +2,7 @@ export { default } from './useQueryParams.js';
|
|
|
2
2
|
import 'react-router-dom';
|
|
3
3
|
import '../../utils/general.js';
|
|
4
4
|
import '../../objectWithoutProperties-DN7d1SzH.js';
|
|
5
|
-
import '../../slicedToArray-
|
|
6
|
-
import '../../nonIterableRest-BZgkRyt5.js';
|
|
5
|
+
import '../../slicedToArray-DmsZvA_9.js';
|
|
7
6
|
import '../../unsupportedIterableToArray-Dqz8Y8_I.js';
|
|
8
7
|
import '../../asyncToGenerator-CPKhuIh2.js';
|
|
9
8
|
import '../../defineProperty-Dcer7TUY.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { useLocation } from 'react-router-dom';
|
|
2
2
|
import { parseQueryParams } from '../../utils/general.js';
|
|
3
3
|
import '../../objectWithoutProperties-DN7d1SzH.js';
|
|
4
|
-
import '../../slicedToArray-
|
|
5
|
-
import '../../nonIterableRest-BZgkRyt5.js';
|
|
4
|
+
import '../../slicedToArray-DmsZvA_9.js';
|
|
6
5
|
import '../../unsupportedIterableToArray-Dqz8Y8_I.js';
|
|
7
6
|
import '../../asyncToGenerator-CPKhuIh2.js';
|
|
8
7
|
import '../../defineProperty-Dcer7TUY.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useQueryParams.js","sources":["../../../src/react-utils/useQueryParams/useQueryParams.js"],"sourcesContent":["import { useLocation } from \"react-router-dom\";\nimport { parseQueryParams } from \"utils/general\";\n\nconst useQueryParams = options => {\n const location = useLocation();\n\n return parseQueryParams(location?.search, options);\n};\n\nexport default useQueryParams;\n"],"names":["useQueryParams","options","location","useLocation","parseQueryParams","search"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useQueryParams.js","sources":["../../../src/react-utils/useQueryParams/useQueryParams.js"],"sourcesContent":["import { useLocation } from \"react-router-dom\";\nimport { parseQueryParams } from \"utils/general\";\n\nconst useQueryParams = options => {\n const location = useLocation();\n\n return parseQueryParams(location?.search, options);\n};\n\nexport default useQueryParams;\n"],"names":["useQueryParams","options","location","useLocation","parseQueryParams","search"],"mappings":";;;;;;;;;;;;;;;AAGA,IAAMA,cAAc,GAAG,SAAjBA,cAAcA,CAAGC,OAAO,EAAI;AAChC,EAAA,IAAMC,QAAQ,GAAGC,WAAW,EAAE;EAE9B,OAAOC,gBAAgB,CAACF,QAAQ,KAAA,IAAA,IAARA,QAAQ,KAAA,MAAA,GAAA,MAAA,GAARA,QAAQ,CAAEG,MAAM,EAAEJ,OAAO,CAAC;AACpD;;;;"}
|
|
@@ -8,8 +8,7 @@ import '../constants/constants.js';
|
|
|
8
8
|
import '../withImmutableActions/withImmutableActions.js';
|
|
9
9
|
import '../../utils/general.js';
|
|
10
10
|
import '../../objectWithoutProperties-DN7d1SzH.js';
|
|
11
|
-
import '../../slicedToArray-
|
|
12
|
-
import '../../nonIterableRest-BZgkRyt5.js';
|
|
11
|
+
import '../../slicedToArray-DmsZvA_9.js';
|
|
13
12
|
import '../../unsupportedIterableToArray-Dqz8Y8_I.js';
|
|
14
13
|
import '../../asyncToGenerator-CPKhuIh2.js';
|
|
15
14
|
import 'i18next';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
|
|
@@ -9,8 +9,7 @@ import { useShallow } from 'zustand/shallow';
|
|
|
9
9
|
import '../../toPropertyKey-BAXkSB3z.js';
|
|
10
10
|
import '../../typeof-D-UKOauR.js';
|
|
11
11
|
import '../../objectWithoutProperties-DN7d1SzH.js';
|
|
12
|
-
import '../../slicedToArray-
|
|
13
|
-
import '../../nonIterableRest-BZgkRyt5.js';
|
|
12
|
+
import '../../slicedToArray-DmsZvA_9.js';
|
|
14
13
|
import '../../unsupportedIterableToArray-Dqz8Y8_I.js';
|
|
15
14
|
import '../../asyncToGenerator-CPKhuIh2.js';
|
|
16
15
|
import 'i18next';
|
package/dist/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRegisterNavigationCheckpoint.js","sources":["../../../src/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js"],"sourcesContent":["import { useEffect } from \"react\";\n\nimport { mergeDeepLeft, pick, prop, dissoc } from \"ramda\";\nimport { STORAGE_KEY } from \"react-utils/constants\";\nimport withImmutableActions from \"react-utils/withImmutableActions\";\nimport { getFromLocalStorage, setToLocalStorage } from \"utils/general\";\nimport { create } from \"zustand\";\nimport { useShallow } from \"zustand/shallow\";\n\nconst getLocalStorageData = () => getFromLocalStorage(STORAGE_KEY) || {};\n\nconst setLocalStorageData = data => setToLocalStorage(STORAGE_KEY, data);\n\n/** @type {import(\"neetocommons/react-utils\").ZustandStoreHook} */\nconst useCheckpointStore = create(\n withImmutableActions(set => ({\n checkpoints: {},\n setCheckpoint: (key, path) =>\n set(mergeDeepLeft({ checkpoints: { [key]: path } })),\n removeCheckpoint: key =>\n set(state => ({ checkpoints: dissoc(key, state.checkpoints) })),\n }))\n);\n\nconst useRegisterNavigationCheckpoint = (\n key,\n path = window.location.pathname + window.location.search,\n persistInLocalStorage = false\n) => {\n const setCheckpoint = useCheckpointStore(prop(\"setCheckpoint\"));\n\n useEffect(() => {\n setCheckpoint(key, path);\n if (persistInLocalStorage) {\n const localStorageData = getLocalStorageData();\n setLocalStorageData({ ...localStorageData, [key]: path });\n }\n }, [key, path, persistInLocalStorage]);\n};\n\nexport const useNavigationCheckpoints = (...keys) => {\n const getCheckpoints = useCheckpointStore(\n useShallow(store => pick(keys, store.checkpoints))\n );\n\n const localStorageData = getLocalStorageData();\n const localStorageCheckpoints = pick(keys, localStorageData);\n\n return { ...getCheckpoints, ...localStorageCheckpoints };\n};\n\nexport const useRemoveNavigationCheckpoint = () => {\n const removeCheckpoint = useCheckpointStore(prop(\"removeCheckpoint\"));\n\n return key => {\n removeCheckpoint(key);\n const localStorageData = getLocalStorageData();\n setLocalStorageData(dissoc(key, localStorageData));\n };\n};\n\nexport default useRegisterNavigationCheckpoint;\n"],"names":["getLocalStorageData","getFromLocalStorage","STORAGE_KEY","setLocalStorageData","data","setToLocalStorage","useCheckpointStore","create","withImmutableActions","set","checkpoints","setCheckpoint","key","path","mergeDeepLeft","_defineProperty","removeCheckpoint","state","dissoc","useRegisterNavigationCheckpoint","arguments","length","undefined","window","location","pathname","search","persistInLocalStorage","prop","useEffect","localStorageData","_objectSpread","useNavigationCheckpoints","_len","keys","Array","_key","getCheckpoints","useShallow","store","pick","localStorageCheckpoints","useRemoveNavigationCheckpoint"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useRegisterNavigationCheckpoint.js","sources":["../../../src/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js"],"sourcesContent":["import { useEffect } from \"react\";\n\nimport { mergeDeepLeft, pick, prop, dissoc } from \"ramda\";\nimport { STORAGE_KEY } from \"react-utils/constants\";\nimport withImmutableActions from \"react-utils/withImmutableActions\";\nimport { getFromLocalStorage, setToLocalStorage } from \"utils/general\";\nimport { create } from \"zustand\";\nimport { useShallow } from \"zustand/shallow\";\n\nconst getLocalStorageData = () => getFromLocalStorage(STORAGE_KEY) || {};\n\nconst setLocalStorageData = data => setToLocalStorage(STORAGE_KEY, data);\n\n/** @type {import(\"neetocommons/react-utils\").ZustandStoreHook} */\nconst useCheckpointStore = create(\n withImmutableActions(set => ({\n checkpoints: {},\n setCheckpoint: (key, path) =>\n set(mergeDeepLeft({ checkpoints: { [key]: path } })),\n removeCheckpoint: key =>\n set(state => ({ checkpoints: dissoc(key, state.checkpoints) })),\n }))\n);\n\nconst useRegisterNavigationCheckpoint = (\n key,\n path = window.location.pathname + window.location.search,\n persistInLocalStorage = false\n) => {\n const setCheckpoint = useCheckpointStore(prop(\"setCheckpoint\"));\n\n useEffect(() => {\n setCheckpoint(key, path);\n if (persistInLocalStorage) {\n const localStorageData = getLocalStorageData();\n setLocalStorageData({ ...localStorageData, [key]: path });\n }\n }, [key, path, persistInLocalStorage]);\n};\n\nexport const useNavigationCheckpoints = (...keys) => {\n const getCheckpoints = useCheckpointStore(\n useShallow(store => pick(keys, store.checkpoints))\n );\n\n const localStorageData = getLocalStorageData();\n const localStorageCheckpoints = pick(keys, localStorageData);\n\n return { ...getCheckpoints, ...localStorageCheckpoints };\n};\n\nexport const useRemoveNavigationCheckpoint = () => {\n const removeCheckpoint = useCheckpointStore(prop(\"removeCheckpoint\"));\n\n return key => {\n removeCheckpoint(key);\n const localStorageData = getLocalStorageData();\n setLocalStorageData(dissoc(key, localStorageData));\n };\n};\n\nexport default useRegisterNavigationCheckpoint;\n"],"names":["getLocalStorageData","getFromLocalStorage","STORAGE_KEY","setLocalStorageData","data","setToLocalStorage","useCheckpointStore","create","withImmutableActions","set","checkpoints","setCheckpoint","key","path","mergeDeepLeft","_defineProperty","removeCheckpoint","state","dissoc","useRegisterNavigationCheckpoint","arguments","length","undefined","window","location","pathname","search","persistInLocalStorage","prop","useEffect","localStorageData","_objectSpread","useNavigationCheckpoints","_len","keys","Array","_key","getCheckpoints","useShallow","store","pick","localStorageCheckpoints","useRemoveNavigationCheckpoint"],"mappings":";;;;;;;;;;;;;;;;;;;;;AASA,IAAMA,mBAAmB,GAAG,SAAtBA,mBAAmBA,GAAA;AAAA,EAAA,OAASC,mBAAmB,CAACC,WAAW,CAAC,IAAI,EAAE;AAAA,CAAA;AAExE,IAAMC,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAGC,IAAI,EAAA;AAAA,EAAA,OAAIC,iBAAiB,CAACH,WAAW,EAAEE,IAAI,CAAC;AAAA,CAAA;;AAExE;AACA,IAAME,kBAAkB,GAAGC,MAAM,CAC/BC,oBAAoB,CAAC,UAAAC,GAAG,EAAA;EAAA,OAAK;IAC3BC,WAAW,EAAE,EAAE;AACfC,IAAAA,aAAa,EAAE,SAAfA,aAAaA,CAAGC,GAAG,EAAEC,IAAI,EAAA;MAAA,OACvBJ,GAAG,CAACK,aAAa,CAAC;AAAEJ,QAAAA,WAAW,EAAAK,eAAA,CAAA,EAAA,EAAKH,GAAG,EAAGC,IAAI;AAAG,OAAC,CAAC,CAAC;AAAA,IAAA,CAAA;AACtDG,IAAAA,gBAAgB,EAAE,SAAlBA,gBAAgBA,CAAEJ,GAAG,EAAA;MAAA,OACnBH,GAAG,CAAC,UAAAQ,KAAK,EAAA;QAAA,OAAK;AAAEP,UAAAA,WAAW,EAAEQ,MAAM,CAACN,GAAG,EAAEK,KAAK,CAACP,WAAW;SAAG;AAAA,MAAA,CAAC,CAAC;AAAA,IAAA;GAClE;AAAA,CAAC,CACJ,CAAC;AAED,IAAMS,+BAA+B,GAAG,SAAlCA,+BAA+BA,CACnCP,GAAG,EAGA;EAAA,IAFHC,IAAI,GAAAO,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,MAAGG,MAAM,CAACC,QAAQ,CAACC,QAAQ,GAAGF,MAAM,CAACC,QAAQ,CAACE,MAAM;AAAA,EAAA,IACxDC,qBAAqB,GAAAP,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAG,KAAK;EAE7B,IAAMT,aAAa,GAAGL,kBAAkB,CAACsB,IAAI,CAAC,eAAe,CAAC,CAAC;AAE/DC,EAAAA,SAAS,CAAC,YAAM;AACdlB,IAAAA,aAAa,CAACC,GAAG,EAAEC,IAAI,CAAC;AACxB,IAAA,IAAIc,qBAAqB,EAAE;AACzB,MAAA,IAAMG,gBAAgB,GAAG9B,mBAAmB,EAAE;AAC9CG,MAAAA,mBAAmB,CAAA4B,aAAA,CAAAA,aAAA,CAAA,EAAA,EAAMD,gBAAgB,CAAA,EAAA,EAAA,EAAAf,eAAA,CAAA,EAAA,EAAGH,GAAG,EAAGC,IAAI,EAAE,CAAC;AAC3D,IAAA;EACF,CAAC,EAAE,CAACD,GAAG,EAAEC,IAAI,EAAEc,qBAAqB,CAAC,CAAC;AACxC;IAEaK,wBAAwB,GAAG,SAA3BA,wBAAwBA,GAAgB;AAAA,EAAA,KAAA,IAAAC,IAAA,GAAAb,SAAA,CAAAC,MAAA,EAATa,IAAI,GAAA,IAAAC,KAAA,CAAAF,IAAA,GAAAG,IAAA,GAAA,CAAA,EAAAA,IAAA,GAAAH,IAAA,EAAAG,IAAA,EAAA,EAAA;AAAJF,IAAAA,IAAI,CAAAE,IAAA,CAAA,GAAAhB,SAAA,CAAAgB,IAAA,CAAA;AAAA,EAAA;AAC9C,EAAA,IAAMC,cAAc,GAAG/B,kBAAkB,CACvCgC,UAAU,CAAC,UAAAC,KAAK,EAAA;AAAA,IAAA,OAAIC,IAAI,CAACN,IAAI,EAAEK,KAAK,CAAC7B,WAAW,CAAC;AAAA,EAAA,CAAA,CACnD,CAAC;AAED,EAAA,IAAMoB,gBAAgB,GAAG9B,mBAAmB,EAAE;AAC9C,EAAA,IAAMyC,uBAAuB,GAAGD,IAAI,CAACN,IAAI,EAAEJ,gBAAgB,CAAC;AAE5D,EAAA,OAAAC,aAAA,CAAAA,aAAA,CAAA,EAAA,EAAYM,cAAc,GAAKI,uBAAuB,CAAA;AACxD;IAEaC,6BAA6B,GAAG,SAAhCA,6BAA6BA,GAAS;EACjD,IAAM1B,gBAAgB,GAAGV,kBAAkB,CAACsB,IAAI,CAAC,kBAAkB,CAAC,CAAC;EAErE,OAAO,UAAAhB,GAAG,EAAI;IACZI,gBAAgB,CAACJ,GAAG,CAAC;AACrB,IAAA,IAAMkB,gBAAgB,GAAG9B,mBAAmB,EAAE;AAC9CG,IAAAA,mBAAmB,CAACe,MAAM,CAACN,GAAG,EAAEkB,gBAAgB,CAAC,CAAC;EACpD,CAAC;AACH;;;;"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export { default } from './useStateWithDependency.js';
|
|
2
|
-
import '../../slicedToArray-
|
|
3
|
-
import '../../nonIterableRest-BZgkRyt5.js';
|
|
2
|
+
import '../../slicedToArray-DmsZvA_9.js';
|
|
4
3
|
import '../../unsupportedIterableToArray-Dqz8Y8_I.js';
|
|
5
4
|
import 'react';
|
|
6
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { _ as _slicedToArray } from '../../slicedToArray-
|
|
1
|
+
import { _ as _slicedToArray } from '../../slicedToArray-DmsZvA_9.js';
|
|
2
2
|
import { useState, useEffect } from 'react';
|
|
3
|
-
import '../../nonIterableRest-BZgkRyt5.js';
|
|
4
3
|
import '../../unsupportedIterableToArray-Dqz8Y8_I.js';
|
|
5
4
|
|
|
6
5
|
var useStateWithDependency = function useStateWithDependency(defaultValue) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStateWithDependency.js","sources":["../../../src/react-utils/useStateWithDependency/useStateWithDependency.js"],"sourcesContent":["import { useState, useEffect } from \"react\";\n\nconst useStateWithDependency = (\n defaultValue,\n dependencies = [defaultValue]\n) => {\n const [value, setValue] = useState(defaultValue);\n\n useEffect(() => {\n setValue(defaultValue);\n }, dependencies);\n\n return [value, setValue];\n};\n\nexport default useStateWithDependency;\n"],"names":["useStateWithDependency","defaultValue","dependencies","arguments","length","undefined","_useState","useState","_useState2","_slicedToArray","value","setValue","useEffect"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useStateWithDependency.js","sources":["../../../src/react-utils/useStateWithDependency/useStateWithDependency.js"],"sourcesContent":["import { useState, useEffect } from \"react\";\n\nconst useStateWithDependency = (\n defaultValue,\n dependencies = [defaultValue]\n) => {\n const [value, setValue] = useState(defaultValue);\n\n useEffect(() => {\n setValue(defaultValue);\n }, dependencies);\n\n return [value, setValue];\n};\n\nexport default useStateWithDependency;\n"],"names":["useStateWithDependency","defaultValue","dependencies","arguments","length","undefined","_useState","useState","_useState2","_slicedToArray","value","setValue","useEffect"],"mappings":";;;;AAEA,IAAMA,sBAAsB,GAAG,SAAzBA,sBAAsBA,CAC1BC,YAAY,EAET;AAAA,EAAA,IADHC,YAAY,GAAAC,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAG,CAACF,YAAY,CAAC;AAE7B,EAAA,IAAAK,SAAA,GAA0BC,QAAQ,CAACN,YAAY,CAAC;IAAAO,UAAA,GAAAC,cAAA,CAAAH,SAAA,EAAA,CAAA,CAAA;AAAzCI,IAAAA,KAAK,GAAAF,UAAA,CAAA,CAAA,CAAA;AAAEG,IAAAA,QAAQ,GAAAH,UAAA,CAAA,CAAA,CAAA;AAEtBI,EAAAA,SAAS,CAAC,YAAM;IACdD,QAAQ,CAACV,YAAY,CAAC;EACxB,CAAC,EAAEC,YAAY,CAAC;AAEhB,EAAA,OAAO,CAACQ,KAAK,EAAEC,QAAQ,CAAC;AAC1B;;;;"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { _ as _arrayWithHoles, a as _nonIterableRest } from './nonIterableRest-BZgkRyt5.js';
|
|
2
1
|
import { _ as _unsupportedIterableToArray } from './unsupportedIterableToArray-Dqz8Y8_I.js';
|
|
3
2
|
|
|
3
|
+
function _arrayWithHoles(r) {
|
|
4
|
+
if (Array.isArray(r)) return r;
|
|
5
|
+
}
|
|
6
|
+
|
|
4
7
|
function _iterableToArrayLimit(r, l) {
|
|
5
8
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
6
9
|
if (null != t) {
|
|
@@ -29,9 +32,13 @@ function _iterableToArrayLimit(r, l) {
|
|
|
29
32
|
}
|
|
30
33
|
}
|
|
31
34
|
|
|
35
|
+
function _nonIterableRest() {
|
|
36
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
37
|
+
}
|
|
38
|
+
|
|
32
39
|
function _slicedToArray(r, e) {
|
|
33
40
|
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
34
41
|
}
|
|
35
42
|
|
|
36
43
|
export { _slicedToArray as _ };
|
|
37
|
-
//# sourceMappingURL=slicedToArray-
|
|
44
|
+
//# sourceMappingURL=slicedToArray-DmsZvA_9.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slicedToArray-DmsZvA_9.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":["function _arrayWithHoles(r) {\n if (Array.isArray(r)) return r;\n}\nexport { _arrayWithHoles as default };","function _iterableToArrayLimit(r, l) {\n var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"];\n if (null != t) {\n var e,\n n,\n i,\n u,\n a = [],\n f = !0,\n o = !1;\n try {\n if (i = (t = t.call(r)).next, 0 === l) {\n if (Object(t) !== t) return;\n f = !1;\n } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);\n } catch (r) {\n o = !0, n = r;\n } finally {\n try {\n if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return;\n } finally {\n if (o) throw n;\n }\n }\n return a;\n }\n}\nexport { _iterableToArrayLimit as 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}\nexport { _nonIterableRest as default };","import arrayWithHoles from \"./arrayWithHoles.js\";\nimport iterableToArrayLimit from \"./iterableToArrayLimit.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableRest from \"./nonIterableRest.js\";\nfunction _slicedToArray(r, e) {\n return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest();\n}\nexport { _slicedToArray as default };"],"names":["arrayWithHoles","iterableToArrayLimit","unsupportedIterableToArray","nonIterableRest"],"mappings":";;AAAA,SAAS,eAAe,CAAC,CAAC,EAAE;AAC5B,EAAE,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC;AAChC;;ACFA,SAAS,qBAAqB,CAAC,CAAC,EAAE,CAAC,EAAE;AACrC,EAAE,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,GAAG,IAAI,GAAG,WAAW,IAAI,OAAO,MAAM,IAAI,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,YAAY,CAAC;AAClG,EAAE,IAAI,IAAI,IAAI,CAAC,EAAE;AACjB,IAAI,IAAI,CAAC;AACT,MAAM,CAAC;AACP,MAAM,CAAC;AACP,MAAM,CAAC;AACP,MAAM,CAAC,GAAG,EAAE;AACZ,MAAM,CAAC,GAAG,IAAE;AACZ,MAAM,CAAC,GAAG,KAAE;AACZ,IAAI,IAAI;AACR,MAAM,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,KAAK,CAAC,EAAE;AAC7C,QAAQ,IAAI,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE;AAC7B,QAAQ,CAAC,GAAG,CAAC,CAAC;AACd,MAAM,CAAC,MAAM,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;AAC7F,IAAI,CAAC,CAAC,OAAO,CAAC,EAAE;AAChB,MAAM,CAAC,GAAG,IAAE,EAAE,CAAC,GAAG,CAAC;AACnB,IAAI,CAAC,SAAS;AACd,MAAM,IAAI;AACV,QAAQ,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE;AAC/E,MAAM,CAAC,SAAS;AAChB,QAAQ,IAAI,CAAC,EAAE,MAAM,CAAC;AACtB,MAAM;AACN,IAAI;AACJ,IAAI,OAAO,CAAC;AACZ,EAAE;AACF;;AC1BA,SAAS,gBAAgB,GAAG;AAC5B,EAAE,MAAM,IAAI,SAAS,CAAC,2IAA2I,CAAC;AAClK;;ACEA,SAAS,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE;AAC9B,EAAE,OAAOA,eAAc,CAAC,CAAC,CAAC,IAAIC,qBAAoB,CAAC,CAAC,EAAE,CAAC,CAAC,IAAIC,2BAA0B,CAAC,CAAC,EAAE,CAAC,CAAC,IAAIC,gBAAe,EAAE;AACjH;;;;","x_google_ignoreList":[0,1,2,3]}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { a as _arrayLikeToArray, _ as _unsupportedIterableToArray } from './unsupportedIterableToArray-Dqz8Y8_I.js';
|
|
2
|
-
import { _ as _iterableToArray } from './iterableToArray-Db9fVUMi.js';
|
|
3
2
|
|
|
4
3
|
function _arrayWithoutHoles(r) {
|
|
5
4
|
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
6
5
|
}
|
|
7
6
|
|
|
7
|
+
function _iterableToArray(r) {
|
|
8
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
9
|
+
}
|
|
10
|
+
|
|
8
11
|
function _nonIterableSpread() {
|
|
9
12
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
10
13
|
}
|
|
@@ -14,4 +17,4 @@ function _toConsumableArray(r) {
|
|
|
14
17
|
}
|
|
15
18
|
|
|
16
19
|
export { _toConsumableArray as _ };
|
|
17
|
-
//# sourceMappingURL=toConsumableArray-
|
|
20
|
+
//# sourceMappingURL=toConsumableArray-B7CFjjkW.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toConsumableArray-B7CFjjkW.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\";\nfunction _arrayWithoutHoles(r) {\n if (Array.isArray(r)) return arrayLikeToArray(r);\n}\nexport { _arrayWithoutHoles as default };","function _iterableToArray(r) {\n if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r);\n}\nexport { _iterableToArray as 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}\nexport { _nonIterableSpread as default };","import arrayWithoutHoles from \"./arrayWithoutHoles.js\";\nimport iterableToArray from \"./iterableToArray.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableSpread from \"./nonIterableSpread.js\";\nfunction _toConsumableArray(r) {\n return arrayWithoutHoles(r) || iterableToArray(r) || unsupportedIterableToArray(r) || nonIterableSpread();\n}\nexport { _toConsumableArray as default };"],"names":["arrayLikeToArray","arrayWithoutHoles","iterableToArray","unsupportedIterableToArray","nonIterableSpread"],"mappings":";;AACA,SAAS,kBAAkB,CAAC,CAAC,EAAE;AAC/B,EAAE,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAOA,iBAAgB,CAAC,CAAC,CAAC;AAClD;;ACHA,SAAS,gBAAgB,CAAC,CAAC,EAAE;AAC7B,EAAE,IAAI,WAAW,IAAI,OAAO,MAAM,IAAI,IAAI,IAAI,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC,YAAY,CAAC,EAAE,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;AACjH;;ACFA,SAAS,kBAAkB,GAAG;AAC9B,EAAE,MAAM,IAAI,SAAS,CAAC,sIAAsI,CAAC;AAC7J;;ACEA,SAAS,kBAAkB,CAAC,CAAC,EAAE;AAC/B,EAAE,OAAOC,kBAAiB,CAAC,CAAC,CAAC,IAAIC,gBAAe,CAAC,CAAC,CAAC,IAAIC,2BAA0B,CAAC,CAAC,CAAC,IAAIC,kBAAiB,EAAE;AAC3G;;;;","x_google_ignoreList":[0,1,2,3]}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { _ as _toConsumableArray } from '../toConsumableArray-
|
|
1
|
+
import { _ as _toConsumableArray } from '../toConsumableArray-B7CFjjkW.js';
|
|
2
2
|
import { _ as _defineProperty } from '../defineProperty-Dcer7TUY.js';
|
|
3
3
|
import { isNotPresent, findBy } from '@bigbinary/neeto-cist';
|
|
4
4
|
import { omit } from 'ramda';
|
|
5
5
|
import '../unsupportedIterableToArray-Dqz8Y8_I.js';
|
|
6
|
-
import '../iterableToArray-Db9fVUMi.js';
|
|
7
6
|
import '../toPropertyKey-BAXkSB3z.js';
|
|
8
7
|
import '../typeof-D-UKOauR.js';
|
|
9
8
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildNestedAttributesPayload.js","sources":["../../src/utils/buildNestedAttributesPayload.js"],"sourcesContent":["import { findBy, isNotPresent } from \"neetocist\";\nimport { omit } from \"ramda\";\n\nexport const buildNestedAttributesPayload = ({\n modifiedValues,\n initialValues,\n nestedKeyToModify,\n nestedAttributeKeyInPayload,\n nestedAttributesForArrayKey,\n}) => {\n const itemsToDestroy = initialValues[nestedKeyToModify].filter(initialItem =>\n isNotPresent(\n findBy(\n { value: initialItem[nestedAttributeKeyInPayload] },\n modifiedValues[nestedKeyToModify]\n )\n )\n );\n\n const itemsToDestroyAttrs = itemsToDestroy.map(item => ({\n id: item.id,\n [nestedAttributeKeyInPayload]: item[nestedAttributeKeyInPayload],\n _destroy: true,\n }));\n\n const itemsToBeCreated = modifiedValues[nestedKeyToModify].filter(\n modifiedItem =>\n isNotPresent(\n findBy(\n { [nestedAttributeKeyInPayload]: modifiedItem.value.toLowerCase() },\n initialValues[nestedKeyToModify]\n )\n )\n );\n\n const itemsToCreateAttrs = itemsToBeCreated.map(item => ({\n [nestedAttributeKeyInPayload]: item.value,\n }));\n\n const nestedAttributes = [...itemsToCreateAttrs, ...itemsToDestroyAttrs];\n\n return {\n ...omit([nestedKeyToModify], modifiedValues),\n [nestedAttributesForArrayKey]: nestedAttributes,\n };\n};\n"],"names":["buildNestedAttributesPayload","_ref","modifiedValues","initialValues","nestedKeyToModify","nestedAttributeKeyInPayload","nestedAttributesForArrayKey","itemsToDestroy","filter","initialItem","isNotPresent","findBy","value","itemsToDestroyAttrs","map","item","_defineProperty","id","itemsToBeCreated","modifiedItem","toLowerCase","itemsToCreateAttrs","nestedAttributes","concat","_toConsumableArray","_objectSpread","omit"],"mappings":"
|
|
1
|
+
{"version":3,"file":"buildNestedAttributesPayload.js","sources":["../../src/utils/buildNestedAttributesPayload.js"],"sourcesContent":["import { findBy, isNotPresent } from \"neetocist\";\nimport { omit } from \"ramda\";\n\nexport const buildNestedAttributesPayload = ({\n modifiedValues,\n initialValues,\n nestedKeyToModify,\n nestedAttributeKeyInPayload,\n nestedAttributesForArrayKey,\n}) => {\n const itemsToDestroy = initialValues[nestedKeyToModify].filter(initialItem =>\n isNotPresent(\n findBy(\n { value: initialItem[nestedAttributeKeyInPayload] },\n modifiedValues[nestedKeyToModify]\n )\n )\n );\n\n const itemsToDestroyAttrs = itemsToDestroy.map(item => ({\n id: item.id,\n [nestedAttributeKeyInPayload]: item[nestedAttributeKeyInPayload],\n _destroy: true,\n }));\n\n const itemsToBeCreated = modifiedValues[nestedKeyToModify].filter(\n modifiedItem =>\n isNotPresent(\n findBy(\n { [nestedAttributeKeyInPayload]: modifiedItem.value.toLowerCase() },\n initialValues[nestedKeyToModify]\n )\n )\n );\n\n const itemsToCreateAttrs = itemsToBeCreated.map(item => ({\n [nestedAttributeKeyInPayload]: item.value,\n }));\n\n const nestedAttributes = [...itemsToCreateAttrs, ...itemsToDestroyAttrs];\n\n return {\n ...omit([nestedKeyToModify], modifiedValues),\n [nestedAttributesForArrayKey]: nestedAttributes,\n };\n};\n"],"names":["buildNestedAttributesPayload","_ref","modifiedValues","initialValues","nestedKeyToModify","nestedAttributeKeyInPayload","nestedAttributesForArrayKey","itemsToDestroy","filter","initialItem","isNotPresent","findBy","value","itemsToDestroyAttrs","map","item","_defineProperty","id","itemsToBeCreated","modifiedItem","toLowerCase","itemsToCreateAttrs","nestedAttributes","concat","_toConsumableArray","_objectSpread","omit"],"mappings":";;;;;;;;;;IAGaA,4BAA4B,GAAG,SAA/BA,4BAA4BA,CAAAC,IAAA,EAMnC;AAAA,EAAA,IALJC,cAAc,GAAAD,IAAA,CAAdC,cAAc;IACdC,aAAa,GAAAF,IAAA,CAAbE,aAAa;IACbC,iBAAiB,GAAAH,IAAA,CAAjBG,iBAAiB;IACjBC,2BAA2B,GAAAJ,IAAA,CAA3BI,2BAA2B;IAC3BC,2BAA2B,GAAAL,IAAA,CAA3BK,2BAA2B;EAE3B,IAAMC,cAAc,GAAGJ,aAAa,CAACC,iBAAiB,CAAC,CAACI,MAAM,CAAC,UAAAC,WAAW,EAAA;IAAA,OACxEC,YAAY,CACVC,MAAM,CACJ;MAAEC,KAAK,EAAEH,WAAW,CAACJ,2BAA2B;AAAE,KAAC,EACnDH,cAAc,CAACE,iBAAiB,CAClC,CACF,CAAC;AAAA,EAAA,CACH,CAAC;AAED,EAAA,IAAMS,mBAAmB,GAAGN,cAAc,CAACO,GAAG,CAAC,UAAAC,IAAI,EAAA;IAAA,OAAAC,eAAA,CAAAA,eAAA,CAAA;MACjDC,EAAE,EAAEF,IAAI,CAACE;AAAE,KAAA,EACVZ,2BAA2B,EAAGU,IAAI,CAACV,2BAA2B,CAAC,eACtD,IAAI,CAAA;AAAA,EAAA,CACd,CAAC;EAEH,IAAMa,gBAAgB,GAAGhB,cAAc,CAACE,iBAAiB,CAAC,CAACI,MAAM,CAC/D,UAAAW,YAAY,EAAA;IAAA,OACVT,YAAY,CACVC,MAAM,CAAAK,eAAA,CAAA,EAAA,EACDX,2BAA2B,EAAGc,YAAY,CAACP,KAAK,CAACQ,WAAW,EAAE,CAAA,EACjEjB,aAAa,CAACC,iBAAiB,CACjC,CACF,CAAC;AAAA,EAAA,CACL,CAAC;AAED,EAAA,IAAMiB,kBAAkB,GAAGH,gBAAgB,CAACJ,GAAG,CAAC,UAAAC,IAAI,EAAA;AAAA,IAAA,OAAAC,eAAA,CAAA,EAAA,EACjDX,2BAA2B,EAAGU,IAAI,CAACH,KAAK,CAAA;AAAA,EAAA,CACzC,CAAC;EAEH,IAAMU,gBAAgB,GAAA,EAAA,CAAAC,MAAA,CAAAC,kBAAA,CAAOH,kBAAkB,CAAA,EAAAG,kBAAA,CAAKX,mBAAmB,CAAA,CAAC;AAExE,EAAA,OAAAY,aAAA,CAAAA,aAAA,CAAA,EAAA,EACKC,IAAI,CAAC,CAACtB,iBAAiB,CAAC,EAAEF,cAAc,CAAC,CAAA,EAAA,EAAA,EAAAc,eAAA,CAAA,EAAA,EAC3CV,2BAA2B,EAAGgB,gBAAgB,CAAA,CAAA;AAEnD;;;;"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { createConsumer } from '@rails/actioncable';
|
|
2
2
|
import { buildUrl } from './general.js';
|
|
3
3
|
import '../objectWithoutProperties-DN7d1SzH.js';
|
|
4
|
-
import '../slicedToArray-
|
|
5
|
-
import '../nonIterableRest-BZgkRyt5.js';
|
|
4
|
+
import '../slicedToArray-DmsZvA_9.js';
|
|
6
5
|
import '../unsupportedIterableToArray-Dqz8Y8_I.js';
|
|
7
6
|
import '../asyncToGenerator-CPKhuIh2.js';
|
|
8
7
|
import '../defineProperty-Dcer7TUY.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createSubscription.js","sources":["../../src/utils/createSubscription.js"],"sourcesContent":["import { createConsumer } from \"@rails/actioncable\";\nimport { buildUrl } from \"utils/general\";\n\nconst getWebsocketURL = () => {\n const websocketURL = document.querySelector(\n 'meta[name=\"action-cable-url\"]'\n )?.content;\n\n return buildUrl(websocketURL, {\n subdomain: globalProps.organization.subdomain,\n });\n};\n\nconst consumer = createConsumer(getWebsocketURL);\n\nexport const createSubscription = (channelName, callbacks) =>\n consumer.subscriptions.create(channelName, callbacks);\n"],"names":["getWebsocketURL","_document$querySelect","websocketURL","document","querySelector","content","buildUrl","subdomain","globalProps","organization","consumer","createConsumer","createSubscription","channelName","callbacks","subscriptions","create"],"mappings":"
|
|
1
|
+
{"version":3,"file":"createSubscription.js","sources":["../../src/utils/createSubscription.js"],"sourcesContent":["import { createConsumer } from \"@rails/actioncable\";\nimport { buildUrl } from \"utils/general\";\n\nconst getWebsocketURL = () => {\n const websocketURL = document.querySelector(\n 'meta[name=\"action-cable-url\"]'\n )?.content;\n\n return buildUrl(websocketURL, {\n subdomain: globalProps.organization.subdomain,\n });\n};\n\nconst consumer = createConsumer(getWebsocketURL);\n\nexport const createSubscription = (channelName, callbacks) =>\n consumer.subscriptions.create(channelName, callbacks);\n"],"names":["getWebsocketURL","_document$querySelect","websocketURL","document","querySelector","content","buildUrl","subdomain","globalProps","organization","consumer","createConsumer","createSubscription","channelName","callbacks","subscriptions","create"],"mappings":";;;;;;;;;;;;;;;AAGA,IAAMA,eAAe,GAAG,SAAlBA,eAAeA,GAAS;AAAA,EAAA,IAAAC,qBAAA;AAC5B,EAAA,IAAMC,YAAY,GAAA,CAAAD,qBAAA,GAAGE,QAAQ,CAACC,aAAa,CACzC,+BACF,CAAC,MAAA,IAAA,IAAAH,qBAAA,KAAA,MAAA,GAAA,MAAA,GAFoBA,qBAAA,CAElBI,OAAO;EAEV,OAAOC,QAAQ,CAACJ,YAAY,EAAE;AAC5BK,IAAAA,SAAS,EAAEC,WAAW,CAACC,YAAY,CAACF;AACtC,GAAC,CAAC;AACJ,CAAC;AAED,IAAMG,QAAQ,GAAGC,cAAc,CAACX,eAAe,CAAC;AAEzC,IAAMY,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAIC,WAAW,EAAEC,SAAS,EAAA;EAAA,OACvDJ,QAAQ,CAACK,aAAa,CAACC,MAAM,CAACH,WAAW,EAAEC,SAAS,CAAC;AAAA;;;;"}
|