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

@10up/component-tooltip

Package Overview
Dependencies
Maintainers
7
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@10up/component-tooltip - npm Package Compare versions

Comparing version 1.0.1 to 2.0.0-rc.1

CHANGELOG.md

47

package.json
{
"name": "@10up/component-tooltip",
"version": "1.0.1",
"version": "2.0.0-rc.1",
"author": "10up",
"description": "Accessible tooltip component.",
"main": "./src/tooltip.js",
"style": "./dist/tooltip.css",
"main": "dist/index.js",
"exports": "./dist/index.modern.js",
"umd:main": "dist/index.umd.js",
"module": "dist/index.module.js",
"source": "src/index.js",
"style": "./dist/index.css",
"types": "./index.d.ts",
"scripts": {
"start": "npm install && npm run build",
"build": "webpack",
"watch": "webpack --watch"
"test": "jest --coverage",
"test:watch": "jest --watch",
"watch": "concurrently \"npm run build:modern -- --watch\" \"npm run build:umd -- --watch\"",
"build": "npm run build:modern && npm run build:umd",
"build:modern": "microbundle build -f modern,es,cjs",
"build:umd": "microbundle build -i src/index.umd.js --name TenUpTooltip -f umd --external none"
},

@@ -23,24 +31,13 @@ "repository": {

"devDependencies": {
"@10up/eslint-config": "^1.0.9",
"@babel/cli": "^7.2.3",
"@babel/core": "^7.3.4",
"@babel/preset-env": "^7.3.4",
"babel-eslint": "^9.0.0",
"babel-loader": "^8.0.5",
"browser-sync": "^2.26.7",
"browser-sync-webpack-plugin": "^2.2.2",
"css-loader": "^1.0.1",
"eslint": "^5.15.2",
"eslint-loader": "^2.1.2",
"mini-css-extract-plugin": "^0.4.5",
"postcss": "^7.0.14",
"postcss-import": "^12.0.1",
"postcss-loader": "^3.0.0",
"postcss-preset-env": "^5.3.0",
"webpack": "^4.29.6",
"webpack-cli": "^3.2.3"
"@testing-library/dom": "^7.29.4",
"@testing-library/jest-dom": "^5.11.9",
"@testing-library/user-event": "^12.6.3",
"jest-axe": "^4.1.0",
"microbundle": "^0.13.0",
"postcss-import": "^14.0.0",
"postcss-preset-env": "^6.7.0"
},
"dependencies": {
"@babel/polyfill": "^7.2.5"
"core-js": "^3.8.3"
}
}

@@ -5,4 +5,2 @@ # 10up Tooltip component

[![Support Level](https://img.shields.io/badge/support-active-green.svg)](#support-level)
## Installation

@@ -130,6 +128,6 @@

```javascript
import tooltip from '@10up/component-tooltip';
import Tooltip from '@10up/component-tooltip';
tooltip( () => {
new Tooltip('.tooltip', () => {
console.log( 'my awesome callback' );

@@ -142,7 +140,8 @@ } );

```html
<script src="unpkg.com/@10up/component-tooltip@2.0.0/index.umd.js"></script>
```
Include the `tooltip.js` file from the `dist/` directory and access the component from the gobal `TenUp` object.
```javascript
let myTooltip = new TenUp.tooltip( () => {
let myTooltip = new TenUp.tooltip('.tooltip', () => {
console.log( 'my awesome callback' );

@@ -159,1 +158,5 @@ } );

**Active:** 10up is actively working on this, and we expect to continue work for the foreseeable future including keeping tested up to the most recent version of WordPress. Bug reports, feature requests, questions, and pull requests are welcome.
## Like what you see?
<a href="http://10up.com/contact/"><img src="https://10up.com/uploads/2016/10/10up-Github-Banner.png" width="850" alt="Work with us at 10up"></a>

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