one 1.1.324 → 1.1.326
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/createApp.native.js +0 -2
- package/dist/cjs/createApp.native.js.map +1 -1
- package/dist/cjs/createHandleRequest.cjs +2 -1
- package/dist/cjs/createHandleRequest.js +2 -1
- package/dist/cjs/createHandleRequest.js.map +1 -1
- package/dist/cjs/createHandleRequest.native.js +2 -1
- package/dist/cjs/createHandleRequest.native.js.map +2 -2
- package/dist/cjs/hooks.js.map +1 -1
- package/dist/cjs/hooks.native.js.map +1 -1
- package/dist/cjs/href.cjs +29 -0
- package/dist/cjs/href.js +25 -0
- package/dist/cjs/href.js.map +6 -0
- package/dist/cjs/href.native.js +30 -0
- package/dist/cjs/href.native.js.map +6 -0
- package/dist/cjs/imperative-api.cjs +1 -3
- package/dist/cjs/imperative-api.js +1 -4
- package/dist/cjs/imperative-api.js.map +1 -1
- package/dist/cjs/imperative-api.native.js +1 -4
- package/dist/cjs/imperative-api.native.js.map +1 -1
- package/dist/cjs/index.cjs +16 -14
- package/dist/cjs/index.js +3 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index.native.js +4 -1
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/router/router.js.map +1 -1
- package/dist/cjs/router/router.native.js.map +1 -1
- package/dist/cjs/vite/clientTreeShakePlugin.cjs +1 -3
- package/dist/cjs/vite/clientTreeShakePlugin.js +1 -2
- package/dist/cjs/vite/clientTreeShakePlugin.js.map +1 -1
- package/dist/cjs/vite/clientTreeShakePlugin.native.js +1 -2
- package/dist/cjs/vite/clientTreeShakePlugin.native.js.map +1 -1
- package/dist/cjs/vite/vitePluginSsrCss.js.map +1 -1
- package/dist/cjs/vite/vitePluginSsrCss.native.js.map +1 -1
- package/dist/esm/createApp.native.js +0 -2
- package/dist/esm/createApp.native.js.map +1 -1
- package/dist/esm/createHandleRequest.js +2 -1
- package/dist/esm/createHandleRequest.js.map +1 -1
- package/dist/esm/createHandleRequest.mjs +2 -1
- package/dist/esm/createHandleRequest.mjs.map +1 -1
- package/dist/esm/createHandleRequest.native.js +2 -1
- package/dist/esm/createHandleRequest.native.js.map +2 -2
- package/dist/esm/hooks.js.map +1 -1
- package/dist/esm/hooks.mjs.map +1 -1
- package/dist/esm/hooks.native.js.map +1 -1
- package/dist/esm/href.js +9 -0
- package/dist/esm/href.js.map +6 -0
- package/dist/esm/href.mjs +6 -0
- package/dist/esm/href.mjs.map +1 -0
- package/dist/esm/href.native.js +9 -0
- package/dist/esm/href.native.js.map +6 -0
- package/dist/esm/imperative-api.js +1 -4
- package/dist/esm/imperative-api.js.map +1 -1
- package/dist/esm/imperative-api.mjs +1 -3
- package/dist/esm/imperative-api.mjs.map +1 -1
- package/dist/esm/imperative-api.native.js +1 -4
- package/dist/esm/imperative-api.native.js.map +1 -1
- package/dist/esm/index.js +15 -13
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +15 -14
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +15 -13
- package/dist/esm/index.native.js.map +2 -2
- package/dist/esm/router/router.js.map +1 -1
- package/dist/esm/router/router.mjs.map +1 -1
- package/dist/esm/router/router.native.js.map +1 -1
- package/dist/esm/vite/clientTreeShakePlugin.js +1 -2
- package/dist/esm/vite/clientTreeShakePlugin.js.map +1 -1
- package/dist/esm/vite/clientTreeShakePlugin.mjs +1 -3
- package/dist/esm/vite/clientTreeShakePlugin.mjs.map +1 -1
- package/dist/esm/vite/clientTreeShakePlugin.native.js +1 -2
- package/dist/esm/vite/clientTreeShakePlugin.native.js.map +1 -1
- package/dist/esm/vite/vitePluginSsrCss.js.map +1 -1
- package/dist/esm/vite/vitePluginSsrCss.mjs.map +1 -1
- package/dist/esm/vite/vitePluginSsrCss.native.js.map +1 -1
- package/package.json +10 -10
- package/src/createApp.native.tsx +0 -3
- package/src/createHandleRequest.ts +6 -2
- package/src/hooks.tsx +1 -2
- package/src/href.ts +12 -0
- package/src/imperative-api.ts +1 -5
- package/src/index.ts +22 -25
- package/src/interfaces/router.ts +4 -3
- package/src/router/router.ts +1 -1
- package/src/types.ts +1 -0
- package/src/vite/clientTreeShakePlugin.ts +0 -1
- package/src/vite/vitePluginSsrCss.ts +0 -1
- package/types/createApp.native.d.ts.map +1 -1
- package/types/createHandleRequest.d.ts +2 -4
- package/types/createHandleRequest.d.ts.map +1 -1
- package/types/createRoute.d.ts +2 -2
- package/types/hooks.d.ts +1 -1
- package/types/hooks.d.ts.map +1 -1
- package/types/href.d.ts +7 -0
- package/types/href.d.ts.map +1 -0
- package/types/imperative-api.d.ts.map +1 -1
- package/types/index.d.ts +14 -13
- package/types/index.d.ts.map +1 -1
- package/types/interfaces/router.d.ts +3 -1
- package/types/interfaces/router.d.ts.map +1 -1
- package/types/router/router.d.ts +1 -1
- package/types/router/router.d.ts.map +1 -1
- package/types/types.d.ts +1 -0
- package/types/types.d.ts.map +1 -1
- package/types/vite/clientTreeShakePlugin.d.ts.map +1 -1
- package/types/vite/vitePluginSsrCss.d.ts.map +1 -1
@@ -73,8 +73,7 @@ async function transformTreeShakeClient(code, id) {
|
|
73
73
|
(0, import_babel_dead_code_elimination.deadCodeElimination)(ast, referenced);
|
74
74
|
var out = generate(ast), codeOut = out.code + `
|
75
75
|
|
76
|
-
` +
|
77
|
-
removedFunctions.map(function(key) {
|
76
|
+
` + removedFunctions.map(function(key) {
|
78
77
|
return key === "loader" ? import_constants.EMPTY_LOADER_STRING : "export function generateStaticParams() {};";
|
79
78
|
}).join(`
|
80
79
|
`);
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/vite/Users/n8/one/packages/one/src/vite/clientTreeShakePlugin.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;uBAA0B,yCAC1B,gBAAsB,0BACtB,kBAA0B,wCAC1B,qCAA+D,wCAE/D,mBAAoC,wBAE9BA,WAAWC,gBAAAA,QAAc,SACzBC,WAAWC,iBAAAA,Q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KAAKC,YAAYlB,GAAGN;AAC9C,WAAI0B,iBAAiB,YAAYA,iBAAiB,4BAChDJ,KAAKK,OAAM,GACXT,QAAQQ,YAAAA,IAAgB;QAE5B,MAAO,CAAIJ,KAAKC,KAAKC,eAAeF,KAAKC,KAAKC,YAAYC,SAAS,yBACjEH,KAAKC,KAAKC,YAAYI,aAAaC,QAAQ,SAACC,YAAYC,OAAAA;AACtD,cACED,WAAWxB,GAAGmB,SAAS,iBACtBK,WAAWxB,GAAGN,SAAS,YAAY8B,WAAWxB,GAAGN,SAAS,yBAC3D;AACA,gBAAMwB,cAAcF,KAAKU,IAAI,8BAA8BD,KAAAA;AAC3D,YAAKE,MAAMC,QAAQV,WAAAA,MACjBA,YAAYG,OAAM,GAClBT,QAAQY,WAAWxB,GAAGN,IAAI,IAAI;UAElC;QACF,CAAA;MAEJ;IACF,CAAA;AAEA,QAAMmC,mBAAmBC,OAAOC,KAAKnB,OAAAA,EAASoB,OAAO,SAACC,KAAAA;aAAQrB,QAAQqB,GAAAA;;AAEtE,QAAIJ,iBAAiBK,QAAQ;AAC3BC,kEAAoB7B,KAAKI,UAAAA;AAEzB,UAAM0B,MAAM7C,SAASe,GAAAA,GAGf+B,UACJD,IAAIrC,OACJ;;IACA8B,iBACGS,IAAI,SAACL,KAAAA;AACJ,eAAIA,QAAQ,WACHM,uCAGF;MACT,CAAA,EACCC,KAAK;CAAA;AAEV,aAAO;QACLzC,MAAMsC;QACNC,KAAKF,IAAIE;MACX;IACF;;AACF;",
|
5
5
|
"names": ["traverse", "BabelTraverse", "generate", "BabelGenerate", "clientTreeShakePlugin", "name", "enforce", "applyToEnvironment", "env", "transform", "code", "id", "settings", "environment", "transformTreeShakeClient", "includes", "test", "ast", "parse", "sourceType", "plugins", "referenced", "findReferencedIdentifiers", "removed", "loader", "generateStaticParams", "ExportNamedDeclaration", "path", "node", "declaration", "type", "functionName", "remove", "declarations", "forEach", "declarator", "index", "get", "Array", "isArray", "removedFunctions", "Object", "keys", "filter", "key", "length", "deadCodeElimination", "out", "codeOut", "map", "EMPTY_LOADER_STRING", "join"]
|
6
6
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/vite/vitePluginSsrCss.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAKO,MAAM,gBAAgB;AAEtB,SAAS,iBAAiB,YAA2C;AAC1E,MAAI;
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAKO,MAAM,gBAAgB;AAEtB,SAAS,iBAAiB,YAA2C;AAC1E,MAAI;AAEJ,QAAM,cAAc,iBAAiB;AAErC,SAAO;AAAA,IACL,MAAM;AAAA,IACN,OAAO;AAAA,IACP,gBAAgB,SAAS;AACvB,eAAS,SAGT,OAAO,YAAY,IAAI,OAAO,KAAK,KAAK,SAAS;AAC/C,YAAI,IAAI,KAAK,SAAS,WAAW,GAAG;AAClC,2BAAiB,QAAQ,OAAO,gBAAgB,SAAS;AAEzD,cAAI,OAAO,MAAM,aAAa,QAAQ,WAAW,OAAO;AAExD,cAAI,UAAU,gBAAgB,UAAU,GACxC,IAAI,UAAU,iBAAiB,UAAU,GACzC,IAAI,UAAU,QAAQ,GAAG,GACzB,IAAI,MAAM,IAAI,GACd,IAAI,IAAI;AACR;AAAA,QACF;AACA,aAAK;AAAA,MACP,CAAC;AAAA,IACH;AAAA;AAAA;AAAA,IAIA,UAAU,QAAQ,WAAW,UAAU;AACrC,aAAO,OAAO,WAAW,aAAa,IAAI,OAAO,SAAS;AAAA,IAC5D;AAAA,IAEA,MAAM,KAAK,IAAI,UAAU;AACvB,UAAI,GAAG,WAAW,OAAO,aAAa,GAAG;AACvC,cAAM,MAAM,IAAI,IAAI,GAAG,MAAM,CAAC,GAAG,oBAAoB;AACrD,YAAI,OAAO,MAAM,a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AGA,eAAMsC,QAAQC,IAAIlC,QAAQmC,IAAI,SAAC0B,GAAAA;WAAM7E,OAAOoD,iBAAiByB,CAAAA;OAG7D,MAAM5B,QAAQC,IAAIlC,QAAQmC,IAAI,SAACxC,KAAAA;WAAQ6D,SAAS7D,GAAAA;OAGzC;OAAI2D;IAASH,OAAO,SAACxD,KAAAA;WAAQA,IAAImE,MAAMC,YAAAA;;AAChD;AAGA,IAAMA,eAAe;",
|
5
5
|
"names": ["VIRTUAL_ENTRY", "vitePluginSsrCss", "pluginOpts", "server", "virtualHref", "name", "apply", "configureServer", "server_", "middlewares", "use", "req", "res", "next", "url", "includes", "invalidateModule", "code", "collectStyle", "entries", "setHeader", "write", "end", "resolveId", "source", "_importer", "_options", "startsWith", "undefined", "load", "id", "URL", "slice", "searchParams", "has", "JSON", "stringify", "transformIndexHtml", "handler", "tag", "injectTo", "attrs", "rel", "href", "type", "children", "mod", "moduleGraph", "getModuleById", "urls", "collectStyleUrls", "codes", "Promise", "all", "map", "transformRequest", "prefix", "transform", "processed", "filename", "Buffer", "from", "config", "css", "lightningcss", "toString", "err", "console", "error", "flat", "filter", "Boolean", "join", "visited", "Set", "traverse", "resolveUrl", "add", "importedModules", "childMod", "e", "match", "CSS_LANGS_RE"]
|
6
6
|
}
|
@@ -15,8 +15,6 @@ function createApp(options) {
|
|
15
15
|
};
|
16
16
|
AppRegistry.registerComponent("main", function() {
|
17
17
|
return App;
|
18
|
-
}), AppRegistry.registerComponent("tamaguikitchensink", function() {
|
19
|
-
return App;
|
20
18
|
}), process.env.ONE_APP_NAME && AppRegistry.registerComponent(process.env.ONE_APP_NAME, function() {
|
21
19
|
return App;
|
22
20
|
});
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/Users/n8/one/packages/one/src/createApp.native.tsx"],
|
4
|
-
"mappings": ";AAAA,OAAO;AACP,SAASA,YAAY;AACrB,SAASC,aAAaC,cAAc;AAKpCA,OAAOC,WAAW;EAAC;CAA0C;AAEtD,SAASC,UAAUC,SAAuB;AAC/C,MAAMC,MAAM,WAAA;WAAM,qBAACN,MAAAA;MAAKO,UAAQ;MAACC,QAAQH,QAAQG;MAAQC,MAAK;;;AAE9DR,cAAYS,kBAAkB,QAAQ,WAAA;WAAMJ;
|
4
|
+
"mappings": ";AAAA,OAAO;AACP,SAASA,YAAY;AACrB,SAASC,aAAaC,cAAc;AAKpCA,OAAOC,WAAW;EAAC;CAA0C;AAEtD,SAASC,UAAUC,SAAuB;AAC/C,MAAMC,MAAM,WAAA;WAAM,qBAACN,MAAAA;MAAKO,UAAQ;MAACC,QAAQH,QAAQG;MAAQC,MAAK;;;AAE9DR,cAAYS,kBAAkB,QAAQ,WAAA;WAAMJ;MAExCK,QAAQC,IAAIC,gBACdZ,YAAYS,kBAAkBC,QAAQC,IAAIC,cAAc,WAAA;WAAMP;;AAElE;",
|
5
5
|
"names": ["Root", "AppRegistry", "LogBox", "ignoreLogs", "createApp", "options", "App", "isClient", "routes", "path", "registerComponent", "process", "env", "ONE_APP_NAME"]
|
6
6
|
}
|
@@ -60,6 +60,7 @@ function createHandleRequest(options, handlers) {
|
|
60
60
|
url,
|
61
61
|
loaderProps: {
|
62
62
|
path: finalUrl.pathname,
|
63
|
+
request: route.type === "ssr" ? request : void 0,
|
63
64
|
params: getLoaderParams(finalUrl, route)
|
64
65
|
}
|
65
66
|
});
|
@@ -117,7 +118,7 @@ function getLoaderParams(url, config) {
|
|
117
118
|
function getRouteParams(pathname, route) {
|
118
119
|
const match = new RegExp(route.namedRegex).exec(pathname);
|
119
120
|
return match ? Object.fromEntries(
|
120
|
-
Object.entries(route.routeKeys).map(([key, value]) => [value, match.groups?.[key]])
|
121
|
+
Object.entries(route.routeKeys).map(([key, value]) => [value, match.groups?.[key] || ""])
|
121
122
|
) : {};
|
122
123
|
}
|
123
124
|
export {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources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65
65
|
path: finalUrl.pathname,
|
66
|
+
request: route.type === "ssr" ? request : void 0,
|
66
67
|
params: getLoaderParams(finalUrl, route)
|
67
68
|
}
|
68
69
|
});
|
@@ -121,7 +122,7 @@ function getLoaderParams(url, config) {
|
|
121
122
|
}
|
122
123
|
function getRouteParams(pathname, route) {
|
123
124
|
const match = new RegExp(route.namedRegex).exec(pathname);
|
124
|
-
return match ? Object.fromEntries(Object.entries(route.routeKeys).map(([key, value]) => [value, match.groups?.[key]])) : {};
|
125
|
+
return match ? Object.fromEntries(Object.entries(route.routeKeys).map(([key, value]) => [value, match.groups?.[key] || ""])) : {};
|
125
126
|
}
|
126
127
|
export { createHandleRequest };
|
127
128
|
//# sourceMappingURL=createHandleRequest.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["getPathFromLoaderPath","LOADER_JS_POSTFIX_UNCACHED","isResponse","promiseWithResolvers","getManifest","createHandleRequest","options","handlers","manifest","Error","apiRoutesMap","apiRoutes","reduce","acc","cur","page","compiledRegex","RegExp","namedRegex","apiRoutesList","Object","values","activeRequests","pageRoutes","map","route","workingRegex","handler","request","urlString","url","URL","headers","get","pathname","search","process","env","NODE_ENV","startsWith","handleAPI","apiRoute","find","test","params","getRouteParams","loaderProps","path","err","method","handleLoader","endsWith","originalUrl","finalUrl","origin","file","console","info","Headers","set","loaderResponse","getLoaderParams","Response","error","routes","handleSSR","promise","reject","resolve","ssrResponse","config","match","exec","groups","key","value","entries","namedKey","routeKeys","fromEntries"],"sources":["../../src/createHandleRequest.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,qBAAA,QAA6B;AACtC,SAAkCC,0BAAA,QAAkC;
|
1
|
+
{"version":3,"names":["getPathFromLoaderPath","LOADER_JS_POSTFIX_UNCACHED","isResponse","promiseWithResolvers","getManifest","createHandleRequest","options","handlers","manifest","Error","apiRoutesMap","apiRoutes","reduce","acc","cur","page","compiledRegex","RegExp","namedRegex","apiRoutesList","Object","values","activeRequests","pageRoutes","map","route","workingRegex","handler","request","urlString","url","URL","headers","get","pathname","search","process","env","NODE_ENV","startsWith","handleAPI","apiRoute","find","test","params","getRouteParams","loaderProps","path","err","method","handleLoader","endsWith","originalUrl","finalUrl","origin","file","console","info","Headers","set","loaderResponse","type","getLoaderParams","Response","error","routes","handleSSR","promise","reject","resolve","ssrResponse","config","match","exec","groups","key","value","entries","namedKey","routeKeys","fromEntries"],"sources":["../../src/createHandleRequest.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,qBAAA,QAA6B;AACtC,SAAkCC,0BAAA,QAAkC;AAGpE,SAASC,UAAA,QAAkB;AAC3B,SAASC,oBAAA,QAA4B;AACrC,SAASC,WAAA,QAAmB;AAYrB,SAASC,oBACdC,OAAA,EACAC,QAAA,EAKA;EACA,MAAMC,QAAA,GAAWJ,WAAA,CAAY;EAC7B,IAAI,CAACI,QAAA,EACH,MAAM,IAAIC,KAAA,CAAM,oBAAoB;EAGtC,MAAMC,YAAA,GACJF,QAAA,CAASG,SAAA,CAAUC,MAAA,CAAO,CAACC,GAAA,EAAKC,GAAA,MAC9BD,GAAA,CAAIC,GAAA,CAAIC,IAAI,IAAI;MAAE,GAAGD,GAAA;MAAKE,aAAA,EAAe,IAAIC,MAAA,CAAOH,GAAA,CAAII,UAAU;IAAE,GAC7DL,GAAA,GACN,CAAC,CAAC;IAEDM,aAAA,GAAgBC,MAAA,CAAOC,MAAA,CAAOX,YAAY;IAK1CY,cAAA,GAAiB,CAAC;IAGlBC,UAAA,GAAaf,QAAA,CAASe,UAAA,CAAWC,GAAA,CAAKC,KAAA,KAAW;MACrD,GAAGA,KAAA;MACHC,YAAA,EAAc,IAAIT,MAAA,CAAOQ,KAAA,CAAMP,UAAU;IAC3C,EAAE;EAEF,OAAO;IACLV,QAAA;IACAmB,OAAA,EAAS,eAAAA,CAA6BC,OAAA,EAAmD;MACvF,MAAMC,SAAA,GAAYD,OAAA,CAAQE,GAAA,IAAO;QAC3BA,GAAA,GAAM,IAAIC,GAAA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5D,MAAA,CAAOyD,OAAA,CAAQpD,KAAA,CAAMsD,SAAS,EAAEvD,GAAA,CAAI,CAAC,CAACmD,GAAA,EAAKC,KAAK,MACvC,CAACA,KAAA,EAAQJ,KAAA,CAAME,MAAA,GAASC,GAAG,KAAK,EAAa,CACrD,CACH,IALmB,CAAC;AAMtB","ignoreList":[]}
|
@@ -70,6 +70,7 @@ function createHandleRequest(options, handlers) {
|
|
70
70
|
url,
|
71
71
|
loaderProps: {
|
72
72
|
path: finalUrl.pathname,
|
73
|
+
request: route.type === "ssr" ? request : void 0,
|
73
74
|
params: getLoaderParams(finalUrl, route)
|
74
75
|
}
|
75
76
|
});
|
@@ -168,7 +169,7 @@ function getRouteParams(pathname, route) {
|
|
168
169
|
var [key, value] = param, _match_groups;
|
169
170
|
return [
|
170
171
|
value,
|
171
|
-
(_match_groups = match.groups) === null || _match_groups === void 0 ? void 0 : _match_groups[key]
|
172
|
+
((_match_groups = match.groups) === null || _match_groups === void 0 ? void 0 : _match_groups[key]) || ""
|
172
173
|
];
|
173
174
|
})) : {};
|
174
175
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/Users/n8/one/packages/one/src/createHandleRequest.ts"],
|
4
|
-
"mappings": "AAAA,SAASA,6BAA6B;AACtC,SAAkCC,kCAAkC;
|
5
|
-
"names": ["getPathFromLoaderPath", "LOADER_JS_POSTFIX_UNCACHED", "isResponse", "promiseWithResolvers", "getManifest", "createHandleRequest", "options", "handlers", "manifest", "Error", "apiRoutesMap", "apiRoutes", "reduce", "acc", "cur", "page", "compiledRegex", "RegExp", "namedRegex", "apiRoutesList", "Object", "values", "activeRequests", "pageRoutes", "map", "route", "workingRegex", "handler", "request", "urlString", "url", "URL", "headers", "get", "pathname", "search", "process", "env", "NODE_ENV", "startsWith", "handleAPI", "apiRoute", "find", "regex", "test", "params", "getRouteParams", "loaderProps", "path", "err", "method", "handleLoader", "isClientRequestingNewRoute", "endsWith", "originalUrl", "finalUrl", "origin", "file", "console", "info", "Headers", "set", "loaderResponse", "getLoaderParams", "Response", "error", "routes", "handleSSR", "promise", "reject", "resolve", "ssrResponse", "config", "match", "exec", "groups", "entries", "key", "value", "namedKey", "routeKeys", "fromEntries"]
|
4
|
+
"mappings": "AAAA,SAASA,6BAA6B;AACtC,SAAkCC,kCAAkC;AAGpE,SAASC,kBAAkB;AAC3B,SAASC,4BAA4B;AACrC,SAASC,mBAAmB;AAYrB,SAASC,oBACdC,SACAC,UAIC;AAED,MAAMC,WAAWJ,YAAAA;AACjB,MAAI,CAACI;AACH,UAAM,IAAIC,MAAM,oBAAoB;AAGtC,MAAMC,eACJF,SAASG,UAAUC,OAAO,SAACC,KAAKC,KAAAA;AAC9BD,eAAIC,IAAIC,IAAI,IAAI;MAAE,GAAGD;MAAKE,eAAe,IAAIC,OAAOH,IAAII,UAAU;IAAE,GAC7DL;EACT,GAAG,CAAC,CAAA,GAEAM,gBAAgBC,OAAOC,OAAOX,YAAAA,GAK9BY,iBAAiB,CAAC,GAGlBC,aAAaf,SAASe,WAAWC,IAAI,SAACC,OAAAA;WAAW;MACrD,GAAGA;MACHC,cAAc,IAAIT,OAAOQ,MAAMP,UAAU;IAC3C;;AAEA,SAAO;IACLV;IACAmB,SAAS,eAA6BC,SAAgB;AACpD,UAAMC,YAAYD,QAAQE,OAAO,IAC3BA,MAAM,IAAIC,IACdF,aAAa,IACbD,QAAQI,QAAQC,IAAI,MAAA,IAAU,UAAUL,QAAQI,QAAQC,IAAI,MAAA,CAAA,KAAY,EAAA,GAEpE,EAAEC,UAAUC,OAAM,IAAKL;AAE7B,UAAIM,QAAQC,IAAIC,aAAa,gBACvBhB,eAAeY,QAAAA;AACjB,eAAO,MAAMZ,eAAeY,QAAAA;AAIhC,UAAIA,aAAa,gBAAgBA,SAASK,WAAW,IAAA;AACnD,eAAO;AAGT,UAAIhC,SAASiC,WAAW;AACtB,YAAMC,WAAWtB,cAAcuB,KAAK,SAACj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;AACF;AAEA,SAAS+B,gBACPnC,KACA4C,QAAmE;AAEnE,MAAM7B,SAAiC,CAAC,GAClC8B,QAAQ,IAAI1D,OAAOyD,OAAOhD,YAAY,EAAEkD,KAAK9C,IAAII,QAAQ;AAC/D,MAAIyC,OAAOE,QAAQ;QACZ,4BAAA,IAAA,oBAAA,IAAA,iBAAA;;AAAL,eAAK,YAAsBzD,OAAO0D,QAAQH,MAAME,MAAM,EAAA,OAAA,QAAA,EAAA,GAAjD,OAAA,EAAA,6BAAA,QAAA,UAAA,KAAA,GAAA,OAAA,4BAAA,IAAoD;AAApD,YAAM,CAACE,KAAKC,KAAAA,IAAZ,MAAA,OACGC,WAAWP,OAAOQ,UAAUH,GAAAA;AAClClC,eAAOoC,QAAAA,IAAYD;MACrB;;AAHK,0BAAA,IAAA,iBAAA;;;SAAA,6BAAA,UAAA,UAAA,QAAA,UAAA,OAAA;;YAAA;gBAAA;;;EAIP;AACA,SAAOnC;AACT;AAGA,SAASC,eAAeZ,UAAkBT,OAAwB;AAChE,MAAMkB,QAAQ,IAAI1B,OAAOQ,MAAMP,UAAU,GACnCyD,QAAQhC,MAAMiC,KAAK1C,QAAAA;AACzB,SAAKyC,QACEvD,OAAO+D,YACZ/D,OAAO0D,QAAQrD,MAAMyD,SAAS,EAAE1D,IAAI,SAAA,OAAA;QAAC,CAACuD,KAAKC,KAAAA,IAAM,OAC/BL;AAAhB,WAAO;MAACK;QAAQL,gBAAAA,MAAME,YAAM,QAAZF,kBAAAA,SAAAA,SAAAA,cAAeI,GAAAA,MAAQ;;EACzC,CAAA,CAAA,IAJiB,CAAC;AAMtB;",
|
5
|
+
"names": ["getPathFromLoaderPath", "LOADER_JS_POSTFIX_UNCACHED", "isResponse", "promiseWithResolvers", "getManifest", "createHandleRequest", "options", "handlers", "manifest", "Error", "apiRoutesMap", "apiRoutes", "reduce", "acc", "cur", "page", "compiledRegex", "RegExp", "namedRegex", "apiRoutesList", "Object", "values", "activeRequests", "pageRoutes", "map", "route", "workingRegex", "handler", "request", "urlString", "url", "URL", "headers", "get", "pathname", "search", "process", "env", "NODE_ENV", "startsWith", "handleAPI", "apiRoute", "find", "regex", "test", "params", "getRouteParams", "loaderProps", "path", "err", "method", "handleLoader", "isClientRequestingNewRoute", "endsWith", "originalUrl", "finalUrl", "origin", "file", "console", "info", "Headers", "set", "loaderResponse", "type", "undefined", "getLoaderParams", "Response", "error", "routes", "handleSSR", "promise", "reject", "resolve", "ssrResponse", "config", "match", "exec", "groups", "entries", "key", "value", "namedKey", "routeKeys", "fromEntries"]
|
6
6
|
}
|
package/dist/esm/hooks.js.map
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/hooks.tsx"],
|
4
|
-
"mappings": "AAAA,SAAS,8BAA8B;AACvC,OAAO,SAAS,qBAAqC;AACrD,SAAS,cAAc;AAEvB,SAAS,eAAe,mBAAmB,yBAAyB;AAkC9D;AA9BC,SAAS,yBAAyB;AACvC,SAAO,kBAAkB;AAC3B;AAEO,SAAS,eAAe;AAC7B,SAAO,kBAAkB;AAC3B;AAGO,SAAS,4BAA4B;AAC1C,SAAO;AACT;AAEA,MAAM,eAAe,cAAc,EAAK;AAEjC,SAAS,OAAO,EAAE,KAAK,IAAO,SAAS,GAA0C;AAQtF,SAAI,OAAO,SAAW,MACb,WAIP,oBAAC,aAAa,UAAb,EAAsB,OAAO,IAE5B;AAAA,IAAC;AAAA;AAAA,MAEC,OAAK;AAAA,MACL,OAAO,EAAE,SAAS,WAAW;AAAA,MAE5B;AAAA;AAAA,EACH,GAEF;AAEJ;AAEO,SAAS,YAA8B;AAC5C,SAAO;AACT;AAMO,SAAS,wBAAgC;AAC9C,SAAO,kBAAkB,EAAE;AAC7B;AAqBO,SAAS,cAAgE;AAC9E,SAAO,kBAAkB,EAAE;AAC7B;AAGO,SAAS,cAAsB;AACpC,SAAO,kBAAkB,EAAE;AAC7B;AAWO,SAAS,kBAA2E;AACzF,SAA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,UACF,CAAC;AAAA,QACH;AAEF,UAAI;AACF,eAAO,CAAC,KAAK,mBAAmB,KAAe,CAAC;AAAA,MAClD,QAAQ;AACN,eAAO,CAAC,KAAK,KAAK;AAAA,MACpB;AAAA,IACF,CAAC;AAAA,EACH;AACF;",
|
5
5
|
"names": []
|
6
6
|
}
|
package/dist/esm/hooks.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["NavigationRouteContext","React","createContext","router","navigationRef","useStoreRootState","useStoreRouteInfo","jsx","useRootNavigationState","useRouteInfo","useNavigationContainerRef","FrozeContext","Frozen","on","children","window","Provider","value","inert","style","display","useRouter","useUnstableGlobalHref","unstable_globalHref","useSegments","segments","usePathname","pathname","useActiveParams","params","useLocalSearchParams","useParams","useGlobalSearchParams","useContext","Object","fromEntries","entries","map","key","Array","isArray","v","decodeURIComponent"],"sources":["../../src/hooks.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,sBAAA,QAA8B;AACvC,OAAOC,KAAA,IAASC,aAAA,QAAqC;AACrD,SAASC,MAAA,QAAc;AAEvB,SAASC,aAAA,EAAeC,iBAAA,EAAmBC,iBAAA,QAAyB;AAkC9D,SAAAC,GAAA;AA9BC,SAASC,uBAAA,EAAyB;EACvC,OAAOH,iBAAA,CAAkB;AAC3B;AAEO,SAASI,aAAA,EAAe;EAC7B,OAAOH,iBAAA,CAAkB;AAC3B;AAGO,SAASI,0BAAA,EAA4B;EAC1C,OAAON,aAAA;AACT;AAEA,MAAMO,YAAA,GAAeT,aAAA,CAAc,EAAK;AAEjC,SAASU,OAAO;EAAEC,EAAA,GAAK;EAAOC;AAAS,GAA0C;EAQtF,OAAI,OAAOC,MAAA,GAAW,MACbD,QAAA,GAIP,eAAAP,GAAA,CAACI,YAAA,CAAaK,QAAA,EAAb;IAAsBC,KAAA,EAAOJ,EAAA;IAE5BC,QAAA,iBAAAP,GAAA,CAAC;MAECW,KAAA,EAAK;MACLC,KAAA,EAAO;QAAEC,OAAA,EAAS;MAAW;MAE5BN;IAAA,CACH;EAAA,CAEF;AAEJ;AAEO,SAASO,UAAA,EAA8B;EAC5C,OAAOlB,MAAA;AACT;AAMO,SAASmB,sBAAA,EAAgC;EAC9C,OAAOhB,iBAAA,CAAkB,EAAEiB,mBAAA;AAC7B;AAqBO,SAASC,YAAA,EAAgE;EAC9E,OAAOlB,iBAAA,CAAkB,EAAEmB,QAAA;AAC7B;AAGO,SAASC,YAAA,EAAsB;EACpC,OAAOpB,iBAAA,CAAkB,EAAEqB,QAAA;AAC7B;AAWO,SAASC,gBAAA,EAA2E;EACzF,OAAOtB,iBAAA,CAAkB,EAAEuB,MAAA;AAC7B;AAGO,MAAMC,oBAAA,GAAuBC,SAAA;EAGvBC,qBAAA,GAAwBJ,eAAA;
|
1
|
+
{"version":3,"names":["NavigationRouteContext","React","createContext","router","navigationRef","useStoreRootState","useStoreRouteInfo","jsx","useRootNavigationState","useRouteInfo","useNavigationContainerRef","FrozeContext","Frozen","on","children","window","Provider","value","inert","style","display","useRouter","useUnstableGlobalHref","unstable_globalHref","useSegments","segments","usePathname","pathname","useActiveParams","params","useLocalSearchParams","useParams","useGlobalSearchParams","useContext","Object","fromEntries","entries","map","key","Array","isArray","v","decodeURIComponent"],"sources":["../../src/hooks.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,sBAAA,QAA8B;AACvC,OAAOC,KAAA,IAASC,aAAA,QAAqC;AACrD,SAASC,MAAA,QAAc;AAEvB,SAASC,aAAA,EAAeC,iBAAA,EAAmBC,iBAAA,QAAyB;AAkC9D,SAAAC,GAAA;AA9BC,SAASC,uBAAA,EAAyB;EACvC,OAAOH,iBAAA,CAAkB;AAC3B;AAEO,SAASI,aAAA,EAAe;EAC7B,OAAOH,iBAAA,CAAkB;AAC3B;AAGO,SAASI,0BAAA,EAA4B;EAC1C,OAAON,aAAA;AACT;AAEA,MAAMO,YAAA,GAAeT,aAAA,CAAc,EAAK;AAEjC,SAASU,OAAO;EAAEC,EAAA,GA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AmBzB,KAAe,CAAC;IAClD,QAAQ;MACN,OAAO,CAACqB,GAAA,EAAKrB,KAAK;IACpB;EACF,CAAC,CACH;AACF","ignoreList":[]}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/Users/n8/one/packages/one/src/hooks.tsx"],
|
4
|
-
"mappings": ";AAAA,SAASA,8BAA8B;AACvC,OAAOC,SAASC,qBAAqC;AACrD,SAASC,cAAc;AAEvB,SAASC,eAAeC,mBAAmBC,yBAAyB;AAI7D,SAASC,yBAAAA;AACd,SAAOF,kBAAAA;AACT;AAEO,SAASG,eAAAA;AACd,SAAOF,kBAAAA;AACT;AAGO,SAASG,4BAAAA;AACd,SAAOL;AACT;AAEA,IAAMM,eAAeR,8BAAc,EAAA;AAE5B,SAASS,OAAO,OAA+D;MAA/D,EAAEC,KAAK,IAAOC,SAAQ,IAAtB;AAQrB,SAAI,OAAOC,SAAW,MACbD,WAIP,qBAACH,aAAaK,UAAQ;IAACC,OAAOJ;;;MAE5B,qBAACK,OAAAA;;QAECC,OAAK;QACLC,OAAO;UAAEC,SAAS;QAAW;;;;;AAOrC;AAEO,SAASC,YAAAA;AACd,SAAOlB;AACT;AAMO,SAASmB,wBAAAA;AACd,SAAOhB,kBAAAA,EAAoBiB;AAC7B;AAqBO,SAASC,cAAAA;AACd,SAAOlB,kBAAAA,EAAoBmB;AAC7B;AAGO,SAASC,cAAAA;AACd,SAAOpB,kBAAAA,EAAoBqB;AAC7B;AAWO,SAASC,kBAAAA;AACd,SAAOtB,kBAAAA,EAAoBuB;AAC7B;AAGO,IAAMC,uBAAuBC,WAGvBC,wBAAwBJ;
|
4
|
+
"mappings": ";AAAA,SAASA,8BAA8B;AACvC,OAAOC,SAASC,qBAAqC;AACrD,SAASC,cAAc;AAEvB,SAASC,eAAeC,mBAAmBC,yBAAyB;AAI7D,SAASC,yBAAAA;AACd,SAAOF,kBAAAA;AACT;AAEO,SAASG,eAAAA;AAC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router", "navigationRef", "useStoreRootState", "useStoreRouteInfo", "useRootNavigationState", "useRouteInfo", "useNavigationContainerRef", "FrozeContext", "Frozen", "on", "children", "window", "Provider", "value", "div", "inert", "style", "display", "useRouter", "useUnstableGlobalHref", "unstable_globalHref", "useSegments", "segments", "usePathname", "pathname", "useActiveParams", "params", "useLocalSearchParams", "useParams", "useGlobalSearchParams", "context", "useContext", "Object", "fromEntries", "entries", "map", "key", "Array", "isArray", "v", "decodeURIComponent"]
|
6
6
|
}
|
package/dist/esm/href.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["href","a","Error"],"sources":["../../src/href.ts"],"sourcesContent":[null],"mappings":"AAMO,SAASA,KAA+BC,CAAA,EAAS;EACtD,IAAI,CAACA,CAAA,IAAK,OAAOA,CAAA,IAAM,UACrB,MAAM,IAAIC,KAAA,CAAM,cAAc;EAEhC,OAAOD,CAAA;AACT","ignoreList":[]}
|
@@ -8,10 +8,7 @@ const router = {
|
|
8
8
|
replace: store.replace,
|
9
9
|
back: store.goBack,
|
10
10
|
canGoBack: store.canGoBack,
|
11
|
-
setParams: (params) => store.setParams(
|
12
|
-
// TODO
|
13
|
-
params
|
14
|
-
),
|
11
|
+
setParams: (params) => store.setParams(params),
|
15
12
|
subscribe: store.subscribeToRootState,
|
16
13
|
onLoadState: store.subscribeToLoadingState
|
17
14
|
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/imperative-api.ts"],
|
4
|
-
"mappings": "AAAA,YAAY,WAAW;AAGhB,MAAM,SAA2B;AAAA,EACtC,UAAU,MAAM;AAAA,EAChB,MAAM,MAAM;AAAA,EACZ,SAAS,MAAM;AAAA,EACf,YAAY,MAAM;AAAA,EAClB,YAAY,MAAM;AAAA,EAClB,SAAS,MAAM;AAAA,EACf,MAAM,MAAM;AAAA,EACZ,WAAW,MAAM;AAAA,EACjB,WAAW,CAAC,
|
4
|
+
"mappings": "AAAA,YAAY,WAAW;AAGhB,MAAM,SAA2B;AAAA,EACtC,UAAU,MAAM;AAAA,EAChB,MAAM,MAAM;AAAA,EACZ,SAAS,MAAM;AAAA,EACf,YAAY,MAAM;AAAA,EAClB,YAAY,MAAM;AAAA,EAClB,SAAS,MAAM;AAAA,EACf,MAAM,MAAM;AAAA,EACZ,WAAW,MAAM;AAAA,EACjB,WAAW,CAAC,WAAW,MAAM,UAAU,MAAM;AAAA,EAC7C,WAAW,MAAM;AAAA,EACjB,aAAa,MAAM;AACrB;",
|
5
5
|
"names": []
|
6
6
|
}
|
@@ -8,9 +8,7 @@ const router = {
|
|
8
8
|
replace: store.replace,
|
9
9
|
back: store.goBack,
|
10
10
|
canGoBack: store.canGoBack,
|
11
|
-
setParams: params => store.setParams(
|
12
|
-
// TODO
|
13
|
-
params),
|
11
|
+
setParams: params => store.setParams(params),
|
14
12
|
subscribe: store.subscribeToRootState,
|
15
13
|
onLoadState: store.subscribeToLoadingState
|
16
14
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["store","router","navigate","push","dismiss","dismissAll","canDismiss","replace","back","goBack","canGoBack","setParams","params","subscribe","subscribeToRootState","onLoadState","subscribeToLoadingState"],"sources":["../../src/imperative-api.ts"],"sourcesContent":[null],"mappings":"AAAA,YAAYA,KAAA,MAAW;AAGhB,MAAMC,MAAA,GAA2B;EACtCC,QAAA,EAAUF,KAAA,CAAME,QAAA;EAChBC,IAAA,EAAMH,KAAA,CAAMG,IAAA;EACZC,OAAA,EAASJ,KAAA,CAAMI,OAAA;EACfC,UAAA,EAAYL,KAAA,CAAMK,UAAA;EAClBC,UAAA,EAAYN,KAAA,CAAMM,UAAA;EAClBC,OAAA,EAASP,KAAA,CAAMO,OAAA;EACfC,IAAA,EAAMR,KAAA,CAAMS,MAAA;EACZC,SAAA,EAAWV,KAAA,CAAMU,SAAA;EACjBC,SAAA,EAAYC,MAAA,
|
1
|
+
{"version":3,"names":["store","router","navigate","push","dismiss","dismissAll","canDismiss","replace","back","goBack","canGoBack","setParams","params","subscribe","subscribeToRootState","onLoadState","subscribeToLoadingState"],"sources":["../../src/imperative-api.ts"],"sourcesContent":[null],"mappings":"AAAA,YAAYA,KAAA,MAAW;AAGhB,MAAMC,MAAA,GAA2B;EACtCC,QAAA,EAAUF,KAAA,CAAME,QAAA;EAChBC,IAAA,EAAMH,KAAA,CAAMG,IAAA;EACZC,OAAA,EAASJ,KAAA,CAAMI,OAAA;EACfC,UAAA,EAAYL,KAAA,CAAMK,UAAA;EAClBC,UAAA,EAAYN,KAAA,CAAMM,UAAA;EAClBC,OAAA,EAASP,KAAA,CAAMO,OAAA;EACfC,IAAA,EAAMR,KAAA,CAAMS,MAAA;EACZC,SAAA,EAAWV,KAAA,CAAMU,SAAA;EACjBC,SAAA,EAAYC,MAAA,IAAWZ,KAAA,CAAMW,SAAA,CAAUC,MAAM;EAC7CC,SAAA,EAAWb,KAAA,CAAMc,oBAAA;EACjBC,WAAA,EAAaf,KAAA,CAAMgB;AACrB","ignoreList":[]}
|
@@ -9,10 +9,7 @@ var router = {
|
|
9
9
|
back: store.goBack,
|
10
10
|
canGoBack: store.canGoBack,
|
11
11
|
setParams: function(params) {
|
12
|
-
return store.setParams(
|
13
|
-
// TODO
|
14
|
-
params
|
15
|
-
);
|
12
|
+
return store.setParams(params);
|
16
13
|
},
|
17
14
|
subscribe: store.subscribeToRootState,
|
18
15
|
onLoadState: store.subscribeToLoadingState
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/Users/n8/one/packages/one/src/imperative-api.ts"],
|
4
|
-
"mappings": "AAAA,YAAYA,WAAW;AAGhB,IAAMC,SAA2B;EACtCC,UAAUF,MAAME;EAChBC,MAAMH,MAAMG;EACZC,SAASJ,MAAMI;EACfC,YAAYL,MAAMK;EAClBC,YAAYN,MAAMM;EAClBC,SAASP,MAAMO;EACfC,MAAMR,MAAMS;EACZC,WAAWV,MAAMU;EACjBC,WAAW,SAACC,QAAAA;
|
4
|
+
"mappings": "AAAA,YAAYA,WAAW;AAGhB,IAAMC,SAA2B;EACtCC,UAAUF,MAAME;EAChBC,MAAMH,MAAMG;EACZC,SAASJ,MAAMI;EACfC,YAAYL,MAAMK;EAClBC,YAAYN,MAAMM;EAClBC,SAASP,MAAMO;EACfC,MAAMR,MAAMS;EACZC,WAAWV,MAAMU;EACjBC,WAAW,SAACC,QAAAA;WAAWZ,MAAMW,UAAUC,MAAAA;;EACvCC,WAAWb,MAAMc;EACjBC,aAAaf,MAAMgB;AACrB;",
|
5
5
|
"names": ["store", "router", "navigate", "push", "dismiss", "dismissAll", "canDismiss", "replace", "back", "goBack", "canGoBack", "setParams", "params", "subscribe", "subscribeToRootState", "onLoadState", "subscribeToLoadingState"]
|
6
6
|
}
|
package/dist/esm/index.js
CHANGED
@@ -1,6 +1,10 @@
|
|
1
|
-
|
2
|
-
import {
|
1
|
+
import { router } from "./imperative-api";
|
2
|
+
import { createRoute, route } from "./createRoute";
|
3
|
+
import { onClientLoaderResolve } from "./clientLoaderResolver";
|
4
|
+
import { createApp } from "./createApp";
|
3
5
|
import { render } from "./render";
|
6
|
+
import { Root } from "./Root";
|
7
|
+
import * as routerStore from "./router/router";
|
4
8
|
import { Stack } from "./layouts/Stack";
|
5
9
|
import { Tabs } from "./layouts/Tabs";
|
6
10
|
import { SafeAreaView } from "react-native-safe-area-context";
|
@@ -8,12 +12,9 @@ import { Navigator, Slot } from "./views/Navigator";
|
|
8
12
|
import { ErrorBoundary } from "./views/ErrorBoundary";
|
9
13
|
import { ScrollRestoration } from "./views/ScrollRestoration";
|
10
14
|
import { LoadProgressBar } from "./views/LoadProgressBar";
|
11
|
-
import {
|
12
|
-
import {
|
13
|
-
import {
|
14
|
-
import { isResponse } from "./utils/isResponse";
|
15
|
-
import { getURL } from "./getURL";
|
16
|
-
import { redirect } from "./utils/redirect";
|
15
|
+
import { Link } from "./link/Link";
|
16
|
+
import { Redirect } from "./link/Redirect";
|
17
|
+
import { Head } from "./head";
|
17
18
|
import { useLinkTo } from "./link/useLinkTo";
|
18
19
|
import {
|
19
20
|
useRouter,
|
@@ -29,12 +30,12 @@ import {
|
|
29
30
|
useLocalSearchParams,
|
30
31
|
useGlobalSearchParams
|
31
32
|
} from "./hooks";
|
32
|
-
import * as routerStore from "./router/router";
|
33
|
-
import { router } from "./imperative-api";
|
34
|
-
import { Link } from "./link/Link";
|
35
|
-
import { Redirect } from "./link/Redirect";
|
36
|
-
import { Head } from "./head";
|
37
33
|
import { withLayoutContext } from "./layouts/withLayoutContext";
|
34
|
+
import { isResponse } from "./utils/isResponse";
|
35
|
+
import { getURL } from "./getURL";
|
36
|
+
import { redirect } from "./utils/redirect";
|
37
|
+
import { href } from "./href";
|
38
|
+
export * from "@vxrn/universal-color-scheme";
|
38
39
|
import { useFocusEffect } from "./useFocusEffect";
|
39
40
|
import { useNavigation } from "./useNavigation";
|
40
41
|
import { useLoader } from "./useLoader";
|
@@ -54,6 +55,7 @@ export {
|
|
54
55
|
createApp,
|
55
56
|
createRoute,
|
56
57
|
getURL,
|
58
|
+
href,
|
57
59
|
isResponse,
|
58
60
|
onClientLoaderResolve,
|
59
61
|
redirect,
|
package/dist/esm/index.js.map
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/index.ts"],
|
4
|
-
"mappings": "
|
4
|
+
"mappings": "AASA,SAAS,cAAc;AACvB,SAAS,aAAa,aAAa;AACnC,SAAS,6BAA6B;AAGtC,SAAS,iBAAiB;AAC1B,SAAS,cAAc;AACvB,SAAS,YAAY;AACrB,YAAY,iBAAiB;AAG7B,SAAS,aAAa;AACtB,SAAS,YAAY;AAIrB,SAAS,oBAAoB;AAC7B,SAAS,WAAW,YAAY;AAChC,SAAS,qBAAqB;AAC9B,SAAS,yBAAyB;AAClC,SAAS,uBAAuB;AAChC,SAAS,YAAY;AACrB,SAAS,gBAAgB;AACzB,SAAS,YAAY;AAGrB,SAAS,iBAAiB;AAC1B;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP;AAAA,EACE;AAAA,EACA;AAAA,OACK;AAGP,SAAS,yBAAyB;AAClC,SAAS,kBAAkB;AAC3B,SAAS,cAAc;AACvB,SAAS,gBAAgB;AACzB,SAAS,YAAY;AAGrB,cAAc;AAGd,SAAS,sBAAsB;AAC/B,SAAS,qBAAqB;AAC9B,SAAS,iBAAiB;",
|
5
5
|
"names": []
|
6
6
|
}
|
package/dist/esm/index.mjs
CHANGED
@@ -1,6 +1,10 @@
|
|
1
|
-
|
2
|
-
import {
|
1
|
+
import { router } from "./imperative-api.mjs";
|
2
|
+
import { createRoute, route } from "./createRoute.mjs";
|
3
|
+
import { onClientLoaderResolve } from "./clientLoaderResolver.mjs";
|
4
|
+
import { createApp } from "./createApp.mjs";
|
3
5
|
import { render } from "./render.mjs";
|
6
|
+
import { Root } from "./Root.mjs";
|
7
|
+
import * as routerStore from "./router/router.mjs";
|
4
8
|
import { Stack } from "./layouts/Stack.mjs";
|
5
9
|
import { Tabs } from "./layouts/Tabs.mjs";
|
6
10
|
import { SafeAreaView } from "react-native-safe-area-context";
|
@@ -8,23 +12,20 @@ import { Navigator, Slot } from "./views/Navigator.mjs";
|
|
8
12
|
import { ErrorBoundary } from "./views/ErrorBoundary.mjs";
|
9
13
|
import { ScrollRestoration } from "./views/ScrollRestoration.mjs";
|
10
14
|
import { LoadProgressBar } from "./views/LoadProgressBar.mjs";
|
11
|
-
import { createApp } from "./createApp.mjs";
|
12
|
-
import { createRoute, route } from "./createRoute.mjs";
|
13
|
-
import { onClientLoaderResolve } from "./clientLoaderResolver.mjs";
|
14
|
-
import { isResponse } from "./utils/isResponse.mjs";
|
15
|
-
import { getURL } from "./getURL.mjs";
|
16
|
-
import { redirect } from "./utils/redirect.mjs";
|
17
|
-
import { useLinkTo } from "./link/useLinkTo.mjs";
|
18
|
-
import { useRouter, useUnstableGlobalHref, usePathname, useNavigationContainerRef, useParams, useActiveParams, useSegments, useRootNavigationState } from "./hooks.mjs";
|
19
|
-
import { useLocalSearchParams, useGlobalSearchParams } from "./hooks.mjs";
|
20
|
-
import * as routerStore from "./router/router.mjs";
|
21
|
-
import { router } from "./imperative-api.mjs";
|
22
15
|
import { Link } from "./link/Link.mjs";
|
23
16
|
import { Redirect } from "./link/Redirect.mjs";
|
24
17
|
import { Head } from "./head";
|
18
|
+
import { useLinkTo } from "./link/useLinkTo.mjs";
|
19
|
+
import { useRouter, useUnstableGlobalHref, usePathname, useNavigationContainerRef, useParams, useActiveParams, useSegments, useRootNavigationState } from "./hooks.mjs";
|
20
|
+
import { useLocalSearchParams, useGlobalSearchParams } from "./hooks.mjs";
|
25
21
|
import { withLayoutContext } from "./layouts/withLayoutContext.mjs";
|
22
|
+
import { isResponse } from "./utils/isResponse.mjs";
|
23
|
+
import { getURL } from "./getURL.mjs";
|
24
|
+
import { redirect } from "./utils/redirect.mjs";
|
25
|
+
import { href } from "./href.mjs";
|
26
|
+
export * from "@vxrn/universal-color-scheme";
|
26
27
|
import { useFocusEffect } from "./useFocusEffect.mjs";
|
27
28
|
import { useNavigation } from "./useNavigation.mjs";
|
28
29
|
import { useLoader } from "./useLoader.mjs";
|
29
|
-
export { ErrorBoundary, Head, Link, LoadProgressBar, Navigator, Redirect, Root, SafeAreaView, ScrollRestoration, Slot, Stack, Tabs, createApp, createRoute, getURL, isResponse, onClientLoaderResolve, redirect, render, route, router, routerStore, useActiveParams, useFocusEffect, useGlobalSearchParams, useLinkTo, useLoader, useLocalSearchParams, useNavigation, useNavigationContainerRef, useParams, usePathname, useRootNavigationState, useRouter, useSegments, useUnstableGlobalHref, withLayoutContext };
|
30
|
+
export { ErrorBoundary, Head, Link, LoadProgressBar, Navigator, Redirect, Root, SafeAreaView, ScrollRestoration, Slot, Stack, Tabs, createApp, createRoute, getURL, href, isResponse, onClientLoaderResolve, redirect, render, route, router, routerStore, useActiveParams, useFocusEffect, useGlobalSearchParams, useLinkTo, useLoader, useLocalSearchParams, useNavigation, useNavigationContainerRef, useParams, usePathname, useRootNavigationState, useRouter, useSegments, useUnstableGlobalHref, withLayoutContext };
|
30
31
|
//# sourceMappingURL=index.mjs.map
|
package/dist/esm/index.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["
|
1
|
+
{"version":3,"names":["router","createRoute","route","onClientLoaderResolve","createApp","render","Root","routerStore","Stack","Tabs","SafeAreaView","Navigator","Slot","ErrorBoundary","ScrollRestoration","LoadProgressBar","Link","Redirect","Head","useLinkTo","useRouter","useUnstableGlobalHref","usePathname","useNavigationContainerRef","useParams","useActiveParams","useSegments","useRootNavigationState","useLocalSearchParams","useGlobalSearchParams","withLayoutContext","isResponse","getURL","redirect","href","useFocusEffect","useNavigation","useLoader"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AASA,SAASA,MAAA,QAAc;AACvB,SAASC,WAAA,EAAaC,KAAA,QAAa;AACnC,SAASC,qBAAA,QAA6B;AAGtC,SAASC,SAAA,QAAiB;AAC1B,SAASC,MAAA,QAAc;AACvB,SAASC,IAAA,QAAY;AACrB,YAAYC,WAAA,MAAiB;AAG7B,SAASC,KAAA,QAAa;AACtB,SAASC,IAAA,QAAY;AAIrB,SAASC,YAAA,QAAoB;AAC7B,SAASC,SAAA,EAAWC,IAAA,QAAY;AAChC,SAASC,aAAA,QAAqB;AAC9B,SAASC,iBAAA,QAAyB;AAClC,SAASC,eAAA,QAAuB;AAChC,SAASC,IAAA,QAAY;AACrB,SAASC,QAAA,QAAgB;AACzB,SAASC,IAAA,QAAY;AAGrB,SAASC,SAAA,QAAiB;AAC1B,SACEC,SAAA,EACAC,qBAAA,EACAC,WAAA,EACAC,yBAAA,EACAC,SAAA,EACAC,eAAA,EACAC,WAAA,EACAC,sBAAA,QACK;AAEP,SACEC,oBAAA,EACAC,qBAAA,QACK;AAGP,SAASC,iBAAA,QAAyB;AAClC,SAASC,UAAA,QAAkB;AAC3B,SAASC,MAAA,QAAc;AACvB,SAASC,QAAA,QAAgB;AACzB,SAASC,IAAA,QAAY;AAGrB,cAAc;AAGd,SAASC,cAAA,QAAsB;AAC/B,SAASC,aAAA,QAAqB;AAC9B,SAASC,SAAA,QAAiB","ignoreList":[]}
|
package/dist/esm/index.native.js
CHANGED
@@ -1,6 +1,10 @@
|
|
1
|
-
|
2
|
-
import {
|
1
|
+
import { router } from "./imperative-api";
|
2
|
+
import { createRoute, route } from "./createRoute";
|
3
|
+
import { onClientLoaderResolve } from "./clientLoaderResolver";
|
4
|
+
import { createApp } from "./createApp";
|
3
5
|
import { render } from "./render";
|
6
|
+
import { Root } from "./Root";
|
7
|
+
import * as _routerStore from "./router/router";
|
4
8
|
import { Stack } from "./layouts/Stack";
|
5
9
|
import { Tabs } from "./layouts/Tabs";
|
6
10
|
import { SafeAreaView } from "react-native-safe-area-context";
|
@@ -8,21 +12,18 @@ import { Navigator, Slot } from "./views/Navigator";
|
|
8
12
|
import { ErrorBoundary } from "./views/ErrorBoundary";
|
9
13
|
import { ScrollRestoration } from "./views/ScrollRestoration";
|
10
14
|
import { LoadProgressBar } from "./views/LoadProgressBar";
|
11
|
-
import { createApp } from "./createApp";
|
12
|
-
import { createRoute, route } from "./createRoute";
|
13
|
-
import { onClientLoaderResolve } from "./clientLoaderResolver";
|
14
|
-
import { isResponse } from "./utils/isResponse";
|
15
|
-
import { getURL } from "./getURL";
|
16
|
-
import { redirect } from "./utils/redirect";
|
17
|
-
import { useLinkTo } from "./link/useLinkTo";
|
18
|
-
import { useRouter, useUnstableGlobalHref, usePathname, useNavigationContainerRef, useParams, useActiveParams, useSegments, useRootNavigationState } from "./hooks";
|
19
|
-
import { useLocalSearchParams, useGlobalSearchParams } from "./hooks";
|
20
|
-
import * as _routerStore from "./router/router";
|
21
|
-
import { router } from "./imperative-api";
|
22
15
|
import { Link } from "./link/Link";
|
23
16
|
import { Redirect } from "./link/Redirect";
|
24
17
|
import { Head } from "./head";
|
18
|
+
import { useLinkTo } from "./link/useLinkTo";
|
19
|
+
import { useRouter, useUnstableGlobalHref, usePathname, useNavigationContainerRef, useParams, useActiveParams, useSegments, useRootNavigationState } from "./hooks";
|
20
|
+
import { useLocalSearchParams, useGlobalSearchParams } from "./hooks";
|
25
21
|
import { withLayoutContext } from "./layouts/withLayoutContext";
|
22
|
+
import { isResponse } from "./utils/isResponse";
|
23
|
+
import { getURL } from "./getURL";
|
24
|
+
import { redirect } from "./utils/redirect";
|
25
|
+
import { href } from "./href";
|
26
|
+
export * from "@vxrn/universal-color-scheme";
|
26
27
|
import { useFocusEffect } from "./useFocusEffect";
|
27
28
|
import { useNavigation } from "./useNavigation";
|
28
29
|
import { useLoader } from "./useLoader";
|
@@ -42,6 +43,7 @@ export {
|
|
42
43
|
createApp,
|
43
44
|
createRoute,
|
44
45
|
getURL,
|
46
|
+
href,
|
45
47
|
isResponse,
|
46
48
|
onClientLoaderResolve,
|
47
49
|
redirect,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/Users/n8/one/packages/one/src/index.ts"],
|
4
|
-
"mappings": "
|
5
|
-
"names": ["
|
4
|
+
"mappings": "AASA,SAASA,cAAc;AACvB,SAASC,aAAaC,aAAa;AACnC,SAASC,6BAA6B;AAGtC,SAASC,iBAAiB;AAC1B,SAASC,cAAc;AACvB,SAASC,YAAY;AACrB,YAAA,kBAA6B;AAG7B,SAASC,aAAa;AACtB,SAASC,YAAY;AAIrB,SAASC,oBAAoB;AAC7B,SAASC,WAAWC,YAAY;AAChC,SAASC,qBAAqB;AAC9B,SAASC,yBAAyB;AAClC,SAASC,uBAAuB;AAChC,SAASC,YAAY;AACrB,SAASC,gBAAgB;AACzB,SAASC,YAAY;AAGrB,SAASC,iBAAiB;AAC1B,SACEC,WACAC,uBACAC,aACAC,2BACAC,WACAC,iBACAC,aACAC,8BACK;AAEP,SACEC,sBACAC,6BACK;AAGP,SAASC,yBAAyB;AAClC,SAASC,kBAAkB;AAC3B,SAASC,cAAc;AACvB,SAASC,gBAAgB;AACzB,SAASC,YAAY;AAGrB,cAAc;AAGd,SAASC,sBAAsB;AAC/B,SAASC,qBAAqB;AAC9B,SAASC,iBAAiB;",
|
5
|
+
"names": ["router", "createRoute", "route", "onClientLoaderResolve", "createApp", "render", "Root", "Stack", "Tabs", "SafeAreaView", "Navigator", "Slot", "ErrorBoundary", "ScrollRestoration", "LoadProgressBar", "Link", "Redirect", "Head", "useLinkTo", "useRouter", "useUnstableGlobalHref", "usePathname", "useNavigationContainerRef", "useParams", "useActiveParams", "useSegments", "useRootNavigationState", "useLocalSearchParams", "useGlobalSearchParams", "withLayoutContext", "isResponse", "getURL", "redirect", "href", "useFocusEffect", "useNavigation", "useLoader"]
|
6
6
|
}
|