@fusion.dev/helix 0.115.0 → 0.116.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.
@@ -83826,6 +83826,20 @@
83826
83826
  "module": "src/mixins/mixin-viewport/mixin-viewport.ts"
83827
83827
  }
83828
83828
  },
83829
+ {
83830
+ "kind": "field",
83831
+ "name": "activateHintLabel",
83832
+ "type": {
83833
+ "text": "string"
83834
+ },
83835
+ "default": "'Press the map to use it'",
83836
+ "description": "The hint shown when a map waiting to be pressed is scrolled or swiped\nover, with `gestures=\"activate\"`.",
83837
+ "attribute": "activate-hint-label",
83838
+ "inheritedFrom": {
83839
+ "name": "HelixHeadlessMap",
83840
+ "module": "src/map/root/map-root.ts"
83841
+ }
83842
+ },
83829
83843
  {
83830
83844
  "kind": "field",
83831
83845
  "name": "bearing",
@@ -83882,6 +83896,19 @@
83882
83896
  "module": "src/map/root/map-root.ts"
83883
83897
  }
83884
83898
  },
83899
+ {
83900
+ "kind": "field",
83901
+ "name": "gestures",
83902
+ "type": {
83903
+ "text": "'activate' | 'always' | 'cooperative' | undefined"
83904
+ },
83905
+ "description": "Which gestures the map takes from the page.\n\n- `always`, which unset is: the wheel zooms the map and one finger pans\n it, for a map that is the page, such as a full-screen view.\n- `cooperative`: the wheel and one finger scroll the page, and the map\n takes Ctrl or ⌘ with the wheel, and two fingers. The frame says so\n when a gesture passes to the page. Best for a map embedded in a page.\n- `activate`: the map takes nothing until it is pressed, and gives it\n back on Escape, when the pointer leaves it, or on a press elsewhere.\n\nThe keyboard and the frame's buttons work in every mode. The renderer is\ntold through the connector, so MapLibre and Leaflet behave alike.",
83906
+ "attribute": "gestures",
83907
+ "inheritedFrom": {
83908
+ "name": "HelixHeadlessMap",
83909
+ "module": "src/map/root/map-root.ts"
83910
+ }
83911
+ },
83885
83912
  {
83886
83913
  "kind": "field",
83887
83914
  "name": "hybridLabel",
@@ -84134,6 +84161,48 @@
84134
84161
  "module": "src/map/root/map-root.ts"
84135
84162
  }
84136
84163
  },
84164
+ {
84165
+ "kind": "field",
84166
+ "name": "twoFingerHintLabel",
84167
+ "type": {
84168
+ "text": "string"
84169
+ },
84170
+ "default": "'Use two fingers to move the map'",
84171
+ "description": "The hint shown when one finger swipes over a map with `gestures=\"cooperative\"`.",
84172
+ "attribute": "two-finger-hint-label",
84173
+ "inheritedFrom": {
84174
+ "name": "HelixHeadlessMap",
84175
+ "module": "src/map/root/map-root.ts"
84176
+ }
84177
+ },
84178
+ {
84179
+ "kind": "field",
84180
+ "name": "usingLabel",
84181
+ "type": {
84182
+ "text": "string"
84183
+ },
84184
+ "default": "'Using the map. Press Escape to scroll the page again.'",
84185
+ "description": "The line shown while a map with `gestures=\"activate\"` has the gestures.",
84186
+ "attribute": "using-label",
84187
+ "inheritedFrom": {
84188
+ "name": "HelixHeadlessMap",
84189
+ "module": "src/map/root/map-root.ts"
84190
+ }
84191
+ },
84192
+ {
84193
+ "kind": "field",
84194
+ "name": "wheelHintLabel",
84195
+ "type": {
84196
+ "text": "string"
84197
+ },
84198
+ "default": "'Use {key} and scroll to zoom the map'",
84199
+ "description": "The hint shown when the wheel scrolls past a map with\n`gestures=\"cooperative\"`, with `{key}`, which is ⌘ on a Mac and Ctrl\nelsewhere, as the renderer reads it.",
84200
+ "attribute": "wheel-hint-label",
84201
+ "inheritedFrom": {
84202
+ "name": "HelixHeadlessMap",
84203
+ "module": "src/map/root/map-root.ts"
84204
+ }
84205
+ },
84137
84206
  {
84138
84207
  "kind": "field",
84139
84208
  "name": "zoomedLabel",
@@ -84617,6 +84686,167 @@
84617
84686
  "module": "src/map/root/map-root.ts"
84618
84687
  }
84619
84688
  },
84689
+ {
84690
+ "kind": "field",
84691
+ "name": "hint",
84692
+ "type": {
84693
+ "text": "string"
84694
+ },
84695
+ "privacy": "private",
84696
+ "default": "''",
84697
+ "description": "The hint on the map while one shows, put there by a gesture the map let pass.",
84698
+ "inheritedFrom": {
84699
+ "name": "HelixHeadlessMap",
84700
+ "module": "src/map/root/map-root.ts"
84701
+ }
84702
+ },
84703
+ {
84704
+ "kind": "field",
84705
+ "name": "hinting",
84706
+ "type": {
84707
+ "text": "ReturnType<typeof setTimeout> | undefined"
84708
+ },
84709
+ "privacy": "private",
84710
+ "description": "When the hint goes.",
84711
+ "inheritedFrom": {
84712
+ "name": "HelixHeadlessMap",
84713
+ "module": "src/map/root/map-root.ts"
84714
+ }
84715
+ },
84716
+ {
84717
+ "kind": "field",
84718
+ "name": "hintAt",
84719
+ "type": {
84720
+ "text": "{ x: number; y: number } | undefined"
84721
+ },
84722
+ "privacy": "private",
84723
+ "description": "Where the gesture was, in the map's box, which the hint is shown at:\nwhere the reader is looking, and on the map wherever a page laid its own\ncontent over the rest of it.",
84724
+ "inheritedFrom": {
84725
+ "name": "HelixHeadlessMap",
84726
+ "module": "src/map/root/map-root.ts"
84727
+ }
84728
+ },
84729
+ {
84730
+ "kind": "field",
84731
+ "name": "taken",
84732
+ "type": {
84733
+ "text": "boolean"
84734
+ },
84735
+ "privacy": "private",
84736
+ "default": "false",
84737
+ "description": "Whether a map with `gestures=\"activate\"` has been pressed, and has the gestures.",
84738
+ "inheritedFrom": {
84739
+ "name": "HelixHeadlessMap",
84740
+ "module": "src/map/root/map-root.ts"
84741
+ }
84742
+ },
84743
+ {
84744
+ "kind": "method",
84745
+ "name": "showHint",
84746
+ "privacy": "private",
84747
+ "return": {
84748
+ "type": {
84749
+ "text": "void"
84750
+ }
84751
+ },
84752
+ "parameters": [
84753
+ {
84754
+ "name": "words",
84755
+ "type": {
84756
+ "text": "string"
84757
+ }
84758
+ },
84759
+ {
84760
+ "name": "at",
84761
+ "optional": true,
84762
+ "type": {
84763
+ "text": "{ clientX: number; clientY: number }"
84764
+ }
84765
+ }
84766
+ ],
84767
+ "description": "Shows a hint over the map for a moment, where the gesture was.",
84768
+ "inheritedFrom": {
84769
+ "name": "HelixHeadlessMap",
84770
+ "module": "src/map/root/map-root.ts"
84771
+ }
84772
+ },
84773
+ {
84774
+ "kind": "field",
84775
+ "name": "handleWheel",
84776
+ "privacy": "private",
84777
+ "readonly": true,
84778
+ "description": "A wheel the map let pass to the page, which is said: a reader scrolling\nthe page past a map that did not zoom is told why, and how to zoom it.\n**Ctrl or ⌘ with the wheel is the map's**, and is what a trackpad's pinch\narrives as.",
84779
+ "inheritedFrom": {
84780
+ "name": "HelixHeadlessMap",
84781
+ "module": "src/map/root/map-root.ts"
84782
+ }
84783
+ },
84784
+ {
84785
+ "kind": "field",
84786
+ "name": "handleTouchMove",
84787
+ "privacy": "private",
84788
+ "readonly": true,
84789
+ "description": "One finger moving over the map, which scrolls the page, and is said.",
84790
+ "inheritedFrom": {
84791
+ "name": "HelixHeadlessMap",
84792
+ "module": "src/map/root/map-root.ts"
84793
+ }
84794
+ },
84795
+ {
84796
+ "kind": "field",
84797
+ "name": "handleTake",
84798
+ "privacy": "private",
84799
+ "readonly": true,
84800
+ "description": "A press on the map itself, which hands a waiting map the gestures.",
84801
+ "inheritedFrom": {
84802
+ "name": "HelixHeadlessMap",
84803
+ "module": "src/map/root/map-root.ts"
84804
+ }
84805
+ },
84806
+ {
84807
+ "kind": "field",
84808
+ "name": "handleGiveBackKey",
84809
+ "privacy": "private",
84810
+ "readonly": true,
84811
+ "description": "Escape, which gives the page its scroll back.",
84812
+ "inheritedFrom": {
84813
+ "name": "HelixHeadlessMap",
84814
+ "module": "src/map/root/map-root.ts"
84815
+ }
84816
+ },
84817
+ {
84818
+ "kind": "field",
84819
+ "name": "handleGiveBackOutside",
84820
+ "privacy": "private",
84821
+ "readonly": true,
84822
+ "description": "A press anywhere else on the page, which gives it its scroll back.",
84823
+ "inheritedFrom": {
84824
+ "name": "HelixHeadlessMap",
84825
+ "module": "src/map/root/map-root.ts"
84826
+ }
84827
+ },
84828
+ {
84829
+ "kind": "field",
84830
+ "name": "handleGiveBackBlur",
84831
+ "privacy": "private",
84832
+ "readonly": true,
84833
+ "description": "The window losing focus, as a reader switching away does.",
84834
+ "inheritedFrom": {
84835
+ "name": "HelixHeadlessMap",
84836
+ "module": "src/map/root/map-root.ts"
84837
+ }
84838
+ },
84839
+ {
84840
+ "kind": "field",
84841
+ "name": "handleLeave",
84842
+ "privacy": "private",
84843
+ "readonly": true,
84844
+ "description": "The pointer leaving the frame. **Heard on the frame and not the map's\ncanvas**, which a pointer resting on a marker has left, since markers\nstand outside it. **A mouse or a pen and never a finger**, whose\n`pointerleave` is the finger lifting: a tap took the map and gave it back\nin one.",
84845
+ "inheritedFrom": {
84846
+ "name": "HelixHeadlessMap",
84847
+ "module": "src/map/root/map-root.ts"
84848
+ }
84849
+ },
84620
84850
  {
84621
84851
  "kind": "field",
84622
84852
  "name": "handleSlotChange",
@@ -85326,6 +85556,19 @@
85326
85556
  "module": "src/mixins/mixin-viewport/mixin-viewport.ts"
85327
85557
  }
85328
85558
  },
85559
+ {
85560
+ "name": "activate-hint-label",
85561
+ "type": {
85562
+ "text": "string"
85563
+ },
85564
+ "default": "'Press the map to use it'",
85565
+ "description": "The hint shown when a map waiting to be pressed is scrolled or swiped\nover, with `gestures=\"activate\"`.",
85566
+ "fieldName": "activateHintLabel",
85567
+ "inheritedFrom": {
85568
+ "name": "HelixHeadlessMap",
85569
+ "module": "src/map/root/map-root.ts"
85570
+ }
85571
+ },
85329
85572
  {
85330
85573
  "name": "bearing",
85331
85574
  "type": {
@@ -85378,6 +85621,18 @@
85378
85621
  "module": "src/map/root/map-root.ts"
85379
85622
  }
85380
85623
  },
85624
+ {
85625
+ "name": "gestures",
85626
+ "type": {
85627
+ "text": "'activate' | 'always' | 'cooperative' | undefined"
85628
+ },
85629
+ "description": "Which gestures the map takes from the page.\n\n- `always`, which unset is: the wheel zooms the map and one finger pans\n it, for a map that is the page, such as a full-screen view.\n- `cooperative`: the wheel and one finger scroll the page, and the map\n takes Ctrl or ⌘ with the wheel, and two fingers. The frame says so\n when a gesture passes to the page. Best for a map embedded in a page.\n- `activate`: the map takes nothing until it is pressed, and gives it\n back on Escape, when the pointer leaves it, or on a press elsewhere.\n\nThe keyboard and the frame's buttons work in every mode. The renderer is\ntold through the connector, so MapLibre and Leaflet behave alike.",
85630
+ "fieldName": "gestures",
85631
+ "inheritedFrom": {
85632
+ "name": "HelixHeadlessMap",
85633
+ "module": "src/map/root/map-root.ts"
85634
+ }
85635
+ },
85381
85636
  {
85382
85637
  "name": "hybrid-label",
85383
85638
  "type": {
@@ -85611,6 +85866,45 @@
85611
85866
  "module": "src/map/root/map-root.ts"
85612
85867
  }
85613
85868
  },
85869
+ {
85870
+ "name": "two-finger-hint-label",
85871
+ "type": {
85872
+ "text": "string"
85873
+ },
85874
+ "default": "'Use two fingers to move the map'",
85875
+ "description": "The hint shown when one finger swipes over a map with `gestures=\"cooperative\"`.",
85876
+ "fieldName": "twoFingerHintLabel",
85877
+ "inheritedFrom": {
85878
+ "name": "HelixHeadlessMap",
85879
+ "module": "src/map/root/map-root.ts"
85880
+ }
85881
+ },
85882
+ {
85883
+ "name": "using-label",
85884
+ "type": {
85885
+ "text": "string"
85886
+ },
85887
+ "default": "'Using the map. Press Escape to scroll the page again.'",
85888
+ "description": "The line shown while a map with `gestures=\"activate\"` has the gestures.",
85889
+ "fieldName": "usingLabel",
85890
+ "inheritedFrom": {
85891
+ "name": "HelixHeadlessMap",
85892
+ "module": "src/map/root/map-root.ts"
85893
+ }
85894
+ },
85895
+ {
85896
+ "name": "wheel-hint-label",
85897
+ "type": {
85898
+ "text": "string"
85899
+ },
85900
+ "default": "'Use {key} and scroll to zoom the map'",
85901
+ "description": "The hint shown when the wheel scrolls past a map with\n`gestures=\"cooperative\"`, with `{key}`, which is ⌘ on a Mac and Ctrl\nelsewhere, as the renderer reads it.",
85902
+ "fieldName": "wheelHintLabel",
85903
+ "inheritedFrom": {
85904
+ "name": "HelixHeadlessMap",
85905
+ "module": "src/map/root/map-root.ts"
85906
+ }
85907
+ },
85614
85908
  {
85615
85909
  "name": "zoomed-label",
85616
85910
  "type": {
@@ -85665,7 +85959,7 @@
85665
85959
  "slug": "areas"
85666
85960
  },
85667
85961
  {
85668
- "description": "A map behind a page's own words, filling a hero whose words decide its height, with its credit in a corner and no landmarks.",
85962
+ "description": "A map behind a page's own words, filling a hero whose words decide its height, with its credit in a corner, no landmarks, and the page's scroll left to the page.",
85669
85963
  "slug": "behind-content"
85670
85964
  },
85671
85965
  {
@@ -85804,6 +86098,22 @@
85804
86098
  "module": "src/map/root/map-root.ts"
85805
86099
  }
85806
86100
  },
86101
+ {
86102
+ "description": "Words over the map for a moment when it lets a gesture pass to the page, such as how to zoom it.",
86103
+ "name": "gesture-hint",
86104
+ "inheritedFrom": {
86105
+ "name": "HelixHeadlessMap",
86106
+ "module": "src/map/root/map-root.ts"
86107
+ }
86108
+ },
86109
+ {
86110
+ "description": "The line shown while a map with `gestures=\"activate\"` has the gestures.",
86111
+ "name": "gesture-status",
86112
+ "inheritedFrom": {
86113
+ "name": "HelixHeadlessMap",
86114
+ "module": "src/map/root/map-root.ts"
86115
+ }
86116
+ },
85807
86117
  {
85808
86118
  "description": "The strip above the map.",
85809
86119
  "name": "header",
@@ -86136,6 +86446,14 @@
86136
86446
  "module": "src/map/root/map-root.ts"
86137
86447
  }
86138
86448
  },
86449
+ {
86450
+ "description": "A map with `gestures=\"activate\"` has been pressed and has the gestures.",
86451
+ "name": "using",
86452
+ "inheritedFrom": {
86453
+ "name": "HelixHeadlessMap",
86454
+ "module": "src/map/root/map-root.ts"
86455
+ }
86456
+ },
86139
86457
  {
86140
86458
  "description": "Set one frame after the first render. Transitions wait for it, so an element does not animate its own arrival.",
86141
86459
  "name": "settled",
@@ -31,6 +31,43 @@ overflow: hidden;
31
31
  position: relative;
32
32
  }
33
33
 
34
+ [part="gesture-hint"],
35
+ [part="gesture-status"] {
36
+ background-color: var(--helix-color-surface-inverse);
37
+ border-radius: var(--helix-radii-sm);
38
+ color: var(--helix-color-foreground-inverse);
39
+
40
+ left: 50%;
41
+ max-inline-size: calc(100% - var(--helix-space-lg) * 2);
42
+ pointer-events: none;
43
+ position: absolute;
44
+ text-align: center;
45
+ z-index: calc(var(--helix-layer-raised) + 2);
46
+ }
47
+
48
+ [part="gesture-hint"] {
49
+ font-size: var(--helix-text-sm);
50
+ inset-block-start: clamp(
51
+ var(--helix-space-2xl),
52
+ var(--_map-hint-y, 50%),
53
+ calc(100% - var(--helix-space-2xl))
54
+ );
55
+ padding: var(--helix-space-xs) var(--helix-space-sm);
56
+ translate: -50% -50%;
57
+ }
58
+
59
+ [part="gesture-status"] {
60
+ font-size: var(--helix-text-xs);
61
+ inset-block-start: var(--helix-space-xs);
62
+ padding: var(--helix-space-2xs) var(--helix-space-xs);
63
+ translate: -50% 0;
64
+ }
65
+
66
+ [part="gesture-hint"][hidden],
67
+ [part="gesture-status"][hidden] {
68
+ display: none;
69
+ }
70
+
34
71
  [part="layers"] {
35
72
  block-size: 1px;
36
73
  clip-path: inset(50%);
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.115.0",
4
+ "version": "0.116.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.115.0",
55
- "@fusion.dev/helix-headless": "0.115.0",
56
- "@fusion.dev/helix-styles": "0.115.0"
54
+ "@fusion.dev/helix-core": "0.116.0",
55
+ "@fusion.dev/helix-headless": "0.116.0",
56
+ "@fusion.dev/helix-styles": "0.116.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@fusion.dev/helix-cem": "0.115.0",
60
- "@fusion.dev/helix-testing": "0.115.0",
59
+ "@fusion.dev/helix-cem": "0.116.0",
60
+ "@fusion.dev/helix-testing": "0.116.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
@@ -14417,6 +14417,12 @@ at any zoom, and a consumer who wants their own units multiplies by them. */
14417
14417
  "zoom-out-label"?: (HelixMap["zoomOutLabel"]) | undefined;
14418
14418
  /** The zoom out button's label. */
14419
14419
  zoomOutLabel?: (HelixMap["zoomOutLabel"]) | undefined;
14420
+ /** The hint shown when a map waiting to be pressed is scrolled or swiped
14421
+ over, with `gestures="activate"`. */
14422
+ "activate-hint-label"?: (HelixMap["activateHintLabel"]) | undefined;
14423
+ /** The hint shown when a map waiting to be pressed is scrolled or swiped
14424
+ over, with `gestures="activate"`. */
14425
+ activateHintLabel?: (HelixMap["activateHintLabel"]) | undefined;
14420
14426
  /** The map's rotation, in degrees clockwise from north. `connectMap` keeps it
14421
14427
  current, and the Face north button's needle turns with it. */
14422
14428
  bearing?: (HelixMap["bearing"]) | undefined;
@@ -14431,6 +14437,19 @@ the map zooms in, and pressing one zooms in to its places. */
14431
14437
  "flat-label"?: (HelixMap["flatLabel"]) | undefined;
14432
14438
  /** What screen readers hear when the map is tilted back to looking straight down. */
14433
14439
  flatLabel?: (HelixMap["flatLabel"]) | undefined;
14440
+ /** Which gestures the map takes from the page.
14441
+
14442
+ - `always`, which unset is: the wheel zooms the map and one finger pans
14443
+ it, for a map that is the page, such as a full-screen view.
14444
+ - `cooperative`: the wheel and one finger scroll the page, and the map
14445
+ takes Ctrl or ⌘ with the wheel, and two fingers. The frame says so
14446
+ when a gesture passes to the page. Best for a map embedded in a page.
14447
+ - `activate`: the map takes nothing until it is pressed, and gives it
14448
+ back on Escape, when the pointer leaves it, or on a press elsewhere.
14449
+
14450
+ The keyboard and the frame's buttons work in every mode. The renderer is
14451
+ told through the connector, so MapLibre and Leaflet behave alike. */
14452
+ gestures?: (HelixMap["gestures"]) | undefined;
14434
14453
  /** The Hybrid map type's name. */
14435
14454
  "hybrid-label"?: (HelixMap["hybridLabel"]) | undefined;
14436
14455
  /** The Hybrid map type's name. */
@@ -14512,6 +14531,22 @@ top of the map faces, clockwise from north. */
14512
14531
  /** What screen readers hear when the map is turned. `{degrees}` is the way the
14513
14532
  top of the map faces, clockwise from north. */
14514
14533
  turnedLabel?: (HelixMap["turnedLabel"]) | undefined;
14534
+ /** The hint shown when one finger swipes over a map with `gestures="cooperative"`. */
14535
+ "two-finger-hint-label"?: (HelixMap["twoFingerHintLabel"]) | undefined;
14536
+ /** The hint shown when one finger swipes over a map with `gestures="cooperative"`. */
14537
+ twoFingerHintLabel?: (HelixMap["twoFingerHintLabel"]) | undefined;
14538
+ /** The line shown while a map with `gestures="activate"` has the gestures. */
14539
+ "using-label"?: (HelixMap["usingLabel"]) | undefined;
14540
+ /** The line shown while a map with `gestures="activate"` has the gestures. */
14541
+ usingLabel?: (HelixMap["usingLabel"]) | undefined;
14542
+ /** The hint shown when the wheel scrolls past a map with
14543
+ `gestures="cooperative"`, with `{key}`, which is ⌘ on a Mac and Ctrl
14544
+ elsewhere, as the renderer reads it. */
14545
+ "wheel-hint-label"?: (HelixMap["wheelHintLabel"]) | undefined;
14546
+ /** The hint shown when the wheel scrolls past a map with
14547
+ `gestures="cooperative"`, with `{key}`, which is ⌘ on a Mac and Ctrl
14548
+ elsewhere, as the renderer reads it. */
14549
+ wheelHintLabel?: (HelixMap["wheelHintLabel"]) | undefined;
14515
14550
  /** What screen readers hear after a zoom. `{level}` is the zoom level. */
14516
14551
  "zoomed-label"?: (HelixMap["zoomedLabel"]) | undefined;
14517
14552
  /** What screen readers hear after a zoom. `{level}` is the zoom level. */
@@ -14691,6 +14726,12 @@ at any zoom, and a consumer who wants their own units multiplies by them. */
14691
14726
  "attr:zoom-out-label"?: (HelixMap["zoomOutLabel"]) | undefined;
14692
14727
  /** The zoom out button's label. */
14693
14728
  "prop:zoomOutLabel"?: (HelixMap["zoomOutLabel"]) | undefined;
14729
+ /** The hint shown when a map waiting to be pressed is scrolled or swiped
14730
+ over, with `gestures="activate"`. */
14731
+ "attr:activate-hint-label"?: (HelixMap["activateHintLabel"]) | undefined;
14732
+ /** The hint shown when a map waiting to be pressed is scrolled or swiped
14733
+ over, with `gestures="activate"`. */
14734
+ "prop:activateHintLabel"?: (HelixMap["activateHintLabel"]) | undefined;
14694
14735
  /** The map's rotation, in degrees clockwise from north. `connectMap` keeps it
14695
14736
  current, and the Face north button's needle turns with it. */
14696
14737
  "prop:bearing"?: (HelixMap["bearing"]) | undefined;
@@ -14705,6 +14746,19 @@ the map zooms in, and pressing one zooms in to its places. */
14705
14746
  "attr:flat-label"?: (HelixMap["flatLabel"]) | undefined;
14706
14747
  /** What screen readers hear when the map is tilted back to looking straight down. */
14707
14748
  "prop:flatLabel"?: (HelixMap["flatLabel"]) | undefined;
14749
+ /** Which gestures the map takes from the page.
14750
+
14751
+ - `always`, which unset is: the wheel zooms the map and one finger pans
14752
+ it, for a map that is the page, such as a full-screen view.
14753
+ - `cooperative`: the wheel and one finger scroll the page, and the map
14754
+ takes Ctrl or ⌘ with the wheel, and two fingers. The frame says so
14755
+ when a gesture passes to the page. Best for a map embedded in a page.
14756
+ - `activate`: the map takes nothing until it is pressed, and gives it
14757
+ back on Escape, when the pointer leaves it, or on a press elsewhere.
14758
+
14759
+ The keyboard and the frame's buttons work in every mode. The renderer is
14760
+ told through the connector, so MapLibre and Leaflet behave alike. */
14761
+ "prop:gestures"?: (HelixMap["gestures"]) | undefined;
14708
14762
  /** The Hybrid map type's name. */
14709
14763
  "attr:hybrid-label"?: (HelixMap["hybridLabel"]) | undefined;
14710
14764
  /** The Hybrid map type's name. */
@@ -14786,6 +14840,22 @@ top of the map faces, clockwise from north. */
14786
14840
  /** What screen readers hear when the map is turned. `{degrees}` is the way the
14787
14841
  top of the map faces, clockwise from north. */
14788
14842
  "prop:turnedLabel"?: (HelixMap["turnedLabel"]) | undefined;
14843
+ /** The hint shown when one finger swipes over a map with `gestures="cooperative"`. */
14844
+ "attr:two-finger-hint-label"?: (HelixMap["twoFingerHintLabel"]) | undefined;
14845
+ /** The hint shown when one finger swipes over a map with `gestures="cooperative"`. */
14846
+ "prop:twoFingerHintLabel"?: (HelixMap["twoFingerHintLabel"]) | undefined;
14847
+ /** The line shown while a map with `gestures="activate"` has the gestures. */
14848
+ "attr:using-label"?: (HelixMap["usingLabel"]) | undefined;
14849
+ /** The line shown while a map with `gestures="activate"` has the gestures. */
14850
+ "prop:usingLabel"?: (HelixMap["usingLabel"]) | undefined;
14851
+ /** The hint shown when the wheel scrolls past a map with
14852
+ `gestures="cooperative"`, with `{key}`, which is ⌘ on a Mac and Ctrl
14853
+ elsewhere, as the renderer reads it. */
14854
+ "attr:wheel-hint-label"?: (HelixMap["wheelHintLabel"]) | undefined;
14855
+ /** The hint shown when the wheel scrolls past a map with
14856
+ `gestures="cooperative"`, with `{key}`, which is ⌘ on a Mac and Ctrl
14857
+ elsewhere, as the renderer reads it. */
14858
+ "prop:wheelHintLabel"?: (HelixMap["wheelHintLabel"]) | undefined;
14789
14859
  /** What screen readers hear after a zoom. `{level}` is the zoom level. */
14790
14860
  "attr:zoomed-label"?: (HelixMap["zoomedLabel"]) | undefined;
14791
14861
  /** What screen readers hear after a zoom. `{level}` is the zoom level. */
@@ -37703,12 +37773,26 @@ export type CustomElements = {
37703
37773
  * - `pan-up-label`/`panUpLabel`: The pan up button's label.
37704
37774
  * - `zoom-in-label`/`zoomInLabel`: The zoom in button's label.
37705
37775
  * - `zoom-out-label`/`zoomOutLabel`: The zoom out button's label.
37776
+ * - `activate-hint-label`/`activateHintLabel`: The hint shown when a map waiting to be pressed is scrolled or swiped
37777
+ * over, with `gestures="activate"`.
37706
37778
  * - `bearing`: The map's rotation, in degrees clockwise from north. `connectMap` keeps it
37707
37779
  * current, and the Face north button's needle turns with it.
37708
37780
  * - `cluster`: Combines markers that would overlap into one count. Counts split apart as
37709
37781
  * the map zooms in, and pressing one zooms in to its places.
37710
37782
  * - `face-north-label`/`faceNorthLabel`: The Face north button's label.
37711
37783
  * - `flat-label`/`flatLabel`: What screen readers hear when the map is tilted back to looking straight down.
37784
+ * - `gestures`: Which gestures the map takes from the page.
37785
+ *
37786
+ * - `always`, which unset is: the wheel zooms the map and one finger pans
37787
+ * it, for a map that is the page, such as a full-screen view.
37788
+ * - `cooperative`: the wheel and one finger scroll the page, and the map
37789
+ * takes Ctrl or ⌘ with the wheel, and two fingers. The frame says so
37790
+ * when a gesture passes to the page. Best for a map embedded in a page.
37791
+ * - `activate`: the map takes nothing until it is pressed, and gives it
37792
+ * back on Escape, when the pointer leaves it, or on a press elsewhere.
37793
+ *
37794
+ * The keyboard and the frame's buttons work in every mode. The renderer is
37795
+ * told through the connector, so MapLibre and Leaflet behave alike.
37712
37796
  * - `hybrid-label`/`hybridLabel`: The Hybrid map type's name.
37713
37797
  * - `label`: The map's name, read by screen readers. Name the place, such as "Delivery
37714
37798
  * area", so that several maps on one page can be told apart. Required.
@@ -37735,6 +37819,11 @@ export type CustomElements = {
37735
37819
  * - `tilt-label`/`tiltLabel`: The 3D button's label.
37736
37820
  * - `turned-label`/`turnedLabel`: What screen readers hear when the map is turned. `{degrees}` is the way the
37737
37821
  * top of the map faces, clockwise from north.
37822
+ * - `two-finger-hint-label`/`twoFingerHintLabel`: The hint shown when one finger swipes over a map with `gestures="cooperative"`.
37823
+ * - `using-label`/`usingLabel`: The line shown while a map with `gestures="activate"` has the gestures.
37824
+ * - `wheel-hint-label`/`wheelHintLabel`: The hint shown when the wheel scrolls past a map with
37825
+ * `gestures="cooperative"`, with `{key}`, which is ⌘ on a Mac and Ctrl
37826
+ * elsewhere, as the renderer reads it.
37738
37827
  * - `zoomed-label`/`zoomedLabel`: What screen readers hear after a zoom. `{level}` is the zoom level.
37739
37828
  * - `zoom-level`/`zoomLevel`: How far the map is zoomed, in its renderer's levels. `connectMap` keeps it
37740
37829
  * current, and the map says it after a zoom.
@@ -37837,6 +37926,8 @@ export type CustomElements = {
37837
37926
  * - `face-north`: The compass: its needle points north as the map turns, and pressing it turns the map to face north.
37838
37927
  * - `footer`: The strip below the map.
37839
37928
  * - `fullscreen`: The button that makes the map fill the screen.
37929
+ * - `gesture-hint`: Words over the map for a moment when it lets a gesture pass to the page, such as how to zoom it.
37930
+ * - `gesture-status`: The line shown while a map with `gestures="activate"` has the gestures.
37840
37931
  * - `header`: The strip above the map.
37841
37932
  * - `layer`: One entry in the list of the map's layers.
37842
37933
  * - `layer-choice`: One layer's tile in the layers menu, pressed while the layer is shown.
@@ -37871,6 +37962,7 @@ export type CustomElements = {
37871
37962
  * - `fullscreen`: The map fills the screen.
37872
37963
  * - `idle`: The user has been still long enough for the header and footer to fade.
37873
37964
  * - `ready`: The map has been drawn whole, after `helix-map-ready`.
37965
+ * - `using`: A map with `gestures="activate"` has been pressed and has the gestures.
37874
37966
  * - `settled`: Set one frame after the first render. Transitions wait for it, so an element does not animate its own arrival.
37875
37967
  */
37876
37968
  "helix-map": Partial<HelixMapProps & BaseProps<HelixMap> & BaseEvents<HelixMap>>;
@@ -59736,12 +59828,26 @@ export type CustomElementsSolidJs = {
59736
59828
  * - `pan-up-label`/`panUpLabel`: The pan up button's label.
59737
59829
  * - `zoom-in-label`/`zoomInLabel`: The zoom in button's label.
59738
59830
  * - `zoom-out-label`/`zoomOutLabel`: The zoom out button's label.
59831
+ * - `activate-hint-label`/`activateHintLabel`: The hint shown when a map waiting to be pressed is scrolled or swiped
59832
+ * over, with `gestures="activate"`.
59739
59833
  * - `bearing`: The map's rotation, in degrees clockwise from north. `connectMap` keeps it
59740
59834
  * current, and the Face north button's needle turns with it.
59741
59835
  * - `cluster`: Combines markers that would overlap into one count. Counts split apart as
59742
59836
  * the map zooms in, and pressing one zooms in to its places.
59743
59837
  * - `face-north-label`/`faceNorthLabel`: The Face north button's label.
59744
59838
  * - `flat-label`/`flatLabel`: What screen readers hear when the map is tilted back to looking straight down.
59839
+ * - `gestures`: Which gestures the map takes from the page.
59840
+ *
59841
+ * - `always`, which unset is: the wheel zooms the map and one finger pans
59842
+ * it, for a map that is the page, such as a full-screen view.
59843
+ * - `cooperative`: the wheel and one finger scroll the page, and the map
59844
+ * takes Ctrl or ⌘ with the wheel, and two fingers. The frame says so
59845
+ * when a gesture passes to the page. Best for a map embedded in a page.
59846
+ * - `activate`: the map takes nothing until it is pressed, and gives it
59847
+ * back on Escape, when the pointer leaves it, or on a press elsewhere.
59848
+ *
59849
+ * The keyboard and the frame's buttons work in every mode. The renderer is
59850
+ * told through the connector, so MapLibre and Leaflet behave alike.
59745
59851
  * - `hybrid-label`/`hybridLabel`: The Hybrid map type's name.
59746
59852
  * - `label`: The map's name, read by screen readers. Name the place, such as "Delivery
59747
59853
  * area", so that several maps on one page can be told apart. Required.
@@ -59768,6 +59874,11 @@ export type CustomElementsSolidJs = {
59768
59874
  * - `tilt-label`/`tiltLabel`: The 3D button's label.
59769
59875
  * - `turned-label`/`turnedLabel`: What screen readers hear when the map is turned. `{degrees}` is the way the
59770
59876
  * top of the map faces, clockwise from north.
59877
+ * - `two-finger-hint-label`/`twoFingerHintLabel`: The hint shown when one finger swipes over a map with `gestures="cooperative"`.
59878
+ * - `using-label`/`usingLabel`: The line shown while a map with `gestures="activate"` has the gestures.
59879
+ * - `wheel-hint-label`/`wheelHintLabel`: The hint shown when the wheel scrolls past a map with
59880
+ * `gestures="cooperative"`, with `{key}`, which is ⌘ on a Mac and Ctrl
59881
+ * elsewhere, as the renderer reads it.
59771
59882
  * - `zoomed-label`/`zoomedLabel`: What screen readers hear after a zoom. `{level}` is the zoom level.
59772
59883
  * - `zoom-level`/`zoomLevel`: How far the map is zoomed, in its renderer's levels. `connectMap` keeps it
59773
59884
  * current, and the map says it after a zoom.
@@ -59870,6 +59981,8 @@ export type CustomElementsSolidJs = {
59870
59981
  * - `face-north`: The compass: its needle points north as the map turns, and pressing it turns the map to face north.
59871
59982
  * - `footer`: The strip below the map.
59872
59983
  * - `fullscreen`: The button that makes the map fill the screen.
59984
+ * - `gesture-hint`: Words over the map for a moment when it lets a gesture pass to the page, such as how to zoom it.
59985
+ * - `gesture-status`: The line shown while a map with `gestures="activate"` has the gestures.
59873
59986
  * - `header`: The strip above the map.
59874
59987
  * - `layer`: One entry in the list of the map's layers.
59875
59988
  * - `layer-choice`: One layer's tile in the layers menu, pressed while the layer is shown.
@@ -59904,6 +60017,7 @@ export type CustomElementsSolidJs = {
59904
60017
  * - `fullscreen`: The map fills the screen.
59905
60018
  * - `idle`: The user has been still long enough for the header and footer to fade.
59906
60019
  * - `ready`: The map has been drawn whole, after `helix-map-ready`.
60020
+ * - `using`: A map with `gestures="activate"` has been pressed and has the gestures.
59907
60021
  * - `settled`: Set one frame after the first render. Transitions wait for it, so an element does not animate its own arrival.
59908
60022
  */
59909
60023
  "helix-map": Partial<
package/types/vue.d.ts CHANGED
@@ -7466,6 +7466,12 @@ at any zoom, and a consumer who wants their own units multiplies by them. */
7466
7466
  "zoom-out-label"?: (HelixMap["zoomOutLabel"]) | undefined;
7467
7467
  /** The zoom out button's label. */
7468
7468
  zoomOutLabel?: (HelixMap["zoomOutLabel"]) | undefined;
7469
+ /** The hint shown when a map waiting to be pressed is scrolled or swiped
7470
+ over, with `gestures="activate"`. */
7471
+ "activate-hint-label"?: (HelixMap["activateHintLabel"]) | undefined;
7472
+ /** The hint shown when a map waiting to be pressed is scrolled or swiped
7473
+ over, with `gestures="activate"`. */
7474
+ activateHintLabel?: (HelixMap["activateHintLabel"]) | undefined;
7469
7475
  /** The map's rotation, in degrees clockwise from north. `connectMap` keeps it
7470
7476
  current, and the Face north button's needle turns with it. */
7471
7477
  bearing?: (HelixMap["bearing"]) | undefined;
@@ -7480,6 +7486,19 @@ the map zooms in, and pressing one zooms in to its places. */
7480
7486
  "flat-label"?: (HelixMap["flatLabel"]) | undefined;
7481
7487
  /** What screen readers hear when the map is tilted back to looking straight down. */
7482
7488
  flatLabel?: (HelixMap["flatLabel"]) | undefined;
7489
+ /** Which gestures the map takes from the page.
7490
+
7491
+ - `always`, which unset is: the wheel zooms the map and one finger pans
7492
+ it, for a map that is the page, such as a full-screen view.
7493
+ - `cooperative`: the wheel and one finger scroll the page, and the map
7494
+ takes Ctrl or ⌘ with the wheel, and two fingers. The frame says so
7495
+ when a gesture passes to the page. Best for a map embedded in a page.
7496
+ - `activate`: the map takes nothing until it is pressed, and gives it
7497
+ back on Escape, when the pointer leaves it, or on a press elsewhere.
7498
+
7499
+ The keyboard and the frame's buttons work in every mode. The renderer is
7500
+ told through the connector, so MapLibre and Leaflet behave alike. */
7501
+ gestures?: (HelixMap["gestures"]) | undefined;
7483
7502
  /** The Hybrid map type's name. */
7484
7503
  "hybrid-label"?: (HelixMap["hybridLabel"]) | undefined;
7485
7504
  /** The Hybrid map type's name. */
@@ -7561,6 +7580,22 @@ top of the map faces, clockwise from north. */
7561
7580
  /** What screen readers hear when the map is turned. `{degrees}` is the way the
7562
7581
  top of the map faces, clockwise from north. */
7563
7582
  turnedLabel?: (HelixMap["turnedLabel"]) | undefined;
7583
+ /** The hint shown when one finger swipes over a map with `gestures="cooperative"`. */
7584
+ "two-finger-hint-label"?: (HelixMap["twoFingerHintLabel"]) | undefined;
7585
+ /** The hint shown when one finger swipes over a map with `gestures="cooperative"`. */
7586
+ twoFingerHintLabel?: (HelixMap["twoFingerHintLabel"]) | undefined;
7587
+ /** The line shown while a map with `gestures="activate"` has the gestures. */
7588
+ "using-label"?: (HelixMap["usingLabel"]) | undefined;
7589
+ /** The line shown while a map with `gestures="activate"` has the gestures. */
7590
+ usingLabel?: (HelixMap["usingLabel"]) | undefined;
7591
+ /** The hint shown when the wheel scrolls past a map with
7592
+ `gestures="cooperative"`, with `{key}`, which is ⌘ on a Mac and Ctrl
7593
+ elsewhere, as the renderer reads it. */
7594
+ "wheel-hint-label"?: (HelixMap["wheelHintLabel"]) | undefined;
7595
+ /** The hint shown when the wheel scrolls past a map with
7596
+ `gestures="cooperative"`, with `{key}`, which is ⌘ on a Mac and Ctrl
7597
+ elsewhere, as the renderer reads it. */
7598
+ wheelHintLabel?: (HelixMap["wheelHintLabel"]) | undefined;
7564
7599
  /** What screen readers hear after a zoom. `{level}` is the zoom level. */
7565
7600
  "zoomed-label"?: (HelixMap["zoomedLabel"]) | undefined;
7566
7601
  /** What screen readers hear after a zoom. `{level}` is the zoom level. */