update the definitions for the json schema

This commit is contained in:
Jacob Overgaard
2024-02-13 11:57:17 +01:00
parent 8e1bb6d79a
commit c5c5fdf40f

View File

@@ -32,4 +32,25 @@ export interface UmbracoPackage {
* @required
*/
extensions: ManifestTypes[];
/**
* @title The importmap for the package
* @description This is used to define the imports and the scopes for the package to be used in the browser. It will be combined with the global importmap.
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script/type/importmap
*/
importmap?: {
/**
* @title The imports for the package
* @required
* @minProperties 1
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script/type/importmap#imports
*/
imports: Record<string, string>;
/**
* @title The scopes for the package
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script/type/importmap#scopes
*/
scopes?: Record<string, object>;
}
}