@multiplatform.one/router 9.16.1 → 10.0.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,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":["jsx/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,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,qBAAqB,CAAC;AAC1B,SAAS,oBAAoB;CAC3B,YAAY;CACZ,iBAAiB;CACjB,mBAAmB;CACnB,iBAAiB;AACnB,CAAC;AACD,OAAO,UAAU,aAAa,kBAAkB;AAChD,IAAI,iBAAiB,QAAQ,qBAAW;AACxC,IAAI,2BAA2B,QAAQ,+BAAqB;AAC5D,SAAS,iBAAiB;CACxB,IAAI;EACF,OAAO,QAAQ,aAAa;CAC9B,SAAS,OAAO;EACd,MAAM,IAAI,MAAM,sKAAsK,EACpL,OAAO,MACT,CAAC;CACH;AACF;AACA,IAAI,WAAW,GAAG,yBAAyB,wBAAuB,CAAE,eAAe,CAAC;AACpF,IAAI,OAAO,QAAQ;AACnB,IAAI,YAAY,QAAQ;AACxB,IAAI,cAAc,QAAQ;AAC1B,IAAI,YAAY,QAAQ;CACvB,GAAG,eAAe,WAAU,CAAE,OAAO"}
|
|
@@ -1,30 +1,32 @@
|
|
|
1
1
|
import { useMemo } from "react";
|
|
2
|
+
|
|
2
3
|
function subscribeSettled(listener) {
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
listener("success");
|
|
5
|
+
return () => {};
|
|
5
6
|
}
|
|
6
7
|
function onLoadStateSettled(listener) {
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
listener("loaded");
|
|
9
|
+
return () => {};
|
|
9
10
|
}
|
|
10
11
|
function createExpoRouterBinding(expo) {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
12
|
+
const Link = expo.Link;
|
|
13
|
+
if (typeof Link.resolveHref !== "function") {
|
|
14
|
+
Link.resolveHref = (href) => href.toString();
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
Link,
|
|
18
|
+
useParams: () => expo.useLocalSearchParams(),
|
|
19
|
+
usePathname: () => expo.usePathname(),
|
|
20
|
+
useRouter: () => {
|
|
21
|
+
const router = expo.useRouter();
|
|
22
|
+
return useMemo(() => ({
|
|
23
|
+
...router,
|
|
24
|
+
subscribe: subscribeSettled,
|
|
25
|
+
onLoadState: onLoadStateSettled
|
|
26
|
+
}), [router]);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
28
29
|
}
|
|
30
|
+
|
|
29
31
|
export { createExpoRouterBinding };
|
|
30
32
|
//# sourceMappingURL=expoRouterBinding.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"expoRouterBinding.js","names":[],"sources":["jsx/router/expoRouterBinding.js"],"sourcesContent":["import { useMemo } from \"react\";\nfunction subscribeSettled(listener) {\n listener(\"success\");\n return () => {\n };\n}\nfunction onLoadStateSettled(listener) {\n listener(\"loaded\");\n return () => {\n };\n}\nfunction createExpoRouterBinding(expo) {\n const Link = expo.Link;\n if (typeof Link.resolveHref !== \"function\") {\n Link.resolveHref = (href) => href.toString();\n }\n return {\n Link,\n useParams: () => expo.useLocalSearchParams(),\n usePathname: () => expo.usePathname(),\n useRouter: () => {\n const router = expo.useRouter();\n return useMemo(\n () => ({\n ...router,\n subscribe: subscribeSettled,\n onLoadState: onLoadStateSettled\n }),\n [router]\n );\n }\n };\n}\nexport {\n createExpoRouterBinding\n};\n//# sourceMappingURL=expoRouterBinding.js.map\n"],"mappings":";;;AACA,SAAS,iBAAiB,UAAU;CAClC,SAAS,SAAS;CAClB,aAAa,CACb;AACF;AACA,SAAS,mBAAmB,UAAU;CACpC,SAAS,QAAQ;CACjB,aAAa,CACb;AACF;AACA,SAAS,wBAAwB,MAAM;CACrC,MAAM,OAAO,KAAK;CAClB,IAAI,OAAO,KAAK,gBAAgB,YAAY;EAC1C,KAAK,eAAe,SAAS,KAAK,SAAS;CAC7C;CACA,OAAO;EACL;EACA,iBAAiB,KAAK,qBAAqB;EAC3C,mBAAmB,KAAK,YAAY;EACpC,iBAAiB;GACf,MAAM,SAAS,KAAK,UAAU;GAC9B,OAAO,eACE;IACL,GAAG;IACH,WAAW;IACX,aAAa;GACf,IACA,CAAC,MAAM,CACT;EACF;CACF;AACF"}
|
|
@@ -0,0 +1,61 @@
|
|
|
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 expoRouterBinding_exports = {};
|
|
24
|
+
__export(expoRouterBinding_exports, { createExpoRouterBinding: () => createExpoRouterBinding });
|
|
25
|
+
module.exports = __toCommonJS(expoRouterBinding_exports);
|
|
26
|
+
var import_react = require("react");
|
|
27
|
+
function subscribeSettled(listener) {
|
|
28
|
+
listener("success");
|
|
29
|
+
return function() {};
|
|
30
|
+
}
|
|
31
|
+
function onLoadStateSettled(listener) {
|
|
32
|
+
listener("loaded");
|
|
33
|
+
return function() {};
|
|
34
|
+
}
|
|
35
|
+
function createExpoRouterBinding(expo) {
|
|
36
|
+
var Link = expo.Link;
|
|
37
|
+
if (typeof Link.resolveHref !== "function") {
|
|
38
|
+
Link.resolveHref = function(href) {
|
|
39
|
+
return href.toString();
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
Link,
|
|
44
|
+
useParams: function useParams() {
|
|
45
|
+
return expo.useLocalSearchParams();
|
|
46
|
+
},
|
|
47
|
+
usePathname: function usePathname() {
|
|
48
|
+
return expo.usePathname();
|
|
49
|
+
},
|
|
50
|
+
useRouter: function useRouter() {
|
|
51
|
+
var router = expo.useRouter();
|
|
52
|
+
return (0, import_react.useMemo)(function() {
|
|
53
|
+
return {
|
|
54
|
+
...router,
|
|
55
|
+
subscribe: subscribeSettled,
|
|
56
|
+
onLoadState: onLoadStateSettled
|
|
57
|
+
};
|
|
58
|
+
}, [router]);
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
}
|
|
@@ -5,62 +5,59 @@ 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 expoRouterBinding_exports = {};
|
|
26
|
-
__export(expoRouterBinding_exports, {
|
|
27
|
-
createExpoRouterBinding: () => createExpoRouterBinding
|
|
28
|
-
});
|
|
24
|
+
__export(expoRouterBinding_exports, { createExpoRouterBinding: () => createExpoRouterBinding });
|
|
29
25
|
module.exports = __toCommonJS(expoRouterBinding_exports);
|
|
30
26
|
var import_react = require("react");
|
|
31
27
|
function subscribeSettled(listener) {
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
listener("success");
|
|
29
|
+
return function() {};
|
|
34
30
|
}
|
|
35
31
|
function onLoadStateSettled(listener) {
|
|
36
|
-
|
|
37
|
-
|
|
32
|
+
listener("loaded");
|
|
33
|
+
return function() {};
|
|
38
34
|
}
|
|
39
35
|
function createExpoRouterBinding(expo) {
|
|
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
|
-
|
|
36
|
+
var Link = expo.Link;
|
|
37
|
+
if (typeof Link.resolveHref !== "function") {
|
|
38
|
+
Link.resolveHref = function(href) {
|
|
39
|
+
return href.toString();
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
Link,
|
|
44
|
+
useParams: function useParams() {
|
|
45
|
+
return expo.useLocalSearchParams();
|
|
46
|
+
},
|
|
47
|
+
usePathname: function usePathname() {
|
|
48
|
+
return expo.usePathname();
|
|
49
|
+
},
|
|
50
|
+
useRouter: function useRouter() {
|
|
51
|
+
var router = expo.useRouter();
|
|
52
|
+
return (0, import_react.useMemo)(function() {
|
|
53
|
+
return {
|
|
54
|
+
...router,
|
|
55
|
+
subscribe: subscribeSettled,
|
|
56
|
+
onLoadState: onLoadStateSettled
|
|
57
|
+
};
|
|
58
|
+
}, [router]);
|
|
59
|
+
}
|
|
60
|
+
};
|
|
65
61
|
}
|
|
62
|
+
|
|
66
63
|
//# sourceMappingURL=expoRouterBinding.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"expoRouterBinding.native.js","names":[],"sources":["jsx/router/expoRouterBinding.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 expoRouterBinding_exports = {};\n__export(expoRouterBinding_exports, {\n createExpoRouterBinding: () => createExpoRouterBinding\n});\nmodule.exports = __toCommonJS(expoRouterBinding_exports);\nvar import_react = require(\"react\");\nfunction subscribeSettled(listener) {\n listener(\"success\");\n return function() {\n };\n}\nfunction onLoadStateSettled(listener) {\n listener(\"loaded\");\n return function() {\n };\n}\nfunction createExpoRouterBinding(expo) {\n var Link = expo.Link;\n if (typeof Link.resolveHref !== \"function\") {\n Link.resolveHref = function(href) {\n return href.toString();\n };\n }\n return {\n Link,\n useParams: function useParams() {\n return expo.useLocalSearchParams();\n },\n usePathname: function usePathname() {\n return expo.usePathname();\n },\n useRouter: function useRouter() {\n var router = expo.useRouter();\n return (0, import_react.useMemo)(function() {\n return {\n ...router,\n subscribe: subscribeSettled,\n onLoadState: onLoadStateSettled\n };\n }, [\n router\n ]);\n }\n };\n}\n//# sourceMappingURL=expoRouterBinding.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,4BAA4B,CAAC;AACjC,SAAS,2BAA2B,EAClC,+BAA+B,wBACjC,CAAC;AACD,OAAO,UAAU,aAAa,yBAAyB;AACvD,IAAI,eAAe,QAAQ,OAAO;AAClC,SAAS,iBAAiB,UAAU;CAClC,SAAS,SAAS;CAClB,OAAO,WAAW,CAClB;AACF;AACA,SAAS,mBAAmB,UAAU;CACpC,SAAS,QAAQ;CACjB,OAAO,WAAW,CAClB;AACF;AACA,SAAS,wBAAwB,MAAM;CACrC,IAAI,OAAO,KAAK;CAChB,IAAI,OAAO,KAAK,gBAAgB,YAAY;EAC1C,KAAK,cAAc,SAAS,MAAM;GAChC,OAAO,KAAK,SAAS;EACvB;CACF;CACA,OAAO;EACL;EACA,WAAW,SAAS,YAAY;GAC9B,OAAO,KAAK,qBAAqB;EACnC;EACA,aAAa,SAAS,cAAc;GAClC,OAAO,KAAK,YAAY;EAC1B;EACA,WAAW,SAAS,YAAY;GAC9B,IAAI,SAAS,KAAK,UAAU;GAC5B,QAAQ,GAAG,aAAa,QAAO,CAAE,WAAW;IAC1C,OAAO;KACL,GAAG;KACH,WAAW;KACX,aAAa;IACf;GACF,GAAG,CACD,MACF,CAAC;EACH;CACF;AACF"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Link, useParams, usePathname, useRouter } from "one";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
|
|
3
|
+
export { Link, useParams, usePathname, useRouter };
|
|
@@ -0,0 +1,51 @@
|
|
|
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 index_native_exports = {};
|
|
24
|
+
__export(index_native_exports, {
|
|
25
|
+
Link: () => Link,
|
|
26
|
+
useParams: () => useParams,
|
|
27
|
+
usePathname: () => usePathname,
|
|
28
|
+
useRouter: () => useRouter
|
|
29
|
+
});
|
|
30
|
+
module.exports = __toCommonJS(index_native_exports);
|
|
31
|
+
var import_nativeRouter = require("./nativeRouter.native.js");
|
|
32
|
+
function loadOne() {
|
|
33
|
+
try {
|
|
34
|
+
return require("one");
|
|
35
|
+
} catch (unused) {
|
|
36
|
+
return void 0;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
var router = (0, import_nativeRouter.pickNativeRouter)(loadOne());
|
|
40
|
+
var Link = router.Link;
|
|
41
|
+
var useParams = router.useParams;
|
|
42
|
+
var useRouter = router.useRouter;
|
|
43
|
+
var useRouterPathname = router.usePathname;
|
|
44
|
+
function usePathname() {
|
|
45
|
+
try {
|
|
46
|
+
var _useRouterPathname;
|
|
47
|
+
return (_useRouterPathname = useRouterPathname()) !== null && _useRouterPathname !== void 0 ? _useRouterPathname : "/";
|
|
48
|
+
} catch (unused) {
|
|
49
|
+
return "/";
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -5,38 +5,36 @@ 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 index_native_exports = {};
|
|
26
24
|
__export(index_native_exports, {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
Link: () => Link,
|
|
26
|
+
useParams: () => useParams,
|
|
27
|
+
usePathname: () => usePathname,
|
|
28
|
+
useRouter: () => useRouter
|
|
31
29
|
});
|
|
32
30
|
module.exports = __toCommonJS(index_native_exports);
|
|
33
31
|
var import_nativeRouter = require("./nativeRouter.native.js");
|
|
34
32
|
function loadOne() {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
33
|
+
try {
|
|
34
|
+
return require("one");
|
|
35
|
+
} catch (unused) {
|
|
36
|
+
return void 0;
|
|
37
|
+
}
|
|
40
38
|
}
|
|
41
39
|
var router = (0, import_nativeRouter.pickNativeRouter)(loadOne());
|
|
42
40
|
var Link = router.Link;
|
|
@@ -44,11 +42,12 @@ var useParams = router.useParams;
|
|
|
44
42
|
var useRouter = router.useRouter;
|
|
45
43
|
var useRouterPathname = router.usePathname;
|
|
46
44
|
function usePathname() {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
45
|
+
try {
|
|
46
|
+
var _useRouterPathname;
|
|
47
|
+
return (_useRouterPathname = useRouterPathname()) !== null && _useRouterPathname !== void 0 ? _useRouterPathname : "/";
|
|
48
|
+
} catch (unused) {
|
|
49
|
+
return "/";
|
|
50
|
+
}
|
|
53
51
|
}
|
|
52
|
+
|
|
54
53
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.native.js","names":[],"sources":["jsx/router/index.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 index_native_exports = {};\n__export(index_native_exports, {\n Link: () => Link,\n useParams: () => useParams,\n usePathname: () => usePathname,\n useRouter: () => useRouter\n});\nmodule.exports = __toCommonJS(index_native_exports);\nvar import_nativeRouter = require(\"./nativeRouter\");\nfunction loadOne() {\n try {\n return require(\"one\");\n } catch (unused) {\n return void 0;\n }\n}\nvar router = (0, import_nativeRouter.pickNativeRouter)(loadOne());\nvar Link = router.Link;\nvar useParams = router.useParams;\nvar useRouter = router.useRouter;\nvar useRouterPathname = router.usePathname;\nfunction usePathname() {\n try {\n var _useRouterPathname;\n return (_useRouterPathname = useRouterPathname()) !== null && _useRouterPathname !== void 0 ? _useRouterPathname : \"/\";\n } catch (unused) {\n return \"/\";\n }\n}\n//# sourceMappingURL=index.native.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,uBAAuB,CAAC;AAC5B,SAAS,sBAAsB;CAC7B,YAAY;CACZ,iBAAiB;CACjB,mBAAmB;CACnB,iBAAiB;AACnB,CAAC;AACD,OAAO,UAAU,aAAa,oBAAoB;AAClD,IAAI,sBAAsB,QAAQ,0BAAgB;AAClD,SAAS,UAAU;CACjB,IAAI;EACF,OAAO,QAAQ,KAAK;CACtB,SAAS,QAAQ;EACf,OAAO,KAAK;CACd;AACF;AACA,IAAI,UAAU,GAAG,oBAAoB,iBAAgB,CAAE,QAAQ,CAAC;AAChE,IAAI,OAAO,OAAO;AAClB,IAAI,YAAY,OAAO;AACvB,IAAI,YAAY,OAAO;AACvB,IAAI,oBAAoB,OAAO;AAC/B,SAAS,cAAc;CACrB,IAAI;EACF,IAAI;EACJ,QAAQ,qBAAqB,kBAAkB,OAAO,QAAQ,uBAAuB,KAAK,IAAI,qBAAqB;CACrH,SAAS,QAAQ;EACf,OAAO;CACT;AACF"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export * from "./EmptyRouter.mjs"
|
|
2
|
-
//# sourceMappingURL=index.storybook-expo.mjs.map
|
|
1
|
+
export * from "./EmptyRouter.mjs"
|
|
@@ -0,0 +1,20 @@
|
|
|
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 __copyProps = (to, from, except, desc) => {
|
|
8
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
9
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
10
|
+
get: () => from[key],
|
|
11
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
return to;
|
|
15
|
+
};
|
|
16
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var index_storybook_expo_exports = {};
|
|
19
|
+
module.exports = __toCommonJS(index_storybook_expo_exports);
|
|
20
|
+
__reExport(index_storybook_expo_exports, require("./EmptyRouter.native.js"), module.exports);
|
|
@@ -5,19 +5,18 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __copyProps = (to, from, except, desc) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
9
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
10
|
+
get: () => from[key],
|
|
11
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
return to;
|
|
15
15
|
};
|
|
16
16
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
17
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
18
|
-
value: true
|
|
19
|
-
}), mod);
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
18
|
var index_storybook_expo_exports = {};
|
|
21
19
|
module.exports = __toCommonJS(index_storybook_expo_exports);
|
|
22
20
|
__reExport(index_storybook_expo_exports, require("./EmptyRouter.native.js"), module.exports);
|
|
21
|
+
|
|
23
22
|
//# sourceMappingURL=index.storybook-expo.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["
|
|
1
|
+
{"version":3,"file":"index.storybook-expo.native.js","names":[],"sources":["jsx/router/index.storybook-expo.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\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 __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, \"default\"), secondTarget && __copyProps(secondTarget, mod, \"default\"));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_storybook_expo_exports = {};\nmodule.exports = __toCommonJS(index_storybook_expo_exports);\n__reExport(index_storybook_expo_exports, require(\"./EmptyRouter\"), module.exports);\n//# sourceMappingURL=index.storybook-expo.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,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,cAAc,QAAQ,KAAK,kBAAkB,YAAY,QAAQ,KAAK,SAAS,GAAG,gBAAgB,YAAY,cAAc,KAAK,SAAS;AAC9I,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,+BAA+B,CAAC;AACpC,OAAO,UAAU,aAAa,4BAA4B;AAC1D,WAAW,8BAA8B,QAAQ,yBAAe,GAAG,OAAO,OAAO"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export * from "./EmptyRouter.mjs"
|
|
2
|
-
//# sourceMappingURL=index.storybook.mjs.map
|
|
1
|
+
export * from "./EmptyRouter.mjs"
|
|
@@ -0,0 +1,20 @@
|
|
|
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 __copyProps = (to, from, except, desc) => {
|
|
8
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
9
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
10
|
+
get: () => from[key],
|
|
11
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
return to;
|
|
15
|
+
};
|
|
16
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var index_storybook_exports = {};
|
|
19
|
+
module.exports = __toCommonJS(index_storybook_exports);
|
|
20
|
+
__reExport(index_storybook_exports, require("./EmptyRouter.native.js"), module.exports);
|
|
@@ -5,19 +5,18 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __copyProps = (to, from, except, desc) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
9
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
10
|
+
get: () => from[key],
|
|
11
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
return to;
|
|
15
15
|
};
|
|
16
16
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
17
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
18
|
-
value: true
|
|
19
|
-
}), mod);
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
18
|
var index_storybook_exports = {};
|
|
21
19
|
module.exports = __toCommonJS(index_storybook_exports);
|
|
22
20
|
__reExport(index_storybook_exports, require("./EmptyRouter.native.js"), module.exports);
|
|
21
|
+
|
|
23
22
|
//# sourceMappingURL=index.storybook.native.js.map
|