@capillaryjs/capillary-viz 1.0.0-alpha.1 → 1.0.0

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/CHANGELOG.md CHANGED
@@ -6,6 +6,21 @@ and Semantic Versioning.
6
6
 
7
7
  ## Unreleased
8
8
 
9
+ ## 1.0.0 - 2026-09-14
10
+
11
+ ### Changed
12
+
13
+ - Mark `BlockGraph` as a Capillary UI data surface so a labelled island Panel
14
+ can compose it flush with its chrome when it is the sole direct body child.
15
+ - Align CategoryHidePanel and SplitSelectionPanel spacing with the refined
16
+ GroupBox form rhythm, including the generated visualization structural CSS.
17
+
18
+ ### Fixed
19
+
20
+ - Replace loading BlockGraph content with a deterministic skeleton mosaic,
21
+ hiding cached counts and selection labels without clearing model state.
22
+ Error states no longer incorrectly report that the graph is busy.
23
+
9
24
  ## 1.0.0-alpha.1 - 2026-09-14
10
25
 
11
26
  ### Changed
package/README.md CHANGED
@@ -28,6 +28,10 @@ With dependency collection, declare `BlockGraph`, `CategoryHidePanel`,
28
28
  `SplitSelectionPanel`, or `LineGraph` in the owning component's
29
29
  `static dependencies` instead.
30
30
 
31
+ `BlockGraph` declares Capillary UI's static `dataSurface` host trait. When it
32
+ is the sole direct body child of a labelled island `Panel`, the Panel makes the
33
+ data surface flush with its chrome.
34
+
31
35
  ## Ownership model
32
36
 
33
37
  Applications supply items, stable keys, domain predicates, labels, semantic
@@ -227,6 +231,12 @@ the new position. Preset buttons expose their active state with
227
231
  `BlockGraph<T>` renders a nested proportional mosaic from a
228
232
  `BlockSelectionModel`.
229
233
 
234
+ Initial and Loading snapshots render a deterministic, decorative skeleton
235
+ mosaic instead of cached blocks, counts, or selection labels. The caller's
236
+ model and selection remain intact. Skeletons are hidden from assistive
237
+ technology, the graph exposes a loading status, and Clear selection is
238
+ unavailable until loading ends. Error and ready-empty states remain distinct.
239
+
230
240
  | Prop | Meaning |
231
241
  | --- | --- |
232
242
  | `model` | Required caller-owned block selection model |
@@ -1,4 +1,4 @@
1
- import { Button, Component } from '@capillaryjs/capillary-ui';
1
+ import { Button, Component, Placeholder } from '@capillaryjs/capillary-ui';
2
2
  import type { ComponentProps, CapillaryUiChild } from '@capillaryjs/capillary-ui';
3
3
  import type { BlockNode } from '../block.js';
4
4
  import { BlockSelectionModel } from '../block.js';
@@ -13,7 +13,8 @@ export declare class BlockGraph<TItem = unknown> extends Component<BlockGraphPro
13
13
  static liveProps: readonly string[];
14
14
  render(): CapillaryUiChild;
15
15
  static hostName: string;
16
- static dependencies: (typeof Button)[];
16
+ static dataSurface: "data";
17
+ static dependencies: (typeof Placeholder | typeof Button)[];
17
18
  static css: string;
18
19
  private renderBlock;
19
20
  private renderPartitionError;
@@ -1 +1 @@
1
- {"version":3,"file":"BlockGraph.d.ts","sourceRoot":"","sources":["../../src/components/BlockGraph.tsx"],"names":[],"mappings":"AACA,OAAO,EAAC,MAAM,EAAE,SAAS,EAAM,MAAM,2BAA2B,CAAA;AAChE,OAAO,KAAK,EAAC,cAAc,EAAE,gBAAgB,EAAC,MAAM,2BAA2B,CAAA;AAE/E,OAAO,KAAK,EAAC,SAAS,EAAY,MAAM,aAAa,CAAA;AACrD,OAAO,EAAC,mBAAmB,EAAY,MAAM,aAAa,CAAA;AAS1D,MAAM,WAAW,eAAe,CAAC,KAAK,CAAE,SAAQ,cAAc;IAC1D,QAAQ,CAAC,KAAK,EAAE,mBAAmB,CAAC,KAAK,CAAC,CAAA;IAC1C,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;IAC7B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CACjC;AAED,mFAAmF;AACnF,qBAAa,UAAU,CAAC,KAAK,GAAG,OAAO,CAAE,SAAQ,SAAS,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;IAC9E,OAAgB,SAAS,EAAE,SAAS,MAAM,EAAE,CAAK;IACj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