@apps-in-toss/web-framework 1.4.5 → 1.4.7
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 +289 -189
- package/dist/prebuilt/dev.ios.js +289 -189
- package/dist/prebuilt/prod.android.js +166 -61
- package/dist/prebuilt/prod.ios.js +166 -61
- package/package.json +8 -8
|
@@ -491,6 +491,36 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
491
491
|
}
|
|
492
492
|
});
|
|
493
493
|
|
|
494
|
+
// ../../.yarn/cache/@swc-helpers-npm-0.5.13-710c6c1e6e-b9df578401.zip/node_modules/@swc/helpers/esm/_class_call_check.js
|
|
495
|
+
function _class_call_check(instance, Constructor) {
|
|
496
|
+
if (!_instanceof1(instance, Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
497
|
+
}
|
|
498
|
+
var init_class_call_check = __esm({
|
|
499
|
+
"../../.yarn/cache/@swc-helpers-npm-0.5.13-710c6c1e6e-b9df578401.zip/node_modules/@swc/helpers/esm/_class_call_check.js"() {
|
|
500
|
+
init_instanceof();
|
|
501
|
+
}
|
|
502
|
+
});
|
|
503
|
+
|
|
504
|
+
// ../../.yarn/cache/@swc-helpers-npm-0.5.13-710c6c1e6e-b9df578401.zip/node_modules/@swc/helpers/esm/_create_class.js
|
|
505
|
+
function _defineProperties(target, props) {
|
|
506
|
+
for (var i60 = 0; i60 < props.length; i60++) {
|
|
507
|
+
var descriptor = props[i60];
|
|
508
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
509
|
+
descriptor.configurable = true;
|
|
510
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
511
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
515
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
516
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
517
|
+
return Constructor;
|
|
518
|
+
}
|
|
519
|
+
var init_create_class = __esm({
|
|
520
|
+
"../../.yarn/cache/@swc-helpers-npm-0.5.13-710c6c1e6e-b9df578401.zip/node_modules/@swc/helpers/esm/_create_class.js"() {
|
|
521
|
+
}
|
|
522
|
+
});
|
|
523
|
+
|
|
494
524
|
// ../../.yarn/cache/@swc-helpers-npm-0.5.13-710c6c1e6e-b9df578401.zip/node_modules/@swc/helpers/esm/_extends.js
|
|
495
525
|
function _extends() {
|
|
496
526
|
_extends = Object.assign || function assign(target) {
|
|
@@ -2316,36 +2346,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
2316
2346
|
}
|
|
2317
2347
|
});
|
|
2318
2348
|
|
|
2319
|
-
// ../../.yarn/cache/@swc-helpers-npm-0.5.13-710c6c1e6e-b9df578401.zip/node_modules/@swc/helpers/esm/_class_call_check.js
|
|
2320
|
-
function _class_call_check(instance, Constructor) {
|
|
2321
|
-
if (!_instanceof1(instance, Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
2322
|
-
}
|
|
2323
|
-
var init_class_call_check = __esm({
|
|
2324
|
-
"../../.yarn/cache/@swc-helpers-npm-0.5.13-710c6c1e6e-b9df578401.zip/node_modules/@swc/helpers/esm/_class_call_check.js"() {
|
|
2325
|
-
init_instanceof();
|
|
2326
|
-
}
|
|
2327
|
-
});
|
|
2328
|
-
|
|
2329
|
-
// ../../.yarn/cache/@swc-helpers-npm-0.5.13-710c6c1e6e-b9df578401.zip/node_modules/@swc/helpers/esm/_create_class.js
|
|
2330
|
-
function _defineProperties(target, props) {
|
|
2331
|
-
for (var i60 = 0; i60 < props.length; i60++) {
|
|
2332
|
-
var descriptor = props[i60];
|
|
2333
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
2334
|
-
descriptor.configurable = true;
|
|
2335
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
2336
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
2337
|
-
}
|
|
2338
|
-
}
|
|
2339
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
2340
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
2341
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
2342
|
-
return Constructor;
|
|
2343
|
-
}
|
|
2344
|
-
var init_create_class = __esm({
|
|
2345
|
-
"../../.yarn/cache/@swc-helpers-npm-0.5.13-710c6c1e6e-b9df578401.zip/node_modules/@swc/helpers/esm/_create_class.js"() {
|
|
2346
|
-
}
|
|
2347
|
-
});
|
|
2348
|
-
|
|
2349
2349
|
// ../../.yarn/cache/webidl-conversions-npm-5.0.0-5fd5be45a0-bf31df332e.zip/node_modules/webidl-conversions/lib/index.js
|
|
2350
2350
|
var require_lib = __commonJS({
|
|
2351
2351
|
"../../.yarn/cache/webidl-conversions-npm-5.0.0-5fd5be45a0-bf31df332e.zip/node_modules/webidl-conversions/lib/index.js"(exports) {
|
|
@@ -46489,21 +46489,22 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46489
46489
|
});
|
|
46490
46490
|
}
|
|
46491
46491
|
function useBridgeHandler(param) {
|
|
46492
|
-
var onMessage = param.onMessage, constantHandlerMap = param.constantHandlerMap, asyncHandlerMap = param.asyncHandlerMap, eventListenerMap = param.eventListenerMap
|
|
46492
|
+
var onMessage = param.onMessage, constantHandlerMap = param.constantHandlerMap, asyncHandlerMap = param.asyncHandlerMap, eventListenerMap = param.eventListenerMap;
|
|
46493
46493
|
var ref = (0, import_react232.useRef)(null);
|
|
46494
46494
|
var injectedJavaScript = (0, import_react232.useMemo)(function() {
|
|
46495
|
-
return
|
|
46496
|
-
|
|
46497
|
-
|
|
46498
|
-
|
|
46499
|
-
|
|
46500
|
-
|
|
46501
|
-
|
|
46502
|
-
|
|
46503
|
-
|
|
46495
|
+
return "window.__CONSTANT_HANDLER_MAP = ".concat(JSON.stringify(Object.entries(constantHandlerMap).reduce(function(acc, param2) {
|
|
46496
|
+
var _param = _sliced_to_array(param2, 2), key = _param[0], value = _param[1];
|
|
46497
|
+
acc[key] = typeof value === "function" ? value() : value;
|
|
46498
|
+
return acc;
|
|
46499
|
+
}, {})), ";");
|
|
46500
|
+
}, [
|
|
46501
|
+
constantHandlerMap
|
|
46502
|
+
]);
|
|
46503
|
+
(0, import_react232.useEffect)(function() {
|
|
46504
|
+
var _ref_current;
|
|
46505
|
+
(_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.injectJavaScript(injectedJavaScript);
|
|
46504
46506
|
}, [
|
|
46505
|
-
|
|
46506
|
-
originalInjectedJavaScript
|
|
46507
|
+
injectedJavaScript
|
|
46507
46508
|
]);
|
|
46508
46509
|
var createHandleOnEvent = function(functionName, eventId) {
|
|
46509
46510
|
return function(response) {
|
|
@@ -46524,7 +46525,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46524
46525
|
var data, _eventListenerMap_data_functionName, handleOnEvent, handleOnError, remove, key, remove1, _ref_current;
|
|
46525
46526
|
return __generator(this, function(_state) {
|
|
46526
46527
|
onMessage === null || onMessage === void 0 ? void 0 : onMessage(e59);
|
|
46527
|
-
data =
|
|
46528
|
+
data = parseNativeEventData(e59.nativeEvent.data);
|
|
46528
46529
|
if ((typeof data === "undefined" ? "undefined" : _type_of(data)) !== "object" || data === null || typeof data.functionName !== "string" || typeof data.eventId !== "string" || typeof data.type !== "string" || ![
|
|
46529
46530
|
"addEventListener",
|
|
46530
46531
|
"removeEventListener",
|
|
@@ -46588,6 +46589,32 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46588
46589
|
onMessage: $onMessage
|
|
46589
46590
|
};
|
|
46590
46591
|
}
|
|
46592
|
+
function parseNativeEventData(data) {
|
|
46593
|
+
try {
|
|
46594
|
+
return JSON.parse(data);
|
|
46595
|
+
} catch (error) {
|
|
46596
|
+
console.error(error);
|
|
46597
|
+
return null;
|
|
46598
|
+
}
|
|
46599
|
+
}
|
|
46600
|
+
function useSafeAreaInsetsEmitter() {
|
|
46601
|
+
var insets = (0, react_native_safe_area_context_exports.useSafeAreaInsets)();
|
|
46602
|
+
var emitter = (0, import_react233.useMemo)(function() {
|
|
46603
|
+
return new EventEmitter();
|
|
46604
|
+
}, []);
|
|
46605
|
+
(0, import_react233.useEffect)(function() {
|
|
46606
|
+
emitter.emit("safeAreaInsetsChange", insets);
|
|
46607
|
+
return function() {
|
|
46608
|
+
emitter.off("safeAreaInsetsChange", function(listener) {
|
|
46609
|
+
return listener(insets);
|
|
46610
|
+
});
|
|
46611
|
+
};
|
|
46612
|
+
}, [
|
|
46613
|
+
emitter,
|
|
46614
|
+
insets
|
|
46615
|
+
]);
|
|
46616
|
+
return emitter;
|
|
46617
|
+
}
|
|
46591
46618
|
function reducer(state, action) {
|
|
46592
46619
|
switch (action.type) {
|
|
46593
46620
|
case "NAVIGATION_CHANGE": {
|
|
@@ -46631,8 +46658,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46631
46658
|
}
|
|
46632
46659
|
}
|
|
46633
46660
|
function useWebViewHistory() {
|
|
46634
|
-
var _useReducer = _sliced_to_array((0,
|
|
46635
|
-
var onNavigationStateChange = (0,
|
|
46661
|
+
var _useReducer = _sliced_to_array((0, import_react235.useReducer)(reducer, INITIAL_STATE), 2), state = _useReducer[0], dispatch = _useReducer[1];
|
|
46662
|
+
var onNavigationStateChange = (0, import_react235.useCallback)(function(param) {
|
|
46636
46663
|
var url = param.url, canGoForward2 = param.canGoForward;
|
|
46637
46664
|
dispatch({
|
|
46638
46665
|
type: "NAVIGATION_CHANGE",
|
|
@@ -46640,7 +46667,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46640
46667
|
canGoForward: canGoForward2
|
|
46641
46668
|
});
|
|
46642
46669
|
}, []);
|
|
46643
|
-
var
|
|
46670
|
+
var _useMemo5 = (0, import_react235.useMemo)(function() {
|
|
46644
46671
|
var canBack = state.index > 0;
|
|
46645
46672
|
var canFwd = state.index >= 0 && state.index < state.stack.length - 1;
|
|
46646
46673
|
return {
|
|
@@ -46650,7 +46677,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46650
46677
|
}, [
|
|
46651
46678
|
state.index,
|
|
46652
46679
|
state.stack.length
|
|
46653
|
-
]), canGoBack =
|
|
46680
|
+
]), canGoBack = _useMemo5.canGoBack, canGoForward = _useMemo5.canGoForward;
|
|
46654
46681
|
return {
|
|
46655
46682
|
onNavigationStateChange,
|
|
46656
46683
|
hasHistory: canGoBack,
|
|
@@ -46664,17 +46691,17 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46664
46691
|
var logging = useNavigationBarLogging();
|
|
46665
46692
|
var openConfirm = useDialog().openConfirm;
|
|
46666
46693
|
var global2 = getAppsInTossGlobals();
|
|
46667
|
-
var addEventListener = (0,
|
|
46694
|
+
var addEventListener = (0, import_react234.useCallback)(function(handler) {
|
|
46668
46695
|
addWebBackEventListener(handler);
|
|
46669
46696
|
}, [
|
|
46670
46697
|
addWebBackEventListener
|
|
46671
46698
|
]);
|
|
46672
|
-
var removeEventListener = (0,
|
|
46699
|
+
var removeEventListener = (0, import_react234.useCallback)(function(handler) {
|
|
46673
46700
|
removeWebBackEventListener(handler);
|
|
46674
46701
|
}, [
|
|
46675
46702
|
removeWebBackEventListener
|
|
46676
46703
|
]);
|
|
46677
|
-
var handleWebBack = (0,
|
|
46704
|
+
var handleWebBack = (0, import_react234.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
|
|
46678
46705
|
var _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, handler, _webViewRef_current, isConfirmed;
|
|
46679
46706
|
return __generator(this, function(_state) {
|
|
46680
46707
|
switch (_state.label) {
|
|
@@ -46748,7 +46775,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46748
46775
|
openConfirm,
|
|
46749
46776
|
webViewRef
|
|
46750
46777
|
]);
|
|
46751
|
-
var handleWebHome = (0,
|
|
46778
|
+
var handleWebHome = (0, import_react234.useCallback)(function() {
|
|
46752
46779
|
var _webViewRef_current;
|
|
46753
46780
|
logging.homeButtonClick();
|
|
46754
46781
|
if (hasWebBackEvent) {
|
|
@@ -46781,7 +46808,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46781
46808
|
logging,
|
|
46782
46809
|
webViewRef
|
|
46783
46810
|
]);
|
|
46784
|
-
return (0,
|
|
46811
|
+
return (0, import_react234.useMemo)(function() {
|
|
46785
46812
|
return {
|
|
46786
46813
|
addEventListener,
|
|
46787
46814
|
removeEventListener,
|
|
@@ -47032,15 +47059,13 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47032
47059
|
]);
|
|
47033
47060
|
var top = useSafeAreaTop();
|
|
47034
47061
|
var bottom = useSafeAreaBottom();
|
|
47062
|
+
var insets = (0, react_native_safe_area_context_exports.useSafeAreaInsets)();
|
|
47035
47063
|
var global2 = getAppsInTossGlobals();
|
|
47036
47064
|
var navigationBarContext = useNavigationBarContext();
|
|
47037
|
-
var
|
|
47065
|
+
var safeAreaInsetsEmitter = useSafeAreaInsetsEmitter();
|
|
47038
47066
|
var _useState8 = _sliced_to_array((0, import_react227.useState)(props.allowsBackForwardNavigationGestures), 2), allowsBackForwardNavigationGestures = _useState8[0], setAllowsBackForwardNavigationGestures = _useState8[1];
|
|
47039
47067
|
var handler = useBridgeHandler({
|
|
47040
47068
|
onMessage,
|
|
47041
|
-
injectedJavaScript: [
|
|
47042
|
-
disableTextSelectionCSS
|
|
47043
|
-
].join("\n"),
|
|
47044
47069
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
47045
47070
|
eventListenerMap: _object_spread_props(_object_spread({}, event_bridges_exports), {
|
|
47046
47071
|
navigationAccessoryEvent: function(param) {
|
|
@@ -47072,6 +47097,13 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47072
47097
|
options
|
|
47073
47098
|
});
|
|
47074
47099
|
},
|
|
47100
|
+
safeAreaInsetsChange: function(param) {
|
|
47101
|
+
var onEvent = param.onEvent;
|
|
47102
|
+
safeAreaInsetsEmitter.on("safeAreaInsetsChange", onEvent);
|
|
47103
|
+
return function() {
|
|
47104
|
+
safeAreaInsetsEmitter.off("safeAreaInsetsChange", onEvent);
|
|
47105
|
+
};
|
|
47106
|
+
},
|
|
47075
47107
|
/** @internal */
|
|
47076
47108
|
appBridgeCallbackEvent: function(param) {
|
|
47077
47109
|
var onEvent = param.onEvent, onError2 = param.onError, options = param.options;
|
|
@@ -47099,6 +47131,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47099
47131
|
},
|
|
47100
47132
|
getSafeAreaBottom: function() {
|
|
47101
47133
|
return bottom;
|
|
47134
|
+
},
|
|
47135
|
+
getSafeAreaLeft: function() {
|
|
47136
|
+
return insets.left;
|
|
47137
|
+
},
|
|
47138
|
+
getSafeAreaRight: function() {
|
|
47139
|
+
return insets.right;
|
|
47102
47140
|
}
|
|
47103
47141
|
}), Object.fromEntries(Object.entries(global2).map(function(param) {
|
|
47104
47142
|
var _$_param = _sliced_to_array(param, 2), key = _$_param[0], value = _$_param[1];
|
|
@@ -47207,6 +47245,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47207
47245
|
}, [
|
|
47208
47246
|
webBackHandler
|
|
47209
47247
|
]);
|
|
47248
|
+
var globalScripts = useGlobalScripts();
|
|
47210
47249
|
return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(BaseWebView, _object_spread_props(_object_spread({
|
|
47211
47250
|
ref: refs
|
|
47212
47251
|
}, props, headerPropForExternalWebView), {
|
|
@@ -47232,17 +47271,36 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47232
47271
|
webviewDebuggingEnabled: webViewDebuggingEnabled,
|
|
47233
47272
|
thirdPartyCookiesEnabled: true,
|
|
47234
47273
|
onMessage: handler.onMessage,
|
|
47235
|
-
injectedJavaScript:
|
|
47236
|
-
injectedJavaScriptBeforeContentLoaded: handler.injectedJavaScript,
|
|
47274
|
+
injectedJavaScript: globalScripts.afterLoad,
|
|
47275
|
+
injectedJavaScriptBeforeContentLoaded: mergeScripts(handler.injectedJavaScript, globalScripts.beforeLoad),
|
|
47237
47276
|
decelerationRate: import_react_native221.Platform.OS === "ios" ? 1 : void 0,
|
|
47238
47277
|
allowsBackForwardNavigationGestures
|
|
47239
47278
|
}));
|
|
47240
47279
|
}
|
|
47241
|
-
|
|
47280
|
+
function useGlobalScripts() {
|
|
47281
|
+
var global2 = getAppsInTossGlobals();
|
|
47282
|
+
var disableTextSelectionCSS = "\n const style = document.createElement('style');\n style.textContent = '*:not(input):not(textarea) { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-touch-callout: none; }';\n document.head.appendChild(style);\n ";
|
|
47283
|
+
var applyGameResourcesCache = "\n (function () {\n if (typeof caches === 'undefined') {\n return;\n }\n const cacheKeyPrefix = '@apps-in-toss/caches/';\n const cacheKey = `${cacheKeyPrefix}".concat(global2.deploymentId, "`;\n window.addEventListener('load', async () => {\n const keys = await caches.keys();\n for (const key of keys) {\n if (key.startsWith(cacheKeyPrefix) && key !== cacheKey) {\n await caches.delete(key);\n }\n }\n });\n window.fetch = new Proxy(window.fetch, {\n async apply(originalFetch, thisArg, args) {\n const request = new Request(args[0], args[1]);\n if (!/\\.(data|wasm|framework\\.js)(?:\\.gz|\\.br|\\.unityweb)?$/.test(request.url)) {\n return await originalFetch.call(thisArg, request);\n }\n const cache = await caches.open(cacheKey);\n const cached = await cache.match(request);\n if (cached) {\n const eTag = cached.headers.get('ETag');\n const lastModified = cached.headers.get('Last-Modified');\n if (eTag) {\n request.headers.set('If-None-Match', eTag);\n }\n if (lastModified) {\n request.headers.set('If-Modified-Since', lastModified);\n }\n const revalidated = await originalFetch.call(thisArg, request);\n if (revalidated.status === 304) {\n return cached;\n }\n cache.put(request, revalidated.clone());\n return revalidated;\n }\n const response = await originalFetch.call(thisArg, request);\n cache.put(request, response.clone());\n return response;\n },\n });\n })();\n ");
|
|
47284
|
+
return {
|
|
47285
|
+
beforeLoad: mergeScripts(global2.webViewType === "game" && applyGameResourcesCache),
|
|
47286
|
+
afterLoad: mergeScripts(disableTextSelectionCSS)
|
|
47287
|
+
};
|
|
47288
|
+
}
|
|
47289
|
+
function mergeScripts() {
|
|
47290
|
+
for (var _len = arguments.length, scripts = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
47291
|
+
scripts[_key] = arguments[_key];
|
|
47292
|
+
}
|
|
47293
|
+
return scripts.filter(function(script) {
|
|
47294
|
+
return typeof script === "string";
|
|
47295
|
+
}).join("\n");
|
|
47296
|
+
}
|
|
47297
|
+
var import_react_native199, import_react209, import_react210, import_react211, import_react212, import_jsx_runtime217, import_react213, import_jsx_runtime218, import_react214, import_react215, import_react_native205, import_react216, import_react_native207, import_react217, import_react_native209, import_react218, import_react219, import_react220, import_react221, import_jsx_runtime219, import_jsx_runtime220, import_react222, import_react_native212, import_react223, import_react224, import_react225, import_react_native217, import_jsx_runtime221, import_jsx_runtime222, import_react226, import_jsx_runtime223, import_jsx_runtime224, import_react_native219, import_jsx_runtime225, import_jsx_runtime226, import_jsx_runtime227, import_react227, import_react_native221, import_react228, import_react_native222, import_react229, import_react_native224, import_jsx_runtime228, import_jsx_runtime229, import_react230, import_react231, import_jsx_runtime230, import_jsx_runtime231, import_react232, import_react233, import_react234, import_react235, import_react_native227, import_react236, import_react237, import_jsx_runtime232, __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, SHARE_SCHEME_REFERRER, APP_SHARE_MENU_INFO, APP_BRIDGE_METHOD_NAME, MIN_VERSION, RNNavigationBar, bridge_entry_exports, AppsInToss, GameWebView, PartnerWebView, globalEventListenerMap, EventEmitter, INITIAL_STATE, HISTORY_BACK_SCRIPT, HISTORY_HOME_SCRIPT, FontA11yCategory, androidFontScaleMap, iosScaleToAndroidScale, extractDateFromUUIDv7, getGroupId, getReferrer3, trackScreen, operationalEnvironment, TYPES, WEBVIEW_TYPES, Analytics2;
|
|
47242
47298
|
var init_dist8 = __esm({
|
|
47243
47299
|
"../../.yarn/__virtual__/@apps-in-toss-framework-virtual-574b136add/1/apps-in-toss-packages/framework/dist/index.js"() {
|
|
47244
47300
|
"use strict";
|
|
47245
47301
|
init_async_to_generator();
|
|
47302
|
+
init_class_call_check();
|
|
47303
|
+
init_create_class();
|
|
47246
47304
|
init_extends();
|
|
47247
47305
|
init_instanceof();
|
|
47248
47306
|
init_object_destructuring_empty();
|
|
@@ -47344,6 +47402,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47344
47402
|
init_async_bridges();
|
|
47345
47403
|
init_constant_bridges2();
|
|
47346
47404
|
init_event_bridges();
|
|
47405
|
+
init_react_native_safe_area_context();
|
|
47347
47406
|
init_src3();
|
|
47348
47407
|
init_esm8();
|
|
47349
47408
|
init_private2();
|
|
@@ -47372,16 +47431,18 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47372
47431
|
import_jsx_runtime230 = __toESM(require_jsx_runtime(), 1);
|
|
47373
47432
|
import_jsx_runtime231 = __toESM(require_jsx_runtime(), 1);
|
|
47374
47433
|
import_react232 = __toESM(require_react(), 1);
|
|
47434
|
+
init_react_native_safe_area_context();
|
|
47435
|
+
import_react233 = __toESM(require_react(), 1);
|
|
47375
47436
|
init_src3();
|
|
47376
47437
|
init_esm8();
|
|
47377
47438
|
init_dist7();
|
|
47378
|
-
import_react233 = __toESM(require_react(), 1);
|
|
47379
47439
|
import_react234 = __toESM(require_react(), 1);
|
|
47440
|
+
import_react235 = __toESM(require_react(), 1);
|
|
47380
47441
|
init_dist6();
|
|
47381
47442
|
import_react_native227 = __toESM(require_react_native(), 1);
|
|
47382
47443
|
init_dist6();
|
|
47383
|
-
import_react235 = __toESM(require_react(), 1);
|
|
47384
47444
|
import_react236 = __toESM(require_react(), 1);
|
|
47445
|
+
import_react237 = __toESM(require_react(), 1);
|
|
47385
47446
|
init_dist6();
|
|
47386
47447
|
init_src3();
|
|
47387
47448
|
import_jsx_runtime232 = __toESM(require_jsx_runtime(), 1);
|
|
@@ -47980,6 +48041,50 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47980
48041
|
});
|
|
47981
48042
|
});
|
|
47982
48043
|
globalEventListenerMap = /* @__PURE__ */ new Map();
|
|
48044
|
+
EventEmitter = /* @__PURE__ */ function() {
|
|
48045
|
+
"use strict";
|
|
48046
|
+
function EventEmitter2() {
|
|
48047
|
+
_class_call_check(this, EventEmitter2);
|
|
48048
|
+
this.listeners = {};
|
|
48049
|
+
}
|
|
48050
|
+
_create_class(EventEmitter2, [
|
|
48051
|
+
{
|
|
48052
|
+
key: "on",
|
|
48053
|
+
value: function on3(event, listener) {
|
|
48054
|
+
if (!this.listeners[event]) {
|
|
48055
|
+
this.listeners[event] = [];
|
|
48056
|
+
}
|
|
48057
|
+
this.listeners[event].push(listener);
|
|
48058
|
+
}
|
|
48059
|
+
},
|
|
48060
|
+
{
|
|
48061
|
+
key: "emit",
|
|
48062
|
+
value: function emit(event) {
|
|
48063
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
48064
|
+
args[_key - 1] = arguments[_key];
|
|
48065
|
+
}
|
|
48066
|
+
if (!this.listeners[event]) {
|
|
48067
|
+
return;
|
|
48068
|
+
}
|
|
48069
|
+
this.listeners[event].forEach(function(listener) {
|
|
48070
|
+
return listener.apply(void 0, _to_consumable_array(args));
|
|
48071
|
+
});
|
|
48072
|
+
}
|
|
48073
|
+
},
|
|
48074
|
+
{
|
|
48075
|
+
key: "off",
|
|
48076
|
+
value: function off(event, listener) {
|
|
48077
|
+
if (!this.listeners[event]) {
|
|
48078
|
+
return;
|
|
48079
|
+
}
|
|
48080
|
+
this.listeners[event] = this.listeners[event].filter(function(l48) {
|
|
48081
|
+
return l48 !== listener;
|
|
48082
|
+
});
|
|
48083
|
+
}
|
|
48084
|
+
}
|
|
48085
|
+
]);
|
|
48086
|
+
return EventEmitter2;
|
|
48087
|
+
}();
|
|
47983
48088
|
INITIAL_STATE = {
|
|
47984
48089
|
stack: [],
|
|
47985
48090
|
index: -1
|
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.4.
|
|
4
|
+
"version": "1.4.7",
|
|
5
5
|
"description": "Web Framework for Apps In Toss",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"prepack": "yarn build",
|
|
@@ -87,12 +87,12 @@
|
|
|
87
87
|
"zod": "3.24.4"
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
|
-
"@apps-in-toss/bridge-core": "1.4.
|
|
91
|
-
"@apps-in-toss/cli": "1.4.
|
|
92
|
-
"@apps-in-toss/framework": "1.4.
|
|
93
|
-
"@apps-in-toss/plugins": "1.4.
|
|
94
|
-
"@apps-in-toss/web-analytics": "1.4.
|
|
95
|
-
"@apps-in-toss/web-bridge": "1.4.
|
|
90
|
+
"@apps-in-toss/bridge-core": "1.4.7",
|
|
91
|
+
"@apps-in-toss/cli": "1.4.7",
|
|
92
|
+
"@apps-in-toss/framework": "1.4.7",
|
|
93
|
+
"@apps-in-toss/plugins": "1.4.7",
|
|
94
|
+
"@apps-in-toss/web-analytics": "1.4.7",
|
|
95
|
+
"@apps-in-toss/web-bridge": "1.4.7",
|
|
96
96
|
"@babel/core": "7.23.9",
|
|
97
97
|
"@granite-js/cli": "0.1.28",
|
|
98
98
|
"@granite-js/mpack": "0.1.28",
|
|
@@ -104,5 +104,5 @@
|
|
|
104
104
|
"publishConfig": {
|
|
105
105
|
"access": "public"
|
|
106
106
|
},
|
|
107
|
-
"gitHead": "
|
|
107
|
+
"gitHead": "9c3df99aae50b27ef775840416e7cc912de13c6a"
|
|
108
108
|
}
|