@apps-in-toss/framework 1.6.2 → 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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @apps-in-toss/framework
2
2
 
3
+ ## 1.7.1
4
+
5
+ ### Patch Changes
6
+
7
+ [[AIT-3691]: Unable to open URL: about:blank 이슈 해결](https://github.toss.bz/toss/apps-in-toss-sdk/pull/13)
8
+
9
+ Unable to open URL: about:blank 이슈를 해결합니다.
10
+
11
+ ## 1.7.0
12
+
3
13
  ## 1.6.2
4
14
 
5
15
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -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,16 +2639,13 @@ 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,
@@ -2766,7 +2758,7 @@ function WebView({ type, local, onMessage, ...props }) {
2766
2758
  onShouldStartLoadWithRequest: (event) => {
2767
2759
  try {
2768
2760
  const url = new URL(event.url);
2769
- if (["https:", "http:"].includes(url.protocol)) {
2761
+ if (["https:", "http:"].includes(url.protocol) || url.href === "about:blank") {
2770
2762
  return true;
2771
2763
  } else {
2772
2764
  import_react_native39.Linking.openURL(convertIntentURL(url) ?? url.href);
package/dist/index.js CHANGED
@@ -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,16 +2626,13 @@ 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,
@@ -2753,7 +2745,7 @@ function WebView({ type, local, onMessage, ...props }) {
2753
2745
  onShouldStartLoadWithRequest: (event) => {
2754
2746
  try {
2755
2747
  const url = new URL(event.url);
2756
- if (["https:", "http:"].includes(url.protocol)) {
2748
+ if (["https:", "http:"].includes(url.protocol) || url.href === "about:blank") {
2757
2749
  return true;
2758
2750
  } else {
2759
2751
  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.6.2",
4
+ "version": "1.7.1",
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.6.2",
59
- "@apps-in-toss/cli": "1.6.2",
60
- "@apps-in-toss/native-modules": "1.6.2",
61
- "@apps-in-toss/plugins": "1.6.2",
62
- "@apps-in-toss/types": "1.6.2",
58
+ "@apps-in-toss/analytics": "1.7.1",
59
+ "@apps-in-toss/cli": "1.7.1",
60
+ "@apps-in-toss/native-modules": "1.7.1",
61
+ "@apps-in-toss/plugins": "1.7.1",
62
+ "@apps-in-toss/types": "1.7.1",
63
63
  "es-hangul": "^2.3.2"
64
64
  },
65
65
  "devDependencies": {