@uniweb/core 0.7.17 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniweb/core",
3
- "version": "0.7.17",
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.6",
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 type ('body', 'heading', 'mono')
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 type
319
+ * @param {string} type - Font role name
319
320
  * @returns {string} CSS var() reference
320
321
  */
321
322
  getFontVar(type) {
package/src/website.js CHANGED
@@ -596,11 +596,12 @@ export default class Website {
596
596
  pageData.notFound = true
597
597
  }
598
598
 
599
- // Store in dynamic context for entity resolution
600
- pageData.dynamicContext.currentItem = currentItem || null
601
- pageData.dynamicContext.allItems = items
602
-
603
- // Track whether collection data was available at creation time
599
+ // Track whether collection data was available at creation time.
600
+ // Note: the matched record and the sibling list are intentionally NOT
601
+ // stored on dynamicContext nothing reads them (documented shape is
602
+ // { paramName, paramValue, schema }; the record reaches components via
603
+ // content.data, siblings via `fetch: { refine: true, detail: false }`).
604
+ // The local `currentItem`/`items` above drive title/description/notFound.
604
605
  pageData._collectionLoaded = items.length > 0
605
606
  }
606
607