@ichicraft/widgets-widget-base 1.7.0 → 1.7.1
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.
- package/README.md +1 -1
- package/lib/types/index.d.ts +10 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
9
9
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
## 1.7.
|
|
12
|
+
## 1.7.1 - 2021-09-17
|
|
13
13
|
### Changed
|
|
14
14
|
* Added `manifestVersion` property to the `WidgetManifestConfig` interface to support multiple versions of the manifest. Current version is 2 which introduced this and the `externals` property.
|
|
15
15
|
* Added `externals` property to the `WidgetManifestConfig` interface to support libraries that can be loaded separately from the widget bundle. This reduces widget bundle size and improves overal performance of Ichicraft Boards.
|
package/lib/types/index.d.ts
CHANGED
|
@@ -326,6 +326,15 @@ export interface WidgetManifestConfig {
|
|
|
326
326
|
* make the module available (i.e. global/root/window variable name like jQuery or $)
|
|
327
327
|
*/
|
|
328
328
|
globalName?: string;
|
|
329
|
+
/**
|
|
330
|
+
* Use this instead of 'path' to specify an already registered component in the
|
|
331
|
+
* scope of SPComponentLoader
|
|
332
|
+
*/
|
|
333
|
+
componentId?: string;
|
|
334
|
+
/**
|
|
335
|
+
* Use this together with 'componentId' to specify the version of the component to load
|
|
336
|
+
*/
|
|
337
|
+
version?: string;
|
|
329
338
|
/**
|
|
330
339
|
* If there are dependencies with a different name, map them here to externals
|
|
331
340
|
* that are already present under a different name.
|
|
@@ -334,7 +343,7 @@ export interface WidgetManifestConfig {
|
|
|
334
343
|
* React: react
|
|
335
344
|
* ReactDOM: 'react-dom'
|
|
336
345
|
*/
|
|
337
|
-
|
|
346
|
+
dependencyMappings?: {
|
|
338
347
|
[name: string]: string;
|
|
339
348
|
};
|
|
340
349
|
};
|
package/package.json
CHANGED