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

@clayui/tooltip

Package Overview
Dependencies
Maintainers
3
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clayui/tooltip - npm Package Compare versions

Comparing version 3.0.5 to 3.0.6

7

CHANGELOG.md

@@ -6,2 +6,9 @@ # Change Log

## [3.0.6](https://github.com/liferay/clay/tree/master/packages/clay-tooltip/compare/@clayui/tooltip@3.0.4...@clayui/tooltip@3.0.6) (2020-01-20)
### Bug Fixes
- **css:** allow newline characters to display properly for tooltips ([2265d10](https://github.com/liferay/clay/tree/master/packages/clay-tooltip/commit/2265d10))
- **drop-down:** use dom-align instead of metal-position ([335ff38](https://github.com/liferay/clay/tree/master/packages/clay-tooltip/commit/335ff38))
## [3.0.5](https://github.com/liferay/clay/tree/master/packages/clay-tooltip/compare/@clayui/tooltip@3.0.4...@clayui/tooltip@3.0.5) (2019-12-05)

@@ -8,0 +15,0 @@

32

lib/TooltipProvider.js

@@ -12,3 +12,3 @@ "use strict";

var _react = _interopRequireWildcard(require("react"));
var _react = _interopRequireDefault(require("react"));

@@ -19,4 +19,2 @@ var _warning = _interopRequireDefault(require("warning"));

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -117,16 +115,19 @@

var _useReducer = (0, _react.useReducer)(reducer, initialState),
_useReducer2 = _slicedToArray(_useReducer, 2),
_useReducer2$ = _useReducer2[0],
align = _useReducer2$.align,
message = _useReducer2$.message,
show = _useReducer2$.show,
dispatch = _useReducer2[1]; // Using `any` type since TS incorrectly infers setTimeout to be from NodeJS
var _React$useReducer = _react.default.useReducer(reducer, initialState),
_React$useReducer2 = _slicedToArray(_React$useReducer, 2),
_React$useReducer2$ = _React$useReducer2[0],
align = _React$useReducer2$.align,
message = _React$useReducer2$.message,
show = _React$useReducer2$.show,
dispatch = _React$useReducer2[1]; // Using `any` type since TS incorrectly infers setTimeout to be from NodeJS
var timeoutIdRef = (0, _react.useRef)();
var targetRef = (0, _react.useRef)(null);
var titleNodeRef = (0, _react.useRef)(null);
var tooltipRef = (0, _react.useRef)(null);
var timeoutIdRef = _react.default.useRef();
var targetRef = _react.default.useRef(null);
var titleNodeRef = _react.default.useRef(null);
var tooltipRef = _react.default.useRef(null);
var handleHide = function handleHide(_ref3) {

@@ -178,3 +179,3 @@ var target = _ref3.target;

(0, _react.useEffect)(function () {
_react.default.useEffect(function () {
if (titleNodeRef.current && tooltipRef.current) {

@@ -199,2 +200,3 @@ var points = ALIGNMENTS_MAP[align || 'top'];

}, [align, show]);
"production" !== "production" ? (0, _warning.default)(children.type !== _react.default.Fragment, '<TooltipProvider />: React Fragment is not allowed as a child to TooltipProvider. Child must be a single HTML element.') : void 0;

@@ -201,0 +203,0 @@ return _react.default.createElement(_react.default.Fragment, null, show && _react.default.createElement(_shared.ClayPortal, null, _react.default.createElement(_Tooltip.default, {

{
"name": "@clayui/tooltip",
"version": "3.0.5",
"version": "3.0.6",
"description": "ClayTooltip component",

@@ -29,3 +29,3 @@ "license": "BSD-3-Clause",

"dependencies": {
"@clayui/shared": "^3.0.5",
"@clayui/shared": "^3.0.6",
"classnames": "^2.2.6",

@@ -43,3 +43,3 @@ "dom-align": "^1.10.2",

],
"gitHead": "df13196d448cb28438003716c4bae275b793dec1"
"gitHead": "c57d995c58f23d16de65faf6cc958227421b9fa3"
}

Sorry, the diff of this file is not supported yet

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