@liiift-studio/sanity-visitor-insights 0.55.0 → 0.56.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/dist/index.js +6 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/studio/VisitorInsightsTool.tsx +11 -6
- package/src/studio/panels.test.tsx +30 -0
- package/src/studio/panels.tsx +4 -3
package/dist/index.js
CHANGED
|
@@ -1936,7 +1936,7 @@ function OverviewPanel({ data, previous, onBrush }) {
|
|
|
1936
1936
|
average.status === "partial" && average.note && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_sanity_ui_compat3.Text, { size: 0, muted: true, children: average.note })
|
|
1937
1937
|
] });
|
|
1938
1938
|
})(),
|
|
1939
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_sanity_ui_compat3.Text, { size: 0, muted: true, children: "From your
|
|
1939
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_sanity_ui_compat3.Text, { size: 0, muted: true, children: "From your orders, so exact." })
|
|
1940
1940
|
] }) }),
|
|
1941
1941
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_sanity_ui_compat3.Card, { padding: 3, radius: 2, tone: "transparent", border: true, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_sanity_ui_compat3.Stack, { space: 3, children: [
|
|
1942
1942
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_sanity_ui_compat3.Label, { size: 1, muted: true, children: "Visitors per order" }),
|
|
@@ -2856,7 +2856,7 @@ function TypefaceInterestPanel({ data }) {
|
|
|
2856
2856
|
] }),
|
|
2857
2857
|
(data.licences?.length ?? 0) > 0 && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_sanity_ui_compat3.Stack, { space: 3, children: [
|
|
2858
2858
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(SectionTitle, { title: "How licences sell" }),
|
|
2859
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_sanity_ui_compat3.Text, { size: 1, muted: true, children: "From
|
|
2859
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_sanity_ui_compat3.Text, { size: 1, muted: true, children: "From your orders, so exact. Tier and term are separate rows, because they are the two variables in the pricing question and a tier that sells well at one year may not at perpetual." }),
|
|
2860
2860
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
2861
2861
|
ProportionChart,
|
|
2862
2862
|
{
|
|
@@ -3183,14 +3183,11 @@ function CoverageRibbon({ ratio }) {
|
|
|
3183
3183
|
const seen = Math.round((1 - ratio) * 100);
|
|
3184
3184
|
const multiplier = seen > 0 ? Math.round(100 / seen) : null;
|
|
3185
3185
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_sanity_ui_compat4.Card, { padding: 3, radius: 2, tone: ratio > 0.6 ? "critical" : "caution", border: true, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_sanity_ui_compat4.Text, { size: 1, children: [
|
|
3186
|
-
"
|
|
3186
|
+
"Google Analytics is seeing about ",
|
|
3187
3187
|
seen,
|
|
3188
|
-
"% of
|
|
3189
|
-
" "
|
|
3190
|
-
|
|
3191
|
-
" these",
|
|
3192
|
-
multiplier !== null && multiplier > 1 ? ` (very roughly ${multiplier}\xD7)` : "",
|
|
3193
|
-
". Figures drawn from your orders \u2014 anything labelled as coming from Sanity \u2014 are exact and must not be scaled up. Data health explains the rest, and how uncertain it is."
|
|
3188
|
+
"% of your traffic here, so treat the figures below as roughly ",
|
|
3189
|
+
multiplier === null ? "many times" : `${multiplier}\xD7`,
|
|
3190
|
+
" low. Anything marked (orders) is exact \u2014 do not scale it."
|
|
3194
3191
|
] }) });
|
|
3195
3192
|
}
|
|
3196
3193
|
function ReadyReport({
|