@fusion.dev/helix 0.119.0 → 0.120.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.
@@ -63290,6 +63290,44 @@
63290
63290
  "module": "src/graph/root/graph-root.ts"
63291
63291
  }
63292
63292
  },
63293
+ {
63294
+ "kind": "method",
63295
+ "name": "signal",
63296
+ "return": {
63297
+ "type": {
63298
+ "text": "void"
63299
+ }
63300
+ },
63301
+ "parameters": [
63302
+ {
63303
+ "name": "from",
63304
+ "type": {
63305
+ "text": "string"
63306
+ }
63307
+ },
63308
+ {
63309
+ "name": "to",
63310
+ "type": {
63311
+ "text": "string"
63312
+ }
63313
+ },
63314
+ {
63315
+ "name": "options",
63316
+ "default": "{}",
63317
+ "type": {
63318
+ "text": "{ tone?: GraphSignalDetail['tone'] }"
63319
+ }
63320
+ }
63321
+ ],
63322
+ "description": "Shows something passing from one note to another, such as a message, a\nrequest or a payment, drawn traveling along the drawing and arriving with\na pulse. `tone` says what it means and colors it. Call it as often as\nthings happen; each call is one signal.\n\n**Drawn, and never said.** A signal is motion in the drawing, which a\nscreen reader does not hear: where what passed matters to a reader, say it\nin the page's own words as well.",
63323
+ "type": {
63324
+ "text": "signal(from: string, to: string, options: { tone?: GraphSignalDetail['tone'] } = {}) => void"
63325
+ },
63326
+ "inheritedFrom": {
63327
+ "name": "HelixHeadlessGraph",
63328
+ "module": "src/graph/root/graph-root.ts"
63329
+ }
63330
+ },
63293
63331
  {
63294
63332
  "kind": "method",
63295
63333
  "name": "countText",
@@ -63785,7 +63823,7 @@
63785
63823
  "slug": "preview"
63786
63824
  },
63787
63825
  {
63788
- "description": "A graph of company notes drawn by Sigma.js and laid out by ForceAtlas2, with the list beside it.",
63826
+ "description": "A graph of company notes drawn by Sigma.js, with notes arriving and messages passing between them as they happen.",
63789
63827
  "slug": "live"
63790
63828
  }
63791
63829
  ],
@@ -64222,6 +64260,18 @@
64222
64260
  "module": "src/graph/root/graph-root.ts"
64223
64261
  }
64224
64262
  },
64263
+ {
64264
+ "type": {
64265
+ "text": "HelixGraphSignalEvent"
64266
+ },
64267
+ "description": "Something passed between two notes, sent by `signal()`. Used by `connectGraph`; pages do not need to listen for it.",
64268
+ "name": "helix-graph-signal",
64269
+ "reactProp": "onhelix-graph-signal",
64270
+ "inheritedFrom": {
64271
+ "name": "HelixHeadlessGraph",
64272
+ "module": "src/graph/root/graph-root.ts"
64273
+ }
64274
+ },
64225
64275
  {
64226
64276
  "type": {
64227
64277
  "text": "HelixGraphZoomEvent"
@@ -94,6 +94,7 @@ registerElementEvents({
94
94
  'helix-graph-pan',
95
95
  'helix-graph-part-change',
96
96
  'helix-graph-ready',
97
+ 'helix-graph-signal',
97
98
  'helix-graph-zoom',
98
99
  ],
99
100
  'helix-heatmap': ['helix-resize'],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fusion.dev/helix",
3
3
  "description": "Styled component tier. Extends the headless tier with token-driven presentation.",
4
- "version": "0.119.0",
4
+ "version": "0.120.0",
5
5
  "license": "MIT",
6
6
  "author": "Ross Sheppard <ross.sheppard@fusion.dev>",
7
7
  "repository": {
@@ -51,13 +51,13 @@
51
51
  },
52
52
  "bugs": "https://github.com/project-fusion/fusion/issues",
53
53
  "dependencies": {
54
- "@fusion.dev/helix-core": "0.119.0",
55
- "@fusion.dev/helix-headless": "0.119.0",
56
- "@fusion.dev/helix-styles": "0.119.0"
54
+ "@fusion.dev/helix-core": "0.120.0",
55
+ "@fusion.dev/helix-headless": "0.120.0",
56
+ "@fusion.dev/helix-styles": "0.120.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@fusion.dev/helix-cem": "0.119.0",
60
- "@fusion.dev/helix-testing": "0.119.0",
59
+ "@fusion.dev/helix-cem": "0.120.0",
60
+ "@fusion.dev/helix-testing": "0.120.0",
61
61
  "@fusion.dev/scripts": "0.0.0-dev",
62
62
  "@happy-dom/global-registrator": "^20.0.0",
63
63
  "@lit-labs/ssr": "^4.1.0",
package/types/jsx.d.ts CHANGED
@@ -87,6 +87,7 @@ import type {
87
87
  HelixGraphPanEvent,
88
88
  HelixGraphPartChangeEvent,
89
89
  HelixGraphReadyEvent,
90
+ HelixGraphSignalEvent,
90
91
  HelixGraphZoomEvent,
91
92
  HelixGrid,
92
93
  HelixHeadlessFilterField,
@@ -11118,6 +11119,9 @@ export type HelixGraphHelixGraphPartChangeElementEvent =
11118
11119
  /** `helix-graph-ready` event type */
11119
11120
  export type HelixGraphHelixGraphReadyElementEvent =
11120
11121
  HelixGraphElementEvent<HelixGraphReadyEvent>;
11122
+ /** `helix-graph-signal` event type */
11123
+ export type HelixGraphHelixGraphSignalElementEvent =
11124
+ HelixGraphElementEvent<HelixGraphSignalEvent>;
11121
11125
  /** `helix-graph-zoom` event type */
11122
11126
  export type HelixGraphHelixGraphZoomElementEvent =
11123
11127
  HelixGraphElementEvent<HelixGraphZoomEvent>;
@@ -11367,6 +11371,8 @@ Required. */
11367
11371
  ) => void) | undefined;
11368
11372
  /** The graph has been drawn whole, laid out and settled. Sent each time `drawn()` says it is drawn after it was not. */
11369
11373
  "onhelix-graph-ready"?: ((e: HelixGraphHelixGraphReadyElementEvent) => void) | undefined;
11374
+ /** Something passed between two notes, sent by `signal()`. Used by `connectGraph`; pages do not need to listen for it. */
11375
+ "onhelix-graph-signal"?: ((e: HelixGraphHelixGraphSignalElementEvent) => void) | undefined;
11370
11376
  /** A zoom button or key was pressed. `connectGraph` zooms the drawing. */
11371
11377
  "onhelix-graph-zoom"?: ((e: HelixGraphHelixGraphZoomElementEvent) => void) | undefined;
11372
11378
  };
@@ -11615,6 +11621,8 @@ Required. */
11615
11621
  ) => void) | undefined;
11616
11622
  /** The graph has been drawn whole, laid out and settled. Sent each time `drawn()` says it is drawn after it was not. */
11617
11623
  "on:helix-graph-ready"?: ((e: HelixGraphHelixGraphReadyElementEvent) => void) | undefined;
11624
+ /** Something passed between two notes, sent by `signal()`. Used by `connectGraph`; pages do not need to listen for it. */
11625
+ "on:helix-graph-signal"?: ((e: HelixGraphHelixGraphSignalElementEvent) => void) | undefined;
11618
11626
  /** A zoom button or key was pressed. `connectGraph` zooms the drawing. */
11619
11627
  "on:helix-graph-zoom"?: ((e: HelixGraphHelixGraphZoomElementEvent) => void) | undefined;
11620
11628
 
@@ -35622,6 +35630,7 @@ export type CustomElements = {
35622
35630
  * - `helix-graph-pan`: A pan button or arrow key was pressed. `connectGraph` moves the drawing.
35623
35631
  * - `helix-graph-part-change`: The notes, the links, the selection, the depth or the gestures changed. Used by `connectGraph`; pages do not need to listen for it.
35624
35632
  * - `helix-graph-ready`: The graph has been drawn whole, laid out and settled. Sent each time `drawn()` says it is drawn after it was not.
35633
+ * - `helix-graph-signal`: Something passed between two notes, sent by `signal()`. Used by `connectGraph`; pages do not need to listen for it.
35625
35634
  * - `helix-graph-zoom`: A zoom button or key was pressed. `connectGraph` zooms the drawing.
35626
35635
  *
35627
35636
  * ## Slots
@@ -35657,6 +35666,14 @@ export type CustomElements = {
35657
35666
  * `helix-graph-layout` for the page to keep. Called by `connectGraph` once
35658
35667
  * its layout has settled; a page laying out its own graph calls it the same
35659
35668
  * way.
35669
+ * - `signal(from: string, to: string, options: { tone?: GraphSignalDetail['tone'] } = {}) => void`: Shows something passing from one note to another, such as a message, a
35670
+ * request or a payment, drawn traveling along the drawing and arriving with
35671
+ * a pulse. `tone` says what it means and colors it. Call it as often as
35672
+ * things happen; each call is one signal.
35673
+ *
35674
+ * **Drawn, and never said.** A signal is motion in the drawing, which a
35675
+ * screen reader does not hear: where what passed matters to a reader, say it
35676
+ * in the page's own words as well.
35660
35677
  *
35661
35678
  * ## CSS Custom Properties
35662
35679
  *
@@ -57902,6 +57919,7 @@ export type CustomElementsSolidJs = {
57902
57919
  * - `helix-graph-pan`: A pan button or arrow key was pressed. `connectGraph` moves the drawing.
57903
57920
  * - `helix-graph-part-change`: The notes, the links, the selection, the depth or the gestures changed. Used by `connectGraph`; pages do not need to listen for it.
57904
57921
  * - `helix-graph-ready`: The graph has been drawn whole, laid out and settled. Sent each time `drawn()` says it is drawn after it was not.
57922
+ * - `helix-graph-signal`: Something passed between two notes, sent by `signal()`. Used by `connectGraph`; pages do not need to listen for it.
57905
57923
  * - `helix-graph-zoom`: A zoom button or key was pressed. `connectGraph` zooms the drawing.
57906
57924
  *
57907
57925
  * ## Slots
@@ -57937,6 +57955,14 @@ export type CustomElementsSolidJs = {
57937
57955
  * `helix-graph-layout` for the page to keep. Called by `connectGraph` once
57938
57956
  * its layout has settled; a page laying out its own graph calls it the same
57939
57957
  * way.
57958
+ * - `signal(from: string, to: string, options: { tone?: GraphSignalDetail['tone'] } = {}) => void`: Shows something passing from one note to another, such as a message, a
57959
+ * request or a payment, drawn traveling along the drawing and arriving with
57960
+ * a pulse. `tone` says what it means and colors it. Call it as often as
57961
+ * things happen; each call is one signal.
57962
+ *
57963
+ * **Drawn, and never said.** A signal is motion in the drawing, which a
57964
+ * screen reader does not hear: where what passed matters to a reader, say it
57965
+ * in the page's own words as well.
57940
57966
  *
57941
57967
  * ## CSS Custom Properties
57942
57968
  *
package/types/vue.d.ts CHANGED
@@ -192,6 +192,7 @@ import type {
192
192
  HelixGraphPanEvent,
193
193
  HelixGraphPartChangeEvent,
194
194
  HelixGraphReadyEvent,
195
+ HelixGraphSignalEvent,
195
196
  HelixGraphZoomEvent,
196
197
  HelixResizeEvent,
197
198
  HelixShortcutEvent,
@@ -5714,6 +5715,9 @@ export type HelixGraphHelixGraphPartChangeElementEvent =
5714
5715
  /** `helix-graph-ready` event type */
5715
5716
  export type HelixGraphHelixGraphReadyElementEvent =
5716
5717
  HelixGraphElementEvent<HelixGraphReadyEvent>;
5718
+ /** `helix-graph-signal` event type */
5719
+ export type HelixGraphHelixGraphSignalElementEvent =
5720
+ HelixGraphElementEvent<HelixGraphSignalEvent>;
5717
5721
  /** `helix-graph-zoom` event type */
5718
5722
  export type HelixGraphHelixGraphZoomElementEvent =
5719
5723
  HelixGraphElementEvent<HelixGraphZoomEvent>;
@@ -5961,6 +5965,8 @@ export type HelixGraphVueEvents = {
5961
5965
  "helix-graph-part-change": HelixGraphHelixGraphPartChangeElementEvent;
5962
5966
  /** The graph has been drawn whole, laid out and settled. Sent each time `drawn()` says it is drawn after it was not. */
5963
5967
  "helix-graph-ready": HelixGraphHelixGraphReadyElementEvent;
5968
+ /** Something passed between two notes, sent by `signal()`. Used by `connectGraph`; pages do not need to listen for it. */
5969
+ "helix-graph-signal": HelixGraphHelixGraphSignalElementEvent;
5964
5970
  /** A zoom button or key was pressed. `connectGraph` zooms the drawing. */
5965
5971
  "helix-graph-zoom": HelixGraphHelixGraphZoomElementEvent;
5966
5972
  };