@stokr/components-library 2.3.58-beta.6 → 2.3.58-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/StokrWeb3.js +3 -3
- package/dist/api/auth.js +16 -53
- package/dist/api/fetchData.js +26 -66
- package/dist/api/fetchDataPublic.js +20 -57
- package/dist/components/2FA/Connect2FA.js +10 -11
- package/dist/components/2FA/EnterCode.js +32 -30
- package/dist/components/2FA/EnterCode.stories.js +4 -8
- package/dist/components/2FA/InstallAuthApp.js +8 -9
- package/dist/components/2FA/ResetCode.js +11 -12
- package/dist/components/2FA/Sucess2FA.js +12 -16
- package/dist/components/2FA/disable-2fa-flow.js +53 -104
- package/dist/components/2FA/disable-2fa-flow.stories.js +4 -8
- package/dist/components/2FA/enable-2fa-flow.js +73 -144
- package/dist/components/2FA/enable-2fa-flow.stories.js +4 -8
- package/dist/components/2FA/index.js +9 -9
- package/dist/components/2FA/login-with-otp-flow.js +126 -206
- package/dist/components/2FA/login-with-otp-flow.stories.js +4 -8
- package/dist/components/2FA/main-flow.js +70 -144
- package/dist/components/2FA/main-flow.stories.js +4 -8
- package/dist/components/AccountBalance/AccountBalance.js +14 -13
- package/dist/components/AccountBalance/AccountBalance.stories.js +6 -12
- package/dist/components/AccountBalance/AccountBalance.styles.js +9 -17
- package/dist/components/AdminDashboard/Table/ReactTable.js +77 -84
- package/dist/components/AdminDashboard/Table/ReactTable.stories.js +87 -63
- package/dist/components/AdminDashboard/Table/ReactTableWrapper.js +24 -30
- package/dist/components/AdminDashboard/Table/Table.js +88 -123
- package/dist/components/AdminDashboard/Table/Table.styles.js +28 -90
- package/dist/components/AgreementItem/AgreementItem.js +10 -11
- package/dist/components/AgreementItem/AgreementItem.stories.js +5 -10
- package/dist/components/AgreementItem/AgreementItem.styles.js +8 -12
- package/dist/components/AnalyticGraphs/Analytic.js +504 -743
- package/dist/components/AnalyticGraphs/Analytic.styles.js +14 -26
- package/dist/components/BackButton/BackButton.js +9 -10
- package/dist/components/BackButton/BackButton.stories.js +4 -8
- package/dist/components/BackButton/BackButton.styles.js +13 -51
- package/dist/components/Background/Background.js +12 -11
- package/dist/components/Background/Background.stories.js +8 -14
- package/dist/components/Background/Background.styles.js +17 -33
- package/dist/components/BarChart/BarChart.js +138 -181
- package/dist/components/BarChart/BarChart.stories.js +5 -10
- package/dist/components/BarChart/BarChart.styles.js +8 -15
- package/dist/components/BarChartLegend/BarChartLegend.js +40 -67
- package/dist/components/BarChartLegend/BarChartLegend.styles.js +5 -10
- package/dist/components/BasicTable/BasicTable.js +12 -13
- package/dist/components/BasicTable/BasicTable.stories.js +5 -10
- package/dist/components/BasicTable/BasicTable.styles.js +11 -27
- package/dist/components/BlogPost/BlogPost.js +34 -53
- package/dist/components/BlogPost/BlogPost.stories.js +33 -46
- package/dist/components/BlogPost/BlogPost.styles.js +67 -59
- package/dist/components/Button/Button-stoDetails.js +150 -129
- package/dist/components/Button/Button.stories.js +27 -44
- package/dist/components/Button/Button.styles.js +24 -62
- package/dist/components/Button/GlareButton.js +61 -89
- package/dist/components/Button/GlareButton.stories.js +19 -29
- package/dist/components/ButtonContainer/ButtonContainer.styles.js +5 -10
- package/dist/components/CapitalRaisedSummary/CapitalRaisedSummery.stories.js +4 -8
- package/dist/components/CapitalRaisedSummary/CaptialRaisedSummary.js +9 -10
- package/dist/components/CapitalRaisedSummary/CaptialRaisedSummary.styles.js +8 -17
- package/dist/components/Card/Card.styles.js +14 -41
- package/dist/components/ChartBox/ChartBox.js +5 -8
- package/dist/components/ChartBox/ChartBox.stories.js +3 -6
- package/dist/components/ChartBox/ChartBox.styles.js +8 -14
- package/dist/components/ChartBox/ChartBoxDistribution.js +5 -8
- package/dist/components/ChartBox/ChartBoxDistribution.stories.js +3 -6
- package/dist/components/ChartLegend/ChartLegend.js +30 -46
- package/dist/components/ChartLegend/ChartLegend.stories.js +22 -28
- package/dist/components/ChartLegend/ChartLegend.styles.js +16 -41
- package/dist/components/Checkbox/Checkbox.js +32 -32
- package/dist/components/Checkbox/Checkbox.stories.js +5 -10
- package/dist/components/Checkbox/Checkbox.styles.js +10 -23
- package/dist/components/Checklist/ChecklistCard.js +33 -35
- package/dist/components/Checklist/ChecklistCard.stories.js +77 -100
- package/dist/components/Checklist/ChecklistCard.styles.js +12 -15
- package/dist/components/Chips/Chip.js +14 -13
- package/dist/components/Chips/Chip.stories.js +10 -19
- package/dist/components/Chips/Chip.styles.js +14 -14
- package/dist/components/Chips/ChipWrapper.js +23 -41
- package/dist/components/Chips/ChipsWrapper.stories.js +9 -17
- package/dist/components/ComponentScroll/ComponentScroll.js +25 -34
- package/dist/components/ComponentScroll/ComponentScroll.stories.js +16 -23
- package/dist/components/ComponentScroll/ComponentScroll.styles.js +22 -47
- package/dist/components/ComponentWrapper/ComponentWrapper.styles.js +7 -61
- package/dist/components/CryptoAddress/ComponentWrap.js +10 -11
- package/dist/components/CryptoAddress/CryptoAddress.js +51 -68
- package/dist/components/CryptoAddress/CryptoAddress.stories.js +7 -13
- package/dist/components/CryptoAddress/CryptoAddress.styles.js +55 -124
- package/dist/components/CryptoAddress/RadioWrap.js +9 -10
- package/dist/components/CryptoAddressDetails/CryptoAddressDetails.js +24 -25
- package/dist/components/CryptoAddressDetails/CryptoAddressDetails.stories.js +5 -10
- package/dist/components/CryptoAddressDetails/CryptoAddressDetails.styles.js +12 -42
- package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.js +10 -9
- package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.styles.js +16 -27
- package/dist/components/DonutChart/DonutChart.js +101 -130
- package/dist/components/DonutChart/DonutChart.stories.js +4 -8
- package/dist/components/DonutChart/DonutChart.styles.js +15 -27
- package/dist/components/DoubleButton/DoubleButton.styles.js +8 -8
- package/dist/components/ErrorMessage/ErrorMessage.styles.js +3 -5
- package/dist/components/FAQ/FAQ.js +29 -45
- package/dist/components/FAQ/FAQ.stories.js +4 -9
- package/dist/components/FAQ/FAQ.styles.js +23 -39
- package/dist/components/Footer/Footer.js +9 -10
- package/dist/components/Footer/Footer.stories.js +6 -12
- package/dist/components/Footer/Footer.styles.js +22 -46
- package/dist/components/Footer/FooterLayout.js +16 -20
- package/dist/components/Footer/FooterLayout.stories.js +4 -8
- package/dist/components/Footer/FooterMenu.js +61 -83
- package/dist/components/Footer/FooterMenu.stories.js +4 -8
- package/dist/components/Footer/FooterMenu.styles.js +16 -39
- package/dist/components/Footer/index.js +4 -4
- package/dist/components/ForgotPasswordModal/ForgotPasswordModal.js +92 -114
- package/dist/components/ForgotPasswordModal/ForgotPasswordModal.stories.js +4 -8
- package/dist/components/Form/Form.js +15 -14
- package/dist/components/Form/Form.stories.js +4 -8
- package/dist/components/Form/Form.styles.js +16 -36
- package/dist/components/FullscreenCard/FullscreenCard.styles.js +7 -12
- package/dist/components/Grid/Grid.styles.js +17 -68
- package/dist/components/Header/Header.js +98 -163
- package/dist/components/Header/Header.stories.js +17 -28
- package/dist/components/Header/Header.styles.js +61 -124
- package/dist/components/HeroBlock/HeroVideoBlock.js +20 -25
- package/dist/components/Icon/Icon.style.js +10 -22
- package/dist/components/Icon/Icon2.js +11 -13
- package/dist/components/InfoIcon/InfoIcon.js +18 -17
- package/dist/components/InfoIcon/InfoIcon.stories.js +5 -10
- package/dist/components/InfoIcon/InfoIcon.styles.js +5 -21
- package/dist/components/InfoPanel/InfoPanel.js +26 -48
- package/dist/components/Input/DatePickerInput.js +21 -33
- package/dist/components/Input/DatePickerInput.stories.js +5 -10
- package/dist/components/Input/DatePickerInput.styles.js +5 -19
- package/dist/components/Input/Input.js +43 -51
- package/dist/components/Input/Input.stories.js +9 -16
- package/dist/components/Input/Input.styles.js +8 -43
- package/dist/components/Input/InputPassword.js +30 -50
- package/dist/components/Input/InputPassword.stories.js +6 -12
- package/dist/components/Input/InputPassword.styles.js +30 -57
- package/dist/components/Input/InputUsername.js +83 -102
- package/dist/components/Input/InputWithButton.js +20 -19
- package/dist/components/Input/InputWithButton.stories.js +5 -9
- package/dist/components/Input/InputWithButton.styles.js +7 -19
- package/dist/components/Input/OtpInput.js +27 -42
- package/dist/components/Input/OtpInput.stories.js +5 -11
- package/dist/components/Input/RangeInput.js +29 -25
- package/dist/components/Input/RangeInput.stories.js +4 -8
- package/dist/components/Input/RangeInput.styles.js +15 -42
- package/dist/components/Input/Select.js +68 -89
- package/dist/components/Input/Select.stories.js +6 -12
- package/dist/components/Input/Select.styles.js +12 -32
- package/dist/components/InvestCalculator/InvestCalculator.js +245 -243
- package/dist/components/InvestCalculator/InvestCalculator.stories.js +18 -21
- package/dist/components/InvestCalculator/InvestCalculator.styles.js +14 -33
- package/dist/components/InvestmentStat/InvestmentStat.js +11 -10
- package/dist/components/InvestmentStat/InvestmentStat.stories.js +5 -10
- package/dist/components/InvestmentStat/InvestmentStat.styles.js +12 -24
- package/dist/components/KYCFlow/BasicInfo.js +419 -460
- package/dist/components/KYCFlow/Confirmation.js +12 -17
- package/dist/components/KYCFlow/DocumentFileUpload.js +214 -227
- package/dist/components/KYCFlow/DocumentScan.js +16 -15
- package/dist/components/KYCFlow/DocumentScanUpload.js +203 -210
- package/dist/components/KYCFlow/DocumentSelect.js +87 -117
- package/dist/components/KYCFlow/DocumentSuccess.js +14 -15
- package/dist/components/KYCFlow/DocumentUpload.js +10 -11
- package/dist/components/KYCFlow/DocumentVerificationType.js +98 -128
- package/dist/components/KYCFlow/FaceScan.js +10 -11
- package/dist/components/KYCFlow/FaceScanRecognition.js +14 -13
- package/dist/components/KYCFlow/FaceScanSuccess.js +10 -13
- package/dist/components/KYCFlow/Terms.js +90 -113
- package/dist/components/KYCFlow/_styles.js +37 -86
- package/dist/components/KYCFlow/index.js +14 -14
- package/dist/components/KYCSelectBox/KYCSelectBox.styles.js +7 -19
- package/dist/components/LatestUpdate/LatestUpdate.js +12 -11
- package/dist/components/LatestUpdate/LatestUpdate.stories.js +5 -10
- package/dist/components/LatestUpdate/LatestUpdate.styles.js +15 -28
- package/dist/components/Layout/Layout-func-no-work.js +24 -24
- package/dist/components/Layout/Layout.js +47 -68
- package/dist/components/Layout/Layout.stories.js +5 -12
- package/dist/components/LearnMoreCarousel/LearnMoreCarousel.js +13 -12
- package/dist/components/LearnMoreCarousel/LearnMoreCarousel.stories.js +5 -10
- package/dist/components/LearnMoreCarousel/LearnMoreCarousel.styles.js +10 -22
- package/dist/components/LearnMorePage/LearnMore.js +134 -174
- package/dist/components/LearnMorePage/LearnMore.shared.styles.js +7 -22
- package/dist/components/LearnMorePage/LearnMore.stories.js +4 -8
- package/dist/components/LearnMorePage/LearnMore.styles.js +24 -74
- package/dist/components/LearnMorePage/LearnMoreExampleObject.js +3 -5
- package/dist/components/LearnMorePage/LearnMoreItem.js +11 -16
- package/dist/components/LearnMorePage/LearnMoreItem.stories.js +4 -8
- package/dist/components/LearnMorePage/LearnMoreItem.styles.js +18 -54
- package/dist/components/LearnMoreSection/LearnMore.js +119 -158
- package/dist/components/LearnMoreSection/LearnMore.stories.js +4 -8
- package/dist/components/LearnMoreSection/LearnMore.styles.js +15 -41
- package/dist/components/LearnMoreSection/LearnMoreItem.js +14 -15
- package/dist/components/LearnMoreSection/LearnMoreItem.stories.js +4 -8
- package/dist/components/LearnMoreSection/LearnMoreItem.styles.js +9 -23
- package/dist/components/LoginModal/LoginModal.js +35 -41
- package/dist/components/LoginModal/LoginModal.stories.js +8 -12
- package/dist/components/MainMenu/DynamicMainMenu.js +11 -14
- package/dist/components/MainMenu/MainMenu.js +157 -190
- package/dist/components/MainMenu/MainMenu.styles.js +48 -89
- package/dist/components/MatomoConnect/Matomo.js +201 -463
- package/dist/components/MenuNav/MenuNav.styles.js +5 -9
- package/dist/components/Modal/Modal.js +46 -48
- package/dist/components/Modal/Modal.stories.js +8 -16
- package/dist/components/Modal/Modal.styles.js +34 -96
- package/dist/components/Modal/NewVentureModal/NewVentureModal.js +69 -95
- package/dist/components/Modal/NewVentureModal/NewVentureModal.stories.js +22 -43
- package/dist/components/Modal/PaymentModal.js +43 -54
- package/dist/components/Modal/PaymentModal.stories.js +4 -8
- package/dist/components/MultiProgressBar/MultiProgressBar.js +19 -23
- package/dist/components/MultiProgressBar/MultiProgressBar.stories.js +6 -12
- package/dist/components/MultiProgressBar/MultiProgressBar.styles.js +9 -22
- package/dist/components/Newsletter/Newsletter.js +65 -100
- package/dist/components/Newsletter/Newsletter.stories.js +4 -8
- package/dist/components/Newsletter/Newsletter.styles.js +47 -44
- package/dist/components/NotificationContext/NotificationContext.js +93 -125
- package/dist/components/NotificationCounter/NotificationCounter.styles.js +4 -16
- package/dist/components/Number/Number.js +13 -10
- package/dist/components/Number/Number.stories.js +23 -41
- package/dist/components/Number/Number.styles.js +4 -10
- package/dist/components/PageTransition/PageTransition.js +16 -19
- package/dist/components/Pagination/Pagination.js +22 -25
- package/dist/components/Pagination/Pagination.stories.js +29 -36
- package/dist/components/Pagination/Pagination.styles.js +8 -15
- package/dist/components/Pagination/PaginationControls.js +32 -36
- package/dist/components/Pagination/PaginationControls.stories.js +33 -62
- package/dist/components/Pagination/usePagination.js +29 -37
- package/dist/components/Process/Process.stories.js +6 -12
- package/dist/components/Process/Process.styles.js +6 -16
- package/dist/components/ProfileBadge/ProfileBadge.js +12 -11
- package/dist/components/ProfileBadge/ProfileBadge.stories.js +5 -9
- package/dist/components/ProfileBadge/ProfileBadge.styles.js +13 -19
- package/dist/components/ProfileBox/ProfileBox.js +15 -17
- package/dist/components/ProfileBox/ProfileBox.stories.js +5 -9
- package/dist/components/ProfileBox/ProfileBox.styles.js +9 -21
- package/dist/components/ProfileHeader/ProfileHeader.js +163 -199
- package/dist/components/ProfileHeader/ProfileHeader.styles.js +24 -46
- package/dist/components/ProfileStat/ProfileStat.js +12 -11
- package/dist/components/ProfileStat/ProfileStat.stories.js +6 -12
- package/dist/components/ProfileStat/ProfileStat.styles.js +9 -23
- package/dist/components/ProofOfAddress/ProofOfAddress.styles.js +20 -36
- package/dist/components/QRCode/QRCode.js +30 -30
- package/dist/components/QRCode/QRCode.stories.js +14 -26
- package/dist/components/ROI/ROI.js +225 -261
- package/dist/components/ROI/ROI.styles.js +13 -25
- package/dist/components/ROI/ROIChart.js +196 -303
- package/dist/components/ROI/ROIChart.styles.js +7 -11
- package/dist/components/ROI/ROIModal.js +13 -20
- package/dist/components/ROI/ROIParkingo.js +208 -244
- package/dist/components/ROI/ROIPixelmatic.js +209 -245
- package/dist/components/ROI/ROIScenarioBox.js +9 -8
- package/dist/components/ROI/ROIScenarioBox.styles.js +10 -33
- package/dist/components/Radio/Radio.js +19 -18
- package/dist/components/Radio/Radio.stories.js +4 -8
- package/dist/components/Radio/Radio.styles.js +5 -14
- package/dist/components/RefreshButton/RefreshButton.js +6 -5
- package/dist/components/RefreshButton/RefreshButton.stories.js +5 -10
- package/dist/components/RefreshButton/RefreshButton.styles.js +9 -24
- package/dist/components/RegisterConfirmModal/RegisterConfirmModal.js +17 -18
- package/dist/components/RegisterConfirmModal/RegisterConfirmModal.stories.js +5 -9
- package/dist/components/RegisterConfirmModal/RegisterConfirmModal.styles.js +3 -4
- package/dist/components/RegisterLiquidSteps/RegisterLiquidSteps.js +46 -70
- package/dist/components/RegisterLiquidSteps/RegisterLiquidSteps.styles.js +10 -22
- package/dist/components/RegisterLiquidSteps/complete.js +4 -5
- package/dist/components/RegisterLiquidSteps/flow.js +53 -99
- package/dist/components/RegisterLiquidSteps/index.js +7 -22
- package/dist/components/RegisterLiquidSteps/register-liquid.js +62 -102
- package/dist/components/RegisterModal/RegisterModal.js +82 -118
- package/dist/components/RegisterModal/RegisterModal.stories.js +5 -9
- package/dist/components/RequestDataBox/RequestDataBox.js +9 -8
- package/dist/components/RequestDataBox/RequestDataBox.stories.js +4 -8
- package/dist/components/RequestDataBox/RequestDataBox.styles.js +7 -12
- package/dist/components/ResetConfirmModal/ResetConfirmModal.js +10 -11
- package/dist/components/ResetConfirmModal/ResetConfirmModal.styles.js +3 -4
- package/dist/components/ResetPasswordModal/ResetPasswordModal.js +29 -28
- package/dist/components/SEO/SEO.js +11 -10
- package/dist/components/SEO/SEO.stories.js +4 -8
- package/dist/components/SectionTitle/SectionTitle.styles.js +3 -5
- package/dist/components/ShareButton/ShareButton.js +132 -145
- package/dist/components/SideLine/SideLine.js +3 -6
- package/dist/components/SideLine/SideLine.stories.js +3 -6
- package/dist/components/SideLine/SideLine.styles.js +6 -12
- package/dist/components/SigningSubflow/SignSubIntro.js +9 -8
- package/dist/components/SigningSubflow/_styles.js +9 -20
- package/dist/components/SigningSubflow/index.js +5 -5
- package/dist/components/Slider/Slider.js +16 -16
- package/dist/components/Slider/Slider.stories.js +5 -10
- package/dist/components/Slider/Slider.styles.js +5 -8
- package/dist/components/SpanButton/SpanButton.styles.js +3 -6
- package/dist/components/StatusBadge/StatusBadge.styles.js +4 -10
- package/dist/components/StepController/StepController.js +49 -74
- package/dist/components/StepController/StepController.stories.js +4 -8
- package/dist/components/StepController/StepController.styles.js +6 -12
- package/dist/components/StepController/StepControllerContext.js +46 -68
- package/dist/components/StepController/StepControllerProgress.js +16 -19
- package/dist/components/StepController/StepControllerProgress.stories.js +4 -8
- package/dist/components/StepsProgress/StepsProgress.js +44 -58
- package/dist/components/StepsProgress/StepsProgress.stories.js +33 -35
- package/dist/components/StepsProgress/StepsProgress.styles.js +7 -15
- package/dist/components/StokrLoader/StokrLoader.js +20 -23
- package/dist/components/StokrLoader/media.js +5 -7
- package/dist/components/SvgIcons/AdminBadgeSvg.js +16 -19
- package/dist/components/SvgIcons/CameraSvg.js +26 -29
- package/dist/components/SvgIcons/CapsLockSvg.js +21 -24
- package/dist/components/SvgIcons/DocumentBackSvg.js +25 -28
- package/dist/components/SvgIcons/DocumentSmallSvg.js +51 -54
- package/dist/components/SvgIcons/DocumentSvg.js +28 -31
- package/dist/components/SvgIcons/Early.js +14 -17
- package/dist/components/SvgIcons/EthSvg.js +30 -33
- package/dist/components/SvgIcons/EurSvg.js +16 -19
- package/dist/components/SvgIcons/FaceScanIconSvg.js +21 -24
- package/dist/components/SvgIcons/FourSvg.js +11 -14
- package/dist/components/SvgIcons/Glassess.js +19 -22
- package/dist/components/SvgIcons/LogoSvg.js +14 -17
- package/dist/components/SvgIcons/OneSvg.js +13 -16
- package/dist/components/SvgIcons/PassportSvg.js +46 -49
- package/dist/components/SvgIcons/RefreshSvg.js +17 -20
- package/dist/components/SvgIcons/SocialFacebook.js +20 -23
- package/dist/components/SvgIcons/SocialInstagram.js +11 -14
- package/dist/components/SvgIcons/SocialLinkedIn.js +25 -28
- package/dist/components/SvgIcons/SocialMedium.js +15 -18
- package/dist/components/SvgIcons/SocialReddit.js +15 -18
- package/dist/components/SvgIcons/SocialTelegram.js +49 -52
- package/dist/components/SvgIcons/SocialTwitter.js +44 -47
- package/dist/components/SvgIcons/SocialYoutube.js +15 -18
- package/dist/components/SvgIcons/ThreeSvg.js +10 -13
- package/dist/components/SvgIcons/TwoSidedDocumentSvg.js +72 -75
- package/dist/components/SvgIcons/TwoSvg.js +13 -16
- package/dist/components/SvgIcons/UpdateDefaultSvg.js +19 -22
- package/dist/components/SvgIcons/UpdateHardSvg.js +15 -18
- package/dist/components/SvgIcons/UpdateSoftSvg.js +17 -20
- package/dist/components/SvgIcons/UploadSvg.js +24 -27
- package/dist/components/SvgIcons/VerifiedBadge.js +13 -16
- package/dist/components/SvgIcons/index.js +32 -32
- package/dist/components/Switch/Switch.js +23 -37
- package/dist/components/Switch/Switch.stories.js +8 -14
- package/dist/components/Switch/Switch.styles.js +8 -33
- package/dist/components/Tabs/Tabs.js +19 -21
- package/dist/components/Tabs/Tabs.stories.js +4 -8
- package/dist/components/Tabs/Tabs.styles.js +4 -6
- package/dist/components/TabsNav/TabNav.js +14 -13
- package/dist/components/TabsNav/TabNav.stories.js +5 -10
- package/dist/components/TabsNav/TabsNav.js +14 -14
- package/dist/components/TabsNav/TabsNav.stories.js +4 -8
- package/dist/components/TabsNav/TabsNav.styles.js +10 -25
- package/dist/components/TeamOverview/TeamOverview.js +38 -84
- package/dist/components/TeamOverview/TeamOverview.stories.js +5 -10
- package/dist/components/TeamOverview/TeamOverview.styles.js +18 -35
- package/dist/components/TermsModal/TermsModal.js +49 -79
- package/dist/components/TermsModal/TermsModal.stories.js +4 -8
- package/dist/components/TermsModal/_styles.js +35 -100
- package/dist/components/Text/Headline.js +15 -14
- package/dist/components/Text/Headline.stories.js +4 -8
- package/dist/components/Text/StyledText.js +5 -8
- package/dist/components/Text/Text.stories.js +5 -10
- package/dist/components/Text/Text.styles.js +15 -37
- package/dist/components/TextLink/TextLink.styles.js +6 -17
- package/dist/components/ToDoList/ToDoList.js +76 -85
- package/dist/components/ToDoList/ToDoList.stories.js +7 -14
- package/dist/components/ToDoList/ToDoList.styles.js +34 -43
- package/dist/components/ToDoList/ToDoListTask.js +22 -35
- package/dist/components/ToDoList/ToDoListTask.stories.js +5 -10
- package/dist/components/ToDoList/ToDoListTask.styles.js +13 -40
- package/dist/components/TransactionDetails/TransactionDetails.js +9 -19
- package/dist/components/TransactionDetails/TransactionDetails.stories.js +5 -10
- package/dist/components/TransactionDetails/TransactionDetails.styles.js +6 -15
- package/dist/components/TransactionInfo/TransactionInfo.js +18 -17
- package/dist/components/TransactionInfo/TransactionInfo.stories.js +4 -8
- package/dist/components/TransactionInfo/TransactionInfo.styles.js +10 -31
- package/dist/components/TwoFactorModal/TwoFactorModal.js +72 -94
- package/dist/components/VerifyEmailModal/VerifyEmailModal.js +49 -48
- package/dist/components/VerifyEmailModal/VerifyEmailModal.stories.js +6 -11
- package/dist/components/breakdown/Breakdown.js +38 -36
- package/dist/components/breakdown/index.js +3 -5
- package/dist/components/headerHo/HeaderHo.js +585 -769
- package/dist/components/headerHo/HeaderHo.stories.js +9 -13
- package/dist/components/headerHo/index.js +3 -5
- package/dist/components/icons/Arrow.js +43 -46
- package/dist/components/icons/Arrow.stories.js +7 -14
- package/dist/components/icons/ArrowSimple.js +32 -35
- package/dist/components/icons/ArrowSimple.stories.js +7 -14
- package/dist/components/icons/Check.js +28 -31
- package/dist/components/icons/Check.stories.js +3 -6
- package/dist/components/icons/Facebook.js +11 -14
- package/dist/components/icons/Facebook.stories.js +3 -6
- package/dist/components/icons/Info.js +40 -43
- package/dist/components/icons/Info.stories.js +3 -6
- package/dist/components/icons/Instagram.js +11 -14
- package/dist/components/icons/Instagram.stories.js +3 -6
- package/dist/components/icons/LinkIcon.js +19 -22
- package/dist/components/icons/LinkIcon.stories.js +3 -6
- package/dist/components/icons/LinkedIn.js +28 -31
- package/dist/components/icons/LinkedIn.stories.js +3 -6
- package/dist/components/icons/Medium.js +27 -30
- package/dist/components/icons/Medium.stories.js +3 -6
- package/dist/components/icons/Reddit.js +17 -20
- package/dist/components/icons/Reddit.stories.js +3 -6
- package/dist/components/icons/Share.js +47 -50
- package/dist/components/icons/Share.stories.js +3 -6
- package/dist/components/icons/Telegram.js +27 -30
- package/dist/components/icons/Telegram.stories.js +3 -6
- package/dist/components/icons/Twitter.js +11 -14
- package/dist/components/icons/Twitter.stories.js +3 -6
- package/dist/components/icons/X.js +11 -14
- package/dist/components/icons/X.stories.js +3 -6
- package/dist/components/icons/Youtube.js +11 -14
- package/dist/components/icons/Youtube.stories.js +3 -6
- package/dist/components/icons/index.js +15 -15
- package/dist/components/landing-page/List.js +3 -5
- package/dist/components/landing-page/PageContent.js +5 -7
- package/dist/components/landing-page/PageText.js +12 -16
- package/dist/components/landing-page/PageTitle.js +16 -47
- package/dist/components/logo/Logo.js +49 -71
- package/dist/components/logo/index.js +3 -5
- package/dist/components/renderToBody/index.js +3 -5
- package/dist/components/renderToBody/renderToBody.js +39 -60
- package/dist/components/taxId/TaxId.stories.js +11 -16
- package/dist/components/taxId/complete.js +9 -11
- package/dist/components/taxId/flow.js +22 -34
- package/dist/components/taxId/index.js +4 -4
- package/dist/components/taxId/register-taxid.js +54 -92
- package/dist/components/video/Video.js +69 -84
- package/dist/components/video/Video.stories.js +5 -9
- package/dist/components/video/index.js +3 -5
- package/dist/constants/globalVariables.js +10 -20
- package/dist/constants/style.js +23 -46
- package/dist/context/Auth.js +247 -340
- package/dist/context/AuthContext.js +545 -1023
- package/dist/context/Checkbox/CheckboxContext.js +65 -117
- package/dist/firebase-config.js +4 -6
- package/dist/hooks/useNewVentureForm.js +128 -193
- package/dist/hooks/useTimer.js +29 -51
- package/dist/index.js +134 -134
- package/dist/model/axios.js +4 -6
- package/dist/model/axiosPublic.js +4 -6
- package/dist/services/TimerService.js +70 -89
- package/dist/static/images/copy_icon.svg +4 -0
- package/dist/styles/colors.js +2 -4
- package/dist/styles/fonts.js +3 -4
- package/dist/styles/global.js +3 -4
- package/dist/styles/grid.js +4 -5
- package/dist/styles/reactTippy.js +3 -4
- package/dist/styles/rwd.js +12 -26
- package/dist/styles/semanticUi.js +3 -4
- package/dist/styles/spacing.js +2 -3
- package/dist/styles/theme.js +6 -9
- package/dist/utils/allowed-countries-list.js +2 -3
- package/dist/utils/analytics.js +32 -48
- package/dist/utils/check-sale-time-left.js +37 -39
- package/dist/utils/check-todo-status.js +3 -4
- package/dist/utils/checklistGenerator.js +46 -46
- package/dist/utils/copyToClipboard.js +65 -131
- package/dist/utils/countries-list.js +2 -3
- package/dist/utils/customHooks.js +40 -67
- package/dist/utils/delete-redirect-cookie-and-navigate.js +3 -3
- package/dist/utils/fix-decimals.js +4 -5
- package/dist/utils/formatCurrencyValue.js +41 -52
- package/dist/utils/get-cookie-domain.js +3 -4
- package/dist/utils/get-short-address.js +1 -3
- package/dist/utils/isUSInvestor.js +2 -4
- package/dist/utils/km_ify.js +3 -3
- package/dist/utils/lock-body.js +3 -5
- package/dist/utils/moment.js +10 -12
- package/dist/utils/redirect-url.js +2 -3
- package/dist/utils/saveAs.js +5 -5
- package/dist/utils/scrollUtils.js +33 -36
- package/dist/utils/set-redirect-cookie.js +6 -7
- package/dist/utils/withRouter.js +6 -6
- package/package.json +134 -141
|
@@ -6,23 +6,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = exports.Matomo = void 0;
|
|
7
7
|
var _axios = _interopRequireDefault(require("axios"));
|
|
8
8
|
var _Auth = _interopRequireDefault(require("../AuthConnect/Auth"));
|
|
9
|
-
function _interopRequireDefault(
|
|
10
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
10
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12
11
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13
|
-
function
|
|
14
|
-
function
|
|
15
|
-
function
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
19
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
20
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
21
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
22
|
-
var Matomo = /*#__PURE__*/function () {
|
|
23
|
-
function Matomo() {
|
|
24
|
-
var _this = this;
|
|
25
|
-
_classCallCheck(this, Matomo);
|
|
12
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
13
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
14
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
15
|
+
class Matomo {
|
|
16
|
+
constructor() {
|
|
26
17
|
// MATOMO_API_URL = 'https://crafton.matomo.cloud'
|
|
27
18
|
// MATOMO_API_URL = 'https://stokr-analytics.matomo.cloud';
|
|
28
19
|
// MATOMO_SITE_ID = 2
|
|
@@ -36,455 +27,202 @@ var Matomo = /*#__PURE__*/function () {
|
|
|
36
27
|
token_auth: this.MATOMO_AUTH_TOKEN,
|
|
37
28
|
idSite: null
|
|
38
29
|
});
|
|
39
|
-
_defineProperty(this, "setSiteId",
|
|
40
|
-
return
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
case 0:
|
|
49
|
-
_context.next = 2;
|
|
50
|
-
return _Auth.default.setProject();
|
|
51
|
-
case 2:
|
|
52
|
-
project = _context.sent;
|
|
53
|
-
_this.MATOMO_DEFAULT_PARAMS.idSite = project.matomoSiteId;
|
|
54
|
-
resolve();
|
|
55
|
-
case 5:
|
|
56
|
-
case "end":
|
|
57
|
-
return _context.stop();
|
|
58
|
-
}
|
|
59
|
-
}, _callee);
|
|
60
|
-
})), 0);
|
|
61
|
-
}));
|
|
62
|
-
case 1:
|
|
63
|
-
case "end":
|
|
64
|
-
return _context2.stop();
|
|
65
|
-
}
|
|
66
|
-
}, _callee2);
|
|
67
|
-
})));
|
|
30
|
+
_defineProperty(this, "setSiteId", async () => {
|
|
31
|
+
return new Promise((resolve, reject) => {
|
|
32
|
+
return setTimeout(async () => {
|
|
33
|
+
const project = await _Auth.default.setProject();
|
|
34
|
+
this.MATOMO_DEFAULT_PARAMS.idSite = project.matomoSiteId;
|
|
35
|
+
resolve();
|
|
36
|
+
}, 0);
|
|
37
|
+
});
|
|
38
|
+
});
|
|
68
39
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
function init(callback) {
|
|
76
|
-
var _this2 = this;
|
|
77
|
-
for (var _len = arguments.length, rest = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
78
|
-
rest[_key - 1] = arguments[_key];
|
|
79
|
-
}
|
|
80
|
-
return new Promise( /*#__PURE__*/function () {
|
|
81
|
-
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(resolve, reject) {
|
|
82
|
-
var result;
|
|
83
|
-
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
84
|
-
while (1) switch (_context3.prev = _context3.next) {
|
|
85
|
-
case 0:
|
|
86
|
-
_context3.prev = 0;
|
|
87
|
-
if (_this2.MATOMO_DEFAULT_PARAMS.idSite) {
|
|
88
|
-
_context3.next = 4;
|
|
89
|
-
break;
|
|
90
|
-
}
|
|
91
|
-
_context3.next = 4;
|
|
92
|
-
return _this2.setSiteId();
|
|
93
|
-
case 4:
|
|
94
|
-
_context3.next = 6;
|
|
95
|
-
return callback.bind(_this2).apply(void 0, rest);
|
|
96
|
-
case 6:
|
|
97
|
-
result = _context3.sent;
|
|
98
|
-
resolve(result);
|
|
99
|
-
_context3.next = 13;
|
|
100
|
-
break;
|
|
101
|
-
case 10:
|
|
102
|
-
_context3.prev = 10;
|
|
103
|
-
_context3.t0 = _context3["catch"](0);
|
|
104
|
-
reject(_context3.t0);
|
|
105
|
-
case 13:
|
|
106
|
-
case "end":
|
|
107
|
-
return _context3.stop();
|
|
108
|
-
}
|
|
109
|
-
}, _callee3, null, [[0, 10]]);
|
|
110
|
-
}));
|
|
111
|
-
return function (_x, _x2) {
|
|
112
|
-
return _ref3.apply(this, arguments);
|
|
113
|
-
};
|
|
114
|
-
}());
|
|
40
|
+
// Receive the class method and its arguments
|
|
41
|
+
// Set site ID if not defined
|
|
42
|
+
// Call the method with its arguments
|
|
43
|
+
init(callback) {
|
|
44
|
+
for (var _len = arguments.length, rest = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
45
|
+
rest[_key - 1] = arguments[_key];
|
|
115
46
|
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
var _this3 = this;
|
|
126
|
-
var response;
|
|
127
|
-
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
128
|
-
while (1) switch (_context4.prev = _context4.next) {
|
|
129
|
-
case 0:
|
|
130
|
-
_context4.next = 2;
|
|
131
|
-
return new Promise(function (resolve) {
|
|
132
|
-
delete _axios.default.defaults.headers.common['Authorization'];
|
|
133
|
-
_axios.default.get(_this3.MATOMO_API_URL, {
|
|
134
|
-
params: _objectSpread(_objectSpread({}, _this3.MATOMO_DEFAULT_PARAMS), {}, {
|
|
135
|
-
method: 'Live.getCounters',
|
|
136
|
-
lastMinutes: lastMinutes,
|
|
137
|
-
showColumns: column
|
|
138
|
-
})
|
|
139
|
-
}).then(function (response) {
|
|
140
|
-
resolve(parseInt(response.data[0][column]));
|
|
141
|
-
}).catch(function (error) {
|
|
142
|
-
return resolve(0);
|
|
143
|
-
});
|
|
144
|
-
});
|
|
145
|
-
case 2:
|
|
146
|
-
response = _context4.sent;
|
|
147
|
-
_axios.default.defaults.headers.common.Authorization = "Bearer ".concat(_Auth.default.getAccessToken());
|
|
148
|
-
_context4.next = 6;
|
|
149
|
-
return response;
|
|
150
|
-
case 6:
|
|
151
|
-
return _context4.abrupt("return", _context4.sent);
|
|
152
|
-
case 7:
|
|
153
|
-
case "end":
|
|
154
|
-
return _context4.stop();
|
|
155
|
-
}
|
|
156
|
-
}, _callee4);
|
|
157
|
-
}));
|
|
158
|
-
function LiveGetCounters(_x3, _x4) {
|
|
159
|
-
return _LiveGetCounters.apply(this, arguments);
|
|
160
|
-
}
|
|
161
|
-
return LiveGetCounters;
|
|
162
|
-
}()
|
|
163
|
-
/**
|
|
164
|
-
* Get visits summary for date range
|
|
165
|
-
* @param range
|
|
166
|
-
*/
|
|
167
|
-
}, {
|
|
168
|
-
key: "GetVisitsSummary",
|
|
169
|
-
value: function () {
|
|
170
|
-
var _GetVisitsSummary = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(period, date) {
|
|
171
|
-
var _this4 = this;
|
|
172
|
-
var response;
|
|
173
|
-
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
174
|
-
while (1) switch (_context5.prev = _context5.next) {
|
|
175
|
-
case 0:
|
|
176
|
-
_context5.next = 2;
|
|
177
|
-
return new Promise(function (resolve) {
|
|
178
|
-
delete _axios.default.defaults.headers.common['Authorization'];
|
|
179
|
-
_axios.default.get(_this4.MATOMO_API_URL, {
|
|
180
|
-
params: _objectSpread(_objectSpread({}, _this4.MATOMO_DEFAULT_PARAMS), {}, {
|
|
181
|
-
method: 'VisitsSummary.get',
|
|
182
|
-
period: period,
|
|
183
|
-
date: date
|
|
184
|
-
})
|
|
185
|
-
}).then(function (response) {
|
|
186
|
-
resolve(response.data);
|
|
187
|
-
}).catch(function (error) {
|
|
188
|
-
return resolve({});
|
|
189
|
-
});
|
|
190
|
-
});
|
|
191
|
-
case 2:
|
|
192
|
-
response = _context5.sent;
|
|
193
|
-
_axios.default.defaults.headers.common.Authorization = "Bearer ".concat(_Auth.default.getAccessToken());
|
|
194
|
-
_context5.next = 6;
|
|
195
|
-
return response;
|
|
196
|
-
case 6:
|
|
197
|
-
return _context5.abrupt("return", _context5.sent);
|
|
198
|
-
case 7:
|
|
199
|
-
case "end":
|
|
200
|
-
return _context5.stop();
|
|
201
|
-
}
|
|
202
|
-
}, _callee5);
|
|
203
|
-
}));
|
|
204
|
-
function GetVisitsSummary(_x5, _x6) {
|
|
205
|
-
return _GetVisitsSummary.apply(this, arguments);
|
|
206
|
-
}
|
|
207
|
-
return GetVisitsSummary;
|
|
208
|
-
}()
|
|
209
|
-
/**
|
|
210
|
-
* Get summary per country
|
|
211
|
-
* @param range
|
|
212
|
-
*/
|
|
213
|
-
}, {
|
|
214
|
-
key: "GetCountrySummary",
|
|
215
|
-
value: function () {
|
|
216
|
-
var _GetCountrySummary = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(period, date) {
|
|
217
|
-
var _this5 = this;
|
|
218
|
-
var response;
|
|
219
|
-
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
220
|
-
while (1) switch (_context6.prev = _context6.next) {
|
|
221
|
-
case 0:
|
|
222
|
-
_context6.next = 2;
|
|
223
|
-
return new Promise(function (resolve) {
|
|
224
|
-
delete _axios.default.defaults.headers.common['Authorization'];
|
|
225
|
-
_axios.default.get(_this5.MATOMO_API_URL, {
|
|
226
|
-
params: _objectSpread(_objectSpread({}, _this5.MATOMO_DEFAULT_PARAMS), {}, {
|
|
227
|
-
method: 'UserCountry.getCountry',
|
|
228
|
-
period: period,
|
|
229
|
-
date: date
|
|
230
|
-
})
|
|
231
|
-
}).then(function (response) {
|
|
232
|
-
resolve(response.data);
|
|
233
|
-
}).catch(function (error) {
|
|
234
|
-
return resolve([]);
|
|
235
|
-
});
|
|
236
|
-
});
|
|
237
|
-
case 2:
|
|
238
|
-
response = _context6.sent;
|
|
239
|
-
_axios.default.defaults.headers.common.Authorization = "Bearer ".concat(_Auth.default.getAccessToken());
|
|
240
|
-
_context6.next = 6;
|
|
241
|
-
return response;
|
|
242
|
-
case 6:
|
|
243
|
-
return _context6.abrupt("return", _context6.sent);
|
|
244
|
-
case 7:
|
|
245
|
-
case "end":
|
|
246
|
-
return _context6.stop();
|
|
247
|
-
}
|
|
248
|
-
}, _callee6);
|
|
249
|
-
}));
|
|
250
|
-
function GetCountrySummary(_x7, _x8) {
|
|
251
|
-
return _GetCountrySummary.apply(this, arguments);
|
|
252
|
-
}
|
|
253
|
-
return GetCountrySummary;
|
|
254
|
-
}()
|
|
255
|
-
/**
|
|
256
|
-
* Get summary for social networks
|
|
257
|
-
* @param range
|
|
258
|
-
*/
|
|
259
|
-
}, {
|
|
260
|
-
key: "GetSocialSummary",
|
|
261
|
-
value: function () {
|
|
262
|
-
var _GetSocialSummary = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(period, date) {
|
|
263
|
-
var _this6 = this;
|
|
264
|
-
var response;
|
|
265
|
-
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
266
|
-
while (1) switch (_context7.prev = _context7.next) {
|
|
267
|
-
case 0:
|
|
268
|
-
_context7.next = 2;
|
|
269
|
-
return new Promise(function (resolve) {
|
|
270
|
-
delete _axios.default.defaults.headers.common['Authorization'];
|
|
271
|
-
_axios.default.get(_this6.MATOMO_API_URL, {
|
|
272
|
-
params: _objectSpread(_objectSpread({}, _this6.MATOMO_DEFAULT_PARAMS), {}, {
|
|
273
|
-
method: 'Referrers.getSocials',
|
|
274
|
-
period: period,
|
|
275
|
-
date: date
|
|
276
|
-
})
|
|
277
|
-
}).then(function (response) {
|
|
278
|
-
resolve(response.data);
|
|
279
|
-
}).catch(function (error) {
|
|
280
|
-
return resolve([]);
|
|
281
|
-
});
|
|
282
|
-
});
|
|
283
|
-
case 2:
|
|
284
|
-
response = _context7.sent;
|
|
285
|
-
_axios.default.defaults.headers.common.Authorization = "Bearer ".concat(_Auth.default.getAccessToken());
|
|
286
|
-
_context7.next = 6;
|
|
287
|
-
return response;
|
|
288
|
-
case 6:
|
|
289
|
-
return _context7.abrupt("return", _context7.sent);
|
|
290
|
-
case 7:
|
|
291
|
-
case "end":
|
|
292
|
-
return _context7.stop();
|
|
293
|
-
}
|
|
294
|
-
}, _callee7);
|
|
295
|
-
}));
|
|
296
|
-
function GetSocialSummary(_x9, _x10) {
|
|
297
|
-
return _GetSocialSummary.apply(this, arguments);
|
|
298
|
-
}
|
|
299
|
-
return GetSocialSummary;
|
|
300
|
-
}()
|
|
301
|
-
/**
|
|
302
|
-
* Get summary for os families
|
|
303
|
-
* @param range
|
|
304
|
-
*/
|
|
305
|
-
}, {
|
|
306
|
-
key: "GetDeviceOsFamilies",
|
|
307
|
-
value: function () {
|
|
308
|
-
var _GetDeviceOsFamilies = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(period, date) {
|
|
309
|
-
var _this7 = this;
|
|
310
|
-
var response;
|
|
311
|
-
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
312
|
-
while (1) switch (_context8.prev = _context8.next) {
|
|
313
|
-
case 0:
|
|
314
|
-
_context8.next = 2;
|
|
315
|
-
return new Promise(function (resolve) {
|
|
316
|
-
delete _axios.default.defaults.headers.common['Authorization'];
|
|
317
|
-
_axios.default.get(_this7.MATOMO_API_URL, {
|
|
318
|
-
params: _objectSpread(_objectSpread({}, _this7.MATOMO_DEFAULT_PARAMS), {}, {
|
|
319
|
-
method: 'DevicesDetection.getOsFamilies',
|
|
320
|
-
period: period,
|
|
321
|
-
date: date
|
|
322
|
-
})
|
|
323
|
-
}).then(function (response) {
|
|
324
|
-
resolve(response.data);
|
|
325
|
-
}).catch(function (error) {
|
|
326
|
-
return resolve([]);
|
|
327
|
-
});
|
|
328
|
-
});
|
|
329
|
-
case 2:
|
|
330
|
-
response = _context8.sent;
|
|
331
|
-
_axios.default.defaults.headers.common.Authorization = "Bearer ".concat(_Auth.default.getAccessToken());
|
|
332
|
-
_context8.next = 6;
|
|
333
|
-
return response;
|
|
334
|
-
case 6:
|
|
335
|
-
return _context8.abrupt("return", _context8.sent);
|
|
336
|
-
case 7:
|
|
337
|
-
case "end":
|
|
338
|
-
return _context8.stop();
|
|
339
|
-
}
|
|
340
|
-
}, _callee8);
|
|
341
|
-
}));
|
|
342
|
-
function GetDeviceOsFamilies(_x11, _x12) {
|
|
343
|
-
return _GetDeviceOsFamilies.apply(this, arguments);
|
|
344
|
-
}
|
|
345
|
-
return GetDeviceOsFamilies;
|
|
346
|
-
}()
|
|
347
|
-
/**
|
|
348
|
-
* Get summary for browsers
|
|
349
|
-
* @param range
|
|
350
|
-
*/
|
|
351
|
-
}, {
|
|
352
|
-
key: "GetDeviceBrowsers",
|
|
353
|
-
value: function () {
|
|
354
|
-
var _GetDeviceBrowsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(period, date) {
|
|
355
|
-
var _this8 = this;
|
|
356
|
-
var response;
|
|
357
|
-
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
358
|
-
while (1) switch (_context9.prev = _context9.next) {
|
|
359
|
-
case 0:
|
|
360
|
-
_context9.next = 2;
|
|
361
|
-
return new Promise(function (resolve) {
|
|
362
|
-
delete _axios.default.defaults.headers.common['Authorization'];
|
|
363
|
-
_axios.default.get(_this8.MATOMO_API_URL, {
|
|
364
|
-
params: _objectSpread(_objectSpread({}, _this8.MATOMO_DEFAULT_PARAMS), {}, {
|
|
365
|
-
method: 'DevicesDetection.getBrowsers',
|
|
366
|
-
period: period,
|
|
367
|
-
date: date
|
|
368
|
-
})
|
|
369
|
-
}).then(function (response) {
|
|
370
|
-
resolve(response.data);
|
|
371
|
-
}).catch(function (error) {
|
|
372
|
-
return resolve([]);
|
|
373
|
-
});
|
|
374
|
-
});
|
|
375
|
-
case 2:
|
|
376
|
-
response = _context9.sent;
|
|
377
|
-
_axios.default.defaults.headers.common.Authorization = "Bearer ".concat(_Auth.default.getAccessToken());
|
|
378
|
-
_context9.next = 6;
|
|
379
|
-
return response;
|
|
380
|
-
case 6:
|
|
381
|
-
return _context9.abrupt("return", _context9.sent);
|
|
382
|
-
case 7:
|
|
383
|
-
case "end":
|
|
384
|
-
return _context9.stop();
|
|
385
|
-
}
|
|
386
|
-
}, _callee9);
|
|
387
|
-
}));
|
|
388
|
-
function GetDeviceBrowsers(_x13, _x14) {
|
|
389
|
-
return _GetDeviceBrowsers.apply(this, arguments);
|
|
390
|
-
}
|
|
391
|
-
return GetDeviceBrowsers;
|
|
392
|
-
}()
|
|
393
|
-
/**
|
|
394
|
-
* Get summary for browsers
|
|
395
|
-
* @param range
|
|
396
|
-
*/
|
|
397
|
-
}, {
|
|
398
|
-
key: "GetDeviceModels",
|
|
399
|
-
value: function () {
|
|
400
|
-
var _GetDeviceModels = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(period, date) {
|
|
401
|
-
var _this9 = this;
|
|
402
|
-
var response;
|
|
403
|
-
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
|
404
|
-
while (1) switch (_context10.prev = _context10.next) {
|
|
405
|
-
case 0:
|
|
406
|
-
_context10.next = 2;
|
|
407
|
-
return new Promise(function (resolve) {
|
|
408
|
-
delete _axios.default.defaults.headers.common['Authorization'];
|
|
409
|
-
_axios.default.get(_this9.MATOMO_API_URL, {
|
|
410
|
-
params: _objectSpread(_objectSpread({}, _this9.MATOMO_DEFAULT_PARAMS), {}, {
|
|
411
|
-
method: 'DevicesDetection.getModel',
|
|
412
|
-
period: period,
|
|
413
|
-
date: date
|
|
414
|
-
})
|
|
415
|
-
}).then(function (response) {
|
|
416
|
-
resolve(response.data);
|
|
417
|
-
}).catch(function (error) {
|
|
418
|
-
return resolve([]);
|
|
419
|
-
});
|
|
420
|
-
});
|
|
421
|
-
case 2:
|
|
422
|
-
response = _context10.sent;
|
|
423
|
-
_axios.default.defaults.headers.common.Authorization = "Bearer ".concat(_Auth.default.getAccessToken());
|
|
424
|
-
_context10.next = 6;
|
|
425
|
-
return response;
|
|
426
|
-
case 6:
|
|
427
|
-
return _context10.abrupt("return", _context10.sent);
|
|
428
|
-
case 7:
|
|
429
|
-
case "end":
|
|
430
|
-
return _context10.stop();
|
|
431
|
-
}
|
|
432
|
-
}, _callee10);
|
|
433
|
-
}));
|
|
434
|
-
function GetDeviceModels(_x15, _x16) {
|
|
435
|
-
return _GetDeviceModels.apply(this, arguments);
|
|
436
|
-
}
|
|
437
|
-
return GetDeviceModels;
|
|
438
|
-
}()
|
|
439
|
-
/**
|
|
440
|
-
* Get visit times per local time
|
|
441
|
-
* @param range
|
|
442
|
-
*/
|
|
443
|
-
}, {
|
|
444
|
-
key: "GetVisitTimePerLocalTime",
|
|
445
|
-
value: function () {
|
|
446
|
-
var _GetVisitTimePerLocalTime = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(period, date) {
|
|
447
|
-
var _this10 = this;
|
|
448
|
-
var response;
|
|
449
|
-
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
|
450
|
-
while (1) switch (_context11.prev = _context11.next) {
|
|
451
|
-
case 0:
|
|
452
|
-
_context11.next = 2;
|
|
453
|
-
return new Promise(function (resolve) {
|
|
454
|
-
delete _axios.default.defaults.headers.common['Authorization'];
|
|
455
|
-
_axios.default.get(_this10.MATOMO_API_URL, {
|
|
456
|
-
params: _objectSpread(_objectSpread({}, _this10.MATOMO_DEFAULT_PARAMS), {}, {
|
|
457
|
-
method: 'VisitTime.getVisitInformationPerLocalTime ',
|
|
458
|
-
period: period,
|
|
459
|
-
date: date
|
|
460
|
-
})
|
|
461
|
-
}).then(function (response) {
|
|
462
|
-
resolve(response.data);
|
|
463
|
-
}).catch(function (error) {
|
|
464
|
-
return resolve({});
|
|
465
|
-
});
|
|
466
|
-
});
|
|
467
|
-
case 2:
|
|
468
|
-
response = _context11.sent;
|
|
469
|
-
_axios.default.defaults.headers.common.Authorization = "Bearer ".concat(_Auth.default.getAccessToken());
|
|
470
|
-
_context11.next = 6;
|
|
471
|
-
return response;
|
|
472
|
-
case 6:
|
|
473
|
-
return _context11.abrupt("return", _context11.sent);
|
|
474
|
-
case 7:
|
|
475
|
-
case "end":
|
|
476
|
-
return _context11.stop();
|
|
477
|
-
}
|
|
478
|
-
}, _callee11);
|
|
479
|
-
}));
|
|
480
|
-
function GetVisitTimePerLocalTime(_x17, _x18) {
|
|
481
|
-
return _GetVisitTimePerLocalTime.apply(this, arguments);
|
|
47
|
+
return new Promise(async (resolve, reject) => {
|
|
48
|
+
try {
|
|
49
|
+
if (!this.MATOMO_DEFAULT_PARAMS.idSite) {
|
|
50
|
+
await this.setSiteId();
|
|
51
|
+
}
|
|
52
|
+
const result = await callback.bind(this)(...rest);
|
|
53
|
+
resolve(result);
|
|
54
|
+
} catch (e) {
|
|
55
|
+
reject(e);
|
|
482
56
|
}
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Get real time counters
|
|
61
|
+
* @param lastMinutes
|
|
62
|
+
*/
|
|
63
|
+
async LiveGetCounters(lastMinutes, column) {
|
|
64
|
+
const response = await new Promise(resolve => {
|
|
65
|
+
delete _axios.default.defaults.headers.common['Authorization'];
|
|
66
|
+
_axios.default.get(this.MATOMO_API_URL, {
|
|
67
|
+
params: _objectSpread(_objectSpread({}, this.MATOMO_DEFAULT_PARAMS), {}, {
|
|
68
|
+
method: 'Live.getCounters',
|
|
69
|
+
lastMinutes: lastMinutes,
|
|
70
|
+
showColumns: column
|
|
71
|
+
})
|
|
72
|
+
}).then(response => {
|
|
73
|
+
resolve(parseInt(response.data[0][column]));
|
|
74
|
+
}).catch(error => resolve(0));
|
|
75
|
+
});
|
|
76
|
+
_axios.default.defaults.headers.common.Authorization = "Bearer ".concat(_Auth.default.getAccessToken());
|
|
77
|
+
return await response;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Get visits summary for date range
|
|
82
|
+
* @param range
|
|
83
|
+
*/
|
|
84
|
+
async GetVisitsSummary(period, date) {
|
|
85
|
+
const response = await new Promise(resolve => {
|
|
86
|
+
delete _axios.default.defaults.headers.common['Authorization'];
|
|
87
|
+
_axios.default.get(this.MATOMO_API_URL, {
|
|
88
|
+
params: _objectSpread(_objectSpread({}, this.MATOMO_DEFAULT_PARAMS), {}, {
|
|
89
|
+
method: 'VisitsSummary.get',
|
|
90
|
+
period: period,
|
|
91
|
+
date: date
|
|
92
|
+
})
|
|
93
|
+
}).then(response => {
|
|
94
|
+
resolve(response.data);
|
|
95
|
+
}).catch(error => resolve({}));
|
|
96
|
+
});
|
|
97
|
+
_axios.default.defaults.headers.common.Authorization = "Bearer ".concat(_Auth.default.getAccessToken());
|
|
98
|
+
return await response;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Get summary per country
|
|
103
|
+
* @param range
|
|
104
|
+
*/
|
|
105
|
+
async GetCountrySummary(period, date) {
|
|
106
|
+
const response = await new Promise(resolve => {
|
|
107
|
+
delete _axios.default.defaults.headers.common['Authorization'];
|
|
108
|
+
_axios.default.get(this.MATOMO_API_URL, {
|
|
109
|
+
params: _objectSpread(_objectSpread({}, this.MATOMO_DEFAULT_PARAMS), {}, {
|
|
110
|
+
method: 'UserCountry.getCountry',
|
|
111
|
+
period: period,
|
|
112
|
+
date: date
|
|
113
|
+
})
|
|
114
|
+
}).then(response => {
|
|
115
|
+
resolve(response.data);
|
|
116
|
+
}).catch(error => resolve([]));
|
|
117
|
+
});
|
|
118
|
+
_axios.default.defaults.headers.common.Authorization = "Bearer ".concat(_Auth.default.getAccessToken());
|
|
119
|
+
return await response;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Get summary for social networks
|
|
124
|
+
* @param range
|
|
125
|
+
*/
|
|
126
|
+
async GetSocialSummary(period, date) {
|
|
127
|
+
const response = await new Promise(resolve => {
|
|
128
|
+
delete _axios.default.defaults.headers.common['Authorization'];
|
|
129
|
+
_axios.default.get(this.MATOMO_API_URL, {
|
|
130
|
+
params: _objectSpread(_objectSpread({}, this.MATOMO_DEFAULT_PARAMS), {}, {
|
|
131
|
+
method: 'Referrers.getSocials',
|
|
132
|
+
period: period,
|
|
133
|
+
date: date
|
|
134
|
+
})
|
|
135
|
+
}).then(response => {
|
|
136
|
+
resolve(response.data);
|
|
137
|
+
}).catch(error => resolve([]));
|
|
138
|
+
});
|
|
139
|
+
_axios.default.defaults.headers.common.Authorization = "Bearer ".concat(_Auth.default.getAccessToken());
|
|
140
|
+
return await response;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Get summary for os families
|
|
145
|
+
* @param range
|
|
146
|
+
*/
|
|
147
|
+
async GetDeviceOsFamilies(period, date) {
|
|
148
|
+
const response = await new Promise(resolve => {
|
|
149
|
+
delete _axios.default.defaults.headers.common['Authorization'];
|
|
150
|
+
_axios.default.get(this.MATOMO_API_URL, {
|
|
151
|
+
params: _objectSpread(_objectSpread({}, this.MATOMO_DEFAULT_PARAMS), {}, {
|
|
152
|
+
method: 'DevicesDetection.getOsFamilies',
|
|
153
|
+
period: period,
|
|
154
|
+
date: date
|
|
155
|
+
})
|
|
156
|
+
}).then(response => {
|
|
157
|
+
resolve(response.data);
|
|
158
|
+
}).catch(error => resolve([]));
|
|
159
|
+
});
|
|
160
|
+
_axios.default.defaults.headers.common.Authorization = "Bearer ".concat(_Auth.default.getAccessToken());
|
|
161
|
+
return await response;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Get summary for browsers
|
|
166
|
+
* @param range
|
|
167
|
+
*/
|
|
168
|
+
async GetDeviceBrowsers(period, date) {
|
|
169
|
+
const response = await new Promise(resolve => {
|
|
170
|
+
delete _axios.default.defaults.headers.common['Authorization'];
|
|
171
|
+
_axios.default.get(this.MATOMO_API_URL, {
|
|
172
|
+
params: _objectSpread(_objectSpread({}, this.MATOMO_DEFAULT_PARAMS), {}, {
|
|
173
|
+
method: 'DevicesDetection.getBrowsers',
|
|
174
|
+
period: period,
|
|
175
|
+
date: date
|
|
176
|
+
})
|
|
177
|
+
}).then(response => {
|
|
178
|
+
resolve(response.data);
|
|
179
|
+
}).catch(error => resolve([]));
|
|
180
|
+
});
|
|
181
|
+
_axios.default.defaults.headers.common.Authorization = "Bearer ".concat(_Auth.default.getAccessToken());
|
|
182
|
+
return await response;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Get summary for browsers
|
|
187
|
+
* @param range
|
|
188
|
+
*/
|
|
189
|
+
async GetDeviceModels(period, date) {
|
|
190
|
+
const response = await new Promise(resolve => {
|
|
191
|
+
delete _axios.default.defaults.headers.common['Authorization'];
|
|
192
|
+
_axios.default.get(this.MATOMO_API_URL, {
|
|
193
|
+
params: _objectSpread(_objectSpread({}, this.MATOMO_DEFAULT_PARAMS), {}, {
|
|
194
|
+
method: 'DevicesDetection.getModel',
|
|
195
|
+
period: period,
|
|
196
|
+
date: date
|
|
197
|
+
})
|
|
198
|
+
}).then(response => {
|
|
199
|
+
resolve(response.data);
|
|
200
|
+
}).catch(error => resolve([]));
|
|
201
|
+
});
|
|
202
|
+
_axios.default.defaults.headers.common.Authorization = "Bearer ".concat(_Auth.default.getAccessToken());
|
|
203
|
+
return await response;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Get visit times per local time
|
|
208
|
+
* @param range
|
|
209
|
+
*/
|
|
210
|
+
async GetVisitTimePerLocalTime(period, date) {
|
|
211
|
+
const response = await new Promise(resolve => {
|
|
212
|
+
delete _axios.default.defaults.headers.common['Authorization'];
|
|
213
|
+
_axios.default.get(this.MATOMO_API_URL, {
|
|
214
|
+
params: _objectSpread(_objectSpread({}, this.MATOMO_DEFAULT_PARAMS), {}, {
|
|
215
|
+
method: 'VisitTime.getVisitInformationPerLocalTime ',
|
|
216
|
+
period: period,
|
|
217
|
+
date: date
|
|
218
|
+
})
|
|
219
|
+
}).then(response => {
|
|
220
|
+
resolve(response.data);
|
|
221
|
+
}).catch(error => resolve({}));
|
|
222
|
+
});
|
|
223
|
+
_axios.default.defaults.headers.common.Authorization = "Bearer ".concat(_Auth.default.getAccessToken());
|
|
224
|
+
return await response;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
488
227
|
exports.Matomo = Matomo;
|
|
489
|
-
var _default = Matomo;
|
|
490
|
-
exports.default = _default;
|
|
228
|
+
var _default = exports.default = Matomo;
|