@farming-labs/docs 0.1.58 → 0.1.60

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.
@@ -174,7 +174,7 @@ interface UIConfig {
174
174
  /** Whether cards have visible borders @default true */bordered?: boolean; /** Card background color override */
175
175
  background?: string;
176
176
  };
177
- /** Default props/variants for built-in MDX components (Callout, CodeBlock, Tabs, HoverLink, etc.) */
177
+ /** Default props/variants for built-in MDX components (Callout, CodeBlock, Tabs, HoverLink, Prompt, etc.) */
178
178
  components?: {
179
179
  [key: string]: Record<string, unknown> | ((defaults: unknown) => unknown);
180
180
  };
@@ -522,7 +522,12 @@ interface SidebarConfig {
522
522
  *
523
523
  * @example
524
524
  * ```ts
525
- * { name: "Claude", icon: <ClaudeIcon />, urlTemplate: "https://claude.ai?url={url}" }
525
+ * {
526
+ * name: "Claude",
527
+ * icon: <ClaudeIcon />,
528
+ * urlTemplate: "https://claude.ai?url={url}",
529
+ * promptUrlTemplate: "https://claude.ai/new?q={prompt}",
530
+ * }
526
531
  * ```
527
532
  */
528
533
  interface OpenDocsProvider {
@@ -540,6 +545,17 @@ interface OpenDocsProvider {
540
545
  * @example "{githubUrl}" — open current page file on GitHub (edit view)
541
546
  */
542
547
  urlTemplate: string;
548
+ /**
549
+ * Optional URL template used by the built-in `Prompt` MDX component.
550
+ * When omitted, known providers such as ChatGPT, Claude, Cursor, Gemini,
551
+ * and Copilot fall back to a built-in `{prompt}` template by provider name.
552
+ *
553
+ * Placeholders:
554
+ * - `{prompt}` — prompt text (encoded).
555
+ *
556
+ * @example "https://cursor.com/link/prompt?text={prompt}"
557
+ */
558
+ promptUrlTemplate?: string;
543
559
  }
544
560
  /**
545
561
  * Configuration for the "Open in …" dropdown that lets users
@@ -1742,10 +1758,12 @@ interface DocsConfig {
1742
1758
  */
1743
1759
  mcp?: boolean | DocsMcpConfig;
1744
1760
  /**
1745
- * Icon registry for sidebar items.
1761
+ * Shared icon registry for sidebar items and built-in MDX components.
1746
1762
  *
1747
1763
  * Map string labels to React elements. Reference them in page frontmatter
1748
1764
  * with `icon: "label"` and the matching icon renders in the sidebar.
1765
+ * Built-in components such as `Prompt` can also reference these keys for
1766
+ * their card and action icons.
1749
1767
  *
1750
1768
  * @example
1751
1769
  * ```tsx
@@ -1,4 +1,4 @@
1
- import { c as installCommand, i as detectPackageManagerFromLockfile, o as exec, s as fileExists, t as detectFramework } from "./utils-CpTFbAiS.mjs";
1
+ import { c as installCommand, i as detectPackageManagerFromLockfile, o as exec, s as fileExists, t as detectFramework } from "./utils-DSMXVnEu.mjs";
2
2
  import path from "node:path";
3
3
  import pc from "picocolors";
4
4
  import * as p from "@clack/prompts";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farming-labs/docs",
3
- "version": "0.1.58",
3
+ "version": "0.1.60",
4
4
  "description": "Modern, flexible MDX-based docs framework — core types, config, and CLI",
5
5
  "keywords": [
6
6
  "docs",
File without changes