@bicharts/chart-host 0.5.111 → 0.5.113

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.mjs CHANGED
@@ -30,20 +30,19 @@ import {
30
30
  DARK_TEXT,
31
31
  DIM_OPACITY_DEFAULT,
32
32
  DIM_OPACITY_VAR,
33
- Ee,
34
33
  FIT_CONTENT_SELECTOR,
35
34
  FLIP_MODE_DEFAULT,
36
35
  GEO_POINT_PRECISIONS,
37
36
  GLYPH_SAMPLE_N,
38
37
  HOST_CONTAINER_CLASS,
39
38
  HOST_CONTRACT_VERSION,
40
- Ie,
41
39
  L3,
42
40
  LABEL_CONTRAST_CAP,
43
41
  LABEL_CONTRAST_DONE_ATTR,
44
42
  LEGEND_MARK_CLASS,
45
43
  LIFT_SELECTED_CLASS,
46
44
  LIGHT_TEXT,
45
+ Le,
47
46
  M,
48
47
  MARK_CLASS,
49
48
  MARK_SELECTED_CLASS,
@@ -52,6 +51,7 @@ import {
52
51
  MIN_CONTRAST,
53
52
  MIN_HIT_BAND_PX,
54
53
  MIN_RAMP_FILLS,
54
+ Oe,
55
55
  PAGE_MATCH_TOLERANCE,
56
56
  PHANTOM_FRACTION,
57
57
  PILL_MIN_ALPHA,
@@ -64,10 +64,9 @@ import {
64
64
  SELECTION_ACTIVE_CLASS,
65
65
  VALUE_AXIS_BASELINE_DEFAULT,
66
66
  VALUE_AXIS_MIN_FIT,
67
- Vt,
68
67
  WHITE_TEXT_BG_LUM,
69
68
  XFILTER_REFRESH_EVENT,
70
- Yt,
69
+ Xt,
71
70
  a,
72
71
  applyLabelContrast,
73
72
  autoRampCanvas,
@@ -117,6 +116,7 @@ import {
117
116
  pinScrolledAxis,
118
117
  planAxisPin,
119
118
  planFrameGrow,
119
+ qt,
120
120
  registerGeo,
121
121
  registerGeoAsset,
122
122
  relativeLuminance,
@@ -130,7 +130,7 @@ import {
130
130
  toRGBA,
131
131
  unpinScrolledAxis,
132
132
  valuePlacementFlag
133
- } from "./chunk-OSXEQYDB.mjs";
133
+ } from "./chunk-IXJYGTAY.mjs";
134
134
  import "./chunk-A2GMXZP7.mjs";
135
135
  import "./chunk-GHODWOAL.mjs";
136
136
 
@@ -1418,15 +1418,15 @@ function displayText(col, raw, opts) {
1418
1418
  return String(raw);
1419
1419
  }
1420
1420
  function isSuppressed(col) {
1421
- return Ie(col).suppressed;
1421
+ return Oe(col).suppressed;
1422
1422
  }
1423
1423
  function resolveAgg(col, requested, auto) {
1424
1424
  const fallback = () => {
1425
- const d2 = Vt(col);
1425
+ const d2 = Xt(col);
1426
1426
  return d2 === "first" ? "count" : d2;
1427
1427
  };
1428
1428
  if (auto) return fallback();
1429
- return Ee(col).indexOf(requested) >= 0 ? requested : fallback();
1429
+ return Le(col).indexOf(requested) >= 0 ? requested : fallback();
1430
1430
  }
1431
1431
  function toNumber(v2) {
1432
1432
  if (v2 == null || v2 === "") return null;
@@ -1529,7 +1529,7 @@ function computeSelectionCard(payload, selectedRowIdxs, opts = {}) {
1529
1529
  }
1530
1530
  const value = reduce(selVals, colAgg, selRaw);
1531
1531
  let sharePct = null;
1532
- if (Yt(col, colAgg) && value != null) {
1532
+ if (qt(col, colAgg) && value != null) {
1533
1533
  const allVals = [];
1534
1534
  const allRaw = [];
1535
1535
  for (let r2 = 0; r2 < rows.length; r2++) {
package/dist/react.mjs CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  createChartHost,
5
5
  geoFromCache,
6
6
  loadGeo
7
- } from "./chunk-OSXEQYDB.mjs";
7
+ } from "./chunk-IXJYGTAY.mjs";
8
8
  import "./chunk-A2GMXZP7.mjs";
9
9
  import "./chunk-GHODWOAL.mjs";
10
10
 
@@ -78,4 +78,8 @@ export declare function buildRenderPayload(cols: Array<{
78
78
  kind: string;
79
79
  } | null, point?: GeoPointBinding | null, destination?: GeoPointBinding | null, opts?: {
80
80
  utcDays?: boolean;
81
+ aliases?: ReadonlyArray<{
82
+ name: string;
83
+ alias: string;
84
+ }> | null;
81
85
  } | null): RenderPayload;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bicharts/chart-host",
3
- "version": "0.5.111",
3
+ "version": "0.5.113",
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",