@pptb/types 1.2.6-beta.1 → 1.2.6

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/toolboxAPI.d.ts +10 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pptb/types",
3
- "version": "1.2.6-beta.1",
3
+ "version": "1.2.6",
4
4
  "description": "Type definitions for Power Platform ToolBox APIs and validity checks for tool packages",
5
5
  "main": "index.d.ts",
6
6
  "types": "index.d.ts",
@@ -23,7 +23,7 @@
23
23
  "pptb-validate": "./bin/pptb-validate.js"
24
24
  },
25
25
  "dependencies": {
26
- "@pptb/validate": "1.0.2-beta.0"
26
+ "@pptb/validate": "1.0.2"
27
27
  },
28
28
  "files": [
29
29
  "index.d.ts",
package/toolboxAPI.d.ts CHANGED
@@ -436,6 +436,16 @@ declare namespace ToolBoxAPI {
436
436
  * @internal Used internally by the framework
437
437
  */
438
438
  getToolContext: () => Promise<ToolContext>;
439
+ /**
440
+ * Mark this tool instance as preventing closure.
441
+ * While active, closing this tool tab or quitting PPTB shows a warning dialog
442
+ * with an "Ignore & Close" override.
443
+ */
444
+ preventClose: () => Promise<boolean>;
445
+ /**
446
+ * Clear a previously set prevent-close state for this tool instance.
447
+ */
448
+ releasePreventClose: () => Promise<boolean>;
439
449
  }
440
450
 
441
451
  /**