@uniweb/core 0.7.2 → 0.7.3
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/website.js +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniweb/core",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.3",
|
|
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.11",
|
|
34
34
|
"@uniweb/theming": "0.1.3"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
package/src/website.js
CHANGED
|
@@ -83,6 +83,7 @@ export default class Website {
|
|
|
83
83
|
this._routeTranslations = {}
|
|
84
84
|
this.basePath = ''
|
|
85
85
|
this.versionedScopes = {}
|
|
86
|
+
this.assets = {}
|
|
86
87
|
this._pageIdMap = new Map()
|
|
87
88
|
|
|
88
89
|
this._applyContent(content)
|
|
@@ -105,6 +106,7 @@ export default class Website {
|
|
|
105
106
|
layouts,
|
|
106
107
|
notFound,
|
|
107
108
|
versionedScopes = {},
|
|
109
|
+
assets = {},
|
|
108
110
|
} = content || {}
|
|
109
111
|
|
|
110
112
|
this.name = config.name || ''
|
|
@@ -162,6 +164,7 @@ export default class Website {
|
|
|
162
164
|
|
|
163
165
|
this._routeTranslations = this._buildRouteTranslations(config)
|
|
164
166
|
this.versionedScopes = versionedScopes
|
|
167
|
+
this.assets = assets
|
|
165
168
|
}
|
|
166
169
|
|
|
167
170
|
/**
|