@multiplatform.one/router 9.17.0 → 10.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/cjs/hooks/index.cjs +17 -19
- package/dist/cjs/hooks/index.native.cjs +31 -0
- package/dist/cjs/hooks/index.native.js +17 -18
- package/dist/cjs/hooks/index.native.js.map +1 -1
- package/dist/cjs/hooks/useUrlState.cjs +175 -180
- package/dist/cjs/hooks/useUrlState.native.cjs +215 -0
- package/dist/cjs/hooks/useUrlState.native.js +187 -196
- package/dist/cjs/hooks/useUrlState.native.js.map +1 -1
- package/dist/cjs/index.cjs +9 -11
- package/dist/cjs/index.native.cjs +22 -0
- package/dist/cjs/index.native.js +9 -10
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/index.storybook.cjs +17 -19
- package/dist/cjs/index.storybook.native.cjs +34 -0
- package/dist/cjs/index.storybook.native.js +17 -18
- package/dist/cjs/index.storybook.native.js.map +1 -1
- package/dist/cjs/router/EmptyRouter.cjs +51 -58
- package/dist/cjs/router/EmptyRouter.native.cjs +98 -0
- package/dist/cjs/router/EmptyRouter.native.js +72 -78
- package/dist/cjs/router/EmptyRouter.native.js.map +1 -1
- package/dist/cjs/router/ReactRouter.cjs +72 -87
- package/dist/cjs/router/ReactRouter.native.cjs +119 -0
- package/dist/cjs/router/ReactRouter.native.js +95 -109
- package/dist/cjs/router/ReactRouter.native.js.map +1 -1
- package/dist/cjs/router/binding.cjs +18 -20
- package/dist/cjs/router/binding.native.cjs +35 -0
- package/dist/cjs/router/binding.native.js +18 -19
- package/dist/cjs/router/binding.native.js.map +1 -1
- package/dist/cjs/router/expoRouter.cjs +22 -26
- package/dist/cjs/router/expoRouter.native.cjs +45 -0
- package/dist/cjs/router/expoRouter.native.js +22 -25
- package/dist/cjs/router/expoRouter.native.js.map +1 -1
- package/dist/cjs/router/expoRouterBinding.cjs +35 -39
- package/dist/cjs/router/expoRouterBinding.native.cjs +61 -0
- package/dist/cjs/router/expoRouterBinding.native.js +43 -46
- package/dist/cjs/router/expoRouterBinding.native.js.map +1 -1
- package/dist/cjs/router/index.cjs +17 -19
- package/dist/cjs/router/index.native.cjs +51 -0
- package/dist/cjs/router/index.native.js +28 -29
- package/dist/cjs/router/index.native.js.map +1 -1
- package/dist/cjs/router/index.storybook-expo.cjs +9 -11
- package/dist/cjs/router/index.storybook-expo.native.cjs +20 -0
- package/dist/cjs/router/index.storybook-expo.native.js +9 -10
- package/dist/cjs/router/index.storybook-expo.native.js.map +1 -1
- package/dist/cjs/router/index.storybook.cjs +9 -11
- package/dist/cjs/router/index.storybook.native.cjs +20 -0
- package/dist/cjs/router/index.storybook.native.js +9 -10
- package/dist/cjs/router/index.storybook.native.js.map +1 -1
- package/dist/cjs/router/index.webext.cjs +9 -11
- package/dist/cjs/router/index.webext.native.cjs +20 -0
- package/dist/cjs/router/index.webext.native.js +9 -10
- package/dist/cjs/router/index.webext.native.js.map +1 -1
- package/dist/cjs/router/nativeRouter.cjs +33 -41
- package/dist/cjs/router/nativeRouter.native.cjs +72 -0
- package/dist/cjs/router/nativeRouter.native.js +42 -49
- package/dist/cjs/router/nativeRouter.native.js.map +1 -1
- package/dist/cjs/seam/DomNavigationHost.cjs +138 -150
- package/dist/cjs/seam/DomNavigationHost.native.cjs +233 -0
- package/dist/cjs/seam/DomNavigationHost.native.js +201 -207
- package/dist/cjs/seam/DomNavigationHost.native.js.map +1 -1
- package/dist/cjs/seam/index.cjs +31 -33
- package/dist/cjs/seam/index.native.cjs +47 -0
- package/dist/cjs/seam/index.native.js +31 -32
- package/dist/cjs/seam/index.native.js.map +1 -1
- package/dist/cjs/seam/navigator.cjs +309 -319
- package/dist/cjs/seam/navigator.native.cjs +525 -0
- package/dist/cjs/seam/navigator.native.js +490 -498
- package/dist/cjs/seam/navigator.native.js.map +1 -1
- package/dist/cjs/seam/oneAdapter.cjs +86 -93
- package/dist/cjs/seam/oneAdapter.native.cjs +133 -0
- package/dist/cjs/seam/oneAdapter.native.js +94 -104
- package/dist/cjs/seam/oneAdapter.native.js.map +1 -1
- package/dist/cjs/types.cjs +9 -11
- package/dist/cjs/types.native.cjs +18 -0
- package/dist/cjs/types.native.js +9 -10
- package/dist/cjs/types.native.js.map +1 -1
- package/dist/esm/hooks/index.mjs +3 -3
- package/dist/esm/hooks/index.native.js +3 -3
- package/dist/esm/hooks/useUrlState.mjs +160 -161
- package/dist/esm/hooks/useUrlState.mjs.map +1 -1
- package/dist/esm/hooks/useUrlState.native.js +171 -177
- package/dist/esm/hooks/useUrlState.native.js.map +1 -1
- package/dist/esm/index.mjs +5 -4
- package/dist/esm/index.native.js +5 -4
- package/dist/esm/index.storybook.mjs +7 -5
- package/dist/esm/index.storybook.native.js +7 -5
- package/dist/esm/router/EmptyRouter.mjs +35 -38
- package/dist/esm/router/EmptyRouter.mjs.map +1 -1
- package/dist/esm/router/EmptyRouter.native.js +57 -60
- package/dist/esm/router/EmptyRouter.native.js.map +1 -1
- package/dist/esm/router/ReactRouter.mjs +59 -70
- package/dist/esm/router/ReactRouter.mjs.map +1 -1
- package/dist/esm/router/ReactRouter.native.js +82 -93
- package/dist/esm/router/ReactRouter.native.js.map +1 -1
- package/dist/esm/router/binding.mjs +4 -3
- package/dist/esm/router/binding.mjs.map +1 -1
- package/dist/esm/router/binding.native.js +4 -3
- package/dist/esm/router/binding.native.js.map +1 -1
- package/dist/esm/router/expoRouter.mjs +7 -7
- package/dist/esm/router/expoRouter.mjs.map +1 -1
- package/dist/esm/router/expoRouter.native.js +7 -7
- package/dist/esm/router/expoRouter.native.js.map +1 -1
- package/dist/esm/router/expoRouterBinding.mjs +23 -21
- package/dist/esm/router/expoRouterBinding.mjs.map +1 -1
- package/dist/esm/router/expoRouterBinding.native.js +31 -29
- package/dist/esm/router/expoRouterBinding.native.js.map +1 -1
- package/dist/esm/router/index.mjs +2 -2
- package/dist/esm/router/index.native.js +13 -11
- package/dist/esm/router/index.native.js.map +1 -1
- package/dist/esm/router/index.storybook-expo.mjs +1 -2
- package/dist/esm/router/index.storybook-expo.native.js +1 -2
- package/dist/esm/router/index.storybook.mjs +1 -2
- package/dist/esm/router/index.storybook.native.js +1 -2
- package/dist/esm/router/index.webext.mjs +1 -2
- package/dist/esm/router/index.webext.native.js +1 -2
- package/dist/esm/router/nativeRouter.mjs +19 -23
- package/dist/esm/router/nativeRouter.mjs.map +1 -1
- package/dist/esm/router/nativeRouter.native.js +29 -33
- package/dist/esm/router/nativeRouter.native.js.map +1 -1
- package/dist/esm/seam/DomNavigationHost.mjs +125 -133
- package/dist/esm/seam/DomNavigationHost.mjs.map +1 -1
- package/dist/esm/seam/DomNavigationHost.native.js +189 -192
- package/dist/esm/seam/DomNavigationHost.native.js.map +1 -1
- package/dist/esm/seam/index.mjs +2 -2
- package/dist/esm/seam/index.native.js +2 -2
- package/dist/esm/seam/navigator.mjs +292 -298
- package/dist/esm/seam/navigator.mjs.map +1 -1
- package/dist/esm/seam/navigator.native.js +473 -478
- package/dist/esm/seam/navigator.native.js.map +1 -1
- package/dist/esm/seam/oneAdapter.mjs +61 -64
- package/dist/esm/seam/oneAdapter.mjs.map +1 -1
- package/dist/esm/seam/oneAdapter.native.js +70 -77
- package/dist/esm/seam/oneAdapter.native.js.map +1 -1
- package/dist/esm/types.mjs +0 -2
- package/dist/esm/types.native.js +0 -2
- package/dist/jsx/hooks/index.mjs +3 -3
- package/dist/jsx/hooks/index.native.cjs +31 -0
- package/dist/jsx/hooks/index.native.js +17 -18
- package/dist/jsx/hooks/index.native.js.map +1 -1
- package/dist/jsx/hooks/useUrlState.mjs +160 -161
- package/dist/jsx/hooks/useUrlState.mjs.map +1 -1
- package/dist/jsx/hooks/useUrlState.native.cjs +215 -0
- package/dist/jsx/hooks/useUrlState.native.js +187 -196
- package/dist/jsx/hooks/useUrlState.native.js.map +1 -1
- package/dist/jsx/index.js +5 -4
- package/dist/jsx/index.mjs +5 -4
- package/dist/jsx/index.native.cjs +22 -0
- package/dist/jsx/index.native.js +9 -10
- package/dist/jsx/index.native.js.map +1 -1
- package/dist/jsx/index.storybook.mjs +7 -5
- package/dist/jsx/index.storybook.native.cjs +34 -0
- package/dist/jsx/index.storybook.native.js +17 -18
- package/dist/jsx/index.storybook.native.js.map +1 -1
- package/dist/jsx/router/EmptyRouter.mjs +35 -38
- package/dist/jsx/router/EmptyRouter.mjs.map +1 -1
- package/dist/jsx/router/EmptyRouter.native.cjs +98 -0
- package/dist/jsx/router/EmptyRouter.native.js +72 -78
- package/dist/jsx/router/EmptyRouter.native.js.map +1 -1
- package/dist/jsx/router/ReactRouter.mjs +59 -70
- package/dist/jsx/router/ReactRouter.mjs.map +1 -1
- package/dist/jsx/router/ReactRouter.native.cjs +119 -0
- package/dist/jsx/router/ReactRouter.native.js +95 -109
- package/dist/jsx/router/ReactRouter.native.js.map +1 -1
- package/dist/jsx/router/binding.mjs +4 -3
- package/dist/jsx/router/binding.mjs.map +1 -1
- package/dist/jsx/router/binding.native.cjs +35 -0
- package/dist/jsx/router/binding.native.js +18 -19
- package/dist/jsx/router/binding.native.js.map +1 -1
- package/dist/jsx/router/expoRouter.mjs +7 -7
- package/dist/jsx/router/expoRouter.mjs.map +1 -1
- package/dist/jsx/router/expoRouter.native.cjs +45 -0
- package/dist/jsx/router/expoRouter.native.js +22 -25
- package/dist/jsx/router/expoRouter.native.js.map +1 -1
- package/dist/jsx/router/expoRouterBinding.mjs +23 -21
- package/dist/jsx/router/expoRouterBinding.mjs.map +1 -1
- package/dist/jsx/router/expoRouterBinding.native.cjs +61 -0
- package/dist/jsx/router/expoRouterBinding.native.js +43 -46
- package/dist/jsx/router/expoRouterBinding.native.js.map +1 -1
- package/dist/jsx/router/index.mjs +2 -2
- package/dist/jsx/router/index.native.cjs +51 -0
- package/dist/jsx/router/index.native.js +28 -29
- package/dist/jsx/router/index.native.js.map +1 -1
- package/dist/jsx/router/index.storybook-expo.mjs +1 -2
- package/dist/jsx/router/index.storybook-expo.native.cjs +20 -0
- package/dist/jsx/router/index.storybook-expo.native.js +9 -10
- package/dist/jsx/router/index.storybook-expo.native.js.map +1 -1
- package/dist/jsx/router/index.storybook.mjs +1 -2
- package/dist/jsx/router/index.storybook.native.cjs +20 -0
- package/dist/jsx/router/index.storybook.native.js +9 -10
- package/dist/jsx/router/index.storybook.native.js.map +1 -1
- package/dist/jsx/router/index.webext.mjs +1 -2
- package/dist/jsx/router/index.webext.native.cjs +20 -0
- package/dist/jsx/router/index.webext.native.js +9 -10
- package/dist/jsx/router/index.webext.native.js.map +1 -1
- package/dist/jsx/router/nativeRouter.mjs +19 -23
- package/dist/jsx/router/nativeRouter.mjs.map +1 -1
- package/dist/jsx/router/nativeRouter.native.cjs +72 -0
- package/dist/jsx/router/nativeRouter.native.js +42 -49
- package/dist/jsx/router/nativeRouter.native.js.map +1 -1
- package/dist/jsx/seam/DomNavigationHost.mjs +125 -133
- package/dist/jsx/seam/DomNavigationHost.mjs.map +1 -1
- package/dist/jsx/seam/DomNavigationHost.native.cjs +233 -0
- package/dist/jsx/seam/DomNavigationHost.native.js +201 -207
- package/dist/jsx/seam/DomNavigationHost.native.js.map +1 -1
- package/dist/jsx/seam/index.mjs +2 -2
- package/dist/jsx/seam/index.native.cjs +47 -0
- package/dist/jsx/seam/index.native.js +31 -32
- package/dist/jsx/seam/index.native.js.map +1 -1
- package/dist/jsx/seam/navigator.mjs +292 -298
- package/dist/jsx/seam/navigator.mjs.map +1 -1
- package/dist/jsx/seam/navigator.native.cjs +525 -0
- package/dist/jsx/seam/navigator.native.js +490 -498
- package/dist/jsx/seam/navigator.native.js.map +1 -1
- package/dist/jsx/seam/oneAdapter.mjs +61 -64
- package/dist/jsx/seam/oneAdapter.mjs.map +1 -1
- package/dist/jsx/seam/oneAdapter.native.cjs +133 -0
- package/dist/jsx/seam/oneAdapter.native.js +94 -104
- package/dist/jsx/seam/oneAdapter.native.js.map +1 -1
- package/dist/jsx/types.mjs +0 -2
- package/dist/jsx/types.native.cjs +18 -0
- package/dist/jsx/types.native.js +9 -10
- package/dist/jsx/types.native.js.map +1 -1
- package/package.json +14 -14
- package/dist/esm/hooks/index.mjs.map +0 -1
- package/dist/esm/hooks/index.native.js.map +0 -1
- package/dist/esm/index.mjs.map +0 -1
- package/dist/esm/index.native.js.map +0 -1
- package/dist/esm/index.storybook.mjs.map +0 -1
- package/dist/esm/index.storybook.native.js.map +0 -1
- package/dist/esm/router/index.mjs.map +0 -1
- package/dist/esm/router/index.storybook-expo.mjs.map +0 -1
- package/dist/esm/router/index.storybook-expo.native.js.map +0 -1
- package/dist/esm/router/index.storybook.mjs.map +0 -1
- package/dist/esm/router/index.storybook.native.js.map +0 -1
- package/dist/esm/router/index.webext.mjs.map +0 -1
- package/dist/esm/router/index.webext.native.js.map +0 -1
- package/dist/esm/seam/index.mjs.map +0 -1
- package/dist/esm/seam/index.native.js.map +0 -1
- package/dist/esm/types.mjs.map +0 -1
- package/dist/esm/types.native.js.map +0 -1
- package/dist/jsx/hooks/index.mjs.map +0 -1
- package/dist/jsx/index.js.map +0 -1
- package/dist/jsx/index.mjs.map +0 -1
- package/dist/jsx/index.storybook.mjs.map +0 -1
- package/dist/jsx/router/index.mjs.map +0 -1
- package/dist/jsx/router/index.storybook-expo.mjs.map +0 -1
- package/dist/jsx/router/index.storybook.mjs.map +0 -1
- package/dist/jsx/router/index.webext.mjs.map +0 -1
- package/dist/jsx/seam/index.mjs.map +0 -1
- package/dist/jsx/types.mjs.map +0 -1
|
@@ -5,131 +5,117 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
12
|
};
|
|
13
13
|
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
21
|
};
|
|
22
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
-
value: true
|
|
24
|
-
}), mod);
|
|
22
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
23
|
var ReactRouter_exports = {};
|
|
26
24
|
__export(ReactRouter_exports, {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
Link: () => Link,
|
|
26
|
+
useParams: () => useParams,
|
|
27
|
+
usePathname: () => usePathname,
|
|
28
|
+
useRouter: () => useRouter
|
|
31
29
|
});
|
|
32
30
|
module.exports = __toCommonJS(ReactRouter_exports);
|
|
33
31
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
34
32
|
var import_react_router_dom = require("react-router-dom");
|
|
35
33
|
var useRouter = function useRouter2() {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
listener("success");
|
|
87
|
-
return function () {};
|
|
88
|
-
},
|
|
89
|
-
onLoadState: function onLoadState(listener) {
|
|
90
|
-
listener("loaded");
|
|
91
|
-
return function () {};
|
|
92
|
-
}
|
|
93
|
-
};
|
|
34
|
+
var location = (0, import_react_router_dom.useLocation)();
|
|
35
|
+
var navigate = (0, import_react_router_dom.useNavigate)();
|
|
36
|
+
return {
|
|
37
|
+
back: function back() {
|
|
38
|
+
return navigate(-1);
|
|
39
|
+
},
|
|
40
|
+
canGoBack: function canGoBack() {
|
|
41
|
+
return true;
|
|
42
|
+
},
|
|
43
|
+
push: function push(href) {
|
|
44
|
+
return navigate(href, { replace: false });
|
|
45
|
+
},
|
|
46
|
+
navigate: function navigate1(href) {
|
|
47
|
+
return navigate(href, { replace: false });
|
|
48
|
+
},
|
|
49
|
+
replace: function replace(href) {
|
|
50
|
+
return navigate(href, { replace: true });
|
|
51
|
+
},
|
|
52
|
+
dismiss: function dismiss(count) {
|
|
53
|
+
return navigate(-1 * (count || 1));
|
|
54
|
+
},
|
|
55
|
+
dismissAll: function dismissAll() {
|
|
56
|
+
return navigate("/");
|
|
57
|
+
},
|
|
58
|
+
canDismiss: function canDismiss() {
|
|
59
|
+
return true;
|
|
60
|
+
},
|
|
61
|
+
setParams: function setParams(params) {
|
|
62
|
+
var searchParams = new URLSearchParams(location.search);
|
|
63
|
+
if (params) {
|
|
64
|
+
Object.entries(params).forEach(function(param) {
|
|
65
|
+
var [key, value] = param;
|
|
66
|
+
if (value === void 0 || value === null) {
|
|
67
|
+
searchParams.delete(key);
|
|
68
|
+
} else {
|
|
69
|
+
searchParams.set(key, String(value));
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
navigate({ search: searchParams.toString() });
|
|
74
|
+
},
|
|
75
|
+
subscribe: function subscribe(listener) {
|
|
76
|
+
listener("success");
|
|
77
|
+
return function() {};
|
|
78
|
+
},
|
|
79
|
+
onLoadState: function onLoadState(listener) {
|
|
80
|
+
listener("loaded");
|
|
81
|
+
return function() {};
|
|
82
|
+
}
|
|
83
|
+
};
|
|
94
84
|
};
|
|
95
85
|
var usePathname = function usePathname2() {
|
|
96
|
-
|
|
86
|
+
return (0, import_react_router_dom.useLocation)().pathname;
|
|
97
87
|
};
|
|
98
88
|
var useParams = function useParams2() {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
89
|
+
var routeParams = (0, import_react_router_dom.useParams)();
|
|
90
|
+
var [searchParams] = (0, import_react_router_dom.useSearchParams)();
|
|
91
|
+
var params = {};
|
|
92
|
+
Object.entries(routeParams).forEach(function(param) {
|
|
93
|
+
var [key, value] = param;
|
|
94
|
+
if (value !== void 0) {
|
|
95
|
+
params[key] = value;
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
searchParams.forEach(function(value, key) {
|
|
99
|
+
if (params[key]) {
|
|
100
|
+
var existing = params[key];
|
|
101
|
+
params[key] = Array.isArray(existing) ? [...existing, value] : [existing, value];
|
|
102
|
+
} else {
|
|
103
|
+
params[key] = value;
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
return params;
|
|
117
107
|
};
|
|
118
108
|
var Link = function Link2(param) {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
to: href,
|
|
127
|
-
replace,
|
|
128
|
-
...props,
|
|
129
|
-
children
|
|
130
|
-
});
|
|
109
|
+
var { href, replace, children, ...props } = param;
|
|
110
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_router_dom.Link, {
|
|
111
|
+
to: href,
|
|
112
|
+
replace,
|
|
113
|
+
...props,
|
|
114
|
+
children
|
|
115
|
+
});
|
|
131
116
|
};
|
|
132
|
-
Link.resolveHref = function
|
|
133
|
-
|
|
117
|
+
Link.resolveHref = function(href) {
|
|
118
|
+
return href.toString();
|
|
134
119
|
};
|
|
120
|
+
|
|
135
121
|
//# sourceMappingURL=ReactRouter.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"ReactRouter.native.js","names":[],"sources":["cjs/router/ReactRouter.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar ReactRouter_exports = {};\n__export(ReactRouter_exports, {\n Link: () => Link,\n useParams: () => useParams,\n usePathname: () => usePathname,\n useRouter: () => useRouter\n});\nmodule.exports = __toCommonJS(ReactRouter_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_react_router_dom = require(\"react-router-dom\");\nvar useRouter = function useRouter2() {\n var location = (0, import_react_router_dom.useLocation)();\n var navigate = (0, import_react_router_dom.useNavigate)();\n return {\n back: function back() {\n return navigate(-1);\n },\n canGoBack: function canGoBack() {\n return true;\n },\n push: function push(href) {\n return navigate(href, {\n replace: false\n });\n },\n navigate: function navigate1(href) {\n return navigate(href, {\n replace: false\n });\n },\n replace: function replace(href) {\n return navigate(href, {\n replace: true\n });\n },\n dismiss: function dismiss(count) {\n return navigate(-1 * (count || 1));\n },\n dismissAll: function dismissAll() {\n return navigate(\"/\");\n },\n canDismiss: function canDismiss() {\n return true;\n },\n setParams: function setParams(params) {\n var searchParams = new URLSearchParams(location.search);\n if (params) {\n Object.entries(params).forEach(function(param) {\n var [key, value] = param;\n if (value === void 0 || value === null) {\n searchParams.delete(key);\n } else {\n searchParams.set(key, String(value));\n }\n });\n }\n navigate({\n search: searchParams.toString()\n });\n },\n subscribe: function subscribe(listener) {\n listener(\"success\");\n return function() {\n };\n },\n onLoadState: function onLoadState(listener) {\n listener(\"loaded\");\n return function() {\n };\n }\n };\n};\nvar usePathname = function usePathname2() {\n return (0, import_react_router_dom.useLocation)().pathname;\n};\nvar useParams = function useParams2() {\n var routeParams = (0, import_react_router_dom.useParams)();\n var [searchParams] = (0, import_react_router_dom.useSearchParams)();\n var params = {};\n Object.entries(routeParams).forEach(function(param) {\n var [key, value] = param;\n if (value !== void 0) {\n params[key] = value;\n }\n });\n searchParams.forEach(function(value, key) {\n if (params[key]) {\n var existing = params[key];\n params[key] = Array.isArray(existing) ? [\n ...existing,\n value\n ] : [\n existing,\n value\n ];\n } else {\n params[key] = value;\n }\n });\n return params;\n};\nvar Link = function Link2(param) {\n var { href, replace, children, ...props } = param;\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_router_dom.Link, {\n to: href,\n replace,\n ...props,\n children\n });\n};\nLink.resolveHref = function(href) {\n return href.toString();\n};\n//# sourceMappingURL=ReactRouter.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,I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AI,OAAO,MAAM;GACf,IAAI,WAAW,OAAO;GACtB,OAAO,OAAO,MAAM,QAAQ,QAAQ,IAAI,CACtC,GAAG,UACH,KACF,IAAI,CACF,UACA,KACF;EACF,OAAO;GACL,OAAO,OAAO;EAChB;CACF,CAAC;CACD,OAAO;AACT;AACA,IAAI,OAAO,SAAS,MAAM,OAAO;CAC/B,IAAI,EAAE,MAAM,SAAS,UAAU,GAAG,UAAU;CAC5C,OAAuB,iBAAC,GAAG,mBAAmB,IAAG,CAAE,wBAAwB,MAAM;EAC/E,IAAI;EACJ;EACA,GAAG;EACH;CACF,CAAC;AACH;AACA,KAAK,cAAc,SAAS,MAAM;CAChC,OAAO,KAAK,SAAS;AACvB"}
|
|
@@ -3,33 +3,31 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
10
|
};
|
|
11
11
|
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: () => from[key],
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
19
|
};
|
|
20
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value: true
|
|
22
|
-
}), mod);
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
21
|
var binding_exports = {};
|
|
24
22
|
__export(binding_exports, {
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
bindRouter: () => bindRouter,
|
|
24
|
+
boundRouter: () => boundRouter
|
|
27
25
|
});
|
|
28
26
|
module.exports = __toCommonJS(binding_exports);
|
|
29
|
-
const slot = /* @__PURE__ */Symbol.for("@multiplatform.one/router/binding");
|
|
27
|
+
const slot = /* @__PURE__ */ Symbol.for("@multiplatform.one/router/binding");
|
|
30
28
|
function bindRouter(binding) {
|
|
31
|
-
|
|
29
|
+
globalThis[slot] = binding;
|
|
32
30
|
}
|
|
33
31
|
function boundRouter() {
|
|
34
|
-
|
|
35
|
-
}
|
|
32
|
+
return globalThis[slot];
|
|
33
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
|
+
var binding_exports = {};
|
|
24
|
+
__export(binding_exports, {
|
|
25
|
+
bindRouter: () => bindRouter,
|
|
26
|
+
boundRouter: () => boundRouter
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(binding_exports);
|
|
29
|
+
var slot = /* @__PURE__ */ Symbol.for("@multiplatform.one/router/binding");
|
|
30
|
+
function bindRouter(binding) {
|
|
31
|
+
globalThis[slot] = binding;
|
|
32
|
+
}
|
|
33
|
+
function boundRouter() {
|
|
34
|
+
return globalThis[slot];
|
|
35
|
+
}
|
|
@@ -5,34 +5,33 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
12
|
};
|
|
13
13
|
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
21
|
};
|
|
22
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
-
value: true
|
|
24
|
-
}), mod);
|
|
22
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
23
|
var binding_exports = {};
|
|
26
24
|
__export(binding_exports, {
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
bindRouter: () => bindRouter,
|
|
26
|
+
boundRouter: () => boundRouter
|
|
29
27
|
});
|
|
30
28
|
module.exports = __toCommonJS(binding_exports);
|
|
31
|
-
var slot = /* @__PURE__ */Symbol.for("@multiplatform.one/router/binding");
|
|
29
|
+
var slot = /* @__PURE__ */ Symbol.for("@multiplatform.one/router/binding");
|
|
32
30
|
function bindRouter(binding) {
|
|
33
|
-
|
|
31
|
+
globalThis[slot] = binding;
|
|
34
32
|
}
|
|
35
33
|
function boundRouter() {
|
|
36
|
-
|
|
34
|
+
return globalThis[slot];
|
|
37
35
|
}
|
|
36
|
+
|
|
38
37
|
//# sourceMappingURL=binding.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"binding.native.js","names":[],"sources":["cjs/router/binding.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar binding_exports = {};\n__export(binding_exports, {\n bindRouter: () => bindRouter,\n boundRouter: () => boundRouter\n});\nmodule.exports = __toCommonJS(binding_exports);\nvar slot = /* @__PURE__ */ Symbol.for(\"@multiplatform.one/router/binding\");\nfunction bindRouter(binding) {\n globalThis[slot] = binding;\n}\nfunction boundRouter() {\n return globalThis[slot];\n}\n//# sourceMappingURL=binding.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,kBAAkB,CAAC;AACvB,SAAS,iBAAiB;CACxB,kBAAkB;CAClB,mBAAmB;AACrB,CAAC;AACD,OAAO,UAAU,aAAa,eAAe;AAC7C,IAAI,OAAuB,uBAAO,IAAI,mCAAmC;AACzE,SAAS,WAAW,SAAS;CAC3B,WAAW,QAAQ;AACrB;AACA,SAAS,cAAc;CACrB,OAAO,WAAW;AACpB"}
|
|
@@ -3,45 +3,41 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
10
|
};
|
|
11
11
|
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: () => from[key],
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
19
|
};
|
|
20
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value: true
|
|
22
|
-
}), mod);
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
21
|
var expoRouter_exports = {};
|
|
24
22
|
__export(expoRouter_exports, {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
Link: () => Link,
|
|
24
|
+
useParams: () => useParams,
|
|
25
|
+
usePathname: () => usePathname,
|
|
26
|
+
useRouter: () => useRouter
|
|
29
27
|
});
|
|
30
28
|
module.exports = __toCommonJS(expoRouter_exports);
|
|
31
29
|
var import_binding = require("./binding.cjs");
|
|
32
30
|
var import_expoRouterBinding = require("./expoRouterBinding.cjs");
|
|
33
31
|
function loadExpoRouter() {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
});
|
|
40
|
-
}
|
|
32
|
+
try {
|
|
33
|
+
return require("expo-router");
|
|
34
|
+
} catch (error) {
|
|
35
|
+
throw new Error("[@multiplatform.one/router] @multiplatform.one/router/expo-router binds Expo Router, but expo-router is not installed. Add expo-router to your app's dependencies.", { cause: error });
|
|
36
|
+
}
|
|
41
37
|
}
|
|
42
38
|
const binding = (0, import_expoRouterBinding.createExpoRouterBinding)(loadExpoRouter());
|
|
43
39
|
const Link = binding.Link;
|
|
44
40
|
const useParams = binding.useParams;
|
|
45
41
|
const usePathname = binding.usePathname;
|
|
46
42
|
const useRouter = binding.useRouter;
|
|
47
|
-
(0, import_binding.bindRouter)(binding);
|
|
43
|
+
(0, import_binding.bindRouter)(binding);
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
|
+
var expoRouter_exports = {};
|
|
24
|
+
__export(expoRouter_exports, {
|
|
25
|
+
Link: () => Link,
|
|
26
|
+
useParams: () => useParams,
|
|
27
|
+
usePathname: () => usePathname,
|
|
28
|
+
useRouter: () => useRouter
|
|
29
|
+
});
|
|
30
|
+
module.exports = __toCommonJS(expoRouter_exports);
|
|
31
|
+
var import_binding = require("./binding.native.js");
|
|
32
|
+
var import_expoRouterBinding = require("./expoRouterBinding.native.js");
|
|
33
|
+
function loadExpoRouter() {
|
|
34
|
+
try {
|
|
35
|
+
return require("expo-router");
|
|
36
|
+
} catch (error) {
|
|
37
|
+
throw new Error("[@multiplatform.one/router] @multiplatform.one/router/expo-router binds Expo Router, but expo-router is not installed. Add expo-router to your app's dependencies.", { cause: error });
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
var binding = (0, import_expoRouterBinding.createExpoRouterBinding)(loadExpoRouter());
|
|
41
|
+
var Link = binding.Link;
|
|
42
|
+
var useParams = binding.useParams;
|
|
43
|
+
var usePathname = binding.usePathname;
|
|
44
|
+
var useRouter = binding.useRouter;
|
|
45
|
+
(0, import_binding.bindRouter)(binding);
|
|
@@ -5,41 +5,37 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
12
|
};
|
|
13
13
|
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
21
|
};
|
|
22
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
-
value: true
|
|
24
|
-
}), mod);
|
|
22
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
23
|
var expoRouter_exports = {};
|
|
26
24
|
__export(expoRouter_exports, {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
Link: () => Link,
|
|
26
|
+
useParams: () => useParams,
|
|
27
|
+
usePathname: () => usePathname,
|
|
28
|
+
useRouter: () => useRouter
|
|
31
29
|
});
|
|
32
30
|
module.exports = __toCommonJS(expoRouter_exports);
|
|
33
31
|
var import_binding = require("./binding.native.js");
|
|
34
32
|
var import_expoRouterBinding = require("./expoRouterBinding.native.js");
|
|
35
33
|
function loadExpoRouter() {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
});
|
|
42
|
-
}
|
|
34
|
+
try {
|
|
35
|
+
return require("expo-router");
|
|
36
|
+
} catch (error) {
|
|
37
|
+
throw new Error("[@multiplatform.one/router] @multiplatform.one/router/expo-router binds Expo Router, but expo-router is not installed. Add expo-router to your app's dependencies.", { cause: error });
|
|
38
|
+
}
|
|
43
39
|
}
|
|
44
40
|
var binding = (0, import_expoRouterBinding.createExpoRouterBinding)(loadExpoRouter());
|
|
45
41
|
var Link = binding.Link;
|
|
@@ -47,4 +43,5 @@ var useParams = binding.useParams;
|
|
|
47
43
|
var usePathname = binding.usePathname;
|
|
48
44
|
var useRouter = binding.useRouter;
|
|
49
45
|
(0, import_binding.bindRouter)(binding);
|
|
46
|
+
|
|
50
47
|
//# sourceMappingURL=expoRouter.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"expoRouter.native.js","names":[],"sources":["cjs/router/expoRouter.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar expoRouter_exports = {};\n__export(expoRouter_exports, {\n Link: () => Link,\n useParams: () => useParams,\n usePathname: () => usePathname,\n useRouter: () => useRouter\n});\nmodule.exports = __toCommonJS(expoRouter_exports);\nvar import_binding = require(\"./binding\");\nvar import_expoRouterBinding = require(\"./expoRouterBinding\");\nfunction loadExpoRouter() {\n try {\n return require(\"expo-router\");\n } catch (error) {\n throw new Error(\"[@multiplatform.one/router] @multiplatform.one/router/expo-router binds Expo Router, but expo-router is not installed. Add expo-router to your app's dependencies.\", {\n cause: error\n });\n }\n}\nvar binding = (0, import_expoRouterBinding.createExpoRouterBinding)(loadExpoRouter());\nvar Link = binding.Link;\nvar useParams = binding.useParams;\nvar usePathname = binding.usePathname;\nvar useRouter = binding.useRouter;\n(0, import_binding.bindRouter)(binding);\n//# sourceMappingURL=expoRouter.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAA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