@glowhop/react-tour 1.0.0 → 1.1.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.
Files changed (3) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/index.js +1 -0
  3. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,40 @@
1
1
  # @glowhop/react-tour
2
2
 
3
+ ## 1.1.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [165797b]
8
+ - @glowhop/core-tour@1.1.0
9
+
10
+ ## 1.0.2
11
+
12
+ ### Patch Changes
13
+
14
+ - 5aa8cdf: Fix two mobile overlay defects.
15
+
16
+ The backdrop no longer stops short of the bottom of the screen. Its `viewBox` is
17
+ now measured from the element's own box instead of `documentElement.clientHeight`,
18
+ which a retracting mobile URL bar moves out of step with the box a fixed element
19
+ is sized against; `preserveAspectRatio="xMinYMin slice"` makes any residual mismatch
20
+ overdraw rather than letterbox, and the element is sized to `100lvh` where that
21
+ unit exists so it always spans the visible area.
22
+
23
+ The cutout now animates on WebKit. Safari — and therefore every browser on iOS —
24
+ cannot animate `d` through the Web Animations API, so the rectangle is
25
+ interpolated frame by frame and the path regenerated from it, clocked by the
26
+ eased progress of the animation already running on the same element, instead of
27
+ snapping to each target.
28
+ - Updated dependencies [5aa8cdf]
29
+ - @glowhop/core-tour@1.0.2
30
+
31
+ ## 1.0.1
32
+
33
+ ### Patch Changes
34
+
35
+ - Updated dependencies [358c4b1]
36
+ - @glowhop/core-tour@1.0.1
37
+
3
38
  ## 1.0.0
4
39
 
5
40
  ### 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.0",
3
+ "version": "1.1.0",
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.0"
43
+ "@glowhop/core-tour": "1.1.0"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "react": "^18.0.0 || ^19.0.0"