strapi-plugin-menus

A plugin for Strapi CMS to customize the structure of menus and menu items.

MIT License

Downloads
6.7K
Stars
110
Committers
5
strapi-plugin-menus - v1.6.1 Latest Release

Published by mattmilburn 9 months ago

💅🏻 Enhancements

  • Add Russian language translations.

🐛 Bug fixes

  • Fix issue where fetchClient.delete() method was called instead of fetchClient.del().
  • Add missing support for : character in URL regex.

⚙️ Chore

  • Implement useAPIErrorHandler in fetchClient responses.
strapi-plugin-menus - v1.6.0

Published by mattmilburn 11 months ago

💅🏻 Enhancements

  • Dev tools for eslint, prettier, jest, and pre-commit actions.
  • Documentation plugin support.

🐛 Bug fixes

  • Fix issue where time field values were saving incorrectly.

⚙️ Chore

  • Sync Strapi core components.
  • Bump versions for Strapi packages to use minimum version 4.13.1.
  • Bump versions for Strapi design-system packages to use minimum version 1.9.0.
  • Bump versions for node engines to >=16.0.0 <=20.x.x.
  • Bump versions for various React packages.
  • Replace request and axios usage with useFetchClient hook.
  • Install husky and lint-staged to enable pre-commit actions.
  • Add lint, format, and test scripts in package.json.
  • Minor refactoring to satisfy eslint and prettier rules.
strapi-plugin-menus - v1.5.0

Published by mattmilburn about 1 year ago

⚙️ Chore

  • Sync core components from latest Strapi version
  • Bump React dependency version to ^17.0.0 || ^18.0.0
  • Bump minimum Strapi dependencies version to 4.11.0

NOTE: If you continue to have issues with React 18 support, try using the following in your package.json:

"resolutions": {
  "react": "^18.0.0",
},
strapi-plugin-menus - Release v1.4.3

Published by mattmilburn over 1 year ago

💅🏻 Enhancements

  • Clone useLazyComponents hook from Strapi core.

🐛 Bug fixes

  • Implement useLazyComponents in FormLayout component to help render custom fields.
strapi-plugin-menus - Release v1.4.2

Published by mattmilburn over 1 year ago

🐛 Bug fixes

  • Fix useEffect in list view where there was not an implicit return value, which was crashing the app during a route change.

⚙️ Chore

  • Update sanitization method for date, datetime, and time values.
strapi-plugin-menus - Release v1.4.1

Published by mattmilburn over 1 year ago

🐛 Bug fixes

  • Fix bug with URL regex not allowing - characters in the query string.
strapi-plugin-menus - Release v1.4.0

Published by mattmilburn over 1 year ago

🐛 Bug fixes

  • Use full model UID in route definitions.
  • Create NotFound page component for router fallback.
  • Fix nested population logic to enable custom REST filters.

⚙️ Chore

  • Pin styled-components dependency to version 5.3.3 per Strapi Marketplace guidelines.
  • Bump Strapi peer dependencies to version ^4.9.0.
  • Bump Strapi design system peer dependencies to version ^1.6.6.
strapi-plugin-menus - v1.3.1

Published by mattmilburn over 1 year ago

🐛 Bug fixes

  • Fix index view pagination which was failing to define total count of entires to PaginationFooter.
strapi-plugin-menus - v1.3.0

Published by mattmilburn over 1 year ago

Upgrading to this version of the plugin requires Strapi v4.6x, which introduced reordering for hasMany relations.

💅🏻 Enhancements

  • Implement drag and drop reordering for hasMany relations.

⚙️ Chore

  • Bump peer dependencies for Strapi to v4.6.0.
  • Bump peer dependencies for Strapi design system to v1.5.0.
  • Sync core relation components with v4.6 plugin relation components.
  • Update MAINTAINING.md documentation.
strapi-plugin-menus - v1.2.2

Published by mattmilburn over 1 year ago

🐛 Bug fixes

⚙️ Chore

  • Use 2x logo image in README.
strapi-plugin-menus - v1.2.1

Published by mattmilburn almost 2 years ago

💅🏻 Enhancements

  • 🇪🇸 Spanish translations.

⚙️ Chore

  • General code cleanup.
  • Bump Strapi peer dependency version to v4.5.6.
  • Update README with note about using custom fields that rely on the useCMEditViewDataManager hook.
strapi-plugin-menus - v1.2.0

Published by mattmilburn almost 2 years ago

Strapi v4.5x introduced major changes to how the input field and state manager works for relations. The content manager no longer loads relations in the same request as the rest of the edit view data. Instead it fetches relation field values on demand or immediately after the edit view is initialized with data.

This does not represent any changes to how the data is served through the API, only how it is handled in the content manager and the menus plugin.

🐛 Bug fixes

  • Fix destructured imports for lodash and other Strapi dependencies.
  • Fix issue where useStickyPosition would not initialize the sticky position until the user scrolled.

💅🏻 Enhancements

  • Replace Select core components with RelationInput core components and adapt to the menus plugin state manager.
  • Clone relations routes and controllers from content manager to handle searching and loading relations.
  • Sanitize relation fields to use connect/disconnect format when submitting form data.
  • Prompt user before leaving the edit view with a dirty form state.
  • Create getFieldsByType util.
  • Create getRelationValue util.
  • Update logo colors for better contrast.

⚙️ Chore

  • Bump peer dependency versions for Strapi to v4.5.3.
  • Bump peer dependency versions for Strapi design system to v1.4.0.
  • Bump node engine versions to >=14.19.1 <=18.x.x.
  • Sync InputUID component with Strapi v4.5.3 InputUID component.
  • Move uid services to their own service.
strapi-plugin-menus - v1.1.0

Published by mattmilburn about 2 years ago

💅🏻 Enhancements

⚙️ Chore

  • Optimize lodash imports.
  • Change peerDependencies for Strapi to use at least version 4.4.3 to support custom fields.
strapi-plugin-menus - v1.0.3

Published by mattmilburn about 2 years ago

🐛 Bug fixes

  • Add unused or missing translations.
  • Fix description rendering in relation fields.
  • Fix Initializer invalid assignment of current prop.

💅🏻 Enhancements

  • Support translations for label, description, and placeholder props in custom fields.

⚙️ Chore

  • Add Translations section to the README.
strapi-plugin-menus - v1.0.2

Published by mattmilburn about 2 years ago

🐛 Bug fixes

  • Fix how resize handler was used to set width of fixed position element.
strapi-plugin-menus - v1.0.1

Published by mattmilburn about 2 years ago

💅🏻 Enhancements

⚙️ Chore

  • Update troubleshooting section of README.
strapi-plugin-menus - v1.0.0

Published by mattmilburn about 2 years ago

💥 Breaking Changes! 💥

Please see the Migrations Guide to keep your menus plugin up-to-date.

  • The REST API response format for the menus plugin has been completely reworked to match how Strapi returns data for other API models. (https://github.com/mattmilburn/strapi-plugin-menus/pull/36)
  • In addition to find and findOne REST methods, create, update, and delete methods are now available with the REST API.
  • Strapi's REST API params are now compatible with the menus plugin so data can be filtered and populated manually.
Package Rankings
Top 11.5% on Npmjs.org