@apps-in-toss/web-framework 0.0.34 → 0.0.36
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 +185 -96
- package/dist/prebuilt/dev.ios.js +185 -96
- package/dist/prebuilt/prod.android.js +135 -44
- package/dist/prebuilt/prod.ios.js +135 -44
- package/dist/prebuilt/prod.json +4 -4
- package/package.json +8 -8
- package/dist/cli/chunk-34QS4NNF.js +0 -173587
- package/dist/cli/chunk-HDRFXOPA.js +0 -63
- package/dist/cli/chunk-RUDG2MMT.js +0 -173587
- package/dist/cli/lib-NMFBQRQ2.js +0 -1007
- package/dist/cli/typescript-THSIDFIK.js +0 -6
- package/dist/cli/typescript-YVXHBAAI.js +0 -6
|
@@ -38418,6 +38418,15 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38418
38418
|
});
|
|
38419
38419
|
|
|
38420
38420
|
// ../../.yarn/__virtual__/@apps-in-toss-framework-virtual-574b136add/1/apps-in-toss-packages/framework/dist/index.js
|
|
38421
|
+
function useReferrer() {
|
|
38422
|
+
return (0, import_react159.useMemo)(function() {
|
|
38423
|
+
try {
|
|
38424
|
+
return new URL(getSchemeUri()).searchParams.get("referrer");
|
|
38425
|
+
} catch (e4) {
|
|
38426
|
+
return null;
|
|
38427
|
+
}
|
|
38428
|
+
}, []);
|
|
38429
|
+
}
|
|
38421
38430
|
function getOperationalEnvironment() {
|
|
38422
38431
|
return AppsInTossModule.operationalEnvironment;
|
|
38423
38432
|
}
|
|
@@ -38457,15 +38466,6 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38457
38466
|
}
|
|
38458
38467
|
});
|
|
38459
38468
|
}
|
|
38460
|
-
function useReferrer() {
|
|
38461
|
-
return (0, import_react158.useMemo)(function() {
|
|
38462
|
-
try {
|
|
38463
|
-
return new URL(getSchemeUri()).searchParams.get("referrer");
|
|
38464
|
-
} catch (e4) {
|
|
38465
|
-
return null;
|
|
38466
|
-
}
|
|
38467
|
-
}, []);
|
|
38468
|
-
}
|
|
38469
38469
|
function isPrivateScheme() {
|
|
38470
38470
|
try {
|
|
38471
38471
|
return new URL(getSchemeUri()).protocol === "intoss-private:";
|
|
@@ -38473,6 +38473,44 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38473
38473
|
return false;
|
|
38474
38474
|
}
|
|
38475
38475
|
}
|
|
38476
|
+
function useCaptureExitLog() {
|
|
38477
|
+
var referrer2 = useReferrer();
|
|
38478
|
+
var visible = useVisibility();
|
|
38479
|
+
var enterTime = (0, import_react158.useRef)(void 0);
|
|
38480
|
+
(0, import_react158.useEffect)(function() {
|
|
38481
|
+
if (visible === true) {
|
|
38482
|
+
enterTime.current = Date.now();
|
|
38483
|
+
}
|
|
38484
|
+
}, [
|
|
38485
|
+
visible
|
|
38486
|
+
]);
|
|
38487
|
+
var captureExitLog = (0, import_react158.useCallback)(function(exitTime) {
|
|
38488
|
+
if (enterTime.current == null) {
|
|
38489
|
+
return;
|
|
38490
|
+
}
|
|
38491
|
+
var stayTime = Math.floor(exitTime - enterTime.current);
|
|
38492
|
+
tossCoreEventLog({
|
|
38493
|
+
log_name: EXIT_IMPRESSION_LOG_NAME,
|
|
38494
|
+
log_type: "event",
|
|
38495
|
+
params: {
|
|
38496
|
+
schema_id: EXIT_IMPRESSION_SCHEMA_ID,
|
|
38497
|
+
event_type: "impression",
|
|
38498
|
+
referrer: referrer2,
|
|
38499
|
+
deployment_id: env.getDeploymentId(),
|
|
38500
|
+
app_name: Bedrock.appName,
|
|
38501
|
+
is_private: isPrivateScheme(),
|
|
38502
|
+
stay_time: stayTime.toString(),
|
|
38503
|
+
exit_time: exitTime.toString()
|
|
38504
|
+
}
|
|
38505
|
+
});
|
|
38506
|
+
enterTime.current = void 0;
|
|
38507
|
+
}, [
|
|
38508
|
+
referrer2
|
|
38509
|
+
]);
|
|
38510
|
+
return {
|
|
38511
|
+
captureExitLog
|
|
38512
|
+
};
|
|
38513
|
+
}
|
|
38476
38514
|
function EntryAppEvent() {
|
|
38477
38515
|
var _useReferrer;
|
|
38478
38516
|
var referrer2 = (_useReferrer = useReferrer()) !== null && _useReferrer !== void 0 ? _useReferrer : "";
|
|
@@ -38512,6 +38550,19 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38512
38550
|
]);
|
|
38513
38551
|
return null;
|
|
38514
38552
|
}
|
|
38553
|
+
function StayTimeAppEvent() {
|
|
38554
|
+
var visible = useVisibility();
|
|
38555
|
+
var captureExitLog = useCaptureExitLog().captureExitLog;
|
|
38556
|
+
(0, import_react157.useEffect)(function() {
|
|
38557
|
+
if (visible === false) {
|
|
38558
|
+
captureExitLog(Date.now());
|
|
38559
|
+
}
|
|
38560
|
+
}, [
|
|
38561
|
+
visible,
|
|
38562
|
+
captureExitLog
|
|
38563
|
+
]);
|
|
38564
|
+
return null;
|
|
38565
|
+
}
|
|
38515
38566
|
function getPermission(permission) {
|
|
38516
38567
|
return AppsInTossModule.getPermission(permission);
|
|
38517
38568
|
}
|
|
@@ -38644,7 +38695,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38644
38695
|
function useAppsInTossBridge() {
|
|
38645
38696
|
var controller = useBridge();
|
|
38646
38697
|
var appsInTossGlobals2 = getAppsInTossGlobals();
|
|
38647
|
-
(0,
|
|
38698
|
+
(0, import_react160.useEffect)(function() {
|
|
38648
38699
|
var commonProps = {
|
|
38649
38700
|
serviceName: appsInTossGlobals2.brandDisplayName,
|
|
38650
38701
|
icon: toIcon(appsInTossGlobals2.brandIcon),
|
|
@@ -39126,6 +39177,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
39126
39177
|
]);
|
|
39127
39178
|
return /* @__PURE__ */ (0, import_jsx_runtime187.jsxs)(import_jsx_runtime187.Fragment, {
|
|
39128
39179
|
children: [
|
|
39180
|
+
/* @__PURE__ */ (0, import_jsx_runtime187.jsx)(AppEvent.StayTime, {}),
|
|
39129
39181
|
/* @__PURE__ */ (0, import_jsx_runtime187.jsx)(AppEvent.Entry, {}),
|
|
39130
39182
|
/* @__PURE__ */ (0, import_jsx_runtime187.jsx)(AppEvent.System, _object_spread({}, initialProps)),
|
|
39131
39183
|
/* @__PURE__ */ (0, import_jsx_runtime187.jsx)(Container, _object_spread_props(_object_spread({}, initialProps), {
|
|
@@ -39390,6 +39442,33 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
39390
39442
|
function clearItems() {
|
|
39391
39443
|
return AppsInTossModule.clearStorage({});
|
|
39392
39444
|
}
|
|
39445
|
+
function contactsViral(params) {
|
|
39446
|
+
var isSupported = isMinVersionSupported({
|
|
39447
|
+
android: "5.223.0",
|
|
39448
|
+
ios: "5.223.0"
|
|
39449
|
+
});
|
|
39450
|
+
if (!isSupported) {
|
|
39451
|
+
return function() {
|
|
39452
|
+
};
|
|
39453
|
+
}
|
|
39454
|
+
var onEvent = params.onEvent, onError = params.onError, options = params.options;
|
|
39455
|
+
var unregisterCallbacks = INTERNAL__appBridgeHandler.invokeAppBridgeMethod("contactsViral", options, {
|
|
39456
|
+
onRewardFromContactsViral: function(result) {
|
|
39457
|
+
onEvent({
|
|
39458
|
+
type: "sendViral",
|
|
39459
|
+
data: result
|
|
39460
|
+
});
|
|
39461
|
+
},
|
|
39462
|
+
onSuccess: function(result) {
|
|
39463
|
+
onEvent({
|
|
39464
|
+
type: "close",
|
|
39465
|
+
data: result
|
|
39466
|
+
});
|
|
39467
|
+
},
|
|
39468
|
+
onError
|
|
39469
|
+
});
|
|
39470
|
+
return unregisterCallbacks;
|
|
39471
|
+
}
|
|
39393
39472
|
function onVisibilityChangedByTransparentServiceWeb(eventParams) {
|
|
39394
39473
|
return appsInTossEvent.addEventListener("onVisibilityChangedByTransparentServiceWeb", eventParams);
|
|
39395
39474
|
}
|
|
@@ -39530,8 +39609,8 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
39530
39609
|
}
|
|
39531
39610
|
function useBridgeHandler(param) {
|
|
39532
39611
|
var onMessage = param.onMessage, constantHandlerMap = param.constantHandlerMap, asyncHandlerMap = param.asyncHandlerMap, eventListenerMap = param.eventListenerMap, originalInjectedJavaScript = param.injectedJavaScript;
|
|
39533
|
-
var ref = (0,
|
|
39534
|
-
var injectedJavaScript = (0,
|
|
39612
|
+
var ref = (0, import_react165.useRef)(null);
|
|
39613
|
+
var injectedJavaScript = (0, import_react165.useMemo)(function() {
|
|
39535
39614
|
return [
|
|
39536
39615
|
"window.__CONSTANT_HANDLER_MAP = ".concat(JSON.stringify(Object.entries(constantHandlerMap).reduce(function(acc, param2) {
|
|
39537
39616
|
var _param = _sliced_to_array(param2, 2), key = _param[0], value = _param[1];
|
|
@@ -39557,7 +39636,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
39557
39636
|
(_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.injectJavaScript("\n window.__BEDROCK_NATIVE_EMITTER.emit('".concat(functionName, "/onError/").concat(eventId, "', ").concat(JSON.stringify(error, null, 0), ");\n "));
|
|
39558
39637
|
};
|
|
39559
39638
|
};
|
|
39560
|
-
var $onMessage = (0,
|
|
39639
|
+
var $onMessage = (0, import_react165.useCallback)(
|
|
39561
39640
|
function() {
|
|
39562
39641
|
var _ref = _async_to_generator(function(e4) {
|
|
39563
39642
|
var data, _eventListenerMap_data_functionName, handleOnEvent, handleOnError, remove, key, remove1, _ref_current;
|
|
@@ -39840,7 +39919,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
39840
39919
|
throw new Error("Invalid WebView type: '".concat(type, "'"));
|
|
39841
39920
|
}
|
|
39842
39921
|
var bedrockEvent = useBedrockEvent();
|
|
39843
|
-
var uri = (0,
|
|
39922
|
+
var uri = (0, import_react161.useMemo)(function() {
|
|
39844
39923
|
return getWebViewUri(local);
|
|
39845
39924
|
}, [
|
|
39846
39925
|
local
|
|
@@ -39956,7 +40035,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
39956
40035
|
iapGetProductItemList: IAP.getProductItemList
|
|
39957
40036
|
})
|
|
39958
40037
|
});
|
|
39959
|
-
var baseProps = (0,
|
|
40038
|
+
var baseProps = (0, import_react161.useMemo)(function() {
|
|
39960
40039
|
switch (type) {
|
|
39961
40040
|
case "partner": {
|
|
39962
40041
|
var headerOnlyProp = {
|
|
@@ -39986,7 +40065,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
39986
40065
|
]);
|
|
39987
40066
|
var BaseWebView = WEBVIEW_TYPES[type];
|
|
39988
40067
|
var webViewDebuggingEnabled = operationalEnvironment === "sandbox";
|
|
39989
|
-
var handleNavigationStateChange = (0,
|
|
40068
|
+
var handleNavigationStateChange = (0, import_react161.useCallback)(function(event) {
|
|
39990
40069
|
if (event.url) {
|
|
39991
40070
|
trackScreen(event.url);
|
|
39992
40071
|
}
|
|
@@ -40021,7 +40100,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
40021
40100
|
}
|
|
40022
40101
|
return value;
|
|
40023
40102
|
}
|
|
40024
|
-
var import_react157, import_react_native138, import_react_native139, import_react_native140,
|
|
40103
|
+
var import_react157, import_react158, import_react159, import_react_native138, import_react_native139, import_react_native140, import_react160, import_react_native142, import_jsx_runtime187, import_react161, import_react_native144, import_react162, import_react_native146, import_react163, import_react_native148, import_react164, import_jsx_runtime188, import_react_native151, import_jsx_runtime189, import_react_native153, import_react_native154, import_react_native155, import_jsx_runtime190, import_react_native156, import_jsx_runtime191, import_jsx_runtime192, import_react165, import_react_native157, import_react166, import_jsx_runtime193, __defProp2, __export2, env, AppsInTossModuleInstance, AppsInTossModule, SEMVER_REGEX, isWildcard, tryParse, coerceTypes, compareValues, parseVersion, compareSegments, compareVersions, TossCoreModule, EXIT_IMPRESSION_LOG_NAME, EXIT_IMPRESSION_SCHEMA_ID, 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, GAME_PROFILE_WEBVIEW_URL, GAME_CENTER_MIN_VERSION, AppsInToss, ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION, IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION, UNSUPPORTED_ERROR_MESSAGE, ENVIRONMENT, IAP, Storage, GoogleAdMob, useGameProfileToast, DEFAULT_ERROR, PLAYSTORE_LINK, APPSTORE_LINK, getMarketLink, INTERNAL__onVisibilityChangedByTransparentServiceWeb, openTransparentWebView, useGameCenterProfile, Z_INDEX, GameProfile, overlayStyle, RIGHT_MARGIN2, IOS_DEFAULT_MARGIN2, styles36, originXML, GameWebView, globalEventListenerMap, constant_bridges_exports2, event_bridges_exports, FontA11yCategory, androidFontScaleMap, iosScaleToAndroidScale, extractDateFromUUIDv7, getGroupId, getReferrer, trackScreen, appsInTossGlobals, operationalEnvironment, TYPES, WEBVIEW_TYPES, Analytics2;
|
|
40025
40104
|
var init_dist4 = __esm({
|
|
40026
40105
|
"../../.yarn/__virtual__/@apps-in-toss-framework-virtual-574b136add/1/apps-in-toss-packages/framework/dist/index.js"() {
|
|
40027
40106
|
"use strict";
|
|
@@ -40046,13 +40125,16 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
40046
40125
|
init_src4();
|
|
40047
40126
|
import_react157 = __toESM(require_react(), 1);
|
|
40048
40127
|
init_src4();
|
|
40128
|
+
import_react158 = __toESM(require_react(), 1);
|
|
40129
|
+
init_src4();
|
|
40130
|
+
import_react159 = __toESM(require_react(), 1);
|
|
40131
|
+
init_src4();
|
|
40049
40132
|
import_react_native138 = __toESM(require_react_native(), 1);
|
|
40050
40133
|
import_react_native139 = __toESM(require_react_native(), 1);
|
|
40051
40134
|
import_react_native140 = __toESM(require_react_native(), 1);
|
|
40052
|
-
import_react158 = __toESM(require_react(), 1);
|
|
40053
40135
|
init_src4();
|
|
40054
40136
|
init_esm8();
|
|
40055
|
-
|
|
40137
|
+
import_react160 = __toESM(require_react(), 1);
|
|
40056
40138
|
init_src4();
|
|
40057
40139
|
init_src4();
|
|
40058
40140
|
init_src4();
|
|
@@ -40063,7 +40145,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
40063
40145
|
import_jsx_runtime187 = __toESM(require_jsx_runtime(), 1);
|
|
40064
40146
|
init_esm8();
|
|
40065
40147
|
init_private2();
|
|
40066
|
-
|
|
40148
|
+
import_react161 = __toESM(require_react(), 1);
|
|
40067
40149
|
import_react_native144 = __toESM(require_react_native(), 1);
|
|
40068
40150
|
init_src4();
|
|
40069
40151
|
init_async_bridges();
|
|
@@ -40071,15 +40153,15 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
40071
40153
|
init_react_native_webview();
|
|
40072
40154
|
init_esm8();
|
|
40073
40155
|
init_dist3();
|
|
40074
|
-
|
|
40156
|
+
import_react162 = __toESM(require_react(), 1);
|
|
40075
40157
|
import_react_native146 = __toESM(require_react_native(), 1);
|
|
40076
40158
|
init_src4();
|
|
40077
40159
|
init_esm8();
|
|
40078
|
-
|
|
40160
|
+
import_react163 = __toESM(require_react(), 1);
|
|
40079
40161
|
import_react_native148 = __toESM(require_react_native(), 1);
|
|
40080
40162
|
init_esm8();
|
|
40081
40163
|
init_dist3();
|
|
40082
|
-
|
|
40164
|
+
import_react164 = __toESM(require_react(), 1);
|
|
40083
40165
|
init_src4();
|
|
40084
40166
|
init_esm8();
|
|
40085
40167
|
init_private2();
|
|
@@ -40097,10 +40179,10 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
40097
40179
|
import_react_native156 = __toESM(require_react_native(), 1);
|
|
40098
40180
|
import_jsx_runtime191 = __toESM(require_jsx_runtime(), 1);
|
|
40099
40181
|
import_jsx_runtime192 = __toESM(require_jsx_runtime(), 1);
|
|
40100
|
-
|
|
40182
|
+
import_react165 = __toESM(require_react(), 1);
|
|
40101
40183
|
import_react_native157 = __toESM(require_react_native(), 1);
|
|
40102
40184
|
init_src4();
|
|
40103
|
-
|
|
40185
|
+
import_react166 = __toESM(require_react(), 1);
|
|
40104
40186
|
init_src4();
|
|
40105
40187
|
init_src4();
|
|
40106
40188
|
import_jsx_runtime193 = __toESM(require_jsx_runtime(), 1);
|
|
@@ -40206,10 +40288,13 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
40206
40288
|
return 0;
|
|
40207
40289
|
};
|
|
40208
40290
|
TossCoreModule = import_react_native138.NativeModules.TossCoreModule;
|
|
40291
|
+
EXIT_IMPRESSION_LOG_NAME = "appsintoss_app_visit__common_module::impression__stay_time";
|
|
40292
|
+
EXIT_IMPRESSION_SCHEMA_ID = 1631628;
|
|
40209
40293
|
ENTRY_APP_EVENT_SCHEMA_ID = 1562181;
|
|
40210
40294
|
AppEvent = {
|
|
40211
40295
|
Entry: EntryAppEvent,
|
|
40212
|
-
System: SystemAppEvent
|
|
40296
|
+
System: SystemAppEvent,
|
|
40297
|
+
StayTime: StayTimeAppEvent
|
|
40213
40298
|
};
|
|
40214
40299
|
EntryMessageExitedEvent = /* @__PURE__ */ function(BedrockEventDefinition3) {
|
|
40215
40300
|
"use strict";
|
|
@@ -40554,17 +40639,17 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
40554
40639
|
openURL(url.toString());
|
|
40555
40640
|
};
|
|
40556
40641
|
useGameCenterProfile = function(isReadyForProfileUI) {
|
|
40557
|
-
var _useState = _sliced_to_array((0,
|
|
40558
|
-
var _useState1 = _sliced_to_array((0,
|
|
40559
|
-
var _useState2 = _sliced_to_array((0,
|
|
40642
|
+
var _useState = _sliced_to_array((0, import_react164.useState)(void 0), 2), profileData = _useState[0], setProfileData = _useState[1];
|
|
40643
|
+
var _useState1 = _sliced_to_array((0, import_react164.useState)(true), 2), isProfileDataLoading = _useState1[0], setIsProfileDataLoading = _useState1[1];
|
|
40644
|
+
var _useState2 = _sliced_to_array((0, import_react164.useState)(false), 2), isProfileDataRefetching = _useState2[0], setIsProfileDataRefetching = _useState2[1];
|
|
40560
40645
|
var shouldShowLoadingOverlay = isProfileDataLoading && isReadyForProfileUI;
|
|
40561
40646
|
var shouldShowProfileNotFoundOverlay = (profileData === null || profileData === void 0 ? void 0 : profileData.statusCode) === "PROFILE_NOT_FOUND" && isReadyForProfileUI && !isProfileDataRefetching;
|
|
40562
40647
|
var canShowBottomSheetOrToast = !isProfileDataLoading && isReadyForProfileUI;
|
|
40563
|
-
var _useState3 = _sliced_to_array((0,
|
|
40564
|
-
var isCompletedProfileFlow = (0,
|
|
40648
|
+
var _useState3 = _sliced_to_array((0, import_react164.useState)(false), 2), isWebviewLoading = _useState3[0], setIsWebviewLoading = _useState3[1];
|
|
40649
|
+
var isCompletedProfileFlow = (0, import_react164.useRef)(false);
|
|
40565
40650
|
var _useDialog = useDialog(), openAlert = _useDialog.openAlert, openConfirm = _useDialog.openConfirm;
|
|
40566
40651
|
var openGameProfileToast = useGameProfileToast().openGameProfileToast;
|
|
40567
|
-
var openErrorAlert = (0,
|
|
40652
|
+
var openErrorAlert = (0, import_react164.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
|
|
40568
40653
|
return __generator(this, function(_state) {
|
|
40569
40654
|
switch (_state.label) {
|
|
40570
40655
|
case 0:
|
|
@@ -40586,7 +40671,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
40586
40671
|
}), [
|
|
40587
40672
|
openAlert
|
|
40588
40673
|
]);
|
|
40589
|
-
var openProfileWebview = (0,
|
|
40674
|
+
var openProfileWebview = (0, import_react164.useCallback)(function() {
|
|
40590
40675
|
if (isWebviewLoading) {
|
|
40591
40676
|
return;
|
|
40592
40677
|
}
|
|
@@ -40656,7 +40741,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
40656
40741
|
openGameProfileToast,
|
|
40657
40742
|
openErrorAlert
|
|
40658
40743
|
]);
|
|
40659
|
-
var updateAppToSupportedMinVersion = (0,
|
|
40744
|
+
var updateAppToSupportedMinVersion = (0, import_react164.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
|
|
40660
40745
|
var upddateConfirmDialogLabel, isConfirmed, STORE_SCHEME;
|
|
40661
40746
|
return __generator(this, function(_state) {
|
|
40662
40747
|
switch (_state.label) {
|
|
@@ -40719,7 +40804,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
40719
40804
|
GameProfile = function(param) {
|
|
40720
40805
|
var children = param.children, isReadyForProfileUI = param.isReadyForProfileUI;
|
|
40721
40806
|
var _useGameCenterProfile = useGameCenterProfile(isReadyForProfileUI), profileData = _useGameCenterProfile.profileData, isProfileDataRefetching = _useGameCenterProfile.isProfileDataRefetching, shouldShowLoadingOverlay = _useGameCenterProfile.shouldShowLoadingOverlay, shouldShowProfileNotFoundOverlay = _useGameCenterProfile.shouldShowProfileNotFoundOverlay, canShowBottomSheetOrToast = _useGameCenterProfile.canShowBottomSheetOrToast, isCompletedProfileFlow = _useGameCenterProfile.isCompletedProfileFlow, openProfileWebview = _useGameCenterProfile.openProfileWebview, updateAppToSupportedMinVersion = _useGameCenterProfile.updateAppToSupportedMinVersion, setIsProfileDataLoading = _useGameCenterProfile.setIsProfileDataLoading, setProfileData = _useGameCenterProfile.setProfileData, openErrorAlert = _useGameCenterProfile.openErrorAlert, openGameProfileToast = _useGameCenterProfile.openGameProfileToast;
|
|
40722
|
-
(0,
|
|
40807
|
+
(0, import_react163.useEffect)(function() {
|
|
40723
40808
|
try {
|
|
40724
40809
|
var getProfileData = function() {
|
|
40725
40810
|
var _ref = _async_to_generator(function() {
|
|
@@ -40751,7 +40836,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
40751
40836
|
setIsProfileDataLoading(false);
|
|
40752
40837
|
}
|
|
40753
40838
|
}, []);
|
|
40754
|
-
(0,
|
|
40839
|
+
(0, import_react163.useEffect)(function() {
|
|
40755
40840
|
var handleGameProfileFlow = function() {
|
|
40756
40841
|
var _ref = _async_to_generator(function() {
|
|
40757
40842
|
return __generator(this, function(_state) {
|
|
@@ -40891,11 +40976,12 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
40891
40976
|
}
|
|
40892
40977
|
});
|
|
40893
40978
|
originXML = '<svg fill="none" height="30" viewBox="0 0 30 30" width="30" xmlns="https://www.w3.org/2000/svg"><rect fill="#031832" fill-opacity=".46" height="30" rx="15" width="30"/><rect height="29.5" rx="14.75" stroke="#d9d9ff" stroke-opacity=".11" stroke-width=".5" width="29.5" x=".25" y=".25"/><path clip-rule="evenodd" d="m16.5119 15.0014 4.7092-4.7092c.0929-.0928.1666-.2031.2169-.32441.0503-.12134.0762-.25141.0762-.38276.0001-.13136-.0258-.26144-.076-.38281s-.1239-.23166-.2167-.32457c-.0929-.09291-.2031-.16662-.3245-.21692-.1213-.05031-.2514-.07622-.3827-.07626-.1314-.00004-.2615.0258-.3828.07603-.1214.05023-.2317.12388-.3246.21673l-4.7092 4.70997-4.71-4.70997c-.1897-.17718-.4408-.27373-.70034-.26927s-.5072.10959-.69069.2932c-.1835.1836-.28848.43132-.29279.69087-.00432.25954.09238.51057.26968.70017l4.71004 4.7092-4.71004 4.7092c-.1392.1401-.23385.3183-.27204.5121-.0382.1939-.01823.3946.05739.5771s.20351.3386.36759.4486.35702.169.55456.1697c.25583 0 .51164-.0975.70664-.2925l4.71-4.71 4.7092 4.71c.0927.093.2029.1668.3243.2172.1213.0504.2514.0763.3828.0763s.2614-.0259.3828-.0763c.1213-.0504.2315-.1242.3243-.2172.0929-.0929.1667-.2032.217-.3246s.0762-.2515.0762-.3829-.0259-.2616-.0762-.383-.1241-.2317-.217-.3245z" fill="#fdfdfe" fill-opacity=".89" fill-rule="evenodd"/></svg>';
|
|
40894
|
-
GameWebView = /* @__PURE__ */ (0,
|
|
40979
|
+
GameWebView = /* @__PURE__ */ (0, import_react162.forwardRef)(function GameWebView2(props, ref) {
|
|
40895
40980
|
var openConfirm = useDialog().openConfirm;
|
|
40896
40981
|
var brandDisplayName = getAppsInTossGlobals().brandDisplayName;
|
|
40897
|
-
var
|
|
40898
|
-
var
|
|
40982
|
+
var captureExitLog = useCaptureExitLog().captureExitLog;
|
|
40983
|
+
var _useState2 = _sliced_to_array((0, import_react162.useState)(false), 2), isEntryMessageExited = _useState2[0], setIsEntryMessageExited = _useState2[1];
|
|
40984
|
+
var handleClose = (0, import_react162.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
|
|
40899
40985
|
var isConfirmed;
|
|
40900
40986
|
return __generator(this, function(_state) {
|
|
40901
40987
|
switch (_state.label) {
|
|
@@ -40912,6 +40998,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
40912
40998
|
case 1:
|
|
40913
40999
|
isConfirmed = _state.sent();
|
|
40914
41000
|
if (isConfirmed) {
|
|
41001
|
+
captureExitLog(Date.now());
|
|
40915
41002
|
closeView();
|
|
40916
41003
|
}
|
|
40917
41004
|
return [
|
|
@@ -40921,9 +41008,10 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
40921
41008
|
});
|
|
40922
41009
|
}), [
|
|
40923
41010
|
brandDisplayName,
|
|
41011
|
+
captureExitLog,
|
|
40924
41012
|
openConfirm
|
|
40925
41013
|
]);
|
|
40926
|
-
(0,
|
|
41014
|
+
(0, import_react162.useEffect)(function() {
|
|
40927
41015
|
if (import_react_native146.Platform.OS === "ios") {
|
|
40928
41016
|
setIosSwipeGestureEnabled({
|
|
40929
41017
|
isEnabled: false
|
|
@@ -40936,7 +41024,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
40936
41024
|
}
|
|
40937
41025
|
return;
|
|
40938
41026
|
}, []);
|
|
40939
|
-
(0,
|
|
41027
|
+
(0, import_react162.useEffect)(function() {
|
|
40940
41028
|
var backHandler = function() {
|
|
40941
41029
|
handleClose();
|
|
40942
41030
|
return true;
|
|
@@ -40948,7 +41036,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
40948
41036
|
}, [
|
|
40949
41037
|
handleClose
|
|
40950
41038
|
]);
|
|
40951
|
-
(0,
|
|
41039
|
+
(0, import_react162.useEffect)(function() {
|
|
40952
41040
|
appsInTossEvent.addEventListener("entryMessageExited", {
|
|
40953
41041
|
onEvent: function() {
|
|
40954
41042
|
setIsEntryMessageExited(true);
|
|
@@ -40986,6 +41074,9 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
40986
41074
|
});
|
|
40987
41075
|
event_bridges_exports = {};
|
|
40988
41076
|
__export2(event_bridges_exports, {
|
|
41077
|
+
contactsViral: function() {
|
|
41078
|
+
return contactsViral;
|
|
41079
|
+
},
|
|
40989
41080
|
startUpdateLocation: function() {
|
|
40990
41081
|
return startUpdateLocation;
|
|
40991
41082
|
}
|
|
@@ -41123,13 +41214,13 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
41123
41214
|
})
|
|
41124
41215
|
});
|
|
41125
41216
|
}
|
|
41126
|
-
var import_jsx_runtime194,
|
|
41217
|
+
var import_jsx_runtime194, import_react167, import_react_native158, getInitialAccessoryButtons;
|
|
41127
41218
|
var init_pages = __esm({
|
|
41128
41219
|
"react-native/pages/index.tsx"() {
|
|
41129
41220
|
"use strict";
|
|
41130
41221
|
import_jsx_runtime194 = __toESM(require_jsx_runtime(), 1);
|
|
41131
41222
|
init_dist4();
|
|
41132
|
-
|
|
41223
|
+
import_react167 = __toESM(require_react(), 1);
|
|
41133
41224
|
import_react_native158 = __toESM(require_react_native(), 1);
|
|
41134
41225
|
getInitialAccessoryButtons = function() {
|
|
41135
41226
|
try {
|
package/dist/prebuilt/prod.json
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
{
|
|
3
3
|
"platform": "ios",
|
|
4
4
|
"totalModuleCount": 1622,
|
|
5
|
-
"duration":
|
|
6
|
-
"size":
|
|
5
|
+
"duration": 1641.330042,
|
|
6
|
+
"size": 1614756
|
|
7
7
|
},
|
|
8
8
|
{
|
|
9
9
|
"platform": "android",
|
|
10
10
|
"totalModuleCount": 1622,
|
|
11
|
-
"duration":
|
|
12
|
-
"size":
|
|
11
|
+
"duration": 1620.2457089999998,
|
|
12
|
+
"size": 1613115
|
|
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.36",
|
|
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.36",
|
|
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.36",
|
|
106
|
+
"@apps-in-toss/cli": "0.0.36",
|
|
107
|
+
"@apps-in-toss/plugins": "0.0.36",
|
|
108
|
+
"@apps-in-toss/web-analytics": "0.0.36",
|
|
109
|
+
"@apps-in-toss/web-bridge": "0.0.36",
|
|
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": "b3b65b35bf9532480fcbd14f7d22b796644e2f2f"
|
|
117
117
|
}
|