@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
|
@@ -45549,12 +45549,31 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45549
45549
|
}
|
|
45550
45550
|
});
|
|
45551
45551
|
}
|
|
45552
|
+
function HomeShortcutMenu() {
|
|
45553
|
+
var isSandbox = getOperationalEnvironment() === "sandbox";
|
|
45554
|
+
var globals = getAppsInTossGlobals();
|
|
45555
|
+
if (isSandbox) {
|
|
45556
|
+
return null;
|
|
45557
|
+
}
|
|
45558
|
+
return /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(Menu, {
|
|
45559
|
+
title: "\uD648 \uD654\uBA74\uC5D0 \uCD94\uAC00",
|
|
45560
|
+
iconURL: "https://static.toss.im/icons/png/4x/icon-plus-circle-mono.png",
|
|
45561
|
+
onPress: function() {
|
|
45562
|
+
import_react_native218.NativeModules.AppsInTossModule.addMiniAppShortcut({
|
|
45563
|
+
title: globals.brandDisplayName,
|
|
45564
|
+
appName: global.__granite.app.name,
|
|
45565
|
+
iconUrl: globals.brandIcon,
|
|
45566
|
+
guideUrl: "https://service.toss.im/app-mini-home/shortcut"
|
|
45567
|
+
});
|
|
45568
|
+
}
|
|
45569
|
+
});
|
|
45570
|
+
}
|
|
45552
45571
|
function PermissionsMenu() {
|
|
45553
45572
|
var globals = getAppsInTossGlobals();
|
|
45554
45573
|
if (getOperationalEnvironment() === "sandbox") {
|
|
45555
45574
|
return null;
|
|
45556
45575
|
}
|
|
45557
|
-
return /* @__PURE__ */ (0,
|
|
45576
|
+
return /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Menu, {
|
|
45558
45577
|
title: "\uAD8C\uD55C \uC124\uC815",
|
|
45559
45578
|
iconURL: "https://static.toss.im/icons/png/4x/icon-setting-mono.png",
|
|
45560
45579
|
onPress: function() {
|
|
@@ -45576,6 +45595,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45576
45595
|
var logging = useMoreButtonBottomSheetLogging();
|
|
45577
45596
|
var overlay = useOverlay();
|
|
45578
45597
|
var title = ensureValue(globals.brandDisplayName, "displayName");
|
|
45598
|
+
var isHomeShortcutSupported = isMinVersionSupported(MIN_VERSION.HOME_SHORTCUT_MENU);
|
|
45579
45599
|
var isBottomSheetSupported = isMinVersionSupported(MIN_VERSION.BOTTOM_SHEET);
|
|
45580
45600
|
var isShareListMenuSupported = isMinVersionSupported(MIN_VERSION.SHARE_LIST_MENU);
|
|
45581
45601
|
var _useState41 = _sliced_to_array((0, import_react225.useState)(false), 2), isPermissionsMenuSupported = _useState41[0], setIsPermissionsMenuSupported = _useState41[1];
|
|
@@ -45634,10 +45654,10 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45634
45654
|
logging.close();
|
|
45635
45655
|
close();
|
|
45636
45656
|
};
|
|
45637
|
-
return /* @__PURE__ */ (0,
|
|
45638
|
-
children: /* @__PURE__ */ (0,
|
|
45639
|
-
header: /* @__PURE__ */ (0,
|
|
45640
|
-
title: /* @__PURE__ */ (0,
|
|
45657
|
+
return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(BottomSheetImpressionArea, {
|
|
45658
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(BottomSheet.Root, {
|
|
45659
|
+
header: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(e38, {
|
|
45660
|
+
title: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(e38.TitleParagraph, {
|
|
45641
45661
|
color: adaptive.grey800,
|
|
45642
45662
|
fontWeight: "bold",
|
|
45643
45663
|
typography: "t5",
|
|
@@ -45645,7 +45665,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45645
45665
|
})
|
|
45646
45666
|
}),
|
|
45647
45667
|
open: isOpen,
|
|
45648
|
-
cta: /* @__PURE__ */ (0,
|
|
45668
|
+
cta: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(BottomSheet.CTA, {
|
|
45649
45669
|
size: "large",
|
|
45650
45670
|
type: "dark",
|
|
45651
45671
|
style: "weak",
|
|
@@ -45656,11 +45676,11 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45656
45676
|
}),
|
|
45657
45677
|
onClose: handleClose,
|
|
45658
45678
|
onExited: exit,
|
|
45659
|
-
children: /* @__PURE__ */ (0,
|
|
45679
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime226.jsxs)(List, {
|
|
45660
45680
|
rowSeparator: "none",
|
|
45661
45681
|
children: [
|
|
45662
45682
|
itemList.map(function(item) {
|
|
45663
|
-
return /* @__PURE__ */ (0,
|
|
45683
|
+
return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(Menu, {
|
|
45664
45684
|
title: item.contactItemName,
|
|
45665
45685
|
iconURL: item.contactIconUrl,
|
|
45666
45686
|
onPress: function() {
|
|
@@ -45668,8 +45688,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45668
45688
|
}
|
|
45669
45689
|
}, item.contactItemName);
|
|
45670
45690
|
}),
|
|
45671
|
-
|
|
45672
|
-
|
|
45691
|
+
isHomeShortcutSupported && /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(HomeShortcutMenu, {}),
|
|
45692
|
+
isShareListMenuSupported && /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(AppShareListMenu, {}),
|
|
45693
|
+
isPermissionsMenuSupported && /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(PermissionsMenu, {})
|
|
45673
45694
|
]
|
|
45674
45695
|
})
|
|
45675
45696
|
})
|
|
@@ -45697,7 +45718,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45697
45718
|
}, [
|
|
45698
45719
|
logging
|
|
45699
45720
|
]);
|
|
45700
|
-
return /* @__PURE__ */ (0,
|
|
45721
|
+
return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(import_jsx_runtime226.Fragment, {
|
|
45701
45722
|
children
|
|
45702
45723
|
});
|
|
45703
45724
|
}
|
|
@@ -45725,7 +45746,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45725
45746
|
logging,
|
|
45726
45747
|
withHomeButton
|
|
45727
45748
|
]);
|
|
45728
|
-
return /* @__PURE__ */ (0,
|
|
45749
|
+
return /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(import_jsx_runtime227.Fragment, {
|
|
45729
45750
|
children
|
|
45730
45751
|
});
|
|
45731
45752
|
}
|
|
@@ -45740,9 +45761,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45740
45761
|
var navigationRightButton = useNavigationBarContext().navigationRightButton;
|
|
45741
45762
|
var navigationEvent = useNavigationEvent();
|
|
45742
45763
|
useHardwareBackPress(navigationEvent.handleBack);
|
|
45743
|
-
return /* @__PURE__ */ (0,
|
|
45764
|
+
return /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(NavigationBarImpressionArea, {
|
|
45744
45765
|
withHomeButton,
|
|
45745
|
-
children: /* @__PURE__ */ (0,
|
|
45766
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(TopNavigation, {
|
|
45746
45767
|
title: globals.brandDisplayName,
|
|
45747
45768
|
icon: toIcon(globals.brandIcon),
|
|
45748
45769
|
onPressDots: openMoreButtonBottomSheet,
|
|
@@ -45752,9 +45773,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45752
45773
|
withHome: withHomeButton,
|
|
45753
45774
|
fixedRightButton: navigationRightButton,
|
|
45754
45775
|
leftVisible: withBackButton,
|
|
45755
|
-
children: /* @__PURE__ */ (0,
|
|
45776
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(NavigationLeft2, {
|
|
45756
45777
|
visible: withBackButton,
|
|
45757
|
-
children: /* @__PURE__ */ (0,
|
|
45778
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(NavigationBackButton2, {
|
|
45758
45779
|
onPress: navigationEvent.handleBack,
|
|
45759
45780
|
canGoBack: false
|
|
45760
45781
|
})
|
|
@@ -45769,18 +45790,18 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45769
45790
|
var navigationRightButton = useNavigationBarContext().navigationRightButton;
|
|
45770
45791
|
var _useSafeAreaInsets = (0, react_native_safe_area_context_exports.useSafeAreaInsets)(), safeAreaRight = _useSafeAreaInsets.right;
|
|
45771
45792
|
useHardwareBackPress(navigationEvent.handleBack);
|
|
45772
|
-
return /* @__PURE__ */ (0,
|
|
45793
|
+
return /* @__PURE__ */ (0, import_jsx_runtime229.jsxs)(import_jsx_runtime229.Fragment, {
|
|
45773
45794
|
children: [
|
|
45774
|
-
/* @__PURE__ */ (0,
|
|
45795
|
+
/* @__PURE__ */ (0, import_jsx_runtime229.jsx)(PageNavbar, {
|
|
45775
45796
|
preference: {
|
|
45776
45797
|
type: "none"
|
|
45777
45798
|
}
|
|
45778
45799
|
}),
|
|
45779
|
-
/* @__PURE__ */ (0,
|
|
45800
|
+
/* @__PURE__ */ (0, import_jsx_runtime229.jsx)(import_react_native220.View, {
|
|
45780
45801
|
style: {
|
|
45781
45802
|
width: "100%",
|
|
45782
45803
|
// TODO: UI관련 스타일 설정은 TDS로 이관
|
|
45783
|
-
height:
|
|
45804
|
+
height: import_react_native220.Platform.OS === "ios" ? 44 : 54,
|
|
45784
45805
|
flexDirection: "row",
|
|
45785
45806
|
alignItems: "center",
|
|
45786
45807
|
justifyContent: "flex-end",
|
|
@@ -45790,7 +45811,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45790
45811
|
paddingRight: safeAreaRight + 10
|
|
45791
45812
|
},
|
|
45792
45813
|
pointerEvents: "box-none",
|
|
45793
|
-
children: /* @__PURE__ */ (0,
|
|
45814
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(NavigationRightContent, {
|
|
45794
45815
|
fixedRightButton: navigationRightButton,
|
|
45795
45816
|
onPressDots: openMoreButtonBottomSheet,
|
|
45796
45817
|
onPressClose: navigationEvent.handleCloseButtonClick,
|
|
@@ -45805,12 +45826,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45805
45826
|
var global2 = getAppsInTossGlobals();
|
|
45806
45827
|
switch (global2.appType) {
|
|
45807
45828
|
case "game":
|
|
45808
|
-
return /* @__PURE__ */ (0,
|
|
45829
|
+
return /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(GameAppContainer, {
|
|
45809
45830
|
children
|
|
45810
45831
|
});
|
|
45811
45832
|
case "general":
|
|
45812
45833
|
default:
|
|
45813
|
-
return /* @__PURE__ */ (0,
|
|
45834
|
+
return /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(GeneralAppContainer, {
|
|
45814
45835
|
children
|
|
45815
45836
|
});
|
|
45816
45837
|
}
|
|
@@ -45830,10 +45851,10 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45830
45851
|
}
|
|
45831
45852
|
return;
|
|
45832
45853
|
}, []);
|
|
45833
|
-
return /* @__PURE__ */ (0,
|
|
45854
|
+
return /* @__PURE__ */ (0, import_jsx_runtime230.jsxs)(import_jsx_runtime230.Fragment, {
|
|
45834
45855
|
children: [
|
|
45835
|
-
/* @__PURE__ */ (0,
|
|
45836
|
-
(0, bridge_entry_exports.getOperationalEnvironment)() === "toss" ? /* @__PURE__ */ (0,
|
|
45856
|
+
/* @__PURE__ */ (0, import_jsx_runtime230.jsx)(RNNavigationBar.Game, {}),
|
|
45857
|
+
(0, bridge_entry_exports.getOperationalEnvironment)() === "toss" ? /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(GameInitializer, {
|
|
45837
45858
|
children
|
|
45838
45859
|
}) : children
|
|
45839
45860
|
]
|
|
@@ -45841,9 +45862,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45841
45862
|
}
|
|
45842
45863
|
function GeneralAppContainer(param) {
|
|
45843
45864
|
var children = param.children;
|
|
45844
|
-
return /* @__PURE__ */ (0,
|
|
45865
|
+
return /* @__PURE__ */ (0, import_jsx_runtime230.jsxs)(import_jsx_runtime230.Fragment, {
|
|
45845
45866
|
children: [
|
|
45846
|
-
/* @__PURE__ */ (0,
|
|
45867
|
+
/* @__PURE__ */ (0, import_jsx_runtime230.jsx)(RNNavigationBar.Default, {}),
|
|
45847
45868
|
children
|
|
45848
45869
|
]
|
|
45849
45870
|
});
|
|
@@ -45856,21 +45877,21 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45856
45877
|
android: "5.220.0",
|
|
45857
45878
|
ios: "5.221.0"
|
|
45858
45879
|
})) {
|
|
45859
|
-
return /* @__PURE__ */ (0,
|
|
45880
|
+
return /* @__PURE__ */ (0, import_jsx_runtime231.jsxs)(import_jsx_runtime231.Fragment, {
|
|
45860
45881
|
children: [
|
|
45861
|
-
/* @__PURE__ */ (0,
|
|
45862
|
-
/* @__PURE__ */ (0,
|
|
45863
|
-
/* @__PURE__ */ (0,
|
|
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)(AppUpdate, {})
|
|
45864
45885
|
]
|
|
45865
45886
|
});
|
|
45866
45887
|
}
|
|
45867
|
-
return /* @__PURE__ */ (0,
|
|
45888
|
+
return /* @__PURE__ */ (0, import_jsx_runtime231.jsxs)(import_jsx_runtime231.Fragment, {
|
|
45868
45889
|
children: [
|
|
45869
|
-
/* @__PURE__ */ (0,
|
|
45870
|
-
/* @__PURE__ */ (0,
|
|
45871
|
-
/* @__PURE__ */ (0,
|
|
45872
|
-
/* @__PURE__ */ (0,
|
|
45873
|
-
children: /* @__PURE__ */ (0,
|
|
45890
|
+
/* @__PURE__ */ (0, import_jsx_runtime231.jsx)(AppEvent.StayTime, {}),
|
|
45891
|
+
/* @__PURE__ */ (0, import_jsx_runtime231.jsx)(AppEvent.Entry, {}),
|
|
45892
|
+
/* @__PURE__ */ (0, import_jsx_runtime231.jsx)(AppEvent.System, _object_spread({}, initialProps)),
|
|
45893
|
+
/* @__PURE__ */ (0, import_jsx_runtime231.jsx)(Container, _object_spread_props(_object_spread({}, initialProps), {
|
|
45894
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(TDSProvider, {
|
|
45874
45895
|
colorPreference: "light",
|
|
45875
45896
|
token: {
|
|
45876
45897
|
color: {
|
|
@@ -45913,9 +45934,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45913
45934
|
function AppsInTossScreenContainer(param) {
|
|
45914
45935
|
var children = param.children;
|
|
45915
45936
|
var isRNApp = getAppsInTossGlobals().webViewType == null;
|
|
45916
|
-
return /* @__PURE__ */ (0,
|
|
45917
|
-
children: /* @__PURE__ */ (0,
|
|
45918
|
-
children: isRNApp ? /* @__PURE__ */ (0,
|
|
45937
|
+
return /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(NavigationBarContextProvider, {
|
|
45938
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(Analytics.Screen, {
|
|
45939
|
+
children: isRNApp ? /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(RNAppContainer, {
|
|
45919
45940
|
children
|
|
45920
45941
|
}) : children
|
|
45921
45942
|
})
|
|
@@ -45972,18 +45993,18 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45972
45993
|
logging,
|
|
45973
45994
|
openConfirm
|
|
45974
45995
|
]);
|
|
45975
|
-
return /* @__PURE__ */ (0,
|
|
45996
|
+
return /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(import_jsx_runtime232.Fragment, {
|
|
45976
45997
|
children: [
|
|
45977
|
-
/* @__PURE__ */ (0,
|
|
45998
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(PageNavbar, {
|
|
45978
45999
|
preference: {
|
|
45979
46000
|
type: "none"
|
|
45980
46001
|
}
|
|
45981
46002
|
}),
|
|
45982
|
-
/* @__PURE__ */ (0,
|
|
46003
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(import_react_native225.View, {
|
|
45983
46004
|
style: {
|
|
45984
46005
|
width: "100%",
|
|
45985
46006
|
// TODO: UI관련 스타일 설정은 TDS로 이관
|
|
45986
|
-
height:
|
|
46007
|
+
height: import_react_native225.Platform.OS === "ios" ? 44 : 54,
|
|
45987
46008
|
flexDirection: "row",
|
|
45988
46009
|
alignItems: "center",
|
|
45989
46010
|
justifyContent: "flex-end",
|
|
@@ -45993,7 +46014,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45993
46014
|
paddingRight: safeAreaRight + 10
|
|
45994
46015
|
},
|
|
45995
46016
|
pointerEvents: "box-none",
|
|
45996
|
-
children: /* @__PURE__ */ (0,
|
|
46017
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(NavigationRightContent, {
|
|
45997
46018
|
fixedRightButton: navigationRightButton,
|
|
45998
46019
|
onPressDots: openMoreButtonBottomSheet,
|
|
45999
46020
|
onPressClose: function() {
|
|
@@ -46052,9 +46073,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46052
46073
|
logging,
|
|
46053
46074
|
openConfirm
|
|
46054
46075
|
]);
|
|
46055
|
-
return /* @__PURE__ */ (0,
|
|
46076
|
+
return /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(NavigationBarImpressionArea, {
|
|
46056
46077
|
withHomeButton,
|
|
46057
|
-
children: /* @__PURE__ */ (0,
|
|
46078
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(TopNavigation, {
|
|
46058
46079
|
title: globals.brandDisplayName,
|
|
46059
46080
|
icon: toIcon(globals.brandIcon),
|
|
46060
46081
|
onPressDots: openMoreButtonBottomSheet,
|
|
@@ -46064,9 +46085,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46064
46085
|
withHome: withHomeButton,
|
|
46065
46086
|
fixedRightButton: navigationRightButton,
|
|
46066
46087
|
leftVisible: withBackButton,
|
|
46067
|
-
children: /* @__PURE__ */ (0,
|
|
46088
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(NavigationLeft2, {
|
|
46068
46089
|
visible: withBackButton,
|
|
46069
|
-
children: /* @__PURE__ */ (0,
|
|
46090
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(NavigationBackButton2, {
|
|
46070
46091
|
onPress: onBackButtonClick,
|
|
46071
46092
|
canGoBack: false
|
|
46072
46093
|
})
|
|
@@ -46968,7 +46989,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46968
46989
|
var batteryModePreference = param.batteryModePreference, colorPreference = param.colorPreference, locale = param.locale, navbarPreference = param.navbarPreference, pureSafeArea = param.pureSafeArea, safeArea = param.safeArea, safeAreaBottomTransparency = param.safeAreaBottomTransparency;
|
|
46969
46990
|
var platform = getPlatformOS();
|
|
46970
46991
|
var appVersion = getTossAppVersion();
|
|
46971
|
-
var fontScale = (0,
|
|
46992
|
+
var fontScale = (0, import_react_native231.useWindowDimensions)().fontScale;
|
|
46972
46993
|
var platformString = platform === "ios" ? "iPhone" : "Android phone";
|
|
46973
46994
|
var fontA11y = mapFontScaleToCategory(fontScale, platform);
|
|
46974
46995
|
var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
|
|
@@ -47262,16 +47283,16 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47262
47283
|
webBackHandler.handleWebBack();
|
|
47263
47284
|
return true;
|
|
47264
47285
|
};
|
|
47265
|
-
|
|
47286
|
+
import_react_native222.BackHandler.addEventListener("hardwareBackPress", callback);
|
|
47266
47287
|
return function() {
|
|
47267
|
-
return
|
|
47288
|
+
return import_react_native222.BackHandler.removeEventListener("hardwareBackPress", callback);
|
|
47268
47289
|
};
|
|
47269
47290
|
}, [
|
|
47270
47291
|
webBackHandler
|
|
47271
47292
|
]);
|
|
47272
47293
|
var globalScripts = useGlobalScripts();
|
|
47273
47294
|
var handleWebViewProcessDidTerminate = useHandleWebViewProcessDidTerminate(webViewRef);
|
|
47274
|
-
return /* @__PURE__ */ (0,
|
|
47295
|
+
return /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(BaseWebView, _object_spread_props(_object_spread({
|
|
47275
47296
|
ref: refs
|
|
47276
47297
|
}, props, headerPropForExternalWebView), {
|
|
47277
47298
|
source: {
|
|
@@ -47291,14 +47312,14 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47291
47312
|
(_props_onNavigationStateChange = props.onNavigationStateChange) === null || _props_onNavigationStateChange === void 0 ? void 0 : _props_onNavigationStateChange.call(props, event);
|
|
47292
47313
|
webBackHandler.onNavigationStateChange(event);
|
|
47293
47314
|
},
|
|
47294
|
-
userAgent:
|
|
47315
|
+
userAgent: import_react_native222.Platform.OS === "ios" ? userAgent : void 0,
|
|
47295
47316
|
sharedCookiesEnabled: true,
|
|
47296
47317
|
webviewDebuggingEnabled: webViewDebuggingEnabled,
|
|
47297
47318
|
thirdPartyCookiesEnabled: true,
|
|
47298
47319
|
onMessage: handler.onMessage,
|
|
47299
47320
|
injectedJavaScript: globalScripts.afterLoad,
|
|
47300
47321
|
injectedJavaScriptBeforeContentLoaded: mergeScripts(handler.injectedJavaScript, globalScripts.beforeLoad),
|
|
47301
|
-
decelerationRate:
|
|
47322
|
+
decelerationRate: import_react_native222.Platform.OS === "ios" ? 1 : void 0,
|
|
47302
47323
|
allowsBackForwardNavigationGestures,
|
|
47303
47324
|
onShouldStartLoadWithRequest: function(event) {
|
|
47304
47325
|
try {
|
|
@@ -47310,7 +47331,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47310
47331
|
return true;
|
|
47311
47332
|
} else {
|
|
47312
47333
|
var _convertIntentURL;
|
|
47313
|
-
|
|
47334
|
+
import_react_native222.Linking.openURL((_convertIntentURL = convertIntentURL(url2)) !== null && _convertIntentURL !== void 0 ? _convertIntentURL : url2.href);
|
|
47314
47335
|
return false;
|
|
47315
47336
|
}
|
|
47316
47337
|
} catch (error) {
|
|
@@ -47348,7 +47369,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47348
47369
|
return typeof script === "string";
|
|
47349
47370
|
}).join("\n");
|
|
47350
47371
|
}
|
|
47351
|
-
var import_react_native197, import_react210, import_react211, import_react212, import_react213, import_jsx_runtime218, import_react214, import_jsx_runtime219, import_react215, import_react_native203, import_react216, import_react_native205, import_react217, import_react_native207, import_react218, import_react219, import_react220, import_react221, import_jsx_runtime220, import_jsx_runtime221, import_react222, import_react_native210, import_react223, import_react224, import_react225, import_react_native215, import_react_native216, import_jsx_runtime222, import_jsx_runtime223, import_jsx_runtime224, import_jsx_runtime225,
|
|
47372
|
+
var import_react_native197, import_react210, import_react211, import_react212, import_react213, import_jsx_runtime218, import_react214, import_jsx_runtime219, import_react215, import_react_native203, import_react216, import_react_native205, import_react217, import_react_native207, import_react218, import_react219, import_react220, import_react221, import_jsx_runtime220, import_jsx_runtime221, import_react222, import_react_native210, import_react223, import_react224, import_react225, import_react_native215, import_react_native216, import_jsx_runtime222, import_jsx_runtime223, import_react_native218, import_jsx_runtime224, import_jsx_runtime225, import_jsx_runtime226, import_react226, import_jsx_runtime227, import_jsx_runtime228, import_react_native220, import_jsx_runtime229, import_jsx_runtime230, import_jsx_runtime231, import_react227, import_react_native222, import_react228, import_react_native223, import_react229, import_react_native225, import_jsx_runtime232, import_jsx_runtime233, import_react230, import_react231, import_jsx_runtime234, import_jsx_runtime235, import_react232, import_react233, import_react234, import_react235, import_react_native231, import_react236, import_react237, import_jsx_runtime236, __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;
|
|
47352
47373
|
var init_dist8 = __esm({
|
|
47353
47374
|
"../../../.yarn/__virtual__/@apps-in-toss-framework-virtual-afbad361af/1/packages/apps-in-toss/framework/dist/index.js"() {
|
|
47354
47375
|
"use strict";
|
|
@@ -47439,22 +47460,25 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47439
47460
|
import_jsx_runtime222 = __toESM(require_jsx_runtime(), 1);
|
|
47440
47461
|
import_jsx_runtime223 = __toESM(require_jsx_runtime(), 1);
|
|
47441
47462
|
init_dist6();
|
|
47442
|
-
|
|
47463
|
+
import_react_native218 = __toESM(require_react_native(), 1);
|
|
47443
47464
|
import_jsx_runtime224 = __toESM(require_jsx_runtime(), 1);
|
|
47465
|
+
init_dist6();
|
|
47466
|
+
init_src3();
|
|
47444
47467
|
import_jsx_runtime225 = __toESM(require_jsx_runtime(), 1);
|
|
47445
|
-
import_react226 = __toESM(require_react(), 1);
|
|
47446
47468
|
import_jsx_runtime226 = __toESM(require_jsx_runtime(), 1);
|
|
47469
|
+
import_react226 = __toESM(require_react(), 1);
|
|
47447
47470
|
import_jsx_runtime227 = __toESM(require_jsx_runtime(), 1);
|
|
47471
|
+
import_jsx_runtime228 = __toESM(require_jsx_runtime(), 1);
|
|
47448
47472
|
init_react_native_safe_area_context();
|
|
47449
47473
|
init_esm8();
|
|
47450
47474
|
init_private2();
|
|
47451
|
-
|
|
47452
|
-
|
|
47475
|
+
import_react_native220 = __toESM(require_react_native(), 1);
|
|
47476
|
+
import_jsx_runtime229 = __toESM(require_jsx_runtime(), 1);
|
|
47453
47477
|
init_async_bridges();
|
|
47454
47478
|
init_constant_bridges2();
|
|
47455
47479
|
init_event_bridges();
|
|
47456
|
-
import_jsx_runtime229 = __toESM(require_jsx_runtime(), 1);
|
|
47457
47480
|
import_jsx_runtime230 = __toESM(require_jsx_runtime(), 1);
|
|
47481
|
+
import_jsx_runtime231 = __toESM(require_jsx_runtime(), 1);
|
|
47458
47482
|
init_dist6();
|
|
47459
47483
|
init_async_bridges();
|
|
47460
47484
|
init_constant_bridges2();
|
|
@@ -47464,20 +47488,20 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47464
47488
|
init_esm8();
|
|
47465
47489
|
init_private2();
|
|
47466
47490
|
import_react227 = __toESM(require_react(), 1);
|
|
47467
|
-
|
|
47491
|
+
import_react_native222 = __toESM(require_react_native(), 1);
|
|
47468
47492
|
init_dist6();
|
|
47469
47493
|
init_react_native_webview();
|
|
47470
47494
|
import_react228 = __toESM(require_react(), 1);
|
|
47471
|
-
|
|
47495
|
+
import_react_native223 = __toESM(require_react_native(), 1);
|
|
47472
47496
|
init_react_native_safe_area_context();
|
|
47473
47497
|
init_src3();
|
|
47474
47498
|
init_esm8();
|
|
47475
47499
|
init_private2();
|
|
47476
47500
|
init_dist7();
|
|
47477
47501
|
import_react229 = __toESM(require_react(), 1);
|
|
47478
|
-
|
|
47479
|
-
import_jsx_runtime231 = __toESM(require_jsx_runtime(), 1);
|
|
47502
|
+
import_react_native225 = __toESM(require_react_native(), 1);
|
|
47480
47503
|
import_jsx_runtime232 = __toESM(require_jsx_runtime(), 1);
|
|
47504
|
+
import_jsx_runtime233 = __toESM(require_jsx_runtime(), 1);
|
|
47481
47505
|
init_react_native_webview();
|
|
47482
47506
|
import_react230 = __toESM(require_react(), 1);
|
|
47483
47507
|
init_src3();
|
|
@@ -47485,8 +47509,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47485
47509
|
init_private2();
|
|
47486
47510
|
init_dist7();
|
|
47487
47511
|
import_react231 = __toESM(require_react(), 1);
|
|
47488
|
-
import_jsx_runtime233 = __toESM(require_jsx_runtime(), 1);
|
|
47489
47512
|
import_jsx_runtime234 = __toESM(require_jsx_runtime(), 1);
|
|
47513
|
+
import_jsx_runtime235 = __toESM(require_jsx_runtime(), 1);
|
|
47490
47514
|
init_dist6();
|
|
47491
47515
|
init_dist6();
|
|
47492
47516
|
init_src3();
|
|
@@ -47503,7 +47527,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47503
47527
|
import_react234 = __toESM(require_react(), 1);
|
|
47504
47528
|
import_react235 = __toESM(require_react(), 1);
|
|
47505
47529
|
init_dist6();
|
|
47506
|
-
|
|
47530
|
+
import_react_native231 = __toESM(require_react_native(), 1);
|
|
47507
47531
|
init_dist6();
|
|
47508
47532
|
import_react236 = __toESM(require_react(), 1);
|
|
47509
47533
|
import_react237 = __toESM(require_react(), 1);
|
|
@@ -47512,7 +47536,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47512
47536
|
init_esm8();
|
|
47513
47537
|
init_dist6();
|
|
47514
47538
|
init_src3();
|
|
47515
|
-
|
|
47539
|
+
import_jsx_runtime236 = __toESM(require_jsx_runtime(), 1);
|
|
47516
47540
|
init_dist3();
|
|
47517
47541
|
init_dist6();
|
|
47518
47542
|
init_dist4();
|
|
@@ -48040,6 +48064,10 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48040
48064
|
android: "5.230.0",
|
|
48041
48065
|
ios: "5.230.0"
|
|
48042
48066
|
},
|
|
48067
|
+
HOME_SHORTCUT_MENU: {
|
|
48068
|
+
android: "5.246.0",
|
|
48069
|
+
ios: "5.246.0"
|
|
48070
|
+
},
|
|
48043
48071
|
PERMISSIONS_MENU: {
|
|
48044
48072
|
android: "5.238.0",
|
|
48045
48073
|
ios: "5.237.0"
|
|
@@ -48058,7 +48086,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48058
48086
|
};
|
|
48059
48087
|
GameWebView = /* @__PURE__ */ (0, import_react228.forwardRef)(function GameWebView2(props, ref) {
|
|
48060
48088
|
(0, import_react228.useEffect)(function() {
|
|
48061
|
-
if (
|
|
48089
|
+
if (import_react_native223.Platform.OS === "ios") {
|
|
48062
48090
|
setIosSwipeGestureEnabled({
|
|
48063
48091
|
isEnabled: false
|
|
48064
48092
|
});
|
|
@@ -48070,14 +48098,14 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48070
48098
|
}
|
|
48071
48099
|
return;
|
|
48072
48100
|
}, []);
|
|
48073
|
-
return /* @__PURE__ */ (0,
|
|
48101
|
+
return /* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(import_jsx_runtime233.Fragment, {
|
|
48074
48102
|
children: [
|
|
48075
|
-
/* @__PURE__ */ (0,
|
|
48076
|
-
getOperationalEnvironment() === "toss" ? /* @__PURE__ */ (0,
|
|
48077
|
-
children: /* @__PURE__ */ (0,
|
|
48103
|
+
/* @__PURE__ */ (0, import_jsx_runtime233.jsx)(GameWebviewNavigationBar, {}),
|
|
48104
|
+
getOperationalEnvironment() === "toss" ? /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(GameInitializer, {
|
|
48105
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(react_native_webview_exports.WebView, _object_spread({
|
|
48078
48106
|
ref
|
|
48079
48107
|
}, props))
|
|
48080
|
-
}) : /* @__PURE__ */ (0,
|
|
48108
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(react_native_webview_exports.WebView, _object_spread({
|
|
48081
48109
|
ref
|
|
48082
48110
|
}, props))
|
|
48083
48111
|
]
|
|
@@ -48088,13 +48116,13 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48088
48116
|
"onBackButtonClick",
|
|
48089
48117
|
"onHomeButtonClick"
|
|
48090
48118
|
]);
|
|
48091
|
-
return /* @__PURE__ */ (0,
|
|
48119
|
+
return /* @__PURE__ */ (0, import_jsx_runtime235.jsxs)(import_jsx_runtime235.Fragment, {
|
|
48092
48120
|
children: [
|
|
48093
|
-
/* @__PURE__ */ (0,
|
|
48121
|
+
/* @__PURE__ */ (0, import_jsx_runtime235.jsx)(PartnerWebviewNavigationBar, {
|
|
48094
48122
|
onBackButtonClick,
|
|
48095
48123
|
onHomeButtonClick
|
|
48096
48124
|
}),
|
|
48097
|
-
/* @__PURE__ */ (0,
|
|
48125
|
+
/* @__PURE__ */ (0, import_jsx_runtime235.jsx)(react_native_webview_exports.WebView, _object_spread_props(_object_spread({
|
|
48098
48126
|
ref
|
|
48099
48127
|
}, webViewProps), {
|
|
48100
48128
|
style: {
|
|
@@ -48285,11 +48313,11 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48285
48313
|
}
|
|
48286
48314
|
});
|
|
48287
48315
|
function Index() {
|
|
48288
|
-
return /* @__PURE__ */ (0,
|
|
48316
|
+
return /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(import_react_native234.View, {
|
|
48289
48317
|
style: {
|
|
48290
48318
|
flex: 1
|
|
48291
48319
|
},
|
|
48292
|
-
children: /* @__PURE__ */ (0,
|
|
48320
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(WebView, {
|
|
48293
48321
|
style: {
|
|
48294
48322
|
flex: 1
|
|
48295
48323
|
},
|
|
@@ -48307,13 +48335,13 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48307
48335
|
})
|
|
48308
48336
|
});
|
|
48309
48337
|
}
|
|
48310
|
-
var
|
|
48338
|
+
var import_jsx_runtime237, import_react_native234;
|
|
48311
48339
|
var init_pages = __esm({
|
|
48312
48340
|
"react-native/pages/index.tsx"() {
|
|
48313
48341
|
"use strict";
|
|
48314
|
-
|
|
48342
|
+
import_jsx_runtime237 = __toESM(require_jsx_runtime(), 1);
|
|
48315
48343
|
init_dist8();
|
|
48316
|
-
|
|
48344
|
+
import_react_native234 = __toESM(require_react_native(), 1);
|
|
48317
48345
|
}
|
|
48318
48346
|
});
|
|
48319
48347
|
|
|
@@ -48338,7 +48366,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48338
48366
|
return app_default;
|
|
48339
48367
|
}
|
|
48340
48368
|
});
|
|
48341
|
-
var
|
|
48369
|
+
var import_jsx_runtime238 = __toESM(require_jsx_runtime());
|
|
48342
48370
|
|
|
48343
48371
|
// ../../../.yarn/cache/@react-native-js-polyfills-npm-0.72.1-52931e590c-e4a77d6c8b.zip/node_modules/@react-native/js-polyfills/console.js
|
|
48344
48372
|
init_instanceof();
|
|
@@ -48920,7 +48948,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48920
48948
|
// react-native/src/_app.tsx
|
|
48921
48949
|
function AppContainer(param) {
|
|
48922
48950
|
var children = param.children;
|
|
48923
|
-
return /* @__PURE__ */ (0,
|
|
48951
|
+
return /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(import_jsx_runtime238.Fragment, {
|
|
48924
48952
|
children
|
|
48925
48953
|
});
|
|
48926
48954
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apps-in-toss/web-framework",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.9.
|
|
4
|
+
"version": "1.9.3",
|
|
5
5
|
"description": "Web Framework for Apps In Toss",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"typecheck": "tsc --noEmit",
|
|
@@ -86,12 +86,12 @@
|
|
|
86
86
|
"zod": "3.24.4"
|
|
87
87
|
},
|
|
88
88
|
"dependencies": {
|
|
89
|
-
"@apps-in-toss/bridge-core": "1.9.
|
|
90
|
-
"@apps-in-toss/cli": "1.9.
|
|
91
|
-
"@apps-in-toss/framework": "1.9.
|
|
92
|
-
"@apps-in-toss/plugins": "1.9.
|
|
93
|
-
"@apps-in-toss/web-analytics": "1.9.
|
|
94
|
-
"@apps-in-toss/web-bridge": "1.9.
|
|
89
|
+
"@apps-in-toss/bridge-core": "1.9.3",
|
|
90
|
+
"@apps-in-toss/cli": "1.9.3",
|
|
91
|
+
"@apps-in-toss/framework": "1.9.3",
|
|
92
|
+
"@apps-in-toss/plugins": "1.9.3",
|
|
93
|
+
"@apps-in-toss/web-analytics": "1.9.3",
|
|
94
|
+
"@apps-in-toss/web-bridge": "1.9.3",
|
|
95
95
|
"@babel/core": "7.23.9",
|
|
96
96
|
"@granite-js/cli": "0.1.31",
|
|
97
97
|
"@granite-js/mpack": "0.1.31",
|