@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 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.0 - 2021-09-17
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.
@@ -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
- dependencyMapping?: {
346
+ dependencyMappings?: {
338
347
  [name: string]: string;
339
348
  };
340
349
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ichicraft/widgets-widget-base",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "Part of the Widget Development Kit for building widgets for Ichicraft Boards",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",