@prismicio/next 2.0.2-pr.112.11d2042 → 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.
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const version = "2.0.2-pr.112.11d2042";
3
+ const version = "2.0.2-pr.112.b8bef65";
4
4
  exports.version = version;
5
5
  //# sourceMappingURL=package.json.cjs.map
@@ -1,8 +1,4 @@
1
1
  "use strict";
2
2
  const Link = require("next/link");
3
- const globalConfigKey = Symbol.for("@prismicio/react/config");
4
- globalThis[globalConfigKey] = {
5
- ...globalThis[globalConfigKey],
6
- internalLinkComponent: Link
7
- };
3
+ globalThis[Symbol.for("@prismicio/react/PrismicLink/defaultInternalComponent")] = Link;
8
4
  //# sourceMappingURL=setGlobalConfig.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"setGlobalConfig.cjs","sources":["../src/setGlobalConfig.ts"],"sourcesContent":["import { HTMLAttributeAnchorTarget, ReactNode } from \"react\";\nimport Link from \"next/link\";\n\nconst globalConfigKey = Symbol.for(\"@prismicio/react/config\");\n\ntype GlobalThis = {\n\t[globalConfigKey]?: {\n\t\tinternalLinkComponent?: React.ComponentType<{\n\t\t\thref: string;\n\t\t\ttarget?: HTMLAttributeAnchorTarget;\n\t\t\trel?: string;\n\t\t\tchildren?: ReactNode;\n\t\t}>;\n\t};\n};\n\n(globalThis as GlobalThis)[globalConfigKey] = {\n\t...(globalThis as GlobalThis)[globalConfigKey],\n\tinternalLinkComponent: Link,\n};\n"],"names":[],"mappings":";;AAGA,MAAM,kBAAkB,OAAO,IAAI,yBAAyB;AAa3D,WAA0B,eAAe,IAAI;AAAA,EAC7C,GAAI,WAA0B,eAAe;AAAA,EAC7C,uBAAuB;;"}
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;"}
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "e2e-projects/*"
5
5
  ],
6
6
  "name": "@prismicio/next",
7
- "version": "2.0.2-pr.112.11d2042",
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",
@@ -72,7 +72,6 @@
72
72
  "@eslint/js": "^9.17.0",
73
73
  "@playwright/test": "^1.49.1",
74
74
  "@prismicio/client": "^7.12.0",
75
- "@prismicio/react": "pr-235",
76
75
  "@prismicio/types-internal": "^3.3.0",
77
76
  "@rollup/plugin-typescript": "^12.1.2",
78
77
  "@size-limit/preset-small-lib": "^11.1.6",
@@ -1,20 +1,6 @@
1
- import { HTMLAttributeAnchorTarget, ReactNode } from "react";
2
1
  import Link from "next/link";
3
2
 
4
- const globalConfigKey = Symbol.for("@prismicio/react/config");
5
-
6
- type GlobalThis = {
7
- [globalConfigKey]?: {
8
- internalLinkComponent?: React.ComponentType<{
9
- href: string;
10
- target?: HTMLAttributeAnchorTarget;
11
- rel?: string;
12
- children?: ReactNode;
13
- }>;
14
- };
15
- };
16
-
17
- (globalThis as GlobalThis)[globalConfigKey] = {
18
- ...(globalThis as GlobalThis)[globalConfigKey],
19
- internalLinkComponent: Link,
20
- };
3
+ // @ts-expect-error - Property doesn't exist on global
4
+ globalThis[
5
+ Symbol.for("@prismicio/react/PrismicLink/defaultInternalComponent")
6
+ ] = Link;