@alignable/bifrost 0.0.33 → 0.0.35
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/{chunk-LCW7IDQV.js → chunk-4YPY5NIX.js} +7 -1
- package/dist/chunk-4YPY5NIX.js.map +1 -0
- package/dist/{chunk-6QZLCT3X.js → chunk-JHLK62FM.js} +5 -2
- package/dist/chunk-JHLK62FM.js.map +1 -0
- package/dist/chunk-PESUYCE4.js +33 -0
- package/dist/chunk-PESUYCE4.js.map +1 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/dist/{internal-1d9cac7c.d.ts → internal-28df99a9.d.ts} +15 -8
- package/dist/proxy/pages/passthru/+config.d.ts +8 -0
- package/dist/proxy/pages/passthru/+config.js +12 -0
- package/dist/proxy/pages/passthru/+config.js.map +1 -0
- package/dist/proxy/pages/passthru/onRenderClient.d.ts +3 -0
- package/dist/proxy/pages/passthru/onRenderClient.js +8 -0
- package/dist/proxy/pages/passthru/onRenderClient.js.map +1 -0
- package/dist/proxy/pages/passthru/onRenderHtml.d.ts +12 -0
- package/dist/proxy/pages/passthru/onRenderHtml.js +10 -0
- package/dist/proxy/pages/passthru/onRenderHtml.js.map +1 -0
- package/dist/proxy/pages/wrapped/+config.d.ts +25 -0
- package/dist/proxy/pages/wrapped/+config.js +19 -0
- package/dist/proxy/pages/wrapped/+config.js.map +1 -0
- package/dist/proxy/pages/{onBeforeRender.d.ts → wrapped/onBeforeRender.d.ts} +3 -3
- package/dist/proxy/pages/{onBeforeRender.js → wrapped/onBeforeRender.js} +1 -1
- package/dist/proxy/pages/wrapped/onBeforeRender.js.map +1 -0
- package/dist/proxy/pages/{onRenderClient.d.ts → wrapped/onRenderClient.d.ts} +3 -3
- package/dist/proxy/pages/{onRenderClient.js → wrapped/onRenderClient.js} +8 -7
- package/dist/proxy/pages/wrapped/onRenderClient.js.map +1 -0
- package/dist/proxy/pages/{onRenderHtml.d.ts → wrapped/onRenderHtml.d.ts} +3 -3
- package/dist/proxy/pages/{onRenderHtml.js → wrapped/onRenderHtml.js} +6 -5
- package/dist/proxy/pages/wrapped/onRenderHtml.js.map +1 -0
- package/dist/proxy/pages/wrapped/restorationVisit/+config.d.ts +24 -0
- package/dist/proxy/pages/wrapped/restorationVisit/+config.js +18 -0
- package/dist/proxy/pages/wrapped/restorationVisit/+config.js.map +1 -0
- package/dist/proxy/pages/{restorationVisit → wrapped/restorationVisit}/onRenderClient.d.ts +3 -3
- package/dist/proxy/pages/{restorationVisit → wrapped/restorationVisit}/onRenderClient.js +7 -6
- package/dist/proxy/pages/wrapped/restorationVisit/onRenderClient.js.map +1 -0
- package/dist/proxy/pages/wrapped/restorationVisit/route.js +8 -0
- package/dist/proxy/pages/wrapped/restorationVisit/route.js.map +1 -0
- package/dist/renderer/+config.d.ts +22 -6
- package/dist/renderer/+config.js +6 -6
- package/dist/renderer/+config.js.map +1 -1
- package/dist/renderer/getConfigOrPageContext.d.ts +2 -2
- package/dist/renderer/onBeforeRoute.js +1 -1
- package/dist/renderer/onBeforeRoute.js.map +1 -1
- package/dist/renderer/onRenderClient.d.ts +2 -2
- package/dist/renderer/onRenderClient.js +5 -4
- package/dist/renderer/onRenderClient.js.map +1 -1
- package/dist/renderer/onRenderHtml.d.ts +2 -2
- package/dist/renderer/onRenderHtml.js +4 -3
- package/dist/renderer/onRenderHtml.js.map +1 -1
- package/dist/renderer/useNavigation.d.ts +13 -0
- package/dist/renderer/useNavigation.js +12 -0
- package/dist/renderer/useNavigation.js.map +1 -0
- package/dist/renderer/usePageContext.d.ts +2 -2
- package/dist/renderer/utils/buildHead.d.ts +2 -2
- package/package.json +39 -27
- package/dist/chunk-6QZLCT3X.js.map +0 -1
- package/dist/chunk-LCW7IDQV.js.map +0 -1
- package/dist/proxy/pages/+config.d.ts +0 -20
- package/dist/proxy/pages/+config.js +0 -19
- package/dist/proxy/pages/+config.js.map +0 -1
- package/dist/proxy/pages/onBeforeRender.js.map +0 -1
- package/dist/proxy/pages/onRenderClient.js.map +0 -1
- package/dist/proxy/pages/onRenderHtml.js.map +0 -1
- package/dist/proxy/pages/restorationVisit/+config.d.ts +0 -11
- package/dist/proxy/pages/restorationVisit/+config.js +0 -14
- package/dist/proxy/pages/restorationVisit/+config.js.map +0 -1
- package/dist/proxy/pages/restorationVisit/onRenderClient.js.map +0 -1
- package/dist/proxy/pages/restorationVisit/route.js +0 -8
- package/dist/proxy/pages/restorationVisit/route.js.map +0 -1
- /package/dist/proxy/pages/{restorationVisit → wrapped/restorationVisit}/route.d.ts +0 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
route: string;
|
|
3
|
+
Page: string;
|
|
4
|
+
onBeforeRender: null;
|
|
5
|
+
onRenderClient: "import:@alignable/bifrost/proxy/pages/wrapped/restorationVisit/onRenderClient";
|
|
6
|
+
passToClient: never[];
|
|
7
|
+
clientRouting: true;
|
|
8
|
+
hydrationCanBeAborted: true;
|
|
9
|
+
meta: {
|
|
10
|
+
layoutMap: {
|
|
11
|
+
env: {
|
|
12
|
+
server: true;
|
|
13
|
+
client: true;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
onClientInit: {
|
|
17
|
+
env: {
|
|
18
|
+
client: true;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export { _default as default };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// proxy/pages/wrapped/restorationVisit/+config.ts
|
|
2
|
+
var config_default = {
|
|
3
|
+
route: "import:@alignable/bifrost/proxy/pages/wrapped/restorationVisit/route",
|
|
4
|
+
Page: "import:@alignable/bifrost/proxy/pages/Page",
|
|
5
|
+
onBeforeRender: null,
|
|
6
|
+
onRenderClient: "import:@alignable/bifrost/proxy/pages/wrapped/restorationVisit/onRenderClient",
|
|
7
|
+
passToClient: [],
|
|
8
|
+
clientRouting: true,
|
|
9
|
+
hydrationCanBeAborted: true,
|
|
10
|
+
meta: {
|
|
11
|
+
layoutMap: { env: { server: true, client: true } },
|
|
12
|
+
onClientInit: { env: { client: true } }
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
config_default as default
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=+config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../proxy/pages/wrapped/restorationVisit/+config.ts"],"sourcesContent":["import { Config } from \"vike/types\";\n\nexport default {\n route: \"import:@alignable/bifrost/proxy/pages/wrapped/restorationVisit/route\",\n Page: \"import:@alignable/bifrost/proxy/pages/Page\",\n onBeforeRender: null,\n onRenderClient:\n \"import:@alignable/bifrost/proxy/pages/wrapped/restorationVisit/onRenderClient\",\n passToClient: [],\n clientRouting: true,\n hydrationCanBeAborted: true,\n meta: {\n layoutMap: { env: { server: true, client: true } },\n onClientInit: { env: { client: true } },\n },\n} satisfies Config;\n"],"mappings":";AAEA,IAAO,iBAAQ;AAAA,EACb,OAAO;AAAA,EACP,MAAM;AAAA,EACN,gBAAgB;AAAA,EAChB,gBACE;AAAA,EACF,cAAc,CAAC;AAAA,EACf,eAAe;AAAA,EACf,uBAAuB;AAAA,EACvB,MAAM;AAAA,IACJ,WAAW,EAAE,KAAK,EAAE,QAAQ,MAAM,QAAQ,KAAK,EAAE;AAAA,IACjD,cAAc,EAAE,KAAK,EAAE,QAAQ,KAAK,EAAE;AAAA,EACxC;AACF;","names":[]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { j as PageContextProxyRestorationVisit } from '
|
|
1
|
+
import { j as PageContextProxyRestorationVisit } from '../../../../internal-28df99a9.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'vike/types';
|
|
4
4
|
import '../_config.js';
|
|
5
|
-
import '
|
|
6
|
-
import '
|
|
5
|
+
import '../../../../renderer/_config.js';
|
|
6
|
+
import '../../../../controller-16e58bbd.js';
|
|
7
7
|
|
|
8
8
|
declare function onRenderClient(pageContext: PageContextProxyRestorationVisit): Promise<void>;
|
|
9
9
|
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getElementAttributes
|
|
3
|
-
} from "
|
|
3
|
+
} from "../../../../chunk-RQ34EW7E.js";
|
|
4
4
|
import {
|
|
5
5
|
Turbolinks,
|
|
6
6
|
copyElementAttributes,
|
|
7
7
|
renderReact
|
|
8
|
-
} from "
|
|
8
|
+
} from "../../../../chunk-4YPY5NIX.js";
|
|
9
9
|
import {
|
|
10
10
|
PageShell
|
|
11
|
-
} from "
|
|
12
|
-
import "
|
|
13
|
-
import "
|
|
11
|
+
} from "../../../../chunk-JHLK62FM.js";
|
|
12
|
+
import "../../../../chunk-PESUYCE4.js";
|
|
13
|
+
import "../../../../chunk-IYGONC4I.js";
|
|
14
|
+
import "../../../../chunk-EYYCKU6F.js";
|
|
14
15
|
|
|
15
|
-
// proxy/pages/restorationVisit/onRenderClient.tsx
|
|
16
|
+
// proxy/pages/wrapped/restorationVisit/onRenderClient.tsx
|
|
16
17
|
import React from "react";
|
|
17
18
|
var PassthruLayout = ({ children }) => /* @__PURE__ */ React.createElement(React.Fragment, null, children);
|
|
18
19
|
async function onRenderClient(pageContext) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../proxy/pages/wrapped/restorationVisit/onRenderClient.tsx"],"sourcesContent":["import React from \"react\";\nimport {\n LayoutComponent,\n PageContextProxyRestorationVisit,\n} from \"../../../../types/internal.js\";\nimport { PageShell } from \"../../../../lib/PageShell.js\";\nimport { renderReact } from \"../../../../lib/renderReact.js\";\nimport { Turbolinks } from \"../../../../lib/turbolinks/index.js\";\nimport { getElementAttributes } from \"../../../../lib/getElementAttributes.js\";\nimport { copyElementAttributes } from \"../../../../lib/turbolinks/util.js\";\n\nconst PassthruLayout: LayoutComponent = ({ children }) => <>{children}</>;\n\nexport default async function onRenderClient(\n pageContext: PageContextProxyRestorationVisit\n) {\n if (pageContext.isHydration) {\n throw new Error(\"restoration visit should never happen on initial render\");\n }\n\n const { layoutProps, layout } = pageContext.snapshot.pageContext;\n const { bodyEl, headEl } = pageContext.snapshot;\n const { layoutMap } = pageContext.config;\n if (!layoutMap) {\n throw new Error(\"layoutMap needs to be defined in config\");\n }\n const Layout = layoutMap[layout] || PassthruLayout;\n\n function render(body: string) {\n renderReact(\n <PageShell key={pageContext.urlOriginal} pageContext={pageContext}>\n <Layout {...layoutProps}>\n <div id=\"proxied-body\" dangerouslySetInnerHTML={{ __html: body }} />\n </Layout>\n </PageShell>,\n pageContext.isHydration\n );\n }\n const proxyBodyEl = bodyEl.querySelector(\"#proxied-body\");\n if (!proxyBodyEl) {\n throw new Error(\"proxied body not found in cached snapshot\");\n }\n\n Turbolinks._vpsOnRenderClient(headEl, true, true, () => {\n // merge body attributes\n document.body\n .getAttributeNames()\n .forEach((n) => document.body.removeAttribute(n));\n copyElementAttributes(document.body, bodyEl);\n // render body with react\n render(proxyBodyEl.innerHTML);\n // cache page context will save it and return it to us during restoration visits\n Turbolinks._vpsCachePageContext({\n layoutProps,\n layout,\n bodyAttrs: getElementAttributes(bodyEl),\n });\n });\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,OAAO,WAAW;AAWlB,IAAM,iBAAkC,CAAC,EAAE,SAAS,MAAM,0DAAG,QAAS;AAEtE,eAAO,eACL,aACA;AACA,MAAI,YAAY,aAAa;AAC3B,UAAM,IAAI,MAAM,yDAAyD;AAAA,EAC3E;AAEA,QAAM,EAAE,aAAa,OAAO,IAAI,YAAY,SAAS;AACrD,QAAM,EAAE,QAAQ,OAAO,IAAI,YAAY;AACvC,QAAM,EAAE,UAAU,IAAI,YAAY;AAClC,MAAI,CAAC,WAAW;AACd,UAAM,IAAI,MAAM,yCAAyC;AAAA,EAC3D;AACA,QAAM,SAAS,UAAU,MAAM,KAAK;AAEpC,WAAS,OAAO,MAAc;AAC5B;AAAA,MACE,oCAAC,aAAU,KAAK,YAAY,aAAa,eACvC,oCAAC,UAAQ,GAAG,eACV,oCAAC,SAAI,IAAG,gBAAe,yBAAyB,EAAE,QAAQ,KAAK,GAAG,CACpE,CACF;AAAA,MACA,YAAY;AAAA,IACd;AAAA,EACF;AACA,QAAM,cAAc,OAAO,cAAc,eAAe;AACxD,MAAI,CAAC,aAAa;AAChB,UAAM,IAAI,MAAM,2CAA2C;AAAA,EAC7D;AAEA,aAAW,mBAAmB,QAAQ,MAAM,MAAM,MAAM;AAEtD,aAAS,KACN,kBAAkB,EAClB,QAAQ,CAAC,MAAM,SAAS,KAAK,gBAAgB,CAAC,CAAC;AAClD,0BAAsB,SAAS,MAAM,MAAM;AAE3C,WAAO,YAAY,SAAS;AAE5B,eAAW,qBAAqB;AAAA,MAC9B;AAAA,MACA;AAAA,MACA,WAAW,qBAAqB,MAAM;AAAA,IACxC,CAAC;AAAA,EACH,CAAC;AACH;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../proxy/pages/wrapped/restorationVisit/route.ts"],"sourcesContent":["// never matches - see onBeforeRoute for how this route only triggers on restoration visit.\nexport default function route() {\n return false;\n}\n"],"mappings":";AACe,SAAR,QAAyB;AAC9B,SAAO;AACT;","names":[]}
|
|
@@ -7,22 +7,38 @@ declare const _default: {
|
|
|
7
7
|
hydrationCanBeAborted: true;
|
|
8
8
|
meta: {
|
|
9
9
|
Layout: {
|
|
10
|
-
env:
|
|
10
|
+
env: {
|
|
11
|
+
server: true;
|
|
12
|
+
client: true;
|
|
13
|
+
};
|
|
11
14
|
};
|
|
12
15
|
layoutProps: {
|
|
13
|
-
env:
|
|
16
|
+
env: {
|
|
17
|
+
server: true;
|
|
18
|
+
client: true;
|
|
19
|
+
};
|
|
14
20
|
};
|
|
15
21
|
documentProps: {
|
|
16
|
-
env:
|
|
22
|
+
env: {
|
|
23
|
+
server: true;
|
|
24
|
+
client: true;
|
|
25
|
+
};
|
|
17
26
|
};
|
|
18
27
|
scripts: {
|
|
19
|
-
env:
|
|
28
|
+
env: {
|
|
29
|
+
server: true;
|
|
30
|
+
client: true;
|
|
31
|
+
};
|
|
20
32
|
};
|
|
21
33
|
favicon: {
|
|
22
|
-
env:
|
|
34
|
+
env: {
|
|
35
|
+
server: true;
|
|
36
|
+
};
|
|
23
37
|
};
|
|
24
38
|
onClientInit: {
|
|
25
|
-
env:
|
|
39
|
+
env: {
|
|
40
|
+
client: true;
|
|
41
|
+
};
|
|
26
42
|
};
|
|
27
43
|
};
|
|
28
44
|
};
|
package/dist/renderer/+config.js
CHANGED
|
@@ -15,12 +15,12 @@ var config_default = {
|
|
|
15
15
|
clientRouting: true,
|
|
16
16
|
hydrationCanBeAborted: true,
|
|
17
17
|
meta: {
|
|
18
|
-
Layout: { env:
|
|
19
|
-
layoutProps: { env:
|
|
20
|
-
documentProps: { env:
|
|
21
|
-
scripts: { env:
|
|
22
|
-
favicon: { env:
|
|
23
|
-
onClientInit: { env:
|
|
18
|
+
Layout: { env: { server: true, client: true } },
|
|
19
|
+
layoutProps: { env: { server: true, client: true } },
|
|
20
|
+
documentProps: { env: { server: true, client: true } },
|
|
21
|
+
scripts: { env: { server: true, client: true } },
|
|
22
|
+
favicon: { env: { server: true } },
|
|
23
|
+
onClientInit: { env: { client: true } }
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
26
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../renderer/+config.ts"],"sourcesContent":["import { type Config } from \"vike/types\";\n\nconst passToClient = [\n \"layoutProps\",\n \"pageProps\",\n \"redirectTo\",\n \"documentProps\",\n \"scripts\",\n \"is404\",\n];\nexport default {\n passToClient,\n onRenderClient: \"import:@alignable/bifrost/renderer/onRenderClient\",\n onRenderHtml: \"import:@alignable/bifrost/renderer/onRenderHtml\",\n onBeforeRoute: \"import:@alignable/bifrost/renderer/onBeforeRoute\",\n clientRouting: true,\n hydrationCanBeAborted: true,\n meta: {\n Layout: { env:
|
|
1
|
+
{"version":3,"sources":["../../renderer/+config.ts"],"sourcesContent":["import { type Config } from \"vike/types\";\n\nconst passToClient = [\n \"layoutProps\",\n \"pageProps\",\n \"redirectTo\",\n \"documentProps\",\n \"scripts\",\n \"is404\",\n];\nexport default {\n passToClient,\n onRenderClient: \"import:@alignable/bifrost/renderer/onRenderClient\",\n onRenderHtml: \"import:@alignable/bifrost/renderer/onRenderHtml\",\n onBeforeRoute: \"import:@alignable/bifrost/renderer/onBeforeRoute\",\n clientRouting: true,\n hydrationCanBeAborted: true,\n meta: {\n Layout: { env: { server: true, client: true } },\n layoutProps: { env: { server: true, client: true } },\n documentProps: { env: { server: true, client: true } },\n scripts: { env: { server: true, client: true } },\n favicon: { env: { server: true } },\n onClientInit: { env: { client: true } },\n },\n} satisfies Config;\n"],"mappings":";AAEA,IAAM,eAAe;AAAA,EACnB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AACA,IAAO,iBAAQ;AAAA,EACb;AAAA,EACA,gBAAgB;AAAA,EAChB,cAAc;AAAA,EACd,eAAe;AAAA,EACf,eAAe;AAAA,EACf,uBAAuB;AAAA,EACvB,MAAM;AAAA,IACJ,QAAQ,EAAE,KAAK,EAAE,QAAQ,MAAM,QAAQ,KAAK,EAAE;AAAA,IAC9C,aAAa,EAAE,KAAK,EAAE,QAAQ,MAAM,QAAQ,KAAK,EAAE;AAAA,IACnD,eAAe,EAAE,KAAK,EAAE,QAAQ,MAAM,QAAQ,KAAK,EAAE;AAAA,IACrD,SAAS,EAAE,KAAK,EAAE,QAAQ,MAAM,QAAQ,KAAK,EAAE;AAAA,IAC/C,SAAS,EAAE,KAAK,EAAE,QAAQ,KAAK,EAAE;AAAA,IACjC,cAAc,EAAE,KAAK,EAAE,QAAQ,KAAK,EAAE;AAAA,EACxC;AACF;","names":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { d as PageContextNoProxy } from '../internal-
|
|
1
|
+
import { d as PageContextNoProxy } from '../internal-28df99a9.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'vike/types';
|
|
4
|
-
import '../proxy/pages/_config.js';
|
|
4
|
+
import '../proxy/pages/wrapped/_config.js';
|
|
5
5
|
import './_config.js';
|
|
6
6
|
import '../controller-16e58bbd.js';
|
|
7
7
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../renderer/onBeforeRoute.ts"],"sourcesContent":["// do NOT import turbolinks in this file. It is used on server side.\n\nconst onBeforeRoute = () => {\n if (typeof window !== \"undefined\") {\n const Turbolinks = window.Turbolinks;\n\n const currentVisit = Turbolinks.controller.currentVisit;\n if (!currentVisit || currentVisit.state === \"completed\") {\n // old/nonexistent currentVisit means VPS is doing history navigation. Ideally we might turn off VPS' onpopstate listener.\n const snapshot = Turbolinks.controller.getCachedSnapshotForLocation(\n window.location.href\n );\n Turbolinks.controller.historyPoppedToLocationWithRestorationIdentifier(\n window.location.href,\n \"\"\n );\n\n if (!!snapshot) {\n return {\n pageContext: {\n snapshot,\n // isBackwardNavigation: true,\n _pageId: \"/proxy/pages/restorationVisit\",\n },\n };\n } else {\n return {\n pageContext: { isBackwardNavigation: true },\n };\n }\n }\n }\n return { pageContext: {} };\n};\n\nexport default onBeforeRoute;\n"],"mappings":";AAEA,IAAM,gBAAgB,MAAM;AAC1B,MAAI,OAAO,WAAW,aAAa;AACjC,UAAM,aAAa,OAAO;AAE1B,UAAM,eAAe,WAAW,WAAW;AAC3C,QAAI,CAAC,gBAAgB,aAAa,UAAU,aAAa;AAEvD,YAAM,WAAW,WAAW,WAAW;AAAA,QACrC,OAAO,SAAS;AAAA,MAClB;AACA,iBAAW,WAAW;AAAA,QACpB,OAAO,SAAS;AAAA,QAChB;AAAA,MACF;AAEA,UAAI,CAAC,CAAC,UAAU;AACd,eAAO;AAAA,UACL,aAAa;AAAA,YACX;AAAA;AAAA,YAEA,SAAS;AAAA,UACX;AAAA,QACF;AAAA,MACF,OAAO;AACL,eAAO;AAAA,UACL,aAAa,EAAE,sBAAsB,KAAK;AAAA,QAC5C;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACA,SAAO,EAAE,aAAa,CAAC,EAAE;AAC3B;AAEA,IAAO,wBAAQ;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../renderer/onBeforeRoute.ts"],"sourcesContent":["// do NOT import turbolinks in this file. It is used on server side.\n\nconst onBeforeRoute = () => {\n if (typeof window !== \"undefined\") {\n const Turbolinks = window.Turbolinks;\n\n const currentVisit = Turbolinks.controller.currentVisit;\n if (!currentVisit || currentVisit.state === \"completed\") {\n // old/nonexistent currentVisit means VPS is doing history navigation. Ideally we might turn off VPS' onpopstate listener.\n const snapshot = Turbolinks.controller.getCachedSnapshotForLocation(\n window.location.href\n );\n Turbolinks.controller.historyPoppedToLocationWithRestorationIdentifier(\n window.location.href,\n \"\"\n );\n\n if (!!snapshot) {\n return {\n pageContext: {\n snapshot,\n // isBackwardNavigation: true,\n _pageId: \"/proxy/pages/wrapped/restorationVisit\",\n },\n };\n } else {\n return {\n pageContext: { isBackwardNavigation: true },\n };\n }\n }\n }\n return { pageContext: {} };\n};\n\nexport default onBeforeRoute;\n"],"mappings":";AAEA,IAAM,gBAAgB,MAAM;AAC1B,MAAI,OAAO,WAAW,aAAa;AACjC,UAAM,aAAa,OAAO;AAE1B,UAAM,eAAe,WAAW,WAAW;AAC3C,QAAI,CAAC,gBAAgB,aAAa,UAAU,aAAa;AAEvD,YAAM,WAAW,WAAW,WAAW;AAAA,QACrC,OAAO,SAAS;AAAA,MAClB;AACA,iBAAW,WAAW;AAAA,QACpB,OAAO,SAAS;AAAA,QAChB;AAAA,MACF;AAEA,UAAI,CAAC,CAAC,UAAU;AACd,eAAO;AAAA,UACL,aAAa;AAAA,YACX;AAAA;AAAA,YAEA,SAAS;AAAA,UACX;AAAA,QACF;AAAA,MACF,OAAO;AACL,eAAO;AAAA,UACL,aAAa,EAAE,sBAAsB,KAAK;AAAA,QAC5C;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACA,SAAO,EAAE,aAAa,CAAC,EAAE;AAC3B;AAEA,IAAO,wBAAQ;","names":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { e as PageContextNoProxyClient } from '../internal-
|
|
1
|
+
import { e as PageContextNoProxyClient } from '../internal-28df99a9.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'vike/types';
|
|
4
|
-
import '../proxy/pages/_config.js';
|
|
4
|
+
import '../proxy/pages/wrapped/_config.js';
|
|
5
5
|
import './_config.js';
|
|
6
6
|
import '../controller-16e58bbd.js';
|
|
7
7
|
|
|
@@ -4,16 +4,17 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
Turbolinks,
|
|
6
6
|
renderReact
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-4YPY5NIX.js";
|
|
8
|
+
import {
|
|
9
|
+
PageShell
|
|
10
|
+
} from "../chunk-JHLK62FM.js";
|
|
8
11
|
import {
|
|
9
12
|
documentPropsToReact
|
|
10
13
|
} from "../chunk-VYXAWOXV.js";
|
|
11
|
-
import {
|
|
12
|
-
PageShell
|
|
13
|
-
} from "../chunk-6QZLCT3X.js";
|
|
14
14
|
import {
|
|
15
15
|
getPageContextOrConfig
|
|
16
16
|
} from "../chunk-CXNEKD7R.js";
|
|
17
|
+
import "../chunk-PESUYCE4.js";
|
|
17
18
|
import "../chunk-IYGONC4I.js";
|
|
18
19
|
import "../chunk-EYYCKU6F.js";
|
|
19
20
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../renderer/onRenderClient.tsx"],"sourcesContent":["import React, { PropsWithChildren } from \"react\";\nimport { renderReact } from \"../lib/renderReact.js\";\nimport { PageContextNoProxyClient } from \"../types/internal.js\";\nimport { PageShell } from \"../lib/PageShell.js\";\nimport { Turbolinks } from \"../lib/turbolinks/index.js\";\nimport { documentPropsToReact } from \"./utils/buildHead.js\";\nimport { getPageContextOrConfig } from \"./getConfigOrPageContext.js\";\nimport { createRoot } from \"react-dom/client\";\nimport { runClientInit } from \"../lib/runClientInit.js\";\n\nTurbolinks.start();\n\nconst PassThruLayout: React.ComponentType<PropsWithChildren> = ({\n children,\n}) => <>{children}</>;\n\nexport default async function onRenderClient(\n pageContext: PageContextNoProxyClient\n) {\n if (pageContext.redirectTo) {\n Turbolinks.visit(pageContext.redirectTo);\n return;\n }\n\n // Back button leading to 404 means we hit a page bifrost can't handle in the browser history.\n // Reload allows us to revert to passthru proxy and/or let ALB handle\n if (pageContext.isBackwardNavigation && pageContext.is404) {\n Turbolinks.controller.viewInvalidated();\n return;\n }\n\n const { Page, pageProps } = pageContext;\n const { Layout = PassThruLayout } = pageContext.config;\n const layoutProps = getPageContextOrConfig(pageContext, \"layoutProps\") || {};\n\n if (!Page)\n throw new Error(\"Client-side render() hook expects Page to be exported\");\n\n const page = (\n <PageShell pageContext={pageContext}>\n <Layout {...layoutProps}>\n <Page {...pageProps} />\n </Layout>\n </PageShell>\n );\n if (pageContext.isHydration) {\n // During hydration of initial ssr, body is in dom, not page props (to avoid double-send)\n await runClientInit(pageContext.configEntries);\n renderReact(page, pageContext.isHydration);\n } else {\n const head = document.createElement(\"head\");\n createRoot(head).render(\n documentPropsToReact(\n getPageContextOrConfig(pageContext, \"documentProps\") || {}\n )\n );\n pageContext.config.scripts?.forEach((s) => {\n head.insertAdjacentHTML(\"beforeend\", s);\n });\n\n requestAnimationFrame(() => {\n Turbolinks._vpsOnRenderClient(head, false, false, () => {\n // clear anything on body\n document.body\n .getAttributeNames()\n .forEach((n) => document.body.removeAttribute(n));\n renderReact(page, pageContext.isHydration);\n });\n });\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../renderer/onRenderClient.tsx"],"sourcesContent":["import React, { PropsWithChildren } from \"react\";\nimport { renderReact } from \"../lib/renderReact.js\";\nimport { PageContextNoProxyClient } from \"../types/internal.js\";\nimport { PageShell } from \"../lib/PageShell.js\";\nimport { Turbolinks } from \"../lib/turbolinks/index.js\";\nimport { documentPropsToReact } from \"./utils/buildHead.js\";\nimport { getPageContextOrConfig } from \"./getConfigOrPageContext.js\";\nimport { createRoot } from \"react-dom/client\";\nimport { runClientInit } from \"../lib/runClientInit.js\";\n\nTurbolinks.start();\n\nconst PassThruLayout: React.ComponentType<PropsWithChildren> = ({\n children,\n}) => <>{children}</>;\n\nexport default async function onRenderClient(\n pageContext: PageContextNoProxyClient\n) {\n if (pageContext.redirectTo) {\n Turbolinks.visit(pageContext.redirectTo);\n return;\n }\n\n // Back button leading to 404 means we hit a page bifrost can't handle in the browser history.\n // Reload allows us to revert to passthru proxy and/or let ALB handle\n if (pageContext.isBackwardNavigation && pageContext.is404) {\n Turbolinks.controller.viewInvalidated();\n return;\n }\n\n const { Page, pageProps } = pageContext;\n const { Layout = PassThruLayout } = pageContext.config;\n const layoutProps = getPageContextOrConfig(pageContext, \"layoutProps\") || {};\n\n if (!Page)\n throw new Error(\"Client-side render() hook expects Page to be exported\");\n\n const page = (\n <PageShell pageContext={pageContext}>\n <Layout {...layoutProps}>\n <Page {...pageProps} />\n </Layout>\n </PageShell>\n );\n if (pageContext.isHydration) {\n // During hydration of initial ssr, body is in dom, not page props (to avoid double-send)\n await runClientInit(pageContext.configEntries);\n renderReact(page, pageContext.isHydration);\n } else {\n const head = document.createElement(\"head\");\n createRoot(head).render(\n documentPropsToReact(\n getPageContextOrConfig(pageContext, \"documentProps\") || {}\n )\n );\n pageContext.config.scripts?.forEach((s) => {\n head.insertAdjacentHTML(\"beforeend\", s);\n });\n\n requestAnimationFrame(() => {\n Turbolinks._vpsOnRenderClient(head, false, false, () => {\n // clear anything on body\n document.body\n .getAttributeNames()\n .forEach((n) => document.body.removeAttribute(n));\n renderReact(page, pageContext.isHydration);\n });\n });\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,WAAkC;AAOzC,SAAS,kBAAkB;AAG3B,WAAW,MAAM;AAEjB,IAAM,iBAAyD,CAAC;AAAA,EAC9D;AACF,MAAM,0DAAG,QAAS;AAElB,eAAO,eACL,aACA;AACA,MAAI,YAAY,YAAY;AAC1B,eAAW,MAAM,YAAY,UAAU;AACvC;AAAA,EACF;AAIA,MAAI,YAAY,wBAAwB,YAAY,OAAO;AACzD,eAAW,WAAW,gBAAgB;AACtC;AAAA,EACF;AAEA,QAAM,EAAE,MAAM,UAAU,IAAI;AAC5B,QAAM,EAAE,SAAS,eAAe,IAAI,YAAY;AAChD,QAAM,cAAc,uBAAuB,aAAa,aAAa,KAAK,CAAC;AAE3E,MAAI,CAAC;AACH,UAAM,IAAI,MAAM,uDAAuD;AAEzE,QAAM,OACJ,oCAAC,aAAU,eACT,oCAAC,UAAQ,GAAG,eACV,oCAAC,QAAM,GAAG,WAAW,CACvB,CACF;AAEF,MAAI,YAAY,aAAa;AAE3B,UAAM,cAAc,YAAY,aAAa;AAC7C,gBAAY,MAAM,YAAY,WAAW;AAAA,EAC3C,OAAO;AACL,UAAM,OAAO,SAAS,cAAc,MAAM;AAC1C,eAAW,IAAI,EAAE;AAAA,MACf;AAAA,QACE,uBAAuB,aAAa,eAAe,KAAK,CAAC;AAAA,MAC3D;AAAA,IACF;AACA,gBAAY,OAAO,SAAS,QAAQ,CAAC,MAAM;AACzC,WAAK,mBAAmB,aAAa,CAAC;AAAA,IACxC,CAAC;AAED,0BAAsB,MAAM;AAC1B,iBAAW,mBAAmB,MAAM,OAAO,OAAO,MAAM;AAEtD,iBAAS,KACN,kBAAkB,EAClB,QAAQ,CAAC,MAAM,SAAS,KAAK,gBAAgB,CAAC,CAAC;AAClD,oBAAY,MAAM,YAAY,WAAW;AAAA,MAC3C,CAAC;AAAA,IACH,CAAC;AAAA,EACH;AACF;","names":[]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as vike_dist_esm_node_runtime_html_renderHtml_js from 'vike/dist/esm/node/runtime/html/renderHtml.js';
|
|
2
|
-
import { f as PageContextNoProxyServer } from '../internal-
|
|
2
|
+
import { f as PageContextNoProxyServer } from '../internal-28df99a9.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'vike/types';
|
|
5
|
-
import '../proxy/pages/_config.js';
|
|
5
|
+
import '../proxy/pages/wrapped/_config.js';
|
|
6
6
|
import './_config.js';
|
|
7
7
|
import '../controller-16e58bbd.js';
|
|
8
8
|
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
PageShell
|
|
3
|
+
} from "../chunk-JHLK62FM.js";
|
|
1
4
|
import {
|
|
2
5
|
documentPropsToReact
|
|
3
6
|
} from "../chunk-VYXAWOXV.js";
|
|
4
|
-
import {
|
|
5
|
-
PageShell
|
|
6
|
-
} from "../chunk-6QZLCT3X.js";
|
|
7
7
|
import {
|
|
8
8
|
getPageContextOrConfig
|
|
9
9
|
} from "../chunk-CXNEKD7R.js";
|
|
10
|
+
import "../chunk-PESUYCE4.js";
|
|
10
11
|
import "../chunk-IYGONC4I.js";
|
|
11
12
|
import "../chunk-EYYCKU6F.js";
|
|
12
13
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../renderer/onRenderHtml.tsx"],"sourcesContent":["import ReactDOMServer from \"react-dom/server\";\nimport React from \"react\";\nimport { PageShell } from \"../lib/PageShell.js\";\nimport { escapeInject, dangerouslySkipEscape } from \"vike/server\";\nimport { PageContextNoProxyServer } from \"../types/internal.js\";\nimport { documentPropsToReact } from \"./utils/buildHead.js\";\nimport { getPageContextOrConfig } from \"./getConfigOrPageContext.js\";\n\nexport default async function onRenderHtml(\n pageContext: PageContextNoProxyServer\n) {\n const { Page, pageProps, redirectTo } = pageContext;\n if (redirectTo) {\n return {\n pageContext: {\n redirectTo,\n },\n };\n }\n const { Layout } = pageContext.config;\n const layoutProps = getPageContextOrConfig(pageContext, \"layoutProps\") || {};\n\n if (!Page)\n throw new Error(\"Server-side render() hook expects Page to be exported\");\n if (!Layout)\n throw new Error(\"Server-side render() hook expects Layout to be exported\");\n\n const pageHtml = ReactDOMServer.renderToString(\n <PageShell pageContext={pageContext}>\n <Layout {...layoutProps}>\n <Page {...pageProps} />\n </Layout>\n </PageShell>\n );\n\n const headHtml = ReactDOMServer.renderToString(\n documentPropsToReact(\n getPageContextOrConfig(pageContext, \"documentProps\") || {}\n )\n );\n\n const { favicon } = pageContext.config;\n const faviconTag = !favicon\n ? \"\"\n : escapeInject`<link rel=\"icon\" href=\"${favicon}\" />`;\n\n const documentHtml = escapeInject`<!DOCTYPE html>\n <html lang=\"en\">\n <head>\n ${faviconTag}\n ${dangerouslySkipEscape(headHtml)}\n ${dangerouslySkipEscape(\n Object.values(pageContext.config.scripts || {}).join(\"\")\n )}\n ${dangerouslySkipEscape(`<script>\n window.Turbolinks = {controller:{restorationIdentifier: ''}};\n addEventListener(\"DOMContentLoaded\", () => {\n const event = new Event(\"turbolinks:load\", { bubbles: true, cancelable: true });\n event.data = {url: window.location.href};\n document.dispatchEvent(event); \n })\n </script>`)}\n </head>\n <body>\n <div id=\"page-view\">${dangerouslySkipEscape(pageHtml)}</div>\n </body>\n </html>`;\n\n return {\n documentHtml,\n pageContext: {\n // We can add some `pageContext` here, which is useful if we want to do page redirection https://vike.com/page-redirection\n },\n };\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../renderer/onRenderHtml.tsx"],"sourcesContent":["import ReactDOMServer from \"react-dom/server\";\nimport React from \"react\";\nimport { PageShell } from \"../lib/PageShell.js\";\nimport { escapeInject, dangerouslySkipEscape } from \"vike/server\";\nimport { PageContextNoProxyServer } from \"../types/internal.js\";\nimport { documentPropsToReact } from \"./utils/buildHead.js\";\nimport { getPageContextOrConfig } from \"./getConfigOrPageContext.js\";\n\nexport default async function onRenderHtml(\n pageContext: PageContextNoProxyServer\n) {\n const { Page, pageProps, redirectTo } = pageContext;\n if (redirectTo) {\n return {\n pageContext: {\n redirectTo,\n },\n };\n }\n const { Layout } = pageContext.config;\n const layoutProps = getPageContextOrConfig(pageContext, \"layoutProps\") || {};\n\n if (!Page)\n throw new Error(\"Server-side render() hook expects Page to be exported\");\n if (!Layout)\n throw new Error(\"Server-side render() hook expects Layout to be exported\");\n\n const pageHtml = ReactDOMServer.renderToString(\n <PageShell pageContext={pageContext}>\n <Layout {...layoutProps}>\n <Page {...pageProps} />\n </Layout>\n </PageShell>\n );\n\n const headHtml = ReactDOMServer.renderToString(\n documentPropsToReact(\n getPageContextOrConfig(pageContext, \"documentProps\") || {}\n )\n );\n\n const { favicon } = pageContext.config;\n const faviconTag = !favicon\n ? \"\"\n : escapeInject`<link rel=\"icon\" href=\"${favicon}\" />`;\n\n const documentHtml = escapeInject`<!DOCTYPE html>\n <html lang=\"en\">\n <head>\n ${faviconTag}\n ${dangerouslySkipEscape(headHtml)}\n ${dangerouslySkipEscape(\n Object.values(pageContext.config.scripts || {}).join(\"\")\n )}\n ${dangerouslySkipEscape(`<script>\n window.Turbolinks = {controller:{restorationIdentifier: ''}};\n addEventListener(\"DOMContentLoaded\", () => {\n const event = new Event(\"turbolinks:load\", { bubbles: true, cancelable: true });\n event.data = {url: window.location.href};\n document.dispatchEvent(event); \n })\n </script>`)}\n </head>\n <body>\n <div id=\"page-view\">${dangerouslySkipEscape(pageHtml)}</div>\n </body>\n </html>`;\n\n return {\n documentHtml,\n pageContext: {\n // We can add some `pageContext` here, which is useful if we want to do page redirection https://vike.com/page-redirection\n },\n };\n}\n"],"mappings":";;;;;;;;;;;;;;AAAA,OAAO,oBAAoB;AAC3B,OAAO,WAAW;AAElB,SAAS,cAAc,6BAA6B;AAKpD,eAAO,aACL,aACA;AACA,QAAM,EAAE,MAAM,WAAW,WAAW,IAAI;AACxC,MAAI,YAAY;AACd,WAAO;AAAA,MACL,aAAa;AAAA,QACX;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACA,QAAM,EAAE,OAAO,IAAI,YAAY;AAC/B,QAAM,cAAc,uBAAuB,aAAa,aAAa,KAAK,CAAC;AAE3E,MAAI,CAAC;AACH,UAAM,IAAI,MAAM,uDAAuD;AACzE,MAAI,CAAC;AACH,UAAM,IAAI,MAAM,yDAAyD;AAE3E,QAAM,WAAW,eAAe;AAAA,IAC9B,oCAAC,aAAU,eACT,oCAAC,UAAQ,GAAG,eACV,oCAAC,QAAM,GAAG,WAAW,CACvB,CACF;AAAA,EACF;AAEA,QAAM,WAAW,eAAe;AAAA,IAC9B;AAAA,MACE,uBAAuB,aAAa,eAAe,KAAK,CAAC;AAAA,IAC3D;AAAA,EACF;AAEA,QAAM,EAAE,QAAQ,IAAI,YAAY;AAChC,QAAM,aAAa,CAAC,UAChB,KACA,sCAAsC,OAAO;AAEjD,QAAM,eAAe;AAAA;AAAA;AAAA,QAGf,UAAU;AAAA,QACV,sBAAsB,QAAQ,CAAC;AAAA,QAC/B;AAAA,IACA,OAAO,OAAO,YAAY,OAAO,WAAW,CAAC,CAAC,EAAE,KAAK,EAAE;AAAA,EACzD,CAAC;AAAA,QACC,sBAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAOd,CAAC;AAAA;AAAA;AAAA,8BAGa,sBAAsB,QAAQ,CAAC;AAAA;AAAA;AAI3D,SAAO;AAAA,IACL;AAAA,IACA,aAAa;AAAA;AAAA,IAEb;AAAA,EACF;AACF;","names":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
declare let setNavigation: (navigation: Navigation) => void;
|
|
4
|
+
interface Navigation {
|
|
5
|
+
state: "idle" | "loading";
|
|
6
|
+
}
|
|
7
|
+
declare function NavigationProvider({ children }: {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}): JSX.Element;
|
|
10
|
+
/** Access the navigation from any React component */
|
|
11
|
+
declare function useNavigation(): Navigation;
|
|
12
|
+
|
|
13
|
+
export { NavigationProvider, setNavigation, useNavigation };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { c as PageContext } from '../internal-
|
|
2
|
+
import { c as PageContext } from '../internal-28df99a9.js';
|
|
3
3
|
import 'vike/types';
|
|
4
|
-
import '../proxy/pages/_config.js';
|
|
4
|
+
import '../proxy/pages/wrapped/_config.js';
|
|
5
5
|
import './_config.js';
|
|
6
6
|
import '../controller-16e58bbd.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { D as DocumentProps } from '../../internal-
|
|
2
|
+
import { D as DocumentProps } from '../../internal-28df99a9.js';
|
|
3
3
|
import 'vike/types';
|
|
4
|
-
import '../../proxy/pages/_config.js';
|
|
4
|
+
import '../../proxy/pages/wrapped/_config.js';
|
|
5
5
|
import '../_config.js';
|
|
6
6
|
import '../../controller-16e58bbd.js';
|
|
7
7
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alignable/bifrost",
|
|
3
3
|
"repository": "https://github.com/Alignable/bifrost.git",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.35",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"exports": {
|
|
@@ -21,37 +21,49 @@
|
|
|
21
21
|
"types": "./dist/renderer/onBeforeRoute.d.ts",
|
|
22
22
|
"default": "./dist/renderer/onBeforeRoute.js"
|
|
23
23
|
},
|
|
24
|
-
"./proxy/pages/+config": {
|
|
25
|
-
"types": "./dist/proxy/pages/+config.d.ts",
|
|
26
|
-
"default": "./dist/proxy/pages/+config.js"
|
|
27
|
-
},
|
|
28
|
-
"./proxy/pages/onRenderClient": {
|
|
29
|
-
"types": "./dist/proxy/pages/onRenderClient.d.ts",
|
|
30
|
-
"default": "./dist/proxy/pages/onRenderClient.js"
|
|
31
|
-
},
|
|
32
|
-
"./proxy/pages/onRenderHtml": {
|
|
33
|
-
"types": "./dist/proxy/pages/onRenderHtml.d.ts",
|
|
34
|
-
"default": "./dist/proxy/pages/onRenderHtml.js"
|
|
35
|
-
},
|
|
36
24
|
"./proxy/pages/Page": {
|
|
37
25
|
"types": "./dist/proxy/pages/Page.d.ts",
|
|
38
26
|
"default": "./dist/proxy/pages/Page.js"
|
|
39
27
|
},
|
|
40
|
-
"./proxy/pages/
|
|
41
|
-
"types": "./dist/proxy/pages/
|
|
42
|
-
"default": "./dist/proxy/pages/
|
|
28
|
+
"./proxy/pages/wrapped/+config": {
|
|
29
|
+
"types": "./dist/proxy/pages/wrapped/+config.d.ts",
|
|
30
|
+
"default": "./dist/proxy/pages/wrapped/+config.js"
|
|
31
|
+
},
|
|
32
|
+
"./proxy/pages/wrapped/onRenderClient": {
|
|
33
|
+
"types": "./dist/proxy/pages/wrapped/onRenderClient.d.ts",
|
|
34
|
+
"default": "./dist/proxy/pages/wrapped/onRenderClient.js"
|
|
35
|
+
},
|
|
36
|
+
"./proxy/pages/wrapped/onRenderHtml": {
|
|
37
|
+
"types": "./dist/proxy/pages/wrapped/onRenderHtml.d.ts",
|
|
38
|
+
"default": "./dist/proxy/pages/wrapped/onRenderHtml.js"
|
|
39
|
+
},
|
|
40
|
+
"./proxy/pages/wrapped/onBeforeRender": {
|
|
41
|
+
"types": "./dist/proxy/pages/wrapped/onBeforeRender.d.ts",
|
|
42
|
+
"default": "./dist/proxy/pages/wrapped/onBeforeRender.js"
|
|
43
|
+
},
|
|
44
|
+
"./proxy/pages/wrapped/restorationVisit/+config": {
|
|
45
|
+
"types": "./dist/proxy/pages/wrapped/restorationVisit/+config.d.ts",
|
|
46
|
+
"default": "./dist/proxy/pages/wrapped/restorationVisit/+config.js"
|
|
47
|
+
},
|
|
48
|
+
"./proxy/pages/wrapped/restorationVisit/route": {
|
|
49
|
+
"types": "./dist/proxy/pages/wrapped/restorationVisit/route.d.ts",
|
|
50
|
+
"default": "./dist/proxy/pages/wrapped/restorationVisit/route.js"
|
|
51
|
+
},
|
|
52
|
+
"./proxy/pages/wrapped/restorationVisit/onRenderClient": {
|
|
53
|
+
"types": "./dist/proxy/pages/wrapped/restorationVisit/onRenderClient.d.ts",
|
|
54
|
+
"default": "./dist/proxy/pages/wrapped/restorationVisit/onRenderClient.js"
|
|
43
55
|
},
|
|
44
|
-
"./proxy/pages/
|
|
45
|
-
"types": "./dist/proxy/pages/
|
|
46
|
-
"default": "./dist/proxy/pages/
|
|
56
|
+
"./proxy/pages/passthru/+config": {
|
|
57
|
+
"types": "./dist/proxy/pages/passthru/+config.d.ts",
|
|
58
|
+
"default": "./dist/proxy/pages/passthru/+config.js"
|
|
47
59
|
},
|
|
48
|
-
"./proxy/pages/
|
|
49
|
-
"types": "./dist/proxy/pages/
|
|
50
|
-
"default": "./dist/proxy/pages/
|
|
60
|
+
"./proxy/pages/passthru/onRenderHtml": {
|
|
61
|
+
"types": "./dist/proxy/pages/passthru/onRenderHtml.d.ts",
|
|
62
|
+
"default": "./dist/proxy/pages/passthru/onRenderHtml.js"
|
|
51
63
|
},
|
|
52
|
-
"./proxy/pages/
|
|
53
|
-
"types": "./dist/proxy/pages/
|
|
54
|
-
"default": "./dist/proxy/pages/
|
|
64
|
+
"./proxy/pages/passthru/onRenderClient": {
|
|
65
|
+
"types": "./dist/proxy/pages/passthru/onRenderClient.d.ts",
|
|
66
|
+
"default": "./dist/proxy/pages/passthru/onRenderClient.js"
|
|
55
67
|
},
|
|
56
68
|
".": {
|
|
57
69
|
"types": "./dist/index.d.ts",
|
|
@@ -83,14 +95,14 @@
|
|
|
83
95
|
"react-dom": "^18.x.x",
|
|
84
96
|
"tough-cookie": "^4.1.2",
|
|
85
97
|
"uuid": "^9.0.0",
|
|
86
|
-
"vike": "0.4.
|
|
98
|
+
"vike": "0.4.160-commit-937d8d5"
|
|
87
99
|
},
|
|
88
100
|
"peerDependencies": {
|
|
89
101
|
"jsdom": "^22.1.0",
|
|
90
102
|
"react": "^18.x.x",
|
|
91
103
|
"react-dom": "^18.x.x",
|
|
92
104
|
"typescript": ">=4.7",
|
|
93
|
-
"vike": "0.4.
|
|
105
|
+
"vike": "0.4.160-commit-937d8d5"
|
|
94
106
|
},
|
|
95
107
|
"devDependencies": {
|
|
96
108
|
"@types/jsdom": "^21.1.2",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../lib/PageShell.tsx"],"sourcesContent":["import React, { ReactNode } from \"react\";\nimport { PageContextProvider } from \"../renderer/usePageContext.js\";\nimport { PageContext } from \"../types/internal.js\";\n\nexport function PageShell({\n pageContext,\n children,\n}: {\n pageContext: PageContext;\n children: ReactNode;\n}) {\n return (\n <React.StrictMode>\n <PageContextProvider pageContext={pageContext}>\n {children}\n </PageContextProvider>\n </React.StrictMode>\n );\n}\n"],"mappings":";;;;;AAAA,OAAO,WAA0B;AAI1B,SAAS,UAAU;AAAA,EACxB;AAAA,EACA;AACF,GAGG;AACD,SACE,oCAAC,MAAM,YAAN,MACC,oCAAC,uBAAoB,eAClB,QACH,CACF;AAEJ;","names":[]}
|