@apps-in-toss/web-framework 0.0.28 → 0.0.30

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.
@@ -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,18 +37558,67 @@ 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;
37531
- return ((_props_Platform2_OS = props[import_react_native140.Platform.OS]) !== null && _props_Platform2_OS !== void 0 ? _props_Platform2_OS : props.fallback)();
37613
+ return ((_props_Platform2_OS = props[import_react_native141.Platform.OS]) !== null && _props_Platform2_OS !== void 0 ? _props_Platform2_OS : props.fallback)();
37532
37614
  }
37533
37615
  function IOSHeaderRight2(props) {
37534
- return /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(import_react_native139.View, _object_spread({
37616
+ return /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(import_react_native140.View, _object_spread({
37535
37617
  style: styles31.ios
37536
37618
  }, props));
37537
37619
  }
37538
37620
  function AndroidHeaderRight2(props) {
37539
- return /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(import_react_native139.View, _object_spread({
37621
+ return /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(import_react_native140.View, _object_spread({
37540
37622
  style: styles31.android
37541
37623
  }, props));
37542
37624
  }
@@ -37555,7 +37637,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
37555
37637
  }
37556
37638
  function useSafeAreaTop2() {
37557
37639
  var safeAreaInsets = (0, react_native_safe_area_context_exports.useSafeAreaInsets)();
37558
- var hasDynamicIsland = import_react_native141.Platform.OS === "ios" && safeAreaInsets.top > 50;
37640
+ var hasDynamicIsland = import_react_native142.Platform.OS === "ios" && safeAreaInsets.top > 50;
37559
37641
  var safeAreaTop = hasDynamicIsland ? safeAreaInsets.top - 5 : safeAreaInsets.top;
37560
37642
  return safeAreaTop;
37561
37643
  }
@@ -37569,21 +37651,21 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
37569
37651
  type: "none"
37570
37652
  }
37571
37653
  }),
37572
- /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(import_react_native138.View, {
37654
+ /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(import_react_native139.View, {
37573
37655
  style: {
37574
37656
  width: "100%",
37575
- height: import_react_native138.Platform.OS === "ios" ? 44 : 54,
37657
+ height: import_react_native139.Platform.OS === "ios" ? 44 : 54,
37576
37658
  flexDirection: "row",
37577
37659
  alignItems: "center",
37578
37660
  justifyContent: "flex-end",
37579
37661
  position: "absolute",
37580
37662
  zIndex: 9999,
37581
37663
  marginTop: safeAreaTop,
37582
- paddingRight: import_react_native138.Platform.OS === "ios" ? 10 : 8
37664
+ paddingRight: import_react_native139.Platform.OS === "ios" ? 10 : 8
37583
37665
  },
37584
37666
  pointerEvents: "box-none",
37585
37667
  children: /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(HeaderRight2, {
37586
- children: /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(import_react_native138.TouchableOpacity, {
37668
+ children: /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(import_react_native139.TouchableOpacity, {
37587
37669
  hitSlop: {
37588
37670
  left: 8,
37589
37671
  right: 8
@@ -37592,7 +37674,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
37592
37674
  accessible: true,
37593
37675
  accessibilityLabel: "\uAC8C\uC784\uC885\uB8CC",
37594
37676
  style: {
37595
- padding: import_react_native138.Platform.OS === "ios" ? 7 : 9
37677
+ padding: import_react_native139.Platform.OS === "ios" ? 7 : 9
37596
37678
  },
37597
37679
  onPress: onClose,
37598
37680
  children: /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(react_native_svg_exports.SvgXml, {
@@ -37759,6 +37841,26 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
37759
37841
  onMessage: $onMessage
37760
37842
  };
37761
37843
  }
37844
+ function useCreateUserAgent(param) {
37845
+ var batteryModePreference = param.batteryModePreference, colorPreference = param.colorPreference, fontA11y = param.fontA11y, locale = param.locale, navbarPreference = param.navbarPreference, pureSafeArea = param.pureSafeArea, safeArea = param.safeArea, safeAreaBottomTransparency = param.safeAreaBottomTransparency;
37846
+ var platform = getPlatformOS();
37847
+ var appVersion = getTossAppVersion();
37848
+ var fontScale = (0, import_react_native143.useWindowDimensions)().fontScale;
37849
+ var platformString = platform === "ios" ? "iPhone" : "Android";
37850
+ return [
37851
+ "TossApp/".concat(appVersion),
37852
+ batteryModePreference && "TossBatteryModePreference/".concat(batteryModePreference),
37853
+ colorPreference && "TossColorPreference/".concat(colorPreference),
37854
+ fontA11y && "TossFontAccessibility/".concat(fontA11y),
37855
+ fontScale && "TossFontScale/".concat(fontScale),
37856
+ locale && "TossLocale/".concat(locale),
37857
+ navbarPreference && "TossNavbarPreference/".concat(navbarPreference),
37858
+ pureSafeArea && "TossPureSafeArea/".concat(pureSafeArea),
37859
+ safeArea && "TossSafeArea/".concat(safeArea),
37860
+ safeAreaBottomTransparency && "TossSafeAreaBottomTransparency/".concat(safeAreaBottomTransparency),
37861
+ platformString
37862
+ ].filter(Boolean).join(" ");
37863
+ }
37762
37864
  function mergeSchemeQueryParamsInto(url) {
37763
37865
  var baseUrl = new URL(url);
37764
37866
  var schemeUrl = new URL(getSchemeUri());
@@ -37815,6 +37917,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
37815
37917
  ]);
37816
37918
  var top = useSafeAreaTop();
37817
37919
  var bottom = useSafeAreaBottom();
37920
+ var global2 = getAppsInTossGlobals();
37818
37921
  var handler = useBridgeHandler({
37819
37922
  onMessage,
37820
37923
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -37857,13 +37960,22 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
37857
37960
  loadAdMobRewardedAd: GoogleAdMob.loadAdMobRewardedAd,
37858
37961
  showAdMobRewardedAd: GoogleAdMob.showAdMobRewardedAd
37859
37962
  }),
37860
- constantHandlerMap: _object_spread_props(_object_spread({}, constant_bridges_exports, constant_bridges_exports2), {
37963
+ constantHandlerMap: _object_spread_props(_object_spread(_object_spread_props(_object_spread({}, constant_bridges_exports, constant_bridges_exports2), {
37861
37964
  getSafeAreaTop: function() {
37862
37965
  return top;
37863
37966
  },
37864
37967
  getSafeAreaBottom: function() {
37865
37968
  return bottom;
37866
- },
37969
+ }
37970
+ }), Object.fromEntries(Object.entries(global2).map(function(param) {
37971
+ var _$_param = _sliced_to_array(param, 2), key = _$_param[0], value = _$_param[1];
37972
+ return [
37973
+ key,
37974
+ function() {
37975
+ return value;
37976
+ }
37977
+ ];
37978
+ }))), {
37867
37979
  /** AdMob */
37868
37980
  loadAdMobInterstitialAd_isSupported: GoogleAdMob.loadAdMobInterstitialAd.isSupported,
37869
37981
  showAdMobInterstitialAd_isSupported: GoogleAdMob.showAdMobInterstitialAd.isSupported,
@@ -37879,7 +37991,10 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
37879
37991
  getStorageItem: Storage.getItem,
37880
37992
  setStorageItem: Storage.setItem,
37881
37993
  removeStorageItem: Storage.removeItem,
37882
- clearItems: Storage.clearItems
37994
+ clearItems: Storage.clearItems,
37995
+ /** IAP */
37996
+ iapCreateOneTimePurchaseOrder: IAP.createOneTimePurchaseOrder,
37997
+ iapGetProductItemList: IAP.getProductItemList
37883
37998
  })
37884
37999
  });
37885
38000
  var baseProps = (0, import_react149.useMemo)(function() {
@@ -37918,12 +38033,20 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
37918
38033
  trackScreen(event.url);
37919
38034
  }
37920
38035
  }, []);
38036
+ var userAgent = useCreateUserAgent({
38037
+ colorPreference: "light"
38038
+ });
37921
38039
  return /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(BaseWebView, _object_spread_props(_object_spread({
37922
38040
  ref: handler.ref
37923
38041
  }, props, baseProps), {
37924
38042
  source: {
37925
- uri
38043
+ uri,
38044
+ // NOTE: https://github.com/react-native-webview/react-native-webview/pull/3133
38045
+ headers: {
38046
+ "User-Agent": userAgent
38047
+ }
37926
38048
  },
38049
+ userAgent: import_react_native135.Platform.OS === "ios" ? userAgent : void 0,
37927
38050
  sharedCookiesEnabled: true,
37928
38051
  webviewDebuggingEnabled: webViewDebuggingEnabled,
37929
38052
  thirdPartyCookiesEnabled: true,
@@ -37939,7 +38062,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
37939
38062
  }
37940
38063
  return value;
37941
38064
  }
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;
38065
+ 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_react_native135, import_react150, import_react_native137, import_react_native139, import_react_native140, import_react_native141, import_jsx_runtime177, import_react_native142, import_jsx_runtime178, import_jsx_runtime179, import_react151, import_react_native143, import_react152, import_jsx_runtime180, __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
38066
  var init_dist4 = __esm({
37944
38067
  "../../.yarn/__virtual__/@apps-in-toss-framework-virtual-574b136add/1/apps-in-toss-packages/framework/dist/index.js"() {
37945
38068
  "use strict";
@@ -37976,10 +38099,12 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
37976
38099
  init_src4();
37977
38100
  import_react_native133 = __toESM(require_react_native(), 1);
37978
38101
  init_src4();
38102
+ init_src4();
37979
38103
  import_jsx_runtime176 = __toESM(require_jsx_runtime(), 1);
37980
38104
  init_esm8();
37981
38105
  init_private2();
37982
38106
  import_react149 = __toESM(require_react(), 1);
38107
+ import_react_native135 = __toESM(require_react_native(), 1);
37983
38108
  init_src4();
37984
38109
  init_async_bridges();
37985
38110
  init_constant_bridges();
@@ -37987,23 +38112,25 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
37987
38112
  init_esm8();
37988
38113
  init_dist3();
37989
38114
  import_react150 = __toESM(require_react(), 1);
37990
- import_react_native136 = __toESM(require_react_native(), 1);
38115
+ import_react_native137 = __toESM(require_react_native(), 1);
37991
38116
  init_src4();
37992
38117
  init_react_native_svg();
37993
38118
  init_esm8();
37994
- import_react_native138 = __toESM(require_react_native(), 1);
37995
38119
  import_react_native139 = __toESM(require_react_native(), 1);
37996
38120
  import_react_native140 = __toESM(require_react_native(), 1);
38121
+ import_react_native141 = __toESM(require_react_native(), 1);
37997
38122
  import_jsx_runtime177 = __toESM(require_jsx_runtime(), 1);
37998
38123
  init_react_native_safe_area_context();
37999
- import_react_native141 = __toESM(require_react_native(), 1);
38124
+ import_react_native142 = __toESM(require_react_native(), 1);
38000
38125
  import_jsx_runtime178 = __toESM(require_jsx_runtime(), 1);
38001
38126
  import_jsx_runtime179 = __toESM(require_jsx_runtime(), 1);
38002
38127
  import_react151 = __toESM(require_react(), 1);
38128
+ import_react_native143 = __toESM(require_react_native(), 1);
38003
38129
  init_src4();
38004
- import_jsx_runtime180 = __toESM(require_jsx_runtime(), 1);
38005
38130
  import_react152 = __toESM(require_react(), 1);
38006
38131
  init_src4();
38132
+ init_src4();
38133
+ import_jsx_runtime180 = __toESM(require_jsx_runtime(), 1);
38007
38134
  init_dist2();
38008
38135
  __defProp2 = Object.defineProperty;
38009
38136
  __export2 = function(target, all) {
@@ -38244,10 +38371,58 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
38244
38371
  ]);
38245
38372
  return _AppBridgeCallbackEvent;
38246
38373
  }(BedrockEventDefinition);
38374
+ VisibilityChangedByTransparentServiceWebEvent = /* @__PURE__ */ function(BedrockEventDefinition4) {
38375
+ "use strict";
38376
+ _inherits(VisibilityChangedByTransparentServiceWebEvent2, BedrockEventDefinition4);
38377
+ var _super = _create_super(VisibilityChangedByTransparentServiceWebEvent2);
38378
+ function VisibilityChangedByTransparentServiceWebEvent2() {
38379
+ _class_call_check(this, VisibilityChangedByTransparentServiceWebEvent2);
38380
+ var _this;
38381
+ _this = _super.apply(this, arguments);
38382
+ _this.name = "onVisibilityChangedByTransparentServiceWeb";
38383
+ _this.subscription = null;
38384
+ return _this;
38385
+ }
38386
+ _create_class(VisibilityChangedByTransparentServiceWebEvent2, [
38387
+ {
38388
+ key: "remove",
38389
+ value: function remove() {
38390
+ var _this_subscription;
38391
+ (_this_subscription = this.subscription) === null || _this_subscription === void 0 ? void 0 : _this_subscription.remove();
38392
+ this.subscription = null;
38393
+ }
38394
+ },
38395
+ {
38396
+ key: "listener",
38397
+ value: function listener(options, onEvent, onError) {
38398
+ var _this = this;
38399
+ var subscription = nativeEventEmitter2.addListener("visibilityChangedByTransparentServiceWeb", function(params) {
38400
+ if (_this.isVisibilityChangedByTransparentServiceWebResult(params)) {
38401
+ if (params.callbackId === options.callbackId) {
38402
+ onEvent(params.isVisible);
38403
+ }
38404
+ } else {
38405
+ onError(new Error("Invalid visibility changed by transparent service web result"));
38406
+ }
38407
+ });
38408
+ this.subscription = subscription;
38409
+ }
38410
+ },
38411
+ {
38412
+ key: "isVisibilityChangedByTransparentServiceWebResult",
38413
+ value: function isVisibilityChangedByTransparentServiceWebResult(params) {
38414
+ return (typeof params === "undefined" ? "undefined" : _type_of(params)) === "object" && typeof params.callbackId === "string" && typeof params.isVisible === "boolean";
38415
+ }
38416
+ }
38417
+ ]);
38418
+ return VisibilityChangedByTransparentServiceWebEvent2;
38419
+ }(BedrockEventDefinition);
38247
38420
  appsInTossEvent = new BedrockEvent([
38248
- new AppBridgeCallbackEvent(),
38249
38421
  new UpdateLocationEvent(),
38250
- new EntryMessageExitedEvent()
38422
+ new EntryMessageExitedEvent(),
38423
+ // Internal events
38424
+ new AppBridgeCallbackEvent(),
38425
+ new VisibilityChangedByTransparentServiceWebEvent()
38251
38426
  ]);
38252
38427
  async_bridges_exports2 = {};
38253
38428
  __export2(async_bridges_exports2, {
@@ -38278,6 +38453,9 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
38278
38453
  openCamera: function() {
38279
38454
  return openCamera;
38280
38455
  },
38456
+ saveBase64Data: function() {
38457
+ return saveBase64Data;
38458
+ },
38281
38459
  setClipboardText: function() {
38282
38460
  return setClipboardText;
38283
38461
  },
@@ -38304,6 +38482,10 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
38304
38482
  removeItem,
38305
38483
  clearItems
38306
38484
  };
38485
+ IAP = {
38486
+ createOneTimePurchaseOrder,
38487
+ getProductItemList
38488
+ };
38307
38489
  GoogleAdMob = {
38308
38490
  loadAdMobInterstitialAd,
38309
38491
  showAdMobInterstitialAd,
@@ -38312,7 +38494,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
38312
38494
  };
38313
38495
  RIGHT_MARGIN2 = 24;
38314
38496
  IOS_DEFAULT_MARGIN2 = 20;
38315
- styles31 = import_react_native139.StyleSheet.create({
38497
+ styles31 = import_react_native140.StyleSheet.create({
38316
38498
  ios: {
38317
38499
  marginRight: -IOS_DEFAULT_MARGIN2 + RIGHT_MARGIN2,
38318
38500
  flexDirection: "row"
@@ -38354,7 +38536,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
38354
38536
  openConfirm
38355
38537
  ]);
38356
38538
  (0, import_react150.useEffect)(function() {
38357
- if (import_react_native136.Platform.OS === "ios") {
38539
+ if (import_react_native137.Platform.OS === "ios") {
38358
38540
  setIosSwipeGestureEnabled({
38359
38541
  isEnabled: false
38360
38542
  });
@@ -38371,9 +38553,9 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
38371
38553
  handleClose();
38372
38554
  return true;
38373
38555
  };
38374
- import_react_native136.BackHandler.addEventListener("hardwareBackPress", backHandler);
38556
+ import_react_native137.BackHandler.addEventListener("hardwareBackPress", backHandler);
38375
38557
  return function() {
38376
- import_react_native136.BackHandler.removeEventListener("hardwareBackPress", backHandler);
38558
+ import_react_native137.BackHandler.removeEventListener("hardwareBackPress", backHandler);
38377
38559
  };
38378
38560
  }, [
38379
38561
  handleClose
@@ -38383,7 +38565,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
38383
38565
  /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(GameNavigationBar, {
38384
38566
  onClose: handleClose
38385
38567
  }),
38386
- /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(import_react_native136.View, {
38568
+ /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(import_react_native137.View, {
38387
38569
  style: {
38388
38570
  flex: 1
38389
38571
  },
@@ -38483,7 +38665,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
38483
38665
  }
38484
38666
  });
38485
38667
  function Index() {
38486
- return /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(import_react_native142.View, {
38668
+ return /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(import_react_native144.View, {
38487
38669
  style: {
38488
38670
  flex: 1
38489
38671
  },
@@ -38499,6 +38681,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
38499
38681
  port: Ait.webPort,
38500
38682
  host: Ait.webHost
38501
38683
  },
38684
+ allowsBackForwardNavigationGestures: Ait.allowsBackForwardNavigationGestures,
38502
38685
  mediaPlaybackRequiresUserAction: Ait.mediaPlaybackRequiresUserAction,
38503
38686
  allowsInlineMediaPlayback: Ait.allowsInlineMediaPlayback,
38504
38687
  bounces: Ait.bounces,
@@ -38507,14 +38690,14 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
38507
38690
  })
38508
38691
  });
38509
38692
  }
38510
- var import_jsx_runtime181, import_react153, import_react_native142;
38693
+ var import_jsx_runtime181, import_react153, import_react_native144;
38511
38694
  var init_pages = __esm({
38512
38695
  "react-native/pages/index.tsx"() {
38513
38696
  "use strict";
38514
38697
  import_jsx_runtime181 = __toESM(require_jsx_runtime(), 1);
38515
38698
  init_dist4();
38516
38699
  import_react153 = __toESM(require_react(), 1);
38517
- import_react_native142 = __toESM(require_react_native(), 1);
38700
+ import_react_native144 = __toESM(require_react_native(), 1);
38518
38701
  }
38519
38702
  });
38520
38703
 
@@ -2,13 +2,13 @@
2
2
  {
3
3
  "platform": "ios",
4
4
  "totalModuleCount": 1615,
5
- "duration": 1111.3158329999999,
6
- "size": 1504269
5
+ "duration": 1289.585083,
6
+ "size": 1511511
7
7
  },
8
8
  {
9
9
  "platform": "android",
10
10
  "totalModuleCount": 1615,
11
- "duration": 1103.759166,
12
- "size": 1502628
11
+ "duration": 1318.3562500000003,
12
+ "size": 1509870
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.28",
4
+ "version": "0.0.30",
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.28",
54
+ "@apps-in-toss/framework": "0.0.30",
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.28",
106
- "@apps-in-toss/cli": "0.0.28",
107
- "@apps-in-toss/plugins": "0.0.28",
108
- "@apps-in-toss/web-analytics": "0.0.28",
109
- "@apps-in-toss/web-bridge": "0.0.28",
105
+ "@apps-in-toss/bridge-core": "0.0.30",
106
+ "@apps-in-toss/cli": "0.0.30",
107
+ "@apps-in-toss/plugins": "0.0.30",
108
+ "@apps-in-toss/web-analytics": "0.0.30",
109
+ "@apps-in-toss/web-bridge": "0.0.30",
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": "17b4c5583054e58a9da274a886ee10c76671d24d"
116
+ "gitHead": "7390d4ed0f09dec042523a302bc1aa0d21474512"
117
117
  }