Used to locate the assets for a specific widget type. Use this if the location of the JS, CSS, images, etc. is different from the location of this document.
"https://s3.amazonaws.com/acmeinc.widgets.prod"
"https://static.mateuaguilo.com"
The widget type identifier across all systems. This ID should be unique per registry.
Must be at most 255
characters long
"boilerplate"
"foo-bar"
The semantic version string for the widget. This is mainly used for change detection.
Must match regular expression:^v[0-9]+\.[0-9]+\.[0-9]+$
"v0.2.1"
"v3.0.1"
The list of files necessary to embed a widget into an HTML page. If you are building a widget type CMS integration, this should be your main integration point. A widget should be completely functional after including these files and then executing the render function.
File path relative to "directoryUrl" to embed on the page for this widget. If no "directoryUrl" is present then consider these files to be relative to the location of this document.
"js/main.js"
"assets/media.jpeg"
"1/FA/99/BF3305.chunk.js"
This is used in editorial tools to provide a friendlier alternative to "shortcode". This property should be unique per registry to avoid confusion, but it is not mandatory.
Must be at most 255
characters long
"Boilerplate"
"Foo is the Bar"
The original date when this was created.
"2021-04-28T14:15:03.750Z"
The last time this entry was modified.
"2021-04-28T14:15:03.750Z"
Used by widget developers to create reusable widget types. Allows JS widget developers to specify input data that the widget needs.
Some examples for this could include:
This uses the JSON Schema format for each one of the fields, then each CMS integration will transform that into a form that editors will use for data input. Data provided by editors will then be serialized and rendered as "data-[name-of-field]"
attributes in the wrapper div
for the widget.
Value must be strictly greater than 0
Value must be greater or equal to 0
Must contain a minimum of 1
items
All items must be unique
Each additional property must conform to the following schema
Type: object or boolean Default: trueEach additional property must conform to the following schema
Type: object or boolean Default: trueEach additional property must conform to the following schema
Type: object or boolean Default: trueEach additional property must conform to the following schema
Type: object or boolean Default: trueEach additional property must conform to the following schema
Must contain a minimum of 1
items
All items must be unique
Must contain a minimum of 1
items
All items must be unique
Denotes the status of the widget and its readiness for production.
Documentation or help for this widget. This is provided by the developer and it may be surfaced to editors in the CMS editorial forms. This field can contain HTML.
"The G2 Crowd widget pulls the data from the G2 API to display interactive information on the product specified."
A URL with more information about the widget. This is typically a link to the widget type repository or demo page. This page should contain information about the license of the software for the widget.
"https://github.com/MyOrg/js-widget-types-monorepo"
"https://codeberg.org/MyOrg/js-widget-types-monorepo"
Additional Properties of any type are allowed.
Type: object