@uniweb/core 0.5.6 → 0.5.8
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/block.js +5 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniweb/core",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.8",
|
|
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
|
"jest": "^29.7.0"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@uniweb/semantic-parser": "1.1.
|
|
33
|
+
"@uniweb/semantic-parser": "1.1.5"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
|
package/src/block.js
CHANGED
|
@@ -49,7 +49,7 @@ export default class Block {
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
// Flat content structure - no more nested main/items
|
|
52
|
-
// parsedContent now has: title, pretitle, paragraphs, links,
|
|
52
|
+
// parsedContent now has: title, pretitle, paragraphs, links, images, items, etc.
|
|
53
53
|
this.items = this.parsedContent.items || []
|
|
54
54
|
|
|
55
55
|
// Block configuration
|
|
@@ -212,7 +212,7 @@ export default class Block {
|
|
|
212
212
|
subtitle: '',
|
|
213
213
|
paragraphs: [],
|
|
214
214
|
links: [],
|
|
215
|
-
|
|
215
|
+
images: [],
|
|
216
216
|
lists: [],
|
|
217
217
|
icons: [],
|
|
218
218
|
items: [],
|
|
@@ -292,7 +292,7 @@ export default class Block {
|
|
|
292
292
|
subtitle: c.subtitle || '',
|
|
293
293
|
description: c.subtitle2 || '',
|
|
294
294
|
paragraphs: c.paragraphs || [],
|
|
295
|
-
images: c.
|
|
295
|
+
images: c.images || [],
|
|
296
296
|
links: c.links || [],
|
|
297
297
|
icons: c.icons || [],
|
|
298
298
|
properties: c.propertyBlocks?.[0] || c.properties || {},
|
|
@@ -480,7 +480,8 @@ export default class Block {
|
|
|
480
480
|
}
|
|
481
481
|
|
|
482
482
|
// Anything else → CSS color (hex, rgb, hsl, oklch, named color, var())
|
|
483
|
-
|
|
483
|
+
// Resolve bare palette refs (e.g. "primary-900" → "var(--primary-900)")
|
|
484
|
+
return { mode: 'color', color: resolveOverrideValue(raw) }
|
|
484
485
|
}
|
|
485
486
|
|
|
486
487
|
// Object with explicit mode — pass through
|