@uniweb/core 0.5.15 → 0.5.17

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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/page.js +5 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniweb/core",
3
- "version": "0.5.15",
3
+ "version": "0.5.17",
4
4
  "description": "Core classes for the Uniweb platform - Uniweb, Website, Page, Block",
5
5
  "type": "module",
6
6
  "exports": {
@@ -30,8 +30,8 @@
30
30
  "jest": "^29.7.0"
31
31
  },
32
32
  "dependencies": {
33
- "@uniweb/theming": "0.1.2",
34
- "@uniweb/semantic-parser": "1.1.7"
33
+ "@uniweb/semantic-parser": "1.1.8",
34
+ "@uniweb/theming": "0.1.3"
35
35
  },
36
36
  "scripts": {
37
37
  "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
package/src/page.js CHANGED
@@ -21,6 +21,11 @@ export default class Page {
21
21
  this.keywords = pageData.keywords || null
22
22
  this.lastModified = pageData.lastModified || null
23
23
 
24
+ // Redirect target (if set, this page redirects instead of rendering content)
25
+ this.redirect = pageData.redirect || null
26
+ // Rewrite target (if set, this route is served by an external site)
27
+ this.rewrite = pageData.rewrite || null
28
+
24
29
  // Navigation visibility options
25
30
  this.hidden = pageData.hidden || false
26
31
  this.hideInHeader = pageData.hideInHeader || false