@bicharts/chart-host 0.1.5 → 0.1.6

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
@@ -32,7 +32,7 @@ import {
32
32
  loadGeo,
33
33
  registerGeo,
34
34
  resolveOptions
35
- } from "./chunk-UNH36TGD.mjs";
35
+ } from "./chunk-2WOMFNMG.mjs";
36
36
  export {
37
37
  ANIM_MAX_IDEAL_FRAMES_DEFAULT,
38
38
  ANIM_MAX_IDEAL_FRAMES_MAX,
package/dist/react.mjs CHANGED
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  buildRenderPayload,
4
4
  createChartHost
5
- } from "./chunk-UNH36TGD.mjs";
5
+ } from "./chunk-2WOMFNMG.mjs";
6
6
 
7
7
  // src/react.tsx
8
8
  import { createContext, useContext, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
@@ -40,6 +40,8 @@ export interface RenderOptions {
40
40
  unplaced: number;
41
41
  unplacedExamples: string[];
42
42
  ambiguousRows: number;
43
+ rolesBackfilled?: string[];
44
+ rolesRefused?: string[];
43
45
  } | null;
44
46
  maxMapPoints?: number;
45
47
  colorScaleLow?: string;
@@ -21,6 +21,8 @@ export interface RenderPayload {
21
21
  unplaced: number;
22
22
  unplacedExamples: string[];
23
23
  ambiguousRows: number;
24
+ rolesBackfilled?: string[];
25
+ rolesRefused?: string[];
24
26
  };
25
27
  }
26
28
  export declare function buildRenderPayload(cols: Array<{
package/package.json CHANGED
@@ -1,67 +1,67 @@
1
- {
2
- "name": "@bicharts/chart-host",
3
- "version": "0.1.5",
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
- "license": "Apache-2.0",
6
- "type": "module",
7
- "sideEffects": false,
8
- "main": "./dist/index.mjs",
9
- "module": "./dist/index.mjs",
10
- "types": "./dist/types/index.d.ts",
11
- "exports": {
12
- ".": {
13
- "types": "./dist/types/index.d.ts",
14
- "import": "./dist/index.mjs",
15
- "default": "./dist/index.mjs"
16
- },
17
- "./react": {
18
- "types": "./dist/types/react.d.ts",
19
- "import": "./dist/react.mjs",
20
- "default": "./dist/react.mjs"
21
- },
22
- "./geo": {
23
- "types": "./dist/types/geo.d.ts",
24
- "import": "./dist/geo.mjs",
25
- "default": "./dist/geo.mjs"
26
- },
27
- "./package.json": "./package.json"
28
- },
29
- "files": [
30
- "dist",
31
- "README.md",
32
- "LICENSE",
33
- "NOTICE"
34
- ],
35
- "peerDependencies": {
36
- "react": ">=18",
37
- "react-dom": ">=18"
38
- },
39
- "peerDependenciesMeta": {
40
- "react": {
41
- "optional": true
42
- },
43
- "react-dom": {
44
- "optional": true
45
- }
46
- },
47
- "scripts": {
48
- "build": "node build.mjs",
49
- "prepack": "node build.mjs",
50
- "typecheck": "tsc -p tsconfig.json --noEmit",
51
- "test": "vitest run"
52
- },
53
- "// devDependencies": "@bicharts/shape-core is deliberately NOT declared. It is a workspace sibling that npm links regardless, and its code is BUNDLED into dist, so a consumer never installs it. Declaring it made this package a registry DEPENDENT of shape-core, which blocks lifecycle operations on that package in exchange for nothing. Do not add it back; if the build stops resolving it, fix the workspace, not the manifest.",
54
- "devDependencies": {
55
- "@types/react": "^19.2.17",
56
- "esbuild": "^0.28.1",
57
- "typescript": "^5.9.3"
58
- },
59
- "publishConfig": {
60
- "access": "public"
61
- },
62
- "repository": {
63
- "type": "git",
64
- "url": "git+https://github.com/codexguy/bicharts.git",
65
- "directory": "packages/chart-host"
66
- }
67
- }
1
+ {
2
+ "name": "@bicharts/chart-host",
3
+ "version": "0.1.6",
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
+ "license": "Apache-2.0",
6
+ "type": "module",
7
+ "sideEffects": false,
8
+ "main": "./dist/index.mjs",
9
+ "module": "./dist/index.mjs",
10
+ "types": "./dist/types/index.d.ts",
11
+ "exports": {
12
+ ".": {
13
+ "types": "./dist/types/index.d.ts",
14
+ "import": "./dist/index.mjs",
15
+ "default": "./dist/index.mjs"
16
+ },
17
+ "./react": {
18
+ "types": "./dist/types/react.d.ts",
19
+ "import": "./dist/react.mjs",
20
+ "default": "./dist/react.mjs"
21
+ },
22
+ "./geo": {
23
+ "types": "./dist/types/geo.d.ts",
24
+ "import": "./dist/geo.mjs",
25
+ "default": "./dist/geo.mjs"
26
+ },
27
+ "./package.json": "./package.json"
28
+ },
29
+ "files": [
30
+ "dist",
31
+ "README.md",
32
+ "LICENSE",
33
+ "NOTICE"
34
+ ],
35
+ "peerDependencies": {
36
+ "react": ">=18",
37
+ "react-dom": ">=18"
38
+ },
39
+ "peerDependenciesMeta": {
40
+ "react": {
41
+ "optional": true
42
+ },
43
+ "react-dom": {
44
+ "optional": true
45
+ }
46
+ },
47
+ "scripts": {
48
+ "build": "node build.mjs",
49
+ "prepack": "node build.mjs",
50
+ "typecheck": "tsc -p tsconfig.json --noEmit",
51
+ "test": "vitest run"
52
+ },
53
+ "// devDependencies": "@bicharts/shape-core is deliberately NOT declared. It is a workspace sibling that npm links regardless, and its code is BUNDLED into dist, so a consumer never installs it. Declaring it made this package a registry DEPENDENT of shape-core, which blocks lifecycle operations on that package in exchange for nothing. Do not add it back; if the build stops resolving it, fix the workspace, not the manifest.",
54
+ "devDependencies": {
55
+ "@types/react": "^19.2.17",
56
+ "esbuild": "^0.28.1",
57
+ "typescript": "^5.9.3"
58
+ },
59
+ "publishConfig": {
60
+ "access": "public"
61
+ },
62
+ "repository": {
63
+ "type": "git",
64
+ "url": "git+https://github.com/codexguy/bicharts.git",
65
+ "directory": "packages/chart-host"
66
+ }
67
+ }