@ama-mfe/ng-utils 15.3.0-prerelease.9 → 15.4.0-prerelease.0
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 +4 -2
- package/fesm2022/ama-mfe-ng-utils.mjs +2334 -2429
- package/fesm2022/ama-mfe-ng-utils.mjs.map +1 -1
- package/package.json +6 -6
- package/schematics/ng-add/schema.json +0 -3
- package/types/ama-mfe-ng-utils.d.ts +1083 -1060
- package/types/ama-mfe-ng-utils.d.ts.map +1 -1
package/README.md
CHANGED
|
@@ -334,7 +334,8 @@ import {IframeEmbedComponent} from '@ama-mfe/ng-utils';
|
|
|
334
334
|
src="https://my-embedded-app.example.com"
|
|
335
335
|
moduleId="my-module-id"
|
|
336
336
|
hostApplicationId="host-app-id"
|
|
337
|
-
sandbox="allow-scripts allow-same-origin"
|
|
337
|
+
sandbox="allow-scripts allow-same-origin"
|
|
338
|
+
allow="camera; microphone" />
|
|
338
339
|
`
|
|
339
340
|
})
|
|
340
341
|
export class HostComponent {}
|
|
@@ -346,8 +347,9 @@ export class HostComponent {}
|
|
|
346
347
|
| `moduleId` | `string` | Unique identifier for the embedded module (used by the `connect` directive). |
|
|
347
348
|
| `hostApplicationId` | `string` | The host application identifier sent to the embedded module via `hostInfo`. |
|
|
348
349
|
| `sandbox` | `string` | The iframe sandbox permissions. Defaults to `'allow-scripts allow-same-origin'`. |
|
|
350
|
+
| `allow` | `string` | The iframe [Permissions Policy](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/iframe#allow) (e.g. `'camera; microphone'`). Defaults to `''` (attribute not set). |
|
|
349
351
|
|
|
350
|
-
The `sandbox`
|
|
352
|
+
The `sandbox` and `allow` attributes are set once at initialization for security reasons (runtime changes are ignored).
|
|
351
353
|
|
|
352
354
|
### Host information
|
|
353
355
|
|