SDK
SDK 0.6.0
- Banners carry
placement(aboveHeaderorbelowHeader) and thepathsthey target.getBanners({ everyPage: true })reads the banners for every page at once, andbannerFor(items, path, placement)in@bifrost-orbit-cms/sdk/reactpicks the one for a page, so a cached layout can show banners above or under its header.useLiveBannersshows the banner being edited in the editor's preview as it changes. listtakesinclude: ['fields']to read entries without an address, such as FAQ entries, with their fields. Every listed item now has itsid.resolve,getPage,getGlobalandlisttakeinclude: ['references']to get the entries that Reference and References fields point at, instead of their ids. Such answers are taggedcms:references, andcreateRevalidateHandlerrefreshes them on every content change.CmsLivePageanduseLivePagein@bifrost-orbit-cms/sdk/reactshow an editor's changes in the live preview as they type, without reloading.npx cms-orbit generate --include referencestypes references as the entries they point at.createMockClientanswerslistfromentries, andfixtures.entrybuilds one.