@redocly/theme 0.4.15 → 0.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.
- package/{REAMDE.md → README.md} +0 -0
- package/lib/ApiOnboarding/AppCustomAttributes.d.ts +5 -0
- package/lib/ApiOnboarding/AppCustomAttributes.js +8 -0
- package/{Button → lib/Button}/Button.d.ts +0 -0
- package/lib/Button/Button.js +156 -0
- package/{Button → lib/Button}/index.d.ts +0 -0
- package/{Button → lib/Button}/index.js +1 -0
- package/{Cards → lib/Cards}/Card.d.ts +0 -0
- package/lib/Cards/Card.js +36 -0
- package/{Cards → lib/Cards}/CardsBlock.d.ts +0 -0
- package/lib/Cards/CardsBlock.js +15 -0
- package/{CodeBlock → lib/CodeBlock}/CodeBlock.d.ts +0 -0
- package/lib/CodeBlock/CodeBlock.js +103 -0
- package/{CodeBlock → lib/CodeBlock}/index.d.ts +0 -0
- package/{CodeBlock → lib/CodeBlock}/index.js +1 -0
- package/{ColorModeSwitcher → lib/ColorModeSwitcher}/ColorModeSwitcher.d.ts +0 -0
- package/{ColorModeSwitcher → lib/ColorModeSwitcher}/ColorModeSwitcher.js +22 -36
- package/{ColorModeSwitcher → lib/ColorModeSwitcher}/index.d.ts +0 -0
- package/{ColorModeSwitcher → lib/ColorModeSwitcher}/index.js +1 -0
- package/{CopyButton → lib/CopyButton}/CopyButton.d.ts +0 -0
- package/lib/CopyButton/CopyButton.js +50 -0
- package/{CopyButton → lib/CopyButton}/CopyButtonWrapper.d.ts +0 -0
- package/{CopyButton → lib/CopyButton}/CopyButtonWrapper.js +14 -15
- package/{CopyButton → lib/CopyButton}/index.d.ts +0 -0
- package/{CopyButton → lib/CopyButton}/index.js +1 -0
- package/{EditPageButton → lib/EditPageButton}/EditPageButton.d.ts +0 -0
- package/lib/EditPageButton/EditPageButton.js +36 -0
- package/{EditPageButton → lib/EditPageButton}/index.d.ts +0 -0
- package/{EditPageButton → lib/EditPageButton}/index.js +1 -0
- package/{Footer → lib/Footer}/CustomFooter.d.ts +0 -0
- package/lib/Footer/CustomFooter.js +35 -0
- package/{Footer → lib/Footer}/CustomFooterNavItem.d.ts +0 -0
- package/lib/Footer/CustomFooterNavItem.js +33 -0
- package/{Footer → lib/Footer}/Footer.d.ts +0 -0
- package/lib/Footer/Footer.js +35 -0
- package/{Footer → lib/Footer}/FooterColumn.d.ts +0 -0
- package/lib/Footer/FooterColumn.js +54 -0
- package/{Footer → lib/Footer}/FooterColumns.d.ts +0 -0
- package/lib/Footer/FooterColumns.js +44 -0
- package/{Footer → lib/Footer}/FooterCopyright.d.ts +0 -0
- package/lib/Footer/FooterCopyright.js +26 -0
- package/{Footer → lib/Footer}/index.d.ts +0 -0
- package/{Footer → lib/Footer}/index.js +1 -0
- package/{JsonViewer → lib/JsonViewer}/JsonViewer.d.ts +0 -0
- package/lib/JsonViewer/JsonViewer.js +240 -0
- package/{JsonViewer → lib/JsonViewer}/index.d.ts +0 -0
- package/{JsonViewer → lib/JsonViewer}/index.js +1 -0
- package/lib/LastUpdated/LastUpdated.d.ts +14 -0
- package/lib/LastUpdated/LastUpdated.js +52 -0
- package/{Layout → lib/Layout}/PageLayout.d.ts +0 -0
- package/lib/Layout/PageLayout.js +29 -0
- package/{Layout → lib/Layout}/RootLayout.d.ts +0 -0
- package/lib/Layout/RootLayout.js +19 -0
- package/{Layout → lib/Layout}/index.d.ts +0 -0
- package/{Layout → lib/Layout}/index.js +1 -0
- package/{Markdown → lib/Markdown}/Admonition.d.ts +0 -0
- package/lib/Markdown/Admonition.js +56 -0
- package/{Markdown → lib/Markdown}/CodeSample/CodeSample.d.ts +0 -0
- package/lib/Markdown/CodeSample/CodeSample.js +219 -0
- package/{Markdown → lib/Markdown}/CodeSample/index.d.ts +0 -0
- package/{Markdown → lib/Markdown}/CodeSample/index.js +1 -0
- package/{Markdown → lib/Markdown}/ContainerWrapper.d.ts +0 -0
- package/lib/Markdown/ContainerWrapper.js +26 -0
- package/{Markdown → lib/Markdown}/Details.d.ts +0 -0
- package/lib/Markdown/Details.js +17 -0
- package/{Markdown → lib/Markdown}/Heading.d.ts +0 -0
- package/{Markdown → lib/Markdown}/Heading.js +9 -9
- package/{Markdown → lib/Markdown}/MarkdownLayout.d.ts +1 -0
- package/lib/Markdown/MarkdownLayout.js +30 -0
- package/{Markdown → lib/Markdown}/MarkdownWrapper.d.ts +0 -0
- package/lib/Markdown/MarkdownWrapper.js +391 -0
- package/{Markdown → lib/Markdown}/Mermaid.d.ts +0 -0
- package/lib/Markdown/Mermaid.js +19 -0
- package/{Markdown → lib/Markdown}/PageWrapper.d.ts +0 -0
- package/lib/Markdown/PageWrapper.js +15 -0
- package/{Markdown → lib/Markdown}/Sup.d.ts +0 -0
- package/lib/Markdown/Sup.js +14 -0
- package/{Markdown → lib/Markdown}/Tabs/Tab.d.ts +0 -0
- package/lib/Markdown/Tabs/Tab.js +28 -0
- package/{Markdown → lib/Markdown}/Tabs/Tabs.d.ts +0 -0
- package/lib/Markdown/Tabs/Tabs.js +62 -0
- package/{Markdown → lib/Markdown}/Tabs/index.d.ts +0 -0
- package/{Markdown → lib/Markdown}/Tabs/index.js +1 -0
- package/{Markdown → lib/Markdown}/index.d.ts +0 -0
- package/{Markdown → lib/Markdown}/index.js +1 -0
- package/{Navbar → lib/Navbar}/MobileNavbarDropdown.d.ts +0 -0
- package/lib/Navbar/MobileNavbarDropdown.js +30 -0
- package/{Navbar → lib/Navbar}/MobileNavbarItem.d.ts +1 -1
- package/lib/Navbar/MobileNavbarItem.js +106 -0
- package/{Navbar → lib/Navbar}/MobileNavbarMenu.d.ts +0 -0
- package/lib/Navbar/MobileNavbarMenu.js +92 -0
- package/{Navbar → lib/Navbar}/MobileNavbarMenuButton.d.ts +0 -0
- package/lib/Navbar/MobileNavbarMenuButton.js +18 -0
- package/{Navbar → lib/Navbar}/Navbar.d.ts +0 -0
- package/lib/Navbar/Navbar.js +75 -0
- package/{Navbar → lib/Navbar}/NavbarDropdown.d.ts +0 -0
- package/lib/Navbar/NavbarDropdown.js +38 -0
- package/{Navbar → lib/Navbar}/NavbarItem.d.ts +1 -1
- package/lib/Navbar/NavbarItem.js +72 -0
- package/{Navbar → lib/Navbar}/NavbarMenu.d.ts +0 -0
- package/lib/Navbar/NavbarMenu.js +34 -0
- package/{Navbar → lib/Navbar}/index.d.ts +0 -0
- package/{Navbar → lib/Navbar}/index.js +1 -0
- package/{NavbarLogo → lib/NavbarLogo}/NavbarLogo.d.ts +0 -0
- package/lib/NavbarLogo/NavbarLogo.js +24 -0
- package/{NavbarLogo → lib/NavbarLogo}/index.d.ts +0 -0
- package/{NavbarLogo → lib/NavbarLogo}/index.js +1 -0
- package/{OperationBadge → lib/OperationBadge}/OperationBadge.d.ts +0 -0
- package/lib/OperationBadge/OperationBadge.js +68 -0
- package/{OperationBadge → lib/OperationBadge}/index.d.ts +0 -0
- package/{OperationBadge → lib/OperationBadge}/index.js +1 -0
- package/{PageNavigation → lib/PageNavigation}/NextPageLink.d.ts +0 -0
- package/lib/PageNavigation/NextPageLink.js +26 -0
- package/{PageNavigation → lib/PageNavigation}/PageNavigation.d.ts +0 -0
- package/lib/PageNavigation/PageNavigation.js +31 -0
- package/{PageNavigation → lib/PageNavigation}/PreviousPageLink.d.ts +0 -0
- package/lib/PageNavigation/PreviousPageLink.js +26 -0
- package/{PageNavigation → lib/PageNavigation}/index.d.ts +0 -0
- package/{PageNavigation → lib/PageNavigation}/index.js +1 -0
- package/{Panel → lib/Panel}/Panel.d.ts +0 -0
- package/lib/Panel/Panel.js +39 -0
- package/{Panel → lib/Panel}/PanelBody.d.ts +0 -0
- package/lib/Panel/PanelBody.js +59 -0
- package/{Panel → lib/Panel}/PanelComponent.d.ts +1 -1
- package/{Panel → lib/Panel}/PanelComponent.js +21 -36
- package/{Panel → lib/Panel}/PanelHeader.d.ts +0 -0
- package/lib/Panel/PanelHeader.js +33 -0
- package/{Panel → lib/Panel}/PanelHeaderTitle.d.ts +0 -0
- package/lib/Panel/PanelHeaderTitle.js +21 -0
- package/{Panel → lib/Panel}/index.d.ts +0 -0
- package/{Panel → lib/Panel}/index.js +1 -0
- package/{Profile → lib/Profile}/Profile.d.ts +0 -0
- package/lib/Profile/Profile.js +87 -0
- package/{Profile → lib/Profile}/index.d.ts +0 -0
- package/{Profile → lib/Profile}/index.js +1 -0
- package/{SamplesPanelControls → lib/SamplesPanelControls}/SamplesPanelControls.d.ts +0 -0
- package/lib/SamplesPanelControls/SamplesPanelControls.js +74 -0
- package/{SamplesPanelControls → lib/SamplesPanelControls}/index.d.ts +0 -0
- package/{SamplesPanelControls → lib/SamplesPanelControls}/index.js +1 -0
- package/{Search → lib/Search}/Autocomplete.d.ts +0 -0
- package/lib/Search/Autocomplete.js +105 -0
- package/{Search → lib/Search}/ClearIcon.d.ts +0 -0
- package/lib/Search/ClearIcon.js +26 -0
- package/{Search → lib/Search}/Input.d.ts +0 -0
- package/lib/Search/Input.js +30 -0
- package/{Search → lib/Search}/Parameters.d.ts +0 -0
- package/lib/Search/Parameters.js +55 -0
- package/{Search → lib/Search}/Popover.d.ts +0 -0
- package/lib/Search/Popover.js +26 -0
- package/{Search → lib/Search}/Search.d.ts +0 -0
- package/lib/Search/Search.js +27 -0
- package/{Search → lib/Search}/SearchIcon.d.ts +0 -0
- package/lib/Search/SearchIcon.js +27 -0
- package/{Search → lib/Search}/SearchItem.d.ts +0 -0
- package/lib/Search/SearchItem.js +98 -0
- package/{Search → lib/Search}/SidebarSearch.d.ts +0 -0
- package/lib/Search/SidebarSearch.js +20 -0
- package/{Search → lib/Search}/index.d.ts +0 -0
- package/{Search → lib/Search}/index.js +1 -0
- package/{Search → lib/Search}/utils.d.ts +0 -0
- package/{Search → lib/Search}/utils.js +8 -26
- package/{Sidebar → lib/Sidebar}/ApiCallItem.d.ts +0 -0
- package/lib/Sidebar/ApiCallItem.js +34 -0
- package/{Sidebar → lib/Sidebar}/ArrowBack.d.ts +0 -0
- package/lib/Sidebar/ArrowBack.js +22 -0
- package/{Sidebar → lib/Sidebar}/BackButton.d.ts +0 -0
- package/lib/Sidebar/BackButton.js +39 -0
- package/{Sidebar → lib/Sidebar}/Drilldown.d.ts +0 -0
- package/lib/Sidebar/Drilldown.js +43 -0
- package/{Sidebar → lib/Sidebar}/DrilldownMenu.d.ts +0 -0
- package/lib/Sidebar/DrilldownMenu.js +71 -0
- package/{Sidebar → lib/Sidebar}/DrilldownMenuItem.d.ts +0 -0
- package/lib/Sidebar/DrilldownMenuItem.js +42 -0
- package/{Sidebar → lib/Sidebar}/ExternalIcon.d.ts +0 -0
- package/lib/Sidebar/ExternalIcon.js +21 -0
- package/{Sidebar → lib/Sidebar}/Menu.d.ts +0 -0
- package/lib/Sidebar/Menu.js +17 -0
- package/{Sidebar → lib/Sidebar}/MenuContainer.d.ts +0 -0
- package/lib/Sidebar/MenuContainer.js +16 -0
- package/{Sidebar → lib/Sidebar}/MenuGroup.d.ts +0 -0
- package/lib/Sidebar/MenuGroup.js +88 -0
- package/{Sidebar → lib/Sidebar}/MenuItem.d.ts +0 -0
- package/{Sidebar → lib/Sidebar}/MenuItem.js +9 -14
- package/{Sidebar → lib/Sidebar}/MenuItemLabel.d.ts +0 -0
- package/lib/Sidebar/MenuItemLabel.js +46 -0
- package/lib/Sidebar/MenuLink.d.ts +4 -0
- package/lib/Sidebar/MenuLink.js +15 -0
- package/{Sidebar → lib/Sidebar}/MenuLinkItem.d.ts +0 -0
- package/lib/Sidebar/MenuLinkItem.js +15 -0
- package/{Sidebar → lib/Sidebar}/MobileSidebarButton.d.ts +0 -0
- package/lib/Sidebar/MobileSidebarButton.js +46 -0
- package/{Sidebar → lib/Sidebar}/Separator.d.ts +0 -0
- package/lib/Sidebar/Separator.js +18 -0
- package/{Sidebar → lib/Sidebar}/SeparatorItem.d.ts +0 -0
- package/lib/Sidebar/SeparatorItem.js +25 -0
- package/{Sidebar → lib/Sidebar}/SeparatorLine.d.ts +0 -0
- package/lib/Sidebar/SeparatorLine.js +15 -0
- package/{Sidebar → lib/Sidebar}/Sidebar.d.ts +0 -0
- package/lib/Sidebar/Sidebar.js +55 -0
- package/{Sidebar → lib/Sidebar}/SidebarLayout.d.ts +0 -0
- package/lib/Sidebar/SidebarLayout.js +31 -0
- package/{Sidebar → lib/Sidebar}/index.d.ts +0 -0
- package/{Sidebar → lib/Sidebar}/index.js +1 -0
- package/{Sidebar → lib/Sidebar}/types/DrilldownMenuProps.d.ts +0 -0
- package/{Sidebar → lib/Sidebar}/types/DrilldownMenuProps.js +1 -0
- package/{Sidebar → lib/Sidebar}/types/ItemState.d.ts +0 -0
- package/{Sidebar → lib/Sidebar}/types/ItemState.js +1 -0
- package/{Sidebar → lib/Sidebar}/types/MenuItemProps.d.ts +0 -0
- package/{Sidebar → lib/Sidebar}/types/MenuItemProps.js +1 -0
- package/{Sidebar → lib/Sidebar}/types/MenuStyle.d.ts +0 -0
- package/{Sidebar → lib/Sidebar}/types/MenuStyle.js +1 -0
- package/{Sidebar → lib/Sidebar}/types/NavItem.d.ts +0 -0
- package/{Sidebar → lib/Sidebar}/types/NavItem.js +1 -0
- package/{Sidebar → lib/Sidebar}/types/index.d.ts +0 -0
- package/{Sidebar → lib/Sidebar}/types/index.js +1 -0
- package/{SidebarLogo → lib/SidebarLogo}/SidebarLogo.d.ts +0 -0
- package/lib/SidebarLogo/SidebarLogo.js +31 -0
- package/{SidebarLogo → lib/SidebarLogo}/index.d.ts +0 -0
- package/{SidebarLogo → lib/SidebarLogo}/index.js +1 -0
- package/{SourceCode → lib/SourceCode}/SourceCode.d.ts +0 -0
- package/{SourceCode → lib/SourceCode}/SourceCode.js +14 -34
- package/{SourceCode → lib/SourceCode}/index.d.ts +0 -0
- package/{SourceCode → lib/SourceCode}/index.js +1 -0
- package/{TableOfContent → lib/TableOfContent}/TableOfContent.d.ts +0 -0
- package/lib/TableOfContent/TableOfContent.js +116 -0
- package/{TableOfContent → lib/TableOfContent}/index.d.ts +0 -0
- package/{TableOfContent → lib/TableOfContent}/index.js +1 -0
- package/{TableOfContent → lib/TableOfContent}/utils.d.ts +0 -0
- package/lib/TableOfContent/utils.js +41 -0
- package/{Tooltip → lib/Tooltip}/Tooltip.d.ts +0 -0
- package/lib/Tooltip/Tooltip.js +173 -0
- package/{Tooltip → lib/Tooltip}/index.d.ts +0 -0
- package/{Tooltip → lib/Tooltip}/index.js +1 -0
- package/{Typography → lib/Typography}/CompactTypography.d.ts +0 -0
- package/lib/Typography/CompactTypography.js +14 -0
- package/{Typography → lib/Typography}/Emphasis.d.ts +0 -0
- package/lib/Typography/Emphasis.js +13 -0
- package/{Typography → lib/Typography}/H1.d.ts +0 -0
- package/lib/Typography/H1.js +17 -0
- package/{Typography → lib/Typography}/H2.d.ts +0 -0
- package/lib/Typography/H2.js +17 -0
- package/{Typography → lib/Typography}/H3.d.ts +0 -0
- package/lib/Typography/H3.js +17 -0
- package/{Typography → lib/Typography}/SectionHeader.d.ts +0 -0
- package/lib/Typography/SectionHeader.js +19 -0
- package/{Typography → lib/Typography}/Typography.d.ts +0 -0
- package/lib/Typography/Typography.js +22 -0
- package/{Typography → lib/Typography}/index.d.ts +0 -0
- package/{Typography → lib/Typography}/index.js +1 -0
- package/{globalStyle.d.ts → lib/globalStyle.d.ts} +0 -0
- package/lib/globalStyle.js +1924 -0
- package/{hooks → lib/hooks}/__tests__/mocks/MockIntersectionObserver.d.ts +0 -0
- package/lib/hooks/__tests__/mocks/MockIntersectionObserver.js +79 -0
- package/{hooks → lib/hooks}/index.d.ts +0 -0
- package/{hooks → lib/hooks}/index.js +1 -0
- package/{hooks → lib/hooks}/useActiveHeading.d.ts +0 -0
- package/lib/hooks/useActiveHeading.js +85 -0
- package/{hooks → lib/hooks}/useActiveSectionId.d.ts +0 -0
- package/lib/hooks/useActiveSectionId.js +47 -0
- package/{hooks → lib/hooks}/useControl.d.ts +0 -0
- package/lib/hooks/useControl.js +16 -0
- package/{hooks → lib/hooks}/useDefaultThemeSettings.d.ts +0 -0
- package/{hooks → lib/hooks}/useDefaultThemeSettings.js +3 -2
- package/{hooks → lib/hooks}/useFullHeight.d.ts +0 -0
- package/{hooks → lib/hooks}/useFullHeight.js +13 -12
- package/{hooks → lib/hooks}/useMobileMenu.d.ts +0 -0
- package/lib/hooks/useMobileMenu.js +13 -0
- package/{hooks → lib/hooks}/useMount.d.ts +0 -0
- package/{hooks → lib/hooks}/useMount.js +4 -3
- package/{hooks → lib/hooks}/useNavbarHeight.d.ts +0 -0
- package/lib/hooks/useNavbarHeight.js +21 -0
- package/{hooks → lib/hooks}/useOutsideClick.d.ts +0 -0
- package/{hooks → lib/hooks}/useOutsideClick.js +5 -4
- package/{hooks → lib/hooks}/useUnmount.d.ts +0 -0
- package/{hooks → lib/hooks}/useUnmount.js +5 -4
- package/{icons → lib/icons}/AlertIcon/AlertIcon.d.ts +0 -0
- package/{icons → lib/icons}/AlertIcon/AlertIcon.js +22 -17
- package/{icons → lib/icons}/AlertIcon/index.d.ts +0 -0
- package/{icons → lib/icons}/AlertIcon/index.js +1 -0
- package/{icons → lib/icons}/ArrowIcon/ArrowIcon.d.ts +0 -0
- package/lib/icons/ArrowIcon/ArrowIcon.js +32 -0
- package/{icons → lib/icons}/ArrowIcon/index.d.ts +0 -0
- package/{icons → lib/icons}/ArrowIcon/index.js +1 -0
- package/{icons → lib/icons}/ColorModeIcon/ColorModeIcon.d.ts +0 -0
- package/{icons → lib/icons}/ColorModeIcon/ColorModeIcon.js +10 -11
- package/{icons → lib/icons}/ColorModeIcon/index.d.ts +0 -0
- package/{icons → lib/icons}/ColorModeIcon/index.js +1 -0
- package/{icons → lib/icons}/ShelfIcon/ShelfIcon.d.ts +0 -0
- package/lib/icons/ShelfIcon/ShelfIcon.js +52 -0
- package/{icons → lib/icons}/ShelfIcon/index.d.ts +0 -0
- package/{icons → lib/icons}/ShelfIcon/index.js +1 -0
- package/{icons → lib/icons}/index.d.ts +0 -0
- package/{icons → lib/icons}/index.js +1 -0
- package/{index.d.ts → lib/index.d.ts} +0 -0
- package/{index.js → lib/index.js} +1 -0
- package/{mocks → lib/mocks}/Link.d.ts +0 -0
- package/lib/mocks/Link.js +27 -0
- package/{mocks → lib/mocks}/constants/index.d.ts +0 -0
- package/{mocks → lib/mocks}/constants/index.js +1 -0
- package/{mocks → lib/mocks}/hooks/index.d.ts +0 -0
- package/{mocks → lib/mocks}/hooks/index.js +2 -1
- package/{mocks → lib/mocks}/hooks/usePageData.d.ts +0 -0
- package/{mocks → lib/mocks}/hooks/usePageData.js +1 -0
- package/{mocks → lib/mocks}/search.d.ts +0 -0
- package/{mocks → lib/mocks}/search.js +2 -1
- package/{mocks → lib/mocks}/types/index.d.ts +0 -0
- package/{mocks → lib/mocks}/types/index.js +1 -0
- package/lib/mocks/types.d.ts +14 -0
- package/{mocks → lib/mocks}/types.js +1 -0
- package/{mocks → lib/mocks}/usePreloadHistory.d.ts +0 -0
- package/{mocks → lib/mocks}/usePreloadHistory.js +3 -2
- package/{mocks → lib/mocks}/utils.d.ts +0 -0
- package/{mocks → lib/mocks}/utils.js +3 -2
- package/{ui → lib/ui}/Background.d.ts +0 -0
- package/lib/ui/Background.js +21 -0
- package/{ui → lib/ui}/Box.d.ts +0 -0
- package/lib/ui/Box.js +21 -0
- package/{ui → lib/ui}/Burger.d.ts +0 -0
- package/lib/ui/Burger.js +31 -0
- package/{ui → lib/ui}/Dropdown.d.ts +0 -0
- package/lib/ui/Dropdown.js +115 -0
- package/{ui → lib/ui}/Flex.d.ts +0 -0
- package/lib/ui/Flex.js +21 -0
- package/{ui → lib/ui}/Jumbotron.d.ts +0 -0
- package/lib/ui/Jumbotron.js +51 -0
- package/{ui → lib/ui}/Tiles/ThinTile.d.ts +1 -1
- package/lib/ui/Tiles/ThinTile.js +124 -0
- package/{ui → lib/ui}/Tiles/TileHeader.d.ts +0 -0
- package/lib/ui/Tiles/TileHeader.js +19 -0
- package/{ui → lib/ui}/Tiles/TileText.d.ts +0 -0
- package/lib/ui/Tiles/TileText.js +18 -0
- package/{ui → lib/ui}/Tiles/WideTile.d.ts +0 -0
- package/lib/ui/Tiles/WideTile.js +114 -0
- package/{ui → lib/ui}/Tiles/index.d.ts +0 -0
- package/{ui → lib/ui}/Tiles/index.js +1 -0
- package/{ui → lib/ui}/darkColors.d.ts +0 -0
- package/lib/ui/darkColors.js +70 -0
- package/{ui → lib/ui}/index.d.ts +0 -1
- package/{ui → lib/ui}/index.js +2 -5
- package/{utils → lib/utils}/ClipboardService.d.ts +0 -0
- package/{utils → lib/utils}/ClipboardService.js +11 -13
- package/{utils → lib/utils}/args-typecheck.d.ts +0 -0
- package/{utils → lib/utils}/args-typecheck.js +1 -0
- package/{utils → lib/utils}/class-names.d.ts +0 -0
- package/lib/utils/class-names.js +12 -0
- package/{utils → lib/utils}/color.d.ts +0 -0
- package/{utils → lib/utils}/color.js +7 -6
- package/{utils → lib/utils}/css-variables.d.ts +0 -0
- package/lib/utils/css-variables.js +6 -0
- package/{utils → lib/utils}/getNavbarElement.d.ts +0 -0
- package/{utils → lib/utils}/getNavbarElement.js +3 -2
- package/{utils → lib/utils}/highlight.d.ts +0 -0
- package/{utils → lib/utils}/highlight.js +10 -11
- package/{utils → lib/utils}/index.d.ts +0 -0
- package/{utils → lib/utils}/index.js +1 -0
- package/{utils → lib/utils}/isUrl.d.ts +0 -0
- package/{utils → lib/utils}/isUrl.js +6 -5
- package/{utils → lib/utils}/jsonToHtml.d.ts +0 -0
- package/lib/utils/jsonToHtml.js +180 -0
- package/{utils → lib/utils}/media-css.d.ts +0 -0
- package/lib/utils/media-css.js +13 -0
- package/{utils → lib/utils}/replaceHashInColor.d.ts +0 -0
- package/{utils → lib/utils}/replaceHashInColor.js +1 -0
- package/{utils → lib/utils}/theme-helpers.d.ts +0 -0
- package/lib/utils/theme-helpers.js +75 -0
- package/package.json +104 -5
- package/src/ApiOnboarding/AppCustomAttributes.tsx +6 -0
- package/src/Button/Button.tsx +2 -1
- package/src/Cards/Card.tsx +1 -2
- package/src/CopyButton/CopyButtonWrapper.tsx +1 -2
- package/src/EditPageButton/EditPageButton.tsx +4 -0
- package/src/Footer/CustomFooter.tsx +1 -2
- package/src/Footer/CustomFooterNavItem.tsx +1 -2
- package/src/Footer/Footer.tsx +1 -2
- package/src/Footer/FooterColumn.tsx +8 -3
- package/src/Footer/FooterColumns.tsx +1 -2
- package/src/JsonViewer/JsonViewer.tsx +2 -1
- package/src/LastUpdated/LastUpdated.tsx +41 -5
- package/src/Markdown/Admonition.tsx +3 -0
- package/src/Markdown/CodeSample/CodeSample.tsx +8 -0
- package/src/Markdown/Heading.tsx +2 -1
- package/src/Markdown/MarkdownLayout.tsx +2 -1
- package/src/Markdown/MarkdownWrapper.tsx +2 -1
- package/src/Markdown/Sup.tsx +2 -1
- package/src/Markdown/Tabs/Tabs.tsx +2 -1
- package/src/Navbar/MobileNavbarDropdown.tsx +1 -2
- package/src/Navbar/MobileNavbarItem.tsx +3 -4
- package/src/Navbar/MobileNavbarMenu.tsx +1 -2
- package/src/Navbar/Navbar.tsx +1 -2
- package/src/Navbar/NavbarDropdown.tsx +1 -2
- package/src/Navbar/NavbarItem.tsx +4 -5
- package/src/Navbar/NavbarMenu.tsx +1 -2
- package/src/NavbarLogo/NavbarLogo.tsx +1 -2
- package/src/PageNavigation/NextPageLink.tsx +1 -2
- package/src/PageNavigation/PageNavigation.tsx +4 -0
- package/src/PageNavigation/PreviousPageLink.tsx +1 -2
- package/src/Panel/PanelComponent.tsx +2 -2
- package/src/Panel/PanelHeader.ts +2 -1
- package/src/Search/Autocomplete.tsx +2 -2
- package/src/Search/ClearIcon.tsx +2 -1
- package/src/Search/Parameters.tsx +1 -2
- package/src/Search/SearchIcon.tsx +2 -1
- package/src/Search/SearchItem.tsx +1 -2
- package/src/Sidebar/ApiCallItem.tsx +1 -2
- package/src/Sidebar/Drilldown.tsx +1 -2
- package/src/Sidebar/DrilldownMenu.tsx +1 -2
- package/src/Sidebar/MenuGroup.tsx +1 -2
- package/src/Sidebar/MenuItem.tsx +1 -2
- package/src/Sidebar/MenuLink.tsx +3 -9
- package/src/Sidebar/MenuLinkItem.tsx +1 -2
- package/src/Sidebar/Separator.tsx +1 -2
- package/src/TableOfContent/TableOfContent.tsx +3 -4
- package/src/Tooltip/Tooltip.tsx +1 -0
- package/src/globalStyle.ts +28 -28
- package/src/hooks/__tests__/mocks/MockIntersectionObserver.ts +48 -0
- package/src/hooks/useActiveSectionId.ts +1 -0
- package/src/hooks/useDefaultThemeSettings.ts +1 -2
- package/src/hooks/useFullHeight.ts +2 -1
- package/src/hooks/useMobileMenu.ts +2 -1
- package/src/hooks/useNavbarHeight.ts +1 -0
- package/src/hooks/useOutsideClick.ts +2 -1
- package/src/mocks/Link.tsx +1 -2
- package/src/mocks/hooks/index.ts +1 -1
- package/src/mocks/types.ts +8 -1
- package/src/settings.yaml +1 -1
- package/src/types/portal/src/shared/constants.d.ts +33 -33
- package/src/types/portal/src/shared/types/markdown.d.ts +3 -3
- package/src/types/portal/src/shared/types/nav.d.ts +119 -106
- package/src/ui/Box.tsx +3 -2
- package/src/ui/Burger.tsx +2 -1
- package/src/ui/Dropdown.tsx +1 -2
- package/src/ui/Flex.tsx +2 -1
- package/src/ui/Tiles/ThinTile.tsx +2 -1
- package/src/ui/Tiles/WideTile.tsx +1 -2
- package/src/ui/index.tsx +0 -1
- package/src/utils/theme-helpers.ts +1 -0
- package/Button/Button.js +0 -87
- package/Cards/Card.js +0 -25
- package/Cards/CardsBlock.js +0 -15
- package/CodeBlock/CodeBlock.js +0 -16
- package/CopyButton/CopyButton.js +0 -100
- package/EditPageButton/EditPageButton.js +0 -24
- package/Footer/CustomFooter.js +0 -31
- package/Footer/CustomFooterNavItem.js +0 -25
- package/Footer/Footer.js +0 -29
- package/Footer/FooterColumn.js +0 -31
- package/Footer/FooterColumns.js +0 -34
- package/Footer/FooterCopyright.js +0 -19
- package/JsonViewer/JsonViewer.js +0 -147
- package/LastUpdated/LastUpdated.d.ts +0 -5
- package/LastUpdated/LastUpdated.js +0 -27
- package/Layout/PageLayout.js +0 -22
- package/Layout/RootLayout.js +0 -24
- package/Markdown/Admonition.js +0 -31
- package/Markdown/CodeSample/CodeSample.js +0 -93
- package/Markdown/ContainerWrapper.js +0 -21
- package/Markdown/Details.js +0 -22
- package/Markdown/MarkdownLayout.js +0 -31
- package/Markdown/MarkdownWrapper.js +0 -43
- package/Markdown/Mermaid.js +0 -19
- package/Markdown/PageWrapper.js +0 -15
- package/Markdown/Sup.js +0 -19
- package/Markdown/Tabs/Tab.js +0 -24
- package/Markdown/Tabs/Tabs.js +0 -72
- package/Navbar/MobileNavbarDropdown.js +0 -21
- package/Navbar/MobileNavbarItem.js +0 -102
- package/Navbar/MobileNavbarMenu.js +0 -32
- package/Navbar/MobileNavbarMenuButton.js +0 -19
- package/Navbar/Navbar.js +0 -64
- package/Navbar/NavbarDropdown.js +0 -21
- package/Navbar/NavbarItem.js +0 -53
- package/Navbar/NavbarMenu.js +0 -29
- package/NavbarLogo/NavbarLogo.js +0 -24
- package/OperationBadge/OperationBadge.js +0 -16
- package/PageNavigation/NextPageLink.js +0 -28
- package/PageNavigation/PageNavigation.js +0 -27
- package/PageNavigation/PreviousPageLink.js +0 -28
- package/Panel/Panel.js +0 -23
- package/Panel/PanelBody.js +0 -43
- package/Panel/PanelHeader.js +0 -24
- package/Panel/PanelHeaderTitle.js +0 -15
- package/Profile/Profile.js +0 -59
- package/SamplesPanelControls/SamplesPanelControls.js +0 -27
- package/Search/Autocomplete.js +0 -122
- package/Search/ClearIcon.js +0 -32
- package/Search/Input.js +0 -15
- package/Search/Parameters.js +0 -42
- package/Search/Popover.js +0 -15
- package/Search/Search.js +0 -29
- package/Search/SearchIcon.js +0 -32
- package/Search/SearchItem.js +0 -64
- package/Search/SidebarSearch.js +0 -17
- package/Sidebar/ApiCallItem.js +0 -29
- package/Sidebar/ArrowBack.js +0 -21
- package/Sidebar/BackButton.js +0 -22
- package/Sidebar/Drilldown.js +0 -50
- package/Sidebar/DrilldownMenu.js +0 -52
- package/Sidebar/DrilldownMenuItem.js +0 -25
- package/Sidebar/ExternalIcon.js +0 -23
- package/Sidebar/Menu.js +0 -15
- package/Sidebar/MenuContainer.js +0 -15
- package/Sidebar/MenuGroup.js +0 -95
- package/Sidebar/MenuItemLabel.js +0 -19
- package/Sidebar/MenuLink.d.ts +0 -5
- package/Sidebar/MenuLink.js +0 -16
- package/Sidebar/MenuLinkItem.js +0 -31
- package/Sidebar/MobileSidebarButton.js +0 -25
- package/Sidebar/Separator.js +0 -23
- package/Sidebar/SeparatorItem.js +0 -16
- package/Sidebar/SeparatorLine.js +0 -15
- package/Sidebar/Sidebar.js +0 -24
- package/Sidebar/SidebarLayout.js +0 -52
- package/SidebarLogo/SidebarLogo.js +0 -25
- package/TableOfContent/TableOfContent.js +0 -81
- package/TableOfContent/utils.js +0 -62
- package/Tooltip/Tooltip.js +0 -98
- package/Typography/CompactTypography.js +0 -18
- package/Typography/Emphasis.js +0 -15
- package/Typography/H1.js +0 -16
- package/Typography/H2.js +0 -16
- package/Typography/H3.js +0 -16
- package/Typography/SectionHeader.js +0 -15
- package/Typography/Typography.js +0 -45
- package/globalStyle.js +0 -38
- package/hooks/__tests__/mocks/MockIntersectionObserver.js +0 -39
- package/hooks/useActiveHeading.js +0 -100
- package/hooks/useActiveSectionId.js +0 -65
- package/hooks/useControl.js +0 -32
- package/hooks/useMobileMenu.js +0 -29
- package/hooks/useNavbarHeight.js +0 -36
- package/icons/ArrowIcon/ArrowIcon.js +0 -33
- package/icons/ShelfIcon/ShelfIcon.js +0 -52
- package/mocks/Link.js +0 -27
- package/mocks/types.d.ts +0 -7
- package/src/ui/UniversalLink.tsx +0 -96
- package/ui/Background.js +0 -16
- package/ui/Box.js +0 -16
- package/ui/Burger.js +0 -23
- package/ui/Dropdown.js +0 -89
- package/ui/Flex.js +0 -31
- package/ui/Jumbotron.js +0 -44
- package/ui/Tiles/ThinTile.js +0 -114
- package/ui/Tiles/TileHeader.js +0 -15
- package/ui/Tiles/TileText.js +0 -15
- package/ui/Tiles/WideTile.js +0 -109
- package/ui/UniversalLink.d.ts +0 -17
- package/ui/UniversalLink.js +0 -97
- package/ui/darkColors.js +0 -10
- package/utils/class-names.js +0 -15
- package/utils/css-variables.js +0 -8
- package/utils/jsonToHtml.js +0 -324
- package/utils/media-css.js +0 -50
- package/utils/theme-helpers.js +0 -121
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
export declare const RUNTIME_RESOURCES_DIR =
|
|
2
|
-
export declare const REDOC_OVERVIEW_ITEM_ID =
|
|
3
|
-
export declare const PORTAL_CUSTOM_THEMES_FOLDER =
|
|
4
|
-
export declare const DEFAULT_THEME_NAME =
|
|
5
|
-
export declare const CUSTOM_MARKDOC_OPTIONS_PATH =
|
|
6
|
-
export declare const CUSTOM_MARKDOC_TAGS_PATH =
|
|
7
|
-
export declare const USER_THEME_ALIAS =
|
|
8
|
-
export declare const PUBLIC_ASSETS_FOLDER =
|
|
9
|
-
export declare const PUBLIC_STATIC_FOLDER =
|
|
10
|
-
export declare const PERMISSION_PROP_NAME =
|
|
11
|
-
export declare const DEFAULT_PLACEHOLDER_PERMISSION =
|
|
12
|
-
export declare const DIRECTORY_PERMISSIONS_FILE_NAME =
|
|
1
|
+
export declare const RUNTIME_RESOURCES_DIR = 'runtime';
|
|
2
|
+
export declare const REDOC_OVERVIEW_ITEM_ID = 'overview';
|
|
3
|
+
export declare const PORTAL_CUSTOM_THEMES_FOLDER = '@theme';
|
|
4
|
+
export declare const DEFAULT_THEME_NAME = '@redocly/theme';
|
|
5
|
+
export declare const CUSTOM_MARKDOC_OPTIONS_PATH = 'markdoc';
|
|
6
|
+
export declare const CUSTOM_MARKDOC_TAGS_PATH = 'tags';
|
|
7
|
+
export declare const USER_THEME_ALIAS = '@theme';
|
|
8
|
+
export declare const PUBLIC_ASSETS_FOLDER = '/assets';
|
|
9
|
+
export declare const PUBLIC_STATIC_FOLDER = '/static';
|
|
10
|
+
export declare const PERMISSION_PROP_NAME = 'redocly::permission';
|
|
11
|
+
export declare const DEFAULT_PLACEHOLDER_PERMISSION = 'redocly:default-permission';
|
|
12
|
+
export declare const DIRECTORY_PERMISSIONS_FILE_NAME = 'permissions.rbac.yaml';
|
|
13
13
|
export declare const REQUIRED_OIDC_SCOPES: string[];
|
|
14
14
|
export declare const DEFAULT_COOKIE_EXPIRATION: number;
|
|
15
|
-
export declare const DEFAULT_AUTHENTICATED_ROLE =
|
|
16
|
-
export declare const DEFAULT_AUTHENTICATED_PERMISSION =
|
|
15
|
+
export declare const DEFAULT_AUTHENTICATED_ROLE = 'AuthenticatedUser';
|
|
16
|
+
export declare const DEFAULT_AUTHENTICATED_PERMISSION = 'redocly:authenticated-user';
|
|
17
17
|
export declare const SEARCH_LIMIT = 50;
|
|
18
18
|
export declare enum ServerRoutes {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
19
|
+
EJECT_COMPONENT = '/eject-component/:componentName',
|
|
20
|
+
SHARED_PAGE_DATA = '/page-data/shared/*',
|
|
21
|
+
PAGE_DATA = '/page-data/*',
|
|
22
|
+
APP_DATA = '/app-data.json',
|
|
23
|
+
SEARCH_DATA = '/search-data.json',
|
|
24
|
+
SEARCH_INDEX = '/search-index.json',
|
|
25
|
+
AUTHORIZATION = '/authorize',
|
|
26
|
+
OIDC_CALLBACK = '/_auth/oidc',
|
|
27
|
+
SAML_CALLBACK = '/_auth/saml2',
|
|
28
|
+
BASIC_AUTH = '/_auth/basic',
|
|
29
|
+
REDOCLY_CALLBACK = '/_auth/redocly',
|
|
30
|
+
REDOCLY_LOGIN_CALLBACK = '/_auth/redocly/redocly-login',
|
|
31
|
+
SEARCH = '/_search',
|
|
32
|
+
LOGOUT = '/logout',
|
|
33
|
+
LOGIN = '/login',
|
|
34
|
+
IDP_LOGIN = '/_auth/idp-login',
|
|
35
35
|
}
|
|
36
|
-
export declare const DEV_LOGIN_SLUG =
|
|
36
|
+
export declare const DEV_LOGIN_SLUG = '/login/';
|
|
37
37
|
export declare enum ExternalRoutes {
|
|
38
|
-
|
|
38
|
+
AUTH0_PASS = '/auth/auth0-pass',
|
|
39
39
|
}
|
|
40
40
|
export declare enum FsErrors {
|
|
41
|
-
|
|
41
|
+
NotExist = 'ENOENT',
|
|
42
42
|
}
|
|
43
43
|
export declare const INTERNALLY_IGNORED_FILES: string[];
|
|
@@ -1,146 +1,159 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { PERMISSION_PROP_NAME } from '../constants';
|
|
3
3
|
export declare type ResolvedNavLinkItem = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
4
|
+
type: 'link';
|
|
5
|
+
link: string;
|
|
6
|
+
label: string;
|
|
7
|
+
items?: ResolvedNavItem[];
|
|
8
|
+
external?: boolean;
|
|
9
|
+
target?: '_self' | '_blank';
|
|
10
|
+
version?: string;
|
|
11
|
+
isDefault?: boolean;
|
|
12
|
+
versionFolderId?: string;
|
|
13
|
+
httpVerb?: string;
|
|
14
|
+
separatorLine?: boolean;
|
|
15
|
+
routeSlug?: string;
|
|
16
|
+
active?: boolean;
|
|
17
|
+
[PERMISSION_PROP_NAME]?: string;
|
|
17
18
|
};
|
|
18
19
|
export declare type ResolvedNavGroupItem = {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
type: 'separator';
|
|
35
|
-
label?: string;
|
|
36
|
-
version?: string;
|
|
37
|
-
isDefault?: boolean;
|
|
38
|
-
versionFolderId?: string;
|
|
39
|
-
separatorLine?: boolean;
|
|
40
|
-
link?: undefined;
|
|
41
|
-
items?: ResolvedNavItem[];
|
|
42
|
-
[PERMISSION_PROP_NAME]?: string;
|
|
43
|
-
} | {
|
|
44
|
-
type: 'error';
|
|
45
|
-
version?: string;
|
|
46
|
-
isDefault?: boolean;
|
|
47
|
-
versionFolderId?: string;
|
|
48
|
-
label: string;
|
|
49
|
-
link?: undefined;
|
|
50
|
-
items?: ResolvedNavItem[];
|
|
51
|
-
[PERMISSION_PROP_NAME]?: string;
|
|
20
|
+
type: 'group';
|
|
21
|
+
link?: string;
|
|
22
|
+
label?: string;
|
|
23
|
+
items?: ResolvedNavItem[];
|
|
24
|
+
external?: never;
|
|
25
|
+
target?: never;
|
|
26
|
+
expanded?: string;
|
|
27
|
+
version?: string;
|
|
28
|
+
isDefault?: boolean;
|
|
29
|
+
versionFolderId?: string;
|
|
30
|
+
menuStyle?: MenuStyle;
|
|
31
|
+
separatorLine?: boolean;
|
|
32
|
+
routeSlug?: string;
|
|
33
|
+
active?: boolean;
|
|
34
|
+
[PERMISSION_PROP_NAME]?: string;
|
|
52
35
|
};
|
|
36
|
+
export declare type ResolvedNavItem =
|
|
37
|
+
| ResolvedNavLinkItem
|
|
38
|
+
| ResolvedNavGroupItem
|
|
39
|
+
| {
|
|
40
|
+
type: 'separator';
|
|
41
|
+
label?: string;
|
|
42
|
+
version?: string;
|
|
43
|
+
isDefault?: boolean;
|
|
44
|
+
versionFolderId?: string;
|
|
45
|
+
separatorLine?: boolean;
|
|
46
|
+
link?: undefined;
|
|
47
|
+
items?: ResolvedNavItem[];
|
|
48
|
+
[PERMISSION_PROP_NAME]?: string;
|
|
49
|
+
}
|
|
50
|
+
| {
|
|
51
|
+
type: 'error';
|
|
52
|
+
version?: string;
|
|
53
|
+
isDefault?: boolean;
|
|
54
|
+
versionFolderId?: string;
|
|
55
|
+
label: string;
|
|
56
|
+
link?: undefined;
|
|
57
|
+
items?: ResolvedNavItem[];
|
|
58
|
+
[PERMISSION_PROP_NAME]?: string;
|
|
59
|
+
};
|
|
53
60
|
export declare type ResolvedNavItemWithLink = (ResolvedNavLinkItem | ResolvedNavGroupItem) & {
|
|
54
|
-
|
|
61
|
+
link: string;
|
|
55
62
|
};
|
|
56
63
|
export declare type ResolvedSidebar = ResolvedNavItem[];
|
|
57
64
|
export interface PageProps {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
seo?: {
|
|
66
|
+
title: string;
|
|
67
|
+
};
|
|
68
|
+
frontmatter?: Omit<PageProps, 'frontmatter'> & {
|
|
69
|
+
settings?: any;
|
|
70
|
+
};
|
|
71
|
+
disableAutoScroll?: boolean;
|
|
72
|
+
lastModified?: string | null;
|
|
73
|
+
[k: string]: any;
|
|
67
74
|
}
|
|
68
75
|
export interface PageStaticData {
|
|
69
|
-
|
|
70
|
-
|
|
76
|
+
props?: PageProps;
|
|
77
|
+
[k: string]: unknown;
|
|
71
78
|
}
|
|
72
79
|
export declare type UserData = {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
80
|
+
isAuthorized: boolean;
|
|
81
|
+
name: string;
|
|
82
|
+
picture: string;
|
|
83
|
+
logoutDisabled?: boolean;
|
|
77
84
|
};
|
|
78
85
|
export interface PageData {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
86
|
+
templateId: string;
|
|
87
|
+
sharedDataIds: Record<string, string>;
|
|
88
|
+
props: PageProps;
|
|
89
|
+
versions?: Version[];
|
|
90
|
+
userData: UserData;
|
|
84
91
|
}
|
|
85
92
|
export interface CachedPageData extends PageData {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
93
|
+
Template: React.ComponentType<{
|
|
94
|
+
pageProps: PageProps;
|
|
95
|
+
}>;
|
|
89
96
|
}
|
|
90
97
|
export interface ResolvedPageData extends CachedPageData {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
98
|
+
sharedData: Record<string, unknown>;
|
|
99
|
+
nextPage?: any;
|
|
100
|
+
prevPage?: any;
|
|
94
101
|
}
|
|
95
102
|
export declare enum MenuStyle {
|
|
96
|
-
|
|
103
|
+
Drilldown = 'drilldown',
|
|
97
104
|
}
|
|
98
105
|
export declare type NavItem = {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
106
|
+
page?: string;
|
|
107
|
+
directory?: string;
|
|
108
|
+
group?: string;
|
|
109
|
+
label?: string;
|
|
110
|
+
href?: never;
|
|
111
|
+
items?: NavItem[];
|
|
112
|
+
separator?: string;
|
|
113
|
+
separatorLine?: boolean;
|
|
114
|
+
version?: string;
|
|
115
|
+
menuStyle?: MenuStyle;
|
|
116
|
+
external?: boolean;
|
|
117
|
+
expanded?: boolean | 'always';
|
|
111
118
|
};
|
|
112
119
|
export declare type RawNavItem = string | NavItem;
|
|
113
120
|
export interface LogoConfig {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
121
|
+
image?: string;
|
|
122
|
+
altText?: string;
|
|
123
|
+
link?: string;
|
|
124
|
+
favicon?: string;
|
|
118
125
|
}
|
|
119
126
|
export declare type Version = {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
+
version: string;
|
|
128
|
+
label: string;
|
|
129
|
+
link: string;
|
|
130
|
+
default: boolean;
|
|
131
|
+
active: boolean;
|
|
132
|
+
notExists?: boolean;
|
|
133
|
+
folderId: string;
|
|
127
134
|
};
|
|
128
135
|
export declare type VersionConfigItem = {
|
|
129
|
-
|
|
130
|
-
|
|
136
|
+
version: string;
|
|
137
|
+
name?: string;
|
|
131
138
|
};
|
|
132
139
|
export declare type VersionsConfigType = {
|
|
133
|
-
|
|
134
|
-
|
|
140
|
+
versions: VersionConfigItem[];
|
|
141
|
+
default?: string;
|
|
135
142
|
};
|
|
136
143
|
export declare type VersionedFolderConfig = {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
144
|
+
versionedFiles: Map<string, Set<string>>;
|
|
145
|
+
defaultVersion?: string;
|
|
146
|
+
versions: VersionConfigItem[];
|
|
147
|
+
hasVersionsConfig?: boolean;
|
|
141
148
|
};
|
|
142
149
|
export declare type NavGroup = ResolvedNavItem[] | undefined | string | boolean | number;
|
|
143
150
|
export declare type NavGroupRecord = Record<string, NavGroup>;
|
|
144
151
|
export declare type ResolvedConfigLinks = NavGroup | NavGroupRecord;
|
|
145
|
-
export declare type RawNavConfigItem =
|
|
152
|
+
export declare type RawNavConfigItem =
|
|
153
|
+
| RawNavItem
|
|
154
|
+
| RawNavItem[]
|
|
155
|
+
| string
|
|
156
|
+
| undefined
|
|
157
|
+
| boolean
|
|
158
|
+
| number;
|
|
146
159
|
export declare type RawNavConfig = RawNavConfigItem | Record<string, RawNavConfigItem>;
|
package/src/ui/Box.tsx
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { space, position, flex, textAlign, color, border, layout } from 'styled-system';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
|
|
1
4
|
import type {
|
|
2
5
|
SpaceProps,
|
|
3
6
|
LayoutProps,
|
|
@@ -7,8 +10,6 @@ import type {
|
|
|
7
10
|
FlexProps,
|
|
8
11
|
BordersProps,
|
|
9
12
|
} from 'styled-system';
|
|
10
|
-
import { space, position, flex, textAlign, color, border, layout } from 'styled-system';
|
|
11
|
-
import styled from 'styled-components';
|
|
12
13
|
|
|
13
14
|
export interface BoxProps
|
|
14
15
|
extends SpaceProps,
|
package/src/ui/Burger.tsx
CHANGED
package/src/ui/Dropdown.tsx
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import React, { useState, useRef, useEffect } from 'react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
|
|
4
|
-
import type { Version } from '@theme/types/portal';
|
|
5
|
-
|
|
6
4
|
import { Link } from '@portal/Link';
|
|
5
|
+
import type { Version } from '@theme/types/portal';
|
|
7
6
|
|
|
8
7
|
type DropdownProps = {
|
|
9
8
|
items: Version[];
|
package/src/ui/Flex.tsx
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
import type { FlexboxProps, WidthProps } from 'styled-system';
|
|
4
3
|
import { flexbox, width } from 'styled-system';
|
|
5
4
|
|
|
5
|
+
import type { FlexboxProps, WidthProps } from 'styled-system';
|
|
6
|
+
|
|
6
7
|
import { Box } from '@theme/ui/Box';
|
|
7
8
|
|
|
8
9
|
export interface FlexProps extends FlexboxProps, WidthProps {}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type { CSSProperties } from 'react';
|
|
2
1
|
import React, { Component } from 'react';
|
|
3
2
|
import styled from 'styled-components';
|
|
4
3
|
|
|
4
|
+
import type { CSSProperties } from 'react';
|
|
5
|
+
|
|
5
6
|
import { Link } from '@portal/Link';
|
|
6
7
|
import { Flex } from '@theme/ui/Flex';
|
|
7
8
|
import { TileText } from '@theme/ui/Tiles/TileText';
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
|
|
4
|
-
import type { TileProps } from '@theme/ui';
|
|
5
|
-
|
|
6
4
|
import { Link } from '@portal/Link';
|
|
7
5
|
import { TileText } from '@theme/ui/Tiles/TileText';
|
|
8
6
|
import { TileHeader } from '@theme/ui/Tiles/TileHeader';
|
|
7
|
+
import type { TileProps } from '@theme/ui';
|
|
9
8
|
|
|
10
9
|
// prettier-ignore
|
|
11
10
|
const WideTileWrapper = styled(Link)<{
|
package/src/ui/index.tsx
CHANGED
|
@@ -6,7 +6,6 @@ export * from '@theme/ui/Box';
|
|
|
6
6
|
export * from '@theme/ui/Dropdown';
|
|
7
7
|
export * from '@theme/ui/Flex';
|
|
8
8
|
export * from '@theme/ui/Jumbotron';
|
|
9
|
-
export * from '@theme/ui/UniversalLink';
|
|
10
9
|
|
|
11
10
|
export const LandingLayout = ({ children }: React.PropsWithChildren<object>): React.ReactNode =>
|
|
12
11
|
children;
|
package/Button/Button.js
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
var __assign = (this && this.__assign) || function () {
|
|
7
|
-
__assign = Object.assign || function(t) {
|
|
8
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
-
s = arguments[i];
|
|
10
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
-
t[p] = s[p];
|
|
12
|
-
}
|
|
13
|
-
return t;
|
|
14
|
-
};
|
|
15
|
-
return __assign.apply(this, arguments);
|
|
16
|
-
};
|
|
17
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
-
if (k2 === undefined) k2 = k;
|
|
19
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
20
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
21
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
22
|
-
}
|
|
23
|
-
Object.defineProperty(o, k2, desc);
|
|
24
|
-
}) : (function(o, m, k, k2) {
|
|
25
|
-
if (k2 === undefined) k2 = k;
|
|
26
|
-
o[k2] = m[k];
|
|
27
|
-
}));
|
|
28
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
29
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
30
|
-
}) : function(o, v) {
|
|
31
|
-
o["default"] = v;
|
|
32
|
-
});
|
|
33
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
34
|
-
if (mod && mod.__esModule) return mod;
|
|
35
|
-
var result = {};
|
|
36
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
37
|
-
__setModuleDefault(result, mod);
|
|
38
|
-
return result;
|
|
39
|
-
};
|
|
40
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
41
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
42
|
-
};
|
|
43
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44
|
-
exports.Button = exports.baseButtonStyles = void 0;
|
|
45
|
-
var react_1 = __importDefault(require("react"));
|
|
46
|
-
var styled_components_1 = __importStar(require("styled-components"));
|
|
47
|
-
var Link_1 = require("../mocks/Link");
|
|
48
|
-
var getBlink = function () { return (0, styled_components_1.keyframes)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n 0% {\n color: var(--button-color);\n background-color: var(--button-active-background-color);\n }\n\n 50% {\n background-color: var(--button-background-color);\n }\n\n 100% {\n color: var(--button-color);\n background-color: var(--button-active-background-color);\n }\n"], ["\n 0% {\n color: var(--button-color);\n background-color: var(--button-active-background-color);\n }\n\n 50% {\n background-color: var(--button-background-color);\n }\n\n 100% {\n color: var(--button-color);\n background-color: var(--button-active-background-color);\n }\n"]))); };
|
|
49
|
-
var getSize = function (size) {
|
|
50
|
-
if (size === void 0) { size = 'medium'; }
|
|
51
|
-
return (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n font-size: var(--button-", "-font-size);\n padding: var(--button-", "-padding);\n min-width: var(--button-", "-min-width);\n"], ["\n font-size: var(--button-", "-font-size);\n padding: var(--button-", "-padding);\n min-width: var(--button-", "-min-width);\n"])), size, size, size);
|
|
52
|
-
};
|
|
53
|
-
exports.baseButtonStyles = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n outline: none;\n border: none;\n border-radius: var(--button-border-radius);\n font-weight: var(--button-font-weight);\n font-size: 14px;\n padding: 2px 20px;\n margin: var(--button-margin);\n cursor: pointer;\n transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;\n line-height: 1;\n\n font-family: var(--button-font-family);\n box-shadow: var(--button-box-shadow);\n\n &:hover {\n box-shadow: var(--button-hover-box-shadow);\n }\n\n &:active {\n box-shadow: var(--button-active-box-shadow);\n }\n"], ["\n outline: none;\n border: none;\n border-radius: var(--button-border-radius);\n font-weight: var(--button-font-weight);\n font-size: 14px;\n padding: 2px 20px;\n margin: var(--button-margin);\n cursor: pointer;\n transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;\n line-height: 1;\n\n font-family: var(--button-font-family);\n box-shadow: var(--button-box-shadow);\n\n &:hover {\n box-shadow: var(--button-hover-box-shadow);\n }\n\n &:active {\n box-shadow: var(--button-active-box-shadow);\n }\n"])));
|
|
54
|
-
var StyledButton = styled_components_1.default.button.attrs(function (_a) {
|
|
55
|
-
var _b = _a.color, color = _b === void 0 ? 'default' : _b, extraClass = _a.extraClass;
|
|
56
|
-
return ({
|
|
57
|
-
className: "button-color-".concat(color).concat(extraClass ? " ".concat(extraClass) : ''),
|
|
58
|
-
'data-component-name': 'Button/Button',
|
|
59
|
-
});
|
|
60
|
-
})(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n text-decoration: none;\n text-align: center;\n\n width: ", ";\n\n ", "\n\n ", ";\n\n ", "\n\n & + & {\n margin-left: 0.85em;\n }\n\n ", "\n\n ", "\n"], ["\n text-decoration: none;\n text-align: center;\n\n width: ", ";\n\n ", "\n\n ", ";\n\n ", "\n\n & + & {\n margin-left: 0.85em;\n }\n\n ", "\n\n ", "\n"])), function (_a) {
|
|
61
|
-
var fullWidth = _a.fullWidth;
|
|
62
|
-
return (fullWidth ? '100%' : 'auto');
|
|
63
|
-
}, exports.baseButtonStyles, function (_a) {
|
|
64
|
-
var variant = _a.variant;
|
|
65
|
-
return variant === 'outlined'
|
|
66
|
-
? (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n color: var(--button-background-color);\n border: 2px solid var(--button-border-color);\n background-color: transparent;\n &:hover {\n color: var(--button-hover-background-color);\n border: 2px solid var(--button-hover-border-color);\n }\n\n &:active {\n color: var(--button-active-background-color);\n border: 2px solid var(--button-active-border-color);\n }\n\n &:disabled {\n color: var(--button-disabled-background-color);\n background-color: transparent;\n }\n "], ["\n color: var(--button-background-color);\n border: 2px solid var(--button-border-color);\n background-color: transparent;\n &:hover {\n color: var(--button-hover-background-color);\n border: 2px solid var(--button-hover-border-color);\n }\n\n &:active {\n color: var(--button-active-background-color);\n border: 2px solid var(--button-active-border-color);\n }\n\n &:disabled {\n color: var(--button-disabled-background-color);\n background-color: transparent;\n }\n "]))) : (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n color: var(--button-color);\n border: 2px solid var(--button-background-color);\n background-color: var(--button-background-color);\n &:hover {\n border: 2px solid var(--button-hover-background-color);\n background-color: var(--button-hover-background-color);\n }\n\n &:active {\n border: 2px solid var(--button-active-background-color);\n background-color: var(--button-active-background-color);\n }\n "], ["\n color: var(--button-color);\n border: 2px solid var(--button-background-color);\n background-color: var(--button-background-color);\n &:hover {\n border: 2px solid var(--button-hover-background-color);\n background-color: var(--button-hover-background-color);\n }\n\n &:active {\n border: 2px solid var(--button-active-background-color);\n background-color: var(--button-active-background-color);\n }\n "])));
|
|
67
|
-
}, function (_a) {
|
|
68
|
-
var size = _a.size;
|
|
69
|
-
return getSize(size);
|
|
70
|
-
}, function (_a) {
|
|
71
|
-
var blinking = _a.blinking;
|
|
72
|
-
return blinking && (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n pointer-events: none;\n animation: ", " 1.2s infinite;\n "], ["\n pointer-events: none;\n animation: ", " 1.2s infinite;\n "])), getBlink());
|
|
73
|
-
}, function (_a) {
|
|
74
|
-
var disabled = _a.disabled;
|
|
75
|
-
return disabled && (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n &,\n &:hover {\n cursor: default;\n color: var(--button-disabled-color);\n background-color: var(--button-disabled-background-color);\n border-color: var(--button-disabled-background-color);\n pointer-events: none;\n }\n "], ["\n &,\n &:hover {\n cursor: default;\n color: var(--button-disabled-color);\n background-color: var(--button-disabled-background-color);\n border-color: var(--button-disabled-background-color);\n pointer-events: none;\n }\n "])));
|
|
76
|
-
});
|
|
77
|
-
var ButtonComponent = function (props) {
|
|
78
|
-
if (props.to) {
|
|
79
|
-
return (react_1.default.createElement(Link_1.Link, { to: props.to },
|
|
80
|
-
react_1.default.createElement(StyledButton, __assign({}, props))));
|
|
81
|
-
}
|
|
82
|
-
else {
|
|
83
|
-
return react_1.default.createElement(StyledButton, __assign({}, props));
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
exports.Button = (0, styled_components_1.default)(ButtonComponent)(templateObject_9 || (templateObject_9 = __makeTemplateObject([""], [""])));
|
|
87
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9;
|
package/Cards/Card.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
-
};
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.Card = void 0;
|
|
11
|
-
var react_1 = __importDefault(require("react"));
|
|
12
|
-
var styled_components_1 = __importDefault(require("styled-components"));
|
|
13
|
-
var Link_1 = require("../mocks/Link");
|
|
14
|
-
var Typography_1 = require("../Typography");
|
|
15
|
-
function Card(props) {
|
|
16
|
-
return (react_1.default.createElement(CardWrapper, { "data-component-name": "Cards/Card" },
|
|
17
|
-
props.icon && react_1.default.createElement("img", { src: props === null || props === void 0 ? void 0 : props.icon, alt: props === null || props === void 0 ? void 0 : props.title }),
|
|
18
|
-
props.title && react_1.default.createElement(Typography_1.H3, null, props.title),
|
|
19
|
-
props.links.items && (react_1.default.createElement(CardLinksList, null, props.links.items.map(function (item) { return (react_1.default.createElement("li", { key: item.label },
|
|
20
|
-
react_1.default.createElement(Link_1.Link, { to: item.link }, item.label))); })))));
|
|
21
|
-
}
|
|
22
|
-
exports.Card = Card;
|
|
23
|
-
var CardWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border-radius: 10px;\n box-shadow: 0 10px 30px 0 rgba(35, 35, 35, 0.1);\n padding: 20px;\n margin: 0 20px 20px 0;\n min-width: 25%;\n font-family: var(--font-family-base);\n"], ["\n border-radius: 10px;\n box-shadow: 0 10px 30px 0 rgba(35, 35, 35, 0.1);\n padding: 20px;\n margin: 0 20px 20px 0;\n min-width: 25%;\n font-family: var(--font-family-base);\n"])));
|
|
24
|
-
var CardLinksList = styled_components_1.default.ul(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n list-style-type: none;\n margin: 0;\n padding: 0;\n\n li {\n margin-bottom: 10px;\n }\n"], ["\n list-style-type: none;\n margin: 0;\n padding: 0;\n\n li {\n margin-bottom: 10px;\n }\n"])));
|
|
25
|
-
var templateObject_1, templateObject_2;
|
package/Cards/CardsBlock.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
-
};
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.CardsBlock = void 0;
|
|
11
|
-
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
-
exports.CardsBlock = styled_components_1.default.div.attrs(function () { return ({
|
|
13
|
-
'data-component-name': 'Cards/CardsBlock',
|
|
14
|
-
}); })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n padding: 20px 0;\n justify-content: space-between;\n"], ["\n display: flex;\n padding: 20px 0;\n justify-content: space-between;\n"])));
|
|
15
|
-
var templateObject_1;
|
package/CodeBlock/CodeBlock.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
-
};
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.CodeBlock = void 0;
|
|
11
|
-
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
-
var utils_1 = require("../utils");
|
|
13
|
-
exports.CodeBlock = styled_components_1.default.div.attrs(function () { return ({
|
|
14
|
-
'data-component-name': 'CodeBlock/CodeBlock',
|
|
15
|
-
}); })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n max-height: var(--code-block-max-height, 600px);\n word-break: var(--code-block-word-break, initial);\n /**\n * Based on prism-dark.css\n */\n code[class*='language-'],\n pre[class*='language-'] {\n text-shadow: 0 -0.1em 0.2em black;\n text-align: left;\n white-space: pre;\n word-spacing: normal;\n word-break: normal;\n word-wrap: normal;\n line-height: 1.5;\n\n -moz-tab-size: 4;\n -o-tab-size: 4;\n tab-size: 4;\n\n -webkit-hyphens: none;\n -moz-hyphens: none;\n -ms-hyphens: none;\n hyphens: none;\n }\n\n @media print {\n code[class*='language-'],\n pre[class*='language-'] {\n text-shadow: none;\n }\n }\n\n /* Code blocks */\n pre[class*='language-'] {\n padding: 1em;\n margin: 0.5em 0;\n overflow: auto;\n }\n\n .token.punctuation {\n opacity: 1;\n }\n\n .namespace {\n opacity: 0.7;\n }\n\n .token.selector,\n .token.attr-name,\n .token.string,\n .token.char,\n .token.builtin,\n .token.inserted {\n & + a,\n & + a:visited {\n color: var(--code-block-tokens-link-color);\n text-decoration: underline;\n }\n }\n\n .token.property.string {\n color: var(--code-block-tokens-property-string-color);\n }\n\n .token.important,\n .token.bold {\n font-weight: bold;\n }\n\n .token.italic {\n font-style: italic;\n }\n\n .token.entity {\n cursor: help;\n }\n\n .code-line {\n &:before {\n content: attr(data-line-number);\n display: inline-block;\n min-width: 2em;\n padding-right: 0.8em;\n text-align: right;\n pointer-events: none;\n user-select: none;\n }\n }\n\n ", "\n"], ["\n max-height: var(--code-block-max-height, 600px);\n word-break: var(--code-block-word-break, initial);\n /**\n * Based on prism-dark.css\n */\n code[class*='language-'],\n pre[class*='language-'] {\n text-shadow: 0 -0.1em 0.2em black;\n text-align: left;\n white-space: pre;\n word-spacing: normal;\n word-break: normal;\n word-wrap: normal;\n line-height: 1.5;\n\n -moz-tab-size: 4;\n -o-tab-size: 4;\n tab-size: 4;\n\n -webkit-hyphens: none;\n -moz-hyphens: none;\n -ms-hyphens: none;\n hyphens: none;\n }\n\n @media print {\n code[class*='language-'],\n pre[class*='language-'] {\n text-shadow: none;\n }\n }\n\n /* Code blocks */\n pre[class*='language-'] {\n padding: 1em;\n margin: 0.5em 0;\n overflow: auto;\n }\n\n .token.punctuation {\n opacity: 1;\n }\n\n .namespace {\n opacity: 0.7;\n }\n\n .token.selector,\n .token.attr-name,\n .token.string,\n .token.char,\n .token.builtin,\n .token.inserted {\n & + a,\n & + a:visited {\n color: var(--code-block-tokens-link-color);\n text-decoration: underline;\n }\n }\n\n .token.property.string {\n color: var(--code-block-tokens-property-string-color);\n }\n\n .token.important,\n .token.bold {\n font-weight: bold;\n }\n\n .token.italic {\n font-style: italic;\n }\n\n .token.entity {\n cursor: help;\n }\n\n .code-line {\n &:before {\n content: attr(data-line-number);\n display: inline-block;\n min-width: 2em;\n padding-right: 0.8em;\n text-align: right;\n pointer-events: none;\n user-select: none;\n }\n }\n\n ", "\n"])), (0, utils_1.generateCodeBlockTokens)());
|
|
16
|
-
var templateObject_1;
|