@bicharts/chart-host 0.5.2 → 0.5.5

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.
@@ -0,0 +1 @@
1
+ export declare const CITY_PACKED: string;
@@ -1,6 +1,11 @@
1
1
  export * from "./contract";
2
2
  export { resolveOptions, type ResolveOptionsInput } from "./defaults";
3
3
  export { loadGeo, geoFromCache, registerGeo, registerGeoAsset, geoAssetFor, clearGeoCache, type GeoAssetName, } from "./geoLazy";
4
+ /** Hand the city placement table to the resolver. Without it, city lookups degrade to
5
+ * ZIP-3 / state / country and REPORT that coarser precision — they never guess. */
6
+ export declare function registerCityTable(packed: string): void;
7
+ /** True once a placement table is registered, i.e. the city tier can return coordinates. */
8
+ export declare function isCityTableLoaded(): boolean;
4
9
  export { buildRenderPayload, type RenderPayload, type GeoPointBinding } from "./payload";
5
10
  export { createChartHost, compileRenderFn, stripEsmExports, requiredD3Plugins, explainRenderFailure, type ChartHost, type ChartHostConfig, type RenderFn } from "./host";
6
11
  export { createMarkResolver, type MarkResolver, type MarkResolverEnv } from "./selection";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bicharts/chart-host",
3
- "version": "0.5.2",
3
+ "version": "0.5.5",
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",
@@ -39,7 +39,12 @@
39
39
  "import": "./dist/geo-us-zip3.mjs",
40
40
  "default": "./dist/geo-us-zip3.mjs"
41
41
  },
42
- "./package.json": "./package.json"
42
+ "./package.json": "./package.json",
43
+ "./geo/point-cities": {
44
+ "types": "./dist/types/geo-point-cities.d.ts",
45
+ "import": "./dist/geo-point-cities.mjs",
46
+ "default": "./dist/geo-point-cities.mjs"
47
+ }
43
48
  },
44
49
  "files": [
45
50
  "dist",