@uniweb/kit 0.19.18 → 0.20.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniweb/kit",
3
- "version": "0.19.18",
3
+ "version": "0.20.1",
4
4
  "description": "Standard component library for Uniweb foundations",
5
5
  "type": "module",
6
6
  "exports": {
@@ -43,11 +43,11 @@
43
43
  "shiki": "^3.0.0",
44
44
  "tailwind-merge": "^3.6.0",
45
45
  "temml": "^0.13.2",
46
- "@uniweb/core": "^0.37.2",
47
- "@uniweb/semantic-parser": "^1.5.1",
48
- "@uniweb/scene": "^0.1.3",
49
- "@uniweb/schemas": "^0.12.0",
50
- "@uniweb/projections": "^0.7.14"
46
+ "@uniweb/core": "~0.38.2",
47
+ "@uniweb/projections": "~0.7.16",
48
+ "@uniweb/scene": "~0.1.3",
49
+ "@uniweb/semantic-parser": "~1.5.1",
50
+ "@uniweb/schemas": "~0.13.0"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "react": "^19.0.0",
package/src/index.js CHANGED
@@ -143,7 +143,7 @@ export {
143
143
  resolveService,
144
144
  resolveServiceUrl,
145
145
  // ⭐ Call one of these before rendering UI for a service. False ⇒ draw nothing.
146
- isApiEnabled,
146
+ isBackendEnabled,
147
147
  isSearchEnabled,
148
148
  isSubmitEnabled,
149
149
  isTrackingEnabled,
@@ -255,7 +255,7 @@ export function headingId(text) {
255
255
 
256
256
  // Service predicates — the one thing to call before rendering UI for a service.
257
257
  export {
258
- isApiEnabled,
258
+ isBackendEnabled,
259
259
  isSearchEnabled,
260
260
  isSubmitEnabled,
261
261
  isTrackingEnabled,
@@ -80,16 +80,21 @@ function activeWebsite() {
80
80
  * writes? The question to ask before drawing a sign-in affordance or any
81
81
  * control only a backend can answer.
82
82
  *
83
- * ⚠️ **`@uniweb/api` exports its OWN `isApiEnabled`, it does not re-export this
84
- * one** — *this line claimed it did until 2026-09-15.* Theirs tests
83
+ * ⚠️ **`@uniweb/api` exports its OWN `isBackendEnabled`, it does not re-export
84
+ * this one** — *this line claimed it did until 2026-09-15.* Theirs tests
85
85
  * `resolveBase(website) !== null` and takes an optional website; this one calls
86
- * `isServiceEnabled('api')` on the active site. They agree — both bottom out in
87
- * `resolveService(website, 'api')`, and the input that would split them is
86
+ * `isServiceEnabled('backend')` on the active site. They agree — both bottom out
87
+ * in `resolveService(website, 'backend')`, and the input that would split them is
88
88
  * unreachable — but they are two implementations, so a change to either is not a
89
89
  * change to both.
90
+ *
91
+ * ⛔ **It was `isApiEnabled`, asking for the service `api`, until 2026-10-07**,
92
+ * when the site's own backend became the `backend` service: a service is named for
93
+ * what it gives the site, and `/api` is only the interface it answers on. No alias —
94
+ * a foundation importing the old name fails at its build, where someone will see it.
90
95
  */
91
- export function isApiEnabled() {
92
- return activeWebsite()?.isServiceEnabled('api') ?? false
96
+ export function isBackendEnabled() {
97
+ return activeWebsite()?.isServiceEnabled('backend') ?? false
93
98
  }
94
99
 
95
100
  /**