@apps-in-toss/framework 1.4.4 → 1.4.5
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 +224 -184
- package/dist/index.d.cts +21 -2
- package/dist/index.d.ts +21 -2
- package/dist/index.js +155 -115
- package/package.json +9 -9
package/dist/index.d.cts
CHANGED
|
@@ -10,7 +10,7 @@ import { StartUpdateLocationOptions, Location } from '@apps-in-toss/types';
|
|
|
10
10
|
export * from '@apps-in-toss/types';
|
|
11
11
|
import { onVisibilityChangedByTransparentServiceWeb } from '@apps-in-toss/native-modules';
|
|
12
12
|
export * from '@apps-in-toss/native-modules';
|
|
13
|
-
export { OverlayProvider, useOverlay
|
|
13
|
+
export { OverlayProvider, useOverlay } from '@toss/tds-react-native/private';
|
|
14
14
|
|
|
15
15
|
interface AppsInTossProps {
|
|
16
16
|
context: GraniteProps['context'];
|
|
@@ -145,6 +145,25 @@ declare function useGeolocation({ accuracy, distanceInterval, timeInterval }: Us
|
|
|
145
145
|
*/
|
|
146
146
|
declare function useWaitForReturnNavigator<T extends Record<string, object | undefined>>(): <RouteName extends keyof T>(route: RouteName, params?: T[RouteName]) => Promise<void>;
|
|
147
147
|
|
|
148
|
+
declare function useTopNavigation(): {
|
|
149
|
+
addAccessoryButton: (button: {
|
|
150
|
+
title: string;
|
|
151
|
+
icon: {
|
|
152
|
+
source: {
|
|
153
|
+
uri: string;
|
|
154
|
+
};
|
|
155
|
+
name?: never;
|
|
156
|
+
} | {
|
|
157
|
+
name: string;
|
|
158
|
+
source?: never;
|
|
159
|
+
};
|
|
160
|
+
id: string;
|
|
161
|
+
onPress?: () => void;
|
|
162
|
+
disabled?: boolean;
|
|
163
|
+
} | undefined) => void;
|
|
164
|
+
removeAccessoryButton: () => void;
|
|
165
|
+
};
|
|
166
|
+
|
|
148
167
|
declare const env: {
|
|
149
168
|
getDeploymentId: () => string | undefined;
|
|
150
169
|
};
|
|
@@ -158,4 +177,4 @@ declare const Analytics: {
|
|
|
158
177
|
Area: ({ children, params: _params, ...props }: _apps_in_toss_analytics.LoggingAreaProps) => react_jsx_runtime.JSX.Element;
|
|
159
178
|
};
|
|
160
179
|
|
|
161
|
-
export { Analytics, AppsInToss, type ExternalWebViewProps, type GameWebViewProps, INTERNAL__onVisibilityChangedByTransparentServiceWeb, type PartnerWebViewProps, type UseGeolocationOptions, WebView, type WebViewProps, env, useCreateUserAgent, useGeolocation, useWaitForReturnNavigator };
|
|
180
|
+
export { Analytics, AppsInToss, type ExternalWebViewProps, type GameWebViewProps, INTERNAL__onVisibilityChangedByTransparentServiceWeb, type PartnerWebViewProps, type UseGeolocationOptions, WebView, type WebViewProps, env, useCreateUserAgent, useGeolocation, useTopNavigation, useWaitForReturnNavigator };
|
package/dist/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { StartUpdateLocationOptions, Location } from '@apps-in-toss/types';
|
|
|
10
10
|
export * from '@apps-in-toss/types';
|
|
11
11
|
import { onVisibilityChangedByTransparentServiceWeb } from '@apps-in-toss/native-modules';
|
|
12
12
|
export * from '@apps-in-toss/native-modules';
|
|
13
|
-
export { OverlayProvider, useOverlay
|
|
13
|
+
export { OverlayProvider, useOverlay } from '@toss/tds-react-native/private';
|
|
14
14
|
|
|
15
15
|
interface AppsInTossProps {
|
|
16
16
|
context: GraniteProps['context'];
|
|
@@ -145,6 +145,25 @@ declare function useGeolocation({ accuracy, distanceInterval, timeInterval }: Us
|
|
|
145
145
|
*/
|
|
146
146
|
declare function useWaitForReturnNavigator<T extends Record<string, object | undefined>>(): <RouteName extends keyof T>(route: RouteName, params?: T[RouteName]) => Promise<void>;
|
|
147
147
|
|
|
148
|
+
declare function useTopNavigation(): {
|
|
149
|
+
addAccessoryButton: (button: {
|
|
150
|
+
title: string;
|
|
151
|
+
icon: {
|
|
152
|
+
source: {
|
|
153
|
+
uri: string;
|
|
154
|
+
};
|
|
155
|
+
name?: never;
|
|
156
|
+
} | {
|
|
157
|
+
name: string;
|
|
158
|
+
source?: never;
|
|
159
|
+
};
|
|
160
|
+
id: string;
|
|
161
|
+
onPress?: () => void;
|
|
162
|
+
disabled?: boolean;
|
|
163
|
+
} | undefined) => void;
|
|
164
|
+
removeAccessoryButton: () => void;
|
|
165
|
+
};
|
|
166
|
+
|
|
148
167
|
declare const env: {
|
|
149
168
|
getDeploymentId: () => string | undefined;
|
|
150
169
|
};
|
|
@@ -158,4 +177,4 @@ declare const Analytics: {
|
|
|
158
177
|
Area: ({ children, params: _params, ...props }: _apps_in_toss_analytics.LoggingAreaProps) => react_jsx_runtime.JSX.Element;
|
|
159
178
|
};
|
|
160
179
|
|
|
161
|
-
export { Analytics, AppsInToss, type ExternalWebViewProps, type GameWebViewProps, INTERNAL__onVisibilityChangedByTransparentServiceWeb, type PartnerWebViewProps, type UseGeolocationOptions, WebView, type WebViewProps, env, useCreateUserAgent, useGeolocation, useWaitForReturnNavigator };
|
|
180
|
+
export { Analytics, AppsInToss, type ExternalWebViewProps, type GameWebViewProps, INTERNAL__onVisibilityChangedByTransparentServiceWeb, type PartnerWebViewProps, type UseGeolocationOptions, WebView, type WebViewProps, env, useCreateUserAgent, useGeolocation, useTopNavigation, useWaitForReturnNavigator };
|