@glowhop/react-tour 1.0.0 → 1.0.2
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/CHANGELOG.md +28 -0
- package/index.js +1 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @glowhop/react-tour
|
|
2
2
|
|
|
3
|
+
## 1.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 5aa8cdf: Fix two mobile overlay defects.
|
|
8
|
+
|
|
9
|
+
The backdrop no longer stops short of the bottom of the screen. Its `viewBox` is
|
|
10
|
+
now measured from the element's own box instead of `documentElement.clientHeight`,
|
|
11
|
+
which a retracting mobile URL bar moves out of step with the box a fixed element
|
|
12
|
+
is sized against; `preserveAspectRatio="xMinYMin slice"` makes any residual mismatch
|
|
13
|
+
overdraw rather than letterbox, and the element is sized to `100lvh` where that
|
|
14
|
+
unit exists so it always spans the visible area.
|
|
15
|
+
|
|
16
|
+
The cutout now animates on WebKit. Safari — and therefore every browser on iOS —
|
|
17
|
+
cannot animate `d` through the Web Animations API, so the rectangle is
|
|
18
|
+
interpolated frame by frame and the path regenerated from it, clocked by the
|
|
19
|
+
eased progress of the animation already running on the same element, instead of
|
|
20
|
+
snapping to each target.
|
|
21
|
+
- Updated dependencies [5aa8cdf]
|
|
22
|
+
- @glowhop/core-tour@1.0.2
|
|
23
|
+
|
|
24
|
+
## 1.0.1
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- Updated dependencies [358c4b1]
|
|
29
|
+
- @glowhop/core-tour@1.0.1
|
|
30
|
+
|
|
3
31
|
## 1.0.0
|
|
4
32
|
|
|
5
33
|
### Major Changes
|
package/index.js
CHANGED
|
@@ -147,6 +147,7 @@ function Overlay({ children, style, viewBox = "0 0 0 0", ...props }) {
|
|
|
147
147
|
"data-glow-tour-allow-interaction": OVERLAY_IDLE_ATTRIBUTES["data-glow-tour-allow-interaction"],
|
|
148
148
|
"data-glow-tour-overlay": true,
|
|
149
149
|
focusable: "false",
|
|
150
|
+
preserveAspectRatio: OVERLAY_IDLE_ATTRIBUTES.preserveAspectRatio,
|
|
150
151
|
ref,
|
|
151
152
|
role: "presentation",
|
|
152
153
|
style: style ?? OVERLAY_IDLE_STYLE_REACT,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glowhop/react-tour",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "React adapter for GlowTour.js.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/Glowhop/GlowTour.js#readme",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@glowhop/core-tour": "1.0.
|
|
43
|
+
"@glowhop/core-tour": "1.0.2"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"react": "^18.0.0 || ^19.0.0"
|