Releases: RicLeP/laravel-storyblok
2.52.0
2.51.2
- Improved stub generation to check for Bloks in foreach loops
- Image fields can return orientation - square, landscape or portrait
Full Changelog: 2.51.0...2.51.2
2.51.1
Bump Storyblok PHP client in composer.json
Full Changelog: 2.51.0...2.51.1
2.51.0
Added fix for TipTap json using hard_break for
tags but renderer expecting hardBreak. This is a clash between TipTap versions which changed the naming conventions.
Full Changelog: 2.50.1...2.51.0
2.50.1
Emergency fix for header change in API response for multiple pages: Total -> total. Now checking for both.
Full Changelog: 2.50...2.50.1
2.46.2
Emergency fix for header change in API response for multiple pages: Total -> total. Now checking for both.
Full Changelog: 2.46.1...2.46.2
2.50.0
Allow overriding the default Field classes with your own by placing them in \App\Storyblok\Fields\Default\ClassName.php and matching the original field name. For example, to replace the standard image Field create \App\Storyblok\Fields\Default\Image.php
Full Changelog: 2.49...2.50.0
2.49.0
Fix serialisation issue when caching config, custom TipTap extensions should now be loaded in a service provider.
if (!app()->runningInConsole()) {
$this->app->booted(function () {
config([
'storyblok.tiptap.extensions' => [
new \Storyblok\Tiptap\Extension\Storyblok(),
new \Riclep\Storyblok\Support\TipTapFigure(),
]
]);
});
}Full Changelog: 2.48...2.49
2.48.0
- Allow configuration of TipTap extensions loaded into the rich-text renderer.
- Added support for wrapping images inserted in rich-text in
<figure>elements with<figcaption>from the image meta title. - Allow transformation of figure images using the Storyblok image service via package configuration
The <figure> element is not enabled by default
// config/storyblok.php
[
...
'tiptap' => [
'extensions' => [
new \Storyblok\Tiptap\Extension\Storyblok(),
new \Riclep\Storyblok\Support\TipTapFigure(), // use the figure plugin instead of the default img
],
'figure-transformation' => [
'width' => 100,
'height' => 100, // set to null to preserve ratio height when scaling
'filters' => 'filters:quality(80)', // see: https://www.storyblok.com/docs/api/image-service
]
],
...
]
Full Changelog: 2.47...2.48
2.47.0
What's Changed
- feat(richtext)!: replace richtext-resolver with php-tiptap-extension by @lantiguav in #64
New Contributors
- @lantiguav made their first contribution in #64
Full Changelog: 2.46.1...2.47