@farming-labs/docs 0.0.2-beta.23 → 0.0.2-beta.24

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 (2) hide show
  1. package/dist/index.d.mts +30 -4
  2. package/package.json +1 -1
package/dist/index.d.mts CHANGED
@@ -757,11 +757,37 @@ interface AIConfig {
757
757
  */
758
758
  docsUrl?: string;
759
759
  /**
760
- * Custom loading indicator shown while the AI is generating a response.
761
- * Replaces the default "AI is thinking..." indicator.
760
+ * Loading indicator variant shown while the AI generates a response.
761
+ *
762
+ * - `"shimmer-dots"` — shimmer text + typing dots (default)
763
+ * - `"circular"` — spinning ring
764
+ * - `"dots"` — bouncing dots
765
+ * - `"typing"` — typing dots
766
+ * - `"wave"` — wave bars
767
+ * - `"bars"` — thick wave bars
768
+ * - `"pulse"` — pulsing ring
769
+ * - `"pulse-dot"` — pulsing dot
770
+ * - `"terminal"` — blinking terminal cursor
771
+ * - `"text-blink"` — blinking text
772
+ * - `"text-shimmer"` — shimmer text only
773
+ * - `"loading-dots"` — "Thinking..." with animated dots
774
+ *
775
+ * @default "shimmer-dots"
762
776
  *
763
- * Pass a function that receives `{ name }` (the `aiLabel` value) and
764
- * returns a React element. This way you don't need to duplicate the label.
777
+ * @example
778
+ * ```ts
779
+ * ai: {
780
+ * enabled: true,
781
+ * loader: "wave",
782
+ * }
783
+ * ```
784
+ */
785
+ loader?: "shimmer-dots" | "circular" | "dots" | "typing" | "wave" | "bars" | "pulse" | "pulse-dot" | "terminal" | "text-blink" | "text-shimmer" | "loading-dots";
786
+ /**
787
+ * Custom loading indicator that overrides the built-in `loader` variant.
788
+ * Receives `{ name }` (the `aiLabel` value) and returns a React element.
789
+ *
790
+ * Only works in Next.js. For other frameworks, use the `loader` option.
765
791
  *
766
792
  * @example
767
793
  * ```tsx
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farming-labs/docs",
3
- "version": "0.0.2-beta.23",
3
+ "version": "0.0.2-beta.24",
4
4
  "description": "Modern, flexible MDX-based docs framework — core types, config, and CLI",
5
5
  "keywords": [
6
6
  "docs",