@fusion.dev/helix 0.113.0 → 0.114.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.
@@ -84168,6 +84168,56 @@
84168
84168
  "module": "src/map/root/map-root.ts"
84169
84169
  }
84170
84170
  },
84171
+ {
84172
+ "kind": "field",
84173
+ "name": "ready",
84174
+ "type": {
84175
+ "text": "boolean"
84176
+ },
84177
+ "description": "Whether the map has been drawn whole, which `drawn()` says. For a page that\nconnects after `helix-map-ready` has been sent, and missed it.",
84178
+ "readonly": true,
84179
+ "inheritedFrom": {
84180
+ "name": "HelixHeadlessMap",
84181
+ "module": "src/map/root/map-root.ts"
84182
+ }
84183
+ },
84184
+ {
84185
+ "kind": "field",
84186
+ "name": "whole",
84187
+ "type": {
84188
+ "text": "boolean"
84189
+ },
84190
+ "privacy": "private",
84191
+ "default": "false",
84192
+ "description": "What `ready` reads, written by `drawn()`.",
84193
+ "inheritedFrom": {
84194
+ "name": "HelixHeadlessMap",
84195
+ "module": "src/map/root/map-root.ts"
84196
+ }
84197
+ },
84198
+ {
84199
+ "kind": "method",
84200
+ "name": "drawn",
84201
+ "return": {
84202
+ "type": {
84203
+ "text": "void"
84204
+ }
84205
+ },
84206
+ "parameters": [
84207
+ {
84208
+ "name": "whole",
84209
+ "default": "true"
84210
+ }
84211
+ ],
84212
+ "description": "Says the map has been drawn whole, or with `false`, that it no longer is.\n\n**Called by whatever draws the map**, as `connectMap` does once its driver\nhas every tile the view needs and the ground where there is terrain, and\nwith `false` when it disconnects. A page drawing its own map calls it when\nthat map is finished. The first call after the map was not drawn sends\n`helix-map-ready` and turns on `:state(ready)`, so a page can wait on the\nevent or select on the state, and a page that connects late reads `ready`.",
84213
+ "type": {
84214
+ "text": "drawn(whole = true) => void"
84215
+ },
84216
+ "inheritedFrom": {
84217
+ "name": "HelixHeadlessMap",
84218
+ "module": "src/map/root/map-root.ts"
84219
+ }
84220
+ },
84171
84221
  {
84172
84222
  "kind": "method",
84173
84223
  "name": "say",
@@ -85956,6 +86006,18 @@
85956
86006
  "module": "src/map/root/map-root.ts"
85957
86007
  }
85958
86008
  },
86009
+ {
86010
+ "type": {
86011
+ "text": "HelixMapReadyEvent"
86012
+ },
86013
+ "description": "The map has been drawn whole: its style, every tile the view needs, and the ground where it has terrain. Sent once per connection. Show a map that is finished on it, where it would otherwise draw in stages.",
86014
+ "name": "helix-map-ready",
86015
+ "reactProp": "onhelix-map-ready",
86016
+ "inheritedFrom": {
86017
+ "name": "HelixHeadlessMap",
86018
+ "module": "src/map/root/map-root.ts"
86019
+ }
86020
+ },
85959
86021
  {
85960
86022
  "type": {
85961
86023
  "text": "HelixMapRotateEvent"
@@ -86010,6 +86072,14 @@
86010
86072
  "module": "src/map/root/map-root.ts"
86011
86073
  }
86012
86074
  },
86075
+ {
86076
+ "description": "The map has been drawn whole, after `helix-map-ready`.",
86077
+ "name": "ready",
86078
+ "inheritedFrom": {
86079
+ "name": "HelixHeadlessMap",
86080
+ "module": "src/map/root/map-root.ts"
86081
+ }
86082
+ },
86013
86083
  {
86014
86084
  "description": "Set one frame after the first render. Transitions wait for it, so an element does not animate its own arrival.",
86015
86085
  "name": "settled",
@@ -105,6 +105,7 @@ registerElementEvents({
105
105
  'helix-map-cluster',
106
106
  'helix-map-pan',
107
107
  'helix-map-part-change',
108
+ 'helix-map-ready',
108
109
  'helix-map-rotate',
109
110
  'helix-map-tilt',
110
111
  'helix-map-zoom',
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.113.0",
4
+ "version": "0.114.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.113.0",
55
- "@fusion.dev/helix-headless": "0.113.0",
56
- "@fusion.dev/helix-styles": "0.113.0"
54
+ "@fusion.dev/helix-core": "0.114.0",
55
+ "@fusion.dev/helix-headless": "0.114.0",
56
+ "@fusion.dev/helix-styles": "0.114.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@fusion.dev/helix-cem": "0.113.0",
60
- "@fusion.dev/helix-testing": "0.113.0",
59
+ "@fusion.dev/helix-cem": "0.114.0",
60
+ "@fusion.dev/helix-testing": "0.114.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
@@ -112,6 +112,7 @@ import type {
112
112
  HelixMapPoints,
113
113
  HelixMapPosition,
114
114
  HelixMapRaster,
115
+ HelixMapReadyEvent,
115
116
  HelixMapRotateEvent,
116
117
  HelixMapRoute,
117
118
  HelixMapTerrain,
@@ -14227,6 +14228,9 @@ export type HelixMapHelixMapPanElementEvent =
14227
14228
  /** `helix-map-part-change` event type */
14228
14229
  export type HelixMapHelixMapPartChangeElementEvent =
14229
14230
  HelixMapElementEvent<HelixMapPartChangeEvent>;
14231
+ /** `helix-map-ready` event type */
14232
+ export type HelixMapHelixMapReadyElementEvent =
14233
+ HelixMapElementEvent<HelixMapReadyEvent>;
14230
14234
  /** `helix-map-rotate` event type */
14231
14235
  export type HelixMapHelixMapRotateElementEvent =
14232
14236
  HelixMapElementEvent<HelixMapRotateEvent>;
@@ -14501,6 +14505,8 @@ current, and the map says it after a zoom. */
14501
14505
  "onhelix-map-part-change"?: ((
14502
14506
  e: HelixMapHelixMapPartChangeElementEvent,
14503
14507
  ) => void) | undefined;
14508
+ /** The map has been drawn whole: its style, every tile the view needs, and the ground where it has terrain. Sent once per connection. Show a map that is finished on it, where it would otherwise draw in stages. */
14509
+ "onhelix-map-ready"?: ((e: HelixMapHelixMapReadyElementEvent) => void) | undefined;
14504
14510
  /** A rotate or Face north button, or Shift with Left or Right, was pressed. Turn your map in response. */
14505
14511
  "onhelix-map-rotate"?: ((e: HelixMapHelixMapRotateElementEvent) => void) | undefined;
14506
14512
  /** The 3D button, or Shift with Up or Down, was pressed. Tilt your map in response. */
@@ -14772,6 +14778,8 @@ current, and the map says it after a zoom. */
14772
14778
  "on:helix-map-part-change"?: ((
14773
14779
  e: HelixMapHelixMapPartChangeElementEvent,
14774
14780
  ) => void) | undefined;
14781
+ /** The map has been drawn whole: its style, every tile the view needs, and the ground where it has terrain. Sent once per connection. Show a map that is finished on it, where it would otherwise draw in stages. */
14782
+ "on:helix-map-ready"?: ((e: HelixMapHelixMapReadyElementEvent) => void) | undefined;
14775
14783
  /** A rotate or Face north button, or Shift with Left or Right, was pressed. Turn your map in response. */
14776
14784
  "on:helix-map-rotate"?: ((e: HelixMapHelixMapRotateElementEvent) => void) | undefined;
14777
14785
  /** The 3D button, or Shift with Up or Down, was pressed. Tilt your map in response. */
@@ -37695,6 +37703,8 @@ export type CustomElements = {
37695
37703
  * - `zoomed-label`/`zoomedLabel`: What screen readers hear after a zoom. `{level}` is the zoom level.
37696
37704
  * - `zoom-level`/`zoomLevel`: How far the map is zoomed, in its renderer's levels. `connectMap` keeps it
37697
37705
  * current, and the map says it after a zoom.
37706
+ * - `ready`: Whether the map has been drawn whole, which `drawn()` says. For a page that
37707
+ * connects after `helix-map-ready` has been sent, and missed it. (property only) (readonly)
37698
37708
  * - `whenSettled`: Resolves a frame after the first update, when transitions are switched on.
37699
37709
  *
37700
37710
  * **Named `whenSettled` because `settled` is taken four times over**, by
@@ -37724,6 +37734,7 @@ export type CustomElements = {
37724
37734
  * - `helix-map-cluster`: A cluster was pressed. Sent from the marker that shows the cluster, with the names of its places.
37725
37735
  * - `helix-map-pan`: A pan button or arrow key was pressed. Move your map in response.
37726
37736
  * - `helix-map-part-change`: Clustering was turned on or off. Used by `connectMap`; pages do not need to listen for it.
37737
+ * - `helix-map-ready`: The map has been drawn whole: its style, every tile the view needs, and the ground where it has terrain. Sent once per connection. Show a map that is finished on it, where it would otherwise draw in stages.
37727
37738
  * - `helix-map-rotate`: A rotate or Face north button, or Shift with Left or Right, was pressed. Turn your map in response.
37728
37739
  * - `helix-map-tilt`: The 3D button, or Shift with Up or Down, was pressed. Tilt your map in response.
37729
37740
  * - `helix-map-zoom`: A zoom button or key was pressed, with a direction. Zoom your map in response.
@@ -37758,6 +37769,14 @@ export type CustomElements = {
37758
37769
  * animation is one sentence, and it is the view's state where there is one:
37759
37770
  * the zoom level, the way the map faces, its tilt. A pan has no state to
37760
37771
  * say, so it says which way the map moved.
37772
+ * - `drawn(whole = true) => void`: Says the map has been drawn whole, or with `false`, that it no longer is.
37773
+ *
37774
+ * **Called by whatever draws the map**, as `connectMap` does once its driver
37775
+ * has every tile the view needs and the ground where there is terrain, and
37776
+ * with `false` when it disconnects. A page drawing its own map calls it when
37777
+ * that map is finished. The first call after the map was not drawn sends
37778
+ * `helix-map-ready` and turns on `:state(ready)`, so a page can wait on the
37779
+ * event or select on the state, and a page that connects late reads `ready`.
37761
37780
  * - `rotate(by: number) => void`: Turns the map by some degrees, clockwise where positive.
37762
37781
  * - `faceNorth() => void`: Turns the map to face north.
37763
37782
  * - `tilt(by: number) => void`: Tilts the map by some degrees, toward the horizon where positive.
@@ -37816,6 +37835,7 @@ export type CustomElements = {
37816
37835
  *
37817
37836
  * - `fullscreen`: The map fills the screen.
37818
37837
  * - `idle`: The user has been still long enough for the header and footer to fade.
37838
+ * - `ready`: The map has been drawn whole, after `helix-map-ready`.
37819
37839
  * - `settled`: Set one frame after the first render. Transitions wait for it, so an element does not animate its own arrival.
37820
37840
  */
37821
37841
  "helix-map": Partial<HelixMapProps & BaseProps<HelixMap> & BaseEvents<HelixMap>>;
@@ -59709,6 +59729,8 @@ export type CustomElementsSolidJs = {
59709
59729
  * - `zoomed-label`/`zoomedLabel`: What screen readers hear after a zoom. `{level}` is the zoom level.
59710
59730
  * - `zoom-level`/`zoomLevel`: How far the map is zoomed, in its renderer's levels. `connectMap` keeps it
59711
59731
  * current, and the map says it after a zoom.
59732
+ * - `ready`: Whether the map has been drawn whole, which `drawn()` says. For a page that
59733
+ * connects after `helix-map-ready` has been sent, and missed it. (property only) (readonly)
59712
59734
  * - `whenSettled`: Resolves a frame after the first update, when transitions are switched on.
59713
59735
  *
59714
59736
  * **Named `whenSettled` because `settled` is taken four times over**, by
@@ -59738,6 +59760,7 @@ export type CustomElementsSolidJs = {
59738
59760
  * - `helix-map-cluster`: A cluster was pressed. Sent from the marker that shows the cluster, with the names of its places.
59739
59761
  * - `helix-map-pan`: A pan button or arrow key was pressed. Move your map in response.
59740
59762
  * - `helix-map-part-change`: Clustering was turned on or off. Used by `connectMap`; pages do not need to listen for it.
59763
+ * - `helix-map-ready`: The map has been drawn whole: its style, every tile the view needs, and the ground where it has terrain. Sent once per connection. Show a map that is finished on it, where it would otherwise draw in stages.
59741
59764
  * - `helix-map-rotate`: A rotate or Face north button, or Shift with Left or Right, was pressed. Turn your map in response.
59742
59765
  * - `helix-map-tilt`: The 3D button, or Shift with Up or Down, was pressed. Tilt your map in response.
59743
59766
  * - `helix-map-zoom`: A zoom button or key was pressed, with a direction. Zoom your map in response.
@@ -59772,6 +59795,14 @@ export type CustomElementsSolidJs = {
59772
59795
  * animation is one sentence, and it is the view's state where there is one:
59773
59796
  * the zoom level, the way the map faces, its tilt. A pan has no state to
59774
59797
  * say, so it says which way the map moved.
59798
+ * - `drawn(whole = true) => void`: Says the map has been drawn whole, or with `false`, that it no longer is.
59799
+ *
59800
+ * **Called by whatever draws the map**, as `connectMap` does once its driver
59801
+ * has every tile the view needs and the ground where there is terrain, and
59802
+ * with `false` when it disconnects. A page drawing its own map calls it when
59803
+ * that map is finished. The first call after the map was not drawn sends
59804
+ * `helix-map-ready` and turns on `:state(ready)`, so a page can wait on the
59805
+ * event or select on the state, and a page that connects late reads `ready`.
59775
59806
  * - `rotate(by: number) => void`: Turns the map by some degrees, clockwise where positive.
59776
59807
  * - `faceNorth() => void`: Turns the map to face north.
59777
59808
  * - `tilt(by: number) => void`: Tilts the map by some degrees, toward the horizon where positive.
@@ -59830,6 +59861,7 @@ export type CustomElementsSolidJs = {
59830
59861
  *
59831
59862
  * - `fullscreen`: The map fills the screen.
59832
59863
  * - `idle`: The user has been still long enough for the header and footer to fade.
59864
+ * - `ready`: The map has been drawn whole, after `helix-map-ready`.
59833
59865
  * - `settled`: Set one frame after the first render. Transitions wait for it, so an element does not animate its own arrival.
59834
59866
  */
59835
59867
  "helix-map": Partial<
package/types/vue.d.ts CHANGED
@@ -192,6 +192,7 @@ import type {
192
192
  HelixMapPartChangeEvent,
193
193
  HelixMapClusterEvent,
194
194
  HelixMapPanEvent,
195
+ HelixMapReadyEvent,
195
196
  HelixMapRotateEvent,
196
197
  HelixMapTiltEvent,
197
198
  HelixMapZoomEvent,
@@ -7290,6 +7291,9 @@ export type HelixMapHelixMapPanElementEvent =
7290
7291
  /** `helix-map-part-change` event type */
7291
7292
  export type HelixMapHelixMapPartChangeElementEvent =
7292
7293
  HelixMapElementEvent<HelixMapPartChangeEvent>;
7294
+ /** `helix-map-ready` event type */
7295
+ export type HelixMapHelixMapReadyElementEvent =
7296
+ HelixMapElementEvent<HelixMapReadyEvent>;
7293
7297
  /** `helix-map-rotate` event type */
7294
7298
  export type HelixMapHelixMapRotateElementEvent =
7295
7299
  HelixMapElementEvent<HelixMapRotateEvent>;
@@ -7564,6 +7568,8 @@ export type HelixMapVueEvents = {
7564
7568
  "helix-map-pan": HelixMapHelixMapPanElementEvent;
7565
7569
  /** Clustering was turned on or off. Used by `connectMap`; pages do not need to listen for it. */
7566
7570
  "helix-map-part-change": HelixMapHelixMapPartChangeElementEvent;
7571
+ /** The map has been drawn whole: its style, every tile the view needs, and the ground where it has terrain. Sent once per connection. Show a map that is finished on it, where it would otherwise draw in stages. */
7572
+ "helix-map-ready": HelixMapHelixMapReadyElementEvent;
7567
7573
  /** A rotate or Face north button, or Shift with Left or Right, was pressed. Turn your map in response. */
7568
7574
  "helix-map-rotate": HelixMapHelixMapRotateElementEvent;
7569
7575
  /** The 3D button, or Shift with Up or Down, was pressed. Tilt your map in response. */