@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.
package/dist/package.json.cjs
CHANGED
package/dist/setGlobalConfig.cjs
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const Link = require("next/link");
|
|
3
|
-
|
|
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
|
|
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.
|
|
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",
|
package/src/setGlobalConfig.ts
CHANGED
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
import { HTMLAttributeAnchorTarget, ReactNode } from "react";
|
|
2
1
|
import Link from "next/link";
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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;
|