Socket
Socket
Sign inDemoInstall

@springernature/global-dropdown

Package Overview
Dependencies
Maintainers
14
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@springernature/global-dropdown - npm Package Compare versions

Comparing version 3.0.2 to 4.0.0

4

__tests__/index.spec.js

@@ -1,5 +0,5 @@

import {Expander} from '../../global-expander/js/expander';
import {Expander} from '@springernature/brand-context';
import {dropdown} from '../js';
jest.mock('../../global-expander/js/expander');
jest.mock('@springernature/brand-context');

@@ -6,0 +6,0 @@ describe('Dropdown init', () => {

# History
## 4.0.0 (2022-03-30)
* UPDATE: brand-context v20.1.1
* global-javascript and global-expander now come from brand-context
## 3.0.2 (2022-02-18)

@@ -4,0 +8,0 @@ * Remove post install step that was causing issues with CI

@@ -1,2 +0,2 @@

import {Expander} from '../../global-expander/js/expander';
import {Expander} from '@springernature/brand-context';

@@ -3,0 +3,0 @@ const DATA_COMPONENT = 'data-dropdown';

{
"name": "@springernature/global-dropdown",
"version": "3.0.2",
"version": "4.0.0",
"license": "MIT",

@@ -8,6 +8,3 @@ "description": "Display a contextual list of links controlled by a toggle",

"author": "Springer Nature",
"brandContext": "^18.0.0",
"dependencies": {
"@springernature/global-expander": "^4.0.2"
}
"brandContext": "^20.1.1"
}

@@ -46,7 +46,7 @@ # Global Dropdown

The component uses the Expander from the global toolkit to handle the events.
The component uses the Expander from the `brand-context` package to handle the events.
You can get a quick implementation by adding these two attributes `data-dropdown` and `data-dropdown-target` in your HTML as shown at the example above.
If you need more flexibility, use the expander component directly following its [documentation](https://github.com/springernature/frontend-toolkits/tree/master/toolkits/global/packages/global-expander).
If you need more flexibility, use the expander component directly following its [documentation](https://github.com/springernature/frontend-toolkits/blob/master/context/brand-context/default/js/README.md#expander).

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