@fumadocs/base-ui 16.4.10 → 16.5.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.
Files changed (83) hide show
  1. package/dist/components/banner.d.ts +2 -2
  2. package/dist/components/banner.d.ts.map +1 -1
  3. package/dist/components/callout.d.ts +5 -5
  4. package/dist/components/callout.d.ts.map +1 -1
  5. package/dist/components/card.d.ts +3 -3
  6. package/dist/components/card.d.ts.map +1 -1
  7. package/dist/components/codeblock.d.ts +7 -7
  8. package/dist/components/codeblock.d.ts.map +1 -1
  9. package/dist/components/dialog/search-algolia.d.ts +2 -2
  10. package/dist/components/dialog/search-default.d.ts +2 -2
  11. package/dist/components/dialog/search-orama.d.ts +2 -2
  12. package/dist/components/dialog/search.d.ts +13 -13
  13. package/dist/components/dynamic-codeblock.core.d.ts +33 -0
  14. package/dist/components/dynamic-codeblock.core.d.ts.map +1 -0
  15. package/dist/components/dynamic-codeblock.core.js +66 -0
  16. package/dist/components/dynamic-codeblock.core.js.map +1 -0
  17. package/dist/components/dynamic-codeblock.d.ts +4 -28
  18. package/dist/components/dynamic-codeblock.d.ts.map +1 -1
  19. package/dist/components/dynamic-codeblock.js +9 -53
  20. package/dist/components/dynamic-codeblock.js.map +1 -1
  21. package/dist/components/github-info.d.ts +2 -2
  22. package/dist/components/github-info.d.ts.map +1 -1
  23. package/dist/components/image-zoom.d.ts +2 -2
  24. package/dist/components/image-zoom.d.ts.map +1 -1
  25. package/dist/components/inline-toc.d.ts +2 -2
  26. package/dist/components/sidebar/base.d.ts +13 -13
  27. package/dist/components/sidebar/link-item.d.ts +2 -2
  28. package/dist/components/sidebar/link-item.d.ts.map +1 -1
  29. package/dist/components/sidebar/page-tree.d.ts +2 -2
  30. package/dist/components/sidebar/tabs/dropdown.d.ts +2 -2
  31. package/dist/components/sidebar/tabs/dropdown.d.ts.map +1 -1
  32. package/dist/components/steps.d.ts +3 -3
  33. package/dist/components/tabs.d.ts +7 -7
  34. package/dist/components/tabs.d.ts.map +1 -1
  35. package/dist/components/type-table.d.ts +2 -2
  36. package/dist/components/type-table.d.ts.map +1 -1
  37. package/dist/components/ui/accordion.d.ts +6 -6
  38. package/dist/components/ui/button.d.ts +1 -1
  39. package/dist/components/ui/button.d.ts.map +1 -1
  40. package/dist/components/ui/collapsible.d.ts +6 -6
  41. package/dist/components/ui/collapsible.d.ts.map +1 -1
  42. package/dist/components/ui/navigation-menu.d.ts +7 -7
  43. package/dist/components/ui/popover.d.ts +3 -3
  44. package/dist/components/ui/popover.d.ts.map +1 -1
  45. package/dist/components/ui/scroll-area.d.ts +4 -4
  46. package/dist/components/ui/scroll-area.d.ts.map +1 -1
  47. package/dist/components/ui/tabs.d.ts +6 -6
  48. package/dist/components/ui/tabs.d.ts.map +1 -1
  49. package/dist/layouts/docs/client.d.ts +7 -7
  50. package/dist/layouts/docs/index.d.ts +2 -2
  51. package/dist/layouts/docs/index.d.ts.map +1 -1
  52. package/dist/layouts/docs/page/client.d.ts +7 -7
  53. package/dist/layouts/docs/page/index.d.ts +5 -5
  54. package/dist/layouts/docs/sidebar.d.ts +17 -17
  55. package/dist/layouts/home/client.d.ts +3 -3
  56. package/dist/layouts/home/index.d.ts +2 -2
  57. package/dist/layouts/home/navbar.d.ts +7 -7
  58. package/dist/layouts/home/navbar.d.ts.map +1 -1
  59. package/dist/layouts/notebook/client.d.ts +8 -8
  60. package/dist/layouts/notebook/index.d.ts +2 -2
  61. package/dist/layouts/notebook/index.d.ts.map +1 -1
  62. package/dist/layouts/notebook/page/client.d.ts +7 -7
  63. package/dist/layouts/notebook/page/index.d.ts +5 -5
  64. package/dist/layouts/notebook/sidebar.d.ts +12 -12
  65. package/dist/layouts/notebook/sidebar.d.ts.map +1 -1
  66. package/dist/layouts/shared/index.d.ts +3 -3
  67. package/dist/layouts/shared/index.d.ts.map +1 -1
  68. package/dist/layouts/shared/language-toggle.d.ts +2 -2
  69. package/dist/layouts/shared/language-toggle.d.ts.map +1 -1
  70. package/dist/layouts/shared/search-toggle.d.ts +3 -3
  71. package/dist/layouts/shared/search-toggle.d.ts.map +1 -1
  72. package/dist/layouts/shared/theme-toggle.d.ts +2 -2
  73. package/dist/layouts/shared/theme-toggle.d.ts.map +1 -1
  74. package/dist/page.d.ts +3 -3
  75. package/dist/page.d.ts.map +1 -1
  76. package/dist/provider/base.d.ts +2 -2
  77. package/dist/provider/next.d.ts +2 -2
  78. package/dist/provider/react-router.d.ts +2 -2
  79. package/dist/provider/tanstack.d.ts +2 -2
  80. package/dist/provider/tanstack.d.ts.map +1 -1
  81. package/dist/provider/waku.d.ts +2 -2
  82. package/dist/provider/waku.d.ts.map +1 -1
  83. package/package.json +4 -4
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime12 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime141 from "react/jsx-runtime";
2
2
  import { HTMLAttributes } from "react";
3
3
 
4
4
  //#region src/components/banner.d.ts
@@ -29,7 +29,7 @@ declare function Banner({
29
29
  * @defaultValue true
30
30
  */
31
31
  changeLayout?: boolean;
32
- }): react_jsx_runtime12.JSX.Element | null;
32
+ }): react_jsx_runtime141.JSX.Element | null;
33
33
  //#endregion
34
34
  export { Banner };
35
35
  //# sourceMappingURL=banner.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"banner.d.ts","names":[],"sources":["../../src/components/banner.tsx"],"sourcesContent":[],"mappings":";;;;KAOK,aAAA;iBAEW,MAAA;;;;;;;GAYb,eAAe;;AAnB+C;AAOjE;EACE,MAAA,CAAA,EAAA,MAAA;EACA;;;EAGA,OAAA,CAAA,EAgBU,aAhBV;EAOgB;;;EAsBjB,aAAA,CAAA,EAAA,MAAA,EAAA;EAAA;;;;;;IAAA,mBAAA,CAAA,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"banner.d.ts","names":[],"sources":["../../src/components/banner.tsx"],"sourcesContent":[],"mappings":";;;;KAOK,aAAA;iBAEW,MAAA;;;;;;;GAYb,eAAe;;AAnB+C;AAOjE;EACE,MAAA,CAAA,EAAA,MAAA;EACA;;;EAGA,OAAA,CAAA,EAgBU,aAhBV;EAOgB;;;EAsBjB,aAAA,CAAA,EAAA,MAAA,EAAA;EAAA;;;;;;IAAA,oBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime49 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime126 from "react/jsx-runtime";
2
2
  import { ComponentProps, ReactNode } from "react";
3
3
 
4
4
  //#region src/components/callout.d.ts
@@ -9,7 +9,7 @@ declare function Callout({
9
9
  ...props
10
10
  }: {
11
11
  title?: ReactNode;
12
- } & Omit<CalloutContainerProps, 'title'>): react_jsx_runtime49.JSX.Element;
12
+ } & Omit<CalloutContainerProps, 'title'>): react_jsx_runtime126.JSX.Element;
13
13
  interface CalloutContainerProps extends ComponentProps<'div'> {
14
14
  /**
15
15
  * @defaultValue info
@@ -27,17 +27,17 @@ declare function CalloutContainer({
27
27
  className,
28
28
  style,
29
29
  ...props
30
- }: CalloutContainerProps): react_jsx_runtime49.JSX.Element;
30
+ }: CalloutContainerProps): react_jsx_runtime126.JSX.Element;
31
31
  declare function CalloutTitle({
32
32
  children,
33
33
  className,
34
34
  ...props
35
- }: ComponentProps<'p'>): react_jsx_runtime49.JSX.Element;
35
+ }: ComponentProps<'p'>): react_jsx_runtime126.JSX.Element;
36
36
  declare function CalloutDescription({
37
37
  children,
38
38
  className,
39
39
  ...props
40
- }: ComponentProps<'p'>): react_jsx_runtime49.JSX.Element;
40
+ }: ComponentProps<'p'>): react_jsx_runtime126.JSX.Element;
41
41
  //#endregion
42
42
  export { Callout, CalloutContainer, CalloutContainerProps, CalloutDescription, CalloutTitle, CalloutType };
43
43
  //# sourceMappingURL=callout.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"callout.d.ts","names":[],"sources":["../../src/components/callout.tsx"],"sourcesContent":[],"mappings":";;;;KAIY,WAAA;iBAII,OAAA;;;;AAJO;UAQV;AARb,C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AAA,CAAA,GAAA,CAAA,OAhBf;AATsC,iBA0D/B,YAAA,CA1D+B;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA0DiB,cA1DjB,CAAA,GAAA,CAAA,CAAA,EA0DoC,oBAAA,CAAA,GAAA,CAAA,OA1DpC;AAAc,iBAkE7C,kBAAA,CAlE6C;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAkES,cAlET,CAAA,GAAA,CAAA,CAAA,EAkE4B,oBAAA,CAAA,GAAA,CAAA,OAlE5B"}
@@ -1,8 +1,8 @@
1
- import * as react_jsx_runtime14 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime124 from "react/jsx-runtime";
2
2
  import { HTMLAttributes, ReactNode } from "react";
3
3
 
4
4
  //#region src/components/card.d.ts
5
- declare function Cards(props: HTMLAttributes<HTMLDivElement>): react_jsx_runtime14.JSX.Element;
5
+ declare function Cards(props: HTMLAttributes<HTMLDivElement>): react_jsx_runtime124.JSX.Element;
6
6
  type CardProps = Omit<HTMLAttributes<HTMLElement>, 'title'> & {
7
7
  icon?: ReactNode;
8
8
  title: ReactNode;
@@ -15,7 +15,7 @@ declare function Card({
15
15
  title,
16
16
  description,
17
17
  ...props
18
- }: CardProps): react_jsx_runtime14.JSX.Element;
18
+ }: CardProps): react_jsx_runtime124.JSX.Element;
19
19
  //#endregion
20
20
  export { Card, CardProps, Cards };
21
21
  //# sourceMappingURL=card.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"card.d.ts","names":[],"sources":["../../src/components/card.tsx"],"sourcesContent":[],"mappings":";;;;iBAIgB,KAAA,QAAa,eAAe,kBAAe,mBAAA,CAAA,GAAA,CAAA;KAQ/C,SAAA,GAAY,KAAK,eAAe;SACnC;EATO,KAAA,EAUP,SAVY;EAAuB,WAAA,CAAA,EAW5B,SAX4B;EAAf,IAAA,CAAA,EAAA,MAAA;EAA8B,QAAA,CAAA,EAAA,OAAA;CAAA;AAQ/C,iBASI,IAAA,CATK;EAAA,IAAA;EAAA,KAAA;EAAA,WAAA;EAAA,GAAA;AAAA,CAAA,EASwC,SATxC,CAAA,EASiD,mBAAA,CAAA,GAAA,CAAA,OATjD"}
1
+ {"version":3,"file":"card.d.ts","names":[],"sources":["../../src/components/card.tsx"],"sourcesContent":[],"mappings":";;;;iBAIgB,KAAA,QAAa,eAAe,kBAAe,oBAAA,CAAA,GAAA,CAAA;KAQ/C,SAAA,GAAY,KAAK,eAAe;SACnC;EATO,KAAA,EAUP,SAVY;EAAuB,WAAA,CAAA,EAW5B,SAX4B;EAAf,IAAA,CAAA,EAAA,MAAA;EAA8B,QAAA,CAAA,EAAA,OAAA;CAAA;AAQ/C,iBASI,IAAA,CATK;EAAA,IAAA;EAAA,KAAA;EAAA,WAAA;EAAA,GAAA;AAAA,CAAA,EASwC,SATxC,CAAA,EASiD,oBAAA,CAAA,GAAA,CAAA,OATjD"}
@@ -1,5 +1,5 @@
1
1
  import { Tabs, TabsContent, TabsList, TabsTrigger } from "./ui/tabs.js";
2
- import * as react_jsx_runtime43 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime130 from "react/jsx-runtime";
3
3
  import { ComponentProps, HTMLAttributes, ReactNode } from "react";
4
4
 
5
5
  //#region src/components/codeblock.d.ts
@@ -36,7 +36,7 @@ interface CodeBlockProps extends ComponentProps<'figure'> {
36
36
  children?: ReactNode;
37
37
  }) => ReactNode;
38
38
  }
39
- declare function Pre(props: ComponentProps<'pre'>): react_jsx_runtime43.JSX.Element;
39
+ declare function Pre(props: ComponentProps<'pre'>): react_jsx_runtime130.JSX.Element;
40
40
  declare function CodeBlock({
41
41
  ref,
42
42
  title,
@@ -47,22 +47,22 @@ declare function CodeBlock({
47
47
  children,
48
48
  Actions,
49
49
  ...props
50
- }: CodeBlockProps): react_jsx_runtime43.JSX.Element;
50
+ }: CodeBlockProps): react_jsx_runtime130.JSX.Element;
51
51
  declare function CodeBlockTabs({
52
52
  ref,
53
53
  className,
54
54
  ...props
55
- }: ComponentProps<typeof Tabs>): react_jsx_runtime43.JSX.Element;
55
+ }: ComponentProps<typeof Tabs>): react_jsx_runtime130.JSX.Element;
56
56
  declare function CodeBlockTabsList({
57
57
  className,
58
58
  ...props
59
- }: ComponentProps<typeof TabsList>): react_jsx_runtime43.JSX.Element;
59
+ }: ComponentProps<typeof TabsList>): react_jsx_runtime130.JSX.Element;
60
60
  declare function CodeBlockTabsTrigger({
61
61
  children,
62
62
  className,
63
63
  ...props
64
- }: ComponentProps<typeof TabsTrigger>): react_jsx_runtime43.JSX.Element;
65
- declare function CodeBlockTab(props: ComponentProps<typeof TabsContent>): react_jsx_runtime43.JSX.Element;
64
+ }: ComponentProps<typeof TabsTrigger>): react_jsx_runtime130.JSX.Element;
65
+ declare function CodeBlockTab(props: ComponentProps<typeof TabsContent>): react_jsx_runtime130.JSX.Element;
66
66
  //#endregion
67
67
  export { CodeBlock, CodeBlockProps, CodeBlockTab, CodeBlockTabs, CodeBlockTabsList, CodeBlockTabsTrigger, Pre };
68
68
  //# sourceMappingURL=codeblock.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"codeblock.d.ts","names":[],"sources":["../../src/components/codeblock.tsx"],"sourcesContent":[],"mappings":";;;;;UAkBiB,cAAA,SAAuB;;;AAAxC;;;EAsBkB,IAAA,CAAA,EAhBT,SAgBS;EAYmC;;;;AAQrD;EAQgB,SAAA,CAAA,EAAS,OAAA;EACvB;;;;;EAKA,cAAA,CAAA,EAAA,OAAA;EACA,aAAA,CAAA,EAnCgB,cAmChB,CAnC+B,WAmC/B,CAAA;EACA;;;EAEe,mBAAA,CAAA,EAAA,OAAA;EA4GD;;;EAAkE,yBAAA,CAAA,EAAA,MAAA;EAAtB,OAAA,CAAA,EAAA,CAAA,KAAA,EAAA;IAA2B,SAAA,CAAA,EAAA,MAAA;IAAA,QAAA,CAAA,EAtIlC,SAsIkC;EA+BvE,CAAA,EAAA,GArKqD,SAqKrD;;AAAiE,iBA7JjE,GAAA,CA6JiE,K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jsx-runtime";
3
+ import * as react_jsx_runtime12 from "react/jsx-runtime";
4
4
  import { ReactNode } from "react";
5
5
  import { AlgoliaOptions } from "fumadocs-core/search/client";
6
6
 
@@ -33,7 +33,7 @@ declare function AlgoliaSearchDialog({
33
33
  links,
34
34
  footer,
35
35
  ...props
36
- }: AlgoliaSearchDialogProps): react_jsx_runtime63.JSX.Element;
36
+ }: AlgoliaSearchDialogProps): react_jsx_runtime12.JSX.Element;
37
37
  //#endregion
38
38
  export { AlgoliaSearchDialogProps, AlgoliaSearchDialog as default };
39
39
  //# sourceMappingURL=search-algolia.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { search_d_exports } from "../../contexts/search.js";
2
2
  import "./search.js";
3
- import * as react_jsx_runtime60 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime13 from "react/jsx-runtime";
4
4
  import { ReactNode } from "react";
5
5
 
6
6
  //#region src/components/dialog/search-default.d.ts
@@ -38,7 +38,7 @@ declare function DefaultSearchDialog({
38
38
  links,
39
39
  footer,
40
40
  ...props
41
- }: DefaultSearchDialogProps): react_jsx_runtime60.JSX.Element;
41
+ }: DefaultSearchDialogProps): react_jsx_runtime13.JSX.Element;
42
42
  //#endregion
43
43
  export { DefaultSearchDialogProps, DefaultSearchDialog as default };
44
44
  //# sourceMappingURL=search-default.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { search_d_exports } from "../../contexts/search.js";
2
2
  import "./search.js";
3
- import * as react_jsx_runtime16 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime15 from "react/jsx-runtime";
4
4
  import { ReactNode } from "react";
5
5
  import { OramaCloudOptions } from "fumadocs-core/search/client";
6
6
 
@@ -40,7 +40,7 @@ declare function OramaSearchDialog({
40
40
  footer,
41
41
  links,
42
42
  ...props
43
- }: OramaSearchDialogProps): react_jsx_runtime16.JSX.Element;
43
+ }: OramaSearchDialogProps): react_jsx_runtime15.JSX.Element;
44
44
  //#endregion
45
45
  export { OramaSearchDialogProps, OramaSearchDialog as default };
46
46
  //# sourceMappingURL=search-orama.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { search_d_exports } from "../../contexts/search.js";
2
- import * as react_jsx_runtime17 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime18 from "react/jsx-runtime";
3
3
  import { ComponentProps, ReactNode } from "react";
4
4
  import { Dialog } from "@base-ui/react/dialog";
5
5
  import { HighlightedText, ReactSortedResult } from "fumadocs-core/search";
@@ -28,24 +28,24 @@ declare function SearchDialog({
28
28
  isLoading,
29
29
  onSelect: onSelectProp,
30
30
  children
31
- }: SearchDialogProps): react_jsx_runtime17.JSX.Element;
32
- declare function SearchDialogHeader(props: ComponentProps<'div'>): react_jsx_runtime17.JSX.Element;
33
- declare function SearchDialogInput(props: ComponentProps<'input'>): react_jsx_runtime17.JSX.Element;
31
+ }: SearchDialogProps): react_jsx_runtime18.JSX.Element;
32
+ declare function SearchDialogHeader(props: ComponentProps<'div'>): react_jsx_runtime18.JSX.Element;
33
+ declare function SearchDialogInput(props: ComponentProps<'input'>): react_jsx_runtime18.JSX.Element;
34
34
  declare function SearchDialogClose({
35
35
  children,
36
36
  className,
37
37
  ...props
38
- }: ComponentProps<'button'>): react_jsx_runtime17.JSX.Element;
39
- declare function SearchDialogFooter(props: ComponentProps<'div'>): react_jsx_runtime17.JSX.Element;
38
+ }: ComponentProps<'button'>): react_jsx_runtime18.JSX.Element;
39
+ declare function SearchDialogFooter(props: ComponentProps<'div'>): react_jsx_runtime18.JSX.Element;
40
40
  declare function SearchDialogOverlay({
41
41
  className,
42
42
  ...props
43
- }: ComponentProps<typeof Dialog.Backdrop>): react_jsx_runtime17.JSX.Element;
43
+ }: ComponentProps<typeof Dialog.Backdrop>): react_jsx_runtime18.JSX.Element;
44
44
  declare function SearchDialogContent({
45
45
  children,
46
46
  className,
47
47
  ...props
48
- }: ComponentProps<typeof Dialog.Popup>): react_jsx_runtime17.JSX.Element;
48
+ }: ComponentProps<typeof Dialog.Popup>): react_jsx_runtime18.JSX.Element;
49
49
  declare function SearchDialogList({
50
50
  items,
51
51
  Empty,
@@ -64,7 +64,7 @@ declare function SearchDialogList({
64
64
  item: SearchItemType;
65
65
  onClick: () => void;
66
66
  }) => ReactNode;
67
- }): react_jsx_runtime17.JSX.Element;
67
+ }): react_jsx_runtime18.JSX.Element;
68
68
  declare function SearchDialogListItem({
69
69
  item,
70
70
  className,
@@ -74,8 +74,8 @@ declare function SearchDialogListItem({
74
74
  }: ComponentProps<'button'> & {
75
75
  renderHighlights?: typeof renderHighlights;
76
76
  item: SearchItemType;
77
- }): react_jsx_runtime17.JSX.Element;
78
- declare function SearchDialogIcon(props: ComponentProps<'svg'>): react_jsx_runtime17.JSX.Element;
77
+ }): react_jsx_runtime18.JSX.Element;
78
+ declare function SearchDialogIcon(props: ComponentProps<'svg'>): react_jsx_runtime18.JSX.Element;
79
79
  interface TagsListProps extends ComponentProps<'div'> {
80
80
  tag?: string;
81
81
  onTagChange: (tag: string | undefined) => void;
@@ -86,14 +86,14 @@ declare function TagsList({
86
86
  onTagChange,
87
87
  allowClear,
88
88
  ...props
89
- }: TagsListProps): react_jsx_runtime17.JSX.Element;
89
+ }: TagsListProps): react_jsx_runtime18.JSX.Element;
90
90
  declare function TagsListItem({
91
91
  value,
92
92
  className,
93
93
  ...props
94
94
  }: ComponentProps<'button'> & {
95
95
  value: string;
96
- }): react_jsx_runtime17.JSX.Element;
96
+ }): react_jsx_runtime18.JSX.Element;
97
97
  declare function renderHighlights(highlights: HighlightedText<ReactNode>[]): ReactNode;
98
98
  declare function useSearch(): {
99
99
  open: boolean;
@@ -0,0 +1,33 @@
1
+ import { CodeBlockProps } from "./codeblock.js";
2
+ import * as react_jsx_runtime136 from "react/jsx-runtime";
3
+ import { UseShikiOptions } from "fumadocs-core/highlight/core/client";
4
+
5
+ //#region src/components/dynamic-codeblock.core.d.ts
6
+ interface DynamicCodeblockProps {
7
+ lang: string;
8
+ code: string;
9
+ /**
10
+ * Extra props for the underlying `<CodeBlock />` component.
11
+ *
12
+ * Ignored if you defined your own `pre` component in `options.components`.
13
+ */
14
+ codeblock?: CodeBlockProps;
15
+ /**
16
+ * Wrap in React `<Suspense />` and provide a fallback.
17
+ *
18
+ * @defaultValue true
19
+ */
20
+ wrapInSuspense?: boolean;
21
+ options?: DistributiveOmit<UseShikiOptions, 'lang'>;
22
+ }
23
+ type DistributiveOmit<T, K extends PropertyKey> = T extends unknown ? Omit<T, K> : never;
24
+ declare function DynamicCodeBlock({
25
+ lang,
26
+ code,
27
+ codeblock,
28
+ options,
29
+ wrapInSuspense
30
+ }: DynamicCodeblockProps): react_jsx_runtime136.JSX.Element;
31
+ //#endregion
32
+ export { DynamicCodeBlock, DynamicCodeblockProps };
33
+ //# sourceMappingURL=dynamic-codeblock.core.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dynamic-codeblock.core.d.ts","names":[],"sources":["../../src/components/dynamic-codeblock.core.tsx"],"sourcesContent":[],"mappings":";;;;;UAciB,qBAAA;;;EAAA;;;;;EAkBZ,SAAA,CAAA,EAVS,cAUO;EAAc;;;;;EAAuC,cAAA,CAAA,EAAA,OAAA;EAkB1D,OAAA,CAAA,EArBJ,gBAqBoB,CArBH,eAqBG,EAAA,MAAA,CAAA;;KAlB3B,gBAoBH,CAAA,CAAA,EAAA,UApBiC,WAoBjC,CAAA,GApBgD,CAoBhD,SAAA,OAAA,GApBoE,IAoBpE,CApByE,CAoBzE,EApB4E,CAoB5E,CAAA,GAAA,KAAA;AACA,iBAHc,gBAAA,CAGd;EAAA,IAAA;EAAA,IAAA;EAAA,SAAA;EAAA,OAAA;EAAA;AAAA,CAAA,EAGC,qBAHD,CAAA,EAGsB,oBAAA,CAAA,GAAA,CAAA,OAHtB"}
@@ -0,0 +1,66 @@
1
+ 'use client';
2
+
3
+ import { CodeBlock, Pre } from "./codeblock.js";
4
+ import { cn } from "@fumadocs/ui/cn";
5
+ import { jsx } from "react/jsx-runtime";
6
+ import { Suspense, createContext, use, useDeferredValue, useId } from "react";
7
+ import { useShiki } from "fumadocs-core/highlight/core/client";
8
+
9
+ //#region src/components/dynamic-codeblock.core.tsx
10
+ const PropsContext = createContext(void 0);
11
+ function DefaultPre(props) {
12
+ const extraProps = use(PropsContext);
13
+ return /* @__PURE__ */ jsx(CodeBlock, {
14
+ ...props,
15
+ ...extraProps,
16
+ className: cn("my-0", props.className, extraProps?.className),
17
+ children: /* @__PURE__ */ jsx(Pre, { children: props.children })
18
+ });
19
+ }
20
+ function DynamicCodeBlock({ lang, code, codeblock, options, wrapInSuspense = true }) {
21
+ const id = useId();
22
+ const shikiOptions = {
23
+ lang,
24
+ ...options,
25
+ components: {
26
+ pre: DefaultPre,
27
+ ...options?.components
28
+ }
29
+ };
30
+ const children = /* @__PURE__ */ jsx(PropsContext, {
31
+ value: codeblock,
32
+ children: /* @__PURE__ */ jsx(Internal, {
33
+ id,
34
+ ...useDeferredValue({
35
+ code,
36
+ options: shikiOptions
37
+ })
38
+ })
39
+ });
40
+ if (wrapInSuspense) return /* @__PURE__ */ jsx(Suspense, {
41
+ fallback: /* @__PURE__ */ jsx(Placeholder, {
42
+ code,
43
+ components: shikiOptions.components
44
+ }),
45
+ children
46
+ });
47
+ return children;
48
+ }
49
+ function Placeholder({ code, components = {} }) {
50
+ const { pre: Pre$1 = "pre", code: Code = "code" } = components;
51
+ return /* @__PURE__ */ jsx(Pre$1, { children: /* @__PURE__ */ jsx(Code, { children: code.split("\n").map((line, i) => /* @__PURE__ */ jsx("span", {
52
+ className: "line",
53
+ children: line
54
+ }, i)) }) });
55
+ }
56
+ function Internal({ id, code, options }) {
57
+ return useShiki(code, options, [
58
+ id,
59
+ options.lang,
60
+ code
61
+ ]);
62
+ }
63
+
64
+ //#endregion
65
+ export { DynamicCodeBlock };
66
+ //# sourceMappingURL=dynamic-codeblock.core.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dynamic-codeblock.core.js","names":["Pre"],"sources":["../../src/components/dynamic-codeblock.core.tsx"],"sourcesContent":["'use client';\nimport { CodeBlock, type CodeBlockProps, Pre } from '@/components/codeblock';\nimport { useShiki, type UseShikiOptions } from 'fumadocs-core/highlight/core/client';\nimport { cn } from '@fumadocs/ui/cn';\nimport {\n type ComponentProps,\n createContext,\n type FC,\n Suspense,\n use,\n useDeferredValue,\n useId,\n} from 'react';\n\nexport interface DynamicCodeblockProps {\n lang: string;\n code: string;\n /**\n * Extra props for the underlying `<CodeBlock />` component.\n *\n * Ignored if you defined your own `pre` component in `options.components`.\n */\n codeblock?: CodeBlockProps;\n /**\n * Wrap in React `<Suspense />` and provide a fallback.\n *\n * @defaultValue true\n */\n wrapInSuspense?: boolean;\n options?: DistributiveOmit<UseShikiOptions, 'lang'>;\n}\n\ntype DistributiveOmit<T, K extends PropertyKey> = T extends unknown ? Omit<T, K> : never;\n\nconst PropsContext = createContext<CodeBlockProps | undefined>(undefined);\n\nfunction DefaultPre(props: ComponentProps<'pre'>) {\n const extraProps = use(PropsContext);\n\n return (\n <CodeBlock\n {...props}\n {...extraProps}\n className={cn('my-0', props.className, extraProps?.className)}\n >\n <Pre>{props.children}</Pre>\n </CodeBlock>\n );\n}\n\nexport function DynamicCodeBlock({\n lang,\n code,\n codeblock,\n options,\n wrapInSuspense = true,\n}: DynamicCodeblockProps) {\n const id = useId();\n const shikiOptions: UseShikiOptions = {\n lang,\n ...options,\n components: {\n pre: DefaultPre,\n ...options?.components,\n },\n };\n\n const children = (\n <PropsContext value={codeblock}>\n <Internal id={id} {...useDeferredValue({ code, options: shikiOptions })} />\n </PropsContext>\n );\n\n if (wrapInSuspense)\n return (\n <Suspense fallback={<Placeholder code={code} components={shikiOptions.components} />}>\n {children}\n </Suspense>\n );\n\n return children;\n}\n\nfunction Placeholder({\n code,\n components = {},\n}: {\n code: string;\n components: UseShikiOptions['components'];\n}) {\n const { pre: Pre = 'pre', code: Code = 'code' } = components as Record<string, FC>;\n\n return (\n <Pre>\n <Code>\n {code.split('\\n').map((line, i) => (\n <span key={i} className=\"line\">\n {line}\n </span>\n ))}\n </Code>\n </Pre>\n );\n}\n\nfunction Internal({ id, code, options }: { id: string; code: string; options: UseShikiOptions }) {\n return useShiki(code, options, [id, options.lang, code]);\n}\n"],"mappings":";;;;;;;;;AAkCA,MAAM,eAAe,cAA0C,OAAU;AAEzE,SAAS,WAAW,OAA8B;CAChD,MAAM,aAAa,IAAI,aAAa;AAEpC,QACE,oBAAC;EACC,GAAI;EACJ,GAAI;EACJ,WAAW,GAAG,QAAQ,MAAM,WAAW,YAAY,UAAU;YAE7D,oBAAC,iBAAK,MAAM,WAAe;GACjB;;AAIhB,SAAgB,iBAAiB,EAC/B,MACA,MACA,WACA,SACA,iBAAiB,QACO;CACxB,MAAM,KAAK,OAAO;CAClB,MAAM,eAAgC;EACpC;EACA,GAAG;EACH,YAAY;GACV,KAAK;GACL,GAAG,SAAS;GACb;EACF;CAED,MAAM,WACJ,oBAAC;EAAa,OAAO;YACnB,oBAAC;GAAa;GAAI,GAAI,iBAAiB;IAAE;IAAM,SAAS;IAAc,CAAC;IAAI;GAC9D;AAGjB,KAAI,eACF,QACE,oBAAC;EAAS,UAAU,oBAAC;GAAkB;GAAM,YAAY,aAAa;IAAc;EACjF;GACQ;AAGf,QAAO;;AAGT,SAAS,YAAY,EACnB,MACA,aAAa,EAAE,IAId;CACD,MAAM,EAAE,KAAKA,QAAM,OAAO,MAAM,OAAO,WAAW;AAElD,QACE,oBAACA,mBACC,oBAAC,kBACE,KAAK,MAAM,KAAK,CAAC,KAAK,MAAM,MAC3B,oBAAC;EAAa,WAAU;YACrB;IADQ,EAEJ,CACP,GACG,GACH;;AAIV,SAAS,SAAS,EAAE,IAAI,MAAM,WAAmE;AAC/F,QAAO,SAAS,MAAM,SAAS;EAAC;EAAI,QAAQ;EAAM;EAAK,CAAC"}
@@ -1,32 +1,8 @@
1
- import { CodeBlockProps } from "./codeblock.js";
2
- import * as react_jsx_runtime13 from "react/jsx-runtime";
3
- import { HighlightOptionsCommon, HighlightOptionsThemes } from "fumadocs-core/highlight";
1
+ import { DynamicCodeblockProps } from "./dynamic-codeblock.core.js";
2
+ import * as react_jsx_runtime137 from "react/jsx-runtime";
4
3
 
5
4
  //#region src/components/dynamic-codeblock.d.ts
6
- interface DynamicCodeblockProps {
7
- lang: string;
8
- code: string;
9
- /**
10
- * Extra props for the underlying `<CodeBlock />` component.
11
- *
12
- * Ignored if you defined your own `pre` component in `options.components`.
13
- */
14
- codeblock?: CodeBlockProps;
15
- /**
16
- * Wrap in React `<Suspense />` and provide a fallback.
17
- *
18
- * @defaultValue true
19
- */
20
- wrapInSuspense?: boolean;
21
- options?: Omit<HighlightOptionsCommon, 'lang'> & HighlightOptionsThemes;
22
- }
23
- declare function DynamicCodeBlock({
24
- lang,
25
- code,
26
- codeblock,
27
- options,
28
- wrapInSuspense
29
- }: DynamicCodeblockProps): react_jsx_runtime13.JSX.Element;
5
+ declare function DynamicCodeBlock(props: DynamicCodeblockProps): react_jsx_runtime137.JSX.Element;
30
6
  //#endregion
31
- export { DynamicCodeBlock, DynamicCodeblockProps };
7
+ export { DynamicCodeBlock, type DynamicCodeblockProps };
32
8
  //# sourceMappingURL=dynamic-codeblock.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dynamic-codeblock.d.ts","names":[],"sources":["../../src/components/dynamic-codeblock.tsx"],"sourcesContent":[],"mappings":";;;;;UAmBiB,qBAAA;;;EAAA;;;;;EAewD,SAAA,CAAA,EAP3D,cAO2D;EAmBzD;;;;;EAKd,cAAA,CAAA,EAAA,OAAA;EACC,OAAA,CAAA,EAzBS,IAyBT,CAzBc,sBAyBd,EAAA,MAAA,CAAA,GAzBgD,sBAyBhD;;AAAqB,iBANR,gBAAA,CAMQ;EAAA,IAAA;EAAA,IAAA;EAAA,SAAA;EAAA,OAAA;EAAA;AAAA,CAAA,EAArB,qBAAqB,CAAA,EAAA,mBAAA,CAAA,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"dynamic-codeblock.d.ts","names":[],"sources":["../../src/components/dynamic-codeblock.tsx"],"sourcesContent":[],"mappings":";;;;iBAKgB,gBAAA,QAAwB,wBAA0B,oBAAA,CAAA,GAAA,CAAA"}
@@ -1,64 +1,20 @@
1
1
  'use client';
2
2
 
3
- import { CodeBlock, Pre } from "./codeblock.js";
4
- import { cn } from "@fumadocs/ui/cn";
3
+ import { DynamicCodeBlock as DynamicCodeBlock$1 } from "./dynamic-codeblock.core.js";
5
4
  import { jsx } from "react/jsx-runtime";
6
- import { Suspense, createContext, use, useDeferredValue, useId } from "react";
7
- import { useShiki } from "fumadocs-core/highlight/client";
5
+ import { useShikiConfigOptional } from "fumadocs-core/highlight/core/client";
6
+ import { configDefault } from "fumadocs-core/highlight";
8
7
 
9
8
  //#region src/components/dynamic-codeblock.tsx
10
- const PropsContext = createContext(void 0);
11
- function DefaultPre(props) {
12
- const extraProps = use(PropsContext);
13
- return /* @__PURE__ */ jsx(CodeBlock, {
9
+ function DynamicCodeBlock(props) {
10
+ const config = useShikiConfigOptional() ?? configDefault;
11
+ return /* @__PURE__ */ jsx(DynamicCodeBlock$1, {
14
12
  ...props,
15
- ...extraProps,
16
- className: cn("my-0", props.className, extraProps?.className),
17
- children: /* @__PURE__ */ jsx(Pre, { children: props.children })
18
- });
19
- }
20
- function DynamicCodeBlock({ lang, code, codeblock, options, wrapInSuspense = true }) {
21
- const id = useId();
22
- const shikiOptions = {
23
- lang,
24
- ...options,
25
- components: {
26
- pre: DefaultPre,
27
- ...options?.components
13
+ options: {
14
+ config,
15
+ ...props.options
28
16
  }
29
- };
30
- const children = /* @__PURE__ */ jsx(PropsContext, {
31
- value: codeblock,
32
- children: /* @__PURE__ */ jsx(Internal, {
33
- id,
34
- ...useDeferredValue({
35
- code,
36
- options: shikiOptions
37
- })
38
- })
39
- });
40
- if (wrapInSuspense) return /* @__PURE__ */ jsx(Suspense, {
41
- fallback: /* @__PURE__ */ jsx(Placeholder, {
42
- code,
43
- components: shikiOptions.components
44
- }),
45
- children
46
17
  });
47
- return children;
48
- }
49
- function Placeholder({ code, components = {} }) {
50
- const { pre: Pre$1 = "pre", code: Code = "code" } = components;
51
- return /* @__PURE__ */ jsx(Pre$1, { children: /* @__PURE__ */ jsx(Code, { children: code.split("\n").map((line, i) => /* @__PURE__ */ jsx("span", {
52
- className: "line",
53
- children: line
54
- }, i)) }) });
55
- }
56
- function Internal({ id, code, options }) {
57
- return useShiki(code, options, [
58
- id,
59
- options.lang,
60
- code
61
- ]);
62
18
  }
63
19
 
64
20
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"dynamic-codeblock.js","names":["Pre"],"sources":["../../src/components/dynamic-codeblock.tsx"],"sourcesContent":["'use client';\nimport { CodeBlock, type CodeBlockProps, Pre } from '@/components/codeblock';\nimport type {\n HighlightOptions,\n HighlightOptionsCommon,\n HighlightOptionsThemes,\n} from 'fumadocs-core/highlight';\nimport { useShiki } from 'fumadocs-core/highlight/client';\nimport { cn } from '@fumadocs/ui/cn';\nimport {\n type ComponentProps,\n createContext,\n type FC,\n Suspense,\n use,\n useDeferredValue,\n useId,\n} from 'react';\n\nexport interface DynamicCodeblockProps {\n lang: string;\n code: string;\n /**\n * Extra props for the underlying `<CodeBlock />` component.\n *\n * Ignored if you defined your own `pre` component in `options.components`.\n */\n codeblock?: CodeBlockProps;\n /**\n * Wrap in React `<Suspense />` and provide a fallback.\n *\n * @defaultValue true\n */\n wrapInSuspense?: boolean;\n options?: Omit<HighlightOptionsCommon, 'lang'> & HighlightOptionsThemes;\n}\n\nconst PropsContext = createContext<CodeBlockProps | undefined>(undefined);\n\nfunction DefaultPre(props: ComponentProps<'pre'>) {\n const extraProps = use(PropsContext);\n\n return (\n <CodeBlock\n {...props}\n {...extraProps}\n className={cn('my-0', props.className, extraProps?.className)}\n >\n <Pre>{props.children}</Pre>\n </CodeBlock>\n );\n}\n\nexport function DynamicCodeBlock({\n lang,\n code,\n codeblock,\n options,\n wrapInSuspense = true,\n}: DynamicCodeblockProps) {\n const id = useId();\n const shikiOptions = {\n lang,\n ...options,\n components: {\n pre: DefaultPre,\n ...options?.components,\n },\n } satisfies HighlightOptions;\n\n const children = (\n <PropsContext value={codeblock}>\n <Internal id={id} {...useDeferredValue({ code, options: shikiOptions })} />\n </PropsContext>\n );\n\n if (wrapInSuspense)\n return (\n <Suspense fallback={<Placeholder code={code} components={shikiOptions.components} />}>\n {children}\n </Suspense>\n );\n\n return children;\n}\n\nfunction Placeholder({\n code,\n components = {},\n}: {\n code: string;\n components: HighlightOptions['components'];\n}) {\n const { pre: Pre = 'pre', code: Code = 'code' } = components as Record<string, FC>;\n\n return (\n <Pre>\n <Code>\n {code.split('\\n').map((line, i) => (\n <span key={i} className=\"line\">\n {line}\n </span>\n ))}\n </Code>\n </Pre>\n );\n}\n\nfunction Internal({ id, code, options }: { id: string; code: string; options: HighlightOptions }) {\n return useShiki(code, options, [id, options.lang, code]);\n}\n"],"mappings":";;;;;;;;;AAqCA,MAAM,eAAe,cAA0C,OAAU;AAEzE,SAAS,WAAW,OAA8B;CAChD,MAAM,aAAa,IAAI,aAAa;AAEpC,QACE,oBAAC;EACC,GAAI;EACJ,GAAI;EACJ,WAAW,GAAG,QAAQ,MAAM,WAAW,YAAY,UAAU;YAE7D,oBAAC,iBAAK,MAAM,WAAe;GACjB;;AAIhB,SAAgB,iBAAiB,EAC/B,MACA,MACA,WACA,SACA,iBAAiB,QACO;CACxB,MAAM,KAAK,OAAO;CAClB,MAAM,eAAe;EACnB;EACA,GAAG;EACH,YAAY;GACV,KAAK;GACL,GAAG,SAAS;GACb;EACF;CAED,MAAM,WACJ,oBAAC;EAAa,OAAO;YACnB,oBAAC;GAAa;GAAI,GAAI,iBAAiB;IAAE;IAAM,SAAS;IAAc,CAAC;IAAI;GAC9D;AAGjB,KAAI,eACF,QACE,oBAAC;EAAS,UAAU,oBAAC;GAAkB;GAAM,YAAY,aAAa;IAAc;EACjF;GACQ;AAGf,QAAO;;AAGT,SAAS,YAAY,EACnB,MACA,aAAa,EAAE,IAId;CACD,MAAM,EAAE,KAAKA,QAAM,OAAO,MAAM,OAAO,WAAW;AAElD,QACE,oBAACA,mBACC,oBAAC,kBACE,KAAK,MAAM,KAAK,CAAC,KAAK,MAAM,MAC3B,oBAAC;EAAa,WAAU;YACrB;IADQ,EAEJ,CACP,GACG,GACH;;AAIV,SAAS,SAAS,EAAE,IAAI,MAAM,WAAoE;AAChG,QAAO,SAAS,MAAM,SAAS;EAAC;EAAI,QAAQ;EAAM;EAAK,CAAC"}
1
+ {"version":3,"file":"dynamic-codeblock.js","names":["base.DynamicCodeBlock"],"sources":["../../src/components/dynamic-codeblock.tsx"],"sourcesContent":["'use client';\nimport { useShikiConfigOptional } from 'fumadocs-core/highlight/core/client';\nimport * as base from './dynamic-codeblock.core';\nimport { configDefault } from 'fumadocs-core/highlight';\n\nexport function DynamicCodeBlock(props: base.DynamicCodeblockProps) {\n const config = useShikiConfigOptional() ?? configDefault;\n return (\n <base.DynamicCodeBlock\n {...props}\n options={{\n config,\n ...props.options,\n }}\n />\n );\n}\n\nexport type { DynamicCodeblockProps } from './dynamic-codeblock.core';\n"],"mappings":";;;;;;;;AAKA,SAAgB,iBAAiB,OAAmC;CAClE,MAAM,SAAS,wBAAwB,IAAI;AAC3C,QACE,oBAACA;EACC,GAAI;EACJ,SAAS;GACP;GACA,GAAG,MAAM;GACV;GACD"}
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime88 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime140 from "react/jsx-runtime";
2
2
  import { AnchorHTMLAttributes } from "react";
3
3
 
4
4
  //#region src/components/github-info.d.ts
@@ -13,7 +13,7 @@ declare function GithubInfo({
13
13
  repo: string;
14
14
  token?: string;
15
15
  baseUrl?: string;
16
- }): Promise<react_jsx_runtime88.JSX.Element>;
16
+ }): Promise<react_jsx_runtime140.JSX.Element>;
17
17
  //#endregion
18
18
  export { GithubInfo };
19
19
  //# sourceMappingURL=github-info.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"github-info.d.ts","names":[],"sources":["../../src/components/github-info.tsx"],"sourcesContent":[],"mappings":";;;;iBAwCsB,UAAA;;;;;;GAMnB,qBAAqB;;;EANF,KAAA,CAAA,EAAA,MAAU;EAC9B,OAAA,CAAA,EAAA,MAAA;CACA,CAAA,EASD,OATC,CASD,mBAAA,CAAA,GAAA,CAAA,OAAA,CATC"}
1
+ {"version":3,"file":"github-info.d.ts","names":[],"sources":["../../src/components/github-info.tsx"],"sourcesContent":[],"mappings":";;;;iBAwCsB,UAAA;;;;;;GAMnB,qBAAqB;;;EANF,KAAA,CAAA,EAAA,MAAU;EAC9B,OAAA,CAAA,EAAA,MAAA;CACA,CAAA,EASD,OATC,CASD,oBAAA,CAAA,GAAA,CAAA,OAAA,CATC"}
@@ -1,5 +1,5 @@
1
1
  import { ImageProps } from "fumadocs-core/framework";
2
- import * as react_jsx_runtime89 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime138 from "react/jsx-runtime";
3
3
  import { ComponentProps } from "react";
4
4
  import { UncontrolledProps } from "react-medium-image-zoom";
5
5
 
@@ -19,7 +19,7 @@ declare function ImageZoom({
19
19
  children,
20
20
  rmiz,
21
21
  ...props
22
- }: ImageZoomProps): react_jsx_runtime89.JSX.Element;
22
+ }: ImageZoomProps): react_jsx_runtime138.JSX.Element;
23
23
  //#endregion
24
24
  export { ImageZoom, ImageZoomProps };
25
25
  //# sourceMappingURL=image-zoom.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"image-zoom.d.ts","names":[],"sources":["../../src/components/image-zoom.tsx"],"sourcesContent":[],"mappings":";;;;;;KAOY,cAAA,GAAiB;;AAA7B;;EAIgB,WAAA,CAAA,EAAA,cAAA,CAAA,KAAA,CAAA;EAKP;;AAeT;EAA4B,IAAA,CAAA,EAfnB,iBAemB;CAAa;AAAU,iBAAnC,SAAA,CAAmC;EAAA,WAAA;EAAA,QAAA;EAAA,IAAA;EAAA,GAAA;AAAA,CAAA,EAAkB,cAAlB,CAAA,EAAgC,mBAAA,CAAA,GAAA,CAAA,OAAhC"}
1
+ {"version":3,"file":"image-zoom.d.ts","names":[],"sources":["../../src/components/image-zoom.tsx"],"sourcesContent":[],"mappings":";;;;;;KAOY,cAAA,GAAiB;;AAA7B;;EAIgB,WAAA,CAAA,EAAA,cAAA,CAAA,KAAA,CAAA;EAKP;;AAeT;EAA4B,IAAA,CAAA,EAfnB,iBAemB;CAAa;AAAU,iBAAnC,SAAA,CAAmC;EAAA,WAAA;EAAA,QAAA;EAAA,IAAA;EAAA,GAAA;AAAA,CAAA,EAAkB,cAAlB,CAAA,EAAgC,oBAAA,CAAA,GAAA,CAAA,OAAhC"}
@@ -1,5 +1,5 @@
1
1
  import { Collapsible } from "./ui/collapsible.js";
2
- import * as react_jsx_runtime90 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime14 from "react/jsx-runtime";
3
3
  import { ComponentProps } from "react";
4
4
  import { TOCItemType } from "fumadocs-core/toc";
5
5
 
@@ -11,7 +11,7 @@ declare function InlineTOC({
11
11
  items,
12
12
  className,
13
13
  ...props
14
- }: InlineTocProps): react_jsx_runtime90.JSX.Element;
14
+ }: InlineTocProps): react_jsx_runtime14.JSX.Element;
15
15
  //#endregion
16
16
  export { InlineTOC, InlineTocProps };
17
17
  //# sourceMappingURL=inline-toc.d.ts.map