@farming-labs/theme 0.0.14 → 0.0.15

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.
@@ -1116,7 +1116,7 @@ function FullModalAIChat({ api, isOpen, setIsOpen, messages, setMessages, aiInpu
1116
1116
  className: "fd-ai-fm-suggestions-label",
1117
1117
  children: "Try asking:"
1118
1118
  }), /* @__PURE__ */ jsx("div", {
1119
- className: "fd-ai-fm-suggestions",
1119
+ className: suggestedQuestions.length >= 4 ? "fd-ai-fm-suggestions fd-ai-fm-suggestions-two-rows" : "fd-ai-fm-suggestions",
1120
1120
  children: suggestedQuestions.map((q, i) => /* @__PURE__ */ jsx("button", {
1121
1121
  onClick: () => submitQuestion(q),
1122
1122
  className: "fd-ai-fm-suggestion",
@@ -17,7 +17,7 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
17
17
  * in the sidebar header area (Mintlify-style).
18
18
  *
19
19
  * This component is rendered inside the docs layout so the user's root layout
20
- * never needs to be modified — AI features work purely from `docs.config.tsx`.
20
+ * never needs to be modified — AI features work purely from `docs.config.ts`.
21
21
  */
22
22
  function DocsAIFeatures({ mode, position = "bottom-right", floatingStyle = "panel", triggerComponentHtml, suggestedQuestions, aiLabel, loaderVariant, loadingComponentHtml, models, defaultModelId }) {
23
23
  if (mode === "search") return /* @__PURE__ */ jsx(SearchModeAI, {
@@ -493,7 +493,7 @@ function DocsCommandSearch() {
493
493
  }),
494
494
  /* @__PURE__ */ jsx("kbd", {
495
495
  className: "omni-kbd",
496
- children: "⌘K"
496
+ children: "⌘ K"
497
497
  }),
498
498
  /* @__PURE__ */ jsx("button", {
499
499
  "aria-label": "Close",
package/dist/provider.mjs CHANGED
@@ -9,7 +9,7 @@ import { RootProvider as RootProvider$1 } from "fumadocs-ui/provider/next";
9
9
  *
10
10
  * Defaults the search API to `/api/docs` (unified handler).
11
11
  * AI features are handled automatically by `createDocsLayout`
12
- * based on the `ai` config in `docs.config.tsx` — no props needed here.
12
+ * based on the `ai` config in `docs.config.ts` — no props needed here.
13
13
  */
14
14
  function RootProvider({ children, search, ...props }) {
15
15
  return /* @__PURE__ */ jsx(RootProvider$1, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farming-labs/theme",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "description": "Theme package for @farming-labs/docs — layout, provider, MDX components, and styles",
5
5
  "keywords": [
6
6
  "docs",
@@ -103,7 +103,7 @@
103
103
  "next": ">=14.0.0",
104
104
  "tsdown": "^0.20.3",
105
105
  "typescript": "^5.9.3",
106
- "@farming-labs/docs": "0.0.14"
106
+ "@farming-labs/docs": "0.0.15"
107
107
  },
108
108
  "peerDependencies": {
109
109
  "@farming-labs/docs": ">=0.0.1",
package/styles/ai.css CHANGED
@@ -1345,6 +1345,14 @@
1345
1345
  );
1346
1346
  }
1347
1347
 
1348
+ /* 4+ suggestions: wrap into two rows instead of single scrollable row */
1349
+ .fd-ai-fm-suggestions-two-rows {
1350
+ flex-wrap: wrap;
1351
+ overflow-x: visible;
1352
+ mask-image: none;
1353
+ -webkit-mask-image: none;
1354
+ }
1355
+
1348
1356
  .fd-ai-fm-suggestion {
1349
1357
  flex-shrink: 0;
1350
1358
  white-space: nowrap;