fumadocs-ui 11.3.1 → 12.0.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.
- package/dist/{chunk-24NYFO7H.js → chunk-2KMKNVSN.js} +2 -4
- package/dist/{chunk-C4PI62MH.js → chunk-34Z7WODD.js} +6 -8
- package/dist/{chunk-GDRBCN6Q.js → chunk-3F57TIUQ.js} +21 -7
- package/dist/{chunk-PXDQVGII.js → chunk-7EMVRXMS.js} +10 -1
- package/dist/{chunk-7F2LGCS6.js → chunk-AN2Y6MA2.js} +2 -4
- package/dist/{chunk-PW7TBOIJ.js → chunk-CRYPD6UZ.js} +2 -1
- package/dist/{chunk-UKE65HV3.js → chunk-IOHAG6BY.js} +1 -1
- package/dist/chunk-JQW5DMD2.js +226 -0
- package/dist/{chunk-WNKY4RA5.js → chunk-UBVEKNRF.js} +1 -1
- package/dist/{chunk-E2VA3Y4S.js → chunk-XXVXIK4M.js} +2 -3
- package/dist/components/accordion.js +2 -2
- package/dist/components/api.js +5 -8
- package/dist/components/callout.js +1 -1
- package/dist/components/card.js +1 -1
- package/dist/components/codeblock.js +3 -3
- package/dist/components/dialog/search-algolia.js +4 -3
- package/dist/components/dialog/search-default.js +4 -3
- package/dist/components/dialog/search.js +4 -3
- package/dist/components/files.js +1 -1
- package/dist/components/heading.js +2 -2
- package/dist/components/image-zoom.js +4 -6
- package/dist/components/inline-toc.js +1 -1
- package/dist/components/layout/language-toggle.d.ts +6 -0
- package/dist/components/layout/language-toggle.js +58 -0
- package/dist/components/layout/root-toggle.d.ts +16 -0
- package/dist/components/layout/root-toggle.js +60 -0
- package/dist/components/roll-button.js +2 -3
- package/dist/components/steps.js +1 -1
- package/dist/components/tabs.js +6 -11
- package/dist/components/type-table.js +2 -2
- package/dist/docs.client.d.ts +13 -0
- package/dist/docs.client.js +396 -0
- package/dist/{i18n-p5QWhj_3.d.ts → i18n-CE8z-AAs.d.ts} +1 -0
- package/dist/i18n.d.ts +3 -6
- package/dist/i18n.js +5 -104
- package/dist/{layout-vxXAvjoq.d.ts → layout.client-Duq0TTke.d.ts} +23 -15
- package/dist/layout.client.d.ts +2 -8
- package/dist/layout.client.js +39 -571
- package/dist/layout.d.ts +1 -1
- package/dist/layout.js +42 -28
- package/dist/mdx.client.js +3 -3
- package/dist/mdx.js +4 -4
- package/dist/page.client.js +7 -8
- package/dist/page.js +19 -10
- package/dist/provider.d.ts +12 -13
- package/dist/provider.js +10 -11
- package/dist/style.css +1 -1
- package/dist/tailwind-plugin.cjs +34 -43
- package/dist/tailwind-plugin.js +35 -44
- package/dist/twoslash/popup.js +8 -14
- package/dist/twoslash.css +1 -1
- package/package.json +4 -5
- /package/dist/{chunk-6C3VEZWH.js → chunk-MLKGABMK.js} +0 -0
- /package/dist/{tree-cqNEopxM.d.ts → tree-CrKzI9Nz.d.ts} +0 -0
package/dist/twoslash/popup.js
CHANGED
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
Popover,
|
|
4
4
|
PopoverContent,
|
|
5
5
|
PopoverTrigger
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-UBVEKNRF.js";
|
|
7
7
|
import {
|
|
8
8
|
twMerge
|
|
9
9
|
} from "../chunk-TK3TM3MR.js";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-MLKGABMK.js";
|
|
11
11
|
|
|
12
12
|
// src/twoslash/popup.tsx
|
|
13
13
|
import * as React from "react";
|
|
@@ -24,10 +24,8 @@ function Popup({
|
|
|
24
24
|
const closeTimeoutRef = React.useRef();
|
|
25
25
|
const handleOpen = React.useCallback(
|
|
26
26
|
(e) => {
|
|
27
|
-
if (e.pointerType === "touch")
|
|
28
|
-
|
|
29
|
-
if (closeTimeoutRef.current)
|
|
30
|
-
clearTimeout(closeTimeoutRef.current);
|
|
27
|
+
if (e.pointerType === "touch") return;
|
|
28
|
+
if (closeTimeoutRef.current) clearTimeout(closeTimeoutRef.current);
|
|
31
29
|
openTimeoutRef.current = window.setTimeout(() => {
|
|
32
30
|
setOpen(true);
|
|
33
31
|
}, delay);
|
|
@@ -36,10 +34,8 @@ function Popup({
|
|
|
36
34
|
);
|
|
37
35
|
const handleClose = React.useCallback(
|
|
38
36
|
(e) => {
|
|
39
|
-
if (e.pointerType === "touch")
|
|
40
|
-
|
|
41
|
-
if (openTimeoutRef.current)
|
|
42
|
-
clearTimeout(openTimeoutRef.current);
|
|
37
|
+
if (e.pointerType === "touch") return;
|
|
38
|
+
if (openTimeoutRef.current) clearTimeout(openTimeoutRef.current);
|
|
43
39
|
closeTimeoutRef.current = window.setTimeout(() => {
|
|
44
40
|
setOpen(false);
|
|
45
41
|
}, delay);
|
|
@@ -64,8 +60,7 @@ function Popup({
|
|
|
64
60
|
}
|
|
65
61
|
var PopupTrigger = React.forwardRef((props, ref) => {
|
|
66
62
|
const ctx = React.useContext(PopupContext);
|
|
67
|
-
if (!ctx)
|
|
68
|
-
throw new Error("Missing Popup Context");
|
|
63
|
+
if (!ctx) throw new Error("Missing Popup Context");
|
|
69
64
|
return /* @__PURE__ */ jsx(
|
|
70
65
|
PopoverTrigger,
|
|
71
66
|
{
|
|
@@ -79,8 +74,7 @@ var PopupTrigger = React.forwardRef((props, ref) => {
|
|
|
79
74
|
PopupTrigger.displayName = "PopupTrigger";
|
|
80
75
|
var PopupContent = React.forwardRef(({ className, ...props }, ref) => {
|
|
81
76
|
const ctx = React.useContext(PopupContext);
|
|
82
|
-
if (!ctx)
|
|
83
|
-
throw new Error("Missing Popup Context");
|
|
77
|
+
if (!ctx) throw new Error("Missing Popup Context");
|
|
84
78
|
return /* @__PURE__ */ jsx(
|
|
85
79
|
PopoverContent,
|
|
86
80
|
{
|
package/dist/twoslash.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--twoslash-error-color:#d45656;--twoslash-error-bg:rgba(212,86,86,.125);--twoslash-tag-color:#3772cf;--twoslash-tag-bg:rgba(55,114,207,.125);--twoslash-tag-warn-color:#c37d0d;--twoslash-tag-warn-bg:rgba(195,125,13,.125);--twoslash-tag-annotate-color:#1ba673;--twoslash-tag-annotate-bg:rgba(27,166,115,.125)}.twoslash-query-presisted .twoslash-popup-container,.twoslash-completion-list{-webkit-user-select:none;-ms-user-select:none;user-select:none;white-space:normal;background-color:hsl(var(--popover));color:hsl(var(--popover-foreground));z-index:10;border-width:1px;border-radius:6px;flex-direction:column;width:20rem;padding:8px;display:flex;position:absolute;top:0;left:0;transform:translateY(16px);box-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1)}.twoslash-query-presisted .twoslash-popup-container:hover,.twoslash-completion-list:hover{-webkit-user-select:auto;-ms-user-select:auto;user-select:auto}.twoslash-popup-arrow{pointer-events:none;background-color:hsl(var(--popover));border-top-width:1px;border-right-width:1px;width:6px;height:6px;position:absolute;top:-4px;left:1em;transform:rotate(-45deg)}.twoslash-popup-docs-tag{flex-direction:column;gap:.5em;display:flex}.twoslash-popup-docs-tag-name{font-weight:600}.twoslash-popup-code .line{padding-left:0!important}.twoslash-popup-docs{color:hsl(var(--muted-foreground))!important;margin-top:8px!important;font-size:14px!important;line-height:20px!important}.twoslash:hover .twoslash-hover{border-color:currentColor}.twoslash .twoslash-hover{border-color:transparent;border-bottom-style:dotted;border-bottom-width:1px;transition:border .3s;position:relative}.twoslash .twoslash-error-line{background-color:var(--twoslash-error-bg);border-left:3px solid var(--twoslash-error-color);color:var(--twoslash-error-color);margin:.2em 0;padding:6px 12px;position:relative}.twoslash .twoslash-error{-webkit-text-decoration:wavy underline var(--twoslash-error-color);text-decoration:wavy underline var(--twoslash-error-color);padding-bottom:2px}.twoslash .twoslash-completion-cursor{position:relative}.twoslash-completion-list:before{content:" ";background-color:hsl(var(--foreground));width:1px;height:1em;position:absolute;top:-1.2em;left:-1px}.twoslash-completion-list li{text-overflow:ellipsis;white-space:nowrap;align-items:center;gap:.5rem;font-size:13px;display:inline-flex;overflow:hidden}.twoslash-completion-list li span.twoslash-completions-unmatched{color:hsl(var(--muted-foreground))}.twoslash-completion-list .deprecated{opacity:.5;text-decoration:line-through}.twoslash-completion-list .twoslash-completions-icon{color:hsl(var(--muted-foreground));flex:none;width:1em}.twoslash .twoslash-tag-line{background-color:var(--twoslash-tag-bg);border-left:3px solid var(--twoslash-tag-color);color:var(--twoslash-tag-color);align-items:center;gap:.3em;margin:.2em 0;padding:6px 10px;display:flex;position:relative}.twoslash .twoslash-tag-line .twoslash-tag-icon{color:inherit;width:1.1em}.twoslash .twoslash-tag-line.twoslash-tag-error-line{background-color:var(--twoslash-error-bg);border-left:3px solid var(--twoslash-error-color);color:var(--twoslash-error-color)}.twoslash .twoslash-tag-line.twoslash-tag-warn-line{background-color:var(--twoslash-tag-warn-bg);border-left:3px solid var(--twoslash-tag-warn-color);color:var(--twoslash-tag-warn-color)}.twoslash .twoslash-tag-line.twoslash-tag-annotate-line{background-color:var(--twoslash-tag-annotate-bg);border-left:3px solid var(--twoslash-tag-annotate-color);color:var(--twoslash-tag-annotate-color)}@media (prefers-reduced-motion:reduce){.twoslash *{transition:none!important}}
|
|
1
|
+
:root{--twoslash-error-color:#d45656;--twoslash-error-bg:rgba(212,86,86,.125);--twoslash-tag-color:#3772cf;--twoslash-tag-bg:rgba(55,114,207,.125);--twoslash-tag-warn-color:#c37d0d;--twoslash-tag-warn-bg:rgba(195,125,13,.125);--twoslash-tag-annotate-color:#1ba673;--twoslash-tag-annotate-bg:rgba(27,166,115,.125)}.twoslash-query-presisted .twoslash-popup-container,.twoslash-completion-list{-webkit-user-select:none;-ms-user-select:none;user-select:none;white-space:normal;background-color:hsl(var(--popover));color:hsl(var(--popover-foreground));z-index:10;border-width:1px;border-radius:6px;flex-direction:column;width:20rem;padding:8px;display:flex;position:absolute;top:0;left:0;transform:translateY(16px);box-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1)}.twoslash-query-presisted .twoslash-popup-container:hover,.twoslash-completion-list:hover{-webkit-user-select:auto;-ms-user-select:auto;user-select:auto}.twoslash-popup-arrow{pointer-events:none;background-color:hsl(var(--popover));border-top-width:1px;border-right-width:1px;width:6px;height:6px;position:absolute;top:-4px;left:1em;transform:rotate(-45deg)}.twoslash-popup-docs-tag{flex-direction:column;gap:.5em;display:flex}.twoslash-popup-docs-tag-name{font-weight:600}.twoslash-popup-code{font-size:14px;display:block!important}.twoslash-popup-code .line{padding-left:0!important}.twoslash-popup-docs{color:hsl(var(--muted-foreground))!important;margin-top:8px!important;font-size:14px!important;line-height:20px!important}.twoslash:hover .twoslash-hover{border-color:currentColor}.twoslash .twoslash-hover{border-color:transparent;border-bottom-style:dotted;border-bottom-width:1px;transition:border .3s;position:relative}.twoslash .twoslash-error-line{background-color:var(--twoslash-error-bg);border-left:3px solid var(--twoslash-error-color);color:var(--twoslash-error-color);margin:.2em 0;padding:6px 12px;position:relative}.twoslash .twoslash-error{-webkit-text-decoration:wavy underline var(--twoslash-error-color);text-decoration:wavy underline var(--twoslash-error-color);padding-bottom:2px}.twoslash .twoslash-completion-cursor{position:relative}.twoslash-completion-list:before{content:" ";background-color:hsl(var(--foreground));width:1px;height:1em;position:absolute;top:-1.2em;left:-1px}.twoslash-completion-list li{text-overflow:ellipsis;white-space:nowrap;align-items:center;gap:.5rem;font-size:13px;display:inline-flex;overflow:hidden}.twoslash-completion-list li span.twoslash-completions-unmatched{color:hsl(var(--muted-foreground))}.twoslash-completion-list .deprecated{opacity:.5;text-decoration:line-through}.twoslash-completion-list .twoslash-completions-icon{color:hsl(var(--muted-foreground));flex:none;width:1em}.twoslash .twoslash-tag-line{background-color:var(--twoslash-tag-bg);border-left:3px solid var(--twoslash-tag-color);color:var(--twoslash-tag-color);align-items:center;gap:.3em;margin:.2em 0;padding:6px 10px;display:flex;position:relative}.twoslash .twoslash-tag-line .twoslash-tag-icon{color:inherit;width:1.1em}.twoslash .twoslash-tag-line.twoslash-tag-error-line{background-color:var(--twoslash-error-bg);border-left:3px solid var(--twoslash-error-color);color:var(--twoslash-error-color)}.twoslash .twoslash-tag-line.twoslash-tag-warn-line{background-color:var(--twoslash-tag-warn-bg);border-left:3px solid var(--twoslash-tag-warn-color);color:var(--twoslash-tag-warn-color)}.twoslash .twoslash-tag-line.twoslash-tag-annotate-line{background-color:var(--twoslash-tag-annotate-bg);border-left:3px solid var(--twoslash-tag-annotate-color);color:var(--twoslash-tag-annotate-color)}@media (prefers-reduced-motion:reduce){.twoslash *{transition:none!important}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fumadocs-ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.0",
|
|
4
4
|
"description": "The framework for building a documentation website in Next.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NextJs",
|
|
@@ -87,16 +87,15 @@
|
|
|
87
87
|
"@radix-ui/react-direction": "^1.0.1",
|
|
88
88
|
"@radix-ui/react-popover": "^1.0.7",
|
|
89
89
|
"@radix-ui/react-scroll-area": "^1.0.5",
|
|
90
|
-
"@radix-ui/react-select": "^2.0.0",
|
|
91
90
|
"@radix-ui/react-tabs": "^1.0.4",
|
|
92
91
|
"@tailwindcss/typography": "^0.5.13",
|
|
93
92
|
"class-variance-authority": "^0.7.0",
|
|
94
93
|
"cmdk": "^1.0.0",
|
|
95
|
-
"lucide-react": "^0.
|
|
94
|
+
"lucide-react": "^0.390.0",
|
|
96
95
|
"next-themes": "^0.3.0",
|
|
97
96
|
"react-medium-image-zoom": "^5.2.4",
|
|
98
97
|
"tailwind-merge": "^2.3.0",
|
|
99
|
-
"fumadocs-core": "
|
|
98
|
+
"fumadocs-core": "12.0.0"
|
|
100
99
|
},
|
|
101
100
|
"devDependencies": {
|
|
102
101
|
"@algolia/client-search": "^4.23.3",
|
|
@@ -108,7 +107,7 @@
|
|
|
108
107
|
"postcss": "^8.4.38",
|
|
109
108
|
"postcss-cli": "^11.0.0",
|
|
110
109
|
"postcss-lightningcss": "^1.0.0",
|
|
111
|
-
"tailwindcss": "^3.4.
|
|
110
|
+
"tailwindcss": "^3.4.4",
|
|
112
111
|
"eslint-config-custom": "0.0.0",
|
|
113
112
|
"tsconfig": "0.0.0"
|
|
114
113
|
},
|
|
File without changes
|
|
File without changes
|