@fusion.dev/helix 0.110.4 → 0.110.6
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/custom-elements.json
CHANGED
|
@@ -13539,6 +13539,18 @@
|
|
|
13539
13539
|
"module": "src/canvas/node/canvas-node.ts"
|
|
13540
13540
|
}
|
|
13541
13541
|
},
|
|
13542
|
+
{
|
|
13543
|
+
"kind": "field",
|
|
13544
|
+
"name": "placement",
|
|
13545
|
+
"privacy": "private",
|
|
13546
|
+
"readonly": true,
|
|
13547
|
+
"default": "new PlacementController(this)",
|
|
13548
|
+
"description": "Where the card was placed, kept in its own shadow root.",
|
|
13549
|
+
"inheritedFrom": {
|
|
13550
|
+
"name": "HelixHeadlessCanvasNode",
|
|
13551
|
+
"module": "src/canvas/node/canvas-node.ts"
|
|
13552
|
+
}
|
|
13553
|
+
},
|
|
13542
13554
|
{
|
|
13543
13555
|
"kind": "field",
|
|
13544
13556
|
"name": "name",
|
|
@@ -14296,6 +14308,14 @@
|
|
|
14296
14308
|
"module": "src/canvas/node/canvas-node.ts"
|
|
14297
14309
|
}
|
|
14298
14310
|
},
|
|
14311
|
+
{
|
|
14312
|
+
"description": "Placed on the board.",
|
|
14313
|
+
"name": "placed",
|
|
14314
|
+
"inheritedFrom": {
|
|
14315
|
+
"name": "HelixHeadlessCanvasNode",
|
|
14316
|
+
"module": "src/canvas/node/canvas-node.ts"
|
|
14317
|
+
}
|
|
14318
|
+
},
|
|
14299
14319
|
{
|
|
14300
14320
|
"description": "The card is selected.",
|
|
14301
14321
|
"name": "selected",
|
|
@@ -15409,20 +15429,6 @@
|
|
|
15409
15429
|
"module": "src/canvas/root/canvas-root.ts"
|
|
15410
15430
|
}
|
|
15411
15431
|
},
|
|
15412
|
-
{
|
|
15413
|
-
"kind": "field",
|
|
15414
|
-
"name": "groups",
|
|
15415
|
-
"type": {
|
|
15416
|
-
"text": "CanvasNode[]"
|
|
15417
|
-
},
|
|
15418
|
-
"privacy": "private",
|
|
15419
|
-
"description": "The groups alone, which is all a card's group is chosen from.",
|
|
15420
|
-
"readonly": true,
|
|
15421
|
-
"inheritedFrom": {
|
|
15422
|
-
"name": "HelixHeadlessCanvas",
|
|
15423
|
-
"module": "src/canvas/root/canvas-root.ts"
|
|
15424
|
-
}
|
|
15425
|
-
},
|
|
15426
15432
|
{
|
|
15427
15433
|
"kind": "field",
|
|
15428
15434
|
"name": "cache",
|
|
@@ -16255,6 +16261,34 @@
|
|
|
16255
16261
|
"module": "src/canvas/root/canvas-root.ts"
|
|
16256
16262
|
}
|
|
16257
16263
|
},
|
|
16264
|
+
{
|
|
16265
|
+
"kind": "field",
|
|
16266
|
+
"name": "keying",
|
|
16267
|
+
"type": {
|
|
16268
|
+
"text": "| {\n byElement: Map<HelixHeadlessCanvasEdge, string>\n byKey: Map<string, HelixHeadlessCanvasEdge>\n }\n | undefined"
|
|
16269
|
+
},
|
|
16270
|
+
"privacy": "private",
|
|
16271
|
+
"default": "undefined",
|
|
16272
|
+
"description": "Every connection's key and every key's element, worked out once for the\nrender that asks for them.\n\n**One pass, where each asked alone walked them all.** A connection with no\n`name` counts its twins to be told apart, and a render asks every\nconnection's element by key, so four hundred unnamed connections cost 53\nms a render and 4.7 seconds with them all chosen, every step of a drag.\nKept from `willUpdate` to `updated` only: outside a render a handler may\nhave just moved a connection's ends, and its key is worked out afresh.",
|
|
16273
|
+
"inheritedFrom": {
|
|
16274
|
+
"name": "HelixHeadlessCanvas",
|
|
16275
|
+
"module": "src/canvas/root/canvas-root.ts"
|
|
16276
|
+
}
|
|
16277
|
+
},
|
|
16278
|
+
{
|
|
16279
|
+
"kind": "method",
|
|
16280
|
+
"name": "keyAll",
|
|
16281
|
+
"privacy": "private",
|
|
16282
|
+
"return": {
|
|
16283
|
+
"type": {
|
|
16284
|
+
"text": "{\n byElement: Map<HelixHeadlessCanvasEdge, string>\n byKey: Map<string, HelixHeadlessCanvasEdge>\n }"
|
|
16285
|
+
}
|
|
16286
|
+
},
|
|
16287
|
+
"inheritedFrom": {
|
|
16288
|
+
"name": "HelixHeadlessCanvas",
|
|
16289
|
+
"module": "src/canvas/root/canvas-root.ts"
|
|
16290
|
+
}
|
|
16291
|
+
},
|
|
16258
16292
|
{
|
|
16259
16293
|
"kind": "field",
|
|
16260
16294
|
"name": "edgeElements",
|
|
@@ -16997,6 +17031,20 @@
|
|
|
16997
17031
|
"module": "src/canvas/root/canvas-root.ts"
|
|
16998
17032
|
}
|
|
16999
17033
|
},
|
|
17034
|
+
{
|
|
17035
|
+
"kind": "field",
|
|
17036
|
+
"name": "waiting",
|
|
17037
|
+
"type": {
|
|
17038
|
+
"text": "CanvasView | undefined"
|
|
17039
|
+
},
|
|
17040
|
+
"privacy": "private",
|
|
17041
|
+
"default": "undefined",
|
|
17042
|
+
"description": "A view written before the board could place it, placed once it can.",
|
|
17043
|
+
"inheritedFrom": {
|
|
17044
|
+
"name": "HelixHeadlessCanvas",
|
|
17045
|
+
"module": "src/canvas/root/canvas-root.ts"
|
|
17046
|
+
}
|
|
17047
|
+
},
|
|
17000
17048
|
{
|
|
17001
17049
|
"kind": "field",
|
|
17002
17050
|
"name": "reported",
|
|
@@ -18378,7 +18426,7 @@
|
|
|
18378
18426
|
}
|
|
18379
18427
|
},
|
|
18380
18428
|
{
|
|
18381
|
-
"description": "The user has been still
|
|
18429
|
+
"description": "The user has been still for `idle-delay` milliseconds. The board's own controls stay; select on it to hide chrome of your own.",
|
|
18382
18430
|
"name": "idle",
|
|
18383
18431
|
"inheritedFrom": {
|
|
18384
18432
|
"name": "HelixHeadlessCanvas",
|
|
@@ -79773,6 +79821,18 @@
|
|
|
79773
79821
|
"module": "src/map/marker/map-marker.ts"
|
|
79774
79822
|
}
|
|
79775
79823
|
},
|
|
79824
|
+
{
|
|
79825
|
+
"kind": "field",
|
|
79826
|
+
"name": "placement",
|
|
79827
|
+
"privacy": "private",
|
|
79828
|
+
"readonly": true,
|
|
79829
|
+
"default": "new PlacementController(this)",
|
|
79830
|
+
"description": "Where the marker was placed, kept in its own shadow root.",
|
|
79831
|
+
"inheritedFrom": {
|
|
79832
|
+
"name": "HelixHeadlessMapMarker",
|
|
79833
|
+
"module": "src/map/marker/map-marker.ts"
|
|
79834
|
+
}
|
|
79835
|
+
},
|
|
79776
79836
|
{
|
|
79777
79837
|
"kind": "field",
|
|
79778
79838
|
"name": "name",
|
|
@@ -80446,6 +80506,14 @@
|
|
|
80446
80506
|
"module": "src/map/marker/map-marker.ts"
|
|
80447
80507
|
}
|
|
80448
80508
|
},
|
|
80509
|
+
{
|
|
80510
|
+
"description": "Placed on the map by the connector.",
|
|
80511
|
+
"name": "placed",
|
|
80512
|
+
"inheritedFrom": {
|
|
80513
|
+
"name": "HelixHeadlessMapMarker",
|
|
80514
|
+
"module": "src/map/marker/map-marker.ts"
|
|
80515
|
+
}
|
|
80516
|
+
},
|
|
80449
80517
|
{
|
|
80450
80518
|
"description": "Shows its name before the point, because there was no room after it.",
|
|
80451
80519
|
"name": "start",
|
|
@@ -81543,6 +81611,18 @@
|
|
|
81543
81611
|
"module": "src/map/position/map-position.ts"
|
|
81544
81612
|
}
|
|
81545
81613
|
},
|
|
81614
|
+
{
|
|
81615
|
+
"kind": "field",
|
|
81616
|
+
"name": "placement",
|
|
81617
|
+
"privacy": "private",
|
|
81618
|
+
"readonly": true,
|
|
81619
|
+
"default": "new PlacementController(this)",
|
|
81620
|
+
"description": "Where the position was placed, kept in its own shadow root.",
|
|
81621
|
+
"inheritedFrom": {
|
|
81622
|
+
"name": "HelixHeadlessMapPosition",
|
|
81623
|
+
"module": "src/map/position/map-position.ts"
|
|
81624
|
+
}
|
|
81625
|
+
},
|
|
81546
81626
|
{
|
|
81547
81627
|
"kind": "field",
|
|
81548
81628
|
"name": "spoken",
|
|
@@ -82127,6 +82207,14 @@
|
|
|
82127
82207
|
}
|
|
82128
82208
|
],
|
|
82129
82209
|
"cssStates": [
|
|
82210
|
+
{
|
|
82211
|
+
"description": "Placed on the map by the connector.",
|
|
82212
|
+
"name": "placed",
|
|
82213
|
+
"inheritedFrom": {
|
|
82214
|
+
"name": "HelixHeadlessMapPosition",
|
|
82215
|
+
"module": "src/map/position/map-position.ts"
|
|
82216
|
+
}
|
|
82217
|
+
},
|
|
82130
82218
|
{
|
|
82131
82219
|
"description": "Set one frame after the first render. Transitions wait for it, so an element does not animate its own arrival.",
|
|
82132
82220
|
"name": "settled",
|
|
@@ -22,8 +22,9 @@ display: block;
|
|
|
22
22
|
font-family: var(--helix-font-sans);
|
|
23
23
|
font-size: var(--helix-text-sm);
|
|
24
24
|
inline-size: var(--_canvas-card-inline-size);
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
|
|
26
|
+
left: var(--_canvas-card-x);
|
|
27
|
+
top: var(--_canvas-card-y);
|
|
27
28
|
|
|
28
29
|
overflow: visible;
|
|
29
30
|
position: absolute;
|
|
@@ -168,6 +169,13 @@ box-shadow: 0 0 0 var(--helix-border-thick) var(--helix-color-accent);
|
|
|
168
169
|
background-color: var(--_canvas-handle-color);
|
|
169
170
|
}
|
|
170
171
|
|
|
172
|
+
@media (forced-colors: active) {
|
|
173
|
+
:host(:state(target)) {
|
|
174
|
+
outline: var(--helix-border-thick) solid Highlight;
|
|
175
|
+
outline-offset: var(--helix-space-2xs);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
171
179
|
@media (prefers-reduced-motion: reduce) {
|
|
172
180
|
[part~="handle"],
|
|
173
181
|
[part~="move"] {
|
|
@@ -197,7 +205,7 @@ color: var(--helix-color-foreground-subtle);
|
|
|
197
205
|
font-size: var(--helix-text-xs);
|
|
198
206
|
}
|
|
199
207
|
|
|
200
|
-
:host(:not(
|
|
208
|
+
:host(:not(:state(placed))) {
|
|
201
209
|
position: static;
|
|
202
210
|
}
|
|
203
211
|
|
|
@@ -34,8 +34,10 @@ display: none;
|
|
|
34
34
|
[part="board"] {
|
|
35
35
|
block-size: var(--_canvas-plane-block-size);
|
|
36
36
|
inline-size: var(--_canvas-plane-inline-size);
|
|
37
|
-
|
|
37
|
+
|
|
38
|
+
left: 0;
|
|
38
39
|
position: absolute;
|
|
40
|
+
top: 0;
|
|
39
41
|
transform: translate(var(--_canvas-x), var(--_canvas-y)) scale(var(--_canvas-zoom));
|
|
40
42
|
transform-origin: 0 0;
|
|
41
43
|
|
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.
|
|
4
|
+
"version": "0.110.6",
|
|
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.
|
|
55
|
-
"@fusion.dev/helix-headless": "0.110.
|
|
56
|
-
"@fusion.dev/helix-styles": "0.110.
|
|
54
|
+
"@fusion.dev/helix-core": "0.110.6",
|
|
55
|
+
"@fusion.dev/helix-headless": "0.110.6",
|
|
56
|
+
"@fusion.dev/helix-styles": "0.110.6"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@fusion.dev/helix-cem": "0.110.
|
|
60
|
-
"@fusion.dev/helix-testing": "0.110.
|
|
59
|
+
"@fusion.dev/helix-cem": "0.110.6",
|
|
60
|
+
"@fusion.dev/helix-testing": "0.110.6",
|
|
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
|
@@ -28504,6 +28504,7 @@ export type CustomElements = {
|
|
|
28504
28504
|
*
|
|
28505
28505
|
* - `candidate`: While a connection is being drawn and this card is somewhere it could arrive.
|
|
28506
28506
|
* - `current`: The card that receives focus when you tab into the board.
|
|
28507
|
+
* - `placed`: Placed on the board.
|
|
28507
28508
|
* - `selected`: The card is selected.
|
|
28508
28509
|
* - `target`: A connection being drawn would end here if you released it.
|
|
28509
28510
|
* - `settled`: Set one frame after the first render. Transitions wait for it, so an element does not animate its own arrival.
|
|
@@ -28806,7 +28807,7 @@ export type CustomElements = {
|
|
|
28806
28807
|
* - `empty`: While the document has no nodes.
|
|
28807
28808
|
* - `fullscreen`: While the board fills the screen.
|
|
28808
28809
|
* - `holding`: An item picked up with a click follows the pointer until the next press puts it down.
|
|
28809
|
-
* - `idle`: The user has been still
|
|
28810
|
+
* - `idle`: The user has been still for `idle-delay` milliseconds. The board's own controls stay; select on it to hide chrome of your own.
|
|
28810
28811
|
* - `pressing`: While a press on the board, its cards or its connections is under way.
|
|
28811
28812
|
* - `settled`: Set one frame after the first render. Transitions wait for it, so an element does not animate its own arrival.
|
|
28812
28813
|
*/
|
|
@@ -37238,6 +37239,7 @@ export type CustomElements = {
|
|
|
37238
37239
|
* - `fanned`: Spread out from a location it shares with other markers, after their cluster was pressed.
|
|
37239
37240
|
* - `icon`: Has content in the icon slot.
|
|
37240
37241
|
* - `passed`: Marked as passed.
|
|
37242
|
+
* - `placed`: Placed on the map by the connector.
|
|
37241
37243
|
* - `start`: Shows its name before the point, because there was no room after it.
|
|
37242
37244
|
* - `settled`: Set one frame after the first render. Transitions wait for it, so an element does not animate its own arrival.
|
|
37243
37245
|
*/
|
|
@@ -37400,6 +37402,7 @@ export type CustomElements = {
|
|
|
37400
37402
|
*
|
|
37401
37403
|
* These can be used to apply styling when a component is in a given state.
|
|
37402
37404
|
*
|
|
37405
|
+
* - `placed`: Placed on the map by the connector.
|
|
37403
37406
|
* - `settled`: Set one frame after the first render. Transitions wait for it, so an element does not animate its own arrival.
|
|
37404
37407
|
*/
|
|
37405
37408
|
"helix-map-position": Partial<
|
|
@@ -50301,6 +50304,7 @@ export type CustomElementsSolidJs = {
|
|
|
50301
50304
|
*
|
|
50302
50305
|
* - `candidate`: While a connection is being drawn and this card is somewhere it could arrive.
|
|
50303
50306
|
* - `current`: The card that receives focus when you tab into the board.
|
|
50307
|
+
* - `placed`: Placed on the board.
|
|
50304
50308
|
* - `selected`: The card is selected.
|
|
50305
50309
|
* - `target`: A connection being drawn would end here if you released it.
|
|
50306
50310
|
* - `settled`: Set one frame after the first render. Transitions wait for it, so an element does not animate its own arrival.
|
|
@@ -50606,7 +50610,7 @@ export type CustomElementsSolidJs = {
|
|
|
50606
50610
|
* - `empty`: While the document has no nodes.
|
|
50607
50611
|
* - `fullscreen`: While the board fills the screen.
|
|
50608
50612
|
* - `holding`: An item picked up with a click follows the pointer until the next press puts it down.
|
|
50609
|
-
* - `idle`: The user has been still
|
|
50613
|
+
* - `idle`: The user has been still for `idle-delay` milliseconds. The board's own controls stay; select on it to hide chrome of your own.
|
|
50610
50614
|
* - `pressing`: While a press on the board, its cards or its connections is under way.
|
|
50611
50615
|
* - `settled`: Set one frame after the first render. Transitions wait for it, so an element does not animate its own arrival.
|
|
50612
50616
|
*/
|
|
@@ -59196,6 +59200,7 @@ export type CustomElementsSolidJs = {
|
|
|
59196
59200
|
* - `fanned`: Spread out from a location it shares with other markers, after their cluster was pressed.
|
|
59197
59201
|
* - `icon`: Has content in the icon slot.
|
|
59198
59202
|
* - `passed`: Marked as passed.
|
|
59203
|
+
* - `placed`: Placed on the map by the connector.
|
|
59199
59204
|
* - `start`: Shows its name before the point, because there was no room after it.
|
|
59200
59205
|
* - `settled`: Set one frame after the first render. Transitions wait for it, so an element does not animate its own arrival.
|
|
59201
59206
|
*/
|
|
@@ -59364,6 +59369,7 @@ export type CustomElementsSolidJs = {
|
|
|
59364
59369
|
*
|
|
59365
59370
|
* These can be used to apply styling when a component is in a given state.
|
|
59366
59371
|
*
|
|
59372
|
+
* - `placed`: Placed on the map by the connector.
|
|
59367
59373
|
* - `settled`: Set one frame after the first render. Transitions wait for it, so an element does not animate its own arrival.
|
|
59368
59374
|
*/
|
|
59369
59375
|
"helix-map-position": Partial<
|