Skip to content
This repository was archived by the owner on Jan 7, 2026. It is now read-only.
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
3 changes: 2 additions & 1 deletion libs/plugin-types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1231,13 +1231,14 @@ export interface Context {
/**
* Changes the current open page to given page. Requires `content:read` permission.
* @param page the page to open
* @param newWindow if true opens the page in a new window
*
* @example
* ```js
* context.openPage(page);
* ```
*/
openPage(page: Page): void;
openPage(page: Page, newWindow?: boolean): void;

/**
* Aligning will move all the selected layers to a position relative to one
Expand Down
4 changes: 2 additions & 2 deletions libs/plugins-runtime/src/lib/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,9 @@ export function createApi(
return plugin.context.createPage();
},

openPage(page: Page): void {
openPage(page: Page, newWindow?: boolean): void {
checkPermission('content:read');
plugin.context.openPage(page);
plugin.context.openPage(page, newWindow ?? true);
},

alignHorizontal(
Expand Down
Loading