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.1 to 1.12.2

17

es/Mask.js

@@ -28,2 +28,10 @@ import _extends from "@babel/runtime/helpers/esm/extends";

var mergedAnimated = _typeof(animated) === 'object' ? animated === null || animated === void 0 ? void 0 : animated.placeholder : animated;
var isSafari = typeof navigator !== 'undefined' && /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
var maskRectSize = isSafari ? {
width: '100%',
height: '100%'
} : {
width: '100vw',
height: '100vh'
};
return /*#__PURE__*/React.createElement(Portal, {

@@ -50,9 +58,8 @@ open: open,

id: maskId
}, /*#__PURE__*/React.createElement("rect", {
}, /*#__PURE__*/React.createElement("rect", _extends({
x: "0",
y: "0",
width: "100%",
height: "100%",
y: "0"
}, maskRectSize, {
fill: "white"
}), pos && /*#__PURE__*/React.createElement("rect", {
})), pos && /*#__PURE__*/React.createElement("rect", {
x: pos.left,

@@ -59,0 +66,0 @@ y: pos.top,

@@ -35,2 +35,10 @@ "use strict";

var mergedAnimated = (0, _typeof2.default)(animated) === 'object' ? animated === null || animated === void 0 ? void 0 : animated.placeholder : animated;
var isSafari = typeof navigator !== 'undefined' && /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
var maskRectSize = isSafari ? {
width: '100%',
height: '100%'
} : {
width: '100vw',
height: '100vh'
};
return /*#__PURE__*/_react.default.createElement(_portal.default, {

@@ -57,9 +65,8 @@ open: open,

id: maskId
}, /*#__PURE__*/_react.default.createElement("rect", {
}, /*#__PURE__*/_react.default.createElement("rect", (0, _extends2.default)({
x: "0",
y: "0",
width: "100%",
height: "100%",
y: "0"
}, maskRectSize, {
fill: "white"
}), pos && /*#__PURE__*/_react.default.createElement("rect", {
})), pos && /*#__PURE__*/_react.default.createElement("rect", {
x: pos.left,

@@ -66,0 +73,0 @@ y: pos.top,

{
"name": "@rc-component/tour",
"version": "1.12.1",
"version": "1.12.2",
"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