@checkstack/api-docs-frontend 0.1.35 → 0.1.36

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,48 @@
1
1
  # @checkstack/api-docs-frontend
2
2
 
3
+ ## 0.1.36
4
+
5
+ ### Patch Changes
6
+
7
+ - 950d6ec: Fix mobile UserMenu items rendering at zero height, group menu items by
8
+ section, and unstack cramped card headers on small viewports.
9
+
10
+ - **UserMenu mobile bug**: On mobile, the user-menu Sheet rendered every
11
+ menu item as a grid row, which combined with `flex-shrink: 1` on each
12
+ item collapsed the buttons whose internal layout uses `display: flex`
13
+ (the items registered with `useNavigate` rather than `<Link>`) to zero
14
+ content height. Switched the mobile container to a flex column with
15
+ `[&>*]:shrink-0` and added `min-h-0` so the sheet scrolls correctly
16
+ when the list overflows.
17
+
18
+ - **UserMenu grouping**: Slot extensions now accept an optional `group`
19
+ field. The user menu buckets `UserMenuItemsSlot` extensions by `group`
20
+ and renders each group under a labeled header (`Workspace`,
21
+ `Reliability`, `Configuration`, `Documentation`, `Account`). Existing
22
+ core plugins are tagged with the appropriate group; third-party plugins
23
+ can pick any of these or supply their own label. Untagged extensions
24
+ render last with no header. `UserMenuItemsBottomSlot` is unaffected.
25
+
26
+ - **Card header responsiveness**: `CardHeaderRow` (the primitive shared by
27
+ Incident, Maintenance, Auth, Catalog, GitOps and other config cards) now
28
+ stacks vertically on narrow viewports and only switches to a single row
29
+ at the `sm` breakpoint, so titles and adjacent filter controls (e.g.
30
+ status `Select`, "Show resolved" checkbox) no longer cram together on
31
+ mobile. Refactored the Incident and Maintenance config pages to use the
32
+ primitive instead of a hand-rolled `flex items-center justify-between`
33
+ row, and made their `Select` triggers full-width on mobile.
34
+
35
+ - Updated dependencies [42abfff]
36
+ - Updated dependencies [3547670]
37
+ - Updated dependencies [1ef2e79]
38
+ - Updated dependencies [aa89bc5]
39
+ - Updated dependencies [950d6ec]
40
+ - Updated dependencies [3547670]
41
+ - @checkstack/common@0.9.0
42
+ - @checkstack/ui@1.8.0
43
+ - @checkstack/frontend-api@0.5.0
44
+ - @checkstack/api-docs-common@0.1.12
45
+
3
46
  ## 0.1.35
4
47
 
5
48
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checkstack/api-docs-frontend",
3
- "version": "0.1.35",
3
+ "version": "0.1.36",
4
4
  "license": "Elastic-2.0",
5
5
  "type": "module",
6
6
  "main": "src/index.tsx",
@@ -13,10 +13,10 @@
13
13
  "lint:code": "eslint . --max-warnings 0"
14
14
  },
15
15
  "dependencies": {
16
- "@checkstack/frontend-api": "0.4.1",
17
- "@checkstack/common": "0.7.0",
18
- "@checkstack/api-docs-common": "0.1.10",
19
- "@checkstack/ui": "1.7.0",
16
+ "@checkstack/frontend-api": "0.4.2",
17
+ "@checkstack/common": "0.8.0",
18
+ "@checkstack/api-docs-common": "0.1.11",
19
+ "@checkstack/ui": "1.7.1",
20
20
  "react": "^18.2.0",
21
21
  "react-router-dom": "^6.22.0",
22
22
  "lucide-react": "^0.344.0"
@@ -24,7 +24,7 @@
24
24
  "devDependencies": {
25
25
  "typescript": "^5.0.0",
26
26
  "@types/react": "^18.2.0",
27
- "@checkstack/tsconfig": "0.0.6",
28
- "@checkstack/scripts": "0.1.2"
27
+ "@checkstack/tsconfig": "0.0.7",
28
+ "@checkstack/scripts": "0.3.0"
29
29
  }
30
30
  }
package/src/index.tsx CHANGED
@@ -25,6 +25,7 @@ export const apiDocsPlugin = createFrontendPlugin({
25
25
  createSlotExtension(UserMenuItemsSlot, {
26
26
  id: "api-docs.user-menu.link",
27
27
  component: ApiDocsMenuItem,
28
+ metadata: { group: "Documentation" },
28
29
  }),
29
30
  ],
30
31
  });