@bicharts/chart-host 0.4.2 → 0.5.1
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/chunk-ZYJHBRB6.mjs +1142 -0
- package/dist/index.mjs +1 -1
- package/dist/react.mjs +1 -1
- package/dist/types/contract.d.ts +6 -1
- package/dist/types/payload.d.ts +3 -1
- package/package.json +1 -1
- package/dist/chunk-3TQHUKTM.mjs +0 -1104
package/dist/index.mjs
CHANGED
package/dist/react.mjs
CHANGED
package/dist/types/contract.d.ts
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
export declare const HOST_CONTRACT_VERSION = "1.
|
|
1
|
+
export declare const HOST_CONTRACT_VERSION = "1.2.0";
|
|
2
2
|
export type GeoPointPrecision = "latlon" | "city" | "zip3" | "state" | "country";
|
|
3
3
|
/** Every valid tier, ordered most precise → coarsest. Runtime form of GeoPointPrecision. */
|
|
4
4
|
export declare const GEO_POINT_PRECISIONS: readonly GeoPointPrecision[];
|
|
5
|
+
/** Which point-map's gazetteer rows a lookup runs against (v2 unified table, 2026-08-02:
|
|
6
|
+
* one list, per-row map-kind flags). Duplicated from shape-core for the same reason as
|
|
7
|
+
* GeoPointPrecision above — public surface must not dangle on a bundled devDependency —
|
|
8
|
+
* and held identical by the same anti-drift test. */
|
|
9
|
+
export type GeoMapKind = "north-america" | "world";
|
|
5
10
|
export declare const MARK_CLASS = "d3-mark";
|
|
6
11
|
export declare const LEGEND_MARK_CLASS = "d3-legend-mark";
|
|
7
12
|
export declare const AXIS_FILTER_CLASS = "d3-axis-filter";
|
package/dist/types/payload.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GeoPointPrecision } from "./contract";
|
|
1
|
+
import type { GeoPointPrecision, GeoMapKind } from "./contract";
|
|
2
2
|
/** Which columns hold the place parts a coordinate can be resolved from. Any subset;
|
|
3
3
|
* the cascade uses the most precise tier available per row. */
|
|
4
4
|
export interface GeoPointBinding {
|
|
@@ -8,6 +8,7 @@ export interface GeoPointBinding {
|
|
|
8
8
|
lat?: string;
|
|
9
9
|
lon?: string;
|
|
10
10
|
country?: string;
|
|
11
|
+
mapKind?: GeoMapKind;
|
|
11
12
|
}
|
|
12
13
|
export interface RenderPayload {
|
|
13
14
|
columns: any[];
|
|
@@ -24,6 +25,7 @@ export interface RenderPayload {
|
|
|
24
25
|
unplaced: number;
|
|
25
26
|
unplacedExamples: string[];
|
|
26
27
|
ambiguousRows: number;
|
|
28
|
+
ambiguousExamples?: string[];
|
|
27
29
|
rolesBackfilled?: string[];
|
|
28
30
|
rolesRefused?: string[];
|
|
29
31
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bicharts/chart-host",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
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",
|