@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.
Files changed (704) hide show
  1. package/package.json +38 -15
  2. package/src/api/graphql/fragments/pathAnalytic.generated.ts +0 -26
  3. package/src/assets/img/all-sessions.png +0 -0
  4. package/src/assets/img/analytic-empty.png +0 -0
  5. package/src/assets/img/first-session.png +0 -0
  6. package/src/assets/img/page-only.png +0 -0
  7. package/src/assets/svg/gemx-skeleton.svg +0 -12
  8. package/src/assets/svg/product.svg +0 -18
  9. package/src/components/AnalyticMode/AnalyticModeSelector.tsx +0 -50
  10. package/src/components/AnalyticMode/index.ts +0 -2
  11. package/src/components/CardPathAnalysis/CardJourneyAnalysis.tsx +0 -33
  12. package/src/components/CardPathAnalysis/assets/img/analytic-gemx.png +0 -0
  13. package/src/components/CardPathAnalysis/assets/styles/PathAnalysis.scss +0 -60
  14. package/src/components/CardPathAnalysis/components/CardPathAnalysis/CardAnalyticEmpty.tsx +0 -45
  15. package/src/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysis.tsx +0 -53
  16. package/src/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisContent.tsx +0 -65
  17. package/src/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisEmpty.tsx +0 -29
  18. package/src/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisSkeleton.tsx +0 -12
  19. package/src/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisWrapper.tsx +0 -43
  20. package/src/components/CardPathAnalysis/components/CardPathAnalysis/index.ts +0 -1
  21. package/src/components/CardPathAnalysis/components/PathAnalysisChart.tsx +0 -55
  22. package/src/components/CardPathAnalysis/components/index.ts +0 -1
  23. package/src/components/CardPathAnalysis/configs/index.ts +0 -2
  24. package/src/components/CardPathAnalysis/constants/index.ts +0 -1
  25. package/src/components/CardPathAnalysis/constants/path-analysis.ts +0 -162
  26. package/src/components/CardPathAnalysis/contexts/PathAnalysisConfigProvider.tsx +0 -66
  27. package/src/components/CardPathAnalysis/contexts/PathAnalysisProvider.tsx +0 -130
  28. package/src/components/CardPathAnalysis/contexts/index.ts +0 -2
  29. package/src/components/CardPathAnalysis/helpers/index.ts +0 -2
  30. package/src/components/CardPathAnalysis/helpers/metricHelpers.ts +0 -13
  31. package/src/components/CardPathAnalysis/helpers/pathAnalysis.ts +0 -96
  32. package/src/components/CardPathAnalysis/helpers/pathAnalysisChart.ts +0 -128
  33. package/src/components/CardPathAnalysis/helpers/treeUtils.ts +0 -38
  34. package/src/components/CardPathAnalysis/hooks/usePathAnalysisChart.tsx +0 -292
  35. package/src/components/CardPathAnalysis/hooks/usePathAnalysisFunnel.ts +0 -206
  36. package/src/components/CardPathAnalysis/hooks/usePathAnalyticsMerger.ts +0 -43
  37. package/src/components/CardPathAnalysis/index.ts +0 -5
  38. package/src/components/CardPathAnalysis/stores/funnel-chart.ts +0 -30
  39. package/src/components/CardPathAnalysis/stores/index.ts +0 -3
  40. package/src/components/CardPathAnalysis/stores/path-analysis-campaign.ts +0 -16
  41. package/src/components/CardPathAnalysis/stores/path-analysis.ts +0 -11
  42. package/src/components/CardPathAnalysis/types/index.ts +0 -1
  43. package/src/components/CardPathAnalysis/types/path-analysis.ts +0 -10
  44. package/src/components/CurrencySelector/CurrencySelector.tsx +0 -127
  45. package/src/components/CurrencySelector/index.ts +0 -2
  46. package/src/components/GModalOrderJourney/GModalOrderJourney.tsx +0 -131
  47. package/src/components/GModalOrderJourney/components/OrderJourneySkeleton.tsx +0 -93
  48. package/src/components/GModalOrderJourney/components/index.ts +0 -1
  49. package/src/components/GModalOrderJourney/context/OrderJourneyContext.tsx +0 -17
  50. package/src/components/GModalOrderJourney/context/index.ts +0 -1
  51. package/src/components/GModalOrderJourney/hooks/index.ts +0 -1
  52. package/src/components/GModalOrderJourney/hooks/useGModalOrderJourney.ts +0 -25
  53. package/src/components/GModalOrderJourney/index.ts +0 -5
  54. package/src/components/GModalOrderJourney/types/index.ts +0 -4
  55. package/src/components/GModalOrderJourney/utils/index.ts +0 -75
  56. package/src/components/GSelectableMetricChartCard/GSelectableMetricChartCard.tsx +0 -83
  57. package/src/components/GSelectableMetricChartCard/MetricChartTab.tsx +0 -56
  58. package/src/components/GSelectableMetricChartCard/index.ts +0 -2
  59. package/src/components/GTimePicker/GTimePicker.tsx +0 -31
  60. package/src/components/GTimePicker/components/BaseTimePicker.tsx +0 -249
  61. package/src/components/GTimePicker/components/CompareTimePicker.tsx +0 -41
  62. package/src/components/GTimePicker/components/DateTimeFilterAddition.tsx +0 -84
  63. package/src/components/GTimePicker/components/DateTimeFilterInputs.tsx +0 -124
  64. package/src/components/GTimePicker/components/DateTimeFilters.tsx +0 -86
  65. package/src/components/GTimePicker/components/MainTimePicker.tsx +0 -47
  66. package/src/components/GTimePicker/components/index.ts +0 -2
  67. package/src/components/GTimePicker/constants/compareDateTimePicker.ts +0 -68
  68. package/src/components/GTimePicker/constants/datePicker.ts +0 -14
  69. package/src/components/GTimePicker/constants/index.ts +0 -2
  70. package/src/components/GTimePicker/constants/mainDataTimePicker.ts +0 -88
  71. package/src/components/GTimePicker/contexts/DateTimePickerProvider.tsx +0 -125
  72. package/src/components/GTimePicker/contexts/index.ts +0 -1
  73. package/src/components/GTimePicker/helpers/date-range-info.ts +0 -84
  74. package/src/components/GTimePicker/helpers/index.ts +0 -4
  75. package/src/components/GTimePicker/helpers/parse-date.ts +0 -127
  76. package/src/components/GTimePicker/helpers/time-picker.ts +0 -123
  77. package/src/components/GTimePicker/helpers/version.ts +0 -36
  78. package/src/components/GTimePicker/hooks/index.ts +0 -3
  79. package/src/components/GTimePicker/hooks/useCompareDateTimePicker.tsx +0 -79
  80. package/src/components/GTimePicker/hooks/useDateTimeFilter.ts +0 -83
  81. package/src/components/GTimePicker/hooks/useDateTimePicker.tsx +0 -99
  82. package/src/components/GTimePicker/hooks/useVersionDateTimeFilters.ts +0 -30
  83. package/src/components/GTimePicker/index.ts +0 -7
  84. package/src/components/GTimePicker/types/index.ts +0 -43
  85. package/src/components/MetricDonutChartCard/MetricDonutChartCard.tsx +0 -121
  86. package/src/components/MetricDonutChartCard/index.ts +0 -2
  87. package/src/components/MetricDonutChartCard/utils/donut-chart.ts +0 -75
  88. package/src/components/MetricDonutChartCard/utils/index.ts +0 -1
  89. package/src/components/OrderAnalytic/OrderListingLatestTable.tsx +0 -111
  90. package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/OrderListingTableSkeleton.tsx +0 -40
  91. package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/SkeletonCellContent.tsx +0 -77
  92. package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/SkeletonHeader.tsx +0 -35
  93. package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/SkeletonRow.tsx +0 -35
  94. package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/SkeletonSummaryRow.tsx +0 -36
  95. package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/constants.ts +0 -11
  96. package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/index.ts +0 -1
  97. package/src/components/OrderAnalytic/components/OrderListing/OrderListingTable.tsx +0 -159
  98. package/src/components/OrderAnalytic/components/OrderListing/OrderListingTableEmpty.tsx +0 -29
  99. package/src/components/OrderAnalytic/components/OrderListing/index.ts +0 -2
  100. package/src/components/OrderAnalytic/components/index.ts +0 -1
  101. package/src/components/OrderAnalytic/constants/index.ts +0 -2
  102. package/src/components/OrderAnalytic/constants/order-columns.ts +0 -51
  103. package/src/components/OrderAnalytic/constants/order-listing.ts +0 -199
  104. package/src/components/OrderAnalytic/helpers/index.ts +0 -1
  105. package/src/components/OrderAnalytic/helpers/order-listing.ts +0 -48
  106. package/src/components/OrderAnalytic/hooks/index.ts +0 -1
  107. package/src/components/OrderAnalytic/hooks/useOrderListingData.ts +0 -55
  108. package/src/components/OrderAnalytic/index.ts +0 -5
  109. package/src/components/OrderAnalytic/stores/index.ts +0 -2
  110. package/src/components/OrderAnalytic/stores/order-columns-selector.ts +0 -24
  111. package/src/components/OrderAnalytic/stores/order-control.ts +0 -15
  112. package/src/components/OrderAnalytic/types/index.ts +0 -3
  113. package/src/components/OrderAnalytic/types/order.ts +0 -89
  114. package/src/components/OrderAnalytic/types/orderListing.ts +0 -4
  115. package/src/components/OrderAnalytic/types/report.ts +0 -14
  116. package/src/components/SingleMetricChartCard/SingleMetricChartCard.tsx +0 -56
  117. package/src/components/SingleMetricChartCard/index.tsx +0 -2
  118. package/src/components/common/chart/GChartSkeleton.tsx +0 -5
  119. package/src/components/common/chart/MetricChart.tsx +0 -62
  120. package/src/components/common/chart/MetricChartEmpty.tsx +0 -35
  121. package/src/components/common/chart/MetricChartTooltip.tsx +0 -74
  122. package/src/components/common/chart/MetricDonutChartSkeleton.tsx +0 -14
  123. package/src/components/common/chart/MetricInfoBlock.tsx +0 -66
  124. package/src/components/common/chart/MetricInfoSkeleton.tsx +0 -25
  125. package/src/components/common/chart/MetricValueSummary.tsx +0 -23
  126. package/src/components/common/chart/index.ts +0 -8
  127. package/src/components/common/icons/DownIcon8px.tsx +0 -14
  128. package/src/components/common/icons/UpIcon8px.tsx +0 -14
  129. package/src/components/common/icons/index.ts +0 -2
  130. package/src/components/common/percent/MetricPercentage.tsx +0 -42
  131. package/src/components/common/percent/index.ts +0 -1
  132. package/src/components/index.ts +0 -9
  133. package/src/constants/analytic-metric-tooltip.tsx +0 -164
  134. package/src/constants/breakdown-targets.ts +0 -25
  135. package/src/constants/campaign.ts +0 -4
  136. package/src/constants/chart.ts +0 -17
  137. package/src/constants/currency.ts +0 -3
  138. package/src/constants/index.ts +0 -6
  139. package/src/constants/thumbnail.ts +0 -3
  140. package/src/core/gemxql/api/index.ts +0 -2
  141. package/src/core/gemxql/api/useCustomGemXQlQuery.ts +0 -35
  142. package/src/core/gemxql/api/useGemxQlNamedQuery.ts +0 -34
  143. package/src/core/gemxql/builder/build-gemxql-query.ts +0 -81
  144. package/src/core/gemxql/builder/clauses/condition-query.ts +0 -74
  145. package/src/core/gemxql/builder/clauses/from-query.ts +0 -18
  146. package/src/core/gemxql/builder/clauses/group-query.ts +0 -43
  147. package/src/core/gemxql/builder/clauses/index.ts +0 -11
  148. package/src/core/gemxql/builder/clauses/limit-query.ts +0 -15
  149. package/src/core/gemxql/builder/clauses/mode-query.ts +0 -14
  150. package/src/core/gemxql/builder/clauses/offset-query.ts +0 -15
  151. package/src/core/gemxql/builder/clauses/order-by-query.ts +0 -37
  152. package/src/core/gemxql/builder/clauses/show-query.ts +0 -18
  153. package/src/core/gemxql/builder/clauses/time-query.ts +0 -67
  154. package/src/core/gemxql/builder/clauses/time-series-query.ts +0 -15
  155. package/src/core/gemxql/builder/clauses/timezone-query.ts +0 -17
  156. package/src/core/gemxql/builder/configs/date-formats.ts +0 -1
  157. package/src/core/gemxql/builder/configs/index.ts +0 -3
  158. package/src/core/gemxql/builder/configs/keywords.ts +0 -16
  159. package/src/core/gemxql/builder/configs/query-defaults.ts +0 -1
  160. package/src/core/gemxql/builder/filters/build-extra-conditions.ts +0 -69
  161. package/src/core/gemxql/builder/filters/build-filter-conditions.ts +0 -161
  162. package/src/core/gemxql/builder/filters/index.ts +0 -2
  163. package/src/core/gemxql/builder/helpers/date-query-helpers.ts +0 -41
  164. package/src/core/gemxql/builder/helpers/index.ts +0 -1
  165. package/src/core/gemxql/builder/helpers/is-valid-query-input.ts +0 -8
  166. package/src/core/gemxql/builder/index.ts +0 -6
  167. package/src/core/gemxql/builder/parse-gemxql-query.ts +0 -43
  168. package/src/core/gemxql/constants/analytic-data.ts +0 -2
  169. package/src/core/gemxql/constants/column-keys.ts +0 -4
  170. package/src/core/gemxql/constants/index.ts +0 -4
  171. package/src/core/gemxql/constants/operators.ts +0 -2
  172. package/src/core/gemxql/constants/row-reader-mode.ts +0 -9
  173. package/src/core/gemxql/graphql/fragments/gemxql.generated.ts +0 -80
  174. package/src/core/gemxql/graphql/fragments/gemxql.gql +0 -18
  175. package/src/core/gemxql/graphql/index.ts +0 -2
  176. package/src/core/gemxql/graphql/queries/gemxql.generated.ts +0 -26
  177. package/src/core/gemxql/graphql/queries/gemxql.gql +0 -5
  178. package/src/core/gemxql/helpers/columnKeys.ts +0 -8
  179. package/src/core/gemxql/helpers/extractQueryData.ts +0 -18
  180. package/src/core/gemxql/helpers/formatAnalyticData.ts +0 -92
  181. package/src/core/gemxql/helpers/formatAnalyticDate.ts +0 -29
  182. package/src/core/gemxql/helpers/getTimeDimension.ts +0 -11
  183. package/src/core/gemxql/helpers/hasMetricData.ts +0 -6
  184. package/src/core/gemxql/helpers/index.ts +0 -8
  185. package/src/core/gemxql/helpers/parseJsonFields.ts +0 -36
  186. package/src/core/gemxql/helpers/readNumeric.ts +0 -25
  187. package/src/core/gemxql/hooks/index.ts +0 -2
  188. package/src/core/gemxql/hooks/useAnalyticData.ts +0 -67
  189. package/src/core/gemxql/hooks/useGemXQlPagination.ts +0 -79
  190. package/src/core/gemxql/index.ts +0 -8
  191. package/src/core/gemxql/types/analytic-data.ts +0 -26
  192. package/src/core/gemxql/types/analytic-source.ts +0 -4
  193. package/src/core/gemxql/types/extra-condition.ts +0 -40
  194. package/src/core/gemxql/types/field-filters.ts +0 -18
  195. package/src/core/gemxql/types/field-operators.ts +0 -8
  196. package/src/core/gemxql/types/filter-types.ts +0 -33
  197. package/src/core/gemxql/types/group-with-clause.ts +0 -12
  198. package/src/core/gemxql/types/index.ts +0 -11
  199. package/src/core/gemxql/types/order-by.ts +0 -13
  200. package/src/core/gemxql/types/page-fields.ts +0 -25
  201. package/src/core/gemxql/types/row-reader-mode.ts +0 -6
  202. package/src/core/gemxql/types/time-dimension.ts +0 -8
  203. package/src/global.d.ts +0 -38
  204. package/src/hooks/index.ts +0 -7
  205. package/src/hooks/publish/index.ts +0 -2
  206. package/src/hooks/publish/useStickyDetectById.ts +0 -39
  207. package/src/hooks/publish/useStickyFilterBoxProps.ts +0 -26
  208. package/src/hooks/publish/useWindowSize.ts +0 -54
  209. package/src/hooks/useEnhancedEffect.ts +0 -3
  210. package/src/hooks/useFetchCurrencyRates.ts +0 -48
  211. package/src/hooks/useFormatLineChartData.ts +0 -28
  212. package/src/hooks/usePopoverResizeObserver.ts +0 -43
  213. package/src/hooks/usePreventBodyScroll.ts +0 -15
  214. package/src/hooks/useSearchParams.ts +0 -7
  215. package/src/hooks/useToggle.ts +0 -23
  216. package/src/index.ts +0 -10
  217. package/src/modules/analytics/constants/index.ts +0 -124
  218. package/src/modules/analytics/index.ts +0 -3
  219. package/src/modules/analytics/types/index.ts +0 -43
  220. package/src/modules/analytics/utils/formatMetric.ts +0 -42
  221. package/src/modules/analytics/utils/getPAMetricValue.ts +0 -11
  222. package/src/modules/analytics/utils/index.ts +0 -3
  223. package/src/modules/analytics/utils/metric.ts +0 -172
  224. package/src/providers/ConvertMoneyProvider.tsx +0 -68
  225. package/src/providers/MetricChartProvider.tsx +0 -50
  226. package/src/providers/TimezoneProvider.tsx +0 -31
  227. package/src/providers/index.ts +0 -5
  228. package/src/shared/charts/components/ComboChart.tsx +0 -108
  229. package/src/shared/charts/components/GBarChart.tsx +0 -96
  230. package/src/shared/charts/components/GComboChart.tsx +0 -15
  231. package/src/shared/charts/components/GDonutChart.tsx +0 -25
  232. package/src/shared/charts/components/GFunnelChart/GFunnelChart.tsx +0 -34
  233. package/src/shared/charts/components/GFunnelChart/components/FunnelChartAction.tsx +0 -67
  234. package/src/shared/charts/components/GFunnelChart/components/FunnelChartActionIcon.tsx +0 -60
  235. package/src/shared/charts/components/GFunnelChart/components/FunnelChartActionWrapper.tsx +0 -100
  236. package/src/shared/charts/components/GFunnelChart/components/FunnelSelection/FunnelSelectionContent.tsx +0 -92
  237. package/src/shared/charts/components/GFunnelChart/components/FunnelSelection/FunnelSelectionHeader.tsx +0 -54
  238. package/src/shared/charts/components/GFunnelChart/components/FunnelSelection/FunnelSelectionItem.tsx +0 -51
  239. package/src/shared/charts/components/GFunnelChart/components/FunnelSelection/FunnelSelectionPopover.tsx +0 -95
  240. package/src/shared/charts/components/GFunnelChart/components/FunnelSelection/index.ts +0 -1
  241. package/src/shared/charts/components/GFunnelChart/components/FunnelSelection/type.ts +0 -7
  242. package/src/shared/charts/components/GFunnelChart/components/types.ts +0 -24
  243. package/src/shared/charts/components/GFunnelChart/index.ts +0 -4
  244. package/src/shared/charts/components/GFunnelChart/types.ts +0 -11
  245. package/src/shared/charts/components/GPolarisViz/components/Arc/Arc.module.scss +0 -7
  246. package/src/shared/charts/components/GPolarisViz/components/Arc/Arc.tsx +0 -135
  247. package/src/shared/charts/components/GPolarisViz/components/Arc/index.ts +0 -1
  248. package/src/shared/charts/components/GPolarisViz/components/ChartContainer/ChartContainer.module.scss +0 -39
  249. package/src/shared/charts/components/GPolarisViz/components/ChartContainer/ChartContainer.tsx +0 -150
  250. package/src/shared/charts/components/GPolarisViz/components/ChartContainer/hooks/useContainerBounds.ts +0 -113
  251. package/src/shared/charts/components/GPolarisViz/components/ChartContainer/index.ts +0 -1
  252. package/src/shared/charts/components/GPolarisViz/components/ChartElements/ChartDiv.tsx +0 -18
  253. package/src/shared/charts/components/GPolarisViz/components/ChartElements/ChartElements.module.scss +0 -21
  254. package/src/shared/charts/components/GPolarisViz/components/ChartElements/ChartSVG.tsx +0 -40
  255. package/src/shared/charts/components/GPolarisViz/components/ChartElements/index.ts +0 -7
  256. package/src/shared/charts/components/GPolarisViz/components/ChartErrorBoundary/ChartErrorBoundary.tsx +0 -56
  257. package/src/shared/charts/components/GPolarisViz/components/ChartErrorBoundary/index.ts +0 -1
  258. package/src/shared/charts/components/GPolarisViz/components/ChartErrorBoundary/utilities/checkForMismatchedData.ts +0 -34
  259. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/ChartSkeleton.module.scss +0 -6
  260. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/ChartSkeleton.tsx +0 -96
  261. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/DonutSkeleton/DonutSkeleton.module.scss +0 -41
  262. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/DonutSkeleton/DonutSkeleton.tsx +0 -193
  263. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/DonutSkeleton/index.ts +0 -1
  264. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/ErrorText/ErrorText.tsx +0 -40
  265. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/ErrorText/index.ts +0 -1
  266. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/FunnelSkeleton/FunnelSkeleton.tsx +0 -69
  267. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/FunnelSkeleton/index.ts +0 -1
  268. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/GridSkeleton/GridSkeleton.tsx +0 -155
  269. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/GridSkeleton/index.ts +0 -1
  270. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/Shimmer/Shimmer.module.scss +0 -33
  271. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/Shimmer/Shimmer.tsx +0 -34
  272. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/Shimmer/index.ts +0 -1
  273. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SimpleBarSkeleton/SimpleBarSkeleton.module.scss +0 -15
  274. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SimpleBarSkeleton/SimpleBarSkeleton.tsx +0 -53
  275. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SimpleBarSkeleton/index.ts +0 -1
  276. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SimpleNormalizedSkeleton/SimpleNormalizedSkeleton.module.scss +0 -35
  277. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SimpleNormalizedSkeleton/SimpleNormalizedSkeleton.tsx +0 -75
  278. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SimpleNormalizedSkeleton/index.ts +0 -1
  279. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SparkSkeleton/SparkSkeleton.tsx +0 -27
  280. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SparkSkeleton/index.ts +0 -1
  281. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/index.ts +0 -8
  282. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/index.ts +0 -9
  283. package/src/shared/charts/components/GPolarisViz/components/ConicGradientWithStops/ConicGradientWithStops.tsx +0 -27
  284. package/src/shared/charts/components/GPolarisViz/components/ConicGradientWithStops/index.ts +0 -1
  285. package/src/shared/charts/components/GPolarisViz/components/DefaultPreview/DefaultPreview.module.scss +0 -8
  286. package/src/shared/charts/components/GPolarisViz/components/DefaultPreview/DefaultPreview.tsx +0 -25
  287. package/src/shared/charts/components/GPolarisViz/components/DefaultPreview/index.ts +0 -2
  288. package/src/shared/charts/components/GPolarisViz/components/FunnelChart/Chart.tsx +0 -209
  289. package/src/shared/charts/components/GPolarisViz/components/FunnelChart/FunnelChart.tsx +0 -72
  290. package/src/shared/charts/components/GPolarisViz/components/FunnelChart/components/FunnelChartXAxisArrows.tsx +0 -52
  291. package/src/shared/charts/components/GPolarisViz/components/FunnelChart/components/FunnelChartXAxisLabels.tsx +0 -66
  292. package/src/shared/charts/components/GPolarisViz/components/FunnelChart/components/FunnelSegment.tsx +0 -121
  293. package/src/shared/charts/components/GPolarisViz/components/FunnelChart/components/Label.module.scss +0 -23
  294. package/src/shared/charts/components/GPolarisViz/components/FunnelChart/components/Label.tsx +0 -67
  295. package/src/shared/charts/components/GPolarisViz/components/FunnelChart/components/index.ts +0 -4
  296. package/src/shared/charts/components/GPolarisViz/components/FunnelChart/index.ts +0 -2
  297. package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/Chart.tsx +0 -259
  298. package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/FunnelChartNext.tsx +0 -104
  299. package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/FunnelChartLabels/FunnelChartLabels.tsx +0 -387
  300. package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/FunnelChartLabels/index.ts +0 -1
  301. package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/FunnelTooltip/FunnelTooltip.scss +0 -8
  302. package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/FunnelTooltip/FunnelTooltip.tsx +0 -37
  303. package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/FunnelTooltip/index.ts +0 -3
  304. package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/ScaleIcon.tsx +0 -20
  305. package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/ScaleIconTooltip.tsx +0 -31
  306. package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/Tooltip/CustomTooltip.tsx +0 -68
  307. package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/Tooltip/Tooltip.scss +0 -52
  308. package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/Tooltip/Tooltip.tsx +0 -149
  309. package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/Tooltip/index.ts +0 -1
  310. package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/TooltipOverlay.tsx +0 -117
  311. package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/TooltipWithPortal.tsx +0 -12
  312. package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/index.ts +0 -8
  313. package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/constants.ts +0 -28
  314. package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/hooks/useTooltipInteraction.ts +0 -59
  315. package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/hooks/useTooltipPlacement.ts +0 -113
  316. package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/index.ts +0 -6
  317. package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/types.ts +0 -13
  318. package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/utilities/calculate-dropoff.ts +0 -4
  319. package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/utilities/useBuildFunnelTrends.ts +0 -108
  320. package/src/shared/charts/components/GPolarisViz/components/HorizontalGridLines/HorizontalGridLines.tsx +0 -27
  321. package/src/shared/charts/components/GPolarisViz/components/HorizontalGridLines/index.ts +0 -1
  322. package/src/shared/charts/components/GPolarisViz/components/Labels/SingleTextLine.tsx +0 -64
  323. package/src/shared/charts/components/GPolarisViz/components/Labels/hooks/index.ts +0 -1
  324. package/src/shared/charts/components/GPolarisViz/components/Labels/hooks/useLabels.tsx +0 -131
  325. package/src/shared/charts/components/GPolarisViz/components/Labels/index.ts +0 -3
  326. package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/endLineTruncate.ts +0 -23
  327. package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/endWordTruncate.ts +0 -34
  328. package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/estimateTextHeight.ts +0 -31
  329. package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/formatAndAddEllipsis.ts +0 -12
  330. package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/getDiagonalLabels.ts +0 -70
  331. package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/getHorizontalLabels.ts +0 -90
  332. package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/getVerticalLabels.ts +0 -58
  333. package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/getWidestLabel.ts +0 -15
  334. package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/shouldSkipLabel.ts +0 -11
  335. package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/tests/endWordTruncate.test.ts +0 -16
  336. package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/tests/estimateTextHeight.test.ts +0 -19
  337. package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/tests/formatAndAddEllipsis.test.ts +0 -9
  338. package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/tests/truncateLastLine.test.ts +0 -22
  339. package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/tests/truncateSingleLine.test.ts +0 -15
  340. package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/truncateLabels.ts +0 -75
  341. package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/truncateLastLine.ts +0 -61
  342. package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/truncateSingleLine.ts +0 -39
  343. package/src/shared/charts/components/GPolarisViz/components/LinePreview/LinePreview.module.scss +0 -8
  344. package/src/shared/charts/components/GPolarisViz/components/LinePreview/LinePreview.tsx +0 -105
  345. package/src/shared/charts/components/GPolarisViz/components/LinePreview/constants.ts +0 -3
  346. package/src/shared/charts/components/GPolarisViz/components/LinePreview/index.ts +0 -2
  347. package/src/shared/charts/components/GPolarisViz/components/SwallowErrors/SwallowErrors.tsx +0 -32
  348. package/src/shared/charts/components/GPolarisViz/components/SwallowErrors/index.ts +0 -1
  349. package/src/shared/charts/components/GPolarisViz/components/TextLine/TextLine.tsx +0 -88
  350. package/src/shared/charts/components/GPolarisViz/components/TextLine/index.ts +0 -1
  351. package/src/shared/charts/components/GPolarisViz/components/TooltipContent/TooltipContent.tsx +0 -109
  352. package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipContentContainer/TooltipContentContainer.module.scss +0 -10
  353. package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipContentContainer/TooltipContentContainer.tsx +0 -67
  354. package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipContentContainer/index.ts +0 -1
  355. package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipRow/TooltipRow.module.scss +0 -26
  356. package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipRow/TooltipRow.tsx +0 -57
  357. package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipRow/index.ts +0 -1
  358. package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipSeries/TooltipSeries.module.scss +0 -4
  359. package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipSeries/TooltipSeries.tsx +0 -26
  360. package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipSeries/index.ts +0 -1
  361. package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipSeriesName/TooltipSeriesName.module.scss +0 -4
  362. package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipSeriesName/TooltipSeriesName.tsx +0 -20
  363. package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipSeriesName/index.ts +0 -1
  364. package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipTitle/TooltipTitle.module.scss +0 -7
  365. package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipTitle/TooltipTitle.tsx +0 -15
  366. package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipTitle/index.ts +0 -1
  367. package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/index.ts +0 -5
  368. package/src/shared/charts/components/GPolarisViz/components/TooltipContent/constants.ts +0 -2
  369. package/src/shared/charts/components/GPolarisViz/components/TooltipContent/hooks/useGetLongestLabelFromData.ts +0 -56
  370. package/src/shared/charts/components/GPolarisViz/components/TooltipContent/index.ts +0 -4
  371. package/src/shared/charts/components/GPolarisViz/components/TooltipContent/utilities/get-tooltip-template-content-column-count.ts +0 -10
  372. package/src/shared/charts/components/GPolarisViz/components/TooltipContent/utilities/tests/get-tooltip-template-content-column-count.test.ts +0 -48
  373. package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/TooltipWrapper.tsx +0 -338
  374. package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/components/TooltipAnimatedContainer.module.scss +0 -6
  375. package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/components/TooltipAnimatedContainer.tsx +0 -139
  376. package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/constants.ts +0 -18
  377. package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/index.ts +0 -5
  378. package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/types.ts +0 -62
  379. package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/eventPoint.ts +0 -84
  380. package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getAlteredHorizontalBarPosition.ts +0 -110
  381. package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getAlteredLineChartPosition.ts +0 -115
  382. package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getAlteredVerticalBarPosition.ts +0 -105
  383. package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getDonutChartTooltipPosition.ts +0 -64
  384. package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getHorizontalBarChartTooltipPosition.ts +0 -79
  385. package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getLineChartTooltipPosition.ts +0 -68
  386. package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getVerticalBarChartTooltipPosition.ts +0 -123
  387. package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/shouldBlockTooltipEvents.ts +0 -6
  388. package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities.ts +0 -162
  389. package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/TrendIndicator.tsx +0 -72
  390. package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/Arrows/ArrowDown.tsx +0 -12
  391. package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/Arrows/ArrowUp.tsx +0 -12
  392. package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/Arrows/index.ts +0 -2
  393. package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/Svg/Svg.scss +0 -7
  394. package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/Svg/Svg.tsx +0 -27
  395. package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/Svg/index.ts +0 -1
  396. package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/index.ts +0 -2
  397. package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/constants.ts +0 -12
  398. package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/index.ts +0 -6
  399. package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/utilities/estimateTrendIndicatorWidth.ts +0 -9
  400. package/src/shared/charts/components/GPolarisViz/components/VerticalBarChart/utilities/index.ts +0 -1
  401. package/src/shared/charts/components/GPolarisViz/components/VerticalBarChart/utilities/sortBarChartData.ts +0 -20
  402. package/src/shared/charts/components/GPolarisViz/components/VerticalGridLines/VerticalGridLines.tsx +0 -32
  403. package/src/shared/charts/components/GPolarisViz/components/VerticalGridLines/index.ts +0 -1
  404. package/src/shared/charts/components/GPolarisViz/components/index.ts +0 -6
  405. package/src/shared/charts/components/GPolarisViz/constants.ts +0 -72
  406. package/src/shared/charts/components/GPolarisViz/data/character-width-offsets.json +0 -65
  407. package/src/shared/charts/components/GPolarisViz/data/character-widths.json +0 -1
  408. package/src/shared/charts/components/GPolarisViz/hooks/index.ts +0 -5
  409. package/src/shared/charts/components/GPolarisViz/hooks/useBarSpringConfig.ts +0 -21
  410. package/src/shared/charts/components/GPolarisViz/hooks/useBrowserCheck.ts +0 -13
  411. package/src/shared/charts/components/GPolarisViz/hooks/useCallbackRef.tsx +0 -39
  412. package/src/shared/charts/components/GPolarisViz/hooks/useDataForHorizontalChart.ts +0 -69
  413. package/src/shared/charts/components/GPolarisViz/hooks/useDebouncedCallback.ts +0 -197
  414. package/src/shared/charts/components/GPolarisViz/hooks/useFormattedLabels.ts +0 -31
  415. package/src/shared/charts/components/GPolarisViz/hooks/useFunnelBarScaling.ts +0 -53
  416. package/src/shared/charts/components/GPolarisViz/hooks/useHorizontalBarSizes.ts +0 -70
  417. package/src/shared/charts/components/GPolarisViz/hooks/useHorizontalStackedValues.ts +0 -34
  418. package/src/shared/charts/components/GPolarisViz/hooks/useHorizontalTicksAndScale.ts +0 -67
  419. package/src/shared/charts/components/GPolarisViz/hooks/useHorizontalXScale.ts +0 -48
  420. package/src/shared/charts/components/GPolarisViz/hooks/useIndexForLabels.ts +0 -16
  421. package/src/shared/charts/components/GPolarisViz/hooks/usePrefersReducedMotion.ts +0 -6
  422. package/src/shared/charts/components/GPolarisViz/hooks/usePrintResizing.ts +0 -94
  423. package/src/shared/charts/components/GPolarisViz/hooks/useReducedLabelIndexes.ts +0 -21
  424. package/src/shared/charts/components/GPolarisViz/hooks/useResizeObserver.ts +0 -39
  425. package/src/shared/charts/components/GPolarisViz/hooks/useRootContainer.ts +0 -20
  426. package/src/shared/charts/components/GPolarisViz/hooks/useWatchColorVisionEvents.tsx +0 -35
  427. package/src/shared/charts/components/GPolarisViz/index.ts +0 -10
  428. package/src/shared/charts/components/GPolarisViz/shared/Bar/Bar.tsx +0 -89
  429. package/src/shared/charts/components/GPolarisViz/shared/Bar/index.ts +0 -1
  430. package/src/shared/charts/components/GPolarisViz/shared/FunnelChartConnector/FunnelChartConnector.tsx +0 -46
  431. package/src/shared/charts/components/GPolarisViz/shared/FunnelChartConnector/FunnelChartConnectorGradient.tsx +0 -21
  432. package/src/shared/charts/components/GPolarisViz/shared/FunnelChartConnector/constants.ts +0 -11
  433. package/src/shared/charts/components/GPolarisViz/shared/FunnelChartConnector/index.ts +0 -3
  434. package/src/shared/charts/components/GPolarisViz/shared/FunnelChartSegment/FunnelChartSegment.tsx +0 -100
  435. package/src/shared/charts/components/GPolarisViz/shared/FunnelChartSegment/components/AnimatedSegment.tsx +0 -50
  436. package/src/shared/charts/components/GPolarisViz/shared/FunnelChartSegment/components/InteractiveOverlay.tsx +0 -34
  437. package/src/shared/charts/components/GPolarisViz/shared/FunnelChartSegment/components/ScaledSegment.tsx +0 -218
  438. package/src/shared/charts/components/GPolarisViz/shared/FunnelChartSegment/constants.ts +0 -4
  439. package/src/shared/charts/components/GPolarisViz/shared/FunnelChartSegment/index.ts +0 -2
  440. package/src/shared/charts/components/GPolarisViz/shared/SeriesIcon/SeriesIcon.tsx +0 -22
  441. package/src/shared/charts/components/GPolarisViz/shared/SeriesIcon/index.ts +0 -1
  442. package/src/shared/charts/components/GPolarisViz/shared/ZeroValueLine/ZeroValueLine.tsx +0 -45
  443. package/src/shared/charts/components/GPolarisViz/shared/ZeroValueLine/index.ts +0 -1
  444. package/src/shared/charts/components/GPolarisViz/shared/index.ts +0 -3
  445. package/src/shared/charts/components/GPolarisViz/styles/_common.scss +0 -15
  446. package/src/shared/charts/components/GPolarisViz/styles/shared/_accessibility.scss +0 -41
  447. package/src/shared/charts/components/GPolarisViz/styles/shared/_chart-container.scss +0 -8
  448. package/src/shared/charts/components/GPolarisViz/styles/shared/_variables.scss +0 -322
  449. package/src/shared/charts/components/GPolarisViz/types.ts +0 -261
  450. package/src/shared/charts/components/GPolarisViz/utilities/base.ts +0 -13
  451. package/src/shared/charts/components/GPolarisViz/utilities/classnames.ts +0 -3
  452. package/src/shared/charts/components/GPolarisViz/utilities/createCssConicGradient.ts +0 -12
  453. package/src/shared/charts/components/GPolarisViz/utilities/createCssGradient.ts +0 -7
  454. package/src/shared/charts/components/GPolarisViz/utilities/estimateStringWidthWithOffset.ts +0 -15
  455. package/src/shared/charts/components/GPolarisViz/utilities/getAxisOptions.ts +0 -26
  456. package/src/shared/charts/components/GPolarisViz/utilities/getCSSBackgroundFromColor.ts +0 -8
  457. package/src/shared/charts/components/GPolarisViz/utilities/getChartId.ts +0 -3
  458. package/src/shared/charts/components/GPolarisViz/utilities/getFontSize.ts +0 -7
  459. package/src/shared/charts/components/GPolarisViz/utilities/getStackedMinMax.ts +0 -43
  460. package/src/shared/charts/components/GPolarisViz/utilities/getStackedValues.ts +0 -35
  461. package/src/shared/charts/components/GPolarisViz/utilities/getStackedValuesFromDataSeries.tsx +0 -30
  462. package/src/shared/charts/components/GPolarisViz/utilities/getTrendIndicatorData.ts +0 -22
  463. package/src/shared/charts/components/GPolarisViz/utilities/hasHiddenComparisonSeries.ts +0 -26
  464. package/src/shared/charts/components/GPolarisViz/utilities/index.ts +0 -6
  465. package/src/shared/charts/components/GSimpleBarChart.tsx +0 -32
  466. package/src/shared/charts/components/index.ts +0 -7
  467. package/src/shared/charts/constants/chart.ts +0 -14
  468. package/src/shared/charts/constants/index.ts +0 -1
  469. package/src/shared/charts/contexts/GChartProvider.tsx +0 -48
  470. package/src/shared/charts/contexts/index.ts +0 -1
  471. package/src/shared/charts/index.ts +0 -4
  472. package/src/shared/charts/types/chart.ts +0 -36
  473. package/src/shared/charts/types/index.ts +0 -1
  474. package/src/shared/components/GActivatorPopover/GActivatorPopover.tsx +0 -107
  475. package/src/shared/components/GActivatorPopover/index.ts +0 -1
  476. package/src/shared/components/GBlockCenter/GBlockCenter.scss +0 -19
  477. package/src/shared/components/GBlockCenter/GBlockCenter.tsx +0 -72
  478. package/src/shared/components/GBlockCenter/index.ts +0 -1
  479. package/src/shared/components/GBox/GBox.scss +0 -25
  480. package/src/shared/components/GBox/GBox.tsx +0 -15
  481. package/src/shared/components/GBox/index.ts +0 -1
  482. package/src/shared/components/GBoxCard/GBoxCard.tsx +0 -27
  483. package/src/shared/components/GBoxCard/index.ts +0 -1
  484. package/src/shared/components/GButton/GButton.scss +0 -41
  485. package/src/shared/components/GButton/GButton.tsx +0 -73
  486. package/src/shared/components/GButton/index.ts +0 -1
  487. package/src/shared/components/GCheckbox/GCheckbox.tsx +0 -176
  488. package/src/shared/components/GCheckbox/index.ts +0 -1
  489. package/src/shared/components/GChoice/ChoiceHelpText.tsx +0 -25
  490. package/src/shared/components/GChoice/GChoice.scss +0 -14
  491. package/src/shared/components/GChoice/GChoice.tsx +0 -165
  492. package/src/shared/components/GChoice/index.ts +0 -2
  493. package/src/shared/components/GClickable/GClickable.tsx +0 -43
  494. package/src/shared/components/GClickable/index.ts +0 -1
  495. package/src/shared/components/GDiv/GDiv.tsx +0 -27
  496. package/src/shared/components/GDiv/index.ts +0 -1
  497. package/src/shared/components/GDotInline/GDotInline.tsx +0 -20
  498. package/src/shared/components/GDotInline/index.ts +0 -1
  499. package/src/shared/components/GFeatureLocked/GFeatureLocked.tsx +0 -85
  500. package/src/shared/components/GFeatureLocked/assets/images/empty-analytics.png +0 -0
  501. package/src/shared/components/GFeatureLocked/assets/images/empty-campaign-group-template-illustration.png +0 -0
  502. package/src/shared/components/GFeatureLocked/assets/images/empty-campaign-group-template.png +0 -0
  503. package/src/shared/components/GFeatureLocked/assets/images/empty-page-listing-illustration.png +0 -0
  504. package/src/shared/components/GFeatureLocked/assets/images/empty-page-listing.png +0 -0
  505. package/src/shared/components/GFeatureLocked/constants.ts +0 -33
  506. package/src/shared/components/GFeatureLocked/index.ts +0 -2
  507. package/src/shared/components/GFeatureLocked/types.ts +0 -16
  508. package/src/shared/components/GI18NText/GI18NText.tsx +0 -37
  509. package/src/shared/components/GI18NText/index.ts +0 -2
  510. package/src/shared/components/GI18NText/types.ts +0 -7
  511. package/src/shared/components/GInlineCenter/GInlineCenter.scss +0 -17
  512. package/src/shared/components/GInlineCenter/GInlineCenter.tsx +0 -39
  513. package/src/shared/components/GInlineCenter/index.ts +0 -1
  514. package/src/shared/components/GMockDataTooltip/GMockDataTooltip.tsx +0 -30
  515. package/src/shared/components/GMockDataTooltip/index.ts +0 -1
  516. package/src/shared/components/GModal/GModal.tsx +0 -49
  517. package/src/shared/components/GModal/index.ts +0 -1
  518. package/src/shared/components/GOptionList/GOptionList.tsx +0 -63
  519. package/src/shared/components/GOptionList/index.ts +0 -1
  520. package/src/shared/components/GPagination/GPagination.tsx +0 -44
  521. package/src/shared/components/GPagination/hooks/useGPagination.ts +0 -42
  522. package/src/shared/components/GPagination/index.ts +0 -2
  523. package/src/shared/components/GSelector/GSelector.tsx +0 -198
  524. package/src/shared/components/GSelector/index.ts +0 -1
  525. package/src/shared/components/GSkeletonDisplayText/GSkeletonDisplayText.tsx +0 -14
  526. package/src/shared/components/GSkeletonDisplayText/index.ts +0 -1
  527. package/src/shared/components/GSpinner/GSpinner.tsx +0 -16
  528. package/src/shared/components/GSpinner/index.ts +0 -1
  529. package/src/shared/components/GTextLink/GTextLink.tsx +0 -26
  530. package/src/shared/components/GTextLink/index.ts +0 -1
  531. package/src/shared/components/GTextTooltip/GTextTooltip.tsx +0 -18
  532. package/src/shared/components/GTextTooltip/index.ts +0 -1
  533. package/src/shared/components/GTextTruncated/GTextTruncated.tsx +0 -80
  534. package/src/shared/components/GTextTruncated/index.ts +0 -1
  535. package/src/shared/components/GThumbnail/GThumbnail.scss +0 -5
  536. package/src/shared/components/GThumbnail/GThumbnail.tsx +0 -69
  537. package/src/shared/components/GThumbnail/index.ts +0 -1
  538. package/src/shared/components/GTooltip/GTooltip.tsx +0 -34
  539. package/src/shared/components/GTooltip/components/GTooltipCard.tsx +0 -164
  540. package/src/shared/components/GTooltip/index.ts +0 -3
  541. package/src/shared/components/GTooltipCard/GTooltipCard.tsx +0 -161
  542. package/src/shared/components/GTooltipCard/index.ts +0 -7
  543. package/src/shared/components/GVariantBadge/GVariant.tsx +0 -55
  544. package/src/shared/components/GVariantBadge/GVariantBadge.scss +0 -10
  545. package/src/shared/components/GVariantBadge/GVariantBadge.tsx +0 -82
  546. package/src/shared/components/GVariantBadge/index.ts +0 -4
  547. package/src/shared/components/GVariantBadge/types.ts +0 -20
  548. package/src/shared/components/GViewBySelector/GViewBySelector.tsx +0 -114
  549. package/src/shared/components/GViewBySelector/index.ts +0 -1
  550. package/src/shared/components/index.ts +0 -26
  551. package/src/shared/index.ts +0 -1
  552. package/src/shared/journey/common/JourneyContainer/components/JourneyContainer.tsx +0 -140
  553. package/src/shared/journey/common/JourneyContainer/components/JourneyTimeline.tsx +0 -18
  554. package/src/shared/journey/common/JourneyContainer/components/index.ts +0 -2
  555. package/src/shared/journey/common/JourneyContainer/index.ts +0 -1
  556. package/src/shared/journey/common/index.ts +0 -1
  557. package/src/shared/journey/index.ts +0 -2
  558. package/src/shared/journey/ui/JourneyEvents/components/AcceptedPostPurchaseOffer/AcceptedPostPurchaseOffer.tsx +0 -24
  559. package/src/shared/journey/ui/JourneyEvents/components/AcceptedPostPurchaseOffer/index.ts +0 -1
  560. package/src/shared/journey/ui/JourneyEvents/components/CheckoutCompleted/CheckoutCompleted.tsx +0 -64
  561. package/src/shared/journey/ui/JourneyEvents/components/CheckoutCompleted/index.ts +0 -1
  562. package/src/shared/journey/ui/JourneyEvents/components/CheckoutItems.tsx +0 -27
  563. package/src/shared/journey/ui/JourneyEvents/components/CheckoutStarted/CheckoutStarted.tsx +0 -25
  564. package/src/shared/journey/ui/JourneyEvents/components/CheckoutStarted/CheckoutStartedDetail.tsx +0 -79
  565. package/src/shared/journey/ui/JourneyEvents/components/CheckoutStarted/index.ts +0 -2
  566. package/src/shared/journey/ui/JourneyEvents/components/PageViewed/PageViewed.tsx +0 -116
  567. package/src/shared/journey/ui/JourneyEvents/components/PageViewed/index.ts +0 -1
  568. package/src/shared/journey/ui/JourneyEvents/components/ProductAddedToCart/ProductAddedToCart.tsx +0 -24
  569. package/src/shared/journey/ui/JourneyEvents/components/ProductAddedToCart/index.ts +0 -1
  570. package/src/shared/journey/ui/JourneyEvents/components/ProductQuantity/ProductQuantity.tsx +0 -33
  571. package/src/shared/journey/ui/JourneyEvents/components/ProductQuantity/index.ts +0 -1
  572. package/src/shared/journey/ui/JourneyEvents/components/ProductRemovedFromCart/ProductRemovedFromCart.tsx +0 -24
  573. package/src/shared/journey/ui/JourneyEvents/components/ProductRemovedFromCart/index.ts +0 -1
  574. package/src/shared/journey/ui/JourneyEvents/components/index.ts +0 -6
  575. package/src/shared/journey/ui/JourneyEvents/constants/event.ts +0 -38
  576. package/src/shared/journey/ui/JourneyEvents/constants/index.ts +0 -1
  577. package/src/shared/journey/ui/JourneyEvents/index.ts +0 -2
  578. package/src/shared/journey/ui/JourneyEvents/types.ts +0 -2
  579. package/src/shared/journey/ui/JourneyGroup/JourneyGroup.tsx +0 -41
  580. package/src/shared/journey/ui/JourneyGroup/index.ts +0 -1
  581. package/src/shared/journey/ui/JourneyItem/components/EventMarkerIcon.tsx +0 -28
  582. package/src/shared/journey/ui/JourneyItem/components/JourneyDetail.tsx +0 -24
  583. package/src/shared/journey/ui/JourneyItem/components/JourneyItem.tsx +0 -27
  584. package/src/shared/journey/ui/JourneyItem/components/JourneyTime.tsx +0 -33
  585. package/src/shared/journey/ui/JourneyItem/components/QuantityWrapper.tsx +0 -17
  586. package/src/shared/journey/ui/JourneyItem/components/index.ts +0 -3
  587. package/src/shared/journey/ui/JourneyItem/index.ts +0 -2
  588. package/src/shared/journey/ui/JourneyItem/types/events.ts +0 -33
  589. package/src/shared/journey/ui/JourneyItem/types/index.ts +0 -1
  590. package/src/shared/journey/ui/JourneyTitle/components/GemxIdBadge.tsx +0 -38
  591. package/src/shared/journey/ui/JourneyTitle/components/JourneyDateBadge.tsx +0 -18
  592. package/src/shared/journey/ui/JourneyTitle/components/JourneyIdBadge.tsx +0 -65
  593. package/src/shared/journey/ui/JourneyTitle/components/JourneyLoadMore.tsx +0 -43
  594. package/src/shared/journey/ui/JourneyTitle/components/JourneyTitle.tsx +0 -42
  595. package/src/shared/journey/ui/JourneyTitle/components/index.ts +0 -2
  596. package/src/shared/journey/ui/JourneyTitle/constants/idBadge.ts +0 -1
  597. package/src/shared/journey/ui/JourneyTitle/constants/index.ts +0 -1
  598. package/src/shared/journey/ui/JourneyTitle/index.ts +0 -1
  599. package/src/shared/journey/ui/index.ts +0 -3
  600. package/src/shared/journey/ui/type.ts +0 -2
  601. package/src/shared/reports/common/Visualization/constants/columns.ts +0 -6
  602. package/src/shared/reports/common/Visualization/constants/index.ts +0 -2
  603. package/src/shared/reports/common/Visualization/constants/version.ts +0 -8
  604. package/src/shared/reports/common/Visualization/index.ts +0 -2
  605. package/src/shared/reports/common/Visualization/types/chart.ts +0 -5
  606. package/src/shared/reports/common/Visualization/types/index.ts +0 -3
  607. package/src/shared/reports/common/Visualization/types/report-metric.ts +0 -21
  608. package/src/shared/reports/common/Visualization/types/report.ts +0 -42
  609. package/src/shared/reports/common/Visualization/utils/index.ts +0 -2
  610. package/src/shared/reports/common/Visualization/utils/version.ts +0 -9
  611. package/src/shared/reports/common/Visualization/utils/visualization.ts +0 -58
  612. package/src/shared/reports/common/index.ts +0 -1
  613. package/src/shared/reports/ui/ReportTable/ReportTable.tsx +0 -194
  614. package/src/shared/reports/ui/ReportTable/ReportTableSkeleton.tsx +0 -73
  615. package/src/shared/reports/ui/ReportTable/assets/styles/ReportTable.scss +0 -288
  616. package/src/shared/reports/ui/ReportTable/components/Body/Cell/CampaignsCell/CampaignsCell.tsx +0 -102
  617. package/src/shared/reports/ui/ReportTable/components/Body/Cell/CampaignsCell/CampaignsCellVersion.tsx +0 -11
  618. package/src/shared/reports/ui/ReportTable/components/Body/Cell/CampaignsCell/index.ts +0 -1
  619. package/src/shared/reports/ui/ReportTable/components/Body/Cell/Cell.tsx +0 -93
  620. package/src/shared/reports/ui/ReportTable/components/Body/Cell/CellRenderers.tsx +0 -72
  621. package/src/shared/reports/ui/ReportTable/components/Body/Cell/DateCell.tsx +0 -9
  622. package/src/shared/reports/ui/ReportTable/components/Body/Cell/DefaultCell.tsx +0 -32
  623. package/src/shared/reports/ui/ReportTable/components/Body/Cell/GemxIdCell.tsx +0 -18
  624. package/src/shared/reports/ui/ReportTable/components/Body/Cell/ItemsCell/CheckoutStartedDetail.tsx +0 -79
  625. package/src/shared/reports/ui/ReportTable/components/Body/Cell/ItemsCell/ItemsCell.tsx +0 -56
  626. package/src/shared/reports/ui/ReportTable/components/Body/Cell/ItemsCell/index.ts +0 -1
  627. package/src/shared/reports/ui/ReportTable/components/Body/Cell/NoneCell.tsx +0 -11
  628. package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/LoadingData.tsx +0 -10
  629. package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/NoData.tsx +0 -13
  630. package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/OrderCell.tsx +0 -78
  631. package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/OrderCellBase.tsx +0 -55
  632. package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/OrderCellContainer.tsx +0 -43
  633. package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/OrderItem.tsx +0 -79
  634. package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/index.ts +0 -2
  635. package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderIdCell.tsx +0 -70
  636. package/src/shared/reports/ui/ReportTable/components/Body/Cell/PreviousCell.tsx +0 -17
  637. package/src/shared/reports/ui/ReportTable/components/Body/Cell/TotalCell.tsx +0 -14
  638. package/src/shared/reports/ui/ReportTable/components/Body/Cell/VersionCell.tsx +0 -31
  639. package/src/shared/reports/ui/ReportTable/components/Body/Cell/WrapperCell.tsx +0 -31
  640. package/src/shared/reports/ui/ReportTable/components/Body/Cell/index.ts +0 -1
  641. package/src/shared/reports/ui/ReportTable/components/Body/Cell/type.ts +0 -18
  642. package/src/shared/reports/ui/ReportTable/components/Body/Row.tsx +0 -85
  643. package/src/shared/reports/ui/ReportTable/components/Body/index.ts +0 -2
  644. package/src/shared/reports/ui/ReportTable/components/Footer/Pagination.tsx +0 -76
  645. package/src/shared/reports/ui/ReportTable/components/Footer/ScrollBar.tsx +0 -19
  646. package/src/shared/reports/ui/ReportTable/components/Footer/WrapperFooter.tsx +0 -39
  647. package/src/shared/reports/ui/ReportTable/components/Footer/index.ts +0 -1
  648. package/src/shared/reports/ui/ReportTable/components/Header/Header.tsx +0 -68
  649. package/src/shared/reports/ui/ReportTable/components/Header/SortableHeader.tsx +0 -49
  650. package/src/shared/reports/ui/ReportTable/components/Header/SortableHeaderWithTooltip.tsx +0 -60
  651. package/src/shared/reports/ui/ReportTable/components/Header/SummaryCell.tsx +0 -26
  652. package/src/shared/reports/ui/ReportTable/components/Header/SummaryRow.tsx +0 -69
  653. package/src/shared/reports/ui/ReportTable/components/Header/WrapperHeader.tsx +0 -54
  654. package/src/shared/reports/ui/ReportTable/components/Header/index.ts +0 -1
  655. package/src/shared/reports/ui/ReportTable/components/index.ts +0 -2
  656. package/src/shared/reports/ui/ReportTable/constants/index.ts +0 -2
  657. package/src/shared/reports/ui/ReportTable/constants/order.ts +0 -30
  658. package/src/shared/reports/ui/ReportTable/constants/table.ts +0 -17
  659. package/src/shared/reports/ui/ReportTable/context/ReportTableActionsContext.tsx +0 -28
  660. package/src/shared/reports/ui/ReportTable/helpers/format.ts +0 -29
  661. package/src/shared/reports/ui/ReportTable/helpers/index.ts +0 -2
  662. package/src/shared/reports/ui/ReportTable/helpers/report.ts +0 -7
  663. package/src/shared/reports/ui/ReportTable/hooks/index.ts +0 -3
  664. package/src/shared/reports/ui/ReportTable/hooks/useReportTable.ts +0 -172
  665. package/src/shared/reports/ui/ReportTable/hooks/useReportTableCell.tsx +0 -28
  666. package/src/shared/reports/ui/ReportTable/hooks/useSyncedScroll.ts +0 -81
  667. package/src/shared/reports/ui/ReportTable/index.ts +0 -4
  668. package/src/shared/reports/ui/ReportTable/types/dimension.ts +0 -8
  669. package/src/shared/reports/ui/ReportTable/types/index.ts +0 -43
  670. package/src/shared/reports/ui/ReportTable/types/order.ts +0 -15
  671. package/src/shared/reports/ui/ReportTable/types/report-columns.ts +0 -11
  672. package/src/shared/reports/ui/ReportTable/utils/format.ts +0 -100
  673. package/src/shared/reports/ui/ReportTable/utils/index.ts +0 -2
  674. package/src/shared/reports/ui/ReportTable/utils/order.ts +0 -8
  675. package/src/shared/reports/ui/ReportTable/utils/table.ts +0 -19
  676. package/src/shared/reports/ui/ReportTable/utils/visualization.ts +0 -56
  677. package/src/shared/reports/ui/index.ts +0 -0
  678. package/src/stores/currencyRatesStore.ts +0 -13
  679. package/src/stores/index.ts +0 -2
  680. package/src/styles/index.scss +0 -9
  681. package/src/types/analytic-mode.ts +0 -5
  682. package/src/types/breakdown-items.ts +0 -21
  683. package/src/types/campaign.ts +0 -13
  684. package/src/types/chart.ts +0 -42
  685. package/src/types/currency.ts +0 -329
  686. package/src/types/index.ts +0 -8
  687. package/src/types/metric.ts +0 -81
  688. package/src/types/pricing.ts +0 -38
  689. package/src/types/report-columns.ts +0 -1
  690. package/src/types/template.ts +0 -19
  691. package/src/utils/analytics.ts +0 -75
  692. package/src/utils/array.ts +0 -13
  693. package/src/utils/cls.ts +0 -18
  694. package/src/utils/currency.ts +0 -42
  695. package/src/utils/date-time.ts +0 -7
  696. package/src/utils/dayjs.ts +0 -52
  697. package/src/utils/deep-copy.ts +0 -4
  698. package/src/utils/index.ts +0 -12
  699. package/src/utils/is-browser.ts +0 -3
  700. package/src/utils/number.ts +0 -19
  701. package/src/utils/percentage.ts +0 -40
  702. package/src/utils/sort.ts +0 -87
  703. package/src/utils/string.ts +0 -20
  704. package/src/utils/template-type.ts +0 -30
@@ -1,79 +0,0 @@
1
- import type { CompareDateTimePickerAlias } from '../constants';
2
- import type { IDateTimePickerProps } from './useDateTimePicker';
3
-
4
- import { DATE_TIME_COMPARISON_FILTERS, COMPARE_DATE_TIME_FILTERS_MAP } from '../constants';
5
- import { getMonthAndYearByDateFilter } from '../helpers';
6
- import { useDateTimePickerContext } from '../contexts';
7
- import { dayjsTz } from '@/utils';
8
- import { useState } from 'react';
9
-
10
- type ICompareDateTimePickerProps = IDateTimePickerProps;
11
-
12
- export const useCompareDateTimePicker = ({ ranges, onApply }: ICompareDateTimePickerProps) => {
13
- const allRanges = ranges || DATE_TIME_COMPARISON_FILTERS;
14
-
15
- const { compareDateTimePicked, setCompareDateTimePicked } = useDateTimePickerContext();
16
- const { dateTimePicked: mainDateRange } = useDateTimePickerContext();
17
-
18
- const [dateRange, setDateRange] = useState(compareDateTimePicked);
19
- const [{ month, year }, setDate] = useState({
20
- month: dayjsTz(compareDateTimePicked.since).month(),
21
- year: dayjsTz(compareDateTimePicked.since).year(),
22
- });
23
-
24
- const onMonthChange = (month: number, year: number) => {
25
- setDate({ month, year });
26
- };
27
-
28
- const onCalendarChange = ({ start, end, alias }: { start: Date; end: Date; alias?: string }) => {
29
- const newDateRange = allRanges.find((range) => {
30
- return range.alias === alias;
31
- });
32
-
33
- const mapper = COMPARE_DATE_TIME_FILTERS_MAP[alias as CompareDateTimePickerAlias];
34
-
35
- // If the alias is not found (or has no mapper), set the custom date range
36
- if (!newDateRange || !mapper) {
37
- setDateRange({
38
- alias: 'custom',
39
- title: 'Custom',
40
- since: start.getTime(),
41
- until: end.getTime(),
42
- });
43
- return;
44
- }
45
-
46
- setDateRange({
47
- ...newDateRange,
48
- ...mapper({
49
- since: mainDateRange.since,
50
- until: mainDateRange.until,
51
- }),
52
- });
53
- };
54
-
55
- const apply = () => {
56
- setCompareDateTimePicked(dateRange);
57
- onApply?.(dateRange);
58
- };
59
-
60
- const cancel = () => {
61
- setDateRange(compareDateTimePicked);
62
- };
63
- const onChange = ({ end }: { start: Date; end: Date }) => {
64
- setDate(getMonthAndYearByDateFilter(month, year, end));
65
- };
66
-
67
- return {
68
- month,
69
- year,
70
- setDate,
71
- dateRange,
72
- apply,
73
- cancel,
74
- compareDateTimePicked,
75
- onChange,
76
- onMonthChange,
77
- onCalendarChange,
78
- };
79
- };
@@ -1,83 +0,0 @@
1
- import type { DateTimeFilter } from '../types';
2
-
3
- import { getDateTimeFilterMapping, MainDateTimePickerAlias } from '../constants';
4
- import { useTimezoneContext } from '@/providers/TimezoneProvider';
5
- import { dayjsTzToLocalTZ } from '@/utils';
6
-
7
- export const useDateTimeFilter = () => {
8
- useTimezoneContext();
9
- const currentDate = dayjsTzToLocalTZ().startOf('day');
10
- const mappings = getDateTimeFilterMapping();
11
-
12
- const TODAY_CONFIG = mappings[MainDateTimePickerAlias.TODAY];
13
- const TODAY_DATE_RANGE = {
14
- ...TODAY_CONFIG,
15
- ...TODAY_CONFIG.getDateRange(currentDate),
16
- };
17
-
18
- const YESTERDAY_CONFIG = mappings[MainDateTimePickerAlias.YESTERDAY];
19
- const YESTERDAY_DATE_RANGE = {
20
- ...YESTERDAY_CONFIG,
21
- ...YESTERDAY_CONFIG.getDateRange(currentDate),
22
- };
23
-
24
- const LAST_7_DAYS_CONFIG = mappings[MainDateTimePickerAlias.LAST_7_DAYS];
25
- const LAST_7_DAYS_DATE_RANGE = {
26
- ...LAST_7_DAYS_CONFIG,
27
- ...LAST_7_DAYS_CONFIG.getDateRange(currentDate),
28
- };
29
-
30
- const LAST_30_DAYS_CONFIG = mappings[MainDateTimePickerAlias.LAST_30_DAYS];
31
- const LAST_30_DAYS_DATE_RANGE = {
32
- ...LAST_30_DAYS_CONFIG,
33
- ...LAST_30_DAYS_CONFIG.getDateRange(currentDate),
34
- };
35
-
36
- const LAST_90_DAYS_CONFIG = mappings[MainDateTimePickerAlias.LAST_90_DAYS];
37
- const LAST_90_DAYS_DATE_RANGE = {
38
- ...LAST_90_DAYS_CONFIG,
39
- ...LAST_90_DAYS_CONFIG.getDateRange(currentDate),
40
- };
41
-
42
- const LAST_365_DAYS_CONFIG = mappings[MainDateTimePickerAlias.LAST_365_DAYS];
43
- const LAST_365_DAYS_DATE_RANGE = {
44
- ...LAST_365_DAYS_CONFIG,
45
- ...LAST_365_DAYS_CONFIG.getDateRange(currentDate),
46
- };
47
-
48
- const LAST_MONTH_CONFIG = mappings[MainDateTimePickerAlias.LAST_MONTH];
49
- const LAST_MONTH_DATE_RANGE = {
50
- ...LAST_MONTH_CONFIG,
51
- ...LAST_MONTH_CONFIG.getDateRange(currentDate),
52
- };
53
-
54
- const LAST_12_MONTHS_CONFIG = mappings[MainDateTimePickerAlias.LAST_12_MONTHS];
55
- const LAST_12_MONTHS_DATE_RANGE = {
56
- ...LAST_12_MONTHS_CONFIG,
57
- ...LAST_12_MONTHS_CONFIG.getDateRange(currentDate),
58
- };
59
-
60
- const LAST_YEAR_CONFIG = mappings[MainDateTimePickerAlias.LAST_YEAR];
61
- const LAST_YEAR_DATE_RANGE = {
62
- ...LAST_YEAR_CONFIG,
63
- ...LAST_YEAR_CONFIG.getDateRange(currentDate),
64
- };
65
-
66
- const DATE_TIME_FILTERS: DateTimeFilter[] = [
67
- TODAY_DATE_RANGE,
68
- YESTERDAY_DATE_RANGE,
69
- LAST_7_DAYS_DATE_RANGE,
70
- LAST_30_DAYS_DATE_RANGE,
71
- LAST_90_DAYS_DATE_RANGE,
72
- LAST_365_DAYS_DATE_RANGE,
73
- LAST_MONTH_DATE_RANGE,
74
- LAST_12_MONTHS_DATE_RANGE,
75
- LAST_YEAR_DATE_RANGE,
76
- ];
77
-
78
- return {
79
- DATE_TIME_FILTERS,
80
- LAST_7_DAYS_DATE_RANGE,
81
- LAST_30_DAYS_DATE_RANGE,
82
- };
83
- };
@@ -1,99 +0,0 @@
1
- import type { BaseTimePickerProps } from '../components/BaseTimePicker';
2
- import type { DateTimeFilter } from '../types';
3
-
4
- import { getMonthAndYearByDateFilter } from '../helpers';
5
- import { useDateTimePickerContext } from '../contexts';
6
- import { useDateTimeFilter } from './useDateTimeFilter';
7
- import { useEffect, useState } from 'react';
8
- import { dayjs } from '@/utils';
9
-
10
- export interface IDateRangeState {
11
- alias?: DateTimeFilter['alias'];
12
- start: Date;
13
- end: Date;
14
- }
15
-
16
- export interface IDateTimePickerProps {
17
- ranges?: DateTimeFilter[];
18
- initialPicked?: DateTimeFilter;
19
- onApply?: BaseTimePickerProps['onApply'];
20
- }
21
-
22
- export const useDateTimePicker = ({ ranges, initialPicked, onApply }: IDateTimePickerProps) => {
23
- const { DATE_TIME_FILTERS } = useDateTimeFilter();
24
- const allRanges = ranges || DATE_TIME_FILTERS;
25
-
26
- const { dateTimePicked, setDateTimePicked } = useDateTimePickerContext();
27
-
28
- const [dateRange, setDateRange] = useState<DateTimeFilter>(dateTimePicked);
29
-
30
- const [{ month, year }, setDate] = useState({
31
- month: dayjs(dateTimePicked.since).month(),
32
- year: dayjs(dateTimePicked.since).year(),
33
- });
34
-
35
- const onMonthChange = (month: number, year: number) => {
36
- setDate({ month, year });
37
- };
38
-
39
- const onCalendarChange = (value: IDateRangeState) => {
40
- const { start, end, alias } = value;
41
-
42
- const customDateRange: DateTimeFilter = {
43
- alias: 'custom',
44
- title: 'Custom',
45
- since: start.getTime(),
46
- until: end.getTime(),
47
- };
48
-
49
- const newDateRange = allRanges.find((range) => {
50
- const isSameAlias = range.alias === alias;
51
- const isSameUntil = range.until === end.getTime();
52
- const isSameSince = range.since === start.getTime();
53
- // const isSameVersionId = !!range.versionId && !!versionId && range.versionId === versionId;
54
-
55
- const isSameTime = isSameSince && isSameUntil;
56
- return isSameAlias || isSameTime;
57
- });
58
-
59
- const finalDateRange = newDateRange || initialPicked || customDateRange;
60
- setDateRange(finalDateRange);
61
- };
62
-
63
- const onChange = ({ end }: { start: Date; end: Date }) => {
64
- setDate(getMonthAndYearByDateFilter(month, year, end));
65
- };
66
-
67
- const apply = () => {
68
- setDateTimePicked(dateRange);
69
- onApply?.(dateRange);
70
- };
71
-
72
- const cancel = () => {
73
- setDateRange(dateTimePicked);
74
- };
75
-
76
- useEffect(() => {
77
- if (dateTimePicked) {
78
- setDateRange(dateTimePicked);
79
-
80
- setDate({
81
- month: dayjs(dateTimePicked.since).month(),
82
- year: dayjs(dateTimePicked.since).year(),
83
- });
84
- }
85
- }, [dateTimePicked]);
86
-
87
- return {
88
- month,
89
- year,
90
- setDate,
91
- dateRange,
92
- apply,
93
- cancel,
94
- dateTimePicked,
95
- onChange,
96
- onMonthChange,
97
- onCalendarChange,
98
- };
99
- };
@@ -1,30 +0,0 @@
1
- import type { IDateTimeFilterAddition } from '../components';
2
- import type { DateTimeFilter, IBaseCampaignVersion } from '../types';
3
-
4
- import { convertToDateTimeFilters } from '../helpers';
5
- import { useTranslation } from 'react-i18next';
6
- import { useMemo } from 'react';
7
-
8
- type MaybeVersion = IBaseCampaignVersion | null | undefined;
9
- type IVersionDateTimeFiltersProps = MaybeVersion[] | null | undefined;
10
-
11
- interface IVersionDateTimeFiltersReturn {
12
- rangeAddition: IDateTimeFilterAddition;
13
- }
14
-
15
- export const useVersionDateTimeFilters = (versions: IVersionDateTimeFiltersProps): IVersionDateTimeFiltersReturn => {
16
- const { t } = useTranslation();
17
-
18
- const rangers: DateTimeFilter[] = useMemo(() => {
19
- if (!versions?.length) return [];
20
-
21
- return convertToDateTimeFilters(versions as IBaseCampaignVersion[]);
22
- }, [versions]);
23
-
24
- const rangeAddition = {
25
- title: t('Experiment periods'),
26
- rangers,
27
- };
28
-
29
- return { rangeAddition };
30
- };
@@ -1,7 +0,0 @@
1
- export * from './hooks';
2
- export * from './contexts';
3
- export * from './types';
4
- export * from './constants';
5
- export * from './components';
6
- export * from './helpers';
7
- export * from './GTimePicker';
@@ -1,43 +0,0 @@
1
- import type { Dayjs } from '@/utils';
2
-
3
- export interface DateTimeFilterBase {
4
- title: string;
5
- alias: string;
6
- }
7
-
8
- export interface IDateTimeFilterValue {
9
- since: string | number;
10
- until: string | number;
11
- }
12
-
13
- export interface DateTimeFilterVersionMeta {
14
- versionId?: string;
15
- isVersion?: boolean;
16
- isCurrentVersion?: boolean;
17
- description?: string;
18
- }
19
-
20
- export interface DateTimeFilter extends DateTimeFilterBase, IDateTimeFilterValue, DateTimeFilterVersionMeta {}
21
-
22
- export interface IDateTimeFilterMapping extends DateTimeFilterBase {
23
- getDateRange: (date: Dayjs) => IDateTimeFilterValue;
24
- }
25
-
26
- export interface AnalyticDateFilter {
27
- versionId?: string;
28
- startDate: Dayjs;
29
- endDate: Dayjs;
30
- alias: string;
31
- since?: string | number;
32
- until?: string | number;
33
- title?: string;
34
- }
35
-
36
- export type IGetCompareDateByAlias = (value: IDateTimeFilterValue & { alias?: string }) => IDateTimeFilterValue;
37
-
38
- export interface IBaseCampaignVersion {
39
- id: string;
40
- version: string;
41
- startedAt?: string | null;
42
- completedAt?: string | null;
43
- }
@@ -1,121 +0,0 @@
1
- import type { IDonutMetricRow, IDonutTarget } from '@/types';
2
- import type { EMetricKey } from '@/types';
3
- import type { ReactElement } from 'react';
4
-
5
- import { ANALYTICS_METRIC_TOOLTIP } from '@/constants';
6
- import { numberWithCommas } from '@/utils';
7
- import { useWindowSize } from '@/hooks';
8
- import { MetricChartProvider } from '@/providers';
9
- import { GTooltipCard } from '@/shared';
10
- import { cls } from '@/utils';
11
- import { BlockStack, Card, Icon, InlineStack, Text } from '@shopify/polaris';
12
- import { ChevronRightIcon } from '@shopify/polaris-icons';
13
- import { DonutChart } from '@shopify/polaris-viz';
14
- import { useMemo, useState } from 'react';
15
- import { MetricChartEmpty, MetricDonutChartSkeleton } from '../common/chart';
16
- import { buildBreakdownDonutData } from './utils';
17
-
18
- export interface IProps {
19
- label: string;
20
- metricKey: EMetricKey;
21
- targets: IDonutTarget[];
22
- totalsRow?: IDonutMetricRow;
23
- comparisonTotalsRow?: IDonutMetricRow;
24
- sort?: boolean;
25
- isLoading?: boolean;
26
- isEmptyMetricData?: boolean;
27
- minHeight?: number;
28
- isMockData?: boolean;
29
- onClick: () => void;
30
- }
31
-
32
- const DONUT_CHART_MIN_HEIGHT = 294;
33
- const COMPACT_MAX_WIDTH = 1500;
34
-
35
- export const MetricDonutChartCard = ({
36
- label,
37
- metricKey,
38
- targets,
39
- totalsRow,
40
- comparisonTotalsRow,
41
- sort,
42
- isLoading,
43
- isEmptyMetricData,
44
- minHeight = DONUT_CHART_MIN_HEIGHT,
45
- isMockData,
46
- onClick,
47
- }: IProps): ReactElement => {
48
- const tooltip = ANALYTICS_METRIC_TOOLTIP[metricKey];
49
-
50
- const { windowWidth, windowSize } = useWindowSize();
51
- const [isHovered, setIsHovered] = useState(false);
52
-
53
- const data = useMemo(
54
- () => buildBreakdownDonutData({ targets, metricKey, totalsRow, comparisonTotalsRow, sort }),
55
- [targets, metricKey, totalsRow, comparisonTotalsRow, sort],
56
- );
57
-
58
- if (isLoading) {
59
- return <MetricDonutChartSkeleton />;
60
- }
61
-
62
- const formatValue = (value: string | number | null) => {
63
- return numberWithCommas(`${value}`);
64
- };
65
-
66
- const handleClickTitle = (event: React.MouseEvent) => {
67
- if (isMockData) return;
68
- event.stopPropagation();
69
- onClick();
70
- };
71
-
72
- const isCompactView = windowWidth.lg && windowSize.width < COMPACT_MAX_WIDTH;
73
-
74
- return (
75
- <div onMouseEnter={() => setIsHovered(true)} onMouseLeave={() => setIsHovered(false)}>
76
- <Card>
77
- <BlockStack gap="200">
78
- <InlineStack>
79
- <div
80
- className={isMockData ? undefined : 'hover:cursor-pointer hover:text-[--p-color-text-link-hover]'}
81
- onClick={handleClickTitle}
82
- >
83
- <InlineStack>
84
- <GTooltipCard tooltip={tooltip}>
85
- <Text as="h3" variant="headingMd">
86
- {label}
87
- </Text>
88
- </GTooltipCard>
89
-
90
- {isHovered && !isMockData && <Icon source={ChevronRightIcon} tone="inherit" />}
91
- </InlineStack>
92
- </div>
93
- </InlineStack>
94
- <div
95
- className={cls('flex items-center justify-center', {
96
- 'max-h-[250px] overflow-hidden': isCompactView,
97
- })}
98
- >
99
- {isEmptyMetricData ? (
100
- <MetricChartEmpty title="No data yet" description="Data needs time to gather" />
101
- ) : (
102
- <MetricChartProvider minHeight={minHeight} seriesColors={{}}>
103
- <DonutChart
104
- data={data}
105
- legendPosition="left"
106
- showLegendValues
107
- showLegend
108
- theme="Light"
109
- tooltipOptions={{
110
- valueFormatter: formatValue,
111
- }}
112
- labelFormatter={formatValue}
113
- />
114
- </MetricChartProvider>
115
- )}
116
- </div>
117
- </BlockStack>
118
- </Card>
119
- </div>
120
- );
121
- };
@@ -1,2 +0,0 @@
1
- export { MetricDonutChartCard } from './MetricDonutChartCard';
2
- export type { IProps as IMetricDonutChartCardProps } from './MetricDonutChartCard';
@@ -1,75 +0,0 @@
1
- import type { EMetricKey, IDonutMetricRow, IDonutTarget, IMetricDonutChartData } from '@/types';
2
- import type { IBreakdownItem } from '@/core/gemxql';
3
-
4
- import { parseBreakdownItems } from '@/core/gemxql';
5
-
6
- interface IComputeDonutDataParams {
7
- name: string;
8
- currentValue: number;
9
- prevValue: number;
10
- hasPreviousData: boolean;
11
- }
12
- interface IBuildBreakdownDonutDataParams<T extends string> {
13
- targets: IDonutTarget<T>[];
14
- metricKey: EMetricKey;
15
- totalsRow?: IDonutMetricRow;
16
- comparisonTotalsRow?: IDonutMetricRow;
17
- sort?: boolean;
18
- }
19
-
20
- export const calculatePercentageChange = (current: number, previous: number): string | undefined => {
21
- if (current === 0 && previous === 0) {
22
- return undefined;
23
- }
24
- if (previous === 0) {
25
- return current > 0 ? '100%' : '0%';
26
- }
27
- const change = ((current - previous) / previous) * 100;
28
- return `${Math.abs(change).toFixed(0)}%`;
29
- };
30
-
31
- export const computeDonutData = ({
32
- name,
33
- currentValue,
34
- prevValue,
35
- hasPreviousData,
36
- }: IComputeDonutDataParams): IMetricDonutChartData => ({
37
- name,
38
- data: [{ key: 'value', value: currentValue }],
39
- metadata: {
40
- trend: {
41
- value: hasPreviousData ? calculatePercentageChange(currentValue, prevValue) : undefined,
42
- direction: currentValue >= prevValue ? 'upward' : 'downward',
43
- trend: currentValue >= prevValue ? 'positive' : 'negative',
44
- },
45
- },
46
- });
47
-
48
- export const getTotalCountByType = (stats: IBreakdownItem[] | undefined, type: string): number => {
49
- const item = stats?.find((stat) => stat?.type?.toLowerCase() === type.toLowerCase());
50
- return item?.total ?? 0;
51
- };
52
-
53
- export const buildBreakdownDonutData = <T extends string>({
54
- targets,
55
- metricKey,
56
- totalsRow,
57
- comparisonTotalsRow,
58
- sort,
59
- }: IBuildBreakdownDonutDataParams<T>): IMetricDonutChartData[] => {
60
- const items = parseBreakdownItems<T>(totalsRow?.[metricKey]);
61
- const comparisonItems = parseBreakdownItems<T>(comparisonTotalsRow?.[metricKey]);
62
- const hasPreviousData = !!comparisonTotalsRow?.[metricKey];
63
-
64
- const result = targets.map(({ value, label }) =>
65
- computeDonutData({
66
- name: label,
67
- currentValue: getTotalCountByType(items, value),
68
- prevValue: getTotalCountByType(comparisonItems, value),
69
- hasPreviousData,
70
- }),
71
- );
72
-
73
- const getValue = (item: IMetricDonutChartData): number => item.data[0]?.value ?? 0;
74
- return sort ? [...result].sort((a, b) => getValue(b) - getValue(a)) : result;
75
- };
@@ -1 +0,0 @@
1
- export * from './donut-chart';
@@ -1,111 +0,0 @@
1
- import type { IOrder } from './types';
2
-
3
- import { GBoxCard, GMockDataTooltip, GTextTooltip } from '@/shared';
4
- import { Box, Button, InlineStack } from '@shopify/polaris';
5
- import { useMemo } from 'react';
6
- import { useTranslation } from 'react-i18next';
7
- import OrderListingTable from './components/OrderListing/OrderListingTable';
8
- import { OrderListingTableEmpty } from './components/OrderListing/OrderListingTableEmpty';
9
- import { ORDER_LISTING_COLUMNS, ORDER_LISTING_CONFIG, ORDER_LISTING_LATEST_COLUMNS_FOR_PAGE } from './constants';
10
- import { EReportSource } from './types/report';
11
-
12
- interface IOrderListingLatestData {
13
- orders: IOrder[];
14
- isLoading: boolean;
15
- totalFilteredOrders: number;
16
- totalStoreOrders: number;
17
- }
18
-
19
- interface IOrderListingLatestCallbacks {
20
- onViewAllOrders?: () => void;
21
- onViewAllStoreOrders?: () => void;
22
- onViewOrderJourney?: (orderId: string, gxId?: string) => void;
23
- onViewOrderDetails?: (orderId: string) => void;
24
- }
25
-
26
- interface OrderListingLatestTableProps {
27
- source: EReportSource;
28
- data: IOrderListingLatestData;
29
- callbacks?: IOrderListingLatestCallbacks;
30
- isMockData?: boolean;
31
- }
32
-
33
- export const OrderListingLatestTable = ({ source, data, callbacks, isMockData }: OrderListingLatestTableProps) => {
34
- const { orders, isLoading, totalFilteredOrders, totalStoreOrders } = data;
35
- const { onViewAllOrders, onViewAllStoreOrders, onViewOrderJourney, onViewOrderDetails } = callbacks ?? {};
36
-
37
- const { t } = useTranslation();
38
-
39
- const isEmpty = orders.length === 0;
40
- const sourceText = source === EReportSource.CAMPAIGN ? 'experiment' : source;
41
- const tooltipContent = getOrderSourceTooltipContent(source);
42
-
43
- const fixedColumns = useMemo(() => {
44
- if (source === EReportSource.PAGE) return ORDER_LISTING_LATEST_COLUMNS_FOR_PAGE;
45
-
46
- return ORDER_LISTING_COLUMNS;
47
- }, [source]);
48
-
49
- return (
50
- <GBoxCard padding="0" overflowX="hidden">
51
- <Box padding="400" borderStartStartRadius="400" borderStartEndRadius="400" background="bg-fill">
52
- <InlineStack blockAlign="center" align="space-between">
53
- <GTextTooltip
54
- tooltipProps={tooltipContent ? { content: tooltipContent } : undefined}
55
- as="p"
56
- variant="headingMd"
57
- fontWeight="semibold"
58
- >
59
- {t('Orders from {{source}}', { source: sourceText })}
60
- </GTextTooltip>
61
-
62
- {!isEmpty && (
63
- <GMockDataTooltip isMockData={isMockData}>
64
- <Button variant="secondary" disabled={isMockData} onClick={onViewAllOrders}>
65
- {t('View {{source}} orders ({{totalOrders}})', {
66
- source: sourceText,
67
- totalOrders: totalFilteredOrders,
68
- })}
69
- </Button>
70
- </GMockDataTooltip>
71
- )}
72
- </InlineStack>
73
- </Box>
74
-
75
- {isEmpty ? (
76
- <OrderListingTableEmpty
77
- title={t('No order yet')}
78
- description={t('There are no orders from this {{source}} yet', { source })}
79
- />
80
- ) : (
81
- <OrderListingTable
82
- orders={orders}
83
- isLoading={isLoading}
84
- totalStoreOrders={totalStoreOrders}
85
- isMockData={isMockData}
86
- onViewAllStoreOrders={onViewAllStoreOrders}
87
- onViewOrderJourney={onViewOrderJourney}
88
- onViewOrderDetails={onViewOrderDetails}
89
- tableOptions={{
90
- hideSummary: true,
91
- hidePaginationRow: true,
92
- limitRowAmount: ORDER_LISTING_CONFIG.SHOW_LATEST_ORDER_LISTING_AMOUNT,
93
- fixedColumns: fixedColumns.map((column) => column.name),
94
- isLatestTable: true,
95
- }}
96
- />
97
- )}
98
- </GBoxCard>
99
- );
100
-
101
- function getOrderSourceTooltipContent(source: EReportSource) {
102
- switch (source) {
103
- case EReportSource.CAMPAIGN:
104
- return t('Orders came from the pages being tested in this experiment');
105
- case EReportSource.PAGE:
106
- return t('Orders came from this pages');
107
- default:
108
- return '';
109
- }
110
- }
111
- };