@springernature/global-dropdown
Advanced tools
Comparing version 3.0.2 to 4.0.0
@@ -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
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
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
0
37351
- Removed@springernature/global-expander@4.2.2(transitive)
- Removed@springernature/global-javascript@3.0.4(transitive)