strapi-plugin-preview-button

A plugin for Strapi CMS that adds a preview button and live view button to the content manager edit view.

MIT License

Downloads
28.9K
Stars
103
Committers
6

Bot releases are hidden (Show)

strapi-plugin-preview-button - v2.2.2 Latest Release

Published by mattmilburn 9 months ago

πŸ’…πŸ» Enhancements

  • Add Russian language translations.

βš™οΈ Chore

  • Implement useAPIErrorHandler in fetchClient responses.
strapi-plugin-preview-button - v2.2.1

Published by mattmilburn 12 months ago

πŸ› Bug fixes

  • Fix encoding method in parseUrl util.
strapi-plugin-preview-button - v2.2.0

Published by mattmilburn 12 months ago

βš™οΈ Chore

  • 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.
strapi-plugin-preview-button - v2.1.1

Published by mattmilburn about 1 year ago

πŸ› Bug fixes

  • Fix how param encoding is handled in parseUrl util.

βš™οΈ Chore

  • Update README.
strapi-plugin-preview-button - v2.1.0

Published by mattmilburn about 1 year ago

βš™οΈ Chore

  • 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-preview-button - v2.0.0

Published by mattmilburn about 1 year ago

πŸ’₯ Breaking Changes! πŸ’₯

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

πŸ’…πŸ» Enhancements

  • New draft.alwaysVisible option to ensure the preview button for draft mode is always visible.
  • The openTarget option can now be customized per model and published state.
  • Dev tools for eslint, prettier, jest, and pre-commit actions.

πŸ› Bug fixes

  • Fixed issue where modifiedData was used instead of initialData, which was using values not saved in the db.
  • Fixed issue where list view would fail to render preview buttons due to improper use of async bootstrap.
  • Remove unnecessary Initializer component.

βš™οΈ Chore

  • New logo
  • Bump peer dependency for Strapi to 4.9.0.
  • Replace request usage with useFetchClient hook.
  • Install husky and lint-staged to enable pre-commit actions.
  • Add lint, format, and test scripts in package.json.
  • Some refactoring to satisfy eslint and prettier rules.
strapi-plugin-preview-button - Release v1.1.3

Published by mattmilburn over 1 year ago

πŸ’…πŸ» Enhancements

  • Support async custom hooks.

πŸ› Bug fixes

  • Fix typo in French translations.

βš™οΈ Chore

  • Update logo design.
  • Bump license year to 2023.
strapi-plugin-preview-button - v1.1.2

Published by mattmilburn almost 2 years ago

πŸ’…πŸ» Enhancements

  • πŸ‡ͺπŸ‡Έ Spanish translations.

βš™οΈ Chore

  • General code cleanup and naming updates.
  • Bump Strapi peer dependency version to v4.5.6.
strapi-plugin-preview-button - v1.1.1

Published by mattmilburn almost 2 years ago

πŸ’…πŸ» Enhancements

  • Add plugin/preview-button/before-build-url hook too allow modifying the config options before building the preview URL.

βš™οΈ Chore

  • Add "Extending" section to the README.
strapi-plugin-preview-button - Release v1.1.0

Published by mattmilburn almost 2 years ago

βš™οΈ Chore

  • Bump peer dependencies for Strapi to v4.5.3.
  • Bump peer dependencies for Strapi design system to v1.4.0.
  • Bump node engines versions to >=14.19.1 <=18.x.x.
strapi-plugin-preview-button - v1.0.1

Published by mattmilburn almost 2 years ago

πŸ› Bug fixes

  • Fix issue where preview URL does not update after saving with new slug value.

πŸ’…πŸ» Enhancements

  • Add openTarget config option to allow opening multiple tabs instead of re-using the same tab.
  • Replace unmatched vars in URL templates with empty string instead of ignoring them.

βš™οΈ Chore

  • Add explanation of openTarget option to the README.
strapi-plugin-preview-button - v1.0.0

Published by mattmilburn about 2 years ago

πŸ’₯ Breaking Changes! πŸ’₯

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

  • Refactor how the plugin is configured for draft and published URLs.
  • Environment vars are no longer required, but can still be used.
  • New feature to map values from an entry's data into the preview URLs.
  • Refactor admin so preview URLs do not need to be queried from the API.
  • Introduce copy link button below the preview button, which can be disabled.
  • Add preview and copy buttons to content manager list view.
strapi-plugin-preview-button - v0.3.6

Published by mattmilburn about 2 years ago

πŸ› Bug fixes

strapi-plugin-preview-button - v0.3.5

Published by mattmilburn about 2 years ago

πŸ’…πŸ» Enhancements

  • Custom targetField values for draft and published props in config.
strapi-plugin-preview-button - v0.3.4

Published by mattmilburn about 2 years ago

Consider this the first official stable release for this plugin.

πŸ’…πŸ» Enhancements

  • Add Japanese translations

πŸ› Bug Fixes

  • Refactor usePreviewData hook so it executes during each render
  • Correction to French translation