@uniweb/core 0.7.18 → 0.7.19
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 +2 -2
- package/src/theme.js +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniweb/core",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.19",
|
|
4
4
|
"description": "Core classes for the Uniweb platform - Uniweb, Website, Page, Block",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"vitest": "^4.1.7"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@uniweb/theming": "0.1.
|
|
33
|
+
"@uniweb/theming": "0.1.7",
|
|
34
34
|
"@uniweb/semantic-parser": "1.1.17"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
package/src/theme.js
CHANGED
|
@@ -305,7 +305,8 @@ export default class Theme {
|
|
|
305
305
|
/**
|
|
306
306
|
* Get a specific font family
|
|
307
307
|
*
|
|
308
|
-
* @param {string} type - Font
|
|
308
|
+
* @param {string} type - Font role name ('body', 'heading', 'code', or a
|
|
309
|
+
* foundation-defined role)
|
|
309
310
|
* @returns {string|null} Font family string or null
|
|
310
311
|
*/
|
|
311
312
|
getFont(type) {
|
|
@@ -315,7 +316,7 @@ export default class Theme {
|
|
|
315
316
|
/**
|
|
316
317
|
* Get CSS variable reference for a font
|
|
317
318
|
*
|
|
318
|
-
* @param {string} type - Font
|
|
319
|
+
* @param {string} type - Font role name
|
|
319
320
|
* @returns {string} CSS var() reference
|
|
320
321
|
*/
|
|
321
322
|
getFontVar(type) {
|