@apps-in-toss/web-framework 0.0.0-dev.1758103372343 → 0.0.0-dev.1758275837494
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/prebuilt/dev.android.js +600 -365
- package/dist/prebuilt/dev.ios.js +598 -363
- package/dist/prebuilt/prod.android.js +234 -109
- package/dist/prebuilt/prod.ios.js +234 -109
- package/package.json +8 -8
- package/dist/cli/chunk-AZQN2M6D.js +0 -63
- package/dist/cli/chunk-PT6B3KQJ.js +0 -209904
- package/dist/cli/lib-GNFDOQZX.js +0 -1007
- package/dist/cli/typescript-WPGJO2BO.js +0 -6
- package/dist/prebuilt/prod.json +0 -14
|
@@ -11675,30 +11675,126 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
11675
11675
|
function getTossAppVersion() {
|
|
11676
11676
|
return AppsInTossModule.tossAppVersion;
|
|
11677
11677
|
}
|
|
11678
|
-
function
|
|
11679
|
-
|
|
11678
|
+
function iapCreateOneTimePurchaseOrder(params) {
|
|
11679
|
+
var _params_sku;
|
|
11680
|
+
var sku = (_params_sku = params.sku) !== null && _params_sku !== void 0 ? _params_sku : params.productId;
|
|
11681
|
+
return AppsInTossModule.iapCreateOneTimePurchaseOrder({
|
|
11682
|
+
productId: sku
|
|
11683
|
+
});
|
|
11680
11684
|
}
|
|
11681
|
-
function
|
|
11682
|
-
|
|
11683
|
-
|
|
11684
|
-
|
|
11685
|
-
|
|
11686
|
-
|
|
11687
|
-
|
|
11688
|
-
|
|
11685
|
+
function processProductGrant(params) {
|
|
11686
|
+
return AppsInTossModule.processProductGrant({
|
|
11687
|
+
orderId: params.orderId,
|
|
11688
|
+
isProductGranted: params.isProductGranted
|
|
11689
|
+
});
|
|
11690
|
+
}
|
|
11691
|
+
function requestOneTimePurchase(params) {
|
|
11692
|
+
var options = params.options, onEvent = params.onEvent, onError2 = params.onError;
|
|
11693
|
+
var _options_sku;
|
|
11694
|
+
var sku = (_options_sku = options.sku) !== null && _options_sku !== void 0 ? _options_sku : options.productId;
|
|
11695
|
+
var unregisterCallbacks = INTERNAL__appBridgeHandler.invokeAppBridgeMethod("requestOneTimePurchase", {
|
|
11696
|
+
sku
|
|
11697
|
+
}, {
|
|
11698
|
+
onPurchased: function(params2) {
|
|
11699
|
+
onEvent({
|
|
11700
|
+
type: "purchased",
|
|
11701
|
+
data: params2
|
|
11689
11702
|
});
|
|
11690
|
-
|
|
11691
|
-
|
|
11692
|
-
|
|
11693
|
-
|
|
11694
|
-
|
|
11695
|
-
|
|
11696
|
-
|
|
11697
|
-
|
|
11698
|
-
|
|
11699
|
-
}
|
|
11703
|
+
},
|
|
11704
|
+
onSuccess: function(result) {
|
|
11705
|
+
onEvent({
|
|
11706
|
+
type: "success",
|
|
11707
|
+
data: result
|
|
11708
|
+
});
|
|
11709
|
+
},
|
|
11710
|
+
onError: function(error) {
|
|
11711
|
+
onError2(error);
|
|
11712
|
+
}
|
|
11700
11713
|
});
|
|
11701
|
-
return
|
|
11714
|
+
return unregisterCallbacks;
|
|
11715
|
+
}
|
|
11716
|
+
function createOneTimePurchaseOrder(params) {
|
|
11717
|
+
var isIAPSupported = isMinVersionSupported({
|
|
11718
|
+
android: "5.219.0",
|
|
11719
|
+
ios: "5.219.0"
|
|
11720
|
+
});
|
|
11721
|
+
if (!isIAPSupported) {
|
|
11722
|
+
return noop3;
|
|
11723
|
+
}
|
|
11724
|
+
var isProcessProductGrantSupported = isMinVersionSupported({
|
|
11725
|
+
android: "5.230.0",
|
|
11726
|
+
ios: "5.230.0"
|
|
11727
|
+
});
|
|
11728
|
+
var options = params.options, onEvent = params.onEvent, onError2 = params.onError;
|
|
11729
|
+
var _options_sku;
|
|
11730
|
+
var sku = (_options_sku = options.sku) !== null && _options_sku !== void 0 ? _options_sku : options.productId;
|
|
11731
|
+
if (!isProcessProductGrantSupported) {
|
|
11732
|
+
var v1 = function() {
|
|
11733
|
+
AppsInTossModule.iapCreateOneTimePurchaseOrder({
|
|
11734
|
+
productId: sku
|
|
11735
|
+
}).then(function(response) {
|
|
11736
|
+
Promise.resolve(options.processProductGrant({
|
|
11737
|
+
orderId: response.orderId
|
|
11738
|
+
})).then(function() {
|
|
11739
|
+
onEvent({
|
|
11740
|
+
type: "success",
|
|
11741
|
+
data: response
|
|
11742
|
+
});
|
|
11743
|
+
}).catch(function(error) {
|
|
11744
|
+
onError2(error);
|
|
11745
|
+
});
|
|
11746
|
+
}).catch(function(error) {
|
|
11747
|
+
onError2(error);
|
|
11748
|
+
});
|
|
11749
|
+
return noop3;
|
|
11750
|
+
};
|
|
11751
|
+
return v1();
|
|
11752
|
+
}
|
|
11753
|
+
var unregisterCallbacks = INTERNAL__appBridgeHandler.invokeAppBridgeMethod("requestOneTimePurchase", {
|
|
11754
|
+
sku
|
|
11755
|
+
}, {
|
|
11756
|
+
onPurchased: function() {
|
|
11757
|
+
var _ref = _async_to_generator(function(params2) {
|
|
11758
|
+
var isProductGranted;
|
|
11759
|
+
return __generator(this, function(_state) {
|
|
11760
|
+
switch (_state.label) {
|
|
11761
|
+
case 0:
|
|
11762
|
+
return [
|
|
11763
|
+
4,
|
|
11764
|
+
options.processProductGrant(params2)
|
|
11765
|
+
];
|
|
11766
|
+
case 1:
|
|
11767
|
+
isProductGranted = _state.sent();
|
|
11768
|
+
return [
|
|
11769
|
+
4,
|
|
11770
|
+
AppsInTossModule.processProductGrant({
|
|
11771
|
+
orderId: params2.orderId,
|
|
11772
|
+
isProductGranted
|
|
11773
|
+
})
|
|
11774
|
+
];
|
|
11775
|
+
case 2:
|
|
11776
|
+
_state.sent();
|
|
11777
|
+
return [
|
|
11778
|
+
2
|
|
11779
|
+
];
|
|
11780
|
+
}
|
|
11781
|
+
});
|
|
11782
|
+
});
|
|
11783
|
+
return function(params2) {
|
|
11784
|
+
return _ref.apply(this, arguments);
|
|
11785
|
+
};
|
|
11786
|
+
}(),
|
|
11787
|
+
onSuccess: function(result) {
|
|
11788
|
+
onEvent({
|
|
11789
|
+
type: "success",
|
|
11790
|
+
data: result
|
|
11791
|
+
});
|
|
11792
|
+
},
|
|
11793
|
+
onError: function(error) {
|
|
11794
|
+
onError2(error);
|
|
11795
|
+
}
|
|
11796
|
+
});
|
|
11797
|
+
return unregisterCallbacks;
|
|
11702
11798
|
}
|
|
11703
11799
|
function getProductItemList() {
|
|
11704
11800
|
return _getProductItemList.apply(this, arguments);
|
|
@@ -11859,6 +11955,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
11859
11955
|
init_dist4();
|
|
11860
11956
|
init_dist4();
|
|
11861
11957
|
init_dist4();
|
|
11958
|
+
init_dist5();
|
|
11862
11959
|
init_src3();
|
|
11863
11960
|
init_dist4();
|
|
11864
11961
|
import_react_native48 = __toESM(require_react_native(), 1);
|
|
@@ -43127,6 +43224,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
43127
43224
|
init_ts_generator();
|
|
43128
43225
|
init_AppsInTossModule();
|
|
43129
43226
|
init_isMinVersionSupported();
|
|
43227
|
+
init_appBridge();
|
|
43130
43228
|
}
|
|
43131
43229
|
});
|
|
43132
43230
|
|
|
@@ -43537,7 +43635,10 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
43537
43635
|
});
|
|
43538
43636
|
hasLogged.current = true;
|
|
43539
43637
|
}
|
|
43540
|
-
}, [
|
|
43638
|
+
}, [
|
|
43639
|
+
logging,
|
|
43640
|
+
withHomeButton
|
|
43641
|
+
]);
|
|
43541
43642
|
return /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_jsx_runtime219.Fragment, {
|
|
43542
43643
|
children
|
|
43543
43644
|
});
|
|
@@ -43906,19 +44007,17 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
43906
44007
|
backEventContext,
|
|
43907
44008
|
handleBackOrClose
|
|
43908
44009
|
]);
|
|
43909
|
-
var handleAndroidBackEvent = (0, import_react214.useCallback)(function() {
|
|
43910
|
-
handleBack();
|
|
43911
|
-
return true;
|
|
43912
|
-
}, [
|
|
43913
|
-
handleBack
|
|
43914
|
-
]);
|
|
43915
44010
|
(0, import_react214.useEffect)(function() {
|
|
44011
|
+
var handleAndroidBackEvent = function() {
|
|
44012
|
+
handleBack();
|
|
44013
|
+
return true;
|
|
44014
|
+
};
|
|
43916
44015
|
import_react_native216.BackHandler.addEventListener("hardwareBackPress", handleAndroidBackEvent);
|
|
43917
44016
|
return function() {
|
|
43918
44017
|
import_react_native216.BackHandler.removeEventListener("hardwareBackPress", handleAndroidBackEvent);
|
|
43919
44018
|
};
|
|
43920
44019
|
}, [
|
|
43921
|
-
|
|
44020
|
+
handleBack
|
|
43922
44021
|
]);
|
|
43923
44022
|
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(NavigationBarImpressionArea, {
|
|
43924
44023
|
withHomeButton,
|
|
@@ -44033,10 +44132,10 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44033
44132
|
}
|
|
44034
44133
|
function AppsInTossScreenContainer(param) {
|
|
44035
44134
|
var children = param.children;
|
|
44036
|
-
var
|
|
44135
|
+
var isReactNativeService = getAppsInTossGlobals().webViewType == null;
|
|
44037
44136
|
return /* @__PURE__ */ (0, import_jsx_runtime222.jsxs)(Analytics.Screen, {
|
|
44038
44137
|
children: [
|
|
44039
|
-
|
|
44138
|
+
isReactNativeService && /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(RNNavigationBar, {}),
|
|
44040
44139
|
children
|
|
44041
44140
|
]
|
|
44042
44141
|
});
|
|
@@ -44091,19 +44190,17 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44091
44190
|
logging,
|
|
44092
44191
|
openConfirm
|
|
44093
44192
|
]);
|
|
44094
|
-
var handleAndroidBackEvent = (0, import_react222.useCallback)(function() {
|
|
44095
|
-
handleGameWebviewClose();
|
|
44096
|
-
return true;
|
|
44097
|
-
}, [
|
|
44098
|
-
handleGameWebviewClose
|
|
44099
|
-
]);
|
|
44100
44193
|
(0, import_react222.useEffect)(function() {
|
|
44194
|
+
var handleAndroidBackEvent = function() {
|
|
44195
|
+
handleGameWebviewClose();
|
|
44196
|
+
return true;
|
|
44197
|
+
};
|
|
44101
44198
|
import_react_native236.BackHandler.addEventListener("hardwareBackPress", handleAndroidBackEvent);
|
|
44102
44199
|
return function() {
|
|
44103
44200
|
return import_react_native236.BackHandler.removeEventListener("hardwareBackPress", handleAndroidBackEvent);
|
|
44104
44201
|
};
|
|
44105
44202
|
}, [
|
|
44106
|
-
|
|
44203
|
+
handleGameWebviewClose
|
|
44107
44204
|
]);
|
|
44108
44205
|
return /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(import_jsx_runtime225.Fragment, {
|
|
44109
44206
|
children: [
|
|
@@ -44115,6 +44212,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44115
44212
|
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)(import_react_native236.View, {
|
|
44116
44213
|
style: {
|
|
44117
44214
|
width: "100%",
|
|
44215
|
+
// TODO: UI관련 스타일 설정은 TDS로 이관
|
|
44118
44216
|
height: import_react_native236.Platform.OS === "ios" ? 44 : 54,
|
|
44119
44217
|
flexDirection: "row",
|
|
44120
44218
|
alignItems: "center",
|
|
@@ -44128,7 +44226,10 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44128
44226
|
children: /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(NavigationRightContent, {
|
|
44129
44227
|
fixedRightButton: initialAccessoryButton,
|
|
44130
44228
|
onPressDots: openMoreButtonBottomSheet,
|
|
44131
|
-
onPressClose:
|
|
44229
|
+
onPressClose: function() {
|
|
44230
|
+
logging.closeButtonClick();
|
|
44231
|
+
handleGameWebviewClose();
|
|
44232
|
+
},
|
|
44132
44233
|
theme: "dark"
|
|
44133
44234
|
})
|
|
44134
44235
|
})
|
|
@@ -44224,57 +44325,69 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44224
44325
|
});
|
|
44225
44326
|
};
|
|
44226
44327
|
}
|
|
44227
|
-
function
|
|
44228
|
-
|
|
44229
|
-
|
|
44230
|
-
|
|
44231
|
-
|
|
44232
|
-
|
|
44233
|
-
|
|
44234
|
-
|
|
44235
|
-
|
|
44236
|
-
|
|
44237
|
-
|
|
44238
|
-
|
|
44239
|
-
|
|
44240
|
-
|
|
44241
|
-
|
|
44242
|
-
|
|
44243
|
-
|
|
44244
|
-
|
|
44245
|
-
|
|
44246
|
-
|
|
44247
|
-
|
|
44248
|
-
|
|
44328
|
+
function reducer(state, action) {
|
|
44329
|
+
switch (action.type) {
|
|
44330
|
+
case "NAVIGATION_CHANGE": {
|
|
44331
|
+
var url = action.url, canGoForward = action.canGoForward;
|
|
44332
|
+
if (state.stack.length === 0) {
|
|
44333
|
+
return {
|
|
44334
|
+
stack: [
|
|
44335
|
+
url
|
|
44336
|
+
],
|
|
44337
|
+
index: 0
|
|
44338
|
+
};
|
|
44339
|
+
}
|
|
44340
|
+
var stack = state.stack, index = state.index;
|
|
44341
|
+
var cur = stack[index];
|
|
44342
|
+
if (url === cur) {
|
|
44343
|
+
return state;
|
|
44344
|
+
}
|
|
44345
|
+
var prev = index > 0 ? stack[index - 1] : void 0;
|
|
44346
|
+
var next = index < stack.length - 1 ? stack[index + 1] : void 0;
|
|
44347
|
+
if (prev && url === prev && canGoForward) {
|
|
44348
|
+
return _object_spread_props(_object_spread({}, state), {
|
|
44349
|
+
index: index - 1
|
|
44350
|
+
});
|
|
44351
|
+
}
|
|
44352
|
+
if (next && url === next) {
|
|
44353
|
+
return _object_spread_props(_object_spread({}, state), {
|
|
44354
|
+
index: index + 1
|
|
44355
|
+
});
|
|
44356
|
+
}
|
|
44357
|
+
var base = stack.slice(0, index + 1);
|
|
44358
|
+
var nextStack = _to_consumable_array(base).concat([
|
|
44249
44359
|
url
|
|
44250
44360
|
]);
|
|
44251
|
-
|
|
44252
|
-
|
|
44253
|
-
|
|
44254
|
-
|
|
44255
|
-
if (url === cur) {
|
|
44256
|
-
return;
|
|
44257
|
-
}
|
|
44258
|
-
var prev = index > 0 ? stack[index - 1] : void 0;
|
|
44259
|
-
var next = index < stack.length - 1 ? stack[index + 1] : void 0;
|
|
44260
|
-
if (prev && url === prev) {
|
|
44261
|
-
setIndex(function(i59) {
|
|
44262
|
-
return i59 - 1;
|
|
44263
|
-
});
|
|
44264
|
-
return;
|
|
44265
|
-
}
|
|
44266
|
-
if (next && url === next) {
|
|
44267
|
-
setIndex(function(i59) {
|
|
44268
|
-
return i59 + 1;
|
|
44269
|
-
});
|
|
44270
|
-
return;
|
|
44361
|
+
return {
|
|
44362
|
+
stack: nextStack,
|
|
44363
|
+
index: nextStack.length - 1
|
|
44364
|
+
};
|
|
44271
44365
|
}
|
|
44272
|
-
|
|
44366
|
+
default:
|
|
44367
|
+
return state;
|
|
44368
|
+
}
|
|
44369
|
+
}
|
|
44370
|
+
function useWebViewHistory() {
|
|
44371
|
+
var _useReducer = _sliced_to_array((0, import_react225.useReducer)(reducer, INITIAL_STATE), 2), state = _useReducer[0], dispatch = _useReducer[1];
|
|
44372
|
+
var onNavigationStateChange = (0, import_react225.useCallback)(function(param) {
|
|
44373
|
+
var url = param.url, canGoForward2 = param.canGoForward;
|
|
44374
|
+
dispatch({
|
|
44375
|
+
type: "NAVIGATION_CHANGE",
|
|
44376
|
+
url,
|
|
44377
|
+
canGoForward: canGoForward2
|
|
44378
|
+
});
|
|
44379
|
+
}, []);
|
|
44380
|
+
var _useMemo2 = (0, import_react225.useMemo)(function() {
|
|
44381
|
+
var canBack = state.index > 0;
|
|
44382
|
+
var canFwd = state.index >= 0 && state.index < state.stack.length - 1;
|
|
44383
|
+
return {
|
|
44384
|
+
canGoBack: canBack,
|
|
44385
|
+
canGoForward: canFwd
|
|
44386
|
+
};
|
|
44273
44387
|
}, [
|
|
44274
|
-
|
|
44275
|
-
|
|
44276
|
-
|
|
44277
|
-
]);
|
|
44388
|
+
state.index,
|
|
44389
|
+
state.stack.length
|
|
44390
|
+
]), canGoBack = _useMemo2.canGoBack, canGoForward = _useMemo2.canGoForward;
|
|
44278
44391
|
return {
|
|
44279
44392
|
onNavigationStateChange,
|
|
44280
44393
|
canGoBack,
|
|
@@ -44284,12 +44397,16 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44284
44397
|
function serializeError(error) {
|
|
44285
44398
|
return JSON.stringify(error, function(_16, value) {
|
|
44286
44399
|
if (_instanceof1(value, Error)) {
|
|
44287
|
-
return {
|
|
44400
|
+
return _object_spread_props(_object_spread({}, Object.entries(value).reduce(function(acc, param) {
|
|
44401
|
+
var _param = _sliced_to_array(param, 2), key = _param[0], value2 = _param[1];
|
|
44402
|
+
acc[key] = value2;
|
|
44403
|
+
return acc;
|
|
44404
|
+
}, {})), {
|
|
44288
44405
|
name: value.name,
|
|
44289
44406
|
message: value.message,
|
|
44290
44407
|
stack: value.stack,
|
|
44291
44408
|
__isError: true
|
|
44292
|
-
};
|
|
44409
|
+
});
|
|
44293
44410
|
}
|
|
44294
44411
|
return value;
|
|
44295
44412
|
});
|
|
@@ -44658,7 +44775,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44658
44775
|
var global2 = getAppsInTossGlobals();
|
|
44659
44776
|
var topNavigation = useTopNavigation();
|
|
44660
44777
|
var disableTextSelectionCSS = "\n (function() {\n const style = document.createElement('style');\n style.textContent = '*:not(input):not(textarea) { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-touch-callout: none; }';\n document.head.appendChild(style);\n })();\n ";
|
|
44661
|
-
var
|
|
44778
|
+
var _useState5 = _sliced_to_array((0, import_react218.useState)(props.allowsBackForwardNavigationGestures), 2), allowsBackForwardNavigationGestures = _useState5[0], setAllowsBackForwardNavigationGestures = _useState5[1];
|
|
44662
44779
|
var handler = useBridgeHandler({
|
|
44663
44780
|
onMessage,
|
|
44664
44781
|
injectedJavaScript: [
|
|
@@ -44712,7 +44829,10 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44712
44829
|
showAdMobRewardedAd: GoogleAdMob.showAdMobRewardedAd,
|
|
44713
44830
|
/** AdMobV2 */
|
|
44714
44831
|
loadAppsInTossAdMob: GoogleAdMob.loadAppsInTossAdMob,
|
|
44715
|
-
showAppsInTossAdMob: GoogleAdMob.showAppsInTossAdMob
|
|
44832
|
+
showAppsInTossAdMob: GoogleAdMob.showAppsInTossAdMob,
|
|
44833
|
+
/** IAP */
|
|
44834
|
+
iapCreateOneTimePurchaseOrder: IAP.createOneTimePurchaseOrder,
|
|
44835
|
+
requestOneTimePurchase
|
|
44716
44836
|
}),
|
|
44717
44837
|
constantHandlerMap: _object_spread_props(_object_spread(_object_spread_props(_object_spread({}, constant_bridges_exports2, constant_bridges_exports), {
|
|
44718
44838
|
getSafeAreaTop: function() {
|
|
@@ -44783,8 +44903,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44783
44903
|
removeStorageItem: Storage.removeItem,
|
|
44784
44904
|
clearItems: Storage.clearItems,
|
|
44785
44905
|
/** IAP */
|
|
44786
|
-
|
|
44787
|
-
|
|
44906
|
+
iapGetProductItemList: IAP.getProductItemList,
|
|
44907
|
+
iapCreateOneTimePurchaseOrder,
|
|
44908
|
+
processProductGrant
|
|
44788
44909
|
})
|
|
44789
44910
|
});
|
|
44790
44911
|
var headerPropForExternalWebView = (0, import_react218.useMemo)(function() {
|
|
@@ -44832,7 +44953,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44832
44953
|
allowsBackForwardNavigationGestures
|
|
44833
44954
|
}));
|
|
44834
44955
|
}
|
|
44835
|
-
var import_react_native207, import_react209, import_react210, import_react211, import_react212, import_jsx_runtime218, import_react213, import_react214, import_react_native216, import_react215, import_jsx_runtime219, import_react216, import_react217, import_react_native223, import_jsx_runtime220, import_jsx_runtime221, import_jsx_runtime222, import_react218, import_react_native226, import_react219, import_react_native227, import_react220, import_react_native229, import_react221, import_jsx_runtime223, import_jsx_runtime224, import_react222, import_react_native236, import_jsx_runtime225, import_jsx_runtime226, import_react223, import_react_native237, import_react224, import_jsx_runtime227, import_react225, import_jsx_runtime228, import_react226, import_react_native241, import_react227, import_jsx_runtime229, env, EXIT_IMPRESSION_LOG_NAME, EXIT_IMPRESSION_SCHEMA_ID, ENTRY_APP_EVENT_SCHEMA_ID, AppEvent, UPDATE_SCHEME, 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, 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, APP_BRIDGE_METHOD_NAME, AppsInToss, GAME_PROFILE_WEBVIEW_URL, GAME_CENTER_MIN_VERSION3, useGameProfileToast, DEFAULT_ERROR, INTERNAL__onVisibilityChangedByTransparentServiceWeb, openTransparentWebView, useGameCenterProfile, Z_INDEX, GameProfile, overlayStyle, GameWebView, extractDateFromUUIDv7, getGroupId, getReferrer, trackScreen, PartnerWebView, globalEventListenerMap, FontA11yCategory, androidFontScaleMap, iosScaleToAndroidScale, operationalEnvironment, TYPES, WEBVIEW_TYPES, Analytics2;
|
|
44956
|
+
var import_react_native207, import_react209, import_react210, import_react211, import_react212, import_jsx_runtime218, import_react213, import_react214, import_react_native216, import_react215, import_jsx_runtime219, import_react216, import_react217, import_react_native223, import_jsx_runtime220, import_jsx_runtime221, import_jsx_runtime222, import_react218, import_react_native226, import_react219, import_react_native227, import_react220, import_react_native229, import_react221, import_jsx_runtime223, import_jsx_runtime224, import_react222, import_react_native236, import_jsx_runtime225, import_jsx_runtime226, import_react223, import_react_native237, import_react224, import_jsx_runtime227, import_react225, import_jsx_runtime228, import_react226, import_react_native241, import_react227, import_jsx_runtime229, env, EXIT_IMPRESSION_LOG_NAME, EXIT_IMPRESSION_SCHEMA_ID, ENTRY_APP_EVENT_SCHEMA_ID, AppEvent, UPDATE_SCHEME, 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, 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, APP_BRIDGE_METHOD_NAME, AppsInToss, GAME_PROFILE_WEBVIEW_URL, GAME_CENTER_MIN_VERSION3, useGameProfileToast, DEFAULT_ERROR, INTERNAL__onVisibilityChangedByTransparentServiceWeb, openTransparentWebView, useGameCenterProfile, Z_INDEX, GameProfile, overlayStyle, GameWebView, INITIAL_STATE, extractDateFromUUIDv7, getGroupId, getReferrer, trackScreen, PartnerWebView, globalEventListenerMap, FontA11yCategory, androidFontScaleMap, iosScaleToAndroidScale, operationalEnvironment, TYPES, WEBVIEW_TYPES, Analytics2;
|
|
44836
44957
|
var init_dist8 = __esm({
|
|
44837
44958
|
"../../.yarn/__virtual__/@apps-in-toss-framework-virtual-574b136add/1/apps-in-toss-packages/framework/dist/index.js"() {
|
|
44838
44959
|
"use strict";
|
|
@@ -45001,7 +45122,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45001
45122
|
AppsInToss = {
|
|
45002
45123
|
registerApp
|
|
45003
45124
|
};
|
|
45004
|
-
GAME_PROFILE_WEBVIEW_URL = "
|
|
45125
|
+
GAME_PROFILE_WEBVIEW_URL = "servicetoss://game-center/profile";
|
|
45005
45126
|
GAME_CENTER_MIN_VERSION3 = {
|
|
45006
45127
|
android: "5.221.0",
|
|
45007
45128
|
ios: "5.221.0"
|
|
@@ -45437,6 +45558,10 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45437
45558
|
]
|
|
45438
45559
|
});
|
|
45439
45560
|
});
|
|
45561
|
+
INITIAL_STATE = {
|
|
45562
|
+
stack: [],
|
|
45563
|
+
index: -1
|
|
45564
|
+
};
|
|
45440
45565
|
extractDateFromUUIDv7 = function(uuid) {
|
|
45441
45566
|
var timestampHex = uuid.split("-").join("").slice(0, 12);
|
|
45442
45567
|
var timestamp = Number.parseInt(timestampHex, 16);
|
|
@@ -45483,8 +45608,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45483
45608
|
var refs = mergeRefs4(ref, webViewRef);
|
|
45484
45609
|
var captureExitLog = useCaptureExitLog().captureExitLog;
|
|
45485
45610
|
var _useWebViewHistory = useWebViewHistory(), canGoBack = _useWebViewHistory.canGoBack, onNavigationStateChange = _useWebViewHistory.onNavigationStateChange;
|
|
45486
|
-
var historyBackScript = "\n (function() {\n history.back();\n true;\n })();\n ";
|
|
45487
|
-
var historyHomeScript = "\n (function() {\n
|
|
45611
|
+
var historyBackScript = "\n (function() {\n window.history.back();\n true;\n })();\n ";
|
|
45612
|
+
var historyHomeScript = "\n (function() {\n window.location.href = '/';\n true;\n })();\n ";
|
|
45488
45613
|
var handleBackEvent = (0, import_react223.useCallback)(function() {
|
|
45489
45614
|
if (canGoBack) {
|
|
45490
45615
|
var _webViewRef_current;
|
|
@@ -45498,25 +45623,25 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45498
45623
|
captureExitLog,
|
|
45499
45624
|
historyBackScript
|
|
45500
45625
|
]);
|
|
45501
|
-
var handleAndroidBackEvent = (0, import_react223.useCallback)(function() {
|
|
45502
|
-
if (canGoBack) {
|
|
45503
|
-
var _webViewRef_current;
|
|
45504
|
-
(_webViewRef_current = webViewRef.current) === null || _webViewRef_current === void 0 ? void 0 : _webViewRef_current.injectJavaScript(historyBackScript);
|
|
45505
|
-
return true;
|
|
45506
|
-
} else {
|
|
45507
|
-
return false;
|
|
45508
|
-
}
|
|
45509
|
-
}, [
|
|
45510
|
-
canGoBack,
|
|
45511
|
-
historyBackScript
|
|
45512
|
-
]);
|
|
45513
45626
|
(0, import_react223.useEffect)(function() {
|
|
45627
|
+
var handleAndroidBackEvent = function() {
|
|
45628
|
+
if (canGoBack) {
|
|
45629
|
+
var _webViewRef_current;
|
|
45630
|
+
(_webViewRef_current = webViewRef.current) === null || _webViewRef_current === void 0 ? void 0 : _webViewRef_current.injectJavaScript(historyBackScript);
|
|
45631
|
+
return true;
|
|
45632
|
+
} else {
|
|
45633
|
+
captureExitLog(Date.now());
|
|
45634
|
+
return false;
|
|
45635
|
+
}
|
|
45636
|
+
};
|
|
45514
45637
|
import_react_native237.BackHandler.addEventListener("hardwareBackPress", handleAndroidBackEvent);
|
|
45515
45638
|
return function() {
|
|
45516
45639
|
return import_react_native237.BackHandler.removeEventListener("hardwareBackPress", handleAndroidBackEvent);
|
|
45517
45640
|
};
|
|
45518
45641
|
}, [
|
|
45519
|
-
|
|
45642
|
+
canGoBack,
|
|
45643
|
+
captureExitLog,
|
|
45644
|
+
historyBackScript
|
|
45520
45645
|
]);
|
|
45521
45646
|
var handleHomeIconButtonClick = (0, import_react223.useCallback)(function() {
|
|
45522
45647
|
var _webViewRef_current;
|