@liiift-studio/sanity-visitor-insights 0.69.0 → 0.71.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
@@ -1,7 +1,7 @@
1
1
  import * as sanity from 'sanity';
2
2
  import React from 'react';
3
- import { R as ReportEnvelope, a as ReportName, b as RangeKey, M as MetricValue, A as AcquisitionData, c as MeasurementHealthData, D as DiagnosticReport, J as JourneyData, T as TypefaceInterestData } from './ranges-CMADS44I.mjs';
4
- export { C as CaptureBasis, d as CaptureEstimate, e as CaptureModel, f as CheckStatus, g as Coverage, h as CrossSourceDay, i as DateRange, j as DiagnosticCheck, E as EmailCampaign, k as EventCutover, l as JourneyOutcome, m as JourneySegment, n as JourneyStep, L as LandingPage, o as LicenceTierRow, P as PREEXISTING, p as REPORT_NAMES, q as ReportError, S as SiteAnalyticsConfig, r as SourceName, s as SourceRow, t as SourceStatus, u as TimelineEvent, v as TypefaceInterestRow, U as UnavailableReason, w as coverageForRange, x as estimated, y as isReportName, z as ok, B as partial, F as previousRange, G as resolveRange, H as unavailable, I as validateSiteConfig, K as valueOrNull } from './ranges-CMADS44I.mjs';
3
+ import { R as ReportEnvelope, a as ReportName, b as RangeKey, M as MetricValue, A as AcquisitionData, c as MeasurementHealthData, D as DiagnosticReport, J as JourneyData, T as TypefaceInterestData } from './ranges-CMhL0Chn.mjs';
4
+ export { C as CaptureBasis, d as CaptureEstimate, e as CaptureModel, f as CheckStatus, g as Coverage, h as CrossSourceDay, i as DateRange, j as DiagnosticCheck, E as EmailCampaign, k as EventCutover, l as JourneyOutcome, m as JourneySegment, n as JourneyStep, L as LandingPage, o as LicenceTierRow, P as PREEXISTING, p as REPORT_NAMES, q as ReportError, S as SiteAnalyticsConfig, r as SourceName, s as SourceRow, t as SourceStatus, u as TimelineEvent, v as TypefaceInterestRow, U as UnavailableReason, w as coverageForRange, x as estimated, y as isReportName, z as ok, B as partial, F as previousRange, G as resolveRange, H as unavailable, I as validateSiteConfig, K as valueOrNull } from './ranges-CMhL0Chn.mjs';
5
5
 
6
6
  /**
7
7
  * Data hook for the Studio panels.
@@ -206,14 +206,21 @@ interface MetricFigureProps {
206
206
  * suffix inverted the conclusion.
207
207
  *
208
208
  * 'percent' expects a 0-100 value, matching what measurementHealth produces.
209
+ *
210
+ * 'money' writes the figure in the range's currency. Without it a PARTIAL revenue reached the
211
+ * count formatter, so Darden's default tab — where revenue is permanently partial, because most
212
+ * orders predate the amount field — rendered its headline money as a bare "12,346", beside an
213
+ * "Average order US$455" that did carry a currency.
209
214
  */
210
- unit?: 'count' | 'percent';
215
+ unit?: 'count' | 'percent' | 'money';
216
+ /** ISO 4217 code. Read only when `unit` is 'money'. */
217
+ currency?: string | null;
211
218
  }
212
219
  /**
213
220
  * Render a metric value, handling the absent case visibly.
214
221
  * Screen readers get the reason text rather than an unexplained dash.
215
222
  */
216
- declare function MetricFigure({ metric, label, size, unit }: MetricFigureProps): React.ReactElement;
223
+ declare function MetricFigure({ metric, label, size, unit, currency }: MetricFigureProps): React.ReactElement;
217
224
  /** Props for ChartData. */
218
225
  interface ChartDataProps<Row> {
219
226
  /** What the disclosure is called. Names the chart it belongs to. */
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as sanity from 'sanity';
2
2
  import React from 'react';
3
- import { R as ReportEnvelope, a as ReportName, b as RangeKey, M as MetricValue, A as AcquisitionData, c as MeasurementHealthData, D as DiagnosticReport, J as JourneyData, T as TypefaceInterestData } from './ranges-CMADS44I.js';
4
- export { C as CaptureBasis, d as CaptureEstimate, e as CaptureModel, f as CheckStatus, g as Coverage, h as CrossSourceDay, i as DateRange, j as DiagnosticCheck, E as EmailCampaign, k as EventCutover, l as JourneyOutcome, m as JourneySegment, n as JourneyStep, L as LandingPage, o as LicenceTierRow, P as PREEXISTING, p as REPORT_NAMES, q as ReportError, S as SiteAnalyticsConfig, r as SourceName, s as SourceRow, t as SourceStatus, u as TimelineEvent, v as TypefaceInterestRow, U as UnavailableReason, w as coverageForRange, x as estimated, y as isReportName, z as ok, B as partial, F as previousRange, G as resolveRange, H as unavailable, I as validateSiteConfig, K as valueOrNull } from './ranges-CMADS44I.js';
3
+ import { R as ReportEnvelope, a as ReportName, b as RangeKey, M as MetricValue, A as AcquisitionData, c as MeasurementHealthData, D as DiagnosticReport, J as JourneyData, T as TypefaceInterestData } from './ranges-CMhL0Chn.js';
4
+ export { C as CaptureBasis, d as CaptureEstimate, e as CaptureModel, f as CheckStatus, g as Coverage, h as CrossSourceDay, i as DateRange, j as DiagnosticCheck, E as EmailCampaign, k as EventCutover, l as JourneyOutcome, m as JourneySegment, n as JourneyStep, L as LandingPage, o as LicenceTierRow, P as PREEXISTING, p as REPORT_NAMES, q as ReportError, S as SiteAnalyticsConfig, r as SourceName, s as SourceRow, t as SourceStatus, u as TimelineEvent, v as TypefaceInterestRow, U as UnavailableReason, w as coverageForRange, x as estimated, y as isReportName, z as ok, B as partial, F as previousRange, G as resolveRange, H as unavailable, I as validateSiteConfig, K as valueOrNull } from './ranges-CMhL0Chn.js';
5
5
 
6
6
  /**
7
7
  * Data hook for the Studio panels.
@@ -206,14 +206,21 @@ interface MetricFigureProps {
206
206
  * suffix inverted the conclusion.
207
207
  *
208
208
  * 'percent' expects a 0-100 value, matching what measurementHealth produces.
209
+ *
210
+ * 'money' writes the figure in the range's currency. Without it a PARTIAL revenue reached the
211
+ * count formatter, so Darden's default tab — where revenue is permanently partial, because most
212
+ * orders predate the amount field — rendered its headline money as a bare "12,346", beside an
213
+ * "Average order US$455" that did carry a currency.
209
214
  */
210
- unit?: 'count' | 'percent';
215
+ unit?: 'count' | 'percent' | 'money';
216
+ /** ISO 4217 code. Read only when `unit` is 'money'. */
217
+ currency?: string | null;
211
218
  }
212
219
  /**
213
220
  * Render a metric value, handling the absent case visibly.
214
221
  * Screen readers get the reason text rather than an unexplained dash.
215
222
  */
216
- declare function MetricFigure({ metric, label, size, unit }: MetricFigureProps): React.ReactElement;
223
+ declare function MetricFigure({ metric, label, size, unit, currency }: MetricFigureProps): React.ReactElement;
217
224
  /** Props for ChartData. */
218
225
  interface ChartDataProps<Row> {
219
226
  /** What the disclosure is called. Names the chart it belongs to. */