@uniweb/core 0.24.0 → 0.24.1

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 +11 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniweb/core",
3
- "version": "0.24.0",
3
+ "version": "0.24.1",
4
4
  "description": "Core classes for the Uniweb platform - Uniweb, Website, Page, Block",
5
5
  "type": "module",
6
6
  "exports": {
@@ -43,8 +43,8 @@
43
43
  "vitest": "^4.1.7"
44
44
  },
45
45
  "dependencies": {
46
- "@uniweb/semantic-parser": "^1.4.0",
47
- "@uniweb/theming": "^0.1.15"
46
+ "@uniweb/theming": "^0.1.15",
47
+ "@uniweb/semantic-parser": "^1.4.0"
48
48
  },
49
49
  "scripts": {
50
50
  "test": "vitest run"
package/src/index.js CHANGED
@@ -30,7 +30,17 @@ export {
30
30
  normalizeLanguageList,
31
31
  resolveDefaultLocale,
32
32
  resolvePublishableLocales,
33
- validateLanguageConfig
33
+ validateLanguageConfig,
34
+ // Display helpers, on the index because `@uniweb/kit` renders with them.
35
+ //
36
+ // ⛔ A package that a foundation BUNDLES — kit, api — must reach core through
37
+ // the bare `@uniweb/core`, never a subpath. Rollup's `external` matcher is
38
+ // exact-string, so only the bare specifier is dropped from the bundle; a leaf
39
+ // import compiles a SECOND copy of core into every foundation that uses it,
40
+ // which on a runtime-linked site puts two versions of core on one page.
41
+ // ⇒ Anything such a package needs belongs here, not only behind a subpath.
42
+ LOCALE_DISPLAY_NAMES,
43
+ localeLabel
34
44
  } from './locale-config.js'
35
45
  export {
36
46
  DATA_DIR,