@apps-in-toss/web-framework 0.0.28 → 0.0.30
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/dist/cli/chunk-34QS4NNF.js +173587 -0
- package/dist/cli/chunk-HDRFXOPA.js +63 -0
- package/dist/cli/chunk-RUDG2MMT.js +173587 -0
- package/dist/cli/lib-NMFBQRQ2.js +1007 -0
- package/dist/cli/typescript-THSIDFIK.js +6 -0
- package/dist/cli/typescript-YVXHBAAI.js +6 -0
- package/dist/config/index.d.ts +5 -0
- package/dist/config/index.js +1 -0
- package/dist/prebuilt/dev.android.js +274 -82
- package/dist/prebuilt/dev.ios.js +274 -82
- package/dist/prebuilt/prod.android.js +212 -29
- package/dist/prebuilt/prod.ios.js +212 -29
- package/dist/prebuilt/prod.json +4 -4
- package/package.json +8 -8
|
@@ -37248,6 +37248,40 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
37248
37248
|
});
|
|
37249
37249
|
return _setDeviceOrientation.apply(this, arguments);
|
|
37250
37250
|
}
|
|
37251
|
+
function saveBase64Data(params) {
|
|
37252
|
+
return _saveBase64Data.apply(this, arguments);
|
|
37253
|
+
}
|
|
37254
|
+
function _saveBase64Data() {
|
|
37255
|
+
_saveBase64Data = // src/native-modules/saveBase64Data.ts
|
|
37256
|
+
_async_to_generator(function(params) {
|
|
37257
|
+
var isSupported;
|
|
37258
|
+
return __generator(this, function(_state) {
|
|
37259
|
+
switch (_state.label) {
|
|
37260
|
+
case 0:
|
|
37261
|
+
isSupported = isMinVersionSupported({
|
|
37262
|
+
android: "5.218.0",
|
|
37263
|
+
ios: "5.216.0"
|
|
37264
|
+
});
|
|
37265
|
+
if (!isSupported) {
|
|
37266
|
+
console.warn("saveBase64Data is not supported in this app version");
|
|
37267
|
+
return [
|
|
37268
|
+
2
|
|
37269
|
+
];
|
|
37270
|
+
}
|
|
37271
|
+
return [
|
|
37272
|
+
4,
|
|
37273
|
+
AppsInTossModule.saveBase64Data(params)
|
|
37274
|
+
];
|
|
37275
|
+
case 1:
|
|
37276
|
+
_state.sent();
|
|
37277
|
+
return [
|
|
37278
|
+
2
|
|
37279
|
+
];
|
|
37280
|
+
}
|
|
37281
|
+
});
|
|
37282
|
+
});
|
|
37283
|
+
return _saveBase64Data.apply(this, arguments);
|
|
37284
|
+
}
|
|
37251
37285
|
function AppsInTossContainer(Container, _param) {
|
|
37252
37286
|
var children = _param.children, initialProps = _object_without_properties(_param, [
|
|
37253
37287
|
"children"
|
|
@@ -37436,7 +37470,6 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
37436
37470
|
function createIsSupported() {
|
|
37437
37471
|
return function() {
|
|
37438
37472
|
if (ENVIRONMENT !== "toss") {
|
|
37439
|
-
console.warn("Google AdMob is not supported in the current environment");
|
|
37440
37473
|
return false;
|
|
37441
37474
|
}
|
|
37442
37475
|
return isMinVersionSupported({
|
|
@@ -37470,18 +37503,67 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
37470
37503
|
function clearItems() {
|
|
37471
37504
|
return AppsInTossModule.clearStorage({});
|
|
37472
37505
|
}
|
|
37506
|
+
function createOneTimePurchaseOrder(params) {
|
|
37507
|
+
return _createOneTimePurchaseOrder.apply(this, arguments);
|
|
37508
|
+
}
|
|
37509
|
+
function _createOneTimePurchaseOrder() {
|
|
37510
|
+
_createOneTimePurchaseOrder = // src/native-modules/iap.ts
|
|
37511
|
+
_async_to_generator(function(params) {
|
|
37512
|
+
var isSupported;
|
|
37513
|
+
return __generator(this, function(_state) {
|
|
37514
|
+
isSupported = isMinVersionSupported({
|
|
37515
|
+
android: "5.219.0",
|
|
37516
|
+
ios: "5.219.0"
|
|
37517
|
+
});
|
|
37518
|
+
if (!isSupported) {
|
|
37519
|
+
return [
|
|
37520
|
+
2
|
|
37521
|
+
];
|
|
37522
|
+
}
|
|
37523
|
+
return [
|
|
37524
|
+
2,
|
|
37525
|
+
AppsInTossModule.iapCreateOneTimePurchaseOrder(params)
|
|
37526
|
+
];
|
|
37527
|
+
});
|
|
37528
|
+
});
|
|
37529
|
+
return _createOneTimePurchaseOrder.apply(this, arguments);
|
|
37530
|
+
}
|
|
37531
|
+
function getProductItemList() {
|
|
37532
|
+
return _getProductItemList.apply(this, arguments);
|
|
37533
|
+
}
|
|
37534
|
+
function _getProductItemList() {
|
|
37535
|
+
_getProductItemList = _async_to_generator(function() {
|
|
37536
|
+
var isSupported;
|
|
37537
|
+
return __generator(this, function(_state) {
|
|
37538
|
+
isSupported = isMinVersionSupported({
|
|
37539
|
+
android: "5.219.0",
|
|
37540
|
+
ios: "5.219.0"
|
|
37541
|
+
});
|
|
37542
|
+
if (!isSupported) {
|
|
37543
|
+
return [
|
|
37544
|
+
2
|
|
37545
|
+
];
|
|
37546
|
+
}
|
|
37547
|
+
return [
|
|
37548
|
+
2,
|
|
37549
|
+
AppsInTossModule.iapGetProductItemList({})
|
|
37550
|
+
];
|
|
37551
|
+
});
|
|
37552
|
+
});
|
|
37553
|
+
return _getProductItemList.apply(this, arguments);
|
|
37554
|
+
}
|
|
37473
37555
|
function byPlatform2(_param) {
|
|
37474
37556
|
var props = _extends({}, _object_destructuring_empty(_param));
|
|
37475
37557
|
var _props_Platform2_OS;
|
|
37476
|
-
return ((_props_Platform2_OS = props[
|
|
37558
|
+
return ((_props_Platform2_OS = props[import_react_native140.Platform.OS]) !== null && _props_Platform2_OS !== void 0 ? _props_Platform2_OS : props.fallback)();
|
|
37477
37559
|
}
|
|
37478
37560
|
function IOSHeaderRight2(props) {
|
|
37479
|
-
return /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
|
|
37561
|
+
return /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(import_react_native139.View, _object_spread({
|
|
37480
37562
|
style: styles31.ios
|
|
37481
37563
|
}, props));
|
|
37482
37564
|
}
|
|
37483
37565
|
function AndroidHeaderRight2(props) {
|
|
37484
|
-
return /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
|
|
37566
|
+
return /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(import_react_native139.View, _object_spread({
|
|
37485
37567
|
style: styles31.android
|
|
37486
37568
|
}, props));
|
|
37487
37569
|
}
|
|
@@ -37500,7 +37582,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
37500
37582
|
}
|
|
37501
37583
|
function useSafeAreaTop2() {
|
|
37502
37584
|
var safeAreaInsets = (0, react_native_safe_area_context_exports.useSafeAreaInsets)();
|
|
37503
|
-
var hasDynamicIsland =
|
|
37585
|
+
var hasDynamicIsland = import_react_native141.Platform.OS === "ios" && safeAreaInsets.top > 50;
|
|
37504
37586
|
var safeAreaTop = hasDynamicIsland ? safeAreaInsets.top - 5 : safeAreaInsets.top;
|
|
37505
37587
|
return safeAreaTop;
|
|
37506
37588
|
}
|
|
@@ -37514,21 +37596,21 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
37514
37596
|
type: "none"
|
|
37515
37597
|
}
|
|
37516
37598
|
}),
|
|
37517
|
-
/* @__PURE__ */ (0, import_jsx_runtime179.jsx)(
|
|
37599
|
+
/* @__PURE__ */ (0, import_jsx_runtime179.jsx)(import_react_native138.View, {
|
|
37518
37600
|
style: {
|
|
37519
37601
|
width: "100%",
|
|
37520
|
-
height:
|
|
37602
|
+
height: import_react_native138.Platform.OS === "ios" ? 44 : 54,
|
|
37521
37603
|
flexDirection: "row",
|
|
37522
37604
|
alignItems: "center",
|
|
37523
37605
|
justifyContent: "flex-end",
|
|
37524
37606
|
position: "absolute",
|
|
37525
37607
|
zIndex: 9999,
|
|
37526
37608
|
marginTop: safeAreaTop,
|
|
37527
|
-
paddingRight:
|
|
37609
|
+
paddingRight: import_react_native138.Platform.OS === "ios" ? 10 : 8
|
|
37528
37610
|
},
|
|
37529
37611
|
pointerEvents: "box-none",
|
|
37530
37612
|
children: /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(HeaderRight2, {
|
|
37531
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(
|
|
37613
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(import_react_native138.TouchableOpacity, {
|
|
37532
37614
|
hitSlop: {
|
|
37533
37615
|
left: 8,
|
|
37534
37616
|
right: 8
|
|
@@ -37537,7 +37619,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
37537
37619
|
accessible: true,
|
|
37538
37620
|
accessibilityLabel: "\uAC8C\uC784\uC885\uB8CC",
|
|
37539
37621
|
style: {
|
|
37540
|
-
padding:
|
|
37622
|
+
padding: import_react_native138.Platform.OS === "ios" ? 7 : 9
|
|
37541
37623
|
},
|
|
37542
37624
|
onPress: onClose,
|
|
37543
37625
|
children: /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(react_native_svg_exports.SvgXml, {
|
|
@@ -37704,6 +37786,26 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
37704
37786
|
onMessage: $onMessage
|
|
37705
37787
|
};
|
|
37706
37788
|
}
|
|
37789
|
+
function useCreateUserAgent(param) {
|
|
37790
|
+
var batteryModePreference = param.batteryModePreference, colorPreference = param.colorPreference, fontA11y = param.fontA11y, locale = param.locale, navbarPreference = param.navbarPreference, pureSafeArea = param.pureSafeArea, safeArea = param.safeArea, safeAreaBottomTransparency = param.safeAreaBottomTransparency;
|
|
37791
|
+
var platform = getPlatformOS();
|
|
37792
|
+
var appVersion = getTossAppVersion();
|
|
37793
|
+
var fontScale = (0, import_react_native142.useWindowDimensions)().fontScale;
|
|
37794
|
+
var platformString = platform === "ios" ? "iPhone" : "Android";
|
|
37795
|
+
return [
|
|
37796
|
+
"TossApp/".concat(appVersion),
|
|
37797
|
+
batteryModePreference && "TossBatteryModePreference/".concat(batteryModePreference),
|
|
37798
|
+
colorPreference && "TossColorPreference/".concat(colorPreference),
|
|
37799
|
+
fontA11y && "TossFontAccessibility/".concat(fontA11y),
|
|
37800
|
+
fontScale && "TossFontScale/".concat(fontScale),
|
|
37801
|
+
locale && "TossLocale/".concat(locale),
|
|
37802
|
+
navbarPreference && "TossNavbarPreference/".concat(navbarPreference),
|
|
37803
|
+
pureSafeArea && "TossPureSafeArea/".concat(pureSafeArea),
|
|
37804
|
+
safeArea && "TossSafeArea/".concat(safeArea),
|
|
37805
|
+
safeAreaBottomTransparency && "TossSafeAreaBottomTransparency/".concat(safeAreaBottomTransparency),
|
|
37806
|
+
platformString
|
|
37807
|
+
].filter(Boolean).join(" ");
|
|
37808
|
+
}
|
|
37707
37809
|
function mergeSchemeQueryParamsInto(url) {
|
|
37708
37810
|
var baseUrl = new URL(url);
|
|
37709
37811
|
var schemeUrl = new URL(getSchemeUri());
|
|
@@ -37760,6 +37862,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
37760
37862
|
]);
|
|
37761
37863
|
var top = useSafeAreaTop();
|
|
37762
37864
|
var bottom = useSafeAreaBottom();
|
|
37865
|
+
var global2 = getAppsInTossGlobals();
|
|
37763
37866
|
var handler = useBridgeHandler({
|
|
37764
37867
|
onMessage,
|
|
37765
37868
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -37802,13 +37905,22 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
37802
37905
|
loadAdMobRewardedAd: GoogleAdMob.loadAdMobRewardedAd,
|
|
37803
37906
|
showAdMobRewardedAd: GoogleAdMob.showAdMobRewardedAd
|
|
37804
37907
|
}),
|
|
37805
|
-
constantHandlerMap: _object_spread_props(_object_spread({}, constant_bridges_exports, constant_bridges_exports2), {
|
|
37908
|
+
constantHandlerMap: _object_spread_props(_object_spread(_object_spread_props(_object_spread({}, constant_bridges_exports, constant_bridges_exports2), {
|
|
37806
37909
|
getSafeAreaTop: function() {
|
|
37807
37910
|
return top;
|
|
37808
37911
|
},
|
|
37809
37912
|
getSafeAreaBottom: function() {
|
|
37810
37913
|
return bottom;
|
|
37811
|
-
}
|
|
37914
|
+
}
|
|
37915
|
+
}), Object.fromEntries(Object.entries(global2).map(function(param) {
|
|
37916
|
+
var _$_param = _sliced_to_array(param, 2), key = _$_param[0], value = _$_param[1];
|
|
37917
|
+
return [
|
|
37918
|
+
key,
|
|
37919
|
+
function() {
|
|
37920
|
+
return value;
|
|
37921
|
+
}
|
|
37922
|
+
];
|
|
37923
|
+
}))), {
|
|
37812
37924
|
/** AdMob */
|
|
37813
37925
|
loadAdMobInterstitialAd_isSupported: GoogleAdMob.loadAdMobInterstitialAd.isSupported,
|
|
37814
37926
|
showAdMobInterstitialAd_isSupported: GoogleAdMob.showAdMobInterstitialAd.isSupported,
|
|
@@ -37824,7 +37936,10 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
37824
37936
|
getStorageItem: Storage.getItem,
|
|
37825
37937
|
setStorageItem: Storage.setItem,
|
|
37826
37938
|
removeStorageItem: Storage.removeItem,
|
|
37827
|
-
clearItems: Storage.clearItems
|
|
37939
|
+
clearItems: Storage.clearItems,
|
|
37940
|
+
/** IAP */
|
|
37941
|
+
iapCreateOneTimePurchaseOrder: IAP.createOneTimePurchaseOrder,
|
|
37942
|
+
iapGetProductItemList: IAP.getProductItemList
|
|
37828
37943
|
})
|
|
37829
37944
|
});
|
|
37830
37945
|
var baseProps = (0, import_react149.useMemo)(function() {
|
|
@@ -37863,12 +37978,20 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
37863
37978
|
trackScreen(event.url);
|
|
37864
37979
|
}
|
|
37865
37980
|
}, []);
|
|
37981
|
+
var userAgent = useCreateUserAgent({
|
|
37982
|
+
colorPreference: "light"
|
|
37983
|
+
});
|
|
37866
37984
|
return /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(BaseWebView, _object_spread_props(_object_spread({
|
|
37867
37985
|
ref: handler.ref
|
|
37868
37986
|
}, props, baseProps), {
|
|
37869
37987
|
source: {
|
|
37870
|
-
uri
|
|
37988
|
+
uri,
|
|
37989
|
+
// NOTE: https://github.com/react-native-webview/react-native-webview/pull/3133
|
|
37990
|
+
headers: {
|
|
37991
|
+
"User-Agent": userAgent
|
|
37992
|
+
}
|
|
37871
37993
|
},
|
|
37994
|
+
userAgent: import_react_native134.Platform.OS === "ios" ? userAgent : void 0,
|
|
37872
37995
|
sharedCookiesEnabled: true,
|
|
37873
37996
|
webviewDebuggingEnabled: webViewDebuggingEnabled,
|
|
37874
37997
|
thirdPartyCookiesEnabled: true,
|
|
@@ -37884,7 +38007,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
37884
38007
|
}
|
|
37885
38008
|
return value;
|
|
37886
38009
|
}
|
|
37887
|
-
var import_react146, import_react_native128, import_react_native129, import_react_native130, import_react147, import_react148, import_react_native132, import_jsx_runtime177, import_react149,
|
|
38010
|
+
var import_react146, import_react_native128, import_react_native129, import_react_native130, import_react147, import_react148, import_react_native132, import_jsx_runtime177, import_react149, import_react_native134, import_react150, import_react_native136, import_react_native138, import_react_native139, import_react_native140, import_jsx_runtime178, import_react_native141, import_jsx_runtime179, import_jsx_runtime180, import_react151, import_react_native142, import_react152, import_jsx_runtime181, __defProp2, __export2, env, AppsInTossModuleInstance, AppsInTossModule, SEMVER_REGEX, isWildcard, tryParse, coerceTypes, compareValues, parseVersion, compareSegments, compareVersions, TossCoreModule, ENTRY_APP_EVENT_SCHEMA_ID, AppEvent, EntryMessageExitedEvent, nativeEventEmitter2, UpdateLocationEvent, INTERNAL__callbacks, INTERNAL__appBridgeHandler, UNSAFE__nativeEventEmitter, AppBridgeCallbackEvent, VisibilityChangedByTransparentServiceWebEvent, appsInTossEvent, async_bridges_exports2, DEFAULT_MAX_COUNT, DEFAULT_MAX_WIDTH, AppsInToss, ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION, IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION, UNSUPPORTED_ERROR_MESSAGE, ENVIRONMENT, Storage, IAP, GoogleAdMob, RIGHT_MARGIN2, IOS_DEFAULT_MARGIN2, styles31, originXML, GameWebView, globalEventListenerMap, constant_bridges_exports2, event_bridges_exports, extractDateFromUUIDv7, getGroupId, getReferrer, trackScreen, appsInTossGlobals, operationalEnvironment, TYPES, WEBVIEW_TYPES, Analytics2;
|
|
37888
38011
|
var init_dist4 = __esm({
|
|
37889
38012
|
"../../.yarn/__virtual__/@apps-in-toss-framework-virtual-574b136add/1/apps-in-toss-packages/framework/dist/index.js"() {
|
|
37890
38013
|
"use strict";
|
|
@@ -37921,10 +38044,12 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
37921
38044
|
init_src4();
|
|
37922
38045
|
import_react_native132 = __toESM(require_react_native(), 1);
|
|
37923
38046
|
init_src4();
|
|
38047
|
+
init_src4();
|
|
37924
38048
|
import_jsx_runtime177 = __toESM(require_jsx_runtime(), 1);
|
|
37925
38049
|
init_esm8();
|
|
37926
38050
|
init_private2();
|
|
37927
38051
|
import_react149 = __toESM(require_react(), 1);
|
|
38052
|
+
import_react_native134 = __toESM(require_react_native(), 1);
|
|
37928
38053
|
init_src4();
|
|
37929
38054
|
init_async_bridges();
|
|
37930
38055
|
init_constant_bridges();
|
|
@@ -37932,23 +38057,25 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
37932
38057
|
init_esm8();
|
|
37933
38058
|
init_dist3();
|
|
37934
38059
|
import_react150 = __toESM(require_react(), 1);
|
|
37935
|
-
|
|
38060
|
+
import_react_native136 = __toESM(require_react_native(), 1);
|
|
37936
38061
|
init_src4();
|
|
37937
38062
|
init_react_native_svg();
|
|
37938
38063
|
init_esm8();
|
|
37939
|
-
import_react_native137 = __toESM(require_react_native(), 1);
|
|
37940
38064
|
import_react_native138 = __toESM(require_react_native(), 1);
|
|
37941
38065
|
import_react_native139 = __toESM(require_react_native(), 1);
|
|
38066
|
+
import_react_native140 = __toESM(require_react_native(), 1);
|
|
37942
38067
|
import_jsx_runtime178 = __toESM(require_jsx_runtime(), 1);
|
|
37943
38068
|
init_react_native_safe_area_context();
|
|
37944
|
-
|
|
38069
|
+
import_react_native141 = __toESM(require_react_native(), 1);
|
|
37945
38070
|
import_jsx_runtime179 = __toESM(require_jsx_runtime(), 1);
|
|
37946
38071
|
import_jsx_runtime180 = __toESM(require_jsx_runtime(), 1);
|
|
37947
38072
|
import_react151 = __toESM(require_react(), 1);
|
|
38073
|
+
import_react_native142 = __toESM(require_react_native(), 1);
|
|
37948
38074
|
init_src4();
|
|
37949
|
-
import_jsx_runtime181 = __toESM(require_jsx_runtime(), 1);
|
|
37950
38075
|
import_react152 = __toESM(require_react(), 1);
|
|
37951
38076
|
init_src4();
|
|
38077
|
+
init_src4();
|
|
38078
|
+
import_jsx_runtime181 = __toESM(require_jsx_runtime(), 1);
|
|
37952
38079
|
init_dist2();
|
|
37953
38080
|
__defProp2 = Object.defineProperty;
|
|
37954
38081
|
__export2 = function(target, all) {
|
|
@@ -38189,10 +38316,58 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38189
38316
|
]);
|
|
38190
38317
|
return _AppBridgeCallbackEvent;
|
|
38191
38318
|
}(BedrockEventDefinition);
|
|
38319
|
+
VisibilityChangedByTransparentServiceWebEvent = /* @__PURE__ */ function(BedrockEventDefinition4) {
|
|
38320
|
+
"use strict";
|
|
38321
|
+
_inherits(VisibilityChangedByTransparentServiceWebEvent2, BedrockEventDefinition4);
|
|
38322
|
+
var _super = _create_super(VisibilityChangedByTransparentServiceWebEvent2);
|
|
38323
|
+
function VisibilityChangedByTransparentServiceWebEvent2() {
|
|
38324
|
+
_class_call_check(this, VisibilityChangedByTransparentServiceWebEvent2);
|
|
38325
|
+
var _this;
|
|
38326
|
+
_this = _super.apply(this, arguments);
|
|
38327
|
+
_this.name = "onVisibilityChangedByTransparentServiceWeb";
|
|
38328
|
+
_this.subscription = null;
|
|
38329
|
+
return _this;
|
|
38330
|
+
}
|
|
38331
|
+
_create_class(VisibilityChangedByTransparentServiceWebEvent2, [
|
|
38332
|
+
{
|
|
38333
|
+
key: "remove",
|
|
38334
|
+
value: function remove() {
|
|
38335
|
+
var _this_subscription;
|
|
38336
|
+
(_this_subscription = this.subscription) === null || _this_subscription === void 0 ? void 0 : _this_subscription.remove();
|
|
38337
|
+
this.subscription = null;
|
|
38338
|
+
}
|
|
38339
|
+
},
|
|
38340
|
+
{
|
|
38341
|
+
key: "listener",
|
|
38342
|
+
value: function listener(options, onEvent, onError) {
|
|
38343
|
+
var _this = this;
|
|
38344
|
+
var subscription = nativeEventEmitter2.addListener("visibilityChangedByTransparentServiceWeb", function(params) {
|
|
38345
|
+
if (_this.isVisibilityChangedByTransparentServiceWebResult(params)) {
|
|
38346
|
+
if (params.callbackId === options.callbackId) {
|
|
38347
|
+
onEvent(params.isVisible);
|
|
38348
|
+
}
|
|
38349
|
+
} else {
|
|
38350
|
+
onError(new Error("Invalid visibility changed by transparent service web result"));
|
|
38351
|
+
}
|
|
38352
|
+
});
|
|
38353
|
+
this.subscription = subscription;
|
|
38354
|
+
}
|
|
38355
|
+
},
|
|
38356
|
+
{
|
|
38357
|
+
key: "isVisibilityChangedByTransparentServiceWebResult",
|
|
38358
|
+
value: function isVisibilityChangedByTransparentServiceWebResult(params) {
|
|
38359
|
+
return (typeof params === "undefined" ? "undefined" : _type_of(params)) === "object" && typeof params.callbackId === "string" && typeof params.isVisible === "boolean";
|
|
38360
|
+
}
|
|
38361
|
+
}
|
|
38362
|
+
]);
|
|
38363
|
+
return VisibilityChangedByTransparentServiceWebEvent2;
|
|
38364
|
+
}(BedrockEventDefinition);
|
|
38192
38365
|
appsInTossEvent = new BedrockEvent([
|
|
38193
|
-
new AppBridgeCallbackEvent(),
|
|
38194
38366
|
new UpdateLocationEvent(),
|
|
38195
|
-
new EntryMessageExitedEvent()
|
|
38367
|
+
new EntryMessageExitedEvent(),
|
|
38368
|
+
// Internal events
|
|
38369
|
+
new AppBridgeCallbackEvent(),
|
|
38370
|
+
new VisibilityChangedByTransparentServiceWebEvent()
|
|
38196
38371
|
]);
|
|
38197
38372
|
async_bridges_exports2 = {};
|
|
38198
38373
|
__export2(async_bridges_exports2, {
|
|
@@ -38223,6 +38398,9 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38223
38398
|
openCamera: function() {
|
|
38224
38399
|
return openCamera;
|
|
38225
38400
|
},
|
|
38401
|
+
saveBase64Data: function() {
|
|
38402
|
+
return saveBase64Data;
|
|
38403
|
+
},
|
|
38226
38404
|
setClipboardText: function() {
|
|
38227
38405
|
return setClipboardText;
|
|
38228
38406
|
},
|
|
@@ -38249,6 +38427,10 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38249
38427
|
removeItem,
|
|
38250
38428
|
clearItems
|
|
38251
38429
|
};
|
|
38430
|
+
IAP = {
|
|
38431
|
+
createOneTimePurchaseOrder,
|
|
38432
|
+
getProductItemList
|
|
38433
|
+
};
|
|
38252
38434
|
GoogleAdMob = {
|
|
38253
38435
|
loadAdMobInterstitialAd,
|
|
38254
38436
|
showAdMobInterstitialAd,
|
|
@@ -38257,7 +38439,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38257
38439
|
};
|
|
38258
38440
|
RIGHT_MARGIN2 = 24;
|
|
38259
38441
|
IOS_DEFAULT_MARGIN2 = 20;
|
|
38260
|
-
styles31 =
|
|
38442
|
+
styles31 = import_react_native139.StyleSheet.create({
|
|
38261
38443
|
ios: {
|
|
38262
38444
|
marginRight: -IOS_DEFAULT_MARGIN2 + RIGHT_MARGIN2,
|
|
38263
38445
|
flexDirection: "row"
|
|
@@ -38299,7 +38481,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38299
38481
|
openConfirm
|
|
38300
38482
|
]);
|
|
38301
38483
|
(0, import_react150.useEffect)(function() {
|
|
38302
|
-
if (
|
|
38484
|
+
if (import_react_native136.Platform.OS === "ios") {
|
|
38303
38485
|
setIosSwipeGestureEnabled({
|
|
38304
38486
|
isEnabled: false
|
|
38305
38487
|
});
|
|
@@ -38316,9 +38498,9 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38316
38498
|
handleClose();
|
|
38317
38499
|
return true;
|
|
38318
38500
|
};
|
|
38319
|
-
|
|
38501
|
+
import_react_native136.BackHandler.addEventListener("hardwareBackPress", backHandler);
|
|
38320
38502
|
return function() {
|
|
38321
|
-
|
|
38503
|
+
import_react_native136.BackHandler.removeEventListener("hardwareBackPress", backHandler);
|
|
38322
38504
|
};
|
|
38323
38505
|
}, [
|
|
38324
38506
|
handleClose
|
|
@@ -38328,7 +38510,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38328
38510
|
/* @__PURE__ */ (0, import_jsx_runtime180.jsx)(GameNavigationBar, {
|
|
38329
38511
|
onClose: handleClose
|
|
38330
38512
|
}),
|
|
38331
|
-
/* @__PURE__ */ (0, import_jsx_runtime180.jsx)(
|
|
38513
|
+
/* @__PURE__ */ (0, import_jsx_runtime180.jsx)(import_react_native136.View, {
|
|
38332
38514
|
style: {
|
|
38333
38515
|
flex: 1
|
|
38334
38516
|
},
|
|
@@ -38428,7 +38610,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38428
38610
|
}
|
|
38429
38611
|
});
|
|
38430
38612
|
function Index() {
|
|
38431
|
-
return /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(
|
|
38613
|
+
return /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(import_react_native143.View, {
|
|
38432
38614
|
style: {
|
|
38433
38615
|
flex: 1
|
|
38434
38616
|
},
|
|
@@ -38444,6 +38626,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38444
38626
|
port: Ait.webPort,
|
|
38445
38627
|
host: Ait.webHost
|
|
38446
38628
|
},
|
|
38629
|
+
allowsBackForwardNavigationGestures: Ait.allowsBackForwardNavigationGestures,
|
|
38447
38630
|
mediaPlaybackRequiresUserAction: Ait.mediaPlaybackRequiresUserAction,
|
|
38448
38631
|
allowsInlineMediaPlayback: Ait.allowsInlineMediaPlayback,
|
|
38449
38632
|
bounces: Ait.bounces,
|
|
@@ -38452,14 +38635,14 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38452
38635
|
})
|
|
38453
38636
|
});
|
|
38454
38637
|
}
|
|
38455
|
-
var import_jsx_runtime182, import_react153,
|
|
38638
|
+
var import_jsx_runtime182, import_react153, import_react_native143;
|
|
38456
38639
|
var init_pages = __esm({
|
|
38457
38640
|
"react-native/pages/index.tsx"() {
|
|
38458
38641
|
"use strict";
|
|
38459
38642
|
import_jsx_runtime182 = __toESM(require_jsx_runtime(), 1);
|
|
38460
38643
|
init_dist4();
|
|
38461
38644
|
import_react153 = __toESM(require_react(), 1);
|
|
38462
|
-
|
|
38645
|
+
import_react_native143 = __toESM(require_react_native(), 1);
|
|
38463
38646
|
}
|
|
38464
38647
|
});
|
|
38465
38648
|
|