@fusion.dev/helix 0.110.5 → 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.
@@ -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",
@@ -79801,6 +79821,18 @@
79801
79821
  "module": "src/map/marker/map-marker.ts"
79802
79822
  }
79803
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
+ },
79804
79836
  {
79805
79837
  "kind": "field",
79806
79838
  "name": "name",
@@ -80474,6 +80506,14 @@
80474
80506
  "module": "src/map/marker/map-marker.ts"
80475
80507
  }
80476
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
+ },
80477
80517
  {
80478
80518
  "description": "Shows its name before the point, because there was no room after it.",
80479
80519
  "name": "start",
@@ -81571,6 +81611,18 @@
81571
81611
  "module": "src/map/position/map-position.ts"
81572
81612
  }
81573
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
+ },
81574
81626
  {
81575
81627
  "kind": "field",
81576
81628
  "name": "spoken",
@@ -82155,6 +82207,14 @@
82155
82207
  }
82156
82208
  ],
82157
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
+ },
82158
82218
  {
82159
82219
  "description": "Set one frame after the first render. Transitions wait for it, so an element does not animate its own arrival.",
82160
82220
  "name": "settled",
@@ -205,7 +205,7 @@ color: var(--helix-color-foreground-subtle);
205
205
  font-size: var(--helix-text-xs);
206
206
  }
207
207
 
208
- :host(:not([style*="--_canvas-card-x"])) {
208
+ :host(:not(:state(placed))) {
209
209
  position: static;
210
210
  }
211
211
 
@@ -27,7 +27,7 @@ position: absolute;
27
27
  z-index: calc(var(--helix-layer-raised) + 1);
28
28
  }
29
29
 
30
- :host(:not([style*="--_map-marker-x"])) {
30
+ :host(:not(:state(placed))) {
31
31
  visibility: hidden;
32
32
  }
33
33
 
@@ -27,7 +27,7 @@ position: absolute;
27
27
  z-index: var(--helix-layer-raised);
28
28
  }
29
29
 
30
- :host(:not([style*="--_map-position-x"])) [part="position"] {
30
+ :host(:not(:state(placed))) [part="position"] {
31
31
  visibility: hidden;
32
32
  }
33
33
 
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.5",
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.5",
55
- "@fusion.dev/helix-headless": "0.110.5",
56
- "@fusion.dev/helix-styles": "0.110.5"
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.5",
60
- "@fusion.dev/helix-testing": "0.110.5",
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.
@@ -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.
@@ -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<