Skip to content

Commit c28eb36

Browse files
committed
Merge branch 'development' of https://github.com/SofiBili/docs into pr/10915
2 parents 9a8280c + 15c6792 commit c28eb36

3 files changed

Lines changed: 20 additions & 7 deletions

File tree

content/en/docs/apidocs-mxsdk/apidocs/studio-pro-11/extensibility-api/web/web-extensions-howtos/permissions.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,17 @@ url: /apidocs-mxsdk/apidocs/web-extensibility-api-11/extension-permissions/
88

99
This how-to describes how the permission system works for web extensions in Studio Pro. Permissions allow extensions to request access to sensitive APIs or data that require explicit user consent.
1010

11+
{{% alert color="info" %}}
12+
Extension permissions were introduced in version 11.9.0.
13+
{{% /alert %}}
14+
1115
## How Permissions Work
1216

13-
Web extensions can request permissions to access sensitive functionalities. The permission system follows these principles:
17+
Web extensions can request permissions to access sensitive functionality. The permission system follows these principles:
1418

15-
* **Opt-in by default** — Extensions cannot access protected APIs unless they explicitly request the permission and the user grants it
16-
* **User control**Users decide which permissions to grant through the Extensions Overview pane in Studio Pro
17-
* **Per-project settings** — Permission grants are stored per project so users can have different permission settings for the same extension across different projects
19+
* **Opt-in by default** — Extensions cannot access protected APIs unless you request persmission and the extension user grants it
20+
* **User control**You decide which permissions to grant through the Extensions Overview pane in Studio Pro
21+
* **Per-project settings** — Permission grants are stored per project, so a user’s approval for an extension applies only within that app. This gives them the flexibility to grant a permission in one project and choose different settings for the same extension in another.
1822

1923
## Requesting Permissions
2024

content/en/docs/apidocs-mxsdk/apidocs/studio-pro-11/extensibility-api/web/web-extensions-howtos/runtime-configuration-api.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ url: /apidocs-mxsdk/apidocs/web-extensibility-api-11/runtime-configuration-api/
88

99
This how-to describes how to create a simple menu that retrieves and displays the runtime constants from the active configuration in a message box.
1010

11+
{{% alert color="info" %}}
12+
Access to runtime constants using the web API was introduced in version 11.9.0.
13+
{{% /alert %}}
14+
1115
## Prerequisites
1216

1317
Before starting this how-to, make sure you have completed the following prerequisites:
@@ -80,6 +84,7 @@ The code uses the:
8084
{{% /alert %}}
8185

8286
The `getConstants()` function returns an array of constant objects, each with the following properties:
87+
8388
* `isPrivate` – a boolean indicating whether the constant value is hidden (true) or accessible (false)
8489
* `constantName` – the fully qualified name of the constant (for example, `MyModule.MyConstant`)
8590
* `value` – the constant value as a string (only present when `isPrivate` is false)
@@ -111,7 +116,7 @@ You have to set the permission to true if you want the permission to appear in t
111116

112117
When a user installs your extension, they can grant this permission through the Extensions Overview pane (**View** > **Extensions**) in Studio Pro. Once granted, private constants will be returned with `isPrivate` set to false and their value included.
113118

114-
You can read more about permissions in [Extension Permission](/apidocs-mxsdk/apidocs/web-extensibility-api-11/extension-permissions/).
119+
You can read more about permissions in [Extension Permissions in Overview Pane](/apidocs-mxsdk/apidocs/web-extensibility-api-11/extension-permissions/).
115120

116121
## Extensibility Feedback
117122

content/en/docs/apidocs-mxsdk/apidocs/studio-pro-11/extensibility-api/web/web-extensions-howtos/runtime-controller-api.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ url: /apidocs-mxsdk/apidocs/web-extensibility-api-11/runtime-controller-api/
88

99
This how-to describes how to create a simple menu that displays when the connection changed in a message box.
1010

11+
{{% alert color="info" %}}
12+
Listening for connection changes was introduced in version 11.9.0.
13+
{{% /alert %}}
14+
1115
## Prerequisites
1216

1317
Before starting this how-to, make sure you have completed the following prerequisites:
@@ -21,7 +25,7 @@ Before starting this how-to, make sure you have completed the following prerequi
2125
You can listen for runtime connection state changes to know when the app starts or stops running. To do this, follow the steps below:
2226

2327
1. Add an event listener to respond when the connection state changes.
24-
2. Replace your `src/main/index.ts` file with the following:
28+
2. Replace the content of your `src/main/index.ts` file with the following:
2529

2630
```typescript
2731
import { IComponent, getStudioProApi } from "@mendix/extensions-api";
@@ -52,7 +56,7 @@ The code uses the:
5256
{{% alert color="info" %}} The function is `async` in order for you to use `await` when executing the preview action.
5357
{{% /alert %}}
5458

55-
The `connectionChanged` event provides an object with:
59+
The `connectionChanged` event returns an object with:
5660

5761
* `isConnected` – a boolean indicating whether the runtime is currently connected (true) or disconnected (false)
5862

0 commit comments

Comments
 (0)