@apps-in-toss/framework 1.9.4 → 1.10.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/dist/index.cjs +1254 -1
- package/dist/index.d.cts +48 -55
- package/dist/index.d.ts +48 -55
- package/dist/index.js +1261 -1
- package/package.json +7 -7
package/dist/index.d.cts
CHANGED
|
@@ -6,8 +6,9 @@ export * from '@apps-in-toss/analytics';
|
|
|
6
6
|
import { InitialProps, GraniteProps } from '@granite-js/react-native';
|
|
7
7
|
import { WebViewProps as WebViewProps$1 } from '@granite-js/native/react-native-webview';
|
|
8
8
|
import { ExternalWebViewScreenProps } from '@toss/tds-react-native';
|
|
9
|
-
import { StartUpdateLocationOptions, Location } from '@apps-in-toss/types';
|
|
9
|
+
import { StartUpdateLocationOptions, Location, LoadFullScreenAdParams, ShowFullScreenAdParams } from '@apps-in-toss/types';
|
|
10
10
|
export * from '@apps-in-toss/types';
|
|
11
|
+
export { FetchTossAdOptions, LoadFullScreenAdEvent, LoadFullScreenAdOptions, LoadFullScreenAdParams, ShowFullScreenAdEvent, ShowFullScreenAdOptions, ShowFullScreenAdParams, TossAdEventLogParams } from '@apps-in-toss/types';
|
|
11
12
|
import { onVisibilityChangedByTransparentServiceWeb } from '@apps-in-toss/native-modules';
|
|
12
13
|
export * from '@apps-in-toss/native-modules';
|
|
13
14
|
export { OverlayProvider, useOverlay } from '@toss/tds-react-native/private';
|
|
@@ -172,71 +173,63 @@ declare const env: {
|
|
|
172
173
|
|
|
173
174
|
declare const INTERNAL__onVisibilityChangedByTransparentServiceWeb: typeof onVisibilityChangedByTransparentServiceWeb;
|
|
174
175
|
|
|
175
|
-
interface LoadFullScreenAdOptions {
|
|
176
|
-
adGroupId: string;
|
|
177
|
-
}
|
|
178
|
-
interface LoadFullScreenAdEvent {
|
|
179
|
-
type: 'loaded';
|
|
180
|
-
}
|
|
181
|
-
interface LoadFullScreenAdParams {
|
|
182
|
-
options: LoadFullScreenAdOptions;
|
|
183
|
-
onEvent: (data: LoadFullScreenAdEvent) => void;
|
|
184
|
-
onError: (err: unknown) => void;
|
|
185
|
-
}
|
|
186
176
|
declare const loadFullScreenAd: {
|
|
187
177
|
(params: LoadFullScreenAdParams): () => void;
|
|
188
178
|
isSupported: () => boolean;
|
|
189
179
|
};
|
|
190
|
-
interface ShowFullScreenAdOptions {
|
|
191
|
-
adGroupId: string;
|
|
192
|
-
}
|
|
193
|
-
type AdMobFullScreenEvent = AdClicked | AdDismissed | AdFailedToShow | AdImpression | AdShow;
|
|
194
|
-
type AdClicked = {
|
|
195
|
-
type: 'clicked';
|
|
196
|
-
};
|
|
197
|
-
type AdDismissed = {
|
|
198
|
-
type: 'dismissed';
|
|
199
|
-
};
|
|
200
|
-
type AdFailedToShow = {
|
|
201
|
-
type: 'failedToShow';
|
|
202
|
-
};
|
|
203
|
-
type AdImpression = {
|
|
204
|
-
type: 'impression';
|
|
205
|
-
};
|
|
206
|
-
type AdShow = {
|
|
207
|
-
type: 'show';
|
|
208
|
-
};
|
|
209
|
-
type AdUserEarnedReward = {
|
|
210
|
-
type: 'userEarnedReward';
|
|
211
|
-
data: {
|
|
212
|
-
unitType: string;
|
|
213
|
-
unitAmount: number;
|
|
214
|
-
};
|
|
215
|
-
};
|
|
216
|
-
type ShowFullScreenAdEvent = AdMobFullScreenEvent | AdUserEarnedReward | {
|
|
217
|
-
type: 'requested';
|
|
218
|
-
};
|
|
219
|
-
interface ShowFullScreenAdParams {
|
|
220
|
-
options: ShowFullScreenAdOptions;
|
|
221
|
-
onEvent: (data: ShowFullScreenAdEvent) => void;
|
|
222
|
-
onError: (err: unknown) => void;
|
|
223
|
-
}
|
|
224
180
|
declare function showFullScreenAd(params: ShowFullScreenAdParams): () => void;
|
|
225
181
|
declare namespace showFullScreenAd {
|
|
226
182
|
var isSupported: () => boolean;
|
|
227
183
|
}
|
|
228
184
|
|
|
229
|
-
interface
|
|
185
|
+
interface AdError {
|
|
186
|
+
code: number;
|
|
187
|
+
message: string;
|
|
188
|
+
domain?: string;
|
|
189
|
+
}
|
|
190
|
+
interface BannerSlotEventPayload {
|
|
191
|
+
slotId: string;
|
|
230
192
|
adGroupId: string;
|
|
231
|
-
|
|
232
|
-
|
|
193
|
+
adMetadata: {
|
|
194
|
+
creativeId: string;
|
|
195
|
+
requestId: string;
|
|
196
|
+
styleId: string;
|
|
197
|
+
};
|
|
233
198
|
}
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
199
|
+
interface BannerSlotErrorPayload {
|
|
200
|
+
slotId: string;
|
|
201
|
+
adGroupId: string;
|
|
202
|
+
adMetadata: Record<string, never>;
|
|
203
|
+
error: {
|
|
204
|
+
code: number;
|
|
205
|
+
message: string;
|
|
206
|
+
domain?: string;
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
interface BannerSlotCallbacks {
|
|
210
|
+
onAdRendered?: (payload: BannerSlotEventPayload) => void;
|
|
211
|
+
onAdViewable?: (payload: BannerSlotEventPayload) => void;
|
|
212
|
+
onAdClicked?: (payload: BannerSlotEventPayload) => void;
|
|
213
|
+
onAdImpression?: (payload: BannerSlotEventPayload) => void;
|
|
214
|
+
onAdFailedToRender?: (payload: BannerSlotErrorPayload) => void;
|
|
215
|
+
onNoFill?: (payload: {
|
|
216
|
+
slotId: string;
|
|
217
|
+
adGroupId: string;
|
|
218
|
+
adMetadata: Record<string, never>;
|
|
219
|
+
}) => void;
|
|
239
220
|
}
|
|
221
|
+
type InlineAdTheme = 'auto' | 'light' | 'dark';
|
|
222
|
+
type InlineAdTone = 'blackAndWhite' | 'grey';
|
|
223
|
+
type InlineAdVariant = 'expanded' | 'card';
|
|
224
|
+
interface InlineAdProps extends BannerSlotCallbacks {
|
|
225
|
+
adGroupId: string;
|
|
226
|
+
theme?: InlineAdTheme;
|
|
227
|
+
tone?: InlineAdTone;
|
|
228
|
+
variant?: InlineAdVariant;
|
|
229
|
+
impressFallbackOnMount?: boolean;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
declare function InlineAd(props: InlineAdProps): react_jsx_runtime.JSX.Element | null;
|
|
240
233
|
|
|
241
234
|
declare const Analytics: {
|
|
242
235
|
init: (options: _apps_in_toss_analytics.AnalyticsConfig) => void;
|
|
@@ -245,4 +238,4 @@ declare const Analytics: {
|
|
|
245
238
|
Area: ({ children, params: _params, ...props }: _apps_in_toss_analytics.LoggingAreaProps) => react_jsx_runtime.JSX.Element;
|
|
246
239
|
};
|
|
247
240
|
|
|
248
|
-
export { Analytics, AppsInToss, type
|
|
241
|
+
export { type AdError, Analytics, AppsInToss, type BannerSlotCallbacks, type BannerSlotErrorPayload, type BannerSlotEventPayload, type ExternalWebViewProps, type GameWebViewProps, INTERNAL__onVisibilityChangedByTransparentServiceWeb, InlineAd, type InlineAdProps, type InlineAdTheme, type InlineAdTone, type InlineAdVariant, type PartnerWebViewProps, type UseGeolocationOptions, WebView, type WebViewProps, env, loadFullScreenAd, showFullScreenAd, useCreateUserAgent, useGeolocation, useTopNavigation, useWaitForReturnNavigator };
|
package/dist/index.d.ts
CHANGED
|
@@ -6,8 +6,9 @@ export * from '@apps-in-toss/analytics';
|
|
|
6
6
|
import { InitialProps, GraniteProps } from '@granite-js/react-native';
|
|
7
7
|
import { WebViewProps as WebViewProps$1 } from '@granite-js/native/react-native-webview';
|
|
8
8
|
import { ExternalWebViewScreenProps } from '@toss/tds-react-native';
|
|
9
|
-
import { StartUpdateLocationOptions, Location } from '@apps-in-toss/types';
|
|
9
|
+
import { StartUpdateLocationOptions, Location, LoadFullScreenAdParams, ShowFullScreenAdParams } from '@apps-in-toss/types';
|
|
10
10
|
export * from '@apps-in-toss/types';
|
|
11
|
+
export { FetchTossAdOptions, LoadFullScreenAdEvent, LoadFullScreenAdOptions, LoadFullScreenAdParams, ShowFullScreenAdEvent, ShowFullScreenAdOptions, ShowFullScreenAdParams, TossAdEventLogParams } from '@apps-in-toss/types';
|
|
11
12
|
import { onVisibilityChangedByTransparentServiceWeb } from '@apps-in-toss/native-modules';
|
|
12
13
|
export * from '@apps-in-toss/native-modules';
|
|
13
14
|
export { OverlayProvider, useOverlay } from '@toss/tds-react-native/private';
|
|
@@ -172,71 +173,63 @@ declare const env: {
|
|
|
172
173
|
|
|
173
174
|
declare const INTERNAL__onVisibilityChangedByTransparentServiceWeb: typeof onVisibilityChangedByTransparentServiceWeb;
|
|
174
175
|
|
|
175
|
-
interface LoadFullScreenAdOptions {
|
|
176
|
-
adGroupId: string;
|
|
177
|
-
}
|
|
178
|
-
interface LoadFullScreenAdEvent {
|
|
179
|
-
type: 'loaded';
|
|
180
|
-
}
|
|
181
|
-
interface LoadFullScreenAdParams {
|
|
182
|
-
options: LoadFullScreenAdOptions;
|
|
183
|
-
onEvent: (data: LoadFullScreenAdEvent) => void;
|
|
184
|
-
onError: (err: unknown) => void;
|
|
185
|
-
}
|
|
186
176
|
declare const loadFullScreenAd: {
|
|
187
177
|
(params: LoadFullScreenAdParams): () => void;
|
|
188
178
|
isSupported: () => boolean;
|
|
189
179
|
};
|
|
190
|
-
interface ShowFullScreenAdOptions {
|
|
191
|
-
adGroupId: string;
|
|
192
|
-
}
|
|
193
|
-
type AdMobFullScreenEvent = AdClicked | AdDismissed | AdFailedToShow | AdImpression | AdShow;
|
|
194
|
-
type AdClicked = {
|
|
195
|
-
type: 'clicked';
|
|
196
|
-
};
|
|
197
|
-
type AdDismissed = {
|
|
198
|
-
type: 'dismissed';
|
|
199
|
-
};
|
|
200
|
-
type AdFailedToShow = {
|
|
201
|
-
type: 'failedToShow';
|
|
202
|
-
};
|
|
203
|
-
type AdImpression = {
|
|
204
|
-
type: 'impression';
|
|
205
|
-
};
|
|
206
|
-
type AdShow = {
|
|
207
|
-
type: 'show';
|
|
208
|
-
};
|
|
209
|
-
type AdUserEarnedReward = {
|
|
210
|
-
type: 'userEarnedReward';
|
|
211
|
-
data: {
|
|
212
|
-
unitType: string;
|
|
213
|
-
unitAmount: number;
|
|
214
|
-
};
|
|
215
|
-
};
|
|
216
|
-
type ShowFullScreenAdEvent = AdMobFullScreenEvent | AdUserEarnedReward | {
|
|
217
|
-
type: 'requested';
|
|
218
|
-
};
|
|
219
|
-
interface ShowFullScreenAdParams {
|
|
220
|
-
options: ShowFullScreenAdOptions;
|
|
221
|
-
onEvent: (data: ShowFullScreenAdEvent) => void;
|
|
222
|
-
onError: (err: unknown) => void;
|
|
223
|
-
}
|
|
224
180
|
declare function showFullScreenAd(params: ShowFullScreenAdParams): () => void;
|
|
225
181
|
declare namespace showFullScreenAd {
|
|
226
182
|
var isSupported: () => boolean;
|
|
227
183
|
}
|
|
228
184
|
|
|
229
|
-
interface
|
|
185
|
+
interface AdError {
|
|
186
|
+
code: number;
|
|
187
|
+
message: string;
|
|
188
|
+
domain?: string;
|
|
189
|
+
}
|
|
190
|
+
interface BannerSlotEventPayload {
|
|
191
|
+
slotId: string;
|
|
230
192
|
adGroupId: string;
|
|
231
|
-
|
|
232
|
-
|
|
193
|
+
adMetadata: {
|
|
194
|
+
creativeId: string;
|
|
195
|
+
requestId: string;
|
|
196
|
+
styleId: string;
|
|
197
|
+
};
|
|
233
198
|
}
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
199
|
+
interface BannerSlotErrorPayload {
|
|
200
|
+
slotId: string;
|
|
201
|
+
adGroupId: string;
|
|
202
|
+
adMetadata: Record<string, never>;
|
|
203
|
+
error: {
|
|
204
|
+
code: number;
|
|
205
|
+
message: string;
|
|
206
|
+
domain?: string;
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
interface BannerSlotCallbacks {
|
|
210
|
+
onAdRendered?: (payload: BannerSlotEventPayload) => void;
|
|
211
|
+
onAdViewable?: (payload: BannerSlotEventPayload) => void;
|
|
212
|
+
onAdClicked?: (payload: BannerSlotEventPayload) => void;
|
|
213
|
+
onAdImpression?: (payload: BannerSlotEventPayload) => void;
|
|
214
|
+
onAdFailedToRender?: (payload: BannerSlotErrorPayload) => void;
|
|
215
|
+
onNoFill?: (payload: {
|
|
216
|
+
slotId: string;
|
|
217
|
+
adGroupId: string;
|
|
218
|
+
adMetadata: Record<string, never>;
|
|
219
|
+
}) => void;
|
|
239
220
|
}
|
|
221
|
+
type InlineAdTheme = 'auto' | 'light' | 'dark';
|
|
222
|
+
type InlineAdTone = 'blackAndWhite' | 'grey';
|
|
223
|
+
type InlineAdVariant = 'expanded' | 'card';
|
|
224
|
+
interface InlineAdProps extends BannerSlotCallbacks {
|
|
225
|
+
adGroupId: string;
|
|
226
|
+
theme?: InlineAdTheme;
|
|
227
|
+
tone?: InlineAdTone;
|
|
228
|
+
variant?: InlineAdVariant;
|
|
229
|
+
impressFallbackOnMount?: boolean;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
declare function InlineAd(props: InlineAdProps): react_jsx_runtime.JSX.Element | null;
|
|
240
233
|
|
|
241
234
|
declare const Analytics: {
|
|
242
235
|
init: (options: _apps_in_toss_analytics.AnalyticsConfig) => void;
|
|
@@ -245,4 +238,4 @@ declare const Analytics: {
|
|
|
245
238
|
Area: ({ children, params: _params, ...props }: _apps_in_toss_analytics.LoggingAreaProps) => react_jsx_runtime.JSX.Element;
|
|
246
239
|
};
|
|
247
240
|
|
|
248
|
-
export { Analytics, AppsInToss, type
|
|
241
|
+
export { type AdError, Analytics, AppsInToss, type BannerSlotCallbacks, type BannerSlotErrorPayload, type BannerSlotEventPayload, type ExternalWebViewProps, type GameWebViewProps, INTERNAL__onVisibilityChangedByTransparentServiceWeb, InlineAd, type InlineAdProps, type InlineAdTheme, type InlineAdTone, type InlineAdVariant, type PartnerWebViewProps, type UseGeolocationOptions, WebView, type WebViewProps, env, loadFullScreenAd, showFullScreenAd, useCreateUserAgent, useGeolocation, useTopNavigation, useWaitForReturnNavigator };
|