@apps-in-toss/framework 1.7.0 → 1.8.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @apps-in-toss/framework
2
2
 
3
+ ## 1.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ [[AIT-3762]: GoogleAdMob 로딩 여부 확인하는 브릿지 추가](https://github.toss.bz/toss/apps-in-toss-sdk/pull/18)
8
+
9
+ 구글 광고가 로딩되었는지 확인하는 isAdMobLoaded를 추가합니다.
10
+
11
+ ### Patch Changes
12
+
13
+ [[AP-2118] 토스애즈 integrated ad 최소 앱버전 5.244.1로 변경 - changeset 생성](https://github.toss.bz/toss/apps-in-toss-sdk/pull/21)
14
+
15
+ 토스애즈 integrated ad 최소 앱버전을 5.244.1로 변경
16
+
17
+ ## 1.7.1
18
+
19
+ ### Patch Changes
20
+
21
+ [[AIT-3691]: Unable to open URL: about:blank 이슈 해결](https://github.toss.bz/toss/apps-in-toss-sdk/pull/13)
22
+
23
+ Unable to open URL: about:blank 이슈를 해결합니다.
24
+
3
25
  ## 1.7.0
4
26
 
5
27
  ## 1.6.2
package/dist/index.cjs CHANGED
@@ -1700,8 +1700,8 @@ function postEventTracking(params) {
1700
1700
 
1701
1701
  // src/ads/integratedAd.ts
1702
1702
  var INTEGRATED_AD_SDK_VERSION = "0.0.0";
1703
- var ANDROID_INTEGRATED_AD_SUPPORTED_VERSION = "5.241.0";
1704
- var IOS_INTEGRATED_AD_SUPPORTED_VERSION = "5.241.0";
1703
+ var ANDROID_INTEGRATED_AD_SUPPORTED_VERSION = "5.244.1";
1704
+ var IOS_INTEGRATED_AD_SUPPORTED_VERSION = "5.244.1";
1705
1705
  var UNSUPPORTED_ERROR_MESSAGE2 = "This feature is not supported in the current environment";
1706
1706
  var INTG_AD_ADM_FALLBACK_RID_MAP = {};
1707
1707
  function integratedAdIsSupported() {
@@ -2625,11 +2625,6 @@ function WebView({ type, local, onMessage, ...props }) {
2625
2625
  },
2626
2626
  /** @internal */
2627
2627
  appBridgeCallbackEvent: ({ onEvent, onError, options }) => import_native_modules23.appsInTossEvent.addEventListener("appBridgeCallbackEvent", { onEvent, onError, options }),
2628
- /** AdMob */
2629
- loadAdMobInterstitialAd: import_native_modules23.GoogleAdMob.loadAdMobInterstitialAd,
2630
- showAdMobInterstitialAd: import_native_modules23.GoogleAdMob.showAdMobInterstitialAd,
2631
- loadAdMobRewardedAd: import_native_modules23.GoogleAdMob.loadAdMobRewardedAd,
2632
- showAdMobRewardedAd: import_native_modules23.GoogleAdMob.showAdMobRewardedAd,
2633
2628
  /** AdMobV2 */
2634
2629
  loadAppsInTossAdMob: import_native_modules23.GoogleAdMob.loadAppsInTossAdMob,
2635
2630
  showAppsInTossAdMob: import_native_modules23.GoogleAdMob.showAppsInTossAdMob,
@@ -2644,19 +2639,17 @@ function WebView({ type, local, onMessage, ...props }) {
2644
2639
  },
2645
2640
  constantHandlerMap: {
2646
2641
  ...appsInTossConstantBridges,
2647
- getSafeAreaTop: () => top,
2648
- getSafeAreaBottom: () => bottom,
2649
- getSafeAreaLeft: () => insets.left,
2650
- getSafeAreaRight: () => insets.right,
2642
+ getSafeAreaInsets: () => ({
2643
+ top,
2644
+ bottom,
2645
+ left: insets.left,
2646
+ right: insets.right
2647
+ }),
2651
2648
  ...Object.fromEntries(Object.entries(global2).map(([key, value]) => [key, () => value])),
2652
- /** AdMob */
2653
- loadAdMobInterstitialAd_isSupported: import_native_modules23.GoogleAdMob.loadAdMobInterstitialAd.isSupported,
2654
- showAdMobInterstitialAd_isSupported: import_native_modules23.GoogleAdMob.showAdMobInterstitialAd.isSupported,
2655
- loadAdMobRewardedAd_isSupported: import_native_modules23.GoogleAdMob.loadAdMobRewardedAd.isSupported,
2656
- showAdMobRewardedAd_isSupported: import_native_modules23.GoogleAdMob.showAdMobRewardedAd.isSupported,
2657
2649
  /** AdMobV2 */
2658
2650
  loadAppsInTossAdMob_isSupported: import_native_modules23.GoogleAdMob.loadAppsInTossAdMob.isSupported,
2659
2651
  showAppsInTossAdMob_isSupported: import_native_modules23.GoogleAdMob.showAppsInTossAdMob.isSupported,
2652
+ isAppsInTossAdMobLoaded_isSupported: import_native_modules23.GoogleAdMob.isAppsInTossAdMobLoaded.isSupported,
2660
2653
  /** IntegratedAd */
2661
2654
  loadFullScreenAd_isSupported: loadFullScreenAdForWeb.isSupported,
2662
2655
  showFullScreenAd_isSupported: showFullScreenAd.isSupported,
@@ -2695,6 +2688,8 @@ function WebView({ type, local, onMessage, ...props }) {
2695
2688
  getPendingOrders: import_native_modules23.IAP.getPendingOrders,
2696
2689
  getCompletedOrRefundedOrders: import_native_modules23.IAP.getCompletedOrRefundedOrders,
2697
2690
  completeProductGrant: import_native_modules23.IAP.completeProductGrant,
2691
+ /** AdMobV2 */
2692
+ isAppsInTossAdMobLoaded: import_native_modules23.GoogleAdMob.isAppsInTossAdMobLoaded,
2698
2693
  /** Toss Ads */
2699
2694
  tossAdEventLog,
2700
2695
  /** Private */
@@ -2766,7 +2761,7 @@ function WebView({ type, local, onMessage, ...props }) {
2766
2761
  onShouldStartLoadWithRequest: (event) => {
2767
2762
  try {
2768
2763
  const url = new URL(event.url);
2769
- if (["https:", "http:"].includes(url.protocol)) {
2764
+ if (["https:", "http:"].includes(url.protocol) || url.href === "about:blank") {
2770
2765
  return true;
2771
2766
  } else {
2772
2767
  import_react_native39.Linking.openURL(convertIntentURL(url) ?? url.href);
package/dist/index.js CHANGED
@@ -1687,8 +1687,8 @@ function postEventTracking(params) {
1687
1687
 
1688
1688
  // src/ads/integratedAd.ts
1689
1689
  var INTEGRATED_AD_SDK_VERSION = "0.0.0";
1690
- var ANDROID_INTEGRATED_AD_SUPPORTED_VERSION = "5.241.0";
1691
- var IOS_INTEGRATED_AD_SUPPORTED_VERSION = "5.241.0";
1690
+ var ANDROID_INTEGRATED_AD_SUPPORTED_VERSION = "5.244.1";
1691
+ var IOS_INTEGRATED_AD_SUPPORTED_VERSION = "5.244.1";
1692
1692
  var UNSUPPORTED_ERROR_MESSAGE2 = "This feature is not supported in the current environment";
1693
1693
  var INTG_AD_ADM_FALLBACK_RID_MAP = {};
1694
1694
  function integratedAdIsSupported() {
@@ -2612,11 +2612,6 @@ function WebView({ type, local, onMessage, ...props }) {
2612
2612
  },
2613
2613
  /** @internal */
2614
2614
  appBridgeCallbackEvent: ({ onEvent, onError, options }) => appsInTossEvent.addEventListener("appBridgeCallbackEvent", { onEvent, onError, options }),
2615
- /** AdMob */
2616
- loadAdMobInterstitialAd: GoogleAdMob2.loadAdMobInterstitialAd,
2617
- showAdMobInterstitialAd: GoogleAdMob2.showAdMobInterstitialAd,
2618
- loadAdMobRewardedAd: GoogleAdMob2.loadAdMobRewardedAd,
2619
- showAdMobRewardedAd: GoogleAdMob2.showAdMobRewardedAd,
2620
2615
  /** AdMobV2 */
2621
2616
  loadAppsInTossAdMob: GoogleAdMob2.loadAppsInTossAdMob,
2622
2617
  showAppsInTossAdMob: GoogleAdMob2.showAppsInTossAdMob,
@@ -2631,19 +2626,17 @@ function WebView({ type, local, onMessage, ...props }) {
2631
2626
  },
2632
2627
  constantHandlerMap: {
2633
2628
  ...appsInTossConstantBridges,
2634
- getSafeAreaTop: () => top,
2635
- getSafeAreaBottom: () => bottom,
2636
- getSafeAreaLeft: () => insets.left,
2637
- getSafeAreaRight: () => insets.right,
2629
+ getSafeAreaInsets: () => ({
2630
+ top,
2631
+ bottom,
2632
+ left: insets.left,
2633
+ right: insets.right
2634
+ }),
2638
2635
  ...Object.fromEntries(Object.entries(global2).map(([key, value]) => [key, () => value])),
2639
- /** AdMob */
2640
- loadAdMobInterstitialAd_isSupported: GoogleAdMob2.loadAdMobInterstitialAd.isSupported,
2641
- showAdMobInterstitialAd_isSupported: GoogleAdMob2.showAdMobInterstitialAd.isSupported,
2642
- loadAdMobRewardedAd_isSupported: GoogleAdMob2.loadAdMobRewardedAd.isSupported,
2643
- showAdMobRewardedAd_isSupported: GoogleAdMob2.showAdMobRewardedAd.isSupported,
2644
2636
  /** AdMobV2 */
2645
2637
  loadAppsInTossAdMob_isSupported: GoogleAdMob2.loadAppsInTossAdMob.isSupported,
2646
2638
  showAppsInTossAdMob_isSupported: GoogleAdMob2.showAppsInTossAdMob.isSupported,
2639
+ isAppsInTossAdMobLoaded_isSupported: GoogleAdMob2.isAppsInTossAdMobLoaded.isSupported,
2647
2640
  /** IntegratedAd */
2648
2641
  loadFullScreenAd_isSupported: loadFullScreenAdForWeb.isSupported,
2649
2642
  showFullScreenAd_isSupported: showFullScreenAd.isSupported,
@@ -2682,6 +2675,8 @@ function WebView({ type, local, onMessage, ...props }) {
2682
2675
  getPendingOrders: IAP.getPendingOrders,
2683
2676
  getCompletedOrRefundedOrders: IAP.getCompletedOrRefundedOrders,
2684
2677
  completeProductGrant: IAP.completeProductGrant,
2678
+ /** AdMobV2 */
2679
+ isAppsInTossAdMobLoaded: GoogleAdMob2.isAppsInTossAdMobLoaded,
2685
2680
  /** Toss Ads */
2686
2681
  tossAdEventLog,
2687
2682
  /** Private */
@@ -2753,7 +2748,7 @@ function WebView({ type, local, onMessage, ...props }) {
2753
2748
  onShouldStartLoadWithRequest: (event) => {
2754
2749
  try {
2755
2750
  const url = new URL(event.url);
2756
- if (["https:", "http:"].includes(url.protocol)) {
2751
+ if (["https:", "http:"].includes(url.protocol) || url.href === "about:blank") {
2757
2752
  return true;
2758
2753
  } else {
2759
2754
  Linking.openURL(convertIntentURL(url) ?? url.href);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@apps-in-toss/framework",
3
3
  "type": "module",
4
- "version": "1.7.0",
4
+ "version": "1.8.0",
5
5
  "description": "The framework for Apps In Toss",
6
6
  "scripts": {
7
7
  "typecheck": "tsc --noEmit",
@@ -55,11 +55,11 @@
55
55
  "ait": "./bin/ait.js"
56
56
  },
57
57
  "dependencies": {
58
- "@apps-in-toss/analytics": "1.7.0",
59
- "@apps-in-toss/cli": "1.7.0",
60
- "@apps-in-toss/native-modules": "1.7.0",
61
- "@apps-in-toss/plugins": "1.7.0",
62
- "@apps-in-toss/types": "1.7.0",
58
+ "@apps-in-toss/analytics": "1.8.0",
59
+ "@apps-in-toss/cli": "1.8.0",
60
+ "@apps-in-toss/native-modules": "1.8.0",
61
+ "@apps-in-toss/plugins": "1.8.0",
62
+ "@apps-in-toss/types": "1.8.0",
63
63
  "es-hangul": "^2.3.2"
64
64
  },
65
65
  "devDependencies": {