Skip to content

Releases: prezly/theme-kit-js

v.5.4.2

15 Jun 08:36
Compare
Choose a tag to compare
  • Normalize Sitemap base URL to always have a protocol

Full Changelog: v5.4.1...v5.4.2

v6.0.1

09 Jun 10:07
Compare
Choose a tag to compare

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

09 Jun 10:13
Compare
Choose a tag to compare

What's Changed

  • Add Switzerland (French) and Serbia (Serbian) locales support

Full Changelog: v5.4.0...v5.4.1

v6.0.0

06 Jun 15:05
Compare
Choose a tag to compare

⚠️ BREAKING CHANGES

  • Minimum @prezly/sdk version has been changed to 16.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

Full Changelog: v5.4.0...v6.0.0

v5.3.0

24 May 12:28
Compare
Choose a tag to compare

What's Changed

Full Changelog: v5.2.3...v5.3.0

v5.2.3

15 May 15:52
ff5fd04
Compare
Choose a tag to compare

What's Changed

Full Changelog: v5.2.2...v5.2.3

v5.2.1

15 May 09:26
Compare
Choose a tag to compare

What's Changed

Full Changelog: v5.2.0...v5.2.1

v5.2.0

05 May 15:00
Compare
Choose a tag to compare

What's Changed

  • [CARE-1535] Export shared Playwright config for themes by @oleg-semyonov in #283
  • Added isomorphic-fetch polyfill to ensure PrezlyApi class and its descendants working in all environments.

Full Changelog: v5.1.0...v5.2.0

v5.1.0

05 May 06:59
Compare
Choose a tag to compare

What's Changed

  • [CARE-1525] Use new OG Image API for sharing images by @oleg-semyonov in #278

Full Changelog: v5.0.0...v5.1.0

v5.0.2

03 May 07:51
Compare
Choose a tag to compare

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 (like hant) by @oleg-semyonov

Full Changelog: v5.0.0...v5.0.2