@glowhop/core-tour 1.0.2 → 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.
- package/CHANGELOG.md +6 -0
- package/index.js +1 -1
- package/package.json +1 -1
- package/types/index.d.ts +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @glowhop/core-tour
|
|
2
2
|
|
|
3
|
+
## 1.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 165797b: `allowScroll` now defaults to `true`: the page stays scrollable while a tour runs. Pass `allowScroll: false` to keep the previous scroll-lock behaviour.
|
|
8
|
+
|
|
3
9
|
## 1.0.2
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/index.js
CHANGED
|
@@ -2983,7 +2983,7 @@ class ActiveStep {
|
|
|
2983
2983
|
this.props = createStepPropsStore(this.initialProps, reportSubscriberError, path);
|
|
2984
2984
|
this.behavior = mergeStepBehavior(defaults.behavior, definition.behavior);
|
|
2985
2985
|
this.animated = defaults.animated;
|
|
2986
|
-
this.allowScroll = defaults.allowScroll
|
|
2986
|
+
this.allowScroll = defaults.allowScroll !== false;
|
|
2987
2987
|
}
|
|
2988
2988
|
reset() {
|
|
2989
2989
|
this.props.set(this.initialProps);
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -186,10 +186,10 @@ export interface StartOptions<T> {
|
|
|
186
186
|
/** Allow users to cancel the tour. @default true */
|
|
187
187
|
cancellable?: boolean;
|
|
188
188
|
/**
|
|
189
|
-
*
|
|
190
|
-
* cancel, error, or dispose.
|
|
189
|
+
* Leaves page scroll available while the tour is active. Set `false` to lock
|
|
190
|
+
* scroll instead, restoring it on finish, cancel, error, or dispose.
|
|
191
191
|
*
|
|
192
|
-
* @default
|
|
192
|
+
* @default true
|
|
193
193
|
*/
|
|
194
194
|
allowScroll?: boolean;
|
|
195
195
|
/** Default overlay options for all steps. */
|