@uniweb/core 1.6.8 → 1.6.9

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/index.js +7 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniweb/core",
3
- "version": "1.6.8",
3
+ "version": "1.6.9",
4
4
  "description": "Core classes for the Uniweb platform - Uniweb, Website, Page, Block",
5
5
  "type": "module",
6
6
  "exports": {
@@ -53,8 +53,8 @@
53
53
  "vitest": "^4.1.7"
54
54
  },
55
55
  "dependencies": {
56
- "@uniweb/theming": "~1.3.2",
57
- "@uniweb/semantic-parser": "~1.13.2"
56
+ "@uniweb/semantic-parser": "~1.13.2",
57
+ "@uniweb/theming": "~1.3.2"
58
58
  },
59
59
  "scripts": {
60
60
  "test": "vitest run"
package/src/index.js CHANGED
@@ -111,6 +111,13 @@ export { resolveService, resolveServiceUrl, readServiceOptions } from './service
111
111
  export { applyBasePath } from './base-path.js'
112
112
  // A site's address and the absolute URLs stated on it — also the leaf `@uniweb/core/site-address`.
113
113
  export { siteAddress, pageUrl, absoluteUrl } from './site-address.js'
114
+ // The content parser and its sanitizer, for code a foundation BUNDLES (kit's `Render`, `Icon`,
115
+ // `Scene`). A foundation leaves `@uniweb/core` for the runtime to supply, so what it takes from
116
+ // here is the runtime's copy, the one Block parses every section with, never a second copy frozen
117
+ // at the foundation's build. A foundation imports these by name and a published one never
118
+ // changes, so none of them may leave this entry.
119
+ export { parseContent } from '@uniweb/semantic-parser'
120
+ export { sanitizeSVG, isStyleName } from '@uniweb/semantic-parser/sanitize'
114
121
 
115
122
  /**
116
123
  * The singleton Uniweb instance.