All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning and the "Keep a Changelog" format.
This version introduces new functionality:
extension.dialogs.select...(options)
opens a dialog for selecting entries and assets
You can now open the native entity selection dialog window from your extension.
An options
object passed to the call allows you to configure the behavior of
search and insertion. Please see the API reference for more details.
This version introduces a breaking change:
field.setValue()
callsfield.onValueChanged()
handlers
You will need to migrate if one of your onValueChanged
handles triggers a call
to setValue()
to prevent infinite loops. In that case you should compare the
value received by the change handler to your internal representation. You should
avoid triggering an update when the values are equal.
field.validations
property.field.onSchemaErrorsChanged
signal.
- Use
dist/cf-extension-api.js
file as the module's entry point
-
Deprecate "widget" in favour of "extension"
-
contentful-widget-sdk
package on NPM is deprecated in favour ofcontentful-ui-extensions-sdk
-
Global exposed on
window
is now calledcontentfulExtension
instead ofcontentfulWidget
-
widget.json
is now calledextension.json
-
SDK assets hosted by us are now renamed as below
cf-widget-api.js
is now calledcf-extension-api.js
cf-widget-api.css
is now calledcf-extension.css
- Expose
widget.contentType
that contains name of content type used, data on all the fields in the entry, current display field and sys data. - Expose
widget.space.getPublishedEntries
andwidget.space.getPublishedAssets
. These methods also let you filter by asset/entry. - Expose
widget.field.removeValue
which can be used to remove the value for a field from the data model. - Expose
widget.field.onIsDisabledChanged
. It takes a callback which is fired when the disabled status of the field changes. - Expose
widget.field.setInvalid
. It can be used to communicate validation status of the field to the Contentful web application. - Expose
widget.field.type
- Expose
widget.entry.field[id].onIsDisabledChanged(locale, handler)
- Field focus/blur status is communicated internally to the Contentful web application for the styles to work correctly.
- Fix
widget.field.onValueChanged
firing on the client that calledfield.setValue()
.
- Ensure compatibility with Contentful Content Management App deployed at the same day.
- Fix example widgets
widget.json
ssrc
localhost urls to becontentful-widget
cli compatible.
Initial release