@uniweb/build 1.13.9 → 1.13.10
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/package.json +7 -7
- package/src/site/file-links.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniweb/build",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.10",
|
|
4
4
|
"description": "Build tooling for the Uniweb Component Web Platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -56,12 +56,12 @@
|
|
|
56
56
|
"js-yaml": "^4.3.2",
|
|
57
57
|
"sharp": "^0.35.5",
|
|
58
58
|
"yaml": "^2.5.0",
|
|
59
|
+
"@uniweb/content-reader": "~1.5.8",
|
|
60
|
+
"@uniweb/content-writer": "~1.3.1",
|
|
59
61
|
"@uniweb/projections": "~1.2.9",
|
|
60
|
-
"@uniweb/theming": "~1.2.1",
|
|
61
62
|
"@uniweb/semantic-parser": "~1.13.1",
|
|
62
|
-
"@uniweb/
|
|
63
|
-
"@uniweb/schemas": "~1.6.7"
|
|
64
|
-
"@uniweb/content-reader": "~1.5.8"
|
|
63
|
+
"@uniweb/theming": "~1.2.1",
|
|
64
|
+
"@uniweb/schemas": "~1.6.7"
|
|
65
65
|
},
|
|
66
66
|
"optionalDependencies": {
|
|
67
67
|
"@uniweb/runtime": "~1.3.6"
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
"@tailwindcss/vite": "^4.0.0",
|
|
74
74
|
"@vitejs/plugin-react": "^4.0.0 || ^5.0.0",
|
|
75
75
|
"vite-plugin-svgr": "^4.0.0",
|
|
76
|
-
"@uniweb/
|
|
77
|
-
"@uniweb/
|
|
76
|
+
"@uniweb/runtime": "~1.3.6",
|
|
77
|
+
"@uniweb/core": "~1.5.2"
|
|
78
78
|
},
|
|
79
79
|
"peerDependenciesMeta": {
|
|
80
80
|
"vite": {
|
package/src/site/file-links.js
CHANGED
|
@@ -56,12 +56,12 @@ const textOf = (node) =>
|
|
|
56
56
|
|
|
57
57
|
/** What `headingId` in `@uniweb/kit` gives a heading. `_contracts/` holds the two together. */
|
|
58
58
|
export function siteAnchor(text) {
|
|
59
|
-
return String(text).toLowerCase().replace(/[
|
|
59
|
+
return String(text).normalize('NFC').toLowerCase().replace(/[^\p{L}\p{M}\p{N}]+/gu, '-').replace(/^-|-$/g, '')
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
/** What GitHub gives a heading: punctuation gone, each space a hyphen, so `a — b` is `a--b`. */
|
|
63
63
|
export function githubAnchor(text) {
|
|
64
|
-
return String(text).toLowerCase().trim().replace(/[^\p{L}\p{N}\s_-]/gu, '').replace(/\s/g, '-')
|
|
64
|
+
return String(text).normalize('NFC').toLowerCase().trim().replace(/[^\p{L}\p{M}\p{N}\s_-]/gu, '').replace(/\s/g, '-')
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
/** Each anchor a link might name for a document's headings, and the id it has on the page. */
|