diff --git a/CHANGELOG.md b/CHANGELOG.md index e483e88..d441c24 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.22.0] - 2026-03-11 + +### Added + +- Add optional `sandboxPolicies` property to `ModalOpenRequestV2` model and schema + ## [1.21.1] - 2026-03-04 ### Changed @@ -30,7 +36,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Context with deploymentId for extensions only works in case the respective outlet has a target extension-assignment-id. Execute logic to retrieve deploymentId only in case respective outlet has a target. - ## [1.19.0] - 2023-09-04 ### Added diff --git a/package-lock.json b/package-lock.json index e1910a7..8f1abf5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "fsm-shell", - "version": "1.21.1", + "version": "1.22.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "fsm-shell", - "version": "1.21.1", + "version": "1.22.0", "license": "Apache-2.0", "devDependencies": { "@types/jasmine": "^3.5.12", diff --git a/package.json b/package.json index f792f92..3109df9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fsm-shell", - "version": "1.21.1", + "version": "1.22.0", "description": "client library for FSM shell", "main": "release/fsm-shell-client.js", "module": "release/fsm-shell-client.es.js", diff --git a/src/models/modal/modal-open-request.v2.model.ts b/src/models/modal/modal-open-request.v2.model.ts index 0bcc4f4..7981440 100644 --- a/src/models/modal/modal-open-request.v2.model.ts +++ b/src/models/modal/modal-open-request.v2.model.ts @@ -6,6 +6,7 @@ export interface ModalOpenRequestV2 extends DialogSettings { isScrollbarHidden?: boolean; }; data?: any; + sandboxPolicies?: string[]; } export interface DialogSettings { diff --git a/src/validation/schemas/modal/modal-open-request.v2.schema.ts b/src/validation/schemas/modal/modal-open-request.v2.schema.ts index 4a2ffce..ed5b686 100644 --- a/src/validation/schemas/modal/modal-open-request.v2.schema.ts +++ b/src/validation/schemas/modal/modal-open-request.v2.schema.ts @@ -70,5 +70,11 @@ export const modalOpenRequest_v2_schema = { data: { type: 'object', }, + sandboxPolicies: { + type: 'array', + items: { + type: 'string', + }, + }, required: ['url'], }; diff --git a/src/validation/schemas/schemas.spec.ts b/src/validation/schemas/schemas.spec.ts index 26c40e2..64efe28 100644 --- a/src/validation/schemas/schemas.spec.ts +++ b/src/validation/schemas/schemas.spec.ts @@ -75,7 +75,8 @@ export const validModalOpenRequest_v2 = { maxWidth: 'string', isScrollbarHidden: true }, - data: {} + data: {}, + sandboxPolicies: ['allow-scripts', 'allow-same-origin'] }; export const validModalCloseRequest_v1 = {}; export const validGetPermissionsRequest_v1 = { objectName: 'string', owners: ['string'] }; @@ -165,7 +166,8 @@ export const invalidModalOpenRequest_v2 = { maxWidth: 123, isScrollbarHidden: 'no' }, - data: 123 + data: 123, + sandboxPolicies: [123, 456] }; export const invalidModalCloseRequest_v1 = []; export const invalidGetPermissionsRequest_v1 = { objectName: 123, owners: 'not-array' }; @@ -434,4 +436,4 @@ describe('Schemas', () => { validateInvalidDataAgainstSchemaSupporting04and06and07(ajv07); validateInvalidDataAgainstSchemaSupportingOnly06and07(ajv07); }); -}); \ No newline at end of file +});