@apps-in-toss/devtools 3.1.1 → 3.2.0-beta.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,9 +1,38 @@
1
1
  # @apps-in-toss/devtools
2
2
 
3
+ ## 3.2.0-beta.0
4
+
5
+ ### Minor Changes
6
+
7
+ - IAC 앱브릿지를 추가해요.
8
+
9
+ ### Patch Changes
10
+
11
+ - 광고 노출 실패 이벤트에 `reason` 응답 타입을 추가해요.
12
+ - Updated dependencies
13
+ - @apps-in-toss/web-framework@3.2.0-beta.0
14
+
3
15
  ## 3.1.1
4
16
 
5
17
  ## 3.1.0
6
18
 
19
+ ## 3.1.0-beta.1
20
+
21
+ ### Patch Changes
22
+
23
+ - d633263: failedToShow인 경우 reason 응답 타입 추가
24
+
25
+ ## 3.1.0-beta.0
26
+
27
+ ### Minor Changes
28
+
29
+ - 59b4b13: iac 앱브릿지 추가
30
+
31
+ ### Patch Changes
32
+
33
+ - Updated dependencies [59b4b13]
34
+ - @apps-in-toss/web-framework@3.1.0-beta.0
35
+
7
36
  ## 3.0.5
8
37
 
9
38
  ## 3.0.4
package/dist/mock/2x.d.ts CHANGED
@@ -131,6 +131,39 @@ declare const showFullScreenAd: ((args: {
131
131
  }) => () => void) & {
132
132
  isSupported: () => boolean;
133
133
  };
134
+ declare const Ads: {
135
+ showTossAdOrShoppingAds: ((args: {
136
+ options: {
137
+ spaceUnitId: string;
138
+ adSpaceId: string;
139
+ };
140
+ onEvent: (event: {
141
+ type: string;
142
+ data?: {
143
+ unitType: string;
144
+ unitAmount: number;
145
+ };
146
+ }) => void;
147
+ onError: (error: unknown) => void;
148
+ }) => () => void) & {
149
+ isSupported: () => boolean;
150
+ };
151
+ showTossShoppingAds: ((args: {
152
+ options: {
153
+ adSpaceId: string;
154
+ };
155
+ onEvent: (event: {
156
+ type: string;
157
+ data?: {
158
+ unitType: string;
159
+ unitAmount: number;
160
+ };
161
+ }) => void;
162
+ onError: (error: unknown) => void;
163
+ }) => () => void) & {
164
+ isSupported: () => boolean;
165
+ };
166
+ };
134
167
  //#endregion
135
168
  //#region src/mock/analytics/index.d.ts
136
169
  /**
@@ -1153,4 +1186,4 @@ declare function listUserPresets(): MockPreset[];
1153
1186
  declare function saveUserPreset(label: string, state: MockPresetState, description?: string): MockPreset;
1154
1187
  declare function deleteUserPreset(id: string): void;
1155
1188
  //#endregion
1156
- export { Accuracy, type AitDevtoolsState, Analytics, type AnalyticsLogEntry, type ConsentedUserData, type ConsentedUserDataKey, type DeclaredAgeRange, type DeviceApiMode, type DeviceModes, FetchAlbumPhotosPermissionError, FetchContactsPermissionError, GetClipboardTextPermissionError, GetCurrentLocationPermissionError, GoogleAdMob, type HapticFeedbackType, IAP, type IapNextResult, type LocationCoords, type MockContact, type MockData, type MockIapProduct, type MockLocation, type MockPreset, type MockPresetState, type NetworkStatus, OpenCameraPermissionError, type OperationalEnvironment, PermissionError, type PermissionName, type PermissionStatus, type PlatformOS, type Primitive, SafeAreaInsets, type SafeAreaInsets$1 as SafeAreaInsetsType, SetClipboardTextPermissionError, StartUpdateLocationPermissionError, Storage, TossAds, aitState, appLogin, applyPreset, appsInTossEvent, appsInTossSignTossCert, builtInPresets, captureCurrentState, checkoutPayment, closeView, contactsViral, createAsyncBridge, createConstantBridge, createEventBridge, deleteUserPreset, env, eventLog, fetchAlbumItems, fetchAlbumPhotos, fetchContacts, generateHapticFeedback, getAnonymousKey, getAppsInTossGlobals, getClipboardText, getConsentedUserData, getCurrentLocation, getDeclaredAgeRange, getDefaultPlaceholderImages, getDeviceId, getGameCenterGameProfile, getGroupId, getIsTossLoginIntegratedService, getLocale, getNetworkStatus, getOperationalEnvironment, getPermission, getPlatformOS, getSafeAreaInsets, getSchemeUri, getServerTime, getTossAppVersion, getTossShareLink, getUserKeyForGame, graniteEvent, grantPromotionReward, grantPromotionRewardForGame, isMinVersionSupported, listUserPresets, loadFullScreenAd, matchesPreset, onVisibilityChangedByTransparentServiceWeb, openCamera, openGameCenterLeaderboard, openPDFViewer, openPermissionDialog, openURL, partner, requestNotificationAgreement, requestPermission, requestReview, requestTossPayPaysBilling, saveBase64Data, saveUserPreset, setClipboardText, setDeviceOrientation, setIosSwipeGestureEnabled, setScreenAwakeMode, setSecureScreen, share, showFullScreenAd, startUpdateLocation, submitGameCenterLeaderBoardScore, tdsEvent };
1189
+ export { Accuracy, Ads, type AitDevtoolsState, Analytics, type AnalyticsLogEntry, type ConsentedUserData, type ConsentedUserDataKey, type DeclaredAgeRange, type DeviceApiMode, type DeviceModes, FetchAlbumPhotosPermissionError, FetchContactsPermissionError, GetClipboardTextPermissionError, GetCurrentLocationPermissionError, GoogleAdMob, type HapticFeedbackType, IAP, type IapNextResult, type LocationCoords, type MockContact, type MockData, type MockIapProduct, type MockLocation, type MockPreset, type MockPresetState, type NetworkStatus, OpenCameraPermissionError, type OperationalEnvironment, PermissionError, type PermissionName, type PermissionStatus, type PlatformOS, type Primitive, SafeAreaInsets, type SafeAreaInsets$1 as SafeAreaInsetsType, SetClipboardTextPermissionError, StartUpdateLocationPermissionError, Storage, TossAds, aitState, appLogin, applyPreset, appsInTossEvent, appsInTossSignTossCert, builtInPresets, captureCurrentState, checkoutPayment, closeView, contactsViral, createAsyncBridge, createConstantBridge, createEventBridge, deleteUserPreset, env, eventLog, fetchAlbumItems, fetchAlbumPhotos, fetchContacts, generateHapticFeedback, getAnonymousKey, getAppsInTossGlobals, getClipboardText, getConsentedUserData, getCurrentLocation, getDeclaredAgeRange, getDefaultPlaceholderImages, getDeviceId, getGameCenterGameProfile, getGroupId, getIsTossLoginIntegratedService, getLocale, getNetworkStatus, getOperationalEnvironment, getPermission, getPlatformOS, getSafeAreaInsets, getSchemeUri, getServerTime, getTossAppVersion, getTossShareLink, getUserKeyForGame, graniteEvent, grantPromotionReward, grantPromotionRewardForGame, isMinVersionSupported, listUserPresets, loadFullScreenAd, matchesPreset, onVisibilityChangedByTransparentServiceWeb, openCamera, openGameCenterLeaderboard, openPDFViewer, openPermissionDialog, openURL, partner, requestNotificationAgreement, requestPermission, requestReview, requestTossPayPaysBilling, saveBase64Data, saveUserPreset, setClipboardText, setDeviceOrientation, setIosSwipeGestureEnabled, setScreenAwakeMode, setSecureScreen, share, showFullScreenAd, startUpdateLocation, submitGameCenterLeaderBoardScore, tdsEvent };
package/dist/mock/2x.js CHANGED
@@ -768,6 +768,39 @@ const showFullScreenAd = withIsSupported(observe("showFullScreenAd", "faithful",
768
768
  setTimeout(() => args.onEvent({ type: "dismissed" }), 1500);
769
769
  return () => {};
770
770
  }));
771
+ const Ads = createMockProxy("Ads", {
772
+ showTossAdOrShoppingAds: withIsSupported(observe("Ads.showTossAdOrShoppingAds", "faithful", (args) => {
773
+ if (!aitState.state.ads.isLoaded) {
774
+ args.onError(/* @__PURE__ */ new Error("Ad not loaded"));
775
+ return () => {};
776
+ }
777
+ const { rewardUnitType, rewardAmount } = aitState.state.ads;
778
+ setTimeout(() => args.onEvent({
779
+ type: "userEarnedReward",
780
+ data: {
781
+ unitType: rewardUnitType,
782
+ unitAmount: rewardAmount
783
+ }
784
+ }), 1e3);
785
+ setTimeout(() => {
786
+ args.onEvent({ type: "dismissed" });
787
+ aitState.patch("ads", { isLoaded: false });
788
+ }, 1500);
789
+ return () => {};
790
+ })),
791
+ showTossShoppingAds: withIsSupported(observe("Ads.showTossShoppingAds", "faithful", (args) => {
792
+ const { rewardUnitType, rewardAmount } = aitState.state.ads;
793
+ setTimeout(() => args.onEvent({
794
+ type: "userEarnedReward",
795
+ data: {
796
+ unitType: rewardUnitType,
797
+ unitAmount: rewardAmount
798
+ }
799
+ }), 1e3);
800
+ setTimeout(() => args.onEvent({ type: "dismissed" }), 1500);
801
+ return () => {};
802
+ }))
803
+ });
771
804
  //#endregion
772
805
  //#region src/mock/analytics/index.ts
773
806
  /**
@@ -2386,4 +2419,4 @@ function captureCurrentState(snapshot) {
2386
2419
  };
2387
2420
  }
2388
2421
  //#endregion
2389
- export { Accuracy, Analytics, FetchAlbumPhotosPermissionError, FetchContactsPermissionError, GetClipboardTextPermissionError, GetCurrentLocationPermissionError, GoogleAdMob, IAP, OpenCameraPermissionError, PermissionError, SafeAreaInsets, SetClipboardTextPermissionError, StartUpdateLocationPermissionError, Storage, TossAds, aitState, appLogin, applyPreset, appsInTossEvent, appsInTossSignTossCert, builtInPresets, captureCurrentState, checkoutPayment, closeView, contactsViral, createAsyncBridge, createConstantBridge, createEventBridge, deleteUserPreset, env, eventLog, fetchAlbumItems, fetchAlbumPhotos, fetchContacts, generateHapticFeedback, getAnonymousKey, getAppsInTossGlobals, getClipboardText, getConsentedUserData, getCurrentLocation, getDeclaredAgeRange, getDefaultPlaceholderImages, getDeviceId, getGameCenterGameProfile, getGroupId, getIsTossLoginIntegratedService, getLocale, getNetworkStatus, getOperationalEnvironment, getPermission, getPlatformOS, getSafeAreaInsets, getSchemeUri, getServerTime, getTossAppVersion, getTossShareLink, getUserKeyForGame, graniteEvent, grantPromotionReward, grantPromotionRewardForGame, isMinVersionSupported, listUserPresets, loadFullScreenAd, matchesPreset, onVisibilityChangedByTransparentServiceWeb, openCamera, openGameCenterLeaderboard, openPDFViewer, openPermissionDialog, openURL, partner, requestNotificationAgreement, requestPermission, requestReview, requestTossPayPaysBilling, saveBase64Data, saveUserPreset, setClipboardText, setDeviceOrientation, setIosSwipeGestureEnabled, setScreenAwakeMode, setSecureScreen, share, showFullScreenAd, startUpdateLocation, submitGameCenterLeaderBoardScore, tdsEvent };
2422
+ export { Accuracy, Ads, Analytics, FetchAlbumPhotosPermissionError, FetchContactsPermissionError, GetClipboardTextPermissionError, GetCurrentLocationPermissionError, GoogleAdMob, IAP, OpenCameraPermissionError, PermissionError, SafeAreaInsets, SetClipboardTextPermissionError, StartUpdateLocationPermissionError, Storage, TossAds, aitState, appLogin, applyPreset, appsInTossEvent, appsInTossSignTossCert, builtInPresets, captureCurrentState, checkoutPayment, closeView, contactsViral, createAsyncBridge, createConstantBridge, createEventBridge, deleteUserPreset, env, eventLog, fetchAlbumItems, fetchAlbumPhotos, fetchContacts, generateHapticFeedback, getAnonymousKey, getAppsInTossGlobals, getClipboardText, getConsentedUserData, getCurrentLocation, getDeclaredAgeRange, getDefaultPlaceholderImages, getDeviceId, getGameCenterGameProfile, getGroupId, getIsTossLoginIntegratedService, getLocale, getNetworkStatus, getOperationalEnvironment, getPermission, getPlatformOS, getSafeAreaInsets, getSchemeUri, getServerTime, getTossAppVersion, getTossShareLink, getUserKeyForGame, graniteEvent, grantPromotionReward, grantPromotionRewardForGame, isMinVersionSupported, listUserPresets, loadFullScreenAd, matchesPreset, onVisibilityChangedByTransparentServiceWeb, openCamera, openGameCenterLeaderboard, openPDFViewer, openPermissionDialog, openURL, partner, requestNotificationAgreement, requestPermission, requestReview, requestTossPayPaysBilling, saveBase64Data, saveUserPreset, setClipboardText, setDeviceOrientation, setIosSwipeGestureEnabled, setScreenAwakeMode, setSecureScreen, share, showFullScreenAd, startUpdateLocation, submitGameCenterLeaderBoardScore, tdsEvent };
package/dist/mock/3x.d.ts CHANGED
@@ -156,6 +156,7 @@ declare const isMinVersionSupported: typeof SDK.isMinVersionSupported;
156
156
  declare const GoogleAdMob: typeof SDK.GoogleAdMob;
157
157
  declare const loadFullScreenAd: typeof SDK.loadFullScreenAd;
158
158
  declare const showFullScreenAd: typeof SDK.showFullScreenAd;
159
+ declare const Ads: typeof SDK.Ads;
159
160
  declare const IAP: typeof SDK.IAP;
160
161
  declare const Analytics: typeof SDK.Analytics;
161
162
  declare const Clipboard: typeof SDK.Clipboard;
@@ -1050,4 +1051,4 @@ declare function listUserPresets(): MockPreset[];
1050
1051
  declare function saveUserPreset(label: string, state: MockPresetState, description?: string): MockPreset;
1051
1052
  declare function deleteUserPreset(id: string): void;
1052
1053
  //#endregion
1053
- export { Accuracy, type AitDevtoolsState, Analytics, type AnalyticsLogEntry, Clipboard, type ConsentedUserData, type ConsentedUserDataKey, type DeclaredAgeRange, Device, type DeviceApiMode, type DeviceModes, Environment, FetchAlbumPhotosPermissionError, FetchContactsPermissionError, File, Game, GetClipboardTextPermissionError, GetCurrentLocationPermissionError, GoogleAdMob, type HapticFeedbackType, IAP, type IapNextResult, type LocationCoords, Migration, type MockContact, type MockData, type MockIapProduct, type MockLocation, type MockPreset, type MockPresetState, type NetworkStatus, Notification, OpenCameraPermissionError, type OperationalEnvironment, PermissionError, type PermissionName, type PermissionStatus, type PlatformOS, type Primitive, Promotion, Review, SafeArea, SafeAreaInsets, type SafeAreaInsets$1 as SafeAreaInsetsType, Screen, SetClipboardTextPermissionError, Share, StartUpdateLocationPermissionError, Storage, TossAds, TossAuth, TossPay, User, aitState, appLogin, applyPreset, appsInTossEvent, appsInTossSignTossCert, builtInPresets, captureCurrentState, checkoutPayment, closeView, contactsViral, createAsyncBridge, createConstantBridge, createEventBridge, deleteUserPreset, env, eventLog, fetchAlbumItems, fetchAlbumPhotos, fetchContacts, generateHapticFeedback, getAnonymousKey, getAppsInTossGlobals, getClipboardText, getConsentedUserData, getCurrentLocation, getDeclaredAgeRange, getDefaultPlaceholderImages, getDeviceId, getGameCenterGameProfile, getGroupId, getIsTossLoginIntegratedService, getLocale, getNetworkStatus, getOperationalEnvironment, getPermission, getPlatformOS, getSafeAreaInsets, getSchemeUri, getServerTime, getTossAppVersion, getTossShareLink, getUserKeyForGame, graniteEvent, grantPromotionReward, grantPromotionRewardForGame, isMinVersionSupported, listUserPresets, loadFullScreenAd, matchesPreset, onVisibilityChangedByTransparentServiceWeb, openCamera, openGameCenterLeaderboard, openPDFViewer, openPermissionDialog, openURL, partner, requestNotificationAgreement, requestPermission, requestReview, requestTossPayPaysBilling, saveBase64Data, saveUserPreset, setClipboardText, setDeviceOrientation, setIosSwipeGestureEnabled, setScreenAwakeMode, setSecureScreen, share, showFullScreenAd, startUpdateLocation, submitGameCenterLeaderBoardScore, tdsEvent };
1054
+ export { Accuracy, Ads, type AitDevtoolsState, Analytics, type AnalyticsLogEntry, Clipboard, type ConsentedUserData, type ConsentedUserDataKey, type DeclaredAgeRange, Device, type DeviceApiMode, type DeviceModes, Environment, FetchAlbumPhotosPermissionError, FetchContactsPermissionError, File, Game, GetClipboardTextPermissionError, GetCurrentLocationPermissionError, GoogleAdMob, type HapticFeedbackType, IAP, type IapNextResult, type LocationCoords, Migration, type MockContact, type MockData, type MockIapProduct, type MockLocation, type MockPreset, type MockPresetState, type NetworkStatus, Notification, OpenCameraPermissionError, type OperationalEnvironment, PermissionError, type PermissionName, type PermissionStatus, type PlatformOS, type Primitive, Promotion, Review, SafeArea, SafeAreaInsets, type SafeAreaInsets$1 as SafeAreaInsetsType, Screen, SetClipboardTextPermissionError, Share, StartUpdateLocationPermissionError, Storage, TossAds, TossAuth, TossPay, User, aitState, appLogin, applyPreset, appsInTossEvent, appsInTossSignTossCert, builtInPresets, captureCurrentState, checkoutPayment, closeView, contactsViral, createAsyncBridge, createConstantBridge, createEventBridge, deleteUserPreset, env, eventLog, fetchAlbumItems, fetchAlbumPhotos, fetchContacts, generateHapticFeedback, getAnonymousKey, getAppsInTossGlobals, getClipboardText, getConsentedUserData, getCurrentLocation, getDeclaredAgeRange, getDefaultPlaceholderImages, getDeviceId, getGameCenterGameProfile, getGroupId, getIsTossLoginIntegratedService, getLocale, getNetworkStatus, getOperationalEnvironment, getPermission, getPlatformOS, getSafeAreaInsets, getSchemeUri, getServerTime, getTossAppVersion, getTossShareLink, getUserKeyForGame, graniteEvent, grantPromotionReward, grantPromotionRewardForGame, isMinVersionSupported, listUserPresets, loadFullScreenAd, matchesPreset, onVisibilityChangedByTransparentServiceWeb, openCamera, openGameCenterLeaderboard, openPDFViewer, openPermissionDialog, openURL, partner, requestNotificationAgreement, requestPermission, requestReview, requestTossPayPaysBilling, saveBase64Data, saveUserPreset, setClipboardText, setDeviceOrientation, setIosSwipeGestureEnabled, setScreenAwakeMode, setSecureScreen, share, showFullScreenAd, startUpdateLocation, submitGameCenterLeaderBoardScore, tdsEvent };
package/dist/mock/3x.js CHANGED
@@ -768,6 +768,39 @@ const showFullScreenAd$1 = withIsSupported(observe("showFullScreenAd", "faithful
768
768
  setTimeout(() => args.onEvent({ type: "dismissed" }), 1500);
769
769
  return () => {};
770
770
  }));
771
+ const Ads$1 = createMockProxy("Ads", {
772
+ showTossAdOrShoppingAds: withIsSupported(observe("Ads.showTossAdOrShoppingAds", "faithful", (args) => {
773
+ if (!aitState.state.ads.isLoaded) {
774
+ args.onError(/* @__PURE__ */ new Error("Ad not loaded"));
775
+ return () => {};
776
+ }
777
+ const { rewardUnitType, rewardAmount } = aitState.state.ads;
778
+ setTimeout(() => args.onEvent({
779
+ type: "userEarnedReward",
780
+ data: {
781
+ unitType: rewardUnitType,
782
+ unitAmount: rewardAmount
783
+ }
784
+ }), 1e3);
785
+ setTimeout(() => {
786
+ args.onEvent({ type: "dismissed" });
787
+ aitState.patch("ads", { isLoaded: false });
788
+ }, 1500);
789
+ return () => {};
790
+ })),
791
+ showTossShoppingAds: withIsSupported(observe("Ads.showTossShoppingAds", "faithful", (args) => {
792
+ const { rewardUnitType, rewardAmount } = aitState.state.ads;
793
+ setTimeout(() => args.onEvent({
794
+ type: "userEarnedReward",
795
+ data: {
796
+ unitType: rewardUnitType,
797
+ unitAmount: rewardAmount
798
+ }
799
+ }), 1e3);
800
+ setTimeout(() => args.onEvent({ type: "dismissed" }), 1500);
801
+ return () => {};
802
+ }))
803
+ });
771
804
  //#endregion
772
805
  //#region src/mock/analytics/index.ts
773
806
  /**
@@ -2472,6 +2505,14 @@ const showFullScreenAd = Object.assign((args) => showFullScreenAd$1({
2472
2505
  options: args.options ?? { adGroupId: "mock-ad-group" },
2473
2506
  onError: (error) => args.onError(error instanceof Error ? error : new Error(String(error)))
2474
2507
  }), { isSupported: () => true });
2508
+ const shoppingAdsMin = {
2509
+ android: "5.273.0",
2510
+ ios: "5.273.0"
2511
+ };
2512
+ const Ads = {
2513
+ showTossAdOrShoppingAds: supported(Ads$1.showTossAdOrShoppingAds, shoppingAdsMin),
2514
+ showTossShoppingAds: supported(Ads$1.showTossShoppingAds, shoppingAdsMin)
2515
+ };
2475
2516
  const IAP = {
2476
2517
  createOneTimePurchaseOrder: supported(IAP$1.createOneTimePurchaseOrder, V.iapOneTime),
2477
2518
  createSubscriptionPurchaseOrder: supported(IAP$1.createSubscriptionPurchaseOrder, V.iapSubscription),
@@ -2593,4 +2634,4 @@ const User = {
2593
2634
  getDeclaredAgeRange
2594
2635
  };
2595
2636
  //#endregion
2596
- export { Accuracy, Analytics, Clipboard, Device, Environment, FetchAlbumPhotosPermissionError, FetchContactsPermissionError, File, Game, GetClipboardTextPermissionError, GetCurrentLocationPermissionError, GoogleAdMob, IAP, Migration, Notification, OpenCameraPermissionError, PermissionError, Promotion, Review, SafeArea, SafeAreaInsets, Screen, SetClipboardTextPermissionError, Share, StartUpdateLocationPermissionError, Storage, TossAds, TossAuth, TossPay, User, aitState, appLogin, applyPreset, appsInTossEvent, appsInTossSignTossCert, builtInPresets, captureCurrentState, checkoutPayment, closeView, contactsViral, createAsyncBridge, createConstantBridge, createEventBridge, deleteUserPreset, env, eventLog, fetchAlbumItems, fetchAlbumPhotos, fetchContacts, generateHapticFeedback, getAnonymousKey, getAppsInTossGlobals, getClipboardText, getConsentedUserData, getCurrentLocation, getDeclaredAgeRange, getDefaultPlaceholderImages, getDeviceId, getGameCenterGameProfile, getGroupId, getIsTossLoginIntegratedService, getLocale, getNetworkStatus, getOperationalEnvironment, getPermission, getPlatformOS, getSafeAreaInsets, getSchemeUri, getServerTime, getTossAppVersion, getTossShareLink, getUserKeyForGame, graniteEvent, grantPromotionReward, grantPromotionRewardForGame, isMinVersionSupported, listUserPresets, loadFullScreenAd, matchesPreset, onVisibilityChangedByTransparentServiceWeb, openCamera, openGameCenterLeaderboard, openPDFViewer, openPermissionDialog, openURL, partner, requestNotificationAgreement, requestPermission, requestReview, requestTossPayPaysBilling, saveBase64Data, saveUserPreset, setClipboardText, setDeviceOrientation, setIosSwipeGestureEnabled, setScreenAwakeMode, setSecureScreen, share, showFullScreenAd, startUpdateLocation, submitGameCenterLeaderBoardScore, tdsEvent };
2637
+ export { Accuracy, Ads, Analytics, Clipboard, Device, Environment, FetchAlbumPhotosPermissionError, FetchContactsPermissionError, File, Game, GetClipboardTextPermissionError, GetCurrentLocationPermissionError, GoogleAdMob, IAP, Migration, Notification, OpenCameraPermissionError, PermissionError, Promotion, Review, SafeArea, SafeAreaInsets, Screen, SetClipboardTextPermissionError, Share, StartUpdateLocationPermissionError, Storage, TossAds, TossAuth, TossPay, User, aitState, appLogin, applyPreset, appsInTossEvent, appsInTossSignTossCert, builtInPresets, captureCurrentState, checkoutPayment, closeView, contactsViral, createAsyncBridge, createConstantBridge, createEventBridge, deleteUserPreset, env, eventLog, fetchAlbumItems, fetchAlbumPhotos, fetchContacts, generateHapticFeedback, getAnonymousKey, getAppsInTossGlobals, getClipboardText, getConsentedUserData, getCurrentLocation, getDeclaredAgeRange, getDefaultPlaceholderImages, getDeviceId, getGameCenterGameProfile, getGroupId, getIsTossLoginIntegratedService, getLocale, getNetworkStatus, getOperationalEnvironment, getPermission, getPlatformOS, getSafeAreaInsets, getSchemeUri, getServerTime, getTossAppVersion, getTossShareLink, getUserKeyForGame, graniteEvent, grantPromotionReward, grantPromotionRewardForGame, isMinVersionSupported, listUserPresets, loadFullScreenAd, matchesPreset, onVisibilityChangedByTransparentServiceWeb, openCamera, openGameCenterLeaderboard, openPDFViewer, openPermissionDialog, openURL, partner, requestNotificationAgreement, requestPermission, requestReview, requestTossPayPaysBilling, saveBase64Data, saveUserPreset, setClipboardText, setDeviceOrientation, setIosSwipeGestureEnabled, setScreenAwakeMode, setSecureScreen, share, showFullScreenAd, startUpdateLocation, submitGameCenterLeaderBoardScore, tdsEvent };
@@ -156,6 +156,7 @@ declare const isMinVersionSupported: typeof SDK.isMinVersionSupported;
156
156
  declare const GoogleAdMob: typeof SDK.GoogleAdMob;
157
157
  declare const loadFullScreenAd: typeof SDK.loadFullScreenAd;
158
158
  declare const showFullScreenAd: typeof SDK.showFullScreenAd;
159
+ declare const Ads: typeof SDK.Ads;
159
160
  declare const IAP: typeof SDK.IAP;
160
161
  declare const Analytics: typeof SDK.Analytics;
161
162
  declare const Clipboard: typeof SDK.Clipboard;
@@ -1050,4 +1051,4 @@ declare function listUserPresets(): MockPreset[];
1050
1051
  declare function saveUserPreset(label: string, state: MockPresetState, description?: string): MockPreset;
1051
1052
  declare function deleteUserPreset(id: string): void;
1052
1053
  //#endregion
1053
- export { Accuracy, type AitDevtoolsState, Analytics, type AnalyticsLogEntry, Clipboard, type ConsentedUserData, type ConsentedUserDataKey, type DeclaredAgeRange, Device, type DeviceApiMode, type DeviceModes, Environment, FetchAlbumPhotosPermissionError, FetchContactsPermissionError, File, Game, GetClipboardTextPermissionError, GetCurrentLocationPermissionError, GoogleAdMob, type HapticFeedbackType, IAP, type IapNextResult, type LocationCoords, Migration, type MockContact, type MockData, type MockIapProduct, type MockLocation, type MockPreset, type MockPresetState, type NetworkStatus, Notification, OpenCameraPermissionError, type OperationalEnvironment, PermissionError, type PermissionName, type PermissionStatus, type PlatformOS, type Primitive, Promotion, Review, SafeArea, SafeAreaInsets, type SafeAreaInsets$1 as SafeAreaInsetsType, Screen, SetClipboardTextPermissionError, Share, StartUpdateLocationPermissionError, Storage, TossAds, TossAuth, TossPay, User, aitState, appLogin, applyPreset, appsInTossEvent, appsInTossSignTossCert, builtInPresets, captureCurrentState, checkoutPayment, closeView, contactsViral, createAsyncBridge, createConstantBridge, createEventBridge, deleteUserPreset, env, eventLog, fetchAlbumItems, fetchAlbumPhotos, fetchContacts, generateHapticFeedback, getAnonymousKey, getAppsInTossGlobals, getClipboardText, getConsentedUserData, getCurrentLocation, getDeclaredAgeRange, getDefaultPlaceholderImages, getDeviceId, getGameCenterGameProfile, getGroupId, getIsTossLoginIntegratedService, getLocale, getNetworkStatus, getOperationalEnvironment, getPermission, getPlatformOS, getSafeAreaInsets, getSchemeUri, getServerTime, getTossAppVersion, getTossShareLink, getUserKeyForGame, graniteEvent, grantPromotionReward, grantPromotionRewardForGame, isMinVersionSupported, listUserPresets, loadFullScreenAd, matchesPreset, onVisibilityChangedByTransparentServiceWeb, openCamera, openGameCenterLeaderboard, openPDFViewer, openPermissionDialog, openURL, partner, requestNotificationAgreement, requestPermission, requestReview, requestTossPayPaysBilling, saveBase64Data, saveUserPreset, setClipboardText, setDeviceOrientation, setIosSwipeGestureEnabled, setScreenAwakeMode, setSecureScreen, share, showFullScreenAd, startUpdateLocation, submitGameCenterLeaderBoardScore, tdsEvent };
1054
+ export { Accuracy, Ads, type AitDevtoolsState, Analytics, type AnalyticsLogEntry, Clipboard, type ConsentedUserData, type ConsentedUserDataKey, type DeclaredAgeRange, Device, type DeviceApiMode, type DeviceModes, Environment, FetchAlbumPhotosPermissionError, FetchContactsPermissionError, File, Game, GetClipboardTextPermissionError, GetCurrentLocationPermissionError, GoogleAdMob, type HapticFeedbackType, IAP, type IapNextResult, type LocationCoords, Migration, type MockContact, type MockData, type MockIapProduct, type MockLocation, type MockPreset, type MockPresetState, type NetworkStatus, Notification, OpenCameraPermissionError, type OperationalEnvironment, PermissionError, type PermissionName, type PermissionStatus, type PlatformOS, type Primitive, Promotion, Review, SafeArea, SafeAreaInsets, type SafeAreaInsets$1 as SafeAreaInsetsType, Screen, SetClipboardTextPermissionError, Share, StartUpdateLocationPermissionError, Storage, TossAds, TossAuth, TossPay, User, aitState, appLogin, applyPreset, appsInTossEvent, appsInTossSignTossCert, builtInPresets, captureCurrentState, checkoutPayment, closeView, contactsViral, createAsyncBridge, createConstantBridge, createEventBridge, deleteUserPreset, env, eventLog, fetchAlbumItems, fetchAlbumPhotos, fetchContacts, generateHapticFeedback, getAnonymousKey, getAppsInTossGlobals, getClipboardText, getConsentedUserData, getCurrentLocation, getDeclaredAgeRange, getDefaultPlaceholderImages, getDeviceId, getGameCenterGameProfile, getGroupId, getIsTossLoginIntegratedService, getLocale, getNetworkStatus, getOperationalEnvironment, getPermission, getPlatformOS, getSafeAreaInsets, getSchemeUri, getServerTime, getTossAppVersion, getTossShareLink, getUserKeyForGame, graniteEvent, grantPromotionReward, grantPromotionRewardForGame, isMinVersionSupported, listUserPresets, loadFullScreenAd, matchesPreset, onVisibilityChangedByTransparentServiceWeb, openCamera, openGameCenterLeaderboard, openPDFViewer, openPermissionDialog, openURL, partner, requestNotificationAgreement, requestPermission, requestReview, requestTossPayPaysBilling, saveBase64Data, saveUserPreset, setClipboardText, setDeviceOrientation, setIosSwipeGestureEnabled, setScreenAwakeMode, setSecureScreen, share, showFullScreenAd, startUpdateLocation, submitGameCenterLeaderBoardScore, tdsEvent };
@@ -768,6 +768,39 @@ const showFullScreenAd$1 = withIsSupported(observe("showFullScreenAd", "faithful
768
768
  setTimeout(() => args.onEvent({ type: "dismissed" }), 1500);
769
769
  return () => {};
770
770
  }));
771
+ const Ads$1 = createMockProxy("Ads", {
772
+ showTossAdOrShoppingAds: withIsSupported(observe("Ads.showTossAdOrShoppingAds", "faithful", (args) => {
773
+ if (!aitState.state.ads.isLoaded) {
774
+ args.onError(/* @__PURE__ */ new Error("Ad not loaded"));
775
+ return () => {};
776
+ }
777
+ const { rewardUnitType, rewardAmount } = aitState.state.ads;
778
+ setTimeout(() => args.onEvent({
779
+ type: "userEarnedReward",
780
+ data: {
781
+ unitType: rewardUnitType,
782
+ unitAmount: rewardAmount
783
+ }
784
+ }), 1e3);
785
+ setTimeout(() => {
786
+ args.onEvent({ type: "dismissed" });
787
+ aitState.patch("ads", { isLoaded: false });
788
+ }, 1500);
789
+ return () => {};
790
+ })),
791
+ showTossShoppingAds: withIsSupported(observe("Ads.showTossShoppingAds", "faithful", (args) => {
792
+ const { rewardUnitType, rewardAmount } = aitState.state.ads;
793
+ setTimeout(() => args.onEvent({
794
+ type: "userEarnedReward",
795
+ data: {
796
+ unitType: rewardUnitType,
797
+ unitAmount: rewardAmount
798
+ }
799
+ }), 1e3);
800
+ setTimeout(() => args.onEvent({ type: "dismissed" }), 1500);
801
+ return () => {};
802
+ }))
803
+ });
771
804
  //#endregion
772
805
  //#region src/mock/analytics/index.ts
773
806
  /**
@@ -2472,6 +2505,14 @@ const showFullScreenAd = Object.assign((args) => showFullScreenAd$1({
2472
2505
  options: args.options ?? { adGroupId: "mock-ad-group" },
2473
2506
  onError: (error) => args.onError(error instanceof Error ? error : new Error(String(error)))
2474
2507
  }), { isSupported: () => true });
2508
+ const shoppingAdsMin = {
2509
+ android: "5.273.0",
2510
+ ios: "5.273.0"
2511
+ };
2512
+ const Ads = {
2513
+ showTossAdOrShoppingAds: supported(Ads$1.showTossAdOrShoppingAds, shoppingAdsMin),
2514
+ showTossShoppingAds: supported(Ads$1.showTossShoppingAds, shoppingAdsMin)
2515
+ };
2475
2516
  const IAP = {
2476
2517
  createOneTimePurchaseOrder: supported(IAP$1.createOneTimePurchaseOrder, V.iapOneTime),
2477
2518
  createSubscriptionPurchaseOrder: supported(IAP$1.createSubscriptionPurchaseOrder, V.iapSubscription),
@@ -2593,4 +2634,4 @@ const User = {
2593
2634
  getDeclaredAgeRange
2594
2635
  };
2595
2636
  //#endregion
2596
- export { Accuracy, Analytics, Clipboard, Device, Environment, FetchAlbumPhotosPermissionError, FetchContactsPermissionError, File, Game, GetClipboardTextPermissionError, GetCurrentLocationPermissionError, GoogleAdMob, IAP, Migration, Notification, OpenCameraPermissionError, PermissionError, Promotion, Review, SafeArea, SafeAreaInsets, Screen, SetClipboardTextPermissionError, Share, StartUpdateLocationPermissionError, Storage, TossAds, TossAuth, TossPay, User, aitState, appLogin, applyPreset, appsInTossEvent, appsInTossSignTossCert, builtInPresets, captureCurrentState, checkoutPayment, closeView, contactsViral, createAsyncBridge, createConstantBridge, createEventBridge, deleteUserPreset, env, eventLog, fetchAlbumItems, fetchAlbumPhotos, fetchContacts, generateHapticFeedback, getAnonymousKey, getAppsInTossGlobals, getClipboardText, getConsentedUserData, getCurrentLocation, getDeclaredAgeRange, getDefaultPlaceholderImages, getDeviceId, getGameCenterGameProfile, getGroupId, getIsTossLoginIntegratedService, getLocale, getNetworkStatus, getOperationalEnvironment, getPermission, getPlatformOS, getSafeAreaInsets, getSchemeUri, getServerTime, getTossAppVersion, getTossShareLink, getUserKeyForGame, graniteEvent, grantPromotionReward, grantPromotionRewardForGame, isMinVersionSupported, listUserPresets, loadFullScreenAd, matchesPreset, onVisibilityChangedByTransparentServiceWeb, openCamera, openGameCenterLeaderboard, openPDFViewer, openPermissionDialog, openURL, partner, requestNotificationAgreement, requestPermission, requestReview, requestTossPayPaysBilling, saveBase64Data, saveUserPreset, setClipboardText, setDeviceOrientation, setIosSwipeGestureEnabled, setScreenAwakeMode, setSecureScreen, share, showFullScreenAd, startUpdateLocation, submitGameCenterLeaderBoardScore, tdsEvent };
2637
+ export { Accuracy, Ads, Analytics, Clipboard, Device, Environment, FetchAlbumPhotosPermissionError, FetchContactsPermissionError, File, Game, GetClipboardTextPermissionError, GetCurrentLocationPermissionError, GoogleAdMob, IAP, Migration, Notification, OpenCameraPermissionError, PermissionError, Promotion, Review, SafeArea, SafeAreaInsets, Screen, SetClipboardTextPermissionError, Share, StartUpdateLocationPermissionError, Storage, TossAds, TossAuth, TossPay, User, aitState, appLogin, applyPreset, appsInTossEvent, appsInTossSignTossCert, builtInPresets, captureCurrentState, checkoutPayment, closeView, contactsViral, createAsyncBridge, createConstantBridge, createEventBridge, deleteUserPreset, env, eventLog, fetchAlbumItems, fetchAlbumPhotos, fetchContacts, generateHapticFeedback, getAnonymousKey, getAppsInTossGlobals, getClipboardText, getConsentedUserData, getCurrentLocation, getDeclaredAgeRange, getDefaultPlaceholderImages, getDeviceId, getGameCenterGameProfile, getGroupId, getIsTossLoginIntegratedService, getLocale, getNetworkStatus, getOperationalEnvironment, getPermission, getPlatformOS, getSafeAreaInsets, getSchemeUri, getServerTime, getTossAppVersion, getTossShareLink, getUserKeyForGame, graniteEvent, grantPromotionReward, grantPromotionRewardForGame, isMinVersionSupported, listUserPresets, loadFullScreenAd, matchesPreset, onVisibilityChangedByTransparentServiceWeb, openCamera, openGameCenterLeaderboard, openPDFViewer, openPermissionDialog, openURL, partner, requestNotificationAgreement, requestPermission, requestReview, requestTossPayPaysBilling, saveBase64Data, saveUserPreset, setClipboardText, setDeviceOrientation, setIosSwipeGestureEnabled, setScreenAwakeMode, setSecureScreen, share, showFullScreenAd, startUpdateLocation, submitGameCenterLeaderBoardScore, tdsEvent };
@@ -27848,6 +27848,39 @@ const showFullScreenAd = withIsSupported(observe("showFullScreenAd", "faithful",
27848
27848
  setTimeout(() => args.onEvent({ type: "dismissed" }), 1500);
27849
27849
  return () => {};
27850
27850
  }));
27851
+ createMockProxy("Ads", {
27852
+ showTossAdOrShoppingAds: withIsSupported(observe("Ads.showTossAdOrShoppingAds", "faithful", (args) => {
27853
+ if (!aitState.state.ads.isLoaded) {
27854
+ args.onError(/* @__PURE__ */ new Error("Ad not loaded"));
27855
+ return () => {};
27856
+ }
27857
+ const { rewardUnitType, rewardAmount } = aitState.state.ads;
27858
+ setTimeout(() => args.onEvent({
27859
+ type: "userEarnedReward",
27860
+ data: {
27861
+ unitType: rewardUnitType,
27862
+ unitAmount: rewardAmount
27863
+ }
27864
+ }), 1e3);
27865
+ setTimeout(() => {
27866
+ args.onEvent({ type: "dismissed" });
27867
+ aitState.patch("ads", { isLoaded: false });
27868
+ }, 1500);
27869
+ return () => {};
27870
+ })),
27871
+ showTossShoppingAds: withIsSupported(observe("Ads.showTossShoppingAds", "faithful", (args) => {
27872
+ const { rewardUnitType, rewardAmount } = aitState.state.ads;
27873
+ setTimeout(() => args.onEvent({
27874
+ type: "userEarnedReward",
27875
+ data: {
27876
+ unitType: rewardUnitType,
27877
+ unitAmount: rewardAmount
27878
+ }
27879
+ }), 1e3);
27880
+ setTimeout(() => args.onEvent({ type: "dismissed" }), 1500);
27881
+ return () => {};
27882
+ }))
27883
+ });
27851
27884
  //#endregion
27852
27885
  //#region src/panel/tabs/ads.ts
27853
27886
  function recordEvent(type) {
@@ -30601,7 +30634,7 @@ function Panel() {
30601
30634
  color: "#666",
30602
30635
  fontWeight: 400
30603
30636
  },
30604
- children: ["v", "3.1.1"]
30637
+ children: ["v", "3.2.0-beta.0"]
30605
30638
  }),
30606
30639
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", {
30607
30640
  type: "button",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apps-in-toss/devtools",
3
- "version": "3.1.1",
3
+ "version": "3.2.0-beta.0",
4
4
  "description": "Browser development tools for Apps in Toss mini-apps — mock SDK, floating devtools panel, and universal bundler plugin. devDependency only; contributes nothing to a production bundle",
5
5
  "keywords": [
6
6
  "apps-in-toss",
@@ -67,7 +67,7 @@
67
67
  "unplugin": "^3.2.0"
68
68
  },
69
69
  "devDependencies": {
70
- "@apps-in-toss/web-framework": "^3.1.1",
70
+ "@apps-in-toss/web-framework": "^3.2.0-beta.0",
71
71
  "@apps-in-toss/web-framework-2x": "npm:@apps-in-toss/web-framework@2.10.8",
72
72
  "@testing-library/dom": "10.4.1",
73
73
  "@testing-library/react": "16.3.2",
@@ -84,7 +84,7 @@
84
84
  "vitest": "4.1.9"
85
85
  },
86
86
  "peerDependencies": {
87
- "@apps-in-toss/web-framework": ">=2.6.0 <3.0.0 || >=3.0.1 <4.0.0"
87
+ "@apps-in-toss/web-framework": ">=3.2.0-beta.0"
88
88
  },
89
89
  "peerDependenciesMeta": {
90
90
  "@apps-in-toss/web-framework": {