diff --git a/assets/app/schema.json b/assets/app/schema.json index 8912427c..0086062d 100755 --- a/assets/app/schema.json +++ b/assets/app/schema.json @@ -1453,6 +1453,9 @@ "height": { "type": ["number", "string"] }, + "transparent": { + "type": "boolean" + }, "settings": { "type": "array" }, diff --git a/lib/App/index.js b/lib/App/index.js index 83b44956..bccad239 100644 --- a/lib/App/index.js +++ b/lib/App/index.js @@ -165,12 +165,16 @@ class App { } for (const [widgetId, widget] of Object.entries(appJson.widgets)) { - if (widget.deprecated != null && semver.lt(semver.coerce(appJson.compatibility), '12.3.0')) { - throw new Error(`App widgets deprecated property require a compatibility of at least >=12.3.0. (${this._path})`); + if (widget.transparent !== undefined && semver.lt(semver.coerce(appJson.compatibility), '12.3.0')) { + throw new Error(`App widgets transparent property requires a compatibility of at least >=12.3.0. (${this._path})`); } - if (widget.devices != null && semver.lt(semver.coerce(appJson.compatibility), '12.3.0')) { - throw new Error(`App widgets devices property require a compatibility of at least >=12.3.0. (${this._path})`); + if (widget.deprecated !== undefined && semver.lt(semver.coerce(appJson.compatibility), '12.3.0')) { + throw new Error(`App widgets deprecated property requires a compatibility of at least >=12.3.0. (${this._path})`); + } + + if (widget.devices !== undefined && semver.lt(semver.coerce(appJson.compatibility), '12.3.0')) { + throw new Error(`App widgets devices property requires a compatibility of at least >=12.3.0. (${this._path})`); } // if widget.devices && widget.devices.type === 'global'