Skip to content
SDK

SDK 0.6.0

  • Banners carry placement (aboveHeader or belowHeader) and the paths they target. getBanners({ everyPage: true }) reads the banners for every page at once, and bannerFor(items, path, placement) in @bifrost-orbit-cms/sdk/react picks the one for a page, so a cached layout can show banners above or under its header. useLiveBanners shows the banner being edited in the editor's preview as it changes.
  • list takes include: ['fields'] to read entries without an address, such as FAQ entries, with their fields. Every listed item now has its id.
  • resolve, getPage, getGlobal and list take include: ['references'] to get the entries that Reference and References fields point at, instead of their ids. Such answers are tagged cms:references, and createRevalidateHandler refreshes them on every content change.
  • CmsLivePage and useLivePage in @bifrost-orbit-cms/sdk/react show an editor's changes in the live preview as they type, without reloading.
  • npx cms-orbit generate --include references types references as the entries they point at.
  • createMockClient answers list from entries, and fixtures.entry builds one.