@fusion.dev/helix-headless 0.103.2 → 0.103.3

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/types/vue.d.ts CHANGED
@@ -4808,56 +4808,61 @@ export type HelixHeadlessMapHelixMapZoomElementEvent =
4808
4808
  HelixHeadlessMapElementEvent<HelixMapZoomEvent>;
4809
4809
 
4810
4810
  export type HelixHeadlessMapVueProps = {
4811
- /** Which of the controls this frame draws, as a list of what to keep.
4812
-
4813
- **A list rather than a switch, because the overlap is not symmetric.**
4814
- Every map library draws zoom controls and none of them draws pan buttons:
4815
- MapLibre's navigation control is zoom and a compass, Leaflet's is zoom,
4816
- Google's is zoom. So a consumer slotting one of those has our zoom twice
4817
- over and our pan pad not at all, and a single switch would make them choose
4818
- between a duplicate and nothing.
4819
-
4820
- `none` draws none of them, which is the right answer where the slotted map
4821
- already has controls a reader can find: what this family argues for is that
4822
- *a* findable control exists, never that it is ours. The methods stay public
4823
- either way, so a consumer drawing their own chrome can still drive the
4824
- frame.
4825
-
4826
- Absent is all three, which is this library's rule that a resting value is an
4827
- attribute's absence, and it is what the stylesheet asks about: the layout
4828
- rules are written against `[controls]:not([controls~="zoom"])` rather than
4829
- the bare negation, or a frame that named no list at all would be laid out as
4830
- though it had dropped everything. */
4811
+ /** Accessible name for the map, which is the one thing a consumer must write.
4812
+
4813
+ There is no sensible default. "Map" names the widget rather than the place,
4814
+ and a reader meeting three of them on a page learns nothing from hearing the
4815
+ same word three times.
4816
+
4817
+ **The region is a tab stop**, so the keys are reachable however the controls
4818
+ are configured: the listener is on the region, and without a stop of its own
4819
+ a frame at `controls="none"` around a map with nothing focusable in it had
4820
+ arrow keys no reader could ever press. `aria-keyshortcuts` says which keys
4821
+ rather than spelling them into the name, which would otherwise be read out
4822
+ at every encounter. */
4823
+ label?: (HelixHeadlessMap["label"]) | undefined;
4824
+ /** Which of the controls this surface draws, as a list of what to keep.
4825
+
4826
+ **A list rather than a switch, because the overlap is not symmetric.** A
4827
+ surface a consumer brings often has zoom controls of its own and almost
4828
+ never has pan buttons, so a single switch would make them choose between
4829
+ a duplicate and nothing.
4830
+
4831
+ `none` draws none of them, which is the right answer where what was
4832
+ slotted already has controls a reader can find: what this argues for is
4833
+ that *a* findable control exists, never that it is ours. The methods stay
4834
+ public either way, so a consumer drawing their own chrome can still drive
4835
+ the surface.
4836
+
4837
+ Absent is all three, which is this library's rule that a resting value is
4838
+ an attribute's absence, and it is what the stylesheet asks about: the
4839
+ layout rules are written against `[controls]:not([controls~="zoom"])`
4840
+ rather than the bare negation, or a surface that named no list at all
4841
+ would be laid out as though it had dropped everything. */
4831
4842
  controls?: (HelixHeadlessMap["controls"]) | undefined;
4832
4843
  /** Which corner the controls sit in.
4833
4844
 
4834
- **Configurable because there is no safe default**, and this is a collision
4835
- rather than a taste: MapLibre puts its own controls at the top end, Leaflet
4836
- and OpenLayers at the top start, Google's zoom at the bottom end. Whichever
4837
- corner this took would land on somebody's, which is why every one of those
4838
- libraries made it a setting too.
4845
+ **Configurable because there is no safe default**, which is a collision
4846
+ rather than a taste: whatever a consumer slots may put its own controls
4847
+ in any corner, and every library that draws some made this a setting for
4848
+ the same reason.
4839
4849
 
4840
4850
  Logical corners rather than left and right, so a right-to-left page moves
4841
- them without a consumer writing a second rule.
4842
-
4843
- Absent is the top end, which is this library's rule that a resting value is
4844
- an attribute's absence: a default that reflected would write an attribute
4845
- onto every host that no server sent and nobody asked for. */
4851
+ them without a consumer writing a second rule. Absent is the top end, a
4852
+ resting value being an attribute's absence: a default that reflected
4853
+ would write an attribute onto every host that no server sent. */
4846
4854
  "controls-placement"?: (HelixHeadlessMap["controlsPlacement"]) | undefined;
4847
4855
  /** Which corner the controls sit in.
4848
4856
 
4849
- **Configurable because there is no safe default**, and this is a collision
4850
- rather than a taste: MapLibre puts its own controls at the top end, Leaflet
4851
- and OpenLayers at the top start, Google's zoom at the bottom end. Whichever
4852
- corner this took would land on somebody's, which is why every one of those
4853
- libraries made it a setting too.
4857
+ **Configurable because there is no safe default**, which is a collision
4858
+ rather than a taste: whatever a consumer slots may put its own controls
4859
+ in any corner, and every library that draws some made this a setting for
4860
+ the same reason.
4854
4861
 
4855
4862
  Logical corners rather than left and right, so a right-to-left page moves
4856
- them without a consumer writing a second rule.
4857
-
4858
- Absent is the top end, which is this library's rule that a resting value is
4859
- an attribute's absence: a default that reflected would write an attribute
4860
- onto every host that no server sent and nobody asked for. */
4863
+ them without a consumer writing a second rule. Absent is the top end, a
4864
+ resting value being an attribute's absence: a default that reflected
4865
+ would write an attribute onto every host that no server sent. */
4861
4866
  controlsPlacement?: (HelixHeadlessMap["controlsPlacement"]) | undefined;
4862
4867
  /** What the control that fills the screen is called. */
4863
4868
  "fullscreen-label"?: (HelixHeadlessMap["fullscreenLabel"]) | undefined;
@@ -4865,54 +4870,41 @@ onto every host that no server sent and nobody asked for. */
4865
4870
  fullscreenLabel?: (HelixHeadlessMap["fullscreenLabel"]) | undefined;
4866
4871
  /** How long the reader may be still before the chrome hides, in milliseconds.
4867
4872
 
4868
- Zero keeps it up, which is the default: a map's controls are how a keyboard
4869
- reader operates it, and chrome that hides itself by default would be this
4870
- component undoing its own argument. Set it for a display map nobody drives. */
4873
+ Zero keeps it up, which is the default: these controls are how a keyboard
4874
+ reader operates the surface, and chrome that hid itself by default would
4875
+ be the component undoing its own argument. Set it for a display nobody
4876
+ drives. */
4871
4877
  "idle-delay"?: (HelixHeadlessMap["idleDelay"] | `${number}`) | undefined;
4872
4878
  /** How long the reader may be still before the chrome hides, in milliseconds.
4873
4879
 
4874
- Zero keeps it up, which is the default: a map's controls are how a keyboard
4875
- reader operates it, and chrome that hides itself by default would be this
4876
- component undoing its own argument. Set it for a display map nobody drives. */
4880
+ Zero keeps it up, which is the default: these controls are how a keyboard
4881
+ reader operates the surface, and chrome that hid itself by default would
4882
+ be the component undoing its own argument. Set it for a display nobody
4883
+ drives. */
4877
4884
  idleDelay?: (HelixHeadlessMap["idleDelay"]) | undefined;
4878
- /** Accessible name for the map, which is the one thing a consumer must write.
4879
-
4880
- There is no sensible default. "Map" names the widget rather than the place,
4881
- and a reader meeting three of them on a page learns nothing from hearing the
4882
- same word three times.
4883
-
4884
- **The region is a tab stop**, so the keys are reachable however the controls
4885
- are configured: the listener is on the region, and without a stop of its own
4886
- a frame at `controls="none"` around a map with nothing focusable in it had
4887
- arrow keys no reader could ever press. `aria-keyshortcuts` says which keys
4888
- rather than spelling them into the name, which would otherwise be read out
4889
- at every encounter. */
4890
- label?: (HelixHeadlessMap["label"]) | undefined;
4891
- /** What the controls are called, for a page not in English. */
4885
+ /** What one pan control is called, with `{way}` filled in. */
4892
4886
  "pan-label"?: (HelixHeadlessMap["panLabel"]) | undefined;
4893
- /** What the controls are called, for a page not in English. */
4887
+ /** What one pan control is called, with `{way}` filled in. */
4894
4888
  panLabel?: (HelixHeadlessMap["panLabel"]) | undefined;
4895
- /** How far one press moves the map, as a fraction of what is on screen.
4889
+ /** How far one press moves the view, as a fraction of what is on screen.
4896
4890
 
4897
- A fraction rather than a distance, because this frame does not know the
4898
- scale of what is inside it: a quarter of the viewport is the same gesture at
4899
- street level and at country level, and a consumer who wants metres can
4900
- multiply by their own. */
4891
+ A fraction rather than a distance, because this surface does not know the
4892
+ scale of what is inside it: a quarter of the viewport is the same gesture
4893
+ at any zoom, and a consumer who wants their own units multiplies by them. */
4901
4894
  "pan-step"?: (HelixHeadlessMap["panStep"] | `${number}`) | undefined;
4902
- /** How far one press moves the map, as a fraction of what is on screen.
4895
+ /** How far one press moves the view, as a fraction of what is on screen.
4903
4896
 
4904
- A fraction rather than a distance, because this frame does not know the
4905
- scale of what is inside it: a quarter of the viewport is the same gesture at
4906
- street level and at country level, and a consumer who wants metres can
4907
- multiply by their own. */
4897
+ A fraction rather than a distance, because this surface does not know the
4898
+ scale of what is inside it: a quarter of the viewport is the same gesture
4899
+ at any zoom, and a consumer who wants their own units multiplies by them. */
4908
4900
  panStep?: (HelixHeadlessMap["panStep"]) | undefined;
4909
- /** What the zoom controls are called. */
4901
+ /** What the control that zooms in is called. */
4910
4902
  "zoom-in-label"?: (HelixHeadlessMap["zoomInLabel"]) | undefined;
4911
- /** What the zoom controls are called. */
4903
+ /** What the control that zooms in is called. */
4912
4904
  zoomInLabel?: (HelixHeadlessMap["zoomInLabel"]) | undefined;
4913
- /** What the zoom control that goes the other way is called. */
4905
+ /** What the control that zooms out is called. */
4914
4906
  "zoom-out-label"?: (HelixHeadlessMap["zoomOutLabel"]) | undefined;
4915
- /** What the zoom control that goes the other way is called. */
4907
+ /** What the control that zooms out is called. */
4916
4908
  zoomOutLabel?: (HelixHeadlessMap["zoomOutLabel"]) | undefined;
4917
4909
  };
4918
4910