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
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vkontakte/vk-bridge",
"version": "2.15.10",
"version": "2.15.11",
"description": "Connects a Mini App with VK client",
"license": "MIT",
"main": "dist/index.js",
Expand Down
11 changes: 10 additions & 1 deletion packages/core/src/types/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1137,6 +1137,15 @@ export type AddToCommunityRequest = {
hide_success_modal?: boolean;
};

export type OpenAppOptions = {
app_id: number;
location?: string;
/** Community ID, if app will open from community. Android, iOS only */
group_id?: number;
/** Tells the platform that the current app should be closed after opening another one from it. Android, iOS only */
close_parent?: boolean;
};

/**
* Map of types of request props of VK Bridge methods
*/
Expand All @@ -1158,7 +1167,7 @@ export type RequestPropsMap = {
VKWebAppDownloadFile: { url: string; filename: string };
VKWebAppGetAuthToken: { app_id: number; scope: PersonalAuthScope | string };
VKWebAppClose: { status: AppCloseStatus; payload?: any };
VKWebAppOpenApp: { app_id: number; location?: string };
VKWebAppOpenApp: OpenAppOptions;
VKWebAppDenyNotifications: {};
VKWebAppFlashGetInfo: {};
VKWebAppFlashSetLevel: { level: number };
Expand Down