@apps-in-toss/web-bridge 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.
Files changed (48) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/{built → dist}/index.cjs +19 -265
  3. package/{built → dist}/index.d.cts +14 -270
  4. package/{built → dist}/index.d.ts +14 -270
  5. package/{built → dist}/index.js +60 -306
  6. package/package.json +12 -12
  7. /package/{built → dist}/appLogin.d.ts +0 -0
  8. /package/{built → dist}/appsInTossSignTossCert.d.ts +0 -0
  9. /package/{built → dist}/bridge.d.ts +0 -0
  10. /package/{built → dist}/bridge.js +0 -0
  11. /package/{built → dist}/checkoutPayment.d.ts +0 -0
  12. /package/{built → dist}/closeView.d.ts +0 -0
  13. /package/{built → dist}/contactsViral.d.ts +0 -0
  14. /package/{built → dist}/eventLog.d.ts +0 -0
  15. /package/{built → dist}/fetchAlbumPhotos.d.ts +0 -0
  16. /package/{built → dist}/fetchContacts.d.ts +0 -0
  17. /package/{built → dist}/generateHapticFeedback.d.ts +0 -0
  18. /package/{built → dist}/getClipboardText.d.ts +0 -0
  19. /package/{built → dist}/getCurrentLocation.d.ts +0 -0
  20. /package/{built → dist}/getDeviceId.d.ts +0 -0
  21. /package/{built → dist}/getGameCenterGameProfile.d.ts +0 -0
  22. /package/{built → dist}/getIsTossLoginIntegratedService.d.ts +0 -0
  23. /package/{built → dist}/getLocale.d.ts +0 -0
  24. /package/{built → dist}/getNetworkStatus.d.ts +0 -0
  25. /package/{built → dist}/getOperationalEnvironment.d.ts +0 -0
  26. /package/{built → dist}/getPermission.d.ts +0 -0
  27. /package/{built → dist}/getPlatformOS.d.ts +0 -0
  28. /package/{built → dist}/getSchemeUri.d.ts +0 -0
  29. /package/{built → dist}/getTossAppVersion.d.ts +0 -0
  30. /package/{built → dist}/getTossShareLink.d.ts +0 -0
  31. /package/{built → dist}/getUserKeyForGame.d.ts +0 -0
  32. /package/{built → dist}/grantPromotionRewardForGame.d.ts +0 -0
  33. /package/{built → dist}/onVisibilityChangedByTransparentServiceWeb.d.ts +0 -0
  34. /package/{built → dist}/openCamera.d.ts +0 -0
  35. /package/{built → dist}/openGameCenterLeaderboard.d.ts +0 -0
  36. /package/{built → dist}/openPermissionDialog.d.ts +0 -0
  37. /package/{built → dist}/openURL.d.ts +0 -0
  38. /package/{built → dist}/requestPermission.d.ts +0 -0
  39. /package/{built → dist}/saveBase64Data.d.ts +0 -0
  40. /package/{built → dist}/setClipboardText.d.ts +0 -0
  41. /package/{built → dist}/setDeviceOrientation.d.ts +0 -0
  42. /package/{built → dist}/setIosSwipeGestureEnabled.d.ts +0 -0
  43. /package/{built → dist}/setScreenAwakeMode.d.ts +0 -0
  44. /package/{built → dist}/setSecureScreen.d.ts +0 -0
  45. /package/{built → dist}/share.d.ts +0 -0
  46. /package/{built → dist}/startUpdateLocation.d.ts +0 -0
  47. /package/{built → dist}/submitGameCenterLeaderBoardScore.d.ts +0 -0
  48. /package/{built → dist}/types.d.ts +0 -0
@@ -332,16 +332,13 @@ var IAP = {
332
332
 
333
333
  // src/getSafeAreaInsets.ts
334
334
  import { createConstantBridge as createConstantBridge2 } from "@apps-in-toss/bridge-core";
335
- var getSafeAreaBottom = createConstantBridge2("getSafeAreaBottom");
336
- var getSafeAreaTop = createConstantBridge2("getSafeAreaTop");
337
- var getSafeAreaLeft = createConstantBridge2("getSafeAreaLeft");
338
- var getSafeAreaRight = createConstantBridge2("getSafeAreaRight");
335
+ var _getSafeAreaInsets = createConstantBridge2("getSafeAreaInsets");
339
336
  function getSafeAreaInsets() {
340
- return { top: getSafeAreaTop(), bottom: getSafeAreaBottom(), left: getSafeAreaLeft(), right: getSafeAreaRight() };
337
+ return _getSafeAreaInsets();
341
338
  }
342
339
 
343
340
  // src/safeAreaInsets.ts
344
- import { createEventBridge as createEventBridge2 } from "@apps-in-toss/bridge-core";
341
+ import { createEventBridge as createEventBridge2, createConstantBridge as createConstantBridge3 } from "@apps-in-toss/bridge-core";
345
342
  function subscribeSafeAreaInsets({ onEvent }) {
346
343
  return createEventBridge2("safeAreaInsetsChange")({
347
344
  onEvent,
@@ -349,272 +346,15 @@ function subscribeSafeAreaInsets({ onEvent }) {
349
346
  }
350
347
  });
351
348
  }
349
+ var _getSafeAreaInsets2 = createConstantBridge3("getSafeAreaInsets");
352
350
  var SafeAreaInsets = {
353
- get: getSafeAreaInsets,
351
+ get: _getSafeAreaInsets2,
354
352
  subscribe: subscribeSafeAreaInsets
355
353
  };
356
354
 
357
355
  // src/googleAdMob.ts
358
- import { createConstantBridge as createConstantBridge3, createEventBridge as createEventBridge3 } from "@apps-in-toss/bridge-core";
356
+ import { createAsyncBridge as createAsyncBridge3, createConstantBridge as createConstantBridge4, createEventBridge as createEventBridge3 } from "@apps-in-toss/bridge-core";
359
357
  var GoogleAdMob = {
360
- /**
361
- * @public
362
- * @category 광고
363
- * @name loadAdMobInterstitialAd
364
- * @deprecated 이 함수는 더 이상 사용되지 않습니다. 대신 {@link GoogleAdMob.loadAppsInTossAdMob}를 사용해주세요.
365
- *
366
- * @example
367
- * ### 뷰 진입 시 광고 불러오기 (loadAppsInTossAdMob로 변경 예제)
368
- * ```tsx
369
- * import { GoogleAdMob } from '@apps-in-toss/framework';
370
- * import { useEffect } from 'react';
371
- * import { View, Text } from 'react-native';
372
- *
373
- * const AD_GROUP_ID = '<AD_GROUP_ID>';
374
- *
375
- * function Page() {
376
- * useEffect(() => {
377
- * if (GoogleAdMob.loadAppsInTossAdMob.isSupported() !== true) {
378
- * return;
379
- * }
380
- *
381
- * const cleanup = GoogleAdMob.loadAppsInTossAdMob({
382
- * options: {
383
- * adGroupId: AD_GROUP_ID,
384
- * },
385
- * onEvent: (event) => {
386
- * switch (event.type) {
387
- * case 'loaded':
388
- * console.log('광고 로드 성공', event.data);
389
- * break;
390
- * }
391
- * },
392
- * onError: (error) => {
393
- * console.error('광고 불러오기 실패', error);
394
- * },
395
- * });
396
- *
397
- * return cleanup;
398
- * }, []);
399
- *
400
- * return (
401
- * <View>
402
- * <Text>Page</Text>
403
- * </View>
404
- * );
405
- * }
406
- * ```
407
- */
408
- loadAdMobInterstitialAd: Object.assign(
409
- createEventBridge3("loadAdMobInterstitialAd"),
410
- {
411
- isSupported: createConstantBridge3("loadAdMobInterstitialAd_isSupported")
412
- }
413
- ),
414
- /**
415
- * @public
416
- * @category 광고
417
- * @name showAdMobInterstitialAd
418
- * @deprecated 이 함수는 더 이상 사용되지 않습니다. 대신 {@link GoogleAdMob.showAppsInTossAdMob}를 사용해주세요.
419
- *
420
- * @example
421
- * ### 버튼 눌러 불러온 광고 보여주기 (showAppsInTossAdMob로 대체 사용)
422
- * ```tsx
423
- * import { GoogleAdMob } from '@apps-in-toss/framework';
424
- * import { View, Text, Button } from 'react-native';
425
- *
426
- * const AD_GROUP_ID = '<AD_GROUP_ID>';
427
- *
428
- * function Page() {
429
- * const handlePress = () => {
430
- * if (GoogleAdMob.showAppsInTossAdMob.isSupported() !== true) {
431
- * return;
432
- * }
433
- *
434
- * GoogleAdMob.showAppsInTossAdMob({
435
- * options: {
436
- * adGroupId: AD_GROUP_ID,
437
- * },
438
- * onEvent: (event) => {
439
- * switch (event.type) {
440
- * case 'requested':
441
- * console.log('광고 보여주기 요청 완료');
442
- * break;
443
- *
444
- * case 'clicked':
445
- * console.log('광고 클릭');
446
- * break;
447
- *
448
- * case 'dismissed':
449
- * console.log('광고 닫힘');
450
- * navigation.navigate('/examples/google-admob-interstitial-ad-landing');
451
- * break;
452
- *
453
- * case 'failedToShow':
454
- * console.log('광고 보여주기 실패');
455
- * break;
456
- *
457
- * case 'impression':
458
- * console.log('광고 노출');
459
- * break;
460
- *
461
- * case 'userEarnedReward':
462
- * console.log('광고 보상 획득 unitType:', event.data.unitType);
463
- * console.log('광고 보상 획득 unitAmount:', event.data.unitAmount);
464
- * break;
465
- *
466
- * case 'show':
467
- * console.log('광고 컨텐츠 보여졌음');
468
- * break;
469
- * }
470
- * },
471
- * onError: (error) => {
472
- * console.error('광고 보여주기 실패', error);
473
- * },
474
- * });
475
- * }
476
- *
477
- * return (
478
- * <Button onPress={handlePress} title="광고 보기" />
479
- * );
480
- * }
481
- * ```
482
- */
483
- showAdMobInterstitialAd: Object.assign(
484
- createEventBridge3("showAdMobInterstitialAd"),
485
- {
486
- isSupported: createConstantBridge3("showAdMobInterstitialAd_isSupported")
487
- }
488
- ),
489
- /**
490
- * @public
491
- * @category 광고
492
- * @name loadAdMobRewardedAd
493
- * @deprecated 이 함수는 더 이상 사용되지 않습니다. 대신 {@link GoogleAdMob.loadAppsInTossAdMob}를 사용해주세요.
494
- *
495
- * @example
496
- * ### 뷰 진입 시 광고 불러오기 (loadAppsInTossAdMob로 변경 예제)
497
- * ```tsx
498
- * import { GoogleAdMob } from '@apps-in-toss/framework';
499
- * import { useEffect } from 'react';
500
- * import { View, Text } from 'react-native';
501
- *
502
- * const AD_GROUP_ID = '<AD_GROUP_ID>';
503
- *
504
- * function Page() {
505
- * useEffect(() => {
506
- * if (GoogleAdMob.loadAppsInTossAdMob.isSupported() !== true) {
507
- * return;
508
- * }
509
- *
510
- * const cleanup = GoogleAdMob.loadAppsInTossAdMob({
511
- * options: {
512
- * adGroupId: AD_GROUP_ID,
513
- * },
514
- * onEvent: (event) => {
515
- * switch (event.type) {
516
- * case 'loaded':
517
- * console.log('광고 로드 성공', event.data);
518
- * break;
519
- * }
520
- * },
521
- * onError: (error) => {
522
- * console.error('광고 불러오기 실패', error);
523
- * },
524
- * });
525
- *
526
- * return cleanup;
527
- * }, []);
528
- *
529
- * return (
530
- * <View>
531
- * <Text>Page</Text>
532
- * </View>
533
- * );
534
- * }
535
- * ```
536
- */
537
- loadAdMobRewardedAd: Object.assign(
538
- createEventBridge3("loadAdMobRewardedAd"),
539
- {
540
- isSupported: createConstantBridge3("loadAdMobRewardedAd_isSupported")
541
- }
542
- ),
543
- /**
544
- * @public
545
- * @category 광고
546
- * @name showAdMobRewardedAd
547
- * @deprecated 이 함수는 더 이상 사용되지 않습니다. 대신 {@link GoogleAdMob.showAppsInTossAdMob}를 사용해주세요.
548
- *
549
- * @example
550
- * ### 버튼 눌러 불러온 광고 보여주기 (showAppsInTossAdMob로 대체 사용)
551
- * ```tsx
552
- * import { GoogleAdMob } from '@apps-in-toss/framework';
553
- * import { View, Text, Button } from 'react-native';
554
- *
555
- * const AD_GROUP_ID = '<AD_GROUP_ID>';
556
- *
557
- * function Page() {
558
- * const handlePress = () => {
559
- * if (GoogleAdMob.showAppsInTossAdMob.isSupported() !== true) {
560
- * return;
561
- * }
562
- *
563
- * GoogleAdMob.showAppsInTossAdMob({
564
- * options: {
565
- * adGroupId: AD_GROUP_ID,
566
- * },
567
- * onEvent: (event) => {
568
- * switch (event.type) {
569
- * case 'requested':
570
- * console.log('광고 보여주기 요청 완료');
571
- * break;
572
- *
573
- * case 'clicked':
574
- * console.log('광고 클릭');
575
- * break;
576
- *
577
- * case 'dismissed':
578
- * console.log('광고 닫힘');
579
- * navigation.navigate('/examples/google-admob-interstitial-ad-landing');
580
- * break;
581
- *
582
- * case 'failedToShow':
583
- * console.log('광고 보여주기 실패');
584
- * break;
585
- *
586
- * case 'impression':
587
- * console.log('광고 노출');
588
- * break;
589
- *
590
- * case 'userEarnedReward':
591
- * console.log('광고 보상 획득 unitType:', event.data.unitType);
592
- * console.log('광고 보상 획득 unitAmount:', event.data.unitAmount);
593
- * break;
594
- *
595
- * case 'show':
596
- * console.log('광고 컨텐츠 보여졌음');
597
- * break;
598
- * }
599
- * },
600
- * onError: (error) => {
601
- * console.error('광고 보여주기 실패', error);
602
- * },
603
- * });
604
- * }
605
- *
606
- * return (
607
- * <Button onPress={handlePress} title="광고 보기" />
608
- * );
609
- * }
610
- * ```
611
- */
612
- showAdMobRewardedAd: Object.assign(
613
- createEventBridge3("showAdMobRewardedAd"),
614
- {
615
- isSupported: createConstantBridge3("showAdMobRewardedAd_isSupported")
616
- }
617
- ),
618
358
  /**
619
359
  * @public
620
360
  * @category 광고
@@ -670,7 +410,7 @@ var GoogleAdMob = {
670
410
  * ```
671
411
  */
672
412
  loadAppsInTossAdMob: Object.assign(createEventBridge3("loadAppsInTossAdMob"), {
673
- isSupported: createConstantBridge3("loadAppsInTossAdMob_isSupported")
413
+ isSupported: createConstantBridge4("loadAppsInTossAdMob_isSupported")
674
414
  }),
675
415
  /**
676
416
  * @public
@@ -748,8 +488,22 @@ var GoogleAdMob = {
748
488
  * ```
749
489
  */
750
490
  showAppsInTossAdMob: Object.assign(createEventBridge3("showAppsInTossAdMob"), {
751
- isSupported: createConstantBridge3("showAppsInTossAdMob_isSupported")
752
- })
491
+ isSupported: createConstantBridge4("showAppsInTossAdMob_isSupported")
492
+ }),
493
+ /**
494
+ * @public
495
+ * @category 광고
496
+ * @name showAppsInTossAdMob
497
+ * @description 이 함수는 `loadAppsInTossAdMob` 로 광고가 잘 불러와졌는지 확인해요.
498
+ * @param {string} params.adUnitId 광고 그룹 단위 ID예요.
499
+ * @property {() => boolean} [isSupported] 현재 실행 중인 앱(예: 토스 앱, 개발용 샌드박스 앱 등)에서 `isAppsInTossAdMobLoaded` 를 지원하는지 확인하는 함수예요. 기능을 사용하기 전에 지원 여부를 확인해야 해요.
500
+ */
501
+ isAppsInTossAdMobLoaded: Object.assign(
502
+ createAsyncBridge3("isAppsInTossAdMobLoaded"),
503
+ {
504
+ isSupported: createConstantBridge4("isAppsInTossAdMobLoaded_isSupported")
505
+ }
506
+ )
753
507
  };
754
508
 
755
509
  // src/graniteEvent.ts
@@ -783,17 +537,17 @@ var appsInTossEvent = {
783
537
  };
784
538
 
785
539
  // src/env.ts
786
- import { createConstantBridge as createConstantBridge4 } from "@apps-in-toss/bridge-core";
540
+ import { createConstantBridge as createConstantBridge5 } from "@apps-in-toss/bridge-core";
787
541
  var env = {
788
- getDeploymentId: createConstantBridge4("getDeploymentId")
542
+ getDeploymentId: createConstantBridge5("getDeploymentId")
789
543
  };
790
544
 
791
545
  // src/global.ts
792
- import { createConstantBridge as createConstantBridge5 } from "@apps-in-toss/bridge-core";
793
- var deploymentId = createConstantBridge5("deploymentId");
794
- var brandDisplayName = createConstantBridge5("brandDisplayName");
795
- var brandIcon = createConstantBridge5("brandIcon");
796
- var brandPrimaryColor = createConstantBridge5("brandPrimaryColor");
546
+ import { createConstantBridge as createConstantBridge6 } from "@apps-in-toss/bridge-core";
547
+ var deploymentId = createConstantBridge6("deploymentId");
548
+ var brandDisplayName = createConstantBridge6("brandDisplayName");
549
+ var brandIcon = createConstantBridge6("brandIcon");
550
+ var brandPrimaryColor = createConstantBridge6("brandPrimaryColor");
797
551
  var getAppsInTossGlobals = () => {
798
552
  return {
799
553
  deploymentId: deploymentId(),
@@ -843,7 +597,7 @@ var tdsEvent = {
843
597
  };
844
598
 
845
599
  // src/partner.ts
846
- import { createAsyncBridge as createAsyncBridge3 } from "@apps-in-toss/bridge-core";
600
+ import { createAsyncBridge as createAsyncBridge4 } from "@apps-in-toss/bridge-core";
847
601
  var partner = {
848
602
  /**
849
603
  * @public
@@ -865,7 +619,7 @@ var partner = {
865
619
  });
866
620
  * ```
867
621
  */
868
- addAccessoryButton: createAsyncBridge3("addAccessoryButton"),
622
+ addAccessoryButton: createAsyncBridge4("addAccessoryButton"),
869
623
  /**
870
624
  * @public
871
625
  * @category 파트너
@@ -879,18 +633,18 @@ var partner = {
879
633
  * partner.removeAccessoryButton();
880
634
  * ```
881
635
  */
882
- removeAccessoryButton: createAsyncBridge3("removeAccessoryButton")
636
+ removeAccessoryButton: createAsyncBridge4("removeAccessoryButton")
883
637
  };
884
638
 
885
639
  // src/permissions/fetchAlbumPhotos.ts
886
- import { createAsyncBridge as createAsyncBridge5 } from "@apps-in-toss/bridge-core";
640
+ import { createAsyncBridge as createAsyncBridge6 } from "@apps-in-toss/bridge-core";
887
641
  import { FetchAlbumPhotosPermissionError } from "@apps-in-toss/types";
888
642
 
889
643
  // src/permissions/createPermissionFunction.ts
890
- import { createAsyncBridge as createAsyncBridge4 } from "@apps-in-toss/bridge-core";
891
- var requestPermission = createAsyncBridge4("requestPermission");
892
- var getPermission = createAsyncBridge4("getPermission");
893
- var openPermissionDialog = createAsyncBridge4("openPermissionDialog");
644
+ import { createAsyncBridge as createAsyncBridge5 } from "@apps-in-toss/bridge-core";
645
+ var requestPermission = createAsyncBridge5("requestPermission");
646
+ var getPermission = createAsyncBridge5("getPermission");
647
+ var openPermissionDialog = createAsyncBridge5("openPermissionDialog");
894
648
  function createPermissionFunction({
895
649
  permission,
896
650
  handler,
@@ -911,7 +665,7 @@ function createPermissionFunction({
911
665
  // src/permissions/fetchAlbumPhotos.ts
912
666
  var fetchAlbumPhotos = createPermissionFunction({
913
667
  handler: (options) => {
914
- return createAsyncBridge5("fetchAlbumPhotos")(
668
+ return createAsyncBridge6("fetchAlbumPhotos")(
915
669
  options
916
670
  );
917
671
  },
@@ -923,11 +677,11 @@ var fetchAlbumPhotos = createPermissionFunction({
923
677
  });
924
678
 
925
679
  // src/permissions/fetchContacts.ts
926
- import { createAsyncBridge as createAsyncBridge6 } from "@apps-in-toss/bridge-core";
680
+ import { createAsyncBridge as createAsyncBridge7 } from "@apps-in-toss/bridge-core";
927
681
  import { FetchContactsPermissionError } from "@apps-in-toss/types";
928
682
  var fetchContacts = createPermissionFunction({
929
683
  handler: (options) => {
930
- return createAsyncBridge6("fetchContacts")(options);
684
+ return createAsyncBridge7("fetchContacts")(options);
931
685
  },
932
686
  permission: {
933
687
  name: "contacts",
@@ -937,13 +691,13 @@ var fetchContacts = createPermissionFunction({
937
691
  });
938
692
 
939
693
  // src/permissions/getCurrentLocation.ts
940
- import { createAsyncBridge as createAsyncBridge7 } from "@apps-in-toss/bridge-core";
694
+ import { createAsyncBridge as createAsyncBridge8 } from "@apps-in-toss/bridge-core";
941
695
  import {
942
696
  GetCurrentLocationPermissionError
943
697
  } from "@apps-in-toss/types";
944
698
  var getCurrentLocation = createPermissionFunction({
945
699
  handler: (options) => {
946
- return createAsyncBridge7(
700
+ return createAsyncBridge8(
947
701
  "getCurrentLocation"
948
702
  )(options);
949
703
  },
@@ -955,11 +709,11 @@ var getCurrentLocation = createPermissionFunction({
955
709
  });
956
710
 
957
711
  // src/permissions/openCamera.ts
958
- import { createAsyncBridge as createAsyncBridge8 } from "@apps-in-toss/bridge-core";
712
+ import { createAsyncBridge as createAsyncBridge9 } from "@apps-in-toss/bridge-core";
959
713
  import { OpenCameraPermissionError } from "@apps-in-toss/types";
960
714
  var openCamera = createPermissionFunction({
961
715
  handler: (options) => {
962
- return createAsyncBridge8("openCamera")(options);
716
+ return createAsyncBridge9("openCamera")(options);
963
717
  },
964
718
  permission: {
965
719
  name: "camera",
@@ -969,11 +723,11 @@ var openCamera = createPermissionFunction({
969
723
  });
970
724
 
971
725
  // src/permissions/setClipboardText.ts
972
- import { createAsyncBridge as createAsyncBridge9 } from "@apps-in-toss/bridge-core";
726
+ import { createAsyncBridge as createAsyncBridge10 } from "@apps-in-toss/bridge-core";
973
727
  import { SetClipboardTextPermissionError } from "@apps-in-toss/types";
974
728
  var setClipboardText = createPermissionFunction({
975
729
  handler: (options) => {
976
- return createAsyncBridge9("setClipboardText")(
730
+ return createAsyncBridge10("setClipboardText")(
977
731
  options
978
732
  );
979
733
  },
@@ -985,11 +739,11 @@ var setClipboardText = createPermissionFunction({
985
739
  });
986
740
 
987
741
  // src/permissions/getClipboardText.ts
988
- import { createAsyncBridge as createAsyncBridge10 } from "@apps-in-toss/bridge-core";
742
+ import { createAsyncBridge as createAsyncBridge11 } from "@apps-in-toss/bridge-core";
989
743
  import { GetClipboardTextPermissionError } from "@apps-in-toss/types";
990
744
  var getClipboardText = createPermissionFunction({
991
745
  handler: () => {
992
- return createAsyncBridge10("getClipboardText")();
746
+ return createAsyncBridge11("getClipboardText")();
993
747
  },
994
748
  permission: {
995
749
  name: "clipboard",
@@ -999,12 +753,12 @@ var getClipboardText = createPermissionFunction({
999
753
  });
1000
754
 
1001
755
  // src/permissions/startUpdateLocation.ts
1002
- import { createAsyncBridge as createAsyncBridge11, createEventBridge as createEventBridge7 } from "@apps-in-toss/bridge-core";
756
+ import { createAsyncBridge as createAsyncBridge12, createEventBridge as createEventBridge7 } from "@apps-in-toss/bridge-core";
1003
757
  import {
1004
758
  StartUpdateLocationPermissionError
1005
759
  } from "@apps-in-toss/types";
1006
- var getPermission2 = createAsyncBridge11("getPermission");
1007
- var openPermissionDialog2 = createAsyncBridge11("openPermissionDialog");
760
+ var getPermission2 = createAsyncBridge12("getPermission");
761
+ var openPermissionDialog2 = createAsyncBridge12("openPermissionDialog");
1008
762
  var startUpdateLocation = (params) => {
1009
763
  return createEventBridge7("updateLocationEvent")({
1010
764
  ...params,
@@ -1021,26 +775,26 @@ startUpdateLocation.getPermission = () => getPermission2({ name: "geolocation",
1021
775
  startUpdateLocation.openPermissionDialog = () => openPermissionDialog2({ name: "geolocation", access: "access" });
1022
776
 
1023
777
  // src/integratedAd.ts
1024
- import { createConstantBridge as createConstantBridge6, createEventBridge as createEventBridge8 } from "@apps-in-toss/bridge-core";
778
+ import { createConstantBridge as createConstantBridge7, createEventBridge as createEventBridge8 } from "@apps-in-toss/bridge-core";
1025
779
  var loadFullScreenAd = Object.assign(
1026
780
  createEventBridge8("loadFullScreenAd"),
1027
781
  {
1028
- isSupported: createConstantBridge6("loadFullScreenAd_isSupported")
782
+ isSupported: createConstantBridge7("loadFullScreenAd_isSupported")
1029
783
  }
1030
784
  );
1031
785
  var showFullScreenAd = Object.assign(
1032
786
  createEventBridge8("showFullScreenAd"),
1033
787
  {
1034
- isSupported: createConstantBridge6("showFullScreenAd_isSupported")
788
+ isSupported: createConstantBridge7("showFullScreenAd_isSupported")
1035
789
  }
1036
790
  );
1037
791
 
1038
792
  // src/toss-ad/index.ts
1039
- import { createAsyncBridge as createAsyncBridge13, createConstantBridge as createConstantBridge7, createEventBridge as createEventBridge9 } from "@apps-in-toss/bridge-core";
793
+ import { createAsyncBridge as createAsyncBridge14, createConstantBridge as createConstantBridge8, createEventBridge as createEventBridge9 } from "@apps-in-toss/bridge-core";
1040
794
 
1041
795
  // src/toss-ad/opener.ts
1042
- import { createAsyncBridge as createAsyncBridge12 } from "@apps-in-toss/bridge-core";
1043
- var openURL = createAsyncBridge12("openURL");
796
+ import { createAsyncBridge as createAsyncBridge13 } from "@apps-in-toss/bridge-core";
797
+ var openURL = createAsyncBridge13("openURL");
1044
798
  function openUrlOpener(url) {
1045
799
  const transformed = getWebSchemeOrUri(url);
1046
800
  return openURL(transformed);
@@ -1112,9 +866,9 @@ function loadAdsSdk() {
1112
866
 
1113
867
  // src/toss-ad/index.ts
1114
868
  var fetchTossAd = Object.assign(createEventBridge9("fetchTossAd"), {
1115
- isSupported: createConstantBridge7("fetchTossAd_isSupported")
869
+ isSupported: createConstantBridge8("fetchTossAd_isSupported")
1116
870
  });
1117
- var tossAdEventLog = createAsyncBridge13("tossAdEventLog");
871
+ var tossAdEventLog = createAsyncBridge14("tossAdEventLog");
1118
872
  var SUPPORTED_STYLE_IDS = /* @__PURE__ */ new Set(["1", "2"]);
1119
873
  function fetchTossAdPromise(options) {
1120
874
  return new Promise((resolve, reject) => {
package/package.json CHANGED
@@ -1,37 +1,37 @@
1
1
  {
2
2
  "name": "@apps-in-toss/web-bridge",
3
3
  "type": "module",
4
- "version": "1.7.0",
4
+ "version": "1.8.0",
5
5
  "description": "Web Bridge for Apps In Toss",
6
6
  "scripts": {
7
7
  "typecheck": "tsc --noEmit",
8
8
  "lint": "eslint .",
9
9
  "build": "tsup"
10
10
  },
11
- "main": "./built/index.cjs",
12
- "module": "./built/index.js",
13
- "types": "./built/index.d.ts",
11
+ "main": "./dist/index.cjs",
12
+ "module": "./dist/index.js",
13
+ "types": "./dist/index.d.ts",
14
14
  "exports": {
15
15
  ".": {
16
16
  "import": {
17
- "types": "./built/index.d.ts",
18
- "default": "./built/index.js"
17
+ "types": "./dist/index.d.ts",
18
+ "default": "./dist/index.js"
19
19
  },
20
20
  "require": {
21
- "types": "./built/index.d.cts",
22
- "default": "./built/index.cjs"
21
+ "types": "./dist/index.d.cts",
22
+ "default": "./dist/index.cjs"
23
23
  }
24
24
  }
25
25
  },
26
26
  "files": [
27
- "built"
27
+ "dist"
28
28
  ],
29
29
  "dependencies": {
30
- "@apps-in-toss/types": "1.7.0"
30
+ "@apps-in-toss/types": "1.8.0"
31
31
  },
32
32
  "devDependencies": {
33
- "@apps-in-toss/bridge-core": "1.7.0",
34
- "@apps-in-toss/framework": "1.7.0",
33
+ "@apps-in-toss/bridge-core": "1.8.0",
34
+ "@apps-in-toss/framework": "1.8.0",
35
35
  "@swc/core": "^1.12.7",
36
36
  "picocolors": "^1.1.1",
37
37
  "ts-morph": "^26.0.0",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes