@apps-in-toss/web-framework 1.9.2 → 1.9.3
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 +206 -179
- package/dist/prebuilt/dev.ios.js +206 -179
- package/dist/prebuilt/prod.android.js +114 -86
- package/dist/prebuilt/prod.ios.js +114 -86
- package/package.json +7 -7
|
@@ -45540,12 +45540,31 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45540
45540
|
}
|
|
45541
45541
|
});
|
|
45542
45542
|
}
|
|
45543
|
+
function HomeShortcutMenu() {
|
|
45544
|
+
var isSandbox = getOperationalEnvironment() === "sandbox";
|
|
45545
|
+
var globals = getAppsInTossGlobals();
|
|
45546
|
+
if (isSandbox) {
|
|
45547
|
+
return null;
|
|
45548
|
+
}
|
|
45549
|
+
return /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(Menu, {
|
|
45550
|
+
title: "\uD648 \uD654\uBA74\uC5D0 \uCD94\uAC00",
|
|
45551
|
+
iconURL: "https://static.toss.im/icons/png/4x/icon-plus-circle-mono.png",
|
|
45552
|
+
onPress: function() {
|
|
45553
|
+
import_react_native218.NativeModules.AppsInTossModule.addMiniAppShortcut({
|
|
45554
|
+
title: globals.brandDisplayName,
|
|
45555
|
+
appName: global.__granite.app.name,
|
|
45556
|
+
iconUrl: globals.brandIcon,
|
|
45557
|
+
guideUrl: "https://service.toss.im/app-mini-home/shortcut"
|
|
45558
|
+
});
|
|
45559
|
+
}
|
|
45560
|
+
});
|
|
45561
|
+
}
|
|
45543
45562
|
function PermissionsMenu() {
|
|
45544
45563
|
var globals = getAppsInTossGlobals();
|
|
45545
45564
|
if (getOperationalEnvironment() === "sandbox") {
|
|
45546
45565
|
return null;
|
|
45547
45566
|
}
|
|
45548
|
-
return /* @__PURE__ */ (0,
|
|
45567
|
+
return /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Menu, {
|
|
45549
45568
|
title: "\uAD8C\uD55C \uC124\uC815",
|
|
45550
45569
|
iconURL: "https://static.toss.im/icons/png/4x/icon-setting-mono.png",
|
|
45551
45570
|
onPress: function() {
|
|
@@ -45567,6 +45586,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45567
45586
|
var logging = useMoreButtonBottomSheetLogging();
|
|
45568
45587
|
var overlay = useOverlay();
|
|
45569
45588
|
var title = ensureValue(globals.brandDisplayName, "displayName");
|
|
45589
|
+
var isHomeShortcutSupported = isMinVersionSupported(MIN_VERSION.HOME_SHORTCUT_MENU);
|
|
45570
45590
|
var isBottomSheetSupported = isMinVersionSupported(MIN_VERSION.BOTTOM_SHEET);
|
|
45571
45591
|
var isShareListMenuSupported = isMinVersionSupported(MIN_VERSION.SHARE_LIST_MENU);
|
|
45572
45592
|
var _useState41 = _sliced_to_array((0, import_react224.useState)(false), 2), isPermissionsMenuSupported = _useState41[0], setIsPermissionsMenuSupported = _useState41[1];
|
|
@@ -45625,10 +45645,10 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45625
45645
|
logging.close();
|
|
45626
45646
|
close();
|
|
45627
45647
|
};
|
|
45628
|
-
return /* @__PURE__ */ (0,
|
|
45629
|
-
children: /* @__PURE__ */ (0,
|
|
45630
|
-
header: /* @__PURE__ */ (0,
|
|
45631
|
-
title: /* @__PURE__ */ (0,
|
|
45648
|
+
return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(BottomSheetImpressionArea, {
|
|
45649
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(BottomSheet.Root, {
|
|
45650
|
+
header: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(e38, {
|
|
45651
|
+
title: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(e38.TitleParagraph, {
|
|
45632
45652
|
color: adaptive.grey800,
|
|
45633
45653
|
fontWeight: "bold",
|
|
45634
45654
|
typography: "t5",
|
|
@@ -45636,7 +45656,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45636
45656
|
})
|
|
45637
45657
|
}),
|
|
45638
45658
|
open: isOpen,
|
|
45639
|
-
cta: /* @__PURE__ */ (0,
|
|
45659
|
+
cta: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(BottomSheet.CTA, {
|
|
45640
45660
|
size: "large",
|
|
45641
45661
|
type: "dark",
|
|
45642
45662
|
style: "weak",
|
|
@@ -45647,11 +45667,11 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45647
45667
|
}),
|
|
45648
45668
|
onClose: handleClose,
|
|
45649
45669
|
onExited: exit,
|
|
45650
|
-
children: /* @__PURE__ */ (0,
|
|
45670
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime226.jsxs)(List, {
|
|
45651
45671
|
rowSeparator: "none",
|
|
45652
45672
|
children: [
|
|
45653
45673
|
itemList.map(function(item) {
|
|
45654
|
-
return /* @__PURE__ */ (0,
|
|
45674
|
+
return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(Menu, {
|
|
45655
45675
|
title: item.contactItemName,
|
|
45656
45676
|
iconURL: item.contactIconUrl,
|
|
45657
45677
|
onPress: function() {
|
|
@@ -45659,8 +45679,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45659
45679
|
}
|
|
45660
45680
|
}, item.contactItemName);
|
|
45661
45681
|
}),
|
|
45662
|
-
|
|
45663
|
-
|
|
45682
|
+
isHomeShortcutSupported && /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(HomeShortcutMenu, {}),
|
|
45683
|
+
isShareListMenuSupported && /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(AppShareListMenu, {}),
|
|
45684
|
+
isPermissionsMenuSupported && /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(PermissionsMenu, {})
|
|
45664
45685
|
]
|
|
45665
45686
|
})
|
|
45666
45687
|
})
|
|
@@ -45688,7 +45709,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45688
45709
|
}, [
|
|
45689
45710
|
logging
|
|
45690
45711
|
]);
|
|
45691
|
-
return /* @__PURE__ */ (0,
|
|
45712
|
+
return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(import_jsx_runtime226.Fragment, {
|
|
45692
45713
|
children
|
|
45693
45714
|
});
|
|
45694
45715
|
}
|
|
@@ -45716,7 +45737,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45716
45737
|
logging,
|
|
45717
45738
|
withHomeButton
|
|
45718
45739
|
]);
|
|
45719
|
-
return /* @__PURE__ */ (0,
|
|
45740
|
+
return /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(import_jsx_runtime227.Fragment, {
|
|
45720
45741
|
children
|
|
45721
45742
|
});
|
|
45722
45743
|
}
|
|
@@ -45731,9 +45752,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45731
45752
|
var navigationRightButton = useNavigationBarContext().navigationRightButton;
|
|
45732
45753
|
var navigationEvent = useNavigationEvent();
|
|
45733
45754
|
useHardwareBackPress(navigationEvent.handleBack);
|
|
45734
|
-
return /* @__PURE__ */ (0,
|
|
45755
|
+
return /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(NavigationBarImpressionArea, {
|
|
45735
45756
|
withHomeButton,
|
|
45736
|
-
children: /* @__PURE__ */ (0,
|
|
45757
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(TopNavigation, {
|
|
45737
45758
|
title: globals.brandDisplayName,
|
|
45738
45759
|
icon: toIcon(globals.brandIcon),
|
|
45739
45760
|
onPressDots: openMoreButtonBottomSheet,
|
|
@@ -45743,9 +45764,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45743
45764
|
withHome: withHomeButton,
|
|
45744
45765
|
fixedRightButton: navigationRightButton,
|
|
45745
45766
|
leftVisible: withBackButton,
|
|
45746
|
-
children: /* @__PURE__ */ (0,
|
|
45767
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(NavigationLeft2, {
|
|
45747
45768
|
visible: withBackButton,
|
|
45748
|
-
children: /* @__PURE__ */ (0,
|
|
45769
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(NavigationBackButton2, {
|
|
45749
45770
|
onPress: navigationEvent.handleBack,
|
|
45750
45771
|
canGoBack: false
|
|
45751
45772
|
})
|
|
@@ -45760,18 +45781,18 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45760
45781
|
var navigationRightButton = useNavigationBarContext().navigationRightButton;
|
|
45761
45782
|
var _useSafeAreaInsets = (0, react_native_safe_area_context_exports.useSafeAreaInsets)(), safeAreaRight = _useSafeAreaInsets.right;
|
|
45762
45783
|
useHardwareBackPress(navigationEvent.handleBack);
|
|
45763
|
-
return /* @__PURE__ */ (0,
|
|
45784
|
+
return /* @__PURE__ */ (0, import_jsx_runtime229.jsxs)(import_jsx_runtime229.Fragment, {
|
|
45764
45785
|
children: [
|
|
45765
|
-
/* @__PURE__ */ (0,
|
|
45786
|
+
/* @__PURE__ */ (0, import_jsx_runtime229.jsx)(PageNavbar, {
|
|
45766
45787
|
preference: {
|
|
45767
45788
|
type: "none"
|
|
45768
45789
|
}
|
|
45769
45790
|
}),
|
|
45770
|
-
/* @__PURE__ */ (0,
|
|
45791
|
+
/* @__PURE__ */ (0, import_jsx_runtime229.jsx)(import_react_native220.View, {
|
|
45771
45792
|
style: {
|
|
45772
45793
|
width: "100%",
|
|
45773
45794
|
// TODO: UI관련 스타일 설정은 TDS로 이관
|
|
45774
|
-
height:
|
|
45795
|
+
height: import_react_native220.Platform.OS === "ios" ? 44 : 54,
|
|
45775
45796
|
flexDirection: "row",
|
|
45776
45797
|
alignItems: "center",
|
|
45777
45798
|
justifyContent: "flex-end",
|
|
@@ -45781,7 +45802,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45781
45802
|
paddingRight: safeAreaRight + 10
|
|
45782
45803
|
},
|
|
45783
45804
|
pointerEvents: "box-none",
|
|
45784
|
-
children: /* @__PURE__ */ (0,
|
|
45805
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(NavigationRightContent, {
|
|
45785
45806
|
fixedRightButton: navigationRightButton,
|
|
45786
45807
|
onPressDots: openMoreButtonBottomSheet,
|
|
45787
45808
|
onPressClose: navigationEvent.handleCloseButtonClick,
|
|
@@ -45796,12 +45817,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45796
45817
|
var global2 = getAppsInTossGlobals();
|
|
45797
45818
|
switch (global2.appType) {
|
|
45798
45819
|
case "game":
|
|
45799
|
-
return /* @__PURE__ */ (0,
|
|
45820
|
+
return /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(GameAppContainer, {
|
|
45800
45821
|
children
|
|
45801
45822
|
});
|
|
45802
45823
|
case "general":
|
|
45803
45824
|
default:
|
|
45804
|
-
return /* @__PURE__ */ (0,
|
|
45825
|
+
return /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(GeneralAppContainer, {
|
|
45805
45826
|
children
|
|
45806
45827
|
});
|
|
45807
45828
|
}
|
|
@@ -45821,10 +45842,10 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45821
45842
|
}
|
|
45822
45843
|
return;
|
|
45823
45844
|
}, []);
|
|
45824
|
-
return /* @__PURE__ */ (0,
|
|
45845
|
+
return /* @__PURE__ */ (0, import_jsx_runtime230.jsxs)(import_jsx_runtime230.Fragment, {
|
|
45825
45846
|
children: [
|
|
45826
|
-
/* @__PURE__ */ (0,
|
|
45827
|
-
(0, bridge_entry_exports.getOperationalEnvironment)() === "toss" ? /* @__PURE__ */ (0,
|
|
45847
|
+
/* @__PURE__ */ (0, import_jsx_runtime230.jsx)(RNNavigationBar.Game, {}),
|
|
45848
|
+
(0, bridge_entry_exports.getOperationalEnvironment)() === "toss" ? /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(GameInitializer, {
|
|
45828
45849
|
children
|
|
45829
45850
|
}) : children
|
|
45830
45851
|
]
|
|
@@ -45832,9 +45853,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45832
45853
|
}
|
|
45833
45854
|
function GeneralAppContainer(param) {
|
|
45834
45855
|
var children = param.children;
|
|
45835
|
-
return /* @__PURE__ */ (0,
|
|
45856
|
+
return /* @__PURE__ */ (0, import_jsx_runtime230.jsxs)(import_jsx_runtime230.Fragment, {
|
|
45836
45857
|
children: [
|
|
45837
|
-
/* @__PURE__ */ (0,
|
|
45858
|
+
/* @__PURE__ */ (0, import_jsx_runtime230.jsx)(RNNavigationBar.Default, {}),
|
|
45838
45859
|
children
|
|
45839
45860
|
]
|
|
45840
45861
|
});
|
|
@@ -45847,21 +45868,21 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45847
45868
|
android: "5.220.0",
|
|
45848
45869
|
ios: "5.221.0"
|
|
45849
45870
|
})) {
|
|
45850
|
-
return /* @__PURE__ */ (0,
|
|
45871
|
+
return /* @__PURE__ */ (0, import_jsx_runtime231.jsxs)(import_jsx_runtime231.Fragment, {
|
|
45851
45872
|
children: [
|
|
45852
|
-
/* @__PURE__ */ (0,
|
|
45853
|
-
/* @__PURE__ */ (0,
|
|
45854
|
-
/* @__PURE__ */ (0,
|
|
45873
|
+
/* @__PURE__ */ (0, import_jsx_runtime231.jsx)(AppEvent.Entry, {}),
|
|
45874
|
+
/* @__PURE__ */ (0, import_jsx_runtime231.jsx)(AppEvent.System, _object_spread({}, initialProps)),
|
|
45875
|
+
/* @__PURE__ */ (0, import_jsx_runtime231.jsx)(AppUpdate, {})
|
|
45855
45876
|
]
|
|
45856
45877
|
});
|
|
45857
45878
|
}
|
|
45858
|
-
return /* @__PURE__ */ (0,
|
|
45879
|
+
return /* @__PURE__ */ (0, import_jsx_runtime231.jsxs)(import_jsx_runtime231.Fragment, {
|
|
45859
45880
|
children: [
|
|
45860
|
-
/* @__PURE__ */ (0,
|
|
45861
|
-
/* @__PURE__ */ (0,
|
|
45862
|
-
/* @__PURE__ */ (0,
|
|
45863
|
-
/* @__PURE__ */ (0,
|
|
45864
|
-
children: /* @__PURE__ */ (0,
|
|
45881
|
+
/* @__PURE__ */ (0, import_jsx_runtime231.jsx)(AppEvent.StayTime, {}),
|
|
45882
|
+
/* @__PURE__ */ (0, import_jsx_runtime231.jsx)(AppEvent.Entry, {}),
|
|
45883
|
+
/* @__PURE__ */ (0, import_jsx_runtime231.jsx)(AppEvent.System, _object_spread({}, initialProps)),
|
|
45884
|
+
/* @__PURE__ */ (0, import_jsx_runtime231.jsx)(Container, _object_spread_props(_object_spread({}, initialProps), {
|
|
45885
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(TDSProvider, {
|
|
45865
45886
|
colorPreference: "light",
|
|
45866
45887
|
token: {
|
|
45867
45888
|
color: {
|
|
@@ -45904,9 +45925,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45904
45925
|
function AppsInTossScreenContainer(param) {
|
|
45905
45926
|
var children = param.children;
|
|
45906
45927
|
var isRNApp = getAppsInTossGlobals().webViewType == null;
|
|
45907
|
-
return /* @__PURE__ */ (0,
|
|
45908
|
-
children: /* @__PURE__ */ (0,
|
|
45909
|
-
children: isRNApp ? /* @__PURE__ */ (0,
|
|
45928
|
+
return /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(NavigationBarContextProvider, {
|
|
45929
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(Analytics.Screen, {
|
|
45930
|
+
children: isRNApp ? /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(RNAppContainer, {
|
|
45910
45931
|
children
|
|
45911
45932
|
}) : children
|
|
45912
45933
|
})
|
|
@@ -45963,18 +45984,18 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45963
45984
|
logging,
|
|
45964
45985
|
openConfirm
|
|
45965
45986
|
]);
|
|
45966
|
-
return /* @__PURE__ */ (0,
|
|
45987
|
+
return /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(import_jsx_runtime232.Fragment, {
|
|
45967
45988
|
children: [
|
|
45968
|
-
/* @__PURE__ */ (0,
|
|
45989
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(PageNavbar, {
|
|
45969
45990
|
preference: {
|
|
45970
45991
|
type: "none"
|
|
45971
45992
|
}
|
|
45972
45993
|
}),
|
|
45973
|
-
/* @__PURE__ */ (0,
|
|
45994
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(import_react_native225.View, {
|
|
45974
45995
|
style: {
|
|
45975
45996
|
width: "100%",
|
|
45976
45997
|
// TODO: UI관련 스타일 설정은 TDS로 이관
|
|
45977
|
-
height:
|
|
45998
|
+
height: import_react_native225.Platform.OS === "ios" ? 44 : 54,
|
|
45978
45999
|
flexDirection: "row",
|
|
45979
46000
|
alignItems: "center",
|
|
45980
46001
|
justifyContent: "flex-end",
|
|
@@ -45984,7 +46005,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45984
46005
|
paddingRight: safeAreaRight + 10
|
|
45985
46006
|
},
|
|
45986
46007
|
pointerEvents: "box-none",
|
|
45987
|
-
children: /* @__PURE__ */ (0,
|
|
46008
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(NavigationRightContent, {
|
|
45988
46009
|
fixedRightButton: navigationRightButton,
|
|
45989
46010
|
onPressDots: openMoreButtonBottomSheet,
|
|
45990
46011
|
onPressClose: function() {
|
|
@@ -46043,9 +46064,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46043
46064
|
logging,
|
|
46044
46065
|
openConfirm
|
|
46045
46066
|
]);
|
|
46046
|
-
return /* @__PURE__ */ (0,
|
|
46067
|
+
return /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(NavigationBarImpressionArea, {
|
|
46047
46068
|
withHomeButton,
|
|
46048
|
-
children: /* @__PURE__ */ (0,
|
|
46069
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(TopNavigation, {
|
|
46049
46070
|
title: globals.brandDisplayName,
|
|
46050
46071
|
icon: toIcon(globals.brandIcon),
|
|
46051
46072
|
onPressDots: openMoreButtonBottomSheet,
|
|
@@ -46055,9 +46076,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46055
46076
|
withHome: withHomeButton,
|
|
46056
46077
|
fixedRightButton: navigationRightButton,
|
|
46057
46078
|
leftVisible: withBackButton,
|
|
46058
|
-
children: /* @__PURE__ */ (0,
|
|
46079
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(NavigationLeft2, {
|
|
46059
46080
|
visible: withBackButton,
|
|
46060
|
-
children: /* @__PURE__ */ (0,
|
|
46081
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(NavigationBackButton2, {
|
|
46061
46082
|
onPress: onBackButtonClick,
|
|
46062
46083
|
canGoBack: false
|
|
46063
46084
|
})
|
|
@@ -46959,7 +46980,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46959
46980
|
var batteryModePreference = param.batteryModePreference, colorPreference = param.colorPreference, locale = param.locale, navbarPreference = param.navbarPreference, pureSafeArea = param.pureSafeArea, safeArea = param.safeArea, safeAreaBottomTransparency = param.safeAreaBottomTransparency;
|
|
46960
46981
|
var platform = getPlatformOS();
|
|
46961
46982
|
var appVersion = getTossAppVersion();
|
|
46962
|
-
var fontScale = (0,
|
|
46983
|
+
var fontScale = (0, import_react_native231.useWindowDimensions)().fontScale;
|
|
46963
46984
|
var platformString = platform === "ios" ? "iPhone" : "Android phone";
|
|
46964
46985
|
var fontA11y = mapFontScaleToCategory(fontScale, platform);
|
|
46965
46986
|
var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
|
|
@@ -47253,16 +47274,16 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47253
47274
|
webBackHandler.handleWebBack();
|
|
47254
47275
|
return true;
|
|
47255
47276
|
};
|
|
47256
|
-
|
|
47277
|
+
import_react_native222.BackHandler.addEventListener("hardwareBackPress", callback);
|
|
47257
47278
|
return function() {
|
|
47258
|
-
return
|
|
47279
|
+
return import_react_native222.BackHandler.removeEventListener("hardwareBackPress", callback);
|
|
47259
47280
|
};
|
|
47260
47281
|
}, [
|
|
47261
47282
|
webBackHandler
|
|
47262
47283
|
]);
|
|
47263
47284
|
var globalScripts = useGlobalScripts();
|
|
47264
47285
|
var handleWebViewProcessDidTerminate = useHandleWebViewProcessDidTerminate(webViewRef);
|
|
47265
|
-
return /* @__PURE__ */ (0,
|
|
47286
|
+
return /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(BaseWebView, _object_spread_props(_object_spread({
|
|
47266
47287
|
ref: refs
|
|
47267
47288
|
}, props, headerPropForExternalWebView), {
|
|
47268
47289
|
source: {
|
|
@@ -47282,14 +47303,14 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47282
47303
|
(_props_onNavigationStateChange = props.onNavigationStateChange) === null || _props_onNavigationStateChange === void 0 ? void 0 : _props_onNavigationStateChange.call(props, event);
|
|
47283
47304
|
webBackHandler.onNavigationStateChange(event);
|
|
47284
47305
|
},
|
|
47285
|
-
userAgent:
|
|
47306
|
+
userAgent: import_react_native222.Platform.OS === "ios" ? userAgent : void 0,
|
|
47286
47307
|
sharedCookiesEnabled: true,
|
|
47287
47308
|
webviewDebuggingEnabled: webViewDebuggingEnabled,
|
|
47288
47309
|
thirdPartyCookiesEnabled: true,
|
|
47289
47310
|
onMessage: handler.onMessage,
|
|
47290
47311
|
injectedJavaScript: globalScripts.afterLoad,
|
|
47291
47312
|
injectedJavaScriptBeforeContentLoaded: mergeScripts(handler.injectedJavaScript, globalScripts.beforeLoad),
|
|
47292
|
-
decelerationRate:
|
|
47313
|
+
decelerationRate: import_react_native222.Platform.OS === "ios" ? 1 : void 0,
|
|
47293
47314
|
allowsBackForwardNavigationGestures,
|
|
47294
47315
|
onShouldStartLoadWithRequest: function(event) {
|
|
47295
47316
|
try {
|
|
@@ -47301,7 +47322,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47301
47322
|
return true;
|
|
47302
47323
|
} else {
|
|
47303
47324
|
var _convertIntentURL;
|
|
47304
|
-
|
|
47325
|
+
import_react_native222.Linking.openURL((_convertIntentURL = convertIntentURL(url2)) !== null && _convertIntentURL !== void 0 ? _convertIntentURL : url2.href);
|
|
47305
47326
|
return false;
|
|
47306
47327
|
}
|
|
47307
47328
|
} catch (error) {
|
|
@@ -47339,7 +47360,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47339
47360
|
return typeof script === "string";
|
|
47340
47361
|
}).join("\n");
|
|
47341
47362
|
}
|
|
47342
|
-
var import_react_native197, import_react209, import_react210, import_react211, import_react212, import_jsx_runtime218, import_react213, import_jsx_runtime219, import_react214, import_react_native203, import_react215, import_react_native205, import_react216, import_react_native207, import_react217, import_react218, import_react219, import_react220, import_jsx_runtime220, import_jsx_runtime221, import_react221, import_react_native210, import_react222, import_react223, import_react224, import_react_native215, import_react_native216, import_jsx_runtime222, import_jsx_runtime223, import_jsx_runtime224, import_jsx_runtime225,
|
|
47363
|
+
var import_react_native197, import_react209, import_react210, import_react211, import_react212, import_jsx_runtime218, import_react213, import_jsx_runtime219, import_react214, import_react_native203, import_react215, import_react_native205, import_react216, import_react_native207, import_react217, import_react218, import_react219, import_react220, import_jsx_runtime220, import_jsx_runtime221, import_react221, import_react_native210, import_react222, import_react223, import_react224, 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_react225, import_jsx_runtime227, import_jsx_runtime228, import_react_native220, import_jsx_runtime229, import_jsx_runtime230, import_jsx_runtime231, import_react226, import_react_native222, import_react227, import_react_native223, import_react228, import_react_native225, import_jsx_runtime232, import_jsx_runtime233, import_react229, import_react230, import_jsx_runtime234, import_jsx_runtime235, import_react231, import_react232, import_react233, import_react234, import_react_native231, import_react235, import_react236, import_jsx_runtime236, __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, EventEmitter, INITIAL_STATE, FontA11yCategory, androidFontScaleMap, iosScaleToAndroidScale, extractDateFromUUIDv7, getGroupId, getReferrer22, trackScreen, operationalEnvironment, TYPES, WEBVIEW_TYPES, Analytics2;
|
|
47343
47364
|
var init_dist8 = __esm({
|
|
47344
47365
|
"../../../.yarn/__virtual__/@apps-in-toss-framework-virtual-afbad361af/1/packages/apps-in-toss/framework/dist/index.js"() {
|
|
47345
47366
|
"use strict";
|
|
@@ -47430,22 +47451,25 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47430
47451
|
import_jsx_runtime222 = __toESM(require_jsx_runtime(), 1);
|
|
47431
47452
|
import_jsx_runtime223 = __toESM(require_jsx_runtime(), 1);
|
|
47432
47453
|
init_dist6();
|
|
47433
|
-
|
|
47454
|
+
import_react_native218 = __toESM(require_react_native(), 1);
|
|
47434
47455
|
import_jsx_runtime224 = __toESM(require_jsx_runtime(), 1);
|
|
47456
|
+
init_dist6();
|
|
47457
|
+
init_src3();
|
|
47435
47458
|
import_jsx_runtime225 = __toESM(require_jsx_runtime(), 1);
|
|
47436
|
-
import_react225 = __toESM(require_react(), 1);
|
|
47437
47459
|
import_jsx_runtime226 = __toESM(require_jsx_runtime(), 1);
|
|
47460
|
+
import_react225 = __toESM(require_react(), 1);
|
|
47438
47461
|
import_jsx_runtime227 = __toESM(require_jsx_runtime(), 1);
|
|
47462
|
+
import_jsx_runtime228 = __toESM(require_jsx_runtime(), 1);
|
|
47439
47463
|
init_react_native_safe_area_context();
|
|
47440
47464
|
init_esm8();
|
|
47441
47465
|
init_private2();
|
|
47442
|
-
|
|
47443
|
-
|
|
47466
|
+
import_react_native220 = __toESM(require_react_native(), 1);
|
|
47467
|
+
import_jsx_runtime229 = __toESM(require_jsx_runtime(), 1);
|
|
47444
47468
|
init_async_bridges();
|
|
47445
47469
|
init_constant_bridges2();
|
|
47446
47470
|
init_event_bridges();
|
|
47447
|
-
import_jsx_runtime229 = __toESM(require_jsx_runtime(), 1);
|
|
47448
47471
|
import_jsx_runtime230 = __toESM(require_jsx_runtime(), 1);
|
|
47472
|
+
import_jsx_runtime231 = __toESM(require_jsx_runtime(), 1);
|
|
47449
47473
|
init_dist6();
|
|
47450
47474
|
init_async_bridges();
|
|
47451
47475
|
init_constant_bridges2();
|
|
@@ -47455,20 +47479,20 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47455
47479
|
init_esm8();
|
|
47456
47480
|
init_private2();
|
|
47457
47481
|
import_react226 = __toESM(require_react(), 1);
|
|
47458
|
-
|
|
47482
|
+
import_react_native222 = __toESM(require_react_native(), 1);
|
|
47459
47483
|
init_dist6();
|
|
47460
47484
|
init_react_native_webview();
|
|
47461
47485
|
import_react227 = __toESM(require_react(), 1);
|
|
47462
|
-
|
|
47486
|
+
import_react_native223 = __toESM(require_react_native(), 1);
|
|
47463
47487
|
init_react_native_safe_area_context();
|
|
47464
47488
|
init_src3();
|
|
47465
47489
|
init_esm8();
|
|
47466
47490
|
init_private2();
|
|
47467
47491
|
init_dist7();
|
|
47468
47492
|
import_react228 = __toESM(require_react(), 1);
|
|
47469
|
-
|
|
47470
|
-
import_jsx_runtime231 = __toESM(require_jsx_runtime(), 1);
|
|
47493
|
+
import_react_native225 = __toESM(require_react_native(), 1);
|
|
47471
47494
|
import_jsx_runtime232 = __toESM(require_jsx_runtime(), 1);
|
|
47495
|
+
import_jsx_runtime233 = __toESM(require_jsx_runtime(), 1);
|
|
47472
47496
|
init_react_native_webview();
|
|
47473
47497
|
import_react229 = __toESM(require_react(), 1);
|
|
47474
47498
|
init_src3();
|
|
@@ -47476,8 +47500,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47476
47500
|
init_private2();
|
|
47477
47501
|
init_dist7();
|
|
47478
47502
|
import_react230 = __toESM(require_react(), 1);
|
|
47479
|
-
import_jsx_runtime233 = __toESM(require_jsx_runtime(), 1);
|
|
47480
47503
|
import_jsx_runtime234 = __toESM(require_jsx_runtime(), 1);
|
|
47504
|
+
import_jsx_runtime235 = __toESM(require_jsx_runtime(), 1);
|
|
47481
47505
|
init_dist6();
|
|
47482
47506
|
init_dist6();
|
|
47483
47507
|
init_src3();
|
|
@@ -47494,7 +47518,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47494
47518
|
import_react233 = __toESM(require_react(), 1);
|
|
47495
47519
|
import_react234 = __toESM(require_react(), 1);
|
|
47496
47520
|
init_dist6();
|
|
47497
|
-
|
|
47521
|
+
import_react_native231 = __toESM(require_react_native(), 1);
|
|
47498
47522
|
init_dist6();
|
|
47499
47523
|
import_react235 = __toESM(require_react(), 1);
|
|
47500
47524
|
import_react236 = __toESM(require_react(), 1);
|
|
@@ -47503,7 +47527,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47503
47527
|
init_esm8();
|
|
47504
47528
|
init_dist6();
|
|
47505
47529
|
init_src3();
|
|
47506
|
-
|
|
47530
|
+
import_jsx_runtime236 = __toESM(require_jsx_runtime(), 1);
|
|
47507
47531
|
init_dist3();
|
|
47508
47532
|
init_dist6();
|
|
47509
47533
|
init_dist4();
|
|
@@ -48031,6 +48055,10 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48031
48055
|
android: "5.230.0",
|
|
48032
48056
|
ios: "5.230.0"
|
|
48033
48057
|
},
|
|
48058
|
+
HOME_SHORTCUT_MENU: {
|
|
48059
|
+
android: "5.246.0",
|
|
48060
|
+
ios: "5.246.0"
|
|
48061
|
+
},
|
|
48034
48062
|
PERMISSIONS_MENU: {
|
|
48035
48063
|
android: "5.238.0",
|
|
48036
48064
|
ios: "5.237.0"
|
|
@@ -48049,7 +48077,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48049
48077
|
};
|
|
48050
48078
|
GameWebView = /* @__PURE__ */ (0, import_react227.forwardRef)(function GameWebView2(props, ref) {
|
|
48051
48079
|
(0, import_react227.useEffect)(function() {
|
|
48052
|
-
if (
|
|
48080
|
+
if (import_react_native223.Platform.OS === "ios") {
|
|
48053
48081
|
setIosSwipeGestureEnabled({
|
|
48054
48082
|
isEnabled: false
|
|
48055
48083
|
});
|
|
@@ -48061,14 +48089,14 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48061
48089
|
}
|
|
48062
48090
|
return;
|
|
48063
48091
|
}, []);
|
|
48064
|
-
return /* @__PURE__ */ (0,
|
|
48092
|
+
return /* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(import_jsx_runtime233.Fragment, {
|
|
48065
48093
|
children: [
|
|
48066
|
-
/* @__PURE__ */ (0,
|
|
48067
|
-
getOperationalEnvironment() === "toss" ? /* @__PURE__ */ (0,
|
|
48068
|
-
children: /* @__PURE__ */ (0,
|
|
48094
|
+
/* @__PURE__ */ (0, import_jsx_runtime233.jsx)(GameWebviewNavigationBar, {}),
|
|
48095
|
+
getOperationalEnvironment() === "toss" ? /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(GameInitializer, {
|
|
48096
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(react_native_webview_exports.WebView, _object_spread({
|
|
48069
48097
|
ref
|
|
48070
48098
|
}, props))
|
|
48071
|
-
}) : /* @__PURE__ */ (0,
|
|
48099
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(react_native_webview_exports.WebView, _object_spread({
|
|
48072
48100
|
ref
|
|
48073
48101
|
}, props))
|
|
48074
48102
|
]
|
|
@@ -48079,13 +48107,13 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48079
48107
|
"onBackButtonClick",
|
|
48080
48108
|
"onHomeButtonClick"
|
|
48081
48109
|
]);
|
|
48082
|
-
return /* @__PURE__ */ (0,
|
|
48110
|
+
return /* @__PURE__ */ (0, import_jsx_runtime235.jsxs)(import_jsx_runtime235.Fragment, {
|
|
48083
48111
|
children: [
|
|
48084
|
-
/* @__PURE__ */ (0,
|
|
48112
|
+
/* @__PURE__ */ (0, import_jsx_runtime235.jsx)(PartnerWebviewNavigationBar, {
|
|
48085
48113
|
onBackButtonClick,
|
|
48086
48114
|
onHomeButtonClick
|
|
48087
48115
|
}),
|
|
48088
|
-
/* @__PURE__ */ (0,
|
|
48116
|
+
/* @__PURE__ */ (0, import_jsx_runtime235.jsx)(react_native_webview_exports.WebView, _object_spread_props(_object_spread({
|
|
48089
48117
|
ref
|
|
48090
48118
|
}, webViewProps), {
|
|
48091
48119
|
style: {
|
|
@@ -48276,11 +48304,11 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48276
48304
|
}
|
|
48277
48305
|
});
|
|
48278
48306
|
function Index() {
|
|
48279
|
-
return /* @__PURE__ */ (0,
|
|
48307
|
+
return /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(import_react_native234.View, {
|
|
48280
48308
|
style: {
|
|
48281
48309
|
flex: 1
|
|
48282
48310
|
},
|
|
48283
|
-
children: /* @__PURE__ */ (0,
|
|
48311
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(WebView, {
|
|
48284
48312
|
style: {
|
|
48285
48313
|
flex: 1
|
|
48286
48314
|
},
|
|
@@ -48298,13 +48326,13 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48298
48326
|
})
|
|
48299
48327
|
});
|
|
48300
48328
|
}
|
|
48301
|
-
var
|
|
48329
|
+
var import_jsx_runtime237, import_react_native234;
|
|
48302
48330
|
var init_pages = __esm({
|
|
48303
48331
|
"react-native/pages/index.tsx"() {
|
|
48304
48332
|
"use strict";
|
|
48305
|
-
|
|
48333
|
+
import_jsx_runtime237 = __toESM(require_jsx_runtime(), 1);
|
|
48306
48334
|
init_dist8();
|
|
48307
|
-
|
|
48335
|
+
import_react_native234 = __toESM(require_react_native(), 1);
|
|
48308
48336
|
}
|
|
48309
48337
|
});
|
|
48310
48338
|
|
|
@@ -48329,7 +48357,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48329
48357
|
return app_default;
|
|
48330
48358
|
}
|
|
48331
48359
|
});
|
|
48332
|
-
var
|
|
48360
|
+
var import_jsx_runtime238 = __toESM(require_jsx_runtime());
|
|
48333
48361
|
|
|
48334
48362
|
// ../../../.yarn/cache/@react-native-js-polyfills-npm-0.72.1-52931e590c-e4a77d6c8b.zip/node_modules/@react-native/js-polyfills/console.js
|
|
48335
48363
|
init_instanceof();
|
|
@@ -48911,7 +48939,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48911
48939
|
// react-native/src/_app.tsx
|
|
48912
48940
|
function AppContainer(param) {
|
|
48913
48941
|
var children = param.children;
|
|
48914
|
-
return /* @__PURE__ */ (0,
|
|
48942
|
+
return /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(import_jsx_runtime238.Fragment, {
|
|
48915
48943
|
children
|
|
48916
48944
|
});
|
|
48917
48945
|
}
|