@ssgoi/react-native 7.1.1 → 7.1.3-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.
@@ -0,0 +1,11 @@
1
+ import { type BoundaryOptions } from "../navigator.js";
2
+ export interface SsgoiRouteBoundaryProps extends BoundaryOptions {
3
+ initialRouteName?: string;
4
+ }
5
+ /**
6
+ * @experimental Expo Router integration. The API may change.
7
+ * Place in app/_layout.tsx. Expo discovers page files; no manual Screen list is required.
8
+ */
9
+ export declare function SsgoiRouteBoundary(props: SsgoiRouteBoundaryProps): import("react/jsx-runtime").JSX.Element;
10
+ export type { ExpoRouteLocation } from "../navigator.js";
11
+ export type { RouteBoundaryState } from "../types.js";
@@ -1,14 +1,17 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { createStandardNavigator } from "standard-navigation";
3
3
  import { StackRouter, unstable_integrateWithRouter } from "expo-router";
4
- import { NativeNavigator, } from "./navigator.js";
4
+ import { NativeNavigator, } from "../navigator.js";
5
5
  const navigator = createStandardNavigator(NativeNavigator);
6
6
  // Keep the alpha Expo API confined to this optional entry point.
7
7
  if (typeof unstable_integrateWithRouter !== "function") {
8
8
  throw new Error("SSGOI: the expo-router entry requires Expo Router's standard navigator API (validated with 56.2.20).");
9
9
  }
10
10
  const ExpoBoundary = unstable_integrateWithRouter(navigator, StackRouter, { useOnlyUserDefinedScreens: false });
11
- /** Place in app/_layout.tsx. Expo discovers page files; no manual Screen list is required. */
11
+ /**
12
+ * @experimental Expo Router integration. The API may change.
13
+ * Place in app/_layout.tsx. Expo discovers page files; no manual Screen list is required.
14
+ */
12
15
  export function SsgoiRouteBoundary(props) {
13
16
  return _jsx(ExpoBoundary, { ...props });
14
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ssgoi/react-native",
3
- "version": "7.1.1",
3
+ "version": "7.1.3-beta.0",
4
4
  "description": "React Native screen transitions for SSGOI with optional Expo Router integration",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -15,8 +15,8 @@
15
15
  "default": "./dist/view-transitions.js"
16
16
  },
17
17
  "./expo-router": {
18
- "types": "./dist/expo-router.d.ts",
19
- "default": "./dist/expo-router.js"
18
+ "types": "./dist/routers/expo-router.d.ts",
19
+ "default": "./dist/routers/expo-router.js"
20
20
  }
21
21
  },
22
22
  "files": [
@@ -25,7 +25,7 @@
25
25
  ],
26
26
  "dependencies": {
27
27
  "standard-navigation": "0.0.9",
28
- "@ssgoi/core": "^7.1.1"
28
+ "@ssgoi/core": "^7.1.3-beta.0"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "react": "^19.2.3",
@@ -67,8 +67,9 @@
67
67
  "access": "public"
68
68
  },
69
69
  "scripts": {
70
- "build": "tsc -p tsconfig.json",
70
+ "build": "pnpm clean && tsc -p tsconfig.json",
71
71
  "test:run": "jest --runInBand",
72
- "typecheck": "tsc -p tsconfig.json --noEmit"
72
+ "typecheck": "tsc -p tsconfig.json --noEmit",
73
+ "clean": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\""
73
74
  }
74
75
  }
@@ -1,8 +0,0 @@
1
- import { type BoundaryOptions } from "./navigator.js";
2
- export interface SsgoiRouteBoundaryProps extends BoundaryOptions {
3
- initialRouteName?: string;
4
- }
5
- /** Place in app/_layout.tsx. Expo discovers page files; no manual Screen list is required. */
6
- export declare function SsgoiRouteBoundary(props: SsgoiRouteBoundaryProps): import("react/jsx-runtime").JSX.Element;
7
- export type { ExpoRouteLocation } from "./navigator.js";
8
- export type { RouteBoundaryState } from "./types.js";