Releases: prezly/theme-kit-js
v.5.4.2
- Normalize Sitemap base URL to always have a protocol
Full Changelog: v5.4.1...v5.4.2
v6.0.1
What's Changed
- Added Switzerland (French) and Serbia (Serbian) cultures to supported locales list
Full Changelog: v6.0.0...v6.0.1
v5.4.1
What's Changed
- Add Switzerland (French) and Serbia (Serbian) locales support
Full Changelog: v5.4.0...v5.4.1
v6.0.0
⚠️ BREAKING CHANGES
- Minimum
@prezly/sdk
version has been changed to16.0
- Story content is now fetched using the new V4 format
v4 Format Specification
With this project, we’re introducing a new format for stories: v4. It’s having the same properties/structure but accommodates story header image, title and subtitle within the content
Slate document property.
Example of a v3 story:
{
"format_version": 3,
"title": "Hello world",
"subtitle": "This is a Slate editor story",
"content": "{
version: '2.5',
children: [
{
type: 'paragraph',
children: [
{ "text": "This is the story content" }
]
}
]
}"
}
The same story is presented in v4 format as follows:
{
"format_version": 4,
"title": "Hello world",
"subtitle": "This is a Slate editor story",
"content": "{
version: "2.5",
children: [
{
type: "image-block",
file: { ... },
layout: "contained",
align: "center",
href: "",
children: [ { "text": "" } ]
},
{
type: "heading-one",
role: "title",
children: [
{ "text": "Hello world" }
]
},
{
type: "heading-two",
role: "subtitle",
children: [
{ "text": "This is a Slate editor story" }
]
},
{
type: 'paragraph',
children: [
{ "text": "This is the story content" }
]
}
]
}"
}
⚠️ Note: if a v4 story is rendered using the v3-based theme, the resulting page will have the header image, title and subtitle duplicated.
The advantage of having these as part of the content document is that we can now style title
and subtitle
same way as content text (bold, italic, underline, center-align, etc), and provide layout and sizing options for story header images.
What's Changed
- Update dependency @types/jest to v29.5.2 by @renovate in #309
- Update dependency @sentry/nextjs to v7.54.0 by @renovate in #310
- Update dependency @types/react to v18.2.8 by @renovate in #311
- Update dependency eslint to v8.42.0 by @renovate in #312
- [DEV-10948] Fetch stories in V4 format, bump SDK version by @kudlajz in #313
Full Changelog: v5.4.0...v6.0.0
v5.3.0
What's Changed
- [CARE-1572] Priotrizing the language with matching neutral code & short region over the only short region by @mohammadxali in #302
- [CARE-1572] Fix region locales incorrect routing by @mohammadxali in #301
Full Changelog: v5.2.3...v5.3.0
v5.2.3
What's Changed
- [CARE-1613] Exclude private stories in search engines by @mohammadxali in #291
Full Changelog: v5.2.2...v5.2.3
v5.2.1
v5.2.0
v5.1.0
v5.0.2
What's changed
- Show a more descriptive error message when passing an invalid code to
LocaleObject
constructor by @oleg-semyonov - Fix
localeConfig
containing invalid locale codes (likehant
) by @oleg-semyonov
Full Changelog: v5.0.0...v5.0.2