@multiplatform.one/router 5.0.11 → 5.0.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@multiplatform.one/router",
3
- "version": "5.0.11",
3
+ "version": "5.0.16",
4
4
  "description": "multiplatform.one router with support for react-router-dom and react-navigation",
5
5
  "sideEffects": false,
6
6
  "keywords": ["react", "react-native"],
@@ -14,13 +14,12 @@
14
14
  "main": "dist/cjs",
15
15
  "module": "dist/esm",
16
16
  "module:jsx": "dist/jsx",
17
- "react-native": "0.74.5",
18
17
  "source": "src/index.ts",
19
18
  "types": "types/index.d.ts",
20
19
  "exports": {
21
20
  ".": {
22
21
  "types": "./types/index.d.ts",
23
- "import": "./dist/esm/index.js",
22
+ "import": "./dist/esm/index.mjs",
24
23
  "require": "./dist/cjs/index.cjs"
25
24
  },
26
25
  "./package.json": "./package.json"
@@ -39,8 +38,8 @@
39
38
  "node": ">=16.0.0"
40
39
  },
41
40
  "devDependencies": {
42
- "@react-navigation/native": "^6.1.18",
43
- "@tamagui/build": "^1.121.12",
41
+ "@react-navigation/native": "^7.0.14",
42
+ "@tamagui/build": "^1.122.6",
44
43
  "@testing-library/react": "^14.1.2",
45
44
  "@vitejs/plugin-react": "^4.2.1",
46
45
  "jsdom": "^23.0.1",
@@ -0,0 +1,36 @@
1
+ /**
2
+ * File: /src/index.ts
3
+ * Project: @multiplatform.one/use-store
4
+ * File Created: 20-11-2024 04:57:59
5
+ * Author: Clay Risser
6
+ * -----
7
+ * BitSpur (c) Copyright 2021 - 2024
8
+ *
9
+ * Licensed under the Apache License, Version 2.0 (the "License");
10
+ * you may not use this file except in compliance with the License.
11
+ * You may obtain a copy of the License at
12
+ *
13
+ * http://www.apache.org/licenses/LICENSE-2.0
14
+ *
15
+ * Unless required by applicable law or agreed to in writing, software
16
+ * distributed under the License is distributed on an "AS IS" BASIS,
17
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
+ * See the License for the specific language governing permissions and
19
+ * limitations under the License.
20
+ */
21
+ import type { NavigationProp } from "@react-navigation/native";
22
+ import { type OneRouter } from "one";
23
+ import type { GestureResponderEvent } from "react-native";
24
+ export declare function useRouter(): OneRouter.Router;
25
+ export declare function usePathname(): string;
26
+ export declare function useParams<T extends string | undefined = string>(): Record<string, T>;
27
+ export declare function useNavigation<T = NavigationProp<ReactNavigation.RootParamList>>(parent?: string): T;
28
+ export declare function useLinkTo(props: {
29
+ href: string;
30
+ replace?: boolean;
31
+ }): {
32
+ href: string;
33
+ role: string;
34
+ onPress: (e?: React.MouseEvent<HTMLAnchorElement, MouseEvent> | GestureResponderEvent) => void;
35
+ };
36
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EACL,KAAK,SAAS,EAMf,MAAM,KAAK,CAAC;AACb,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAS1D,wBAAgB,SAAS,IAAI,SAAS,CAAC,MAAM,CA0D5C;AAED,wBAAgB,WAAW,IAAI,MAAM,CAWpC;AAED,wBAAgB,SAAS,CAAC,CAAC,SAAS,MAAM,GAAG,SAAS,GAAG,MAAM,KAAK,MAAM,CACxE,MAAM,EACN,CAAC,CACF,CAYA;AAED,wBAAgB,aAAa,CAC3B,CAAC,GAAG,cAAc,CAAC,eAAe,CAAC,aAAa,CAAC,EACjD,MAAM,CAAC,EAAE,MAAM,GAAG,CAAC,CAuBpB;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE;;;kBAgB1D,gBAAgB,CAAC,iBAAiB,EAAE,UAAU,CAAC,GAC/C,qBAAqB;EAQ9B"}