@apps-in-toss/framework 1.5.2 → 1.6.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 +607 -273
- package/dist/index.d.cts +68 -2
- package/dist/index.d.ts +68 -2
- package/dist/index.js +447 -111
- package/package.json +7 -7
package/dist/index.d.cts
CHANGED
|
@@ -165,11 +165,77 @@ declare function useTopNavigation(): {
|
|
|
165
165
|
};
|
|
166
166
|
|
|
167
167
|
declare const env: {
|
|
168
|
-
getDeploymentId: () => string
|
|
168
|
+
getDeploymentId: () => string;
|
|
169
169
|
};
|
|
170
170
|
|
|
171
171
|
declare const INTERNAL__onVisibilityChangedByTransparentServiceWeb: typeof onVisibilityChangedByTransparentServiceWeb;
|
|
172
172
|
|
|
173
|
+
interface LoadFullScreenAdOptions {
|
|
174
|
+
adGroupId: string;
|
|
175
|
+
}
|
|
176
|
+
interface LoadFullScreenAdEvent {
|
|
177
|
+
type: 'loaded';
|
|
178
|
+
}
|
|
179
|
+
interface LoadFullScreenAdParams {
|
|
180
|
+
options: LoadFullScreenAdOptions;
|
|
181
|
+
onEvent: (data: LoadFullScreenAdEvent) => void;
|
|
182
|
+
onError: (err: unknown) => void;
|
|
183
|
+
}
|
|
184
|
+
declare const loadFullScreenAd: {
|
|
185
|
+
(params: LoadFullScreenAdParams): () => void;
|
|
186
|
+
isSupported: () => boolean;
|
|
187
|
+
};
|
|
188
|
+
interface ShowFullScreenAdOptions {
|
|
189
|
+
adGroupId: string;
|
|
190
|
+
}
|
|
191
|
+
type AdMobFullScreenEvent = AdClicked | AdDismissed | AdFailedToShow | AdImpression | AdShow;
|
|
192
|
+
type AdClicked = {
|
|
193
|
+
type: 'clicked';
|
|
194
|
+
};
|
|
195
|
+
type AdDismissed = {
|
|
196
|
+
type: 'dismissed';
|
|
197
|
+
};
|
|
198
|
+
type AdFailedToShow = {
|
|
199
|
+
type: 'failedToShow';
|
|
200
|
+
};
|
|
201
|
+
type AdImpression = {
|
|
202
|
+
type: 'impression';
|
|
203
|
+
};
|
|
204
|
+
type AdShow = {
|
|
205
|
+
type: 'show';
|
|
206
|
+
};
|
|
207
|
+
type AdUserEarnedReward = {
|
|
208
|
+
type: 'userEarnedReward';
|
|
209
|
+
data: {
|
|
210
|
+
unitType: string;
|
|
211
|
+
unitAmount: number;
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
type ShowFullScreenAdEvent = AdMobFullScreenEvent | AdUserEarnedReward | {
|
|
215
|
+
type: 'requested';
|
|
216
|
+
};
|
|
217
|
+
interface ShowFullScreenAdParams {
|
|
218
|
+
options: ShowFullScreenAdOptions;
|
|
219
|
+
onEvent: (data: ShowFullScreenAdEvent) => void;
|
|
220
|
+
onError: (err: unknown) => void;
|
|
221
|
+
}
|
|
222
|
+
declare function showFullScreenAd(params: ShowFullScreenAdParams): () => void;
|
|
223
|
+
declare namespace showFullScreenAd {
|
|
224
|
+
var isSupported: () => boolean;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
interface FetchTossAdOptions {
|
|
228
|
+
adGroupId: string;
|
|
229
|
+
sdkId: string;
|
|
230
|
+
availableStyleIds: string[];
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
interface TossAdEventLogParams {
|
|
234
|
+
log_name: string;
|
|
235
|
+
log_type: string;
|
|
236
|
+
params: Record<string, unknown>;
|
|
237
|
+
}
|
|
238
|
+
|
|
173
239
|
declare const Analytics: {
|
|
174
240
|
init: (options: _apps_in_toss_analytics.AnalyticsConfig) => void;
|
|
175
241
|
Impression: ({ enabled, impression: impressionType, ...props }: _apps_in_toss_analytics.LoggingImpressionProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -177,4 +243,4 @@ declare const Analytics: {
|
|
|
177
243
|
Area: ({ children, params: _params, ...props }: _apps_in_toss_analytics.LoggingAreaProps) => react_jsx_runtime.JSX.Element;
|
|
178
244
|
};
|
|
179
245
|
|
|
180
|
-
export { Analytics, AppsInToss, type ExternalWebViewProps, type GameWebViewProps, INTERNAL__onVisibilityChangedByTransparentServiceWeb, type PartnerWebViewProps, type UseGeolocationOptions, WebView, type WebViewProps, env, useCreateUserAgent, useGeolocation, useTopNavigation, useWaitForReturnNavigator };
|
|
246
|
+
export { Analytics, AppsInToss, type ExternalWebViewProps, type FetchTossAdOptions, type GameWebViewProps, INTERNAL__onVisibilityChangedByTransparentServiceWeb, type LoadFullScreenAdEvent, type LoadFullScreenAdOptions, type LoadFullScreenAdParams, type PartnerWebViewProps, type ShowFullScreenAdEvent, type ShowFullScreenAdOptions, type ShowFullScreenAdParams, type TossAdEventLogParams, type UseGeolocationOptions, WebView, type WebViewProps, env, loadFullScreenAd, showFullScreenAd, useCreateUserAgent, useGeolocation, useTopNavigation, useWaitForReturnNavigator };
|
package/dist/index.d.ts
CHANGED
|
@@ -165,11 +165,77 @@ declare function useTopNavigation(): {
|
|
|
165
165
|
};
|
|
166
166
|
|
|
167
167
|
declare const env: {
|
|
168
|
-
getDeploymentId: () => string
|
|
168
|
+
getDeploymentId: () => string;
|
|
169
169
|
};
|
|
170
170
|
|
|
171
171
|
declare const INTERNAL__onVisibilityChangedByTransparentServiceWeb: typeof onVisibilityChangedByTransparentServiceWeb;
|
|
172
172
|
|
|
173
|
+
interface LoadFullScreenAdOptions {
|
|
174
|
+
adGroupId: string;
|
|
175
|
+
}
|
|
176
|
+
interface LoadFullScreenAdEvent {
|
|
177
|
+
type: 'loaded';
|
|
178
|
+
}
|
|
179
|
+
interface LoadFullScreenAdParams {
|
|
180
|
+
options: LoadFullScreenAdOptions;
|
|
181
|
+
onEvent: (data: LoadFullScreenAdEvent) => void;
|
|
182
|
+
onError: (err: unknown) => void;
|
|
183
|
+
}
|
|
184
|
+
declare const loadFullScreenAd: {
|
|
185
|
+
(params: LoadFullScreenAdParams): () => void;
|
|
186
|
+
isSupported: () => boolean;
|
|
187
|
+
};
|
|
188
|
+
interface ShowFullScreenAdOptions {
|
|
189
|
+
adGroupId: string;
|
|
190
|
+
}
|
|
191
|
+
type AdMobFullScreenEvent = AdClicked | AdDismissed | AdFailedToShow | AdImpression | AdShow;
|
|
192
|
+
type AdClicked = {
|
|
193
|
+
type: 'clicked';
|
|
194
|
+
};
|
|
195
|
+
type AdDismissed = {
|
|
196
|
+
type: 'dismissed';
|
|
197
|
+
};
|
|
198
|
+
type AdFailedToShow = {
|
|
199
|
+
type: 'failedToShow';
|
|
200
|
+
};
|
|
201
|
+
type AdImpression = {
|
|
202
|
+
type: 'impression';
|
|
203
|
+
};
|
|
204
|
+
type AdShow = {
|
|
205
|
+
type: 'show';
|
|
206
|
+
};
|
|
207
|
+
type AdUserEarnedReward = {
|
|
208
|
+
type: 'userEarnedReward';
|
|
209
|
+
data: {
|
|
210
|
+
unitType: string;
|
|
211
|
+
unitAmount: number;
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
type ShowFullScreenAdEvent = AdMobFullScreenEvent | AdUserEarnedReward | {
|
|
215
|
+
type: 'requested';
|
|
216
|
+
};
|
|
217
|
+
interface ShowFullScreenAdParams {
|
|
218
|
+
options: ShowFullScreenAdOptions;
|
|
219
|
+
onEvent: (data: ShowFullScreenAdEvent) => void;
|
|
220
|
+
onError: (err: unknown) => void;
|
|
221
|
+
}
|
|
222
|
+
declare function showFullScreenAd(params: ShowFullScreenAdParams): () => void;
|
|
223
|
+
declare namespace showFullScreenAd {
|
|
224
|
+
var isSupported: () => boolean;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
interface FetchTossAdOptions {
|
|
228
|
+
adGroupId: string;
|
|
229
|
+
sdkId: string;
|
|
230
|
+
availableStyleIds: string[];
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
interface TossAdEventLogParams {
|
|
234
|
+
log_name: string;
|
|
235
|
+
log_type: string;
|
|
236
|
+
params: Record<string, unknown>;
|
|
237
|
+
}
|
|
238
|
+
|
|
173
239
|
declare const Analytics: {
|
|
174
240
|
init: (options: _apps_in_toss_analytics.AnalyticsConfig) => void;
|
|
175
241
|
Impression: ({ enabled, impression: impressionType, ...props }: _apps_in_toss_analytics.LoggingImpressionProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -177,4 +243,4 @@ declare const Analytics: {
|
|
|
177
243
|
Area: ({ children, params: _params, ...props }: _apps_in_toss_analytics.LoggingAreaProps) => react_jsx_runtime.JSX.Element;
|
|
178
244
|
};
|
|
179
245
|
|
|
180
|
-
export { Analytics, AppsInToss, type ExternalWebViewProps, type GameWebViewProps, INTERNAL__onVisibilityChangedByTransparentServiceWeb, type PartnerWebViewProps, type UseGeolocationOptions, WebView, type WebViewProps, env, useCreateUserAgent, useGeolocation, useTopNavigation, useWaitForReturnNavigator };
|
|
246
|
+
export { Analytics, AppsInToss, type ExternalWebViewProps, type FetchTossAdOptions, type GameWebViewProps, INTERNAL__onVisibilityChangedByTransparentServiceWeb, type LoadFullScreenAdEvent, type LoadFullScreenAdOptions, type LoadFullScreenAdParams, type PartnerWebViewProps, type ShowFullScreenAdEvent, type ShowFullScreenAdOptions, type ShowFullScreenAdParams, type TossAdEventLogParams, type UseGeolocationOptions, WebView, type WebViewProps, env, loadFullScreenAd, showFullScreenAd, useCreateUserAgent, useGeolocation, useTopNavigation, useWaitForReturnNavigator };
|