@verdaccio/ui-components 2.0.0-alpha.0 → 3.0.0-next-7.4
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/.babelrc +8 -0
- package/.eslintrc +100 -0
- package/CHANGELOG.md +192 -0
- package/README.md +103 -0
- package/build/Theme/ResetStyles.js +49 -0
- package/build/Theme/StyleBaseline.js +14 -0
- package/build/Theme/ThemeProvider.js +51 -0
- package/build/Theme/colors.js +8 -0
- package/build/Theme/index.js +45 -0
- package/build/Theme/theme.js +118 -0
- package/build/__mocks__/react-markdown.js +18 -0
- package/build/__mocks__/remark-plugin.js +8 -0
- package/build/components/ActionBar/ActionBar.js +74 -0
- package/build/components/ActionBar/ActionBarAction.js +100 -0
- package/build/components/ActionBar/index.js +14 -0
- package/build/components/Author/Author.js +75 -0
- package/build/components/Author/index.js +14 -0
- package/build/components/Author/styles.js +37 -0
- package/build/components/CopyClipboard/CopyToClipBoard.js +69 -0
- package/build/components/CopyClipboard/index.js +21 -0
- package/build/components/CopyClipboard/utils.js +23 -0
- package/build/components/Dependencies/Dependencies.js +70 -0
- package/build/components/Dependencies/DependencyBlock.js +87 -0
- package/build/components/Dependencies/index.js +14 -0
- package/build/components/Dependencies/types.js +6 -0
- package/build/components/Dependencies/utits.js +10 -0
- package/build/components/Deprecated/Deprecated.js +24 -0
- package/build/components/Deprecated/index.js +14 -0
- package/build/components/Developers/Developers.js +92 -0
- package/build/components/Developers/Title.js +46 -0
- package/build/components/Developers/get-unique-developer-values.js +14 -0
- package/build/components/Developers/index.js +21 -0
- package/build/components/Developers/styles.js +65 -0
- package/build/components/Distribution/Dist.js +48 -0
- package/build/components/Distribution/index.js +14 -0
- package/build/components/Distribution/styles.js +66 -0
- package/build/components/Distribution/utils.js +25 -0
- package/build/components/Distribution/utilts.spec.js +18 -0
- package/build/components/Engines/Engines.js +85 -0
- package/build/components/Engines/index.js +14 -0
- package/build/components/Engines/styles.js +38 -0
- package/build/components/ErrorBoundary/ErrorBoundary.js +42 -0
- package/build/components/ErrorBoundary/index.js +14 -0
- package/build/components/FundButton/FundButton.js +80 -0
- package/build/components/FundButton/index.js +14 -0
- package/build/components/HeaderInfoDialog/HeaderInfoDialog.js +80 -0
- package/build/components/HeaderInfoDialog/index.js +14 -0
- package/build/components/Heading/Heading.js +24 -0
- package/build/components/Heading/index.js +14 -0
- package/build/components/Help/Help.js +60 -0
- package/build/components/Help/index.js +14 -0
- package/build/components/Help/styles.js +25 -0
- package/build/components/Icons/DevsIcons/CommonJS.js +29 -0
- package/build/components/Icons/DevsIcons/ES6Module.js +29 -0
- package/build/components/Icons/DevsIcons/Git.js +29 -0
- package/build/components/Icons/DevsIcons/NodeJS.js +29 -0
- package/build/components/Icons/DevsIcons/TypeScript.js +29 -0
- package/build/components/Icons/DevsIcons/commonjs.svg +4 -0
- package/build/components/Icons/DevsIcons/es6modules.svg +4 -0
- package/build/components/Icons/DevsIcons/git.svg +4 -0
- package/build/components/Icons/DevsIcons/index.js +41 -0
- package/build/components/Icons/DevsIcons/nodejs.svg +6 -0
- package/build/components/Icons/DevsIcons/typescript.svg +4 -0
- package/build/components/Icons/Earth.js +39 -0
- package/build/components/Icons/FileBinary.js +19 -0
- package/build/components/Icons/Law.js +20 -0
- package/build/components/Icons/License.js +23 -0
- package/build/components/Icons/License.js.map +1 -0
- package/build/components/Icons/Managers/Npm.js +29 -0
- package/build/components/Icons/Managers/Pnpm.js +29 -0
- package/build/components/Icons/Managers/Yarn.js +29 -0
- package/build/components/Icons/Managers/index.js +27 -0
- package/build/components/Icons/Managers/npm.svg +15 -0
- package/build/components/Icons/Managers/pnpm.svg +1 -0
- package/build/components/Icons/Managers/yarn.svg +1 -0
- package/build/components/Icons/SvgIcon.js +47 -0
- package/build/components/Icons/Time.js +26 -0
- package/build/components/Icons/Version.js +24 -0
- package/build/components/Icons/index.js +80 -0
- package/build/components/Install/Install.js +77 -0
- package/build/components/Install/InstallListItem.js +133 -0
- package/build/components/Install/__partials__/data.json +5984 -0
- package/build/components/Install/img/npm.svg +15 -0
- package/build/components/Install/img/pnpm.svg +1 -0
- package/build/components/Install/img/yarn.svg +1 -0
- package/build/components/Install/index.js +14 -0
- package/build/components/Label/Label.js +35 -0
- package/build/components/Label/index.js +14 -0
- package/build/components/Link/Link.js +56 -0
- package/build/components/Link/index.js +14 -0
- package/build/components/Loading/Loading.js +20 -0
- package/build/components/Loading/Spinner/Spinner.js +48 -0
- package/build/components/Loading/Spinner/index.js +14 -0
- package/build/components/Loading/index.js +14 -0
- package/build/components/Loading/styles.js +37 -0
- package/build/components/LoginDialog/LoginDialog.js +75 -0
- package/build/components/LoginDialog/LoginDialogCloseButton.js +41 -0
- package/build/components/LoginDialog/LoginDialogForm.js +126 -0
- package/build/components/LoginDialog/LoginDialogFormError.js +49 -0
- package/build/components/LoginDialog/LoginDialogHeader.js +59 -0
- package/build/components/LoginDialog/index.js +14 -0
- package/build/components/Logo/Logo.js +82 -0
- package/build/components/Logo/img/logo-black-and-white.svg +1 -0
- package/build/components/Logo/img/logo.svg +1 -0
- package/build/components/Logo/index.js +14 -0
- package/build/components/MenuItem/MenuItem.js +40 -0
- package/build/components/MenuItem/index.js +14 -0
- package/build/components/NoItems/NoItems.js +18 -0
- package/build/components/NoItems/index.js +14 -0
- package/build/components/NotFound/NotFound.js +73 -0
- package/build/components/NotFound/img/package.svg +1 -0
- package/build/components/NotFound/index.js +14 -0
- package/build/components/Package/Package.js +188 -0
- package/build/components/Package/Tag/Tag.js +14 -0
- package/build/components/Package/Tag/index.js +14 -0
- package/build/components/Package/Tag/styles.js +24 -0
- package/build/components/Package/index.js +21 -0
- package/build/components/Package/styles.js +211 -0
- package/build/components/PackageList/PackageList.js +99 -0
- package/build/components/PackageList/index.js +14 -0
- package/build/components/RawViewer/RawViewer.js +62 -0
- package/build/components/RawViewer/index.js +14 -0
- package/build/components/Readme/Readme.js +54 -0
- package/build/components/Readme/Readme.js.map +1 -0
- package/build/components/Readme/Readme.spec.js +22 -0
- package/build/components/Readme/Readme.spec.js.map +1 -0
- package/build/components/Readme/github-markdown.css +1198 -0
- package/build/components/Readme/index.js +14 -0
- package/build/components/Readme/types.js +6 -0
- package/build/components/Readme/utils.js +35 -0
- package/build/components/RegistryInfoDialog/RegistryInfoDialog.js +36 -0
- package/build/components/RegistryInfoDialog/index.js +14 -0
- package/build/components/RegistryInfoDialog/styles.js +46 -0
- package/build/components/RegistryInfoDialog/types.js +6 -0
- package/build/components/Repository/Repository.js +128 -0
- package/build/components/Repository/__partials__/data.json +5984 -0
- package/build/components/Repository/img/git.png +0 -0
- package/build/components/Repository/index.js +14 -0
- package/build/components/Search/AutoComplete/AutoComplete.js +69 -0
- package/build/components/Search/AutoComplete/index.js +14 -0
- package/build/components/Search/AutoComplete/styles.js +61 -0
- package/build/components/Search/Search.js +158 -0
- package/build/components/Search/SearchItem.js +135 -0
- package/build/components/Search/index.js +14 -0
- package/build/components/Search/styles.js +58 -0
- package/build/components/SettingsMenu/SettingsMenu.js +80 -0
- package/build/components/SettingsMenu/index.js +14 -0
- package/build/components/SideBarTitle/SideBarTitle.js +94 -0
- package/build/components/SideBarTitle/index.js +14 -0
- package/build/components/SideBarTitle/utils.js +19 -0
- package/build/components/TextField/TextField.js +29 -0
- package/build/components/TextField/index.js +14 -0
- package/build/components/UpLinks/UpLinks.js +43 -0
- package/build/components/UpLinks/index.js +14 -0
- package/build/components/UpLinks/styles.js +47 -0
- package/build/components/Versions/HistoryList.js +68 -0
- package/build/components/Versions/TagList.js +30 -0
- package/build/components/Versions/Versions.js +59 -0
- package/build/components/Versions/__partials__/data.json +5985 -0
- package/build/components/Versions/__partials__/deprecated-versions.json +175 -0
- package/build/components/Versions/index.js +14 -0
- package/build/components/Versions/styles.js +36 -0
- package/build/components/Versions/types.js +6 -0
- package/build/hooks/index.js +21 -0
- package/build/hooks/useLocalStorage.js +53 -0
- package/build/hooks/useOnClickOutside.js +32 -0
- package/build/index.js +500 -0
- package/build/layouts/Version/Version.js +28 -0
- package/build/layouts/Version/index.js +14 -0
- package/build/providers/AppConfigurationProvider/AppConfigurationProvider.js +63 -0
- package/build/providers/AppConfigurationProvider/index.js +21 -0
- package/build/providers/PersistenceSettingProvider/PersistenceSettingProvider.js +38 -0
- package/build/providers/PersistenceSettingProvider/index.js +21 -0
- package/build/providers/TranslatorProvider/TranslatorProvider.js +53 -0
- package/build/providers/TranslatorProvider/TranslatorProvider.spec.js +54 -0
- package/build/providers/TranslatorProvider/index.js +27 -0
- package/build/providers/VersionProvider/README.md +22 -0
- package/build/providers/VersionProvider/VersionProvider.js +79 -0
- package/build/providers/VersionProvider/index.js +21 -0
- package/build/providers/index.js +39 -0
- package/build/sections/Detail/ContainerContent.js +55 -0
- package/build/sections/Detail/Detail.js +50 -0
- package/build/sections/Detail/ReadmeSection.js +21 -0
- package/build/sections/Detail/Tabs.js +60 -0
- package/build/sections/Detail/index.js +14 -0
- package/build/sections/Footer/Footer.js +110 -0
- package/build/sections/Footer/index.js +14 -0
- package/build/sections/Footer/styles.js +85 -0
- package/build/sections/Header/Header.js +72 -0
- package/build/sections/Header/HeaderGreetings.js +25 -0
- package/build/sections/Header/HeaderLeft.js +36 -0
- package/build/sections/Header/HeaderMenu.js +53 -0
- package/build/sections/Header/HeaderRight.js +103 -0
- package/build/sections/Header/HeaderSettingsDialog.js +104 -0
- package/build/sections/Header/HeaderToolTip.js +18 -0
- package/build/sections/Header/HeaderToolTipIcon.js +69 -0
- package/build/sections/Header/LanguageSwitch.js +126 -0
- package/build/sections/Header/RegistryInfoContent/RegistryInfoContent.js +180 -0
- package/build/sections/Header/RegistryInfoContent/index.js +14 -0
- package/build/sections/Header/RegistryInfoContent/styles.js +29 -0
- package/build/sections/Header/RegistryInfoDialog/RegistryInfoDialog.js +36 -0
- package/build/sections/Header/RegistryInfoDialog/index.js +14 -0
- package/build/sections/Header/RegistryInfoDialog/styles.js +46 -0
- package/build/sections/Header/RegistryInfoDialog/types.js +6 -0
- package/build/sections/Header/index.js +14 -0
- package/build/sections/Header/styles.js +200 -0
- package/build/sections/Home/Home.js +31 -0
- package/build/sections/Home/index.js +14 -0
- package/build/sections/SideBar/Sidebar.js +96 -0
- package/build/sections/SideBar/index.js +14 -0
- package/build/sections/index.js +21 -0
- package/build/src/Theme/ResetStyles.d.ts +3 -0
- package/build/src/Theme/StyleBaseline.d.ts +4 -0
- package/build/src/Theme/ThemeProvider.d.ts +10 -0
- package/build/src/Theme/colors.d.ts +1 -0
- package/build/src/Theme/index.d.ts +4 -0
- package/build/src/Theme/theme.d.ts +149 -0
- package/build/src/__mocks__/react-markdown.d.ts +4 -0
- package/build/src/__mocks__/remark-plugin.d.ts +1 -0
- package/build/src/components/ActionBar/ActionBar.d.ts +8 -0
- package/build/src/components/ActionBar/ActionBar.stories.d.ts +11 -0
- package/build/src/components/ActionBar/ActionBar.test.d.ts +1 -0
- package/build/src/components/ActionBar/ActionBarAction.d.ts +10 -0
- package/build/src/components/ActionBar/index.d.ts +1 -0
- package/build/src/components/Author/Author.d.ts +10 -0
- package/build/src/components/Author/Author.stories.d.ts +6 -0
- package/build/src/components/Author/Author.test.d.ts +1 -0
- package/build/src/components/Author/index.d.ts +1 -0
- package/build/src/components/Author/styles.d.ts +2 -0
- package/build/src/components/CopyClipboard/CopyToClipBoard.d.ts +9 -0
- package/build/src/components/CopyClipboard/CopyToClipBoard.stories.d.ts +12 -0
- package/build/src/components/CopyClipboard/index.d.ts +2 -0
- package/build/src/components/CopyClipboard/utils.d.ts +2 -0
- package/build/src/components/Dependencies/Dependencies.d.ts +6 -0
- package/build/src/components/Dependencies/Dependencies.stories.d.ts +8 -0
- package/build/src/components/Dependencies/Dependencies.test.d.ts +1 -0
- package/build/src/components/Dependencies/DependencyBlock.d.ts +16 -0
- package/build/src/components/Dependencies/DependencyBlock.test.d.ts +1 -0
- package/build/src/components/Dependencies/index.d.ts +1 -0
- package/build/src/components/Dependencies/types.d.ts +6 -0
- package/build/src/components/Dependencies/utits.d.ts +3 -0
- package/build/src/components/Deprecated/Deprecated.d.ts +6 -0
- package/build/src/components/Deprecated/Deprecated.stories.d.ts +5 -0
- package/build/src/components/Deprecated/Deprecated.test.d.ts +1 -0
- package/build/src/components/Deprecated/index.d.ts +1 -0
- package/build/src/components/Developers/Developers.d.ts +14 -0
- package/build/src/components/Developers/Developers.stories.d.ts +6 -0
- package/build/src/components/Developers/Developers.test.d.ts +1 -0
- package/build/src/components/Developers/Title.d.ts +10 -0
- package/build/src/components/Developers/get-unique-developer-values.d.ts +3 -0
- package/build/src/components/Developers/index.d.ts +1 -0
- package/build/src/components/Developers/styles.d.ts +11 -0
- package/build/src/components/Distribution/Dist.d.ts +6 -0
- package/build/src/components/Distribution/Dist.stories.d.ts +8 -0
- package/build/src/components/Distribution/Dist.test.d.ts +1 -0
- package/build/src/components/Distribution/index.d.ts +1 -0
- package/build/src/components/Distribution/styles.d.ts +4 -0
- package/build/src/components/Distribution/utils.d.ts +7 -0
- package/build/src/components/Engines/Engines.d.ts +25 -0
- package/build/src/components/Engines/Engines.stories.d.ts +9 -0
- package/build/src/components/Engines/Engines.test.d.ts +1 -0
- package/build/src/components/Engines/index.d.ts +1 -0
- package/build/src/components/Engines/styles.d.ts +2 -0
- package/build/src/components/ErrorBoundary/ErrorBoundary.d.ts +14 -0
- package/build/src/components/ErrorBoundary/index.d.ts +1 -0
- package/build/src/components/FundButton/FundButton.d.ts +5 -0
- package/build/src/components/FundButton/FundButton.stories.d.ts +7 -0
- package/build/src/components/FundButton/FundButton.test.d.ts +1 -0
- package/build/src/components/FundButton/index.d.ts +1 -0
- package/build/src/components/HeaderInfoDialog/HeaderInfoDialog.d.ts +10 -0
- package/build/src/components/HeaderInfoDialog/index.d.ts +1 -0
- package/build/src/components/Heading/Heading.d.ts +8 -0
- package/build/src/components/Heading/index.d.ts +1 -0
- package/build/src/components/Help/Help.d.ts +3 -0
- package/build/src/components/Help/Help.stories.d.ts +5 -0
- package/build/src/components/Help/Help.test.d.ts +1 -0
- package/build/src/components/Help/index.d.ts +1 -0
- package/build/src/components/Help/styles.d.ts +1 -0
- package/build/src/components/Icons/DevsIcons/CommonJS.d.ts +2 -0
- package/build/src/components/Icons/DevsIcons/ES6Module.d.ts +2 -0
- package/build/src/components/Icons/DevsIcons/Git.d.ts +2 -0
- package/build/src/components/Icons/DevsIcons/NodeJS.d.ts +2 -0
- package/build/src/components/Icons/DevsIcons/TypeScript.d.ts +2 -0
- package/build/src/components/Icons/DevsIcons/index.d.ts +5 -0
- package/build/src/components/Icons/Earth.d.ts +7 -0
- package/build/src/components/Icons/FileBinary.d.ts +7 -0
- package/build/src/components/Icons/Icons.stories.d.ts +5 -0
- package/build/src/components/Icons/Law.d.ts +7 -0
- package/build/src/components/Icons/License.d.ts +7 -0
- package/build/src/components/Icons/Managers/Npm.d.ts +2 -0
- package/build/src/components/Icons/Managers/Pnpm.d.ts +2 -0
- package/build/src/components/Icons/Managers/Yarn.d.ts +2 -0
- package/build/src/components/Icons/Managers/index.d.ts +3 -0
- package/build/src/components/Icons/SvgIcon.d.ts +10 -0
- package/build/src/components/Icons/Time.d.ts +7 -0
- package/build/src/components/Icons/Version.d.ts +7 -0
- package/build/src/components/Icons/index.d.ts +8 -0
- package/build/src/components/Install/Install.d.ts +10 -0
- package/build/src/components/Install/Install.stories.d.ts +9 -0
- package/build/src/components/Install/Install.test.d.ts +1 -0
- package/build/src/components/Install/InstallListItem.d.ts +14 -0
- package/build/src/components/Install/index.d.ts +1 -0
- package/build/src/components/Label/Label.d.ts +9 -0
- package/build/src/components/Label/Label.test.d.ts +1 -0
- package/build/src/components/Label/index.d.ts +1 -0
- package/build/src/components/Link/Link.d.ts +6 -0
- package/build/src/components/Link/index.d.ts +1 -0
- package/build/src/components/Loading/Loading.d.ts +3 -0
- package/build/src/components/Loading/Loading.stories.d.ts +5 -0
- package/build/src/components/Loading/Loading.test.d.ts +1 -0
- package/build/src/components/Loading/Spinner/Spinner.d.ts +7 -0
- package/build/src/components/Loading/Spinner/Spinner.test.d.ts +1 -0
- package/build/src/components/Loading/Spinner/index.d.ts +1 -0
- package/build/src/components/Loading/index.d.ts +1 -0
- package/build/src/components/Loading/styles.d.ts +11 -0
- package/build/src/components/LoginDialog/LoginDialog.d.ts +7 -0
- package/build/src/components/LoginDialog/LoginDialog.stories.d.ts +15 -0
- package/build/src/components/LoginDialog/LoginDialog.test.d.ts +1 -0
- package/build/src/components/LoginDialog/LoginDialogCloseButton.d.ts +6 -0
- package/build/src/components/LoginDialog/LoginDialogForm.d.ts +12 -0
- package/build/src/components/LoginDialog/LoginDialogFormError.d.ts +11 -0
- package/build/src/components/LoginDialog/LoginDialogHeader.d.ts +6 -0
- package/build/src/components/LoginDialog/index.d.ts +1 -0
- package/build/src/components/Logo/Logo.d.ts +14 -0
- package/build/src/components/Logo/Logo.test.d.ts +1 -0
- package/build/src/components/Logo/index.d.ts +1 -0
- package/build/src/components/MenuItem/MenuItem.d.ts +9 -0
- package/build/src/components/MenuItem/index.d.ts +1 -0
- package/build/src/components/NoItems/NoItems.d.ts +6 -0
- package/build/src/components/NoItems/NoItems.stories.d.ts +5 -0
- package/build/src/components/NoItems/Noitems.test.d.ts +1 -0
- package/build/src/components/NoItems/index.d.ts +1 -0
- package/build/src/components/NotFound/NotFound.d.ts +3 -0
- package/build/src/components/NotFound/Notfound.test.d.ts +1 -0
- package/build/src/components/NotFound/index.d.ts +1 -0
- package/build/src/components/Package/Package.d.ts +24 -0
- package/build/src/components/Package/Package.test.d.ts +1 -0
- package/build/src/components/Package/Tag/Tag.d.ts +6 -0
- package/build/src/components/Package/Tag/Tag.test.d.ts +1 -0
- package/build/src/components/Package/Tag/index.d.ts +1 -0
- package/build/src/components/Package/Tag/styles.d.ts +5 -0
- package/build/src/components/Package/index.d.ts +1 -0
- package/build/src/components/Package/styles.d.ts +49 -0
- package/build/src/components/PackageList/PackageList.d.ts +6 -0
- package/build/src/components/PackageList/Packagelist.test.d.ts +1 -0
- package/build/src/components/PackageList/index.d.ts +1 -0
- package/build/src/components/RawViewer/RawViewer.d.ts +13 -0
- package/build/src/components/RawViewer/index.d.ts +1 -0
- package/build/src/components/Readme/Readme.d.ts +6 -0
- package/build/src/components/Readme/Readme.spec.d.ts +1 -0
- package/build/src/components/Readme/index.d.ts +1 -0
- package/build/src/components/Readme/types.d.ts +3 -0
- package/build/src/components/Readme/utils.d.ts +1 -0
- package/build/src/components/RegistryInfoDialog/RegistryInfoDialog.d.ts +4 -0
- package/build/src/components/RegistryInfoDialog/index.d.ts +1 -0
- package/build/src/components/RegistryInfoDialog/styles.d.ts +13 -0
- package/build/src/components/RegistryInfoDialog/types.d.ts +7 -0
- package/build/src/components/Repository/Repository.d.ts +5 -0
- package/build/src/components/Repository/Repository.stories.d.ts +8 -0
- package/build/src/components/Repository/Repository.test.d.ts +1 -0
- package/build/src/components/Repository/index.d.ts +1 -0
- package/build/src/components/Search/AutoComplete/AutoComplete.d.ts +16 -0
- package/build/src/components/Search/AutoComplete/index.d.ts +1 -0
- package/build/src/components/Search/AutoComplete/styles.d.ts +13 -0
- package/build/src/components/Search/Search.d.ts +4 -0
- package/build/src/components/Search/Search.stories.d.ts +8 -0
- package/build/src/components/Search/Search.test.d.ts +1 -0
- package/build/src/components/Search/SearchItem.d.ts +18 -0
- package/build/src/components/Search/index.d.ts +1 -0
- package/build/src/components/Search/styles.d.ts +10 -0
- package/build/src/components/SettingsMenu/SettingsMenu.d.ts +6 -0
- package/build/src/components/SettingsMenu/index.d.ts +1 -0
- package/build/src/components/SideBarTitle/SideBarTitle.d.ts +13 -0
- package/build/src/components/SideBarTitle/SideBarTitle.stories.d.ts +9 -0
- package/build/src/components/SideBarTitle/index.d.ts +1 -0
- package/build/src/components/SideBarTitle/utils.d.ts +3 -0
- package/build/src/components/TextField/TextField.d.ts +3 -0
- package/build/src/components/TextField/TextField.test.d.ts +1 -0
- package/build/src/components/TextField/index.d.ts +1 -0
- package/build/src/components/UpLinks/UpLinks.d.ts +5 -0
- package/build/src/components/UpLinks/UpLinks.test.d.ts +1 -0
- package/build/src/components/UpLinks/Uplinks.stories.d.ts +6 -0
- package/build/src/components/UpLinks/index.d.ts +1 -0
- package/build/src/components/UpLinks/styles.d.ts +13 -0
- package/build/src/components/Versions/HistoryList.d.ts +10 -0
- package/build/src/components/Versions/TagList.d.ts +9 -0
- package/build/src/components/Versions/Versions.d.ts +7 -0
- package/build/src/components/Versions/Versions.test.d.ts +1 -0
- package/build/src/components/Versions/index.d.ts +1 -0
- package/build/src/components/Versions/styles.d.ts +12 -0
- package/build/src/components/Versions/types.d.ts +15 -0
- package/build/src/hooks/index.d.ts +2 -0
- package/build/src/hooks/useLocalStorage.d.ts +12 -0
- package/build/src/hooks/useOnClickOutside.d.ts +9 -0
- package/build/src/index.d.ts +50 -0
- package/build/src/layouts/Version/Version.d.ts +3 -0
- package/build/src/layouts/Version/Version.stories.d.ts +7 -0
- package/build/src/layouts/Version/index.d.ts +1 -0
- package/build/src/providers/AppConfigurationProvider/AppConfigurationProvider.d.ts +10 -0
- package/build/src/providers/AppConfigurationProvider/index.d.ts +1 -0
- package/build/src/providers/PersistenceSettingProvider/PersistenceSettingProvider.d.ts +6 -0
- package/build/src/providers/PersistenceSettingProvider/index.d.ts +1 -0
- package/build/src/providers/TranslatorProvider/TranslatorProvider.d.ts +24 -0
- package/build/src/providers/TranslatorProvider/TranslatorProvider.spec.d.ts +1 -0
- package/build/src/providers/TranslatorProvider/index.d.ts +1 -0
- package/build/src/providers/VersionProvider/VersionProvider.d.ts +41 -0
- package/build/src/providers/VersionProvider/VersionProvider.test.d.ts +1 -0
- package/build/src/providers/VersionProvider/index.d.ts +1 -0
- package/build/src/providers/index.d.ts +3 -0
- package/build/src/sections/Detail/ContainerContent.d.ts +13 -0
- package/build/src/sections/Detail/Detail.d.ts +9 -0
- package/build/src/sections/Detail/Detail.stories.d.ts +6 -0
- package/build/src/sections/Detail/Detail.test.d.ts +1 -0
- package/build/src/sections/Detail/ReadmeSection.d.ts +6 -0
- package/build/src/sections/Detail/Tabs.d.ts +7 -0
- package/build/src/sections/Detail/index.d.ts +1 -0
- package/build/src/sections/Footer/Footer.d.ts +3 -0
- package/build/src/sections/Footer/Footer.test.d.ts +1 -0
- package/build/src/sections/Footer/index.d.ts +1 -0
- package/build/src/sections/Footer/styles.d.ts +33 -0
- package/build/src/sections/Header/Header.d.ts +6 -0
- package/build/src/sections/Header/Header.stories.d.ts +5 -0
- package/build/src/sections/Header/Header.test.d.ts +1 -0
- package/build/src/sections/Header/HeaderGreetings.d.ts +6 -0
- package/build/src/sections/Header/HeaderLeft.d.ts +6 -0
- package/build/src/sections/Header/HeaderMenu.d.ts +11 -0
- package/build/src/sections/Header/HeaderRight.d.ts +16 -0
- package/build/src/sections/Header/HeaderSettingsDialog.d.ts +7 -0
- package/build/src/sections/Header/HeaderToolTip.d.ts +9 -0
- package/build/src/sections/Header/HeaderToolTipIcon.d.ts +8 -0
- package/build/src/sections/Header/LanguageSwitch.d.ts +5 -0
- package/build/src/sections/Header/RegistryInfoContent/RegistryInfoContent.d.ts +24 -0
- package/build/src/sections/Header/RegistryInfoContent/RegistryInfoContent.test.d.ts +1 -0
- package/build/src/sections/Header/RegistryInfoContent/index.d.ts +1 -0
- package/build/src/sections/Header/RegistryInfoContent/styles.d.ts +13 -0
- package/build/src/sections/Header/RegistryInfoDialog/RegistryInfoDialog.d.ts +4 -0
- package/build/src/sections/Header/RegistryInfoDialog/index.d.ts +1 -0
- package/build/src/sections/Header/RegistryInfoDialog/styles.d.ts +13 -0
- package/build/src/sections/Header/RegistryInfoDialog/types.d.ts +7 -0
- package/build/src/sections/Header/index.d.ts +1 -0
- package/build/src/sections/Header/styles.d.ts +34 -0
- package/build/src/sections/Home/Home.d.ts +3 -0
- package/build/src/sections/Home/Home.stories.d.ts +5 -0
- package/build/src/sections/Home/Home.test.d.ts +1 -0
- package/build/src/sections/Home/index.d.ts +1 -0
- package/build/src/sections/SideBar/Sidebar.d.ts +3 -0
- package/build/src/sections/SideBar/Sidebar.stories.d.ts +7 -0
- package/build/src/sections/SideBar/Sidebar.test.d.ts +1 -0
- package/build/src/sections/SideBar/index.d.ts +1 -0
- package/build/src/sections/index.d.ts +2 -0
- package/build/src/store/api.d.ts +11 -0
- package/build/src/store/index.d.ts +3 -0
- package/build/src/store/models/configuration.d.ts +24 -0
- package/build/src/store/models/download.d.ts +16 -0
- package/build/src/store/models/index.d.ts +16 -0
- package/build/src/store/models/login.d.ts +69 -0
- package/build/src/store/models/manifest.d.ts +43 -0
- package/build/src/store/models/packages.d.ts +28 -0
- package/build/src/store/models/search.d.ts +42 -0
- package/build/src/store/storage.d.ts +2 -0
- package/build/src/store/store.d.ts +9 -0
- package/build/src/test/i18n-config.d.ts +2 -0
- package/build/src/test/test-react-testing-library.d.ts +8 -0
- package/build/src/types/index.d.ts +10 -0
- package/build/src/types/packageMeta.d.ts +85 -0
- package/build/src/utils/__partials__/packageMeta.d.ts +235 -0
- package/build/src/utils/cli-utils.d.ts +6 -0
- package/build/src/utils/index.d.ts +6 -0
- package/build/src/utils/loadable.d.ts +12 -0
- package/build/src/utils/routes.d.ts +7 -0
- package/build/src/utils/token.d.ts +1 -0
- package/build/src/utils/url.d.ts +4 -0
- package/build/src/utils/utils.d.ts +32 -0
- package/build/store/api.js +69 -0
- package/build/store/index.js +52 -0
- package/build/store/models/configuration.js +48 -0
- package/build/store/models/download.js +39 -0
- package/build/store/models/index.js +21 -0
- package/build/store/models/login.js +102 -0
- package/build/store/models/manifest.js +98 -0
- package/build/store/models/packages.js +43 -0
- package/build/store/models/search.js +89 -0
- package/build/store/storage.js +18 -0
- package/build/store/store.js +15 -0
- package/build/test/i18n-config.js +25 -0
- package/build/test/test-react-testing-library.js +53 -0
- package/build/types/index.js +6 -0
- package/build/types/packageMeta.js +6 -0
- package/build/utils/__partials__/packageMeta.js +534 -0
- package/build/utils/cli-utils.js +49 -0
- package/build/utils/index.js +75 -0
- package/build/utils/loadable.js +27 -0
- package/build/utils/routes.js +15 -0
- package/build/utils/token.js +35 -0
- package/build/utils/url.js +64 -0
- package/build/utils/utils.js +102 -0
- package/package.json +70 -12
- package/src/Theme/ResetStyles.tsx +44 -0
- package/src/Theme/StyleBaseline.tsx +14 -0
- package/src/Theme/ThemeProvider.tsx +44 -0
- package/src/Theme/colors.ts +1 -0
- package/src/Theme/index.ts +4 -0
- package/src/Theme/theme.ts +168 -0
- package/src/__mocks__/react-markdown.tsx +8 -0
- package/src/__mocks__/remark-plugin.ts +1 -0
- package/src/components/ActionBar/ActionBar.stories.tsx +64 -0
- package/src/components/ActionBar/ActionBar.test.tsx +92 -0
- package/src/components/ActionBar/ActionBar.tsx +63 -0
- package/src/components/ActionBar/ActionBarAction.tsx +89 -0
- package/src/components/ActionBar/index.ts +1 -0
- package/src/components/Author/Author.stories.tsx +53 -0
- package/src/components/Author/Author.test.tsx +69 -0
- package/src/components/Author/Author.tsx +68 -0
- package/src/components/Author/index.ts +1 -0
- package/src/components/Author/styles.ts +16 -0
- package/src/components/CopyClipboard/CopyToClipBoard.stories.tsx +20 -0
- package/src/components/CopyClipboard/CopyToClipBoard.tsx +51 -0
- package/src/components/CopyClipboard/index.ts +2 -0
- package/src/components/CopyClipboard/utils.ts +21 -0
- package/src/components/Dependencies/Dependencies.stories.tsx +158 -0
- package/src/components/Dependencies/Dependencies.test.tsx +69 -0
- package/src/components/Dependencies/Dependencies.tsx +69 -0
- package/src/components/Dependencies/DependencyBlock.test.tsx +33 -0
- package/src/components/Dependencies/DependencyBlock.tsx +69 -0
- package/src/components/Dependencies/index.ts +1 -0
- package/src/components/Dependencies/types.ts +7 -0
- package/src/components/Dependencies/utits.ts +3 -0
- package/src/components/Deprecated/Deprecated.stories.tsx +9 -0
- package/src/components/Deprecated/Deprecated.test.tsx +26 -0
- package/src/components/Deprecated/Deprecated.tsx +18 -0
- package/src/components/Deprecated/index.ts +1 -0
- package/src/components/Developers/Developers.stories.tsx +60 -0
- package/src/components/Developers/Developers.test.tsx +102 -0
- package/src/components/Developers/Developers.tsx +82 -0
- package/src/components/Developers/Title.tsx +32 -0
- package/src/components/Developers/get-unique-developer-values.ts +16 -0
- package/src/components/Developers/index.ts +1 -0
- package/src/components/Developers/styles.ts +31 -0
- package/src/components/Distribution/Dist.stories.tsx +67 -0
- package/src/components/Distribution/Dist.test.tsx +99 -0
- package/src/components/Distribution/Dist.tsx +58 -0
- package/src/components/Distribution/index.ts +1 -0
- package/src/components/Distribution/styles.ts +29 -0
- package/src/components/Distribution/utils.ts +32 -0
- package/src/components/Distribution/utilts.spec.ts +17 -0
- package/src/components/Engines/Engines.stories.tsx +71 -0
- package/src/components/Engines/Engines.test.tsx +56 -0
- package/src/components/Engines/Engines.tsx +95 -0
- package/src/components/Engines/index.ts +1 -0
- package/src/components/Engines/styles.ts +14 -0
- package/src/components/ErrorBoundary/ErrorBoundary.tsx +38 -0
- package/src/components/ErrorBoundary/index.ts +1 -0
- package/src/components/FundButton/FundButton.stories.tsx +56 -0
- package/src/components/FundButton/FundButton.test.tsx +84 -0
- package/src/components/FundButton/FundButton.tsx +48 -0
- package/src/components/FundButton/index.ts +1 -0
- package/src/components/HeaderInfoDialog/HeaderInfoDialog.tsx +82 -0
- package/src/components/HeaderInfoDialog/index.ts +1 -0
- package/src/components/Heading/Heading.tsx +16 -0
- package/src/components/Heading/index.ts +1 -0
- package/src/components/Help/Help.stories.tsx +9 -0
- package/src/components/Help/Help.test.tsx +18 -0
- package/src/components/Help/Help.tsx +54 -0
- package/src/components/Help/index.ts +1 -0
- package/src/components/Help/styles.ts +7 -0
- package/src/components/Icons/.eslintrc +5 -0
- package/src/components/Icons/DevsIcons/CommonJS.tsx +13 -0
- package/src/components/Icons/DevsIcons/ES6Module.tsx +13 -0
- package/src/components/Icons/DevsIcons/Git.tsx +13 -0
- package/src/components/Icons/DevsIcons/NodeJS.tsx +13 -0
- package/src/components/Icons/DevsIcons/TypeScript.tsx +13 -0
- package/src/components/Icons/DevsIcons/commonjs.svg +4 -0
- package/src/components/Icons/DevsIcons/es6modules.svg +4 -0
- package/src/components/Icons/DevsIcons/git.svg +4 -0
- package/src/components/Icons/DevsIcons/index.ts +5 -0
- package/src/components/Icons/DevsIcons/nodejs.svg +6 -0
- package/src/components/Icons/DevsIcons/typescript.svg +4 -0
- package/src/components/Icons/Earth.tsx +36 -0
- package/src/components/Icons/FileBinary.tsx +20 -0
- package/src/components/Icons/Icons.stories.tsx +37 -0
- package/src/components/Icons/Law.tsx +20 -0
- package/src/components/Icons/License.tsx +18 -0
- package/src/components/Icons/Managers/Npm.tsx +13 -0
- package/src/components/Icons/Managers/Pnpm.tsx +13 -0
- package/src/components/Icons/Managers/Yarn.tsx +13 -0
- package/src/components/Icons/Managers/index.ts +3 -0
- package/src/components/Icons/Managers/npm.svg +15 -0
- package/src/components/Icons/Managers/pnpm.svg +1 -0
- package/src/components/Icons/Managers/yarn.svg +1 -0
- package/src/components/Icons/SvgIcon.tsx +39 -0
- package/src/components/Icons/Time.tsx +19 -0
- package/src/components/Icons/Version.tsx +20 -0
- package/src/components/Icons/index.ts +8 -0
- package/src/components/Install/Install.stories.tsx +87 -0
- package/src/components/Install/Install.test.tsx +76 -0
- package/src/components/Install/Install.tsx +78 -0
- package/src/components/Install/InstallListItem.tsx +134 -0
- package/src/components/Install/__partials__/data.json +5984 -0
- package/src/components/Install/img/npm.svg +15 -0
- package/src/components/Install/img/pnpm.svg +1 -0
- package/src/components/Install/img/yarn.svg +1 -0
- package/src/components/Install/index.ts +1 -0
- package/src/components/Label/Label.test.tsx +14 -0
- package/src/components/Label/Label.tsx +36 -0
- package/src/components/Label/index.ts +1 -0
- package/src/components/Link/Link.tsx +39 -0
- package/src/components/Link/index.ts +1 -0
- package/src/components/Loading/Loading.stories.tsx +14 -0
- package/src/components/Loading/Loading.test.tsx +12 -0
- package/src/components/Loading/Loading.tsx +16 -0
- package/src/components/Loading/Spinner/Spinner.test.tsx +13 -0
- package/src/components/Loading/Spinner/Spinner.tsx +34 -0
- package/src/components/Loading/Spinner/index.tsx +1 -0
- package/src/components/Loading/index.ts +1 -0
- package/src/components/Loading/styles.ts +17 -0
- package/src/components/LoginDialog/LoginDialog.stories.tsx +20 -0
- package/src/components/LoginDialog/LoginDialog.test.tsx +108 -0
- package/src/components/LoginDialog/LoginDialog.tsx +79 -0
- package/src/components/LoginDialog/LoginDialogCloseButton.tsx +32 -0
- package/src/components/LoginDialog/LoginDialogForm.tsx +96 -0
- package/src/components/LoginDialog/LoginDialogFormError.tsx +42 -0
- package/src/components/LoginDialog/LoginDialogHeader.tsx +48 -0
- package/src/components/LoginDialog/index.ts +1 -0
- package/src/components/Logo/Logo.test.tsx +11 -0
- package/src/components/Logo/Logo.tsx +55 -0
- package/src/components/Logo/img/logo-black-and-white.svg +1 -0
- package/src/components/Logo/img/logo.svg +1 -0
- package/src/components/Logo/index.ts +1 -0
- package/src/components/MenuItem/MenuItem.tsx +25 -0
- package/src/components/MenuItem/index.ts +1 -0
- package/src/components/NoItems/NoItems.stories.tsx +11 -0
- package/src/components/NoItems/NoItems.tsx +15 -0
- package/src/components/NoItems/Noitems.test.tsx +15 -0
- package/src/components/NoItems/index.ts +1 -0
- package/src/components/NotFound/NotFound.tsx +52 -0
- package/src/components/NotFound/Notfound.test.tsx +36 -0
- package/src/components/NotFound/img/package.svg +1 -0
- package/src/components/NotFound/index.ts +1 -0
- package/src/components/Package/Package.test.tsx +54 -0
- package/src/components/Package/Package.tsx +269 -0
- package/src/components/Package/Tag/Tag.test.tsx +15 -0
- package/src/components/Package/Tag/Tag.tsx +11 -0
- package/src/components/Package/Tag/index.ts +1 -0
- package/src/components/Package/Tag/styles.ts +11 -0
- package/src/components/Package/index.ts +1 -0
- package/src/components/Package/styles.ts +104 -0
- package/src/components/PackageList/PackageList.tsx +81 -0
- package/src/components/PackageList/Packagelist.test.tsx +58 -0
- package/src/components/PackageList/index.ts +1 -0
- package/src/components/RawViewer/RawViewer.tsx +67 -0
- package/src/components/RawViewer/index.ts +1 -0
- package/src/components/Readme/Readme.spec.tsx +18 -0
- package/src/components/Readme/Readme.tsx +41 -0
- package/src/components/Readme/github-markdown.css +1198 -0
- package/src/components/Readme/index.ts +1 -0
- package/src/components/Readme/types.ts +3 -0
- package/src/components/Readme/utils.ts +29 -0
- package/src/components/RegistryInfoDialog/RegistryInfoDialog.tsx +31 -0
- package/src/components/RegistryInfoDialog/index.ts +1 -0
- package/src/components/RegistryInfoDialog/styles.ts +21 -0
- package/src/components/RegistryInfoDialog/types.ts +8 -0
- package/src/components/Repository/Repository.stories.tsx +70 -0
- package/src/components/Repository/Repository.test.tsx +43 -0
- package/src/components/Repository/Repository.tsx +88 -0
- package/src/components/Repository/__partials__/data.json +5984 -0
- package/src/components/Repository/img/git.png +0 -0
- package/src/components/Repository/index.ts +1 -0
- package/src/components/Search/AutoComplete/AutoComplete.tsx +83 -0
- package/src/components/Search/AutoComplete/index.ts +1 -0
- package/src/components/Search/AutoComplete/styles.tsx +42 -0
- package/src/components/Search/Search.stories.tsx +30 -0
- package/src/components/Search/Search.test.tsx +153 -0
- package/src/components/Search/Search.tsx +162 -0
- package/src/components/Search/SearchItem.tsx +114 -0
- package/src/components/Search/index.ts +1 -0
- package/src/components/Search/styles.ts +41 -0
- package/src/components/SettingsMenu/SettingsMenu.tsx +86 -0
- package/src/components/SettingsMenu/index.ts +1 -0
- package/src/components/SideBarTitle/SideBarTitle.stories.tsx +68 -0
- package/src/components/SideBarTitle/SideBarTitle.tsx +82 -0
- package/src/components/SideBarTitle/index.ts +1 -0
- package/src/components/SideBarTitle/utils.ts +12 -0
- package/src/components/TextField/TextField.test.tsx +15 -0
- package/src/components/TextField/TextField.tsx +24 -0
- package/src/components/TextField/index.ts +1 -0
- package/src/components/UpLinks/UpLinks.test.tsx +47 -0
- package/src/components/UpLinks/UpLinks.tsx +41 -0
- package/src/components/UpLinks/Uplinks.stories.tsx +47 -0
- package/src/components/UpLinks/index.ts +1 -0
- package/src/components/UpLinks/styles.ts +24 -0
- package/src/components/Versions/HistoryList.tsx +69 -0
- package/src/components/Versions/TagList.tsx +33 -0
- package/src/components/Versions/Versions.test.tsx +54 -0
- package/src/components/Versions/Versions.tsx +56 -0
- package/src/components/Versions/__partials__/data.json +5985 -0
- package/src/components/Versions/__partials__/deprecated-versions.json +175 -0
- package/src/components/Versions/index.ts +1 -0
- package/src/components/Versions/styles.ts +20 -0
- package/src/components/Versions/types.ts +17 -0
- package/src/hooks/index.ts +2 -0
- package/src/hooks/useLocalStorage.ts +49 -0
- package/src/hooks/useOnClickOutside.ts +33 -0
- package/src/index.ts +60 -0
- package/src/layouts/Version/Version.stories.tsx +44 -0
- package/src/layouts/Version/Version.tsx +19 -0
- package/src/layouts/Version/index.ts +1 -0
- package/src/providers/AppConfigurationProvider/AppConfigurationProvider.tsx +74 -0
- package/src/providers/AppConfigurationProvider/index.ts +1 -0
- package/src/providers/PersistenceSettingProvider/PersistenceSettingProvider.tsx +59 -0
- package/src/providers/PersistenceSettingProvider/index.ts +1 -0
- package/src/providers/TranslatorProvider/TranslatorProvider.spec.tsx +52 -0
- package/src/providers/TranslatorProvider/TranslatorProvider.tsx +54 -0
- package/src/providers/TranslatorProvider/index.ts +1 -0
- package/src/providers/VersionProvider/README.md +22 -0
- package/src/providers/VersionProvider/VersionProvider.test.tsx +49 -0
- package/src/providers/VersionProvider/VersionProvider.tsx +92 -0
- package/src/providers/VersionProvider/index.ts +1 -0
- package/src/providers/index.ts +3 -0
- package/src/sections/Detail/ContainerContent.tsx +46 -0
- package/src/sections/Detail/Detail.stories.tsx +29 -0
- package/src/sections/Detail/Detail.test.tsx +12 -0
- package/src/sections/Detail/Detail.tsx +34 -0
- package/src/sections/Detail/ReadmeSection.tsx +17 -0
- package/src/sections/Detail/Tabs.tsx +36 -0
- package/src/sections/Detail/index.ts +1 -0
- package/src/sections/Footer/Footer.test.tsx +20 -0
- package/src/sections/Footer/Footer.tsx +112 -0
- package/src/sections/Footer/index.ts +1 -0
- package/src/sections/Footer/styles.ts +44 -0
- package/src/sections/Header/Header.stories.tsx +36 -0
- package/src/sections/Header/Header.test.tsx +278 -0
- package/src/sections/Header/Header.tsx +79 -0
- package/src/sections/Header/HeaderGreetings.tsx +21 -0
- package/src/sections/Header/HeaderLeft.tsx +29 -0
- package/src/sections/Header/HeaderMenu.tsx +63 -0
- package/src/sections/Header/HeaderRight.tsx +131 -0
- package/src/sections/Header/HeaderSettingsDialog.tsx +80 -0
- package/src/sections/Header/HeaderToolTip.tsx +15 -0
- package/src/sections/Header/HeaderToolTipIcon.tsx +87 -0
- package/src/sections/Header/LanguageSwitch.tsx +99 -0
- package/src/sections/Header/RegistryInfoContent/RegistryInfoContent.test.tsx +26 -0
- package/src/sections/Header/RegistryInfoContent/RegistryInfoContent.tsx +191 -0
- package/src/sections/Header/RegistryInfoContent/index.ts +1 -0
- package/src/sections/Header/RegistryInfoContent/styles.ts +13 -0
- package/src/sections/Header/RegistryInfoDialog/RegistryInfoDialog.tsx +31 -0
- package/src/sections/Header/RegistryInfoDialog/index.ts +1 -0
- package/src/sections/Header/RegistryInfoDialog/styles.ts +21 -0
- package/src/sections/Header/RegistryInfoDialog/types.ts +8 -0
- package/src/sections/Header/index.ts +1 -0
- package/src/sections/Header/styles.ts +100 -0
- package/src/sections/Home/Home.stories.tsx +16 -0
- package/src/sections/Home/Home.test.tsx +29 -0
- package/src/sections/Home/Home.tsx +21 -0
- package/src/sections/Home/index.ts +1 -0
- package/src/sections/SideBar/Sidebar.stories.tsx +39 -0
- package/src/sections/SideBar/Sidebar.test.tsx +67 -0
- package/src/sections/SideBar/Sidebar.tsx +69 -0
- package/src/sections/SideBar/index.ts +1 -0
- package/src/sections/index.ts +2 -0
- package/src/store/api.test.ts +136 -0
- package/src/store/api.ts +73 -0
- package/src/store/index.ts +3 -0
- package/src/store/models/configuration.ts +46 -0
- package/src/store/models/download.ts +33 -0
- package/src/store/models/index.ts +18 -0
- package/src/store/models/login.test.ts +38 -0
- package/src/store/models/login.ts +106 -0
- package/src/store/models/manifest.ts +98 -0
- package/src/store/models/packages.ts +43 -0
- package/src/store/models/search.ts +86 -0
- package/src/store/storage.ts +12 -0
- package/src/store/store.ts +15 -0
- package/src/test/i18n-config.ts +19 -0
- package/src/test/test-react-testing-library.tsx +47 -0
- package/src/types/index.d.ts +2 -0
- package/src/types/index.ts +11 -0
- package/src/types/packageMeta.ts +93 -0
- package/src/utils/.eslintrc +5 -0
- package/src/utils/__partials__/packageMeta.ts +590 -0
- package/src/utils/cli-utils.test.ts +66 -0
- package/src/utils/cli-utils.ts +53 -0
- package/src/utils/index.ts +11 -0
- package/src/utils/loadable.tsx +20 -0
- package/src/utils/routes.ts +7 -0
- package/src/utils/token.test.ts +54 -0
- package/src/utils/token.ts +33 -0
- package/src/utils/url.test.ts +32 -0
- package/src/utils/url.ts +57 -0
- package/src/utils/utils.test.ts +113 -0
- package/src/utils/utils.ts +120 -0
- package/tsconfig.build.json +22 -0
- package/tsconfig.json +21 -0
- package/LICENSE +0 -21
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _material = require("@mui/material");
|
|
8
|
+
var _Avatar = _interopRequireDefault(require("@mui/material/Avatar"));
|
|
9
|
+
var _Grid = _interopRequireDefault(require("@mui/material/Grid"));
|
|
10
|
+
var _List = _interopRequireDefault(require("@mui/material/List"));
|
|
11
|
+
var _react = _interopRequireDefault(require("react"));
|
|
12
|
+
var _reactI18next = require("react-i18next");
|
|
13
|
+
var _Icons = require("../Icons");
|
|
14
|
+
var _styles = require("./styles");
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
+
/**
|
|
17
|
+
* The props type for {@link EngineItem}.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
*
|
|
23
|
+
* @category Component
|
|
24
|
+
*/
|
|
25
|
+
const EngineItem = ({
|
|
26
|
+
title,
|
|
27
|
+
element,
|
|
28
|
+
engineText
|
|
29
|
+
}) => /*#__PURE__*/_react.default.createElement(_Grid.default, {
|
|
30
|
+
item: true,
|
|
31
|
+
xs: 6
|
|
32
|
+
}, /*#__PURE__*/_react.default.createElement(_List.default, {
|
|
33
|
+
subheader: /*#__PURE__*/_react.default.createElement(_styles.StyledText, {
|
|
34
|
+
variant: 'subtitle1'
|
|
35
|
+
}, title)
|
|
36
|
+
}, /*#__PURE__*/_react.default.createElement(_styles.EngineListItem, null, /*#__PURE__*/_react.default.createElement(_Avatar.default, {
|
|
37
|
+
sx: {
|
|
38
|
+
bgcolor: '#FFF'
|
|
39
|
+
}
|
|
40
|
+
}, element), /*#__PURE__*/_react.default.createElement(_material.Typography, {
|
|
41
|
+
variant: "subtitle2"
|
|
42
|
+
}, engineText))));
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* The props type for {@link Engine}.
|
|
46
|
+
*/
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
*
|
|
51
|
+
* @category Component
|
|
52
|
+
*/
|
|
53
|
+
const Engine = ({
|
|
54
|
+
packageMeta
|
|
55
|
+
}) => {
|
|
56
|
+
var _packageMeta$latest;
|
|
57
|
+
const {
|
|
58
|
+
t
|
|
59
|
+
} = (0, _reactI18next.useTranslation)();
|
|
60
|
+
const engines = packageMeta === null || packageMeta === void 0 ? void 0 : (_packageMeta$latest = packageMeta.latest) === null || _packageMeta$latest === void 0 ? void 0 : _packageMeta$latest.engines;
|
|
61
|
+
if (!engines) {
|
|
62
|
+
return null;
|
|
63
|
+
}
|
|
64
|
+
return /*#__PURE__*/_react.default.createElement(_Grid.default, {
|
|
65
|
+
container: true
|
|
66
|
+
}, engines.node ? /*#__PURE__*/_react.default.createElement(EngineItem, {
|
|
67
|
+
element: /*#__PURE__*/_react.default.createElement(_Icons.NodeJS, null),
|
|
68
|
+
engineText: engines.node,
|
|
69
|
+
title: t('sidebar.engines.node-js')
|
|
70
|
+
}) : null, engines.npm ? /*#__PURE__*/_react.default.createElement(EngineItem, {
|
|
71
|
+
element: /*#__PURE__*/_react.default.createElement(_Icons.Npm, null),
|
|
72
|
+
engineText: engines.npm,
|
|
73
|
+
title: t('sidebar.engines.npm-version')
|
|
74
|
+
}) : null, engines.yarn ? /*#__PURE__*/_react.default.createElement(EngineItem, {
|
|
75
|
+
element: /*#__PURE__*/_react.default.createElement(_Icons.Yarn, null),
|
|
76
|
+
engineText: engines.yarn,
|
|
77
|
+
title: t('sidebar.engines.yarn-version')
|
|
78
|
+
}) : null, engines.pnpm ? /*#__PURE__*/_react.default.createElement(EngineItem, {
|
|
79
|
+
element: /*#__PURE__*/_react.default.createElement(_Icons.Pnpm, null),
|
|
80
|
+
engineText: engines.pnpm,
|
|
81
|
+
title: t('sidebar.engines.pnpm-version')
|
|
82
|
+
}) : null);
|
|
83
|
+
};
|
|
84
|
+
var _default = exports.default = Engine;
|
|
85
|
+
//# sourceMappingURL=Engines.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "default", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _Engines.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _Engines = _interopRequireDefault(require("./Engines"));
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.StyledText = exports.EngineListItem = void 0;
|
|
7
|
+
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
8
|
+
var _ListItem = _interopRequireDefault(require("@mui/material/ListItem"));
|
|
9
|
+
var _Typography = _interopRequireDefault(require("@mui/material/Typography"));
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
12
|
+
const StyledText = exports.StyledText = /*#__PURE__*/(0, _base.default)(_Typography.default, process.env.NODE_ENV === "production" ? {
|
|
13
|
+
target: "exjcs7c1"
|
|
14
|
+
} : {
|
|
15
|
+
target: "exjcs7c1",
|
|
16
|
+
label: "StyledText"
|
|
17
|
+
})(props => {
|
|
18
|
+
var _props$theme;
|
|
19
|
+
return {
|
|
20
|
+
fontWeight: (_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.fontWeight.bold,
|
|
21
|
+
textTransform: 'capitalize'
|
|
22
|
+
};
|
|
23
|
+
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0VuZ2luZXMvc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQU0wQiIsImZpbGUiOiIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9FbmdpbmVzL3N0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCBMaXN0SXRlbSBmcm9tICdAbXVpL21hdGVyaWFsL0xpc3RJdGVtJztcbmltcG9ydCBUeXBvZ3JhcGh5IGZyb20gJ0BtdWkvbWF0ZXJpYWwvVHlwb2dyYXBoeSc7XG5cbmltcG9ydCB7IFRoZW1lIH0gZnJvbSAnLi4vLi4vVGhlbWUnO1xuXG5leHBvcnQgY29uc3QgU3R5bGVkVGV4dCA9IHN0eWxlZChUeXBvZ3JhcGh5KTx7IHRoZW1lPzogVGhlbWUgfT4oKHByb3BzKSA9PiAoe1xuICBmb250V2VpZ2h0OiBwcm9wcy50aGVtZT8uZm9udFdlaWdodC5ib2xkLFxuICB0ZXh0VHJhbnNmb3JtOiAnY2FwaXRhbGl6ZScsXG59KSk7XG5cbmV4cG9ydCBjb25zdCBFbmdpbmVMaXN0SXRlbSA9IHN0eWxlZChMaXN0SXRlbSkoe1xuICBwYWRkaW5nTGVmdDogMCxcbn0pO1xuIl19 */");
|
|
24
|
+
const EngineListItem = exports.EngineListItem = /*#__PURE__*/(0, _base.default)(_ListItem.default, process.env.NODE_ENV === "production" ? {
|
|
25
|
+
target: "exjcs7c0"
|
|
26
|
+
} : {
|
|
27
|
+
target: "exjcs7c0",
|
|
28
|
+
label: "EngineListItem"
|
|
29
|
+
})(process.env.NODE_ENV === "production" ? {
|
|
30
|
+
name: "1408f10",
|
|
31
|
+
styles: "padding-left:0"
|
|
32
|
+
} : {
|
|
33
|
+
name: "1408f10",
|
|
34
|
+
styles: "padding-left:0",
|
|
35
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0VuZ2luZXMvc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVc4QiIsImZpbGUiOiIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9FbmdpbmVzL3N0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCBMaXN0SXRlbSBmcm9tICdAbXVpL21hdGVyaWFsL0xpc3RJdGVtJztcbmltcG9ydCBUeXBvZ3JhcGh5IGZyb20gJ0BtdWkvbWF0ZXJpYWwvVHlwb2dyYXBoeSc7XG5cbmltcG9ydCB7IFRoZW1lIH0gZnJvbSAnLi4vLi4vVGhlbWUnO1xuXG5leHBvcnQgY29uc3QgU3R5bGVkVGV4dCA9IHN0eWxlZChUeXBvZ3JhcGh5KTx7IHRoZW1lPzogVGhlbWUgfT4oKHByb3BzKSA9PiAoe1xuICBmb250V2VpZ2h0OiBwcm9wcy50aGVtZT8uZm9udFdlaWdodC5ib2xkLFxuICB0ZXh0VHJhbnNmb3JtOiAnY2FwaXRhbGl6ZScsXG59KSk7XG5cbmV4cG9ydCBjb25zdCBFbmdpbmVMaXN0SXRlbSA9IHN0eWxlZChMaXN0SXRlbSkoe1xuICBwYWRkaW5nTGVmdDogMCxcbn0pO1xuIl19 */",
|
|
36
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
37
|
+
});
|
|
38
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
9
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
10
|
+
class ErrorBoundary extends _react.Component {
|
|
11
|
+
constructor(props) {
|
|
12
|
+
super(props);
|
|
13
|
+
this.state = {
|
|
14
|
+
hasError: false,
|
|
15
|
+
error: null,
|
|
16
|
+
info: null
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
componentDidCatch(error, info) {
|
|
20
|
+
this.setState({
|
|
21
|
+
hasError: true,
|
|
22
|
+
error,
|
|
23
|
+
info
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
render() {
|
|
27
|
+
const {
|
|
28
|
+
hasError,
|
|
29
|
+
error,
|
|
30
|
+
info
|
|
31
|
+
} = this.state;
|
|
32
|
+
const {
|
|
33
|
+
children
|
|
34
|
+
} = this.props;
|
|
35
|
+
if (hasError) {
|
|
36
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("h1", null, 'Something went wrong.'), /*#__PURE__*/_react.default.createElement("p", null, `error: ${error}`), /*#__PURE__*/_react.default.createElement("p", null, `info: ${JSON.stringify(info)}`));
|
|
37
|
+
}
|
|
38
|
+
return children;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.default = ErrorBoundary;
|
|
42
|
+
//# sourceMappingURL=ErrorBoundary.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "default", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _ErrorBoundary.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _ErrorBoundary = _interopRequireDefault(require("./ErrorBoundary"));
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
8
|
+
var _Favorite = _interopRequireDefault(require("@mui/icons-material/Favorite"));
|
|
9
|
+
var _Button = _interopRequireDefault(require("@mui/material/Button"));
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
var _reactI18next = require("react-i18next");
|
|
12
|
+
var _utils = require("../../utils");
|
|
13
|
+
var _Link = require("../Link");
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
16
|
+
const StyledLink = /*#__PURE__*/(0, _base.default)(_Link.Link, process.env.NODE_ENV === "production" ? {
|
|
17
|
+
target: "e1lzdgus2"
|
|
18
|
+
} : {
|
|
19
|
+
target: "e1lzdgus2",
|
|
20
|
+
label: "StyledLink"
|
|
21
|
+
})(({
|
|
22
|
+
theme
|
|
23
|
+
}) => ({
|
|
24
|
+
marginTop: theme === null || theme === void 0 ? void 0 : theme.spacing(1),
|
|
25
|
+
marginBottom: theme === null || theme === void 0 ? void 0 : theme.spacing(1),
|
|
26
|
+
textDecoration: 'none',
|
|
27
|
+
display: 'block'
|
|
28
|
+
}), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0Z1bmRCdXR0b24vRnVuZEJ1dHRvbi50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBVW1CIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0Z1bmRCdXR0b24vRnVuZEJ1dHRvbi50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgRmF2b3JpdGUgZnJvbSAnQG11aS9pY29ucy1tYXRlcmlhbC9GYXZvcml0ZSc7XG5pbXBvcnQgQnV0dG9uIGZyb20gJ0BtdWkvbWF0ZXJpYWwvQnV0dG9uJztcbmltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBUcmFucyB9IGZyb20gJ3JlYWN0LWkxOG5leHQnO1xuXG5pbXBvcnQgeyBUaGVtZSB9IGZyb20gJy4uLy4uL1RoZW1lJztcbmltcG9ydCB7IHVybCB9IGZyb20gJy4uLy4uL3V0aWxzJztcbmltcG9ydCB7IExpbmsgfSBmcm9tICcuLi9MaW5rJztcblxuY29uc3QgU3R5bGVkTGluayA9IHN0eWxlZChMaW5rKTx7IHRoZW1lPzogVGhlbWUgfT4oKHsgdGhlbWUgfSkgPT4gKHtcbiAgbWFyZ2luVG9wOiB0aGVtZT8uc3BhY2luZygxKSxcbiAgbWFyZ2luQm90dG9tOiB0aGVtZT8uc3BhY2luZygxKSxcbiAgdGV4dERlY29yYXRpb246ICdub25lJyxcbiAgZGlzcGxheTogJ2Jsb2NrJyxcbn0pKTtcblxuY29uc3QgU3R5bGVkRmF2b3JpdGVJY29uID0gc3R5bGVkKEZhdm9yaXRlKTx7IHRoZW1lPzogVGhlbWUgfT4oKHsgdGhlbWUgfSkgPT4gKHtcbiAgY29sb3I6IHRoZW1lPy5wYWxldHRlLm9yYW5nZSxcbn0pKTtcblxuY29uc3QgU3R5bGVkRnVuZFN0cm9uZyA9IHN0eWxlZCgnc3Ryb25nJykoe1xuICBtYXJnaW5SaWdodDogMyxcbn0pO1xuXG4vKiBlc2xpbnQtZGlzYWJsZSByZWFjdC9qc3gtbm8tYmluZCAqL1xuY29uc3QgRnVuZEJ1dHRvbjogUmVhY3QuRkM8eyBwYWNrYWdlTWV0YTogYW55IH0+ID0gKHsgcGFja2FnZU1ldGEgfSkgPT4ge1xuICBjb25zdCBmdW5kaW5nVXJsID0gcGFja2FnZU1ldGE/LmxhdGVzdD8uZnVuZGluZz8udXJsIGFzIHN0cmluZztcblxuICBpZiAoIXVybC5pc1VSTChmdW5kaW5nVXJsKSkge1xuICAgIHJldHVybiBudWxsO1xuICB9XG5cbiAgcmV0dXJuIChcbiAgICA8U3R5bGVkTGluayBleHRlcm5hbD17dHJ1ZX0gdG89e2Z1bmRpbmdVcmx9IHZhcmlhbnQ9XCJidXR0b25cIj5cbiAgICAgIDxCdXR0b25cbiAgICAgICAgY29sb3I9XCJwcmltYXJ5XCJcbiAgICAgICAgZnVsbFdpZHRoPXt0cnVlfVxuICAgICAgICBzdGFydEljb249ezxTdHlsZWRGYXZvcml0ZUljb24gLz59XG4gICAgICAgIHZhcmlhbnQ9XCJvdXRsaW5lZFwiXG4gICAgICA+XG4gICAgICAgIDxUcmFucyBjb21wb25lbnRzPXtbPFN0eWxlZEZ1bmRTdHJvbmcga2V5PVwiZnVuZFwiIC8+XX0gaTE4bktleT1cImJ1dHRvbi5mdW5kLXRoaXMtcGFja2FnZVwiIC8+XG4gICAgICA8L0J1dHRvbj5cbiAgICA8L1N0eWxlZExpbms+XG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBGdW5kQnV0dG9uO1xuIl19 */");
|
|
29
|
+
const StyledFavoriteIcon = /*#__PURE__*/(0, _base.default)(_Favorite.default, process.env.NODE_ENV === "production" ? {
|
|
30
|
+
target: "e1lzdgus1"
|
|
31
|
+
} : {
|
|
32
|
+
target: "e1lzdgus1",
|
|
33
|
+
label: "StyledFavoriteIcon"
|
|
34
|
+
})(({
|
|
35
|
+
theme
|
|
36
|
+
}) => ({
|
|
37
|
+
color: theme === null || theme === void 0 ? void 0 : theme.palette.orange
|
|
38
|
+
}), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0Z1bmRCdXR0b24vRnVuZEJ1dHRvbi50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBaUIyQiIsImZpbGUiOiIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9GdW5kQnV0dG9uL0Z1bmRCdXR0b24udHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IEZhdm9yaXRlIGZyb20gJ0BtdWkvaWNvbnMtbWF0ZXJpYWwvRmF2b3JpdGUnO1xuaW1wb3J0IEJ1dHRvbiBmcm9tICdAbXVpL21hdGVyaWFsL0J1dHRvbic7XG5pbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsgVHJhbnMgfSBmcm9tICdyZWFjdC1pMThuZXh0JztcblxuaW1wb3J0IHsgVGhlbWUgfSBmcm9tICcuLi8uLi9UaGVtZSc7XG5pbXBvcnQgeyB1cmwgfSBmcm9tICcuLi8uLi91dGlscyc7XG5pbXBvcnQgeyBMaW5rIH0gZnJvbSAnLi4vTGluayc7XG5cbmNvbnN0IFN0eWxlZExpbmsgPSBzdHlsZWQoTGluayk8eyB0aGVtZT86IFRoZW1lIH0+KCh7IHRoZW1lIH0pID0+ICh7XG4gIG1hcmdpblRvcDogdGhlbWU/LnNwYWNpbmcoMSksXG4gIG1hcmdpbkJvdHRvbTogdGhlbWU/LnNwYWNpbmcoMSksXG4gIHRleHREZWNvcmF0aW9uOiAnbm9uZScsXG4gIGRpc3BsYXk6ICdibG9jaycsXG59KSk7XG5cbmNvbnN0IFN0eWxlZEZhdm9yaXRlSWNvbiA9IHN0eWxlZChGYXZvcml0ZSk8eyB0aGVtZT86IFRoZW1lIH0+KCh7IHRoZW1lIH0pID0+ICh7XG4gIGNvbG9yOiB0aGVtZT8ucGFsZXR0ZS5vcmFuZ2UsXG59KSk7XG5cbmNvbnN0IFN0eWxlZEZ1bmRTdHJvbmcgPSBzdHlsZWQoJ3N0cm9uZycpKHtcbiAgbWFyZ2luUmlnaHQ6IDMsXG59KTtcblxuLyogZXNsaW50LWRpc2FibGUgcmVhY3QvanN4LW5vLWJpbmQgKi9cbmNvbnN0IEZ1bmRCdXR0b246IFJlYWN0LkZDPHsgcGFja2FnZU1ldGE6IGFueSB9PiA9ICh7IHBhY2thZ2VNZXRhIH0pID0+IHtcbiAgY29uc3QgZnVuZGluZ1VybCA9IHBhY2thZ2VNZXRhPy5sYXRlc3Q/LmZ1bmRpbmc/LnVybCBhcyBzdHJpbmc7XG5cbiAgaWYgKCF1cmwuaXNVUkwoZnVuZGluZ1VybCkpIHtcbiAgICByZXR1cm4gbnVsbDtcbiAgfVxuXG4gIHJldHVybiAoXG4gICAgPFN0eWxlZExpbmsgZXh0ZXJuYWw9e3RydWV9IHRvPXtmdW5kaW5nVXJsfSB2YXJpYW50PVwiYnV0dG9uXCI+XG4gICAgICA8QnV0dG9uXG4gICAgICAgIGNvbG9yPVwicHJpbWFyeVwiXG4gICAgICAgIGZ1bGxXaWR0aD17dHJ1ZX1cbiAgICAgICAgc3RhcnRJY29uPXs8U3R5bGVkRmF2b3JpdGVJY29uIC8+fVxuICAgICAgICB2YXJpYW50PVwib3V0bGluZWRcIlxuICAgICAgPlxuICAgICAgICA8VHJhbnMgY29tcG9uZW50cz17WzxTdHlsZWRGdW5kU3Ryb25nIGtleT1cImZ1bmRcIiAvPl19IGkxOG5LZXk9XCJidXR0b24uZnVuZC10aGlzLXBhY2thZ2VcIiAvPlxuICAgICAgPC9CdXR0b24+XG4gICAgPC9TdHlsZWRMaW5rPlxuICApO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgRnVuZEJ1dHRvbjtcbiJdfQ== */");
|
|
39
|
+
const StyledFundStrong = /*#__PURE__*/(0, _base.default)('strong', process.env.NODE_ENV === "production" ? {
|
|
40
|
+
target: "e1lzdgus0"
|
|
41
|
+
} : {
|
|
42
|
+
target: "e1lzdgus0",
|
|
43
|
+
label: "StyledFundStrong"
|
|
44
|
+
})(process.env.NODE_ENV === "production" ? {
|
|
45
|
+
name: "1pt2o8x",
|
|
46
|
+
styles: "margin-right:3px"
|
|
47
|
+
} : {
|
|
48
|
+
name: "1pt2o8x",
|
|
49
|
+
styles: "margin-right:3px",
|
|
50
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0Z1bmRCdXR0b24vRnVuZEJ1dHRvbi50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBcUJ5QiIsImZpbGUiOiIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9GdW5kQnV0dG9uL0Z1bmRCdXR0b24udHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IEZhdm9yaXRlIGZyb20gJ0BtdWkvaWNvbnMtbWF0ZXJpYWwvRmF2b3JpdGUnO1xuaW1wb3J0IEJ1dHRvbiBmcm9tICdAbXVpL21hdGVyaWFsL0J1dHRvbic7XG5pbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsgVHJhbnMgfSBmcm9tICdyZWFjdC1pMThuZXh0JztcblxuaW1wb3J0IHsgVGhlbWUgfSBmcm9tICcuLi8uLi9UaGVtZSc7XG5pbXBvcnQgeyB1cmwgfSBmcm9tICcuLi8uLi91dGlscyc7XG5pbXBvcnQgeyBMaW5rIH0gZnJvbSAnLi4vTGluayc7XG5cbmNvbnN0IFN0eWxlZExpbmsgPSBzdHlsZWQoTGluayk8eyB0aGVtZT86IFRoZW1lIH0+KCh7IHRoZW1lIH0pID0+ICh7XG4gIG1hcmdpblRvcDogdGhlbWU/LnNwYWNpbmcoMSksXG4gIG1hcmdpbkJvdHRvbTogdGhlbWU/LnNwYWNpbmcoMSksXG4gIHRleHREZWNvcmF0aW9uOiAnbm9uZScsXG4gIGRpc3BsYXk6ICdibG9jaycsXG59KSk7XG5cbmNvbnN0IFN0eWxlZEZhdm9yaXRlSWNvbiA9IHN0eWxlZChGYXZvcml0ZSk8eyB0aGVtZT86IFRoZW1lIH0+KCh7IHRoZW1lIH0pID0+ICh7XG4gIGNvbG9yOiB0aGVtZT8ucGFsZXR0ZS5vcmFuZ2UsXG59KSk7XG5cbmNvbnN0IFN0eWxlZEZ1bmRTdHJvbmcgPSBzdHlsZWQoJ3N0cm9uZycpKHtcbiAgbWFyZ2luUmlnaHQ6IDMsXG59KTtcblxuLyogZXNsaW50LWRpc2FibGUgcmVhY3QvanN4LW5vLWJpbmQgKi9cbmNvbnN0IEZ1bmRCdXR0b246IFJlYWN0LkZDPHsgcGFja2FnZU1ldGE6IGFueSB9PiA9ICh7IHBhY2thZ2VNZXRhIH0pID0+IHtcbiAgY29uc3QgZnVuZGluZ1VybCA9IHBhY2thZ2VNZXRhPy5sYXRlc3Q/LmZ1bmRpbmc/LnVybCBhcyBzdHJpbmc7XG5cbiAgaWYgKCF1cmwuaXNVUkwoZnVuZGluZ1VybCkpIHtcbiAgICByZXR1cm4gbnVsbDtcbiAgfVxuXG4gIHJldHVybiAoXG4gICAgPFN0eWxlZExpbmsgZXh0ZXJuYWw9e3RydWV9IHRvPXtmdW5kaW5nVXJsfSB2YXJpYW50PVwiYnV0dG9uXCI+XG4gICAgICA8QnV0dG9uXG4gICAgICAgIGNvbG9yPVwicHJpbWFyeVwiXG4gICAgICAgIGZ1bGxXaWR0aD17dHJ1ZX1cbiAgICAgICAgc3RhcnRJY29uPXs8U3R5bGVkRmF2b3JpdGVJY29uIC8+fVxuICAgICAgICB2YXJpYW50PVwib3V0bGluZWRcIlxuICAgICAgPlxuICAgICAgICA8VHJhbnMgY29tcG9uZW50cz17WzxTdHlsZWRGdW5kU3Ryb25nIGtleT1cImZ1bmRcIiAvPl19IGkxOG5LZXk9XCJidXR0b24uZnVuZC10aGlzLXBhY2thZ2VcIiAvPlxuICAgICAgPC9CdXR0b24+XG4gICAgPC9TdHlsZWRMaW5rPlxuICApO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgRnVuZEJ1dHRvbjtcbiJdfQ== */",
|
|
51
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
/* eslint-disable react/jsx-no-bind */
|
|
55
|
+
const FundButton = ({
|
|
56
|
+
packageMeta
|
|
57
|
+
}) => {
|
|
58
|
+
var _packageMeta$latest, _packageMeta$latest$f;
|
|
59
|
+
const fundingUrl = packageMeta === null || packageMeta === void 0 ? void 0 : (_packageMeta$latest = packageMeta.latest) === null || _packageMeta$latest === void 0 ? void 0 : (_packageMeta$latest$f = _packageMeta$latest.funding) === null || _packageMeta$latest$f === void 0 ? void 0 : _packageMeta$latest$f.url;
|
|
60
|
+
if (!_utils.url.isURL(fundingUrl)) {
|
|
61
|
+
return null;
|
|
62
|
+
}
|
|
63
|
+
return /*#__PURE__*/_react.default.createElement(StyledLink, {
|
|
64
|
+
external: true,
|
|
65
|
+
to: fundingUrl,
|
|
66
|
+
variant: "button"
|
|
67
|
+
}, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
68
|
+
color: "primary",
|
|
69
|
+
fullWidth: true,
|
|
70
|
+
startIcon: /*#__PURE__*/_react.default.createElement(StyledFavoriteIcon, null),
|
|
71
|
+
variant: "outlined"
|
|
72
|
+
}, /*#__PURE__*/_react.default.createElement(_reactI18next.Trans, {
|
|
73
|
+
components: [/*#__PURE__*/_react.default.createElement(StyledFundStrong, {
|
|
74
|
+
key: "fund"
|
|
75
|
+
})],
|
|
76
|
+
i18nKey: "button.fund-this-package"
|
|
77
|
+
})));
|
|
78
|
+
};
|
|
79
|
+
var _default = exports.default = FundButton;
|
|
80
|
+
//# sourceMappingURL=FundButton.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "default", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _FundButton.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _FundButton = _interopRequireDefault(require("./FundButton"));
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _Box = _interopRequireDefault(require("@mui/material/Box"));
|
|
8
|
+
var _Tab = _interopRequireDefault(require("@mui/material/Tab"));
|
|
9
|
+
var _Tabs = _interopRequireDefault(require("@mui/material/Tabs"));
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
var _RegistryInfoDialog = _interopRequireDefault(require("../RegistryInfoDialog"));
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } /* eslint-disable verdaccio/jsx-spread */
|
|
14
|
+
function a11yProps(index) {
|
|
15
|
+
return {
|
|
16
|
+
id: `simple-tab-${index}`,
|
|
17
|
+
'aria-controls': `simple-tabpanel-${index}`
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function TabPanel(props) {
|
|
21
|
+
const {
|
|
22
|
+
children,
|
|
23
|
+
value,
|
|
24
|
+
index,
|
|
25
|
+
...other
|
|
26
|
+
} = props;
|
|
27
|
+
return /*#__PURE__*/_react.default.createElement("div", _extends({
|
|
28
|
+
"aria-labelledby": `simple-tab-${index}`,
|
|
29
|
+
hidden: value !== index,
|
|
30
|
+
id: `simple-tabpanel-${index}`,
|
|
31
|
+
role: "tabpanel"
|
|
32
|
+
}, other), value === index && /*#__PURE__*/_react.default.createElement(_Box.default, {
|
|
33
|
+
sx: {
|
|
34
|
+
paddingTop: 3
|
|
35
|
+
}
|
|
36
|
+
}, children));
|
|
37
|
+
}
|
|
38
|
+
const HeaderInfoDialog = ({
|
|
39
|
+
onCloseDialog,
|
|
40
|
+
isOpen,
|
|
41
|
+
tabs = null,
|
|
42
|
+
tabPanels = null,
|
|
43
|
+
dialogTitle
|
|
44
|
+
}) => {
|
|
45
|
+
const [value, setValue] = _react.default.useState(0);
|
|
46
|
+
const handleChange = (_event, newValue) => {
|
|
47
|
+
setValue(newValue);
|
|
48
|
+
};
|
|
49
|
+
return /*#__PURE__*/_react.default.createElement(_RegistryInfoDialog.default, {
|
|
50
|
+
onClose: onCloseDialog,
|
|
51
|
+
open: isOpen,
|
|
52
|
+
title: dialogTitle
|
|
53
|
+
}, /*#__PURE__*/_react.default.createElement(_Box.default, {
|
|
54
|
+
sx: {
|
|
55
|
+
width: '100%'
|
|
56
|
+
}
|
|
57
|
+
}, /*#__PURE__*/_react.default.createElement(_Box.default, {
|
|
58
|
+
sx: {
|
|
59
|
+
borderBottom: 1,
|
|
60
|
+
borderColor: 'divider'
|
|
61
|
+
}
|
|
62
|
+
}, /*#__PURE__*/_react.default.createElement(_Tabs.default, {
|
|
63
|
+
"aria-label": "infoTabs",
|
|
64
|
+
onChange: handleChange,
|
|
65
|
+
value: value
|
|
66
|
+
}, tabs ? tabs.map((item, index) => {
|
|
67
|
+
return /*#__PURE__*/_react.default.createElement(_Tab.default, _extends({
|
|
68
|
+
key: item.label,
|
|
69
|
+
label: item.label
|
|
70
|
+
}, a11yProps(index), item));
|
|
71
|
+
}) : null)), tabPanels ? tabPanels.map((item, index) => {
|
|
72
|
+
return /*#__PURE__*/_react.default.createElement(TabPanel, {
|
|
73
|
+
index: index,
|
|
74
|
+
key: item.key,
|
|
75
|
+
value: value
|
|
76
|
+
}, item.element);
|
|
77
|
+
}) : null));
|
|
78
|
+
};
|
|
79
|
+
var _default = exports.default = HeaderInfoDialog;
|
|
80
|
+
//# sourceMappingURL=HeaderInfoDialog.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "default", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _HeaderInfoDialog.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _HeaderInfoDialog = _interopRequireDefault(require("./HeaderInfoDialog"));
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _Typography = _interopRequireDefault(require("@mui/material/Typography"));
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
10
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
13
|
+
const Heading = /*#__PURE__*/(0, _react.forwardRef)(function Heading({
|
|
14
|
+
variant = 'h6',
|
|
15
|
+
...props
|
|
16
|
+
}, ref) {
|
|
17
|
+
// eslint-disable-next-line verdaccio/jsx-spread
|
|
18
|
+
return /*#__PURE__*/_react.default.createElement(_Typography.default, _extends({}, props, {
|
|
19
|
+
ref: ref,
|
|
20
|
+
variant: variant
|
|
21
|
+
}));
|
|
22
|
+
});
|
|
23
|
+
var _default = exports.default = Heading;
|
|
24
|
+
//# sourceMappingURL=Heading.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "default", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _Heading.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _Heading = _interopRequireDefault(require("./Heading"));
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _Button = _interopRequireDefault(require("@mui/material/Button"));
|
|
8
|
+
var _CardActions = _interopRequireDefault(require("@mui/material/CardActions"));
|
|
9
|
+
var _CardContent = _interopRequireDefault(require("@mui/material/CardContent"));
|
|
10
|
+
var _Typography = _interopRequireDefault(require("@mui/material/Typography"));
|
|
11
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _reactI18next = require("react-i18next");
|
|
13
|
+
var _ = require("../../");
|
|
14
|
+
var _styles = require("./styles");
|
|
15
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
16
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
17
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18
|
+
function renderHeadingClipboardSegments(title, text) {
|
|
19
|
+
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
20
|
+
variant: 'body1'
|
|
21
|
+
}, title), /*#__PURE__*/_react.default.createElement(_.CopyClipboard, {
|
|
22
|
+
dataTestId: "segments",
|
|
23
|
+
text: text
|
|
24
|
+
}));
|
|
25
|
+
}
|
|
26
|
+
const Help = () => {
|
|
27
|
+
const {
|
|
28
|
+
configOptions
|
|
29
|
+
} = (0, _.useConfig)();
|
|
30
|
+
const registryUrl = configOptions.base;
|
|
31
|
+
const {
|
|
32
|
+
t
|
|
33
|
+
} = (0, _reactI18next.useTranslation)();
|
|
34
|
+
return /*#__PURE__*/_react.default.createElement(_styles.CardStyled, {
|
|
35
|
+
"data-testid": "help-card",
|
|
36
|
+
id: "help-card"
|
|
37
|
+
}, /*#__PURE__*/_react.default.createElement(_CardContent.default, null, /*#__PURE__*/_react.default.createElement(_.Heading, {
|
|
38
|
+
gutterBottom: true,
|
|
39
|
+
id: "help-card__title",
|
|
40
|
+
variant: "h5"
|
|
41
|
+
}, t('help.title')), /*#__PURE__*/_react.default.createElement(_.Heading, {
|
|
42
|
+
color: "textSecondary",
|
|
43
|
+
gutterBottom: true,
|
|
44
|
+
sx: {
|
|
45
|
+
marginBottom: 1
|
|
46
|
+
}
|
|
47
|
+
}, t('help.sub-title')), renderHeadingClipboardSegments(t('help.first-step'), t('help.first-step-command-line', {
|
|
48
|
+
registryUrl
|
|
49
|
+
})), renderHeadingClipboardSegments(t('help.second-step'), t('help.second-step-command-line', {
|
|
50
|
+
registryUrl
|
|
51
|
+
})), /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
52
|
+
variant: "body2"
|
|
53
|
+
}, t('help.third-step'))), /*#__PURE__*/_react.default.createElement(_CardActions.default, null, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
54
|
+
color: "primary",
|
|
55
|
+
href: "https://verdaccio.org/docs/cli-registry",
|
|
56
|
+
size: "small"
|
|
57
|
+
}, t('button.learn-more'))));
|
|
58
|
+
};
|
|
59
|
+
var _default = exports.default = Help;
|
|
60
|
+
//# sourceMappingURL=Help.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "default", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _Help.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _Help = _interopRequireDefault(require("./Help"));
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.CardStyled = void 0;
|
|
7
|
+
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
8
|
+
var _Card = _interopRequireDefault(require("@mui/material/Card"));
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
11
|
+
const CardStyled = exports.CardStyled = /*#__PURE__*/(0, _base.default)(_Card.default, process.env.NODE_ENV === "production" ? {
|
|
12
|
+
target: "e1cp9qoa0"
|
|
13
|
+
} : {
|
|
14
|
+
target: "e1cp9qoa0",
|
|
15
|
+
label: "CardStyled"
|
|
16
|
+
})(process.env.NODE_ENV === "production" ? {
|
|
17
|
+
name: "b7qabe",
|
|
18
|
+
styles: "max-width:600px;margin:auto"
|
|
19
|
+
} : {
|
|
20
|
+
name: "b7qabe",
|
|
21
|
+
styles: "max-width:600px;margin:auto",
|
|
22
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0hlbHAvc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUcwQiIsImZpbGUiOiIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9IZWxwL3N0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCBDYXJkIGZyb20gJ0BtdWkvbWF0ZXJpYWwvQ2FyZCc7XG5cbmV4cG9ydCBjb25zdCBDYXJkU3R5bGVkID0gc3R5bGVkKENhcmQpKHtcbiAgbWF4V2lkdGg6IDYwMCxcbiAgbWFyZ2luOiAnYXV0bycsXG59KTtcbiJdfQ== */",
|
|
23
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
24
|
+
});
|
|
25
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.CommonJS = CommonJS;
|
|
7
|
+
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
const icon = require('./commonjs.svg');
|
|
11
|
+
const ImgIcon = /*#__PURE__*/(0, _base.default)("img", process.env.NODE_ENV === "production" ? {
|
|
12
|
+
target: "e1xpymzr0"
|
|
13
|
+
} : {
|
|
14
|
+
target: "e1xpymzr0",
|
|
15
|
+
label: "ImgIcon"
|
|
16
|
+
})(({
|
|
17
|
+
theme
|
|
18
|
+
}) => ({
|
|
19
|
+
marginLeft: theme === null || theme === void 0 ? void 0 : theme.spacing(1)
|
|
20
|
+
}), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0ljb25zL0RldnNJY29ucy9Db21tb25KUy50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBTWdCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0ljb25zL0RldnNJY29ucy9Db21tb25KUy50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgeyBUaGVtZSB9IGZyb20gJ0BtdWkvbWF0ZXJpYWwnO1xuaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0JztcblxuY29uc3QgaWNvbiA9IHJlcXVpcmUoJy4vY29tbW9uanMuc3ZnJyk7XG5cbmNvbnN0IEltZ0ljb24gPSBzdHlsZWQuaW1nPHsgdGhlbWU/OiBUaGVtZSB9PigoeyB0aGVtZSB9KSA9PiAoe1xuICBtYXJnaW5MZWZ0OiB0aGVtZT8uc3BhY2luZygxKSxcbn0pKTtcblxuZXhwb3J0IGZ1bmN0aW9uIENvbW1vbkpTKCkge1xuICByZXR1cm4gPEltZ0ljb24gYWx0PVwiY29tbW9uanNcIiBoZWlnaHQ9XCIyMFwiIHNyYz17aWNvbn0gd2lkdGg9XCIyMFwiIC8+O1xufVxuIl19 */");
|
|
21
|
+
function CommonJS() {
|
|
22
|
+
return /*#__PURE__*/_react.default.createElement(ImgIcon, {
|
|
23
|
+
alt: "commonjs",
|
|
24
|
+
height: "20",
|
|
25
|
+
src: icon,
|
|
26
|
+
width: "20"
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=CommonJS.js.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ES6Modules = ES6Modules;
|
|
7
|
+
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
const icon = require('./es6modules.svg');
|
|
11
|
+
const ImgIcon = /*#__PURE__*/(0, _base.default)("img", process.env.NODE_ENV === "production" ? {
|
|
12
|
+
target: "eshu3xf0"
|
|
13
|
+
} : {
|
|
14
|
+
target: "eshu3xf0",
|
|
15
|
+
label: "ImgIcon"
|
|
16
|
+
})(({
|
|
17
|
+
theme
|
|
18
|
+
}) => ({
|
|
19
|
+
marginLeft: theme === null || theme === void 0 ? void 0 : theme.spacing(1)
|
|
20
|
+
}), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0ljb25zL0RldnNJY29ucy9FUzZNb2R1bGUudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQU1nQiIsImZpbGUiOiIuLi8uLi8uLi8uLi9zcmMvY29tcG9uZW50cy9JY29ucy9EZXZzSWNvbnMvRVM2TW9kdWxlLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCB7IFRoZW1lIH0gZnJvbSAnQG11aS9tYXRlcmlhbCc7XG5pbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnO1xuXG5jb25zdCBpY29uID0gcmVxdWlyZSgnLi9lczZtb2R1bGVzLnN2ZycpO1xuXG5jb25zdCBJbWdJY29uID0gc3R5bGVkLmltZzx7IHRoZW1lPzogVGhlbWUgfT4oKHsgdGhlbWUgfSkgPT4gKHtcbiAgbWFyZ2luTGVmdDogdGhlbWU/LnNwYWNpbmcoMSksXG59KSk7XG5cbmV4cG9ydCBmdW5jdGlvbiBFUzZNb2R1bGVzKCkge1xuICByZXR1cm4gPEltZ0ljb24gYWx0PVwiZXM2IG1vZHVsZXNcIiBoZWlnaHQ9XCIyMFwiIHNyYz17aWNvbn0gd2lkdGg9XCIyMFwiIC8+O1xufVxuIl19 */");
|
|
21
|
+
function ES6Modules() {
|
|
22
|
+
return /*#__PURE__*/_react.default.createElement(ImgIcon, {
|
|
23
|
+
alt: "es6 modules",
|
|
24
|
+
height: "20",
|
|
25
|
+
src: icon,
|
|
26
|
+
width: "20"
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=ES6Module.js.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Git = Git;
|
|
7
|
+
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
const icon = require('./git.svg');
|
|
11
|
+
const ImgIcon = /*#__PURE__*/(0, _base.default)("img", process.env.NODE_ENV === "production" ? {
|
|
12
|
+
target: "e1dcsq4r0"
|
|
13
|
+
} : {
|
|
14
|
+
target: "e1dcsq4r0",
|
|
15
|
+
label: "ImgIcon"
|
|
16
|
+
})(({
|
|
17
|
+
theme
|
|
18
|
+
}) => ({
|
|
19
|
+
marginLeft: theme === null || theme === void 0 ? void 0 : theme.spacing(1)
|
|
20
|
+
}), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0ljb25zL0RldnNJY29ucy9HaXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQU1nQiIsImZpbGUiOiIuLi8uLi8uLi8uLi9zcmMvY29tcG9uZW50cy9JY29ucy9EZXZzSWNvbnMvR2l0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCB7IFRoZW1lIH0gZnJvbSAnQG11aS9tYXRlcmlhbCc7XG5pbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnO1xuXG5jb25zdCBpY29uID0gcmVxdWlyZSgnLi9naXQuc3ZnJyk7XG5cbmNvbnN0IEltZ0ljb24gPSBzdHlsZWQuaW1nPHsgdGhlbWU/OiBUaGVtZSB9PigoeyB0aGVtZSB9KSA9PiAoe1xuICBtYXJnaW5MZWZ0OiB0aGVtZT8uc3BhY2luZygxKSxcbn0pKTtcblxuZXhwb3J0IGZ1bmN0aW9uIEdpdCgpIHtcbiAgcmV0dXJuIDxJbWdJY29uIGFsdD1cImdpdFwiIGhlaWdodD1cIjIwXCIgc3JjPXtpY29ufSB3aWR0aD1cIjIwXCIgLz47XG59XG4iXX0= */");
|
|
21
|
+
function Git() {
|
|
22
|
+
return /*#__PURE__*/_react.default.createElement(ImgIcon, {
|
|
23
|
+
alt: "git",
|
|
24
|
+
height: "20",
|
|
25
|
+
src: icon,
|
|
26
|
+
width: "20"
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=Git.js.map
|