@uniweb/core 0.22.0 → 0.23.0

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/README.md CHANGED
@@ -26,7 +26,7 @@ const uniweb = getUniweb()
26
26
  // Work with the active website
27
27
  const website = uniweb.activeWebsite
28
28
  const page = website.getPage('/about')
29
- const language = website.getLanguage()
29
+ const locale = website.getActiveLocale()
30
30
  ```
31
31
 
32
32
  ## API
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniweb/core",
3
- "version": "0.22.0",
3
+ "version": "0.23.0",
4
4
  "description": "Core classes for the Uniweb platform - Uniweb, Website, Page, Block",
5
5
  "type": "module",
6
6
  "exports": {
package/src/website.js CHANGED
@@ -1231,24 +1231,6 @@ export default class Website {
1231
1231
  return `${this.basePath || ''}${path}`
1232
1232
  }
1233
1233
 
1234
- /**
1235
- * Get search data for all pages
1236
- * @deprecated Use getSearchConfig() and fetch the search index instead
1237
- */
1238
- getSearchData() {
1239
- return this.pages.map((page) => ({
1240
- id: page.id,
1241
- title: page.title,
1242
- href: page.route,
1243
- route: page.route,
1244
- description: page.description,
1245
- content: page
1246
- .getPageBlocks()
1247
- .map((b) => b.title)
1248
- .filter(Boolean)
1249
- .join('\n')
1250
- }))
1251
- }
1252
1234
 
1253
1235
  // ─────────────────────────────────────────────────────────────────
1254
1236
  // Page Hierarchy API (for navigation components)