@stokr/components-library 3.0.67 → 3.0.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +179 -179
- package/dist/analytics/index.js +1 -1
- package/dist/api/fetchData.js +2 -2
- package/dist/components/2FA/Connect2FA.js +1 -1
- package/dist/components/2FA/EnterCode.js +1 -1
- package/dist/components/2FA/Sucess2FA.js +1 -1
- package/dist/components/2FA/login-with-otp-flow.js +1 -1
- package/dist/components/2FA/main-flow.js +1 -1
- package/dist/components/AccountBalance/AccountBalance.js +1 -1
- package/dist/components/AdminDashboard/Table/ReactTable.js +5 -5
- package/dist/components/AdminDashboard/Table/ReactTableWrapper.js +1 -1
- package/dist/components/AdminDashboard/Table/Table.js +1 -1
- package/dist/components/AgreementItem/AgreementItem.js +1 -1
- package/dist/components/BackButton/BackButton.js +1 -1
- package/dist/components/Background/Background.js +1 -1
- package/dist/components/BasicTable/BasicTable.js +1 -1
- package/dist/components/BlogPost/BlogPost.js +1 -1
- package/dist/components/Button/Button.styles.js +1 -1
- package/dist/components/Button/GlareButton.js +2 -2
- package/dist/components/ChartLegend/ChartLegend.js +3 -3
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Checklist/ChecklistCard.js +1 -1
- package/dist/components/Chips/Chip.js +1 -1
- package/dist/components/Chips/ChipWrapper.js +1 -1
- package/dist/components/ComponentScroll/ComponentScroll.js +3 -3
- package/dist/components/Country/CountrySelect.js +4 -4
- package/dist/components/CryptoAddress/ComponentWrap.js +1 -1
- package/dist/components/CryptoAddress/CryptoAddress.js +7 -7
- package/dist/components/CryptoAddress/RadioWrap.js +1 -1
- package/dist/components/CryptoAddressDetails/CryptoAddressDetails.js +1 -1
- package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.js +1 -1
- package/dist/components/FAQ/FAQ.js +1 -1
- package/dist/components/FAQ/FAQ.styles.js +2 -2
- package/dist/components/Footer/Footer.js +1 -1
- package/dist/components/Footer/FooterLayout.js +1 -1
- package/dist/components/Footer/FooterMenu.js +3 -3
- package/dist/components/ForgotPasswordModal/ForgotPasswordModal.js +5 -5
- package/dist/components/Form/Form.js +2 -2
- package/dist/components/Form/Form.styles.js +1 -1
- package/dist/components/Header/Header.js +3 -3
- package/dist/components/HeroBlock/HeroVideoBlock.js +1 -1
- package/dist/components/IdentityInfo/IdentityInfo.js +1 -1
- package/dist/components/InfoIcon/InfoIcon.js +6 -6
- package/dist/components/Input/DatePickerInput.js +3 -5
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/InputPassword.js +1 -1
- package/dist/components/Input/InputUsername.js +1 -1
- package/dist/components/Input/InputWithButton.js +1 -1
- package/dist/components/Input/MultiSelect.js +3 -4
- package/dist/components/Input/OtpInput.js +2 -2
- package/dist/components/Input/RangeInput.js +4 -4
- package/dist/components/Input/Select.js +4 -5
- package/dist/components/Input/TableFilterDropdown.js +1 -1
- package/dist/components/InvestmentStat/InvestmentStat.js +1 -1
- package/dist/components/LatestUpdate/LatestUpdate.js +1 -1
- package/dist/components/Layout/Layout.js +1 -1
- package/dist/components/LoginModal/LoginModal.js +6 -6
- package/dist/components/MainMenu/DynamicMainMenu.js +3 -3
- package/dist/components/MainMenu/MainMenu.js +6 -6
- package/dist/components/Modal/Modal.js +2 -2
- package/dist/components/Modal/NewVentureModal/NewVentureModal.js +9 -9
- package/dist/components/Modal/PaymentModal.js +2 -2
- package/dist/components/Modal/SuccessModal/SuccessModal.js +3 -3
- package/dist/components/MultiProgressBar/MultiProgressBar.js +1 -1
- package/dist/components/Number/Number.js +1 -1
- package/dist/components/PageTransition/PageTransition.js +1 -1
- package/dist/components/Pagination/Pagination.js +1 -1
- package/dist/components/Pagination/PaginationControls.js +1 -1
- package/dist/components/Payment/PaymentDisplay.js +4 -4
- package/dist/components/Payment/TimerComponent.js +1 -1
- package/dist/components/ProfileBadge/ProfileBadge.js +1 -1
- package/dist/components/ProfileBox/ProfileBox.js +1 -1
- package/dist/components/ProfileStat/ProfileStat.js +1 -1
- package/dist/components/QRCode/QRCode.js +2 -2
- package/dist/components/Radio/Radio.js +1 -1
- package/dist/components/RefreshButton/RefreshButton.js +1 -1
- package/dist/components/RegisterConfirmModal/RegisterConfirmModal.js +1 -1
- package/dist/components/RegisterModal/RegisterModal.js +8 -8
- package/dist/components/RequestDataBox/RequestDataBox.js +1 -1
- package/dist/components/ResetConfirmModal/ResetConfirmModal.js +1 -1
- package/dist/components/ResetPasswordModal/ResetPasswordModal.js +6 -6
- package/dist/components/SEO/SEO.js +3 -3
- package/dist/components/Slider/Slider.js +4 -4
- package/dist/components/SmartLink/SmartLink.js +1 -1
- package/dist/components/Snackbar/Snackbar.js +1 -1
- package/dist/components/Snackbar/SnackbarProvider.js +1 -1
- package/dist/components/StepController/StepController.js +1 -1
- package/dist/components/StepController/StepControllerContext.js +1 -1
- package/dist/components/StepController/StepControllerProgress.js +1 -1
- package/dist/components/StepsProgress/StepIndicator.js +1 -1
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/TabsNav/TabNav.js +1 -1
- package/dist/components/TabsNav/TabsNav.js +1 -1
- package/dist/components/TaxResidenceCard/TaxResidenceCard.js +1 -1
- package/dist/components/TaxResidenceCard/TaxResidenceCard.styles.js +2 -2
- package/dist/components/TeamOverview/TeamOverview.js +1 -1
- package/dist/components/TermsModal/TermsModal.js +5 -5
- package/dist/components/Timeline/TimelineStep.js +1 -1
- package/dist/components/ToDoList/ToDoList.js +3 -3
- package/dist/components/ToDoList/ToDoListTask.js +4 -4
- package/dist/components/TransactionDetails/TransactionDetails.js +1 -1
- package/dist/components/TransactionDetails/TransactionDetails.styles.js +2 -2
- package/dist/components/TransactionInfo/TransactionInfo.js +1 -1
- package/dist/components/VerifyEmailModal/VerifyEmailModal.js +5 -5
- package/dist/components/headerHo/HeaderHo.js +1 -3
- package/dist/components/logo/Logo.js +1 -1
- package/dist/components/taxId/register-taxid.js +4 -4
- package/dist/context/Auth.js +12 -15
- package/dist/context/AuthContext.js +4 -4
- package/dist/firebase-config.js +2 -4
- package/dist/hooks/useNewVentureForm.js +1 -1
- package/dist/index.js +6 -7
- package/dist/manifest.json +25 -25
- package/dist/model/axios.js +1 -2
- package/dist/model/axiosPublic.js +1 -2
- package/dist/robots.txt +3 -3
- package/dist/routing/RouterWrapper.js +1 -1
- package/dist/runtime-config.js +1 -1
- package/dist/static/fonts/icomoon/icomoon.eot +0 -0
- package/dist/static/fonts/icomoon/icomoon.svg +52 -52
- package/dist/static/fonts/icomoon/icomoon.ttf +0 -0
- package/dist/static/fonts/icomoon/icomoon.woff +0 -0
- package/dist/static/fonts/icomoon/selection.json +0 -0
- package/dist/static/fonts/icomoon/style.css +0 -0
- package/dist/static/images/Glassess.svg +5 -5
- package/dist/static/images/add-folder-icon.svg +4 -4
- package/dist/static/images/arrow-down-black.svg +21 -21
- package/dist/static/images/check-icon.svg +3 -3
- package/dist/static/images/checkmark-circle-icon.svg +3 -3
- package/dist/static/images/close-circle-icon.svg +2 -2
- package/dist/static/images/copy_icon.svg +4 -4
- package/dist/static/images/cross-icon.svg +3 -3
- package/dist/static/images/currency/eth.svg +10 -10
- package/dist/static/images/currency/eth_logo.svg +8 -8
- package/dist/static/images/currency/eur.svg +3 -3
- package/dist/static/images/currency/usdc-logo.svg +5 -5
- package/dist/static/images/doc-icon.svg +3 -3
- package/dist/static/images/download_icon.svg +3 -3
- package/dist/static/images/external-link-icon.svg +3 -3
- package/dist/static/images/filter-icon.svg +6 -6
- package/dist/static/images/globe.svg +15 -15
- package/dist/static/images/mangopay.svg +20 -20
- package/dist/static/images/numbers/number_eight.svg +3 -3
- package/dist/static/images/numbers/number_five.svg +4 -4
- package/dist/static/images/numbers/number_four.svg +3 -3
- package/dist/static/images/numbers/number_nine.svg +4 -4
- package/dist/static/images/numbers/number_one.svg +4 -4
- package/dist/static/images/numbers/number_seven.svg +4 -4
- package/dist/static/images/numbers/number_six.svg +4 -4
- package/dist/static/images/numbers/number_three.svg +3 -3
- package/dist/static/images/numbers/number_two.svg +4 -4
- package/dist/static/images/numbers/number_zero.svg +3 -3
- package/dist/static/images/plus-icon.svg +4 -4
- package/dist/static/images/prof-inv.svg +3 -3
- package/dist/static/images/search-icon.svg +3 -3
- package/dist/static/images/transfer-icon.svg +10 -10
- package/dist/static/images/trash.svg +16 -16
- package/dist/static/images/upload.svg +5 -5
- package/dist/static/images/warning-filled.svg +3 -3
- package/dist/styles/global.js +2 -2
- package/dist/utils/copyToClipboard.js +7 -7
- package/dist/utils/delete-redirect-cookie-and-navigate.js +3 -3
- package/dist/utils/moment.js +3 -2
- package/dist/utils/redirect-url.js +2 -2
- package/dist/utils/set-redirect-cookie.js +2 -2
- package/dist/utils/transition.js +1 -1
- package/package.json +143 -143
- package/dist/_virtual/Collapse.js +0 -4
- package/dist/_virtual/Component.js +0 -4
- package/dist/_virtual/Range.js +0 -4
- package/dist/_virtual/ResizeObserver.es.js +0 -6
- package/dist/_virtual/UnmountClosed.js +0 -4
- package/dist/_virtual/_commonjsHelpers.js +0 -38
- package/dist/_virtual/arrows.js +0 -4
- package/dist/_virtual/attributes-to-props.js +0 -4
- package/dist/_virtual/constants.js +0 -4
- package/dist/_virtual/default-props.js +0 -4
- package/dist/_virtual/defaultRenderElements.js +0 -4
- package/dist/_virtual/dom-to-react.js +0 -4
- package/dist/_virtual/domparser.js +0 -4
- package/dist/_virtual/dots.js +0 -4
- package/dist/_virtual/getInnerHeight.js +0 -4
- package/dist/_virtual/getInnerWidth.js +0 -4
- package/dist/_virtual/getScrollbarWidth.js +0 -4
- package/dist/_virtual/hoist-non-react-statics.cjs.js +0 -2
- package/dist/_virtual/html-to-dom.js +0 -4
- package/dist/_virtual/index.js +0 -5
- package/dist/_virtual/index10.js +0 -5
- package/dist/_virtual/index11.js +0 -7
- package/dist/_virtual/index12.js +0 -7
- package/dist/_virtual/index13.js +0 -7
- package/dist/_virtual/index14.js +0 -4
- package/dist/_virtual/index15.js +0 -7
- package/dist/_virtual/index16.js +0 -7
- package/dist/_virtual/index17.js +0 -7
- package/dist/_virtual/index18.js +0 -4
- package/dist/_virtual/index19.js +0 -4
- package/dist/_virtual/index2.js +0 -7
- package/dist/_virtual/index20.js +0 -4
- package/dist/_virtual/index21.js +0 -4
- package/dist/_virtual/index22.js +0 -4
- package/dist/_virtual/index23.js +0 -4
- package/dist/_virtual/index24.js +0 -4
- package/dist/_virtual/index25.js +0 -4
- package/dist/_virtual/index26.js +0 -4
- package/dist/_virtual/index27.js +0 -4
- package/dist/_virtual/index28.js +0 -4
- package/dist/_virtual/index29.js +0 -4
- package/dist/_virtual/index3.js +0 -5
- package/dist/_virtual/index30.js +0 -4
- package/dist/_virtual/index31.js +0 -4
- package/dist/_virtual/index4.js +0 -5
- package/dist/_virtual/index5.js +0 -5
- package/dist/_virtual/index6.js +0 -5
- package/dist/_virtual/index7.js +0 -7
- package/dist/_virtual/index8.js +0 -4
- package/dist/_virtual/index9.js +0 -5
- package/dist/_virtual/initial-state.js +0 -4
- package/dist/_virtual/inner-slider.js +0 -4
- package/dist/_virtual/innerSliderUtils.js +0 -4
- package/dist/_virtual/isString.js +0 -4
- package/dist/_virtual/node.js +0 -4
- package/dist/_virtual/performance-now.js +0 -4
- package/dist/_virtual/popper.js +0 -6
- package/dist/_virtual/possibleStandardNamesOptimized.js +0 -4
- package/dist/_virtual/react-is.development.js +0 -4
- package/dist/_virtual/react-is.production.min.js +0 -4
- package/dist/_virtual/react-table.development.js +0 -4
- package/dist/_virtual/react-table.production.min.js +0 -4
- package/dist/_virtual/react-tippy.js +0 -5
- package/dist/_virtual/react-tippy2.js +0 -4
- package/dist/_virtual/returnFalse.js +0 -4
- package/dist/_virtual/slider.js +0 -4
- package/dist/_virtual/styles.js +0 -4
- package/dist/_virtual/track.js +0 -4
- package/dist/_virtual/types.js +0 -4
- package/dist/_virtual/utilities.js +0 -4
- package/dist/_virtual/utilities2.js +0 -4
- package/dist/_virtual/utilities3.js +0 -4
- package/dist/_virtual/utils.js +0 -4
- package/dist/components-library.css +0 -781
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -8
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -6
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +0 -7
- package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -7
- package/dist/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +0 -6
- package/dist/node_modules/@babel/runtime/helpers/esm/createClass.js +0 -15
- package/dist/node_modules/@babel/runtime/helpers/esm/createSuper.js +0 -17
- package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -12
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +0 -12
- package/dist/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +0 -8
- package/dist/node_modules/@babel/runtime/helpers/esm/inherits.js +0 -16
- package/dist/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +0 -13
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +0 -6
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +0 -24
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +0 -6
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +0 -6
- package/dist/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +0 -25
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +0 -13
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -12
- package/dist/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +0 -10
- package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -8
- package/dist/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +0 -10
- package/dist/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +0 -10
- package/dist/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +0 -10
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -14
- package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +0 -9
- package/dist/node_modules/@babel/runtime/helpers/esm/typeof.js +0 -11
- package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -11
- package/dist/node_modules/@date-fns/tz/date/index.js +0 -66
- package/dist/node_modules/@date-fns/tz/date/mini.js +0 -124
- package/dist/node_modules/@date-fns/tz/tzName/index.js +0 -11
- package/dist/node_modules/@date-fns/tz/tzOffset/index.js +0 -28
- package/dist/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js +0 -345
- package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.js +0 -31
- package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +0 -10
- package/dist/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js +0 -84
- package/dist/node_modules/@emotion/react/dist/emotion-react.browser.esm.js +0 -50
- package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +0 -169
- package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +0 -83
- package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +0 -53
- package/dist/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js +0 -9
- package/dist/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js +0 -45
- package/dist/node_modules/@firebase/app/dist/esm/index.esm.js +0 -609
- package/dist/node_modules/@firebase/auth/dist/esm/index-36fcbc82.js +0 -5751
- package/dist/node_modules/@firebase/component/dist/esm/index.esm.js +0 -291
- package/dist/node_modules/@firebase/logger/dist/esm/index.esm.js +0 -106
- package/dist/node_modules/@firebase/util/dist/index.esm.js +0 -828
- package/dist/node_modules/@firebase/util/dist/postinstall.js +0 -4
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -257
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -122
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -34
- package/dist/node_modules/@lottiefiles/dotlottie-react/dist/index.js +0 -53
- package/dist/node_modules/@lottiefiles/dotlottie-web/dist/index.js +0 -1973
- package/dist/node_modules/add-px-to-style/index.js +0 -48
- package/dist/node_modules/axios/index.js +0 -38
- package/dist/node_modules/axios/lib/adapters/adapters.js +0 -71
- package/dist/node_modules/axios/lib/adapters/fetch.js +0 -219
- package/dist/node_modules/axios/lib/adapters/xhr.js +0 -141
- package/dist/node_modules/axios/lib/axios.js +0 -50
- package/dist/node_modules/axios/lib/cancel/CancelToken.js +0 -99
- package/dist/node_modules/axios/lib/cancel/CanceledError.js +0 -20
- package/dist/node_modules/axios/lib/cancel/isCancel.js +0 -6
- package/dist/node_modules/axios/lib/core/Axios.js +0 -188
- package/dist/node_modules/axios/lib/core/AxiosError.js +0 -67
- package/dist/node_modules/axios/lib/core/AxiosHeaders.js +0 -231
- package/dist/node_modules/axios/lib/core/InterceptorManager.js +0 -66
- package/dist/node_modules/axios/lib/core/buildFullPath.js +0 -12
- package/dist/node_modules/axios/lib/core/dispatchRequest.js +0 -52
- package/dist/node_modules/axios/lib/core/mergeConfig.js +0 -88
- package/dist/node_modules/axios/lib/core/settle.js +0 -18
- package/dist/node_modules/axios/lib/core/transformData.js +0 -17
- package/dist/node_modules/axios/lib/defaults/index.js +0 -116
- package/dist/node_modules/axios/lib/defaults/transitional.js +0 -9
- package/dist/node_modules/axios/lib/env/data.js +0 -4
- package/dist/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -34
- package/dist/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -77
- package/dist/node_modules/axios/lib/helpers/bind.js +0 -8
- package/dist/node_modules/axios/lib/helpers/buildURL.js +0 -32
- package/dist/node_modules/axios/lib/helpers/combineURLs.js +0 -6
- package/dist/node_modules/axios/lib/helpers/composeSignals.js +0 -39
- package/dist/node_modules/axios/lib/helpers/cookies.js +0 -49
- package/dist/node_modules/axios/lib/helpers/formDataToJSON.js +0 -54
- package/dist/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -9
- package/dist/node_modules/axios/lib/helpers/isAxiosError.js +0 -7
- package/dist/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -11
- package/dist/node_modules/axios/lib/helpers/null.js +0 -4
- package/dist/node_modules/axios/lib/helpers/parseHeaders.js +0 -47
- package/dist/node_modules/axios/lib/helpers/parseProtocol.js +0 -7
- package/dist/node_modules/axios/lib/helpers/progressEventReducer.js +0 -41
- package/dist/node_modules/axios/lib/helpers/resolveConfig.js +0 -46
- package/dist/node_modules/axios/lib/helpers/speedometer.js +0 -36
- package/dist/node_modules/axios/lib/helpers/spread.js +0 -8
- package/dist/node_modules/axios/lib/helpers/throttle.js +0 -35
- package/dist/node_modules/axios/lib/helpers/toFormData.js +0 -117
- package/dist/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -18
- package/dist/node_modules/axios/lib/helpers/trackStream.js +0 -80
- package/dist/node_modules/axios/lib/helpers/validator.js +0 -67
- package/dist/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -4
- package/dist/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -4
- package/dist/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -5
- package/dist/node_modules/axios/lib/platform/browser/index.js +0 -15
- package/dist/node_modules/axios/lib/platform/common/utils.js +0 -15
- package/dist/node_modules/axios/lib/platform/index.js +0 -9
- package/dist/node_modules/axios/lib/utils.js +0 -415
- package/dist/node_modules/classnames/index.js +0 -61
- package/dist/node_modules/copy-to-clipboard/index.js +0 -101
- package/dist/node_modules/country-flag-icons/modules/react/3x2/index.js +0 -6570
- package/dist/node_modules/country-flag-icons/react/3x2/index.js +0 -269
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +0 -8
- package/dist/node_modules/date-fns/_lib/defaultOptions.js +0 -7
- package/dist/node_modules/date-fns/_lib/format/formatters.js +0 -652
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +0 -62
- package/dist/node_modules/date-fns/_lib/format/longFormatters.js +0 -58
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +0 -20
- package/dist/node_modules/date-fns/_lib/normalizeDates.js +0 -11
- package/dist/node_modules/date-fns/_lib/normalizeInterval.js +0 -8
- package/dist/node_modules/date-fns/_lib/protectedTokens.js +0 -23
- package/dist/node_modules/date-fns/addDays.js +0 -12
- package/dist/node_modules/date-fns/addMonths.js +0 -26
- package/dist/node_modules/date-fns/addWeeks.js +0 -7
- package/dist/node_modules/date-fns/addYears.js +0 -7
- package/dist/node_modules/date-fns/constants.js +0 -14
- package/dist/node_modules/date-fns/constructFrom.js +0 -11
- package/dist/node_modules/date-fns/differenceInCalendarDays.js +0 -19
- package/dist/node_modules/date-fns/differenceInCalendarMonths.js +0 -14
- package/dist/node_modules/date-fns/eachMonthOfInterval.js +0 -20
- package/dist/node_modules/date-fns/eachYearOfInterval.js +0 -20
- package/dist/node_modules/date-fns/endOfISOWeek.js +0 -7
- package/dist/node_modules/date-fns/endOfMonth.js +0 -11
- package/dist/node_modules/date-fns/endOfWeek.js +0 -15
- package/dist/node_modules/date-fns/endOfYear.js +0 -11
- package/dist/node_modules/date-fns/format.js +0 -77
- package/dist/node_modules/date-fns/getDayOfYear.js +0 -12
- package/dist/node_modules/date-fns/getDaysInMonth.js +0 -14
- package/dist/node_modules/date-fns/getDefaultOptions.js +0 -7
- package/dist/node_modules/date-fns/getISODay.js +0 -8
- package/dist/node_modules/date-fns/getISOWeek.js +0 -12
- package/dist/node_modules/date-fns/getISOWeekYear.js +0 -25
- package/dist/node_modules/date-fns/getMonth.js +0 -7
- package/dist/node_modules/date-fns/getWeek.js +0 -12
- package/dist/node_modules/date-fns/getWeekYear.js +0 -28
- package/dist/node_modules/date-fns/getYear.js +0 -7
- package/dist/node_modules/date-fns/isAfter.js +0 -7
- package/dist/node_modules/date-fns/isBefore.js +0 -7
- package/dist/node_modules/date-fns/isDate.js +0 -6
- package/dist/node_modules/date-fns/isSameDay.js +0 -13
- package/dist/node_modules/date-fns/isSameMonth.js +0 -12
- package/dist/node_modules/date-fns/isSameYear.js +0 -12
- package/dist/node_modules/date-fns/isValid.js +0 -8
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +0 -10
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +0 -20
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +0 -43
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +0 -16
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +0 -85
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +0 -36
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +0 -12
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +0 -164
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +0 -122
- package/dist/node_modules/date-fns/locale/en-US.js +0 -20
- package/dist/node_modules/date-fns/max.js +0 -16
- package/dist/node_modules/date-fns/min.js +0 -16
- package/dist/node_modules/date-fns/parse/_lib/Parser.js +0 -25
- package/dist/node_modules/date-fns/parse/_lib/Setter.js +0 -44
- package/dist/node_modules/date-fns/parse/_lib/constants.js +0 -50
- package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +0 -44
- package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js +0 -44
- package/dist/node_modules/date-fns/parse/_lib/parsers/DateParser.js +0 -64
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js +0 -52
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayParser.js +0 -45
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js +0 -44
- package/dist/node_modules/date-fns/parse/_lib/parsers/EraParser.js +0 -30
- package/dist/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js +0 -20
- package/dist/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +0 -17
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js +0 -32
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js +0 -27
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js +0 -28
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js +0 -34
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js +0 -106
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +0 -43
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +0 -43
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js +0 -43
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +0 -39
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js +0 -76
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js +0 -42
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +0 -67
- package/dist/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js +0 -27
- package/dist/node_modules/date-fns/parse/_lib/parsers/MonthParser.js +0 -73
- package/dist/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js +0 -71
- package/dist/node_modules/date-fns/parse/_lib/parsers/SecondParser.js +0 -27
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +0 -76
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +0 -73
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +0 -71
- package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +0 -16
- package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +0 -16
- package/dist/node_modules/date-fns/parse/_lib/parsers/YearParser.js +0 -47
- package/dist/node_modules/date-fns/parse/_lib/parsers.js +0 -67
- package/dist/node_modules/date-fns/parse/_lib/utils.js +0 -117
- package/dist/node_modules/date-fns/parse.js +0 -123
- package/dist/node_modules/date-fns/setDay.js +0 -17
- package/dist/node_modules/date-fns/setISODay.js +0 -12
- package/dist/node_modules/date-fns/setISOWeek.js +0 -11
- package/dist/node_modules/date-fns/setMonth.js +0 -17
- package/dist/node_modules/date-fns/setWeek.js +0 -11
- package/dist/node_modules/date-fns/setYear.js +0 -11
- package/dist/node_modules/date-fns/startOfDay.js +0 -9
- package/dist/node_modules/date-fns/startOfISOWeek.js +0 -7
- package/dist/node_modules/date-fns/startOfISOWeekYear.js +0 -13
- package/dist/node_modules/date-fns/startOfMonth.js +0 -10
- package/dist/node_modules/date-fns/startOfWeek.js +0 -15
- package/dist/node_modules/date-fns/startOfWeekYear.js +0 -17
- package/dist/node_modules/date-fns/startOfYear.js +0 -10
- package/dist/node_modules/date-fns/toDate.js +0 -7
- package/dist/node_modules/date-fns/transpose.js +0 -18
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/getTimezoneOffsetInMilliseconds/index.js +0 -8
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/newDateUTC/index.js +0 -9
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/tzIntlTimeZoneName/index.js +0 -29
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/tzParseTimezone/index.js +0 -89
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/tzPattern/index.js +0 -4
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/tzTokenizeDate/index.js +0 -81
- package/dist/node_modules/date-fns-tz/dist/esm/format/formatters/index.js +0 -125
- package/dist/node_modules/date-fns-tz/dist/esm/format/index.js +0 -24
- package/dist/node_modules/date-fns-tz/dist/esm/formatInTimeZone/index.js +0 -13
- package/dist/node_modules/date-fns-tz/dist/esm/toDate/index.js +0 -305
- package/dist/node_modules/date-fns-tz/dist/esm/toZonedTime/index.js +0 -14
- package/dist/node_modules/deepmerge/dist/es.js +0 -69
- package/dist/node_modules/dom-css/index.js +0 -65
- package/dist/node_modules/domelementtype/lib/index.js +0 -39
- package/dist/node_modules/domhandler/lib/index.js +0 -166
- package/dist/node_modules/domhandler/lib/node.js +0 -438
- package/dist/node_modules/dompurify/dist/purify.es.js +0 -1020
- package/dist/node_modules/firebase/app/dist/esm/index.esm.js +0 -20
- package/dist/node_modules/firebase/auth/dist/esm/index.esm.js +0 -44
- package/dist/node_modules/formik/dist/formik.esm.js +0 -969
- package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +0 -92
- package/dist/node_modules/html-dom-parser/lib/client/constants.js +0 -55
- package/dist/node_modules/html-dom-parser/lib/client/domparser.js +0 -96
- package/dist/node_modules/html-dom-parser/lib/client/html-to-dom.js +0 -31
- package/dist/node_modules/html-dom-parser/lib/client/utilities.js +0 -96
- package/dist/node_modules/html-react-parser/esm/index.js +0 -5
- package/dist/node_modules/html-react-parser/lib/attributes-to-props.js +0 -64
- package/dist/node_modules/html-react-parser/lib/dom-to-react.js +0 -99
- package/dist/node_modules/html-react-parser/lib/index.js +0 -51
- package/dist/node_modules/html-react-parser/lib/utilities.js +0 -79
- package/dist/node_modules/idb/build/index.js +0 -69
- package/dist/node_modules/idb/build/wrap-idb-value.js +0 -148
- package/dist/node_modules/inline-style-parser/cjs/index.js +0 -142
- package/dist/node_modules/js-cookie/dist/js.cookie.js +0 -99
- package/dist/node_modules/json2mq/index.js +0 -55
- package/dist/node_modules/lodash-es/_DataView.js +0 -6
- package/dist/node_modules/lodash-es/_Hash.js +0 -21
- package/dist/node_modules/lodash-es/_ListCache.js +0 -21
- package/dist/node_modules/lodash-es/_Map.js +0 -6
- package/dist/node_modules/lodash-es/_MapCache.js +0 -21
- package/dist/node_modules/lodash-es/_Promise.js +0 -6
- package/dist/node_modules/lodash-es/_Set.js +0 -6
- package/dist/node_modules/lodash-es/_Stack.js +0 -18
- package/dist/node_modules/lodash-es/_Symbol.js +0 -5
- package/dist/node_modules/lodash-es/_Uint8Array.js +0 -5
- package/dist/node_modules/lodash-es/_WeakMap.js +0 -6
- package/dist/node_modules/lodash-es/_arrayEach.js +0 -12
- package/dist/node_modules/lodash-es/_arrayFilter.js +0 -13
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +0 -24
- package/dist/node_modules/lodash-es/_arrayMap.js +0 -10
- package/dist/node_modules/lodash-es/_arrayPush.js +0 -10
- package/dist/node_modules/lodash-es/_assignValue.js +0 -13
- package/dist/node_modules/lodash-es/_assocIndexOf.js +0 -13
- package/dist/node_modules/lodash-es/_baseAssign.js +0 -8
- package/dist/node_modules/lodash-es/_baseAssignIn.js +0 -8
- package/dist/node_modules/lodash-es/_baseAssignValue.js +0 -16
- package/dist/node_modules/lodash-es/_baseClone.js +0 -88
- package/dist/node_modules/lodash-es/_baseCreate.js +0 -21
- package/dist/node_modules/lodash-es/_baseGetAllKeys.js +0 -9
- package/dist/node_modules/lodash-es/_baseGetTag.js +0 -14
- package/dist/node_modules/lodash-es/_baseIsArguments.js +0 -9
- package/dist/node_modules/lodash-es/_baseIsMap.js +0 -9
- package/dist/node_modules/lodash-es/_baseIsNative.js +0 -22
- package/dist/node_modules/lodash-es/_baseIsSet.js +0 -9
- package/dist/node_modules/lodash-es/_baseIsTypedArray.js +0 -14
- package/dist/node_modules/lodash-es/_baseKeys.js +0 -19
- package/dist/node_modules/lodash-es/_baseKeysIn.js +0 -20
- package/dist/node_modules/lodash-es/_baseTimes.js +0 -10
- package/dist/node_modules/lodash-es/_baseToString.js +0 -21
- package/dist/node_modules/lodash-es/_baseUnary.js +0 -8
- package/dist/node_modules/lodash-es/_cloneArrayBuffer.js +0 -9
- package/dist/node_modules/lodash-es/_cloneBuffer.js +0 -16
- package/dist/node_modules/lodash-es/_cloneDataView.js +0 -8
- package/dist/node_modules/lodash-es/_cloneRegExp.js +0 -9
- package/dist/node_modules/lodash-es/_cloneSymbol.js +0 -8
- package/dist/node_modules/lodash-es/_cloneTypedArray.js +0 -8
- package/dist/node_modules/lodash-es/_copyArray.js +0 -11
- package/dist/node_modules/lodash-es/_copyObject.js +0 -23
- package/dist/node_modules/lodash-es/_copySymbols.js +0 -8
- package/dist/node_modules/lodash-es/_copySymbolsIn.js +0 -8
- package/dist/node_modules/lodash-es/_coreJsData.js +0 -5
- package/dist/node_modules/lodash-es/_defineProperty.js +0 -12
- package/dist/node_modules/lodash-es/_freeGlobal.js +0 -4
- package/dist/node_modules/lodash-es/_getAllKeys.js +0 -9
- package/dist/node_modules/lodash-es/_getAllKeysIn.js +0 -9
- package/dist/node_modules/lodash-es/_getMapData.js +0 -8
- package/dist/node_modules/lodash-es/_getNative.js +0 -9
- package/dist/node_modules/lodash-es/_getPrototype.js +0 -5
- package/dist/node_modules/lodash-es/_getRawTag.js +0 -25
- package/dist/node_modules/lodash-es/_getSymbols.js +0 -17
- package/dist/node_modules/lodash-es/_getSymbolsIn.js +0 -16
- package/dist/node_modules/lodash-es/_getTag.js +0 -34
- package/dist/node_modules/lodash-es/_getValue.js +0 -6
- package/dist/node_modules/lodash-es/_hashClear.js +0 -8
- package/dist/node_modules/lodash-es/_hashDelete.js +0 -8
- package/dist/node_modules/lodash-es/_hashGet.js +0 -15
- package/dist/node_modules/lodash-es/_hashHas.js +0 -10
- package/dist/node_modules/lodash-es/_hashSet.js +0 -11
- package/dist/node_modules/lodash-es/_initCloneArray.js +0 -13
- package/dist/node_modules/lodash-es/_initCloneByTag.js +0 -43
- package/dist/node_modules/lodash-es/_initCloneObject.js +0 -9
- package/dist/node_modules/lodash-es/_isIndex.js +0 -10
- package/dist/node_modules/lodash-es/_isKeyable.js +0 -7
- package/dist/node_modules/lodash-es/_isMasked.js +0 -11
- package/dist/node_modules/lodash-es/_isPrototype.js +0 -8
- package/dist/node_modules/lodash-es/_listCacheClear.js +0 -7
- package/dist/node_modules/lodash-es/_listCacheDelete.js +0 -20
- package/dist/node_modules/lodash-es/_listCacheGet.js +0 -8
- package/dist/node_modules/lodash-es/_listCacheHas.js +0 -7
- package/dist/node_modules/lodash-es/_listCacheSet.js +0 -14
- package/dist/node_modules/lodash-es/_mapCacheClear.js +0 -14
- package/dist/node_modules/lodash-es/_mapCacheDelete.js +0 -9
- package/dist/node_modules/lodash-es/_mapCacheGet.js +0 -7
- package/dist/node_modules/lodash-es/_mapCacheHas.js +0 -7
- package/dist/node_modules/lodash-es/_mapCacheSet.js +0 -10
- package/dist/node_modules/lodash-es/_memoizeCapped.js +0 -15
- package/dist/node_modules/lodash-es/_nativeCreate.js +0 -5
- package/dist/node_modules/lodash-es/_nativeKeys.js +0 -5
- package/dist/node_modules/lodash-es/_nativeKeysIn.js +0 -12
- package/dist/node_modules/lodash-es/_nodeUtil.js +0 -18
- package/dist/node_modules/lodash-es/_objectToString.js +0 -8
- package/dist/node_modules/lodash-es/_overArg.js +0 -8
- package/dist/node_modules/lodash-es/_root.js +0 -6
- package/dist/node_modules/lodash-es/_stackClear.js +0 -8
- package/dist/node_modules/lodash-es/_stackDelete.js +0 -8
- package/dist/node_modules/lodash-es/_stackGet.js +0 -6
- package/dist/node_modules/lodash-es/_stackHas.js +0 -6
- package/dist/node_modules/lodash-es/_stackSet.js +0 -22
- package/dist/node_modules/lodash-es/_stringToPath.js +0 -16
- package/dist/node_modules/lodash-es/_toKey.js +0 -11
- package/dist/node_modules/lodash-es/_toSource.js +0 -18
- package/dist/node_modules/lodash-es/clone.js +0 -8
- package/dist/node_modules/lodash-es/cloneDeep.js +0 -8
- package/dist/node_modules/lodash-es/eq.js +0 -6
- package/dist/node_modules/lodash-es/isArguments.js +0 -13
- package/dist/node_modules/lodash-es/isArray.js +0 -4
- package/dist/node_modules/lodash-es/isArrayLike.js +0 -8
- package/dist/node_modules/lodash-es/isBuffer.js +0 -11
- package/dist/node_modules/lodash-es/isFunction.js +0 -13
- package/dist/node_modules/lodash-es/isLength.js +0 -7
- package/dist/node_modules/lodash-es/isMap.js +0 -8
- package/dist/node_modules/lodash-es/isObject.js +0 -7
- package/dist/node_modules/lodash-es/isObjectLike.js +0 -6
- package/dist/node_modules/lodash-es/isPlainObject.js +0 -22
- package/dist/node_modules/lodash-es/isSet.js +0 -8
- package/dist/node_modules/lodash-es/isSymbol.js +0 -9
- package/dist/node_modules/lodash-es/isTypedArray.js +0 -8
- package/dist/node_modules/lodash-es/keys.js +0 -9
- package/dist/node_modules/lodash-es/keysIn.js +0 -9
- package/dist/node_modules/lodash-es/memoize.js +0 -22
- package/dist/node_modules/lodash-es/stubArray.js +0 -6
- package/dist/node_modules/lodash-es/stubFalse.js +0 -6
- package/dist/node_modules/lodash-es/toPath.js +0 -16
- package/dist/node_modules/lodash-es/toString.js +0 -7
- package/dist/node_modules/lodash.debounce/index.js +0 -137
- package/dist/node_modules/memoize-one/dist/memoize-one.esm.js +0 -52
- package/dist/node_modules/mixpanel-browser/dist/mixpanel.module.js +0 -25533
- package/dist/node_modules/object-assign/index.js +0 -73
- package/dist/node_modules/performance-now/lib/performance-now.js +0 -42
- package/dist/node_modules/popper.js/dist/esm/popper.js +0 -1516
- package/dist/node_modules/prefix-style/index.js +0 -29
- package/dist/node_modules/prop-types/checkPropTypes.js +0 -68
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js +0 -58
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +0 -451
- package/dist/node_modules/prop-types/index.js +0 -20
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -12
- package/dist/node_modules/prop-types/lib/has.js +0 -11
- package/dist/node_modules/property-expr/index.js +0 -105
- package/dist/node_modules/qrcode.react/lib/esm/index.js +0 -1099
- package/dist/node_modules/raf/index.js +0 -67
- package/dist/node_modules/react-collapse/lib/Collapse.js +0 -285
- package/dist/node_modules/react-collapse/lib/UnmountClosed.js +0 -278
- package/dist/node_modules/react-collapse/lib/index.js +0 -17
- package/dist/node_modules/react-copy-to-clipboard/lib/Component.js +0 -209
- package/dist/node_modules/react-copy-to-clipboard/lib/index.js +0 -14
- package/dist/node_modules/react-custom-scrollbars-4/lib/Scrollbars/defaultRenderElements.js +0 -85
- package/dist/node_modules/react-custom-scrollbars-4/lib/Scrollbars/index.js +0 -706
- package/dist/node_modules/react-custom-scrollbars-4/lib/Scrollbars/styles.js +0 -67
- package/dist/node_modules/react-custom-scrollbars-4/lib/index.js +0 -24
- package/dist/node_modules/react-custom-scrollbars-4/lib/utils/getInnerHeight.js +0 -21
- package/dist/node_modules/react-custom-scrollbars-4/lib/utils/getInnerWidth.js +0 -21
- package/dist/node_modules/react-custom-scrollbars-4/lib/utils/getScrollbarWidth.js +0 -44
- package/dist/node_modules/react-custom-scrollbars-4/lib/utils/isString.js +0 -19
- package/dist/node_modules/react-custom-scrollbars-4/lib/utils/returnFalse.js +0 -19
- package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +0 -325
- package/dist/node_modules/react-day-picker/dist/esm/UI.js +0 -59
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +0 -25
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +0 -282
- package/dist/node_modules/react-day-picker/dist/esm/components/Button.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +0 -18
- package/dist/node_modules/react-day-picker/dist/esm/components/Day.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js +0 -21
- package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Month.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Months.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js +0 -34
- package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/components/Option.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/components/Root.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/Select.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Week.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js +0 -11
- package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js +0 -54
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +0 -10
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +0 -10
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +0 -18
- package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +0 -40
- package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +0 -72
- package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +0 -11
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +0 -17
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +0 -10
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +0 -19
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js +0 -30
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +0 -12
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +0 -20
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +0 -15
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +0 -22
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +0 -16
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +0 -16
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getLabels.js +0 -41
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +0 -17
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +0 -43
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +0 -39
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +0 -20
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +0 -20
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +0 -20
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +0 -14
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +0 -23
- package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +0 -14
- package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +0 -26
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +0 -14
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +0 -10
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +0 -11
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/locale/en-US.js +0 -62
- package/dist/node_modules/react-day-picker/dist/esm/noonDateLib.js +0 -145
- package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js +0 -42
- package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js +0 -33
- package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js +0 -33
- package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +0 -128
- package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +0 -100
- package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/useFocus.js +0 -42
- package/dist/node_modules/react-day-picker/dist/esm/useSelection.js +0 -21
- package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +0 -55
- package/dist/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js +0 -53
- package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +0 -52
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +0 -17
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +0 -61
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +0 -23
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js +0 -11
- package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js +0 -26
- package/dist/node_modules/react-fast-compare/index.js +0 -63
- package/dist/node_modules/react-helmet/es/Helmet.js +0 -717
- package/dist/node_modules/react-helmet/node_modules/react-fast-compare/index.js +0 -81
- package/dist/node_modules/react-intersection-observer/dist/index.js +0 -178
- package/dist/node_modules/react-is/cjs/react-is.development.js +0 -157
- package/dist/node_modules/react-is/cjs/react-is.production.min.js +0 -98
- package/dist/node_modules/react-is/index.js +0 -17
- package/dist/node_modules/react-otp-input/lib/index.esm.js +0 -168
- package/dist/node_modules/react-portal/es/LegacyPortal.js +0 -91
- package/dist/node_modules/react-portal/es/Portal.js +0 -74
- package/dist/node_modules/react-portal/es/PortalCompat.js +0 -12
- package/dist/node_modules/react-portal/es/utils.js +0 -4
- package/dist/node_modules/react-property/lib/index.js +0 -471
- package/dist/node_modules/react-property/lib/possibleStandardNamesOptimized.js +0 -499
- package/dist/node_modules/react-range/lib/Range.js +0 -592
- package/dist/node_modules/react-range/lib/index.js +0 -39
- package/dist/node_modules/react-range/lib/types.js +0 -19
- package/dist/node_modules/react-range/lib/utils.js +0 -318
- package/dist/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +0 -19
- package/dist/node_modules/react-select/dist/Select-ef7c0426.esm.js +0 -2317
- package/dist/node_modules/react-select/dist/index-641ee5b8.esm.js +0 -1071
- package/dist/node_modules/react-select/dist/react-select.esm.js +0 -20
- package/dist/node_modules/react-select/dist/useCreatable-09aaeb9a.esm.js +0 -75
- package/dist/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +0 -51
- package/dist/node_modules/react-side-effect/lib/index.js +0 -105
- package/dist/node_modules/react-slick/lib/arrows.js +0 -248
- package/dist/node_modules/react-slick/lib/default-props.js +0 -85
- package/dist/node_modules/react-slick/lib/dots.js +0 -192
- package/dist/node_modules/react-slick/lib/index.js +0 -22
- package/dist/node_modules/react-slick/lib/initial-state.js +0 -48
- package/dist/node_modules/react-slick/lib/inner-slider.js +0 -810
- package/dist/node_modules/react-slick/lib/slider.js +0 -333
- package/dist/node_modules/react-slick/lib/track.js +0 -330
- package/dist/node_modules/react-slick/lib/utils/innerSliderUtils.js +0 -730
- package/dist/node_modules/react-table/dist/react-table.development.js +0 -3684
- package/dist/node_modules/react-table/dist/react-table.production.min.js +0 -1637
- package/dist/node_modules/react-table/index.js +0 -17
- package/dist/node_modules/react-tippy/dist/react-tippy.js +0 -1981
- package/dist/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +0 -495
- package/dist/node_modules/string-convert/camel2hyphen.js +0 -16
- package/dist/node_modules/style-to-js/cjs/index.js +0 -31
- package/dist/node_modules/style-to-js/cjs/utilities.js +0 -42
- package/dist/node_modules/style-to-object/cjs/index.js +0 -38
- package/dist/node_modules/stylis/src/Enum.js +0 -20
- package/dist/node_modules/stylis/src/Middleware.js +0 -22
- package/dist/node_modules/stylis/src/Parser.js +0 -157
- package/dist/node_modules/stylis/src/Serializer.js +0 -29
- package/dist/node_modules/stylis/src/Tokenizer.js +0 -160
- package/dist/node_modules/stylis/src/Utility.js +0 -52
- package/dist/node_modules/tiny-case/index.js +0 -33
- package/dist/node_modules/tiny-warning/dist/tiny-warning.esm.js +0 -16
- package/dist/node_modules/to-camel-case/index.js +0 -18
- package/dist/node_modules/to-no-case/index.js +0 -32
- package/dist/node_modules/to-space-case/index.js +0 -18
- package/dist/node_modules/toggle-selection/index.js +0 -42
- package/dist/node_modules/toposort/index.js +0 -79
- package/dist/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js +0 -5
- package/dist/node_modules/yup/index.esm.js +0 -1921
|
@@ -1,717 +0,0 @@
|
|
|
1
|
-
import PropTypes from "../../../_virtual/index2.js";
|
|
2
|
-
import withSideEffect from "../../../_virtual/index15.js";
|
|
3
|
-
import isEqual from "../../../_virtual/index16.js";
|
|
4
|
-
import React__default from "react";
|
|
5
|
-
import objectAssign from "../../../_virtual/index17.js";
|
|
6
|
-
var ATTRIBUTE_NAMES = {
|
|
7
|
-
BODY: "bodyAttributes",
|
|
8
|
-
HTML: "htmlAttributes",
|
|
9
|
-
TITLE: "titleAttributes"
|
|
10
|
-
};
|
|
11
|
-
var TAG_NAMES = {
|
|
12
|
-
BASE: "base",
|
|
13
|
-
BODY: "body",
|
|
14
|
-
HEAD: "head",
|
|
15
|
-
HTML: "html",
|
|
16
|
-
LINK: "link",
|
|
17
|
-
META: "meta",
|
|
18
|
-
NOSCRIPT: "noscript",
|
|
19
|
-
SCRIPT: "script",
|
|
20
|
-
STYLE: "style",
|
|
21
|
-
TITLE: "title"
|
|
22
|
-
};
|
|
23
|
-
var VALID_TAG_NAMES = Object.keys(TAG_NAMES).map(function(name) {
|
|
24
|
-
return TAG_NAMES[name];
|
|
25
|
-
});
|
|
26
|
-
var TAG_PROPERTIES = {
|
|
27
|
-
CHARSET: "charset",
|
|
28
|
-
CSS_TEXT: "cssText",
|
|
29
|
-
HREF: "href",
|
|
30
|
-
HTTPEQUIV: "http-equiv",
|
|
31
|
-
INNER_HTML: "innerHTML",
|
|
32
|
-
ITEM_PROP: "itemprop",
|
|
33
|
-
NAME: "name",
|
|
34
|
-
PROPERTY: "property",
|
|
35
|
-
REL: "rel",
|
|
36
|
-
SRC: "src",
|
|
37
|
-
TARGET: "target"
|
|
38
|
-
};
|
|
39
|
-
var REACT_TAG_MAP = {
|
|
40
|
-
accesskey: "accessKey",
|
|
41
|
-
charset: "charSet",
|
|
42
|
-
class: "className",
|
|
43
|
-
contenteditable: "contentEditable",
|
|
44
|
-
contextmenu: "contextMenu",
|
|
45
|
-
"http-equiv": "httpEquiv",
|
|
46
|
-
itemprop: "itemProp",
|
|
47
|
-
tabindex: "tabIndex"
|
|
48
|
-
};
|
|
49
|
-
var HELMET_PROPS = {
|
|
50
|
-
DEFAULT_TITLE: "defaultTitle",
|
|
51
|
-
DEFER: "defer",
|
|
52
|
-
ENCODE_SPECIAL_CHARACTERS: "encodeSpecialCharacters",
|
|
53
|
-
ON_CHANGE_CLIENT_STATE: "onChangeClientState",
|
|
54
|
-
TITLE_TEMPLATE: "titleTemplate"
|
|
55
|
-
};
|
|
56
|
-
var HTML_TAG_MAP = Object.keys(REACT_TAG_MAP).reduce(function(obj, key) {
|
|
57
|
-
obj[REACT_TAG_MAP[key]] = key;
|
|
58
|
-
return obj;
|
|
59
|
-
}, {});
|
|
60
|
-
var SELF_CLOSING_TAGS = [TAG_NAMES.NOSCRIPT, TAG_NAMES.SCRIPT, TAG_NAMES.STYLE];
|
|
61
|
-
var HELMET_ATTRIBUTE = "data-react-helmet";
|
|
62
|
-
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
|
|
63
|
-
return typeof obj;
|
|
64
|
-
} : function(obj) {
|
|
65
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
66
|
-
};
|
|
67
|
-
var classCallCheck = function(instance, Constructor) {
|
|
68
|
-
if (!(instance instanceof Constructor)) {
|
|
69
|
-
throw new TypeError("Cannot call a class as a function");
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
var createClass = /* @__PURE__ */ (function() {
|
|
73
|
-
function defineProperties(target, props) {
|
|
74
|
-
for (var i = 0; i < props.length; i++) {
|
|
75
|
-
var descriptor = props[i];
|
|
76
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
77
|
-
descriptor.configurable = true;
|
|
78
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
79
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
return function(Constructor, protoProps, staticProps) {
|
|
83
|
-
if (protoProps) defineProperties(Constructor.prototype, protoProps);
|
|
84
|
-
if (staticProps) defineProperties(Constructor, staticProps);
|
|
85
|
-
return Constructor;
|
|
86
|
-
};
|
|
87
|
-
})();
|
|
88
|
-
var _extends = Object.assign || function(target) {
|
|
89
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
90
|
-
var source = arguments[i];
|
|
91
|
-
for (var key in source) {
|
|
92
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
93
|
-
target[key] = source[key];
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
return target;
|
|
98
|
-
};
|
|
99
|
-
var inherits = function(subClass, superClass) {
|
|
100
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
101
|
-
throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
|
|
102
|
-
}
|
|
103
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
104
|
-
constructor: {
|
|
105
|
-
value: subClass,
|
|
106
|
-
enumerable: false,
|
|
107
|
-
writable: true,
|
|
108
|
-
configurable: true
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
|
|
112
|
-
};
|
|
113
|
-
var objectWithoutProperties = function(obj, keys) {
|
|
114
|
-
var target = {};
|
|
115
|
-
for (var i in obj) {
|
|
116
|
-
if (keys.indexOf(i) >= 0) continue;
|
|
117
|
-
if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
|
|
118
|
-
target[i] = obj[i];
|
|
119
|
-
}
|
|
120
|
-
return target;
|
|
121
|
-
};
|
|
122
|
-
var possibleConstructorReturn = function(self, call) {
|
|
123
|
-
if (!self) {
|
|
124
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
125
|
-
}
|
|
126
|
-
return call && (typeof call === "object" || typeof call === "function") ? call : self;
|
|
127
|
-
};
|
|
128
|
-
var encodeSpecialCharacters = function encodeSpecialCharacters2(str) {
|
|
129
|
-
var encode = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
|
|
130
|
-
if (encode === false) {
|
|
131
|
-
return String(str);
|
|
132
|
-
}
|
|
133
|
-
return String(str).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
134
|
-
};
|
|
135
|
-
var getTitleFromPropsList = function getTitleFromPropsList2(propsList) {
|
|
136
|
-
var innermostTitle = getInnermostProperty(propsList, TAG_NAMES.TITLE);
|
|
137
|
-
var innermostTemplate = getInnermostProperty(propsList, HELMET_PROPS.TITLE_TEMPLATE);
|
|
138
|
-
if (innermostTemplate && innermostTitle) {
|
|
139
|
-
return innermostTemplate.replace(/%s/g, function() {
|
|
140
|
-
return Array.isArray(innermostTitle) ? innermostTitle.join("") : innermostTitle;
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
var innermostDefaultTitle = getInnermostProperty(propsList, HELMET_PROPS.DEFAULT_TITLE);
|
|
144
|
-
return innermostTitle || innermostDefaultTitle || void 0;
|
|
145
|
-
};
|
|
146
|
-
var getOnChangeClientState = function getOnChangeClientState2(propsList) {
|
|
147
|
-
return getInnermostProperty(propsList, HELMET_PROPS.ON_CHANGE_CLIENT_STATE) || function() {
|
|
148
|
-
};
|
|
149
|
-
};
|
|
150
|
-
var getAttributesFromPropsList = function getAttributesFromPropsList2(tagType, propsList) {
|
|
151
|
-
return propsList.filter(function(props) {
|
|
152
|
-
return typeof props[tagType] !== "undefined";
|
|
153
|
-
}).map(function(props) {
|
|
154
|
-
return props[tagType];
|
|
155
|
-
}).reduce(function(tagAttrs, current) {
|
|
156
|
-
return _extends({}, tagAttrs, current);
|
|
157
|
-
}, {});
|
|
158
|
-
};
|
|
159
|
-
var getBaseTagFromPropsList = function getBaseTagFromPropsList2(primaryAttributes, propsList) {
|
|
160
|
-
return propsList.filter(function(props) {
|
|
161
|
-
return typeof props[TAG_NAMES.BASE] !== "undefined";
|
|
162
|
-
}).map(function(props) {
|
|
163
|
-
return props[TAG_NAMES.BASE];
|
|
164
|
-
}).reverse().reduce(function(innermostBaseTag, tag) {
|
|
165
|
-
if (!innermostBaseTag.length) {
|
|
166
|
-
var keys = Object.keys(tag);
|
|
167
|
-
for (var i = 0; i < keys.length; i++) {
|
|
168
|
-
var attributeKey = keys[i];
|
|
169
|
-
var lowerCaseAttributeKey = attributeKey.toLowerCase();
|
|
170
|
-
if (primaryAttributes.indexOf(lowerCaseAttributeKey) !== -1 && tag[lowerCaseAttributeKey]) {
|
|
171
|
-
return innermostBaseTag.concat(tag);
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
return innermostBaseTag;
|
|
176
|
-
}, []);
|
|
177
|
-
};
|
|
178
|
-
var getTagsFromPropsList = function getTagsFromPropsList2(tagName, primaryAttributes, propsList) {
|
|
179
|
-
var approvedSeenTags = {};
|
|
180
|
-
return propsList.filter(function(props) {
|
|
181
|
-
if (Array.isArray(props[tagName])) {
|
|
182
|
-
return true;
|
|
183
|
-
}
|
|
184
|
-
if (typeof props[tagName] !== "undefined") {
|
|
185
|
-
warn("Helmet: " + tagName + ' should be of type "Array". Instead found type "' + _typeof(props[tagName]) + '"');
|
|
186
|
-
}
|
|
187
|
-
return false;
|
|
188
|
-
}).map(function(props) {
|
|
189
|
-
return props[tagName];
|
|
190
|
-
}).reverse().reduce(function(approvedTags, instanceTags) {
|
|
191
|
-
var instanceSeenTags = {};
|
|
192
|
-
instanceTags.filter(function(tag) {
|
|
193
|
-
var primaryAttributeKey = void 0;
|
|
194
|
-
var keys2 = Object.keys(tag);
|
|
195
|
-
for (var i2 = 0; i2 < keys2.length; i2++) {
|
|
196
|
-
var attributeKey2 = keys2[i2];
|
|
197
|
-
var lowerCaseAttributeKey = attributeKey2.toLowerCase();
|
|
198
|
-
if (primaryAttributes.indexOf(lowerCaseAttributeKey) !== -1 && !(primaryAttributeKey === TAG_PROPERTIES.REL && tag[primaryAttributeKey].toLowerCase() === "canonical") && !(lowerCaseAttributeKey === TAG_PROPERTIES.REL && tag[lowerCaseAttributeKey].toLowerCase() === "stylesheet")) {
|
|
199
|
-
primaryAttributeKey = lowerCaseAttributeKey;
|
|
200
|
-
}
|
|
201
|
-
if (primaryAttributes.indexOf(attributeKey2) !== -1 && (attributeKey2 === TAG_PROPERTIES.INNER_HTML || attributeKey2 === TAG_PROPERTIES.CSS_TEXT || attributeKey2 === TAG_PROPERTIES.ITEM_PROP)) {
|
|
202
|
-
primaryAttributeKey = attributeKey2;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
if (!primaryAttributeKey || !tag[primaryAttributeKey]) {
|
|
206
|
-
return false;
|
|
207
|
-
}
|
|
208
|
-
var value = tag[primaryAttributeKey].toLowerCase();
|
|
209
|
-
if (!approvedSeenTags[primaryAttributeKey]) {
|
|
210
|
-
approvedSeenTags[primaryAttributeKey] = {};
|
|
211
|
-
}
|
|
212
|
-
if (!instanceSeenTags[primaryAttributeKey]) {
|
|
213
|
-
instanceSeenTags[primaryAttributeKey] = {};
|
|
214
|
-
}
|
|
215
|
-
if (!approvedSeenTags[primaryAttributeKey][value]) {
|
|
216
|
-
instanceSeenTags[primaryAttributeKey][value] = true;
|
|
217
|
-
return true;
|
|
218
|
-
}
|
|
219
|
-
return false;
|
|
220
|
-
}).reverse().forEach(function(tag) {
|
|
221
|
-
return approvedTags.push(tag);
|
|
222
|
-
});
|
|
223
|
-
var keys = Object.keys(instanceSeenTags);
|
|
224
|
-
for (var i = 0; i < keys.length; i++) {
|
|
225
|
-
var attributeKey = keys[i];
|
|
226
|
-
var tagUnion = objectAssign({}, approvedSeenTags[attributeKey], instanceSeenTags[attributeKey]);
|
|
227
|
-
approvedSeenTags[attributeKey] = tagUnion;
|
|
228
|
-
}
|
|
229
|
-
return approvedTags;
|
|
230
|
-
}, []).reverse();
|
|
231
|
-
};
|
|
232
|
-
var getInnermostProperty = function getInnermostProperty2(propsList, property) {
|
|
233
|
-
for (var i = propsList.length - 1; i >= 0; i--) {
|
|
234
|
-
var props = propsList[i];
|
|
235
|
-
if (props.hasOwnProperty(property)) {
|
|
236
|
-
return props[property];
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
return null;
|
|
240
|
-
};
|
|
241
|
-
var reducePropsToState = function reducePropsToState2(propsList) {
|
|
242
|
-
return {
|
|
243
|
-
baseTag: getBaseTagFromPropsList([TAG_PROPERTIES.HREF, TAG_PROPERTIES.TARGET], propsList),
|
|
244
|
-
bodyAttributes: getAttributesFromPropsList(ATTRIBUTE_NAMES.BODY, propsList),
|
|
245
|
-
defer: getInnermostProperty(propsList, HELMET_PROPS.DEFER),
|
|
246
|
-
encode: getInnermostProperty(propsList, HELMET_PROPS.ENCODE_SPECIAL_CHARACTERS),
|
|
247
|
-
htmlAttributes: getAttributesFromPropsList(ATTRIBUTE_NAMES.HTML, propsList),
|
|
248
|
-
linkTags: getTagsFromPropsList(TAG_NAMES.LINK, [TAG_PROPERTIES.REL, TAG_PROPERTIES.HREF], propsList),
|
|
249
|
-
metaTags: getTagsFromPropsList(TAG_NAMES.META, [TAG_PROPERTIES.NAME, TAG_PROPERTIES.CHARSET, TAG_PROPERTIES.HTTPEQUIV, TAG_PROPERTIES.PROPERTY, TAG_PROPERTIES.ITEM_PROP], propsList),
|
|
250
|
-
noscriptTags: getTagsFromPropsList(TAG_NAMES.NOSCRIPT, [TAG_PROPERTIES.INNER_HTML], propsList),
|
|
251
|
-
onChangeClientState: getOnChangeClientState(propsList),
|
|
252
|
-
scriptTags: getTagsFromPropsList(TAG_NAMES.SCRIPT, [TAG_PROPERTIES.SRC, TAG_PROPERTIES.INNER_HTML], propsList),
|
|
253
|
-
styleTags: getTagsFromPropsList(TAG_NAMES.STYLE, [TAG_PROPERTIES.CSS_TEXT], propsList),
|
|
254
|
-
title: getTitleFromPropsList(propsList),
|
|
255
|
-
titleAttributes: getAttributesFromPropsList(ATTRIBUTE_NAMES.TITLE, propsList)
|
|
256
|
-
};
|
|
257
|
-
};
|
|
258
|
-
var rafPolyfill = (function() {
|
|
259
|
-
var clock = Date.now();
|
|
260
|
-
return function(callback) {
|
|
261
|
-
var currentTime = Date.now();
|
|
262
|
-
if (currentTime - clock > 16) {
|
|
263
|
-
clock = currentTime;
|
|
264
|
-
callback(currentTime);
|
|
265
|
-
} else {
|
|
266
|
-
setTimeout(function() {
|
|
267
|
-
rafPolyfill(callback);
|
|
268
|
-
}, 0);
|
|
269
|
-
}
|
|
270
|
-
};
|
|
271
|
-
})();
|
|
272
|
-
var cafPolyfill = function cafPolyfill2(id) {
|
|
273
|
-
return clearTimeout(id);
|
|
274
|
-
};
|
|
275
|
-
var requestAnimationFrame = typeof window !== "undefined" ? window.requestAnimationFrame && window.requestAnimationFrame.bind(window) || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || rafPolyfill : global.requestAnimationFrame || rafPolyfill;
|
|
276
|
-
var cancelAnimationFrame = typeof window !== "undefined" ? window.cancelAnimationFrame || window.webkitCancelAnimationFrame || window.mozCancelAnimationFrame || cafPolyfill : global.cancelAnimationFrame || cafPolyfill;
|
|
277
|
-
var warn = function warn2(msg) {
|
|
278
|
-
return console && typeof console.warn === "function" && console.warn(msg);
|
|
279
|
-
};
|
|
280
|
-
var _helmetCallback = null;
|
|
281
|
-
var handleClientStateChange = function handleClientStateChange2(newState) {
|
|
282
|
-
if (_helmetCallback) {
|
|
283
|
-
cancelAnimationFrame(_helmetCallback);
|
|
284
|
-
}
|
|
285
|
-
if (newState.defer) {
|
|
286
|
-
_helmetCallback = requestAnimationFrame(function() {
|
|
287
|
-
commitTagChanges(newState, function() {
|
|
288
|
-
_helmetCallback = null;
|
|
289
|
-
});
|
|
290
|
-
});
|
|
291
|
-
} else {
|
|
292
|
-
commitTagChanges(newState);
|
|
293
|
-
_helmetCallback = null;
|
|
294
|
-
}
|
|
295
|
-
};
|
|
296
|
-
var commitTagChanges = function commitTagChanges2(newState, cb) {
|
|
297
|
-
var baseTag = newState.baseTag, bodyAttributes = newState.bodyAttributes, htmlAttributes = newState.htmlAttributes, linkTags = newState.linkTags, metaTags = newState.metaTags, noscriptTags = newState.noscriptTags, onChangeClientState = newState.onChangeClientState, scriptTags = newState.scriptTags, styleTags = newState.styleTags, title = newState.title, titleAttributes = newState.titleAttributes;
|
|
298
|
-
updateAttributes(TAG_NAMES.BODY, bodyAttributes);
|
|
299
|
-
updateAttributes(TAG_NAMES.HTML, htmlAttributes);
|
|
300
|
-
updateTitle(title, titleAttributes);
|
|
301
|
-
var tagUpdates = {
|
|
302
|
-
baseTag: updateTags(TAG_NAMES.BASE, baseTag),
|
|
303
|
-
linkTags: updateTags(TAG_NAMES.LINK, linkTags),
|
|
304
|
-
metaTags: updateTags(TAG_NAMES.META, metaTags),
|
|
305
|
-
noscriptTags: updateTags(TAG_NAMES.NOSCRIPT, noscriptTags),
|
|
306
|
-
scriptTags: updateTags(TAG_NAMES.SCRIPT, scriptTags),
|
|
307
|
-
styleTags: updateTags(TAG_NAMES.STYLE, styleTags)
|
|
308
|
-
};
|
|
309
|
-
var addedTags = {};
|
|
310
|
-
var removedTags = {};
|
|
311
|
-
Object.keys(tagUpdates).forEach(function(tagType) {
|
|
312
|
-
var _tagUpdates$tagType = tagUpdates[tagType], newTags = _tagUpdates$tagType.newTags, oldTags = _tagUpdates$tagType.oldTags;
|
|
313
|
-
if (newTags.length) {
|
|
314
|
-
addedTags[tagType] = newTags;
|
|
315
|
-
}
|
|
316
|
-
if (oldTags.length) {
|
|
317
|
-
removedTags[tagType] = tagUpdates[tagType].oldTags;
|
|
318
|
-
}
|
|
319
|
-
});
|
|
320
|
-
cb && cb();
|
|
321
|
-
onChangeClientState(newState, addedTags, removedTags);
|
|
322
|
-
};
|
|
323
|
-
var flattenArray = function flattenArray2(possibleArray) {
|
|
324
|
-
return Array.isArray(possibleArray) ? possibleArray.join("") : possibleArray;
|
|
325
|
-
};
|
|
326
|
-
var updateTitle = function updateTitle2(title, attributes) {
|
|
327
|
-
if (typeof title !== "undefined" && document.title !== title) {
|
|
328
|
-
document.title = flattenArray(title);
|
|
329
|
-
}
|
|
330
|
-
updateAttributes(TAG_NAMES.TITLE, attributes);
|
|
331
|
-
};
|
|
332
|
-
var updateAttributes = function updateAttributes2(tagName, attributes) {
|
|
333
|
-
var elementTag = document.getElementsByTagName(tagName)[0];
|
|
334
|
-
if (!elementTag) {
|
|
335
|
-
return;
|
|
336
|
-
}
|
|
337
|
-
var helmetAttributeString = elementTag.getAttribute(HELMET_ATTRIBUTE);
|
|
338
|
-
var helmetAttributes = helmetAttributeString ? helmetAttributeString.split(",") : [];
|
|
339
|
-
var attributesToRemove = [].concat(helmetAttributes);
|
|
340
|
-
var attributeKeys = Object.keys(attributes);
|
|
341
|
-
for (var i = 0; i < attributeKeys.length; i++) {
|
|
342
|
-
var attribute = attributeKeys[i];
|
|
343
|
-
var value = attributes[attribute] || "";
|
|
344
|
-
if (elementTag.getAttribute(attribute) !== value) {
|
|
345
|
-
elementTag.setAttribute(attribute, value);
|
|
346
|
-
}
|
|
347
|
-
if (helmetAttributes.indexOf(attribute) === -1) {
|
|
348
|
-
helmetAttributes.push(attribute);
|
|
349
|
-
}
|
|
350
|
-
var indexToSave = attributesToRemove.indexOf(attribute);
|
|
351
|
-
if (indexToSave !== -1) {
|
|
352
|
-
attributesToRemove.splice(indexToSave, 1);
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
for (var _i = attributesToRemove.length - 1; _i >= 0; _i--) {
|
|
356
|
-
elementTag.removeAttribute(attributesToRemove[_i]);
|
|
357
|
-
}
|
|
358
|
-
if (helmetAttributes.length === attributesToRemove.length) {
|
|
359
|
-
elementTag.removeAttribute(HELMET_ATTRIBUTE);
|
|
360
|
-
} else if (elementTag.getAttribute(HELMET_ATTRIBUTE) !== attributeKeys.join(",")) {
|
|
361
|
-
elementTag.setAttribute(HELMET_ATTRIBUTE, attributeKeys.join(","));
|
|
362
|
-
}
|
|
363
|
-
};
|
|
364
|
-
var updateTags = function updateTags2(type, tags) {
|
|
365
|
-
var headElement = document.head || document.querySelector(TAG_NAMES.HEAD);
|
|
366
|
-
var tagNodes = headElement.querySelectorAll(type + "[" + HELMET_ATTRIBUTE + "]");
|
|
367
|
-
var oldTags = Array.prototype.slice.call(tagNodes);
|
|
368
|
-
var newTags = [];
|
|
369
|
-
var indexToDelete = void 0;
|
|
370
|
-
if (tags && tags.length) {
|
|
371
|
-
tags.forEach(function(tag) {
|
|
372
|
-
var newElement = document.createElement(type);
|
|
373
|
-
for (var attribute in tag) {
|
|
374
|
-
if (tag.hasOwnProperty(attribute)) {
|
|
375
|
-
if (attribute === TAG_PROPERTIES.INNER_HTML) {
|
|
376
|
-
newElement.innerHTML = tag.innerHTML;
|
|
377
|
-
} else if (attribute === TAG_PROPERTIES.CSS_TEXT) {
|
|
378
|
-
if (newElement.styleSheet) {
|
|
379
|
-
newElement.styleSheet.cssText = tag.cssText;
|
|
380
|
-
} else {
|
|
381
|
-
newElement.appendChild(document.createTextNode(tag.cssText));
|
|
382
|
-
}
|
|
383
|
-
} else {
|
|
384
|
-
var value = typeof tag[attribute] === "undefined" ? "" : tag[attribute];
|
|
385
|
-
newElement.setAttribute(attribute, value);
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
newElement.setAttribute(HELMET_ATTRIBUTE, "true");
|
|
390
|
-
if (oldTags.some(function(existingTag, index) {
|
|
391
|
-
indexToDelete = index;
|
|
392
|
-
return newElement.isEqualNode(existingTag);
|
|
393
|
-
})) {
|
|
394
|
-
oldTags.splice(indexToDelete, 1);
|
|
395
|
-
} else {
|
|
396
|
-
newTags.push(newElement);
|
|
397
|
-
}
|
|
398
|
-
});
|
|
399
|
-
}
|
|
400
|
-
oldTags.forEach(function(tag) {
|
|
401
|
-
return tag.parentNode.removeChild(tag);
|
|
402
|
-
});
|
|
403
|
-
newTags.forEach(function(tag) {
|
|
404
|
-
return headElement.appendChild(tag);
|
|
405
|
-
});
|
|
406
|
-
return {
|
|
407
|
-
oldTags,
|
|
408
|
-
newTags
|
|
409
|
-
};
|
|
410
|
-
};
|
|
411
|
-
var generateElementAttributesAsString = function generateElementAttributesAsString2(attributes) {
|
|
412
|
-
return Object.keys(attributes).reduce(function(str, key) {
|
|
413
|
-
var attr = typeof attributes[key] !== "undefined" ? key + '="' + attributes[key] + '"' : "" + key;
|
|
414
|
-
return str ? str + " " + attr : attr;
|
|
415
|
-
}, "");
|
|
416
|
-
};
|
|
417
|
-
var generateTitleAsString = function generateTitleAsString2(type, title, attributes, encode) {
|
|
418
|
-
var attributeString = generateElementAttributesAsString(attributes);
|
|
419
|
-
var flattenedTitle = flattenArray(title);
|
|
420
|
-
return attributeString ? "<" + type + " " + HELMET_ATTRIBUTE + '="true" ' + attributeString + ">" + encodeSpecialCharacters(flattenedTitle, encode) + "</" + type + ">" : "<" + type + " " + HELMET_ATTRIBUTE + '="true">' + encodeSpecialCharacters(flattenedTitle, encode) + "</" + type + ">";
|
|
421
|
-
};
|
|
422
|
-
var generateTagsAsString = function generateTagsAsString2(type, tags, encode) {
|
|
423
|
-
return tags.reduce(function(str, tag) {
|
|
424
|
-
var attributeHtml = Object.keys(tag).filter(function(attribute) {
|
|
425
|
-
return !(attribute === TAG_PROPERTIES.INNER_HTML || attribute === TAG_PROPERTIES.CSS_TEXT);
|
|
426
|
-
}).reduce(function(string, attribute) {
|
|
427
|
-
var attr = typeof tag[attribute] === "undefined" ? attribute : attribute + '="' + encodeSpecialCharacters(tag[attribute], encode) + '"';
|
|
428
|
-
return string ? string + " " + attr : attr;
|
|
429
|
-
}, "");
|
|
430
|
-
var tagContent = tag.innerHTML || tag.cssText || "";
|
|
431
|
-
var isSelfClosing = SELF_CLOSING_TAGS.indexOf(type) === -1;
|
|
432
|
-
return str + "<" + type + " " + HELMET_ATTRIBUTE + '="true" ' + attributeHtml + (isSelfClosing ? "/>" : ">" + tagContent + "</" + type + ">");
|
|
433
|
-
}, "");
|
|
434
|
-
};
|
|
435
|
-
var convertElementAttributestoReactProps = function convertElementAttributestoReactProps2(attributes) {
|
|
436
|
-
var initProps = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
437
|
-
return Object.keys(attributes).reduce(function(obj, key) {
|
|
438
|
-
obj[REACT_TAG_MAP[key] || key] = attributes[key];
|
|
439
|
-
return obj;
|
|
440
|
-
}, initProps);
|
|
441
|
-
};
|
|
442
|
-
var convertReactPropstoHtmlAttributes = function convertReactPropstoHtmlAttributes2(props) {
|
|
443
|
-
var initAttributes = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
444
|
-
return Object.keys(props).reduce(function(obj, key) {
|
|
445
|
-
obj[HTML_TAG_MAP[key] || key] = props[key];
|
|
446
|
-
return obj;
|
|
447
|
-
}, initAttributes);
|
|
448
|
-
};
|
|
449
|
-
var generateTitleAsReactComponent = function generateTitleAsReactComponent2(type, title, attributes) {
|
|
450
|
-
var _initProps;
|
|
451
|
-
var initProps = (_initProps = {
|
|
452
|
-
key: title
|
|
453
|
-
}, _initProps[HELMET_ATTRIBUTE] = true, _initProps);
|
|
454
|
-
var props = convertElementAttributestoReactProps(attributes, initProps);
|
|
455
|
-
return [React__default.createElement(TAG_NAMES.TITLE, props, title)];
|
|
456
|
-
};
|
|
457
|
-
var generateTagsAsReactComponent = function generateTagsAsReactComponent2(type, tags) {
|
|
458
|
-
return tags.map(function(tag, i) {
|
|
459
|
-
var _mappedTag;
|
|
460
|
-
var mappedTag = (_mappedTag = {
|
|
461
|
-
key: i
|
|
462
|
-
}, _mappedTag[HELMET_ATTRIBUTE] = true, _mappedTag);
|
|
463
|
-
Object.keys(tag).forEach(function(attribute) {
|
|
464
|
-
var mappedAttribute = REACT_TAG_MAP[attribute] || attribute;
|
|
465
|
-
if (mappedAttribute === TAG_PROPERTIES.INNER_HTML || mappedAttribute === TAG_PROPERTIES.CSS_TEXT) {
|
|
466
|
-
var content = tag.innerHTML || tag.cssText;
|
|
467
|
-
mappedTag.dangerouslySetInnerHTML = { __html: content };
|
|
468
|
-
} else {
|
|
469
|
-
mappedTag[mappedAttribute] = tag[attribute];
|
|
470
|
-
}
|
|
471
|
-
});
|
|
472
|
-
return React__default.createElement(type, mappedTag);
|
|
473
|
-
});
|
|
474
|
-
};
|
|
475
|
-
var getMethodsForTag = function getMethodsForTag2(type, tags, encode) {
|
|
476
|
-
switch (type) {
|
|
477
|
-
case TAG_NAMES.TITLE:
|
|
478
|
-
return {
|
|
479
|
-
toComponent: function toComponent() {
|
|
480
|
-
return generateTitleAsReactComponent(type, tags.title, tags.titleAttributes);
|
|
481
|
-
},
|
|
482
|
-
toString: function toString() {
|
|
483
|
-
return generateTitleAsString(type, tags.title, tags.titleAttributes, encode);
|
|
484
|
-
}
|
|
485
|
-
};
|
|
486
|
-
case ATTRIBUTE_NAMES.BODY:
|
|
487
|
-
case ATTRIBUTE_NAMES.HTML:
|
|
488
|
-
return {
|
|
489
|
-
toComponent: function toComponent() {
|
|
490
|
-
return convertElementAttributestoReactProps(tags);
|
|
491
|
-
},
|
|
492
|
-
toString: function toString() {
|
|
493
|
-
return generateElementAttributesAsString(tags);
|
|
494
|
-
}
|
|
495
|
-
};
|
|
496
|
-
default:
|
|
497
|
-
return {
|
|
498
|
-
toComponent: function toComponent() {
|
|
499
|
-
return generateTagsAsReactComponent(type, tags);
|
|
500
|
-
},
|
|
501
|
-
toString: function toString() {
|
|
502
|
-
return generateTagsAsString(type, tags, encode);
|
|
503
|
-
}
|
|
504
|
-
};
|
|
505
|
-
}
|
|
506
|
-
};
|
|
507
|
-
var mapStateOnServer = function mapStateOnServer2(_ref) {
|
|
508
|
-
var baseTag = _ref.baseTag, bodyAttributes = _ref.bodyAttributes, encode = _ref.encode, htmlAttributes = _ref.htmlAttributes, linkTags = _ref.linkTags, metaTags = _ref.metaTags, noscriptTags = _ref.noscriptTags, scriptTags = _ref.scriptTags, styleTags = _ref.styleTags, _ref$title = _ref.title, title = _ref$title === void 0 ? "" : _ref$title, titleAttributes = _ref.titleAttributes;
|
|
509
|
-
return {
|
|
510
|
-
base: getMethodsForTag(TAG_NAMES.BASE, baseTag, encode),
|
|
511
|
-
bodyAttributes: getMethodsForTag(ATTRIBUTE_NAMES.BODY, bodyAttributes, encode),
|
|
512
|
-
htmlAttributes: getMethodsForTag(ATTRIBUTE_NAMES.HTML, htmlAttributes, encode),
|
|
513
|
-
link: getMethodsForTag(TAG_NAMES.LINK, linkTags, encode),
|
|
514
|
-
meta: getMethodsForTag(TAG_NAMES.META, metaTags, encode),
|
|
515
|
-
noscript: getMethodsForTag(TAG_NAMES.NOSCRIPT, noscriptTags, encode),
|
|
516
|
-
script: getMethodsForTag(TAG_NAMES.SCRIPT, scriptTags, encode),
|
|
517
|
-
style: getMethodsForTag(TAG_NAMES.STYLE, styleTags, encode),
|
|
518
|
-
title: getMethodsForTag(TAG_NAMES.TITLE, { title, titleAttributes }, encode)
|
|
519
|
-
};
|
|
520
|
-
};
|
|
521
|
-
var Helmet = function Helmet2(Component) {
|
|
522
|
-
var _class, _temp;
|
|
523
|
-
return _temp = _class = (function(_React$Component) {
|
|
524
|
-
inherits(HelmetWrapper, _React$Component);
|
|
525
|
-
function HelmetWrapper() {
|
|
526
|
-
classCallCheck(this, HelmetWrapper);
|
|
527
|
-
return possibleConstructorReturn(this, _React$Component.apply(this, arguments));
|
|
528
|
-
}
|
|
529
|
-
HelmetWrapper.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {
|
|
530
|
-
return !isEqual(this.props, nextProps);
|
|
531
|
-
};
|
|
532
|
-
HelmetWrapper.prototype.mapNestedChildrenToProps = function mapNestedChildrenToProps(child, nestedChildren) {
|
|
533
|
-
if (!nestedChildren) {
|
|
534
|
-
return null;
|
|
535
|
-
}
|
|
536
|
-
switch (child.type) {
|
|
537
|
-
case TAG_NAMES.SCRIPT:
|
|
538
|
-
case TAG_NAMES.NOSCRIPT:
|
|
539
|
-
return {
|
|
540
|
-
innerHTML: nestedChildren
|
|
541
|
-
};
|
|
542
|
-
case TAG_NAMES.STYLE:
|
|
543
|
-
return {
|
|
544
|
-
cssText: nestedChildren
|
|
545
|
-
};
|
|
546
|
-
}
|
|
547
|
-
throw new Error("<" + child.type + " /> elements are self-closing and can not contain children. Refer to our API for more information.");
|
|
548
|
-
};
|
|
549
|
-
HelmetWrapper.prototype.flattenArrayTypeChildren = function flattenArrayTypeChildren(_ref) {
|
|
550
|
-
var _babelHelpers$extends;
|
|
551
|
-
var child = _ref.child, arrayTypeChildren = _ref.arrayTypeChildren, newChildProps = _ref.newChildProps, nestedChildren = _ref.nestedChildren;
|
|
552
|
-
return _extends({}, arrayTypeChildren, (_babelHelpers$extends = {}, _babelHelpers$extends[child.type] = [].concat(arrayTypeChildren[child.type] || [], [_extends({}, newChildProps, this.mapNestedChildrenToProps(child, nestedChildren))]), _babelHelpers$extends));
|
|
553
|
-
};
|
|
554
|
-
HelmetWrapper.prototype.mapObjectTypeChildren = function mapObjectTypeChildren(_ref2) {
|
|
555
|
-
var _babelHelpers$extends2, _babelHelpers$extends3;
|
|
556
|
-
var child = _ref2.child, newProps = _ref2.newProps, newChildProps = _ref2.newChildProps, nestedChildren = _ref2.nestedChildren;
|
|
557
|
-
switch (child.type) {
|
|
558
|
-
case TAG_NAMES.TITLE:
|
|
559
|
-
return _extends({}, newProps, (_babelHelpers$extends2 = {}, _babelHelpers$extends2[child.type] = nestedChildren, _babelHelpers$extends2.titleAttributes = _extends({}, newChildProps), _babelHelpers$extends2));
|
|
560
|
-
case TAG_NAMES.BODY:
|
|
561
|
-
return _extends({}, newProps, {
|
|
562
|
-
bodyAttributes: _extends({}, newChildProps)
|
|
563
|
-
});
|
|
564
|
-
case TAG_NAMES.HTML:
|
|
565
|
-
return _extends({}, newProps, {
|
|
566
|
-
htmlAttributes: _extends({}, newChildProps)
|
|
567
|
-
});
|
|
568
|
-
}
|
|
569
|
-
return _extends({}, newProps, (_babelHelpers$extends3 = {}, _babelHelpers$extends3[child.type] = _extends({}, newChildProps), _babelHelpers$extends3));
|
|
570
|
-
};
|
|
571
|
-
HelmetWrapper.prototype.mapArrayTypeChildrenToProps = function mapArrayTypeChildrenToProps(arrayTypeChildren, newProps) {
|
|
572
|
-
var newFlattenedProps = _extends({}, newProps);
|
|
573
|
-
Object.keys(arrayTypeChildren).forEach(function(arrayChildName) {
|
|
574
|
-
var _babelHelpers$extends4;
|
|
575
|
-
newFlattenedProps = _extends({}, newFlattenedProps, (_babelHelpers$extends4 = {}, _babelHelpers$extends4[arrayChildName] = arrayTypeChildren[arrayChildName], _babelHelpers$extends4));
|
|
576
|
-
});
|
|
577
|
-
return newFlattenedProps;
|
|
578
|
-
};
|
|
579
|
-
HelmetWrapper.prototype.warnOnInvalidChildren = function warnOnInvalidChildren(child, nestedChildren) {
|
|
580
|
-
if (process.env.NODE_ENV !== "production") {
|
|
581
|
-
if (!VALID_TAG_NAMES.some(function(name) {
|
|
582
|
-
return child.type === name;
|
|
583
|
-
})) {
|
|
584
|
-
if (typeof child.type === "function") {
|
|
585
|
-
return warn("You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.");
|
|
586
|
-
}
|
|
587
|
-
return warn("Only elements types " + VALID_TAG_NAMES.join(", ") + " are allowed. Helmet does not support rendering <" + child.type + "> elements. Refer to our API for more information.");
|
|
588
|
-
}
|
|
589
|
-
if (nestedChildren && typeof nestedChildren !== "string" && (!Array.isArray(nestedChildren) || nestedChildren.some(function(nestedChild) {
|
|
590
|
-
return typeof nestedChild !== "string";
|
|
591
|
-
}))) {
|
|
592
|
-
throw new Error("Helmet expects a string as a child of <" + child.type + ">. Did you forget to wrap your children in braces? ( <" + child.type + ">{``}</" + child.type + "> ) Refer to our API for more information.");
|
|
593
|
-
}
|
|
594
|
-
}
|
|
595
|
-
return true;
|
|
596
|
-
};
|
|
597
|
-
HelmetWrapper.prototype.mapChildrenToProps = function mapChildrenToProps(children, newProps) {
|
|
598
|
-
var _this2 = this;
|
|
599
|
-
var arrayTypeChildren = {};
|
|
600
|
-
React__default.Children.forEach(children, function(child) {
|
|
601
|
-
if (!child || !child.props) {
|
|
602
|
-
return;
|
|
603
|
-
}
|
|
604
|
-
var _child$props = child.props, nestedChildren = _child$props.children, childProps = objectWithoutProperties(_child$props, ["children"]);
|
|
605
|
-
var newChildProps = convertReactPropstoHtmlAttributes(childProps);
|
|
606
|
-
_this2.warnOnInvalidChildren(child, nestedChildren);
|
|
607
|
-
switch (child.type) {
|
|
608
|
-
case TAG_NAMES.LINK:
|
|
609
|
-
case TAG_NAMES.META:
|
|
610
|
-
case TAG_NAMES.NOSCRIPT:
|
|
611
|
-
case TAG_NAMES.SCRIPT:
|
|
612
|
-
case TAG_NAMES.STYLE:
|
|
613
|
-
arrayTypeChildren = _this2.flattenArrayTypeChildren({
|
|
614
|
-
child,
|
|
615
|
-
arrayTypeChildren,
|
|
616
|
-
newChildProps,
|
|
617
|
-
nestedChildren
|
|
618
|
-
});
|
|
619
|
-
break;
|
|
620
|
-
default:
|
|
621
|
-
newProps = _this2.mapObjectTypeChildren({
|
|
622
|
-
child,
|
|
623
|
-
newProps,
|
|
624
|
-
newChildProps,
|
|
625
|
-
nestedChildren
|
|
626
|
-
});
|
|
627
|
-
break;
|
|
628
|
-
}
|
|
629
|
-
});
|
|
630
|
-
newProps = this.mapArrayTypeChildrenToProps(arrayTypeChildren, newProps);
|
|
631
|
-
return newProps;
|
|
632
|
-
};
|
|
633
|
-
HelmetWrapper.prototype.render = function render() {
|
|
634
|
-
var _props = this.props, children = _props.children, props = objectWithoutProperties(_props, ["children"]);
|
|
635
|
-
var newProps = _extends({}, props);
|
|
636
|
-
if (children) {
|
|
637
|
-
newProps = this.mapChildrenToProps(children, newProps);
|
|
638
|
-
}
|
|
639
|
-
return React__default.createElement(Component, newProps);
|
|
640
|
-
};
|
|
641
|
-
createClass(HelmetWrapper, null, [{
|
|
642
|
-
key: "canUseDOM",
|
|
643
|
-
// Component.peek comes from react-side-effect:
|
|
644
|
-
// For testing, you may use a static peek() method available on the returned component.
|
|
645
|
-
// It lets you get the current state without resetting the mounted instance stack.
|
|
646
|
-
// Don’t use it for anything other than testing.
|
|
647
|
-
/**
|
|
648
|
-
* @param {Object} base: {"target": "_blank", "href": "http://mysite.com/"}
|
|
649
|
-
* @param {Object} bodyAttributes: {"className": "root"}
|
|
650
|
-
* @param {String} defaultTitle: "Default Title"
|
|
651
|
-
* @param {Boolean} defer: true
|
|
652
|
-
* @param {Boolean} encodeSpecialCharacters: true
|
|
653
|
-
* @param {Object} htmlAttributes: {"lang": "en", "amp": undefined}
|
|
654
|
-
* @param {Array} link: [{"rel": "canonical", "href": "http://mysite.com/example"}]
|
|
655
|
-
* @param {Array} meta: [{"name": "description", "content": "Test description"}]
|
|
656
|
-
* @param {Array} noscript: [{"innerHTML": "<img src='http://mysite.com/js/test.js'"}]
|
|
657
|
-
* @param {Function} onChangeClientState: "(newState) => console.log(newState)"
|
|
658
|
-
* @param {Array} script: [{"type": "text/javascript", "src": "http://mysite.com/js/test.js"}]
|
|
659
|
-
* @param {Array} style: [{"type": "text/css", "cssText": "div { display: block; color: blue; }"}]
|
|
660
|
-
* @param {String} title: "Title"
|
|
661
|
-
* @param {Object} titleAttributes: {"itemprop": "name"}
|
|
662
|
-
* @param {String} titleTemplate: "MySite.com - %s"
|
|
663
|
-
*/
|
|
664
|
-
set: function set$$1(canUseDOM) {
|
|
665
|
-
Component.canUseDOM = canUseDOM;
|
|
666
|
-
}
|
|
667
|
-
}]);
|
|
668
|
-
return HelmetWrapper;
|
|
669
|
-
})(React__default.Component), _class.propTypes = {
|
|
670
|
-
base: PropTypes.object,
|
|
671
|
-
bodyAttributes: PropTypes.object,
|
|
672
|
-
children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),
|
|
673
|
-
defaultTitle: PropTypes.string,
|
|
674
|
-
defer: PropTypes.bool,
|
|
675
|
-
encodeSpecialCharacters: PropTypes.bool,
|
|
676
|
-
htmlAttributes: PropTypes.object,
|
|
677
|
-
link: PropTypes.arrayOf(PropTypes.object),
|
|
678
|
-
meta: PropTypes.arrayOf(PropTypes.object),
|
|
679
|
-
noscript: PropTypes.arrayOf(PropTypes.object),
|
|
680
|
-
onChangeClientState: PropTypes.func,
|
|
681
|
-
script: PropTypes.arrayOf(PropTypes.object),
|
|
682
|
-
style: PropTypes.arrayOf(PropTypes.object),
|
|
683
|
-
title: PropTypes.string,
|
|
684
|
-
titleAttributes: PropTypes.object,
|
|
685
|
-
titleTemplate: PropTypes.string
|
|
686
|
-
}, _class.defaultProps = {
|
|
687
|
-
defer: true,
|
|
688
|
-
encodeSpecialCharacters: true
|
|
689
|
-
}, _class.peek = Component.peek, _class.rewind = function() {
|
|
690
|
-
var mappedState = Component.rewind();
|
|
691
|
-
if (!mappedState) {
|
|
692
|
-
mappedState = mapStateOnServer({
|
|
693
|
-
baseTag: [],
|
|
694
|
-
bodyAttributes: {},
|
|
695
|
-
htmlAttributes: {},
|
|
696
|
-
linkTags: [],
|
|
697
|
-
metaTags: [],
|
|
698
|
-
noscriptTags: [],
|
|
699
|
-
scriptTags: [],
|
|
700
|
-
styleTags: [],
|
|
701
|
-
title: "",
|
|
702
|
-
titleAttributes: {}
|
|
703
|
-
});
|
|
704
|
-
}
|
|
705
|
-
return mappedState;
|
|
706
|
-
}, _temp;
|
|
707
|
-
};
|
|
708
|
-
var NullComponent = function NullComponent2() {
|
|
709
|
-
return null;
|
|
710
|
-
};
|
|
711
|
-
var HelmetSideEffects = withSideEffect(reducePropsToState, handleClientStateChange, mapStateOnServer)(NullComponent);
|
|
712
|
-
var HelmetExport = Helmet(HelmetSideEffects);
|
|
713
|
-
HelmetExport.renderStatic = HelmetExport.rewind;
|
|
714
|
-
export {
|
|
715
|
-
HelmetExport as Helmet,
|
|
716
|
-
HelmetExport as default
|
|
717
|
-
};
|