@10up/component-tooltip
Advanced tools
Comparing version 1.0.1 to 2.0.0-rc.1
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
198103
7
344
159
0
192
2
2
+ Addedcore-js@^3.8.3
+ Addedcore-js@3.39.0(transitive)
- Removed@babel/polyfill@^7.2.5
- Removed@babel/polyfill@7.12.1(transitive)
- Removedcore-js@2.6.12(transitive)
- Removedregenerator-runtime@0.13.11(transitive)