@apps-in-toss/web-framework 0.0.29 → 0.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/chunk-34QS4NNF.js +173587 -0
- package/dist/cli/chunk-HDRFXOPA.js +63 -0
- package/dist/cli/chunk-RUDG2MMT.js +173587 -0
- package/dist/cli/lib-NMFBQRQ2.js +1007 -0
- package/dist/cli/typescript-THSIDFIK.js +6 -0
- package/dist/cli/typescript-YVXHBAAI.js +6 -0
- package/dist/prebuilt/dev.android.js +272 -78
- package/dist/prebuilt/dev.ios.js +272 -78
- package/dist/prebuilt/prod.android.js +246 -25
- package/dist/prebuilt/prod.ios.js +246 -25
- package/dist/prebuilt/prod.json +4 -4
- package/package.json +8 -8
|
@@ -37610,15 +37610,15 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
37610
37610
|
function byPlatform2(_param) {
|
|
37611
37611
|
var props = _extends({}, _object_destructuring_empty(_param));
|
|
37612
37612
|
var _props_Platform2_OS;
|
|
37613
|
-
return ((_props_Platform2_OS = props[
|
|
37613
|
+
return ((_props_Platform2_OS = props[import_react_native141.Platform.OS]) !== null && _props_Platform2_OS !== void 0 ? _props_Platform2_OS : props.fallback)();
|
|
37614
37614
|
}
|
|
37615
37615
|
function IOSHeaderRight2(props) {
|
|
37616
|
-
return /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(
|
|
37616
|
+
return /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(import_react_native140.View, _object_spread({
|
|
37617
37617
|
style: styles31.ios
|
|
37618
37618
|
}, props));
|
|
37619
37619
|
}
|
|
37620
37620
|
function AndroidHeaderRight2(props) {
|
|
37621
|
-
return /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(
|
|
37621
|
+
return /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(import_react_native140.View, _object_spread({
|
|
37622
37622
|
style: styles31.android
|
|
37623
37623
|
}, props));
|
|
37624
37624
|
}
|
|
@@ -37637,7 +37637,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
37637
37637
|
}
|
|
37638
37638
|
function useSafeAreaTop2() {
|
|
37639
37639
|
var safeAreaInsets = (0, react_native_safe_area_context_exports.useSafeAreaInsets)();
|
|
37640
|
-
var hasDynamicIsland =
|
|
37640
|
+
var hasDynamicIsland = import_react_native142.Platform.OS === "ios" && safeAreaInsets.top > 50;
|
|
37641
37641
|
var safeAreaTop = hasDynamicIsland ? safeAreaInsets.top - 5 : safeAreaInsets.top;
|
|
37642
37642
|
return safeAreaTop;
|
|
37643
37643
|
}
|
|
@@ -37651,21 +37651,21 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
37651
37651
|
type: "none"
|
|
37652
37652
|
}
|
|
37653
37653
|
}),
|
|
37654
|
-
/* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
|
|
37654
|
+
/* @__PURE__ */ (0, import_jsx_runtime178.jsx)(import_react_native139.View, {
|
|
37655
37655
|
style: {
|
|
37656
37656
|
width: "100%",
|
|
37657
|
-
height:
|
|
37657
|
+
height: import_react_native139.Platform.OS === "ios" ? 44 : 54,
|
|
37658
37658
|
flexDirection: "row",
|
|
37659
37659
|
alignItems: "center",
|
|
37660
37660
|
justifyContent: "flex-end",
|
|
37661
37661
|
position: "absolute",
|
|
37662
37662
|
zIndex: 9999,
|
|
37663
37663
|
marginTop: safeAreaTop,
|
|
37664
|
-
paddingRight:
|
|
37664
|
+
paddingRight: import_react_native139.Platform.OS === "ios" ? 10 : 8
|
|
37665
37665
|
},
|
|
37666
37666
|
pointerEvents: "box-none",
|
|
37667
37667
|
children: /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(HeaderRight2, {
|
|
37668
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
|
|
37668
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(import_react_native139.TouchableOpacity, {
|
|
37669
37669
|
hitSlop: {
|
|
37670
37670
|
left: 8,
|
|
37671
37671
|
right: 8
|
|
@@ -37674,7 +37674,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
37674
37674
|
accessible: true,
|
|
37675
37675
|
accessibilityLabel: "\uAC8C\uC784\uC885\uB8CC",
|
|
37676
37676
|
style: {
|
|
37677
|
-
padding:
|
|
37677
|
+
padding: import_react_native139.Platform.OS === "ios" ? 7 : 9
|
|
37678
37678
|
},
|
|
37679
37679
|
onPress: onClose,
|
|
37680
37680
|
children: /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(react_native_svg_exports.SvgXml, {
|
|
@@ -37841,6 +37841,170 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
37841
37841
|
onMessage: $onMessage
|
|
37842
37842
|
};
|
|
37843
37843
|
}
|
|
37844
|
+
function convertToAndroidStyleScale(fontScale, platform) {
|
|
37845
|
+
if (platform === "android") {
|
|
37846
|
+
if (fontScale <= 1) {
|
|
37847
|
+
return 100;
|
|
37848
|
+
}
|
|
37849
|
+
var scaledValue = Math.round(fontScale * 100);
|
|
37850
|
+
var keys = Object.keys(androidFontScaleMap).map(Number).sort(function(a, b) {
|
|
37851
|
+
return a - b;
|
|
37852
|
+
});
|
|
37853
|
+
var closestKey = keys[0];
|
|
37854
|
+
var minDiff = Math.abs(scaledValue - closestKey);
|
|
37855
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
37856
|
+
try {
|
|
37857
|
+
for (var _iterator = keys[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
37858
|
+
var key = _step.value;
|
|
37859
|
+
var diff = Math.abs(scaledValue - key);
|
|
37860
|
+
if (diff < minDiff) {
|
|
37861
|
+
minDiff = diff;
|
|
37862
|
+
closestKey = key;
|
|
37863
|
+
}
|
|
37864
|
+
}
|
|
37865
|
+
} catch (err) {
|
|
37866
|
+
_didIteratorError = true;
|
|
37867
|
+
_iteratorError = err;
|
|
37868
|
+
} finally {
|
|
37869
|
+
try {
|
|
37870
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
37871
|
+
_iterator.return();
|
|
37872
|
+
}
|
|
37873
|
+
} finally {
|
|
37874
|
+
if (_didIteratorError) {
|
|
37875
|
+
throw _iteratorError;
|
|
37876
|
+
}
|
|
37877
|
+
}
|
|
37878
|
+
}
|
|
37879
|
+
return closestKey;
|
|
37880
|
+
} else {
|
|
37881
|
+
var iosScales = Object.keys(iosScaleToAndroidScale).map(Number);
|
|
37882
|
+
var closestScale = iosScales[0];
|
|
37883
|
+
var minDiff1 = Math.abs(fontScale - closestScale);
|
|
37884
|
+
var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;
|
|
37885
|
+
try {
|
|
37886
|
+
for (var _iterator1 = iosScales[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {
|
|
37887
|
+
var scale = _step1.value;
|
|
37888
|
+
var diff1 = Math.abs(fontScale - scale);
|
|
37889
|
+
if (diff1 < minDiff1) {
|
|
37890
|
+
minDiff1 = diff1;
|
|
37891
|
+
closestScale = scale;
|
|
37892
|
+
}
|
|
37893
|
+
}
|
|
37894
|
+
} catch (err) {
|
|
37895
|
+
_didIteratorError1 = true;
|
|
37896
|
+
_iteratorError1 = err;
|
|
37897
|
+
} finally {
|
|
37898
|
+
try {
|
|
37899
|
+
if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
|
|
37900
|
+
_iterator1.return();
|
|
37901
|
+
}
|
|
37902
|
+
} finally {
|
|
37903
|
+
if (_didIteratorError1) {
|
|
37904
|
+
throw _iteratorError1;
|
|
37905
|
+
}
|
|
37906
|
+
}
|
|
37907
|
+
}
|
|
37908
|
+
return iosScaleToAndroidScale[closestScale];
|
|
37909
|
+
}
|
|
37910
|
+
}
|
|
37911
|
+
function mapIOSFontScaleToCategory(fontScale) {
|
|
37912
|
+
if (fontScale < 1) {
|
|
37913
|
+
return FontA11yCategory.Large;
|
|
37914
|
+
}
|
|
37915
|
+
if (Math.abs(fontScale - 1) < 0.05) {
|
|
37916
|
+
return FontA11yCategory.Large;
|
|
37917
|
+
}
|
|
37918
|
+
if (Math.abs(fontScale - 1.118) < 0.05) {
|
|
37919
|
+
return FontA11yCategory.xLarge;
|
|
37920
|
+
}
|
|
37921
|
+
if (Math.abs(fontScale - 1.235) < 0.05) {
|
|
37922
|
+
return FontA11yCategory.xxLarge;
|
|
37923
|
+
}
|
|
37924
|
+
if (Math.abs(fontScale - 1.353) < 0.05) {
|
|
37925
|
+
return FontA11yCategory.xxxLarge;
|
|
37926
|
+
}
|
|
37927
|
+
if (Math.abs(fontScale - 1.786) < 0.05) {
|
|
37928
|
+
return FontA11yCategory.A11y_Medium;
|
|
37929
|
+
}
|
|
37930
|
+
if (Math.abs(fontScale - 2.143) < 0.05) {
|
|
37931
|
+
return FontA11yCategory.A11y_Large;
|
|
37932
|
+
}
|
|
37933
|
+
if (Math.abs(fontScale - 2.643) < 0.05) {
|
|
37934
|
+
return FontA11yCategory.A11y_xLarge;
|
|
37935
|
+
}
|
|
37936
|
+
if (Math.abs(fontScale - 3.143) < 0.05) {
|
|
37937
|
+
return FontA11yCategory.A11y_xxLarge;
|
|
37938
|
+
}
|
|
37939
|
+
if (Math.abs(fontScale - 3.571) < 0.05) {
|
|
37940
|
+
return FontA11yCategory.A11y_xxxLarge;
|
|
37941
|
+
}
|
|
37942
|
+
return FontA11yCategory.Large;
|
|
37943
|
+
}
|
|
37944
|
+
function mapAndroidFontScaleToCategory(fontScale) {
|
|
37945
|
+
if (fontScale <= 1) {
|
|
37946
|
+
return androidFontScaleMap[100];
|
|
37947
|
+
}
|
|
37948
|
+
var scaledValue = Math.round(fontScale * 100);
|
|
37949
|
+
var keys = Object.keys(androidFontScaleMap).map(Number).sort(function(a, b) {
|
|
37950
|
+
return a - b;
|
|
37951
|
+
});
|
|
37952
|
+
if (keys.length === 0) {
|
|
37953
|
+
return androidFontScaleMap[100];
|
|
37954
|
+
}
|
|
37955
|
+
var closestKey = keys[0];
|
|
37956
|
+
var minDiff = Math.abs(scaledValue - closestKey);
|
|
37957
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
37958
|
+
try {
|
|
37959
|
+
for (var _iterator = keys[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
37960
|
+
var key = _step.value;
|
|
37961
|
+
var diff = Math.abs(scaledValue - key);
|
|
37962
|
+
if (diff < minDiff) {
|
|
37963
|
+
minDiff = diff;
|
|
37964
|
+
closestKey = key;
|
|
37965
|
+
}
|
|
37966
|
+
}
|
|
37967
|
+
} catch (err) {
|
|
37968
|
+
_didIteratorError = true;
|
|
37969
|
+
_iteratorError = err;
|
|
37970
|
+
} finally {
|
|
37971
|
+
try {
|
|
37972
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
37973
|
+
_iterator.return();
|
|
37974
|
+
}
|
|
37975
|
+
} finally {
|
|
37976
|
+
if (_didIteratorError) {
|
|
37977
|
+
throw _iteratorError;
|
|
37978
|
+
}
|
|
37979
|
+
}
|
|
37980
|
+
}
|
|
37981
|
+
return androidFontScaleMap[closestKey];
|
|
37982
|
+
}
|
|
37983
|
+
function mapFontScaleToCategory(fontScale, platform) {
|
|
37984
|
+
return platform === "ios" ? mapIOSFontScaleToCategory(fontScale) : mapAndroidFontScaleToCategory(fontScale);
|
|
37985
|
+
}
|
|
37986
|
+
function useCreateUserAgent(param) {
|
|
37987
|
+
var batteryModePreference = param.batteryModePreference, colorPreference = param.colorPreference, locale = param.locale, navbarPreference = param.navbarPreference, pureSafeArea = param.pureSafeArea, safeArea = param.safeArea, safeAreaBottomTransparency = param.safeAreaBottomTransparency;
|
|
37988
|
+
var platform = getPlatformOS();
|
|
37989
|
+
var appVersion = getTossAppVersion();
|
|
37990
|
+
var fontScale = (0, import_react_native143.useWindowDimensions)().fontScale;
|
|
37991
|
+
var platformString = platform === "ios" ? "iPhone" : "Android";
|
|
37992
|
+
var fontA11y = mapFontScaleToCategory(fontScale, platform);
|
|
37993
|
+
var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
|
|
37994
|
+
return [
|
|
37995
|
+
"TossApp/".concat(appVersion),
|
|
37996
|
+
batteryModePreference && "TossBatteryModePreference/".concat(batteryModePreference),
|
|
37997
|
+
colorPreference && "TossColorPreference/".concat(colorPreference),
|
|
37998
|
+
"TossFontAccessibility/".concat(fontA11y),
|
|
37999
|
+
"TossFontScale/".concat(normalizedFontScale),
|
|
38000
|
+
locale && "TossLocale/".concat(locale),
|
|
38001
|
+
navbarPreference && "TossNavbarPreference/".concat(navbarPreference),
|
|
38002
|
+
pureSafeArea && "TossPureSafeArea/".concat(pureSafeArea),
|
|
38003
|
+
safeArea && "TossSafeArea/".concat(safeArea),
|
|
38004
|
+
safeAreaBottomTransparency && "TossSafeAreaBottomTransparency/".concat(safeAreaBottomTransparency),
|
|
38005
|
+
platformString
|
|
38006
|
+
].filter(Boolean).join(" ");
|
|
38007
|
+
}
|
|
37844
38008
|
function mergeSchemeQueryParamsInto(url) {
|
|
37845
38009
|
var baseUrl = new URL(url);
|
|
37846
38010
|
var schemeUrl = new URL(getSchemeUri());
|
|
@@ -37897,6 +38061,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
37897
38061
|
]);
|
|
37898
38062
|
var top = useSafeAreaTop();
|
|
37899
38063
|
var bottom = useSafeAreaBottom();
|
|
38064
|
+
var global2 = getAppsInTossGlobals();
|
|
37900
38065
|
var handler = useBridgeHandler({
|
|
37901
38066
|
onMessage,
|
|
37902
38067
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -37939,13 +38104,22 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
37939
38104
|
loadAdMobRewardedAd: GoogleAdMob.loadAdMobRewardedAd,
|
|
37940
38105
|
showAdMobRewardedAd: GoogleAdMob.showAdMobRewardedAd
|
|
37941
38106
|
}),
|
|
37942
|
-
constantHandlerMap: _object_spread_props(_object_spread({}, constant_bridges_exports, constant_bridges_exports2), {
|
|
38107
|
+
constantHandlerMap: _object_spread_props(_object_spread(_object_spread_props(_object_spread({}, constant_bridges_exports, constant_bridges_exports2), {
|
|
37943
38108
|
getSafeAreaTop: function() {
|
|
37944
38109
|
return top;
|
|
37945
38110
|
},
|
|
37946
38111
|
getSafeAreaBottom: function() {
|
|
37947
38112
|
return bottom;
|
|
37948
|
-
}
|
|
38113
|
+
}
|
|
38114
|
+
}), Object.fromEntries(Object.entries(global2).map(function(param) {
|
|
38115
|
+
var _$_param = _sliced_to_array(param, 2), key = _$_param[0], value = _$_param[1];
|
|
38116
|
+
return [
|
|
38117
|
+
key,
|
|
38118
|
+
function() {
|
|
38119
|
+
return value;
|
|
38120
|
+
}
|
|
38121
|
+
];
|
|
38122
|
+
}))), {
|
|
37949
38123
|
/** AdMob */
|
|
37950
38124
|
loadAdMobInterstitialAd_isSupported: GoogleAdMob.loadAdMobInterstitialAd.isSupported,
|
|
37951
38125
|
showAdMobInterstitialAd_isSupported: GoogleAdMob.showAdMobInterstitialAd.isSupported,
|
|
@@ -38003,12 +38177,20 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38003
38177
|
trackScreen(event.url);
|
|
38004
38178
|
}
|
|
38005
38179
|
}, []);
|
|
38180
|
+
var userAgent = useCreateUserAgent({
|
|
38181
|
+
colorPreference: "light"
|
|
38182
|
+
});
|
|
38006
38183
|
return /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(BaseWebView, _object_spread_props(_object_spread({
|
|
38007
38184
|
ref: handler.ref
|
|
38008
38185
|
}, props, baseProps), {
|
|
38009
38186
|
source: {
|
|
38010
|
-
uri
|
|
38187
|
+
uri,
|
|
38188
|
+
// NOTE: https://github.com/react-native-webview/react-native-webview/pull/3133
|
|
38189
|
+
headers: {
|
|
38190
|
+
"User-Agent": userAgent
|
|
38191
|
+
}
|
|
38011
38192
|
},
|
|
38193
|
+
userAgent: import_react_native135.Platform.OS === "ios" ? userAgent : void 0,
|
|
38012
38194
|
sharedCookiesEnabled: true,
|
|
38013
38195
|
webviewDebuggingEnabled: webViewDebuggingEnabled,
|
|
38014
38196
|
thirdPartyCookiesEnabled: true,
|
|
@@ -38024,7 +38206,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38024
38206
|
}
|
|
38025
38207
|
return value;
|
|
38026
38208
|
}
|
|
38027
|
-
var import_react146, import_react_native129, import_react_native130, import_react_native131, import_react147, import_react148, import_react_native133, import_jsx_runtime176, import_react149,
|
|
38209
|
+
var import_react146, import_react_native129, import_react_native130, import_react_native131, import_react147, import_react148, import_react_native133, import_jsx_runtime176, import_react149, import_react_native135, import_react150, import_react_native137, import_react_native139, import_react_native140, import_react_native141, import_jsx_runtime177, import_react_native142, import_jsx_runtime178, import_jsx_runtime179, import_react151, import_react_native143, import_react152, import_jsx_runtime180, __defProp2, __export2, env, AppsInTossModuleInstance, AppsInTossModule, SEMVER_REGEX, isWildcard, tryParse, coerceTypes, compareValues, parseVersion, compareSegments, compareVersions, TossCoreModule, ENTRY_APP_EVENT_SCHEMA_ID, AppEvent, EntryMessageExitedEvent, nativeEventEmitter2, UpdateLocationEvent, INTERNAL__callbacks, INTERNAL__appBridgeHandler, UNSAFE__nativeEventEmitter, AppBridgeCallbackEvent, VisibilityChangedByTransparentServiceWebEvent, appsInTossEvent, async_bridges_exports2, DEFAULT_MAX_COUNT, DEFAULT_MAX_WIDTH, AppsInToss, ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION, IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION, UNSUPPORTED_ERROR_MESSAGE, ENVIRONMENT, Storage, IAP, GoogleAdMob, RIGHT_MARGIN2, IOS_DEFAULT_MARGIN2, styles31, originXML, GameWebView, globalEventListenerMap, constant_bridges_exports2, event_bridges_exports, FontA11yCategory, androidFontScaleMap, iosScaleToAndroidScale, extractDateFromUUIDv7, getGroupId, getReferrer, trackScreen, appsInTossGlobals, operationalEnvironment, TYPES, WEBVIEW_TYPES, Analytics2;
|
|
38028
38210
|
var init_dist4 = __esm({
|
|
38029
38211
|
"../../.yarn/__virtual__/@apps-in-toss-framework-virtual-574b136add/1/apps-in-toss-packages/framework/dist/index.js"() {
|
|
38030
38212
|
"use strict";
|
|
@@ -38066,6 +38248,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38066
38248
|
init_esm8();
|
|
38067
38249
|
init_private2();
|
|
38068
38250
|
import_react149 = __toESM(require_react(), 1);
|
|
38251
|
+
import_react_native135 = __toESM(require_react_native(), 1);
|
|
38069
38252
|
init_src4();
|
|
38070
38253
|
init_async_bridges();
|
|
38071
38254
|
init_constant_bridges();
|
|
@@ -38073,23 +38256,25 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38073
38256
|
init_esm8();
|
|
38074
38257
|
init_dist3();
|
|
38075
38258
|
import_react150 = __toESM(require_react(), 1);
|
|
38076
|
-
|
|
38259
|
+
import_react_native137 = __toESM(require_react_native(), 1);
|
|
38077
38260
|
init_src4();
|
|
38078
38261
|
init_react_native_svg();
|
|
38079
38262
|
init_esm8();
|
|
38080
|
-
import_react_native138 = __toESM(require_react_native(), 1);
|
|
38081
38263
|
import_react_native139 = __toESM(require_react_native(), 1);
|
|
38082
38264
|
import_react_native140 = __toESM(require_react_native(), 1);
|
|
38265
|
+
import_react_native141 = __toESM(require_react_native(), 1);
|
|
38083
38266
|
import_jsx_runtime177 = __toESM(require_jsx_runtime(), 1);
|
|
38084
38267
|
init_react_native_safe_area_context();
|
|
38085
|
-
|
|
38268
|
+
import_react_native142 = __toESM(require_react_native(), 1);
|
|
38086
38269
|
import_jsx_runtime178 = __toESM(require_jsx_runtime(), 1);
|
|
38087
38270
|
import_jsx_runtime179 = __toESM(require_jsx_runtime(), 1);
|
|
38088
38271
|
import_react151 = __toESM(require_react(), 1);
|
|
38272
|
+
import_react_native143 = __toESM(require_react_native(), 1);
|
|
38089
38273
|
init_src4();
|
|
38090
|
-
import_jsx_runtime180 = __toESM(require_jsx_runtime(), 1);
|
|
38091
38274
|
import_react152 = __toESM(require_react(), 1);
|
|
38092
38275
|
init_src4();
|
|
38276
|
+
init_src4();
|
|
38277
|
+
import_jsx_runtime180 = __toESM(require_jsx_runtime(), 1);
|
|
38093
38278
|
init_dist2();
|
|
38094
38279
|
__defProp2 = Object.defineProperty;
|
|
38095
38280
|
__export2 = function(target, all) {
|
|
@@ -38453,7 +38638,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38453
38638
|
};
|
|
38454
38639
|
RIGHT_MARGIN2 = 24;
|
|
38455
38640
|
IOS_DEFAULT_MARGIN2 = 20;
|
|
38456
|
-
styles31 =
|
|
38641
|
+
styles31 = import_react_native140.StyleSheet.create({
|
|
38457
38642
|
ios: {
|
|
38458
38643
|
marginRight: -IOS_DEFAULT_MARGIN2 + RIGHT_MARGIN2,
|
|
38459
38644
|
flexDirection: "row"
|
|
@@ -38495,7 +38680,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38495
38680
|
openConfirm
|
|
38496
38681
|
]);
|
|
38497
38682
|
(0, import_react150.useEffect)(function() {
|
|
38498
|
-
if (
|
|
38683
|
+
if (import_react_native137.Platform.OS === "ios") {
|
|
38499
38684
|
setIosSwipeGestureEnabled({
|
|
38500
38685
|
isEnabled: false
|
|
38501
38686
|
});
|
|
@@ -38512,9 +38697,9 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38512
38697
|
handleClose();
|
|
38513
38698
|
return true;
|
|
38514
38699
|
};
|
|
38515
|
-
|
|
38700
|
+
import_react_native137.BackHandler.addEventListener("hardwareBackPress", backHandler);
|
|
38516
38701
|
return function() {
|
|
38517
|
-
|
|
38702
|
+
import_react_native137.BackHandler.removeEventListener("hardwareBackPress", backHandler);
|
|
38518
38703
|
};
|
|
38519
38704
|
}, [
|
|
38520
38705
|
handleClose
|
|
@@ -38524,7 +38709,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38524
38709
|
/* @__PURE__ */ (0, import_jsx_runtime179.jsx)(GameNavigationBar, {
|
|
38525
38710
|
onClose: handleClose
|
|
38526
38711
|
}),
|
|
38527
|
-
/* @__PURE__ */ (0, import_jsx_runtime179.jsx)(
|
|
38712
|
+
/* @__PURE__ */ (0, import_jsx_runtime179.jsx)(import_react_native137.View, {
|
|
38528
38713
|
style: {
|
|
38529
38714
|
flex: 1
|
|
38530
38715
|
},
|
|
@@ -38554,6 +38739,42 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38554
38739
|
return startUpdateLocation;
|
|
38555
38740
|
}
|
|
38556
38741
|
});
|
|
38742
|
+
FontA11yCategory = {
|
|
38743
|
+
Large: "Large",
|
|
38744
|
+
xLarge: "xLarge",
|
|
38745
|
+
xxLarge: "xxLarge",
|
|
38746
|
+
xxxLarge: "xxxLarge",
|
|
38747
|
+
A11y_Medium: "A11y_Medium",
|
|
38748
|
+
A11y_Large: "A11y_Large",
|
|
38749
|
+
A11y_xLarge: "A11y_xLarge",
|
|
38750
|
+
A11y_xxLarge: "A11y_xxLarge",
|
|
38751
|
+
A11y_xxxLarge: "A11y_xxxLarge"
|
|
38752
|
+
};
|
|
38753
|
+
androidFontScaleMap = {
|
|
38754
|
+
100: FontA11yCategory.Large,
|
|
38755
|
+
110: FontA11yCategory.xLarge,
|
|
38756
|
+
120: FontA11yCategory.xxLarge,
|
|
38757
|
+
135: FontA11yCategory.xxxLarge,
|
|
38758
|
+
160: FontA11yCategory.A11y_Medium,
|
|
38759
|
+
190: FontA11yCategory.A11y_Large,
|
|
38760
|
+
235: FontA11yCategory.A11y_xLarge,
|
|
38761
|
+
275: FontA11yCategory.A11y_xxLarge,
|
|
38762
|
+
310: FontA11yCategory.A11y_xxxLarge
|
|
38763
|
+
};
|
|
38764
|
+
iosScaleToAndroidScale = {
|
|
38765
|
+
0.823: 100,
|
|
38766
|
+
0.882: 100,
|
|
38767
|
+
0.941: 100,
|
|
38768
|
+
1: 100,
|
|
38769
|
+
1.118: 110,
|
|
38770
|
+
1.235: 120,
|
|
38771
|
+
1.353: 135,
|
|
38772
|
+
1.786: 160,
|
|
38773
|
+
2.143: 190,
|
|
38774
|
+
2.643: 235,
|
|
38775
|
+
3.143: 275,
|
|
38776
|
+
3.571: 310
|
|
38777
|
+
};
|
|
38557
38778
|
extractDateFromUUIDv7 = function(uuid) {
|
|
38558
38779
|
var timestampHex = uuid.split("-").join("").slice(0, 12);
|
|
38559
38780
|
var timestamp = Number.parseInt(timestampHex, 16);
|
|
@@ -38624,7 +38845,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38624
38845
|
}
|
|
38625
38846
|
});
|
|
38626
38847
|
function Index() {
|
|
38627
|
-
return /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(
|
|
38848
|
+
return /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(import_react_native144.View, {
|
|
38628
38849
|
style: {
|
|
38629
38850
|
flex: 1
|
|
38630
38851
|
},
|
|
@@ -38649,14 +38870,14 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38649
38870
|
})
|
|
38650
38871
|
});
|
|
38651
38872
|
}
|
|
38652
|
-
var import_jsx_runtime181, import_react153,
|
|
38873
|
+
var import_jsx_runtime181, import_react153, import_react_native144;
|
|
38653
38874
|
var init_pages = __esm({
|
|
38654
38875
|
"react-native/pages/index.tsx"() {
|
|
38655
38876
|
"use strict";
|
|
38656
38877
|
import_jsx_runtime181 = __toESM(require_jsx_runtime(), 1);
|
|
38657
38878
|
init_dist4();
|
|
38658
38879
|
import_react153 = __toESM(require_react(), 1);
|
|
38659
|
-
|
|
38880
|
+
import_react_native144 = __toESM(require_react_native(), 1);
|
|
38660
38881
|
}
|
|
38661
38882
|
});
|
|
38662
38883
|
|
package/dist/prebuilt/prod.json
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
{
|
|
3
3
|
"platform": "ios",
|
|
4
4
|
"totalModuleCount": 1615,
|
|
5
|
-
"duration":
|
|
6
|
-
"size":
|
|
5
|
+
"duration": 1448.8614160000002,
|
|
6
|
+
"size": 1517456
|
|
7
7
|
},
|
|
8
8
|
{
|
|
9
9
|
"platform": "android",
|
|
10
10
|
"totalModuleCount": 1615,
|
|
11
|
-
"duration":
|
|
12
|
-
"size":
|
|
11
|
+
"duration": 1467.9485,
|
|
12
|
+
"size": 1515815
|
|
13
13
|
}
|
|
14
14
|
]
|
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.
|
|
4
|
+
"version": "0.0.31",
|
|
5
5
|
"description": "Web Framework for Apps In Toss",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"prepack": "yarn build",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"config.d.ts"
|
|
52
52
|
],
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@apps-in-toss/framework": "0.0.
|
|
54
|
+
"@apps-in-toss/framework": "0.0.31",
|
|
55
55
|
"@babel/plugin-proposal-class-properties": "^7.16.7",
|
|
56
56
|
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.7",
|
|
57
57
|
"@babel/plugin-proposal-numeric-separator": "^7.16.7",
|
|
@@ -102,16 +102,16 @@
|
|
|
102
102
|
"zod": "3.24.4"
|
|
103
103
|
},
|
|
104
104
|
"dependencies": {
|
|
105
|
-
"@apps-in-toss/bridge-core": "0.0.
|
|
106
|
-
"@apps-in-toss/cli": "0.0.
|
|
107
|
-
"@apps-in-toss/plugins": "0.0.
|
|
108
|
-
"@apps-in-toss/web-analytics": "0.0.
|
|
109
|
-
"@apps-in-toss/web-bridge": "0.0.
|
|
105
|
+
"@apps-in-toss/bridge-core": "0.0.31",
|
|
106
|
+
"@apps-in-toss/cli": "0.0.31",
|
|
107
|
+
"@apps-in-toss/plugins": "0.0.31",
|
|
108
|
+
"@apps-in-toss/web-analytics": "0.0.31",
|
|
109
|
+
"@apps-in-toss/web-bridge": "0.0.31",
|
|
110
110
|
"@babel/core": "7.23.9",
|
|
111
111
|
"@react-native-bedrock/utils": "0.0.25"
|
|
112
112
|
},
|
|
113
113
|
"publishConfig": {
|
|
114
114
|
"access": "public"
|
|
115
115
|
},
|
|
116
|
-
"gitHead": "
|
|
116
|
+
"gitHead": "d4fa62f4014162182181b9911e0a2912fdec318d"
|
|
117
117
|
}
|