@7365admin1/layer-common 4.57.0 → 4.57.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @iservice365/layer-common
2
2
 
3
+ ## 4.57.1
4
+
5
+ ### Patch Changes
6
+
7
+ - d219308: Robots: fix the site fleet capability tooltip line break (a literal line break inside a string broke every consuming app build on 4.56.0/4.57.0). The SFC compile test now compiles each component's script as well as its template, so this kind of break fails CI here instead of in the apps.
8
+
3
9
  ## 4.57.0
4
10
 
5
11
  ### Minor Changes
@@ -1593,11 +1599,11 @@
1593
1599
  `utils/console-tier.ts` + `composables/useConsoleTier.ts` mirror the server's
1594
1600
  own rule from two endpoints the console already calls, unprojected:
1595
1601
 
1596
- GET /api/members/user/:user/app/admin the Seven365 staff membership
1597
- GET /api/roles/id/:role that membership's role document
1602
+ GET /api/members/user/:user/app/admin the Seven365 staff membership
1603
+ GET /api/roles/id/:role that membership's role document
1598
1604
 
1599
- owner = member.type === "admin" && role.type === "admin" && role.default === true
1600
- staff = member.type === "admin" && role.type === "admin"
1605
+ owner = member.type === "admin" && role.type === "admin" && role.default === true
1606
+ staff = member.type === "admin" && role.type === "admin"
1601
1607
 
1602
1608
  `role.default` is the marker because it is the only property of a platform
1603
1609
  staff role no API caller can set - `role.controller.ts` validates create and
@@ -235,8 +235,7 @@ function abilityTip(row: any) {
235
235
  const s = live(row);
236
236
  return robotAbilities({ capabilities: capsOf(row), profile: s?.ok ? s.profile : null, type: row.type, brand: brandName(row.brand, brands.value) })
237
237
  .map((r) => `${r.label}: ${r.value}`)
238
- .join("
239
- ");
238
+ .join("\n");
240
239
  }
241
240
  /** The live fault when the robot answers, else its stored open fault. */
242
241
  const faultOf = (row: any) => (live(row)?.ok ? live(row)?.fault ?? null : row.fault ?? null);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@7365admin1/layer-common",
3
3
  "license": "MIT",
4
4
  "type": "module",
5
- "version": "4.57.0",
5
+ "version": "4.57.1",
6
6
  "author": "7365admin1",
7
7
  "main": "./nuxt.config.ts",
8
8
  "//files": "What a consumer extending this layer actually loads. Without this npm ships the whole working tree - the changesets, the CI workflows, the render harness in tools/ and any scratch directory that happened to exist at publish time. Nuxt resolves a layer by directory, so every runtime directory below has to stay listed; adding a new top-level runtime directory means adding it here too.",