@gem-sdk/analytics 1.0.0-dev.21 → 1.0.0-dev.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/api/graphql/fragments/pathAnalytic.generated.d.ts +25 -0
- package/dist/esm/components/CardPathAnalysis/CardJourneyAnalysis.d.ts +9 -0
- package/dist/esm/components/CardPathAnalysis/components/CardPathAnalysis/CardAnalyticEmpty.d.ts +8 -0
- package/dist/esm/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysis.d.ts +15 -0
- package/dist/esm/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisContent.d.ts +6 -0
- package/dist/esm/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisEmpty.d.ts +5 -0
- package/dist/esm/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisSkeleton.d.ts +1 -0
- package/dist/esm/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisWrapper.d.ts +13 -0
- package/dist/esm/components/CardPathAnalysis/components/CardPathAnalysis/index.d.ts +1 -0
- package/dist/esm/components/CardPathAnalysis/components/PathAnalysisChart.d.ts +8 -0
- package/dist/esm/components/CardPathAnalysis/components/index.d.ts +1 -0
- package/dist/esm/components/CardPathAnalysis/configs/index.d.ts +2 -0
- package/dist/esm/components/CardPathAnalysis/constants/index.d.ts +1 -0
- package/dist/esm/components/CardPathAnalysis/constants/path-analysis.d.ts +73 -0
- package/dist/esm/components/CardPathAnalysis/contexts/PathAnalysisConfigProvider.d.ts +23 -0
- package/dist/esm/components/CardPathAnalysis/contexts/PathAnalysisProvider.d.ts +59 -0
- package/dist/esm/components/CardPathAnalysis/contexts/index.d.ts +2 -0
- package/dist/esm/components/CardPathAnalysis/helpers/index.d.ts +2 -0
- package/dist/esm/components/CardPathAnalysis/helpers/metricHelpers.d.ts +16 -0
- package/dist/esm/components/CardPathAnalysis/helpers/pathAnalysis.d.ts +12 -0
- package/dist/esm/components/CardPathAnalysis/helpers/pathAnalysisChart.d.ts +17 -0
- package/dist/esm/components/CardPathAnalysis/helpers/treeUtils.d.ts +7 -0
- package/dist/esm/components/CardPathAnalysis/hooks/usePathAnalysisChart.d.ts +15 -0
- package/dist/esm/components/CardPathAnalysis/hooks/usePathAnalysisFunnel.d.ts +22 -0
- package/dist/esm/components/CardPathAnalysis/hooks/usePathAnalyticsMerger.d.ts +10 -0
- package/dist/esm/components/CardPathAnalysis/index.d.ts +5 -0
- package/dist/esm/components/CardPathAnalysis/stores/funnel-chart.d.ts +12 -0
- package/dist/esm/components/CardPathAnalysis/stores/index.d.ts +3 -0
- package/dist/esm/components/CardPathAnalysis/stores/path-analysis-campaign.d.ts +10 -0
- package/dist/esm/components/CardPathAnalysis/stores/path-analysis.d.ts +6 -0
- package/dist/esm/components/CardPathAnalysis/types/index.d.ts +1 -0
- package/dist/esm/components/CardPathAnalysis/types/path-analysis.d.ts +6 -0
- package/dist/esm/components/index.d.ts +1 -0
- package/dist/esm/gemxql.js +64 -1
- package/dist/esm/gemxql.mjs +64 -1
- package/dist/esm/hooks/useSearchParams.d.ts +1 -0
- package/dist/esm/index.js +21622 -108
- package/dist/esm/index.mjs +21622 -108
- package/dist/esm/modules/analytics/constants/index.d.ts +15 -0
- package/dist/esm/modules/analytics/index.d.ts +3 -0
- package/dist/esm/modules/analytics/types/index.d.ts +41 -0
- package/dist/esm/modules/analytics/utils/formatMetric.d.ts +8 -0
- package/dist/esm/modules/analytics/utils/getPAMetricValue.d.ts +3 -0
- package/dist/esm/modules/analytics/utils/index.d.ts +3 -0
- package/dist/esm/modules/analytics/utils/metric.d.ts +26 -0
- package/dist/esm/providers/ConvertMoneyProvider.d.ts +1 -1
- package/dist/esm/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/TooltipWithPortal.d.ts +1 -1
- package/dist/esm/shared/charts/components/GPolarisViz/hooks/useRootContainer.d.ts +1 -1
- package/dist/esm/shared/components/GBox/GBox.d.ts +9 -0
- package/dist/esm/shared/components/GBox/index.d.ts +1 -0
- package/dist/esm/shared/components/GFeatureLocked/GFeatureLocked.d.ts +14 -0
- package/dist/esm/shared/components/GFeatureLocked/constants.d.ts +3 -0
- package/dist/esm/shared/components/GFeatureLocked/index.d.ts +2 -0
- package/dist/esm/shared/components/GFeatureLocked/types.d.ts +15 -0
- package/dist/esm/shared/components/index.d.ts +2 -0
- package/dist/esm/types/index.d.ts +1 -0
- package/dist/esm/types/metric.d.ts +20 -1
- package/dist/esm/types/pricing.d.ts +33 -0
- package/dist/esm/types/template.d.ts +19 -0
- package/dist/esm/types.js +39 -1
- package/dist/esm/types.mjs +39 -1
- package/dist/esm/utils/deep-copy.d.ts +1 -0
- package/dist/esm/utils/index.d.ts +2 -0
- package/dist/esm/utils/template-type.d.ts +2 -0
- package/dist/style.css +1 -1
- package/dist/umd/esm/api/graphql/fragments/pathAnalytic.generated.d.ts +25 -0
- package/dist/umd/esm/components/CardPathAnalysis/CardJourneyAnalysis.d.ts +9 -0
- package/dist/umd/esm/components/CardPathAnalysis/components/CardPathAnalysis/CardAnalyticEmpty.d.ts +8 -0
- package/dist/umd/esm/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysis.d.ts +15 -0
- package/dist/umd/esm/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisContent.d.ts +6 -0
- package/dist/umd/esm/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisEmpty.d.ts +5 -0
- package/dist/umd/esm/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisSkeleton.d.ts +1 -0
- package/dist/umd/esm/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisWrapper.d.ts +13 -0
- package/dist/umd/esm/components/CardPathAnalysis/components/CardPathAnalysis/index.d.ts +1 -0
- package/dist/umd/esm/components/CardPathAnalysis/components/PathAnalysisChart.d.ts +8 -0
- package/dist/umd/esm/components/CardPathAnalysis/components/index.d.ts +1 -0
- package/dist/umd/esm/components/CardPathAnalysis/configs/index.d.ts +2 -0
- package/dist/umd/esm/components/CardPathAnalysis/constants/index.d.ts +1 -0
- package/dist/umd/esm/components/CardPathAnalysis/constants/path-analysis.d.ts +73 -0
- package/dist/umd/esm/components/CardPathAnalysis/contexts/PathAnalysisConfigProvider.d.ts +23 -0
- package/dist/umd/esm/components/CardPathAnalysis/contexts/PathAnalysisProvider.d.ts +59 -0
- package/dist/umd/esm/components/CardPathAnalysis/contexts/index.d.ts +2 -0
- package/dist/umd/esm/components/CardPathAnalysis/helpers/index.d.ts +2 -0
- package/dist/umd/esm/components/CardPathAnalysis/helpers/metricHelpers.d.ts +16 -0
- package/dist/umd/esm/components/CardPathAnalysis/helpers/pathAnalysis.d.ts +12 -0
- package/dist/umd/esm/components/CardPathAnalysis/helpers/pathAnalysisChart.d.ts +17 -0
- package/dist/umd/esm/components/CardPathAnalysis/helpers/treeUtils.d.ts +7 -0
- package/dist/umd/esm/components/CardPathAnalysis/hooks/usePathAnalysisChart.d.ts +15 -0
- package/dist/umd/esm/components/CardPathAnalysis/hooks/usePathAnalysisFunnel.d.ts +22 -0
- package/dist/umd/esm/components/CardPathAnalysis/hooks/usePathAnalyticsMerger.d.ts +10 -0
- package/dist/umd/esm/components/CardPathAnalysis/index.d.ts +5 -0
- package/dist/umd/esm/components/CardPathAnalysis/stores/funnel-chart.d.ts +12 -0
- package/dist/umd/esm/components/CardPathAnalysis/stores/index.d.ts +3 -0
- package/dist/umd/esm/components/CardPathAnalysis/stores/path-analysis-campaign.d.ts +10 -0
- package/dist/umd/esm/components/CardPathAnalysis/stores/path-analysis.d.ts +6 -0
- package/dist/umd/esm/components/CardPathAnalysis/types/index.d.ts +1 -0
- package/dist/umd/esm/components/CardPathAnalysis/types/path-analysis.d.ts +6 -0
- package/dist/umd/esm/components/index.d.ts +1 -0
- package/dist/umd/esm/hooks/useSearchParams.d.ts +1 -0
- package/dist/umd/esm/modules/analytics/constants/index.d.ts +15 -0
- package/dist/umd/esm/modules/analytics/index.d.ts +3 -0
- package/dist/umd/esm/modules/analytics/types/index.d.ts +41 -0
- package/dist/umd/esm/modules/analytics/utils/formatMetric.d.ts +8 -0
- package/dist/umd/esm/modules/analytics/utils/getPAMetricValue.d.ts +3 -0
- package/dist/umd/esm/modules/analytics/utils/index.d.ts +3 -0
- package/dist/umd/esm/modules/analytics/utils/metric.d.ts +26 -0
- package/dist/umd/esm/providers/ConvertMoneyProvider.d.ts +1 -1
- package/dist/umd/esm/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/TooltipWithPortal.d.ts +1 -1
- package/dist/umd/esm/shared/charts/components/GPolarisViz/hooks/useRootContainer.d.ts +1 -1
- package/dist/umd/esm/shared/components/GBox/GBox.d.ts +9 -0
- package/dist/umd/esm/shared/components/GBox/index.d.ts +1 -0
- package/dist/umd/esm/shared/components/GFeatureLocked/GFeatureLocked.d.ts +14 -0
- package/dist/umd/esm/shared/components/GFeatureLocked/constants.d.ts +3 -0
- package/dist/umd/esm/shared/components/GFeatureLocked/index.d.ts +2 -0
- package/dist/umd/esm/shared/components/GFeatureLocked/types.d.ts +15 -0
- package/dist/umd/esm/shared/components/index.d.ts +2 -0
- package/dist/umd/esm/types/index.d.ts +1 -0
- package/dist/umd/esm/types/metric.d.ts +20 -1
- package/dist/umd/esm/types/pricing.d.ts +33 -0
- package/dist/umd/esm/types/template.d.ts +19 -0
- package/dist/umd/esm/utils/deep-copy.d.ts +1 -0
- package/dist/umd/esm/utils/index.d.ts +2 -0
- package/dist/umd/esm/utils/template-type.d.ts +2 -0
- package/dist/umd/gemxql.js +1 -1
- package/dist/umd/index.js +1 -1
- package/dist/umd/types.js +1 -1
- package/package.json +5 -3
package/dist/umd/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e
|
|
1
|
+
!function(_,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((_="undefined"!=typeof globalThis?globalThis:_||self).GemAnalytics={})}(this,function(_){"use strict";var e,T,E,A,i,I,t;_.EMetricKey=void 0,(e=_.EMetricKey||(_.EMetricKey={})).SESSION="sessions",e.ORDERS="orders",e.PAGE_VIEWS="pageviews",e.VISITORS="visitors",e.BOUNCE_RATE="bounce_rate",e.CTR="ctr",e.CONVERSION_RATE="conversion_rate",e.AVG_TIME_ON_PAGE="average_time_on_page",e.ADDED_TO_CART="added_to_cart",e.ADD_TO_CART_RATE="added_to_cart_rate",e.REACHED_CHECKOUT="sessions_that_reached_checkout",e.COMPLETE_CHECKOUT="sessions_that_completed_checkout",e.CART_ADDITION="sessions_with_cart_additions",e.AOV="aov",e.REVENUE="revenue",e.RPV="revenue_per_visitor",e.VISITOR_ITEMS="visitor_items",e.DEVICE_ITEMS="device_items",e.TRAFFIC_SOURCE_ITEMS="traffic_source_items",e.PAGE_PATH_ANALYSIS="PAGE_PATH_ANALYSIS",_.EAnalyticMode=void 0,(T=_.EAnalyticMode||(_.EAnalyticMode={})).ALL_SESSION="ALL_SESSION",T.FIRST_SESSION="FIRST_SESSION",T.PAGE_ONLY="PAGE_ONLY",_.EVisitorType=void 0,(E=_.EVisitorType||(_.EVisitorType={})).NEW="new",E.RETURNING="returning",_.EDeviceType=void 0,(A=_.EDeviceType||(_.EDeviceType={})).DESKTOP="desktop",A.MOBILE="mobile",A.TABLET="tablet",_.ETrafficSourceType=void 0,(i=_.ETrafficSourceType||(_.ETrafficSourceType={})).DIRECT="direct",i.EMAIL="email",i.REFERRAL="referral",i.ORGANIC_SOCIAL="organic-social",i.ORGANIC_SEARCH="organic-search",i.PAID_SOCIAL="paid-social",i.PAID_SEARCH="paid-search",i.SMS="sms",_.IPlanKey=void 0,(I=_.IPlanKey||(_.IPlanKey={})).CONTENT_TESTING="content-testing",I.PAGE_OPT="page-optimize",I.FUNNEL_OPT="funnel-optimize",I.PROFIT_OPT="profit-optimize",I.TRIAL_PAGE_OPT="trial-page-optimize",I.TRIAL_FUNNEL_OPT="trial-funnel-optimize",I.TRIAL_PROFIT_OPT="trial-profit-optimize",_.IShopPlanState=void 0,(t=_.IShopPlanState||(_.IShopPlanState={})).TRIAL_PAGE_OPT="TRIAL_PAGE_OPT",t.TRIAL_FUNNEL_OPT="TRIAL_FUNNEL_OPT",t.TRIAL_PROFIT_OPT="TRIAL_PROFIT_OPT",t.ACTIVE_PAGE_OPT="ACTIVE_PAGE_OPT",t.ACTIVE_FUNNEL_OPT="ACTIVE_FUNNEL_OPT",t.ACTIVE_PROFIT_OPT="ACTIVE_PROFIT_OPT",t.LOADING_PLAN="LOADING_PLAN",t.TRIAL_EXPIRED="TRIAL_EXPIRED",t.ACTIVE_PAGE_OPT_AND_TRIAL_PAGE_OPT="ACTIVE_PAGE_OPT_AND_TRIAL_PAGE_OPT",t.ACTIVE_PAGE_OPT_AND_TRIAL_FUNNEL_OPT="ACTIVE_PAGE_OPT_AND_TRIAL_FUNNEL_OPT",t.ACTIVE_FUNNEL_OPT_AND_TRIAL_FUNNEL_OPT="ACTIVE_FUNNEL_OPT_AND_TRIAL_FUNNEL_OPT"});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/analytics",
|
|
3
|
-
"version": "1.0.0-dev.
|
|
3
|
+
"version": "1.0.0-dev.41",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "gemx-dev",
|
|
6
6
|
"sideEffects": [
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"scripts": {
|
|
63
63
|
"build": "rollup --config rollup.config.mjs --environment NODE_ENV:production && yarn css",
|
|
64
64
|
"clean": "rm -rf dist",
|
|
65
|
-
"css": "
|
|
66
|
-
"css-watch": "
|
|
65
|
+
"css": "sass src/styles/index.scss dist/.style.tmp.css --no-source-map && tailwindcss -i dist/.style.tmp.css -o dist/style.css --minify && rm dist/.style.tmp.css",
|
|
66
|
+
"css-watch": "sass src/styles/index.scss dist/.style.tmp.css --no-source-map && tailwindcss -i dist/.style.tmp.css -o dist/style.css --watch",
|
|
67
67
|
"dev": "concurrently \"rollup --config rollup.config.mjs --watch\" \"yarn css-watch\"",
|
|
68
68
|
"format": "prettier --write \"src/**/*.{ts,tsx,json,css}\"",
|
|
69
69
|
"format:check": "prettier --check \"src/**/*.{ts,tsx,json,css}\"",
|
|
@@ -78,6 +78,7 @@
|
|
|
78
78
|
"@gem-sdk/eslint-config": "workspace:*",
|
|
79
79
|
"@gem-sdk/rollup-config": "workspace:*",
|
|
80
80
|
"@gem-sdk/tsconfig": "workspace:*",
|
|
81
|
+
"@remix-run/react": "^2.15.2",
|
|
81
82
|
"@shopify/polaris": "13.9.5",
|
|
82
83
|
"@shopify/polaris-icons": "9.3.1",
|
|
83
84
|
"@shopify/polaris-viz": "16.16.0",
|
|
@@ -104,6 +105,7 @@
|
|
|
104
105
|
"zustand": "^4.4.7"
|
|
105
106
|
},
|
|
106
107
|
"peerDependencies": {
|
|
108
|
+
"@remix-run/react": ">=2",
|
|
107
109
|
"@shopify/polaris": ">=12",
|
|
108
110
|
"@shopify/polaris-viz": ">=10",
|
|
109
111
|
"@tanstack/react-query": ">=4",
|