@alignable/bifrost 0.0.4 → 0.0.5
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/lib/turbolinks.d.ts +1 -0
- package/dist/lib/turbolinks.d.ts.map +1 -1
- package/dist/lib/turbolinks.js +4 -2
- package/dist/proxy/pages/onRenderClient.d.ts +0 -1
- package/dist/proxy/pages/onRenderClient.d.ts.map +1 -1
- package/dist/proxy/pages/onRenderClient.js +2 -1
- package/dist/renderer/onRenderClient.d.ts +0 -1
- package/dist/renderer/onRenderClient.d.ts.map +1 -1
- package/dist/renderer/onRenderClient.js +2 -1
- package/package.json +1 -1
package/dist/lib/turbolinks.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const Turbolinks: {
|
|
2
2
|
visit: (location: import("turbolinks/dist/location.js").Locatable, options?: Partial<import("turbolinks/dist/controller.js").VisitOptions> | undefined) => void;
|
|
3
3
|
};
|
|
4
|
+
export declare function setupTurbolinks(): void;
|
|
4
5
|
//# sourceMappingURL=turbolinks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"turbolinks.d.ts","sourceRoot":"","sources":["../../lib/turbolinks.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU;;CAOtB,CAAC"}
|
|
1
|
+
{"version":3,"file":"turbolinks.d.ts","sourceRoot":"","sources":["../../lib/turbolinks.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU;;CAOtB,CAAC;AAEF,wBAAgB,eAAe,SAI9B"}
|
package/dist/lib/turbolinks.js
CHANGED
|
@@ -7,6 +7,8 @@ export const Turbolinks = {
|
|
|
7
7
|
});
|
|
8
8
|
},
|
|
9
9
|
};
|
|
10
|
-
|
|
11
|
-
window.Turbolinks
|
|
10
|
+
export function setupTurbolinks() {
|
|
11
|
+
if (typeof window !== "undefined" && !window.Turbolinks) {
|
|
12
|
+
window.Turbolinks = Turbolinks;
|
|
13
|
+
}
|
|
12
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onRenderClient.d.ts","sourceRoot":"","sources":["../../../proxy/pages/onRenderClient.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"onRenderClient.d.ts","sourceRoot":"","sources":["../../../proxy/pages/onRenderClient.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAajE,wBAA8B,cAAc,CAC1C,WAAW,EAAE,sBAAsB,iBAgDpC"}
|
|
@@ -6,7 +6,8 @@ import { dispatchTurbolinks } from "../../lib/dispatchTurbolinks.js";
|
|
|
6
6
|
import { mergeHead } from "../../lib/mergeHead.js";
|
|
7
7
|
import { cacheProxiedBody, writeRestorationIdentifier, } from "../../lib/snapshots.js";
|
|
8
8
|
import { navigateAnywhere } from "../../lib/navigateAnywhere.js";
|
|
9
|
-
import "../../lib/turbolinks.js";
|
|
9
|
+
import { setupTurbolinks } from "../../lib/turbolinks.js";
|
|
10
|
+
setupTurbolinks();
|
|
10
11
|
export default async function onRenderClient(pageContext) {
|
|
11
12
|
if (navigateAnywhere(pageContext.redirectTo))
|
|
12
13
|
return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onRenderClient.d.ts","sourceRoot":"","sources":["../../renderer/onRenderClient.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"onRenderClient.d.ts","sourceRoot":"","sources":["../../renderer/onRenderClient.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAUhE,wBAA8B,cAAc,CAC1C,WAAW,EAAE,wBAAwB,iBA8BtC"}
|
|
@@ -5,7 +5,8 @@ import { turbolinksClickListener } from "../lib/linkInterceptor.js";
|
|
|
5
5
|
import { getDocumentProps } from "./getDocumentProps.js";
|
|
6
6
|
import { cacheProxiedBody } from "../lib/snapshots.js";
|
|
7
7
|
import { navigateAnywhere } from "../lib/navigateAnywhere.js";
|
|
8
|
-
import "
|
|
8
|
+
import { setupTurbolinks } from "../lib/turbolinks.js";
|
|
9
|
+
setupTurbolinks();
|
|
9
10
|
export default async function onRenderClient(pageContext) {
|
|
10
11
|
if (navigateAnywhere(pageContext.redirectTo))
|
|
11
12
|
return;
|