New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@flourish/info-popup

Package Overview
Dependencies
Maintainers
0
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@flourish/info-popup - npm Package Compare versions

Comparing version 7.0.2 to 8.0.0

15

package.json
{
"name": "@flourish/info-popup",
"type": "module",
"version": "7.0.2",
"version": "8.0.0",
"private": false,

@@ -9,2 +9,5 @@ "description": "Popup with data insertion",

"module": "src/index.js",
"exports": {
".": "./src/index.js"
},
"mocha": {

@@ -37,3 +40,3 @@ "recursive": true,

"uglify-js": "^3.15.4",
"@flourish/cypress": "^8.0.0"
"@flourish/cypress": "^9.0.0"
},

@@ -47,5 +50,5 @@ "dependencies": {

"d3-transition": "^1.3.2",
"@flourish/formatters": "^1.0.4",
"@flourish/popup": "^2.1.5",
"@flourish/pocket-knife": "^1.3.2"
"@flourish/formatters": "^2.0.0",
"@flourish/pocket-knife": "^2.0.0",
"@flourish/popup": "^3.0.0"
},

@@ -57,3 +60,3 @@ "repository": {

"scripts": {
"mocha": "mocha",
"mocha": "npm run build && mocha",
"lint": "eslint .",

@@ -60,0 +63,0 @@ "build": "rollup -c",

@@ -288,38 +288,3 @@ # Flourish Info Popup

## Importable tests
This module has importable tests :tada:. To run them in a template:
1. Create a new file in `cypress/integrations` called `info_popup.js`
2. Import the tests at the top of the file:
```
import { infoPopupTests } from '@flourish/info-popup/template_test'
```
3. Write a `triggerPopupClick` function that triggers the clicking of a popup e.g:
```
function triggerPopupClick({state, data}) {
// you have access to state and data but you may not need to use it
cy.get(".bubble:first-of-type").click();
}
```
4. Write a `triggerPopupMouseover` function
```
function triggerPopupMouseover({state, data}) {
// you have access to state and data but you may not need to use it
cy.get(".bubble:first-of-type").trigger("mouseover");
}
```
5. Call `infoPopupTests()` and pass it an object:
```
infoPopupTests({
triggerPopupClick,
triggerPopupMouseover,
primary_datasheet_name // optional (see below)
})
```
6. Run cypress tests as usual and these tests should run as part of the existing template cypress tests!
#### For templates with multiple datasheets
If a template has multiple datasheets you will need to pass in the name of the datasheet that the info popup binding relates to. If it is not passed in the tests will use the first datasheet in the `column_names` object.

@@ -0,1 +1,6 @@

# 8.0.0
* Switch to preferring ESM by default on recent versions of Node.js by adding an `exports` field to `package.json`.
* Run build script as part of `prepublishOnly` instead of `prepare`.
* Remove `@flourish/info-popup/template_test` export path.
# 7.0.2

@@ -2,0 +7,0 @@ * Fix bug with HTML appearing in aria label content

info-popup.js

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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