@apps-in-toss/web-framework 0.0.28 → 0.0.29
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/config/index.d.ts +5 -0
- package/dist/config/index.js +1 -0
- package/dist/prebuilt/dev.android.js +181 -27
- package/dist/prebuilt/dev.ios.js +181 -27
- package/dist/prebuilt/prod.android.js +147 -5
- package/dist/prebuilt/prod.ios.js +147 -5
- package/dist/prebuilt/prod.json +4 -4
- package/package.json +8 -8
|
@@ -37248,6 +37248,40 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
37248
37248
|
});
|
|
37249
37249
|
return _setDeviceOrientation.apply(this, arguments);
|
|
37250
37250
|
}
|
|
37251
|
+
function saveBase64Data(params) {
|
|
37252
|
+
return _saveBase64Data.apply(this, arguments);
|
|
37253
|
+
}
|
|
37254
|
+
function _saveBase64Data() {
|
|
37255
|
+
_saveBase64Data = // src/native-modules/saveBase64Data.ts
|
|
37256
|
+
_async_to_generator(function(params) {
|
|
37257
|
+
var isSupported;
|
|
37258
|
+
return __generator(this, function(_state) {
|
|
37259
|
+
switch (_state.label) {
|
|
37260
|
+
case 0:
|
|
37261
|
+
isSupported = isMinVersionSupported({
|
|
37262
|
+
android: "5.218.0",
|
|
37263
|
+
ios: "5.216.0"
|
|
37264
|
+
});
|
|
37265
|
+
if (!isSupported) {
|
|
37266
|
+
console.warn("saveBase64Data is not supported in this app version");
|
|
37267
|
+
return [
|
|
37268
|
+
2
|
|
37269
|
+
];
|
|
37270
|
+
}
|
|
37271
|
+
return [
|
|
37272
|
+
4,
|
|
37273
|
+
AppsInTossModule.saveBase64Data(params)
|
|
37274
|
+
];
|
|
37275
|
+
case 1:
|
|
37276
|
+
_state.sent();
|
|
37277
|
+
return [
|
|
37278
|
+
2
|
|
37279
|
+
];
|
|
37280
|
+
}
|
|
37281
|
+
});
|
|
37282
|
+
});
|
|
37283
|
+
return _saveBase64Data.apply(this, arguments);
|
|
37284
|
+
}
|
|
37251
37285
|
function AppsInTossContainer(Container, _param) {
|
|
37252
37286
|
var children = _param.children, initialProps = _object_without_properties(_param, [
|
|
37253
37287
|
"children"
|
|
@@ -37436,7 +37470,6 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
37436
37470
|
function createIsSupported() {
|
|
37437
37471
|
return function() {
|
|
37438
37472
|
if (ENVIRONMENT !== "toss") {
|
|
37439
|
-
console.warn("Google AdMob is not supported in the current environment");
|
|
37440
37473
|
return false;
|
|
37441
37474
|
}
|
|
37442
37475
|
return isMinVersionSupported({
|
|
@@ -37470,6 +37503,55 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
37470
37503
|
function clearItems() {
|
|
37471
37504
|
return AppsInTossModule.clearStorage({});
|
|
37472
37505
|
}
|
|
37506
|
+
function createOneTimePurchaseOrder(params) {
|
|
37507
|
+
return _createOneTimePurchaseOrder.apply(this, arguments);
|
|
37508
|
+
}
|
|
37509
|
+
function _createOneTimePurchaseOrder() {
|
|
37510
|
+
_createOneTimePurchaseOrder = // src/native-modules/iap.ts
|
|
37511
|
+
_async_to_generator(function(params) {
|
|
37512
|
+
var isSupported;
|
|
37513
|
+
return __generator(this, function(_state) {
|
|
37514
|
+
isSupported = isMinVersionSupported({
|
|
37515
|
+
android: "5.219.0",
|
|
37516
|
+
ios: "5.219.0"
|
|
37517
|
+
});
|
|
37518
|
+
if (!isSupported) {
|
|
37519
|
+
return [
|
|
37520
|
+
2
|
|
37521
|
+
];
|
|
37522
|
+
}
|
|
37523
|
+
return [
|
|
37524
|
+
2,
|
|
37525
|
+
AppsInTossModule.iapCreateOneTimePurchaseOrder(params)
|
|
37526
|
+
];
|
|
37527
|
+
});
|
|
37528
|
+
});
|
|
37529
|
+
return _createOneTimePurchaseOrder.apply(this, arguments);
|
|
37530
|
+
}
|
|
37531
|
+
function getProductItemList() {
|
|
37532
|
+
return _getProductItemList.apply(this, arguments);
|
|
37533
|
+
}
|
|
37534
|
+
function _getProductItemList() {
|
|
37535
|
+
_getProductItemList = _async_to_generator(function() {
|
|
37536
|
+
var isSupported;
|
|
37537
|
+
return __generator(this, function(_state) {
|
|
37538
|
+
isSupported = isMinVersionSupported({
|
|
37539
|
+
android: "5.219.0",
|
|
37540
|
+
ios: "5.219.0"
|
|
37541
|
+
});
|
|
37542
|
+
if (!isSupported) {
|
|
37543
|
+
return [
|
|
37544
|
+
2
|
|
37545
|
+
];
|
|
37546
|
+
}
|
|
37547
|
+
return [
|
|
37548
|
+
2,
|
|
37549
|
+
AppsInTossModule.iapGetProductItemList({})
|
|
37550
|
+
];
|
|
37551
|
+
});
|
|
37552
|
+
});
|
|
37553
|
+
return _getProductItemList.apply(this, arguments);
|
|
37554
|
+
}
|
|
37473
37555
|
function byPlatform2(_param) {
|
|
37474
37556
|
var props = _extends({}, _object_destructuring_empty(_param));
|
|
37475
37557
|
var _props_Platform2_OS;
|
|
@@ -37824,7 +37906,10 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
37824
37906
|
getStorageItem: Storage.getItem,
|
|
37825
37907
|
setStorageItem: Storage.setItem,
|
|
37826
37908
|
removeStorageItem: Storage.removeItem,
|
|
37827
|
-
clearItems: Storage.clearItems
|
|
37909
|
+
clearItems: Storage.clearItems,
|
|
37910
|
+
/** IAP */
|
|
37911
|
+
iapCreateOneTimePurchaseOrder: IAP.createOneTimePurchaseOrder,
|
|
37912
|
+
iapGetProductItemList: IAP.getProductItemList
|
|
37828
37913
|
})
|
|
37829
37914
|
});
|
|
37830
37915
|
var baseProps = (0, import_react149.useMemo)(function() {
|
|
@@ -37884,7 +37969,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
37884
37969
|
}
|
|
37885
37970
|
return value;
|
|
37886
37971
|
}
|
|
37887
|
-
var import_react146, import_react_native128, import_react_native129, import_react_native130, import_react147, import_react148, import_react_native132, import_jsx_runtime177, import_react149, import_react150, import_react_native135, import_react_native137, import_react_native138, import_react_native139, import_jsx_runtime178, import_react_native140, import_jsx_runtime179, import_jsx_runtime180, import_react151, import_jsx_runtime181, import_react152, __defProp2, __export2, env, AppsInTossModuleInstance, AppsInTossModule, SEMVER_REGEX, isWildcard, tryParse, coerceTypes, compareValues, parseVersion, compareSegments, compareVersions, TossCoreModule, ENTRY_APP_EVENT_SCHEMA_ID, AppEvent, EntryMessageExitedEvent, nativeEventEmitter2, UpdateLocationEvent, INTERNAL__callbacks, INTERNAL__appBridgeHandler, UNSAFE__nativeEventEmitter, AppBridgeCallbackEvent, appsInTossEvent, async_bridges_exports2, DEFAULT_MAX_COUNT, DEFAULT_MAX_WIDTH, AppsInToss, ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION, IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION, UNSUPPORTED_ERROR_MESSAGE, ENVIRONMENT, Storage, GoogleAdMob, RIGHT_MARGIN2, IOS_DEFAULT_MARGIN2, styles31, originXML, GameWebView, globalEventListenerMap, constant_bridges_exports2, event_bridges_exports, extractDateFromUUIDv7, getGroupId, getReferrer, trackScreen, appsInTossGlobals, operationalEnvironment, TYPES, WEBVIEW_TYPES, Analytics2;
|
|
37972
|
+
var import_react146, import_react_native128, import_react_native129, import_react_native130, import_react147, import_react148, import_react_native132, import_jsx_runtime177, import_react149, import_react150, import_react_native135, import_react_native137, import_react_native138, import_react_native139, import_jsx_runtime178, import_react_native140, import_jsx_runtime179, import_jsx_runtime180, import_react151, import_jsx_runtime181, import_react152, __defProp2, __export2, env, AppsInTossModuleInstance, AppsInTossModule, SEMVER_REGEX, isWildcard, tryParse, coerceTypes, compareValues, parseVersion, compareSegments, compareVersions, TossCoreModule, ENTRY_APP_EVENT_SCHEMA_ID, AppEvent, EntryMessageExitedEvent, nativeEventEmitter2, UpdateLocationEvent, INTERNAL__callbacks, INTERNAL__appBridgeHandler, UNSAFE__nativeEventEmitter, AppBridgeCallbackEvent, VisibilityChangedByTransparentServiceWebEvent, appsInTossEvent, async_bridges_exports2, DEFAULT_MAX_COUNT, DEFAULT_MAX_WIDTH, AppsInToss, ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION, IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION, UNSUPPORTED_ERROR_MESSAGE, ENVIRONMENT, Storage, IAP, GoogleAdMob, RIGHT_MARGIN2, IOS_DEFAULT_MARGIN2, styles31, originXML, GameWebView, globalEventListenerMap, constant_bridges_exports2, event_bridges_exports, extractDateFromUUIDv7, getGroupId, getReferrer, trackScreen, appsInTossGlobals, operationalEnvironment, TYPES, WEBVIEW_TYPES, Analytics2;
|
|
37888
37973
|
var init_dist4 = __esm({
|
|
37889
37974
|
"../../.yarn/__virtual__/@apps-in-toss-framework-virtual-574b136add/1/apps-in-toss-packages/framework/dist/index.js"() {
|
|
37890
37975
|
"use strict";
|
|
@@ -37921,6 +38006,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
37921
38006
|
init_src4();
|
|
37922
38007
|
import_react_native132 = __toESM(require_react_native(), 1);
|
|
37923
38008
|
init_src4();
|
|
38009
|
+
init_src4();
|
|
37924
38010
|
import_jsx_runtime177 = __toESM(require_jsx_runtime(), 1);
|
|
37925
38011
|
init_esm8();
|
|
37926
38012
|
init_private2();
|
|
@@ -38189,10 +38275,58 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38189
38275
|
]);
|
|
38190
38276
|
return _AppBridgeCallbackEvent;
|
|
38191
38277
|
}(BedrockEventDefinition);
|
|
38278
|
+
VisibilityChangedByTransparentServiceWebEvent = /* @__PURE__ */ function(BedrockEventDefinition4) {
|
|
38279
|
+
"use strict";
|
|
38280
|
+
_inherits(VisibilityChangedByTransparentServiceWebEvent2, BedrockEventDefinition4);
|
|
38281
|
+
var _super = _create_super(VisibilityChangedByTransparentServiceWebEvent2);
|
|
38282
|
+
function VisibilityChangedByTransparentServiceWebEvent2() {
|
|
38283
|
+
_class_call_check(this, VisibilityChangedByTransparentServiceWebEvent2);
|
|
38284
|
+
var _this;
|
|
38285
|
+
_this = _super.apply(this, arguments);
|
|
38286
|
+
_this.name = "onVisibilityChangedByTransparentServiceWeb";
|
|
38287
|
+
_this.subscription = null;
|
|
38288
|
+
return _this;
|
|
38289
|
+
}
|
|
38290
|
+
_create_class(VisibilityChangedByTransparentServiceWebEvent2, [
|
|
38291
|
+
{
|
|
38292
|
+
key: "remove",
|
|
38293
|
+
value: function remove() {
|
|
38294
|
+
var _this_subscription;
|
|
38295
|
+
(_this_subscription = this.subscription) === null || _this_subscription === void 0 ? void 0 : _this_subscription.remove();
|
|
38296
|
+
this.subscription = null;
|
|
38297
|
+
}
|
|
38298
|
+
},
|
|
38299
|
+
{
|
|
38300
|
+
key: "listener",
|
|
38301
|
+
value: function listener(options, onEvent, onError) {
|
|
38302
|
+
var _this = this;
|
|
38303
|
+
var subscription = nativeEventEmitter2.addListener("visibilityChangedByTransparentServiceWeb", function(params) {
|
|
38304
|
+
if (_this.isVisibilityChangedByTransparentServiceWebResult(params)) {
|
|
38305
|
+
if (params.callbackId === options.callbackId) {
|
|
38306
|
+
onEvent(params.isVisible);
|
|
38307
|
+
}
|
|
38308
|
+
} else {
|
|
38309
|
+
onError(new Error("Invalid visibility changed by transparent service web result"));
|
|
38310
|
+
}
|
|
38311
|
+
});
|
|
38312
|
+
this.subscription = subscription;
|
|
38313
|
+
}
|
|
38314
|
+
},
|
|
38315
|
+
{
|
|
38316
|
+
key: "isVisibilityChangedByTransparentServiceWebResult",
|
|
38317
|
+
value: function isVisibilityChangedByTransparentServiceWebResult(params) {
|
|
38318
|
+
return (typeof params === "undefined" ? "undefined" : _type_of(params)) === "object" && typeof params.callbackId === "string" && typeof params.isVisible === "boolean";
|
|
38319
|
+
}
|
|
38320
|
+
}
|
|
38321
|
+
]);
|
|
38322
|
+
return VisibilityChangedByTransparentServiceWebEvent2;
|
|
38323
|
+
}(BedrockEventDefinition);
|
|
38192
38324
|
appsInTossEvent = new BedrockEvent([
|
|
38193
|
-
new AppBridgeCallbackEvent(),
|
|
38194
38325
|
new UpdateLocationEvent(),
|
|
38195
|
-
new EntryMessageExitedEvent()
|
|
38326
|
+
new EntryMessageExitedEvent(),
|
|
38327
|
+
// Internal events
|
|
38328
|
+
new AppBridgeCallbackEvent(),
|
|
38329
|
+
new VisibilityChangedByTransparentServiceWebEvent()
|
|
38196
38330
|
]);
|
|
38197
38331
|
async_bridges_exports2 = {};
|
|
38198
38332
|
__export2(async_bridges_exports2, {
|
|
@@ -38223,6 +38357,9 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38223
38357
|
openCamera: function() {
|
|
38224
38358
|
return openCamera;
|
|
38225
38359
|
},
|
|
38360
|
+
saveBase64Data: function() {
|
|
38361
|
+
return saveBase64Data;
|
|
38362
|
+
},
|
|
38226
38363
|
setClipboardText: function() {
|
|
38227
38364
|
return setClipboardText;
|
|
38228
38365
|
},
|
|
@@ -38249,6 +38386,10 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38249
38386
|
removeItem,
|
|
38250
38387
|
clearItems
|
|
38251
38388
|
};
|
|
38389
|
+
IAP = {
|
|
38390
|
+
createOneTimePurchaseOrder,
|
|
38391
|
+
getProductItemList
|
|
38392
|
+
};
|
|
38252
38393
|
GoogleAdMob = {
|
|
38253
38394
|
loadAdMobInterstitialAd,
|
|
38254
38395
|
showAdMobInterstitialAd,
|
|
@@ -38444,6 +38585,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38444
38585
|
port: Ait.webPort,
|
|
38445
38586
|
host: Ait.webHost
|
|
38446
38587
|
},
|
|
38588
|
+
allowsBackForwardNavigationGestures: Ait.allowsBackForwardNavigationGestures,
|
|
38447
38589
|
mediaPlaybackRequiresUserAction: Ait.mediaPlaybackRequiresUserAction,
|
|
38448
38590
|
allowsInlineMediaPlayback: Ait.allowsInlineMediaPlayback,
|
|
38449
38591
|
bounces: Ait.bounces,
|
|
@@ -37303,6 +37303,40 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
37303
37303
|
});
|
|
37304
37304
|
return _setDeviceOrientation.apply(this, arguments);
|
|
37305
37305
|
}
|
|
37306
|
+
function saveBase64Data(params) {
|
|
37307
|
+
return _saveBase64Data.apply(this, arguments);
|
|
37308
|
+
}
|
|
37309
|
+
function _saveBase64Data() {
|
|
37310
|
+
_saveBase64Data = // src/native-modules/saveBase64Data.ts
|
|
37311
|
+
_async_to_generator(function(params) {
|
|
37312
|
+
var isSupported;
|
|
37313
|
+
return __generator(this, function(_state) {
|
|
37314
|
+
switch (_state.label) {
|
|
37315
|
+
case 0:
|
|
37316
|
+
isSupported = isMinVersionSupported({
|
|
37317
|
+
android: "5.218.0",
|
|
37318
|
+
ios: "5.216.0"
|
|
37319
|
+
});
|
|
37320
|
+
if (!isSupported) {
|
|
37321
|
+
console.warn("saveBase64Data is not supported in this app version");
|
|
37322
|
+
return [
|
|
37323
|
+
2
|
|
37324
|
+
];
|
|
37325
|
+
}
|
|
37326
|
+
return [
|
|
37327
|
+
4,
|
|
37328
|
+
AppsInTossModule.saveBase64Data(params)
|
|
37329
|
+
];
|
|
37330
|
+
case 1:
|
|
37331
|
+
_state.sent();
|
|
37332
|
+
return [
|
|
37333
|
+
2
|
|
37334
|
+
];
|
|
37335
|
+
}
|
|
37336
|
+
});
|
|
37337
|
+
});
|
|
37338
|
+
return _saveBase64Data.apply(this, arguments);
|
|
37339
|
+
}
|
|
37306
37340
|
function AppsInTossContainer(Container, _param) {
|
|
37307
37341
|
var children = _param.children, initialProps = _object_without_properties(_param, [
|
|
37308
37342
|
"children"
|
|
@@ -37491,7 +37525,6 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
37491
37525
|
function createIsSupported() {
|
|
37492
37526
|
return function() {
|
|
37493
37527
|
if (ENVIRONMENT !== "toss") {
|
|
37494
|
-
console.warn("Google AdMob is not supported in the current environment");
|
|
37495
37528
|
return false;
|
|
37496
37529
|
}
|
|
37497
37530
|
return isMinVersionSupported({
|
|
@@ -37525,6 +37558,55 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
37525
37558
|
function clearItems() {
|
|
37526
37559
|
return AppsInTossModule.clearStorage({});
|
|
37527
37560
|
}
|
|
37561
|
+
function createOneTimePurchaseOrder(params) {
|
|
37562
|
+
return _createOneTimePurchaseOrder.apply(this, arguments);
|
|
37563
|
+
}
|
|
37564
|
+
function _createOneTimePurchaseOrder() {
|
|
37565
|
+
_createOneTimePurchaseOrder = // src/native-modules/iap.ts
|
|
37566
|
+
_async_to_generator(function(params) {
|
|
37567
|
+
var isSupported;
|
|
37568
|
+
return __generator(this, function(_state) {
|
|
37569
|
+
isSupported = isMinVersionSupported({
|
|
37570
|
+
android: "5.219.0",
|
|
37571
|
+
ios: "5.219.0"
|
|
37572
|
+
});
|
|
37573
|
+
if (!isSupported) {
|
|
37574
|
+
return [
|
|
37575
|
+
2
|
|
37576
|
+
];
|
|
37577
|
+
}
|
|
37578
|
+
return [
|
|
37579
|
+
2,
|
|
37580
|
+
AppsInTossModule.iapCreateOneTimePurchaseOrder(params)
|
|
37581
|
+
];
|
|
37582
|
+
});
|
|
37583
|
+
});
|
|
37584
|
+
return _createOneTimePurchaseOrder.apply(this, arguments);
|
|
37585
|
+
}
|
|
37586
|
+
function getProductItemList() {
|
|
37587
|
+
return _getProductItemList.apply(this, arguments);
|
|
37588
|
+
}
|
|
37589
|
+
function _getProductItemList() {
|
|
37590
|
+
_getProductItemList = _async_to_generator(function() {
|
|
37591
|
+
var isSupported;
|
|
37592
|
+
return __generator(this, function(_state) {
|
|
37593
|
+
isSupported = isMinVersionSupported({
|
|
37594
|
+
android: "5.219.0",
|
|
37595
|
+
ios: "5.219.0"
|
|
37596
|
+
});
|
|
37597
|
+
if (!isSupported) {
|
|
37598
|
+
return [
|
|
37599
|
+
2
|
|
37600
|
+
];
|
|
37601
|
+
}
|
|
37602
|
+
return [
|
|
37603
|
+
2,
|
|
37604
|
+
AppsInTossModule.iapGetProductItemList({})
|
|
37605
|
+
];
|
|
37606
|
+
});
|
|
37607
|
+
});
|
|
37608
|
+
return _getProductItemList.apply(this, arguments);
|
|
37609
|
+
}
|
|
37528
37610
|
function byPlatform2(_param) {
|
|
37529
37611
|
var props = _extends({}, _object_destructuring_empty(_param));
|
|
37530
37612
|
var _props_Platform2_OS;
|
|
@@ -37879,7 +37961,10 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
37879
37961
|
getStorageItem: Storage.getItem,
|
|
37880
37962
|
setStorageItem: Storage.setItem,
|
|
37881
37963
|
removeStorageItem: Storage.removeItem,
|
|
37882
|
-
clearItems: Storage.clearItems
|
|
37964
|
+
clearItems: Storage.clearItems,
|
|
37965
|
+
/** IAP */
|
|
37966
|
+
iapCreateOneTimePurchaseOrder: IAP.createOneTimePurchaseOrder,
|
|
37967
|
+
iapGetProductItemList: IAP.getProductItemList
|
|
37883
37968
|
})
|
|
37884
37969
|
});
|
|
37885
37970
|
var baseProps = (0, import_react149.useMemo)(function() {
|
|
@@ -37939,7 +38024,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
37939
38024
|
}
|
|
37940
38025
|
return value;
|
|
37941
38026
|
}
|
|
37942
|
-
var import_react146, import_react_native129, import_react_native130, import_react_native131, import_react147, import_react148, import_react_native133, import_jsx_runtime176, import_react149, import_react150, import_react_native136, import_react_native138, import_react_native139, import_react_native140, import_jsx_runtime177, import_react_native141, import_jsx_runtime178, import_jsx_runtime179, import_react151, import_jsx_runtime180, import_react152, __defProp2, __export2, env, AppsInTossModuleInstance, AppsInTossModule, SEMVER_REGEX, isWildcard, tryParse, coerceTypes, compareValues, parseVersion, compareSegments, compareVersions, TossCoreModule, ENTRY_APP_EVENT_SCHEMA_ID, AppEvent, EntryMessageExitedEvent, nativeEventEmitter2, UpdateLocationEvent, INTERNAL__callbacks, INTERNAL__appBridgeHandler, UNSAFE__nativeEventEmitter, AppBridgeCallbackEvent, appsInTossEvent, async_bridges_exports2, DEFAULT_MAX_COUNT, DEFAULT_MAX_WIDTH, AppsInToss, ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION, IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION, UNSUPPORTED_ERROR_MESSAGE, ENVIRONMENT, Storage, GoogleAdMob, RIGHT_MARGIN2, IOS_DEFAULT_MARGIN2, styles31, originXML, GameWebView, globalEventListenerMap, constant_bridges_exports2, event_bridges_exports, extractDateFromUUIDv7, getGroupId, getReferrer, trackScreen, appsInTossGlobals, operationalEnvironment, TYPES, WEBVIEW_TYPES, Analytics2;
|
|
38027
|
+
var import_react146, import_react_native129, import_react_native130, import_react_native131, import_react147, import_react148, import_react_native133, import_jsx_runtime176, import_react149, import_react150, import_react_native136, import_react_native138, import_react_native139, import_react_native140, import_jsx_runtime177, import_react_native141, import_jsx_runtime178, import_jsx_runtime179, import_react151, import_jsx_runtime180, import_react152, __defProp2, __export2, env, AppsInTossModuleInstance, AppsInTossModule, SEMVER_REGEX, isWildcard, tryParse, coerceTypes, compareValues, parseVersion, compareSegments, compareVersions, TossCoreModule, ENTRY_APP_EVENT_SCHEMA_ID, AppEvent, EntryMessageExitedEvent, nativeEventEmitter2, UpdateLocationEvent, INTERNAL__callbacks, INTERNAL__appBridgeHandler, UNSAFE__nativeEventEmitter, AppBridgeCallbackEvent, VisibilityChangedByTransparentServiceWebEvent, appsInTossEvent, async_bridges_exports2, DEFAULT_MAX_COUNT, DEFAULT_MAX_WIDTH, AppsInToss, ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION, IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION, UNSUPPORTED_ERROR_MESSAGE, ENVIRONMENT, Storage, IAP, GoogleAdMob, RIGHT_MARGIN2, IOS_DEFAULT_MARGIN2, styles31, originXML, GameWebView, globalEventListenerMap, constant_bridges_exports2, event_bridges_exports, extractDateFromUUIDv7, getGroupId, getReferrer, trackScreen, appsInTossGlobals, operationalEnvironment, TYPES, WEBVIEW_TYPES, Analytics2;
|
|
37943
38028
|
var init_dist4 = __esm({
|
|
37944
38029
|
"../../.yarn/__virtual__/@apps-in-toss-framework-virtual-574b136add/1/apps-in-toss-packages/framework/dist/index.js"() {
|
|
37945
38030
|
"use strict";
|
|
@@ -37976,6 +38061,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
37976
38061
|
init_src4();
|
|
37977
38062
|
import_react_native133 = __toESM(require_react_native(), 1);
|
|
37978
38063
|
init_src4();
|
|
38064
|
+
init_src4();
|
|
37979
38065
|
import_jsx_runtime176 = __toESM(require_jsx_runtime(), 1);
|
|
37980
38066
|
init_esm8();
|
|
37981
38067
|
init_private2();
|
|
@@ -38244,10 +38330,58 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38244
38330
|
]);
|
|
38245
38331
|
return _AppBridgeCallbackEvent;
|
|
38246
38332
|
}(BedrockEventDefinition);
|
|
38333
|
+
VisibilityChangedByTransparentServiceWebEvent = /* @__PURE__ */ function(BedrockEventDefinition4) {
|
|
38334
|
+
"use strict";
|
|
38335
|
+
_inherits(VisibilityChangedByTransparentServiceWebEvent2, BedrockEventDefinition4);
|
|
38336
|
+
var _super = _create_super(VisibilityChangedByTransparentServiceWebEvent2);
|
|
38337
|
+
function VisibilityChangedByTransparentServiceWebEvent2() {
|
|
38338
|
+
_class_call_check(this, VisibilityChangedByTransparentServiceWebEvent2);
|
|
38339
|
+
var _this;
|
|
38340
|
+
_this = _super.apply(this, arguments);
|
|
38341
|
+
_this.name = "onVisibilityChangedByTransparentServiceWeb";
|
|
38342
|
+
_this.subscription = null;
|
|
38343
|
+
return _this;
|
|
38344
|
+
}
|
|
38345
|
+
_create_class(VisibilityChangedByTransparentServiceWebEvent2, [
|
|
38346
|
+
{
|
|
38347
|
+
key: "remove",
|
|
38348
|
+
value: function remove() {
|
|
38349
|
+
var _this_subscription;
|
|
38350
|
+
(_this_subscription = this.subscription) === null || _this_subscription === void 0 ? void 0 : _this_subscription.remove();
|
|
38351
|
+
this.subscription = null;
|
|
38352
|
+
}
|
|
38353
|
+
},
|
|
38354
|
+
{
|
|
38355
|
+
key: "listener",
|
|
38356
|
+
value: function listener(options, onEvent, onError) {
|
|
38357
|
+
var _this = this;
|
|
38358
|
+
var subscription = nativeEventEmitter2.addListener("visibilityChangedByTransparentServiceWeb", function(params) {
|
|
38359
|
+
if (_this.isVisibilityChangedByTransparentServiceWebResult(params)) {
|
|
38360
|
+
if (params.callbackId === options.callbackId) {
|
|
38361
|
+
onEvent(params.isVisible);
|
|
38362
|
+
}
|
|
38363
|
+
} else {
|
|
38364
|
+
onError(new Error("Invalid visibility changed by transparent service web result"));
|
|
38365
|
+
}
|
|
38366
|
+
});
|
|
38367
|
+
this.subscription = subscription;
|
|
38368
|
+
}
|
|
38369
|
+
},
|
|
38370
|
+
{
|
|
38371
|
+
key: "isVisibilityChangedByTransparentServiceWebResult",
|
|
38372
|
+
value: function isVisibilityChangedByTransparentServiceWebResult(params) {
|
|
38373
|
+
return (typeof params === "undefined" ? "undefined" : _type_of(params)) === "object" && typeof params.callbackId === "string" && typeof params.isVisible === "boolean";
|
|
38374
|
+
}
|
|
38375
|
+
}
|
|
38376
|
+
]);
|
|
38377
|
+
return VisibilityChangedByTransparentServiceWebEvent2;
|
|
38378
|
+
}(BedrockEventDefinition);
|
|
38247
38379
|
appsInTossEvent = new BedrockEvent([
|
|
38248
|
-
new AppBridgeCallbackEvent(),
|
|
38249
38380
|
new UpdateLocationEvent(),
|
|
38250
|
-
new EntryMessageExitedEvent()
|
|
38381
|
+
new EntryMessageExitedEvent(),
|
|
38382
|
+
// Internal events
|
|
38383
|
+
new AppBridgeCallbackEvent(),
|
|
38384
|
+
new VisibilityChangedByTransparentServiceWebEvent()
|
|
38251
38385
|
]);
|
|
38252
38386
|
async_bridges_exports2 = {};
|
|
38253
38387
|
__export2(async_bridges_exports2, {
|
|
@@ -38278,6 +38412,9 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38278
38412
|
openCamera: function() {
|
|
38279
38413
|
return openCamera;
|
|
38280
38414
|
},
|
|
38415
|
+
saveBase64Data: function() {
|
|
38416
|
+
return saveBase64Data;
|
|
38417
|
+
},
|
|
38281
38418
|
setClipboardText: function() {
|
|
38282
38419
|
return setClipboardText;
|
|
38283
38420
|
},
|
|
@@ -38304,6 +38441,10 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38304
38441
|
removeItem,
|
|
38305
38442
|
clearItems
|
|
38306
38443
|
};
|
|
38444
|
+
IAP = {
|
|
38445
|
+
createOneTimePurchaseOrder,
|
|
38446
|
+
getProductItemList
|
|
38447
|
+
};
|
|
38307
38448
|
GoogleAdMob = {
|
|
38308
38449
|
loadAdMobInterstitialAd,
|
|
38309
38450
|
showAdMobInterstitialAd,
|
|
@@ -38499,6 +38640,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38499
38640
|
port: Ait.webPort,
|
|
38500
38641
|
host: Ait.webHost
|
|
38501
38642
|
},
|
|
38643
|
+
allowsBackForwardNavigationGestures: Ait.allowsBackForwardNavigationGestures,
|
|
38502
38644
|
mediaPlaybackRequiresUserAction: Ait.mediaPlaybackRequiresUserAction,
|
|
38503
38645
|
allowsInlineMediaPlayback: Ait.allowsInlineMediaPlayback,
|
|
38504
38646
|
bounces: Ait.bounces,
|
package/dist/prebuilt/prod.json
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
{
|
|
3
3
|
"platform": "ios",
|
|
4
4
|
"totalModuleCount": 1615,
|
|
5
|
-
"duration":
|
|
6
|
-
"size":
|
|
5
|
+
"duration": 969.735792,
|
|
6
|
+
"size": 1509315
|
|
7
7
|
},
|
|
8
8
|
{
|
|
9
9
|
"platform": "android",
|
|
10
10
|
"totalModuleCount": 1615,
|
|
11
|
-
"duration":
|
|
12
|
-
"size":
|
|
11
|
+
"duration": 966.482833,
|
|
12
|
+
"size": 1507674
|
|
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.29",
|
|
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.29",
|
|
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.29",
|
|
106
|
+
"@apps-in-toss/cli": "0.0.29",
|
|
107
|
+
"@apps-in-toss/plugins": "0.0.29",
|
|
108
|
+
"@apps-in-toss/web-analytics": "0.0.29",
|
|
109
|
+
"@apps-in-toss/web-bridge": "0.0.29",
|
|
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": "d05ff237b358da05d562728d0ac965f00c419d63"
|
|
117
117
|
}
|