Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@rc-component/tour

Package Overview
Dependencies
Maintainers
5
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rc-component/tour - npm Package Compare versions

Comparing version 1.12.2 to 1.12.3

17

es/Tour.js

@@ -25,2 +25,6 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";

};
var defaultScrollIntoViewOptions = {
block: "center",
inline: "center"
};
var Tour = function Tour(props) {

@@ -47,3 +51,3 @@ var _props$prefixCls = props.prefixCls,

_props$scrollIntoView = props.scrollIntoViewOptions,
scrollIntoViewOptions = _props$scrollIntoView === void 0 ? true : _props$scrollIntoView,
scrollIntoViewOptions = _props$scrollIntoView === void 0 ? defaultScrollIntoViewOptions : _props$scrollIntoView,
_props$zIndex = props.zIndex,

@@ -86,3 +90,4 @@ zIndex = _props$zIndex === void 0 ? 1001 : _props$zIndex,

stepMask = _ref.mask,
stepScrollIntoViewOptions = _ref.scrollIntoViewOptions,
_ref$scrollIntoViewOp = _ref.scrollIntoViewOptions,
stepScrollIntoViewOptions = _ref$scrollIntoViewOp === void 0 ? defaultScrollIntoViewOptions : _ref$scrollIntoViewOp,
stepCloseIcon = _ref.closeIcon;

@@ -103,3 +108,3 @@ var mergedMask = mergedOpen && (stepMask !== null && stepMask !== void 0 ? stepMask : mask);

var _triggerRef$current;
(_triggerRef$current = triggerRef.current) === null || _triggerRef$current === void 0 || _triggerRef$current.forceAlign();
(_triggerRef$current = triggerRef.current) === null || _triggerRef$current === void 0 ? void 0 : _triggerRef$current.forceAlign();
}, [arrowPointAtCenter, mergedCurrent]);

@@ -110,3 +115,3 @@

setMergedCurrent(nextCurrent);
onChange === null || onChange === void 0 || onChange(nextCurrent);
onChange === null || onChange === void 0 ? void 0 : onChange(nextCurrent);
};

@@ -129,3 +134,3 @@ var mergedBuiltinPlacements = useMemo(function () {

setMergedOpen(false);
onClose === null || onClose === void 0 || onClose(mergedCurrent);
onClose === null || onClose === void 0 ? void 0 : onClose(mergedCurrent);
};

@@ -149,3 +154,3 @@ var getPopupElement = function getPopupElement() {

handleClose();
_onFinish === null || _onFinish === void 0 || _onFinish();
_onFinish === null || _onFinish === void 0 ? void 0 : _onFinish();
},

@@ -152,0 +157,0 @@ closeIcon: mergedCloseIcon

@@ -9,2 +9,3 @@ "use strict";

var _Tour = _interopRequireDefault(require("./Tour"));
var _default = exports.default = _Tour.default;
var _default = _Tour.default;
exports.default = _default;

@@ -106,2 +106,3 @@ "use strict";

};
var _default = exports.default = Mask;
var _default = Mask;
exports.default = _default;

@@ -76,2 +76,3 @@ "use strict";

}
var placements = exports.placements = getPlacements();
var placements = getPlacements();
exports.placements = placements;

@@ -14,4 +14,3 @@ "use strict";

var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
var _react = _interopRequireWildcard(require("react"));
var React = _react;
var React = _interopRequireWildcard(require("react"));
var _portal = _interopRequireDefault(require("@rc-component/portal"));

@@ -34,2 +33,6 @@ var _trigger = _interopRequireDefault(require("@rc-component/trigger"));

};
var defaultScrollIntoViewOptions = {
block: "center",
inline: "center"
};
var Tour = function Tour(props) {

@@ -56,3 +59,3 @@ var _props$prefixCls = props.prefixCls,

_props$scrollIntoView = props.scrollIntoViewOptions,
scrollIntoViewOptions = _props$scrollIntoView === void 0 ? true : _props$scrollIntoView,
scrollIntoViewOptions = _props$scrollIntoView === void 0 ? defaultScrollIntoViewOptions : _props$scrollIntoView,
_props$zIndex = props.zIndex,

@@ -95,3 +98,4 @@ zIndex = _props$zIndex === void 0 ? 1001 : _props$zIndex,

stepMask = _ref.mask,
stepScrollIntoViewOptions = _ref.scrollIntoViewOptions,
_ref$scrollIntoViewOp = _ref.scrollIntoViewOptions,
stepScrollIntoViewOptions = _ref$scrollIntoViewOp === void 0 ? defaultScrollIntoViewOptions : _ref$scrollIntoViewOp,
stepCloseIcon = _ref.closeIcon;

@@ -112,3 +116,3 @@ var mergedMask = mergedOpen && (stepMask !== null && stepMask !== void 0 ? stepMask : mask);

var _triggerRef$current;
(_triggerRef$current = triggerRef.current) === null || _triggerRef$current === void 0 || _triggerRef$current.forceAlign();
(_triggerRef$current = triggerRef.current) === null || _triggerRef$current === void 0 ? void 0 : _triggerRef$current.forceAlign();
}, [arrowPointAtCenter, mergedCurrent]);

@@ -119,5 +123,5 @@

setMergedCurrent(nextCurrent);
onChange === null || onChange === void 0 || onChange(nextCurrent);
onChange === null || onChange === void 0 ? void 0 : onChange(nextCurrent);
};
var mergedBuiltinPlacements = (0, _react.useMemo)(function () {
var mergedBuiltinPlacements = (0, React.useMemo)(function () {
if (builtinPlacements) {

@@ -138,3 +142,3 @@ return typeof builtinPlacements === 'function' ? builtinPlacements({

setMergedOpen(false);
onClose === null || onClose === void 0 || onClose(mergedCurrent);
onClose === null || onClose === void 0 ? void 0 : onClose(mergedCurrent);
};

@@ -158,3 +162,3 @@ var getPopupElement = function getPopupElement() {

handleClose();
_onFinish === null || _onFinish === void 0 || _onFinish();
_onFinish === null || _onFinish === void 0 ? void 0 : _onFinish();
},

@@ -207,2 +211,3 @@ closeIcon: mergedCloseIcon

};
var _default = exports.default = Tour;
var _default = Tour;
exports.default = _default;

@@ -16,2 +16,3 @@ "use strict";

};
var _default = exports.default = TourStep;
var _default = TourStep;
exports.default = _default;
{
"name": "@rc-component/tour",
"version": "1.12.2",
"version": "1.12.3",
"description": "React tour Component",

@@ -5,0 +5,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc