@ichicraft/widgets-widget-base 1.14.1 → 1.14.3

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,6 +9,13 @@ All notable changes to this project will be documented here.
9
9
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
10
10
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
11
11
 
12
+ ## 1.14.3 - 2025-07-04
13
+ - Added `justification` string property to widget manifest to describe the reasoning behind the need for certain API permisisons
14
+
15
+ ## 1.14.2 - 2025-07-02
16
+ - Reverted `@microsoft/sp-http` dependency back to SPFx version `1.18.2` due to postponed upgrade
17
+ - Added `isOptional` boolean to widget manifest to allow marking certain API permission requests as optional
18
+
12
19
  ## 1.14.1 - 2025-06-17
13
20
  - Reverted module type 'commonjs' for backwards compatibility
14
21
 
@@ -459,16 +459,26 @@ export interface WebApiPermissionRequest {
459
459
  /**
460
460
  * Specifies the name of the API to which access has to be granted.
461
461
  * This can be something like "Microsoft Graph" or "Power BI Service" and is the same
462
- * as what's used in the package-solution file in an SPPKG package.
462
+ * as what one would use in the package-solution file in an SPPKG package.
463
463
  */
464
464
  resource: string;
465
465
  /**
466
466
  * Specifies the name of one scope claim that the resource application
467
467
  * should expect in the OAuth 2.0 access token.
468
468
  * This can be something like "User.Read.All" (for Graph) or "Report.Read.All" (for Power BI) and is the same
469
- * as what's used in the package-solution file in an SPPKG package.
469
+ * as what one would use in the package-solution file in an SPPKG package.
470
470
  */
471
471
  scope: string;
472
+ /**
473
+ * This marks an optional API permission. If true, Boards will not throw an error upon
474
+ * rendering when the permission isn't granted.
475
+ */
476
+ isOptional?: boolean;
477
+ /**
478
+ * Optional justification for the API permission request. This is used to explain why the permission is needed.
479
+ * It can be used by administrators to understand the purpose of the permission.
480
+ */
481
+ justification?: string;
472
482
  }
473
483
  /**
474
484
  * The widget manifest contains meta information about the widget
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ichicraft/widgets-widget-base",
3
- "version": "1.14.1",
3
+ "version": "1.14.3",
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",
@@ -22,7 +22,7 @@
22
22
  "requirejs": "2.3.7"
23
23
  },
24
24
  "dependencies": {
25
- "@microsoft/sp-http": "1.21.1",
25
+ "@microsoft/sp-http": "1.18.2",
26
26
  "@pnp/sp": "4.0.1"
27
27
  },
28
28
  "devDependencies": {