@apps-in-toss/web-framework 0.0.0-dev.1765732023607 → 0.0.0-dev.1765876894045
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 +431 -103
- package/dist/prebuilt/dev.ios.js +431 -103
- package/dist/prebuilt/prod.android.js +377 -56
- package/dist/prebuilt/prod.ios.js +377 -56
- package/package.json +8 -8
|
@@ -46083,6 +46083,328 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46083
46083
|
}
|
|
46084
46084
|
return "".concat(scheme, "://").concat(url.hostname).concat(url.pathname).concat(url.search);
|
|
46085
46085
|
}
|
|
46086
|
+
function noop4() {
|
|
46087
|
+
}
|
|
46088
|
+
function generateSessionId() {
|
|
46089
|
+
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(c41) {
|
|
46090
|
+
var r50 = Math.random() * 16 | 0;
|
|
46091
|
+
var v24 = c41 === "x" ? r50 : r50 & 3 | 8;
|
|
46092
|
+
return v24.toString(16);
|
|
46093
|
+
});
|
|
46094
|
+
}
|
|
46095
|
+
function fetchTossAd(params) {
|
|
46096
|
+
if (!fetchTossAd.isSupported()) {
|
|
46097
|
+
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE5));
|
|
46098
|
+
return noop4;
|
|
46099
|
+
}
|
|
46100
|
+
var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
|
|
46101
|
+
var adGroupId = options.adGroupId;
|
|
46102
|
+
var unregisterCallbacks = INTERNAL__appBridgeHandler.invokeAppBridgeMethod("fetchTossAd", {
|
|
46103
|
+
spaceUnitId: adGroupId,
|
|
46104
|
+
sessionId,
|
|
46105
|
+
sdkId: options.sdkId,
|
|
46106
|
+
availableStyleIds: options.availableStyleIds
|
|
46107
|
+
}, {
|
|
46108
|
+
onSuccess: function(response) {
|
|
46109
|
+
onEvent(response);
|
|
46110
|
+
},
|
|
46111
|
+
onError: function(error) {
|
|
46112
|
+
onError2(error);
|
|
46113
|
+
}
|
|
46114
|
+
});
|
|
46115
|
+
return unregisterCallbacks;
|
|
46116
|
+
}
|
|
46117
|
+
function generateRequestId() {
|
|
46118
|
+
var timestamp = Date.now().toString(36).toUpperCase();
|
|
46119
|
+
var random = Math.random().toString(36).substring(2, 7).toUpperCase();
|
|
46120
|
+
return "ait-".concat(timestamp).concat(random);
|
|
46121
|
+
}
|
|
46122
|
+
function getReferrer3() {
|
|
46123
|
+
try {
|
|
46124
|
+
return new URL(getSchemeUri()).searchParams.get("referrer");
|
|
46125
|
+
} catch (e60) {
|
|
46126
|
+
return null;
|
|
46127
|
+
}
|
|
46128
|
+
}
|
|
46129
|
+
function getIsDev() {
|
|
46130
|
+
try {
|
|
46131
|
+
return new URL(getSchemeUri()).searchParams.get("isDev") === "true";
|
|
46132
|
+
} catch (e60) {
|
|
46133
|
+
return false;
|
|
46134
|
+
}
|
|
46135
|
+
}
|
|
46136
|
+
function getPostEventTrackingUrl() {
|
|
46137
|
+
var isDev = getIsDev();
|
|
46138
|
+
if (OPERATIONAL_ENVIRONMENT === "sandbox" || isDev) {
|
|
46139
|
+
return ALPHA_EVENT_TRACKER_HTTP_ENDPOINT;
|
|
46140
|
+
}
|
|
46141
|
+
return LIVE_EVENT_TRACKER_HTTP_ENDPOINT;
|
|
46142
|
+
}
|
|
46143
|
+
function postEventTracking(params) {
|
|
46144
|
+
var endpoint = getPostEventTrackingUrl();
|
|
46145
|
+
var bodyJSON = JSON.stringify(_object_spread_props(_object_spread({}, params), {
|
|
46146
|
+
os: OS,
|
|
46147
|
+
appVer: APP_VER,
|
|
46148
|
+
deviceIdType: "NONE",
|
|
46149
|
+
platform: "RN"
|
|
46150
|
+
}));
|
|
46151
|
+
return fetch(endpoint, {
|
|
46152
|
+
method: "POST",
|
|
46153
|
+
headers: {
|
|
46154
|
+
"Content-Type": "application/json"
|
|
46155
|
+
},
|
|
46156
|
+
body: bodyJSON
|
|
46157
|
+
}).catch(noop4);
|
|
46158
|
+
}
|
|
46159
|
+
function integratedAdIsSupported() {
|
|
46160
|
+
return isMinVersionSupported({
|
|
46161
|
+
android: ANDROID_INTEGRATED_AD_SUPPORTED_VERSION,
|
|
46162
|
+
ios: IOS_INTEGRATED_AD_SUPPORTED_VERSION
|
|
46163
|
+
});
|
|
46164
|
+
}
|
|
46165
|
+
function generateLoadFullScreenAd(sdkId) {
|
|
46166
|
+
var fn7 = function(params) {
|
|
46167
|
+
if (!GoogleAdMob.loadAppsInTossAdMob.isSupported()) {
|
|
46168
|
+
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE22));
|
|
46169
|
+
return noop4;
|
|
46170
|
+
}
|
|
46171
|
+
if (!integratedAdIsSupported()) {
|
|
46172
|
+
return GoogleAdMob.loadAppsInTossAdMob(_object_spread_props(_object_spread({}, params), {
|
|
46173
|
+
onEvent: function(event) {
|
|
46174
|
+
if (event.type === "loaded") {
|
|
46175
|
+
var _event_data_responseInfo_loadedAdNetworkInfo;
|
|
46176
|
+
var requestId = generateRequestId();
|
|
46177
|
+
INTG_AD_ADM_FALLBACK_RID_MAP[params.options.adGroupId] = requestId;
|
|
46178
|
+
var _event_data_responseInfo_loadedAdNetworkInfo_adSourceName;
|
|
46179
|
+
postEventTracking({
|
|
46180
|
+
eventName: "LOAD",
|
|
46181
|
+
spaceUnitId: params.options.adGroupId,
|
|
46182
|
+
requestId,
|
|
46183
|
+
responseId: event.data.responseInfo.responseId,
|
|
46184
|
+
mediationType: "ADMOB",
|
|
46185
|
+
format: "",
|
|
46186
|
+
adSourceName: (_event_data_responseInfo_loadedAdNetworkInfo_adSourceName = (_event_data_responseInfo_loadedAdNetworkInfo = event.data.responseInfo.loadedAdNetworkInfo) === null || _event_data_responseInfo_loadedAdNetworkInfo === void 0 ? void 0 : _event_data_responseInfo_loadedAdNetworkInfo.adSourceName) !== null && _event_data_responseInfo_loadedAdNetworkInfo_adSourceName !== void 0 ? _event_data_responseInfo_loadedAdNetworkInfo_adSourceName : "",
|
|
46187
|
+
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
46188
|
+
});
|
|
46189
|
+
}
|
|
46190
|
+
return params.onEvent(event);
|
|
46191
|
+
},
|
|
46192
|
+
onError: function(error) {
|
|
46193
|
+
var _INTG_AD_ADM_FALLBACK_RID_MAP_params_options_adGroupId;
|
|
46194
|
+
var requestId = (_INTG_AD_ADM_FALLBACK_RID_MAP_params_options_adGroupId = INTG_AD_ADM_FALLBACK_RID_MAP[params.options.adGroupId]) !== null && _INTG_AD_ADM_FALLBACK_RID_MAP_params_options_adGroupId !== void 0 ? _INTG_AD_ADM_FALLBACK_RID_MAP_params_options_adGroupId : "";
|
|
46195
|
+
postEventTracking({
|
|
46196
|
+
eventName: "FAILED_TO_LOAD",
|
|
46197
|
+
spaceUnitId: params.options.adGroupId,
|
|
46198
|
+
requestId,
|
|
46199
|
+
responseId: "",
|
|
46200
|
+
mediationType: "ADMOB",
|
|
46201
|
+
format: "",
|
|
46202
|
+
adSourceName: "",
|
|
46203
|
+
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
46204
|
+
});
|
|
46205
|
+
return params.onError(error);
|
|
46206
|
+
}
|
|
46207
|
+
}));
|
|
46208
|
+
}
|
|
46209
|
+
var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
|
|
46210
|
+
var adGroupId = options.adGroupId;
|
|
46211
|
+
var referrer2 = getReferrer3();
|
|
46212
|
+
var unregisterCallbacks = INTERNAL__appBridgeHandler.invokeAppBridgeMethod("loadTossAdOrAdmob", {
|
|
46213
|
+
spaceUnitId: adGroupId,
|
|
46214
|
+
referrer: referrer2,
|
|
46215
|
+
sessionId,
|
|
46216
|
+
sdkId
|
|
46217
|
+
}, {
|
|
46218
|
+
onSuccess: function() {
|
|
46219
|
+
onEvent({
|
|
46220
|
+
type: "loaded"
|
|
46221
|
+
});
|
|
46222
|
+
},
|
|
46223
|
+
onError: function(error) {
|
|
46224
|
+
onError2(error);
|
|
46225
|
+
}
|
|
46226
|
+
});
|
|
46227
|
+
return unregisterCallbacks;
|
|
46228
|
+
};
|
|
46229
|
+
fn7.isSupported = GoogleAdMob.loadAppsInTossAdMob.isSupported;
|
|
46230
|
+
return fn7;
|
|
46231
|
+
}
|
|
46232
|
+
function showFullScreenAd(params) {
|
|
46233
|
+
if (!GoogleAdMob.showAppsInTossAdMob.isSupported()) {
|
|
46234
|
+
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE22));
|
|
46235
|
+
return noop4;
|
|
46236
|
+
}
|
|
46237
|
+
if (!integratedAdIsSupported()) {
|
|
46238
|
+
return GoogleAdMob.showAppsInTossAdMob(_object_spread_props(_object_spread({}, params), {
|
|
46239
|
+
onEvent: function(event) {
|
|
46240
|
+
var _INTG_AD_ADM_FALLBACK_RID_MAP_params_options_adGroupId;
|
|
46241
|
+
var requestId = (_INTG_AD_ADM_FALLBACK_RID_MAP_params_options_adGroupId = INTG_AD_ADM_FALLBACK_RID_MAP[params.options.adGroupId]) !== null && _INTG_AD_ADM_FALLBACK_RID_MAP_params_options_adGroupId !== void 0 ? _INTG_AD_ADM_FALLBACK_RID_MAP_params_options_adGroupId : "";
|
|
46242
|
+
switch (event.type) {
|
|
46243
|
+
case "show":
|
|
46244
|
+
postEventTracking({
|
|
46245
|
+
eventName: "SHOW",
|
|
46246
|
+
spaceUnitId: params.options.adGroupId,
|
|
46247
|
+
requestId,
|
|
46248
|
+
responseId: "",
|
|
46249
|
+
mediationType: "ADMOB",
|
|
46250
|
+
format: "",
|
|
46251
|
+
adSourceName: "",
|
|
46252
|
+
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
46253
|
+
});
|
|
46254
|
+
break;
|
|
46255
|
+
case "failedToShow":
|
|
46256
|
+
postEventTracking({
|
|
46257
|
+
eventName: "FAILED_TO_SHOW",
|
|
46258
|
+
spaceUnitId: params.options.adGroupId,
|
|
46259
|
+
requestId,
|
|
46260
|
+
responseId: "",
|
|
46261
|
+
mediationType: "ADMOB",
|
|
46262
|
+
format: "",
|
|
46263
|
+
adSourceName: "",
|
|
46264
|
+
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
46265
|
+
});
|
|
46266
|
+
break;
|
|
46267
|
+
case "impression":
|
|
46268
|
+
postEventTracking({
|
|
46269
|
+
eventName: "IMP",
|
|
46270
|
+
spaceUnitId: params.options.adGroupId,
|
|
46271
|
+
requestId,
|
|
46272
|
+
responseId: "",
|
|
46273
|
+
mediationType: "ADMOB",
|
|
46274
|
+
format: "",
|
|
46275
|
+
adSourceName: "",
|
|
46276
|
+
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
46277
|
+
});
|
|
46278
|
+
break;
|
|
46279
|
+
case "clicked":
|
|
46280
|
+
postEventTracking({
|
|
46281
|
+
eventName: "CLICK",
|
|
46282
|
+
spaceUnitId: params.options.adGroupId,
|
|
46283
|
+
requestId,
|
|
46284
|
+
responseId: "",
|
|
46285
|
+
mediationType: "ADMOB",
|
|
46286
|
+
format: "",
|
|
46287
|
+
adSourceName: "",
|
|
46288
|
+
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
46289
|
+
});
|
|
46290
|
+
break;
|
|
46291
|
+
case "dismissed":
|
|
46292
|
+
postEventTracking({
|
|
46293
|
+
eventName: "DISMISS",
|
|
46294
|
+
spaceUnitId: params.options.adGroupId,
|
|
46295
|
+
requestId,
|
|
46296
|
+
responseId: "",
|
|
46297
|
+
mediationType: "ADMOB",
|
|
46298
|
+
format: "",
|
|
46299
|
+
adSourceName: "",
|
|
46300
|
+
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
46301
|
+
});
|
|
46302
|
+
break;
|
|
46303
|
+
case "userEarnedReward":
|
|
46304
|
+
postEventTracking({
|
|
46305
|
+
eventName: "USER_EARNED_REWARD",
|
|
46306
|
+
spaceUnitId: params.options.adGroupId,
|
|
46307
|
+
requestId,
|
|
46308
|
+
responseId: "",
|
|
46309
|
+
mediationType: "ADMOB",
|
|
46310
|
+
format: "",
|
|
46311
|
+
adSourceName: "",
|
|
46312
|
+
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
46313
|
+
});
|
|
46314
|
+
break;
|
|
46315
|
+
}
|
|
46316
|
+
return params.onEvent(event);
|
|
46317
|
+
},
|
|
46318
|
+
onError: function(error) {
|
|
46319
|
+
var _INTG_AD_ADM_FALLBACK_RID_MAP_params_options_adGroupId;
|
|
46320
|
+
var requestId = (_INTG_AD_ADM_FALLBACK_RID_MAP_params_options_adGroupId = INTG_AD_ADM_FALLBACK_RID_MAP[params.options.adGroupId]) !== null && _INTG_AD_ADM_FALLBACK_RID_MAP_params_options_adGroupId !== void 0 ? _INTG_AD_ADM_FALLBACK_RID_MAP_params_options_adGroupId : "";
|
|
46321
|
+
postEventTracking({
|
|
46322
|
+
eventName: "FAILED_TO_SHOW",
|
|
46323
|
+
spaceUnitId: params.options.adGroupId,
|
|
46324
|
+
requestId,
|
|
46325
|
+
responseId: "",
|
|
46326
|
+
mediationType: "ADMOB",
|
|
46327
|
+
format: "",
|
|
46328
|
+
adSourceName: "",
|
|
46329
|
+
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
46330
|
+
});
|
|
46331
|
+
return params.onError(error);
|
|
46332
|
+
}
|
|
46333
|
+
}));
|
|
46334
|
+
}
|
|
46335
|
+
var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
|
|
46336
|
+
var adGroupId = options.adGroupId;
|
|
46337
|
+
var referrer2 = getReferrer3();
|
|
46338
|
+
var unregisterCallbacks = INTERNAL__appBridgeHandler.invokeAppBridgeMethod("showTossAdOrAdmob", {
|
|
46339
|
+
spaceUnitId: adGroupId,
|
|
46340
|
+
referrer: referrer2,
|
|
46341
|
+
sessionId
|
|
46342
|
+
}, {
|
|
46343
|
+
onAdClicked: function() {
|
|
46344
|
+
onEvent({
|
|
46345
|
+
type: "clicked"
|
|
46346
|
+
});
|
|
46347
|
+
},
|
|
46348
|
+
onAdDismissed: function() {
|
|
46349
|
+
onEvent({
|
|
46350
|
+
type: "dismissed"
|
|
46351
|
+
});
|
|
46352
|
+
},
|
|
46353
|
+
onAdFailedToShow: function() {
|
|
46354
|
+
onEvent({
|
|
46355
|
+
type: "failedToShow"
|
|
46356
|
+
});
|
|
46357
|
+
},
|
|
46358
|
+
onAdImpression: function() {
|
|
46359
|
+
onEvent({
|
|
46360
|
+
type: "impression"
|
|
46361
|
+
});
|
|
46362
|
+
},
|
|
46363
|
+
onAdShow: function() {
|
|
46364
|
+
onEvent({
|
|
46365
|
+
type: "show"
|
|
46366
|
+
});
|
|
46367
|
+
},
|
|
46368
|
+
onUserEarnedReward: function(data) {
|
|
46369
|
+
onEvent({
|
|
46370
|
+
type: "userEarnedReward",
|
|
46371
|
+
data
|
|
46372
|
+
});
|
|
46373
|
+
},
|
|
46374
|
+
onSuccess: function() {
|
|
46375
|
+
onEvent({
|
|
46376
|
+
type: "requested"
|
|
46377
|
+
});
|
|
46378
|
+
},
|
|
46379
|
+
onError: function(error) {
|
|
46380
|
+
onError2(error);
|
|
46381
|
+
}
|
|
46382
|
+
});
|
|
46383
|
+
return unregisterCallbacks;
|
|
46384
|
+
}
|
|
46385
|
+
function tossAdEventLog(params) {
|
|
46386
|
+
return _tossAdEventLog.apply(this, arguments);
|
|
46387
|
+
}
|
|
46388
|
+
function _tossAdEventLog() {
|
|
46389
|
+
_tossAdEventLog = _async_to_generator(function(params) {
|
|
46390
|
+
var referrer2, appName, eventLogParams;
|
|
46391
|
+
return __generator(this, function(_state) {
|
|
46392
|
+
referrer2 = getReferrer3();
|
|
46393
|
+
appName = Granite.appName;
|
|
46394
|
+
eventLogParams = _object_spread_props(_object_spread({}, params), {
|
|
46395
|
+
params: _object_spread_props(_object_spread({}, params.params), {
|
|
46396
|
+
referrer: referrer2,
|
|
46397
|
+
app_name: appName
|
|
46398
|
+
})
|
|
46399
|
+
});
|
|
46400
|
+
return [
|
|
46401
|
+
2,
|
|
46402
|
+
INTERNAL__module.tossCoreEventLog(eventLogParams)
|
|
46403
|
+
];
|
|
46404
|
+
});
|
|
46405
|
+
});
|
|
46406
|
+
return _tossAdEventLog.apply(this, arguments);
|
|
46407
|
+
}
|
|
46086
46408
|
function serializeError(error) {
|
|
46087
46409
|
return JSON.stringify(error, function(_16, value) {
|
|
46088
46410
|
if (_instanceof1(value, Error)) {
|
|
@@ -46637,7 +46959,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46637
46959
|
var batteryModePreference = param.batteryModePreference, colorPreference = param.colorPreference, locale = param.locale, navbarPreference = param.navbarPreference, pureSafeArea = param.pureSafeArea, safeArea = param.safeArea, safeAreaBottomTransparency = param.safeAreaBottomTransparency;
|
|
46638
46960
|
var platform = getPlatformOS();
|
|
46639
46961
|
var appVersion = getTossAppVersion();
|
|
46640
|
-
var fontScale = (0,
|
|
46962
|
+
var fontScale = (0, import_react_native230.useWindowDimensions)().fontScale;
|
|
46641
46963
|
var platformString = platform === "ios" ? "iPhone" : "Android phone";
|
|
46642
46964
|
var fontA11y = mapFontScaleToCategory(fontScale, platform);
|
|
46643
46965
|
var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
|
|
@@ -46767,6 +47089,11 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46767
47089
|
/** AdMobV2 */
|
|
46768
47090
|
loadAppsInTossAdMob: GoogleAdMob.loadAppsInTossAdMob,
|
|
46769
47091
|
showAppsInTossAdMob: GoogleAdMob.showAppsInTossAdMob,
|
|
47092
|
+
/** IntegratedAd */
|
|
47093
|
+
loadFullScreenAd: loadFullScreenAdForWeb,
|
|
47094
|
+
showFullScreenAd,
|
|
47095
|
+
/** TossAd */
|
|
47096
|
+
fetchTossAd,
|
|
46770
47097
|
/** IAP */
|
|
46771
47098
|
iapCreateOneTimePurchaseOrder: IAP.createOneTimePurchaseOrder,
|
|
46772
47099
|
requestOneTimePurchase
|
|
@@ -46801,6 +47128,11 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46801
47128
|
/** AdMobV2 */
|
|
46802
47129
|
loadAppsInTossAdMob_isSupported: GoogleAdMob.loadAppsInTossAdMob.isSupported,
|
|
46803
47130
|
showAppsInTossAdMob_isSupported: GoogleAdMob.showAppsInTossAdMob.isSupported,
|
|
47131
|
+
/** IntegratedAd */
|
|
47132
|
+
loadFullScreenAd_isSupported: loadFullScreenAdForWeb.isSupported,
|
|
47133
|
+
showFullScreenAd_isSupported: showFullScreenAd.isSupported,
|
|
47134
|
+
/** TossAd */
|
|
47135
|
+
fetchTossAd_isSupported: fetchTossAd.isSupported,
|
|
46804
47136
|
/** env */
|
|
46805
47137
|
getDeploymentId: env.getDeploymentId
|
|
46806
47138
|
}),
|
|
@@ -46852,8 +47184,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46852
47184
|
getPendingOrders: IAP.getPendingOrders,
|
|
46853
47185
|
getCompletedOrRefundedOrders: IAP.getCompletedOrRefundedOrders,
|
|
46854
47186
|
completeProductGrant: IAP.completeProductGrant,
|
|
46855
|
-
|
|
46856
|
-
|
|
47187
|
+
/** Toss Ads */
|
|
47188
|
+
tossAdEventLog
|
|
46857
47189
|
})
|
|
46858
47190
|
});
|
|
46859
47191
|
var headerPropForExternalWebView = (0, import_react226.useMemo)(function() {
|
|
@@ -46949,54 +47281,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46949
47281
|
"servicetoss://*",
|
|
46950
47282
|
"supertoss://*",
|
|
46951
47283
|
"intent://*"
|
|
46952
|
-
]
|
|
46953
|
-
onContentProcessDidTerminate: function(event) {
|
|
46954
|
-
var _webViewRef_current;
|
|
46955
|
-
webViewProcessDidTerminateEventLog(event.nativeEvent.url);
|
|
46956
|
-
(_webViewRef_current = webViewRef.current) === null || _webViewRef_current === void 0 ? void 0 : _webViewRef_current.reload();
|
|
46957
|
-
},
|
|
46958
|
-
onRenderProcessGone: function() {
|
|
46959
|
-
var _webViewRef_current;
|
|
46960
|
-
webViewProcessDidTerminateEventLog();
|
|
46961
|
-
(_webViewRef_current = webViewRef.current) === null || _webViewRef_current === void 0 ? void 0 : _webViewRef_current.reload();
|
|
46962
|
-
}
|
|
47284
|
+
]
|
|
46963
47285
|
}));
|
|
46964
47286
|
}
|
|
46965
|
-
function webViewMemoryDebugLog(params) {
|
|
46966
|
-
return _webViewMemoryDebugLog.apply(this, arguments);
|
|
46967
|
-
}
|
|
46968
|
-
function _webViewMemoryDebugLog() {
|
|
46969
|
-
_webViewMemoryDebugLog = _async_to_generator(function(params) {
|
|
46970
|
-
return __generator(this, function(_state) {
|
|
46971
|
-
webViewDebugLog("AppsInTossWebViewMemoryDebug", params);
|
|
46972
|
-
return [
|
|
46973
|
-
2
|
|
46974
|
-
];
|
|
46975
|
-
});
|
|
46976
|
-
});
|
|
46977
|
-
return _webViewMemoryDebugLog.apply(this, arguments);
|
|
46978
|
-
}
|
|
46979
|
-
function webViewProcessDidTerminateEventLog(url) {
|
|
46980
|
-
webViewDebugLog("AppsInTossWebViewProcessDidTerminate", {
|
|
46981
|
-
url
|
|
46982
|
-
});
|
|
46983
|
-
}
|
|
46984
|
-
function webViewDebugLog(logName, params) {
|
|
46985
|
-
var global2 = getAppsInTossGlobals();
|
|
46986
|
-
var event = {
|
|
46987
|
-
log_name: logName,
|
|
46988
|
-
log_type: "debug",
|
|
46989
|
-
params: _object_spread_props(_object_spread({}, params), {
|
|
46990
|
-
app_name: Granite.appName,
|
|
46991
|
-
deployment_id: global2.deploymentId
|
|
46992
|
-
})
|
|
46993
|
-
};
|
|
46994
|
-
if (getOperationalEnvironment() === "toss") {
|
|
46995
|
-
INTERNAL__module.tossCoreEventLog(event);
|
|
46996
|
-
} else {
|
|
46997
|
-
console.log("[webViewDebugLog]", event);
|
|
46998
|
-
}
|
|
46999
|
-
}
|
|
47000
47287
|
function useGlobalScripts() {
|
|
47001
47288
|
var global2 = getAppsInTossGlobals();
|
|
47002
47289
|
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 ";
|
|
@@ -47014,7 +47301,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47014
47301
|
return typeof script === "string";
|
|
47015
47302
|
}).join("\n");
|
|
47016
47303
|
}
|
|
47017
|
-
var import_react_native197, import_react209, import_react210, import_react211, import_react212, import_jsx_runtime217, import_react213, import_jsx_runtime218, import_react214, import_react_native203, import_react215, import_react_native205, import_react216, import_react_native207, import_react217, import_react218, import_react219, import_react220, import_jsx_runtime219, import_jsx_runtime220, import_react221, import_react_native210, import_react222, import_react223, import_react224, import_react_native215, import_react_native216, import_jsx_runtime221, import_jsx_runtime222, import_jsx_runtime223, import_jsx_runtime224, import_react225, import_jsx_runtime225, import_jsx_runtime226, import_react_native219, import_jsx_runtime227, import_jsx_runtime228, import_jsx_runtime229, import_react226, import_react_native221, import_react227, import_react_native222, import_react228, import_react_native224, import_jsx_runtime230, import_jsx_runtime231, import_react229, import_react230, import_jsx_runtime232, import_jsx_runtime233, import_react231, import_react232, import_react233, import_react234,
|
|
47304
|
+
var import_react_native197, import_react209, import_react210, import_react211, import_react212, import_jsx_runtime217, import_react213, import_jsx_runtime218, import_react214, import_react_native203, import_react215, import_react_native205, import_react216, import_react_native207, import_react217, import_react218, import_react219, import_react220, import_jsx_runtime219, import_jsx_runtime220, import_react221, import_react_native210, import_react222, import_react223, import_react224, import_react_native215, import_react_native216, import_jsx_runtime221, import_jsx_runtime222, import_jsx_runtime223, import_jsx_runtime224, import_react225, import_jsx_runtime225, import_jsx_runtime226, import_react_native219, import_jsx_runtime227, import_jsx_runtime228, import_jsx_runtime229, import_react226, import_react_native221, import_react227, import_react_native222, import_react228, import_react_native224, import_jsx_runtime230, import_jsx_runtime231, import_react229, import_react230, import_jsx_runtime232, import_jsx_runtime233, import_react231, import_react232, import_react233, import_react234, import_react_native230, import_react235, import_react236, import_jsx_runtime234, __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_MESSAGE5, ENVIRONMENT5, 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, HISTORY_BACK_SCRIPT, HISTORY_HOME_SCRIPT, FontA11yCategory, androidFontScaleMap, iosScaleToAndroidScale, extractDateFromUUIDv7, getGroupId, getReferrer22, trackScreen, operationalEnvironment, TYPES, WEBVIEW_TYPES, Analytics2;
|
|
47018
47305
|
var init_dist8 = __esm({
|
|
47019
47306
|
"../../.yarn/__virtual__/@apps-in-toss-framework-virtual-574b136add/1/apps-in-toss-packages/framework/dist/index.js"() {
|
|
47020
47307
|
"use strict";
|
|
@@ -47153,6 +47440,13 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47153
47440
|
import_react230 = __toESM(require_react(), 1);
|
|
47154
47441
|
import_jsx_runtime232 = __toESM(require_jsx_runtime(), 1);
|
|
47155
47442
|
import_jsx_runtime233 = __toESM(require_jsx_runtime(), 1);
|
|
47443
|
+
init_dist6();
|
|
47444
|
+
init_dist6();
|
|
47445
|
+
init_src3();
|
|
47446
|
+
init_dist6();
|
|
47447
|
+
init_src3();
|
|
47448
|
+
init_dist6();
|
|
47449
|
+
init_src3();
|
|
47156
47450
|
import_react231 = __toESM(require_react(), 1);
|
|
47157
47451
|
init_react_native_safe_area_context();
|
|
47158
47452
|
import_react232 = __toESM(require_react(), 1);
|
|
@@ -47162,7 +47456,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47162
47456
|
import_react233 = __toESM(require_react(), 1);
|
|
47163
47457
|
import_react234 = __toESM(require_react(), 1);
|
|
47164
47458
|
init_dist6();
|
|
47165
|
-
|
|
47459
|
+
import_react_native230 = __toESM(require_react_native(), 1);
|
|
47166
47460
|
init_dist6();
|
|
47167
47461
|
import_react235 = __toESM(require_react(), 1);
|
|
47168
47462
|
import_react236 = __toESM(require_react(), 1);
|
|
@@ -47760,6 +48054,33 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47760
48054
|
]
|
|
47761
48055
|
});
|
|
47762
48056
|
});
|
|
48057
|
+
sessionId = generateSessionId();
|
|
48058
|
+
ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION = "5.241.0";
|
|
48059
|
+
IOS_FETCH_TOSS_AD_SUPPORTED_VERSION = "5.241.0";
|
|
48060
|
+
UNSUPPORTED_ERROR_MESSAGE5 = "This feature is not supported in the current environment";
|
|
48061
|
+
ENVIRONMENT5 = getOperationalEnvironment();
|
|
48062
|
+
fetchTossAd.isSupported = function() {
|
|
48063
|
+
if (ENVIRONMENT5 !== "toss") {
|
|
48064
|
+
return false;
|
|
48065
|
+
}
|
|
48066
|
+
return isMinVersionSupported({
|
|
48067
|
+
android: ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION,
|
|
48068
|
+
ios: IOS_FETCH_TOSS_AD_SUPPORTED_VERSION
|
|
48069
|
+
});
|
|
48070
|
+
};
|
|
48071
|
+
OPERATIONAL_ENVIRONMENT = getOperationalEnvironment();
|
|
48072
|
+
OS = getPlatformOS();
|
|
48073
|
+
APP_VER = getTossAppVersion();
|
|
48074
|
+
ALPHA_EVENT_TRACKER_HTTP_ENDPOINT = "https://alpha-trillion.toss.im/trk/sdk-mediation/event";
|
|
48075
|
+
LIVE_EVENT_TRACKER_HTTP_ENDPOINT = "https://trillion.toss.im/trk/sdk-mediation/event";
|
|
48076
|
+
INTEGRATED_AD_SDK_VERSION = "0.0.0";
|
|
48077
|
+
ANDROID_INTEGRATED_AD_SUPPORTED_VERSION = "5.241.0";
|
|
48078
|
+
IOS_INTEGRATED_AD_SUPPORTED_VERSION = "5.241.0";
|
|
48079
|
+
UNSUPPORTED_ERROR_MESSAGE22 = "This feature is not supported in the current environment";
|
|
48080
|
+
INTG_AD_ADM_FALLBACK_RID_MAP = {};
|
|
48081
|
+
loadFullScreenAd = generateLoadFullScreenAd("107");
|
|
48082
|
+
loadFullScreenAdForWeb = generateLoadFullScreenAd("107");
|
|
48083
|
+
showFullScreenAd.isSupported = GoogleAdMob.showAppsInTossAdMob.isSupported;
|
|
47763
48084
|
globalEventListenerMap = /* @__PURE__ */ new Map();
|
|
47764
48085
|
EventEmitter = /* @__PURE__ */ function() {
|
|
47765
48086
|
"use strict";
|
|
@@ -47866,7 +48187,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47866
48187
|
};
|
|
47867
48188
|
}
|
|
47868
48189
|
};
|
|
47869
|
-
|
|
48190
|
+
getReferrer22 = function() {
|
|
47870
48191
|
try {
|
|
47871
48192
|
var referrer2 = new URL(getSchemeUri());
|
|
47872
48193
|
return referrer2.searchParams.get("referrer");
|
|
@@ -47881,7 +48202,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47881
48202
|
log_name: "".concat(groupId, "::screen"),
|
|
47882
48203
|
params: {
|
|
47883
48204
|
search,
|
|
47884
|
-
referrer:
|
|
48205
|
+
referrer: getReferrer22(),
|
|
47885
48206
|
deployment_id: env.getDeploymentId(),
|
|
47886
48207
|
deployment_timestamp: extractDateFromUUIDv7(env.getDeploymentId()).getTime()
|
|
47887
48208
|
}
|
|
@@ -47916,7 +48237,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47916
48237
|
}
|
|
47917
48238
|
});
|
|
47918
48239
|
function Index() {
|
|
47919
|
-
return /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
|
|
48240
|
+
return /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(import_react_native232.View, {
|
|
47920
48241
|
style: {
|
|
47921
48242
|
flex: 1
|
|
47922
48243
|
},
|
|
@@ -47938,13 +48259,13 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47938
48259
|
})
|
|
47939
48260
|
});
|
|
47940
48261
|
}
|
|
47941
|
-
var import_jsx_runtime235,
|
|
48262
|
+
var import_jsx_runtime235, import_react_native232;
|
|
47942
48263
|
var init_pages = __esm({
|
|
47943
48264
|
"react-native/pages/index.tsx"() {
|
|
47944
48265
|
"use strict";
|
|
47945
48266
|
import_jsx_runtime235 = __toESM(require_jsx_runtime(), 1);
|
|
47946
48267
|
init_dist8();
|
|
47947
|
-
|
|
48268
|
+
import_react_native232 = __toESM(require_react_native(), 1);
|
|
47948
48269
|
}
|
|
47949
48270
|
});
|
|
47950
48271
|
|
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.0-dev.
|
|
4
|
+
"version": "0.0.0-dev.1765876894045",
|
|
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": "0.0.0-dev.
|
|
91
|
-
"@apps-in-toss/cli": "0.0.0-dev.
|
|
92
|
-
"@apps-in-toss/framework": "0.0.0-dev.
|
|
93
|
-
"@apps-in-toss/plugins": "0.0.0-dev.
|
|
94
|
-
"@apps-in-toss/web-analytics": "0.0.0-dev.
|
|
95
|
-
"@apps-in-toss/web-bridge": "0.0.0-dev.
|
|
90
|
+
"@apps-in-toss/bridge-core": "0.0.0-dev.1765876894045",
|
|
91
|
+
"@apps-in-toss/cli": "0.0.0-dev.1765876894045",
|
|
92
|
+
"@apps-in-toss/framework": "0.0.0-dev.1765876894045",
|
|
93
|
+
"@apps-in-toss/plugins": "0.0.0-dev.1765876894045",
|
|
94
|
+
"@apps-in-toss/web-analytics": "0.0.0-dev.1765876894045",
|
|
95
|
+
"@apps-in-toss/web-bridge": "0.0.0-dev.1765876894045",
|
|
96
96
|
"@babel/core": "7.23.9",
|
|
97
97
|
"@granite-js/cli": "0.1.31",
|
|
98
98
|
"@granite-js/mpack": "0.1.31",
|
|
@@ -104,5 +104,5 @@
|
|
|
104
104
|
"publishConfig": {
|
|
105
105
|
"access": "public"
|
|
106
106
|
},
|
|
107
|
-
"gitHead": "
|
|
107
|
+
"gitHead": "90c26c9a29c75e0f88fe7cc78f42b91455a4aa83"
|
|
108
108
|
}
|