@apps-in-toss/web-framework 1.7.0 → 1.7.1

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.
@@ -11063,6 +11063,13 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
11063
11063
  function getCallbackIds() {
11064
11064
  return Array.from(INTERNAL__callbacks.keys());
11065
11065
  }
11066
+ function getReferrer() {
11067
+ try {
11068
+ return new URL(getSchemeUri()).searchParams.get("referrer");
11069
+ } catch (e60) {
11070
+ return null;
11071
+ }
11072
+ }
11066
11073
  function getOperationalEnvironment() {
11067
11074
  return AppsInTossModule.operationalEnvironment;
11068
11075
  }
@@ -11072,7 +11079,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
11072
11079
  return true;
11073
11080
  }
11074
11081
  var currentVersion = AppsInTossModule.tossAppVersion;
11075
- var isIOS = import_react_native41.Platform.OS === "ios";
11082
+ var isIOS = import_react_native42.Platform.OS === "ios";
11076
11083
  var minVersion = isIOS ? minVersions.ios : minVersions.android;
11077
11084
  if (minVersion === void 0) {
11078
11085
  return false;
@@ -11085,148 +11092,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
11085
11092
  }
11086
11093
  return compareVersions(currentVersion, minVersion) >= 0;
11087
11094
  }
11088
- function loadAdMobInterstitialAd(params) {
11089
- if (!loadAdMobInterstitialAd.isSupported()) {
11090
- params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE));
11091
- return noop3;
11092
- }
11093
- var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
11094
- var unregisterCallbacks = INTERNAL__appBridgeHandler.invokeAppBridgeMethod("loadAdMobInterstitialAd", options, {
11095
- onAdClicked: function() {
11096
- onEvent({
11097
- type: "clicked"
11098
- });
11099
- },
11100
- onAdDismissed: function() {
11101
- onEvent({
11102
- type: "dismissed"
11103
- });
11104
- },
11105
- onAdFailedToShow: function() {
11106
- onEvent({
11107
- type: "failedToShow"
11108
- });
11109
- },
11110
- onAdImpression: function() {
11111
- onEvent({
11112
- type: "impression"
11113
- });
11114
- },
11115
- onAdShow: function() {
11116
- onEvent({
11117
- type: "show"
11118
- });
11119
- },
11120
- onSuccess: function(result) {
11121
- return onEvent({
11122
- type: "loaded",
11123
- data: result
11124
- });
11125
- },
11126
- onError: onError2
11127
- });
11128
- return unregisterCallbacks;
11129
- }
11130
- function showAdMobInterstitialAd(params) {
11131
- if (!showAdMobInterstitialAd.isSupported()) {
11132
- params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE));
11133
- return noop3;
11134
- }
11135
- var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
11136
- var unregisterCallbacks = INTERNAL__appBridgeHandler.invokeAppBridgeMethod("showAdMobInterstitialAd", options, {
11137
- onSuccess: function() {
11138
- return onEvent({
11139
- type: "requested"
11140
- });
11141
- },
11142
- onError: onError2
11143
- });
11144
- return unregisterCallbacks;
11145
- }
11146
- function loadAdMobRewardedAd(params) {
11147
- if (!loadAdMobRewardedAd.isSupported()) {
11148
- params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE));
11149
- return noop3;
11150
- }
11151
- var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
11152
- var unregisterCallbacks = INTERNAL__appBridgeHandler.invokeAppBridgeMethod("loadAdMobRewardedAd", options, {
11153
- onAdClicked: function() {
11154
- onEvent({
11155
- type: "clicked"
11156
- });
11157
- },
11158
- onAdDismissed: function() {
11159
- onEvent({
11160
- type: "dismissed"
11161
- });
11162
- },
11163
- onAdFailedToShow: function() {
11164
- onEvent({
11165
- type: "failedToShow"
11166
- });
11167
- },
11168
- onAdImpression: function() {
11169
- onEvent({
11170
- type: "impression"
11171
- });
11172
- },
11173
- onAdShow: function() {
11174
- onEvent({
11175
- type: "show"
11176
- });
11177
- },
11178
- onUserEarnedReward: function() {
11179
- onEvent({
11180
- type: "userEarnedReward"
11181
- });
11182
- },
11183
- onSuccess: function(result) {
11184
- return onEvent({
11185
- type: "loaded",
11186
- data: result
11187
- });
11188
- },
11189
- onError: onError2
11190
- });
11191
- return unregisterCallbacks;
11192
- }
11193
- function showAdMobRewardedAd(params) {
11194
- if (!showAdMobRewardedAd.isSupported()) {
11195
- params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE));
11196
- return noop3;
11197
- }
11198
- var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
11199
- var unregisterCallbacks = INTERNAL__appBridgeHandler.invokeAppBridgeMethod("showAdMobRewardedAd", options, {
11200
- onSuccess: function() {
11201
- return onEvent({
11202
- type: "requested"
11203
- });
11204
- },
11205
- onError: onError2
11206
- });
11207
- return unregisterCallbacks;
11208
- }
11209
- function createIsSupported() {
11210
- return function() {
11211
- if (ENVIRONMENT !== "toss") {
11212
- return false;
11213
- }
11214
- return isMinVersionSupported({
11215
- android: ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION,
11216
- ios: IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION
11217
- });
11218
- };
11219
- }
11220
- function getReferrer() {
11221
- try {
11222
- return new URL(getSchemeUri()).searchParams.get("referrer");
11223
- } catch (e60) {
11224
- return null;
11225
- }
11226
- }
11227
11095
  function loadAppsInTossAdMob(params) {
11228
11096
  if (!loadAppsInTossAdMob.isSupported()) {
11229
- params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE2));
11097
+ params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE));
11230
11098
  return noop3;
11231
11099
  }
11232
11100
  var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
@@ -11246,7 +11114,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
11246
11114
  }
11247
11115
  function showAppsInTossAdMob(params) {
11248
11116
  if (!showAppsInTossAdMob.isSupported()) {
11249
- params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE2));
11117
+ params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE));
11250
11118
  return noop3;
11251
11119
  }
11252
11120
  var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
@@ -11294,14 +11162,14 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
11294
11162
  });
11295
11163
  return unregisterCallbacks;
11296
11164
  }
11297
- function createIsSupported2() {
11165
+ function createIsSupported() {
11298
11166
  return function() {
11299
- if (ENVIRONMENT2 !== "toss") {
11167
+ if (ENVIRONMENT !== "toss") {
11300
11168
  return false;
11301
11169
  }
11302
11170
  return isMinVersionSupported({
11303
- android: ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION2,
11304
- ios: IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION2
11171
+ android: ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION,
11172
+ ios: IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION
11305
11173
  });
11306
11174
  };
11307
11175
  }
@@ -11704,7 +11572,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
11704
11572
  }
11705
11573
  });
11706
11574
  }
11707
- var import_react_native37, import_react_native38, import_react_native41, import_react_native43, import_react_native44, import_react_native45, import_react_native46, import_react_native47, import_react_native48, Module, AppsInTossModuleInstance, AppsInTossModule, nativeEventEmitter2, UpdateLocationEvent, INTERNAL__callbacks, INTERNAL__appBridgeHandler, UNSAFE__nativeEventEmitter, AppBridgeCallbackEvent, VisibilityChangedByTransparentServiceWebEvent, appsInTossEvent, SEMVER_REGEX, isWildcard, tryParse, coerceTypes, compareValues, parseVersion, compareSegments, compareVersions, ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION, IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION, UNSUPPORTED_ERROR_MESSAGE, ENVIRONMENT, ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION2, IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION2, UNSUPPORTED_ERROR_MESSAGE2, ENVIRONMENT2, DEFAULT_MAX_COUNT, DEFAULT_MAX_WIDTH, fetchAlbumPhotos, fetchContacts, getClipboardText, getCurrentLocation, setClipboardText, openCamera, IAP, Storage, GAME_CENTER_MIN_VERSION, GoogleAdMob, BedrockModule, BedrockCoreModule, TossCoreModule, INTERNAL__module;
11575
+ var import_react_native37, import_react_native38, import_react_native42, import_react_native43, import_react_native44, import_react_native45, import_react_native46, import_react_native47, import_react_native48, Module, AppsInTossModuleInstance, AppsInTossModule, nativeEventEmitter2, UpdateLocationEvent, INTERNAL__callbacks, INTERNAL__appBridgeHandler, UNSAFE__nativeEventEmitter, AppBridgeCallbackEvent, VisibilityChangedByTransparentServiceWebEvent, appsInTossEvent, SEMVER_REGEX, isWildcard, tryParse, coerceTypes, compareValues, parseVersion, compareSegments, compareVersions, ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION, IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION, UNSUPPORTED_ERROR_MESSAGE, ENVIRONMENT, DEFAULT_MAX_COUNT, DEFAULT_MAX_WIDTH, fetchAlbumPhotos, fetchContacts, getClipboardText, getCurrentLocation, setClipboardText, openCamera, IAP, Storage, GAME_CENTER_MIN_VERSION, GoogleAdMob, BedrockModule, BedrockCoreModule, TossCoreModule, INTERNAL__module;
11708
11576
  var init_dist6 = __esm({
11709
11577
  "../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/dist/index.js"() {
11710
11578
  "use strict";
@@ -11728,9 +11596,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
11728
11596
  init_src3();
11729
11597
  init_src3();
11730
11598
  init_dist5();
11731
- import_react_native41 = __toESM(require_react_native(), 1);
11732
- init_dist5();
11733
11599
  init_src3();
11600
+ import_react_native42 = __toESM(require_react_native(), 1);
11734
11601
  init_dist4();
11735
11602
  init_dist4();
11736
11603
  init_dist4();
@@ -11992,20 +11859,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
11992
11859
  }
11993
11860
  return 0;
11994
11861
  };
11995
- ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION = "5.209.0";
11996
- IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION = "5.209.0";
11862
+ ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION = "5.227.0";
11863
+ IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION = "5.227.0";
11997
11864
  UNSUPPORTED_ERROR_MESSAGE = "This feature is not supported in the current environment";
11998
11865
  ENVIRONMENT = getOperationalEnvironment();
11999
- loadAdMobInterstitialAd.isSupported = createIsSupported();
12000
- loadAdMobRewardedAd.isSupported = createIsSupported();
12001
- showAdMobInterstitialAd.isSupported = createIsSupported();
12002
- showAdMobRewardedAd.isSupported = createIsSupported();
12003
- ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION2 = "5.227.0";
12004
- IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION2 = "5.227.0";
12005
- UNSUPPORTED_ERROR_MESSAGE2 = "This feature is not supported in the current environment";
12006
- ENVIRONMENT2 = getOperationalEnvironment();
12007
- loadAppsInTossAdMob.isSupported = createIsSupported2();
12008
- showAppsInTossAdMob.isSupported = createIsSupported2();
11866
+ loadAppsInTossAdMob.isSupported = createIsSupported();
11867
+ showAppsInTossAdMob.isSupported = createIsSupported();
12009
11868
  DEFAULT_MAX_COUNT = 10;
12010
11869
  DEFAULT_MAX_WIDTH = 1024;
12011
11870
  fetchAlbumPhotos = createPermissionFunction({
@@ -12139,10 +11998,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
12139
11998
  ios: "5.221.0"
12140
11999
  };
12141
12000
  GoogleAdMob = {
12142
- loadAdMobInterstitialAd,
12143
- showAdMobInterstitialAd,
12144
- loadAdMobRewardedAd,
12145
- showAdMobRewardedAd,
12146
12001
  loadAppsInTossAdMob,
12147
12002
  showAppsInTossAdMob
12148
12003
  };
@@ -44670,158 +44525,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44670
44525
  }
44671
44526
  });
44672
44527
 
44673
- // ../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/AppsInTossModule/native-modules/ads/googleAdMob.ts
44674
- function loadAdMobInterstitialAd2(params) {
44675
- if (!loadAdMobInterstitialAd2.isSupported()) {
44676
- params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE3));
44677
- return noop3;
44678
- }
44679
- var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
44680
- var unregisterCallbacks = INTERNAL__appBridgeHandler2.invokeAppBridgeMethod("loadAdMobInterstitialAd", options, {
44681
- onAdClicked: function() {
44682
- onEvent({
44683
- type: "clicked"
44684
- });
44685
- },
44686
- onAdDismissed: function() {
44687
- onEvent({
44688
- type: "dismissed"
44689
- });
44690
- },
44691
- onAdFailedToShow: function() {
44692
- onEvent({
44693
- type: "failedToShow"
44694
- });
44695
- },
44696
- onAdImpression: function() {
44697
- onEvent({
44698
- type: "impression"
44699
- });
44700
- },
44701
- onAdShow: function() {
44702
- onEvent({
44703
- type: "show"
44704
- });
44705
- },
44706
- onSuccess: function(result) {
44707
- return onEvent({
44708
- type: "loaded",
44709
- data: result
44710
- });
44711
- },
44712
- onError: onError2
44713
- });
44714
- return unregisterCallbacks;
44715
- }
44716
- function showAdMobInterstitialAd2(params) {
44717
- if (!showAdMobInterstitialAd2.isSupported()) {
44718
- params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE3));
44719
- return noop3;
44720
- }
44721
- var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
44722
- var unregisterCallbacks = INTERNAL__appBridgeHandler2.invokeAppBridgeMethod("showAdMobInterstitialAd", options, {
44723
- onSuccess: function() {
44724
- return onEvent({
44725
- type: "requested"
44726
- });
44727
- },
44728
- onError: onError2
44729
- });
44730
- return unregisterCallbacks;
44731
- }
44732
- function loadAdMobRewardedAd2(params) {
44733
- if (!loadAdMobRewardedAd2.isSupported()) {
44734
- params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE3));
44735
- return noop3;
44736
- }
44737
- var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
44738
- var unregisterCallbacks = INTERNAL__appBridgeHandler2.invokeAppBridgeMethod("loadAdMobRewardedAd", options, {
44739
- onAdClicked: function() {
44740
- onEvent({
44741
- type: "clicked"
44742
- });
44743
- },
44744
- onAdDismissed: function() {
44745
- onEvent({
44746
- type: "dismissed"
44747
- });
44748
- },
44749
- onAdFailedToShow: function() {
44750
- onEvent({
44751
- type: "failedToShow"
44752
- });
44753
- },
44754
- onAdImpression: function() {
44755
- onEvent({
44756
- type: "impression"
44757
- });
44758
- },
44759
- onAdShow: function() {
44760
- onEvent({
44761
- type: "show"
44762
- });
44763
- },
44764
- onUserEarnedReward: function() {
44765
- onEvent({
44766
- type: "userEarnedReward"
44767
- });
44768
- },
44769
- onSuccess: function(result) {
44770
- return onEvent({
44771
- type: "loaded",
44772
- data: result
44773
- });
44774
- },
44775
- onError: onError2
44776
- });
44777
- return unregisterCallbacks;
44778
- }
44779
- function showAdMobRewardedAd2(params) {
44780
- if (!showAdMobRewardedAd2.isSupported()) {
44781
- params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE3));
44782
- return noop3;
44783
- }
44784
- var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
44785
- var unregisterCallbacks = INTERNAL__appBridgeHandler2.invokeAppBridgeMethod("showAdMobRewardedAd", options, {
44786
- onSuccess: function() {
44787
- return onEvent({
44788
- type: "requested"
44789
- });
44790
- },
44791
- onError: onError2
44792
- });
44793
- return unregisterCallbacks;
44794
- }
44795
- function createIsSupported3() {
44796
- return function() {
44797
- if (ENVIRONMENT3 !== "toss") {
44798
- return false;
44799
- }
44800
- return isMinVersionSupported2({
44801
- android: ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION3,
44802
- ios: IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION3
44803
- });
44804
- };
44805
- }
44806
- var ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION3, IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION3, UNSUPPORTED_ERROR_MESSAGE3, ENVIRONMENT3;
44807
- var init_googleAdMob = __esm({
44808
- "../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/AppsInTossModule/native-modules/ads/googleAdMob.ts"() {
44809
- "use strict";
44810
- init_dist5();
44811
- init_appBridge();
44812
- init_getOperationalEnvironment();
44813
- init_isMinVersionSupported();
44814
- ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION3 = "5.209.0";
44815
- IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION3 = "5.209.0";
44816
- UNSUPPORTED_ERROR_MESSAGE3 = "This feature is not supported in the current environment";
44817
- ENVIRONMENT3 = getOperationalEnvironment2();
44818
- loadAdMobInterstitialAd2.isSupported = createIsSupported3();
44819
- loadAdMobRewardedAd2.isSupported = createIsSupported3();
44820
- showAdMobInterstitialAd2.isSupported = createIsSupported3();
44821
- showAdMobRewardedAd2.isSupported = createIsSupported3();
44822
- }
44823
- });
44824
-
44825
44528
  // ../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/utils/getReferrer.ts
44826
44529
  function getReferrer2() {
44827
44530
  try {
@@ -44840,7 +44543,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44840
44543
  // ../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/AppsInTossModule/native-modules/ads/googleAdMobV2.ts
44841
44544
  function loadAppsInTossAdMob2(params) {
44842
44545
  if (!loadAppsInTossAdMob2.isSupported()) {
44843
- params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE4));
44546
+ params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE2));
44844
44547
  return noop3;
44845
44548
  }
44846
44549
  var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
@@ -44860,7 +44563,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44860
44563
  }
44861
44564
  function showAppsInTossAdMob2(params) {
44862
44565
  if (!showAppsInTossAdMob2.isSupported()) {
44863
- params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE4));
44566
+ params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE2));
44864
44567
  return noop3;
44865
44568
  }
44866
44569
  var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
@@ -44908,18 +44611,18 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44908
44611
  });
44909
44612
  return unregisterCallbacks;
44910
44613
  }
44911
- function createIsSupported4() {
44614
+ function createIsSupported2() {
44912
44615
  return function() {
44913
- if (ENVIRONMENT4 !== "toss") {
44616
+ if (ENVIRONMENT2 !== "toss") {
44914
44617
  return false;
44915
44618
  }
44916
44619
  return isMinVersionSupported2({
44917
- android: ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION4,
44918
- ios: IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION4
44620
+ android: ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION2,
44621
+ ios: IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION2
44919
44622
  });
44920
44623
  };
44921
44624
  }
44922
- var ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION4, IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION4, UNSUPPORTED_ERROR_MESSAGE4, ENVIRONMENT4;
44625
+ var ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION2, IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION2, UNSUPPORTED_ERROR_MESSAGE2, ENVIRONMENT2;
44923
44626
  var init_googleAdMobV2 = __esm({
44924
44627
  "../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/AppsInTossModule/native-modules/ads/googleAdMobV2.ts"() {
44925
44628
  "use strict";
@@ -44930,12 +44633,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44930
44633
  init_appBridge();
44931
44634
  init_getOperationalEnvironment();
44932
44635
  init_isMinVersionSupported();
44933
- ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION4 = "5.227.0";
44934
- IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION4 = "5.227.0";
44935
- UNSUPPORTED_ERROR_MESSAGE4 = "This feature is not supported in the current environment";
44936
- ENVIRONMENT4 = getOperationalEnvironment2();
44937
- loadAppsInTossAdMob2.isSupported = createIsSupported4();
44938
- showAppsInTossAdMob2.isSupported = createIsSupported4();
44636
+ ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION2 = "5.227.0";
44637
+ IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION2 = "5.227.0";
44638
+ UNSUPPORTED_ERROR_MESSAGE2 = "This feature is not supported in the current environment";
44639
+ ENVIRONMENT2 = getOperationalEnvironment2();
44640
+ loadAppsInTossAdMob2.isSupported = createIsSupported2();
44641
+ showAppsInTossAdMob2.isSupported = createIsSupported2();
44939
44642
  }
44940
44643
  });
44941
44644
 
@@ -44999,7 +44702,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44999
44702
  var init_native_modules2 = __esm({
45000
44703
  "../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/AppsInTossModule/native-modules/index.ts"() {
45001
44704
  "use strict";
45002
- init_googleAdMob();
45003
44705
  init_googleAdMobV2();
45004
44706
  init_checkoutPayment();
45005
44707
  init_AppsInTossModule();
@@ -46237,7 +45939,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46237
45939
  }
46238
45940
  function fetchTossAd(params) {
46239
45941
  if (!fetchTossAd.isSupported()) {
46240
- params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE5));
45942
+ params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE3));
46241
45943
  return noop4;
46242
45944
  }
46243
45945
  var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
@@ -47266,11 +46968,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47266
46968
  options
47267
46969
  });
47268
46970
  },
47269
- /** AdMob */
47270
- loadAdMobInterstitialAd: GoogleAdMob.loadAdMobInterstitialAd,
47271
- showAdMobInterstitialAd: GoogleAdMob.showAdMobInterstitialAd,
47272
- loadAdMobRewardedAd: GoogleAdMob.loadAdMobRewardedAd,
47273
- showAdMobRewardedAd: GoogleAdMob.showAdMobRewardedAd,
47274
46971
  /** AdMobV2 */
47275
46972
  loadAppsInTossAdMob: GoogleAdMob.loadAppsInTossAdMob,
47276
46973
  showAppsInTossAdMob: GoogleAdMob.showAppsInTossAdMob,
@@ -47284,17 +46981,13 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47284
46981
  requestOneTimePurchase
47285
46982
  }),
47286
46983
  constantHandlerMap: _object_spread_props(_object_spread(_object_spread_props(_object_spread({}, constant_bridges_exports), {
47287
- getSafeAreaTop: function() {
47288
- return top;
47289
- },
47290
- getSafeAreaBottom: function() {
47291
- return bottom;
47292
- },
47293
- getSafeAreaLeft: function() {
47294
- return insets.left;
47295
- },
47296
- getSafeAreaRight: function() {
47297
- return insets.right;
46984
+ getSafeAreaInsets: function() {
46985
+ return {
46986
+ top,
46987
+ bottom,
46988
+ left: insets.left,
46989
+ right: insets.right
46990
+ };
47298
46991
  }
47299
46992
  }), Object.fromEntries(Object.entries(global2).map(function(param) {
47300
46993
  var _$_param = _sliced_to_array(param, 2), key = _$_param[0], value = _$_param[1];
@@ -47305,11 +46998,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47305
46998
  }
47306
46999
  ];
47307
47000
  }))), {
47308
- /** AdMob */
47309
- loadAdMobInterstitialAd_isSupported: GoogleAdMob.loadAdMobInterstitialAd.isSupported,
47310
- showAdMobInterstitialAd_isSupported: GoogleAdMob.showAdMobInterstitialAd.isSupported,
47311
- loadAdMobRewardedAd_isSupported: GoogleAdMob.loadAdMobRewardedAd.isSupported,
47312
- showAdMobRewardedAd_isSupported: GoogleAdMob.showAdMobRewardedAd.isSupported,
47313
47001
  /** AdMobV2 */
47314
47002
  loadAppsInTossAdMob_isSupported: GoogleAdMob.loadAppsInTossAdMob.isSupported,
47315
47003
  showAppsInTossAdMob_isSupported: GoogleAdMob.showAppsInTossAdMob.isSupported,
@@ -47449,7 +47137,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47449
47137
  if ([
47450
47138
  "https:",
47451
47139
  "http:"
47452
- ].includes(url.protocol)) {
47140
+ ].includes(url.protocol) || url.href === "about:blank") {
47453
47141
  return true;
47454
47142
  } else {
47455
47143
  var _convertIntentURL;
@@ -47491,7 +47179,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47491
47179
  return typeof script === "string";
47492
47180
  }).join("\n");
47493
47181
  }
47494
- var import_react_native197, import_react210, import_react211, import_react212, import_react213, import_jsx_runtime218, import_react214, import_jsx_runtime219, import_react215, import_react_native203, import_react216, import_react_native205, import_react217, import_react_native207, import_react218, import_react219, import_react220, import_react221, import_jsx_runtime220, import_jsx_runtime221, import_react222, import_react_native210, import_react223, import_react224, import_react225, import_react_native215, import_react_native216, import_jsx_runtime222, import_jsx_runtime223, import_jsx_runtime224, import_jsx_runtime225, import_react226, import_jsx_runtime226, import_jsx_runtime227, import_react_native219, import_jsx_runtime228, import_jsx_runtime229, import_jsx_runtime230, import_react227, import_react_native221, import_react228, import_react_native222, import_react229, import_react_native224, import_jsx_runtime231, import_jsx_runtime232, import_react230, import_react231, import_jsx_runtime233, import_jsx_runtime234, import_react232, import_react233, import_react234, import_react235, import_react_native230, import_react236, import_react237, import_jsx_runtime235, __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;
47182
+ var import_react_native197, import_react210, import_react211, import_react212, import_react213, import_jsx_runtime218, import_react214, import_jsx_runtime219, import_react215, import_react_native203, import_react216, import_react_native205, import_react217, import_react_native207, import_react218, import_react219, import_react220, import_react221, import_jsx_runtime220, import_jsx_runtime221, import_react222, import_react_native210, import_react223, import_react224, import_react225, import_react_native215, import_react_native216, import_jsx_runtime222, import_jsx_runtime223, import_jsx_runtime224, import_jsx_runtime225, import_react226, import_jsx_runtime226, import_jsx_runtime227, import_react_native219, import_jsx_runtime228, import_jsx_runtime229, import_jsx_runtime230, import_react227, import_react_native221, import_react228, import_react_native222, import_react229, import_react_native224, import_jsx_runtime231, import_jsx_runtime232, import_react230, import_react231, import_jsx_runtime233, import_jsx_runtime234, import_react232, import_react233, import_react234, import_react235, import_react_native230, import_react236, import_react237, import_jsx_runtime235, __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_MESSAGE3, ENVIRONMENT3, 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;
47495
47183
  var init_dist8 = __esm({
47496
47184
  "../../../.yarn/__virtual__/@apps-in-toss-framework-virtual-afbad361af/1/packages/apps-in-toss/framework/dist/index.js"() {
47497
47185
  "use strict";
@@ -48250,10 +47938,10 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
48250
47938
  sessionId = generateSessionId();
48251
47939
  ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION = "5.241.0";
48252
47940
  IOS_FETCH_TOSS_AD_SUPPORTED_VERSION = "5.241.0";
48253
- UNSUPPORTED_ERROR_MESSAGE5 = "This feature is not supported in the current environment";
48254
- ENVIRONMENT5 = getOperationalEnvironment();
47941
+ UNSUPPORTED_ERROR_MESSAGE3 = "This feature is not supported in the current environment";
47942
+ ENVIRONMENT3 = getOperationalEnvironment();
48255
47943
  fetchTossAd.isSupported = function() {
48256
- if (ENVIRONMENT5 !== "toss") {
47944
+ if (ENVIRONMENT3 !== "toss") {
48257
47945
  return false;
48258
47946
  }
48259
47947
  return isMinVersionSupported({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@apps-in-toss/web-framework",
3
3
  "type": "module",
4
- "version": "1.7.0",
4
+ "version": "1.7.1",
5
5
  "description": "Web Framework for Apps In Toss",
6
6
  "scripts": {
7
7
  "typecheck": "tsc --noEmit",
@@ -86,12 +86,12 @@
86
86
  "zod": "3.24.4"
87
87
  },
88
88
  "dependencies": {
89
- "@apps-in-toss/bridge-core": "1.7.0",
90
- "@apps-in-toss/cli": "1.7.0",
91
- "@apps-in-toss/framework": "1.7.0",
92
- "@apps-in-toss/plugins": "1.7.0",
93
- "@apps-in-toss/web-analytics": "1.7.0",
94
- "@apps-in-toss/web-bridge": "1.7.0",
89
+ "@apps-in-toss/bridge-core": "1.7.1",
90
+ "@apps-in-toss/cli": "1.7.1",
91
+ "@apps-in-toss/framework": "1.7.1",
92
+ "@apps-in-toss/plugins": "1.7.1",
93
+ "@apps-in-toss/web-analytics": "1.7.1",
94
+ "@apps-in-toss/web-bridge": "1.7.1",
95
95
  "@babel/core": "7.23.9",
96
96
  "@granite-js/cli": "0.1.31",
97
97
  "@granite-js/mpack": "0.1.31",