glassbrain 0.1.1 → 0.1.3

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/core.js CHANGED
@@ -29,6 +29,7 @@ import {
29
29
  buildModel,
30
30
  changedSubset,
31
31
  checkEdit,
32
+ chromeStyle,
32
33
  cls,
33
34
  countByKind,
34
35
  defaultNodeColor,
@@ -69,7 +70,7 @@ import {
69
70
  untheme,
70
71
  validateModel,
71
72
  validateStructure
72
- } from "./chunks/chunk-UJCALP4P.js";
73
+ } from "./chunks/chunk-W357BGA7.js";
73
74
  import {
74
75
  EN
75
76
  } from "./chunks/chunk-EJURBBFC.js";
@@ -105,6 +106,7 @@ export {
105
106
  buildModel,
106
107
  changedSubset,
107
108
  checkEdit,
109
+ chromeStyle,
108
110
  cls,
109
111
  countByKind,
110
112
  defaultNodeColor,
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  clearLayoutCache,
10
10
  computeLayout,
11
11
  projectPlanes
12
- } from "./chunks/chunk-3CNKH3HB.js";
12
+ } from "./chunks/chunk-RHWFMVQU.js";
13
13
  import {
14
14
  CONTENT_SCALE,
15
15
  DARK_THEME,
@@ -40,6 +40,7 @@ import {
40
40
  buildModel,
41
41
  changedSubset,
42
42
  checkEdit,
43
+ chromeStyle,
43
44
  cls,
44
45
  countByKind,
45
46
  defaultNodeColor,
@@ -80,7 +81,7 @@ import {
80
81
  untheme,
81
82
  validateModel,
82
83
  validateStructure
83
- } from "./chunks/chunk-UJCALP4P.js";
84
+ } from "./chunks/chunk-W357BGA7.js";
84
85
  import {
85
86
  DetailPanel,
86
87
  renderInline,
@@ -127,6 +128,7 @@ export {
127
128
  buildModel,
128
129
  changedSubset,
129
130
  checkEdit,
131
+ chromeStyle,
130
132
  clearLayoutCache,
131
133
  cls,
132
134
  computeLayout,
package/dist/internal.js CHANGED
@@ -40,7 +40,7 @@ import {
40
40
  semanticAlphaOf,
41
41
  shapeOf,
42
42
  skeletonLineOf
43
- } from "./chunks/chunk-3CNKH3HB.js";
43
+ } from "./chunks/chunk-RHWFMVQU.js";
44
44
  import {
45
45
  CONTENT_SCALE,
46
46
  DARK_THEME,
@@ -77,6 +77,7 @@ import {
77
77
  buildModel,
78
78
  changedSubset,
79
79
  checkEdit,
80
+ chromeStyle,
80
81
  cls,
81
82
  countByKind,
82
83
  defaultNodeColor,
@@ -136,7 +137,7 @@ import {
136
137
  untheme,
137
138
  validateModel,
138
139
  validateStructure
139
- } from "./chunks/chunk-UJCALP4P.js";
140
+ } from "./chunks/chunk-W357BGA7.js";
140
141
  import {
141
142
  DetailPanel,
142
143
  renderInline,
@@ -204,6 +205,7 @@ export {
204
205
  buildModel,
205
206
  changedSubset,
206
207
  checkEdit,
208
+ chromeStyle,
207
209
  clearLayoutCache,
208
210
  clippedLength,
209
211
  cls,
@@ -74,7 +74,7 @@ export interface GraphCanvasProps {
74
74
  * import { workerPool } from 'glassbrain/layout/worker-pool';
75
75
  * The library does not guess the host's bundler, so the default is the one that always works. */
76
76
  pool?: LayoutRunnerPool;
77
- /** Primitive theme (skeleton color, canvas background…). Pure look: swapping it swaps the stylesheet, no rebuild, no relayout. */
77
+ /** Graph colors and matching controls. Pure look: swapping the theme never rebuilds or relays out the graph. */
78
78
  theme?: GraphTheme;
79
79
  className?: string;
80
80
  style?: CSSProperties;
@@ -2,8 +2,8 @@
2
2
  "use client";
3
3
  import {
4
4
  GraphCanvas
5
- } from "../chunks/chunk-3CNKH3HB.js";
6
- import "../chunks/chunk-UJCALP4P.js";
5
+ } from "../chunks/chunk-RHWFMVQU.js";
6
+ import "../chunks/chunk-W357BGA7.js";
7
7
  import "../chunks/chunk-37BAJC3L.js";
8
8
  import "../chunks/chunk-EJURBBFC.js";
9
9
  import "../chunks/chunk-YGRPNAXE.js";
package/dist/style.d.ts CHANGED
@@ -133,6 +133,11 @@ export declare const DIFF_COLORS: Record<string, string>;
133
133
  * The remaining two rules lift selection / hits back to the top: that is the user's attention right now, ahead of any mark.
134
134
  */
135
135
  export declare function diffStyle(theme?: GraphTheme): any[];
136
+ /** Private fallbacks, scoped to one canvas. Public --gb-* overrides still win, including inherited host styles.
137
+ * Reset them on light canvases so an embedded light graph cannot inherit a dark graph's defaults. */
138
+ export declare function chromeStyle(theme: GraphTheme): {
139
+ colorScheme: string;
140
+ };
136
141
  /** Styles for host UI (toolbar / detail panel). CSS variables the host can override, with defaults,
137
142
  * so an offline single-file page looks good without configuring any. */
138
143
  export declare const GK_CSS: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glassbrain",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Know what your agent knows: open, diff and review the knowledge graphs agents write. Plain JSON in, one html file out.",
5
5
  "keywords": [
6
6
  "knowledge-graph",