@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
|
@@ -11684,30 +11684,126 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
11684
11684
|
function getTossAppVersion() {
|
|
11685
11685
|
return AppsInTossModule.tossAppVersion;
|
|
11686
11686
|
}
|
|
11687
|
-
function
|
|
11688
|
-
|
|
11687
|
+
function iapCreateOneTimePurchaseOrder(params) {
|
|
11688
|
+
var _params_sku;
|
|
11689
|
+
var sku = (_params_sku = params.sku) !== null && _params_sku !== void 0 ? _params_sku : params.productId;
|
|
11690
|
+
return AppsInTossModule.iapCreateOneTimePurchaseOrder({
|
|
11691
|
+
productId: sku
|
|
11692
|
+
});
|
|
11689
11693
|
}
|
|
11690
|
-
function
|
|
11691
|
-
|
|
11692
|
-
|
|
11693
|
-
|
|
11694
|
-
|
|
11695
|
-
|
|
11696
|
-
|
|
11697
|
-
|
|
11694
|
+
function processProductGrant(params) {
|
|
11695
|
+
return AppsInTossModule.processProductGrant({
|
|
11696
|
+
orderId: params.orderId,
|
|
11697
|
+
isProductGranted: params.isProductGranted
|
|
11698
|
+
});
|
|
11699
|
+
}
|
|
11700
|
+
function requestOneTimePurchase(params) {
|
|
11701
|
+
var options = params.options, onEvent = params.onEvent, onError2 = params.onError;
|
|
11702
|
+
var _options_sku;
|
|
11703
|
+
var sku = (_options_sku = options.sku) !== null && _options_sku !== void 0 ? _options_sku : options.productId;
|
|
11704
|
+
var unregisterCallbacks = INTERNAL__appBridgeHandler.invokeAppBridgeMethod("requestOneTimePurchase", {
|
|
11705
|
+
sku
|
|
11706
|
+
}, {
|
|
11707
|
+
onPurchased: function(params2) {
|
|
11708
|
+
onEvent({
|
|
11709
|
+
type: "purchased",
|
|
11710
|
+
data: params2
|
|
11698
11711
|
});
|
|
11699
|
-
|
|
11700
|
-
|
|
11701
|
-
|
|
11702
|
-
|
|
11703
|
-
|
|
11704
|
-
|
|
11705
|
-
|
|
11706
|
-
|
|
11707
|
-
|
|
11708
|
-
}
|
|
11712
|
+
},
|
|
11713
|
+
onSuccess: function(result) {
|
|
11714
|
+
onEvent({
|
|
11715
|
+
type: "success",
|
|
11716
|
+
data: result
|
|
11717
|
+
});
|
|
11718
|
+
},
|
|
11719
|
+
onError: function(error) {
|
|
11720
|
+
onError2(error);
|
|
11721
|
+
}
|
|
11709
11722
|
});
|
|
11710
|
-
return
|
|
11723
|
+
return unregisterCallbacks;
|
|
11724
|
+
}
|
|
11725
|
+
function createOneTimePurchaseOrder(params) {
|
|
11726
|
+
var isIAPSupported = isMinVersionSupported({
|
|
11727
|
+
android: "5.219.0",
|
|
11728
|
+
ios: "5.219.0"
|
|
11729
|
+
});
|
|
11730
|
+
if (!isIAPSupported) {
|
|
11731
|
+
return noop3;
|
|
11732
|
+
}
|
|
11733
|
+
var isProcessProductGrantSupported = isMinVersionSupported({
|
|
11734
|
+
android: "5.230.0",
|
|
11735
|
+
ios: "5.230.0"
|
|
11736
|
+
});
|
|
11737
|
+
var options = params.options, onEvent = params.onEvent, onError2 = params.onError;
|
|
11738
|
+
var _options_sku;
|
|
11739
|
+
var sku = (_options_sku = options.sku) !== null && _options_sku !== void 0 ? _options_sku : options.productId;
|
|
11740
|
+
if (!isProcessProductGrantSupported) {
|
|
11741
|
+
var v1 = function() {
|
|
11742
|
+
AppsInTossModule.iapCreateOneTimePurchaseOrder({
|
|
11743
|
+
productId: sku
|
|
11744
|
+
}).then(function(response) {
|
|
11745
|
+
Promise.resolve(options.processProductGrant({
|
|
11746
|
+
orderId: response.orderId
|
|
11747
|
+
})).then(function() {
|
|
11748
|
+
onEvent({
|
|
11749
|
+
type: "success",
|
|
11750
|
+
data: response
|
|
11751
|
+
});
|
|
11752
|
+
}).catch(function(error) {
|
|
11753
|
+
onError2(error);
|
|
11754
|
+
});
|
|
11755
|
+
}).catch(function(error) {
|
|
11756
|
+
onError2(error);
|
|
11757
|
+
});
|
|
11758
|
+
return noop3;
|
|
11759
|
+
};
|
|
11760
|
+
return v1();
|
|
11761
|
+
}
|
|
11762
|
+
var unregisterCallbacks = INTERNAL__appBridgeHandler.invokeAppBridgeMethod("requestOneTimePurchase", {
|
|
11763
|
+
sku
|
|
11764
|
+
}, {
|
|
11765
|
+
onPurchased: function() {
|
|
11766
|
+
var _ref = _async_to_generator(function(params2) {
|
|
11767
|
+
var isProductGranted;
|
|
11768
|
+
return __generator(this, function(_state) {
|
|
11769
|
+
switch (_state.label) {
|
|
11770
|
+
case 0:
|
|
11771
|
+
return [
|
|
11772
|
+
4,
|
|
11773
|
+
options.processProductGrant(params2)
|
|
11774
|
+
];
|
|
11775
|
+
case 1:
|
|
11776
|
+
isProductGranted = _state.sent();
|
|
11777
|
+
return [
|
|
11778
|
+
4,
|
|
11779
|
+
AppsInTossModule.processProductGrant({
|
|
11780
|
+
orderId: params2.orderId,
|
|
11781
|
+
isProductGranted
|
|
11782
|
+
})
|
|
11783
|
+
];
|
|
11784
|
+
case 2:
|
|
11785
|
+
_state.sent();
|
|
11786
|
+
return [
|
|
11787
|
+
2
|
|
11788
|
+
];
|
|
11789
|
+
}
|
|
11790
|
+
});
|
|
11791
|
+
});
|
|
11792
|
+
return function(params2) {
|
|
11793
|
+
return _ref.apply(this, arguments);
|
|
11794
|
+
};
|
|
11795
|
+
}(),
|
|
11796
|
+
onSuccess: function(result) {
|
|
11797
|
+
onEvent({
|
|
11798
|
+
type: "success",
|
|
11799
|
+
data: result
|
|
11800
|
+
});
|
|
11801
|
+
},
|
|
11802
|
+
onError: function(error) {
|
|
11803
|
+
onError2(error);
|
|
11804
|
+
}
|
|
11805
|
+
});
|
|
11806
|
+
return unregisterCallbacks;
|
|
11711
11807
|
}
|
|
11712
11808
|
function getProductItemList() {
|
|
11713
11809
|
return _getProductItemList.apply(this, arguments);
|
|
@@ -11868,6 +11964,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
11868
11964
|
init_dist4();
|
|
11869
11965
|
init_dist4();
|
|
11870
11966
|
init_dist4();
|
|
11967
|
+
init_dist5();
|
|
11871
11968
|
init_src3();
|
|
11872
11969
|
init_dist4();
|
|
11873
11970
|
import_react_native48 = __toESM(require_react_native(), 1);
|
|
@@ -43136,6 +43233,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
43136
43233
|
init_ts_generator();
|
|
43137
43234
|
init_AppsInTossModule();
|
|
43138
43235
|
init_isMinVersionSupported();
|
|
43236
|
+
init_appBridge();
|
|
43139
43237
|
}
|
|
43140
43238
|
});
|
|
43141
43239
|
|
|
@@ -43546,7 +43644,10 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
43546
43644
|
});
|
|
43547
43645
|
hasLogged.current = true;
|
|
43548
43646
|
}
|
|
43549
|
-
}, [
|
|
43647
|
+
}, [
|
|
43648
|
+
logging,
|
|
43649
|
+
withHomeButton
|
|
43650
|
+
]);
|
|
43550
43651
|
return /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(import_jsx_runtime218.Fragment, {
|
|
43551
43652
|
children
|
|
43552
43653
|
});
|
|
@@ -43915,19 +44016,17 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
43915
44016
|
backEventContext,
|
|
43916
44017
|
handleBackOrClose
|
|
43917
44018
|
]);
|
|
43918
|
-
var handleAndroidBackEvent = (0, import_react215.useCallback)(function() {
|
|
43919
|
-
handleBack();
|
|
43920
|
-
return true;
|
|
43921
|
-
}, [
|
|
43922
|
-
handleBack
|
|
43923
|
-
]);
|
|
43924
44019
|
(0, import_react215.useEffect)(function() {
|
|
44020
|
+
var handleAndroidBackEvent = function() {
|
|
44021
|
+
handleBack();
|
|
44022
|
+
return true;
|
|
44023
|
+
};
|
|
43925
44024
|
import_react_native216.BackHandler.addEventListener("hardwareBackPress", handleAndroidBackEvent);
|
|
43926
44025
|
return function() {
|
|
43927
44026
|
import_react_native216.BackHandler.removeEventListener("hardwareBackPress", handleAndroidBackEvent);
|
|
43928
44027
|
};
|
|
43929
44028
|
}, [
|
|
43930
|
-
|
|
44029
|
+
handleBack
|
|
43931
44030
|
]);
|
|
43932
44031
|
return /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(NavigationBarImpressionArea, {
|
|
43933
44032
|
withHomeButton,
|
|
@@ -44042,10 +44141,10 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44042
44141
|
}
|
|
44043
44142
|
function AppsInTossScreenContainer(param) {
|
|
44044
44143
|
var children = param.children;
|
|
44045
|
-
var
|
|
44144
|
+
var isReactNativeService = getAppsInTossGlobals().webViewType == null;
|
|
44046
44145
|
return /* @__PURE__ */ (0, import_jsx_runtime221.jsxs)(Analytics.Screen, {
|
|
44047
44146
|
children: [
|
|
44048
|
-
|
|
44147
|
+
isReactNativeService && /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(RNNavigationBar, {}),
|
|
44049
44148
|
children
|
|
44050
44149
|
]
|
|
44051
44150
|
});
|
|
@@ -44100,19 +44199,17 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44100
44199
|
logging,
|
|
44101
44200
|
openConfirm
|
|
44102
44201
|
]);
|
|
44103
|
-
var handleAndroidBackEvent = (0, import_react223.useCallback)(function() {
|
|
44104
|
-
handleGameWebviewClose();
|
|
44105
|
-
return true;
|
|
44106
|
-
}, [
|
|
44107
|
-
handleGameWebviewClose
|
|
44108
|
-
]);
|
|
44109
44202
|
(0, import_react223.useEffect)(function() {
|
|
44203
|
+
var handleAndroidBackEvent = function() {
|
|
44204
|
+
handleGameWebviewClose();
|
|
44205
|
+
return true;
|
|
44206
|
+
};
|
|
44110
44207
|
import_react_native236.BackHandler.addEventListener("hardwareBackPress", handleAndroidBackEvent);
|
|
44111
44208
|
return function() {
|
|
44112
44209
|
return import_react_native236.BackHandler.removeEventListener("hardwareBackPress", handleAndroidBackEvent);
|
|
44113
44210
|
};
|
|
44114
44211
|
}, [
|
|
44115
|
-
|
|
44212
|
+
handleGameWebviewClose
|
|
44116
44213
|
]);
|
|
44117
44214
|
return /* @__PURE__ */ (0, import_jsx_runtime224.jsxs)(import_jsx_runtime224.Fragment, {
|
|
44118
44215
|
children: [
|
|
@@ -44124,6 +44221,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44124
44221
|
/* @__PURE__ */ (0, import_jsx_runtime224.jsx)(import_react_native236.View, {
|
|
44125
44222
|
style: {
|
|
44126
44223
|
width: "100%",
|
|
44224
|
+
// TODO: UI관련 스타일 설정은 TDS로 이관
|
|
44127
44225
|
height: import_react_native236.Platform.OS === "ios" ? 44 : 54,
|
|
44128
44226
|
flexDirection: "row",
|
|
44129
44227
|
alignItems: "center",
|
|
@@ -44137,7 +44235,10 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44137
44235
|
children: /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(NavigationRightContent, {
|
|
44138
44236
|
fixedRightButton: initialAccessoryButton,
|
|
44139
44237
|
onPressDots: openMoreButtonBottomSheet,
|
|
44140
|
-
onPressClose:
|
|
44238
|
+
onPressClose: function() {
|
|
44239
|
+
logging.closeButtonClick();
|
|
44240
|
+
handleGameWebviewClose();
|
|
44241
|
+
},
|
|
44141
44242
|
theme: "dark"
|
|
44142
44243
|
})
|
|
44143
44244
|
})
|
|
@@ -44233,57 +44334,69 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44233
44334
|
});
|
|
44234
44335
|
};
|
|
44235
44336
|
}
|
|
44236
|
-
function
|
|
44237
|
-
|
|
44238
|
-
|
|
44239
|
-
|
|
44240
|
-
|
|
44241
|
-
|
|
44242
|
-
|
|
44243
|
-
|
|
44244
|
-
|
|
44245
|
-
|
|
44246
|
-
|
|
44247
|
-
|
|
44248
|
-
|
|
44249
|
-
|
|
44250
|
-
|
|
44251
|
-
|
|
44252
|
-
|
|
44253
|
-
|
|
44254
|
-
|
|
44255
|
-
|
|
44256
|
-
|
|
44257
|
-
|
|
44337
|
+
function reducer(state, action) {
|
|
44338
|
+
switch (action.type) {
|
|
44339
|
+
case "NAVIGATION_CHANGE": {
|
|
44340
|
+
var url = action.url, canGoForward = action.canGoForward;
|
|
44341
|
+
if (state.stack.length === 0) {
|
|
44342
|
+
return {
|
|
44343
|
+
stack: [
|
|
44344
|
+
url
|
|
44345
|
+
],
|
|
44346
|
+
index: 0
|
|
44347
|
+
};
|
|
44348
|
+
}
|
|
44349
|
+
var stack = state.stack, index = state.index;
|
|
44350
|
+
var cur = stack[index];
|
|
44351
|
+
if (url === cur) {
|
|
44352
|
+
return state;
|
|
44353
|
+
}
|
|
44354
|
+
var prev = index > 0 ? stack[index - 1] : void 0;
|
|
44355
|
+
var next = index < stack.length - 1 ? stack[index + 1] : void 0;
|
|
44356
|
+
if (prev && url === prev && canGoForward) {
|
|
44357
|
+
return _object_spread_props(_object_spread({}, state), {
|
|
44358
|
+
index: index - 1
|
|
44359
|
+
});
|
|
44360
|
+
}
|
|
44361
|
+
if (next && url === next) {
|
|
44362
|
+
return _object_spread_props(_object_spread({}, state), {
|
|
44363
|
+
index: index + 1
|
|
44364
|
+
});
|
|
44365
|
+
}
|
|
44366
|
+
var base = stack.slice(0, index + 1);
|
|
44367
|
+
var nextStack = _to_consumable_array(base).concat([
|
|
44258
44368
|
url
|
|
44259
44369
|
]);
|
|
44260
|
-
|
|
44261
|
-
|
|
44262
|
-
|
|
44263
|
-
|
|
44264
|
-
if (url === cur) {
|
|
44265
|
-
return;
|
|
44266
|
-
}
|
|
44267
|
-
var prev = index > 0 ? stack[index - 1] : void 0;
|
|
44268
|
-
var next = index < stack.length - 1 ? stack[index + 1] : void 0;
|
|
44269
|
-
if (prev && url === prev) {
|
|
44270
|
-
setIndex(function(i59) {
|
|
44271
|
-
return i59 - 1;
|
|
44272
|
-
});
|
|
44273
|
-
return;
|
|
44274
|
-
}
|
|
44275
|
-
if (next && url === next) {
|
|
44276
|
-
setIndex(function(i59) {
|
|
44277
|
-
return i59 + 1;
|
|
44278
|
-
});
|
|
44279
|
-
return;
|
|
44370
|
+
return {
|
|
44371
|
+
stack: nextStack,
|
|
44372
|
+
index: nextStack.length - 1
|
|
44373
|
+
};
|
|
44280
44374
|
}
|
|
44281
|
-
|
|
44375
|
+
default:
|
|
44376
|
+
return state;
|
|
44377
|
+
}
|
|
44378
|
+
}
|
|
44379
|
+
function useWebViewHistory() {
|
|
44380
|
+
var _useReducer = _sliced_to_array((0, import_react226.useReducer)(reducer, INITIAL_STATE), 2), state = _useReducer[0], dispatch = _useReducer[1];
|
|
44381
|
+
var onNavigationStateChange = (0, import_react226.useCallback)(function(param) {
|
|
44382
|
+
var url = param.url, canGoForward2 = param.canGoForward;
|
|
44383
|
+
dispatch({
|
|
44384
|
+
type: "NAVIGATION_CHANGE",
|
|
44385
|
+
url,
|
|
44386
|
+
canGoForward: canGoForward2
|
|
44387
|
+
});
|
|
44388
|
+
}, []);
|
|
44389
|
+
var _useMemo2 = (0, import_react226.useMemo)(function() {
|
|
44390
|
+
var canBack = state.index > 0;
|
|
44391
|
+
var canFwd = state.index >= 0 && state.index < state.stack.length - 1;
|
|
44392
|
+
return {
|
|
44393
|
+
canGoBack: canBack,
|
|
44394
|
+
canGoForward: canFwd
|
|
44395
|
+
};
|
|
44282
44396
|
}, [
|
|
44283
|
-
|
|
44284
|
-
|
|
44285
|
-
|
|
44286
|
-
]);
|
|
44397
|
+
state.index,
|
|
44398
|
+
state.stack.length
|
|
44399
|
+
]), canGoBack = _useMemo2.canGoBack, canGoForward = _useMemo2.canGoForward;
|
|
44287
44400
|
return {
|
|
44288
44401
|
onNavigationStateChange,
|
|
44289
44402
|
canGoBack,
|
|
@@ -44293,12 +44406,16 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44293
44406
|
function serializeError(error) {
|
|
44294
44407
|
return JSON.stringify(error, function(_16, value) {
|
|
44295
44408
|
if (_instanceof1(value, Error)) {
|
|
44296
|
-
return {
|
|
44409
|
+
return _object_spread_props(_object_spread({}, Object.entries(value).reduce(function(acc, param) {
|
|
44410
|
+
var _param = _sliced_to_array(param, 2), key = _param[0], value2 = _param[1];
|
|
44411
|
+
acc[key] = value2;
|
|
44412
|
+
return acc;
|
|
44413
|
+
}, {})), {
|
|
44297
44414
|
name: value.name,
|
|
44298
44415
|
message: value.message,
|
|
44299
44416
|
stack: value.stack,
|
|
44300
44417
|
__isError: true
|
|
44301
|
-
};
|
|
44418
|
+
});
|
|
44302
44419
|
}
|
|
44303
44420
|
return value;
|
|
44304
44421
|
});
|
|
@@ -44667,7 +44784,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44667
44784
|
var global2 = getAppsInTossGlobals();
|
|
44668
44785
|
var topNavigation = useTopNavigation();
|
|
44669
44786
|
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 ";
|
|
44670
|
-
var
|
|
44787
|
+
var _useState5 = _sliced_to_array((0, import_react219.useState)(props.allowsBackForwardNavigationGestures), 2), allowsBackForwardNavigationGestures = _useState5[0], setAllowsBackForwardNavigationGestures = _useState5[1];
|
|
44671
44788
|
var handler = useBridgeHandler({
|
|
44672
44789
|
onMessage,
|
|
44673
44790
|
injectedJavaScript: [
|
|
@@ -44721,7 +44838,10 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44721
44838
|
showAdMobRewardedAd: GoogleAdMob.showAdMobRewardedAd,
|
|
44722
44839
|
/** AdMobV2 */
|
|
44723
44840
|
loadAppsInTossAdMob: GoogleAdMob.loadAppsInTossAdMob,
|
|
44724
|
-
showAppsInTossAdMob: GoogleAdMob.showAppsInTossAdMob
|
|
44841
|
+
showAppsInTossAdMob: GoogleAdMob.showAppsInTossAdMob,
|
|
44842
|
+
/** IAP */
|
|
44843
|
+
iapCreateOneTimePurchaseOrder: IAP.createOneTimePurchaseOrder,
|
|
44844
|
+
requestOneTimePurchase
|
|
44725
44845
|
}),
|
|
44726
44846
|
constantHandlerMap: _object_spread_props(_object_spread(_object_spread_props(_object_spread({}, constant_bridges_exports2, constant_bridges_exports), {
|
|
44727
44847
|
getSafeAreaTop: function() {
|
|
@@ -44792,8 +44912,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44792
44912
|
removeStorageItem: Storage.removeItem,
|
|
44793
44913
|
clearItems: Storage.clearItems,
|
|
44794
44914
|
/** IAP */
|
|
44795
|
-
|
|
44796
|
-
|
|
44915
|
+
iapGetProductItemList: IAP.getProductItemList,
|
|
44916
|
+
iapCreateOneTimePurchaseOrder,
|
|
44917
|
+
processProductGrant
|
|
44797
44918
|
})
|
|
44798
44919
|
});
|
|
44799
44920
|
var headerPropForExternalWebView = (0, import_react219.useMemo)(function() {
|
|
@@ -44841,7 +44962,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44841
44962
|
allowsBackForwardNavigationGestures
|
|
44842
44963
|
}));
|
|
44843
44964
|
}
|
|
44844
|
-
var import_react_native207, import_react210, import_react211, import_react212, import_react213, import_jsx_runtime217, import_react214, import_react215, import_react_native216, import_react216, import_jsx_runtime218, import_react217, import_react218, import_react_native223, import_jsx_runtime219, import_jsx_runtime220, import_jsx_runtime221, import_react219, import_react_native226, import_react220, import_react_native227, import_react221, import_react_native229, import_react222, import_jsx_runtime222, import_jsx_runtime223, import_react223, import_react_native236, import_jsx_runtime224, import_jsx_runtime225, import_react224, import_react_native237, import_react225, import_jsx_runtime226, import_react226, import_jsx_runtime227, import_react227, import_react_native241, import_react228, import_jsx_runtime228, 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;
|
|
44965
|
+
var import_react_native207, import_react210, import_react211, import_react212, import_react213, import_jsx_runtime217, import_react214, import_react215, import_react_native216, import_react216, import_jsx_runtime218, import_react217, import_react218, import_react_native223, import_jsx_runtime219, import_jsx_runtime220, import_jsx_runtime221, import_react219, import_react_native226, import_react220, import_react_native227, import_react221, import_react_native229, import_react222, import_jsx_runtime222, import_jsx_runtime223, import_react223, import_react_native236, import_jsx_runtime224, import_jsx_runtime225, import_react224, import_react_native237, import_react225, import_jsx_runtime226, import_react226, import_jsx_runtime227, import_react227, import_react_native241, import_react228, import_jsx_runtime228, 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;
|
|
44845
44966
|
var init_dist8 = __esm({
|
|
44846
44967
|
"../../.yarn/__virtual__/@apps-in-toss-framework-virtual-574b136add/1/apps-in-toss-packages/framework/dist/index.js"() {
|
|
44847
44968
|
"use strict";
|
|
@@ -45010,7 +45131,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45010
45131
|
AppsInToss = {
|
|
45011
45132
|
registerApp
|
|
45012
45133
|
};
|
|
45013
|
-
GAME_PROFILE_WEBVIEW_URL = "
|
|
45134
|
+
GAME_PROFILE_WEBVIEW_URL = "servicetoss://game-center/profile";
|
|
45014
45135
|
GAME_CENTER_MIN_VERSION3 = {
|
|
45015
45136
|
android: "5.221.0",
|
|
45016
45137
|
ios: "5.221.0"
|
|
@@ -45446,6 +45567,10 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45446
45567
|
]
|
|
45447
45568
|
});
|
|
45448
45569
|
});
|
|
45570
|
+
INITIAL_STATE = {
|
|
45571
|
+
stack: [],
|
|
45572
|
+
index: -1
|
|
45573
|
+
};
|
|
45449
45574
|
extractDateFromUUIDv7 = function(uuid) {
|
|
45450
45575
|
var timestampHex = uuid.split("-").join("").slice(0, 12);
|
|
45451
45576
|
var timestamp = Number.parseInt(timestampHex, 16);
|
|
@@ -45492,8 +45617,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45492
45617
|
var refs = mergeRefs4(ref, webViewRef);
|
|
45493
45618
|
var captureExitLog = useCaptureExitLog().captureExitLog;
|
|
45494
45619
|
var _useWebViewHistory = useWebViewHistory(), canGoBack = _useWebViewHistory.canGoBack, onNavigationStateChange = _useWebViewHistory.onNavigationStateChange;
|
|
45495
|
-
var historyBackScript = "\n (function() {\n history.back();\n true;\n })();\n ";
|
|
45496
|
-
var historyHomeScript = "\n (function() {\n
|
|
45620
|
+
var historyBackScript = "\n (function() {\n window.history.back();\n true;\n })();\n ";
|
|
45621
|
+
var historyHomeScript = "\n (function() {\n window.location.href = '/';\n true;\n })();\n ";
|
|
45497
45622
|
var handleBackEvent = (0, import_react224.useCallback)(function() {
|
|
45498
45623
|
if (canGoBack) {
|
|
45499
45624
|
var _webViewRef_current;
|
|
@@ -45507,25 +45632,25 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45507
45632
|
captureExitLog,
|
|
45508
45633
|
historyBackScript
|
|
45509
45634
|
]);
|
|
45510
|
-
var handleAndroidBackEvent = (0, import_react224.useCallback)(function() {
|
|
45511
|
-
if (canGoBack) {
|
|
45512
|
-
var _webViewRef_current;
|
|
45513
|
-
(_webViewRef_current = webViewRef.current) === null || _webViewRef_current === void 0 ? void 0 : _webViewRef_current.injectJavaScript(historyBackScript);
|
|
45514
|
-
return true;
|
|
45515
|
-
} else {
|
|
45516
|
-
return false;
|
|
45517
|
-
}
|
|
45518
|
-
}, [
|
|
45519
|
-
canGoBack,
|
|
45520
|
-
historyBackScript
|
|
45521
|
-
]);
|
|
45522
45635
|
(0, import_react224.useEffect)(function() {
|
|
45636
|
+
var handleAndroidBackEvent = function() {
|
|
45637
|
+
if (canGoBack) {
|
|
45638
|
+
var _webViewRef_current;
|
|
45639
|
+
(_webViewRef_current = webViewRef.current) === null || _webViewRef_current === void 0 ? void 0 : _webViewRef_current.injectJavaScript(historyBackScript);
|
|
45640
|
+
return true;
|
|
45641
|
+
} else {
|
|
45642
|
+
captureExitLog(Date.now());
|
|
45643
|
+
return false;
|
|
45644
|
+
}
|
|
45645
|
+
};
|
|
45523
45646
|
import_react_native237.BackHandler.addEventListener("hardwareBackPress", handleAndroidBackEvent);
|
|
45524
45647
|
return function() {
|
|
45525
45648
|
return import_react_native237.BackHandler.removeEventListener("hardwareBackPress", handleAndroidBackEvent);
|
|
45526
45649
|
};
|
|
45527
45650
|
}, [
|
|
45528
|
-
|
|
45651
|
+
canGoBack,
|
|
45652
|
+
captureExitLog,
|
|
45653
|
+
historyBackScript
|
|
45529
45654
|
]);
|
|
45530
45655
|
var handleHomeIconButtonClick = (0, import_react224.useCallback)(function() {
|
|
45531
45656
|
var _webViewRef_current;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apps-in-toss/web-framework",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.0-dev.
|
|
4
|
+
"version": "0.0.0-dev.1758275837494",
|
|
5
5
|
"description": "Web Framework for Apps In Toss",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"prepack": "yarn build",
|
|
@@ -87,12 +87,12 @@
|
|
|
87
87
|
"zod": "3.24.4"
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
|
-
"@apps-in-toss/bridge-core": "0.0.0-dev.
|
|
91
|
-
"@apps-in-toss/cli": "0.0.0-dev.
|
|
92
|
-
"@apps-in-toss/framework": "0.0.0-dev.
|
|
93
|
-
"@apps-in-toss/plugins": "0.0.0-dev.
|
|
94
|
-
"@apps-in-toss/web-analytics": "0.0.0-dev.
|
|
95
|
-
"@apps-in-toss/web-bridge": "0.0.0-dev.
|
|
90
|
+
"@apps-in-toss/bridge-core": "0.0.0-dev.1758275837494",
|
|
91
|
+
"@apps-in-toss/cli": "0.0.0-dev.1758275837494",
|
|
92
|
+
"@apps-in-toss/framework": "0.0.0-dev.1758275837494",
|
|
93
|
+
"@apps-in-toss/plugins": "0.0.0-dev.1758275837494",
|
|
94
|
+
"@apps-in-toss/web-analytics": "0.0.0-dev.1758275837494",
|
|
95
|
+
"@apps-in-toss/web-bridge": "0.0.0-dev.1758275837494",
|
|
96
96
|
"@babel/core": "7.23.9",
|
|
97
97
|
"@granite-js/cli": "0.1.22",
|
|
98
98
|
"@granite-js/mpack": "0.1.22",
|
|
@@ -104,5 +104,5 @@
|
|
|
104
104
|
"publishConfig": {
|
|
105
105
|
"access": "public"
|
|
106
106
|
},
|
|
107
|
-
"gitHead": "
|
|
107
|
+
"gitHead": "b68a923a00c75af3ca66633e450370f20f025a34"
|
|
108
108
|
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
9
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
10
|
-
}) : x)(function(x) {
|
|
11
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
12
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
13
|
-
});
|
|
14
|
-
var __esm = (fn, res) => function __init() {
|
|
15
|
-
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
16
|
-
};
|
|
17
|
-
var __commonJS = (cb, mod) => function __require2() {
|
|
18
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
19
|
-
};
|
|
20
|
-
var __export = (target, all) => {
|
|
21
|
-
for (var name in all)
|
|
22
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
23
|
-
};
|
|
24
|
-
var __copyProps = (to, from, except, desc) => {
|
|
25
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
26
|
-
for (let key of __getOwnPropNames(from))
|
|
27
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
28
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
29
|
-
}
|
|
30
|
-
return to;
|
|
31
|
-
};
|
|
32
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
33
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
34
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
35
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
36
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
37
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
38
|
-
mod
|
|
39
|
-
));
|
|
40
|
-
|
|
41
|
-
// ../../.yarn/__virtual__/tsup-virtual-7863592962/0/cache/tsup-npm-8.3.5-ed25596739-7794953cbc.zip/node_modules/tsup/assets/esm_shims.js
|
|
42
|
-
import { fileURLToPath } from "url";
|
|
43
|
-
import path from "path";
|
|
44
|
-
var getFilename, getDirname, __dirname, __filename;
|
|
45
|
-
var init_esm_shims = __esm({
|
|
46
|
-
"../../.yarn/__virtual__/tsup-virtual-7863592962/0/cache/tsup-npm-8.3.5-ed25596739-7794953cbc.zip/node_modules/tsup/assets/esm_shims.js"() {
|
|
47
|
-
"use strict";
|
|
48
|
-
getFilename = () => fileURLToPath(import.meta.url);
|
|
49
|
-
getDirname = () => path.dirname(getFilename());
|
|
50
|
-
__dirname = /* @__PURE__ */ getDirname();
|
|
51
|
-
__filename = /* @__PURE__ */ getFilename();
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
export {
|
|
56
|
-
__require,
|
|
57
|
-
__commonJS,
|
|
58
|
-
__export,
|
|
59
|
-
__toESM,
|
|
60
|
-
__dirname,
|
|
61
|
-
__filename,
|
|
62
|
-
init_esm_shims
|
|
63
|
-
};
|