@pptb/types 1.2.2-beta.1 → 1.2.2

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 +1 -1
  2. package/toolboxAPI.d.ts +15 -15
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pptb/types",
3
- "version": "1.2.2-beta.1",
3
+ "version": "1.2.2",
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",
package/toolboxAPI.d.ts CHANGED
@@ -189,17 +189,21 @@ declare namespace ToolBoxAPI {
189
189
  executeParallel: <T = any>(...operations: Array<Promise<T> | (() => Promise<T>)>) => Promise<T[]>;
190
190
 
191
191
  /**
192
- * Show a loading screen in the tool's context
193
- * @param message Optional message to display (default: "Loading...")
194
- * @deprecated Use a tool-level loading pattern instead. Will be removed in a future version.
195
- */
196
- showLoading: (message?: string) => Promise<void>;
197
-
198
- /**
199
- * Hide the loading screen in the tool's context
200
- * @deprecated Use a tool-level loading pattern instead. Will be removed in a future version.
192
+ * Open a URL in the external browser associated with the tool's active connection.
193
+ *
194
+ * When the connection has a browser profile configured (e.g. a specific Chrome or
195
+ * Edge profile), the URL will be opened in that browser and profile so the user is
196
+ * already authenticated. Falls back to the system default browser when no profile
197
+ * is configured or the browser cannot be found.
198
+ *
199
+ * Only `https:` and `http:` URLs are allowed.
200
+ *
201
+ * @param url The URL to open (must use https: or http: protocol)
202
+ * @param connectionTarget Which connection's browser profile to use.
203
+ * Defaults to `"primary"`. Pass `"secondary"` for multi-connection tools that
204
+ * want to open the URL in the secondary connection's browser context.
201
205
  */
202
- hideLoading: () => Promise<void>;
206
+ openInConnectionBrowser: (url: string, connectionTarget?: "primary" | "secondary") => Promise<void>;
203
207
  }
204
208
 
205
209
  /**
@@ -475,11 +479,7 @@ declare namespace ToolBoxAPI {
475
479
  * @param prefillData Data to pre-populate the target tool's state
476
480
  * @param options Optional connection overrides for the target tool
477
481
  */
478
- launchTool: (
479
- targetToolId: string,
480
- prefillData?: Record<string, unknown>,
481
- options?: { primaryConnectionId?: string | null; secondaryConnectionId?: string | null },
482
- ) => Promise<unknown>;
482
+ launchTool: (targetToolId: string, prefillData?: Record<string, unknown>, options?: { primaryConnectionId?: string | null; secondaryConnectionId?: string | null }) => Promise<unknown>;
483
483
  }
484
484
 
485
485
  /**