@apps-in-toss/web-framework 1.12.0 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -2
- package/dist/cli/index.js +1 -1
- package/dist/prebuilt/dev.android.js +276 -254
- package/dist/prebuilt/dev.ios.js +276 -254
- package/dist/prebuilt/prod.android.js +103 -102
- package/dist/prebuilt/prod.ios.js +103 -102
- package/package.json +7 -7
|
@@ -45312,6 +45312,23 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45312
45312
|
openConfirm
|
|
45313
45313
|
]);
|
|
45314
45314
|
}
|
|
45315
|
+
function createEvent(event) {
|
|
45316
|
+
return {
|
|
45317
|
+
name: event,
|
|
45318
|
+
subscribe: function(listener) {
|
|
45319
|
+
return eventEmitter.subscribe(event, listener);
|
|
45320
|
+
},
|
|
45321
|
+
hasSubscriptions: function() {
|
|
45322
|
+
return eventEmitter.hasSubscriptions(event);
|
|
45323
|
+
},
|
|
45324
|
+
clearSubscriptions: function() {
|
|
45325
|
+
return eventEmitter.clearSubscriptions(event);
|
|
45326
|
+
},
|
|
45327
|
+
emit: function(data) {
|
|
45328
|
+
return eventEmitter.emit(event, data);
|
|
45329
|
+
}
|
|
45330
|
+
};
|
|
45331
|
+
}
|
|
45315
45332
|
function useNavigationBarLogging() {
|
|
45316
45333
|
var referrer2 = useReferrer();
|
|
45317
45334
|
var baseParams = {
|
|
@@ -45424,7 +45441,11 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45424
45441
|
},
|
|
45425
45442
|
handleHomeButtonClick: function() {
|
|
45426
45443
|
logging.homeButtonClick();
|
|
45427
|
-
|
|
45444
|
+
if (homeEvent.hasSubscriptions()) {
|
|
45445
|
+
homeEvent.emit({});
|
|
45446
|
+
} else {
|
|
45447
|
+
navigation.navigate("/");
|
|
45448
|
+
}
|
|
45428
45449
|
},
|
|
45429
45450
|
handleCloseButtonClick: function() {
|
|
45430
45451
|
logging.closeButtonClick();
|
|
@@ -45637,16 +45658,16 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45637
45658
|
}
|
|
45638
45659
|
});
|
|
45639
45660
|
}
|
|
45640
|
-
function
|
|
45661
|
+
function SettingsMenu() {
|
|
45641
45662
|
var globals = getAppsInTossGlobals();
|
|
45642
45663
|
if (getOperationalEnvironment() === "sandbox") {
|
|
45643
45664
|
return null;
|
|
45644
45665
|
}
|
|
45645
45666
|
return /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Menu, {
|
|
45646
|
-
title: "\
|
|
45667
|
+
title: "\uC124\uC815",
|
|
45647
45668
|
iconURL: "https://static.toss.im/icons/png/4x/icon-setting-mono.png",
|
|
45648
45669
|
onPress: function() {
|
|
45649
|
-
return openURL("servicetoss://apps-in-toss-menu/
|
|
45670
|
+
return openURL("servicetoss://apps-in-toss-menu/settings?appName=".concat(Granite.appName, "&displayAppName=").concat(globals.brandDisplayName));
|
|
45650
45671
|
}
|
|
45651
45672
|
});
|
|
45652
45673
|
}
|
|
@@ -45667,7 +45688,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45667
45688
|
var isHomeShortcutSupported = isMinVersionSupported(MIN_VERSION.HOME_SHORTCUT_MENU);
|
|
45668
45689
|
var isBottomSheetSupported = isMinVersionSupported(MIN_VERSION.BOTTOM_SHEET);
|
|
45669
45690
|
var isShareListMenuSupported = isMinVersionSupported(MIN_VERSION.SHARE_LIST_MENU);
|
|
45670
|
-
var
|
|
45691
|
+
var isSettingsMenuSupported = isMinVersionSupported(MIN_VERSION.SETTINGS_MENU);
|
|
45671
45692
|
(0, import_react225.useEffect)(function() {
|
|
45672
45693
|
if (!isBottomSheetSupported) {
|
|
45673
45694
|
return;
|
|
@@ -45681,16 +45702,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45681
45702
|
return console.error("\uBA54\uB274 \uBAA9\uB85D\uC744 \uAC00\uC838\uC624\uB294 \uB370 \uC2E4\uD328\uD588\uC5B4\uC694:", error);
|
|
45682
45703
|
}
|
|
45683
45704
|
});
|
|
45684
|
-
if (isMinVersionSupported(MIN_VERSION.PERMISSIONS_MENU)) {
|
|
45685
|
-
INTERNAL__appBridgeHandler.invokeAppBridgeMethod("getAllPermission", {}, {
|
|
45686
|
-
onSuccess: function(permissions) {
|
|
45687
|
-
return setIsPermissionsMenuSupported(permissions.length > 0);
|
|
45688
|
-
},
|
|
45689
|
-
onError: function(error) {
|
|
45690
|
-
return console.error("\uAD8C\uD55C \uBAA9\uB85D\uC744 \uAC00\uC838\uC624\uB294 \uB370 \uC2E4\uD328\uD588\uC5B4\uC694:", error);
|
|
45691
|
-
}
|
|
45692
|
-
});
|
|
45693
|
-
}
|
|
45694
45705
|
}, [
|
|
45695
45706
|
isBottomSheetSupported
|
|
45696
45707
|
]);
|
|
@@ -45759,7 +45770,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45759
45770
|
}),
|
|
45760
45771
|
isHomeShortcutSupported && /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(HomeShortcutMenu, {}),
|
|
45761
45772
|
isShareListMenuSupported && /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(AppShareListMenu, {}),
|
|
45762
|
-
|
|
45773
|
+
isSettingsMenuSupported && /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(SettingsMenu, {})
|
|
45763
45774
|
]
|
|
45764
45775
|
})
|
|
45765
45776
|
})
|
|
@@ -46670,23 +46681,19 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46670
46681
|
return null;
|
|
46671
46682
|
}
|
|
46672
46683
|
}
|
|
46673
|
-
function
|
|
46684
|
+
function useSafeAreaInsetsEvent() {
|
|
46674
46685
|
var insets = (0, react_native_safe_area_context_exports.useSafeAreaInsets)();
|
|
46675
|
-
var emitter = (0, import_react233.useMemo)(function() {
|
|
46676
|
-
return new EventEmitter();
|
|
46677
|
-
}, []);
|
|
46678
46686
|
(0, import_react233.useEffect)(function() {
|
|
46679
|
-
|
|
46680
|
-
return function() {
|
|
46681
|
-
emitter.off("safeAreaInsetsChange", function(listener) {
|
|
46682
|
-
return listener(insets);
|
|
46683
|
-
});
|
|
46684
|
-
};
|
|
46687
|
+
safeAreaInsetsChange.emit(insets);
|
|
46685
46688
|
}, [
|
|
46686
|
-
emitter,
|
|
46687
46689
|
insets
|
|
46688
46690
|
]);
|
|
46689
|
-
|
|
46691
|
+
(0, import_react233.useEffect)(function() {
|
|
46692
|
+
return function() {
|
|
46693
|
+
return safeAreaInsetsChange.clearSubscriptions();
|
|
46694
|
+
};
|
|
46695
|
+
}, []);
|
|
46696
|
+
return safeAreaInsetsChange;
|
|
46690
46697
|
}
|
|
46691
46698
|
function reducer(state, action) {
|
|
46692
46699
|
switch (action.type) {
|
|
@@ -46740,7 +46747,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46740
46747
|
canGoForward: canGoForward2
|
|
46741
46748
|
});
|
|
46742
46749
|
}, []);
|
|
46743
|
-
var
|
|
46750
|
+
var _useMemo4 = (0, import_react235.useMemo)(function() {
|
|
46744
46751
|
var canBack = state.index > 0;
|
|
46745
46752
|
var canFwd = state.index >= 0 && state.index < state.stack.length - 1;
|
|
46746
46753
|
return {
|
|
@@ -46750,7 +46757,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46750
46757
|
}, [
|
|
46751
46758
|
state.index,
|
|
46752
46759
|
state.stack.length
|
|
46753
|
-
]), canGoBack =
|
|
46760
|
+
]), canGoBack = _useMemo4.canGoBack, canGoForward = _useMemo4.canGoForward;
|
|
46754
46761
|
return {
|
|
46755
46762
|
onNavigationStateChange,
|
|
46756
46763
|
hasHistory: canGoBack,
|
|
@@ -46851,27 +46858,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46851
46858
|
var handleWebHome = (0, import_react234.useCallback)(function() {
|
|
46852
46859
|
var _webViewRef_current;
|
|
46853
46860
|
logging.homeButtonClick();
|
|
46854
|
-
if (
|
|
46855
|
-
|
|
46856
|
-
try {
|
|
46857
|
-
for (var _iterator = webBackHandlersRef[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
46858
|
-
var handler = _step.value;
|
|
46859
|
-
handler();
|
|
46860
|
-
}
|
|
46861
|
-
} catch (err) {
|
|
46862
|
-
_didIteratorError = true;
|
|
46863
|
-
_iteratorError = err;
|
|
46864
|
-
} finally {
|
|
46865
|
-
try {
|
|
46866
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
46867
|
-
_iterator.return();
|
|
46868
|
-
}
|
|
46869
|
-
} finally {
|
|
46870
|
-
if (_didIteratorError) {
|
|
46871
|
-
throw _iteratorError;
|
|
46872
|
-
}
|
|
46873
|
-
}
|
|
46874
|
-
}
|
|
46861
|
+
if (homeEvent.hasSubscriptions()) {
|
|
46862
|
+
homeEvent.emit({});
|
|
46875
46863
|
return;
|
|
46876
46864
|
}
|
|
46877
46865
|
(_webViewRef_current = webViewRef.current) === null || _webViewRef_current === void 0 ? void 0 : _webViewRef_current.injectJavaScript("\n (function() {\n const webBundleOrigin = '".concat(webViewInitialURL.origin, "';\n window.location.href = window.location.origin === webBundleOrigin ? '/' : webBundleOrigin;\n })();\n "));
|
|
@@ -47179,7 +47167,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47179
47167
|
var insets = (0, react_native_safe_area_context_exports.useSafeAreaInsets)();
|
|
47180
47168
|
var global2 = getAppsInTossGlobals();
|
|
47181
47169
|
var navigationBarContext = useNavigationBarContext();
|
|
47182
|
-
var
|
|
47170
|
+
var safeAreaInsetsEvent = useSafeAreaInsetsEvent();
|
|
47183
47171
|
var _useState6 = _sliced_to_array((0, import_react227.useState)(props.allowsBackForwardNavigationGestures), 2), allowsBackForwardNavigationGestures = _useState6[0], setAllowsBackForwardNavigationGestures = _useState6[1];
|
|
47184
47172
|
var handler = useBridgeHandler({
|
|
47185
47173
|
onMessage,
|
|
@@ -47198,6 +47186,10 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47198
47186
|
webBackHandler.removeEventListener(onEvent);
|
|
47199
47187
|
};
|
|
47200
47188
|
},
|
|
47189
|
+
homeEvent: function(param) {
|
|
47190
|
+
var onEvent = param.onEvent;
|
|
47191
|
+
return homeEvent.subscribe(onEvent);
|
|
47192
|
+
},
|
|
47201
47193
|
updateLocationEvent: function(param) {
|
|
47202
47194
|
var onEvent = param.onEvent, onError2 = param.onError, options = param.options;
|
|
47203
47195
|
return appsInTossEvent.addEventListener("updateLocationEvent", {
|
|
@@ -47208,10 +47200,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47208
47200
|
},
|
|
47209
47201
|
safeAreaInsetsChange: function(param) {
|
|
47210
47202
|
var onEvent = param.onEvent;
|
|
47211
|
-
|
|
47212
|
-
return function() {
|
|
47213
|
-
safeAreaInsetsEmitter.off("safeAreaInsetsChange", onEvent);
|
|
47214
|
-
};
|
|
47203
|
+
return safeAreaInsetsEvent.subscribe(onEvent);
|
|
47215
47204
|
},
|
|
47216
47205
|
/** @internal */
|
|
47217
47206
|
appBridgeCallbackEvent: function(param) {
|
|
@@ -47443,7 +47432,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47443
47432
|
onRenderProcessGone: handleWebViewProcessDidTerminate
|
|
47444
47433
|
}));
|
|
47445
47434
|
}
|
|
47446
|
-
var import_react_native197, import_react210, import_react211, import_react212, import_react213, import_jsx_runtime218, import_react214, import_jsx_runtime219, import_react215, import_react_native203, import_react216, import_react_native205, import_react217, import_react_native207, import_react218, import_react219, import_react220, import_react221, import_jsx_runtime220, import_jsx_runtime221, import_react222, import_react_native210, import_react223, import_react224, import_react225, import_react_native215, import_react_native216, import_jsx_runtime222, import_jsx_runtime223, import_react_native218, import_jsx_runtime224, import_jsx_runtime225, import_jsx_runtime226, import_react226, import_jsx_runtime227, import_jsx_runtime228, import_react_native220, import_jsx_runtime229, import_jsx_runtime230, import_jsx_runtime231, import_react227, import_react_native222, import_react228, import_react_native223, import_react229, import_react_native225, import_jsx_runtime232, import_jsx_runtime233, import_react230, import_react231, import_jsx_runtime234, import_jsx_runtime235, import_react232, import_react233, import_react234, import_react235, import_react_native231, import_react236, import_react237, import_jsx_runtime236, import_react238, import_react_native234, import_react239, import_react_native235, import_jsx_runtime237, import_react240, import_react_native236, import_jsx_runtime238, import_jsx_runtime239, __GlobalEventDeduplicator, __defProp2, __getOwnPropDesc2, __getOwnPropNames2, __hasOwnProp2, __copyProps2, __reExport2, env, EXIT_IMPRESSION_LOG_NAME, EXIT_IMPRESSION_SCHEMA_ID, ENTRY_APP_EVENT_SCHEMA_ID, AppEvent, UPDATE_SCHEME, NavigationBarContext, GAME_PROFILE_WEBVIEW_URL, GAME_MIN_VERSION, PLAYSTORE_LINK, APPSTORE_LINK, getMarketLink, UPDATE_DIALOG_SCHEMA_ID, UPDATE_DIALOG_LOG_NAME, UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID, UPDATE_DIALOG_CTA_CLICK_LOG_NAME, DEFAULT_ERROR, useErrorAlert, INTERNAL__onVisibilityChangedByTransparentServiceWeb, openTransparentWebView, useTransparentWebview, useGameProfileToast, useGameCenterProfile, Z_INDEX, GameInitializer, overlayStyle, NAVI_BAR_IMPRESSION_SCHEMA_ID, NAVI_BAR_IMPRESSION_LOG_NAME, CLOSE_POPUP_SHOW_SCHEMA_ID, CLOSE_POPUP_SHOW_LOG_NAME, CLOSE_BUTTON_CLICK_SCHEMA_ID, CLOSE_BUTTON_CLICK_LOG_NAME, CLOSE_POPUP_CTA_CLICK_SCHEMA_ID, CLOSE_POPUP_CTA_CLICK_LOG_NAME, HOME_BUTTON_CLICK_SCHEMA_ID, HOME_BUTTON_CLICK_LOG_NAME, BOTTOM_SHEET_SCHEMA_ID, BOTTOM_SHEET_LOG_NAME, BOTTOM_SHEET_OPEN_SCHEMA_ID, BOTTOM_SHEET_OPEN_LOG_NAME, BOTTOM_SHEET_CLOSE_CLICK_SCHEMA_ID, BOTTOM_SHEET_CLOSE_CLICK_LOG_NAME, BOTTOM_SHEET_MENU_CLICK_SCHEMA_ID, BOTTOM_SHEET_MENU_CLICK_LOG_NAME, iconNameRegExp, iconURLRegExp, SHARE_SCHEME_REFERRER, APP_SHARE_MENU_INFO, APP_BRIDGE_METHOD_NAME, MIN_VERSION, RNNavigationBar, bridge_entry_exports, AppsInToss, GameWebView, PartnerWebView, sessionId, ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION, IOS_FETCH_TOSS_AD_SUPPORTED_VERSION, UNSUPPORTED_ERROR_MESSAGE3, ENVIRONMENT3, OPERATIONAL_ENVIRONMENT, OS, APP_VER, ALPHA_EVENT_TRACKER_HTTP_ENDPOINT, LIVE_EVENT_TRACKER_HTTP_ENDPOINT, INTEGRATED_AD_SDK_VERSION, ANDROID_INTEGRATED_AD_SUPPORTED_VERSION, IOS_INTEGRATED_AD_SUPPORTED_VERSION, UNSUPPORTED_ERROR_MESSAGE22, INTG_AD_ADM_FALLBACK_RID_MAP, loadFullScreenAd, loadFullScreenAdForWeb, globalEventListenerMap,
|
|
47435
|
+
var import_react_native197, import_react210, import_react211, import_react212, import_react213, import_jsx_runtime218, import_react214, import_jsx_runtime219, import_react215, import_react_native203, import_react216, import_react_native205, import_react217, import_react_native207, import_react218, import_react219, import_react220, import_react221, import_jsx_runtime220, import_jsx_runtime221, import_react222, import_react_native210, import_react223, import_react224, import_react225, import_react_native215, import_react_native216, import_jsx_runtime222, import_jsx_runtime223, import_react_native218, import_jsx_runtime224, import_jsx_runtime225, import_jsx_runtime226, import_react226, import_jsx_runtime227, import_jsx_runtime228, import_react_native220, import_jsx_runtime229, import_jsx_runtime230, import_jsx_runtime231, import_react227, import_react_native222, import_react228, import_react_native223, import_react229, import_react_native225, import_jsx_runtime232, import_jsx_runtime233, import_react230, import_react231, import_jsx_runtime234, import_jsx_runtime235, import_react232, import_react233, import_react234, import_react235, import_react_native231, import_react236, import_react237, import_jsx_runtime236, import_react238, import_react_native234, import_react239, import_react_native235, import_jsx_runtime237, import_react240, import_react_native236, import_jsx_runtime238, import_jsx_runtime239, __GlobalEventDeduplicator, __defProp2, __getOwnPropDesc2, __getOwnPropNames2, __hasOwnProp2, __copyProps2, __reExport2, env, EXIT_IMPRESSION_LOG_NAME, EXIT_IMPRESSION_SCHEMA_ID, ENTRY_APP_EVENT_SCHEMA_ID, AppEvent, UPDATE_SCHEME, NavigationBarContext, GAME_PROFILE_WEBVIEW_URL, GAME_MIN_VERSION, PLAYSTORE_LINK, APPSTORE_LINK, getMarketLink, UPDATE_DIALOG_SCHEMA_ID, UPDATE_DIALOG_LOG_NAME, UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID, UPDATE_DIALOG_CTA_CLICK_LOG_NAME, DEFAULT_ERROR, useErrorAlert, INTERNAL__onVisibilityChangedByTransparentServiceWeb, openTransparentWebView, useTransparentWebview, useGameProfileToast, useGameCenterProfile, Z_INDEX, GameInitializer, overlayStyle, EventEmitter, eventEmitter, homeEvent, safeAreaInsetsChange, NAVI_BAR_IMPRESSION_SCHEMA_ID, NAVI_BAR_IMPRESSION_LOG_NAME, CLOSE_POPUP_SHOW_SCHEMA_ID, CLOSE_POPUP_SHOW_LOG_NAME, CLOSE_BUTTON_CLICK_SCHEMA_ID, CLOSE_BUTTON_CLICK_LOG_NAME, CLOSE_POPUP_CTA_CLICK_SCHEMA_ID, CLOSE_POPUP_CTA_CLICK_LOG_NAME, HOME_BUTTON_CLICK_SCHEMA_ID, HOME_BUTTON_CLICK_LOG_NAME, BOTTOM_SHEET_SCHEMA_ID, BOTTOM_SHEET_LOG_NAME, BOTTOM_SHEET_OPEN_SCHEMA_ID, BOTTOM_SHEET_OPEN_LOG_NAME, BOTTOM_SHEET_CLOSE_CLICK_SCHEMA_ID, BOTTOM_SHEET_CLOSE_CLICK_LOG_NAME, BOTTOM_SHEET_MENU_CLICK_SCHEMA_ID, BOTTOM_SHEET_MENU_CLICK_LOG_NAME, iconNameRegExp, iconURLRegExp, SHARE_SCHEME_REFERRER, APP_SHARE_MENU_INFO, APP_BRIDGE_METHOD_NAME, MIN_VERSION, RNNavigationBar, bridge_entry_exports, AppsInToss, GameWebView, PartnerWebView, sessionId, ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION, IOS_FETCH_TOSS_AD_SUPPORTED_VERSION, UNSUPPORTED_ERROR_MESSAGE3, ENVIRONMENT3, OPERATIONAL_ENVIRONMENT, OS, APP_VER, ALPHA_EVENT_TRACKER_HTTP_ENDPOINT, LIVE_EVENT_TRACKER_HTTP_ENDPOINT, INTEGRATED_AD_SDK_VERSION, ANDROID_INTEGRATED_AD_SUPPORTED_VERSION, IOS_INTEGRATED_AD_SUPPORTED_VERSION, UNSUPPORTED_ERROR_MESSAGE22, INTG_AD_ADM_FALLBACK_RID_MAP, loadFullScreenAd, loadFullScreenAdForWeb, globalEventListenerMap, INITIAL_STATE, FontA11yCategory, androidFontScaleMap, iosScaleToAndroidScale, extractDateFromUUIDv7, getGroupId, getReferrer22, trackScreen, operationalEnvironment, TYPES, WEBVIEW_TYPES, ERROR_CODES, _obj6, ERROR_MESSAGES, API_RESULT_ERROR_MAP, AD_STATUS_ERROR_MAP, GlobalEventDeduplicator, globalEventDeduplicator, styles3, styles22, styles32, Analytics2;
|
|
47447
47436
|
var init_dist9 = __esm({
|
|
47448
47437
|
"../../../.yarn/__virtual__/@apps-in-toss-framework-virtual-afbad361af/1/packages/apps-in-toss/framework/dist/index.js"() {
|
|
47449
47438
|
"use strict";
|
|
@@ -48120,6 +48109,62 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48120
48109
|
bottom: 0,
|
|
48121
48110
|
zIndex: Z_INDEX.PROFILE_OVERLAY
|
|
48122
48111
|
};
|
|
48112
|
+
EventEmitter = /* @__PURE__ */ function() {
|
|
48113
|
+
"use strict";
|
|
48114
|
+
function EventEmitter2() {
|
|
48115
|
+
_class_call_check(this, EventEmitter2);
|
|
48116
|
+
this.listeners = {};
|
|
48117
|
+
}
|
|
48118
|
+
_create_class(EventEmitter2, [
|
|
48119
|
+
{
|
|
48120
|
+
key: "subscribe",
|
|
48121
|
+
value: function subscribe(event, listener) {
|
|
48122
|
+
var _this = this;
|
|
48123
|
+
if (!this.listeners[event]) {
|
|
48124
|
+
this.listeners[event] = [];
|
|
48125
|
+
}
|
|
48126
|
+
this.listeners[event].push(listener);
|
|
48127
|
+
return function() {
|
|
48128
|
+
var _this_listeners_event;
|
|
48129
|
+
var _this_listeners_event_filter;
|
|
48130
|
+
_this.listeners[event] = (_this_listeners_event_filter = (_this_listeners_event = _this.listeners[event]) === null || _this_listeners_event === void 0 ? void 0 : _this_listeners_event.filter(function(l51) {
|
|
48131
|
+
return l51 !== listener;
|
|
48132
|
+
})) !== null && _this_listeners_event_filter !== void 0 ? _this_listeners_event_filter : [];
|
|
48133
|
+
};
|
|
48134
|
+
}
|
|
48135
|
+
},
|
|
48136
|
+
{
|
|
48137
|
+
key: "hasSubscriptions",
|
|
48138
|
+
value: function hasSubscriptions(event) {
|
|
48139
|
+
return this.listeners[event] != null && this.listeners[event].length > 0;
|
|
48140
|
+
}
|
|
48141
|
+
},
|
|
48142
|
+
{
|
|
48143
|
+
key: "clearSubscriptions",
|
|
48144
|
+
value: function clearSubscriptions(event) {
|
|
48145
|
+
this.listeners[event] = [];
|
|
48146
|
+
}
|
|
48147
|
+
},
|
|
48148
|
+
{
|
|
48149
|
+
key: "emit",
|
|
48150
|
+
value: function emit(event) {
|
|
48151
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
48152
|
+
args[_key - 1] = arguments[_key];
|
|
48153
|
+
}
|
|
48154
|
+
if (!this.listeners[event]) {
|
|
48155
|
+
return;
|
|
48156
|
+
}
|
|
48157
|
+
this.listeners[event].forEach(function(listener) {
|
|
48158
|
+
return listener.apply(void 0, _to_consumable_array(args));
|
|
48159
|
+
});
|
|
48160
|
+
}
|
|
48161
|
+
}
|
|
48162
|
+
]);
|
|
48163
|
+
return EventEmitter2;
|
|
48164
|
+
}();
|
|
48165
|
+
eventEmitter = new EventEmitter();
|
|
48166
|
+
homeEvent = createEvent("homeEvent");
|
|
48167
|
+
safeAreaInsetsChange = createEvent("safeAreaInsetsChange");
|
|
48123
48168
|
NAVI_BAR_IMPRESSION_SCHEMA_ID = 1596837;
|
|
48124
48169
|
NAVI_BAR_IMPRESSION_LOG_NAME = "appsintoss_app_visit__common_module::impression__navigation_bar";
|
|
48125
48170
|
CLOSE_POPUP_SHOW_SCHEMA_ID = 1644490;
|
|
@@ -48159,7 +48204,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48159
48204
|
android: "5.246.0",
|
|
48160
48205
|
ios: "5.246.0"
|
|
48161
48206
|
},
|
|
48162
|
-
|
|
48207
|
+
SETTINGS_MENU: {
|
|
48163
48208
|
android: "5.238.0",
|
|
48164
48209
|
ios: "5.237.0"
|
|
48165
48210
|
}
|
|
@@ -48251,50 +48296,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48251
48296
|
loadFullScreenAdForWeb = generateLoadFullScreenAd("107");
|
|
48252
48297
|
showFullScreenAd.isSupported = GoogleAdMob.showAppsInTossAdMob.isSupported;
|
|
48253
48298
|
globalEventListenerMap = /* @__PURE__ */ new Map();
|
|
48254
|
-
EventEmitter = /* @__PURE__ */ function() {
|
|
48255
|
-
"use strict";
|
|
48256
|
-
function EventEmitter2() {
|
|
48257
|
-
_class_call_check(this, EventEmitter2);
|
|
48258
|
-
this.listeners = {};
|
|
48259
|
-
}
|
|
48260
|
-
_create_class(EventEmitter2, [
|
|
48261
|
-
{
|
|
48262
|
-
key: "on",
|
|
48263
|
-
value: function on3(event, listener) {
|
|
48264
|
-
if (!this.listeners[event]) {
|
|
48265
|
-
this.listeners[event] = [];
|
|
48266
|
-
}
|
|
48267
|
-
this.listeners[event].push(listener);
|
|
48268
|
-
}
|
|
48269
|
-
},
|
|
48270
|
-
{
|
|
48271
|
-
key: "emit",
|
|
48272
|
-
value: function emit(event) {
|
|
48273
|
-
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
48274
|
-
args[_key - 1] = arguments[_key];
|
|
48275
|
-
}
|
|
48276
|
-
if (!this.listeners[event]) {
|
|
48277
|
-
return;
|
|
48278
|
-
}
|
|
48279
|
-
this.listeners[event].forEach(function(listener) {
|
|
48280
|
-
return listener.apply(void 0, _to_consumable_array(args));
|
|
48281
|
-
});
|
|
48282
|
-
}
|
|
48283
|
-
},
|
|
48284
|
-
{
|
|
48285
|
-
key: "off",
|
|
48286
|
-
value: function off(event, listener) {
|
|
48287
|
-
if (!this.listeners[event]) {
|
|
48288
|
-
return;
|
|
48289
|
-
}
|
|
48290
|
-
this.listeners[event] = this.listeners[event].filter(function(l51) {
|
|
48291
|
-
return l51 !== listener;
|
|
48292
|
-
});
|
|
48293
|
-
}
|
|
48294
|
-
}
|
|
48295
|
-
]);
|
|
48296
|
-
return EventEmitter2;
|
|
48297
|
-
}();
|
|
48298
48299
|
INITIAL_STATE = {
|
|
48299
48300
|
stack: [],
|
|
48300
48301
|
index: -1
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apps-in-toss/web-framework",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.14.0",
|
|
5
5
|
"description": "Web Framework for Apps In Toss",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"typecheck": "tsc --noEmit",
|
|
@@ -87,12 +87,12 @@
|
|
|
87
87
|
"zod": "3.24.4"
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
|
-
"@apps-in-toss/bridge-core": "1.
|
|
91
|
-
"@apps-in-toss/cli": "1.
|
|
92
|
-
"@apps-in-toss/framework": "1.
|
|
93
|
-
"@apps-in-toss/plugins": "1.
|
|
94
|
-
"@apps-in-toss/web-analytics": "1.
|
|
95
|
-
"@apps-in-toss/web-bridge": "1.
|
|
90
|
+
"@apps-in-toss/bridge-core": "1.14.0",
|
|
91
|
+
"@apps-in-toss/cli": "1.14.0",
|
|
92
|
+
"@apps-in-toss/framework": "1.14.0",
|
|
93
|
+
"@apps-in-toss/plugins": "1.14.0",
|
|
94
|
+
"@apps-in-toss/web-analytics": "1.14.0",
|
|
95
|
+
"@apps-in-toss/web-bridge": "1.14.0",
|
|
96
96
|
"@babel/core": "7.23.9",
|
|
97
97
|
"@granite-js/cli": "0.1.31",
|
|
98
98
|
"@granite-js/mpack": "0.1.31",
|