Skip to content

v2.0.0-alpha.26

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 21 Oct 19:14
· 98 commits to main since this release
  • Real-time co-editing for admins: another admin's saved draft appears in place, and a field you are changing offers "Use theirs / Keep mine"; visitors keep the outdated notice (937a73db, ecbd27ae, ec646400, 94908ae2, 33c11503, 7dcc4138, ff435de8, b9a31a33, 2371595e, #429)
  • A component removed by someone else is deselected, and unsaved edits to a draft published elsewhere go to a new draft (937a73db, 94908ae2, #429)
  • Breaking: admin writes send X-CWA-Client-Id, so the API's CORS allow_headers must include it; cwa.realtime.enabled: false turns co-editing off. Needs api-components-bundle 2.0.0-alpha.35 or later (_metadata.lastWrite) (#559, #560) (937a73db, #429)
  • onRemoteChange(iri, handler) tells a component when another admin's saved draft of that resource arrives, with the changed fields and an accept() (20bd455f, #429)
  • CwaUiFormInput, CwaUiFormToggle and CwaUiSelect take :model (the return of useCwaResourceModel), which shows a co-editing conflict beside the control; useCwaResourceModel also returns remoteChange (8eee851a, 7dcc4138, #429)