@docusaurus/theme-classic 3.4.0 → 3.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 (328) hide show
  1. package/lib/getSwizzleConfig.js +32 -1
  2. package/lib/index.d.ts +0 -1
  3. package/lib/index.js +1 -1
  4. package/lib/inlineScripts.js +3 -3
  5. package/lib/options.d.ts +0 -1
  6. package/lib/options.js +15 -3
  7. package/lib/theme/Admonition/Icon/Danger.d.ts +0 -2
  8. package/lib/theme/Admonition/Icon/Info.d.ts +0 -2
  9. package/lib/theme/Admonition/Icon/Note.d.ts +0 -2
  10. package/lib/theme/Admonition/Icon/Tip.d.ts +0 -2
  11. package/lib/theme/Admonition/Icon/Warning.d.ts +0 -2
  12. package/lib/theme/Admonition/Layout/index.d.ts +0 -2
  13. package/lib/theme/Admonition/Type/Caution.d.ts +0 -2
  14. package/lib/theme/Admonition/Type/Danger.d.ts +0 -2
  15. package/lib/theme/Admonition/Type/Info.d.ts +0 -2
  16. package/lib/theme/Admonition/Type/Note.d.ts +0 -2
  17. package/lib/theme/Admonition/Type/Tip.d.ts +0 -2
  18. package/lib/theme/Admonition/Type/Warning.d.ts +0 -2
  19. package/lib/theme/Admonition/Types.d.ts +0 -1
  20. package/lib/theme/Admonition/index.d.ts +0 -2
  21. package/lib/theme/AnnouncementBar/CloseButton/index.d.ts +0 -2
  22. package/lib/theme/AnnouncementBar/Content/index.d.ts +0 -2
  23. package/lib/theme/AnnouncementBar/index.d.ts +0 -1
  24. package/lib/theme/BackToTopButton/index.d.ts +0 -1
  25. package/lib/theme/Blog/Components/Author/Socials/index.d.ts +10 -0
  26. package/lib/theme/Blog/Components/Author/Socials/index.js +49 -0
  27. package/lib/theme/Blog/Components/Author/Socials/styles.module.css +39 -0
  28. package/lib/theme/Blog/Components/Author/index.d.ts +8 -0
  29. package/lib/theme/Blog/Components/Author/index.js +86 -0
  30. package/lib/theme/Blog/Components/Author/styles.module.css +74 -0
  31. package/lib/theme/Blog/Pages/BlogAuthorsListPage/index.d.ts +9 -0
  32. package/lib/theme/Blog/Pages/BlogAuthorsListPage/index.js +54 -0
  33. package/lib/theme/Blog/Pages/BlogAuthorsListPage/styles.module.css +11 -0
  34. package/lib/theme/Blog/Pages/BlogAuthorsPostsPage/index.d.ts +8 -0
  35. package/lib/theme/Blog/Pages/BlogAuthorsPostsPage/index.js +67 -0
  36. package/lib/theme/BlogArchivePage/index.d.ts +0 -2
  37. package/lib/theme/BlogLayout/index.d.ts +0 -2
  38. package/lib/theme/BlogListPage/StructuredData/index.d.ts +0 -2
  39. package/lib/theme/BlogListPage/StructuredData/index.js +1 -1
  40. package/lib/theme/BlogListPage/index.d.ts +0 -2
  41. package/lib/theme/BlogListPaginator/index.d.ts +0 -2
  42. package/lib/theme/BlogPostItem/Container/index.d.ts +0 -2
  43. package/lib/theme/BlogPostItem/Content/index.d.ts +0 -2
  44. package/lib/theme/BlogPostItem/Content/index.js +1 -1
  45. package/lib/theme/BlogPostItem/Footer/ReadMoreLink/index.d.ts +0 -2
  46. package/lib/theme/BlogPostItem/Footer/index.d.ts +0 -1
  47. package/lib/theme/BlogPostItem/Footer/index.js +1 -1
  48. package/lib/theme/BlogPostItem/Header/Authors/index.d.ts +0 -2
  49. package/lib/theme/BlogPostItem/Header/Authors/index.js +5 -4
  50. package/lib/theme/BlogPostItem/Header/Authors/styles.module.css +0 -1
  51. package/lib/theme/BlogPostItem/Header/Info/index.d.ts +0 -2
  52. package/lib/theme/BlogPostItem/Header/Info/index.js +2 -4
  53. package/lib/theme/BlogPostItem/Header/Title/index.d.ts +0 -2
  54. package/lib/theme/BlogPostItem/Header/Title/index.js +1 -1
  55. package/lib/theme/BlogPostItem/Header/index.d.ts +0 -1
  56. package/lib/theme/BlogPostItem/index.d.ts +0 -2
  57. package/lib/theme/BlogPostItem/index.js +1 -1
  58. package/lib/theme/BlogPostItems/index.d.ts +0 -2
  59. package/lib/theme/BlogPostItems/index.js +1 -1
  60. package/lib/theme/BlogPostPage/Metadata/index.d.ts +0 -1
  61. package/lib/theme/BlogPostPage/Metadata/index.js +1 -1
  62. package/lib/theme/BlogPostPage/StructuredData/index.d.ts +0 -1
  63. package/lib/theme/BlogPostPage/StructuredData/index.js +1 -1
  64. package/lib/theme/BlogPostPage/index.d.ts +0 -2
  65. package/lib/theme/BlogPostPage/index.js +7 -4
  66. package/lib/theme/BlogPostPaginator/index.d.ts +0 -2
  67. package/lib/theme/BlogSidebar/Content/index.d.ts +11 -0
  68. package/lib/theme/BlogSidebar/Content/index.js +41 -0
  69. package/lib/theme/BlogSidebar/Desktop/index.d.ts +4 -3
  70. package/lib/theme/BlogSidebar/Desktop/index.js +24 -17
  71. package/lib/theme/BlogSidebar/Desktop/styles.module.css +5 -0
  72. package/lib/theme/BlogSidebar/Mobile/index.d.ts +4 -3
  73. package/lib/theme/BlogSidebar/Mobile/index.js +25 -17
  74. package/lib/theme/BlogSidebar/Mobile/styles.module.css +10 -0
  75. package/lib/theme/BlogSidebar/index.d.ts +0 -2
  76. package/lib/theme/BlogTagsListPage/index.d.ts +0 -2
  77. package/lib/theme/BlogTagsPostsPage/index.d.ts +0 -2
  78. package/lib/theme/BlogTagsPostsPage/index.js +3 -31
  79. package/lib/theme/CodeBlock/Content/Element.d.ts +0 -2
  80. package/lib/theme/CodeBlock/Content/String.d.ts +0 -2
  81. package/lib/theme/CodeBlock/CopyButton/index.d.ts +0 -2
  82. package/lib/theme/CodeBlock/Line/index.d.ts +0 -2
  83. package/lib/theme/CodeBlock/WordWrapButton/index.d.ts +0 -2
  84. package/lib/theme/CodeBlock/index.d.ts +0 -2
  85. package/lib/theme/CodeInline/index.d.ts +0 -2
  86. package/lib/theme/ColorModeToggle/index.d.ts +0 -1
  87. package/lib/theme/ContentVisibility/Draft/index.d.ts +8 -0
  88. package/lib/theme/ContentVisibility/Draft/index.js +24 -0
  89. package/lib/theme/{Unlisted → ContentVisibility/Unlisted}/index.d.ts +1 -3
  90. package/lib/theme/ContentVisibility/index.d.ts +8 -0
  91. package/lib/theme/ContentVisibility/index.js +21 -0
  92. package/lib/theme/Details/index.d.ts +0 -2
  93. package/lib/theme/DocBreadcrumbs/Items/Home/index.d.ts +0 -1
  94. package/lib/theme/DocBreadcrumbs/index.d.ts +0 -1
  95. package/lib/theme/DocBreadcrumbs/index.js +2 -4
  96. package/lib/theme/DocCard/index.d.ts +0 -2
  97. package/lib/theme/DocCard/index.js +2 -2
  98. package/lib/theme/DocCardList/index.d.ts +0 -2
  99. package/lib/theme/DocCardList/index.js +1 -1
  100. package/lib/theme/DocCategoryGeneratedIndexPage/index.d.ts +0 -2
  101. package/lib/theme/DocCategoryGeneratedIndexPage/index.js +2 -4
  102. package/lib/theme/DocItem/Content/index.d.ts +0 -2
  103. package/lib/theme/DocItem/Content/index.js +1 -1
  104. package/lib/theme/DocItem/Footer/index.d.ts +0 -1
  105. package/lib/theme/DocItem/Footer/index.js +1 -1
  106. package/lib/theme/DocItem/Layout/index.d.ts +0 -2
  107. package/lib/theme/DocItem/Layout/index.js +4 -6
  108. package/lib/theme/DocItem/Metadata/index.d.ts +0 -1
  109. package/lib/theme/DocItem/Metadata/index.js +1 -1
  110. package/lib/theme/DocItem/Paginator/index.d.ts +0 -1
  111. package/lib/theme/DocItem/Paginator/index.js +1 -1
  112. package/lib/theme/DocItem/TOC/Desktop/index.d.ts +0 -1
  113. package/lib/theme/DocItem/TOC/Desktop/index.js +1 -1
  114. package/lib/theme/DocItem/TOC/Mobile/index.d.ts +0 -1
  115. package/lib/theme/DocItem/TOC/Mobile/index.js +1 -1
  116. package/lib/theme/DocItem/index.d.ts +0 -2
  117. package/lib/theme/DocItem/index.js +1 -1
  118. package/lib/theme/DocPaginator/index.d.ts +0 -2
  119. package/lib/theme/DocRoot/Layout/Main/index.d.ts +0 -2
  120. package/lib/theme/DocRoot/Layout/Main/index.js +1 -1
  121. package/lib/theme/DocRoot/Layout/Sidebar/ExpandButton/index.d.ts +0 -2
  122. package/lib/theme/DocRoot/Layout/Sidebar/index.d.ts +0 -2
  123. package/lib/theme/DocRoot/Layout/Sidebar/index.js +1 -1
  124. package/lib/theme/DocRoot/Layout/index.d.ts +0 -2
  125. package/lib/theme/DocRoot/Layout/index.js +1 -1
  126. package/lib/theme/DocRoot/index.d.ts +0 -2
  127. package/lib/theme/DocRoot/index.js +1 -1
  128. package/lib/theme/DocSidebar/Desktop/CollapseButton/index.d.ts +0 -2
  129. package/lib/theme/DocSidebar/Desktop/Content/index.d.ts +0 -2
  130. package/lib/theme/DocSidebar/Desktop/index.d.ts +0 -1
  131. package/lib/theme/DocSidebar/Mobile/index.d.ts +0 -1
  132. package/lib/theme/DocSidebar/index.d.ts +0 -2
  133. package/lib/theme/DocSidebarItem/Category/index.d.ts +0 -2
  134. package/lib/theme/DocSidebarItem/Category/index.js +2 -2
  135. package/lib/theme/DocSidebarItem/Html/index.d.ts +0 -2
  136. package/lib/theme/DocSidebarItem/Link/index.d.ts +0 -2
  137. package/lib/theme/DocSidebarItem/Link/index.js +1 -1
  138. package/lib/theme/DocSidebarItem/index.d.ts +0 -2
  139. package/lib/theme/DocSidebarItems/index.d.ts +0 -1
  140. package/lib/theme/DocSidebarItems/index.js +1 -1
  141. package/lib/theme/DocTagDocListPage/index.d.ts +0 -2
  142. package/lib/theme/DocTagDocListPage/index.js +1 -1
  143. package/lib/theme/DocTagsListPage/index.d.ts +0 -2
  144. package/lib/theme/DocVersionBadge/index.d.ts +0 -2
  145. package/lib/theme/DocVersionBadge/index.js +1 -1
  146. package/lib/theme/DocVersionBanner/index.d.ts +0 -2
  147. package/lib/theme/DocVersionBanner/index.js +1 -1
  148. package/lib/theme/DocVersionRoot/index.d.ts +0 -2
  149. package/lib/theme/DocVersionRoot/index.js +3 -3
  150. package/lib/theme/DocsRoot/index.d.ts +0 -2
  151. package/lib/theme/EditMetaRow/index.d.ts +0 -2
  152. package/lib/theme/EditThisPage/index.d.ts +0 -2
  153. package/lib/theme/ErrorPageContent.d.ts +0 -2
  154. package/lib/theme/Footer/Copyright/index.d.ts +0 -2
  155. package/lib/theme/Footer/Layout/index.d.ts +0 -2
  156. package/lib/theme/Footer/LinkItem/index.d.ts +0 -2
  157. package/lib/theme/Footer/Links/MultiColumn/index.d.ts +0 -2
  158. package/lib/theme/Footer/Links/Simple/index.d.ts +0 -2
  159. package/lib/theme/Footer/Links/index.d.ts +0 -2
  160. package/lib/theme/Footer/Logo/index.d.ts +0 -2
  161. package/lib/theme/Heading/index.d.ts +0 -2
  162. package/lib/theme/Icon/Arrow/index.d.ts +0 -2
  163. package/lib/theme/Icon/Close/index.d.ts +0 -2
  164. package/lib/theme/Icon/Copy/index.d.ts +0 -2
  165. package/lib/theme/Icon/DarkMode/index.d.ts +0 -2
  166. package/lib/theme/Icon/Edit/index.d.ts +0 -2
  167. package/lib/theme/Icon/ExternalLink/index.d.ts +0 -2
  168. package/lib/theme/Icon/Home/index.d.ts +0 -2
  169. package/lib/theme/Icon/Language/index.d.ts +0 -2
  170. package/lib/theme/Icon/LightMode/index.d.ts +0 -2
  171. package/lib/theme/Icon/Menu/index.d.ts +0 -2
  172. package/lib/theme/Icon/Socials/Default/index.d.ts +9 -0
  173. package/lib/theme/Icon/Socials/Default/index.js +30 -0
  174. package/lib/theme/Icon/Socials/GitHub/index.d.ts +9 -0
  175. package/lib/theme/Icon/Socials/GitHub/index.js +25 -0
  176. package/lib/theme/Icon/Socials/GitHub/styles.module.css +14 -0
  177. package/lib/theme/Icon/Socials/LinkedIn/index.d.ts +9 -0
  178. package/lib/theme/Icon/Socials/LinkedIn/index.js +24 -0
  179. package/lib/theme/Icon/Socials/StackOverflow/index.d.ts +9 -0
  180. package/lib/theme/Icon/Socials/StackOverflow/index.js +27 -0
  181. package/lib/theme/Icon/Socials/Twitter/index.d.ts +9 -0
  182. package/lib/theme/Icon/Socials/Twitter/index.js +24 -0
  183. package/lib/theme/Icon/Socials/X/index.d.ts +9 -0
  184. package/lib/theme/Icon/Socials/X/index.js +25 -0
  185. package/lib/theme/Icon/Socials/X/styles.module.css +14 -0
  186. package/lib/theme/Icon/Success/index.d.ts +0 -2
  187. package/lib/theme/Icon/WordWrap/index.d.ts +0 -2
  188. package/lib/theme/LastUpdated/index.d.ts +0 -2
  189. package/lib/theme/Layout/Provider/index.d.ts +0 -2
  190. package/lib/theme/Layout/Provider/index.js +1 -1
  191. package/lib/theme/Layout/index.d.ts +0 -3
  192. package/lib/theme/Logo/index.d.ts +0 -2
  193. package/lib/theme/MDXComponents/A.d.ts +0 -2
  194. package/lib/theme/MDXComponents/Code.d.ts +0 -2
  195. package/lib/theme/MDXComponents/Details.d.ts +0 -2
  196. package/lib/theme/MDXComponents/Heading.d.ts +0 -2
  197. package/lib/theme/MDXComponents/Img/index.d.ts +0 -2
  198. package/lib/theme/MDXComponents/Li.d.ts +0 -1
  199. package/lib/theme/MDXComponents/Pre.d.ts +0 -1
  200. package/lib/theme/MDXComponents/Ul/index.d.ts +0 -2
  201. package/lib/theme/MDXComponents/index.d.ts +0 -1
  202. package/lib/theme/MDXContent/index.d.ts +0 -2
  203. package/lib/theme/MDXPage/index.d.ts +0 -2
  204. package/lib/theme/MDXPage/index.js +10 -13
  205. package/lib/theme/Mermaid.d.ts +0 -1
  206. package/lib/theme/Navbar/ColorModeToggle/index.d.ts +0 -2
  207. package/lib/theme/Navbar/Content/index.d.ts +0 -1
  208. package/lib/theme/Navbar/Layout/index.d.ts +0 -2
  209. package/lib/theme/Navbar/Logo/index.d.ts +0 -1
  210. package/lib/theme/Navbar/MobileSidebar/Header/index.d.ts +0 -1
  211. package/lib/theme/Navbar/MobileSidebar/Layout/index.d.ts +0 -2
  212. package/lib/theme/Navbar/MobileSidebar/PrimaryMenu/index.d.ts +0 -1
  213. package/lib/theme/Navbar/MobileSidebar/SecondaryMenu/index.d.ts +0 -1
  214. package/lib/theme/Navbar/MobileSidebar/Toggle/index.d.ts +0 -1
  215. package/lib/theme/Navbar/MobileSidebar/index.d.ts +0 -1
  216. package/lib/theme/Navbar/Search/index.d.ts +0 -2
  217. package/lib/theme/Navbar/index.d.ts +0 -1
  218. package/lib/theme/NavbarItem/ComponentTypes.d.ts +0 -1
  219. package/lib/theme/NavbarItem/DefaultNavbarItem.d.ts +0 -2
  220. package/lib/theme/NavbarItem/DocNavbarItem.d.ts +0 -2
  221. package/lib/theme/NavbarItem/DocNavbarItem.js +4 -2
  222. package/lib/theme/NavbarItem/DocSidebarNavbarItem.d.ts +0 -2
  223. package/lib/theme/NavbarItem/DocSidebarNavbarItem.js +4 -2
  224. package/lib/theme/NavbarItem/DocsVersionDropdownNavbarItem.d.ts +0 -2
  225. package/lib/theme/NavbarItem/DocsVersionDropdownNavbarItem.js +19 -14
  226. package/lib/theme/NavbarItem/DocsVersionNavbarItem.d.ts +0 -2
  227. package/lib/theme/NavbarItem/DocsVersionNavbarItem.js +1 -1
  228. package/lib/theme/NavbarItem/DropdownNavbarItem/index.d.ts +0 -2
  229. package/lib/theme/NavbarItem/HtmlNavbarItem.d.ts +0 -2
  230. package/lib/theme/NavbarItem/LocaleDropdownNavbarItem/index.d.ts +0 -2
  231. package/lib/theme/NavbarItem/NavbarNavLink.d.ts +0 -2
  232. package/lib/theme/NavbarItem/SearchNavbarItem.d.ts +0 -2
  233. package/lib/theme/NavbarItem/index.d.ts +0 -2
  234. package/lib/theme/NotFound/Content/index.d.ts +0 -2
  235. package/lib/theme/NotFound/index.d.ts +0 -1
  236. package/lib/theme/PaginatorNavLink/index.d.ts +0 -2
  237. package/lib/theme/SearchBar.d.ts +0 -1
  238. package/lib/theme/SearchMetadata/index.d.ts +0 -2
  239. package/lib/theme/SiteMetadata/index.d.ts +0 -1
  240. package/lib/theme/SkipToContent/index.d.ts +0 -1
  241. package/lib/theme/TOC/index.d.ts +0 -2
  242. package/lib/theme/TOCCollapsible/CollapseButton/index.d.ts +0 -2
  243. package/lib/theme/TOCCollapsible/index.d.ts +0 -2
  244. package/lib/theme/TOCInline/index.d.ts +0 -2
  245. package/lib/theme/TOCItems/Tree.d.ts +0 -1
  246. package/lib/theme/TOCItems/index.d.ts +0 -2
  247. package/lib/theme/TabItem/index.d.ts +0 -2
  248. package/lib/theme/Tabs/index.d.ts +0 -2
  249. package/lib/theme/Tabs/index.js +3 -1
  250. package/lib/theme/Tag/index.d.ts +0 -2
  251. package/lib/theme/TagsListByLetter/index.d.ts +0 -2
  252. package/lib/theme/TagsListInline/index.d.ts +0 -2
  253. package/lib/theme/ThemedImage/index.d.ts +0 -2
  254. package/lib/translations.js +2 -3
  255. package/package.json +15 -15
  256. package/src/getSwizzleConfig.ts +32 -0
  257. package/src/options.ts +18 -2
  258. package/src/theme/Blog/Components/Author/Socials/index.tsx +66 -0
  259. package/src/theme/Blog/Components/Author/Socials/styles.module.css +39 -0
  260. package/src/theme/Blog/Components/Author/index.tsx +99 -0
  261. package/src/theme/Blog/Components/Author/styles.module.css +74 -0
  262. package/src/theme/Blog/Pages/BlogAuthorsListPage/index.tsx +62 -0
  263. package/src/theme/Blog/Pages/BlogAuthorsListPage/styles.module.css +11 -0
  264. package/src/theme/Blog/Pages/BlogAuthorsPostsPage/index.tsx +73 -0
  265. package/src/theme/BlogListPage/StructuredData/index.tsx +1 -1
  266. package/src/theme/BlogPostItem/Content/index.tsx +1 -1
  267. package/src/theme/BlogPostItem/Footer/index.tsx +1 -1
  268. package/src/theme/BlogPostItem/Header/Authors/index.tsx +5 -4
  269. package/src/theme/BlogPostItem/Header/Authors/styles.module.css +0 -1
  270. package/src/theme/BlogPostItem/Header/Info/index.tsx +2 -4
  271. package/src/theme/BlogPostItem/Header/Title/index.tsx +1 -1
  272. package/src/theme/BlogPostItem/index.tsx +1 -1
  273. package/src/theme/BlogPostItems/index.tsx +1 -1
  274. package/src/theme/BlogPostPage/Metadata/index.tsx +1 -1
  275. package/src/theme/BlogPostPage/StructuredData/index.tsx +1 -1
  276. package/src/theme/BlogPostPage/index.tsx +7 -4
  277. package/src/theme/BlogSidebar/Content/index.tsx +57 -0
  278. package/src/theme/BlogSidebar/Desktop/index.tsx +27 -17
  279. package/src/theme/BlogSidebar/Desktop/styles.module.css +5 -0
  280. package/src/theme/BlogSidebar/Mobile/index.tsx +29 -17
  281. package/src/theme/BlogSidebar/Mobile/styles.module.css +10 -0
  282. package/src/theme/BlogTagsPostsPage/index.tsx +3 -33
  283. package/src/theme/ContentVisibility/Draft/index.tsx +27 -0
  284. package/src/theme/{Unlisted → ContentVisibility/Unlisted}/index.tsx +1 -1
  285. package/src/theme/ContentVisibility/index.tsx +27 -0
  286. package/src/theme/DocBreadcrumbs/index.tsx +2 -4
  287. package/src/theme/DocCard/index.tsx +2 -2
  288. package/src/theme/DocCardList/index.tsx +1 -1
  289. package/src/theme/DocCategoryGeneratedIndexPage/index.tsx +2 -4
  290. package/src/theme/DocItem/Content/index.tsx +1 -1
  291. package/src/theme/DocItem/Footer/index.tsx +1 -1
  292. package/src/theme/DocItem/Layout/index.tsx +4 -6
  293. package/src/theme/DocItem/Metadata/index.tsx +1 -1
  294. package/src/theme/DocItem/Paginator/index.tsx +1 -1
  295. package/src/theme/DocItem/TOC/Desktop/index.tsx +1 -1
  296. package/src/theme/DocItem/TOC/Mobile/index.tsx +1 -1
  297. package/src/theme/DocItem/index.tsx +1 -1
  298. package/src/theme/DocRoot/Layout/Main/index.tsx +1 -1
  299. package/src/theme/DocRoot/Layout/Sidebar/index.tsx +1 -1
  300. package/src/theme/DocRoot/Layout/index.tsx +1 -1
  301. package/src/theme/DocRoot/index.tsx +1 -1
  302. package/src/theme/DocSidebarItem/Category/index.tsx +2 -2
  303. package/src/theme/DocSidebarItem/Link/index.tsx +1 -1
  304. package/src/theme/DocSidebarItems/index.tsx +1 -1
  305. package/src/theme/DocTagDocListPage/index.tsx +1 -1
  306. package/src/theme/DocVersionBadge/index.tsx +1 -1
  307. package/src/theme/DocVersionBanner/index.tsx +1 -1
  308. package/src/theme/DocVersionRoot/index.tsx +3 -3
  309. package/src/theme/Icon/Socials/Default/index.tsx +33 -0
  310. package/src/theme/Icon/Socials/GitHub/index.tsx +29 -0
  311. package/src/theme/Icon/Socials/GitHub/styles.module.css +14 -0
  312. package/src/theme/Icon/Socials/LinkedIn/index.tsx +27 -0
  313. package/src/theme/Icon/Socials/StackOverflow/index.tsx +30 -0
  314. package/src/theme/Icon/Socials/Twitter/index.tsx +27 -0
  315. package/src/theme/Icon/Socials/X/index.tsx +29 -0
  316. package/src/theme/Icon/Socials/X/styles.module.css +14 -0
  317. package/src/theme/Layout/Provider/index.tsx +1 -1
  318. package/src/theme/MDXPage/index.tsx +10 -13
  319. package/src/theme/NavbarItem/DocNavbarItem.tsx +4 -2
  320. package/src/theme/NavbarItem/DocSidebarNavbarItem.tsx +4 -2
  321. package/src/theme/NavbarItem/DocsVersionDropdownNavbarItem.tsx +32 -16
  322. package/src/theme/NavbarItem/DocsVersionNavbarItem.tsx +1 -1
  323. package/src/theme/Tabs/index.tsx +3 -1
  324. package/src/theme-classic.d.ts +106 -12
  325. package/lib/theme/BlogPostItem/Header/Author/index.d.ts +0 -10
  326. package/lib/theme/BlogPostItem/Header/Author/index.js +0 -39
  327. package/src/theme/BlogPostItem/Header/Author/index.tsx +0 -47
  328. /package/lib/theme/{Unlisted → ContentVisibility/Unlisted}/index.js +0 -0
@@ -8,10 +8,8 @@
8
8
  import React, {type ReactNode} from 'react';
9
9
  import clsx from 'clsx';
10
10
  import {ThemeClassNames} from '@docusaurus/theme-common';
11
- import {
12
- useSidebarBreadcrumbs,
13
- useHomePageRoute,
14
- } from '@docusaurus/theme-common/internal';
11
+ import {useSidebarBreadcrumbs} from '@docusaurus/plugin-content-docs/client';
12
+ import {useHomePageRoute} from '@docusaurus/theme-common/internal';
15
13
  import Link from '@docusaurus/Link';
16
14
  import {translate} from '@docusaurus/Translate';
17
15
  import HomeBreadcrumbItem from '@theme/DocBreadcrumbs/Items/Home';
@@ -9,9 +9,9 @@ import React, {type ReactNode} from 'react';
9
9
  import clsx from 'clsx';
10
10
  import Link from '@docusaurus/Link';
11
11
  import {
12
- findFirstSidebarItemLink,
13
12
  useDocById,
14
- } from '@docusaurus/theme-common/internal';
13
+ findFirstSidebarItemLink,
14
+ } from '@docusaurus/plugin-content-docs/client';
15
15
  import {usePluralForm} from '@docusaurus/theme-common';
16
16
  import isInternalUrl from '@docusaurus/isInternalUrl';
17
17
  import {translate} from '@docusaurus/Translate';
@@ -10,7 +10,7 @@ import clsx from 'clsx';
10
10
  import {
11
11
  useCurrentSidebarCategory,
12
12
  filterDocCardListItems,
13
- } from '@docusaurus/theme-common';
13
+ } from '@docusaurus/plugin-content-docs/client';
14
14
  import DocCard from '@theme/DocCard';
15
15
  import type {Props} from '@theme/DocCardList';
16
16
 
@@ -6,10 +6,8 @@
6
6
  */
7
7
 
8
8
  import React from 'react';
9
- import {
10
- PageMetadata,
11
- useCurrentSidebarCategory,
12
- } from '@docusaurus/theme-common';
9
+ import {PageMetadata} from '@docusaurus/theme-common';
10
+ import {useCurrentSidebarCategory} from '@docusaurus/plugin-content-docs/client';
13
11
  import useBaseUrl from '@docusaurus/useBaseUrl';
14
12
  import DocCardList from '@theme/DocCardList';
15
13
  import DocPaginator from '@theme/DocPaginator';
@@ -8,7 +8,7 @@
8
8
  import React from 'react';
9
9
  import clsx from 'clsx';
10
10
  import {ThemeClassNames} from '@docusaurus/theme-common';
11
- import {useDoc} from '@docusaurus/theme-common/internal';
11
+ import {useDoc} from '@docusaurus/plugin-content-docs/client';
12
12
  import Heading from '@theme/Heading';
13
13
  import MDXContent from '@theme/MDXContent';
14
14
  import type {Props} from '@theme/DocItem/Content';
@@ -8,7 +8,7 @@
8
8
  import React from 'react';
9
9
  import clsx from 'clsx';
10
10
  import {ThemeClassNames} from '@docusaurus/theme-common';
11
- import {useDoc} from '@docusaurus/theme-common/internal';
11
+ import {useDoc} from '@docusaurus/plugin-content-docs/client';
12
12
  import TagsListInline from '@theme/TagsListInline';
13
13
 
14
14
  import EditMetaRow from '@theme/EditMetaRow';
@@ -8,7 +8,7 @@
8
8
  import React from 'react';
9
9
  import clsx from 'clsx';
10
10
  import {useWindowSize} from '@docusaurus/theme-common';
11
- import {useDoc} from '@docusaurus/theme-common/internal';
11
+ import {useDoc} from '@docusaurus/plugin-content-docs/client';
12
12
  import DocItemPaginator from '@theme/DocItem/Paginator';
13
13
  import DocVersionBanner from '@theme/DocVersionBanner';
14
14
  import DocVersionBadge from '@theme/DocVersionBadge';
@@ -17,7 +17,7 @@ import DocItemTOCMobile from '@theme/DocItem/TOC/Mobile';
17
17
  import DocItemTOCDesktop from '@theme/DocItem/TOC/Desktop';
18
18
  import DocItemContent from '@theme/DocItem/Content';
19
19
  import DocBreadcrumbs from '@theme/DocBreadcrumbs';
20
- import Unlisted from '@theme/Unlisted';
20
+ import ContentVisibility from '@theme/ContentVisibility';
21
21
  import type {Props} from '@theme/DocItem/Layout';
22
22
 
23
23
  import styles from './styles.module.css';
@@ -48,13 +48,11 @@ function useDocTOC() {
48
48
 
49
49
  export default function DocItemLayout({children}: Props): JSX.Element {
50
50
  const docTOC = useDocTOC();
51
- const {
52
- metadata: {unlisted},
53
- } = useDoc();
51
+ const {metadata} = useDoc();
54
52
  return (
55
53
  <div className="row">
56
54
  <div className={clsx('col', !docTOC.hidden && styles.docItemCol)}>
57
- {unlisted && <Unlisted />}
55
+ <ContentVisibility metadata={metadata} />
58
56
  <DocVersionBanner />
59
57
  <div className={styles.docItemContainer}>
60
58
  <article>
@@ -7,7 +7,7 @@
7
7
 
8
8
  import React from 'react';
9
9
  import {PageMetadata} from '@docusaurus/theme-common';
10
- import {useDoc} from '@docusaurus/theme-common/internal';
10
+ import {useDoc} from '@docusaurus/plugin-content-docs/client';
11
11
 
12
12
  export default function DocItemMetadata(): JSX.Element {
13
13
  const {metadata, frontMatter, assets} = useDoc();
@@ -6,7 +6,7 @@
6
6
  */
7
7
 
8
8
  import React from 'react';
9
- import {useDoc} from '@docusaurus/theme-common/internal';
9
+ import {useDoc} from '@docusaurus/plugin-content-docs/client';
10
10
  import DocPaginator from '@theme/DocPaginator';
11
11
 
12
12
  /**
@@ -7,7 +7,7 @@
7
7
 
8
8
  import React from 'react';
9
9
  import {ThemeClassNames} from '@docusaurus/theme-common';
10
- import {useDoc} from '@docusaurus/theme-common/internal';
10
+ import {useDoc} from '@docusaurus/plugin-content-docs/client';
11
11
 
12
12
  import TOC from '@theme/TOC';
13
13
 
@@ -8,7 +8,7 @@
8
8
  import React from 'react';
9
9
  import clsx from 'clsx';
10
10
  import {ThemeClassNames} from '@docusaurus/theme-common';
11
- import {useDoc} from '@docusaurus/theme-common/internal';
11
+ import {useDoc} from '@docusaurus/plugin-content-docs/client';
12
12
 
13
13
  import TOCCollapsible from '@theme/TOCCollapsible';
14
14
 
@@ -7,7 +7,7 @@
7
7
 
8
8
  import React from 'react';
9
9
  import {HtmlClassNameProvider} from '@docusaurus/theme-common';
10
- import {DocProvider} from '@docusaurus/theme-common/internal';
10
+ import {DocProvider} from '@docusaurus/plugin-content-docs/client';
11
11
  import DocItemMetadata from '@theme/DocItem/Metadata';
12
12
  import DocItemLayout from '@theme/DocItem/Layout';
13
13
  import type {Props} from '@theme/DocItem';
@@ -7,7 +7,7 @@
7
7
 
8
8
  import React from 'react';
9
9
  import clsx from 'clsx';
10
- import {useDocsSidebar} from '@docusaurus/theme-common/internal';
10
+ import {useDocsSidebar} from '@docusaurus/plugin-content-docs/client';
11
11
  import type {Props} from '@theme/DocRoot/Layout/Main';
12
12
 
13
13
  import styles from './styles.module.css';
@@ -8,7 +8,7 @@
8
8
  import React, {type ReactNode, useState, useCallback} from 'react';
9
9
  import clsx from 'clsx';
10
10
  import {prefersReducedMotion, ThemeClassNames} from '@docusaurus/theme-common';
11
- import {useDocsSidebar} from '@docusaurus/theme-common/internal';
11
+ import {useDocsSidebar} from '@docusaurus/plugin-content-docs/client';
12
12
  import {useLocation} from '@docusaurus/router';
13
13
  import DocSidebar from '@theme/DocSidebar';
14
14
  import ExpandButton from '@theme/DocRoot/Layout/Sidebar/ExpandButton';
@@ -6,7 +6,7 @@
6
6
  */
7
7
 
8
8
  import React, {useState} from 'react';
9
- import {useDocsSidebar} from '@docusaurus/theme-common/internal';
9
+ import {useDocsSidebar} from '@docusaurus/plugin-content-docs/client';
10
10
  import BackToTopButton from '@theme/BackToTopButton';
11
11
  import DocRootLayoutSidebar from '@theme/DocRoot/Layout/Sidebar';
12
12
  import DocRootLayoutMain from '@theme/DocRoot/Layout/Main';
@@ -11,7 +11,7 @@ import {HtmlClassNameProvider, ThemeClassNames} from '@docusaurus/theme-common';
11
11
  import {
12
12
  DocsSidebarProvider,
13
13
  useDocRootMetadata,
14
- } from '@docusaurus/theme-common/internal';
14
+ } from '@docusaurus/plugin-content-docs/client';
15
15
  import DocRootLayout from '@theme/DocRoot/Layout';
16
16
  import NotFoundContent from '@theme/NotFound/Content';
17
17
  import type {Props} from '@theme/DocRoot';
@@ -14,12 +14,12 @@ import {
14
14
  Collapsible,
15
15
  useCollapsible,
16
16
  } from '@docusaurus/theme-common';
17
+ import {isSamePath} from '@docusaurus/theme-common/internal';
17
18
  import {
18
19
  isActiveSidebarItem,
19
20
  findFirstSidebarItemLink,
20
21
  useDocSidebarItemsExpandedState,
21
- isSamePath,
22
- } from '@docusaurus/theme-common/internal';
22
+ } from '@docusaurus/plugin-content-docs/client';
23
23
  import Link from '@docusaurus/Link';
24
24
  import {translate} from '@docusaurus/Translate';
25
25
  import useIsBrowser from '@docusaurus/useIsBrowser';
@@ -8,7 +8,7 @@
8
8
  import React from 'react';
9
9
  import clsx from 'clsx';
10
10
  import {ThemeClassNames} from '@docusaurus/theme-common';
11
- import {isActiveSidebarItem} from '@docusaurus/theme-common/internal';
11
+ import {isActiveSidebarItem} from '@docusaurus/plugin-content-docs/client';
12
12
  import Link from '@docusaurus/Link';
13
13
  import isInternalUrl from '@docusaurus/isInternalUrl';
14
14
  import IconExternalLink from '@theme/Icon/ExternalLink';
@@ -9,7 +9,7 @@ import React, {memo} from 'react';
9
9
  import {
10
10
  DocSidebarItemsExpandedStateProvider,
11
11
  useVisibleSidebarItems,
12
- } from '@docusaurus/theme-common/internal';
12
+ } from '@docusaurus/plugin-content-docs/client';
13
13
  import DocSidebarItem from '@theme/DocSidebarItem';
14
14
 
15
15
  import type {Props} from '@theme/DocSidebarItems';
@@ -17,7 +17,7 @@ import {
17
17
  import Translate, {translate} from '@docusaurus/Translate';
18
18
  import SearchMetadata from '@theme/SearchMetadata';
19
19
  import type {Props} from '@theme/DocTagDocListPage';
20
- import Unlisted from '@theme/Unlisted';
20
+ import Unlisted from '@theme/ContentVisibility/Unlisted';
21
21
  import Heading from '@theme/Heading';
22
22
 
23
23
  // Very simple pluralization: probably good enough for now
@@ -9,7 +9,7 @@ import React from 'react';
9
9
  import clsx from 'clsx';
10
10
  import Translate from '@docusaurus/Translate';
11
11
  import {ThemeClassNames} from '@docusaurus/theme-common';
12
- import {useDocsVersion} from '@docusaurus/theme-common/internal';
12
+ import {useDocsVersion} from '@docusaurus/plugin-content-docs/client';
13
13
  import type {Props} from '@theme/DocVersionBadge';
14
14
 
15
15
  export default function DocVersionBadge({
@@ -19,7 +19,7 @@ import {ThemeClassNames} from '@docusaurus/theme-common';
19
19
  import {
20
20
  useDocsPreferredVersion,
21
21
  useDocsVersion,
22
- } from '@docusaurus/theme-common/internal';
22
+ } from '@docusaurus/plugin-content-docs/client';
23
23
  import type {Props} from '@theme/DocVersionBanner';
24
24
  import type {
25
25
  VersionBanner,
@@ -8,9 +8,9 @@
8
8
  import React from 'react';
9
9
  import {HtmlClassNameProvider, PageMetadata} from '@docusaurus/theme-common';
10
10
  import {
11
- docVersionSearchTag,
11
+ getDocsVersionSearchTag,
12
12
  DocsVersionProvider,
13
- } from '@docusaurus/theme-common/internal';
13
+ } from '@docusaurus/plugin-content-docs/client';
14
14
  import renderRoutes from '@docusaurus/renderRoutes';
15
15
  import SearchMetadata from '@theme/SearchMetadata';
16
16
 
@@ -22,7 +22,7 @@ function DocVersionRootMetadata(props: Props): JSX.Element {
22
22
  <>
23
23
  <SearchMetadata
24
24
  version={version.version}
25
- tag={docVersionSearchTag(version.pluginId, version.version)}
25
+ tag={getDocsVersionSearchTag(version.pluginId, version.version)}
26
26
  />
27
27
  <PageMetadata>
28
28
  {version.noIndex && <meta name="robots" content="noindex, nofollow" />}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ import type {SVGProps} from 'react';
9
+
10
+ // SVG Source: https://tabler.io/
11
+ function DefaultSocial(props: SVGProps<SVGSVGElement>): JSX.Element {
12
+ return (
13
+ <svg
14
+ xmlns="http://www.w3.org/2000/svg"
15
+ width="1em"
16
+ height="1em"
17
+ viewBox="0 0 24 24"
18
+ fill="none"
19
+ stroke="currentColor"
20
+ strokeWidth="2"
21
+ strokeLinecap="round"
22
+ strokeLinejoin="round"
23
+ {...props}>
24
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
25
+ <path d="M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0" />
26
+ <path d="M3.6 9h16.8" />
27
+ <path d="M3.6 15h16.8" />
28
+ <path d="M11.5 3a17 17 0 0 0 0 18" />
29
+ <path d="M12.5 3a17 17 0 0 1 0 18" />
30
+ </svg>
31
+ );
32
+ }
33
+ export default DefaultSocial;
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ import type {SVGProps} from 'react';
9
+
10
+ import clsx from 'clsx';
11
+ import styles from './styles.module.css';
12
+
13
+ // SVG Source: https://svgl.app/
14
+ function GitHub(props: SVGProps<SVGSVGElement>): JSX.Element {
15
+ return (
16
+ <svg
17
+ viewBox="0 0 256 250"
18
+ width="1em"
19
+ height="1em"
20
+ {...props}
21
+ className={clsx(props.className, styles.githubSvg)}
22
+ xmlns="http://www.w3.org/2000/svg"
23
+ style={{'--dark': '#000', '--light': '#fff'} as React.CSSProperties}
24
+ preserveAspectRatio="xMidYMid">
25
+ <path d="M128.001 0C57.317 0 0 57.307 0 128.001c0 56.554 36.676 104.535 87.535 121.46 6.397 1.185 8.746-2.777 8.746-6.158 0-3.052-.12-13.135-.174-23.83-35.61 7.742-43.124-15.103-43.124-15.103-5.823-14.795-14.213-18.73-14.213-18.73-11.613-7.944.876-7.78.876-7.78 12.853.902 19.621 13.19 19.621 13.19 11.417 19.568 29.945 13.911 37.249 10.64 1.149-8.272 4.466-13.92 8.127-17.116-28.431-3.236-58.318-14.212-58.318-63.258 0-13.975 5-25.394 13.188-34.358-1.329-3.224-5.71-16.242 1.24-33.874 0 0 10.749-3.44 35.21 13.121 10.21-2.836 21.16-4.258 32.038-4.307 10.878.049 21.837 1.47 32.066 4.307 24.431-16.56 35.165-13.12 35.165-13.12 6.967 17.63 2.584 30.65 1.255 33.873 8.207 8.964 13.173 20.383 13.173 34.358 0 49.163-29.944 59.988-58.447 63.157 4.591 3.972 8.682 11.762 8.682 23.704 0 17.126-.148 30.91-.148 35.126 0 3.407 2.304 7.398 8.792 6.14C219.37 232.5 256 184.537 256 128.002 256 57.307 198.691 0 128.001 0Zm-80.06 182.34c-.282.636-1.283.827-2.194.39-.929-.417-1.45-1.284-1.15-1.922.276-.655 1.279-.838 2.205-.399.93.418 1.46 1.293 1.139 1.931Zm6.296 5.618c-.61.566-1.804.303-2.614-.591-.837-.892-.994-2.086-.375-2.66.63-.566 1.787-.301 2.626.591.838.903 1 2.088.363 2.66Zm4.32 7.188c-.785.545-2.067.034-2.86-1.104-.784-1.138-.784-2.503.017-3.05.795-.547 2.058-.055 2.861 1.075.782 1.157.782 2.522-.019 3.08Zm7.304 8.325c-.701.774-2.196.566-3.29-.49-1.119-1.032-1.43-2.496-.726-3.27.71-.776 2.213-.558 3.315.49 1.11 1.03 1.45 2.505.701 3.27Zm9.442 2.81c-.31 1.003-1.75 1.459-3.199 1.033-1.448-.439-2.395-1.613-2.103-2.626.301-1.01 1.747-1.484 3.207-1.028 1.446.436 2.396 1.602 2.095 2.622Zm10.744 1.193c.036 1.055-1.193 1.93-2.715 1.95-1.53.034-2.769-.82-2.786-1.86 0-1.065 1.202-1.932 2.733-1.958 1.522-.03 2.768.818 2.768 1.868Zm10.555-.405c.182 1.03-.875 2.088-2.387 2.37-1.485.271-2.861-.365-3.05-1.386-.184-1.056.893-2.114 2.376-2.387 1.514-.263 2.868.356 3.061 1.403Z" />
26
+ </svg>
27
+ );
28
+ }
29
+ export default GitHub;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ [data-theme='dark'] .githubSvg {
9
+ fill: var(--light);
10
+ }
11
+
12
+ [data-theme='light'] .githubSvg {
13
+ fill: var(--dark);
14
+ }
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ import type {SVGProps} from 'react';
9
+
10
+ // SVG Source: https://svgl.app/
11
+ function LinkedIn(props: SVGProps<SVGSVGElement>): JSX.Element {
12
+ return (
13
+ <svg
14
+ width="1em"
15
+ height="1em"
16
+ xmlns="http://www.w3.org/2000/svg"
17
+ preserveAspectRatio="xMidYMid"
18
+ viewBox="0 0 256 256"
19
+ {...props}>
20
+ <path
21
+ d="M218.123 218.127h-37.931v-59.403c0-14.165-.253-32.4-19.728-32.4-19.756 0-22.779 15.434-22.779 31.369v60.43h-37.93V95.967h36.413v16.694h.51a39.907 39.907 0 0 1 35.928-19.733c38.445 0 45.533 25.288 45.533 58.186l-.016 67.013ZM56.955 79.27c-12.157.002-22.014-9.852-22.016-22.009-.002-12.157 9.851-22.014 22.008-22.016 12.157-.003 22.014 9.851 22.016 22.008A22.013 22.013 0 0 1 56.955 79.27m18.966 138.858H37.95V95.967h37.97v122.16ZM237.033.018H18.89C8.58-.098.125 8.161-.001 18.471v219.053c.122 10.315 8.576 18.582 18.89 18.474h218.144c10.336.128 18.823-8.139 18.966-18.474V18.454c-.147-10.33-8.635-18.588-18.966-18.453"
22
+ fill="#0A66C2"
23
+ />
24
+ </svg>
25
+ );
26
+ }
27
+ export default LinkedIn;
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ import type {SVGProps} from 'react';
9
+
10
+ // SVG Source: https://svgl.app/
11
+ function StackOverflow(props: SVGProps<SVGSVGElement>): JSX.Element {
12
+ return (
13
+ <svg
14
+ xmlns="http://www.w3.org/2000/svg"
15
+ viewBox="0 0 169.61 200"
16
+ width="1em"
17
+ height="1em"
18
+ {...props}>
19
+ <path
20
+ d="M140.44 178.38v-48.65h21.61V200H0v-70.27h21.61v48.65z"
21
+ fill="#bcbbbb"
22
+ />
23
+ <path
24
+ d="M124.24 140.54l4.32-16.22-86.97-17.83-3.78 17.83zM49.7 82.16L130.72 120l7.56-16.22-81.02-37.83zm22.68-40l68.06 57.3 11.35-13.51-68.6-57.3-11.35 13.51zM116.14 0l-14.59 10.81 53.48 71.89 14.58-10.81zM37.81 162.16h86.43v-16.21H37.81z"
25
+ fill="#f48024"
26
+ />
27
+ </svg>
28
+ );
29
+ }
30
+ export default StackOverflow;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ import type {SVGProps} from 'react';
9
+
10
+ // SVG Source: https://svgl.app/
11
+ function Twitter(props: SVGProps<SVGSVGElement>): JSX.Element {
12
+ return (
13
+ <svg
14
+ viewBox="0 0 256 209"
15
+ width="1em"
16
+ height="1em"
17
+ xmlns="http://www.w3.org/2000/svg"
18
+ preserveAspectRatio="xMidYMid"
19
+ {...props}>
20
+ <path
21
+ d="M256 25.45c-9.42 4.177-19.542 7-30.166 8.27 10.845-6.5 19.172-16.793 23.093-29.057a105.183 105.183 0 0 1-33.351 12.745C205.995 7.201 192.346.822 177.239.822c-29.006 0-52.523 23.516-52.523 52.52 0 4.117.465 8.125 1.36 11.97-43.65-2.191-82.35-23.1-108.255-54.876-4.52 7.757-7.11 16.78-7.11 26.404 0 18.222 9.273 34.297 23.365 43.716a52.312 52.312 0 0 1-23.79-6.57c-.003.22-.003.44-.003.661 0 25.447 18.104 46.675 42.13 51.5a52.592 52.592 0 0 1-23.718.9c6.683 20.866 26.08 36.05 49.062 36.475-17.975 14.086-40.622 22.483-65.228 22.483-4.24 0-8.42-.249-12.529-.734 23.243 14.902 50.85 23.597 80.51 23.597 96.607 0 149.434-80.031 149.434-149.435 0-2.278-.05-4.543-.152-6.795A106.748 106.748 0 0 0 256 25.45"
22
+ fill="#55acee"
23
+ />
24
+ </svg>
25
+ );
26
+ }
27
+ export default Twitter;
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ import type {SVGProps} from 'react';
9
+
10
+ import clsx from 'clsx';
11
+ import styles from './styles.module.css';
12
+
13
+ // SVG Source: https://svgl.app/
14
+ function X(props: SVGProps<SVGSVGElement>): JSX.Element {
15
+ return (
16
+ <svg
17
+ xmlns="http://www.w3.org/2000/svg"
18
+ width="1em"
19
+ height="1em"
20
+ fill="none"
21
+ viewBox="0 0 1200 1227"
22
+ {...props}
23
+ className={clsx(props.className, styles.xSvg)}
24
+ style={{'--dark': '#000', '--light': '#fff'} as React.CSSProperties}>
25
+ <path d="M714.163 519.284 1160.89 0h-105.86L667.137 450.887 357.328 0H0l468.492 681.821L0 1226.37h105.866l409.625-476.152 327.181 476.152H1200L714.137 519.284h.026ZM569.165 687.828l-47.468-67.894-377.686-540.24h162.604l304.797 435.991 47.468 67.894 396.2 566.721H892.476L569.165 687.854v-.026Z" />
26
+ </svg>
27
+ );
28
+ }
29
+ export default X;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ [data-theme='dark'] .xSvg {
9
+ fill: var(--light);
10
+ }
11
+
12
+ [data-theme='light'] .xSvg {
13
+ fill: var(--dark);
14
+ }
@@ -10,11 +10,11 @@ import {composeProviders} from '@docusaurus/theme-common';
10
10
  import {
11
11
  ColorModeProvider,
12
12
  AnnouncementBarProvider,
13
- DocsPreferredVersionContextProvider,
14
13
  ScrollControllerProvider,
15
14
  NavbarProvider,
16
15
  PluginHtmlClassNameProvider,
17
16
  } from '@docusaurus/theme-common/internal';
17
+ import {DocsPreferredVersionContextProvider} from '@docusaurus/plugin-content-docs/client';
18
18
  import type {Props} from '@theme/Layout/Provider';
19
19
 
20
20
  const Provider = composeProviders([
@@ -15,7 +15,7 @@ import {
15
15
  import Layout from '@theme/Layout';
16
16
  import MDXContent from '@theme/MDXContent';
17
17
  import TOC from '@theme/TOC';
18
- import Unlisted from '@theme/Unlisted';
18
+ import ContentVisibility from '@theme/ContentVisibility';
19
19
  import type {Props} from '@theme/MDXPage';
20
20
 
21
21
  import EditMetaRow from '@theme/EditMetaRow';
@@ -23,18 +23,15 @@ import styles from './styles.module.css';
23
23
 
24
24
  export default function MDXPage(props: Props): JSX.Element {
25
25
  const {content: MDXPageContent} = props;
26
+ const {metadata, assets} = MDXPageContent;
26
27
  const {
27
- metadata: {
28
- title,
29
- editUrl,
30
- description,
31
- frontMatter,
32
- unlisted,
33
- lastUpdatedBy,
34
- lastUpdatedAt,
35
- },
36
- assets,
37
- } = MDXPageContent;
28
+ title,
29
+ editUrl,
30
+ description,
31
+ frontMatter,
32
+ lastUpdatedBy,
33
+ lastUpdatedAt,
34
+ } = metadata;
38
35
  const {
39
36
  keywords,
40
37
  wrapperClassName,
@@ -60,7 +57,7 @@ export default function MDXPage(props: Props): JSX.Element {
60
57
  <main className="container container--fluid margin-vert--lg">
61
58
  <div className={clsx('row', styles.mdxPageWrapper)}>
62
59
  <div className={clsx('col', !hideTableOfContents && 'col--8')}>
63
- {unlisted && <Unlisted />}
60
+ <ContentVisibility metadata={metadata} />
64
61
  <article>
65
62
  <MDXContent>
66
63
  <MDXPageContent />
@@ -6,8 +6,10 @@
6
6
  */
7
7
 
8
8
  import React from 'react';
9
- import {useActiveDocContext} from '@docusaurus/plugin-content-docs/client';
10
- import {useLayoutDoc} from '@docusaurus/theme-common/internal';
9
+ import {
10
+ useActiveDocContext,
11
+ useLayoutDoc,
12
+ } from '@docusaurus/plugin-content-docs/client';
11
13
  import DefaultNavbarItem from '@theme/NavbarItem/DefaultNavbarItem';
12
14
  import type {Props} from '@theme/NavbarItem/DocNavbarItem';
13
15
 
@@ -6,8 +6,10 @@
6
6
  */
7
7
 
8
8
  import React from 'react';
9
- import {useActiveDocContext} from '@docusaurus/plugin-content-docs/client';
10
- import {useLayoutDocsSidebar} from '@docusaurus/theme-common/internal';
9
+ import {
10
+ useActiveDocContext,
11
+ useLayoutDocsSidebar,
12
+ } from '@docusaurus/plugin-content-docs/client';
11
13
  import DefaultNavbarItem from '@theme/NavbarItem/DefaultNavbarItem';
12
14
  import type {Props} from '@theme/NavbarItem/DocSidebarNavbarItem';
13
15