@liiift-studio/sanity-visitor-insights 0.65.0 → 0.66.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 +35 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +35 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/studio/Figure.tsx +106 -0
- package/src/studio/palette.ts +3 -0
- package/src/studio/panels.test.tsx +78 -1
- package/src/studio/panels.tsx +79 -1
package/dist/index.js
CHANGED
|
@@ -310,7 +310,10 @@ var MARKS = {
|
|
|
310
310
|
"bar.seen": { key: "ga4Pageviews", alpha: 1, role: "data", note: "The share of a complete count that the lossy source saw" },
|
|
311
311
|
"estimate.dot": { key: "ga4Pageviews", alpha: 1, role: "data", note: "One independent estimate of how much GA4 sees" },
|
|
312
312
|
"estimate.interval": { key: "ga4Pageviews", alpha: 0.35, role: "fill", boundary: "estimate.dot", note: "How wide the sample leaves that estimate \u2014 the dot is its own boundary" },
|
|
313
|
-
"estimate.rule": { key: "neutral", alpha: 0.45, role: "furniture", note: "The 100% reference a capture rate is read against" }
|
|
313
|
+
"estimate.rule": { key: "neutral", alpha: 0.45, role: "furniture", note: "The 100% reference a capture rate is read against" },
|
|
314
|
+
"shift.now": { key: "vercel", alpha: 1, role: "data", note: "A channel this period" },
|
|
315
|
+
"shift.before": { key: "neutral", alpha: 0.55, role: "furniture", note: "The same channel last period \u2014 context, not a second answer" },
|
|
316
|
+
"shift.link": { key: "neutral", alpha: 0.35, role: "furniture", note: "The distance between the two, which is the finding" }
|
|
314
317
|
};
|
|
315
318
|
function mark(name) {
|
|
316
319
|
const m = MARKS[name];
|
|
@@ -1139,6 +1142,37 @@ var estimateDot = {
|
|
|
1139
1142
|
borderRadius: "50%",
|
|
1140
1143
|
background: mark("estimate.dot")
|
|
1141
1144
|
};
|
|
1145
|
+
var shiftTrack = {
|
|
1146
|
+
position: "relative",
|
|
1147
|
+
height: 16,
|
|
1148
|
+
borderRadius: 2,
|
|
1149
|
+
background: mark("bar.track")
|
|
1150
|
+
};
|
|
1151
|
+
var shiftLink = {
|
|
1152
|
+
position: "absolute",
|
|
1153
|
+
top: 7,
|
|
1154
|
+
height: 2,
|
|
1155
|
+
background: mark("shift.link")
|
|
1156
|
+
};
|
|
1157
|
+
var shiftBefore = {
|
|
1158
|
+
position: "absolute",
|
|
1159
|
+
top: 3,
|
|
1160
|
+
width: 10,
|
|
1161
|
+
height: 10,
|
|
1162
|
+
marginLeft: -5,
|
|
1163
|
+
borderRadius: "50%",
|
|
1164
|
+
border: `2px solid ${mark("shift.before")}`,
|
|
1165
|
+
background: "transparent"
|
|
1166
|
+
};
|
|
1167
|
+
var shiftNow = {
|
|
1168
|
+
position: "absolute",
|
|
1169
|
+
top: 3,
|
|
1170
|
+
width: 10,
|
|
1171
|
+
height: 10,
|
|
1172
|
+
marginLeft: -5,
|
|
1173
|
+
borderRadius: "50%",
|
|
1174
|
+
background: mark("shift.now")
|
|
1175
|
+
};
|
|
1142
1176
|
var filterInput = {
|
|
1143
1177
|
font: "inherit",
|
|
1144
1178
|
fontSize: "0.85em",
|