@prismicio/next 2.0.2-canary.7bb987d → 2.0.2-pr.112.b8bef65

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/index.cjs CHANGED
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ require("./setGlobalConfig.cjs");
3
4
  const exitPreview = require("./exitPreview.cjs");
4
5
  const PrismicPreview = require("./PrismicPreview.cjs");
5
6
  const PrismicNextLink = require("./PrismicNextLink.cjs");
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import "./setGlobalConfig";
1
2
  export { exitPreview } from "./exitPreview";
2
3
  export { PrismicPreview } from "./PrismicPreview";
3
4
  export type { PrismicPreviewProps } from "./PrismicPreview";
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const version = "2.0.2-canary.7bb987d";
3
+ const version = "2.0.2-pr.112.b8bef65";
4
4
  exports.version = version;
5
5
  //# sourceMappingURL=package.json.cjs.map
@@ -1,3 +1,4 @@
1
+ import "../setGlobalConfig";
1
2
  export { PrismicNextLink } from "../PrismicNextLink";
2
3
  export { type PrismicNextLinkProps } from "../PrismicNextLink";
3
4
  export { PrismicNextImage } from "../PrismicNextImage";
package/dist/pages.cjs CHANGED
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ require("./setGlobalConfig.cjs");
3
4
  const PrismicNextLink = require("./PrismicNextLink.cjs");
4
5
  const PrismicNextImage = require("./PrismicNextImage.cjs");
5
6
  const imgixLoader = require("./imgixLoader.cjs");
@@ -1 +1 @@
1
- {"version":3,"file":"pages.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"pages.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ const Link = require("next/link");
3
+ globalThis[Symbol.for("@prismicio/react/PrismicLink/defaultInternalComponent")] = Link;
4
+ //# sourceMappingURL=setGlobalConfig.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setGlobalConfig.cjs","sources":["../src/setGlobalConfig.ts"],"sourcesContent":["import Link from \"next/link\";\n\n// @ts-expect-error - Property doesn't exist on global\nglobalThis[\n\tSymbol.for(\"@prismicio/react/PrismicLink/defaultInternalComponent\")\n] = Link;\n"],"names":[],"mappings":";;AAGA,WACC,OAAO,IAAI,uDAAuD,CAAC,IAChE;"}
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "e2e-projects/*"
5
5
  ],
6
6
  "name": "@prismicio/next",
7
- "version": "2.0.2-canary.7bb987d",
7
+ "version": "2.0.2-pr.112.b8bef65",
8
8
  "description": "Helpers to integrate Prismic into Next.js apps",
9
9
  "keywords": [
10
10
  "typescript",
@@ -19,7 +19,10 @@
19
19
  },
20
20
  "license": "Apache-2.0",
21
21
  "author": "Prismic <contact@prismic.io> (https://prismic.io)",
22
- "sideEffects": false,
22
+ "sideEffects": [
23
+ "./dist/index.cjs",
24
+ "./dist/pages.cjs"
25
+ ],
23
26
  "type": "module",
24
27
  "exports": {
25
28
  ".": {
package/src/index.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import "./setGlobalConfig";
2
+
1
3
  export { exitPreview } from "./exitPreview";
2
4
 
3
5
  export { PrismicPreview } from "./PrismicPreview";
@@ -1,3 +1,5 @@
1
+ import "../setGlobalConfig";
2
+
1
3
  export { PrismicNextLink } from "../PrismicNextLink";
2
4
  export { type PrismicNextLinkProps } from "../PrismicNextLink";
3
5
 
@@ -0,0 +1,6 @@
1
+ import Link from "next/link";
2
+
3
+ // @ts-expect-error - Property doesn't exist on global
4
+ globalThis[
5
+ Symbol.for("@prismicio/react/PrismicLink/defaultInternalComponent")
6
+ ] = Link;