@liiift-studio/sanity-visitor-insights 0.67.0 → 0.69.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.d.mts CHANGED
@@ -275,6 +275,21 @@ interface FunnelStage {
275
275
  value: number;
276
276
  /** Share of the previous shown step, or null when it could not be computed. */
277
277
  conversionFromPrevious: number | null;
278
+ /**
279
+ * Set when this step was only instrumented part-way through the window.
280
+ *
281
+ * The count is real but it covers fewer days than the rungs around it, so any ratio drawn
282
+ * across the two is arithmetic over mismatched windows. `JourneyPanel` used to drop the
283
+ * metric's `partial` status on the way in, so a `view_item` that began firing on 1 September
284
+ * was drawn identically to a full-month `page_view` and captioned "33.9% of landed" — a
285
+ * thirteen-day numerator over a thirty-one-day denominator, stated to a decimal place.
286
+ *
287
+ * Everywhere else a partial metric carries a badge and a note; this was the one render site
288
+ * that stripped it, and it is the most quoted number on the tab.
289
+ */
290
+ partial?: {
291
+ from: string;
292
+ };
278
293
  }
279
294
  /** Props for FunnelChart. */
280
295
  interface FunnelChartProps {
@@ -433,6 +448,20 @@ interface SeriesPoint {
433
448
  }
434
449
  /** How a value should be written out. */
435
450
  type SeriesUnit = 'count' | 'money' | 'percent';
451
+ /**
452
+ * The floating readout, anchored to the hovered day.
453
+ *
454
+ * Sits over the plot rather than under it. The values used to live in a row beneath the chart, so
455
+ * reading a peak meant looking at the peak, then travelling to the bottom of the component, then
456
+ * back — and on a tall stack of small multiples the two were far enough apart that the reader lost
457
+ * which day they were on. Anchored to the crosshair, the number is where the eye already is.
458
+ *
459
+ * `pointer-events: none` throughout: the card follows the pointer across the plot and must never
460
+ * become the thing under it, which would end the hover it exists to describe and flicker.
461
+ *
462
+ * It flips to the left of the crosshair in the right-hand third, so the last week of a range — the
463
+ * part a reader looks at most — does not push the card off the pane.
464
+ */
436
465
  interface Series {
437
466
  key: string;
438
467
  label: string;
package/dist/index.d.ts CHANGED
@@ -275,6 +275,21 @@ interface FunnelStage {
275
275
  value: number;
276
276
  /** Share of the previous shown step, or null when it could not be computed. */
277
277
  conversionFromPrevious: number | null;
278
+ /**
279
+ * Set when this step was only instrumented part-way through the window.
280
+ *
281
+ * The count is real but it covers fewer days than the rungs around it, so any ratio drawn
282
+ * across the two is arithmetic over mismatched windows. `JourneyPanel` used to drop the
283
+ * metric's `partial` status on the way in, so a `view_item` that began firing on 1 September
284
+ * was drawn identically to a full-month `page_view` and captioned "33.9% of landed" — a
285
+ * thirteen-day numerator over a thirty-one-day denominator, stated to a decimal place.
286
+ *
287
+ * Everywhere else a partial metric carries a badge and a note; this was the one render site
288
+ * that stripped it, and it is the most quoted number on the tab.
289
+ */
290
+ partial?: {
291
+ from: string;
292
+ };
278
293
  }
279
294
  /** Props for FunnelChart. */
280
295
  interface FunnelChartProps {
@@ -433,6 +448,20 @@ interface SeriesPoint {
433
448
  }
434
449
  /** How a value should be written out. */
435
450
  type SeriesUnit = 'count' | 'money' | 'percent';
451
+ /**
452
+ * The floating readout, anchored to the hovered day.
453
+ *
454
+ * Sits over the plot rather than under it. The values used to live in a row beneath the chart, so
455
+ * reading a peak meant looking at the peak, then travelling to the bottom of the component, then
456
+ * back — and on a tall stack of small multiples the two were far enough apart that the reader lost
457
+ * which day they were on. Anchored to the crosshair, the number is where the eye already is.
458
+ *
459
+ * `pointer-events: none` throughout: the card follows the pointer across the plot and must never
460
+ * become the thing under it, which would end the hover it exists to describe and flicker.
461
+ *
462
+ * It flips to the left of the crosshair in the right-hand third, so the last week of a range — the
463
+ * part a reader looks at most — does not push the card off the pane.
464
+ */
436
465
  interface Series {
437
466
  key: string;
438
467
  label: string;