@fusion.dev/helix 0.110.6 → 0.111.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.
@@ -15189,6 +15189,20 @@
15189
15189
  "module": "src/canvas/root/canvas-root.ts"
15190
15190
  }
15191
15191
  },
15192
+ {
15193
+ "kind": "field",
15194
+ "name": "toneLabels",
15195
+ "type": {
15196
+ "text": "Partial<Record<CanvasTone, string>>"
15197
+ },
15198
+ "default": "{}",
15199
+ "description": "What each tone means on this board, in words read out with the cards and\nconnections in it, such as `{\"danger\": \"Blocked\", \"success\": \"Done\"}`.\n\n**Named by the page, since the tone names a color and the page gives it\nits meaning.** JSON Canvas leaves its six colors to the application, so\nred is \"blocked\" on one board and \"urgent\" on the next. A reader who can\nsee the board is told by the color; this is how a reader who cannot is\ntold the same. A tone left out is not read.",
15200
+ "attribute": "tone-labels",
15201
+ "inheritedFrom": {
15202
+ "name": "HelixHeadlessCanvas",
15203
+ "module": "src/canvas/root/canvas-root.ts"
15204
+ }
15205
+ },
15192
15206
  {
15193
15207
  "kind": "field",
15194
15208
  "name": "stop",
@@ -15647,6 +15661,31 @@
15647
15661
  "module": "src/canvas/root/canvas-root.ts"
15648
15662
  }
15649
15663
  },
15664
+ {
15665
+ "kind": "field",
15666
+ "name": "fingers",
15667
+ "privacy": "private",
15668
+ "readonly": true,
15669
+ "default": "new Map<number, { x: number; y: number }>()",
15670
+ "description": "Where each finger on the board is, by pointer, which a pinch is measured from.",
15671
+ "inheritedFrom": {
15672
+ "name": "HelixHeadlessCanvas",
15673
+ "module": "src/canvas/root/canvas-root.ts"
15674
+ }
15675
+ },
15676
+ {
15677
+ "kind": "field",
15678
+ "name": "pinching",
15679
+ "type": {
15680
+ "text": "| {\n at: { x: number; y: number; zoom: number }\n middle: { x: number; y: number }\n spread: number\n }\n | undefined"
15681
+ },
15682
+ "privacy": "private",
15683
+ "description": "A pinch under way: how far apart its fingers were and the point between\nthem, in the box, and the view, when the second finger landed.",
15684
+ "inheritedFrom": {
15685
+ "name": "HelixHeadlessCanvas",
15686
+ "module": "src/canvas/root/canvas-root.ts"
15687
+ }
15688
+ },
15650
15689
  {
15651
15690
  "kind": "field",
15652
15691
  "name": "dragging",
@@ -16915,6 +16954,51 @@
16915
16954
  "module": "src/canvas/root/canvas-root.ts"
16916
16955
  }
16917
16956
  },
16957
+ {
16958
+ "kind": "method",
16959
+ "name": "fingerSpan",
16960
+ "privacy": "private",
16961
+ "return": {
16962
+ "type": {
16963
+ "text": "{ middle: { x: number; y: number }; spread: number }"
16964
+ }
16965
+ },
16966
+ "description": "The fingers' spread and the point between them, in the box. Taken from\nthe first two fingers down, where a third has landed as well.",
16967
+ "inheritedFrom": {
16968
+ "name": "HelixHeadlessCanvas",
16969
+ "module": "src/canvas/root/canvas-root.ts"
16970
+ }
16971
+ },
16972
+ {
16973
+ "kind": "method",
16974
+ "name": "startPinch",
16975
+ "privacy": "private",
16976
+ "return": {
16977
+ "type": {
16978
+ "text": "void"
16979
+ }
16980
+ },
16981
+ "description": "Turns what the first finger was doing into a pinch, where that was a pan\nor a press that had not yet moved anything. A finger already carrying a\ncard, drawing a line, resizing or drawing a box goes on doing that.",
16982
+ "inheritedFrom": {
16983
+ "name": "HelixHeadlessCanvas",
16984
+ "module": "src/canvas/root/canvas-root.ts"
16985
+ }
16986
+ },
16987
+ {
16988
+ "kind": "method",
16989
+ "name": "pinch",
16990
+ "privacy": "private",
16991
+ "return": {
16992
+ "type": {
16993
+ "text": "void"
16994
+ }
16995
+ },
16996
+ "description": "Scales the board by how far the fingers have spread since the pinch\nbegan, about the point between them, and carries it with that point, so\nwhat was under the fingers stays under them.",
16997
+ "inheritedFrom": {
16998
+ "name": "HelixHeadlessCanvas",
16999
+ "module": "src/canvas/root/canvas-root.ts"
17000
+ }
17001
+ },
16918
17002
  {
16919
17003
  "kind": "method",
16920
17004
  "name": "zoomAbout",
@@ -17960,6 +18044,19 @@
17960
18044
  "name": "HelixHeadlessCanvas",
17961
18045
  "module": "src/canvas/root/canvas-root.ts"
17962
18046
  }
18047
+ },
18048
+ {
18049
+ "name": "tone-labels",
18050
+ "type": {
18051
+ "text": "Partial<Record<CanvasTone, string>>"
18052
+ },
18053
+ "default": "{}",
18054
+ "description": "What each tone means on this board, in words read out with the cards and\nconnections in it, such as `{\"danger\": \"Blocked\", \"success\": \"Done\"}`.\n\n**Named by the page, since the tone names a color and the page gives it\nits meaning.** JSON Canvas leaves its six colors to the application, so\nred is \"blocked\" on one board and \"urgent\" on the next. A reader who can\nsee the board is told by the color; this is how a reader who cannot is\ntold the same. A tone left out is not read.",
18055
+ "fieldName": "toneLabels",
18056
+ "inheritedFrom": {
18057
+ "name": "HelixHeadlessCanvas",
18058
+ "module": "src/canvas/root/canvas-root.ts"
18059
+ }
17963
18060
  }
17964
18061
  ],
17965
18062
  "superclass": {
@@ -18002,7 +18099,7 @@
18002
18099
  "slug": "read-only"
18003
18100
  },
18004
18101
  {
18005
- "description": "Outlined, filled, elevated, and plain cards, joined by solid, dashed, and dotted connections.",
18102
+ "description": "Outlined, filled, elevated, and plain cards, joined by solid, dashed, and dotted connections, with what each tone means read out.",
18006
18103
  "slug": "styles"
18007
18104
  },
18008
18105
  {
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.110.6",
4
+ "version": "0.111.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.110.6",
55
- "@fusion.dev/helix-headless": "0.110.6",
56
- "@fusion.dev/helix-styles": "0.110.6"
54
+ "@fusion.dev/helix-core": "0.111.0",
55
+ "@fusion.dev/helix-headless": "0.111.0",
56
+ "@fusion.dev/helix-styles": "0.111.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@fusion.dev/helix-cem": "0.110.6",
60
- "@fusion.dev/helix-testing": "0.110.6",
59
+ "@fusion.dev/helix-cem": "0.111.0",
60
+ "@fusion.dev/helix-testing": "0.111.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
@@ -3163,6 +3163,24 @@ Written to select from outside, and read to act on the selection. */
3163
3163
  "stopped-label"?: (HelixCanvas["stoppedLabel"]) | undefined;
3164
3164
  /** The text announced when a connection is stopped before it is requested. */
3165
3165
  stoppedLabel?: (HelixCanvas["stoppedLabel"]) | undefined;
3166
+ /** What each tone means on this board, in words read out with the cards and
3167
+ connections in it, such as `{"danger": "Blocked", "success": "Done"}`.
3168
+
3169
+ **Named by the page, since the tone names a color and the page gives it
3170
+ its meaning.** JSON Canvas leaves its six colors to the application, so
3171
+ red is "blocked" on one board and "urgent" on the next. A reader who can
3172
+ see the board is told by the color; this is how a reader who cannot is
3173
+ told the same. A tone left out is not read. */
3174
+ "tone-labels"?: (HelixCanvas["toneLabels"]) | undefined;
3175
+ /** What each tone means on this board, in words read out with the cards and
3176
+ connections in it, such as `{"danger": "Blocked", "success": "Done"}`.
3177
+
3178
+ **Named by the page, since the tone names a color and the page gives it
3179
+ its meaning.** JSON Canvas leaves its six colors to the application, so
3180
+ red is "blocked" on one board and "urgent" on the next. A reader who can
3181
+ see the board is told by the color; this is how a reader who cannot is
3182
+ told the same. A tone left out is not read. */
3183
+ toneLabels?: (HelixCanvas["toneLabels"]) | undefined;
3166
3184
  /** The board's current view: the document's point at the middle of the view,
3167
3185
  and the zoom.
3168
3186
 
@@ -3471,6 +3489,24 @@ Written to select from outside, and read to act on the selection. */
3471
3489
  "attr:stopped-label"?: (HelixCanvas["stoppedLabel"]) | undefined;
3472
3490
  /** The text announced when a connection is stopped before it is requested. */
3473
3491
  "prop:stoppedLabel"?: (HelixCanvas["stoppedLabel"]) | undefined;
3492
+ /** What each tone means on this board, in words read out with the cards and
3493
+ connections in it, such as `{"danger": "Blocked", "success": "Done"}`.
3494
+
3495
+ **Named by the page, since the tone names a color and the page gives it
3496
+ its meaning.** JSON Canvas leaves its six colors to the application, so
3497
+ red is "blocked" on one board and "urgent" on the next. A reader who can
3498
+ see the board is told by the color; this is how a reader who cannot is
3499
+ told the same. A tone left out is not read. */
3500
+ "attr:tone-labels"?: (HelixCanvas["toneLabels"]) | undefined;
3501
+ /** What each tone means on this board, in words read out with the cards and
3502
+ connections in it, such as `{"danger": "Blocked", "success": "Done"}`.
3503
+
3504
+ **Named by the page, since the tone names a color and the page gives it
3505
+ its meaning.** JSON Canvas leaves its six colors to the application, so
3506
+ red is "blocked" on one board and "urgent" on the next. A reader who can
3507
+ see the board is told by the color; this is how a reader who cannot is
3508
+ told the same. A tone left out is not read. */
3509
+ "prop:toneLabels"?: (HelixCanvas["toneLabels"]) | undefined;
3474
3510
  /** The board's current view: the document's point at the middle of the view,
3475
3511
  and the zoom.
3476
3512
 
@@ -28673,6 +28709,14 @@ export type CustomElements = {
28673
28709
  *
28674
28710
  * Written to select from outside, and read to act on the selection.
28675
28711
  * - `stopped-label`/`stoppedLabel`: The text announced when a connection is stopped before it is requested.
28712
+ * - `tone-labels`/`toneLabels`: What each tone means on this board, in words read out with the cards and
28713
+ * connections in it, such as `{"danger": "Blocked", "success": "Done"}`.
28714
+ *
28715
+ * **Named by the page, since the tone names a color and the page gives it
28716
+ * its meaning.** JSON Canvas leaves its six colors to the application, so
28717
+ * red is "blocked" on one board and "urgent" on the next. A reader who can
28718
+ * see the board is told by the color; this is how a reader who cannot is
28719
+ * told the same. A tone left out is not read.
28676
28720
  * - `view`: The board's current view: the document's point at the middle of the view,
28677
28721
  * and the zoom.
28678
28722
  *
@@ -50476,6 +50520,14 @@ export type CustomElementsSolidJs = {
50476
50520
  *
50477
50521
  * Written to select from outside, and read to act on the selection.
50478
50522
  * - `stopped-label`/`stoppedLabel`: The text announced when a connection is stopped before it is requested.
50523
+ * - `tone-labels`/`toneLabels`: What each tone means on this board, in words read out with the cards and
50524
+ * connections in it, such as `{"danger": "Blocked", "success": "Done"}`.
50525
+ *
50526
+ * **Named by the page, since the tone names a color and the page gives it
50527
+ * its meaning.** JSON Canvas leaves its six colors to the application, so
50528
+ * red is "blocked" on one board and "urgent" on the next. A reader who can
50529
+ * see the board is told by the color; this is how a reader who cannot is
50530
+ * told the same. A tone left out is not read.
50479
50531
  * - `view`: The board's current view: the document's point at the middle of the view,
50480
50532
  * and the zoom.
50481
50533
  *
package/types/svelte.d.ts CHANGED
@@ -25,6 +25,8 @@ declare module 'svelte/elements' {
25
25
  'helix-callout': CustomElements['helix-callout']
26
26
  'helix-canvas-edge': CustomElements['helix-canvas-edge']
27
27
  'helix-canvas-node': CustomElements['helix-canvas-node']
28
+ 'danger': CustomElements['danger']
29
+ 'success': CustomElements['success']
28
30
  'helix-canvas': CustomElements['helix-canvas']
29
31
  'helix-card': CustomElements['helix-card']
30
32
  'helix-carousel': CustomElements['helix-carousel']
package/types/vue.d.ts CHANGED
@@ -1777,6 +1777,24 @@ Written to select from outside, and read to act on the selection. */
1777
1777
  "stopped-label"?: (HelixCanvas["stoppedLabel"]) | undefined;
1778
1778
  /** The text announced when a connection is stopped before it is requested. */
1779
1779
  stoppedLabel?: (HelixCanvas["stoppedLabel"]) | undefined;
1780
+ /** What each tone means on this board, in words read out with the cards and
1781
+ connections in it, such as `{"danger": "Blocked", "success": "Done"}`.
1782
+
1783
+ **Named by the page, since the tone names a color and the page gives it
1784
+ its meaning.** JSON Canvas leaves its six colors to the application, so
1785
+ red is "blocked" on one board and "urgent" on the next. A reader who can
1786
+ see the board is told by the color; this is how a reader who cannot is
1787
+ told the same. A tone left out is not read. */
1788
+ "tone-labels"?: (HelixCanvas["toneLabels"]) | undefined;
1789
+ /** What each tone means on this board, in words read out with the cards and
1790
+ connections in it, such as `{"danger": "Blocked", "success": "Done"}`.
1791
+
1792
+ **Named by the page, since the tone names a color and the page gives it
1793
+ its meaning.** JSON Canvas leaves its six colors to the application, so
1794
+ red is "blocked" on one board and "urgent" on the next. A reader who can
1795
+ see the board is told by the color; this is how a reader who cannot is
1796
+ told the same. A tone left out is not read. */
1797
+ toneLabels?: (HelixCanvas["toneLabels"]) | undefined;
1780
1798
  /** The board's current view: the document's point at the middle of the view,
1781
1799
  and the zoom.
1782
1800