@fusion.dev/helix-headless 0.120.0 → 0.121.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.
@@ -49992,6 +49992,38 @@
49992
49992
  "module": "./root/graph-model.js"
49993
49993
  }
49994
49994
  },
49995
+ {
49996
+ "kind": "js",
49997
+ "name": "GraphNodeEmphasis",
49998
+ "declaration": {
49999
+ "name": "GraphNodeEmphasis",
50000
+ "module": "./root/graph-model.js"
50001
+ }
50002
+ },
50003
+ {
50004
+ "kind": "js",
50005
+ "name": "GraphNodeMaterial",
50006
+ "declaration": {
50007
+ "name": "GraphNodeMaterial",
50008
+ "module": "./root/graph-model.js"
50009
+ }
50010
+ },
50011
+ {
50012
+ "kind": "js",
50013
+ "name": "GraphNodeShape",
50014
+ "declaration": {
50015
+ "name": "GraphNodeShape",
50016
+ "module": "./root/graph-model.js"
50017
+ }
50018
+ },
50019
+ {
50020
+ "kind": "js",
50021
+ "name": "GraphNodeTone",
50022
+ "declaration": {
50023
+ "name": "GraphNodeTone",
50024
+ "module": "./root/graph-model.js"
50025
+ }
50026
+ },
49995
50027
  {
49996
50028
  "kind": "js",
49997
50029
  "name": "Relation",
@@ -1,3 +1,3 @@
1
- export type { Adjacency, Entry, GraphLink, GraphNode, Relation } from './root/graph-model.js';
1
+ export type { Adjacency, Entry, GraphLink, GraphNode, GraphNodeEmphasis, GraphNodeMaterial, GraphNodeShape, GraphNodeTone, Relation, } from './root/graph-model.js';
2
2
  export { adjacencyOf, entriesOf, nameOf, sortedOf, within } from './root/graph-model.js';
3
3
  export { HelixHeadlessGraph } from './root/graph-root.js';
@@ -1,11 +1,37 @@
1
+ /** The shapes a note can be drawn in, from the `shape` axis. */
2
+ export type GraphNodeShape = 'circle' | 'diamond' | 'ring' | 'square';
3
+ /** How heavily a note is drawn, from the `emphasis` axis. */
4
+ export type GraphNodeEmphasis = 'outlined' | 'solid' | 'subtle';
5
+ /** What a note is drawn as made of, from the `material` axis. */
6
+ export type GraphNodeMaterial = 'frosted' | 'glass';
7
+ /** What a note means, from the `tone` axis, which colors it over its group. */
8
+ export type GraphNodeTone = 'accent' | 'danger' | 'info' | 'neutral' | 'primary' | 'success' | 'warning';
1
9
  /** One note in a graph. */
2
10
  export interface GraphNode {
3
11
  /** Unique in the graph, and what `active` and a link's ends name. */
4
12
  id: string;
5
13
  /** What the note is called. Its `id` where it has none. */
6
14
  label?: string | undefined;
15
+ /**
16
+ * How heavily it is drawn: `solid`, filled, which unset is; `outlined`, a
17
+ * ring with the ground showing through; `subtle`, a tinted fill with a
18
+ * ring. Unset is the renderer's own.
19
+ */
20
+ emphasis?: GraphNodeEmphasis | undefined;
7
21
  /** A kind the note belongs to, such as a tag, which a renderer colors it by. */
8
22
  group?: string | undefined;
23
+ /** What it is drawn as made of: `glass` or `frosted`. Unset is the renderer's own. */
24
+ material?: GraphNodeMaterial | undefined;
25
+ /**
26
+ * Its shape, which says what kind of note it is at a glance: a person as a
27
+ * circle and a document as a square. Unset is the renderer's own.
28
+ */
29
+ shape?: GraphNodeShape | undefined;
30
+ /**
31
+ * What it means, which colors it over its group's color: `danger` for an
32
+ * incident, `success` for something done.
33
+ */
34
+ tone?: GraphNodeTone | undefined;
9
35
  /** How large the renderer draws it, relative to the others. */
10
36
  size?: number | undefined;
11
37
  /** Where the note stands, where the page already knows. Laid out where it does not. */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fusion.dev/helix-headless",
3
3
  "description": "Headless component tier. Structure, accessibility, state, and form participation. No styling.",
4
- "version": "0.120.0",
4
+ "version": "0.121.0",
5
5
  "license": "MIT",
6
6
  "author": "Ross Sheppard <ross.sheppard@fusion.dev>",
7
7
  "repository": {
@@ -46,13 +46,13 @@
46
46
  },
47
47
  "bugs": "https://github.com/project-fusion/fusion/issues",
48
48
  "dependencies": {
49
- "@fusion.dev/helix-core": "0.120.0",
50
- "@fusion.dev/helix-icons": "0.120.0",
49
+ "@fusion.dev/helix-core": "0.121.0",
50
+ "@fusion.dev/helix-icons": "0.121.0",
51
51
  "uqr": "^0.1.3"
52
52
  },
53
53
  "devDependencies": {
54
- "@fusion.dev/helix-cem": "0.120.0",
55
- "@fusion.dev/helix-testing": "0.120.0",
54
+ "@fusion.dev/helix-cem": "0.121.0",
55
+ "@fusion.dev/helix-testing": "0.121.0",
56
56
  "@fusion.dev/scripts": "0.0.0-dev",
57
57
  "@happy-dom/global-registrator": "^20.0.0",
58
58
  "@lit-labs/ssr": "^4.1.0",