@bicharts/chart-host 0.6.106 → 0.6.107

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.
@@ -1080,6 +1080,8 @@ function resolveOptions(p) {
1080
1080
  // tests/defaults.test.ts now compares the two lists, because four instances of one
1081
1081
  // omission is a missing check, not four mistakes.
1082
1082
  geoPointDest: p.geoPointDest,
1083
+ // Why a point map placed nothing (the resolver's sentences), passed through untouched.
1084
+ geoPointRefused: p.geoPointRefused,
1083
1085
  // A host FACT about the data it serialised (contract 1.9.0), passed through untouched.
1084
1086
  dateCellsAreUtcDays: p.dateCellsAreUtcDays,
1085
1087
  // Host FACTS about whether every row arrived (contract 1.15.0), passed through untouched: an
@@ -3423,6 +3425,7 @@ function createChartHost(container, config) {
3423
3425
  if (resolved.geoUnmatched === void 0 && data.geoUnmatched) resolved = { ...resolved, geoUnmatched: data.geoUnmatched };
3424
3426
  if (resolved.geoPoint === void 0 && data.geoPoint) resolved = { ...resolved, geoPoint: data.geoPoint };
3425
3427
  if (resolved.geoPointDest === void 0 && data.geoPointDest) resolved = { ...resolved, geoPointDest: data.geoPointDest };
3428
+ if (resolved.geoPointRefused === void 0 && data.geoPointRefused?.length) resolved = { ...resolved, geoPointRefused: data.geoPointRefused };
3426
3429
  if (resolved.dateCellsAreUtcDays === void 0 && data.dateCellsAreUtcDays) resolved = { ...resolved, dateCellsAreUtcDays: true };
3427
3430
  if (resolved.suppressSelectionGlyph === void 0 && data.meta?.suppressSelectionGlyph === true)
3428
3431
  resolved = { ...resolved, suppressSelectionGlyph: true };
package/dist/index.mjs CHANGED
@@ -105,7 +105,7 @@ import {
105
105
  toRGBA,
106
106
  toSourceRows,
107
107
  valuePlacementFlag
108
- } from "./chunk-K6UXTDMR.mjs";
108
+ } from "./chunk-BWR35DEK.mjs";
109
109
  import {
110
110
  LASSO_AXES_SLOT,
111
111
  LASSO_COUNT_CLASS,
@@ -2130,7 +2130,7 @@ function transportFailureShouldRecover(_headersReceived, genNew) {
2130
2130
  return genNew;
2131
2131
  }
2132
2132
  var TRANSPORT_LOST_CHECKING_MESSAGE = "The connection dropped while your chart was being generated - checking whether it finished on the server...";
2133
- var GENERATION_CANCELLED_MESSAGE = "The connection dropped before the chart finished - nothing was charged. Generate again.";
2133
+ var GENERATION_CANCELLED_MESSAGE = "The connection dropped before the chart finished. You were charged only for the work already done. Generate again.";
2134
2134
  function recoveryAnswerIsCancelled(r2) {
2135
2135
  return !!r2 && r2.isGenerationCancelled === true;
2136
2136
  }
@@ -2153,7 +2153,7 @@ function recoveryFinalOutcome(r2) {
2153
2153
  return null;
2154
2154
  }
2155
2155
  function recoveryProvesNothingCharged(o3) {
2156
- return o3 === "cancelled" || o3 === "not-received";
2156
+ return o3 === "not-received";
2157
2157
  }
2158
2158
  function recoveryGiveUpRefunds(outcome) {
2159
2159
  return outcome === "window-closed" || outcome === "hard-error" || outcome === "unreachable";
package/dist/react.mjs CHANGED
@@ -20,7 +20,7 @@ import {
20
20
  createChartHost,
21
21
  syncMemberSelection,
22
22
  toSourceRows
23
- } from "./chunk-K6UXTDMR.mjs";
23
+ } from "./chunk-BWR35DEK.mjs";
24
24
  import "./chunk-IE426WU6.mjs";
25
25
  import "./chunk-CPLWAW3Z.mjs";
26
26
  import "./chunk-P2DLK7WZ.mjs";
@@ -124,6 +124,7 @@ export interface RenderOptions {
124
124
  rolesBackfilled?: string[];
125
125
  rolesRefused?: string[];
126
126
  } | null;
127
+ geoPointRefused?: string[];
127
128
  dateCellsAreUtcDays?: boolean;
128
129
  dataComplete?: boolean;
129
130
  rowsWithheld?: number;
@@ -55,6 +55,8 @@ export interface ChartHostConfig {
55
55
  * into options exactly like geoPoint, so a host that hands over the whole payload
56
56
  * gets both ends annotated without knowing the field exists. */
57
57
  geoPointDest?: RenderOptions["geoPointDest"];
58
+ /** Why a point map placed nothing (the resolver's sentences) - promoted into options exactly like geoPoint. */
59
+ geoPointRefused?: string[];
58
60
  /** Set by buildRenderPayload(..., { utcDays: true }) - promoted into options exactly like geoPoint. */
59
61
  dateCellsAreUtcDays?: boolean;
60
62
  /** Provenance the MCP stamps into data.sample.json. `hostContract` is checked
@@ -190,7 +190,7 @@ export declare const TRANSPORT_LOST_CHECKING_MESSAGE = "The connection dropped w
190
190
  * own. The server's errorMessage is preferred - it is the one author of the sentence - and this is the same
191
191
  * sentence, for a server that set the flag and left the message blank.
192
192
  */
193
- export declare const GENERATION_CANCELLED_MESSAGE = "The connection dropped before the chart finished - nothing was charged. Generate again.";
193
+ export declare const GENERATION_CANCELLED_MESSAGE = "The connection dropped before the chart finished. You were charged only for the work already done. Generate again.";
194
194
  /**
195
195
  * Is this recovery answer the server saying the generation was CANCELLED - so nothing will ever be ready?
196
196
  *
@@ -217,9 +217,10 @@ export declare function recoveryFinalOutcome(r: {
217
217
  isVersionNotFound?: boolean | null;
218
218
  errorCode?: string | null;
219
219
  } | null | undefined): RecoveryFinalOutcome | null;
220
- /** Did the server PROVE nothing was charged? Only a cancel and a request it never received do; a
221
- * failed generation's charge is its own, and a generate that died with a restart may have been charged
222
- * before its record was written, so a host claims nothing about either. */
220
+ /** Did the server PROVE nothing was charged? Only a request it never received does. A cancel is billed for
221
+ * the passes that ran before it; a failed generation's charge is its own, and a
222
+ * generate that died with a restart may have been charged before its record was written, so a host claims
223
+ * nothing about any of those. */
223
224
  export declare function recoveryProvesNothingCharged(o: string | null | undefined): boolean;
224
225
  /** Does a recovery that ended this way send the refund? Only when it ended with NOTHING PAINTED and
225
226
  * nothing proven - the window closed, the poll itself was refused, or the service could not be
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bicharts/chart-host",
3
- "version": "0.6.106",
3
+ "version": "0.6.107",
4
4
  "description": "Run a BIC-generated D3 chart in any web host: compiles the generated render() function, applies the shared option defaults, resolves mark clicks (through tooltip overlays), owns the selection affordance, and translates row indices between cross-filtered charts. The same contract the BIC Power BI visual implements, minus Power BI. React bindings at @bicharts/chart-host/react.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",