@akinon/pz-theme 2.0.123-beta.0 → 2.0.123
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 +4 -4
- package/package.json +4 -4
- package/src/utils/google-fonts.ts +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# @akinon/pz-theme
|
|
2
2
|
|
|
3
|
-
## 2.0.123
|
|
3
|
+
## 2.0.123
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
- @akinon/next@2.0.123
|
|
9
|
-
- @akinon/theme-contract@2.0.123
|
|
7
|
+
- 3007a4d: ZERO-5093: build font name regex via RegExp so es5 targets compile
|
|
8
|
+
- @akinon/next@2.0.123
|
|
9
|
+
- @akinon/theme-contract@2.0.123
|
|
10
10
|
|
|
11
11
|
## 2.0.122
|
|
12
12
|
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akinon/pz-theme",
|
|
3
3
|
"description": "Theme package for Project Zero Next — ThemePlaceholder system and theme editor infrastructure",
|
|
4
|
-
"version": "2.0.123
|
|
4
|
+
"version": "2.0.123",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"test": "jest"
|
|
9
9
|
},
|
|
10
10
|
"peerDependencies": {
|
|
11
|
-
"@akinon/next": "2.0.123
|
|
11
|
+
"@akinon/next": "2.0.123",
|
|
12
12
|
"react": "^18.0.0 || ^19.0.0",
|
|
13
13
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@akinon/theme-contract": "2.0.123
|
|
16
|
+
"@akinon/theme-contract": "2.0.123",
|
|
17
17
|
"clsx": "2.1.1",
|
|
18
18
|
"lottie-web": "^5.13.0",
|
|
19
19
|
"react-multi-carousel": "2.8.4",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"zod": "4.4.1"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@akinon/next": "2.0.123
|
|
24
|
+
"@akinon/next": "2.0.123",
|
|
25
25
|
"@testing-library/jest-dom": "5.16.4",
|
|
26
26
|
"@testing-library/react": "16.3.2",
|
|
27
27
|
"@testing-library/user-event": "14.1.1",
|
|
@@ -66,7 +66,10 @@ const NON_FAMILY_KEYWORDS = new Set([
|
|
|
66
66
|
* letters, digits, spaces and `._-` would change the request rather than name
|
|
67
67
|
* a font. Google's own family names never need more.
|
|
68
68
|
*/
|
|
69
|
-
const FAMILY_NAME_PATTERN =
|
|
69
|
+
const FAMILY_NAME_PATTERN = new RegExp(
|
|
70
|
+
'^[\\p{L}\\p{N}][\\p{L}\\p{N} ._-]*$',
|
|
71
|
+
'u'
|
|
72
|
+
);
|
|
70
73
|
|
|
71
74
|
/** Quotes and surrounding space removed — the spelling the loaders have always used. */
|
|
72
75
|
export const cleanFontFamilyName = (fontFamily: string): string =>
|