Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vkontakte/vk-bridge

Package Overview
Dependencies
Maintainers
9
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vkontakte/vk-bridge - npm Package Compare versions

Comparing version 2.7.2 to 2.7.4

.github/CODEOWNERS

2

dist/browser.min.js

@@ -1,2 +0,2 @@

!function(){"use strict";var a=function(){return(a=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var p in t=arguments[o])Object.prototype.hasOwnProperty.call(t,p)&&(e[p]=t[p]);return e}).apply(this,arguments)};function d(){for(var e=0,t=0,o=arguments.length;t<o;t++)e+=arguments[t].length;var n=Array(e),p=0;for(t=0;t<o;t++)for(var r=arguments[t],i=0,a=r.length;i<a;i++,p++)n[p]=r[i];return n}function b(r,e){var n,p,i=(n={current:0,next:function(){return++this.current}},p={},{add:function(e,t){var o=null!=t?t:n.next();return p[o]=e,o},resolve:function(e,t,o){var n=p[e];n&&(o(t)?n.resolve(t):n.reject(t),p[e]=null)}});return e(function(e){if(e.detail&&e.detail.data&&"object"==typeof e.detail.data&&"request_id"in e.detail.data){var t=e.detail.data,o=t.request_id,n=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var p=0;for(n=Object.getOwnPropertySymbols(e);p<n.length;p++)t.indexOf(n[p])<0&&Object.prototype.propertyIsEnumerable.call(e,n[p])&&(o[n[p]]=e[n[p]])}return o}(t,["request_id"]);o&&i.resolve(o,n,function(e){return!("error_type"in e)})}}),function(n,p){return void 0===p&&(p={}),new Promise(function(e,t){var o=i.add({resolve:e,reject:t},p.request_id);r(n,a(a({},p),{request_id:o}))})}}var e="undefined"!=typeof window,u=Boolean(e&&window.AndroidBridge),A=Boolean(e&&window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.VKWebAppClose),l=Boolean(e&&window.ReactNativeWebView&&"function"==typeof window.ReactNativeWebView.postMessage),c=e&&!u&&!A,t=c&&/(^\?|&)vk_platform=mobile_web(&|$)/.test(location.search),W=c?"message":"VKWebAppEvent",f=d(["VKWebAppInit","VKWebAppGetCommunityAuthToken","VKWebAppAddToCommunity","VKWebAppAddToHomeScreenInfo","VKWebAppClose","VKWebAppCopyText","VKWebAppCreateHash","VKWebAppGetUserInfo","VKWebAppSetLocation","VKWebAppSendToClient","VKWebAppGetClientVersion","VKWebAppGetPhoneNumber","VKWebAppGetEmail","VKWebAppGetGroupInfo","VKWebAppGetGeodata","VKWebAppGetCommunityToken","VKWebAppGetConfig","VKWebAppGetLaunchParams","VKWebAppSetTitle","VKWebAppGetAuthToken","VKWebAppCallAPIMethod","VKWebAppJoinGroup","VKWebAppLeaveGroup","VKWebAppAllowMessagesFromGroup","VKWebAppDenyNotifications","VKWebAppAllowNotifications","VKWebAppOpenPayForm","VKWebAppOpenApp","VKWebAppShare","VKWebAppShowWallPostBox","VKWebAppScroll","VKWebAppShowOrderBox","VKWebAppShowLeaderBoardBox","VKWebAppShowInviteBox","VKWebAppShowRequestBox","VKWebAppAddToFavorites","VKWebAppShowStoryBox","VKWebAppStorageGet","VKWebAppStorageGetKeys","VKWebAppStorageSet","VKWebAppFlashGetInfo","VKWebAppSubscribeStoryApp","VKWebAppOpenWallPost","VKWebAppCheckAllowedScopes","VKWebAppCheckNativeAds","VKWebAppShowNativeAds","VKWebAppRetargetingPixel","VKWebAppConversionHit","VKWebAppShowSubscriptionBox","VKWebAppCheckSurvey","VKWebAppShowSurvey","VKWebAppScrollTop","VKWebAppScrollTopStart","VKWebAppScrollTopStop"],c&&!t?["VKWebAppResizeWindow","VKWebAppAddToMenu","VKWebAppShowInstallPushBox","VKWebAppGetFriends","VKWebAppShowCommunityWidgetPreviewBox"]:["VKWebAppShowImages"]),w=e?window.AndroidBridge:void 0,V=A?window.webkit.messageHandlers:void 0,K=c?parent:void 0;var o,n,p,r,i,s,v,S,m,h;(n=o=o||{}).REWARD="reward",n.INTERSTITIAL="interstitial",(r=p=p||{}).CAMERA="camera",r.LOCATION="location",r.PHOTO="photo",(s=i=i||{}).RU="ru",s.UK="uk",s.UA="ua",s.EN="en",s.BE="be",s.KZ="kz",s.PT="pt",s.ES="es",(S=v=v||{}).ADMIN="admin",S.EDITOR="editor",S.MEMBER="member",S.MODER="moder",S.NONE="none",(h=m=m||{}).DESKTOP_WEB="desktop_web",h.MOBILE_WEB="mobile_web",h.MOBILE_ANDROID="mobile_android",h.MOBILE_ANDROID_MESSENGER="mobile_android_messenger",h.MOBILE_IPHONE="mobile_iphone",h.MOBILE_IPHONE_MESSENGER="mobile_iphone_messenger",h.MOBILE_IPAD="mobile_ipad";var y=function(o){var r=void 0,i=[];function e(e){i.push(e)}function t(){return A||u}function n(){return c&&window.parent!==window}function p(){return t()||n()}function a(t){if(A||u)return d(i).map(function(e){return e.call(null,t)});var e=null==t?void 0:t.data;if(c&&e){if(l&&"string"==typeof e)try{e=JSON.parse(e)}catch(e){}var o=e.type,n=e.data,p=e.frameId;o&&("SetSupportedHandlers"!==o?"VKWebAppSettings"!==o?d(i).map(function(e){return e({detail:{type:o,data:n}})}):r=p:n.supportedHandlers)}}l&&/(android)/i.test(navigator.userAgent)?document.addEventListener(W,a):"undefined"!=typeof window&&"addEventListener"in window&&window.addEventListener(W,a);var s=b(function(e,t){w&&w[e]?w[e](JSON.stringify(t)):V&&V[e]&&"function"==typeof V[e].postMessage?V[e].postMessage(t):l?window.ReactNativeWebView.postMessage(JSON.stringify({handler:e,params:t})):K&&"function"==typeof K.postMessage&&K.postMessage({handler:e,params:t,type:"vk-connect",webFrameId:r,connectVersion:o},"*")},e);return{send:s,sendPromise:s,subscribe:e,unsubscribe:function(e){var t=i.indexOf(e);-1<t&&i.splice(t,1)},supports:function(e){return u?!(!w||"function"!=typeof w[e]):A?!(!V||!V[e]||"function"!=typeof V[e].postMessage):c&&-1<f.indexOf(e)},isWebView:t,isIframe:n,isEmbedded:p,isStandalone:function(){return!p()}}}("2.7.2");window.vkBridge=window.vkConnect=y}();
!function(){"use strict";var a=function(){return(a=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var p in t=arguments[o])Object.prototype.hasOwnProperty.call(t,p)&&(e[p]=t[p]);return e}).apply(this,arguments)};function d(){for(var e=0,t=0,o=arguments.length;t<o;t++)e+=arguments[t].length;var n=Array(e),p=0;for(t=0;t<o;t++)for(var r=arguments[t],i=0,a=r.length;i<a;i++,p++)n[p]=r[i];return n}function b(r,e){var n,p,i=(n={current:0,next:function(){return++this.current}},p={},{add:function(e,t){var o=null!=t?t:n.next();return p[o]=e,o},resolve:function(e,t,o){var n=p[e];n&&(o(t)?n.resolve(t):n.reject(t),p[e]=null)}});return e(function(e){if(e.detail&&e.detail.data&&"object"==typeof e.detail.data&&"request_id"in e.detail.data){var t=e.detail.data,o=t.request_id,n=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var p=0;for(n=Object.getOwnPropertySymbols(e);p<n.length;p++)t.indexOf(n[p])<0&&Object.prototype.propertyIsEnumerable.call(e,n[p])&&(o[n[p]]=e[n[p]])}return o}(t,["request_id"]);o&&i.resolve(o,n,function(e){return!("error_type"in e)})}}),function(n,p){return void 0===p&&(p={}),new Promise(function(e,t){var o=i.add({resolve:e,reject:t},p.request_id);r(n,a(a({},p),{request_id:o}))})}}var e="undefined"!=typeof window,A=Boolean(e&&window.AndroidBridge),u=Boolean(e&&window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.VKWebAppClose),l=Boolean(e&&window.ReactNativeWebView&&"function"==typeof window.ReactNativeWebView.postMessage),c=e&&!A&&!u,t=c&&/(^\?|&)vk_platform=mobile_web(&|$)/.test(location.search),W=c?"message":"VKWebAppEvent",V=d(["VKWebAppInit","VKWebAppGetCommunityAuthToken","VKWebAppAddToCommunity","VKWebAppAddToHomeScreenInfo","VKWebAppClose","VKWebAppCopyText","VKWebAppCreateHash","VKWebAppGetUserInfo","VKWebAppSetLocation","VKWebAppSendToClient","VKWebAppGetClientVersion","VKWebAppGetPhoneNumber","VKWebAppGetEmail","VKWebAppGetGroupInfo","VKWebAppGetGeodata","VKWebAppGetCommunityToken","VKWebAppGetConfig","VKWebAppGetLaunchParams","VKWebAppSetTitle","VKWebAppGetAuthToken","VKWebAppCallAPIMethod","VKWebAppJoinGroup","VKWebAppLeaveGroup","VKWebAppAllowMessagesFromGroup","VKWebAppDenyNotifications","VKWebAppAllowNotifications","VKWebAppOpenPayForm","VKWebAppOpenApp","VKWebAppShare","VKWebAppShowWallPostBox","VKWebAppScroll","VKWebAppShowOrderBox","VKWebAppShowLeaderBoardBox","VKWebAppShowInviteBox","VKWebAppShowRequestBox","VKWebAppAddToFavorites","VKWebAppShowStoryBox","VKWebAppStorageGet","VKWebAppStorageGetKeys","VKWebAppStorageSet","VKWebAppFlashGetInfo","VKWebAppSubscribeStoryApp","VKWebAppOpenWallPost","VKWebAppCheckAllowedScopes","VKWebAppCheckBannerAd","VKWebAppHideBannerAd","VKWebAppShowBannerAd","VKWebAppCheckNativeAds","VKWebAppShowNativeAds","VKWebAppRetargetingPixel","VKWebAppConversionHit","VKWebAppShowSubscriptionBox","VKWebAppCheckSurvey","VKWebAppShowSurvey","VKWebAppScrollTop","VKWebAppScrollTopStart","VKWebAppScrollTopStop","VKWebAppShowActionSheet"],c&&!t?["VKWebAppResizeWindow","VKWebAppAddToMenu","VKWebAppShowInstallPushBox","VKWebAppGetFriends","VKWebAppShowCommunityWidgetPreviewBox"]:["VKWebAppShowImages"]),f=e?window.AndroidBridge:void 0,w=u?window.webkit.messageHandlers:void 0,K=c?parent:void 0;var o,n,p,r,i,s,v,S,m,h,O,y,g,E;(n=o=o||{}).REWARD="reward",n.INTERSTITIAL="interstitial",(r=p=p||{}).RESIZE="resize",r.OVERLAY="overlay",(s=i=i||{}).TOP="top",s.BOTTOM="bottom",(S=v=v||{}).CAMERA="camera",S.LOCATION="location",S.PHOTO="photo",(h=m=m||{}).RU="ru",h.UK="uk",h.UA="ua",h.EN="en",h.BE="be",h.KZ="kz",h.PT="pt",h.ES="es",(y=O=O||{}).ADMIN="admin",y.EDITOR="editor",y.MEMBER="member",y.MODER="moder",y.NONE="none",(E=g=g||{}).DESKTOP_WEB="desktop_web",E.MOBILE_WEB="mobile_web",E.MOBILE_ANDROID="mobile_android",E.MOBILE_ANDROID_MESSENGER="mobile_android_messenger",E.MOBILE_IPHONE="mobile_iphone",E.MOBILE_IPHONE_MESSENGER="mobile_iphone_messenger",E.MOBILE_IPAD="mobile_ipad";var I=function(o){var r=void 0,i=[];function e(e){i.push(e)}function t(){return u||A}function n(){return c&&window.parent!==window}function p(){return t()||n()}function a(t){if(u||A)return d(i).map(function(e){return e.call(null,t)});var e=null==t?void 0:t.data;if(c&&e){if(l&&"string"==typeof e)try{e=JSON.parse(e)}catch(e){}var o=e.type,n=e.data,p=e.frameId;o&&("SetSupportedHandlers"!==o?"VKWebAppSettings"!==o?d(i).map(function(e){return e({detail:{type:o,data:n}})}):r=p:n.supportedHandlers)}}l&&/(android)/i.test(navigator.userAgent)?document.addEventListener(W,a):"undefined"!=typeof window&&"addEventListener"in window&&window.addEventListener(W,a);var s=b(function(e,t){f&&f[e]?f[e](JSON.stringify(t)):w&&w[e]&&"function"==typeof w[e].postMessage?w[e].postMessage(t):l?window.ReactNativeWebView.postMessage(JSON.stringify({handler:e,params:t})):K&&"function"==typeof K.postMessage&&K.postMessage({handler:e,params:t,type:"vk-connect",webFrameId:r,connectVersion:o},"*")},e);return{send:s,sendPromise:s,subscribe:e,unsubscribe:function(e){var t=i.indexOf(e);-1<t&&i.splice(t,1)},supports:function(e){return A?!(!f||"function"!=typeof f[e]):u?!(!w||!w[e]||"function"!=typeof w[e].postMessage):c&&-1<V.indexOf(e)},isWebView:t,isIframe:n,isEmbedded:p,isStandalone:function(){return!p()}}}("2.7.4");window.vkBridge=window.vkConnect=I}();
//# sourceMappingURL=browser.min.js.map

@@ -196,2 +196,5 @@ /*! *****************************************************************************

'VKWebAppCheckAllowedScopes',
'VKWebAppCheckBannerAd',
'VKWebAppHideBannerAd',
'VKWebAppShowBannerAd',
'VKWebAppCheckNativeAds',

@@ -206,3 +209,4 @@ 'VKWebAppShowNativeAds',

'VKWebAppScrollTopStart',
'VKWebAppScrollTopStop'
'VKWebAppScrollTopStop',
'VKWebAppShowActionSheet'
], (IS_DESKTOP_VK ? [

@@ -406,3 +410,3 @@ 'VKWebAppResizeWindow',

var version = "2.7.2";
var version = "2.7.4";

@@ -414,2 +418,12 @@ var EAdsFormats;

})(EAdsFormats || (EAdsFormats = {}));
var BannerAdLayoutType;
(function (BannerAdLayoutType) {
BannerAdLayoutType["RESIZE"] = "resize";
BannerAdLayoutType["OVERLAY"] = "overlay";
})(BannerAdLayoutType || (BannerAdLayoutType = {}));
var BannerAdLocation;
(function (BannerAdLocation) {
BannerAdLocation["TOP"] = "top";
BannerAdLocation["BOTTOM"] = "bottom";
})(BannerAdLocation || (BannerAdLocation = {}));
var EGrantedPermission;

@@ -498,3 +512,3 @@ (function (EGrantedPermission) {

export default bridge;
export { EAdsFormats, EGetLaunchParamsResponseGroupRole, EGetLaunchParamsResponseLanguages, EGetLaunchParamsResponsePlatforms, EGrantedPermission, applyMiddleware };
export { BannerAdLayoutType, BannerAdLocation, EAdsFormats, EGetLaunchParamsResponseGroupRole, EGetLaunchParamsResponseLanguages, EGetLaunchParamsResponsePlatforms, EGrantedPermission, applyMiddleware };
//# sourceMappingURL=index.es.js.map

@@ -1,2 +0,2 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var __assign=function(){return(__assign=Object.assign||function(e){for(var r,n=1,t=arguments.length;n<t;n++)for(var o in r=arguments[n])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e}).apply(this,arguments)};function __rest(e,r){var n={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(n[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(t=Object.getOwnPropertySymbols(e);o<t.length;o++)r.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(e,t[o])&&(n[t[o]]=e[t[o]])}return n}function __spreadArrays(){for(var e=0,r=0,n=arguments.length;r<n;r++)e+=arguments[r].length;var t=Array(e),o=0;for(r=0;r<n;r++)for(var i=arguments[r],p=0,a=i.length;p<a;p++,o++)t[o]=i[p];return t}function createCounter(){return{current:0,next:function(){return++this.current}}}function createRequestResolver(){var t=createCounter(),o={};return{add:function(e,r){var n=null!=r?r:t.next();return o[n]=e,n},resolve:function(e,r,n){var t=o[e];t&&(n(r)?t.resolve(r):t.reject(r),o[e]=null)}}}function promisifySend(i,e){var p=createRequestResolver();return e(function(e){if(e.detail&&e.detail.data&&"object"==typeof e.detail.data&&"request_id"in e.detail.data){var r=e.detail.data,n=r.request_id,t=__rest(r,["request_id"]);n&&p.resolve(n,t,function(e){return!("error_type"in e)})}}),function(t,o){return void 0===o&&(o={}),new Promise(function(e,r){var n=p.add({resolve:e,reject:r},o.request_id);i(t,__assign(__assign({},o),{request_id:n}))})}}var webSdkHandlers,IS_CLIENT_SIDE="undefined"!=typeof window,IS_ANDROID_WEBVIEW=Boolean(IS_CLIENT_SIDE&&window.AndroidBridge),IS_IOS_WEBVIEW=Boolean(IS_CLIENT_SIDE&&window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.VKWebAppClose),IS_REACT_NATIVE_WEBVIEW=Boolean(IS_CLIENT_SIDE&&window.ReactNativeWebView&&"function"==typeof window.ReactNativeWebView.postMessage),IS_WEB=IS_CLIENT_SIDE&&!IS_ANDROID_WEBVIEW&&!IS_IOS_WEBVIEW,IS_MVK=IS_WEB&&/(^\?|&)vk_platform=mobile_web(&|$)/.test(location.search),IS_DESKTOP_VK=IS_WEB&&!IS_MVK,EVENT_TYPE=IS_WEB?"message":"VKWebAppEvent",DESKTOP_METHODS=__spreadArrays(["VKWebAppInit","VKWebAppGetCommunityAuthToken","VKWebAppAddToCommunity","VKWebAppAddToHomeScreenInfo","VKWebAppClose","VKWebAppCopyText","VKWebAppCreateHash","VKWebAppGetUserInfo","VKWebAppSetLocation","VKWebAppSendToClient","VKWebAppGetClientVersion","VKWebAppGetPhoneNumber","VKWebAppGetEmail","VKWebAppGetGroupInfo","VKWebAppGetGeodata","VKWebAppGetCommunityToken","VKWebAppGetConfig","VKWebAppGetLaunchParams","VKWebAppSetTitle","VKWebAppGetAuthToken","VKWebAppCallAPIMethod","VKWebAppJoinGroup","VKWebAppLeaveGroup","VKWebAppAllowMessagesFromGroup","VKWebAppDenyNotifications","VKWebAppAllowNotifications","VKWebAppOpenPayForm","VKWebAppOpenApp","VKWebAppShare","VKWebAppShowWallPostBox","VKWebAppScroll","VKWebAppShowOrderBox","VKWebAppShowLeaderBoardBox","VKWebAppShowInviteBox","VKWebAppShowRequestBox","VKWebAppAddToFavorites","VKWebAppShowStoryBox","VKWebAppStorageGet","VKWebAppStorageGetKeys","VKWebAppStorageSet","VKWebAppFlashGetInfo","VKWebAppSubscribeStoryApp","VKWebAppOpenWallPost","VKWebAppCheckAllowedScopes","VKWebAppCheckNativeAds","VKWebAppShowNativeAds","VKWebAppRetargetingPixel","VKWebAppConversionHit","VKWebAppShowSubscriptionBox","VKWebAppCheckSurvey","VKWebAppShowSurvey","VKWebAppScrollTop","VKWebAppScrollTopStart","VKWebAppScrollTopStop"],IS_DESKTOP_VK?["VKWebAppResizeWindow","VKWebAppAddToMenu","VKWebAppShowInstallPushBox","VKWebAppGetFriends","VKWebAppShowCommunityWidgetPreviewBox"]:["VKWebAppShowImages"]),androidBridge=IS_CLIENT_SIDE?window.AndroidBridge:void 0,iosBridge=IS_IOS_WEBVIEW?window.webkit.messageHandlers:void 0,webBridge=IS_WEB?parent:void 0;function createVKBridge(n){var i=void 0,p=[];function e(e){p.push(e)}function r(){return IS_IOS_WEBVIEW||IS_ANDROID_WEBVIEW}function t(){return IS_WEB&&window.parent!==window}function o(){return r()||t()}function a(r){if(IS_IOS_WEBVIEW||IS_ANDROID_WEBVIEW)return __spreadArrays(p).map(function(e){return e.call(null,r)});var e=null==r?void 0:r.data;if(IS_WEB&&e){if(IS_REACT_NATIVE_WEBVIEW&&"string"==typeof e)try{e=JSON.parse(e)}catch(e){}var n=e.type,t=e.data,o=e.frameId;n&&("SetSupportedHandlers"!==n?"VKWebAppSettings"!==n?__spreadArrays(p).map(function(e){return e({detail:{type:n,data:t}})}):i=o:webSdkHandlers=t.supportedHandlers)}}IS_REACT_NATIVE_WEBVIEW&&/(android)/i.test(navigator.userAgent)?document.addEventListener(EVENT_TYPE,a):"undefined"!=typeof window&&"addEventListener"in window&&window.addEventListener(EVENT_TYPE,a);var s=promisifySend(function(e,r){androidBridge&&androidBridge[e]?androidBridge[e](JSON.stringify(r)):iosBridge&&iosBridge[e]&&"function"==typeof iosBridge[e].postMessage?iosBridge[e].postMessage(r):IS_REACT_NATIVE_WEBVIEW?window.ReactNativeWebView.postMessage(JSON.stringify({handler:e,params:r})):webBridge&&"function"==typeof webBridge.postMessage&&webBridge.postMessage({handler:e,params:r,type:"vk-connect",webFrameId:i,connectVersion:n},"*")},e);return{send:s,sendPromise:s,subscribe:e,unsubscribe:function(e){var r=p.indexOf(e);-1<r&&p.splice(r,1)},supports:function(e){return IS_ANDROID_WEBVIEW?!(!androidBridge||"function"!=typeof androidBridge[e]):IS_IOS_WEBVIEW?!(!iosBridge||!iosBridge[e]||"function"!=typeof iosBridge[e].postMessage):!!IS_WEB&&-1<DESKTOP_METHODS.indexOf(e)},isWebView:r,isIframe:t,isEmbedded:o,isStandalone:function(){return!o()}}}var version="2.7.2";function applyMiddleware(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.includes(void 0)||t.includes(null)?applyMiddleware.apply(void 0,t.filter(function(e){return"function"==typeof e})):function(n){if(0===t.length)return n;var e,r={subscribe:n.subscribe,send:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return n.send.apply(n,e)}};return e=t.filter(function(e){return"function"==typeof e}).map(function(e){return e(r)}).reduce(function(r,n){return function(e){return r(n(e))}})(n.send),__assign(__assign({},n),{send:e})}}!function(e){e.REWARD="reward",e.INTERSTITIAL="interstitial"}(exports.EAdsFormats||(exports.EAdsFormats={})),function(e){e.CAMERA="camera",e.LOCATION="location",e.PHOTO="photo"}(exports.EGrantedPermission||(exports.EGrantedPermission={})),function(e){e.RU="ru",e.UK="uk",e.UA="ua",e.EN="en",e.BE="be",e.KZ="kz",e.PT="pt",e.ES="es"}(exports.EGetLaunchParamsResponseLanguages||(exports.EGetLaunchParamsResponseLanguages={})),function(e){e.ADMIN="admin",e.EDITOR="editor",e.MEMBER="member",e.MODER="moder",e.NONE="none"}(exports.EGetLaunchParamsResponseGroupRole||(exports.EGetLaunchParamsResponseGroupRole={})),function(e){e.DESKTOP_WEB="desktop_web",e.MOBILE_WEB="mobile_web",e.MOBILE_ANDROID="mobile_android",e.MOBILE_ANDROID_MESSENGER="mobile_android_messenger",e.MOBILE_IPHONE="mobile_iphone",e.MOBILE_IPHONE_MESSENGER="mobile_iphone_messenger",e.MOBILE_IPAD="mobile_ipad"}(exports.EGetLaunchParamsResponsePlatforms||(exports.EGetLaunchParamsResponsePlatforms={}));var bridge=createVKBridge(version);exports.applyMiddleware=applyMiddleware,exports.default=bridge;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var __assign=function(){return(__assign=Object.assign||function(e){for(var n,r=1,t=arguments.length;r<t;r++)for(var o in n=arguments[r])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e}).apply(this,arguments)};function __rest(e,n){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(r[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(t=Object.getOwnPropertySymbols(e);o<t.length;o++)n.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(e,t[o])&&(r[t[o]]=e[t[o]])}return r}function __spreadArrays(){for(var e=0,n=0,r=arguments.length;n<r;n++)e+=arguments[n].length;var t=Array(e),o=0;for(n=0;n<r;n++)for(var i=arguments[n],p=0,a=i.length;p<a;p++,o++)t[o]=i[p];return t}function createCounter(){return{current:0,next:function(){return++this.current}}}function createRequestResolver(){var t=createCounter(),o={};return{add:function(e,n){var r=null!=n?n:t.next();return o[r]=e,r},resolve:function(e,n,r){var t=o[e];t&&(r(n)?t.resolve(n):t.reject(n),o[e]=null)}}}function promisifySend(i,e){var p=createRequestResolver();return e(function(e){if(e.detail&&e.detail.data&&"object"==typeof e.detail.data&&"request_id"in e.detail.data){var n=e.detail.data,r=n.request_id,t=__rest(n,["request_id"]);r&&p.resolve(r,t,function(e){return!("error_type"in e)})}}),function(t,o){return void 0===o&&(o={}),new Promise(function(e,n){var r=p.add({resolve:e,reject:n},o.request_id);i(t,__assign(__assign({},o),{request_id:r}))})}}var webSdkHandlers,IS_CLIENT_SIDE="undefined"!=typeof window,IS_ANDROID_WEBVIEW=Boolean(IS_CLIENT_SIDE&&window.AndroidBridge),IS_IOS_WEBVIEW=Boolean(IS_CLIENT_SIDE&&window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.VKWebAppClose),IS_REACT_NATIVE_WEBVIEW=Boolean(IS_CLIENT_SIDE&&window.ReactNativeWebView&&"function"==typeof window.ReactNativeWebView.postMessage),IS_WEB=IS_CLIENT_SIDE&&!IS_ANDROID_WEBVIEW&&!IS_IOS_WEBVIEW,IS_MVK=IS_WEB&&/(^\?|&)vk_platform=mobile_web(&|$)/.test(location.search),IS_DESKTOP_VK=IS_WEB&&!IS_MVK,EVENT_TYPE=IS_WEB?"message":"VKWebAppEvent",DESKTOP_METHODS=__spreadArrays(["VKWebAppInit","VKWebAppGetCommunityAuthToken","VKWebAppAddToCommunity","VKWebAppAddToHomeScreenInfo","VKWebAppClose","VKWebAppCopyText","VKWebAppCreateHash","VKWebAppGetUserInfo","VKWebAppSetLocation","VKWebAppSendToClient","VKWebAppGetClientVersion","VKWebAppGetPhoneNumber","VKWebAppGetEmail","VKWebAppGetGroupInfo","VKWebAppGetGeodata","VKWebAppGetCommunityToken","VKWebAppGetConfig","VKWebAppGetLaunchParams","VKWebAppSetTitle","VKWebAppGetAuthToken","VKWebAppCallAPIMethod","VKWebAppJoinGroup","VKWebAppLeaveGroup","VKWebAppAllowMessagesFromGroup","VKWebAppDenyNotifications","VKWebAppAllowNotifications","VKWebAppOpenPayForm","VKWebAppOpenApp","VKWebAppShare","VKWebAppShowWallPostBox","VKWebAppScroll","VKWebAppShowOrderBox","VKWebAppShowLeaderBoardBox","VKWebAppShowInviteBox","VKWebAppShowRequestBox","VKWebAppAddToFavorites","VKWebAppShowStoryBox","VKWebAppStorageGet","VKWebAppStorageGetKeys","VKWebAppStorageSet","VKWebAppFlashGetInfo","VKWebAppSubscribeStoryApp","VKWebAppOpenWallPost","VKWebAppCheckAllowedScopes","VKWebAppCheckBannerAd","VKWebAppHideBannerAd","VKWebAppShowBannerAd","VKWebAppCheckNativeAds","VKWebAppShowNativeAds","VKWebAppRetargetingPixel","VKWebAppConversionHit","VKWebAppShowSubscriptionBox","VKWebAppCheckSurvey","VKWebAppShowSurvey","VKWebAppScrollTop","VKWebAppScrollTopStart","VKWebAppScrollTopStop","VKWebAppShowActionSheet"],IS_DESKTOP_VK?["VKWebAppResizeWindow","VKWebAppAddToMenu","VKWebAppShowInstallPushBox","VKWebAppGetFriends","VKWebAppShowCommunityWidgetPreviewBox"]:["VKWebAppShowImages"]),androidBridge=IS_CLIENT_SIDE?window.AndroidBridge:void 0,iosBridge=IS_IOS_WEBVIEW?window.webkit.messageHandlers:void 0,webBridge=IS_WEB?parent:void 0;function createVKBridge(r){var i=void 0,p=[];function e(e){p.push(e)}function n(){return IS_IOS_WEBVIEW||IS_ANDROID_WEBVIEW}function t(){return IS_WEB&&window.parent!==window}function o(){return n()||t()}function a(n){if(IS_IOS_WEBVIEW||IS_ANDROID_WEBVIEW)return __spreadArrays(p).map(function(e){return e.call(null,n)});var e=null==n?void 0:n.data;if(IS_WEB&&e){if(IS_REACT_NATIVE_WEBVIEW&&"string"==typeof e)try{e=JSON.parse(e)}catch(e){}var r=e.type,t=e.data,o=e.frameId;r&&("SetSupportedHandlers"!==r?"VKWebAppSettings"!==r?__spreadArrays(p).map(function(e){return e({detail:{type:r,data:t}})}):i=o:webSdkHandlers=t.supportedHandlers)}}IS_REACT_NATIVE_WEBVIEW&&/(android)/i.test(navigator.userAgent)?document.addEventListener(EVENT_TYPE,a):"undefined"!=typeof window&&"addEventListener"in window&&window.addEventListener(EVENT_TYPE,a);var s=promisifySend(function(e,n){androidBridge&&androidBridge[e]?androidBridge[e](JSON.stringify(n)):iosBridge&&iosBridge[e]&&"function"==typeof iosBridge[e].postMessage?iosBridge[e].postMessage(n):IS_REACT_NATIVE_WEBVIEW?window.ReactNativeWebView.postMessage(JSON.stringify({handler:e,params:n})):webBridge&&"function"==typeof webBridge.postMessage&&webBridge.postMessage({handler:e,params:n,type:"vk-connect",webFrameId:i,connectVersion:r},"*")},e);return{send:s,sendPromise:s,subscribe:e,unsubscribe:function(e){var n=p.indexOf(e);-1<n&&p.splice(n,1)},supports:function(e){return IS_ANDROID_WEBVIEW?!(!androidBridge||"function"!=typeof androidBridge[e]):IS_IOS_WEBVIEW?!(!iosBridge||!iosBridge[e]||"function"!=typeof iosBridge[e].postMessage):!!IS_WEB&&-1<DESKTOP_METHODS.indexOf(e)},isWebView:n,isIframe:t,isEmbedded:o,isStandalone:function(){return!o()}}}var version="2.7.4";function applyMiddleware(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.includes(void 0)||t.includes(null)?applyMiddleware.apply(void 0,t.filter(function(e){return"function"==typeof e})):function(r){if(0===t.length)return r;var e,n={subscribe:r.subscribe,send:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return r.send.apply(r,e)}};return e=t.filter(function(e){return"function"==typeof e}).map(function(e){return e(n)}).reduce(function(n,r){return function(e){return n(r(e))}})(r.send),__assign(__assign({},r),{send:e})}}!function(e){e.REWARD="reward",e.INTERSTITIAL="interstitial"}(exports.EAdsFormats||(exports.EAdsFormats={})),function(e){e.RESIZE="resize",e.OVERLAY="overlay"}(exports.BannerAdLayoutType||(exports.BannerAdLayoutType={})),function(e){e.TOP="top",e.BOTTOM="bottom"}(exports.BannerAdLocation||(exports.BannerAdLocation={})),function(e){e.CAMERA="camera",e.LOCATION="location",e.PHOTO="photo"}(exports.EGrantedPermission||(exports.EGrantedPermission={})),function(e){e.RU="ru",e.UK="uk",e.UA="ua",e.EN="en",e.BE="be",e.KZ="kz",e.PT="pt",e.ES="es"}(exports.EGetLaunchParamsResponseLanguages||(exports.EGetLaunchParamsResponseLanguages={})),function(e){e.ADMIN="admin",e.EDITOR="editor",e.MEMBER="member",e.MODER="moder",e.NONE="none"}(exports.EGetLaunchParamsResponseGroupRole||(exports.EGetLaunchParamsResponseGroupRole={})),function(e){e.DESKTOP_WEB="desktop_web",e.MOBILE_WEB="mobile_web",e.MOBILE_ANDROID="mobile_android",e.MOBILE_ANDROID_MESSENGER="mobile_android_messenger",e.MOBILE_IPHONE="mobile_iphone",e.MOBILE_IPHONE_MESSENGER="mobile_iphone_messenger",e.MOBILE_IPAD="mobile_ipad"}(exports.EGetLaunchParamsResponsePlatforms||(exports.EGetLaunchParamsResponsePlatforms={}));var bridge=createVKBridge(version);exports.applyMiddleware=applyMiddleware,exports.default=bridge;
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e=e||self).vkBridge={})}(this,function(e){"use strict";var a=function(){return(a=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e}).apply(this,arguments)};function d(){for(var e=0,n=0,t=arguments.length;n<t;n++)e+=arguments[n].length;var o=Array(e),r=0;for(n=0;n<t;n++)for(var p=arguments[n],i=0,a=p.length;i<a;i++,r++)o[r]=p[i];return o}function u(p,e){var o,r,i=(o={current:0,next:function(){return++this.current}},r={},{add:function(e,n){var t=null!=n?n:o.next();return r[t]=e,t},resolve:function(e,n,t){var o=r[e];o&&(t(n)?o.resolve(n):o.reject(n),r[e]=null)}});return e(function(e){if(e.detail&&e.detail.data&&"object"==typeof e.detail.data&&"request_id"in e.detail.data){var n=e.detail.data,t=n.request_id,o=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]])}return t}(n,["request_id"]);t&&i.resolve(t,o,function(e){return!("error_type"in e)})}}),function(o,r){return void 0===r&&(r={}),new Promise(function(e,n){var t=i.add({resolve:e,reject:n},r.request_id);p(o,a(a({},r),{request_id:t}))})}}var n="undefined"!=typeof window,l=Boolean(n&&window.AndroidBridge),b=Boolean(n&&window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.VKWebAppClose),c=Boolean(n&&window.ReactNativeWebView&&"function"==typeof window.ReactNativeWebView.postMessage),f=n&&!l&&!b,t=f&&/(^\?|&)vk_platform=mobile_web(&|$)/.test(location.search),A=f?"message":"VKWebAppEvent",W=d(["VKWebAppInit","VKWebAppGetCommunityAuthToken","VKWebAppAddToCommunity","VKWebAppAddToHomeScreenInfo","VKWebAppClose","VKWebAppCopyText","VKWebAppCreateHash","VKWebAppGetUserInfo","VKWebAppSetLocation","VKWebAppSendToClient","VKWebAppGetClientVersion","VKWebAppGetPhoneNumber","VKWebAppGetEmail","VKWebAppGetGroupInfo","VKWebAppGetGeodata","VKWebAppGetCommunityToken","VKWebAppGetConfig","VKWebAppGetLaunchParams","VKWebAppSetTitle","VKWebAppGetAuthToken","VKWebAppCallAPIMethod","VKWebAppJoinGroup","VKWebAppLeaveGroup","VKWebAppAllowMessagesFromGroup","VKWebAppDenyNotifications","VKWebAppAllowNotifications","VKWebAppOpenPayForm","VKWebAppOpenApp","VKWebAppShare","VKWebAppShowWallPostBox","VKWebAppScroll","VKWebAppShowOrderBox","VKWebAppShowLeaderBoardBox","VKWebAppShowInviteBox","VKWebAppShowRequestBox","VKWebAppAddToFavorites","VKWebAppShowStoryBox","VKWebAppStorageGet","VKWebAppStorageGetKeys","VKWebAppStorageSet","VKWebAppFlashGetInfo","VKWebAppSubscribeStoryApp","VKWebAppOpenWallPost","VKWebAppCheckAllowedScopes","VKWebAppCheckNativeAds","VKWebAppShowNativeAds","VKWebAppRetargetingPixel","VKWebAppConversionHit","VKWebAppShowSubscriptionBox","VKWebAppCheckSurvey","VKWebAppShowSurvey","VKWebAppScrollTop","VKWebAppScrollTopStart","VKWebAppScrollTopStop"],f&&!t?["VKWebAppResizeWindow","VKWebAppAddToMenu","VKWebAppShowInstallPushBox","VKWebAppGetFriends","VKWebAppShowCommunityWidgetPreviewBox"]:["VKWebAppShowImages"]),V=n?window.AndroidBridge:void 0,K=b?window.webkit.messageHandlers:void 0,w=f?parent:void 0;var o,r,p,i,s;(o=e.EAdsFormats||(e.EAdsFormats={})).REWARD="reward",o.INTERSTITIAL="interstitial",(r=e.EGrantedPermission||(e.EGrantedPermission={})).CAMERA="camera",r.LOCATION="location",r.PHOTO="photo",(p=e.EGetLaunchParamsResponseLanguages||(e.EGetLaunchParamsResponseLanguages={})).RU="ru",p.UK="uk",p.UA="ua",p.EN="en",p.BE="be",p.KZ="kz",p.PT="pt",p.ES="es",(i=e.EGetLaunchParamsResponseGroupRole||(e.EGetLaunchParamsResponseGroupRole={})).ADMIN="admin",i.EDITOR="editor",i.MEMBER="member",i.MODER="moder",i.NONE="none",(s=e.EGetLaunchParamsResponsePlatforms||(e.EGetLaunchParamsResponsePlatforms={})).DESKTOP_WEB="desktop_web",s.MOBILE_WEB="mobile_web",s.MOBILE_ANDROID="mobile_android",s.MOBILE_ANDROID_MESSENGER="mobile_android_messenger",s.MOBILE_IPHONE="mobile_iphone",s.MOBILE_IPHONE_MESSENGER="mobile_iphone_messenger",s.MOBILE_IPAD="mobile_ipad";var m=function(t){var p=void 0,i=[];function e(e){i.push(e)}function n(){return b||l}function o(){return f&&window.parent!==window}function r(){return n()||o()}function a(n){if(b||l)return d(i).map(function(e){return e.call(null,n)});var e=null==n?void 0:n.data;if(f&&e){if(c&&"string"==typeof e)try{e=JSON.parse(e)}catch(e){}var t=e.type,o=e.data,r=e.frameId;t&&("SetSupportedHandlers"!==t?"VKWebAppSettings"!==t?d(i).map(function(e){return e({detail:{type:t,data:o}})}):p=r:o.supportedHandlers)}}c&&/(android)/i.test(navigator.userAgent)?document.addEventListener(A,a):"undefined"!=typeof window&&"addEventListener"in window&&window.addEventListener(A,a);var s=u(function(e,n){V&&V[e]?V[e](JSON.stringify(n)):K&&K[e]&&"function"==typeof K[e].postMessage?K[e].postMessage(n):c?window.ReactNativeWebView.postMessage(JSON.stringify({handler:e,params:n})):w&&"function"==typeof w.postMessage&&w.postMessage({handler:e,params:n,type:"vk-connect",webFrameId:p,connectVersion:t},"*")},e);return{send:s,sendPromise:s,subscribe:e,unsubscribe:function(e){var n=i.indexOf(e);-1<n&&i.splice(n,1)},supports:function(e){return l?!(!V||"function"!=typeof V[e]):b?!(!K||!K[e]||"function"!=typeof K[e].postMessage):f&&-1<W.indexOf(e)},isWebView:n,isIframe:o,isEmbedded:r,isStandalone:function(){return!r()}}}("2.7.2");e.applyMiddleware=function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.includes(void 0)||o.includes(null)?e.apply(void 0,o.filter(function(e){return"function"==typeof e})):function(t){if(0===o.length)return t;var e,n={subscribe:t.subscribe,send:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.send.apply(t,e)}};return e=o.filter(function(e){return"function"==typeof e}).map(function(e){return e(n)}).reduce(function(n,t){return function(e){return n(t(e))}})(t.send),a(a({},t),{send:e})}},e.default=m,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e=e||self).vkBridge={})}(this,function(e){"use strict";var a=function(){return(a=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e}).apply(this,arguments)};function d(){for(var e=0,n=0,t=arguments.length;n<t;n++)e+=arguments[n].length;var o=Array(e),r=0;for(n=0;n<t;n++)for(var p=arguments[n],i=0,a=p.length;i<a;i++,r++)o[r]=p[i];return o}function u(p,e){var o,r,i=(o={current:0,next:function(){return++this.current}},r={},{add:function(e,n){var t=null!=n?n:o.next();return r[t]=e,t},resolve:function(e,n,t){var o=r[e];o&&(t(n)?o.resolve(n):o.reject(n),r[e]=null)}});return e(function(e){if(e.detail&&e.detail.data&&"object"==typeof e.detail.data&&"request_id"in e.detail.data){var n=e.detail.data,t=n.request_id,o=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]])}return t}(n,["request_id"]);t&&i.resolve(t,o,function(e){return!("error_type"in e)})}}),function(o,r){return void 0===r&&(r={}),new Promise(function(e,n){var t=i.add({resolve:e,reject:n},r.request_id);p(o,a(a({},r),{request_id:t}))})}}var n="undefined"!=typeof window,b=Boolean(n&&window.AndroidBridge),l=Boolean(n&&window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.VKWebAppClose),c=Boolean(n&&window.ReactNativeWebView&&"function"==typeof window.ReactNativeWebView.postMessage),A=n&&!b&&!l,t=A&&/(^\?|&)vk_platform=mobile_web(&|$)/.test(location.search),f=A?"message":"VKWebAppEvent",W=d(["VKWebAppInit","VKWebAppGetCommunityAuthToken","VKWebAppAddToCommunity","VKWebAppAddToHomeScreenInfo","VKWebAppClose","VKWebAppCopyText","VKWebAppCreateHash","VKWebAppGetUserInfo","VKWebAppSetLocation","VKWebAppSendToClient","VKWebAppGetClientVersion","VKWebAppGetPhoneNumber","VKWebAppGetEmail","VKWebAppGetGroupInfo","VKWebAppGetGeodata","VKWebAppGetCommunityToken","VKWebAppGetConfig","VKWebAppGetLaunchParams","VKWebAppSetTitle","VKWebAppGetAuthToken","VKWebAppCallAPIMethod","VKWebAppJoinGroup","VKWebAppLeaveGroup","VKWebAppAllowMessagesFromGroup","VKWebAppDenyNotifications","VKWebAppAllowNotifications","VKWebAppOpenPayForm","VKWebAppOpenApp","VKWebAppShare","VKWebAppShowWallPostBox","VKWebAppScroll","VKWebAppShowOrderBox","VKWebAppShowLeaderBoardBox","VKWebAppShowInviteBox","VKWebAppShowRequestBox","VKWebAppAddToFavorites","VKWebAppShowStoryBox","VKWebAppStorageGet","VKWebAppStorageGetKeys","VKWebAppStorageSet","VKWebAppFlashGetInfo","VKWebAppSubscribeStoryApp","VKWebAppOpenWallPost","VKWebAppCheckAllowedScopes","VKWebAppCheckBannerAd","VKWebAppHideBannerAd","VKWebAppShowBannerAd","VKWebAppCheckNativeAds","VKWebAppShowNativeAds","VKWebAppRetargetingPixel","VKWebAppConversionHit","VKWebAppShowSubscriptionBox","VKWebAppCheckSurvey","VKWebAppShowSurvey","VKWebAppScrollTop","VKWebAppScrollTopStart","VKWebAppScrollTopStop","VKWebAppShowActionSheet"],A&&!t?["VKWebAppResizeWindow","VKWebAppAddToMenu","VKWebAppShowInstallPushBox","VKWebAppGetFriends","VKWebAppShowCommunityWidgetPreviewBox"]:["VKWebAppShowImages"]),V=n?window.AndroidBridge:void 0,K=l?window.webkit.messageHandlers:void 0,w=A?parent:void 0;var o,r,p,i,s,m,v;(o=e.EAdsFormats||(e.EAdsFormats={})).REWARD="reward",o.INTERSTITIAL="interstitial",(r=e.BannerAdLayoutType||(e.BannerAdLayoutType={})).RESIZE="resize",r.OVERLAY="overlay",(p=e.BannerAdLocation||(e.BannerAdLocation={})).TOP="top",p.BOTTOM="bottom",(i=e.EGrantedPermission||(e.EGrantedPermission={})).CAMERA="camera",i.LOCATION="location",i.PHOTO="photo",(s=e.EGetLaunchParamsResponseLanguages||(e.EGetLaunchParamsResponseLanguages={})).RU="ru",s.UK="uk",s.UA="ua",s.EN="en",s.BE="be",s.KZ="kz",s.PT="pt",s.ES="es",(m=e.EGetLaunchParamsResponseGroupRole||(e.EGetLaunchParamsResponseGroupRole={})).ADMIN="admin",m.EDITOR="editor",m.MEMBER="member",m.MODER="moder",m.NONE="none",(v=e.EGetLaunchParamsResponsePlatforms||(e.EGetLaunchParamsResponsePlatforms={})).DESKTOP_WEB="desktop_web",v.MOBILE_WEB="mobile_web",v.MOBILE_ANDROID="mobile_android",v.MOBILE_ANDROID_MESSENGER="mobile_android_messenger",v.MOBILE_IPHONE="mobile_iphone",v.MOBILE_IPHONE_MESSENGER="mobile_iphone_messenger",v.MOBILE_IPAD="mobile_ipad";var h=function(t){var p=void 0,i=[];function e(e){i.push(e)}function n(){return l||b}function o(){return A&&window.parent!==window}function r(){return n()||o()}function a(n){if(l||b)return d(i).map(function(e){return e.call(null,n)});var e=null==n?void 0:n.data;if(A&&e){if(c&&"string"==typeof e)try{e=JSON.parse(e)}catch(e){}var t=e.type,o=e.data,r=e.frameId;t&&("SetSupportedHandlers"!==t?"VKWebAppSettings"!==t?d(i).map(function(e){return e({detail:{type:t,data:o}})}):p=r:o.supportedHandlers)}}c&&/(android)/i.test(navigator.userAgent)?document.addEventListener(f,a):"undefined"!=typeof window&&"addEventListener"in window&&window.addEventListener(f,a);var s=u(function(e,n){V&&V[e]?V[e](JSON.stringify(n)):K&&K[e]&&"function"==typeof K[e].postMessage?K[e].postMessage(n):c?window.ReactNativeWebView.postMessage(JSON.stringify({handler:e,params:n})):w&&"function"==typeof w.postMessage&&w.postMessage({handler:e,params:n,type:"vk-connect",webFrameId:p,connectVersion:t},"*")},e);return{send:s,sendPromise:s,subscribe:e,unsubscribe:function(e){var n=i.indexOf(e);-1<n&&i.splice(n,1)},supports:function(e){return b?!(!V||"function"!=typeof V[e]):l?!(!K||!K[e]||"function"!=typeof K[e].postMessage):A&&-1<W.indexOf(e)},isWebView:n,isIframe:o,isEmbedded:r,isStandalone:function(){return!r()}}}("2.7.4");e.applyMiddleware=function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.includes(void 0)||o.includes(null)?e.apply(void 0,o.filter(function(e){return"function"==typeof e})):function(t){if(0===o.length)return t;var e,n={subscribe:t.subscribe,send:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.send.apply(t,e)}};return e=o.filter(function(e){return"function"==typeof e}).map(function(e){return e(n)}).reduce(function(n,t){return function(e){return n(t(e))}})(t.send),a(a({},t),{send:e})}},e.default=h,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=index.umd.js.map

@@ -9,2 +9,2 @@ import { VKBridgeSubscribeHandler, AnyRequestMethodName, RequestProps, RequestIdProp } from './types/bridge';

*/
export declare function promisifySend(sendEvent: <K extends AnyRequestMethodName>(method: K, props?: RequestProps<K> & RequestIdProp) => void, subscribe: (fn: VKBridgeSubscribeHandler) => void): <K extends "VKWebAppInit" | "VKWebAppAddToCommunity" | "VKWebAppAddToHomeScreen" | "VKWebAppAddToHomeScreenInfo" | "VKWebAppAllowMessagesFromGroup" | "VKWebAppAllowNotifications" | "OKWebAppCallAPIMethod" | "VKWebAppCallAPIMethod" | "VKWebAppCopyText" | "VKWebAppCreateHash" | "VKWebAppDownloadFile" | "VKWebAppGetAuthToken" | "VKWebAppClose" | "VKWebAppOpenApp" | "VKWebAppDenyNotifications" | "VKWebAppFlashGetInfo" | "VKWebAppFlashSetLevel" | "VKWebAppGetClientVersion" | "VKWebAppGetCommunityToken" | "VKWebAppGetConfig" | "VKWebAppGetLaunchParams" | "VKWebAppAudioPause" | "VKWebAppGetEmail" | "VKWebAppGetFriends" | "VKWebAppGetGeodata" | "VKWebAppGetGrantedPermissions" | "VKWebAppGetPersonalCard" | "VKWebAppGetPhoneNumber" | "VKWebAppGetUserInfo" | "VKWebAppJoinGroup" | "VKWebAppLeaveGroup" | "VKWebAppAddToMenu" | "VKWebAppOpenCodeReader" | "VKWebAppOpenContacts" | "VKWebAppOpenPayForm" | "VKWebAppOpenQR" | "VKWebAppResizeWindow" | "VKWebAppScroll" | "VKWebAppSendToClient" | "VKWebAppSetLocation" | "VKWebAppSetViewSettings" | "VKWebAppShare" | "VKWebAppShowCommunityWidgetPreviewBox" | "VKWebAppShowImages" | "VKWebAppShowInviteBox" | "VKWebAppShowLeaderBoardBox" | "VKWebAppShowMessageBox" | "VKWebAppShowNativeAds" | "VKWebAppCheckNativeAds" | "VKWebAppShowOrderBox" | "VKWebAppShowRequestBox" | "VKWebAppShowWallPostBox" | "VKWebAppShowSubscriptionBox" | "VKWebAppOpenWallPost" | "VKWebAppStorageGet" | "VKWebAppStorageGetKeys" | "VKWebAppStorageSet" | "VKWebAppTapticImpactOccurred" | "VKWebAppTapticNotificationOccurred" | "VKWebAppTapticSelectionChanged" | "VKWebAppAddToFavorites" | "VKWebAppSendPayload" | "VKWebAppDisableSwipeBack" | "VKWebAppEnableSwipeBack" | "VKWebAppSetSwipeSettings" | "VKWebAppShowStoryBox" | "VKWebAppAccelerometerStart" | "VKWebAppAccelerometerStop" | "VKWebAppGyroscopeStart" | "VKWebAppGyroscopeStop" | "VKWebAppDeviceMotionStart" | "VKWebAppDeviceMotionStop" | "VKWebAppSubscribeStoryApp" | "VKWebAppGetGroupInfo" | "VKWebAppLibverifyRequest" | "VKWebAppLibverifyCheck" | "VKWebAppRetargetingPixel" | "VKWebAppCheckAllowedScopes" | "VKWebAppConversionHit" | "VKWebAppCheckSurvey" | "VKWebAppShowSurvey" | "VKWebAppScrollTop" | "VKWebAppScrollTopStart" | "VKWebAppScrollTopStop">(method: K, props?: import(".").RequestPropsMap[K] & RequestIdProp) => Promise<K extends "VKWebAppInit" | "VKWebAppAddToCommunity" | "VKWebAppAddToHomeScreen" | "VKWebAppAddToHomeScreenInfo" | "VKWebAppAllowMessagesFromGroup" | "VKWebAppAllowNotifications" | "OKWebAppCallAPIMethod" | "VKWebAppCallAPIMethod" | "VKWebAppCopyText" | "VKWebAppCreateHash" | "VKWebAppDownloadFile" | "VKWebAppGetAuthToken" | "VKWebAppClose" | "VKWebAppOpenApp" | "VKWebAppDenyNotifications" | "VKWebAppFlashGetInfo" | "VKWebAppFlashSetLevel" | "VKWebAppGetClientVersion" | "VKWebAppGetCommunityToken" | "VKWebAppGetConfig" | "VKWebAppGetLaunchParams" | "VKWebAppAudioPause" | "VKWebAppGetEmail" | "VKWebAppGetFriends" | "VKWebAppGetGeodata" | "VKWebAppGetGrantedPermissions" | "VKWebAppGetPersonalCard" | "VKWebAppGetPhoneNumber" | "VKWebAppGetUserInfo" | "VKWebAppJoinGroup" | "VKWebAppLeaveGroup" | "VKWebAppAddToMenu" | "VKWebAppOpenCodeReader" | "VKWebAppOpenContacts" | "VKWebAppOpenPayForm" | "VKWebAppOpenQR" | "VKWebAppResizeWindow" | "VKWebAppScroll" | "VKWebAppSendToClient" | "VKWebAppSetLocation" | "VKWebAppSetViewSettings" | "VKWebAppShare" | "VKWebAppShowCommunityWidgetPreviewBox" | "VKWebAppShowImages" | "VKWebAppShowInviteBox" | "VKWebAppShowLeaderBoardBox" | "VKWebAppShowMessageBox" | "VKWebAppShowNativeAds" | "VKWebAppCheckNativeAds" | "VKWebAppShowOrderBox" | "VKWebAppShowRequestBox" | "VKWebAppShowWallPostBox" | "VKWebAppShowSubscriptionBox" | "VKWebAppOpenWallPost" | "VKWebAppStorageGet" | "VKWebAppStorageGetKeys" | "VKWebAppStorageSet" | "VKWebAppTapticImpactOccurred" | "VKWebAppTapticNotificationOccurred" | "VKWebAppTapticSelectionChanged" | "VKWebAppAddToFavorites" | "VKWebAppSendPayload" | "VKWebAppDisableSwipeBack" | "VKWebAppEnableSwipeBack" | "VKWebAppSetSwipeSettings" | "VKWebAppShowStoryBox" | "VKWebAppAccelerometerStart" | "VKWebAppAccelerometerStop" | "VKWebAppGyroscopeStart" | "VKWebAppGyroscopeStop" | "VKWebAppDeviceMotionStart" | "VKWebAppDeviceMotionStop" | "VKWebAppSubscribeStoryApp" | "VKWebAppGetGroupInfo" | "VKWebAppRetargetingPixel" | "VKWebAppCheckAllowedScopes" | "VKWebAppConversionHit" | "VKWebAppCheckSurvey" | "VKWebAppShowSurvey" | "VKWebAppScrollTop" | "VKWebAppScrollTopStart" | "VKWebAppScrollTopStop" | "VKWebAppAudioPaused" | "VKWebAppAudioStopped" | "VKWebAppAudioTrackChanged" | "VKWebAppAudioUnpaused" | "VKWebAppInitAds" | "VKWebAppLoadAds" | "VKWebAppUpdateConfig" | "VKWebAppUpdateInsets" | "VKWebAppViewHide" | "VKWebAppViewRestore" | "VKWebAppAccelerometerChanged" | "VKWebAppGyroscopeChanged" | "VKWebAppDeviceMotionChanged" | "VKWebAppLocationChanged" | "VKWebAppLibverifyOnConfirmed" | "VKWebAppLibverifyOnFailed" | "VKWebAppChangeFragment" ? import(".").ReceiveDataMap[K] : void>;
export declare function promisifySend(sendEvent: <K extends AnyRequestMethodName>(method: K, props?: RequestProps<K> & RequestIdProp) => void, subscribe: (fn: VKBridgeSubscribeHandler) => void): <K extends "VKWebAppInit" | "VKWebAppAddToCommunity" | "VKWebAppAddToHomeScreen" | "VKWebAppAddToHomeScreenInfo" | "VKWebAppAllowMessagesFromGroup" | "VKWebAppAllowNotifications" | "OKWebAppCallAPIMethod" | "VKWebAppCallAPIMethod" | "VKWebAppCopyText" | "VKWebAppCreateHash" | "VKWebAppDownloadFile" | "VKWebAppGetAuthToken" | "VKWebAppClose" | "VKWebAppOpenApp" | "VKWebAppDenyNotifications" | "VKWebAppFlashGetInfo" | "VKWebAppFlashSetLevel" | "VKWebAppGetClientVersion" | "VKWebAppGetCommunityToken" | "VKWebAppGetConfig" | "VKWebAppGetLaunchParams" | "VKWebAppAudioPause" | "VKWebAppGetEmail" | "VKWebAppGetFriends" | "VKWebAppGetGeodata" | "VKWebAppGetGrantedPermissions" | "VKWebAppGetPersonalCard" | "VKWebAppGetPhoneNumber" | "VKWebAppGetUserInfo" | "VKWebAppJoinGroup" | "VKWebAppLeaveGroup" | "VKWebAppAddToMenu" | "VKWebAppOpenCodeReader" | "VKWebAppOpenContacts" | "VKWebAppOpenPayForm" | "VKWebAppOpenQR" | "VKWebAppResizeWindow" | "VKWebAppScroll" | "VKWebAppSendToClient" | "VKWebAppSetLocation" | "VKWebAppSetViewSettings" | "VKWebAppShare" | "VKWebAppShowCommunityWidgetPreviewBox" | "VKWebAppShowImages" | "VKWebAppShowInviteBox" | "VKWebAppShowLeaderBoardBox" | "VKWebAppShowMessageBox" | "VKWebAppCheckBannerAd" | "VKWebAppHideBannerAd" | "VKWebAppShowBannerAd" | "VKWebAppShowNativeAds" | "VKWebAppCheckNativeAds" | "VKWebAppShowOrderBox" | "VKWebAppShowRequestBox" | "VKWebAppShowWallPostBox" | "VKWebAppShowSubscriptionBox" | "VKWebAppOpenWallPost" | "VKWebAppStorageGet" | "VKWebAppStorageGetKeys" | "VKWebAppStorageSet" | "VKWebAppTapticImpactOccurred" | "VKWebAppTapticNotificationOccurred" | "VKWebAppTapticSelectionChanged" | "VKWebAppAddToFavorites" | "VKWebAppSendPayload" | "VKWebAppDisableSwipeBack" | "VKWebAppEnableSwipeBack" | "VKWebAppSetSwipeSettings" | "VKWebAppShowStoryBox" | "VKWebAppAccelerometerStart" | "VKWebAppAccelerometerStop" | "VKWebAppGyroscopeStart" | "VKWebAppGyroscopeStop" | "VKWebAppDeviceMotionStart" | "VKWebAppDeviceMotionStop" | "VKWebAppSubscribeStoryApp" | "VKWebAppGetGroupInfo" | "VKWebAppLibverifyRequest" | "VKWebAppLibverifyCheck" | "VKWebAppRetargetingPixel" | "VKWebAppCheckAllowedScopes" | "VKWebAppConversionHit" | "VKWebAppCheckSurvey" | "VKWebAppShowSurvey" | "VKWebAppScrollTop" | "VKWebAppScrollTopStart" | "VKWebAppScrollTopStop" | "VKWebAppShowActionSheet">(method: K, props?: import(".").RequestPropsMap[K] & RequestIdProp) => Promise<K extends "VKWebAppInit" | "VKWebAppAddToCommunity" | "VKWebAppAddToHomeScreen" | "VKWebAppAddToHomeScreenInfo" | "VKWebAppAllowMessagesFromGroup" | "VKWebAppAllowNotifications" | "OKWebAppCallAPIMethod" | "VKWebAppCallAPIMethod" | "VKWebAppCopyText" | "VKWebAppCreateHash" | "VKWebAppDownloadFile" | "VKWebAppGetAuthToken" | "VKWebAppClose" | "VKWebAppOpenApp" | "VKWebAppDenyNotifications" | "VKWebAppFlashGetInfo" | "VKWebAppFlashSetLevel" | "VKWebAppGetClientVersion" | "VKWebAppGetCommunityToken" | "VKWebAppGetConfig" | "VKWebAppGetLaunchParams" | "VKWebAppAudioPause" | "VKWebAppGetEmail" | "VKWebAppGetFriends" | "VKWebAppGetGeodata" | "VKWebAppGetGrantedPermissions" | "VKWebAppGetPersonalCard" | "VKWebAppGetPhoneNumber" | "VKWebAppGetUserInfo" | "VKWebAppJoinGroup" | "VKWebAppLeaveGroup" | "VKWebAppAddToMenu" | "VKWebAppOpenCodeReader" | "VKWebAppOpenContacts" | "VKWebAppOpenPayForm" | "VKWebAppOpenQR" | "VKWebAppResizeWindow" | "VKWebAppScroll" | "VKWebAppSendToClient" | "VKWebAppSetLocation" | "VKWebAppSetViewSettings" | "VKWebAppShare" | "VKWebAppShowCommunityWidgetPreviewBox" | "VKWebAppShowImages" | "VKWebAppShowInviteBox" | "VKWebAppShowLeaderBoardBox" | "VKWebAppShowMessageBox" | "VKWebAppCheckBannerAd" | "VKWebAppHideBannerAd" | "VKWebAppShowBannerAd" | "VKWebAppShowNativeAds" | "VKWebAppCheckNativeAds" | "VKWebAppShowOrderBox" | "VKWebAppShowRequestBox" | "VKWebAppShowWallPostBox" | "VKWebAppShowSubscriptionBox" | "VKWebAppOpenWallPost" | "VKWebAppStorageGet" | "VKWebAppStorageGetKeys" | "VKWebAppStorageSet" | "VKWebAppTapticImpactOccurred" | "VKWebAppTapticNotificationOccurred" | "VKWebAppTapticSelectionChanged" | "VKWebAppAddToFavorites" | "VKWebAppSendPayload" | "VKWebAppDisableSwipeBack" | "VKWebAppEnableSwipeBack" | "VKWebAppSetSwipeSettings" | "VKWebAppShowStoryBox" | "VKWebAppAccelerometerStart" | "VKWebAppAccelerometerStop" | "VKWebAppGyroscopeStart" | "VKWebAppGyroscopeStop" | "VKWebAppDeviceMotionStart" | "VKWebAppDeviceMotionStop" | "VKWebAppSubscribeStoryApp" | "VKWebAppGetGroupInfo" | "VKWebAppRetargetingPixel" | "VKWebAppCheckAllowedScopes" | "VKWebAppConversionHit" | "VKWebAppCheckSurvey" | "VKWebAppShowSurvey" | "VKWebAppScrollTop" | "VKWebAppScrollTopStart" | "VKWebAppScrollTopStop" | "VKWebAppShowActionSheet" | "VKWebAppAudioPaused" | "VKWebAppAudioStopped" | "VKWebAppAudioTrackChanged" | "VKWebAppAudioUnpaused" | "VKWebAppInitAds" | "VKWebAppLoadAds" | "VKWebAppUpdateConfig" | "VKWebAppUpdateInsets" | "VKWebAppViewHide" | "VKWebAppViewRestore" | "VKWebAppAccelerometerChanged" | "VKWebAppGyroscopeChanged" | "VKWebAppDeviceMotionChanged" | "VKWebAppLocationChanged" | "VKWebAppLibverifyOnConfirmed" | "VKWebAppLibverifyOnFailed" | "VKWebAppChangeFragment" ? import(".").ReceiveDataMap[K] : void>;

@@ -77,3 +77,3 @@ /** Type of the Personal Card */

/** User's timezone */
timezone: number;
timezone?: number;
};

@@ -340,2 +340,15 @@ /**

};
export declare enum BannerAdLayoutType {
RESIZE = "resize",
OVERLAY = "overlay"
}
export declare enum BannerAdLocation {
TOP = "top",
BOTTOM = "bottom"
}
export declare type ShowBannerAdRequest = {
banner_location: BannerAdLocation;
layout_type?: BannerAdLayoutType;
can_close?: boolean;
};
export declare type OrderRequestOptions = {

@@ -709,2 +722,32 @@ /** Always `item` */

};
/**
* Params of VKWebAppShowActionSheet method
*/
export declare type ShowActionSheetOptions = {
/** Array of onboarding slides */
slides?: ActionSheetSlide[];
};
declare type ActionSheetSlide = {
media: ActionSheetSlideMedia;
title: string;
subtitle: string;
};
declare type ActionSheetSlideMedia = ({
/** Content url */
url: string;
} | {
/** Base64 string with BLOB */
blob: string;
}) & {
/** Media type */
type: 'image' | 'gif' | 'video';
};
export declare type ShowActionSheetResponse = {
result: true;
} & ({
action: 'confirm' | 'cancel';
} | {
action: 'reject';
slide_index: number;
});
export declare enum EGrantedPermission {

@@ -778,2 +821,11 @@ CAMERA = "camera",

};
export declare type VKWebAppShowBannerAdResponse = {
result: boolean;
banner_width: number;
banner_height: number;
banner_location: BannerAdLocation;
layout_type: BannerAdLayoutType;
};
export declare type VKWebAppCheckBannerAdResponse = VKWebAppShowBannerAdResponse;
export declare type VKWebAppHideBannerAdResponse = VKWebAppShowBannerAdResponse;
export declare type VKWebAppShowOrderBoxResponse = {

@@ -904,2 +956,5 @@ status: OrderBoxShowingStatus;

VKWebAppShowMessageBox: MessageRequestOptions;
VKWebAppCheckBannerAd: {};
VKWebAppHideBannerAd: {};
VKWebAppShowBannerAd: ShowBannerAdRequest;
VKWebAppShowNativeAds: ShowNativeAdsRequest;

@@ -972,2 +1027,3 @@ VKWebAppCheckNativeAds: CheckNativeAdsRequest;

VKWebAppScrollTopStop: {};
VKWebAppShowActionSheet: ShowActionSheetOptions;
};

@@ -1105,2 +1161,5 @@ /**

};
VKWebAppCheckBannerAd: VKWebAppCheckBannerAdResponse;
VKWebAppHideBannerAd: VKWebAppHideBannerAdResponse;
VKWebAppShowBannerAd: VKWebAppShowBannerAdResponse;
VKWebAppShowNativeAds: {

@@ -1263,2 +1322,3 @@ result: true;

};
VKWebAppShowActionSheet: ShowActionSheetResponse;
};

@@ -1272,3 +1332,3 @@ declare type EventReceiveNames<T extends keyof RequestPropsMap, R extends string, F extends string> = Record<T, {

*/
export declare type ReceiveEventMap = EventReceiveNames<'VKWebAppInit', 'VKWebAppInitResult', 'VKWebAppInitFailed'> & EventReceiveNames<'VKWebAppAddToCommunity', 'VKWebAppAddToCommunityResult', 'VKWebAppAddToCommunityFailed'> & EventReceiveNames<'VKWebAppAddToHomeScreen', 'VKWebAppAddToHomeScreenResult', 'VKWebAppAddToHomeScreenFailed'> & EventReceiveNames<'VKWebAppAddToHomeScreenInfo', 'VKWebAppAddToHomeScreenInfoResult', 'VKWebAppAddToHomeScreenInfoFailed'> & EventReceiveNames<'VKWebAppAllowMessagesFromGroup', 'VKWebAppAllowMessagesFromGroupResult', 'VKWebAppAllowMessagesFromGroupFailed'> & EventReceiveNames<'VKWebAppAllowNotifications', 'VKWebAppAllowNotificationsResult', 'VKWebAppAllowNotificationsFailed'> & EventReceiveNames<'OKWebAppCallAPIMethod', 'OKWebAppCallAPIMethodResult', 'OKWebAppCallAPIMethodFailed'> & EventReceiveNames<'VKWebAppCallAPIMethod', 'VKWebAppCallAPIMethodResult', 'VKWebAppCallAPIMethodFailed'> & EventReceiveNames<'VKWebAppCopyText', 'VKWebAppCopyTextResult', 'VKWebAppCopyTextFailed'> & EventReceiveNames<'VKWebAppCreateHash', 'VKWebAppCreateHashResult', 'VKWebAppCreateHashFailed'> & EventReceiveNames<'VKWebAppDownloadFile', 'VKWebAppDownloadFileResult', 'VKWebAppDownloadFileFailed'> & EventReceiveNames<'VKWebAppGetAuthToken', 'VKWebAppAccessTokenReceived', 'VKWebAppAccessTokenFailed'> & EventReceiveNames<'VKWebAppClose', 'VKWebAppCloseResult', 'VKWebAppCloseFailed'> & EventReceiveNames<'VKWebAppOpenApp', 'VKWebAppOpenAppResult', 'VKWebAppOpenAppFailed'> & EventReceiveNames<'VKWebAppDenyNotifications', 'VKWebAppDenyNotificationsResult', 'VKWebAppDenyNotificationsFailed'> & EventReceiveNames<'VKWebAppFlashGetInfo', 'VKWebAppFlashGetInfoResult', 'VKWebAppFlashGetInfoFailed'> & EventReceiveNames<'VKWebAppFlashSetLevel', 'VKWebAppFlashSetLevelResult', 'VKWebAppFlashSetLevelFailed'> & EventReceiveNames<'VKWebAppGetClientVersion', 'VKWebAppGetClientVersionResult', 'VKWebAppGetClientVersionFailed'> & EventReceiveNames<'VKWebAppGetCommunityToken', 'VKWebAppGetCommunityTokenResult', 'VKWebAppGetCommunityTokenFailed'> & EventReceiveNames<'VKWebAppGetConfig', 'VKWebAppGetConfigResult', 'VKWebAppGetConfigFailed'> & EventReceiveNames<'VKWebAppGetLaunchParams', 'VKWebAppGetLaunchParamsResult', 'VKWebAppGetLaunchParamsFailed'> & EventReceiveNames<'VKWebAppAudioPause', 'VKWebAppAudioPauseResult', 'VKWebAppAudioPauseFailed'> & EventReceiveNames<'VKWebAppGetEmail', 'VKWebAppGetEmailResult', 'VKWebAppGetEmailFailed'> & EventReceiveNames<'VKWebAppGetFriends', 'VKWebAppGetFriendsResult', 'VKWebAppGetFriendsFailed'> & EventReceiveNames<'VKWebAppGetGeodata', 'VKWebAppGetGeodataResult', 'VKWebAppGetGeodataFailed'> & EventReceiveNames<'VKWebAppGetGrantedPermissions', 'VKWebAppGetGrantedPermissionsResult', 'VKWebAppGetGrantedPermissionsFailed'> & EventReceiveNames<'VKWebAppGetPersonalCard', 'VKWebAppGetPersonalCardResult', 'VKWebAppGetPersonalCardFailed'> & EventReceiveNames<'VKWebAppGetPhoneNumber', 'VKWebAppGetPhoneNumberResult', 'VKWebAppGetPhoneNumberFailed'> & EventReceiveNames<'VKWebAppGetUserInfo', 'VKWebAppGetUserInfoResult', 'VKWebAppGetUserInfoFailed'> & EventReceiveNames<'VKWebAppJoinGroup', 'VKWebAppJoinGroupResult', 'VKWebAppJoinGroupFailed'> & EventReceiveNames<'VKWebAppLeaveGroup', 'VKWebAppLeaveGroupResult', 'VKWebAppLeaveGroupFailed'> & EventReceiveNames<'VKWebAppAddToMenu', 'VKWebAppAddToMenuResult', 'VKWebAppAddToMenuFailed'> & EventReceiveNames<'VKWebAppOpenCodeReader', 'VKWebAppOpenCodeReaderResult', 'VKWebAppOpenCodeReaderFailed'> & EventReceiveNames<'VKWebAppOpenContacts', 'VKWebAppOpenContactsResult', 'VKWebAppOpenContactsFailed'> & EventReceiveNames<'VKWebAppOpenPayForm', 'VKWebAppOpenPayFormResult', 'VKWebAppOpenPayFormFailed'> & EventReceiveNames<'VKWebAppOpenQR', 'VKWebAppOpenQRResult', 'VKWebAppOpenQRFailed'> & EventReceiveNames<'VKWebAppResizeWindow', 'VKWebAppResizeWindowResult', 'VKWebAppResizeWindowFailed'> & EventReceiveNames<'VKWebAppScroll', 'VKWebAppScrollResult', 'VKWebAppScrollFailed'> & EventReceiveNames<'VKWebAppSendToClient', 'VKWebAppSendToClientResult', 'VKWebAppSendToClientFailed'> & EventReceiveNames<'VKWebAppSetLocation', 'VKWebAppSetLocationResult', 'VKWebAppSetLocationFailed'> & EventReceiveNames<'VKWebAppSetViewSettings', 'VKWebAppSetViewSettingsResult', 'VKWebAppSetViewSettingsFailed'> & EventReceiveNames<'VKWebAppShare', 'VKWebAppShareResult', 'VKWebAppShareFailed'> & EventReceiveNames<'VKWebAppShowCommunityWidgetPreviewBox', 'VKWebAppShowCommunityWidgetPreviewBoxResult', 'VKWebAppShowCommunityWidgetPreviewBoxFailed'> & EventReceiveNames<'VKWebAppShowImages', 'VKWebAppShowImagesResult', 'VKWebAppShowImagesFailed'> & EventReceiveNames<'VKWebAppShowInviteBox', 'VKWebAppShowInviteBoxResult', 'VKWebAppShowInviteBoxFailed'> & EventReceiveNames<'VKWebAppShowLeaderBoardBox', 'VKWebAppShowLeaderBoardBoxResult', 'VKWebAppShowLeaderBoardBoxFailed'> & EventReceiveNames<'VKWebAppShowMessageBox', 'VKWebAppShowMessageBoxResult', 'VKWebAppShowMessageBoxFailed'> & EventReceiveNames<'VKWebAppShowNativeAds', 'VKWebAppShowNativeAdsResult', 'VKWebAppShowNativeAdsFailed'> & EventReceiveNames<'VKWebAppCheckNativeAds', 'VKWebAppCheckNativeAdsResult', 'VKWebAppCheckNativeAdsFailed'> & EventReceiveNames<'VKWebAppShowOrderBox', 'VKWebAppShowOrderBoxResult', 'VKWebAppShowOrderBoxFailed'> & EventReceiveNames<'VKWebAppShowRequestBox', 'VKWebAppShowRequestBoxResult', 'VKWebAppShowRequestBoxFailed'> & EventReceiveNames<'VKWebAppShowWallPostBox', 'VKWebAppShowWallPostBoxResult', 'VKWebAppShowWallPostBoxFailed'> & EventReceiveNames<'VKWebAppShowSubscriptionBox', 'VKWebAppShowSubscriptionBoxResult', 'VKWebAppShowSubscriptionBoxFailed'> & EventReceiveNames<'VKWebAppOpenWallPost', 'VKWebAppOpenWallPostResult', 'VKWebAppOpenWallPostFailed'> & EventReceiveNames<'VKWebAppStorageGet', 'VKWebAppStorageGetResult', 'VKWebAppStorageGetFailed'> & EventReceiveNames<'VKWebAppStorageGetKeys', 'VKWebAppStorageGetKeysResult', 'VKWebAppStorageGetKeysFailed'> & EventReceiveNames<'VKWebAppStorageSet', 'VKWebAppStorageSetResult', 'VKWebAppStorageSetFailed'> & EventReceiveNames<'VKWebAppTapticImpactOccurred', 'VKWebAppTapticImpactOccurredResult', 'VKWebAppTapticImpactOccurredFailed'> & EventReceiveNames<'VKWebAppTapticNotificationOccurred', 'VKWebAppTapticNotificationOccurredResult', 'VKWebAppTapticNotificationOccurredFailed'> & EventReceiveNames<'VKWebAppTapticSelectionChanged', 'VKWebAppTapticSelectionChangedResult', 'VKWebAppTapticSelectionChangedFailed'> & EventReceiveNames<'VKWebAppAddToFavorites', 'VKWebAppAddToFavoritesResult', 'VKWebAppAddToFavoritesFailed'> & EventReceiveNames<'VKWebAppSendPayload', 'VKWebAppSendPayloadResult', 'VKWebAppSendPayloadFailed'> & EventReceiveNames<'VKWebAppDisableSwipeBack', 'VKWebAppDisableSwipeBackResult', 'VKWebAppDisableSwipeBackFailed'> & EventReceiveNames<'VKWebAppEnableSwipeBack', 'VKWebAppEnableSwipeBackResult', 'VKWebAppEnableSwipeBackFailed'> & EventReceiveNames<'VKWebAppSetSwipeSettings', 'VKWebAppSetSwipeSettingsResult', 'VKWebAppSetSwipeSettingsFailed'> & EventReceiveNames<'VKWebAppShowStoryBox', 'VKWebAppShowStoryBoxResult', 'VKWebAppShowStoryBoxFailed'> & EventReceiveNames<'VKWebAppAccelerometerStart', 'VKWebAppAccelerometerStartResult', 'VKWebAppAccelerometerStartFailed'> & EventReceiveNames<'VKWebAppAccelerometerStop', 'VKWebAppAccelerometerStopResult', 'VKWebAppAccelerometerStopFailed'> & EventReceiveNames<'VKWebAppGyroscopeStart', 'VKWebAppGyroscopeStartResult', 'VKWebAppGyroscopeStartFailed'> & EventReceiveNames<'VKWebAppGyroscopeStop', 'VKWebAppGyroscopeStopResult', 'VKWebAppGyroscopeStopFailed'> & EventReceiveNames<'VKWebAppDeviceMotionStart', 'VKWebAppDeviceMotionStartResult', 'VKWebAppDeviceMotionStartFailed'> & EventReceiveNames<'VKWebAppDeviceMotionStop', 'VKWebAppDeviceMotionStopResult', 'VKWebAppDeviceMotionStopFailed'> & EventReceiveNames<'VKWebAppSubscribeStoryApp', 'VKWebAppSubscribeStoryAppResult', 'VKWebAppSubscribeStoryAppFailed'> & EventReceiveNames<'VKWebAppGetGroupInfo', 'VKWebAppGetGroupInfoResult', 'VKWebAppGetGroupInfoFailed'> & EventReceiveNames<'VKWebAppRetargetingPixel', 'VKWebAppRetargetingPixelResult', 'VKWebAppRetargetingPixelFailed'> & EventReceiveNames<'VKWebAppCheckAllowedScopes', 'VKWebAppCheckAllowedScopesResult', 'VKWebAppCheckAllowedScopesFailed'> & EventReceiveNames<'VKWebAppCheckSurvey', 'VKWebAppCheckSurveyResult', 'VKWebAppCheckSurveyFailed'> & EventReceiveNames<'VKWebAppShowSurvey', 'VKWebAppShowSurveyResult', 'VKWebAppShowSurveyFailed'> & EventReceiveNames<'VKWebAppConversionHit', 'VKWebAppConversionHitResult', 'VKWebAppConversionHitFailed'> & EventReceiveNames<'VKWebAppScrollTop', 'VKWebAppScrollTopResult', 'VKWebAppScrollTopFailed'> & EventReceiveNames<'VKWebAppScrollTopStart', 'VKWebAppScrollTopStartResult', 'VKWebAppScrollTopStop'> & EventReceiveNames<'VKWebAppScrollTopStop', 'VKWebAppScrollTopStopResult', 'VKWebAppScrollTopStopFailed'>;
export declare type ReceiveEventMap = EventReceiveNames<'VKWebAppInit', 'VKWebAppInitResult', 'VKWebAppInitFailed'> & EventReceiveNames<'VKWebAppAddToCommunity', 'VKWebAppAddToCommunityResult', 'VKWebAppAddToCommunityFailed'> & EventReceiveNames<'VKWebAppAddToHomeScreen', 'VKWebAppAddToHomeScreenResult', 'VKWebAppAddToHomeScreenFailed'> & EventReceiveNames<'VKWebAppAddToHomeScreenInfo', 'VKWebAppAddToHomeScreenInfoResult', 'VKWebAppAddToHomeScreenInfoFailed'> & EventReceiveNames<'VKWebAppAllowMessagesFromGroup', 'VKWebAppAllowMessagesFromGroupResult', 'VKWebAppAllowMessagesFromGroupFailed'> & EventReceiveNames<'VKWebAppAllowNotifications', 'VKWebAppAllowNotificationsResult', 'VKWebAppAllowNotificationsFailed'> & EventReceiveNames<'OKWebAppCallAPIMethod', 'OKWebAppCallAPIMethodResult', 'OKWebAppCallAPIMethodFailed'> & EventReceiveNames<'VKWebAppCallAPIMethod', 'VKWebAppCallAPIMethodResult', 'VKWebAppCallAPIMethodFailed'> & EventReceiveNames<'VKWebAppCopyText', 'VKWebAppCopyTextResult', 'VKWebAppCopyTextFailed'> & EventReceiveNames<'VKWebAppCreateHash', 'VKWebAppCreateHashResult', 'VKWebAppCreateHashFailed'> & EventReceiveNames<'VKWebAppDownloadFile', 'VKWebAppDownloadFileResult', 'VKWebAppDownloadFileFailed'> & EventReceiveNames<'VKWebAppGetAuthToken', 'VKWebAppAccessTokenReceived', 'VKWebAppAccessTokenFailed'> & EventReceiveNames<'VKWebAppClose', 'VKWebAppCloseResult', 'VKWebAppCloseFailed'> & EventReceiveNames<'VKWebAppOpenApp', 'VKWebAppOpenAppResult', 'VKWebAppOpenAppFailed'> & EventReceiveNames<'VKWebAppDenyNotifications', 'VKWebAppDenyNotificationsResult', 'VKWebAppDenyNotificationsFailed'> & EventReceiveNames<'VKWebAppFlashGetInfo', 'VKWebAppFlashGetInfoResult', 'VKWebAppFlashGetInfoFailed'> & EventReceiveNames<'VKWebAppFlashSetLevel', 'VKWebAppFlashSetLevelResult', 'VKWebAppFlashSetLevelFailed'> & EventReceiveNames<'VKWebAppGetClientVersion', 'VKWebAppGetClientVersionResult', 'VKWebAppGetClientVersionFailed'> & EventReceiveNames<'VKWebAppGetCommunityToken', 'VKWebAppGetCommunityTokenResult', 'VKWebAppGetCommunityTokenFailed'> & EventReceiveNames<'VKWebAppGetConfig', 'VKWebAppGetConfigResult', 'VKWebAppGetConfigFailed'> & EventReceiveNames<'VKWebAppGetLaunchParams', 'VKWebAppGetLaunchParamsResult', 'VKWebAppGetLaunchParamsFailed'> & EventReceiveNames<'VKWebAppAudioPause', 'VKWebAppAudioPauseResult', 'VKWebAppAudioPauseFailed'> & EventReceiveNames<'VKWebAppGetEmail', 'VKWebAppGetEmailResult', 'VKWebAppGetEmailFailed'> & EventReceiveNames<'VKWebAppGetFriends', 'VKWebAppGetFriendsResult', 'VKWebAppGetFriendsFailed'> & EventReceiveNames<'VKWebAppGetGeodata', 'VKWebAppGetGeodataResult', 'VKWebAppGetGeodataFailed'> & EventReceiveNames<'VKWebAppGetGrantedPermissions', 'VKWebAppGetGrantedPermissionsResult', 'VKWebAppGetGrantedPermissionsFailed'> & EventReceiveNames<'VKWebAppGetPersonalCard', 'VKWebAppGetPersonalCardResult', 'VKWebAppGetPersonalCardFailed'> & EventReceiveNames<'VKWebAppGetPhoneNumber', 'VKWebAppGetPhoneNumberResult', 'VKWebAppGetPhoneNumberFailed'> & EventReceiveNames<'VKWebAppGetUserInfo', 'VKWebAppGetUserInfoResult', 'VKWebAppGetUserInfoFailed'> & EventReceiveNames<'VKWebAppJoinGroup', 'VKWebAppJoinGroupResult', 'VKWebAppJoinGroupFailed'> & EventReceiveNames<'VKWebAppLeaveGroup', 'VKWebAppLeaveGroupResult', 'VKWebAppLeaveGroupFailed'> & EventReceiveNames<'VKWebAppAddToMenu', 'VKWebAppAddToMenuResult', 'VKWebAppAddToMenuFailed'> & EventReceiveNames<'VKWebAppOpenCodeReader', 'VKWebAppOpenCodeReaderResult', 'VKWebAppOpenCodeReaderFailed'> & EventReceiveNames<'VKWebAppOpenContacts', 'VKWebAppOpenContactsResult', 'VKWebAppOpenContactsFailed'> & EventReceiveNames<'VKWebAppOpenPayForm', 'VKWebAppOpenPayFormResult', 'VKWebAppOpenPayFormFailed'> & EventReceiveNames<'VKWebAppOpenQR', 'VKWebAppOpenQRResult', 'VKWebAppOpenQRFailed'> & EventReceiveNames<'VKWebAppResizeWindow', 'VKWebAppResizeWindowResult', 'VKWebAppResizeWindowFailed'> & EventReceiveNames<'VKWebAppScroll', 'VKWebAppScrollResult', 'VKWebAppScrollFailed'> & EventReceiveNames<'VKWebAppSendToClient', 'VKWebAppSendToClientResult', 'VKWebAppSendToClientFailed'> & EventReceiveNames<'VKWebAppSetLocation', 'VKWebAppSetLocationResult', 'VKWebAppSetLocationFailed'> & EventReceiveNames<'VKWebAppSetViewSettings', 'VKWebAppSetViewSettingsResult', 'VKWebAppSetViewSettingsFailed'> & EventReceiveNames<'VKWebAppShare', 'VKWebAppShareResult', 'VKWebAppShareFailed'> & EventReceiveNames<'VKWebAppShowCommunityWidgetPreviewBox', 'VKWebAppShowCommunityWidgetPreviewBoxResult', 'VKWebAppShowCommunityWidgetPreviewBoxFailed'> & EventReceiveNames<'VKWebAppShowImages', 'VKWebAppShowImagesResult', 'VKWebAppShowImagesFailed'> & EventReceiveNames<'VKWebAppShowInviteBox', 'VKWebAppShowInviteBoxResult', 'VKWebAppShowInviteBoxFailed'> & EventReceiveNames<'VKWebAppShowLeaderBoardBox', 'VKWebAppShowLeaderBoardBoxResult', 'VKWebAppShowLeaderBoardBoxFailed'> & EventReceiveNames<'VKWebAppShowMessageBox', 'VKWebAppShowMessageBoxResult', 'VKWebAppShowMessageBoxFailed'> & EventReceiveNames<'VKWebAppCheckBannerAd', 'VKWebAppCheckBannerAdResult', 'VKWebAppCheckBannerAdFailed'> & EventReceiveNames<'VKWebAppHideBannerAd', 'VKWebAppHideBannerAdResult', 'VKWebAppHideBannerAdFailed'> & EventReceiveNames<'VKWebAppShowBannerAd', 'VKWebAppShowBannerAdResult', 'VKWebAppShowBannerAdFailed'> & EventReceiveNames<'VKWebAppShowNativeAds', 'VKWebAppShowNativeAdsResult', 'VKWebAppShowNativeAdsFailed'> & EventReceiveNames<'VKWebAppCheckNativeAds', 'VKWebAppCheckNativeAdsResult', 'VKWebAppCheckNativeAdsFailed'> & EventReceiveNames<'VKWebAppShowOrderBox', 'VKWebAppShowOrderBoxResult', 'VKWebAppShowOrderBoxFailed'> & EventReceiveNames<'VKWebAppShowRequestBox', 'VKWebAppShowRequestBoxResult', 'VKWebAppShowRequestBoxFailed'> & EventReceiveNames<'VKWebAppShowWallPostBox', 'VKWebAppShowWallPostBoxResult', 'VKWebAppShowWallPostBoxFailed'> & EventReceiveNames<'VKWebAppShowSubscriptionBox', 'VKWebAppShowSubscriptionBoxResult', 'VKWebAppShowSubscriptionBoxFailed'> & EventReceiveNames<'VKWebAppOpenWallPost', 'VKWebAppOpenWallPostResult', 'VKWebAppOpenWallPostFailed'> & EventReceiveNames<'VKWebAppStorageGet', 'VKWebAppStorageGetResult', 'VKWebAppStorageGetFailed'> & EventReceiveNames<'VKWebAppStorageGetKeys', 'VKWebAppStorageGetKeysResult', 'VKWebAppStorageGetKeysFailed'> & EventReceiveNames<'VKWebAppStorageSet', 'VKWebAppStorageSetResult', 'VKWebAppStorageSetFailed'> & EventReceiveNames<'VKWebAppTapticImpactOccurred', 'VKWebAppTapticImpactOccurredResult', 'VKWebAppTapticImpactOccurredFailed'> & EventReceiveNames<'VKWebAppTapticNotificationOccurred', 'VKWebAppTapticNotificationOccurredResult', 'VKWebAppTapticNotificationOccurredFailed'> & EventReceiveNames<'VKWebAppTapticSelectionChanged', 'VKWebAppTapticSelectionChangedResult', 'VKWebAppTapticSelectionChangedFailed'> & EventReceiveNames<'VKWebAppAddToFavorites', 'VKWebAppAddToFavoritesResult', 'VKWebAppAddToFavoritesFailed'> & EventReceiveNames<'VKWebAppSendPayload', 'VKWebAppSendPayloadResult', 'VKWebAppSendPayloadFailed'> & EventReceiveNames<'VKWebAppDisableSwipeBack', 'VKWebAppDisableSwipeBackResult', 'VKWebAppDisableSwipeBackFailed'> & EventReceiveNames<'VKWebAppEnableSwipeBack', 'VKWebAppEnableSwipeBackResult', 'VKWebAppEnableSwipeBackFailed'> & EventReceiveNames<'VKWebAppSetSwipeSettings', 'VKWebAppSetSwipeSettingsResult', 'VKWebAppSetSwipeSettingsFailed'> & EventReceiveNames<'VKWebAppShowStoryBox', 'VKWebAppShowStoryBoxResult', 'VKWebAppShowStoryBoxFailed'> & EventReceiveNames<'VKWebAppAccelerometerStart', 'VKWebAppAccelerometerStartResult', 'VKWebAppAccelerometerStartFailed'> & EventReceiveNames<'VKWebAppAccelerometerStop', 'VKWebAppAccelerometerStopResult', 'VKWebAppAccelerometerStopFailed'> & EventReceiveNames<'VKWebAppGyroscopeStart', 'VKWebAppGyroscopeStartResult', 'VKWebAppGyroscopeStartFailed'> & EventReceiveNames<'VKWebAppGyroscopeStop', 'VKWebAppGyroscopeStopResult', 'VKWebAppGyroscopeStopFailed'> & EventReceiveNames<'VKWebAppDeviceMotionStart', 'VKWebAppDeviceMotionStartResult', 'VKWebAppDeviceMotionStartFailed'> & EventReceiveNames<'VKWebAppDeviceMotionStop', 'VKWebAppDeviceMotionStopResult', 'VKWebAppDeviceMotionStopFailed'> & EventReceiveNames<'VKWebAppSubscribeStoryApp', 'VKWebAppSubscribeStoryAppResult', 'VKWebAppSubscribeStoryAppFailed'> & EventReceiveNames<'VKWebAppGetGroupInfo', 'VKWebAppGetGroupInfoResult', 'VKWebAppGetGroupInfoFailed'> & EventReceiveNames<'VKWebAppRetargetingPixel', 'VKWebAppRetargetingPixelResult', 'VKWebAppRetargetingPixelFailed'> & EventReceiveNames<'VKWebAppCheckAllowedScopes', 'VKWebAppCheckAllowedScopesResult', 'VKWebAppCheckAllowedScopesFailed'> & EventReceiveNames<'VKWebAppCheckSurvey', 'VKWebAppCheckSurveyResult', 'VKWebAppCheckSurveyFailed'> & EventReceiveNames<'VKWebAppShowSurvey', 'VKWebAppShowSurveyResult', 'VKWebAppShowSurveyFailed'> & EventReceiveNames<'VKWebAppConversionHit', 'VKWebAppConversionHitResult', 'VKWebAppConversionHitFailed'> & EventReceiveNames<'VKWebAppScrollTop', 'VKWebAppScrollTopResult', 'VKWebAppScrollTopFailed'> & EventReceiveNames<'VKWebAppScrollTopStart', 'VKWebAppScrollTopStartResult', 'VKWebAppScrollTopStop'> & EventReceiveNames<'VKWebAppScrollTopStop', 'VKWebAppScrollTopStopResult', 'VKWebAppScrollTopStopFailed'> & EventReceiveNames<'VKWebAppShowActionSheet', 'VKWebAppShowActionSheetResult', 'VKWebAppShowActionSheetFailed'>;
export {};
{
"name": "@vkontakte/vk-bridge",
"version": "2.7.2",
"version": "2.7.4",
"description": "Connects a Mini App with VK client",

@@ -5,0 +5,0 @@ "license": "MIT",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc