@umbraco-cms/backoffice 14.0.0--preview007-5b109fa3 → 14.0.0--preview007-174f9dfb
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -27,4 +27,39 @@ export interface UmbracoPackage {
|
|
|
27
27
|
* @required
|
|
28
28
|
*/
|
|
29
29
|
extensions: ManifestTypes[];
|
|
30
|
+
/**
|
|
31
|
+
* @title The importmap for the package
|
|
32
|
+
* @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.
|
|
33
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script/type/importmap
|
|
34
|
+
*/
|
|
35
|
+
importmap?: UmbracoPackageImportmap;
|
|
36
|
+
}
|
|
37
|
+
export interface UmbracoPackageImportmap {
|
|
38
|
+
/**
|
|
39
|
+
* @title A module specifier with a path for the importmap
|
|
40
|
+
* @description This is used to define the module specifiers and their respective paths for the package to be used in the browser.
|
|
41
|
+
* @examples [{
|
|
42
|
+
* "library": "./path/to/library.js",
|
|
43
|
+
* "library/*": "./path/to/library/*"
|
|
44
|
+
* }]
|
|
45
|
+
* @required
|
|
46
|
+
* @minProperties 1
|
|
47
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script/type/importmap#imports
|
|
48
|
+
*/
|
|
49
|
+
imports: UmbracoPackageImportmapValue;
|
|
50
|
+
/**
|
|
51
|
+
* @title The importmap scopes for the package
|
|
52
|
+
* @description This is used to define the scopes for the package to be used in the browser. It has to specify a path and a value that is an object with module specifiers and their respective paths.
|
|
53
|
+
* @examples [{
|
|
54
|
+
* "/path/to/library": { "library": "./path/to/some/other/library.js" }
|
|
55
|
+
* }]
|
|
56
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script/type/importmap#scopes
|
|
57
|
+
*/
|
|
58
|
+
scopes?: UmbracoPackageImportmapScopes;
|
|
59
|
+
}
|
|
60
|
+
export interface UmbracoPackageImportmapScopes {
|
|
61
|
+
[key: string]: UmbracoPackageImportmapValue;
|
|
62
|
+
}
|
|
63
|
+
export interface UmbracoPackageImportmapValue {
|
|
64
|
+
[key: string]: string;
|
|
30
65
|
}
|