@cavuno/board 4.4.0 → 4.5.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.
Files changed (43) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/README.md +93 -77
  3. package/dist/{_spec-COlkrizX.d.mts → _spec-BJah6GIZ.d.mts} +55 -0
  4. package/dist/{_spec-COlkrizX.d.ts → _spec-BJah6GIZ.d.ts} +55 -0
  5. package/dist/{blog-DO8Yn21_.d.mts → blog-4Owyo4U_.d.mts} +1 -1
  6. package/dist/{blog-CgA_ljHa.d.ts → blog-DJi_1n7W.d.ts} +1 -1
  7. package/dist/{board-JgFR-2UW.d.mts → board-CpR7o9bL.d.mts} +2 -2
  8. package/dist/{board-D51C3gB5.d.ts → board-KDx9U0nw.d.ts} +2 -2
  9. package/dist/{breadcrumbs-_QzN4nEk.d.ts → breadcrumbs-CJ-NpA-V.d.ts} +2 -2
  10. package/dist/{breadcrumbs-zAN2biAq.d.mts → breadcrumbs-DOJH_7nO.d.mts} +2 -2
  11. package/dist/browser/cavuno-board.global.min.js +1 -1
  12. package/dist/{chunk-2ETP5UH4.mjs → chunk-GC5QWN7Y.mjs} +16 -0
  13. package/dist/{chunk-YEAQ3JEI.mjs → chunk-VWGF4I5C.mjs} +143 -4
  14. package/dist/filters.d.mts +2 -2
  15. package/dist/filters.d.ts +2 -2
  16. package/dist/format.d.mts +4 -4
  17. package/dist/format.d.ts +4 -4
  18. package/dist/format.js +15 -2
  19. package/dist/format.mjs +2 -126
  20. package/dist/index.d.mts +75 -12
  21. package/dist/index.d.ts +75 -12
  22. package/dist/index.js +187 -1
  23. package/dist/index.mjs +172 -2
  24. package/dist/{jobs-DOF3QXdq.d.ts → jobs-Ay-V6Q6y.d.ts} +1 -1
  25. package/dist/{jobs-C1Mxty1n.d.mts → jobs-C27qlt6o.d.mts} +1 -1
  26. package/dist/{search-Cx_dsVUb.d.mts → search-CC-rlMgk.d.mts} +1 -1
  27. package/dist/{search-_QDaN6Um.d.ts → search-fG_K9J8x.d.ts} +1 -1
  28. package/dist/seo.d.mts +6 -6
  29. package/dist/seo.d.ts +6 -6
  30. package/dist/seo.js +16 -1
  31. package/dist/seo.mjs +1 -1
  32. package/dist/server.d.mts +5 -5
  33. package/dist/server.d.ts +5 -5
  34. package/dist/server.mjs +1 -1
  35. package/dist/sitemap.d.mts +5 -5
  36. package/dist/sitemap.d.ts +5 -5
  37. package/dist/suggest.d.mts +2 -2
  38. package/dist/suggest.d.ts +2 -2
  39. package/package.json +1 -1
  40. package/skills/cavuno-board-account/SKILL.md +11 -1
  41. package/skills/cavuno-board-companies/SKILL.md +21 -0
  42. package/skills/cavuno-board-seo/SALARY.md +2 -1
  43. package/skills/manifest.json +1 -1
@@ -12,6 +12,27 @@ Board-wide jobs use `jobs.*`, board-wide salary hubs use `salaries.*`, and
12
12
  employer self-service uses authenticated `board.me.companies.*`. The host app
13
13
  owns admin writes, sitemaps, and OG-image routes.
14
14
 
15
+ An approved admin can delete a company they manage and can list, retitle, or
16
+ remove members. Any approved member can leave with `board.me.companies.leave`.
17
+ Demoting, removing, or leaving as the last admin is `last_admin`. Admins
18
+ invite by email; approved members can list pending invites; accept is
19
+ session-gated on `board.me.acceptInvite`.
20
+
21
+ ```ts snippet
22
+ await board.me.companies.delete('acme');
23
+ const { data: members } = await board.me.companies.listMembers('acme');
24
+ await board.me.companies.updateMemberRole('acme', members[0].id, {
25
+ role: 'admin',
26
+ });
27
+ await board.me.companies.removeMember('acme', members[0].id);
28
+ await board.me.companies.leave('acme');
29
+
30
+ const { data: invites } = await board.me.companies.listInvites('acme');
31
+ await board.me.companies.createInvite('acme', { email: 'ada@acme.test' });
32
+ await board.me.companies.revokeInvite('acme', invites[0].id);
33
+ const { companySlug } = await board.me.acceptInvite({ token });
34
+ ```
35
+
15
36
  ## List and search
16
37
 
17
38
  `companies.list` returns `CompanyListEnvelope`: `ListEnvelope<PublicCompany>`
@@ -102,7 +102,8 @@ const index = itemListJsonLd([
102
102
  - `formatSalaryStat(locale, value, currency, notation?)` /
103
103
  `formatSalaryStatRange(locale, min, max, currency, notation?)` for
104
104
  salary-page amounts (currency from the detail, not hardcoded USD;
105
- `formatRange` owns the join). `notation` matches `formatSalaryRange`
105
+ `formatRange` owns the join when present, else two `format()` calls
106
+ joined with an en-dash). `notation` matches `formatSalaryRange`
106
107
  (magnitude default when omitted; pass `'standard'` for full figures).
107
108
  Returns `null` when currency is empty or `Intl` rejects inputs.
108
109
  - `SENIORITY_ORDER` / `sortBySeniority` for seniority ladder ordering
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.4.0",
2
+ "version": "4.5.0",
3
3
  "skills": [
4
4
  {
5
5
  "name": "cavuno-board-account",