@healthya-team/pharmacy-analytics 0.0.0-stage → 1.0.0
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/LICENSE +21 -0
- package/README.md +243 -2
- package/dist/client/index.d.mts +215 -0
- package/dist/client/index.d.ts +215 -0
- package/dist/client/index.js +218 -0
- package/dist/client/index.mjs +161 -0
- package/dist/index.d.mts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +9391 -0
- package/dist/index.mjs +9359 -0
- package/dist/server/index.d.mts +21 -0
- package/dist/server/index.d.ts +21 -0
- package/dist/server/index.js +1011 -0
- package/dist/server/index.mjs +984 -0
- package/dist/studio/index.d.mts +393 -0
- package/dist/studio/index.d.ts +393 -0
- package/dist/studio/index.js +8222 -0
- package/dist/studio/index.mjs +8216 -0
- package/package.json +103 -4
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/client/index.ts
|
|
31
|
+
var client_exports = {};
|
|
32
|
+
__export(client_exports, {
|
|
33
|
+
AnalyticsProvider: () => AnalyticsProvider,
|
|
34
|
+
GaScript: () => GaScript,
|
|
35
|
+
MixpanelInit: () => MixpanelInit,
|
|
36
|
+
trackAuthCompleted: () => trackAuthCompleted,
|
|
37
|
+
trackCartAuthCompleted: () => trackCartAuthCompleted,
|
|
38
|
+
trackCartViewed: () => trackCartViewed,
|
|
39
|
+
trackCheckoutStarted: () => trackCheckoutStarted,
|
|
40
|
+
trackConditionSearched: () => trackConditionSearched,
|
|
41
|
+
trackConditionViewed: () => trackConditionViewed,
|
|
42
|
+
trackEligibilityChecked: () => trackEligibilityChecked,
|
|
43
|
+
trackEvent: () => trackEvent,
|
|
44
|
+
trackGetTreatmentClicked: () => trackGetTreatmentClicked,
|
|
45
|
+
trackOrderSuccess: () => trackOrderSuccess,
|
|
46
|
+
trackPMStartAssessmentClicked: () => trackPMStartAssessmentClicked,
|
|
47
|
+
trackPageView: () => trackPageView,
|
|
48
|
+
trackProductSearched: () => trackProductSearched,
|
|
49
|
+
trackProductSelected: () => trackProductSelected,
|
|
50
|
+
trackProductViewed: () => trackProductViewed,
|
|
51
|
+
trackQuestionnaireFlowStep: () => trackQuestionnaireFlowStep,
|
|
52
|
+
trackQuestionnairePm: () => trackQuestionnairePm,
|
|
53
|
+
trackStartAssessmentClicked: () => trackStartAssessmentClicked
|
|
54
|
+
});
|
|
55
|
+
module.exports = __toCommonJS(client_exports);
|
|
56
|
+
|
|
57
|
+
// src/client/analytics.ts
|
|
58
|
+
var import_mixpanel_browser = __toESM(require("mixpanel-browser"));
|
|
59
|
+
function trackEvent(eventName, params) {
|
|
60
|
+
if (typeof window === "undefined") {
|
|
61
|
+
console.log(`\u{1F4CA} trackEvent("${eventName}") called but window is undefined`);
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
if (typeof window.gtag !== "function") {
|
|
65
|
+
console.warn(`\u26A0\uFE0F trackEvent("${eventName}") called but gtag is not available. Consent might be denied.`);
|
|
66
|
+
} else {
|
|
67
|
+
console.log(`\u2705 Firing GA4 event: "${eventName}"`, params);
|
|
68
|
+
window.gtag("event", eventName, params);
|
|
69
|
+
}
|
|
70
|
+
try {
|
|
71
|
+
import_mixpanel_browser.default.track(eventName, params);
|
|
72
|
+
} catch (err) {
|
|
73
|
+
console.warn(`\u26A0\uFE0F Mixpanel track failed for "${eventName}":`, err);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
function trackPageView(pagePath, pageTitle) {
|
|
77
|
+
trackEvent("page_view", { page_path: pagePath, page_title: pageTitle });
|
|
78
|
+
}
|
|
79
|
+
function trackConditionViewed(params) {
|
|
80
|
+
trackEvent("condition_viewed", params);
|
|
81
|
+
}
|
|
82
|
+
function trackStartAssessmentClicked(params) {
|
|
83
|
+
trackEvent("start_assessment_clicked", params);
|
|
84
|
+
}
|
|
85
|
+
function trackEligibilityChecked(params) {
|
|
86
|
+
trackEvent("eligibility_checked", params);
|
|
87
|
+
}
|
|
88
|
+
function trackQuestionnaireFlowStep(params) {
|
|
89
|
+
trackEvent("questionnaire_flow_step", params);
|
|
90
|
+
}
|
|
91
|
+
function trackProductViewed(params) {
|
|
92
|
+
trackEvent("product_viewed", params);
|
|
93
|
+
}
|
|
94
|
+
function trackGetTreatmentClicked(params) {
|
|
95
|
+
trackEvent("get_treatment_clicked", params);
|
|
96
|
+
}
|
|
97
|
+
function trackPMStartAssessmentClicked(params) {
|
|
98
|
+
trackEvent("pm_start_assessment_clicked", params);
|
|
99
|
+
}
|
|
100
|
+
function trackAuthCompleted(params) {
|
|
101
|
+
trackEvent("auth_completed", params);
|
|
102
|
+
}
|
|
103
|
+
function trackQuestionnairePm(params) {
|
|
104
|
+
trackEvent("questionnaire_pm", params);
|
|
105
|
+
}
|
|
106
|
+
function trackCartViewed(params) {
|
|
107
|
+
trackEvent("cart_viewed", params);
|
|
108
|
+
}
|
|
109
|
+
function trackCheckoutStarted(params) {
|
|
110
|
+
trackEvent("checkout_started", params);
|
|
111
|
+
}
|
|
112
|
+
function trackOrderSuccess(params) {
|
|
113
|
+
trackEvent("order_success", params);
|
|
114
|
+
}
|
|
115
|
+
function trackCartAuthCompleted(params) {
|
|
116
|
+
trackEvent("cart_auth_completed", params);
|
|
117
|
+
}
|
|
118
|
+
function trackProductSelected(params) {
|
|
119
|
+
trackEvent("product_selected", params);
|
|
120
|
+
}
|
|
121
|
+
function trackConditionSearched(params) {
|
|
122
|
+
trackEvent("condition_searched", params);
|
|
123
|
+
}
|
|
124
|
+
function trackProductSearched(params) {
|
|
125
|
+
trackEvent("product_searched", params);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
// src/client/GaScript.tsx
|
|
129
|
+
var import_script = __toESM(require("next/script"));
|
|
130
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
131
|
+
function GaScript({ measurementId }) {
|
|
132
|
+
const id = measurementId || (typeof process !== "undefined" ? process.env.NEXT_PUBLIC_GA_MEASUREMENT_ID : void 0);
|
|
133
|
+
if (!id) return null;
|
|
134
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
135
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
136
|
+
import_script.default,
|
|
137
|
+
{
|
|
138
|
+
id: "ga4-script",
|
|
139
|
+
src: `https://www.googletagmanager.com/gtag/js?id=${id}`,
|
|
140
|
+
strategy: "beforeInteractive"
|
|
141
|
+
}
|
|
142
|
+
),
|
|
143
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_script.default, { id: "ga4-init", strategy: "afterInteractive", children: `
|
|
144
|
+
window.dataLayer = window.dataLayer || [];
|
|
145
|
+
function gtag(){dataLayer.push(arguments);}
|
|
146
|
+
gtag('js', new Date());
|
|
147
|
+
|
|
148
|
+
// Default consent state \u2014 denied until user accepts cookies
|
|
149
|
+
gtag('consent', 'default', {
|
|
150
|
+
analytics_storage: 'denied',
|
|
151
|
+
ad_storage: 'denied',
|
|
152
|
+
wait_for_update: 500
|
|
153
|
+
});
|
|
154
|
+
|
|
155
|
+
gtag('config', '${id}', {
|
|
156
|
+
send_page_view: false,
|
|
157
|
+
});
|
|
158
|
+
` })
|
|
159
|
+
] });
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
// src/client/MixpanelInit.tsx
|
|
163
|
+
var import_react = require("react");
|
|
164
|
+
var import_mixpanel_browser2 = __toESM(require("mixpanel-browser"));
|
|
165
|
+
function MixpanelInit({ token } = {}) {
|
|
166
|
+
(0, import_react.useEffect)(() => {
|
|
167
|
+
const activeToken = token || (typeof process !== "undefined" ? process.env.NEXT_PUBLIC_MIX_PANEL_TOKEN : void 0);
|
|
168
|
+
if (!activeToken) return;
|
|
169
|
+
import_mixpanel_browser2.default.init(activeToken, {
|
|
170
|
+
persistence: "localStorage",
|
|
171
|
+
autocapture: false,
|
|
172
|
+
track_pageview: false,
|
|
173
|
+
record_sessions_percent: 0
|
|
174
|
+
});
|
|
175
|
+
}, [token]);
|
|
176
|
+
return null;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
// src/client/AnalyticsProvider.tsx
|
|
180
|
+
var import_react2 = require("react");
|
|
181
|
+
var import_navigation = require("next/navigation");
|
|
182
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
183
|
+
function AnalyticsProvider({ children }) {
|
|
184
|
+
const pathname = (0, import_navigation.usePathname)();
|
|
185
|
+
(0, import_react2.useEffect)(() => {
|
|
186
|
+
if (typeof window === "undefined") return;
|
|
187
|
+
if (window.__lastTrackedPath === pathname) return;
|
|
188
|
+
window.__lastTrackedPath = pathname;
|
|
189
|
+
setTimeout(() => {
|
|
190
|
+
trackPageView(pathname, typeof document !== "undefined" ? document.title : "");
|
|
191
|
+
}, 0);
|
|
192
|
+
}, [pathname]);
|
|
193
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children });
|
|
194
|
+
}
|
|
195
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
196
|
+
0 && (module.exports = {
|
|
197
|
+
AnalyticsProvider,
|
|
198
|
+
GaScript,
|
|
199
|
+
MixpanelInit,
|
|
200
|
+
trackAuthCompleted,
|
|
201
|
+
trackCartAuthCompleted,
|
|
202
|
+
trackCartViewed,
|
|
203
|
+
trackCheckoutStarted,
|
|
204
|
+
trackConditionSearched,
|
|
205
|
+
trackConditionViewed,
|
|
206
|
+
trackEligibilityChecked,
|
|
207
|
+
trackEvent,
|
|
208
|
+
trackGetTreatmentClicked,
|
|
209
|
+
trackOrderSuccess,
|
|
210
|
+
trackPMStartAssessmentClicked,
|
|
211
|
+
trackPageView,
|
|
212
|
+
trackProductSearched,
|
|
213
|
+
trackProductSelected,
|
|
214
|
+
trackProductViewed,
|
|
215
|
+
trackQuestionnaireFlowStep,
|
|
216
|
+
trackQuestionnairePm,
|
|
217
|
+
trackStartAssessmentClicked
|
|
218
|
+
});
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
// src/client/analytics.ts
|
|
2
|
+
import mixpanel from "mixpanel-browser";
|
|
3
|
+
function trackEvent(eventName, params) {
|
|
4
|
+
if (typeof window === "undefined") {
|
|
5
|
+
console.log(`\u{1F4CA} trackEvent("${eventName}") called but window is undefined`);
|
|
6
|
+
return;
|
|
7
|
+
}
|
|
8
|
+
if (typeof window.gtag !== "function") {
|
|
9
|
+
console.warn(`\u26A0\uFE0F trackEvent("${eventName}") called but gtag is not available. Consent might be denied.`);
|
|
10
|
+
} else {
|
|
11
|
+
console.log(`\u2705 Firing GA4 event: "${eventName}"`, params);
|
|
12
|
+
window.gtag("event", eventName, params);
|
|
13
|
+
}
|
|
14
|
+
try {
|
|
15
|
+
mixpanel.track(eventName, params);
|
|
16
|
+
} catch (err) {
|
|
17
|
+
console.warn(`\u26A0\uFE0F Mixpanel track failed for "${eventName}":`, err);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
function trackPageView(pagePath, pageTitle) {
|
|
21
|
+
trackEvent("page_view", { page_path: pagePath, page_title: pageTitle });
|
|
22
|
+
}
|
|
23
|
+
function trackConditionViewed(params) {
|
|
24
|
+
trackEvent("condition_viewed", params);
|
|
25
|
+
}
|
|
26
|
+
function trackStartAssessmentClicked(params) {
|
|
27
|
+
trackEvent("start_assessment_clicked", params);
|
|
28
|
+
}
|
|
29
|
+
function trackEligibilityChecked(params) {
|
|
30
|
+
trackEvent("eligibility_checked", params);
|
|
31
|
+
}
|
|
32
|
+
function trackQuestionnaireFlowStep(params) {
|
|
33
|
+
trackEvent("questionnaire_flow_step", params);
|
|
34
|
+
}
|
|
35
|
+
function trackProductViewed(params) {
|
|
36
|
+
trackEvent("product_viewed", params);
|
|
37
|
+
}
|
|
38
|
+
function trackGetTreatmentClicked(params) {
|
|
39
|
+
trackEvent("get_treatment_clicked", params);
|
|
40
|
+
}
|
|
41
|
+
function trackPMStartAssessmentClicked(params) {
|
|
42
|
+
trackEvent("pm_start_assessment_clicked", params);
|
|
43
|
+
}
|
|
44
|
+
function trackAuthCompleted(params) {
|
|
45
|
+
trackEvent("auth_completed", params);
|
|
46
|
+
}
|
|
47
|
+
function trackQuestionnairePm(params) {
|
|
48
|
+
trackEvent("questionnaire_pm", params);
|
|
49
|
+
}
|
|
50
|
+
function trackCartViewed(params) {
|
|
51
|
+
trackEvent("cart_viewed", params);
|
|
52
|
+
}
|
|
53
|
+
function trackCheckoutStarted(params) {
|
|
54
|
+
trackEvent("checkout_started", params);
|
|
55
|
+
}
|
|
56
|
+
function trackOrderSuccess(params) {
|
|
57
|
+
trackEvent("order_success", params);
|
|
58
|
+
}
|
|
59
|
+
function trackCartAuthCompleted(params) {
|
|
60
|
+
trackEvent("cart_auth_completed", params);
|
|
61
|
+
}
|
|
62
|
+
function trackProductSelected(params) {
|
|
63
|
+
trackEvent("product_selected", params);
|
|
64
|
+
}
|
|
65
|
+
function trackConditionSearched(params) {
|
|
66
|
+
trackEvent("condition_searched", params);
|
|
67
|
+
}
|
|
68
|
+
function trackProductSearched(params) {
|
|
69
|
+
trackEvent("product_searched", params);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// src/client/GaScript.tsx
|
|
73
|
+
import Script from "next/script";
|
|
74
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
75
|
+
function GaScript({ measurementId }) {
|
|
76
|
+
const id = measurementId || (typeof process !== "undefined" ? process.env.NEXT_PUBLIC_GA_MEASUREMENT_ID : void 0);
|
|
77
|
+
if (!id) return null;
|
|
78
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
79
|
+
/* @__PURE__ */ jsx(
|
|
80
|
+
Script,
|
|
81
|
+
{
|
|
82
|
+
id: "ga4-script",
|
|
83
|
+
src: `https://www.googletagmanager.com/gtag/js?id=${id}`,
|
|
84
|
+
strategy: "beforeInteractive"
|
|
85
|
+
}
|
|
86
|
+
),
|
|
87
|
+
/* @__PURE__ */ jsx(Script, { id: "ga4-init", strategy: "afterInteractive", children: `
|
|
88
|
+
window.dataLayer = window.dataLayer || [];
|
|
89
|
+
function gtag(){dataLayer.push(arguments);}
|
|
90
|
+
gtag('js', new Date());
|
|
91
|
+
|
|
92
|
+
// Default consent state \u2014 denied until user accepts cookies
|
|
93
|
+
gtag('consent', 'default', {
|
|
94
|
+
analytics_storage: 'denied',
|
|
95
|
+
ad_storage: 'denied',
|
|
96
|
+
wait_for_update: 500
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
gtag('config', '${id}', {
|
|
100
|
+
send_page_view: false,
|
|
101
|
+
});
|
|
102
|
+
` })
|
|
103
|
+
] });
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
// src/client/MixpanelInit.tsx
|
|
107
|
+
import { useEffect } from "react";
|
|
108
|
+
import mixpanel2 from "mixpanel-browser";
|
|
109
|
+
function MixpanelInit({ token } = {}) {
|
|
110
|
+
useEffect(() => {
|
|
111
|
+
const activeToken = token || (typeof process !== "undefined" ? process.env.NEXT_PUBLIC_MIX_PANEL_TOKEN : void 0);
|
|
112
|
+
if (!activeToken) return;
|
|
113
|
+
mixpanel2.init(activeToken, {
|
|
114
|
+
persistence: "localStorage",
|
|
115
|
+
autocapture: false,
|
|
116
|
+
track_pageview: false,
|
|
117
|
+
record_sessions_percent: 0
|
|
118
|
+
});
|
|
119
|
+
}, [token]);
|
|
120
|
+
return null;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
// src/client/AnalyticsProvider.tsx
|
|
124
|
+
import { useEffect as useEffect2 } from "react";
|
|
125
|
+
import { usePathname } from "next/navigation";
|
|
126
|
+
import { Fragment as Fragment2, jsx as jsx2 } from "react/jsx-runtime";
|
|
127
|
+
function AnalyticsProvider({ children }) {
|
|
128
|
+
const pathname = usePathname();
|
|
129
|
+
useEffect2(() => {
|
|
130
|
+
if (typeof window === "undefined") return;
|
|
131
|
+
if (window.__lastTrackedPath === pathname) return;
|
|
132
|
+
window.__lastTrackedPath = pathname;
|
|
133
|
+
setTimeout(() => {
|
|
134
|
+
trackPageView(pathname, typeof document !== "undefined" ? document.title : "");
|
|
135
|
+
}, 0);
|
|
136
|
+
}, [pathname]);
|
|
137
|
+
return /* @__PURE__ */ jsx2(Fragment2, { children });
|
|
138
|
+
}
|
|
139
|
+
export {
|
|
140
|
+
AnalyticsProvider,
|
|
141
|
+
GaScript,
|
|
142
|
+
MixpanelInit,
|
|
143
|
+
trackAuthCompleted,
|
|
144
|
+
trackCartAuthCompleted,
|
|
145
|
+
trackCartViewed,
|
|
146
|
+
trackCheckoutStarted,
|
|
147
|
+
trackConditionSearched,
|
|
148
|
+
trackConditionViewed,
|
|
149
|
+
trackEligibilityChecked,
|
|
150
|
+
trackEvent,
|
|
151
|
+
trackGetTreatmentClicked,
|
|
152
|
+
trackOrderSuccess,
|
|
153
|
+
trackPMStartAssessmentClicked,
|
|
154
|
+
trackPageView,
|
|
155
|
+
trackProductSearched,
|
|
156
|
+
trackProductSelected,
|
|
157
|
+
trackProductViewed,
|
|
158
|
+
trackQuestionnaireFlowStep,
|
|
159
|
+
trackQuestionnairePm,
|
|
160
|
+
trackStartAssessmentClicked
|
|
161
|
+
};
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { AnalyticsProvider, AuthCompletedParams, CartAuthCompletedParams, CartViewedParams, CheckoutStartedParams, ConditionSearchedParams, ConditionTrackingParams, EligibilityCheckedParams, GaScript, GaScriptProps, GetTreatmentClickedParams, MixpanelInit, MixpanelInitProps, OrderSuccessParams, PMStartAssessmentClickedParams, ProductSearchedParams, ProductSelectedParams, ProductTrackingParams, QuestionnaireFlowStepParams, QuestionnairePmParams, StartAssessmentClickedParams, trackAuthCompleted, trackCartAuthCompleted, trackCartViewed, trackCheckoutStarted, trackConditionSearched, trackConditionViewed, trackEligibilityChecked, trackEvent, trackGetTreatmentClicked, trackOrderSuccess, trackPMStartAssessmentClicked, trackPageView, trackProductSearched, trackProductSelected, trackProductViewed, trackQuestionnaireFlowStep, trackQuestionnairePm, trackStartAssessmentClicked } from './client/index.mjs';
|
|
2
|
+
export { AnalyticsServerConfig, GET, POST, createAnalyticsApiHandler } from './server/index.mjs';
|
|
3
|
+
export { AnalyticsData, AppearanceTab, BrowserData, ChannelData, CityData, CountriesTab, CountryData, DASHBOARD_CSS, DashboardShell, DataTable, DateRange, DeviceCategory, DevicesTab, Donut, ErrorState, EventData, EventParamRow, GA_ACCENT, HorizontalBar, HourlyDataPoint, InitialLoading, LandingPage, MainSection, MetricCard, MetricGrid, OsData, OverviewMetrics, OverviewTab, PagesTab, Panel, PathCell, PharmacyAnalyticsDashboard, PharmacyAnalyticsPluginConfig, QueriesTab, ReferrerData, SC_ACCENT, ScAppearanceTab, ScCountriesTab, ScCountry, ScDateRange, ScDevice, ScDevicesTab, ScOverviewTab, ScPage, ScPagesTab, ScQueriesTab, ScQuery, ScRow, ScSearchAppearance, ScSitemapsTab, ScTab, ScTimeSeriesPoint, SearchConsoleDashboard, SearchConsoleData, SearchConsolePluginConfig, SearchConsoleTab, SearchConsoleTool, Sitemap, SitemapContent, SitemapsTab, SkeletonChart, StatusPill, TimeSeriesDataPoint, TopPage, TrafficSource, PharmacyAnalyticsDashboard as UnifiedDashboard, UnifiedDashboardProps, UnifiedTabId, UserTypeData, pharmacyAnalyticsPlugin, searchConsolePlugin } from './studio/index.mjs';
|
|
4
|
+
import 'react';
|
|
5
|
+
import 'sanity';
|
|
6
|
+
import 'lucide-react';
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { AnalyticsProvider, AuthCompletedParams, CartAuthCompletedParams, CartViewedParams, CheckoutStartedParams, ConditionSearchedParams, ConditionTrackingParams, EligibilityCheckedParams, GaScript, GaScriptProps, GetTreatmentClickedParams, MixpanelInit, MixpanelInitProps, OrderSuccessParams, PMStartAssessmentClickedParams, ProductSearchedParams, ProductSelectedParams, ProductTrackingParams, QuestionnaireFlowStepParams, QuestionnairePmParams, StartAssessmentClickedParams, trackAuthCompleted, trackCartAuthCompleted, trackCartViewed, trackCheckoutStarted, trackConditionSearched, trackConditionViewed, trackEligibilityChecked, trackEvent, trackGetTreatmentClicked, trackOrderSuccess, trackPMStartAssessmentClicked, trackPageView, trackProductSearched, trackProductSelected, trackProductViewed, trackQuestionnaireFlowStep, trackQuestionnairePm, trackStartAssessmentClicked } from './client/index.js';
|
|
2
|
+
export { AnalyticsServerConfig, GET, POST, createAnalyticsApiHandler } from './server/index.js';
|
|
3
|
+
export { AnalyticsData, AppearanceTab, BrowserData, ChannelData, CityData, CountriesTab, CountryData, DASHBOARD_CSS, DashboardShell, DataTable, DateRange, DeviceCategory, DevicesTab, Donut, ErrorState, EventData, EventParamRow, GA_ACCENT, HorizontalBar, HourlyDataPoint, InitialLoading, LandingPage, MainSection, MetricCard, MetricGrid, OsData, OverviewMetrics, OverviewTab, PagesTab, Panel, PathCell, PharmacyAnalyticsDashboard, PharmacyAnalyticsPluginConfig, QueriesTab, ReferrerData, SC_ACCENT, ScAppearanceTab, ScCountriesTab, ScCountry, ScDateRange, ScDevice, ScDevicesTab, ScOverviewTab, ScPage, ScPagesTab, ScQueriesTab, ScQuery, ScRow, ScSearchAppearance, ScSitemapsTab, ScTab, ScTimeSeriesPoint, SearchConsoleDashboard, SearchConsoleData, SearchConsolePluginConfig, SearchConsoleTab, SearchConsoleTool, Sitemap, SitemapContent, SitemapsTab, SkeletonChart, StatusPill, TimeSeriesDataPoint, TopPage, TrafficSource, PharmacyAnalyticsDashboard as UnifiedDashboard, UnifiedDashboardProps, UnifiedTabId, UserTypeData, pharmacyAnalyticsPlugin, searchConsolePlugin } from './studio/index.js';
|
|
4
|
+
import 'react';
|
|
5
|
+
import 'sanity';
|
|
6
|
+
import 'lucide-react';
|