@apps-in-toss/web-framework 0.0.0-dev.1765878631929 → 0.0.0-dev.1765960737704
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-AZQN2M6D.js +63 -0
- package/dist/cli/chunk-PT6B3KQJ.js +209904 -0
- package/dist/cli/lib-GNFDOQZX.js +1007 -0
- package/dist/cli/typescript-WPGJO2BO.js +6 -0
- package/dist/prebuilt/dev.android.js +618 -249
- package/dist/prebuilt/dev.ios.js +616 -247
- package/dist/prebuilt/prod.android.js +377 -9
- package/dist/prebuilt/prod.ios.js +377 -9
- package/dist/prebuilt/prod.json +14 -0
- package/package.json +8 -8
|
@@ -46142,6 +46142,328 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46142
46142
|
}
|
|
46143
46143
|
return "".concat(scheme, "://").concat(url.hostname).concat(url.pathname).concat(url.search);
|
|
46144
46144
|
}
|
|
46145
|
+
function noop4() {
|
|
46146
|
+
}
|
|
46147
|
+
function generateSessionId() {
|
|
46148
|
+
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(c41) {
|
|
46149
|
+
var r50 = Math.random() * 16 | 0;
|
|
46150
|
+
var v24 = c41 === "x" ? r50 : r50 & 3 | 8;
|
|
46151
|
+
return v24.toString(16);
|
|
46152
|
+
});
|
|
46153
|
+
}
|
|
46154
|
+
function fetchTossAd(params) {
|
|
46155
|
+
if (!fetchTossAd.isSupported()) {
|
|
46156
|
+
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE5));
|
|
46157
|
+
return noop4;
|
|
46158
|
+
}
|
|
46159
|
+
var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
|
|
46160
|
+
var adGroupId = options.adGroupId;
|
|
46161
|
+
var unregisterCallbacks = INTERNAL__appBridgeHandler.invokeAppBridgeMethod("fetchTossAd", {
|
|
46162
|
+
spaceUnitId: adGroupId,
|
|
46163
|
+
sessionId,
|
|
46164
|
+
sdkId: options.sdkId,
|
|
46165
|
+
availableStyleIds: options.availableStyleIds
|
|
46166
|
+
}, {
|
|
46167
|
+
onSuccess: function(response) {
|
|
46168
|
+
onEvent(response);
|
|
46169
|
+
},
|
|
46170
|
+
onError: function(error) {
|
|
46171
|
+
onError2(error);
|
|
46172
|
+
}
|
|
46173
|
+
});
|
|
46174
|
+
return unregisterCallbacks;
|
|
46175
|
+
}
|
|
46176
|
+
function generateRequestId() {
|
|
46177
|
+
var timestamp = Date.now().toString(36).toUpperCase();
|
|
46178
|
+
var random = Math.random().toString(36).substring(2, 7).toUpperCase();
|
|
46179
|
+
return "ait-".concat(timestamp).concat(random);
|
|
46180
|
+
}
|
|
46181
|
+
function getReferrer3() {
|
|
46182
|
+
try {
|
|
46183
|
+
return new URL(getSchemeUri()).searchParams.get("referrer");
|
|
46184
|
+
} catch (e60) {
|
|
46185
|
+
return null;
|
|
46186
|
+
}
|
|
46187
|
+
}
|
|
46188
|
+
function getIsDev() {
|
|
46189
|
+
try {
|
|
46190
|
+
return new URL(getSchemeUri()).searchParams.get("isDev") === "true";
|
|
46191
|
+
} catch (e60) {
|
|
46192
|
+
return false;
|
|
46193
|
+
}
|
|
46194
|
+
}
|
|
46195
|
+
function getPostEventTrackingUrl() {
|
|
46196
|
+
var isDev = getIsDev();
|
|
46197
|
+
if (OPERATIONAL_ENVIRONMENT === "sandbox" || isDev) {
|
|
46198
|
+
return ALPHA_EVENT_TRACKER_HTTP_ENDPOINT;
|
|
46199
|
+
}
|
|
46200
|
+
return LIVE_EVENT_TRACKER_HTTP_ENDPOINT;
|
|
46201
|
+
}
|
|
46202
|
+
function postEventTracking(params) {
|
|
46203
|
+
var endpoint = getPostEventTrackingUrl();
|
|
46204
|
+
var bodyJSON = JSON.stringify(_object_spread_props(_object_spread({}, params), {
|
|
46205
|
+
os: OS,
|
|
46206
|
+
appVer: APP_VER,
|
|
46207
|
+
deviceIdType: "NONE",
|
|
46208
|
+
platform: "RN"
|
|
46209
|
+
}));
|
|
46210
|
+
return fetch(endpoint, {
|
|
46211
|
+
method: "POST",
|
|
46212
|
+
headers: {
|
|
46213
|
+
"Content-Type": "application/json"
|
|
46214
|
+
},
|
|
46215
|
+
body: bodyJSON
|
|
46216
|
+
}).catch(noop4);
|
|
46217
|
+
}
|
|
46218
|
+
function integratedAdIsSupported() {
|
|
46219
|
+
return isMinVersionSupported({
|
|
46220
|
+
android: ANDROID_INTEGRATED_AD_SUPPORTED_VERSION,
|
|
46221
|
+
ios: IOS_INTEGRATED_AD_SUPPORTED_VERSION
|
|
46222
|
+
});
|
|
46223
|
+
}
|
|
46224
|
+
function generateLoadFullScreenAd(sdkId) {
|
|
46225
|
+
var fn7 = function(params) {
|
|
46226
|
+
if (!GoogleAdMob.loadAppsInTossAdMob.isSupported()) {
|
|
46227
|
+
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE22));
|
|
46228
|
+
return noop4;
|
|
46229
|
+
}
|
|
46230
|
+
if (!integratedAdIsSupported()) {
|
|
46231
|
+
return GoogleAdMob.loadAppsInTossAdMob(_object_spread_props(_object_spread({}, params), {
|
|
46232
|
+
onEvent: function(event) {
|
|
46233
|
+
if (event.type === "loaded") {
|
|
46234
|
+
var _event_data_responseInfo_loadedAdNetworkInfo;
|
|
46235
|
+
var requestId = generateRequestId();
|
|
46236
|
+
INTG_AD_ADM_FALLBACK_RID_MAP[params.options.adGroupId] = requestId;
|
|
46237
|
+
var _event_data_responseInfo_loadedAdNetworkInfo_adSourceName;
|
|
46238
|
+
postEventTracking({
|
|
46239
|
+
eventName: "LOAD",
|
|
46240
|
+
spaceUnitId: params.options.adGroupId,
|
|
46241
|
+
requestId,
|
|
46242
|
+
responseId: event.data.responseInfo.responseId,
|
|
46243
|
+
mediationType: "ADMOB",
|
|
46244
|
+
format: "",
|
|
46245
|
+
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 : "",
|
|
46246
|
+
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
46247
|
+
});
|
|
46248
|
+
}
|
|
46249
|
+
return params.onEvent(event);
|
|
46250
|
+
},
|
|
46251
|
+
onError: function(error) {
|
|
46252
|
+
var _INTG_AD_ADM_FALLBACK_RID_MAP_params_options_adGroupId;
|
|
46253
|
+
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 : "";
|
|
46254
|
+
postEventTracking({
|
|
46255
|
+
eventName: "FAILED_TO_LOAD",
|
|
46256
|
+
spaceUnitId: params.options.adGroupId,
|
|
46257
|
+
requestId,
|
|
46258
|
+
responseId: "",
|
|
46259
|
+
mediationType: "ADMOB",
|
|
46260
|
+
format: "",
|
|
46261
|
+
adSourceName: "",
|
|
46262
|
+
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
46263
|
+
});
|
|
46264
|
+
return params.onError(error);
|
|
46265
|
+
}
|
|
46266
|
+
}));
|
|
46267
|
+
}
|
|
46268
|
+
var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
|
|
46269
|
+
var adGroupId = options.adGroupId;
|
|
46270
|
+
var referrer2 = getReferrer3();
|
|
46271
|
+
var unregisterCallbacks = INTERNAL__appBridgeHandler.invokeAppBridgeMethod("loadTossAdOrAdmob", {
|
|
46272
|
+
spaceUnitId: adGroupId,
|
|
46273
|
+
referrer: referrer2,
|
|
46274
|
+
sessionId,
|
|
46275
|
+
sdkId
|
|
46276
|
+
}, {
|
|
46277
|
+
onSuccess: function() {
|
|
46278
|
+
onEvent({
|
|
46279
|
+
type: "loaded"
|
|
46280
|
+
});
|
|
46281
|
+
},
|
|
46282
|
+
onError: function(error) {
|
|
46283
|
+
onError2(error);
|
|
46284
|
+
}
|
|
46285
|
+
});
|
|
46286
|
+
return unregisterCallbacks;
|
|
46287
|
+
};
|
|
46288
|
+
fn7.isSupported = GoogleAdMob.loadAppsInTossAdMob.isSupported;
|
|
46289
|
+
return fn7;
|
|
46290
|
+
}
|
|
46291
|
+
function showFullScreenAd(params) {
|
|
46292
|
+
if (!GoogleAdMob.showAppsInTossAdMob.isSupported()) {
|
|
46293
|
+
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE22));
|
|
46294
|
+
return noop4;
|
|
46295
|
+
}
|
|
46296
|
+
if (!integratedAdIsSupported()) {
|
|
46297
|
+
return GoogleAdMob.showAppsInTossAdMob(_object_spread_props(_object_spread({}, params), {
|
|
46298
|
+
onEvent: function(event) {
|
|
46299
|
+
var _INTG_AD_ADM_FALLBACK_RID_MAP_params_options_adGroupId;
|
|
46300
|
+
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 : "";
|
|
46301
|
+
switch (event.type) {
|
|
46302
|
+
case "show":
|
|
46303
|
+
postEventTracking({
|
|
46304
|
+
eventName: "SHOW",
|
|
46305
|
+
spaceUnitId: params.options.adGroupId,
|
|
46306
|
+
requestId,
|
|
46307
|
+
responseId: "",
|
|
46308
|
+
mediationType: "ADMOB",
|
|
46309
|
+
format: "",
|
|
46310
|
+
adSourceName: "",
|
|
46311
|
+
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
46312
|
+
});
|
|
46313
|
+
break;
|
|
46314
|
+
case "failedToShow":
|
|
46315
|
+
postEventTracking({
|
|
46316
|
+
eventName: "FAILED_TO_SHOW",
|
|
46317
|
+
spaceUnitId: params.options.adGroupId,
|
|
46318
|
+
requestId,
|
|
46319
|
+
responseId: "",
|
|
46320
|
+
mediationType: "ADMOB",
|
|
46321
|
+
format: "",
|
|
46322
|
+
adSourceName: "",
|
|
46323
|
+
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
46324
|
+
});
|
|
46325
|
+
break;
|
|
46326
|
+
case "impression":
|
|
46327
|
+
postEventTracking({
|
|
46328
|
+
eventName: "IMP",
|
|
46329
|
+
spaceUnitId: params.options.adGroupId,
|
|
46330
|
+
requestId,
|
|
46331
|
+
responseId: "",
|
|
46332
|
+
mediationType: "ADMOB",
|
|
46333
|
+
format: "",
|
|
46334
|
+
adSourceName: "",
|
|
46335
|
+
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
46336
|
+
});
|
|
46337
|
+
break;
|
|
46338
|
+
case "clicked":
|
|
46339
|
+
postEventTracking({
|
|
46340
|
+
eventName: "CLICK",
|
|
46341
|
+
spaceUnitId: params.options.adGroupId,
|
|
46342
|
+
requestId,
|
|
46343
|
+
responseId: "",
|
|
46344
|
+
mediationType: "ADMOB",
|
|
46345
|
+
format: "",
|
|
46346
|
+
adSourceName: "",
|
|
46347
|
+
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
46348
|
+
});
|
|
46349
|
+
break;
|
|
46350
|
+
case "dismissed":
|
|
46351
|
+
postEventTracking({
|
|
46352
|
+
eventName: "DISMISS",
|
|
46353
|
+
spaceUnitId: params.options.adGroupId,
|
|
46354
|
+
requestId,
|
|
46355
|
+
responseId: "",
|
|
46356
|
+
mediationType: "ADMOB",
|
|
46357
|
+
format: "",
|
|
46358
|
+
adSourceName: "",
|
|
46359
|
+
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
46360
|
+
});
|
|
46361
|
+
break;
|
|
46362
|
+
case "userEarnedReward":
|
|
46363
|
+
postEventTracking({
|
|
46364
|
+
eventName: "USER_EARNED_REWARD",
|
|
46365
|
+
spaceUnitId: params.options.adGroupId,
|
|
46366
|
+
requestId,
|
|
46367
|
+
responseId: "",
|
|
46368
|
+
mediationType: "ADMOB",
|
|
46369
|
+
format: "",
|
|
46370
|
+
adSourceName: "",
|
|
46371
|
+
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
46372
|
+
});
|
|
46373
|
+
break;
|
|
46374
|
+
}
|
|
46375
|
+
return params.onEvent(event);
|
|
46376
|
+
},
|
|
46377
|
+
onError: function(error) {
|
|
46378
|
+
var _INTG_AD_ADM_FALLBACK_RID_MAP_params_options_adGroupId;
|
|
46379
|
+
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 : "";
|
|
46380
|
+
postEventTracking({
|
|
46381
|
+
eventName: "FAILED_TO_SHOW",
|
|
46382
|
+
spaceUnitId: params.options.adGroupId,
|
|
46383
|
+
requestId,
|
|
46384
|
+
responseId: "",
|
|
46385
|
+
mediationType: "ADMOB",
|
|
46386
|
+
format: "",
|
|
46387
|
+
adSourceName: "",
|
|
46388
|
+
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
46389
|
+
});
|
|
46390
|
+
return params.onError(error);
|
|
46391
|
+
}
|
|
46392
|
+
}));
|
|
46393
|
+
}
|
|
46394
|
+
var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
|
|
46395
|
+
var adGroupId = options.adGroupId;
|
|
46396
|
+
var referrer2 = getReferrer3();
|
|
46397
|
+
var unregisterCallbacks = INTERNAL__appBridgeHandler.invokeAppBridgeMethod("showTossAdOrAdmob", {
|
|
46398
|
+
spaceUnitId: adGroupId,
|
|
46399
|
+
referrer: referrer2,
|
|
46400
|
+
sessionId
|
|
46401
|
+
}, {
|
|
46402
|
+
onAdClicked: function() {
|
|
46403
|
+
onEvent({
|
|
46404
|
+
type: "clicked"
|
|
46405
|
+
});
|
|
46406
|
+
},
|
|
46407
|
+
onAdDismissed: function() {
|
|
46408
|
+
onEvent({
|
|
46409
|
+
type: "dismissed"
|
|
46410
|
+
});
|
|
46411
|
+
},
|
|
46412
|
+
onAdFailedToShow: function() {
|
|
46413
|
+
onEvent({
|
|
46414
|
+
type: "failedToShow"
|
|
46415
|
+
});
|
|
46416
|
+
},
|
|
46417
|
+
onAdImpression: function() {
|
|
46418
|
+
onEvent({
|
|
46419
|
+
type: "impression"
|
|
46420
|
+
});
|
|
46421
|
+
},
|
|
46422
|
+
onAdShow: function() {
|
|
46423
|
+
onEvent({
|
|
46424
|
+
type: "show"
|
|
46425
|
+
});
|
|
46426
|
+
},
|
|
46427
|
+
onUserEarnedReward: function(data) {
|
|
46428
|
+
onEvent({
|
|
46429
|
+
type: "userEarnedReward",
|
|
46430
|
+
data
|
|
46431
|
+
});
|
|
46432
|
+
},
|
|
46433
|
+
onSuccess: function() {
|
|
46434
|
+
onEvent({
|
|
46435
|
+
type: "requested"
|
|
46436
|
+
});
|
|
46437
|
+
},
|
|
46438
|
+
onError: function(error) {
|
|
46439
|
+
onError2(error);
|
|
46440
|
+
}
|
|
46441
|
+
});
|
|
46442
|
+
return unregisterCallbacks;
|
|
46443
|
+
}
|
|
46444
|
+
function tossAdEventLog(params) {
|
|
46445
|
+
return _tossAdEventLog.apply(this, arguments);
|
|
46446
|
+
}
|
|
46447
|
+
function _tossAdEventLog() {
|
|
46448
|
+
_tossAdEventLog = _async_to_generator(function(params) {
|
|
46449
|
+
var referrer2, appName, eventLogParams;
|
|
46450
|
+
return __generator(this, function(_state) {
|
|
46451
|
+
referrer2 = getReferrer3();
|
|
46452
|
+
appName = Granite.appName;
|
|
46453
|
+
eventLogParams = _object_spread_props(_object_spread({}, params), {
|
|
46454
|
+
params: _object_spread_props(_object_spread({}, params.params), {
|
|
46455
|
+
referrer: referrer2,
|
|
46456
|
+
app_name: appName
|
|
46457
|
+
})
|
|
46458
|
+
});
|
|
46459
|
+
return [
|
|
46460
|
+
2,
|
|
46461
|
+
INTERNAL__module.tossCoreEventLog(eventLogParams)
|
|
46462
|
+
];
|
|
46463
|
+
});
|
|
46464
|
+
});
|
|
46465
|
+
return _tossAdEventLog.apply(this, arguments);
|
|
46466
|
+
}
|
|
46145
46467
|
function serializeError(error) {
|
|
46146
46468
|
return JSON.stringify(error, function(_16, value) {
|
|
46147
46469
|
if (_instanceof1(value, Error)) {
|
|
@@ -46696,7 +47018,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46696
47018
|
var batteryModePreference = param.batteryModePreference, colorPreference = param.colorPreference, locale = param.locale, navbarPreference = param.navbarPreference, pureSafeArea = param.pureSafeArea, safeArea = param.safeArea, safeAreaBottomTransparency = param.safeAreaBottomTransparency;
|
|
46697
47019
|
var platform = getPlatformOS();
|
|
46698
47020
|
var appVersion = getTossAppVersion();
|
|
46699
|
-
var fontScale = (0,
|
|
47021
|
+
var fontScale = (0, import_react_native230.useWindowDimensions)().fontScale;
|
|
46700
47022
|
var platformString = platform === "ios" ? "iPhone" : "Android phone";
|
|
46701
47023
|
var fontA11y = mapFontScaleToCategory(fontScale, platform);
|
|
46702
47024
|
var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
|
|
@@ -46826,6 +47148,11 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46826
47148
|
/** AdMobV2 */
|
|
46827
47149
|
loadAppsInTossAdMob: GoogleAdMob.loadAppsInTossAdMob,
|
|
46828
47150
|
showAppsInTossAdMob: GoogleAdMob.showAppsInTossAdMob,
|
|
47151
|
+
/** IntegratedAd */
|
|
47152
|
+
loadFullScreenAd: loadFullScreenAdForWeb,
|
|
47153
|
+
showFullScreenAd,
|
|
47154
|
+
/** TossAd */
|
|
47155
|
+
fetchTossAd,
|
|
46829
47156
|
/** IAP */
|
|
46830
47157
|
iapCreateOneTimePurchaseOrder: IAP.createOneTimePurchaseOrder,
|
|
46831
47158
|
requestOneTimePurchase
|
|
@@ -46860,6 +47187,11 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46860
47187
|
/** AdMobV2 */
|
|
46861
47188
|
loadAppsInTossAdMob_isSupported: GoogleAdMob.loadAppsInTossAdMob.isSupported,
|
|
46862
47189
|
showAppsInTossAdMob_isSupported: GoogleAdMob.showAppsInTossAdMob.isSupported,
|
|
47190
|
+
/** IntegratedAd */
|
|
47191
|
+
loadFullScreenAd_isSupported: loadFullScreenAdForWeb.isSupported,
|
|
47192
|
+
showFullScreenAd_isSupported: showFullScreenAd.isSupported,
|
|
47193
|
+
/** TossAd */
|
|
47194
|
+
fetchTossAd_isSupported: fetchTossAd.isSupported,
|
|
46863
47195
|
/** env */
|
|
46864
47196
|
getDeploymentId: env.getDeploymentId
|
|
46865
47197
|
}),
|
|
@@ -46910,7 +47242,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46910
47242
|
processProductGrant,
|
|
46911
47243
|
getPendingOrders: IAP.getPendingOrders,
|
|
46912
47244
|
getCompletedOrRefundedOrders: IAP.getCompletedOrRefundedOrders,
|
|
46913
|
-
completeProductGrant: IAP.completeProductGrant
|
|
47245
|
+
completeProductGrant: IAP.completeProductGrant,
|
|
47246
|
+
/** Toss Ads */
|
|
47247
|
+
tossAdEventLog
|
|
46914
47248
|
})
|
|
46915
47249
|
});
|
|
46916
47250
|
var headerPropForExternalWebView = (0, import_react226.useMemo)(function() {
|
|
@@ -47026,7 +47360,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47026
47360
|
return typeof script === "string";
|
|
47027
47361
|
}).join("\n");
|
|
47028
47362
|
}
|
|
47029
|
-
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,
|
|
47363
|
+
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;
|
|
47030
47364
|
var init_dist8 = __esm({
|
|
47031
47365
|
"../../.yarn/__virtual__/@apps-in-toss-framework-virtual-574b136add/1/apps-in-toss-packages/framework/dist/index.js"() {
|
|
47032
47366
|
"use strict";
|
|
@@ -47165,6 +47499,13 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47165
47499
|
import_react230 = __toESM(require_react(), 1);
|
|
47166
47500
|
import_jsx_runtime232 = __toESM(require_jsx_runtime(), 1);
|
|
47167
47501
|
import_jsx_runtime233 = __toESM(require_jsx_runtime(), 1);
|
|
47502
|
+
init_dist6();
|
|
47503
|
+
init_dist6();
|
|
47504
|
+
init_src3();
|
|
47505
|
+
init_dist6();
|
|
47506
|
+
init_src3();
|
|
47507
|
+
init_dist6();
|
|
47508
|
+
init_src3();
|
|
47168
47509
|
import_react231 = __toESM(require_react(), 1);
|
|
47169
47510
|
init_react_native_safe_area_context();
|
|
47170
47511
|
import_react232 = __toESM(require_react(), 1);
|
|
@@ -47174,7 +47515,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47174
47515
|
import_react233 = __toESM(require_react(), 1);
|
|
47175
47516
|
import_react234 = __toESM(require_react(), 1);
|
|
47176
47517
|
init_dist6();
|
|
47177
|
-
|
|
47518
|
+
import_react_native230 = __toESM(require_react_native(), 1);
|
|
47178
47519
|
init_dist6();
|
|
47179
47520
|
import_react235 = __toESM(require_react(), 1);
|
|
47180
47521
|
import_react236 = __toESM(require_react(), 1);
|
|
@@ -47772,6 +48113,33 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47772
48113
|
]
|
|
47773
48114
|
});
|
|
47774
48115
|
});
|
|
48116
|
+
sessionId = generateSessionId();
|
|
48117
|
+
ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION = "5.241.0";
|
|
48118
|
+
IOS_FETCH_TOSS_AD_SUPPORTED_VERSION = "5.241.0";
|
|
48119
|
+
UNSUPPORTED_ERROR_MESSAGE5 = "This feature is not supported in the current environment";
|
|
48120
|
+
ENVIRONMENT5 = getOperationalEnvironment();
|
|
48121
|
+
fetchTossAd.isSupported = function() {
|
|
48122
|
+
if (ENVIRONMENT5 !== "toss") {
|
|
48123
|
+
return false;
|
|
48124
|
+
}
|
|
48125
|
+
return isMinVersionSupported({
|
|
48126
|
+
android: ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION,
|
|
48127
|
+
ios: IOS_FETCH_TOSS_AD_SUPPORTED_VERSION
|
|
48128
|
+
});
|
|
48129
|
+
};
|
|
48130
|
+
OPERATIONAL_ENVIRONMENT = getOperationalEnvironment();
|
|
48131
|
+
OS = getPlatformOS();
|
|
48132
|
+
APP_VER = getTossAppVersion();
|
|
48133
|
+
ALPHA_EVENT_TRACKER_HTTP_ENDPOINT = "https://alpha-trillion.toss.im/trk/sdk-mediation/event";
|
|
48134
|
+
LIVE_EVENT_TRACKER_HTTP_ENDPOINT = "https://trillion.toss.im/trk/sdk-mediation/event";
|
|
48135
|
+
INTEGRATED_AD_SDK_VERSION = "0.0.0";
|
|
48136
|
+
ANDROID_INTEGRATED_AD_SUPPORTED_VERSION = "5.241.0";
|
|
48137
|
+
IOS_INTEGRATED_AD_SUPPORTED_VERSION = "5.241.0";
|
|
48138
|
+
UNSUPPORTED_ERROR_MESSAGE22 = "This feature is not supported in the current environment";
|
|
48139
|
+
INTG_AD_ADM_FALLBACK_RID_MAP = {};
|
|
48140
|
+
loadFullScreenAd = generateLoadFullScreenAd("107");
|
|
48141
|
+
loadFullScreenAdForWeb = generateLoadFullScreenAd("107");
|
|
48142
|
+
showFullScreenAd.isSupported = GoogleAdMob.showAppsInTossAdMob.isSupported;
|
|
47775
48143
|
globalEventListenerMap = /* @__PURE__ */ new Map();
|
|
47776
48144
|
EventEmitter = /* @__PURE__ */ function() {
|
|
47777
48145
|
"use strict";
|
|
@@ -47878,7 +48246,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47878
48246
|
};
|
|
47879
48247
|
}
|
|
47880
48248
|
};
|
|
47881
|
-
|
|
48249
|
+
getReferrer22 = function() {
|
|
47882
48250
|
try {
|
|
47883
48251
|
var referrer2 = new URL(getSchemeUri());
|
|
47884
48252
|
return referrer2.searchParams.get("referrer");
|
|
@@ -47893,7 +48261,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47893
48261
|
log_name: "".concat(groupId, "::screen"),
|
|
47894
48262
|
params: {
|
|
47895
48263
|
search,
|
|
47896
|
-
referrer:
|
|
48264
|
+
referrer: getReferrer22(),
|
|
47897
48265
|
deployment_id: env.getDeploymentId(),
|
|
47898
48266
|
deployment_timestamp: extractDateFromUUIDv7(env.getDeploymentId()).getTime()
|
|
47899
48267
|
}
|
|
@@ -47928,7 +48296,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47928
48296
|
}
|
|
47929
48297
|
});
|
|
47930
48298
|
function Index() {
|
|
47931
|
-
return /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
|
|
48299
|
+
return /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(import_react_native232.View, {
|
|
47932
48300
|
style: {
|
|
47933
48301
|
flex: 1
|
|
47934
48302
|
},
|
|
@@ -47950,13 +48318,13 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47950
48318
|
})
|
|
47951
48319
|
});
|
|
47952
48320
|
}
|
|
47953
|
-
var import_jsx_runtime235,
|
|
48321
|
+
var import_jsx_runtime235, import_react_native232;
|
|
47954
48322
|
var init_pages = __esm({
|
|
47955
48323
|
"react-native/pages/index.tsx"() {
|
|
47956
48324
|
"use strict";
|
|
47957
48325
|
import_jsx_runtime235 = __toESM(require_jsx_runtime(), 1);
|
|
47958
48326
|
init_dist8();
|
|
47959
|
-
|
|
48327
|
+
import_react_native232 = __toESM(require_react_native(), 1);
|
|
47960
48328
|
}
|
|
47961
48329
|
});
|
|
47962
48330
|
|
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.1765960737704",
|
|
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.1765960737704",
|
|
91
|
+
"@apps-in-toss/cli": "0.0.0-dev.1765960737704",
|
|
92
|
+
"@apps-in-toss/framework": "0.0.0-dev.1765960737704",
|
|
93
|
+
"@apps-in-toss/plugins": "0.0.0-dev.1765960737704",
|
|
94
|
+
"@apps-in-toss/web-analytics": "0.0.0-dev.1765960737704",
|
|
95
|
+
"@apps-in-toss/web-bridge": "0.0.0-dev.1765960737704",
|
|
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": "12222aa947cc7ba1fa1205b4e26ab0f1d7a8564e"
|
|
108
108
|
}
|