@bicharts/chart-host 0.5.117 → 0.5.118

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.
@@ -3168,7 +3168,19 @@ var D3_PLUGIN_PACKAGES = {
3168
3168
  weightedVoronoi: "d3-weighted-voronoi",
3169
3169
  // Attached onto d3 like the rest, but reached as d3.mermaid.render(...) — a NAMESPACE
3170
3170
  // OBJECT with methods, not a function on d3. The scan below accounts for that shape.
3171
- mermaid: "mermaid"
3171
+ mermaid: "mermaid",
3172
+ // AND THE NAME A REAL CHART ACTUALLY WRITES. This one is not a member of the mermaid
3173
+ // package at all: it is a helper the SERVER prepends into the generated code, and the
3174
+ // helper is what reaches for the library. So a genuine diagram chart contains
3175
+ // `d3.llmMermaid(` and never once writes `d3.mermaid` — measured on the first real
3176
+ // generation of that type, for which this scan returned an EMPTY list. It drew, because
3177
+ // the host it ran in happened to carry the library; a host relying on this answer to
3178
+ // decide what to install would have been told nothing and failed several frames deep.
3179
+ //
3180
+ // Mapping the helper is right rather than a hack, because this map answers "what must a
3181
+ // host INSTALL for this code to run" and not "which package exports this symbol". For
3182
+ // code that calls the helper, the answer is the library the helper reaches for.
3183
+ llmMermaid: "mermaid"
3172
3184
  };
3173
3185
  function requiredD3Plugins(code) {
3174
3186
  const out = /* @__PURE__ */ new Set();
package/dist/index.mjs CHANGED
@@ -130,7 +130,7 @@ import {
130
130
  toRGBA,
131
131
  unpinScrolledAxis,
132
132
  valuePlacementFlag
133
- } from "./chunk-VRFOZUAT.mjs";
133
+ } from "./chunk-2UU3N4AG.mjs";
134
134
  import "./chunk-A2GMXZP7.mjs";
135
135
  import "./chunk-GHODWOAL.mjs";
136
136
 
package/dist/react.mjs CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  createChartHost,
5
5
  geoFromCache,
6
6
  loadGeo
7
- } from "./chunk-VRFOZUAT.mjs";
7
+ } from "./chunk-2UU3N4AG.mjs";
8
8
  import "./chunk-A2GMXZP7.mjs";
9
9
  import "./chunk-GHODWOAL.mjs";
10
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bicharts/chart-host",
3
- "version": "0.5.117",
3
+ "version": "0.5.118",
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",