@primer/doctocat-nextjs 0.5.8-rc.3941255 → 0.6.0-rc.2deb8be
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/CHANGELOG.md +10 -0
- package/components/layout/code-block/code-transformer.ts +1 -1
- package/package.json +19 -7
- package/.eslintrc.cjs +0 -9
- package/.vscode/settings.json +0 -5
- package/prettier.config.cjs +0 -3
- package/tsconfig.json +0 -19
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
# @primer/doctocat-nextjs
|
|
2
2
|
|
|
3
|
+
## 0.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#63](https://github.com/primer/doctocat-nextjs/pull/63) [`9a090ee`](https://github.com/primer/doctocat-nextjs/commit/9a090eec47c64dc46f8eac14ec00548d421e8019) Thanks [@rezrah](https://github.com/rezrah)! - Moves `@primer/react-brand` to a peer-dependency.
|
|
8
|
+
|
|
9
|
+
This change prevents a mismatch of versions between Doctocat and the project using it. Going forward, the latter will be preferred.
|
|
10
|
+
|
|
3
11
|
## 0.5.8
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
6
14
|
|
|
7
15
|
- [#59](https://github.com/primer/doctocat-nextjs/pull/59) [`c24a5b9`](https://github.com/primer/doctocat-nextjs/commit/c24a5b98aad639b42213ad230d923907115eb864) Thanks [@danielguillan](https://github.com/danielguillan)! - Switched sidebar navigation and content document order for improved accessibility
|
|
8
16
|
|
|
17
|
+
- [#61](https://github.com/primer/doctocat-nextjs/pull/61) [`1446089`](https://github.com/primer/doctocat-nextjs/commit/14460897dbcd248f688c13b9085128707abbda25) Thanks [@rezrah](https://github.com/rezrah)! - React code previews now support dot-notation in component names. E.g. Hero.Image.
|
|
18
|
+
|
|
9
19
|
## 0.5.7
|
|
10
20
|
|
|
11
21
|
### Patch Changes
|
|
@@ -9,7 +9,7 @@ export const codeTransformer = (sourceCode: string, basePath: string): string =>
|
|
|
9
9
|
|
|
10
10
|
// Assumes all elements with a src attribute are trying to point at Next.js public folder
|
|
11
11
|
return sourceCode.replace(
|
|
12
|
-
/<(\w
|
|
12
|
+
/<([a-z]\w*|[A-Z]\w*(?:\.[A-Z]\w*)?)\s+([^>]*\s+)?src=["']([^"']+)["']([^>]*)/g,
|
|
13
13
|
(match, tagName, before = '', src, after) => {
|
|
14
14
|
if (!shouldTransform(src)) return match
|
|
15
15
|
|
package/package.json
CHANGED
|
@@ -1,26 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primer/doctocat-nextjs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0-rc.2deb8be",
|
|
4
4
|
"description": "A Next.js theme for building Primer documentation sites",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"check": "tsc --noEmit",
|
|
9
9
|
"lint": "eslint '**/*.{js,ts,tsx,md,mdx}' --max-warnings=0 --config ./.eslintrc.cjs",
|
|
10
|
-
"test": "
|
|
10
|
+
"test": "vitest",
|
|
11
|
+
"test:ui": "vitest --ui",
|
|
12
|
+
"test:no-watch": "vitest run",
|
|
13
|
+
"test:coverage": "vitest run --coverage"
|
|
11
14
|
},
|
|
12
15
|
"author": "GitHub, Inc.",
|
|
13
16
|
"license": "MIT",
|
|
14
17
|
"peerDependencies": {
|
|
18
|
+
"@primer/react-brand": ">=0.54.0",
|
|
15
19
|
"next": "^15.0.0",
|
|
16
20
|
"react": ">=18.0.0 <20.0.0",
|
|
17
21
|
"react-dom": ">=18.0.0 <20.0.0"
|
|
18
22
|
},
|
|
19
23
|
"dependencies": {
|
|
20
|
-
"@next/mdx": "15.
|
|
24
|
+
"@next/mdx": "15.3.5",
|
|
21
25
|
"@primer/octicons-react": "19.15.1",
|
|
22
26
|
"@primer/react": "^37.11.0",
|
|
23
|
-
"@primer/react-brand": "0.54.0",
|
|
24
27
|
"@types/lodash.debounce": "^4.0.9",
|
|
25
28
|
"framer-motion": "12.4.0",
|
|
26
29
|
"lodash.debounce": "^4.0.8",
|
|
@@ -32,12 +35,21 @@
|
|
|
32
35
|
},
|
|
33
36
|
"devDependencies": {
|
|
34
37
|
"@github/prettier-config": "^0.0.6",
|
|
35
|
-
"@
|
|
38
|
+
"@testing-library/dom": "^10.4.0",
|
|
39
|
+
"@testing-library/jest-dom": "^6.6.3",
|
|
40
|
+
"@testing-library/react": "^16.1.0",
|
|
41
|
+
"@testing-library/user-event": "^14.5.2",
|
|
42
|
+
"@types/node": "^20.19.0",
|
|
36
43
|
"@types/react": "18.3.12",
|
|
37
44
|
"@types/react-dom": "18.3.1",
|
|
45
|
+
"@vitejs/plugin-react": "^4.3.3",
|
|
46
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
47
|
+
"@vitest/ui": "^3.2.4",
|
|
38
48
|
"clsx": "2.1.1",
|
|
39
|
-
"
|
|
40
|
-
"
|
|
49
|
+
"jsdom": "^26.0.1",
|
|
50
|
+
"next": "15.3.5",
|
|
51
|
+
"styled-components": "5.3.11",
|
|
52
|
+
"vitest": "^3.2.4"
|
|
41
53
|
},
|
|
42
54
|
"overrides": {
|
|
43
55
|
"@types/react": "18.3.12",
|
package/.eslintrc.cjs
DELETED
package/.vscode/settings.json
DELETED
package/prettier.config.cjs
DELETED
package/tsconfig.json
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "es2016",
|
|
4
|
-
"module": "ESNext",
|
|
5
|
-
"declaration": false,
|
|
6
|
-
"noEmit": true,
|
|
7
|
-
"esModuleInterop": true,
|
|
8
|
-
"strict": true,
|
|
9
|
-
"skipLibCheck": true,
|
|
10
|
-
"allowJs": true,
|
|
11
|
-
"jsx": "react-jsx",
|
|
12
|
-
"moduleResolution": "bundler",
|
|
13
|
-
"lib": ["ESNext", "DOM", "DOM.Iterable"],
|
|
14
|
-
"resolveJsonModule": true,
|
|
15
|
-
"strictNullChecks": true,
|
|
16
|
-
"strictFunctionTypes": true,
|
|
17
|
-
"noImplicitAny": true
|
|
18
|
-
}
|
|
19
|
-
}
|