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

react-accessible-accordion

Package Overview
Dependencies
Maintainers
4
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-accessible-accordion - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

dist/es/Accordion/accordion.js.flow

78

CHANGELOG.md

@@ -1,7 +0,22 @@

Changelog
=========
# Changelog
> All notable changes to this project are documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
> This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
## Next
## [[v2.1.0]](https://github.com/springload/react-accessible-accordion/releases/tag/v2.1.0)
### Added
* Publish flow types.
### Changed
* Update all React components to accept arbitrary HTMLDivElement props (eg. 'lang', 'role' etc).
* Upgrade all dev-dependencies except the eslint configs.
* Replace snapshot tests with explicit assertions in AccordionItemBody and AccordionItemTitle.
* Add specific assertions to tests in accordionStore.
* Minor syntax change in AccordionItemBody
## [[v2.0.0]](https://github.com/springload/react-accessible-accordion/releases/tag/v2.0.0)

@@ -15,16 +30,16 @@

- Exports `resetNextId` (https://github.com/springload/react-accessible-accordion/issues/41).
* Exports `resetNextId` (https://github.com/springload/react-accessible-accordion/issues/41).
### Fixed
- Defect where controlled components' props were overridden by React.Children.map (https://github.com/springload/react-accessible-accordion/issues/33).
- Defect where accordion crashed with unexpected `children` types (https://github.com/springload/react-accessible-accordion/issues/45).
- Defect where React Accessible Accordion's components could not be extended.
- Defect where the `children` of `Accordion` or `AccordionItem` could not be arbitrary.
- Defect where `AccordionItem` had to be a child of `Accordion` (as opposed to to an arbitrary-level descendant).
- Defect where `AccordionItemBody` and `AccordionItemTitle` had to be children of `AccordionItem` (as opposed to arbitrary-level descendants).
* Defect where controlled components' props were overridden by React.Children.map (https://github.com/springload/react-accessible-accordion/issues/33).
* Defect where accordion crashed with unexpected `children` types (https://github.com/springload/react-accessible-accordion/issues/45).
* Defect where React Accessible Accordion's components could not be extended.
* Defect where the `children` of `Accordion` or `AccordionItem` could not be arbitrary.
* Defect where `AccordionItem` had to be a child of `Accordion` (as opposed to to an arbitrary-level descendant).
* Defect where `AccordionItemBody` and `AccordionItemTitle` had to be children of `AccordionItem` (as opposed to arbitrary-level descendants).
### Removed:
- 🚨 Breaking change 🚨 `activeItems` property is no longer supported.
* 🚨 Breaking change 🚨 `activeItems` property is no longer supported.

@@ -54,8 +69,8 @@ Control at the `Accordion` level (via the `activeItems` prop) and `AccordionItem` level (via the `expanded` prop) fought against one another, and choosing which control mechanism to give preference to would have been an arbitrary decision - and whichever way we went, we would have had test cases which demonstrated unusual/unpredictable behaviour. The `activeItems` mechanism was the obvious one to remove - it was arguably the "less React-y way", and we considered it more of a convenience than a feature. Crucially though, it fought too hard against the new architecture of the library, and keeping it would have prevented us enabling lots of other new features or resolving some of the issues that our users had raised.

- Renders predictable `id` attributes.(https://github.com/springload/react-accessible-accordion/pull/29)
* Renders predictable `id` attributes.(https://github.com/springload/react-accessible-accordion/pull/29)
## [[v1.0.0]](https://github.com/springload/react-accessible-accordion/releases/tag/v1.0.0)
- Replace prop-types implementation with flow-types (https://github.com/springload/react-accessible-accordion/pull/22)
Thanks @ryami333 for the great contribution
* Replace prop-types implementation with flow-types (https://github.com/springload/react-accessible-accordion/pull/22)
Thanks @ryami333 for the great contribution

@@ -66,35 +81,34 @@ NB: This version is backward compatible. It's just bumping to 1.0 to represent maturity rather than API changes.

- Improved accessibility support (Following https://github.com/springload/react-accessible-accordion/pull/19)
- Adds possibility to programmatically open items(https://github.com/springload/react-accessible-accordion/pull/13)
Thanks @epotockiy for the contribution
- Improved accessibility status on demo page
- Documentation about accessibility for this component
* Improved accessibility support (Following https://github.com/springload/react-accessible-accordion/pull/19)
* Adds possibility to programmatically open items(https://github.com/springload/react-accessible-accordion/pull/13)
Thanks @epotockiy for the contribution
* Improved accessibility status on demo page
* Documentation about accessibility for this component
## [[v0.5.0]](https://github.com/springload/react-accessible-accordion/releases/tag/v0.5.0)
- Possibility to add a CSS class to hidden blocks (Following https://github.com/springload/react-accessible-accordion/pull/16)
- Githooks are executable (https://github.com/springload/react-accessible-accordion/pull/15)
- Bump to Node 8 / NPM 5
* Possibility to add a CSS class to hidden blocks (Following https://github.com/springload/react-accessible-accordion/pull/16)
* Githooks are executable (https://github.com/springload/react-accessible-accordion/pull/15)
* Bump to Node 8 / NPM 5
## [[v0.4.0]](https://github.com/springload/react-accessible-accordion/releases/tag/v0.4.0)
- Supports React 15.5+
* Supports React 15.5+
## [[v0.3.0]](https://github.com/springload/react-accessible-accordion/releases/tag/v0.3.0)
- No warnings when you have only one item in the accordion
* No warnings when you have only one item in the accordion
## [[v0.2.0]](https://github.com/springload/react-accessible-accordion/releases/tag/v0.2.0)
- Possibility to have extra blocks in AccordionItem
* Possibility to have extra blocks in AccordionItem
## [[v0.1.2]](https://github.com/springload/react-accessible-accordion/releases/tag/v0.1.2)
- Accordion mode / Collapse mode
- Possibility to pre expand items
- 100% coverage with unit tests
- Possibility to customise CSS.
- Clean CSS for the demo/github page.
* Accordion mode / Collapse mode
* Possibility to pre expand items
* 100% coverage with unit tests
* Possibility to customise CSS.
* Clean CSS for the demo/github page.
## [[vx.y.z]](https://github.com/springload/Quicktube.js/releases/tag/x.y.z) Template from http://keepachangelog.com/

@@ -104,3 +118,3 @@

- Something was added to the API / a new feature was introduced.
* Something was added to the API / a new feature was introduced.

@@ -107,0 +121,0 @@ ### Changed

{
"name": "react-accessible-accordion",
"version": "2.0.0",
"version": "2.1.0",
"description": "Accessible Accordion component for React",

@@ -17,3 +17,6 @@ "main": "dist/umd/index.js",

"css": "cp src/react-accessible-accordion.css dist",
"build": "NODE_ENV=production rollup -c",
"build:clean": "rm -rf dist/",
"build:rollup": "NODE_ENV=production rollup -c",
"build:flow": "flow-copy-source src dist/es -i \"**/*.spec.js\"",
"build": "npm run build:clean && npm run build:flow && npm run build:rollup",
"start": "npm run js:watch",

@@ -24,3 +27,3 @@ "start-demo": "webpack-dev-server --config ./webpack/webpack.config.demo.js",

"prettier": "prettier **/*.js --write",
"prepublish": "npm run build"
"prepublishOnly": "npm run build"
},

@@ -90,27 +93,28 @@ "repository": {

"devDependencies": {
"babel-cli": "^6.24.0",
"babel-eslint": "^8.0.1",
"babel-cli": "^6.26.0",
"babel-eslint": "^8.2.2",
"babel-loader": "^7.1.2",
"babel-preset-es2015": "^6.24.0",
"babel-preset-react": "^6.23.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-2": "^6.24.1",
"coveralls": "^3.0.0",
"css-loader": "^0.28.7",
"enzyme": "^3.2.0",
"enzyme-adapter-react-16": "^1.1.0",
"eslint": "^4.8.0",
"css-loader": "^0.28.9",
"enzyme": "^3.3.0",
"enzyme-adapter-react-16": "^1.1.1",
"eslint": "^4.18.1",
"eslint-config-airbnb": "^15.1.0",
"eslint-config-prettier": "^2.6.0",
"eslint-plugin-flowtype": "^2.36.0",
"eslint-plugin-flowtype-errors": "^3.3.2",
"eslint-config-prettier": "^2.9.0",
"eslint-plugin-flowtype": "^2.46.0",
"eslint-plugin-flowtype-errors": "^3.3.7",
"eslint-plugin-import": "^2.7.0",
"eslint-plugin-jsx-a11y": "^5.1.1",
"eslint-plugin-react": "^7.4.0",
"flow-bin": "^0.56.0",
"jest": "^21.2.1",
"prettier": "^1.7.3",
"flow-bin": "^0.66.0",
"flow-copy-source": "^1.3.0",
"jest": "^22.4.0",
"prettier": "^1.10.2",
"raf": "^3.4.0",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"react-test-renderer": "^16.0.0",
"react": "^16.2.0",
"react-dom": "^16.2.0",
"react-test-renderer": "^16.2.0",
"rollup": "^0.56.2",

@@ -122,5 +126,5 @@ "rollup-plugin-babel": "^3.0.3",

"rollup-plugin-replace": "^2.0.0",
"style-loader": "^0.18.2",
"webpack": "^3.6.0",
"webpack-dev-server": "^2.4.2"
"style-loader": "^0.20.2",
"webpack": "^3.11.0",
"webpack-dev-server": "^2.11.1"
},

@@ -127,0 +131,0 @@ "dependencies": {

@@ -7,3 +7,3 @@ [react-accessible-accordion](https://springload.github.io/react-accessible-accordion/) [![npm](https://img.shields.io/npm/v/react-accessible-accordion.svg?style=flat-square)](https://www.npmjs.com/package/react-accessible-accordion) [![Build Status](https://travis-ci.org/springload/react-accessible-accordion.svg?branch=master)](https://travis-ci.org/springload/react-accessible-accordion) [![Coverage Status](https://coveralls.io/repos/github/springload/react-accessible-accordion/badge.svg)](https://coveralls.io/github/springload/react-accessible-accordion) [![Dependency Status](https://david-dm.org/springload/react-accessible-accordion.svg?style=flat-square)](https://david-dm.org/springload/react-accessible-accordion) [![devDependency Status](https://david-dm.org/springload/react-accessible-accordion/dev-status.svg?style=flat-square)](https://david-dm.org/springload/react-accessible-accordion#info=devDependencies)

Try a demo now](https://springload.github.io/react-accessible-accordion/).
[Try a demo now](https://springload.github.io/react-accessible-accordion/).

@@ -10,0 +10,0 @@ If you like accessible components, feel free to check this other repo [react-accessible-modal](https://github.com/springload/react-accessible-modal).

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