@levi-gemcommerce/analytics 3.0.1-dev.3 → 3.0.1-dev.4
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/package.json +38 -15
- package/src/api/graphql/fragments/pathAnalytic.generated.ts +0 -26
- package/src/assets/img/all-sessions.png +0 -0
- package/src/assets/img/analytic-empty.png +0 -0
- package/src/assets/img/first-session.png +0 -0
- package/src/assets/img/page-only.png +0 -0
- package/src/assets/svg/gemx-skeleton.svg +0 -12
- package/src/assets/svg/product.svg +0 -18
- package/src/components/AnalyticMode/AnalyticModeSelector.tsx +0 -50
- package/src/components/AnalyticMode/index.ts +0 -2
- package/src/components/CardPathAnalysis/CardJourneyAnalysis.tsx +0 -33
- package/src/components/CardPathAnalysis/assets/img/analytic-gemx.png +0 -0
- package/src/components/CardPathAnalysis/assets/styles/PathAnalysis.scss +0 -60
- package/src/components/CardPathAnalysis/components/CardPathAnalysis/CardAnalyticEmpty.tsx +0 -45
- package/src/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysis.tsx +0 -53
- package/src/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisContent.tsx +0 -65
- package/src/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisEmpty.tsx +0 -29
- package/src/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisSkeleton.tsx +0 -12
- package/src/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisWrapper.tsx +0 -43
- package/src/components/CardPathAnalysis/components/CardPathAnalysis/index.ts +0 -1
- package/src/components/CardPathAnalysis/components/PathAnalysisChart.tsx +0 -55
- package/src/components/CardPathAnalysis/components/index.ts +0 -1
- package/src/components/CardPathAnalysis/configs/index.ts +0 -2
- package/src/components/CardPathAnalysis/constants/index.ts +0 -1
- package/src/components/CardPathAnalysis/constants/path-analysis.ts +0 -162
- package/src/components/CardPathAnalysis/contexts/PathAnalysisConfigProvider.tsx +0 -66
- package/src/components/CardPathAnalysis/contexts/PathAnalysisProvider.tsx +0 -130
- package/src/components/CardPathAnalysis/contexts/index.ts +0 -2
- package/src/components/CardPathAnalysis/helpers/index.ts +0 -2
- package/src/components/CardPathAnalysis/helpers/metricHelpers.ts +0 -13
- package/src/components/CardPathAnalysis/helpers/pathAnalysis.ts +0 -96
- package/src/components/CardPathAnalysis/helpers/pathAnalysisChart.ts +0 -128
- package/src/components/CardPathAnalysis/helpers/treeUtils.ts +0 -38
- package/src/components/CardPathAnalysis/hooks/usePathAnalysisChart.tsx +0 -292
- package/src/components/CardPathAnalysis/hooks/usePathAnalysisFunnel.ts +0 -206
- package/src/components/CardPathAnalysis/hooks/usePathAnalyticsMerger.ts +0 -43
- package/src/components/CardPathAnalysis/index.ts +0 -5
- package/src/components/CardPathAnalysis/stores/funnel-chart.ts +0 -30
- package/src/components/CardPathAnalysis/stores/index.ts +0 -3
- package/src/components/CardPathAnalysis/stores/path-analysis-campaign.ts +0 -16
- package/src/components/CardPathAnalysis/stores/path-analysis.ts +0 -11
- package/src/components/CardPathAnalysis/types/index.ts +0 -1
- package/src/components/CardPathAnalysis/types/path-analysis.ts +0 -10
- package/src/components/CurrencySelector/CurrencySelector.tsx +0 -127
- package/src/components/CurrencySelector/index.ts +0 -2
- package/src/components/GModalOrderJourney/GModalOrderJourney.tsx +0 -131
- package/src/components/GModalOrderJourney/components/OrderJourneySkeleton.tsx +0 -93
- package/src/components/GModalOrderJourney/components/index.ts +0 -1
- package/src/components/GModalOrderJourney/context/OrderJourneyContext.tsx +0 -17
- package/src/components/GModalOrderJourney/context/index.ts +0 -1
- package/src/components/GModalOrderJourney/hooks/index.ts +0 -1
- package/src/components/GModalOrderJourney/hooks/useGModalOrderJourney.ts +0 -25
- package/src/components/GModalOrderJourney/index.ts +0 -5
- package/src/components/GModalOrderJourney/types/index.ts +0 -4
- package/src/components/GModalOrderJourney/utils/index.ts +0 -75
- package/src/components/GSelectableMetricChartCard/GSelectableMetricChartCard.tsx +0 -83
- package/src/components/GSelectableMetricChartCard/MetricChartTab.tsx +0 -56
- package/src/components/GSelectableMetricChartCard/index.ts +0 -2
- package/src/components/GTimePicker/GTimePicker.tsx +0 -31
- package/src/components/GTimePicker/components/BaseTimePicker.tsx +0 -249
- package/src/components/GTimePicker/components/CompareTimePicker.tsx +0 -41
- package/src/components/GTimePicker/components/DateTimeFilterAddition.tsx +0 -84
- package/src/components/GTimePicker/components/DateTimeFilterInputs.tsx +0 -124
- package/src/components/GTimePicker/components/DateTimeFilters.tsx +0 -86
- package/src/components/GTimePicker/components/MainTimePicker.tsx +0 -47
- package/src/components/GTimePicker/components/index.ts +0 -2
- package/src/components/GTimePicker/constants/compareDateTimePicker.ts +0 -68
- package/src/components/GTimePicker/constants/datePicker.ts +0 -14
- package/src/components/GTimePicker/constants/index.ts +0 -2
- package/src/components/GTimePicker/constants/mainDataTimePicker.ts +0 -88
- package/src/components/GTimePicker/contexts/DateTimePickerProvider.tsx +0 -125
- package/src/components/GTimePicker/contexts/index.ts +0 -1
- package/src/components/GTimePicker/helpers/date-range-info.ts +0 -84
- package/src/components/GTimePicker/helpers/index.ts +0 -4
- package/src/components/GTimePicker/helpers/parse-date.ts +0 -127
- package/src/components/GTimePicker/helpers/time-picker.ts +0 -123
- package/src/components/GTimePicker/helpers/version.ts +0 -36
- package/src/components/GTimePicker/hooks/index.ts +0 -3
- package/src/components/GTimePicker/hooks/useCompareDateTimePicker.tsx +0 -79
- package/src/components/GTimePicker/hooks/useDateTimeFilter.ts +0 -83
- package/src/components/GTimePicker/hooks/useDateTimePicker.tsx +0 -99
- package/src/components/GTimePicker/hooks/useVersionDateTimeFilters.ts +0 -30
- package/src/components/GTimePicker/index.ts +0 -7
- package/src/components/GTimePicker/types/index.ts +0 -43
- package/src/components/MetricDonutChartCard/MetricDonutChartCard.tsx +0 -121
- package/src/components/MetricDonutChartCard/index.ts +0 -2
- package/src/components/MetricDonutChartCard/utils/donut-chart.ts +0 -75
- package/src/components/MetricDonutChartCard/utils/index.ts +0 -1
- package/src/components/OrderAnalytic/OrderListingLatestTable.tsx +0 -111
- package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/OrderListingTableSkeleton.tsx +0 -40
- package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/SkeletonCellContent.tsx +0 -77
- package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/SkeletonHeader.tsx +0 -35
- package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/SkeletonRow.tsx +0 -35
- package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/SkeletonSummaryRow.tsx +0 -36
- package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/constants.ts +0 -11
- package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/index.ts +0 -1
- package/src/components/OrderAnalytic/components/OrderListing/OrderListingTable.tsx +0 -159
- package/src/components/OrderAnalytic/components/OrderListing/OrderListingTableEmpty.tsx +0 -29
- package/src/components/OrderAnalytic/components/OrderListing/index.ts +0 -2
- package/src/components/OrderAnalytic/components/index.ts +0 -1
- package/src/components/OrderAnalytic/constants/index.ts +0 -2
- package/src/components/OrderAnalytic/constants/order-columns.ts +0 -51
- package/src/components/OrderAnalytic/constants/order-listing.ts +0 -199
- package/src/components/OrderAnalytic/helpers/index.ts +0 -1
- package/src/components/OrderAnalytic/helpers/order-listing.ts +0 -48
- package/src/components/OrderAnalytic/hooks/index.ts +0 -1
- package/src/components/OrderAnalytic/hooks/useOrderListingData.ts +0 -55
- package/src/components/OrderAnalytic/index.ts +0 -5
- package/src/components/OrderAnalytic/stores/index.ts +0 -2
- package/src/components/OrderAnalytic/stores/order-columns-selector.ts +0 -24
- package/src/components/OrderAnalytic/stores/order-control.ts +0 -15
- package/src/components/OrderAnalytic/types/index.ts +0 -3
- package/src/components/OrderAnalytic/types/order.ts +0 -89
- package/src/components/OrderAnalytic/types/orderListing.ts +0 -4
- package/src/components/OrderAnalytic/types/report.ts +0 -14
- package/src/components/SingleMetricChartCard/SingleMetricChartCard.tsx +0 -56
- package/src/components/SingleMetricChartCard/index.tsx +0 -2
- package/src/components/common/chart/GChartSkeleton.tsx +0 -5
- package/src/components/common/chart/MetricChart.tsx +0 -62
- package/src/components/common/chart/MetricChartEmpty.tsx +0 -35
- package/src/components/common/chart/MetricChartTooltip.tsx +0 -74
- package/src/components/common/chart/MetricDonutChartSkeleton.tsx +0 -14
- package/src/components/common/chart/MetricInfoBlock.tsx +0 -66
- package/src/components/common/chart/MetricInfoSkeleton.tsx +0 -25
- package/src/components/common/chart/MetricValueSummary.tsx +0 -23
- package/src/components/common/chart/index.ts +0 -8
- package/src/components/common/icons/DownIcon8px.tsx +0 -14
- package/src/components/common/icons/UpIcon8px.tsx +0 -14
- package/src/components/common/icons/index.ts +0 -2
- package/src/components/common/percent/MetricPercentage.tsx +0 -42
- package/src/components/common/percent/index.ts +0 -1
- package/src/components/index.ts +0 -9
- package/src/constants/analytic-metric-tooltip.tsx +0 -164
- package/src/constants/breakdown-targets.ts +0 -25
- package/src/constants/campaign.ts +0 -4
- package/src/constants/chart.ts +0 -17
- package/src/constants/currency.ts +0 -3
- package/src/constants/index.ts +0 -6
- package/src/constants/thumbnail.ts +0 -3
- package/src/core/gemxql/api/index.ts +0 -2
- package/src/core/gemxql/api/useCustomGemXQlQuery.ts +0 -35
- package/src/core/gemxql/api/useGemxQlNamedQuery.ts +0 -34
- package/src/core/gemxql/builder/build-gemxql-query.ts +0 -81
- package/src/core/gemxql/builder/clauses/condition-query.ts +0 -74
- package/src/core/gemxql/builder/clauses/from-query.ts +0 -18
- package/src/core/gemxql/builder/clauses/group-query.ts +0 -43
- package/src/core/gemxql/builder/clauses/index.ts +0 -11
- package/src/core/gemxql/builder/clauses/limit-query.ts +0 -15
- package/src/core/gemxql/builder/clauses/mode-query.ts +0 -14
- package/src/core/gemxql/builder/clauses/offset-query.ts +0 -15
- package/src/core/gemxql/builder/clauses/order-by-query.ts +0 -37
- package/src/core/gemxql/builder/clauses/show-query.ts +0 -18
- package/src/core/gemxql/builder/clauses/time-query.ts +0 -67
- package/src/core/gemxql/builder/clauses/time-series-query.ts +0 -15
- package/src/core/gemxql/builder/clauses/timezone-query.ts +0 -17
- package/src/core/gemxql/builder/configs/date-formats.ts +0 -1
- package/src/core/gemxql/builder/configs/index.ts +0 -3
- package/src/core/gemxql/builder/configs/keywords.ts +0 -16
- package/src/core/gemxql/builder/configs/query-defaults.ts +0 -1
- package/src/core/gemxql/builder/filters/build-extra-conditions.ts +0 -69
- package/src/core/gemxql/builder/filters/build-filter-conditions.ts +0 -161
- package/src/core/gemxql/builder/filters/index.ts +0 -2
- package/src/core/gemxql/builder/helpers/date-query-helpers.ts +0 -41
- package/src/core/gemxql/builder/helpers/index.ts +0 -1
- package/src/core/gemxql/builder/helpers/is-valid-query-input.ts +0 -8
- package/src/core/gemxql/builder/index.ts +0 -6
- package/src/core/gemxql/builder/parse-gemxql-query.ts +0 -43
- package/src/core/gemxql/constants/analytic-data.ts +0 -2
- package/src/core/gemxql/constants/column-keys.ts +0 -4
- package/src/core/gemxql/constants/index.ts +0 -4
- package/src/core/gemxql/constants/operators.ts +0 -2
- package/src/core/gemxql/constants/row-reader-mode.ts +0 -9
- package/src/core/gemxql/graphql/fragments/gemxql.generated.ts +0 -80
- package/src/core/gemxql/graphql/fragments/gemxql.gql +0 -18
- package/src/core/gemxql/graphql/index.ts +0 -2
- package/src/core/gemxql/graphql/queries/gemxql.generated.ts +0 -26
- package/src/core/gemxql/graphql/queries/gemxql.gql +0 -5
- package/src/core/gemxql/helpers/columnKeys.ts +0 -8
- package/src/core/gemxql/helpers/extractQueryData.ts +0 -18
- package/src/core/gemxql/helpers/formatAnalyticData.ts +0 -92
- package/src/core/gemxql/helpers/formatAnalyticDate.ts +0 -29
- package/src/core/gemxql/helpers/getTimeDimension.ts +0 -11
- package/src/core/gemxql/helpers/hasMetricData.ts +0 -6
- package/src/core/gemxql/helpers/index.ts +0 -8
- package/src/core/gemxql/helpers/parseJsonFields.ts +0 -36
- package/src/core/gemxql/helpers/readNumeric.ts +0 -25
- package/src/core/gemxql/hooks/index.ts +0 -2
- package/src/core/gemxql/hooks/useAnalyticData.ts +0 -67
- package/src/core/gemxql/hooks/useGemXQlPagination.ts +0 -79
- package/src/core/gemxql/index.ts +0 -8
- package/src/core/gemxql/types/analytic-data.ts +0 -26
- package/src/core/gemxql/types/analytic-source.ts +0 -4
- package/src/core/gemxql/types/extra-condition.ts +0 -40
- package/src/core/gemxql/types/field-filters.ts +0 -18
- package/src/core/gemxql/types/field-operators.ts +0 -8
- package/src/core/gemxql/types/filter-types.ts +0 -33
- package/src/core/gemxql/types/group-with-clause.ts +0 -12
- package/src/core/gemxql/types/index.ts +0 -11
- package/src/core/gemxql/types/order-by.ts +0 -13
- package/src/core/gemxql/types/page-fields.ts +0 -25
- package/src/core/gemxql/types/row-reader-mode.ts +0 -6
- package/src/core/gemxql/types/time-dimension.ts +0 -8
- package/src/global.d.ts +0 -38
- package/src/hooks/index.ts +0 -7
- package/src/hooks/publish/index.ts +0 -2
- package/src/hooks/publish/useStickyDetectById.ts +0 -39
- package/src/hooks/publish/useStickyFilterBoxProps.ts +0 -26
- package/src/hooks/publish/useWindowSize.ts +0 -54
- package/src/hooks/useEnhancedEffect.ts +0 -3
- package/src/hooks/useFetchCurrencyRates.ts +0 -48
- package/src/hooks/useFormatLineChartData.ts +0 -28
- package/src/hooks/usePopoverResizeObserver.ts +0 -43
- package/src/hooks/usePreventBodyScroll.ts +0 -15
- package/src/hooks/useSearchParams.ts +0 -7
- package/src/hooks/useToggle.ts +0 -23
- package/src/index.ts +0 -10
- package/src/modules/analytics/constants/index.ts +0 -124
- package/src/modules/analytics/index.ts +0 -3
- package/src/modules/analytics/types/index.ts +0 -43
- package/src/modules/analytics/utils/formatMetric.ts +0 -42
- package/src/modules/analytics/utils/getPAMetricValue.ts +0 -11
- package/src/modules/analytics/utils/index.ts +0 -3
- package/src/modules/analytics/utils/metric.ts +0 -172
- package/src/providers/ConvertMoneyProvider.tsx +0 -68
- package/src/providers/MetricChartProvider.tsx +0 -50
- package/src/providers/TimezoneProvider.tsx +0 -31
- package/src/providers/index.ts +0 -5
- package/src/shared/charts/components/ComboChart.tsx +0 -108
- package/src/shared/charts/components/GBarChart.tsx +0 -96
- package/src/shared/charts/components/GComboChart.tsx +0 -15
- package/src/shared/charts/components/GDonutChart.tsx +0 -25
- package/src/shared/charts/components/GFunnelChart/GFunnelChart.tsx +0 -34
- package/src/shared/charts/components/GFunnelChart/components/FunnelChartAction.tsx +0 -67
- package/src/shared/charts/components/GFunnelChart/components/FunnelChartActionIcon.tsx +0 -60
- package/src/shared/charts/components/GFunnelChart/components/FunnelChartActionWrapper.tsx +0 -100
- package/src/shared/charts/components/GFunnelChart/components/FunnelSelection/FunnelSelectionContent.tsx +0 -92
- package/src/shared/charts/components/GFunnelChart/components/FunnelSelection/FunnelSelectionHeader.tsx +0 -54
- package/src/shared/charts/components/GFunnelChart/components/FunnelSelection/FunnelSelectionItem.tsx +0 -51
- package/src/shared/charts/components/GFunnelChart/components/FunnelSelection/FunnelSelectionPopover.tsx +0 -95
- package/src/shared/charts/components/GFunnelChart/components/FunnelSelection/index.ts +0 -1
- package/src/shared/charts/components/GFunnelChart/components/FunnelSelection/type.ts +0 -7
- package/src/shared/charts/components/GFunnelChart/components/types.ts +0 -24
- package/src/shared/charts/components/GFunnelChart/index.ts +0 -4
- package/src/shared/charts/components/GFunnelChart/types.ts +0 -11
- package/src/shared/charts/components/GPolarisViz/components/Arc/Arc.module.scss +0 -7
- package/src/shared/charts/components/GPolarisViz/components/Arc/Arc.tsx +0 -135
- package/src/shared/charts/components/GPolarisViz/components/Arc/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/ChartContainer/ChartContainer.module.scss +0 -39
- package/src/shared/charts/components/GPolarisViz/components/ChartContainer/ChartContainer.tsx +0 -150
- package/src/shared/charts/components/GPolarisViz/components/ChartContainer/hooks/useContainerBounds.ts +0 -113
- package/src/shared/charts/components/GPolarisViz/components/ChartContainer/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/ChartElements/ChartDiv.tsx +0 -18
- package/src/shared/charts/components/GPolarisViz/components/ChartElements/ChartElements.module.scss +0 -21
- package/src/shared/charts/components/GPolarisViz/components/ChartElements/ChartSVG.tsx +0 -40
- package/src/shared/charts/components/GPolarisViz/components/ChartElements/index.ts +0 -7
- package/src/shared/charts/components/GPolarisViz/components/ChartErrorBoundary/ChartErrorBoundary.tsx +0 -56
- package/src/shared/charts/components/GPolarisViz/components/ChartErrorBoundary/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/ChartErrorBoundary/utilities/checkForMismatchedData.ts +0 -34
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/ChartSkeleton.module.scss +0 -6
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/ChartSkeleton.tsx +0 -96
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/DonutSkeleton/DonutSkeleton.module.scss +0 -41
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/DonutSkeleton/DonutSkeleton.tsx +0 -193
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/DonutSkeleton/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/ErrorText/ErrorText.tsx +0 -40
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/ErrorText/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/FunnelSkeleton/FunnelSkeleton.tsx +0 -69
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/FunnelSkeleton/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/GridSkeleton/GridSkeleton.tsx +0 -155
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/GridSkeleton/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/Shimmer/Shimmer.module.scss +0 -33
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/Shimmer/Shimmer.tsx +0 -34
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/Shimmer/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SimpleBarSkeleton/SimpleBarSkeleton.module.scss +0 -15
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SimpleBarSkeleton/SimpleBarSkeleton.tsx +0 -53
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SimpleBarSkeleton/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SimpleNormalizedSkeleton/SimpleNormalizedSkeleton.module.scss +0 -35
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SimpleNormalizedSkeleton/SimpleNormalizedSkeleton.tsx +0 -75
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SimpleNormalizedSkeleton/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SparkSkeleton/SparkSkeleton.tsx +0 -27
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SparkSkeleton/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/index.ts +0 -8
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/index.ts +0 -9
- package/src/shared/charts/components/GPolarisViz/components/ConicGradientWithStops/ConicGradientWithStops.tsx +0 -27
- package/src/shared/charts/components/GPolarisViz/components/ConicGradientWithStops/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/DefaultPreview/DefaultPreview.module.scss +0 -8
- package/src/shared/charts/components/GPolarisViz/components/DefaultPreview/DefaultPreview.tsx +0 -25
- package/src/shared/charts/components/GPolarisViz/components/DefaultPreview/index.ts +0 -2
- package/src/shared/charts/components/GPolarisViz/components/FunnelChart/Chart.tsx +0 -209
- package/src/shared/charts/components/GPolarisViz/components/FunnelChart/FunnelChart.tsx +0 -72
- package/src/shared/charts/components/GPolarisViz/components/FunnelChart/components/FunnelChartXAxisArrows.tsx +0 -52
- package/src/shared/charts/components/GPolarisViz/components/FunnelChart/components/FunnelChartXAxisLabels.tsx +0 -66
- package/src/shared/charts/components/GPolarisViz/components/FunnelChart/components/FunnelSegment.tsx +0 -121
- package/src/shared/charts/components/GPolarisViz/components/FunnelChart/components/Label.module.scss +0 -23
- package/src/shared/charts/components/GPolarisViz/components/FunnelChart/components/Label.tsx +0 -67
- package/src/shared/charts/components/GPolarisViz/components/FunnelChart/components/index.ts +0 -4
- package/src/shared/charts/components/GPolarisViz/components/FunnelChart/index.ts +0 -2
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/Chart.tsx +0 -259
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/FunnelChartNext.tsx +0 -104
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/FunnelChartLabels/FunnelChartLabels.tsx +0 -387
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/FunnelChartLabels/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/FunnelTooltip/FunnelTooltip.scss +0 -8
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/FunnelTooltip/FunnelTooltip.tsx +0 -37
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/FunnelTooltip/index.ts +0 -3
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/ScaleIcon.tsx +0 -20
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/ScaleIconTooltip.tsx +0 -31
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/Tooltip/CustomTooltip.tsx +0 -68
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/Tooltip/Tooltip.scss +0 -52
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/Tooltip/Tooltip.tsx +0 -149
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/Tooltip/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/TooltipOverlay.tsx +0 -117
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/TooltipWithPortal.tsx +0 -12
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/index.ts +0 -8
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/constants.ts +0 -28
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/hooks/useTooltipInteraction.ts +0 -59
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/hooks/useTooltipPlacement.ts +0 -113
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/index.ts +0 -6
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/types.ts +0 -13
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/utilities/calculate-dropoff.ts +0 -4
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/utilities/useBuildFunnelTrends.ts +0 -108
- package/src/shared/charts/components/GPolarisViz/components/HorizontalGridLines/HorizontalGridLines.tsx +0 -27
- package/src/shared/charts/components/GPolarisViz/components/HorizontalGridLines/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/Labels/SingleTextLine.tsx +0 -64
- package/src/shared/charts/components/GPolarisViz/components/Labels/hooks/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/Labels/hooks/useLabels.tsx +0 -131
- package/src/shared/charts/components/GPolarisViz/components/Labels/index.ts +0 -3
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/endLineTruncate.ts +0 -23
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/endWordTruncate.ts +0 -34
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/estimateTextHeight.ts +0 -31
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/formatAndAddEllipsis.ts +0 -12
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/getDiagonalLabels.ts +0 -70
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/getHorizontalLabels.ts +0 -90
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/getVerticalLabels.ts +0 -58
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/getWidestLabel.ts +0 -15
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/shouldSkipLabel.ts +0 -11
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/tests/endWordTruncate.test.ts +0 -16
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/tests/estimateTextHeight.test.ts +0 -19
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/tests/formatAndAddEllipsis.test.ts +0 -9
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/tests/truncateLastLine.test.ts +0 -22
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/tests/truncateSingleLine.test.ts +0 -15
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/truncateLabels.ts +0 -75
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/truncateLastLine.ts +0 -61
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/truncateSingleLine.ts +0 -39
- package/src/shared/charts/components/GPolarisViz/components/LinePreview/LinePreview.module.scss +0 -8
- package/src/shared/charts/components/GPolarisViz/components/LinePreview/LinePreview.tsx +0 -105
- package/src/shared/charts/components/GPolarisViz/components/LinePreview/constants.ts +0 -3
- package/src/shared/charts/components/GPolarisViz/components/LinePreview/index.ts +0 -2
- package/src/shared/charts/components/GPolarisViz/components/SwallowErrors/SwallowErrors.tsx +0 -32
- package/src/shared/charts/components/GPolarisViz/components/SwallowErrors/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/TextLine/TextLine.tsx +0 -88
- package/src/shared/charts/components/GPolarisViz/components/TextLine/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/TooltipContent.tsx +0 -109
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipContentContainer/TooltipContentContainer.module.scss +0 -10
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipContentContainer/TooltipContentContainer.tsx +0 -67
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipContentContainer/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipRow/TooltipRow.module.scss +0 -26
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipRow/TooltipRow.tsx +0 -57
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipRow/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipSeries/TooltipSeries.module.scss +0 -4
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipSeries/TooltipSeries.tsx +0 -26
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipSeries/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipSeriesName/TooltipSeriesName.module.scss +0 -4
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipSeriesName/TooltipSeriesName.tsx +0 -20
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipSeriesName/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipTitle/TooltipTitle.module.scss +0 -7
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipTitle/TooltipTitle.tsx +0 -15
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipTitle/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/index.ts +0 -5
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/constants.ts +0 -2
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/hooks/useGetLongestLabelFromData.ts +0 -56
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/index.ts +0 -4
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/utilities/get-tooltip-template-content-column-count.ts +0 -10
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/utilities/tests/get-tooltip-template-content-column-count.test.ts +0 -48
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/TooltipWrapper.tsx +0 -338
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/components/TooltipAnimatedContainer.module.scss +0 -6
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/components/TooltipAnimatedContainer.tsx +0 -139
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/constants.ts +0 -18
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/index.ts +0 -5
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/types.ts +0 -62
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/eventPoint.ts +0 -84
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getAlteredHorizontalBarPosition.ts +0 -110
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getAlteredLineChartPosition.ts +0 -115
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getAlteredVerticalBarPosition.ts +0 -105
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getDonutChartTooltipPosition.ts +0 -64
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getHorizontalBarChartTooltipPosition.ts +0 -79
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getLineChartTooltipPosition.ts +0 -68
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getVerticalBarChartTooltipPosition.ts +0 -123
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/shouldBlockTooltipEvents.ts +0 -6
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities.ts +0 -162
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/TrendIndicator.tsx +0 -72
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/Arrows/ArrowDown.tsx +0 -12
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/Arrows/ArrowUp.tsx +0 -12
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/Arrows/index.ts +0 -2
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/Svg/Svg.scss +0 -7
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/Svg/Svg.tsx +0 -27
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/Svg/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/index.ts +0 -2
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/constants.ts +0 -12
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/index.ts +0 -6
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/utilities/estimateTrendIndicatorWidth.ts +0 -9
- package/src/shared/charts/components/GPolarisViz/components/VerticalBarChart/utilities/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/VerticalBarChart/utilities/sortBarChartData.ts +0 -20
- package/src/shared/charts/components/GPolarisViz/components/VerticalGridLines/VerticalGridLines.tsx +0 -32
- package/src/shared/charts/components/GPolarisViz/components/VerticalGridLines/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/index.ts +0 -6
- package/src/shared/charts/components/GPolarisViz/constants.ts +0 -72
- package/src/shared/charts/components/GPolarisViz/data/character-width-offsets.json +0 -65
- package/src/shared/charts/components/GPolarisViz/data/character-widths.json +0 -1
- package/src/shared/charts/components/GPolarisViz/hooks/index.ts +0 -5
- package/src/shared/charts/components/GPolarisViz/hooks/useBarSpringConfig.ts +0 -21
- package/src/shared/charts/components/GPolarisViz/hooks/useBrowserCheck.ts +0 -13
- package/src/shared/charts/components/GPolarisViz/hooks/useCallbackRef.tsx +0 -39
- package/src/shared/charts/components/GPolarisViz/hooks/useDataForHorizontalChart.ts +0 -69
- package/src/shared/charts/components/GPolarisViz/hooks/useDebouncedCallback.ts +0 -197
- package/src/shared/charts/components/GPolarisViz/hooks/useFormattedLabels.ts +0 -31
- package/src/shared/charts/components/GPolarisViz/hooks/useFunnelBarScaling.ts +0 -53
- package/src/shared/charts/components/GPolarisViz/hooks/useHorizontalBarSizes.ts +0 -70
- package/src/shared/charts/components/GPolarisViz/hooks/useHorizontalStackedValues.ts +0 -34
- package/src/shared/charts/components/GPolarisViz/hooks/useHorizontalTicksAndScale.ts +0 -67
- package/src/shared/charts/components/GPolarisViz/hooks/useHorizontalXScale.ts +0 -48
- package/src/shared/charts/components/GPolarisViz/hooks/useIndexForLabels.ts +0 -16
- package/src/shared/charts/components/GPolarisViz/hooks/usePrefersReducedMotion.ts +0 -6
- package/src/shared/charts/components/GPolarisViz/hooks/usePrintResizing.ts +0 -94
- package/src/shared/charts/components/GPolarisViz/hooks/useReducedLabelIndexes.ts +0 -21
- package/src/shared/charts/components/GPolarisViz/hooks/useResizeObserver.ts +0 -39
- package/src/shared/charts/components/GPolarisViz/hooks/useRootContainer.ts +0 -20
- package/src/shared/charts/components/GPolarisViz/hooks/useWatchColorVisionEvents.tsx +0 -35
- package/src/shared/charts/components/GPolarisViz/index.ts +0 -10
- package/src/shared/charts/components/GPolarisViz/shared/Bar/Bar.tsx +0 -89
- package/src/shared/charts/components/GPolarisViz/shared/Bar/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartConnector/FunnelChartConnector.tsx +0 -46
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartConnector/FunnelChartConnectorGradient.tsx +0 -21
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartConnector/constants.ts +0 -11
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartConnector/index.ts +0 -3
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartSegment/FunnelChartSegment.tsx +0 -100
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartSegment/components/AnimatedSegment.tsx +0 -50
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartSegment/components/InteractiveOverlay.tsx +0 -34
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartSegment/components/ScaledSegment.tsx +0 -218
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartSegment/constants.ts +0 -4
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartSegment/index.ts +0 -2
- package/src/shared/charts/components/GPolarisViz/shared/SeriesIcon/SeriesIcon.tsx +0 -22
- package/src/shared/charts/components/GPolarisViz/shared/SeriesIcon/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/shared/ZeroValueLine/ZeroValueLine.tsx +0 -45
- package/src/shared/charts/components/GPolarisViz/shared/ZeroValueLine/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/shared/index.ts +0 -3
- package/src/shared/charts/components/GPolarisViz/styles/_common.scss +0 -15
- package/src/shared/charts/components/GPolarisViz/styles/shared/_accessibility.scss +0 -41
- package/src/shared/charts/components/GPolarisViz/styles/shared/_chart-container.scss +0 -8
- package/src/shared/charts/components/GPolarisViz/styles/shared/_variables.scss +0 -322
- package/src/shared/charts/components/GPolarisViz/types.ts +0 -261
- package/src/shared/charts/components/GPolarisViz/utilities/base.ts +0 -13
- package/src/shared/charts/components/GPolarisViz/utilities/classnames.ts +0 -3
- package/src/shared/charts/components/GPolarisViz/utilities/createCssConicGradient.ts +0 -12
- package/src/shared/charts/components/GPolarisViz/utilities/createCssGradient.ts +0 -7
- package/src/shared/charts/components/GPolarisViz/utilities/estimateStringWidthWithOffset.ts +0 -15
- package/src/shared/charts/components/GPolarisViz/utilities/getAxisOptions.ts +0 -26
- package/src/shared/charts/components/GPolarisViz/utilities/getCSSBackgroundFromColor.ts +0 -8
- package/src/shared/charts/components/GPolarisViz/utilities/getChartId.ts +0 -3
- package/src/shared/charts/components/GPolarisViz/utilities/getFontSize.ts +0 -7
- package/src/shared/charts/components/GPolarisViz/utilities/getStackedMinMax.ts +0 -43
- package/src/shared/charts/components/GPolarisViz/utilities/getStackedValues.ts +0 -35
- package/src/shared/charts/components/GPolarisViz/utilities/getStackedValuesFromDataSeries.tsx +0 -30
- package/src/shared/charts/components/GPolarisViz/utilities/getTrendIndicatorData.ts +0 -22
- package/src/shared/charts/components/GPolarisViz/utilities/hasHiddenComparisonSeries.ts +0 -26
- package/src/shared/charts/components/GPolarisViz/utilities/index.ts +0 -6
- package/src/shared/charts/components/GSimpleBarChart.tsx +0 -32
- package/src/shared/charts/components/index.ts +0 -7
- package/src/shared/charts/constants/chart.ts +0 -14
- package/src/shared/charts/constants/index.ts +0 -1
- package/src/shared/charts/contexts/GChartProvider.tsx +0 -48
- package/src/shared/charts/contexts/index.ts +0 -1
- package/src/shared/charts/index.ts +0 -4
- package/src/shared/charts/types/chart.ts +0 -36
- package/src/shared/charts/types/index.ts +0 -1
- package/src/shared/components/GActivatorPopover/GActivatorPopover.tsx +0 -107
- package/src/shared/components/GActivatorPopover/index.ts +0 -1
- package/src/shared/components/GBlockCenter/GBlockCenter.scss +0 -19
- package/src/shared/components/GBlockCenter/GBlockCenter.tsx +0 -72
- package/src/shared/components/GBlockCenter/index.ts +0 -1
- package/src/shared/components/GBox/GBox.scss +0 -25
- package/src/shared/components/GBox/GBox.tsx +0 -15
- package/src/shared/components/GBox/index.ts +0 -1
- package/src/shared/components/GBoxCard/GBoxCard.tsx +0 -27
- package/src/shared/components/GBoxCard/index.ts +0 -1
- package/src/shared/components/GButton/GButton.scss +0 -41
- package/src/shared/components/GButton/GButton.tsx +0 -73
- package/src/shared/components/GButton/index.ts +0 -1
- package/src/shared/components/GCheckbox/GCheckbox.tsx +0 -176
- package/src/shared/components/GCheckbox/index.ts +0 -1
- package/src/shared/components/GChoice/ChoiceHelpText.tsx +0 -25
- package/src/shared/components/GChoice/GChoice.scss +0 -14
- package/src/shared/components/GChoice/GChoice.tsx +0 -165
- package/src/shared/components/GChoice/index.ts +0 -2
- package/src/shared/components/GClickable/GClickable.tsx +0 -43
- package/src/shared/components/GClickable/index.ts +0 -1
- package/src/shared/components/GDiv/GDiv.tsx +0 -27
- package/src/shared/components/GDiv/index.ts +0 -1
- package/src/shared/components/GDotInline/GDotInline.tsx +0 -20
- package/src/shared/components/GDotInline/index.ts +0 -1
- package/src/shared/components/GFeatureLocked/GFeatureLocked.tsx +0 -85
- package/src/shared/components/GFeatureLocked/assets/images/empty-analytics.png +0 -0
- package/src/shared/components/GFeatureLocked/assets/images/empty-campaign-group-template-illustration.png +0 -0
- package/src/shared/components/GFeatureLocked/assets/images/empty-campaign-group-template.png +0 -0
- package/src/shared/components/GFeatureLocked/assets/images/empty-page-listing-illustration.png +0 -0
- package/src/shared/components/GFeatureLocked/assets/images/empty-page-listing.png +0 -0
- package/src/shared/components/GFeatureLocked/constants.ts +0 -33
- package/src/shared/components/GFeatureLocked/index.ts +0 -2
- package/src/shared/components/GFeatureLocked/types.ts +0 -16
- package/src/shared/components/GI18NText/GI18NText.tsx +0 -37
- package/src/shared/components/GI18NText/index.ts +0 -2
- package/src/shared/components/GI18NText/types.ts +0 -7
- package/src/shared/components/GInlineCenter/GInlineCenter.scss +0 -17
- package/src/shared/components/GInlineCenter/GInlineCenter.tsx +0 -39
- package/src/shared/components/GInlineCenter/index.ts +0 -1
- package/src/shared/components/GMockDataTooltip/GMockDataTooltip.tsx +0 -30
- package/src/shared/components/GMockDataTooltip/index.ts +0 -1
- package/src/shared/components/GModal/GModal.tsx +0 -49
- package/src/shared/components/GModal/index.ts +0 -1
- package/src/shared/components/GOptionList/GOptionList.tsx +0 -63
- package/src/shared/components/GOptionList/index.ts +0 -1
- package/src/shared/components/GPagination/GPagination.tsx +0 -44
- package/src/shared/components/GPagination/hooks/useGPagination.ts +0 -42
- package/src/shared/components/GPagination/index.ts +0 -2
- package/src/shared/components/GSelector/GSelector.tsx +0 -198
- package/src/shared/components/GSelector/index.ts +0 -1
- package/src/shared/components/GSkeletonDisplayText/GSkeletonDisplayText.tsx +0 -14
- package/src/shared/components/GSkeletonDisplayText/index.ts +0 -1
- package/src/shared/components/GSpinner/GSpinner.tsx +0 -16
- package/src/shared/components/GSpinner/index.ts +0 -1
- package/src/shared/components/GTextLink/GTextLink.tsx +0 -26
- package/src/shared/components/GTextLink/index.ts +0 -1
- package/src/shared/components/GTextTooltip/GTextTooltip.tsx +0 -18
- package/src/shared/components/GTextTooltip/index.ts +0 -1
- package/src/shared/components/GTextTruncated/GTextTruncated.tsx +0 -80
- package/src/shared/components/GTextTruncated/index.ts +0 -1
- package/src/shared/components/GThumbnail/GThumbnail.scss +0 -5
- package/src/shared/components/GThumbnail/GThumbnail.tsx +0 -69
- package/src/shared/components/GThumbnail/index.ts +0 -1
- package/src/shared/components/GTooltip/GTooltip.tsx +0 -34
- package/src/shared/components/GTooltip/components/GTooltipCard.tsx +0 -164
- package/src/shared/components/GTooltip/index.ts +0 -3
- package/src/shared/components/GTooltipCard/GTooltipCard.tsx +0 -161
- package/src/shared/components/GTooltipCard/index.ts +0 -7
- package/src/shared/components/GVariantBadge/GVariant.tsx +0 -55
- package/src/shared/components/GVariantBadge/GVariantBadge.scss +0 -10
- package/src/shared/components/GVariantBadge/GVariantBadge.tsx +0 -82
- package/src/shared/components/GVariantBadge/index.ts +0 -4
- package/src/shared/components/GVariantBadge/types.ts +0 -20
- package/src/shared/components/GViewBySelector/GViewBySelector.tsx +0 -114
- package/src/shared/components/GViewBySelector/index.ts +0 -1
- package/src/shared/components/index.ts +0 -26
- package/src/shared/index.ts +0 -1
- package/src/shared/journey/common/JourneyContainer/components/JourneyContainer.tsx +0 -140
- package/src/shared/journey/common/JourneyContainer/components/JourneyTimeline.tsx +0 -18
- package/src/shared/journey/common/JourneyContainer/components/index.ts +0 -2
- package/src/shared/journey/common/JourneyContainer/index.ts +0 -1
- package/src/shared/journey/common/index.ts +0 -1
- package/src/shared/journey/index.ts +0 -2
- package/src/shared/journey/ui/JourneyEvents/components/AcceptedPostPurchaseOffer/AcceptedPostPurchaseOffer.tsx +0 -24
- package/src/shared/journey/ui/JourneyEvents/components/AcceptedPostPurchaseOffer/index.ts +0 -1
- package/src/shared/journey/ui/JourneyEvents/components/CheckoutCompleted/CheckoutCompleted.tsx +0 -64
- package/src/shared/journey/ui/JourneyEvents/components/CheckoutCompleted/index.ts +0 -1
- package/src/shared/journey/ui/JourneyEvents/components/CheckoutItems.tsx +0 -27
- package/src/shared/journey/ui/JourneyEvents/components/CheckoutStarted/CheckoutStarted.tsx +0 -25
- package/src/shared/journey/ui/JourneyEvents/components/CheckoutStarted/CheckoutStartedDetail.tsx +0 -79
- package/src/shared/journey/ui/JourneyEvents/components/CheckoutStarted/index.ts +0 -2
- package/src/shared/journey/ui/JourneyEvents/components/PageViewed/PageViewed.tsx +0 -116
- package/src/shared/journey/ui/JourneyEvents/components/PageViewed/index.ts +0 -1
- package/src/shared/journey/ui/JourneyEvents/components/ProductAddedToCart/ProductAddedToCart.tsx +0 -24
- package/src/shared/journey/ui/JourneyEvents/components/ProductAddedToCart/index.ts +0 -1
- package/src/shared/journey/ui/JourneyEvents/components/ProductQuantity/ProductQuantity.tsx +0 -33
- package/src/shared/journey/ui/JourneyEvents/components/ProductQuantity/index.ts +0 -1
- package/src/shared/journey/ui/JourneyEvents/components/ProductRemovedFromCart/ProductRemovedFromCart.tsx +0 -24
- package/src/shared/journey/ui/JourneyEvents/components/ProductRemovedFromCart/index.ts +0 -1
- package/src/shared/journey/ui/JourneyEvents/components/index.ts +0 -6
- package/src/shared/journey/ui/JourneyEvents/constants/event.ts +0 -38
- package/src/shared/journey/ui/JourneyEvents/constants/index.ts +0 -1
- package/src/shared/journey/ui/JourneyEvents/index.ts +0 -2
- package/src/shared/journey/ui/JourneyEvents/types.ts +0 -2
- package/src/shared/journey/ui/JourneyGroup/JourneyGroup.tsx +0 -41
- package/src/shared/journey/ui/JourneyGroup/index.ts +0 -1
- package/src/shared/journey/ui/JourneyItem/components/EventMarkerIcon.tsx +0 -28
- package/src/shared/journey/ui/JourneyItem/components/JourneyDetail.tsx +0 -24
- package/src/shared/journey/ui/JourneyItem/components/JourneyItem.tsx +0 -27
- package/src/shared/journey/ui/JourneyItem/components/JourneyTime.tsx +0 -33
- package/src/shared/journey/ui/JourneyItem/components/QuantityWrapper.tsx +0 -17
- package/src/shared/journey/ui/JourneyItem/components/index.ts +0 -3
- package/src/shared/journey/ui/JourneyItem/index.ts +0 -2
- package/src/shared/journey/ui/JourneyItem/types/events.ts +0 -33
- package/src/shared/journey/ui/JourneyItem/types/index.ts +0 -1
- package/src/shared/journey/ui/JourneyTitle/components/GemxIdBadge.tsx +0 -38
- package/src/shared/journey/ui/JourneyTitle/components/JourneyDateBadge.tsx +0 -18
- package/src/shared/journey/ui/JourneyTitle/components/JourneyIdBadge.tsx +0 -65
- package/src/shared/journey/ui/JourneyTitle/components/JourneyLoadMore.tsx +0 -43
- package/src/shared/journey/ui/JourneyTitle/components/JourneyTitle.tsx +0 -42
- package/src/shared/journey/ui/JourneyTitle/components/index.ts +0 -2
- package/src/shared/journey/ui/JourneyTitle/constants/idBadge.ts +0 -1
- package/src/shared/journey/ui/JourneyTitle/constants/index.ts +0 -1
- package/src/shared/journey/ui/JourneyTitle/index.ts +0 -1
- package/src/shared/journey/ui/index.ts +0 -3
- package/src/shared/journey/ui/type.ts +0 -2
- package/src/shared/reports/common/Visualization/constants/columns.ts +0 -6
- package/src/shared/reports/common/Visualization/constants/index.ts +0 -2
- package/src/shared/reports/common/Visualization/constants/version.ts +0 -8
- package/src/shared/reports/common/Visualization/index.ts +0 -2
- package/src/shared/reports/common/Visualization/types/chart.ts +0 -5
- package/src/shared/reports/common/Visualization/types/index.ts +0 -3
- package/src/shared/reports/common/Visualization/types/report-metric.ts +0 -21
- package/src/shared/reports/common/Visualization/types/report.ts +0 -42
- package/src/shared/reports/common/Visualization/utils/index.ts +0 -2
- package/src/shared/reports/common/Visualization/utils/version.ts +0 -9
- package/src/shared/reports/common/Visualization/utils/visualization.ts +0 -58
- package/src/shared/reports/common/index.ts +0 -1
- package/src/shared/reports/ui/ReportTable/ReportTable.tsx +0 -194
- package/src/shared/reports/ui/ReportTable/ReportTableSkeleton.tsx +0 -73
- package/src/shared/reports/ui/ReportTable/assets/styles/ReportTable.scss +0 -288
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/CampaignsCell/CampaignsCell.tsx +0 -102
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/CampaignsCell/CampaignsCellVersion.tsx +0 -11
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/CampaignsCell/index.ts +0 -1
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/Cell.tsx +0 -93
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/CellRenderers.tsx +0 -72
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/DateCell.tsx +0 -9
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/DefaultCell.tsx +0 -32
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/GemxIdCell.tsx +0 -18
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/ItemsCell/CheckoutStartedDetail.tsx +0 -79
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/ItemsCell/ItemsCell.tsx +0 -56
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/ItemsCell/index.ts +0 -1
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/NoneCell.tsx +0 -11
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/LoadingData.tsx +0 -10
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/NoData.tsx +0 -13
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/OrderCell.tsx +0 -78
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/OrderCellBase.tsx +0 -55
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/OrderCellContainer.tsx +0 -43
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/OrderItem.tsx +0 -79
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/index.ts +0 -2
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderIdCell.tsx +0 -70
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/PreviousCell.tsx +0 -17
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/TotalCell.tsx +0 -14
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/VersionCell.tsx +0 -31
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/WrapperCell.tsx +0 -31
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/index.ts +0 -1
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/type.ts +0 -18
- package/src/shared/reports/ui/ReportTable/components/Body/Row.tsx +0 -85
- package/src/shared/reports/ui/ReportTable/components/Body/index.ts +0 -2
- package/src/shared/reports/ui/ReportTable/components/Footer/Pagination.tsx +0 -76
- package/src/shared/reports/ui/ReportTable/components/Footer/ScrollBar.tsx +0 -19
- package/src/shared/reports/ui/ReportTable/components/Footer/WrapperFooter.tsx +0 -39
- package/src/shared/reports/ui/ReportTable/components/Footer/index.ts +0 -1
- package/src/shared/reports/ui/ReportTable/components/Header/Header.tsx +0 -68
- package/src/shared/reports/ui/ReportTable/components/Header/SortableHeader.tsx +0 -49
- package/src/shared/reports/ui/ReportTable/components/Header/SortableHeaderWithTooltip.tsx +0 -60
- package/src/shared/reports/ui/ReportTable/components/Header/SummaryCell.tsx +0 -26
- package/src/shared/reports/ui/ReportTable/components/Header/SummaryRow.tsx +0 -69
- package/src/shared/reports/ui/ReportTable/components/Header/WrapperHeader.tsx +0 -54
- package/src/shared/reports/ui/ReportTable/components/Header/index.ts +0 -1
- package/src/shared/reports/ui/ReportTable/components/index.ts +0 -2
- package/src/shared/reports/ui/ReportTable/constants/index.ts +0 -2
- package/src/shared/reports/ui/ReportTable/constants/order.ts +0 -30
- package/src/shared/reports/ui/ReportTable/constants/table.ts +0 -17
- package/src/shared/reports/ui/ReportTable/context/ReportTableActionsContext.tsx +0 -28
- package/src/shared/reports/ui/ReportTable/helpers/format.ts +0 -29
- package/src/shared/reports/ui/ReportTable/helpers/index.ts +0 -2
- package/src/shared/reports/ui/ReportTable/helpers/report.ts +0 -7
- package/src/shared/reports/ui/ReportTable/hooks/index.ts +0 -3
- package/src/shared/reports/ui/ReportTable/hooks/useReportTable.ts +0 -172
- package/src/shared/reports/ui/ReportTable/hooks/useReportTableCell.tsx +0 -28
- package/src/shared/reports/ui/ReportTable/hooks/useSyncedScroll.ts +0 -81
- package/src/shared/reports/ui/ReportTable/index.ts +0 -4
- package/src/shared/reports/ui/ReportTable/types/dimension.ts +0 -8
- package/src/shared/reports/ui/ReportTable/types/index.ts +0 -43
- package/src/shared/reports/ui/ReportTable/types/order.ts +0 -15
- package/src/shared/reports/ui/ReportTable/types/report-columns.ts +0 -11
- package/src/shared/reports/ui/ReportTable/utils/format.ts +0 -100
- package/src/shared/reports/ui/ReportTable/utils/index.ts +0 -2
- package/src/shared/reports/ui/ReportTable/utils/order.ts +0 -8
- package/src/shared/reports/ui/ReportTable/utils/table.ts +0 -19
- package/src/shared/reports/ui/ReportTable/utils/visualization.ts +0 -56
- package/src/shared/reports/ui/index.ts +0 -0
- package/src/stores/currencyRatesStore.ts +0 -13
- package/src/stores/index.ts +0 -2
- package/src/styles/index.scss +0 -9
- package/src/types/analytic-mode.ts +0 -5
- package/src/types/breakdown-items.ts +0 -21
- package/src/types/campaign.ts +0 -13
- package/src/types/chart.ts +0 -42
- package/src/types/currency.ts +0 -329
- package/src/types/index.ts +0 -8
- package/src/types/metric.ts +0 -81
- package/src/types/pricing.ts +0 -38
- package/src/types/report-columns.ts +0 -1
- package/src/types/template.ts +0 -19
- package/src/utils/analytics.ts +0 -75
- package/src/utils/array.ts +0 -13
- package/src/utils/cls.ts +0 -18
- package/src/utils/currency.ts +0 -42
- package/src/utils/date-time.ts +0 -7
- package/src/utils/dayjs.ts +0 -52
- package/src/utils/deep-copy.ts +0 -4
- package/src/utils/index.ts +0 -12
- package/src/utils/is-browser.ts +0 -3
- package/src/utils/number.ts +0 -19
- package/src/utils/percentage.ts +0 -40
- package/src/utils/sort.ts +0 -87
- package/src/utils/string.ts +0 -20
- package/src/utils/template-type.ts +0 -30
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@levi-gemcommerce/analytics",
|
|
3
|
-
"version": "3.0.1-dev.
|
|
3
|
+
"version": "3.0.1-dev.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "gemx-dev",
|
|
6
6
|
"sideEffects": [
|
|
@@ -9,23 +9,47 @@
|
|
|
9
9
|
"exports": {
|
|
10
10
|
"./package.json": "./package.json",
|
|
11
11
|
"./style.css": "./dist/style.css",
|
|
12
|
-
"./types":
|
|
12
|
+
"./types": {
|
|
13
|
+
"types": "./dist/esm/types/index.d.ts",
|
|
14
|
+
"node": {
|
|
15
|
+
"types": "./dist/esm/types/index.d.ts",
|
|
16
|
+
"module": "./dist/esm/types/index.js",
|
|
17
|
+
"require": "./dist/umd/types.js",
|
|
18
|
+
"import": "./dist/esm/types/index.mjs"
|
|
19
|
+
},
|
|
20
|
+
"browser": {
|
|
21
|
+
"import": "./dist/esm/types/index.js",
|
|
22
|
+
"require": "./dist/umd/types.js"
|
|
23
|
+
},
|
|
24
|
+
"default": "./dist/esm/types/index.js"
|
|
25
|
+
},
|
|
13
26
|
"./gemxql": {
|
|
27
|
+
"types": "./dist/esm/core/gemxql/index.d.ts",
|
|
14
28
|
"node": {
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
29
|
+
"types": "./dist/esm/core/gemxql/index.d.ts",
|
|
30
|
+
"module": "./dist/esm/core/gemxql/index.js",
|
|
31
|
+
"require": "./dist/umd/gemxql.js",
|
|
32
|
+
"import": "./dist/esm/core/gemxql/index.mjs"
|
|
18
33
|
},
|
|
19
|
-
"
|
|
34
|
+
"browser": {
|
|
35
|
+
"import": "./dist/esm/core/gemxql/index.js",
|
|
36
|
+
"require": "./dist/umd/gemxql.js"
|
|
37
|
+
},
|
|
38
|
+
"default": "./dist/esm/core/gemxql/index.js"
|
|
20
39
|
},
|
|
21
40
|
".": {
|
|
41
|
+
"types": "./dist/esm/index.d.ts",
|
|
22
42
|
"node": {
|
|
23
|
-
"types": "./
|
|
24
|
-
"module": "./
|
|
25
|
-
"require": "./
|
|
26
|
-
"import": "./
|
|
43
|
+
"types": "./dist/esm/index.d.ts",
|
|
44
|
+
"module": "./dist/esm/index.js",
|
|
45
|
+
"require": "./dist/umd/index.js",
|
|
46
|
+
"import": "./dist/esm/index.mjs"
|
|
47
|
+
},
|
|
48
|
+
"browser": {
|
|
49
|
+
"import": "./dist/esm/index.js",
|
|
50
|
+
"require": "./dist/umd/index.js"
|
|
27
51
|
},
|
|
28
|
-
"default": "./
|
|
52
|
+
"default": "./dist/esm/index.js"
|
|
29
53
|
}
|
|
30
54
|
},
|
|
31
55
|
"main": "dist/umd/index.js",
|
|
@@ -33,8 +57,7 @@
|
|
|
33
57
|
"source": "src/index.ts",
|
|
34
58
|
"types": "dist/esm/index.d.ts",
|
|
35
59
|
"files": [
|
|
36
|
-
"dist"
|
|
37
|
-
"src"
|
|
60
|
+
"dist"
|
|
38
61
|
],
|
|
39
62
|
"scripts": {
|
|
40
63
|
"build": "rollup --config rollup.config.mjs --environment NODE_ENV:production && yarn css",
|
|
@@ -62,8 +85,8 @@
|
|
|
62
85
|
"@gem-sdk/eslint-config": "workspace:*",
|
|
63
86
|
"@gem-sdk/rollup-config": "workspace:*",
|
|
64
87
|
"@gem-sdk/tsconfig": "workspace:*",
|
|
65
|
-
"@react-spring/web": "^9.7.5",
|
|
66
88
|
"@remix-run/react": "^2.15.2",
|
|
89
|
+
"@react-spring/web": "^9.7.5",
|
|
67
90
|
"@shopify/polaris": "13.9.5",
|
|
68
91
|
"@shopify/polaris-icons": "9.3.1",
|
|
69
92
|
"@shopify/polaris-viz": "16.16.0",
|
|
@@ -131,4 +154,4 @@
|
|
|
131
154
|
"@shopify/polaris-icons": "PolarisIcons"
|
|
132
155
|
}
|
|
133
156
|
}
|
|
134
|
-
}
|
|
157
|
+
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export type PathAnalyticMetricSelectFragment = {
|
|
2
|
-
totalPageViewed?: number | null;
|
|
3
|
-
totalVisitors?: number | null;
|
|
4
|
-
totalClicked?: number | null;
|
|
5
|
-
totalAddedToCart?: number | null;
|
|
6
|
-
totalReachedCheckout?: number | null;
|
|
7
|
-
totalOrders?: number | null;
|
|
8
|
-
totalSessions?: number | null;
|
|
9
|
-
totalSessionsThatCompletedCheckout?: number | null;
|
|
10
|
-
totalSessionsThatReachedCheckout?: number | null;
|
|
11
|
-
totalSessionsWithCartAdditions?: number | null;
|
|
12
|
-
totalClickedHasHref?: number | null;
|
|
13
|
-
totalSessionsWithoutAction?: number | null;
|
|
14
|
-
totalContinuationSession?: number | null;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export type PathAnalyticPageSelectFragment = {
|
|
18
|
-
level?: number | null;
|
|
19
|
-
locationPath?: string | null;
|
|
20
|
-
id: string;
|
|
21
|
-
parentID: string;
|
|
22
|
-
pageType?: string | null;
|
|
23
|
-
shopifyPageID?: string | null;
|
|
24
|
-
pageTitle?: string | null;
|
|
25
|
-
metric?: PathAnalyticMetricSelectFragment | null;
|
|
26
|
-
};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<svg width="38" height="42" viewBox="0 0 38 42" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<g clip-path="url(#clip0_38343_30127)">
|
|
3
|
-
<path d="M22.7778 1.89867L19.559 7.77206C19.5324 7.82462 19.5324 7.89032 19.559 7.94288L26.4622 20.5437C26.5287 20.6686 26.7083 20.6686 26.7748 20.5437L37.8877 0.262792C37.9542 0.144535 37.8678 0 37.7281 0H26.0033C24.6533 0 23.4163 0.729247 22.7778 1.89867Z" fill="#CCCCCC"/>
|
|
4
|
-
<path d="M12.3829 0H0.451995C0.112821 0 -0.106645 0.361338 0.0596168 0.656979L11.0994 20.8131L0.0529663 40.9824C-0.106645 41.278 0.10617 41.6393 0.451995 41.6393H12.3563C12.6224 41.6393 12.8751 41.4948 13.0014 41.2583L24.0412 21.1022C24.1476 20.9116 24.1476 20.6751 24.0412 20.4846L13.028 0.381048C12.9017 0.144535 12.6556 0 12.3829 0Z" fill="#CCCCCC"/>
|
|
5
|
-
<path d="M22.7778 39.7997L19.559 33.9263C19.5324 33.8738 19.5324 33.8081 19.559 33.7555L26.4622 21.1547C26.5287 21.0298 26.7083 21.0298 26.7748 21.1547L37.8811 41.4356C37.9476 41.5539 37.8611 41.6984 37.7215 41.6984H25.9967C24.6466 41.6984 23.4096 40.9691 22.7712 39.7997H22.7778Z" fill="#CCCCCC"/>
|
|
6
|
-
</g>
|
|
7
|
-
<defs>
|
|
8
|
-
<clipPath id="clip0_38343_30127">
|
|
9
|
-
<rect width="37.9077" height="41.6985" fill="white"/>
|
|
10
|
-
</clipPath>
|
|
11
|
-
</defs>
|
|
12
|
-
</svg>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<svg
|
|
2
|
-
width="90"
|
|
3
|
-
height="72"
|
|
4
|
-
viewBox="0 0 90 72"
|
|
5
|
-
fill="none"
|
|
6
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
-
>
|
|
8
|
-
<path
|
|
9
|
-
d="M48.75 34.5C49.9926 34.5 51 33.4926 51 32.25C51 31.0074 49.9926 30 48.75 30C47.5074 30 46.5 31.0074 46.5 32.25C46.5 33.4926 47.5074 34.5 48.75 34.5Z"
|
|
10
|
-
fill="#616161"
|
|
11
|
-
/>
|
|
12
|
-
<path
|
|
13
|
-
fillRule="evenodd"
|
|
14
|
-
clipRule="evenodd"
|
|
15
|
-
d="M43.5268 26.25H46.4732C47.6924 26.25 48.6758 26.25 49.4722 26.315C50.2922 26.382 51.0124 26.5236 51.6787 26.8631C52.7371 27.4024 53.5976 28.2629 54.1369 29.3213C54.4764 29.9876 54.618 30.7078 54.685 31.5278C54.75 32.3242 54.75 33.3076 54.75 34.5268V37.4732C54.75 38.6924 54.75 39.6758 54.685 40.4722C54.618 41.2922 54.4764 42.0124 54.1369 42.6787C53.5976 43.7371 52.7371 44.5976 51.6787 45.1369C51.0124 45.4764 50.2922 45.618 49.4722 45.685C48.6758 45.75 47.6924 45.75 46.4732 45.75H43.5268C42.3076 45.75 41.3242 45.75 40.5278 45.685C39.7078 45.618 38.9876 45.4764 38.3213 45.1369C37.2629 44.5976 36.4024 43.7371 35.8631 42.6787C35.5236 42.0124 35.382 41.2922 35.315 40.4722C35.25 39.6758 35.25 38.6924 35.25 37.4732V34.5268C35.25 33.3076 35.25 32.3242 35.315 31.5278C35.382 30.7078 35.5236 29.9876 35.8631 29.3213C36.4024 28.2629 37.2629 27.4024 38.3213 26.8631C38.9876 26.5236 39.7078 26.382 40.5278 26.315C41.3242 26.25 42.3076 26.25 43.5268 26.25ZM40.711 28.5576C40.0302 28.6132 39.6391 28.7169 39.3428 28.8679C38.7077 29.1914 38.1914 29.7077 37.8679 30.3428C37.7169 30.6391 37.6132 31.0302 37.5576 31.711C37.5009 32.405 37.5 33.2963 37.5 34.575V36.7177L38.5842 35.4167C39.5724 34.2309 41.3655 34.1496 42.4569 35.241L46.5 39.2841L48.2694 37.5146C49.3757 36.4083 51.198 36.5093 52.1754 37.7309L52.4995 38.1361C52.5 37.9131 52.5 37.6765 52.5 37.425V34.575C52.5 33.2963 52.4991 32.405 52.4424 31.711C52.3868 31.0302 52.2831 30.6391 52.1321 30.3428C51.8086 29.7077 51.2923 29.1914 50.6572 28.8679C50.3609 28.7169 49.9698 28.6132 49.289 28.5576C48.595 28.5009 47.7037 28.5 46.425 28.5H43.575C42.2963 28.5 41.405 28.5009 40.711 28.5576ZM37.5576 40.289C37.5543 40.2492 37.5513 40.2088 37.5484 40.1678C37.5711 40.1448 37.5931 40.1206 37.6142 40.0953L40.3127 36.8571C40.4539 36.6877 40.71 36.6761 40.8659 36.832L45.7045 41.6706C46.1438 42.1099 46.8561 42.1099 47.2955 41.6706L49.8604 39.1056C50.0185 38.9476 50.2788 38.962 50.4184 39.1365L52.2377 41.4107C52.2056 41.501 52.1704 41.5822 52.1321 41.6572C51.8086 42.2923 51.2923 42.8086 50.6572 43.1321C50.3609 43.2831 49.9698 43.3868 49.289 43.4424C48.595 43.4991 47.7037 43.5 46.425 43.5H43.575C42.2963 43.5 41.405 43.4991 40.711 43.4424C40.0302 43.3868 39.6391 43.2831 39.3428 43.1321C38.7077 42.8086 38.1914 42.2923 37.8679 41.6572C37.7169 41.3609 37.6132 40.9698 37.5576 40.289Z"
|
|
16
|
-
fill="#616161"
|
|
17
|
-
/>
|
|
18
|
-
</svg>
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { GViewBySelector } from '@/shared';
|
|
2
|
-
import { useMemo } from 'react';
|
|
3
|
-
import IMAGE_FIRST_SESSION from '@/assets/img/first-session.png';
|
|
4
|
-
import IMAGE_ALL_SESSION from '@/assets/img/all-sessions.png';
|
|
5
|
-
import { EAnalyticMode } from '@/types';
|
|
6
|
-
|
|
7
|
-
export interface AnalyticModeSelectorProps {
|
|
8
|
-
activatorText?: string;
|
|
9
|
-
value?: EAnalyticMode;
|
|
10
|
-
onChange: (value: EAnalyticMode) => void;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export const VIEW_BY_OPTIONS = [
|
|
14
|
-
{
|
|
15
|
-
id: EAnalyticMode.ALL_SESSION,
|
|
16
|
-
content: 'All sessions',
|
|
17
|
-
helpText:
|
|
18
|
-
'Count metrics for all sessions where this page shows up anywhere in the journey: before, during, or after other pages.',
|
|
19
|
-
icon: IMAGE_ALL_SESSION,
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
id: EAnalyticMode.FIRST_SESSION,
|
|
23
|
-
content: 'Entry session only',
|
|
24
|
-
helpText:
|
|
25
|
-
'Count metrics for sessions only where this page was the very first page visited, then track how they moved through the funnel.',
|
|
26
|
-
icon: IMAGE_FIRST_SESSION,
|
|
27
|
-
},
|
|
28
|
-
];
|
|
29
|
-
|
|
30
|
-
export const AnalyticModeSelector = ({ activatorText = 'View by', value, onChange }: AnalyticModeSelectorProps) => {
|
|
31
|
-
const options = useMemo(() => {
|
|
32
|
-
return VIEW_BY_OPTIONS.map((option) => ({
|
|
33
|
-
...option,
|
|
34
|
-
}));
|
|
35
|
-
}, []);
|
|
36
|
-
|
|
37
|
-
const onSelectMode = (value: string) => {
|
|
38
|
-
onChange(value as EAnalyticMode);
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
return (
|
|
42
|
-
<GViewBySelector
|
|
43
|
-
activatorText={activatorText}
|
|
44
|
-
options={options}
|
|
45
|
-
selected={value}
|
|
46
|
-
onSelect={onSelectMode}
|
|
47
|
-
maxWidth="650px"
|
|
48
|
-
/>
|
|
49
|
-
);
|
|
50
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { CardPathAnalysisProps } from './components';
|
|
2
|
-
import type { IPathAnalysisConfig } from './contexts/PathAnalysisConfigProvider';
|
|
3
|
-
|
|
4
|
-
import { ANALYTICS_METRIC_TOOLTIP } from '@/constants';
|
|
5
|
-
import { GTooltipCard } from '@/shared';
|
|
6
|
-
import { EAnalyticMode, EMetricKey } from '@/types';
|
|
7
|
-
import { InlineStack, Text } from '@shopify/polaris';
|
|
8
|
-
import { useTranslation } from 'react-i18next';
|
|
9
|
-
import { CardPathAnalysis } from './components';
|
|
10
|
-
import { PathAnalysisConfigProvider } from './contexts/PathAnalysisConfigProvider';
|
|
11
|
-
|
|
12
|
-
interface IProps extends CardPathAnalysisProps {
|
|
13
|
-
analyticMode: EAnalyticMode;
|
|
14
|
-
config: IPathAnalysisConfig;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export const CardJourneyAnalysis = ({ analyticMode, config, ...props }: IProps) => {
|
|
18
|
-
const { t } = useTranslation();
|
|
19
|
-
|
|
20
|
-
return (
|
|
21
|
-
<PathAnalysisConfigProvider {...config}>
|
|
22
|
-
<CardPathAnalysis analyticMode={analyticMode || EAnalyticMode.ALL_SESSION} {...props}>
|
|
23
|
-
<InlineStack gap="200">
|
|
24
|
-
<GTooltipCard tooltip={ANALYTICS_METRIC_TOOLTIP[EMetricKey.PAGE_PATH_ANALYSIS]}>
|
|
25
|
-
<Text as="h3" variant="headingMd">
|
|
26
|
-
{t('Journey analysis')}
|
|
27
|
-
</Text>
|
|
28
|
-
</GTooltipCard>
|
|
29
|
-
</InlineStack>
|
|
30
|
-
</CardPathAnalysis>
|
|
31
|
-
</PathAnalysisConfigProvider>
|
|
32
|
-
);
|
|
33
|
-
};
|
|
Binary file
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
.GPathSelectionItem {
|
|
2
|
-
padding: 8px 12px 12px 12px;
|
|
3
|
-
transition: background-color 0.2s ease;
|
|
4
|
-
cursor: pointer;
|
|
5
|
-
|
|
6
|
-
&--selected {
|
|
7
|
-
background-color: #f7f7f7;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.GPathSelectionItem__view-icon {
|
|
11
|
-
display: none;
|
|
12
|
-
background-color: #ebebeb;
|
|
13
|
-
padding: 4px;
|
|
14
|
-
border-radius: 8px;
|
|
15
|
-
margin-left: 8px;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
&:hover {
|
|
19
|
-
background-color: #f7f7f7;
|
|
20
|
-
.GPathSelectionItem__percentage {
|
|
21
|
-
display: none;
|
|
22
|
-
}
|
|
23
|
-
.GPathSelectionItem__view-icon {
|
|
24
|
-
display: block;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.GAnalytic-Badge-Logo {
|
|
30
|
-
position: relative;
|
|
31
|
-
&::before {
|
|
32
|
-
content: ' ';
|
|
33
|
-
position: absolute;
|
|
34
|
-
top: 50%;
|
|
35
|
-
right: 8px;
|
|
36
|
-
left: auto;
|
|
37
|
-
transform: translateY(-50%);
|
|
38
|
-
width: 18px;
|
|
39
|
-
height: 84px;
|
|
40
|
-
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAACoCAYAAACIckw7AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAirSURBVHgB7VxrV1NHFB1NGiAYBI0mgiiIjdJlV39S/1p/T9fqB9tabRSVZ4nyiLyhsOjsmwycTO7cOfMIUtfda7UoXJKdmXP2ec14Q0icn5//Ir/8LK4BboprhpyQDTkhG3JCNuSEbMgJ2ZATsiEnZENOyIackA1WQscnJyImdnb3xNLyqvAm9PKP12L1n5YIxenZmVhaWRNvmgvi4PDQ+FxRMLC6ti42NrbE82dzYqhUEq7Aqnz4uMxabRYhAC+G1arevSOmJmssYvidpeU1sd3+IriwEioNlcTJ8eUn29jcErvyE4MUyJmw/mlDrMmVxVZRjJRHxOSDuvH3buB/tkIRW5ZmR2mrhVXB9mCbKArFgpiq10S9dk9kgUVIvdHbhY/i4KDXIAuFQvImtftV0ZKrAvI6xiqjYnbmEWub2YQUsGUrcrXoNpqA7X7yeFoSuiW4YBu1ArapIt8g8bzNbeNzWLGpybooyhV0gZdSY+kfTU8ZP/n4+G3xWP7clYw3Ibjx71ICdMNVaMufQyKwva5w2rIsDxq7NSqJ7vQ8+z55dp+tW06E4Pat1uc+XaEehJDQlJ7oo1sKVi/rBMO1vviDVYEHTUh76SNv0C2QtoUfK6Fff3vZ9z2OB2HLFmVUb5NtVHg0PSnq99MF0smooSvPG3MsD8IqNOZmxZOZ6eT3KNoZsY1tQ1MPaqImFdnVlbm6xSYEo4XmlEdGhC+wWk+k4SPEwOitgA2dXyG2ttvGn32VnDrNMxXyqsMG52ivA8KJkHGmKXgWyiPDxkTNm5AprnEAz41KCGRe/dXsi2sx4EXozd8LfWQQ24oFnknezBBXZ0IIsrS+8klTs+BMaGdnr4fMfMOveDQhyO3hLTHJAM6EisXL/ffJmW1wJkRlfzsl1wmFM6GkMJQJGgAxRDb5VQkByBZV0rX+6XM3mXcXyDQ4V64KcP0/pTjqIWNoyG7kFVmhID9Kg3foQPaXFr+OGSX2UOk748+8tmzd0FSIAa8VQn1GgbAxcXuMrUlZ2+pMCBUDDR0oiVCFxILzlh0d98axmGSECAwdqOdjw5lQuXxZDg0iH3ImhDSj0I1hu7KzEbux7qnUteQrdAh9x5ikvNwejYKz07Okw4EmKDJIlMsT42MXq5f5pvIZuvXBhFoyfh0cHl38HSt0LPtA3I4ZkvznjaciCqFOmyVuhKf4/xeK2H/0iILeNGbVAaONVWGk4dur7RVojX8iDb96dyLpnsEJXCqTYEJooiOv1sWx0o1zGPwhmUOjM6svpBC0ZRhZcpRaTZI4o1JvQnjxdS1RK1nyaWSZKAqiE4Ii0xQWU0JIAWp8HRUSjDukWplZgl9O3dq4+LOq701SgO/PE92C0espcBAh2AMdM+DNbCU1Ain63AooEqIROiQjTrwR16UrZAWxSqZyyZnQPiFUyqivdIxq6YapJxnk9iHdj9NYhGhNhRSWi31tmm1K0ILaMTBwbpOBDl5AxrS6Xu0Y6uKcMx3wKppNqnZOGrxi2aR0YbUyIIOcWiX+FHgGK0PJQLcqGemLdzvGNMa04cUPjcxRl3e0R9MqIcYkpWa0trlbUPoBUlj+pZVVWQ4dGZ9DboRnOSIanA/BwF/MP0vqs929vaQZAdGD8UMMccrBRa+iZYxwZZO2uCCIENRWfXp4G3pHJbkt2Bpfcs6EQKLV1RXavESwpAUkSMG+XI5ZOBNC2vH23WXKWsnoD9HyGgZN048ssJUaZCCAPp0OaBbG45x+EouQUmP6gsmJGIPiQo3RCaGAfb1jzOxZhHQyyKFfzDeMp12GZZ70/dys+OnH+Z7EH6EkOMmHDdBtAhnujAzP4FlKKjjJ189rNOZmnIQuOWZBqpGgJB+/TPMdhACfgR1sjdrb7t6+HyE9y+OckDKBSgQ+pFcKe6K5eEho0McJ6FE6E9JLlZCkvqRttUnPMpVa76jS2KVjtFtOJy/K7MQ6ExrWlhkphkkMbZ01/QytqTGRuWUjms3sBowx218uB8beVQdcnH5qVA8+8w14FZUPzPtNsAojdVfoEiceUahTNBQqH/cihGM1ejxqMucbKijTZ23ias2HYKyQftw2UEDkRhcEyReSMP0NVAN0U8ZBusX4YFmrwyIEwI5mZ6Z7ll4dvk1eRJIudI9gQPDS7Ix7cIWdMd6TYQNvvCgbnfppcxDIMnZ4K4Jy9DIIjQa4LPfUJlatfq9q3SZvQoA6tYnTn7AlBOBD0uKDzSFMgLzPCMK7DML2IfpX74qoyA9W2nA9CeFUeOxxtw/AITHq5sJ76T1D7IP8saHKc8hJkbKD8qJMuSpiigi9DdHn9pTYYznjGmfMuHxguu5l1CEQQ1TvXKuZjHZe0XYbzyqMUGP853LzzkRkTfYjbX1ttlJvdFsrrsTQNcEIlNtgdw4d6mpNtXons+eDLYEdul5Y8j5PrW526h6Z5jkDJ0SJKY/E1Pn45N9Uz3FBlNBRqYxeHNcpl4dFCJIVGh+7Ldo77gdt9cuQnXMhT53uMaYSmpl5KJrvPvRVl1lEcFdVJWBK5JBNIvfu5El3nInBSXqGL7YX0I+7m0ROlwa08UDa9Lr0A6ZOg/QX0C/NckWOEgNpeCUd1qSd5zeOp/ACcF3kyOoal6vIKSDJVwWikgxMhdLudrDmZafdg9w+tzIVQIaTRWTqUKjIUXDTm+KgiWQRg0fqpVIfoc5Bk9bAU9qkESH7BXp6c0GI6zmxoac3CaFXr5t9LeCrhkpvkli2f3AgQlEoxrl0EjziVA0FaBU6bNxGxEAI6TeC8RWNCHzvw8el5OL2lRCy/ZMHyZ1oz6jvREiP8jb4RH1mS8+NiImYLepbCSEaP3wQr4rFwXA0svSobyVEPSf2HbJOkK0nVUuaRxavikgaMeWRlNgFIZcDI4MgBrN4v7jsf35oUMhbejbkhGzICdmQE7IhJ2RDTsiGnJANOSEbckI2XDtC/wHGB439CmwAAQAAAABJRU5ErkJggg==');
|
|
41
|
-
background-size: contain;
|
|
42
|
-
background-repeat: no-repeat;
|
|
43
|
-
background-position: center center;
|
|
44
|
-
z-index: 1;
|
|
45
|
-
}
|
|
46
|
-
&.GAnalytic-Badge-Logo--in-group {
|
|
47
|
-
&::before {
|
|
48
|
-
content: ' ';
|
|
49
|
-
position: absolute;
|
|
50
|
-
top: 48px;
|
|
51
|
-
transform: translateY(0);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.GPath-Badge-Logo {
|
|
57
|
-
&::before {
|
|
58
|
-
right: -11px;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import type { BoxProps } from '@shopify/polaris';
|
|
2
|
-
|
|
3
|
-
import IMAGE_ANALYTIC_EMPTY from '@/assets/img/analytic-empty.png';
|
|
4
|
-
import { BlockStack, Box, Text } from '@shopify/polaris';
|
|
5
|
-
import { useTranslation } from 'react-i18next';
|
|
6
|
-
import { GBlockCenter, GThumbnail } from '@/shared';
|
|
7
|
-
|
|
8
|
-
export interface CardAnalyticEmptyProps {
|
|
9
|
-
boxProps?: BoxProps;
|
|
10
|
-
minHeight?: string;
|
|
11
|
-
description?: string;
|
|
12
|
-
title?: string;
|
|
13
|
-
}
|
|
14
|
-
export const CardAnalyticEmpty: React.FC<CardAnalyticEmptyProps> = ({ boxProps, minHeight, description, title }) => {
|
|
15
|
-
const { t } = useTranslation();
|
|
16
|
-
const descriptionText = description || t('Data needs time to gather');
|
|
17
|
-
|
|
18
|
-
return (
|
|
19
|
-
<Box minWidth="100%" {...boxProps}>
|
|
20
|
-
<GBlockCenter minHeight={minHeight}>
|
|
21
|
-
<Box padding={'400'}>
|
|
22
|
-
<BlockStack gap="400" align="center" inlineAlign="center">
|
|
23
|
-
<div className="h-[80px] w-[80px]">
|
|
24
|
-
<GThumbnail
|
|
25
|
-
source={IMAGE_ANALYTIC_EMPTY}
|
|
26
|
-
width="80px"
|
|
27
|
-
height="80px"
|
|
28
|
-
alt={t('No data yet')}
|
|
29
|
-
classRemoved
|
|
30
|
-
/>
|
|
31
|
-
</div>
|
|
32
|
-
<BlockStack gap="200" align="center" inlineAlign="center">
|
|
33
|
-
<Text as="h4" variant="headingSm" fontWeight="semibold">
|
|
34
|
-
{title || t('No data yet')}
|
|
35
|
-
</Text>
|
|
36
|
-
<Text as="h4" variant="bodyMd" tone="subdued">
|
|
37
|
-
{descriptionText}
|
|
38
|
-
</Text>
|
|
39
|
-
</BlockStack>
|
|
40
|
-
</BlockStack>
|
|
41
|
-
</Box>
|
|
42
|
-
</GBlockCenter>
|
|
43
|
-
</Box>
|
|
44
|
-
);
|
|
45
|
-
};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import type { IFunnelChartColors } from '@/shared/charts';
|
|
2
|
-
import type { EAnalyticMode } from '@/types';
|
|
3
|
-
import type { IAnalyticsData, ICampaignPathsData } from '../../contexts';
|
|
4
|
-
|
|
5
|
-
import { Box } from '@shopify/polaris';
|
|
6
|
-
import { usePathAnalysisConfig } from '../../contexts/PathAnalysisConfigProvider';
|
|
7
|
-
import { CardPathAnalysisContent } from './CardPathAnalysisContent';
|
|
8
|
-
import { CardPathAnalysisWrapper } from './CardPathAnalysisWrapper';
|
|
9
|
-
|
|
10
|
-
export interface CardPathAnalysisProps {
|
|
11
|
-
analyticMode: EAnalyticMode;
|
|
12
|
-
funnelColors?: IFunnelChartColors;
|
|
13
|
-
children?: React.ReactNode;
|
|
14
|
-
campaignID?: string;
|
|
15
|
-
campaignGroupID?: string;
|
|
16
|
-
campaignVariantID?: string;
|
|
17
|
-
campaignVersionID?: string;
|
|
18
|
-
campaignPathsData?: ICampaignPathsData;
|
|
19
|
-
analyticsData?: IAnalyticsData;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export const CardPathAnalysis: React.FC<CardPathAnalysisProps> = (props) => {
|
|
23
|
-
const {
|
|
24
|
-
campaignID,
|
|
25
|
-
campaignGroupID,
|
|
26
|
-
campaignVariantID,
|
|
27
|
-
analyticMode,
|
|
28
|
-
children,
|
|
29
|
-
campaignPathsData,
|
|
30
|
-
campaignVersionID,
|
|
31
|
-
analyticsData,
|
|
32
|
-
} = props;
|
|
33
|
-
|
|
34
|
-
const { pricing } = usePathAnalysisConfig();
|
|
35
|
-
if (pricing.isLoading) return null;
|
|
36
|
-
|
|
37
|
-
return (
|
|
38
|
-
<CardPathAnalysisWrapper
|
|
39
|
-
campaignID={campaignID}
|
|
40
|
-
campaignGroupID={campaignGroupID}
|
|
41
|
-
campaignVariantID={campaignVariantID}
|
|
42
|
-
analyticMode={analyticMode}
|
|
43
|
-
campaignPathsData={campaignPathsData}
|
|
44
|
-
campaignVersionID={campaignVersionID}
|
|
45
|
-
analyticsData={analyticsData}
|
|
46
|
-
>
|
|
47
|
-
{/* Header */}
|
|
48
|
-
<Box>{children}</Box>
|
|
49
|
-
|
|
50
|
-
<CardPathAnalysisContent {...props} />
|
|
51
|
-
</CardPathAnalysisWrapper>
|
|
52
|
-
);
|
|
53
|
-
};
|
package/src/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisContent.tsx
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import type { IFunnelChartColors } from '@/shared/charts';
|
|
2
|
-
|
|
3
|
-
import { GFeatureLocked, IGFeatureLocked } from '@/shared';
|
|
4
|
-
import { cls } from '@/utils';
|
|
5
|
-
import { t } from 'i18next';
|
|
6
|
-
import { usePathAnalysisContext } from '../../contexts';
|
|
7
|
-
import { usePathAnalysisConfig } from '../../contexts/PathAnalysisConfigProvider';
|
|
8
|
-
import { PathAnalysisChart } from '../PathAnalysisChart';
|
|
9
|
-
import { CardPathAnalysisEmpty } from './CardPathAnalysisEmpty';
|
|
10
|
-
import { CardPathAnalysisSkeleton } from './CardPathAnalysisSkeleton';
|
|
11
|
-
|
|
12
|
-
export interface PathAnalysisContentProps {
|
|
13
|
-
funnelColors?: IFunnelChartColors;
|
|
14
|
-
showBadge?: boolean;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export const CardPathAnalysisContent: React.FC<PathAnalysisContentProps> = ({ showBadge = true, funnelColors }) => {
|
|
18
|
-
const { pathAnalytics, isLoadingMetric } = usePathAnalysisContext();
|
|
19
|
-
const { pricing } = usePathAnalysisConfig();
|
|
20
|
-
|
|
21
|
-
if (!pricing.isPathAnalysisEnabled) return <CardPathAnalysisLocked funnelColors={funnelColors} />;
|
|
22
|
-
if (isLoadingMetric || !pathAnalytics) return <CardPathAnalysisSkeleton />;
|
|
23
|
-
if (!pathAnalytics.length) return <CardPathAnalysisEmpty funnelColors={funnelColors} />;
|
|
24
|
-
|
|
25
|
-
return (
|
|
26
|
-
<div className={cls('relative pr-1', { 'GAnalytic-Badge-Logo GPath-Badge-Logo': showBadge })}>
|
|
27
|
-
<PathAnalysisChart funnelColors={funnelColors} isEnabled={pricing.isPathAnalysisEnabled} />
|
|
28
|
-
</div>
|
|
29
|
-
);
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
const CardPathAnalysisLocked = ({ funnelColors }: { funnelColors?: IFunnelChartColors }) => {
|
|
33
|
-
const { pricing } = usePathAnalysisConfig();
|
|
34
|
-
|
|
35
|
-
return (
|
|
36
|
-
<div className={cls('relative pr-1')}>
|
|
37
|
-
<div className="absolute z-[1000] h-full w-full">
|
|
38
|
-
<GFeatureLocked
|
|
39
|
-
title={t('See your customer journey and where they leave')}
|
|
40
|
-
description={t('Upgrade to {{planName}} to focus on key steps in the journey', {
|
|
41
|
-
planName: 'Funnel Optimize',
|
|
42
|
-
})}
|
|
43
|
-
inlineAlign="end"
|
|
44
|
-
type={IGFeatureLocked.PathAnalysis}
|
|
45
|
-
boxProps={{
|
|
46
|
-
minHeight: '100%',
|
|
47
|
-
ariaHeight: 'height-full',
|
|
48
|
-
}}
|
|
49
|
-
boxContentProps={{
|
|
50
|
-
padding: {
|
|
51
|
-
md: '400',
|
|
52
|
-
xs: '200',
|
|
53
|
-
},
|
|
54
|
-
width: '635px',
|
|
55
|
-
maxWidth: '100%',
|
|
56
|
-
}}
|
|
57
|
-
buttonProps={{
|
|
58
|
-
onClick: pricing.onOpenModalPricing,
|
|
59
|
-
}}
|
|
60
|
-
/>
|
|
61
|
-
</div>
|
|
62
|
-
<PathAnalysisChart funnelColors={funnelColors} isEnabled={false} />
|
|
63
|
-
</div>
|
|
64
|
-
);
|
|
65
|
-
};
|
package/src/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisEmpty.tsx
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { IFunnelChartColors } from '@/shared/charts';
|
|
2
|
-
|
|
3
|
-
import { useTranslation } from 'react-i18next';
|
|
4
|
-
import { CardAnalyticEmpty } from './CardAnalyticEmpty';
|
|
5
|
-
import { cls } from '@/utils';
|
|
6
|
-
import { PathAnalysisChart } from '../PathAnalysisChart';
|
|
7
|
-
|
|
8
|
-
export interface CardPathAnalysisEmptyProps {
|
|
9
|
-
funnelColors?: IFunnelChartColors;
|
|
10
|
-
}
|
|
11
|
-
export const CardPathAnalysisEmpty: React.FC<CardPathAnalysisEmptyProps> = ({ funnelColors }) => {
|
|
12
|
-
const { t } = useTranslation();
|
|
13
|
-
|
|
14
|
-
return (
|
|
15
|
-
<div className={cls('relative h-full')}>
|
|
16
|
-
<div
|
|
17
|
-
className="absolute z-[1000] flex h-full w-full items-center justify-center"
|
|
18
|
-
style={{
|
|
19
|
-
backgroundColor: 'rgba(255, 255, 255, 0.8)',
|
|
20
|
-
backdropFilter: 'blur(3px)',
|
|
21
|
-
backgroundImage: 'radial-gradient(50% 50% at 50% 50%, #FFFFFF 2.77%, rgba(255, 255, 255, 0) 100%)',
|
|
22
|
-
}}
|
|
23
|
-
>
|
|
24
|
-
<CardAnalyticEmpty description={t('GemX is collecting data and will display it as soon as possible')} />
|
|
25
|
-
</div>
|
|
26
|
-
<PathAnalysisChart funnelColors={funnelColors} isEnabled={false} />
|
|
27
|
-
</div>
|
|
28
|
-
);
|
|
29
|
-
};
|
package/src/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisSkeleton.tsx
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { MetricInfoSkeleton } from '@/components/common/chart';
|
|
2
|
-
import { GSkeletonDisplayText } from '@/shared';
|
|
3
|
-
import { BlockStack } from '@shopify/polaris';
|
|
4
|
-
|
|
5
|
-
export const CardPathAnalysisSkeleton: React.FC = () => {
|
|
6
|
-
return (
|
|
7
|
-
<BlockStack gap="200">
|
|
8
|
-
<MetricInfoSkeleton />
|
|
9
|
-
<GSkeletonDisplayText height="350px" />
|
|
10
|
-
</BlockStack>
|
|
11
|
-
);
|
|
12
|
-
};
|
package/src/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisWrapper.tsx
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { EAnalyticMode } from '@/types';
|
|
2
|
-
import type { IAnalyticsData, ICampaignPathsData } from '../../contexts';
|
|
3
|
-
|
|
4
|
-
import { BlockStack, Card } from '@shopify/polaris';
|
|
5
|
-
import { PathAnalysisProvider } from '../../contexts';
|
|
6
|
-
|
|
7
|
-
export interface CardPathAnalysisWrapperProps {
|
|
8
|
-
children: React.ReactNode;
|
|
9
|
-
campaignID?: string;
|
|
10
|
-
campaignGroupID?: string;
|
|
11
|
-
campaignVariantID?: string;
|
|
12
|
-
campaignVersionID?: string;
|
|
13
|
-
analyticMode: EAnalyticMode;
|
|
14
|
-
campaignPathsData?: ICampaignPathsData;
|
|
15
|
-
analyticsData?: IAnalyticsData;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export const CardPathAnalysisWrapper: React.FC<CardPathAnalysisWrapperProps> = ({
|
|
19
|
-
children,
|
|
20
|
-
campaignID,
|
|
21
|
-
campaignGroupID,
|
|
22
|
-
campaignVariantID,
|
|
23
|
-
campaignVersionID,
|
|
24
|
-
analyticMode,
|
|
25
|
-
campaignPathsData,
|
|
26
|
-
analyticsData,
|
|
27
|
-
}) => {
|
|
28
|
-
return (
|
|
29
|
-
<PathAnalysisProvider
|
|
30
|
-
campaignID={campaignID}
|
|
31
|
-
campaignGroupID={campaignGroupID}
|
|
32
|
-
campaignVariantID={campaignVariantID}
|
|
33
|
-
campaignVersionID={campaignVersionID}
|
|
34
|
-
mode={analyticMode}
|
|
35
|
-
campaignPathsData={campaignPathsData}
|
|
36
|
-
analyticsData={analyticsData}
|
|
37
|
-
>
|
|
38
|
-
<Card>
|
|
39
|
-
<BlockStack gap="400">{children}</BlockStack>
|
|
40
|
-
</Card>
|
|
41
|
-
</PathAnalysisProvider>
|
|
42
|
-
);
|
|
43
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './CardPathAnalysis';
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import type { IFunnelChartColors } from '@/shared/charts';
|
|
2
|
-
|
|
3
|
-
import { GChartProvider, GFunnelChart } from '@/shared/charts';
|
|
4
|
-
import { BlockStack } from '@shopify/polaris';
|
|
5
|
-
import { useMemo } from 'react';
|
|
6
|
-
import { FINAL_FUNNEL_FIXED_LEVEL } from '../configs';
|
|
7
|
-
import { MOCK_DATA_PATH_ANALYSIS } from '../constants';
|
|
8
|
-
import { usePathAnalysisChart } from '../hooks/usePathAnalysisChart';
|
|
9
|
-
|
|
10
|
-
interface PathAnalysisChartProps {
|
|
11
|
-
funnelColors?: IFunnelChartColors;
|
|
12
|
-
isEnabled?: boolean;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export const PathAnalysisChart: React.FC<PathAnalysisChartProps> = ({ funnelColors, isEnabled }) => {
|
|
16
|
-
const {
|
|
17
|
-
lengthDisplayedLevels,
|
|
18
|
-
listFunnelSelection,
|
|
19
|
-
isDisabledAddICon,
|
|
20
|
-
hideAddIcon,
|
|
21
|
-
funnelData,
|
|
22
|
-
getListFunnelByID,
|
|
23
|
-
onAddNextFunnel,
|
|
24
|
-
onChangeFunnel,
|
|
25
|
-
} = usePathAnalysisChart();
|
|
26
|
-
|
|
27
|
-
const dataSeries = useMemo(() => {
|
|
28
|
-
if (!isEnabled) return MOCK_DATA_PATH_ANALYSIS;
|
|
29
|
-
|
|
30
|
-
return funnelData;
|
|
31
|
-
}, [funnelData, isEnabled]);
|
|
32
|
-
|
|
33
|
-
return (
|
|
34
|
-
<BlockStack gap="400">
|
|
35
|
-
<GChartProvider minHeight={400} seriesColors={{ single: '#2C7DFF' }}>
|
|
36
|
-
<BlockStack gap="200">
|
|
37
|
-
<GFunnelChart
|
|
38
|
-
dataSeries={dataSeries}
|
|
39
|
-
funnelColors={funnelColors}
|
|
40
|
-
actionProps={{
|
|
41
|
-
fixedLevel: FINAL_FUNNEL_FIXED_LEVEL,
|
|
42
|
-
lengthDisplayedLevels,
|
|
43
|
-
listFunnelSelection,
|
|
44
|
-
isDisabledAddICon,
|
|
45
|
-
hideAddIcon,
|
|
46
|
-
getListFunnelByID,
|
|
47
|
-
onAddNextFunnel,
|
|
48
|
-
onChangeFunnel,
|
|
49
|
-
}}
|
|
50
|
-
/>
|
|
51
|
-
</BlockStack>
|
|
52
|
-
</GChartProvider>
|
|
53
|
-
</BlockStack>
|
|
54
|
-
);
|
|
55
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './CardPathAnalysis';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './path-analysis';
|