Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
1 change: 1 addition & 0 deletions src/models/modal/modal-open-request.v2.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export interface ModalOpenRequestV2 extends DialogSettings {
isScrollbarHidden?: boolean;
};
data?: any;
sandboxPolicies?: string[];
}

export interface DialogSettings {
Expand Down
6 changes: 6 additions & 0 deletions src/validation/schemas/modal/modal-open-request.v2.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,11 @@ export const modalOpenRequest_v2_schema = {
data: {
type: 'object',
},
sandboxPolicies: {
type: 'array',
items: {
type: 'string',
},
},
required: ['url'],
};
8 changes: 5 additions & 3 deletions src/validation/schemas/schemas.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'] };
Expand Down Expand Up @@ -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' };
Expand Down Expand Up @@ -434,4 +436,4 @@ describe('Schemas', () => {
validateInvalidDataAgainstSchemaSupporting04and06and07(ajv07);
validateInvalidDataAgainstSchemaSupportingOnly06and07(ajv07);
});
});
});
Loading