ardo 3.1.0 → 3.2.1

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 (123) hide show
  1. package/README.md +9 -19
  2. package/dist/DocPage-CIBiCAxZ.js +1010 -0
  3. package/dist/DocPage-CIBiCAxZ.js.map +1 -0
  4. package/dist/assets/src/ui/Breadcrumb.css.ts.vanilla-Dpgq-C_p.css +20 -0
  5. package/dist/assets/src/ui/DocPage.css.ts.vanilla-CXKuz4U-.css +34 -0
  6. package/dist/assets/src/ui/Footer.css.ts.vanilla-BSzPIPt4.css +100 -0
  7. package/dist/assets/src/ui/Header.css.ts.vanilla-8QL0Jzgk.css +156 -0
  8. package/dist/assets/src/ui/Layout.css.ts.vanilla-Bpx_-gJt.css +67 -0
  9. package/dist/assets/src/ui/Nav.css.ts.vanilla-CsAQjogy.css +51 -0
  10. package/dist/assets/src/ui/Sidebar.css.ts.vanilla-D70qXTEr.css +115 -0
  11. package/dist/assets/src/ui/Toc.css.ts.vanilla-CYqcWgvD.css +52 -0
  12. package/dist/assets/src/ui/components/ApiItem.css.ts.vanilla-B_DW-1iJ.css +218 -0
  13. package/dist/assets/src/ui/components/CodeBlock.css.ts.vanilla-lNKqskjQ.css +182 -0
  14. package/dist/assets/src/ui/components/Container.css.ts.vanilla-CUhRUA9t.css +80 -0
  15. package/dist/assets/src/ui/components/CopyButton.css.ts.vanilla-DZZ5jgTM.css +24 -0
  16. package/dist/assets/src/ui/components/Features.css.ts.vanilla-D-pNXM9Q.css +129 -0
  17. package/dist/assets/src/ui/components/Hero.css.ts.vanilla-DHJVZ6GX.css +134 -0
  18. package/dist/assets/src/ui/components/Search.css.ts.vanilla-BYpWHzky.css +135 -0
  19. package/dist/assets/src/ui/components/Steps.css.ts.vanilla-CisaxeNj.css +59 -0
  20. package/dist/assets/src/ui/components/Tabs.css.ts.vanilla-C4-vJSnf.css +30 -0
  21. package/dist/assets/src/ui/components/ThemeToggle.css.ts.vanilla---sSUELC.css +22 -0
  22. package/dist/assets/src/ui/content.css.ts.vanilla-O_RaSPXm.css +106 -0
  23. package/dist/assets/src/ui/theme/animations.css.ts.vanilla-D6ImVUKy.css +10 -0
  24. package/dist/assets/src/ui/theme/dark.css.ts.vanilla-2iJgcpbU.css +87 -0
  25. package/dist/assets/src/ui/theme/light.css.ts.vanilla-CwinfWSf.css +87 -0
  26. package/dist/assets/src/ui/theme/reset.css.ts.vanilla-0Q3pLjfC.css +34 -0
  27. package/dist/brand-icons-DLJKqTun.js +59 -0
  28. package/dist/brand-icons-DLJKqTun.js.map +1 -0
  29. package/dist/config/index.d.ts +5 -5
  30. package/dist/config/index.d.ts.map +1 -0
  31. package/dist/config/index.js +54 -11
  32. package/dist/config/index.js.map +1 -1
  33. package/dist/contract.css-DYvFVCFE.d.ts +105 -0
  34. package/dist/contract.css-DYvFVCFE.d.ts.map +1 -0
  35. package/dist/generator-DPtRXxM_.js +1194 -0
  36. package/dist/generator-DPtRXxM_.js.map +1 -0
  37. package/dist/icons/index.d.ts +22 -1
  38. package/dist/icons/index.d.ts.map +1 -0
  39. package/dist/icons/index.js +2 -2
  40. package/dist/index-BTeHvysI.d.ts +807 -0
  41. package/dist/index-BTeHvysI.d.ts.map +1 -0
  42. package/dist/index-DySzkJlC.d.ts +78 -0
  43. package/dist/index-DySzkJlC.d.ts.map +1 -0
  44. package/dist/index.d.ts +5 -8
  45. package/dist/index.js +6 -100
  46. package/dist/mdx/provider.d.ts +61 -4
  47. package/dist/mdx/provider.d.ts.map +1 -0
  48. package/dist/mdx/provider.js +89 -117
  49. package/dist/mdx/provider.js.map +1 -1
  50. package/dist/runtime/index.d.ts +2 -41
  51. package/dist/runtime/index.js +2 -28
  52. package/dist/sidebar-utils-1Skqle1Q.js +109 -0
  53. package/dist/sidebar-utils-1Skqle1Q.js.map +1 -0
  54. package/dist/theme/index.d.ts +201 -182
  55. package/dist/theme/index.d.ts.map +1 -0
  56. package/dist/theme/index.js +288 -128
  57. package/dist/theme/index.js.map +1 -1
  58. package/dist/typedoc/components/index.d.ts +55 -0
  59. package/dist/typedoc/components/index.d.ts.map +1 -0
  60. package/dist/typedoc/components/index.js +339 -0
  61. package/dist/typedoc/components/index.js.map +1 -0
  62. package/dist/typedoc/index.d.ts +36 -305
  63. package/dist/typedoc/index.d.ts.map +1 -0
  64. package/dist/typedoc/index.js +97 -268
  65. package/dist/typedoc/index.js.map +1 -1
  66. package/dist/types-BCuJBsJu.d.ts +182 -0
  67. package/dist/types-BCuJBsJu.d.ts.map +1 -0
  68. package/dist/types-CTd_mkrv.d.ts +175 -0
  69. package/dist/types-CTd_mkrv.d.ts.map +1 -0
  70. package/dist/ui/index.d.ts +2 -178
  71. package/dist/ui/index.js +3 -95
  72. package/dist/ui/styles.css +1401 -1335
  73. package/dist/ui/styles.d.ts +1 -2
  74. package/dist/ui/styles.js +23 -4
  75. package/dist/ui-3grzJSsq.js +1314 -0
  76. package/dist/ui-3grzJSsq.js.map +1 -0
  77. package/dist/vite/index.d.ts +78 -86
  78. package/dist/vite/index.d.ts.map +1 -0
  79. package/dist/vite/index.js +2931 -1282
  80. package/dist/vite/index.js.map +1 -1
  81. package/package.json +30 -19
  82. package/dist/Features-D_Pt7zpA.d.ts +0 -615
  83. package/dist/Search-DOJMNI2T.css +0 -193
  84. package/dist/Search-DOJMNI2T.css.map +0 -1
  85. package/dist/Search-VYYG3D43.js +0 -10
  86. package/dist/Search-VYYG3D43.js.map +0 -1
  87. package/dist/chunk-4YQE3TNM.js +0 -1
  88. package/dist/chunk-4YQE3TNM.js.map +0 -1
  89. package/dist/chunk-AXLJDGQL.js +0 -1
  90. package/dist/chunk-AXLJDGQL.js.map +0 -1
  91. package/dist/chunk-CZM5NX27.js +0 -909
  92. package/dist/chunk-CZM5NX27.js.map +0 -1
  93. package/dist/chunk-FZP2AVJL.js +0 -43
  94. package/dist/chunk-FZP2AVJL.js.map +0 -1
  95. package/dist/chunk-IEPSORG5.js +0 -444
  96. package/dist/chunk-IEPSORG5.js.map +0 -1
  97. package/dist/chunk-KUWEUO37.js +0 -1
  98. package/dist/chunk-KUWEUO37.js.map +0 -1
  99. package/dist/chunk-NBRHGTR2.js +0 -79
  100. package/dist/chunk-NBRHGTR2.js.map +0 -1
  101. package/dist/chunk-PGHUPTGL.js +0 -1035
  102. package/dist/chunk-PGHUPTGL.js.map +0 -1
  103. package/dist/chunk-PMS3P4MA.js +0 -43
  104. package/dist/chunk-PMS3P4MA.js.map +0 -1
  105. package/dist/chunk-QELSOHIY.js +0 -46
  106. package/dist/chunk-QELSOHIY.js.map +0 -1
  107. package/dist/chunk-R2QKY6G3.js +0 -1
  108. package/dist/chunk-R2QKY6G3.js.map +0 -1
  109. package/dist/chunk-ZPYQQZ7J.js +0 -210
  110. package/dist/chunk-ZPYQQZ7J.js.map +0 -1
  111. package/dist/icons/index.js.map +0 -1
  112. package/dist/index.css +0 -1290
  113. package/dist/index.css.map +0 -1
  114. package/dist/index.js.map +0 -1
  115. package/dist/mdx/provider.css +0 -403
  116. package/dist/mdx/provider.css.map +0 -1
  117. package/dist/runtime/index.js.map +0 -1
  118. package/dist/types-CLkHwCch.d.ts +0 -248
  119. package/dist/ui/index.css +0 -1290
  120. package/dist/ui/index.css.map +0 -1
  121. package/dist/ui/index.js.map +0 -1
  122. package/dist/ui/styles.css.map +0 -1
  123. package/dist/ui/styles.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-BTeHvysI.d.ts","names":[],"sources":["../src/ui/Footer.tsx","../src/ui/Header.tsx","../src/ui/Sidebar.tsx","../src/ui/ArdoRoot.tsx","../src/ui/BareContent.tsx","../src/ui/components/CodeBlock.tsx","../src/ui/components/Container.tsx","../src/ui/components/CopyButton.tsx","../src/ui/components/Features.tsx","../src/ui/components/Hero.tsx","../src/ui/components/Icon.tsx","../src/ui/components/Search.tsx","../src/ui/components/Steps.tsx","../src/ui/components/Tabs.tsx","../src/ui/components/ThemeToggle.tsx","../src/ui/Content.tsx","../src/ui/DocPage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KAAA;AAAA;AAAA,iBAGc,OAAA,CAAA;EAAU,KAAA,EAAO;AAAA,IAAa,YAAA,GAAiB,oBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -0,0 +1,78 @@
1
+ import { a as PageData, f as TOCItem, l as SidebarItem, t as ArdoConfig } from "./types-CTd_mkrv.js";
2
+ import * as _$react from "react";
3
+ import { ReactNode } from "react";
4
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
5
+
6
+ //#region src/runtime/hooks.d.ts
7
+ type ArdoContextValue = {
8
+ config: ArdoConfig;
9
+ sidebar: SidebarItem[];
10
+ currentPage?: PageData;
11
+ };
12
+ declare const ArdoContext: _$react.Context<ArdoContextValue | null>;
13
+ declare function useArdoContext(): ArdoContextValue;
14
+ declare function useArdoConfig(): ArdoConfig;
15
+ declare function useArdoSidebar(): SidebarItem[];
16
+ declare function useArdoPageData(): PageData | undefined;
17
+ declare function useArdoTOC(): TOCItem[];
18
+ type ArdoProviderProps = {
19
+ config: ArdoConfig;
20
+ sidebar: SidebarItem[];
21
+ currentPage?: PageData;
22
+ children: ReactNode;
23
+ };
24
+ declare function ArdoProvider({
25
+ config,
26
+ sidebar,
27
+ currentPage,
28
+ children
29
+ }: ArdoProviderProps): _$react_jsx_runtime0.JSX.Element;
30
+ type ArdoPageDataProviderProps = {
31
+ frontmatter: PageData["frontmatter"];
32
+ toc: TOCItem[];
33
+ children: ReactNode;
34
+ };
35
+ declare function ArdoPageDataProvider({
36
+ frontmatter,
37
+ toc,
38
+ children
39
+ }: ArdoPageDataProviderProps): _$react_jsx_runtime0.JSX.Element;
40
+ type ArdoSiteConfig = {
41
+ editLink?: {
42
+ pattern: string;
43
+ text?: string;
44
+ };
45
+ lastUpdated?: {
46
+ enabled?: boolean;
47
+ text?: string;
48
+ formatOptions?: Intl.DateTimeFormatOptions;
49
+ };
50
+ tocLabel?: string;
51
+ };
52
+ declare function useArdoSiteConfig(): ArdoSiteConfig;
53
+ type ArdoSiteConfigProviderProps = {
54
+ value: ArdoSiteConfig;
55
+ children: ReactNode;
56
+ };
57
+ declare function ArdoSiteConfigProvider({
58
+ value,
59
+ children
60
+ }: ArdoSiteConfigProviderProps): _$react_jsx_runtime0.JSX.Element;
61
+ //#endregion
62
+ //#region src/runtime/sidebar-utils.d.ts
63
+ /**
64
+ * Find the current sidebar item based on the current path.
65
+ * This is client-safe and does not use any Node.js modules.
66
+ */
67
+ declare function findCurrentSidebarItem(sidebar: SidebarItem[], currentPath: string): SidebarItem | undefined;
68
+ /**
69
+ * Get the previous and next sidebar items for navigation.
70
+ * This is client-safe and does not use any Node.js modules.
71
+ */
72
+ declare function getPrevNextLinks(sidebar: SidebarItem[], currentPath: string): {
73
+ prev?: SidebarItem;
74
+ next?: SidebarItem;
75
+ };
76
+ //#endregion
77
+ export { ArdoProvider as a, useArdoConfig as c, useArdoSidebar as d, useArdoSiteConfig as f, ArdoPageDataProvider as i, useArdoContext as l, getPrevNextLinks as n, ArdoSiteConfig as o, useArdoTOC as p, ArdoContext as r, ArdoSiteConfigProvider as s, findCurrentSidebarItem as t, useArdoPageData as u };
78
+ //# sourceMappingURL=index-DySzkJlC.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-DySzkJlC.d.ts","names":[],"sources":["../src/runtime/hooks.tsx","../src/runtime/sidebar-utils.ts"],"mappings":";;;;;;KAIK,gBAAA;EACH,MAAA,EAAQ,UAAA;EACR,OAAA,EAAS,WAAA;EACT,WAAA,GAAc,QAAA;AAAA;AAAA,cAGV,WAAA,EAAW,OAAA,CAAA,OAAA,CAAA,gBAAA;AAAA,iBAED,cAAA,CAAA,GAAkB,gBAAA;AAAA,iBAQlB,aAAA,CAAA,GAAiB,UAAA;AAAA,iBAKjB,cAAA,CAAA,GAAkB,WAAA;AAAA,iBAKlB,eAAA,CAAA,GAAmB,QAAA;AAAA,iBAKnB,UAAA,CAAA,GAAc,OAAA;AAAA,KAKzB,iBAAA;EACH,MAAA,EAAQ,UAAA;EACR,OAAA,EAAS,WAAA;EACT,WAAA,GAAc,QAAA;EACd,QAAA,EAAU,SAAA;AAAA;AAAA,iBAGI,YAAA,CAAA;EAAe,MAAA;EAAQ,OAAA;EAAS,WAAA;EAAa;AAAA,GAAY,iBAAA,GAAiB,oBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,KAerF,yBAAA;EACH,WAAA,EAAa,QAAA;EACb,GAAA,EAAK,OAAA;EACL,QAAA,EAAU,SAAA;AAAA;AAAA,iBAGI,oBAAA,CAAA;EAAuB,WAAA;EAAa,GAAA;EAAK;AAAA,GAAY,yBAAA,GAAyB,oBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,KA0BlF,cAAA;EACV,QAAA;IAAa,OAAA;IAAiB,IAAA;EAAA;EAC9B,WAAA;IAAgB,OAAA;IAAmB,IAAA;IAAe,aAAA,GAAgB,IAAA,CAAK,qBAAA;EAAA;EACvE,QAAA;AAAA;AAAA,iBAKc,iBAAA,CAAA,GAAqB,cAAA;AAAA,KAIhC,2BAAA;EACH,KAAA,EAAO,cAAA;EACP,QAAA,EAAU,SAAA;AAAA;AAAA,iBAGI,sBAAA,CAAA;EAAyB,KAAA;EAAO;AAAA,GAAY,2BAAA,GAA2B,oBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;;iBCzGvE,sBAAA,CACd,OAAA,EAAS,WAAA,IACT,WAAA,WACC,WAAA;ADP8E;;;;AAAA,iBC4BjE,gBAAA,CACd,OAAA,EAAS,WAAA,IACT,WAAA;EACG,IAAA,GAAO,WAAA;EAAa,IAAA,GAAO,WAAA;AAAA"}
package/dist/index.d.ts CHANGED
@@ -1,8 +1,5 @@
1
- export { defineConfig, loadConfig, resolveConfig } from './config/index.js';
2
- export { ArdoProvider, findCurrentSidebarItem, getPrevNextLinks, useArdoContext, useConfig, usePageData, useSidebar, useTOC, useThemeConfig } from './runtime/index.js';
3
- export { C as CodeBlock, a as CodeBlockProps, b as CodeGroup, c as CodeGroupProps, d as Container, e as ContainerProps, f as ContainerType, g as Content, h as CopyButton, D as Danger, i as DangerProps, j as DocLayout, k as DocPage, F as FeatureCard, l as FeatureCardProps, m as FeatureItem, n as Features, o as FeaturesProps, p as Footer, H as Header, q as Hero, r as HeroAction, s as HeroImage, t as HeroProps, u as HomePage, I as Info, v as InfoProps, L as Layout, N as Note, w as NoteProps, S as Search, x as Sidebar, T as TOC, y as Tab, z as TabList, A as TabListProps, B as TabPanel, E as TabPanelProps, G as TabPanels, J as TabPanelsProps, K as TabProps, M as Tabs, O as TabsProps, P as ThemeToggle, Q as Tip, R as TipProps, W as Warning, U as WarningProps } from './Features-D_Pt7zpA.js';
4
- export { A as ArdoConfig, H as HeadConfig, M as MarkdownConfig, N as NavItem, P as PageData, a as PageFrontmatter, b as ProjectMeta, R as ResolvedConfig, S as SidebarItem, c as SocialLink, T as TOCItem, d as ThemeConfig, e as TypeDocConfig } from './types-CLkHwCch.js';
5
- import 'react/jsx-runtime';
6
- import 'react';
7
- import 'react-router';
8
- import 'shiki';
1
+ import { a as PageData, c as ResolvedConfig, f as TOCItem, i as NavItem, l as SidebarItem, n as HeadConfig, o as PageFrontmatter, p as TypeDocConfig, r as MarkdownConfig, s as ProjectMeta, t as ArdoConfig, u as SocialLink } from "./types-CTd_mkrv.js";
2
+ import { defineConfig, loadConfig, resolveConfig } from "./config/index.js";
3
+ import { a as ArdoProvider, c as useArdoConfig, d as useArdoSidebar, f as useArdoSiteConfig, l as useArdoContext, n as getPrevNextLinks, o as ArdoSiteConfig, p as useArdoTOC, s as ArdoSiteConfigProvider, t as findCurrentSidebarItem, u as useArdoPageData } from "./index-DySzkJlC.js";
4
+ import { $ as ArdoTip, A as ArdoSearch, B as ArdoFeatureCardProps, C as ArdoTabPanels, D as ArdoTabsProps, E as ArdoTabs, F as ArdoHero, G as ArdoContainerProps, H as ArdoFeaturesProps, I as ArdoHeroAction, J as ArdoDangerProps, K as ArdoContainerType, L as ArdoHeroImage, O as ArdoSteps, Q as ArdoNoteProps, R as ArdoHeroProps, S as ArdoTabPanelProps, T as ArdoTabProps, U as ArdoCopyButton, V as ArdoFeatures, W as ArdoContainer, X as ArdoInfoProps, Y as ArdoInfo, Z as ArdoNote, _ as ArdoThemeToggle, at as ArdoCodeGroup, b as ArdoTabListProps, bt as ArdoFooter, d as ArdoHomePage, et as ArdoTipProps, g as ArdoContent, gt as ArdoHeader, h as ArdoDocPage, it as ArdoCodeBlockProps, k as ArdoStepsProps, m as ArdoDocLayout, nt as ArdoWarningProps, ot as ArdoCodeGroupProps, q as ArdoDanger, rt as ArdoCodeBlock, s as ArdoLayout, t as ArdoTOC, tt as ArdoWarning, ut as ArdoSidebar, v as ArdoTab, w as ArdoTabPanelsProps, x as ArdoTabPanel, y as ArdoTabList, z as ArdoFeatureCard } from "./index-BTeHvysI.js";
5
+ export { ArdoCodeBlock, type ArdoCodeBlockProps, ArdoCodeGroup, type ArdoCodeGroupProps, type ArdoConfig, ArdoContainer, type ArdoContainerProps, type ArdoContainerType, ArdoContent, ArdoCopyButton, ArdoDanger, type ArdoDangerProps, ArdoDocLayout, ArdoDocPage, ArdoFeatureCard, type ArdoFeatureCardProps, ArdoFeatures, type ArdoFeaturesProps, ArdoFooter, ArdoHeader, ArdoHero, type ArdoHeroAction, type ArdoHeroImage, type ArdoHeroProps, ArdoHomePage, ArdoInfo, type ArdoInfoProps, ArdoLayout, ArdoNote, type ArdoNoteProps, ArdoProvider, ArdoSearch, ArdoSidebar, type ArdoSiteConfig, ArdoSiteConfigProvider, ArdoSteps, type ArdoStepsProps, ArdoTOC, ArdoTab, ArdoTabList, type ArdoTabListProps, ArdoTabPanel, type ArdoTabPanelProps, ArdoTabPanels, type ArdoTabPanelsProps, type ArdoTabProps, ArdoTabs, type ArdoTabsProps, ArdoThemeToggle, ArdoTip, type ArdoTipProps, ArdoWarning, type ArdoWarningProps, type HeadConfig, type MarkdownConfig, type NavItem, type PageData, type PageFrontmatter, type ProjectMeta, type ResolvedConfig, type SidebarItem, type SocialLink, type TOCItem, type TypeDocConfig, defineConfig, findCurrentSidebarItem, getPrevNextLinks, loadConfig, resolveConfig, useArdoConfig, useArdoContext, useArdoPageData, useArdoSidebar, useArdoSiteConfig, useArdoTOC };
package/dist/index.js CHANGED
@@ -1,100 +1,6 @@
1
- import {
2
- defineConfig,
3
- loadConfig,
4
- resolveConfig
5
- } from "./chunk-NBRHGTR2.js";
6
- import "./chunk-R2QKY6G3.js";
7
- import {
8
- DocLayout,
9
- DocPage,
10
- FeatureCard,
11
- Features,
12
- Footer,
13
- Header,
14
- Hero,
15
- HomePage,
16
- Layout,
17
- Sidebar,
18
- TOC,
19
- ThemeToggle
20
- } from "./chunk-CZM5NX27.js";
21
- import "./chunk-KUWEUO37.js";
22
- import {
23
- Search
24
- } from "./chunk-ZPYQQZ7J.js";
25
- import "./chunk-4YQE3TNM.js";
26
- import {
27
- CodeBlock,
28
- CodeGroup,
29
- Container,
30
- Content,
31
- CopyButton,
32
- Danger,
33
- Info,
34
- Note,
35
- Tab,
36
- TabList,
37
- TabPanel,
38
- TabPanels,
39
- Tabs,
40
- Tip,
41
- Warning
42
- } from "./chunk-IEPSORG5.js";
43
- import "./chunk-AXLJDGQL.js";
44
- import "./chunk-PMS3P4MA.js";
45
- import {
46
- findCurrentSidebarItem,
47
- getPrevNextLinks
48
- } from "./chunk-FZP2AVJL.js";
49
- import {
50
- ArdoProvider,
51
- useArdoContext,
52
- useConfig,
53
- usePageData,
54
- useSidebar,
55
- useTOC,
56
- useThemeConfig
57
- } from "./chunk-QELSOHIY.js";
58
- export {
59
- ArdoProvider,
60
- CodeBlock,
61
- CodeGroup,
62
- Container,
63
- Content,
64
- CopyButton,
65
- Danger,
66
- DocLayout,
67
- DocPage,
68
- FeatureCard,
69
- Features,
70
- Footer,
71
- Header,
72
- Hero,
73
- HomePage,
74
- Info,
75
- Layout,
76
- Note,
77
- Search,
78
- Sidebar,
79
- TOC,
80
- Tab,
81
- TabList,
82
- TabPanel,
83
- TabPanels,
84
- Tabs,
85
- ThemeToggle,
86
- Tip,
87
- Warning,
88
- defineConfig,
89
- findCurrentSidebarItem,
90
- getPrevNextLinks,
91
- loadConfig,
92
- resolveConfig,
93
- useArdoContext,
94
- useConfig,
95
- usePageData,
96
- useSidebar,
97
- useTOC,
98
- useThemeConfig
99
- };
100
- //# sourceMappingURL=index.js.map
1
+ import { defineConfig, loadConfig, resolveConfig } from "./config/index.js";
2
+ import { a as ArdoProvider, c as useArdoContext, d as useArdoSiteConfig, f as useArdoTOC, l as useArdoPageData, n as getPrevNextLinks, o as ArdoSiteConfigProvider, s as useArdoConfig, t as findCurrentSidebarItem, u as useArdoSidebar } from "./sidebar-utils-1Skqle1Q.js";
3
+ import "./runtime/index.js";
4
+ import { C as ArdoCopyButton, O as ArdoLayout, S as ArdoCodeGroup, _ as ArdoInfo, a as ArdoContent, b as ArdoWarning, c as ArdoTabPanel, d as ArdoSteps, g as ArdoDanger, h as ArdoContainer, i as ArdoTOC, l as ArdoTabPanels, n as ArdoDocLayout, o as ArdoTab, r as ArdoDocPage, s as ArdoTabList, u as ArdoTabs, v as ArdoNote, x as ArdoCodeBlock, y as ArdoTip } from "./DocPage-CIBiCAxZ.js";
5
+ import { a as ArdoFeatureCard, c as ArdoSidebar, d as ArdoHeader, h as ArdoSearch, i as ArdoHero, m as ArdoFooter, o as ArdoFeatures, p as ArdoThemeToggle, r as ArdoHomePage } from "./ui-3grzJSsq.js";
6
+ export { ArdoCodeBlock, ArdoCodeGroup, ArdoContainer, ArdoContent, ArdoCopyButton, ArdoDanger, ArdoDocLayout, ArdoDocPage, ArdoFeatureCard, ArdoFeatures, ArdoFooter, ArdoHeader, ArdoHero, ArdoHomePage, ArdoInfo, ArdoLayout, ArdoNote, ArdoProvider, ArdoSearch, ArdoSidebar, ArdoSiteConfigProvider, ArdoSteps, ArdoTOC, ArdoTab, ArdoTabList, ArdoTabPanel, ArdoTabPanels, ArdoTabs, ArdoThemeToggle, ArdoTip, ArdoWarning, defineConfig, findCurrentSidebarItem, getPrevNextLinks, loadConfig, resolveConfig, useArdoConfig, useArdoContext, useArdoPageData, useArdoSidebar, useArdoSiteConfig, useArdoTOC };
@@ -1,9 +1,66 @@
1
- import { MDXComponents } from 'mdx/types';
2
-
1
+ //#region ../../node_modules/.pnpm/@types+mdx@2.0.13/node_modules/@types/mdx/types.d.ts
2
+ // Internal helper types
3
+ /**
4
+ * This is the global JSX.ElementType if it’s defined, otherwise never.
5
+ */
6
+ // @ts-ignore JSX runtimes may optionally define JSX.ElementType. The MDX types need to work regardless whether this is
7
+ // defined or not.
8
+ type ElementType = any extends JSX.ElementType ? never : JSX.ElementType;
9
+ /**
10
+ * This matches any function component types that ar part of `ElementType`.
11
+ */
12
+ type FunctionElementType = Extract<ElementType, (props: Record<string, any>) => any>;
13
+ /**
14
+ * This matches any class component types that ar part of `ElementType`.
15
+ */
16
+ type ClassElementType = Extract<ElementType, new (props: Record<string, any>) => any>;
17
+ /**
18
+ * A valid JSX string component.
19
+ */
20
+ type StringComponent = Extract<keyof JSX.IntrinsicElements, ElementType extends never ? string : ElementType>;
21
+ /**
22
+ * A JSX element returned by MDX content.
23
+ */
24
+ type Element = JSX.Element;
25
+ /**
26
+ * A valid JSX function component.
27
+ */
28
+ type FunctionComponent<Props> = ElementType extends never // If JSX.ElementType isn’t defined, the valid return type is JSX.Element
29
+ ? (props: Props) => Element | null : FunctionElementType extends never // If JSX.ElementType is defined, but doesn’t allow function components, function components are disallowed.
30
+ ? never // If JSX.ElementType allows function components, its return value determines what is a valid.
31
+ : (props: Props) => ReturnType<FunctionElementType>;
32
+ /**
33
+ * A valid JSX class component.
34
+ */
35
+ type ClassComponent<Props> = ElementType extends never // If JSX.ElementType isn’t defined, the valid return type is a constructor that returns JSX.ElementClass
36
+ ? new (props: Props) => JSX.ElementClass : ClassElementType extends never // If JSX.ElementType is defined, but doesn’t allow constructors, function components are disallowed.
37
+ ? never // If JSX.ElementType allows class components, its return value determines what is a valid.
38
+ : new (props: Props) => InstanceType<ClassElementType>;
39
+ /**
40
+ * Any allowed JSX component.
41
+ */
42
+ type Component<Props> = FunctionComponent<Props> | ClassComponent<Props> | StringComponent;
43
+ interface NestedMDXComponents {
44
+ [key: string]: NestedMDXComponents | Component<any>;
45
+ } // Public MDX helper types
46
+ /**
47
+ * MDX components may be passed as the `components`.
48
+ *
49
+ * The key is the name of the element to override. The value is the component to render instead.
50
+ */
51
+ type MDXComponents = NestedMDXComponents & { [Key in StringComponent]?: Component<JSX.IntrinsicElements[Key]> } & {
52
+ /**
53
+ * If a wrapper component is defined, the MDX content will be wrapped inside of it.
54
+ */
55
+ wrapper?: Component<any>;
56
+ };
57
+ //#endregion
58
+ //#region src/mdx/provider.d.ts
3
59
  /**
4
60
  * Provides MDX components for rendering documentation content.
5
- * Used as the providerImportSource for @mdx-js/rollup.
61
+ * Used as the providerImportSource for `@mdx-js/rollup`.
6
62
  */
7
63
  declare function useMDXComponents(): MDXComponents;
8
-
64
+ //#endregion
9
65
  export { useMDXComponents };
66
+ //# sourceMappingURL=provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider.d.ts","names":["ElementType","JSX","FunctionElementType","Record","Extract","props","ClassElementType","StringComponent","IntrinsicElements","Element","FunctionComponent","Props","ReturnType","ClassComponent","ElementClass","InstanceType","Component","NestedMDXComponents","key","MDXComponents","Key","wrapper","MDXProps","components","MDXContent","MDXModule","default"],"sources":["../../../../node_modules/.pnpm/@types+mdx@2.0.13/node_modules/@types/mdx/types.d.ts","../../src/mdx/provider.tsx"],"x_google_ignoreList":[0],"mappings":";;;;;;;KAOKA,WAAAA,eAA0BC,GAAAA,CAAID,WAAAA,WAAsBC,GAAAA,CAAID,WAAAA;;;AAAW;KAKnEE,mBAAAA,GAAsBE,OAAAA,CAAQJ,WAAAA,GAAcK,KAAAA,EAAOF,MAAAA;;;;KAKnDG,gBAAAA,GAAmBF,OAAAA,CAAQJ,WAAAA,OAAiBK,KAAAA,EAAOF,MAAAA;;;;KAKnDI,eAAAA,GAAkBH,OAAAA,OAAcH,GAAAA,CAAIO,iBAAAA,EAAmBR,WAAAA,0BAAqCA,WAAAA;;AAVtB;;KAe/DS,OAAAA,GAAUR,GAAAA,CAAIQ,OAAAA;;;;KAKrBC,iBAAAA,UAA2BV,WAAAA;AAAAA,GAEzBK,KAAAA,EAAOM,KAAAA,KAAUF,OAAAA,UAClBP,mBAAAA;AAAAA;AAAAA,GAICG,KAAAA,EAAOM,KAAAA,KAAUC,UAAAA,CAAWV,mBAAAA;;;;KAK9BW,cAAAA,UAAwBb,WAAAA;AAAAA,OAEnBK,KAAAA,EAAOM,KAAAA,KAAUV,GAAAA,CAAIa,YAAAA,GACzBR,gBAAAA;AAAAA;AAAAA,OAIID,KAAAA,EAAOM,KAAAA,KAAUI,YAAAA,CAAaT,gBAAAA;;;AAxBxC;KA6BKU,SAAAA,UAAmBN,iBAAAA,CAAkBC,KAAAA,IAASE,cAAAA,CAAeF,KAAAA,IAASJ,eAAAA;AAAAA,UAEjEU,mBAAAA;EAAAA,CACLC,GAAAA,WAAcD,mBAAAA,GAAsBD,SAAAA;AAAAA;;;;;;KAU7BG,aAAAA,GACNF,mBAAAA,aAEUV,eAAAA,IAAmBS,SAAAA,CAAUf,GAAAA,CAAIO,iBAAAA,CAAkBY,GAAAA;EAtC5Df;;;EA4CCgB,OAAAA,GAAUL,SAAAA;AAAAA;;;;;;;iBCuBF,gBAAA,CAAA,GAAoB,aAAA"}
@@ -1,125 +1,97 @@
1
- import {
2
- CodeBlock,
3
- CodeGroup,
4
- Content,
5
- CopyButton,
6
- Danger,
7
- Icon,
8
- Info,
9
- Note,
10
- Tab,
11
- TabList,
12
- TabPanel,
13
- TabPanels,
14
- Tabs,
15
- Tip,
16
- Warning
17
- } from "../chunk-IEPSORG5.js";
18
- import "../chunk-AXLJDGQL.js";
19
- import "../chunk-PMS3P4MA.js";
20
- import "../chunk-FZP2AVJL.js";
21
- import "../chunk-QELSOHIY.js";
22
-
23
- // src/mdx/provider.tsx
24
- import { Link } from "react-router";
1
+ import { C as ArdoCopyButton, E as codeWrapper, S as ArdoCodeGroup, _ as ArdoInfo, b as ArdoWarning, c as ArdoTabPanel, d as ArdoSteps, f as ArdoIcon, g as ArdoDanger, l as ArdoTabPanels, o as ArdoTab, s as ArdoTabList, t as ArdoDocContent, u as ArdoTabs, v as ArdoNote, w as codeBlock, x as ArdoCodeBlock, y as ArdoTip } from "../DocPage-CIBiCAxZ.js";
2
+ import { isValidElement } from "react";
25
3
  import { jsx, jsxs } from "react/jsx-runtime";
26
- function SmartLink({
27
- href,
28
- children,
29
- className,
30
- ...props
31
- }) {
32
- const isExternal = href?.startsWith("http") || href?.startsWith("//");
33
- const isAnchor = href?.startsWith("#");
34
- if (isExternal) {
35
- return /* @__PURE__ */ jsx(
36
- "a",
37
- {
38
- href,
39
- className: className ?? "ardo-link",
40
- target: "_blank",
41
- rel: "noopener noreferrer",
42
- ...props,
43
- children
44
- }
45
- );
46
- }
47
- if (isAnchor || !href) {
48
- return /* @__PURE__ */ jsx("a", { href, className: className ?? "ardo-link", ...props, children });
49
- }
50
- return /* @__PURE__ */ jsx(Link, { to: href, className: className ?? "ardo-link", ...props, children });
4
+ import { Link } from "react-router";
5
+ //#region src/mdx/provider.tsx
6
+ /**
7
+ * Smart link component that uses React Router for internal links
8
+ * and regular anchor tags for external links.
9
+ */
10
+ function SmartLink({ href, children, className, ...props }) {
11
+ const hrefValue = href ?? "";
12
+ const hasHref = hrefValue !== "";
13
+ const isExternal = hrefValue.startsWith("http") || hrefValue.startsWith("//");
14
+ const isAnchor = hrefValue.startsWith("#");
15
+ if (isExternal) return /* @__PURE__ */ jsx("a", {
16
+ href,
17
+ className,
18
+ target: "_blank",
19
+ rel: "noopener noreferrer",
20
+ ...props,
21
+ children
22
+ });
23
+ if (isAnchor || !hasHref) return /* @__PURE__ */ jsx("a", {
24
+ href,
25
+ className,
26
+ ...props,
27
+ children
28
+ });
29
+ return /* @__PURE__ */ jsx(Link, {
30
+ to: hrefValue,
31
+ className,
32
+ ...props,
33
+ children
34
+ });
51
35
  }
36
+ /**
37
+ * Extracts text content from React children (for copy button)
38
+ */
52
39
  function extractTextContent(children) {
53
- if (typeof children === "string") {
54
- return children;
55
- }
56
- if (Array.isArray(children)) {
57
- return children.map(extractTextContent).join("");
58
- }
59
- if (children && typeof children === "object" && "props" in children) {
60
- return extractTextContent(children.props.children);
61
- }
62
- return "";
40
+ if (typeof children === "string") return children;
41
+ if (Array.isArray(children)) return children.map((child) => extractTextContent(child)).join("");
42
+ if (isValidElement(children)) {
43
+ const nestedChildren = children.props.children;
44
+ if (nestedChildren != null) return extractTextContent(nestedChildren);
45
+ }
46
+ return "";
63
47
  }
64
- function PreBlock({
65
- children,
66
- "data-title": dataTitle,
67
- "data-label": dataLabel,
68
- ...props
69
- }) {
70
- const code = extractTextContent(children);
71
- return /* @__PURE__ */ jsxs("div", { className: "ardo-code-block", "data-label": dataLabel, children: [
72
- dataTitle && /* @__PURE__ */ jsx("div", { className: "ardo-code-title", children: dataTitle }),
73
- /* @__PURE__ */ jsxs("div", { className: "ardo-code-wrapper", children: [
74
- /* @__PURE__ */ jsx("pre", { ...props, children }),
75
- /* @__PURE__ */ jsx(CopyButton, { code })
76
- ] })
77
- ] });
48
+ /**
49
+ * Code block wrapper with copy button and optional title.
50
+ * Forwards data-label for CodeGroup tab labels.
51
+ */
52
+ function PreBlock({ children, "data-title": dataTitle, "data-label": dataLabel, ...props }) {
53
+ const code = extractTextContent(children);
54
+ return /* @__PURE__ */ jsxs("div", {
55
+ className: codeBlock,
56
+ "data-label": dataLabel,
57
+ children: [dataTitle != null && dataTitle !== "" && /* @__PURE__ */ jsx("div", {
58
+ className: "_1l68ra31",
59
+ children: dataTitle
60
+ }), /* @__PURE__ */ jsxs("div", {
61
+ className: codeWrapper,
62
+ children: [/* @__PURE__ */ jsx("pre", {
63
+ ...props,
64
+ children
65
+ }), /* @__PURE__ */ jsx(ArdoCopyButton, { code })]
66
+ })]
67
+ });
78
68
  }
69
+ /**
70
+ * Provides MDX components for rendering documentation content.
71
+ * Used as the providerImportSource for `@mdx-js/rollup`.
72
+ */
79
73
  function useMDXComponents() {
80
- return {
81
- // Wrapper for the entire MDX content - uses Content for styling
82
- wrapper: ({ children }) => /* @__PURE__ */ jsx(Content, { children }),
83
- // Custom components for markdown elements with ardo- prefix
84
- h1: (props) => /* @__PURE__ */ jsx("h1", { className: "ardo-heading-1", ...props }),
85
- h2: (props) => /* @__PURE__ */ jsx("h2", { className: "ardo-heading-2", ...props }),
86
- h3: (props) => /* @__PURE__ */ jsx("h3", { className: "ardo-heading-3", ...props }),
87
- h4: (props) => /* @__PURE__ */ jsx("h4", { className: "ardo-heading-4", ...props }),
88
- h5: (props) => /* @__PURE__ */ jsx("h5", { className: "ardo-heading-5", ...props }),
89
- h6: (props) => /* @__PURE__ */ jsx("h6", { className: "ardo-heading-6", ...props }),
90
- p: (props) => /* @__PURE__ */ jsx("p", { className: "ardo-paragraph", ...props }),
91
- a: SmartLink,
92
- ul: (props) => /* @__PURE__ */ jsx("ul", { className: "ardo-list ardo-list-unordered", ...props }),
93
- ol: (props) => /* @__PURE__ */ jsx("ol", { className: "ardo-list ardo-list-ordered", ...props }),
94
- li: (props) => /* @__PURE__ */ jsx("li", { className: "ardo-list-item", ...props }),
95
- blockquote: (props) => /* @__PURE__ */ jsx("blockquote", { className: "ardo-blockquote", ...props }),
96
- pre: PreBlock,
97
- code: (props) => /* @__PURE__ */ jsx("code", { className: "ardo-code", ...props }),
98
- table: (props) => /* @__PURE__ */ jsx("table", { className: "ardo-table", ...props }),
99
- thead: (props) => /* @__PURE__ */ jsx("thead", { className: "ardo-table-head", ...props }),
100
- tbody: (props) => /* @__PURE__ */ jsx("tbody", { className: "ardo-table-body", ...props }),
101
- tr: (props) => /* @__PURE__ */ jsx("tr", { className: "ardo-table-row", ...props }),
102
- th: (props) => /* @__PURE__ */ jsx("th", { className: "ardo-table-header", ...props }),
103
- td: (props) => /* @__PURE__ */ jsx("td", { className: "ardo-table-cell", ...props }),
104
- hr: (props) => /* @__PURE__ */ jsx("hr", { className: "ardo-divider", ...props }),
105
- img: (props) => /* @__PURE__ */ jsx("img", { className: "ardo-image", ...props }),
106
- // Custom Ardo components available in MDX
107
- Icon,
108
- Tip,
109
- Warning,
110
- Danger,
111
- Info,
112
- Note,
113
- Tabs,
114
- TabList,
115
- Tab,
116
- TabPanel,
117
- TabPanels,
118
- CodeBlock,
119
- CodeGroup
120
- };
74
+ return {
75
+ wrapper: ({ children }) => /* @__PURE__ */ jsx(ArdoDocContent, { children }),
76
+ a: SmartLink,
77
+ pre: PreBlock,
78
+ Icon: ArdoIcon,
79
+ Tip: ArdoTip,
80
+ Warning: ArdoWarning,
81
+ Danger: ArdoDanger,
82
+ Info: ArdoInfo,
83
+ Note: ArdoNote,
84
+ Steps: ArdoSteps,
85
+ Tabs: ArdoTabs,
86
+ TabList: ArdoTabList,
87
+ Tab: ArdoTab,
88
+ TabPanel: ArdoTabPanel,
89
+ TabPanels: ArdoTabPanels,
90
+ CodeBlock: ArdoCodeBlock,
91
+ CodeGroup: ArdoCodeGroup
92
+ };
121
93
  }
122
- export {
123
- useMDXComponents
124
- };
94
+ //#endregion
95
+ export { useMDXComponents };
96
+
125
97
  //# sourceMappingURL=provider.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/mdx/provider.tsx"],"sourcesContent":["import type { MDXComponents } from \"mdx/types\"\nimport type {\n ReactNode,\n HTMLAttributes,\n AnchorHTMLAttributes,\n ImgHTMLAttributes,\n TableHTMLAttributes,\n TdHTMLAttributes,\n ThHTMLAttributes,\n} from \"react\"\nimport { Link } from \"react-router\"\nimport { Content } from \"../ui/Content\"\nimport { CopyButton } from \"../ui/components/CopyButton\"\nimport { Icon } from \"../ui/components/Icon\"\nimport { Tip, Warning, Danger, Info, Note } from \"../ui/components/Container\"\nimport { Tabs, TabList, Tab, TabPanel, TabPanels } from \"../ui/components/Tabs\"\nimport { CodeBlock, CodeGroup } from \"../ui/components/CodeBlock\"\n\n/**\n * Smart link component that uses React Router for internal links\n * and regular anchor tags for external links.\n */\nfunction SmartLink({\n href,\n children,\n className,\n ...props\n}: AnchorHTMLAttributes<HTMLAnchorElement>) {\n const isExternal = href?.startsWith(\"http\") || href?.startsWith(\"//\")\n const isAnchor = href?.startsWith(\"#\")\n\n if (isExternal) {\n return (\n <a\n href={href}\n className={className ?? \"ardo-link\"}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n {...props}\n >\n {children}\n </a>\n )\n }\n\n if (isAnchor || !href) {\n return (\n <a href={href} className={className ?? \"ardo-link\"} {...props}>\n {children}\n </a>\n )\n }\n\n // Internal link - use React Router Link for proper basename handling\n return (\n <Link to={href} className={className ?? \"ardo-link\"} {...props}>\n {children}\n </Link>\n )\n}\n\n/**\n * Extracts text content from React children (for copy button)\n */\nfunction extractTextContent(children: ReactNode): string {\n if (typeof children === \"string\") {\n return children\n }\n if (Array.isArray(children)) {\n return children.map(extractTextContent).join(\"\")\n }\n if (children && typeof children === \"object\" && \"props\" in children) {\n return extractTextContent((children as { props: { children?: ReactNode } }).props.children)\n }\n return \"\"\n}\n\n/**\n * Code block wrapper with copy button and optional title.\n * Forwards data-label for CodeGroup tab labels.\n */\nfunction PreBlock({\n children,\n \"data-title\": dataTitle,\n \"data-label\": dataLabel,\n ...props\n}: HTMLAttributes<HTMLPreElement> & { \"data-title\"?: string; \"data-label\"?: string }) {\n const code = extractTextContent(children)\n\n return (\n <div className=\"ardo-code-block\" data-label={dataLabel}>\n {dataTitle && <div className=\"ardo-code-title\">{dataTitle}</div>}\n <div className=\"ardo-code-wrapper\">\n <pre {...props}>{children}</pre>\n <CopyButton code={code} />\n </div>\n </div>\n )\n}\n\n/**\n * Provides MDX components for rendering documentation content.\n * Used as the providerImportSource for @mdx-js/rollup.\n */\nexport function useMDXComponents(): MDXComponents {\n return {\n // Wrapper for the entire MDX content - uses Content for styling\n wrapper: ({ children }: { children: ReactNode }) => <Content>{children}</Content>,\n\n // Custom components for markdown elements with ardo- prefix\n h1: (props: HTMLAttributes<HTMLHeadingElement>) => <h1 className=\"ardo-heading-1\" {...props} />,\n h2: (props: HTMLAttributes<HTMLHeadingElement>) => <h2 className=\"ardo-heading-2\" {...props} />,\n h3: (props: HTMLAttributes<HTMLHeadingElement>) => <h3 className=\"ardo-heading-3\" {...props} />,\n h4: (props: HTMLAttributes<HTMLHeadingElement>) => <h4 className=\"ardo-heading-4\" {...props} />,\n h5: (props: HTMLAttributes<HTMLHeadingElement>) => <h5 className=\"ardo-heading-5\" {...props} />,\n h6: (props: HTMLAttributes<HTMLHeadingElement>) => <h6 className=\"ardo-heading-6\" {...props} />,\n p: (props: HTMLAttributes<HTMLParagraphElement>) => <p className=\"ardo-paragraph\" {...props} />,\n a: SmartLink,\n ul: (props: HTMLAttributes<HTMLUListElement>) => (\n <ul className=\"ardo-list ardo-list-unordered\" {...props} />\n ),\n ol: (props: HTMLAttributes<HTMLOListElement>) => (\n <ol className=\"ardo-list ardo-list-ordered\" {...props} />\n ),\n li: (props: HTMLAttributes<HTMLLIElement>) => <li className=\"ardo-list-item\" {...props} />,\n blockquote: (props: HTMLAttributes<HTMLQuoteElement>) => (\n <blockquote className=\"ardo-blockquote\" {...props} />\n ),\n pre: PreBlock,\n code: (props: HTMLAttributes<HTMLElement>) => <code className=\"ardo-code\" {...props} />,\n table: (props: TableHTMLAttributes<HTMLTableElement>) => (\n <table className=\"ardo-table\" {...props} />\n ),\n thead: (props: HTMLAttributes<HTMLTableSectionElement>) => (\n <thead className=\"ardo-table-head\" {...props} />\n ),\n tbody: (props: HTMLAttributes<HTMLTableSectionElement>) => (\n <tbody className=\"ardo-table-body\" {...props} />\n ),\n tr: (props: HTMLAttributes<HTMLTableRowElement>) => (\n <tr className=\"ardo-table-row\" {...props} />\n ),\n th: (props: ThHTMLAttributes<HTMLTableCellElement>) => (\n <th className=\"ardo-table-header\" {...props} />\n ),\n td: (props: TdHTMLAttributes<HTMLTableCellElement>) => (\n <td className=\"ardo-table-cell\" {...props} />\n ),\n hr: (props: HTMLAttributes<HTMLHRElement>) => <hr className=\"ardo-divider\" {...props} />,\n img: (props: ImgHTMLAttributes<HTMLImageElement>) => <img className=\"ardo-image\" {...props} />,\n\n // Custom Ardo components available in MDX\n Icon,\n Tip,\n Warning,\n Danger,\n Info,\n Note,\n Tabs,\n TabList,\n Tab,\n TabPanel,\n TabPanels,\n CodeBlock,\n CodeGroup,\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAUA,SAAS,YAAY;AAuBf,cA2DA,YA3DA;AAXN,SAAS,UAAU;AAAA,EACjB;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAA4C;AAC1C,QAAM,aAAa,MAAM,WAAW,MAAM,KAAK,MAAM,WAAW,IAAI;AACpE,QAAM,WAAW,MAAM,WAAW,GAAG;AAErC,MAAI,YAAY;AACd,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,WAAW,aAAa;AAAA,QACxB,QAAO;AAAA,QACP,KAAI;AAAA,QACH,GAAG;AAAA,QAEH;AAAA;AAAA,IACH;AAAA,EAEJ;AAEA,MAAI,YAAY,CAAC,MAAM;AACrB,WACE,oBAAC,OAAE,MAAY,WAAW,aAAa,aAAc,GAAG,OACrD,UACH;AAAA,EAEJ;AAGA,SACE,oBAAC,QAAK,IAAI,MAAM,WAAW,aAAa,aAAc,GAAG,OACtD,UACH;AAEJ;AAKA,SAAS,mBAAmB,UAA6B;AACvD,MAAI,OAAO,aAAa,UAAU;AAChC,WAAO;AAAA,EACT;AACA,MAAI,MAAM,QAAQ,QAAQ,GAAG;AAC3B,WAAO,SAAS,IAAI,kBAAkB,EAAE,KAAK,EAAE;AAAA,EACjD;AACA,MAAI,YAAY,OAAO,aAAa,YAAY,WAAW,UAAU;AACnE,WAAO,mBAAoB,SAAiD,MAAM,QAAQ;AAAA,EAC5F;AACA,SAAO;AACT;AAMA,SAAS,SAAS;AAAA,EAChB;AAAA,EACA,cAAc;AAAA,EACd,cAAc;AAAA,EACd,GAAG;AAC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AC,UAAuC,oBAAC,UAAK,WAAU,aAAa,GAAG,OAAO;AAAA,IACrF,OAAO,CAAC,UACN,oBAAC,WAAM,WAAU,cAAc,GAAG,OAAO;AAAA,IAE3C,OAAO,CAAC,UACN,oBAAC,WAAM,WAAU,mBAAmB,GAAG,OAAO;AAAA,IAEhD,OAAO,CAAC,UACN,oBAAC,WAAM,WAAU,mBAAmB,GAAG,OAAO;AAAA,IAEhD,IAAI,CAAC,UACH,oBAAC,QAAG,WAAU,kBAAkB,GAAG,OAAO;AAAA,IAE5C,IAAI,CAAC,UACH,oBAAC,QAAG,WAAU,qBAAqB,GAAG,OAAO;AAAA,IAE/C,IAAI,CAAC,UACH,oBAAC,QAAG,WAAU,mBAAmB,GAAG,OAAO;AAAA,IAE7C,IAAI,CAAC,UAAyC,oBAAC,QAAG,WAAU,gBAAgB,GAAG,OAAO;AAAA,IACtF,KAAK,CAAC,UAA+C,oBAAC,SAAI,WAAU,cAAc,GAAG,OAAO;AAAA;AAAA,IAG5F;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;","names":[]}
1
+ {"version":3,"file":"provider.js","names":["codeStyles.codeBlock","codeStyles.codeWrapper"],"sources":["../../src/mdx/provider.tsx"],"sourcesContent":["import type { MDXComponents } from \"mdx/types\"\nimport type { AnchorHTMLAttributes, HTMLAttributes, ReactNode } from \"react\"\n\nimport { isValidElement } from \"react\"\nimport { Link } from \"react-router\"\n\nimport { ArdoCodeBlock, ArdoCodeGroup } from \"../ui/components/CodeBlock\"\nimport * as codeStyles from \"../ui/components/CodeBlock.css\"\nimport { ArdoDanger, ArdoInfo, ArdoNote, ArdoTip, ArdoWarning } from \"../ui/components/Container\"\nimport { ArdoCopyButton } from \"../ui/components/CopyButton\"\nimport { ArdoIcon } from \"../ui/components/Icon\"\nimport { ArdoSteps } from \"../ui/components/Steps\"\nimport { ArdoTab, ArdoTabList, ArdoTabPanel, ArdoTabPanels, ArdoTabs } from \"../ui/components/Tabs\"\nimport { ArdoDocContent } from \"../ui/DocPage\"\n\n/**\n * Smart link component that uses React Router for internal links\n * and regular anchor tags for external links.\n */\nfunction SmartLink({\n href,\n children,\n className,\n ...props\n}: AnchorHTMLAttributes<HTMLAnchorElement>) {\n const hrefValue = href ?? \"\"\n const hasHref = hrefValue !== \"\"\n const isExternal = hrefValue.startsWith(\"http\") || hrefValue.startsWith(\"//\")\n const isAnchor = hrefValue.startsWith(\"#\")\n\n if (isExternal) {\n return (\n <a href={href} className={className} target=\"_blank\" rel=\"noopener noreferrer\" {...props}>\n {children}\n </a>\n )\n }\n\n if (isAnchor || !hasHref) {\n return (\n <a href={href} className={className} {...props}>\n {children}\n </a>\n )\n }\n\n // Internal link - use React Router Link for proper basename handling\n return (\n <Link to={hrefValue} className={className} {...props}>\n {children}\n </Link>\n )\n}\n\n/**\n * Extracts text content from React children (for copy button)\n */\nfunction extractTextContent(children: ReactNode): string {\n if (typeof children === \"string\") {\n return children\n }\n if (Array.isArray(children)) {\n return children.map((child: ReactNode) => extractTextContent(child)).join(\"\")\n }\n if (isValidElement<{ children?: ReactNode }>(children)) {\n const nestedChildren = children.props.children\n if (nestedChildren != null) {\n return extractTextContent(nestedChildren)\n }\n }\n return \"\"\n}\n\n/**\n * Code block wrapper with copy button and optional title.\n * Forwards data-label for CodeGroup tab labels.\n */\nfunction PreBlock({\n children,\n \"data-title\": dataTitle,\n \"data-label\": dataLabel,\n ...props\n}: { \"data-title\"?: string; \"data-label\"?: string } & HTMLAttributes<HTMLPreElement>) {\n const code = extractTextContent(children)\n const hasDataTitle = dataTitle != null && dataTitle !== \"\"\n\n return (\n <div className={codeStyles.codeBlock} data-label={dataLabel}>\n {hasDataTitle && <div className={codeStyles.codeTitle}>{dataTitle}</div>}\n <div className={codeStyles.codeWrapper}>\n <pre {...props}>{children}</pre>\n <ArdoCopyButton code={code} />\n </div>\n </div>\n )\n}\n\n/**\n * Provides MDX components for rendering documentation content.\n * Used as the providerImportSource for `@mdx-js/rollup`.\n */\nexport function useMDXComponents(): MDXComponents {\n return {\n // Wrapper for the entire MDX content - renders content + TOC via DocContent.\n // The recma-wrap-export plugin wraps this with ArdoPageDataProvider,\n // which makes frontmatter/toc available to both Content and TOC components.\n wrapper: ({ children }: { children: ReactNode }) => <ArdoDocContent>{children}</ArdoDocContent>,\n\n // MDX element overrides styled via tag selectors in content.css.ts\n a: SmartLink,\n pre: PreBlock,\n\n // Custom Ardo components available in MDX (mapped as short names)\n Icon: ArdoIcon,\n Tip: ArdoTip,\n Warning: ArdoWarning,\n Danger: ArdoDanger,\n Info: ArdoInfo,\n Note: ArdoNote,\n Steps: ArdoSteps,\n Tabs: ArdoTabs,\n TabList: ArdoTabList,\n Tab: ArdoTab,\n TabPanel: ArdoTabPanel,\n TabPanels: ArdoTabPanels,\n CodeBlock: ArdoCodeBlock,\n CodeGroup: ArdoCodeGroup,\n }\n}\n"],"mappings":";;;;;;;;;AAmBA,SAAS,UAAU,EACjB,MACA,UACA,WACA,GAAG,SACuC;CAC1C,MAAM,YAAY,QAAQ;CAC1B,MAAM,UAAU,cAAc;CAC9B,MAAM,aAAa,UAAU,WAAW,OAAO,IAAI,UAAU,WAAW,KAAK;CAC7E,MAAM,WAAW,UAAU,WAAW,IAAI;CAE1C,IAAI,YACF,OACE,oBAAC,KAAD;EAAS;EAAiB;EAAW,QAAO;EAAS,KAAI;EAAsB,GAAI;EAChF;EACC,CAAA;CAIR,IAAI,YAAY,CAAC,SACf,OACE,oBAAC,KAAD;EAAS;EAAiB;EAAW,GAAI;EACtC;EACC,CAAA;CAKR,OACE,oBAAC,MAAD;EAAM,IAAI;EAAsB;EAAW,GAAI;EAC5C;EACI,CAAA;;;;;AAOX,SAAS,mBAAmB,UAA6B;CACvD,IAAI,OAAO,aAAa,UACtB,OAAO;CAET,IAAI,MAAM,QAAQ,SAAS,EACzB,OAAO,SAAS,KAAK,UAAqB,mBAAmB,MAAM,CAAC,CAAC,KAAK,GAAG;CAE/E,IAAI,eAAyC,SAAS,EAAE;EACtD,MAAM,iBAAiB,SAAS,MAAM;EACtC,IAAI,kBAAkB,MACpB,OAAO,mBAAmB,eAAe;;CAG7C,OAAO;;;;;;AAOT,SAAS,SAAS,EAChB,UACA,cAAc,WACd,cAAc,WACd,GAAG,SACiF;CACpF,MAAM,OAAO,mBAAmB,SAAS;CAGzC,OACE,qBAAC,OAAD;EAAK,WAAWA;EAAsB,cAAY;YAAlD,CAHmB,aAAa,QAAQ,cAAc,MAInC,oBAAC,OAAD;GAAK,WAAW;aAAuB;GAAgB,CAAA,EACxE,qBAAC,OAAD;GAAK,WAAWC;aAAhB,CACE,oBAAC,OAAD;IAAK,GAAI;IAAQ;IAAe,CAAA,EAChC,oBAAC,gBAAD,EAAsB,MAAQ,CAAA,CAC1B;KACF;;;;;;;AAQV,SAAgB,mBAAkC;CAChD,OAAO;EAIL,UAAU,EAAE,eAAwC,oBAAC,gBAAD,EAAiB,UAA0B,CAAA;EAG/F,GAAG;EACH,KAAK;EAGL,MAAM;EACN,KAAK;EACL,SAAS;EACT,QAAQ;EACR,MAAM;EACN,MAAM;EACN,OAAO;EACP,MAAM;EACN,SAAS;EACT,KAAK;EACL,UAAU;EACV,WAAW;EACX,WAAW;EACX,WAAW;EACZ"}
@@ -1,41 +1,2 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as react from 'react';
3
- import { ReactNode } from 'react';
4
- import { A as ArdoConfig, S as SidebarItem, P as PageData, T as TOCItem, d as ThemeConfig } from '../types-CLkHwCch.js';
5
- import 'shiki';
6
-
7
- interface ArdoContextValue {
8
- config: ArdoConfig;
9
- sidebar: SidebarItem[];
10
- currentPage?: PageData;
11
- }
12
- declare const ArdoContext: react.Context<ArdoContextValue | null>;
13
- declare function useArdoContext(): ArdoContextValue;
14
- declare function useConfig(): ArdoConfig;
15
- declare function useThemeConfig(): ThemeConfig;
16
- declare function useSidebar(): SidebarItem[];
17
- declare function usePageData(): PageData | undefined;
18
- declare function useTOC(): TOCItem[];
19
- interface ArdoProviderProps {
20
- config: ArdoConfig;
21
- sidebar: SidebarItem[];
22
- currentPage?: PageData;
23
- children: ReactNode;
24
- }
25
- declare function ArdoProvider({ config, sidebar, currentPage, children }: ArdoProviderProps): react_jsx_runtime.JSX.Element;
26
-
27
- /**
28
- * Find the current sidebar item based on the current path.
29
- * This is client-safe and does not use any Node.js modules.
30
- */
31
- declare function findCurrentSidebarItem(sidebar: SidebarItem[], currentPath: string): SidebarItem | undefined;
32
- /**
33
- * Get the previous and next sidebar items for navigation.
34
- * This is client-safe and does not use any Node.js modules.
35
- */
36
- declare function getPrevNextLinks(sidebar: SidebarItem[], currentPath: string): {
37
- prev?: SidebarItem;
38
- next?: SidebarItem;
39
- };
40
-
41
- export { ArdoContext, ArdoProvider, findCurrentSidebarItem, getPrevNextLinks, useArdoContext, useConfig, usePageData, useSidebar, useTOC, useThemeConfig };
1
+ import { a as ArdoProvider, c as useArdoConfig, d as useArdoSidebar, f as useArdoSiteConfig, i as ArdoPageDataProvider, l as useArdoContext, n as getPrevNextLinks, o as ArdoSiteConfig, p as useArdoTOC, r as ArdoContext, s as ArdoSiteConfigProvider, t as findCurrentSidebarItem, u as useArdoPageData } from "../index-DySzkJlC.js";
2
+ export { ArdoContext, ArdoPageDataProvider, ArdoProvider, ArdoSiteConfig, ArdoSiteConfigProvider, findCurrentSidebarItem, getPrevNextLinks, useArdoConfig, useArdoContext, useArdoPageData, useArdoSidebar, useArdoSiteConfig, useArdoTOC };