Socket
Socket
Sign inDemoInstall

@hsds/tooltip

Package Overview
Dependencies
Maintainers
2
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hsds/tooltip - npm Package Compare versions

Comparing version 4.1.0 to 5.0.0

21

CHANGELOG.md

@@ -5,2 +5,23 @@ # Changelog

# [5.0.0](https://github.com/helpscout/hsds/compare/v4.0.0...v5.0.0) (2022-08-18)
### Bug Fixes
* **workspace:** remove esm module from projects ([829cc37](https://github.com/helpscout/hsds/commit/829cc3795f54a8bcfbc0c45b5bc36bd17463bf54))
### Features
* **workspace:** improves versioning packages ([b836826](https://github.com/helpscout/hsds/commit/b836826d549aeb7295498f1091c783136079f134))
### [4.1.1](https://github.com/helpscout/hsds/compare/components-tooltip-4.1.0...components-tooltip-4.1.1) (2022-08-18)
### Dependency Updates
* `utils-react` updated to version `4.1.0`
* `components-keyboard-badge` updated to version `4.1.0`
* `utils-color` updated to version `4.1.0`
## [4.1.0](https://github.com/helpscout/hsds/compare/components-tooltip-4.0.1...components-tooltip-4.1.0) (2022-08-03)

@@ -7,0 +28,0 @@

11

package.json
{
"name": "@hsds/tooltip",
"version": "4.1.0",
"version": "5.0.0",
"peerDependencies": {

@@ -16,9 +16,6 @@ "prop-types": "~15.7.2",

"classnames": "2.3.1",
"lodash.isfunction": "^3.0.9",
"@hsds/utils-react": "4.1.0",
"@hsds/keyboard-badge": "4.1.0",
"@hsds/button": "4.1.0",
"@hsds/text": "4.1.0",
"@hsds/utils-color": "4.1.0"
"@hsds/utils-react": "5.0.0",
"@hsds/keyboard-badge": "5.0.0",
"@hsds/utils-color": "5.0.0"
}
}

@@ -11,3 +11,2 @@ import React, {

import classNames from 'classnames'
import isFunction from 'lodash.isfunction'
import PropTypes from 'prop-types'

@@ -88,4 +87,4 @@

const hasRenderContent = renderContent && isFunction(renderContent)
const hasRender = renderProp && isFunction(renderProp)
const hasRenderContent = renderContent && typeof renderContent === 'function'
const hasRender = renderProp && typeof renderProp === 'function'
const shouldRenderTooltip = title || hasRenderContent || hasRender

@@ -196,3 +195,3 @@ const hasKeyboardBadge = badge && !hasRender

// only set those props if the component is not in a controlled way
if (!rest.hasOwnProperty('visible')) {
if (!rest.visible) {
defaultTippyProps.showOnCreate = isOpen

@@ -199,0 +198,0 @@ defaultTippyProps.trigger = triggerOn === 'hover' ? 'mouseenter' : triggerOn

@@ -12,4 +12,2 @@ "use strict";

var _lodash = _interopRequireDefault(require("lodash.isfunction"));
var _propTypes = _interopRequireDefault(require("prop-types"));

@@ -103,4 +101,4 @@

}, []);
const hasRenderContent = renderContent && (0, _lodash.default)(renderContent);
const hasRender = renderProp && (0, _lodash.default)(renderProp);
const hasRenderContent = renderContent && typeof renderContent === 'function';
const hasRender = renderProp && typeof renderProp === 'function';
const shouldRenderTooltip = title || hasRenderContent || hasRender;

@@ -209,3 +207,3 @@ const hasKeyboardBadge = badge && !hasRender;

if (!rest.hasOwnProperty('visible')) {
if (!rest.visible) {
defaultTippyProps.showOnCreate = isOpen;

@@ -212,0 +210,0 @@ defaultTippyProps.trigger = triggerOn === 'hover' ? 'mouseenter' : triggerOn;

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