@apps-in-toss/framework 1.0.2 → 1.1.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.d.cts CHANGED
@@ -4,10 +4,13 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as _apps_in_toss_analytics from '@apps-in-toss/analytics';
5
5
  export * from '@apps-in-toss/analytics';
6
6
  import { InitialProps, GraniteProps } from '@granite-js/react-native';
7
- import { PartnerWebViewScreenProps, ExternalWebViewScreenProps } from '@toss-design-system/react-native';
8
7
  import { WebViewProps as WebViewProps$1 } from '@granite-js/native/react-native-webview';
9
- import { StartUpdateLocationOptions, Location, onVisibilityChangedByTransparentServiceWeb } from '@apps-in-toss/native-modules';
8
+ import { ExternalWebViewScreenProps } from '@toss-design-system/react-native';
9
+ import { StartUpdateLocationOptions, Location } from '@apps-in-toss/types';
10
+ export * from '@apps-in-toss/types';
11
+ import { onVisibilityChangedByTransparentServiceWeb } from '@apps-in-toss/native-modules';
10
12
  export * from '@apps-in-toss/native-modules';
13
+ export { useTopNavigation } from '@toss-design-system/react-native/private';
11
14
 
12
15
  interface AppsInTossProps {
13
16
  context: GraniteProps['context'];
@@ -18,7 +21,7 @@ interface AppsInTossProps {
18
21
  debug?: boolean;
19
22
  };
20
23
  }
21
- declare function registerApp(container: ComponentType<PropsWithChildren<InitialProps>>, { context, analytics }: AppsInTossProps): (initialProps: InitialProps) => JSX.Element;
24
+ declare function registerApp(container: ComponentType<PropsWithChildren<InitialProps>>, { context, analytics }: AppsInTossProps): ComponentType<PropsWithChildren<InitialProps>>;
22
25
 
23
26
  declare const AppsInToss: {
24
27
  registerApp: typeof registerApp;
@@ -27,7 +30,7 @@ declare const AppsInToss: {
27
30
  type GameWebViewProps$1 = WebViewProps$1;
28
31
 
29
32
  type WebViewProps = PartnerWebViewProps | ExternalWebViewProps | GameWebViewProps;
30
- interface PartnerWebViewProps extends Omit<PartnerWebViewScreenProps, InternalProps> {
33
+ interface PartnerWebViewProps extends Omit<WebViewProps$1, InternalProps> {
31
34
  type: 'partner';
32
35
  local: LocalNetwork;
33
36
  }
package/dist/index.d.ts CHANGED
@@ -4,10 +4,13 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as _apps_in_toss_analytics from '@apps-in-toss/analytics';
5
5
  export * from '@apps-in-toss/analytics';
6
6
  import { InitialProps, GraniteProps } from '@granite-js/react-native';
7
- import { PartnerWebViewScreenProps, ExternalWebViewScreenProps } from '@toss-design-system/react-native';
8
7
  import { WebViewProps as WebViewProps$1 } from '@granite-js/native/react-native-webview';
9
- import { StartUpdateLocationOptions, Location, onVisibilityChangedByTransparentServiceWeb } from '@apps-in-toss/native-modules';
8
+ import { ExternalWebViewScreenProps } from '@toss-design-system/react-native';
9
+ import { StartUpdateLocationOptions, Location } from '@apps-in-toss/types';
10
+ export * from '@apps-in-toss/types';
11
+ import { onVisibilityChangedByTransparentServiceWeb } from '@apps-in-toss/native-modules';
10
12
  export * from '@apps-in-toss/native-modules';
13
+ export { useTopNavigation } from '@toss-design-system/react-native/private';
11
14
 
12
15
  interface AppsInTossProps {
13
16
  context: GraniteProps['context'];
@@ -18,7 +21,7 @@ interface AppsInTossProps {
18
21
  debug?: boolean;
19
22
  };
20
23
  }
21
- declare function registerApp(container: ComponentType<PropsWithChildren<InitialProps>>, { context, analytics }: AppsInTossProps): (initialProps: InitialProps) => JSX.Element;
24
+ declare function registerApp(container: ComponentType<PropsWithChildren<InitialProps>>, { context, analytics }: AppsInTossProps): ComponentType<PropsWithChildren<InitialProps>>;
22
25
 
23
26
  declare const AppsInToss: {
24
27
  registerApp: typeof registerApp;
@@ -27,7 +30,7 @@ declare const AppsInToss: {
27
30
  type GameWebViewProps$1 = WebViewProps$1;
28
31
 
29
32
  type WebViewProps = PartnerWebViewProps | ExternalWebViewProps | GameWebViewProps;
30
- interface PartnerWebViewProps extends Omit<PartnerWebViewScreenProps, InternalProps> {
33
+ interface PartnerWebViewProps extends Omit<WebViewProps$1, InternalProps> {
31
34
  type: 'partner';
32
35
  local: LocalNetwork;
33
36
  }