@colixsystems/widget-sdk 0.131.0 → 0.132.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
@@ -70,7 +70,13 @@ See the design reference for the full architecture: [`docs/architecture/widget-m
70
70
 
71
71
  ## Status
72
72
 
73
- `v0.131.0` — pre-publish. The package surface (types, function names, export paths) is the v1 contract; runtime behaviour for some hooks is stubbed (each hook documents what's wired and what isn't). It is **not yet published to npm**.
73
+ `v0.132.0` — pre-publish. The package surface (types, function names, export paths) is the v1 contract; runtime behaviour for some hooks is stubbed (each hook documents what's wired and what isn't). It is **not yet published to npm**.
74
+
75
+ ### What's new in 0.132.0 (contract 1.102.0)
76
+
77
+ **BREAKING: the top bar has no divider — `resolveTopBarTokens` drops `borderColor` and `borderWidth` (sc-7360).** The bar and its tab row are one surface; a line under the bar ruled it off from its own menu, and a line under the tabs ruled the menu off from the page it navigates. Neither host draws one any more, the Design page offers no colour or width for one, and `TopBarTokens` no longer carries the two fields. A stored `topBar.borderColor` / `borderWidth` is **inert, not migrated** — nothing reads it, and the theme coercer drops it from a saved look or a Mason `set_theme`. The rail's, footer's and site header's dividers are unchanged.
78
+
79
+ - `resolveSidebarTokens` / `resolveFooterTokens` are unchanged. No `CONTRACT` change.
74
80
 
75
81
  ### What's new in 0.131.0 (contract 1.102.0)
76
82
 
package/dist/host.d.ts CHANGED
@@ -222,13 +222,12 @@ export function resolveSidebarTokens(theme: unknown): SidebarTokens;
222
222
 
223
223
  /** The top app bar's resolved tokens. `tintColor` and `titleColor` are separate
224
224
  * because an unthemed bar paints its icons slate and its app name in the brand
225
- * colour; an authored `topBar.textColor` drives both. */
225
+ * colour; an authored `topBar.textColor` drives both. The bar carries NO
226
+ * divider (sc-7360): a stored `topBar.borderColor` / `borderWidth` is inert. */
226
227
  export interface TopBarTokens {
227
228
  backgroundColor: string;
228
229
  tintColor: string;
229
230
  titleColor: string;
230
- borderColor: string | null;
231
- borderWidth: number | null;
232
231
  /** The current page's mark — the active link's label, and an active tab's
233
232
  * label plus its indicator. Falls back to the RAIL's `activeColor` and then
234
233
  * to the brand, so an app states its navigation colour once. */
@@ -281,7 +281,9 @@ function resolveSidebarTokens(theme) {
281
281
  }
282
282
 
283
283
  /**
284
- * The top app bar's surface, its two text colours and its opt-in divider.
284
+ * The top app bar's surface and its two text colours. It has NO divider
285
+ * (sc-7360): the bar and its tab row sit in one surface, so a stored divider
286
+ * colour or width on the block is inert on both hosts.
285
287
  *
286
288
  * `tintColor` and `titleColor` are SEPARATE because the web bar has always
287
289
  * painted them differently when the author names nothing: the hamburger and
@@ -295,13 +297,11 @@ function resolveSidebarTokens(theme) {
295
297
  * @param {unknown} theme — the whole `theme_config`; the app's
296
298
  * `backgroundColor`/`backgroundGradient` are read because an unset surface
297
299
  * resolves to the page's, as an `attached` tab's already did (sc-6596).
298
- * @returns {{ backgroundColor: string, tintColor: string, titleColor: string,
299
- * borderColor: string|null, borderWidth: number|null }}
300
+ * @returns {{ backgroundColor: string, tintColor: string, titleColor: string }}
300
301
  */
301
302
  function resolveTopBarTokens(theme) {
302
303
  const config = isPlainObject(theme) ? theme : {};
303
304
  const topBar = isPlainObject(config.topBar) ? config.topBar : {};
304
- const borderColor = hexOrNull(topBar.borderColor);
305
305
  // An explicit colour drives BOTH slots; only the unset case splits.
306
306
  const authored = hexOrNull(topBar.textColor);
307
307
  return {
@@ -324,13 +324,10 @@ function resolveTopBarTokens(theme) {
324
324
  topBar.activeColor,
325
325
  hexOr(sidebarBlock(config).activeColor, brandPrimary(config)),
326
326
  ),
327
- borderColor,
328
- borderWidth: borderColor ? borderWidthOr(topBar.borderWidth) : null,
329
327
  // REQ-NAV-STRUCTURE: how the tab row marks its current page.
330
328
  // `underline` keeps the tab in the bar's surface and marks it with an
331
329
  // indicator. `attached` makes it a real folder tab: it takes the CONTENT's
332
- // surface and sits over the row's divider, so the tab and the page beneath
333
- // read as one plane. Meaningless on a shape that draws no tab row — a host
330
+ // surface and meets the page beneath it, so the two read as one plane. Meaningless on a shape that draws no tab row a host
334
331
  // reads it only where it has tabs to draw.
335
332
  tabStyle: topBar.tabStyle === "attached" ? "attached" : "underline",
336
333
  // The surface an `attached` tab AND its content panel share. One value for
@@ -272,7 +272,9 @@ export function resolveSidebarTokens(theme) {
272
272
  }
273
273
 
274
274
  /**
275
- * The top app bar's surface, its two text colours and its opt-in divider.
275
+ * The top app bar's surface and its two text colours. It has NO divider
276
+ * (sc-7360): the bar and its tab row sit in one surface, so a stored divider
277
+ * colour or width on the block is inert on both hosts.
276
278
  *
277
279
  * `tintColor` and `titleColor` are SEPARATE because the web bar has always
278
280
  * painted them differently when the author names nothing: the hamburger and
@@ -286,13 +288,11 @@ export function resolveSidebarTokens(theme) {
286
288
  * @param {unknown} theme — the whole `theme_config`; the app's
287
289
  * `backgroundColor`/`backgroundGradient` are read because an unset surface
288
290
  * resolves to the page's, as an `attached` tab's already did (sc-6596).
289
- * @returns {{ backgroundColor: string, tintColor: string, titleColor: string,
290
- * borderColor: string|null, borderWidth: number|null }}
291
+ * @returns {{ backgroundColor: string, tintColor: string, titleColor: string }}
291
292
  */
292
293
  export function resolveTopBarTokens(theme) {
293
294
  const config = isPlainObject(theme) ? theme : {};
294
295
  const topBar = isPlainObject(config.topBar) ? config.topBar : {};
295
- const borderColor = hexOrNull(topBar.borderColor);
296
296
  // An explicit colour drives BOTH slots; only the unset case splits.
297
297
  const authored = hexOrNull(topBar.textColor);
298
298
  return {
@@ -315,13 +315,10 @@ export function resolveTopBarTokens(theme) {
315
315
  topBar.activeColor,
316
316
  hexOr(sidebarBlock(config).activeColor, brandPrimary(config)),
317
317
  ),
318
- borderColor,
319
- borderWidth: borderColor ? borderWidthOr(topBar.borderWidth) : null,
320
318
  // REQ-NAV-STRUCTURE: how the tab row marks its current page.
321
319
  // `underline` keeps the tab in the bar's surface and marks it with an
322
320
  // indicator. `attached` makes it a real folder tab: it takes the CONTENT's
323
- // surface and sits over the row's divider, so the tab and the page beneath
324
- // read as one plane. Meaningless on a shape that draws no tab row — a host
321
+ // surface and meets the page beneath it, so the two read as one plane. Meaningless on a shape that draws no tab row a host
325
322
  // reads it only where it has tabs to draw.
326
323
  tabStyle: topBar.tabStyle === "attached" ? "attached" : "underline",
327
324
  // The surface an `attached` tab AND its content panel share. One value for
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colixsystems/widget-sdk",
3
- "version": "0.131.0",
3
+ "version": "0.132.0",
4
4
  "description": "Common widget interface for AppStudio. Implements WidgetManifest, WidgetContext, property schema, and helper hooks.",
5
5
  "homepage": "https://github.com/Colix-AB/AppStudio",
6
6
  "type": "module",