@verdaccio/ui-components 2.0.0-alpha.0 → 3.0.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.babelrc +8 -0
- package/.eslintrc +100 -0
- package/CHANGELOG.md +157 -0
- package/README.md +103 -0
- package/build/Theme/ResetStyles.js +50 -0
- package/build/Theme/StyleBaseline.js +15 -0
- package/build/Theme/ThemeProvider.js +51 -0
- package/build/Theme/colors.js +9 -0
- package/build/Theme/index.js +45 -0
- package/build/Theme/theme.js +108 -0
- package/build/__mocks__/react-markdown.js +18 -0
- package/build/__mocks__/remark-plugin.js +8 -0
- package/build/components/ActionBar/ActionBar.js +71 -0
- package/build/components/ActionBar/ActionBarAction.js +94 -0
- package/build/components/ActionBar/index.js +14 -0
- package/build/components/Author/Author.js +68 -0
- package/build/components/Author/index.js +14 -0
- package/build/components/Author/styles.js +55 -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 +106 -0
- package/build/components/Dependencies/index.js +14 -0
- package/build/components/Dependencies/styles.js +68 -0
- package/build/components/Dependencies/types.js +6 -0
- package/build/components/Deprecated/Deprecated.js +33 -0
- package/build/components/Deprecated/index.js +14 -0
- package/build/components/Developers/Developers.js +96 -0
- package/build/components/Developers/Title.js +48 -0
- package/build/components/Developers/get-unique-developer-values.js +15 -0
- package/build/components/Developers/index.js +21 -0
- package/build/components/Developers/styles.js +69 -0
- package/build/components/Distribution/Dist.js +49 -0
- package/build/components/Distribution/index.js +14 -0
- package/build/components/Distribution/styles.js +70 -0
- package/build/components/Distribution/utils.js +25 -0
- package/build/components/Distribution/utilts.spec.js +18 -0
- package/build/components/Engines/Engines.js +86 -0
- package/build/components/Engines/index.js +14 -0
- package/build/components/Engines/styles.js +40 -0
- package/build/components/ErrorBoundary/ErrorBoundary.js +42 -0
- package/build/components/ErrorBoundary/index.js +14 -0
- package/build/components/FundButton/FundButton.js +81 -0
- package/build/components/FundButton/index.js +14 -0
- package/build/components/HeaderInfoDialog/HeaderInfoDialog.js +81 -0
- package/build/components/HeaderInfoDialog/index.js +14 -0
- package/build/components/Heading/Heading.js +25 -0
- package/build/components/Heading/index.js +14 -0
- package/build/components/Help/Help.js +61 -0
- package/build/components/Help/index.js +14 -0
- package/build/components/Help/styles.js +26 -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 +40 -0
- package/build/components/Icons/FileBinary.js +20 -0
- package/build/components/Icons/Law.js +21 -0
- package/build/components/Icons/License.js +24 -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 +48 -0
- package/build/components/Icons/Time.js +27 -0
- package/build/components/Icons/Version.js +25 -0
- package/build/components/Icons/index.js +80 -0
- package/build/components/Install/Install.js +75 -0
- package/build/components/Install/InstallListItem.js +147 -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 +36 -0
- package/build/components/Label/index.js +14 -0
- package/build/components/Link/Link.js +58 -0
- package/build/components/Link/index.js +14 -0
- package/build/components/Loading/Loading.js +21 -0
- package/build/components/Loading/Spinner/Spinner.js +49 -0
- package/build/components/Loading/Spinner/index.js +14 -0
- package/build/components/Loading/index.js +14 -0
- package/build/components/Loading/styles.js +39 -0
- package/build/components/LoginDialog/LoginDialog.js +76 -0
- package/build/components/LoginDialog/LoginDialogCloseButton.js +42 -0
- package/build/components/LoginDialog/LoginDialogForm.js +127 -0
- package/build/components/LoginDialog/LoginDialogFormError.js +50 -0
- package/build/components/LoginDialog/LoginDialogHeader.js +60 -0
- package/build/components/LoginDialog/index.js +14 -0
- package/build/components/Logo/Logo.js +83 -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 +41 -0
- package/build/components/MenuItem/index.js +14 -0
- package/build/components/NoItems/NoItems.js +19 -0
- package/build/components/NoItems/index.js +14 -0
- package/build/components/NotFound/NotFound.js +74 -0
- package/build/components/NotFound/img/package.svg +1 -0
- package/build/components/NotFound/index.js +14 -0
- package/build/components/Package/Package.js +181 -0
- package/build/components/Package/Tag/Tag.js +15 -0
- package/build/components/Package/Tag/index.js +14 -0
- package/build/components/Package/Tag/styles.js +25 -0
- package/build/components/Package/index.js +21 -0
- package/build/components/Package/styles.js +224 -0
- package/build/components/PackageList/PackageList.js +100 -0
- package/build/components/PackageList/index.js +14 -0
- package/build/components/RawViewer/RawViewer.js +64 -0
- package/build/components/RawViewer/index.js +14 -0
- package/build/components/Readme/Readme.js +43 -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/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 +37 -0
- package/build/components/RegistryInfoDialog/index.js +14 -0
- package/build/components/RegistryInfoDialog/styles.js +49 -0
- package/build/components/RegistryInfoDialog/types.js +6 -0
- package/build/components/Repository/Repository.js +129 -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 +70 -0
- package/build/components/Search/AutoComplete/index.js +14 -0
- package/build/components/Search/AutoComplete/styles.js +63 -0
- package/build/components/Search/Search.js +159 -0
- package/build/components/Search/SearchItem.js +137 -0
- package/build/components/Search/index.js +14 -0
- package/build/components/Search/styles.js +60 -0
- package/build/components/SettingsMenu/SettingsMenu.js +68 -0
- package/build/components/SettingsMenu/index.js +14 -0
- package/build/components/SideBarTittle/SideBarTittle.js +94 -0
- package/build/components/SideBarTittle/index.js +14 -0
- package/build/components/SideBarTittle/utils.js +20 -0
- package/build/components/TextField/TextField.js +30 -0
- package/build/components/TextField/index.js +14 -0
- package/build/components/UpLinks/UpLinks.js +44 -0
- package/build/components/UpLinks/index.js +14 -0
- package/build/components/UpLinks/styles.js +50 -0
- package/build/components/Versions/HistoryList.js +41 -0
- package/build/components/Versions/TagList.js +31 -0
- package/build/components/Versions/Versions.js +46 -0
- package/build/components/Versions/__partials__/data.json +5984 -0
- package/build/components/Versions/index.js +14 -0
- package/build/components/Versions/styles.js +38 -0
- package/build/components/Versions/types.js +6 -0
- package/build/hooks/index.js +21 -0
- package/build/hooks/useLocalStorage.js +54 -0
- package/build/hooks/useOnClickOutside.js +33 -0
- package/build/index.js +500 -0
- package/build/layouts/Version/Version.js +29 -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 +54 -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 +81 -0
- package/build/providers/VersionProvider/index.js +21 -0
- package/build/providers/index.js +39 -0
- package/build/sections/Detail/ContainerContent.js +57 -0
- package/build/sections/Detail/Detail.js +52 -0
- package/build/sections/Detail/ReadmeSection.js +22 -0
- package/build/sections/Detail/Tabs.js +61 -0
- package/build/sections/Detail/index.js +14 -0
- package/build/sections/Footer/Footer.js +111 -0
- package/build/sections/Footer/index.js +14 -0
- package/build/sections/Footer/styles.js +90 -0
- package/build/sections/Header/Header.js +73 -0
- package/build/sections/Header/HeaderGreetings.js +26 -0
- package/build/sections/Header/HeaderLeft.js +37 -0
- package/build/sections/Header/HeaderMenu.js +54 -0
- package/build/sections/Header/HeaderRight.js +104 -0
- package/build/sections/Header/HeaderSettingsDialog.js +108 -0
- package/build/sections/Header/HeaderToolTip.js +19 -0
- package/build/sections/Header/HeaderToolTipIcon.js +70 -0
- package/build/sections/Header/LanguageSwitch.js +129 -0
- package/build/sections/Header/RegistryInfoContent/RegistryInfoContent.js +190 -0
- package/build/sections/Header/RegistryInfoContent/index.js +14 -0
- package/build/sections/Header/RegistryInfoContent/styles.js +31 -0
- package/build/sections/Header/RegistryInfoDialog/RegistryInfoDialog.js +37 -0
- package/build/sections/Header/RegistryInfoDialog/index.js +14 -0
- package/build/sections/Header/RegistryInfoDialog/styles.js +49 -0
- package/build/sections/Header/RegistryInfoDialog/types.js +6 -0
- package/build/sections/Header/index.js +14 -0
- package/build/sections/Header/styles.js +213 -0
- package/build/sections/Home/Home.js +32 -0
- package/build/sections/Home/index.js +14 -0
- package/build/sections/SideBar/Sidebar.js +98 -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 +6 -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 +5 -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/index.d.ts +1 -0
- package/build/src/components/Dependencies/styles.d.ts +8 -0
- package/build/src/components/Dependencies/types.d.ts +6 -0
- package/build/src/components/Deprecated/Deprecated.d.ts +7 -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 +12 -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/SideBarTittle/SideBarTittle.d.ts +13 -0
- package/build/src/components/SideBarTittle/SideBarTittle.stories.d.ts +9 -0
- package/build/src/components/SideBarTittle/index.d.ts +1 -0
- package/build/src/components/SideBarTittle/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 +9 -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/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 +84 -0
- package/build/src/utils/__partials__/packageMeta.d.ts +236 -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 +70 -0
- package/build/store/index.js +52 -0
- package/build/store/models/configuration.js +49 -0
- package/build/store/models/download.js +41 -0
- package/build/store/models/index.js +22 -0
- package/build/store/models/login.js +104 -0
- package/build/store/models/manifest.js +99 -0
- package/build/store/models/packages.js +44 -0
- package/build/store/models/search.js +90 -0
- package/build/store/storage.js +19 -0
- package/build/store/store.js +16 -0
- package/build/test/i18n-config.js +26 -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 +536 -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 +16 -0
- package/build/utils/token.js +35 -0
- package/build/utils/url.js +64 -0
- package/build/utils/utils.js +103 -0
- package/package.json +69 -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 +161 -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 +85 -0
- package/src/components/ActionBar/ActionBar.tsx +59 -0
- package/src/components/ActionBar/ActionBarAction.tsx +84 -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 +59 -0
- package/src/components/Author/index.ts +1 -0
- package/src/components/Author/styles.ts +22 -0
- package/src/components/CopyClipboard/CopyToClipBoard.stories.tsx +20 -0
- package/src/components/CopyClipboard/CopyToClipBoard.tsx +50 -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 +79 -0
- package/src/components/Dependencies/Dependencies.tsx +111 -0
- package/src/components/Dependencies/index.ts +1 -0
- package/src/components/Dependencies/styles.ts +26 -0
- package/src/components/Dependencies/types.ts +7 -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 +31 -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 +11 -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 +84 -0
- package/src/components/Install/Install.tsx +67 -0
- package/src/components/Install/InstallListItem.tsx +118 -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 +11 -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 +260 -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 +72 -0
- package/src/components/RawViewer/index.ts +1 -0
- package/src/components/Readme/Readme.spec.tsx +18 -0
- package/src/components/Readme/Readme.tsx +30 -0
- package/src/components/Readme/index.ts +1 -0
- package/src/components/Readme/types.ts +3 -0
- package/src/components/Readme/utils.ts +25 -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 +67 -0
- package/src/components/SettingsMenu/index.ts +1 -0
- package/src/components/SideBarTittle/SideBarTittle.stories.tsx +68 -0
- package/src/components/SideBarTittle/SideBarTittle.tsx +81 -0
- package/src/components/SideBarTittle/index.ts +1 -0
- package/src/components/SideBarTittle/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 +41 -0
- package/src/components/Versions/TagList.tsx +33 -0
- package/src/components/Versions/Versions.test.tsx +39 -0
- package/src/components/Versions/Versions.tsx +40 -0
- package/src/components/Versions/__partials__/data.json +5984 -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 +73 -0
- package/src/providers/AppConfigurationProvider/index.ts +1 -0
- package/src/providers/PersistenceSettingProvider/PersistenceSettingProvider.tsx +57 -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 +81 -0
- package/src/sections/Header/HeaderToolTip.tsx +15 -0
- package/src/sections/Header/HeaderToolTipIcon.tsx +87 -0
- package/src/sections/Header/LanguageSwitch.tsx +96 -0
- package/src/sections/Header/RegistryInfoContent/RegistryInfoContent.test.tsx +26 -0
- package/src/sections/Header/RegistryInfoContent/RegistryInfoContent.tsx +196 -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.tsx +22 -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 +106 -0
- package/src/sections/SideBar/Sidebar.tsx +80 -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 +34 -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 +92 -0
- package/src/utils/.eslintrc +5 -0
- package/src/utils/__partials__/packageMeta.ts +591 -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,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.CardStyled = void 0;
|
|
7
|
+
var _Card = _interopRequireDefault(require("@mui/material/Card"));
|
|
8
|
+
var _CardContent = _interopRequireDefault(require("@mui/material/CardContent"));
|
|
9
|
+
var _system = require("@mui/system");
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
+
const CardStyled = (0, _system.styled)(_Card.default)(({
|
|
13
|
+
theme
|
|
14
|
+
}) => {
|
|
15
|
+
var _theme$palette, _theme$palette2;
|
|
16
|
+
return {
|
|
17
|
+
marginTop: theme === null || theme === void 0 ? void 0 : theme.spacing(1),
|
|
18
|
+
marginBottom: theme === null || theme === void 0 ? void 0 : theme.spacing(0.5),
|
|
19
|
+
backgroundColor: theme === null || theme === void 0 ? void 0 : (_theme$palette = theme.palette) === null || _theme$palette === void 0 ? void 0 : _theme$palette.error.light,
|
|
20
|
+
opacity: '0.9',
|
|
21
|
+
color: theme === null || theme === void 0 ? void 0 : (_theme$palette2 = theme.palette) === null || _theme$palette2 === void 0 ? void 0 : _theme$palette2.error.contrastText,
|
|
22
|
+
fontWeight: 'bold'
|
|
23
|
+
};
|
|
24
|
+
});
|
|
25
|
+
exports.CardStyled = CardStyled;
|
|
26
|
+
const Deprecated = ({
|
|
27
|
+
message
|
|
28
|
+
}) => {
|
|
29
|
+
return /*#__PURE__*/_react.default.createElement(CardStyled, null, /*#__PURE__*/_react.default.createElement(_CardContent.default, null, message));
|
|
30
|
+
};
|
|
31
|
+
var _default = Deprecated;
|
|
32
|
+
exports.default = _default;
|
|
33
|
+
//# sourceMappingURL=Deprecated.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 _Deprecated.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _Deprecated = _interopRequireDefault(require("./Deprecated"));
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.VISIBLE_MAX = exports.Fab = exports.DeveloperType = void 0;
|
|
7
|
+
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
8
|
+
var _Add = _interopRequireDefault(require("@mui/icons-material/Add"));
|
|
9
|
+
var _Avatar = _interopRequireDefault(require("@mui/material/Avatar"));
|
|
10
|
+
var _Box = _interopRequireDefault(require("@mui/material/Box"));
|
|
11
|
+
var _Fab = _interopRequireDefault(require("@mui/material/Fab"));
|
|
12
|
+
var _Tooltip = _interopRequireDefault(require("@mui/material/Tooltip"));
|
|
13
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
14
|
+
var _Title = _interopRequireDefault(require("./Title"));
|
|
15
|
+
var _getUniqueDeveloperValues = _interopRequireDefault(require("./get-unique-developer-values"));
|
|
16
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
+
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)."; }
|
|
20
|
+
let DeveloperType = /*#__PURE__*/function (DeveloperType) {
|
|
21
|
+
DeveloperType["CONTRIBUTORS"] = "contributors";
|
|
22
|
+
DeveloperType["MAINTAINERS"] = "maintainers";
|
|
23
|
+
return DeveloperType;
|
|
24
|
+
}({});
|
|
25
|
+
exports.DeveloperType = DeveloperType;
|
|
26
|
+
const Fab = /*#__PURE__*/(0, _base.default)(_Fab.default, process.env.NODE_ENV === "production" ? {
|
|
27
|
+
target: "eoc81fk1"
|
|
28
|
+
} : {
|
|
29
|
+
target: "eoc81fk1",
|
|
30
|
+
label: "Fab"
|
|
31
|
+
})(props => {
|
|
32
|
+
var _props$theme, _props$theme2;
|
|
33
|
+
return {
|
|
34
|
+
backgroundColor: (_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.palette.primary.main,
|
|
35
|
+
color: (_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.palette.white
|
|
36
|
+
};
|
|
37
|
+
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0RldmVsb3BlcnMvRGV2ZWxvcGVycy50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBaUJtQiIsImZpbGUiOiIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9EZXZlbG9wZXJzL0RldmVsb3BlcnMudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IEFkZCBmcm9tICdAbXVpL2ljb25zLW1hdGVyaWFsL0FkZCc7XG5pbXBvcnQgQXZhdGFyIGZyb20gJ0BtdWkvbWF0ZXJpYWwvQXZhdGFyJztcbmltcG9ydCBCb3ggZnJvbSAnQG11aS9tYXRlcmlhbC9Cb3gnO1xuaW1wb3J0IEZhYk1VSSBmcm9tICdAbXVpL21hdGVyaWFsL0ZhYic7XG5pbXBvcnQgVG9vbHRpcCBmcm9tICdAbXVpL21hdGVyaWFsL1Rvb2x0aXAnO1xuaW1wb3J0IFJlYWN0LCB7IHVzZUNhbGxiYWNrLCB1c2VFZmZlY3QsIHVzZU1lbW8sIHVzZVN0YXRlIH0gZnJvbSAncmVhY3QnO1xuXG5pbXBvcnQgeyBUaGVtZSB9IGZyb20gJy4uLy4uL1RoZW1lJztcbmltcG9ydCBUaXRsZSBmcm9tICcuL1RpdGxlJztcbmltcG9ydCBnZXRVbmlxdWVEZXZlbG9wZXJWYWx1ZXMgZnJvbSAnLi9nZXQtdW5pcXVlLWRldmVsb3Blci12YWx1ZXMnO1xuXG5leHBvcnQgZW51bSBEZXZlbG9wZXJUeXBlIHtcbiAgQ09OVFJJQlVUT1JTID0gJ2NvbnRyaWJ1dG9yc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ICAgICB7dmlzaWJsZURldmVsb3BlcnNNYXggPCBkZXZlbG9wZXJzLmxlbmd0aCAmJiAoXG4gICAgICAgICAgPEZhYiBvbkNsaWNrPXtoYW5kbGVTZXRWaXNpYmxlRGV2ZWxvcGVyc01heH0gc2l6ZT1cInNtYWxsXCI+XG4gICAgICAgICAgICA8QWRkIC8+XG4gICAgICAgICAgPC9GYWI+XG4gICAgICAgICl9XG4gICAgICA8L1N0eWxlZEJveD5cbiAgICA8Lz5cbiAgKTtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IERldmVsb3BlcnM7XG4iXX0= */");
|
|
38
|
+
exports.Fab = Fab;
|
|
39
|
+
const StyledBox = /*#__PURE__*/(0, _base.default)(_Box.default, process.env.NODE_ENV === "production" ? {
|
|
40
|
+
target: "eoc81fk0"
|
|
41
|
+
} : {
|
|
42
|
+
target: "eoc81fk0",
|
|
43
|
+
label: "StyledBox"
|
|
44
|
+
})(process.env.NODE_ENV === "production" ? {
|
|
45
|
+
name: "183y8xt",
|
|
46
|
+
styles: "> *{margin:5px;}"
|
|
47
|
+
} : {
|
|
48
|
+
name: "183y8xt",
|
|
49
|
+
styles: "> *{margin:5px;}",
|
|
50
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0RldmVsb3BlcnMvRGV2ZWxvcGVycy50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBNEJrQiIsImZpbGUiOiIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9EZXZlbG9wZXJzL0RldmVsb3BlcnMudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IEFkZCBmcm9tICdAbXVpL2ljb25zLW1hdGVyaWFsL0FkZCc7XG5pbXBvcnQgQXZhdGFyIGZyb20gJ0BtdW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cbiAgICByZXR1cm4gbnVsbDtcbiAgfVxuXG4gIHJldHVybiAoXG4gICAgPD5cbiAgICAgIDxUaXRsZSB0eXBlPXt0eXBlfSAvPlxuICAgICAgPFN0eWxlZEJveCBkaXNwbGF5PVwiZmxleFwiIGZsZXhXcmFwPVwid3JhcFwiIG1hcmdpbj1cIjEwcHggMCAxMHB4IDBcIj5cbiAgICAgICAge3Zpc2libGVEZXZlbG9wZXJzLm1hcCgodmlzaWJsZURldmVsb3BlcikgPT4ge1xuICAgICAgICAgIHJldHVybiAoXG4gICAgICAgICAgICA8VG9vbHRpcCBrZXk9e3Zpc2libGVEZXZlbG9wZXIuZW1haWx9IHRpdGxlPXt2aXNpYmxlRGV2ZWxvcGVyLm5hbWV9PlxuICAgICAgICAgICAgICA8QXZhdGFyIGFsdD17dmlzaWJsZURldmVsb3Blci5uYW1lfSBzcmM9e3Zpc2libGVEZXZlbG9wZXIuYXZhdGFyfSAvPlxuICAgICAgICAgICAgPC9Ub29sdGlwPlxuICAgICAgICAgICk7XG4gICAgICAgIH0pfVxuICAgICAgICB7dmlzaWJsZURldmVsb3BlcnNNYXggPCBkZXZlbG9wZXJzLmxlbmd0aCAmJiAoXG4gICAgICAgICAgPEZhYiBvbkNsaWNrPXtoYW5kbGVTZXRWaXNpYmxlRGV2ZWxvcGVyc01heH0gc2l6ZT1cInNtYWxsXCI+XG4gICAgICAgICAgICA8QWRkIC8+XG4gICAgICAgICAgPC9GYWI+XG4gICAgICAgICl9XG4gICAgICA8L1N0eWxlZEJveD5cbiAgICA8Lz5cbiAgKTtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IERldmVsb3BlcnM7XG4iXX0= */",
|
|
51
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
52
|
+
});
|
|
53
|
+
const VISIBLE_MAX = 6;
|
|
54
|
+
exports.VISIBLE_MAX = VISIBLE_MAX;
|
|
55
|
+
const Developers = ({
|
|
56
|
+
type,
|
|
57
|
+
visibleMax = VISIBLE_MAX,
|
|
58
|
+
packageMeta
|
|
59
|
+
}) => {
|
|
60
|
+
const developers = (0, _react.useMemo)(() => (0, _getUniqueDeveloperValues.default)(packageMeta === null || packageMeta === void 0 ? void 0 : packageMeta.latest[type]), [packageMeta, type]);
|
|
61
|
+
const [visibleDevelopersMax, setVisibleDevelopersMax] = (0, _react.useState)(visibleMax);
|
|
62
|
+
const [visibleDevelopers, setVisibleDevelopers] = (0, _react.useState)(developers);
|
|
63
|
+
(0, _react.useEffect)(() => {
|
|
64
|
+
if (!developers.length) {
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
setVisibleDevelopers(developers.slice(0, visibleDevelopersMax));
|
|
68
|
+
}, [developers, visibleDevelopersMax]);
|
|
69
|
+
const handleSetVisibleDevelopersMax = (0, _react.useCallback)(() => {
|
|
70
|
+
setVisibleDevelopersMax(visibleDevelopersMax + VISIBLE_MAX);
|
|
71
|
+
}, [visibleDevelopersMax]);
|
|
72
|
+
if (!visibleDevelopers || !developers.length) {
|
|
73
|
+
return null;
|
|
74
|
+
}
|
|
75
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_Title.default, {
|
|
76
|
+
type: type
|
|
77
|
+
}), /*#__PURE__*/_react.default.createElement(StyledBox, {
|
|
78
|
+
display: "flex",
|
|
79
|
+
flexWrap: "wrap",
|
|
80
|
+
margin: "10px 0 10px 0"
|
|
81
|
+
}, visibleDevelopers.map(visibleDeveloper => {
|
|
82
|
+
return /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
|
|
83
|
+
key: visibleDeveloper.email,
|
|
84
|
+
title: visibleDeveloper.name
|
|
85
|
+
}, /*#__PURE__*/_react.default.createElement(_Avatar.default, {
|
|
86
|
+
alt: visibleDeveloper.name,
|
|
87
|
+
src: visibleDeveloper.avatar
|
|
88
|
+
}));
|
|
89
|
+
}), visibleDevelopersMax < developers.length && /*#__PURE__*/_react.default.createElement(Fab, {
|
|
90
|
+
onClick: handleSetVisibleDevelopersMax,
|
|
91
|
+
size: "small"
|
|
92
|
+
}, /*#__PURE__*/_react.default.createElement(_Add.default, null))));
|
|
93
|
+
};
|
|
94
|
+
var _default = Developers;
|
|
95
|
+
exports.default = _default;
|
|
96
|
+
//# sourceMappingURL=Developers.js.map
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.DeveloperType = void 0;
|
|
7
|
+
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
8
|
+
var _Typography = _interopRequireDefault(require("@mui/material/Typography"));
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _reactI18next = require("react-i18next");
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
+
let DeveloperType = /*#__PURE__*/function (DeveloperType) {
|
|
13
|
+
DeveloperType["CONTRIBUTORS"] = "contributors";
|
|
14
|
+
DeveloperType["MAINTAINERS"] = "maintainers";
|
|
15
|
+
return DeveloperType;
|
|
16
|
+
}({});
|
|
17
|
+
exports.DeveloperType = DeveloperType;
|
|
18
|
+
const Title = ({
|
|
19
|
+
type
|
|
20
|
+
}) => {
|
|
21
|
+
const {
|
|
22
|
+
t
|
|
23
|
+
} = (0, _reactI18next.useTranslation)();
|
|
24
|
+
switch (type) {
|
|
25
|
+
case DeveloperType.CONTRIBUTORS:
|
|
26
|
+
return /*#__PURE__*/_react.default.createElement(StyledText, {
|
|
27
|
+
variant: 'subtitle1'
|
|
28
|
+
}, t('sidebar.contributors.title'));
|
|
29
|
+
case DeveloperType.MAINTAINERS:
|
|
30
|
+
return /*#__PURE__*/_react.default.createElement(StyledText, {
|
|
31
|
+
variant: 'subtitle1'
|
|
32
|
+
}, t('sidebar.maintainers.title'));
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
var _default = Title;
|
|
36
|
+
exports.default = _default;
|
|
37
|
+
const StyledText = /*#__PURE__*/(0, _base.default)(_Typography.default, process.env.NODE_ENV === "production" ? {
|
|
38
|
+
target: "e1ssrjap0"
|
|
39
|
+
} : {
|
|
40
|
+
target: "e1ssrjap0",
|
|
41
|
+
label: "StyledText"
|
|
42
|
+
})(({
|
|
43
|
+
theme
|
|
44
|
+
}) => ({
|
|
45
|
+
fontWeight: theme === null || theme === void 0 ? void 0 : theme.fontWeight.bold,
|
|
46
|
+
marginBottom: '10px'
|
|
47
|
+
}), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0RldmVsb3BlcnMvVGl0bGUudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTRCbUIiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL2NvbXBvbmVudHMvRGV2ZWxvcGVycy9UaXRsZS50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgVHlwb2dyYXBoeSBmcm9tICdAbXVpL21hdGVyaWFsL1R5cG9ncmFwaHknO1xuaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IHVzZVRyYW5zbGF0aW9uIH0gZnJvbSAncmVhY3QtaTE4bmV4dCc7XG5cbmltcG9ydCB7IFRoZW1lIH0gZnJvbSAnLi4vLi4vVGhlbWUnO1xuXG5leHBvcnQgZW51bSBEZXZlbG9wZXJUeXBlIHtcbiAgQ09OVFJJQlVUT1JTID0gJ2NvbnRyaWJ1dG9ycycsXG4gIE1BSU5UQUlORVJTID0gJ21haW50YWluZXJzJyxcbn1cblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgdHlwZTogRGV2ZWxvcGVyVHlwZTtcbn1cblxuY29uc3QgVGl0bGU6IFJlYWN0LkZDPFByb3BzPiA9ICh7IHR5cGUgfSkgPT4ge1xuICBjb25zdCB7IHQgfSA9IHVzZVRyYW5zbGF0aW9uKCk7XG4gIHN3aXRjaCAodHlwZSkge1xuICAgIGNhc2UgRGV2ZWxvcGVyVHlwZS5DT05UUklCVVRPUlM6XG4gICAgICByZXR1cm4gPFN0eWxlZFRleHQgdmFyaWFudD17J3N1YnRpdGxlMSd9Pnt0KCdzaWRlYmFyLmNvbnRyaWJ1dG9ycy50aXRsZScpfTwvU3R5bGVkVGV4dD47XG4gICAgY2FzZSBEZXZlbG9wZXJUeXBlLk1BSU5UQUlORVJTOlxuICAgICAgcmV0dXJuIDxTdHlsZWRUZXh0IHZhcmlhbnQ9eydzdWJ0aXRsZTEnfT57dCgnc2lkZWJhci5tYWludGFpbmVycy50aXRsZScpfTwvU3R5bGVkVGV4dD47XG4gIH1cbn07XG5cbmV4cG9ydCBkZWZhdWx0IFRpdGxlO1xuXG5jb25zdCBTdHlsZWRUZXh0ID0gc3R5bGVkKFR5cG9ncmFwaHkpPHsgdGhlbWU/OiBUaGVtZSB9PigoeyB0aGVtZSB9KSA9PiAoe1xuICBmb250V2VpZ2h0OiB0aGVtZT8uZm9udFdlaWdodC5ib2xkLFxuICBtYXJnaW5Cb3R0b206ICcxMHB4Jyxcbn0pKTtcbiJdfQ== */");
|
|
48
|
+
//# sourceMappingURL=Title.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
function getUniqueDeveloperValues(developers) {
|
|
8
|
+
if (!developers) {
|
|
9
|
+
return [];
|
|
10
|
+
}
|
|
11
|
+
return developers.reduce((accumulator, current) => accumulator.some(developer => developer.email === current.email) ? accumulator : [...accumulator, current], []);
|
|
12
|
+
}
|
|
13
|
+
var _default = getUniqueDeveloperValues;
|
|
14
|
+
exports.default = _default;
|
|
15
|
+
//# sourceMappingURL=get-unique-developer-values.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "DeveloperType", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _Developers.DeveloperType;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "default", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _Developers.default;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
var _Developers = _interopRequireWildcard(require("./Developers"));
|
|
19
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
20
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.StyledText = exports.Fab = exports.Details = exports.Content = void 0;
|
|
7
|
+
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
8
|
+
var _Fab = _interopRequireDefault(require("@mui/material/Fab"));
|
|
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 Details = /*#__PURE__*/(0, _base.default)('span', process.env.NODE_ENV === "production" ? {
|
|
13
|
+
target: "e1u5w7z83"
|
|
14
|
+
} : {
|
|
15
|
+
target: "e1u5w7z83",
|
|
16
|
+
label: "Details"
|
|
17
|
+
})(process.env.NODE_ENV === "production" ? {
|
|
18
|
+
name: "zigog8",
|
|
19
|
+
styles: "display:flex;flex-direction:column;align-items:center"
|
|
20
|
+
} : {
|
|
21
|
+
name: "zigog8",
|
|
22
|
+
styles: "display:flex;flex-direction:column;align-items:center",
|
|
23
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0RldmVsb3BlcnMvc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQU11QiIsImZpbGUiOiIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9EZXZlbG9wZXJzL3N0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCBGYWJNVUkgZnJvbSAnQG11aS9tYXRlcmlhbC9GYWInO1xuaW1wb3J0IFR5cG9ncmFwaHkgZnJvbSAnQG11aS9tYXRlcmlhbC9UeXBvZ3JhcGh5JztcblxuaW1wb3J0IHsgVGhlbWUgfSBmcm9tICcuLi8uLi9UaGVtZSc7XG5cbmV4cG9ydCBjb25zdCBEZXRhaWxzID0gc3R5bGVkKCdzcGFuJykoe1xuICBkaXNwbGF5OiAnZmxleCcsXG4gIGZsZXhEaXJlY3Rpb246ICdjb2x1bW4nLFxuICBhbGlnbkl0ZW1zOiAnY2VudGVyJyxcbn0pO1xuXG5leHBvcnQgY29uc3QgQ29udGVudCA9IHN0eWxlZCgnZGl2Jykoe1xuICBtYXJnaW46ICcxMHB4IDAgMTBweCAwJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICBmbGV4V3JhcDogJ3dyYXAnLFxuICAnPiAqJzoge1xuICAgIG1hcmdpbjogJzVweCcsXG4gIH0sXG59KTtcblxuZXhwb3J0IGNvbnN0IFN0eWxlZFRleHQgPSBzdHlsZWQoVHlwb2dyYXBoeSk8eyB0aGVtZT86IFRoZW1lIH0+KChwcm9wcykgPT4gKHtcbiAgZm9udFdlaWdodDogcHJvcHMudGhlbWU/LmZvbnRXZWlnaHQuYm9sZCxcbiAgbWFyZ2luQm90dG9tOiAnMTBweCcsXG4gIHRleHRUcmFuc2Zvcm06ICdjYXBpdGFsaXplJyxcbn0pKTtcblxuZXhwb3J0IGNvbnN0IEZhYiA9IHN0eWxlZChGYWJNVUkpPHsgdGhlbWU/OiBUaGVtZSB9PigocHJvcHMpID0+ICh7XG4gIGJhY2tncm91bmRDb2xvcjogcHJvcHMudGhlbWU/LnBhbGV0dGUucHJpbWFyeS5tYWluLFxuICBjb2xvcjogcHJvcHMudGhlbWU/LnBhbGV0dGUud2hpdGUsXG59KSk7XG4iXX0= */",
|
|
24
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
25
|
+
});
|
|
26
|
+
exports.Details = Details;
|
|
27
|
+
const Content = /*#__PURE__*/(0, _base.default)('div', process.env.NODE_ENV === "production" ? {
|
|
28
|
+
target: "e1u5w7z82"
|
|
29
|
+
} : {
|
|
30
|
+
target: "e1u5w7z82",
|
|
31
|
+
label: "Content"
|
|
32
|
+
})(process.env.NODE_ENV === "production" ? {
|
|
33
|
+
name: "mkcn9c",
|
|
34
|
+
styles: "margin:10px 0 10px 0;display:flex;flex-wrap:wrap;> *{margin:5px;}"
|
|
35
|
+
} : {
|
|
36
|
+
name: "mkcn9c",
|
|
37
|
+
styles: "margin:10px 0 10px 0;display:flex;flex-wrap:wrap;> *{margin:5px;}",
|
|
38
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0RldmVsb3BlcnMvc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVl1QiIsImZpbGUiOiIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9EZXZlbG9wZXJzL3N0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCBGYWJNVUkgZnJvbSAnQG11aS9tYXRlcmlhbC9GYWInO1xuaW1wb3J0IFR5cG9ncmFwaHkgZnJvbSAnQG11aS9tYXRlcmlhbC9UeXBvZ3JhcGh5JztcblxuaW1wb3J0IHsgVGhlbWUgfSBmcm9tICcuLi8uLi9UaGVtZSc7XG5cbmV4cG9ydCBjb25zdCBEZXRhaWxzID0gc3R5bGVkKCdzcGFuJykoe1xuICBkaXNwbGF5OiAnZmxleCcsXG4gIGZsZXhEaXJlY3Rpb246ICdjb2x1bW4nLFxuICBhbGlnbkl0ZW1zOiAnY2VudGVyJyxcbn0pO1xuXG5leHBvcnQgY29uc3QgQ29udGVudCA9IHN0eWxlZCgnZGl2Jykoe1xuICBtYXJnaW46ICcxMHB4IDAgMTBweCAwJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICBmbGV4V3JhcDogJ3dyYXAnLFxuICAnPiAqJzoge1xuICAgIG1hcmdpbjogJzVweCcsXG4gIH0sXG59KTtcblxuZXhwb3J0IGNvbnN0IFN0eWxlZFRleHQgPSBzdHlsZWQoVHlwb2dyYXBoeSk8eyB0aGVtZT86IFRoZW1lIH0+KChwcm9wcykgPT4gKHtcbiAgZm9udFdlaWdodDogcHJvcHMudGhlbWU/LmZvbnRXZWlnaHQuYm9sZCxcbiAgbWFyZ2luQm90dG9tOiAnMTBweCcsXG4gIHRleHRUcmFuc2Zvcm06ICdjYXBpdGFsaXplJyxcbn0pKTtcblxuZXhwb3J0IGNvbnN0IEZhYiA9IHN0eWxlZChGYWJNVUkpPHsgdGhlbWU/OiBUaGVtZSB9PigocHJvcHMpID0+ICh7XG4gIGJhY2tncm91bmRDb2xvcjogcHJvcHMudGhlbWU/LnBhbGV0dGUucHJpbWFyeS5tYWluLFxuICBjb2xvcjogcHJvcHMudGhlbWU/LnBhbGV0dGUud2hpdGUsXG59KSk7XG4iXX0= */",
|
|
39
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
40
|
+
});
|
|
41
|
+
exports.Content = Content;
|
|
42
|
+
const StyledText = /*#__PURE__*/(0, _base.default)(_Typography.default, process.env.NODE_ENV === "production" ? {
|
|
43
|
+
target: "e1u5w7z81"
|
|
44
|
+
} : {
|
|
45
|
+
target: "e1u5w7z81",
|
|
46
|
+
label: "StyledText"
|
|
47
|
+
})(props => {
|
|
48
|
+
var _props$theme;
|
|
49
|
+
return {
|
|
50
|
+
fontWeight: (_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.fontWeight.bold,
|
|
51
|
+
marginBottom: '10px',
|
|
52
|
+
textTransform: 'capitalize'
|
|
53
|
+
};
|
|
54
|
+
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIj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G59KSk7XG5cbmV4cG9ydCBjb25zdCBGYWIgPSBzdHlsZWQoRmFiTVVJKTx7IHRoZW1lPzogVGhlbWUgfT4oKHByb3BzKSA9PiAoe1xuICBiYWNrZ3JvdW5kQ29sb3I6IHByb3BzLnRoZW1lPy5wYWxldHRlLnByaW1hcnkubWFpbixcbiAgY29sb3I6IHByb3BzLnRoZW1lPy5wYWxldHRlLndoaXRlLFxufSkpO1xuIl19 */");
|
|
55
|
+
exports.StyledText = StyledText;
|
|
56
|
+
const Fab = /*#__PURE__*/(0, _base.default)(_Fab.default, process.env.NODE_ENV === "production" ? {
|
|
57
|
+
target: "e1u5w7z80"
|
|
58
|
+
} : {
|
|
59
|
+
target: "e1u5w7z80",
|
|
60
|
+
label: "Fab"
|
|
61
|
+
})(props => {
|
|
62
|
+
var _props$theme2, _props$theme3;
|
|
63
|
+
return {
|
|
64
|
+
backgroundColor: (_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.palette.primary.main,
|
|
65
|
+
color: (_props$theme3 = props.theme) === null || _props$theme3 === void 0 ? void 0 : _props$theme3.palette.white
|
|
66
|
+
};
|
|
67
|
+
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0RldmVsb3BlcnMvc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTJCbUIiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL2NvbXBvbmVudHMvRGV2ZWxvcGVycy9zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgRmFiTVVJIGZyb20gJ0BtdWkvbWF0ZXJpYWwvRmFiJztcbmltcG9ydCBUeXBvZ3JhcGh5IGZyb20gJ0BtdWkvbWF0ZXJpYWwvVHlwb2dyYXBoeSc7XG5cbmltcG9ydCB7IFRoZW1lIH0gZnJvbSAnLi4vLi4vVGhlbWUnO1xuXG5leHBvcnQgY29uc3QgRGV0YWlscyA9IHN0eWxlZCgnc3BhbicpKHtcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICBmbGV4RGlyZWN0aW9uOiAnY29sdW1uJyxcbiAgYWxpZ25JdGVtczogJ2NlbnRlcicsXG59KTtcblxuZXhwb3J0IGNvbnN0IENvbnRlbnQgPSBzdHlsZWQoJ2RpdicpKHtcbiAgbWFyZ2luOiAnMTBweCAwIDEwcHggMCcsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgZmxleFdyYXA6ICd3cmFwJyxcbiAgJz4gKic6IHtcbiAgICBtYXJnaW46ICc1cHgnLFxuICB9LFxufSk7XG5cbmV4cG9ydCBjb25zdCBTdHlsZWRUZXh0ID0gc3R5bGVkKFR5cG9ncmFwaHkpPHsgdGhlbWU/OiBUaGVtZSB9PigocHJvcHMpID0+ICh7XG4gIGZvbnRXZWlnaHQ6IHByb3BzLnRoZW1lPy5mb250V2VpZ2h0LmJvbGQsXG4gIG1hcmdpbkJvdHRvbTogJzEwcHgnLFxuICB0ZXh0VHJhbnNmb3JtOiAnY2FwaXRhbGl6ZScsXG59KSk7XG5cbmV4cG9ydCBjb25zdCBGYWIgPSBzdHlsZWQoRmFiTVVJKTx7IHRoZW1lPzogVGhlbWUgfT4oKHByb3BzKSA9PiAoe1xuICBiYWNrZ3JvdW5kQ29sb3I6IHByb3BzLnRoZW1lPy5wYWxldHRlLnByaW1hcnkubWFpbixcbiAgY29sb3I6IHByb3BzLnRoZW1lPy5wYWxldHRlLndoaXRlLFxufSkpO1xuIl19 */");
|
|
68
|
+
exports.Fab = Fab;
|
|
69
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _List = _interopRequireDefault(require("@mui/material/List"));
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _reactI18next = require("react-i18next");
|
|
10
|
+
var _styles = require("./styles");
|
|
11
|
+
var _utils = require("./utils");
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
const DistChip = ({
|
|
14
|
+
name,
|
|
15
|
+
children
|
|
16
|
+
}) => children ? /*#__PURE__*/_react.default.createElement(_styles.DistChips, {
|
|
17
|
+
label: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("b", null, name), ': ', children)
|
|
18
|
+
}) : null;
|
|
19
|
+
const Dist = ({
|
|
20
|
+
packageMeta
|
|
21
|
+
}) => {
|
|
22
|
+
const {
|
|
23
|
+
t
|
|
24
|
+
} = (0, _reactI18next.useTranslation)();
|
|
25
|
+
if (!(packageMeta !== null && packageMeta !== void 0 && packageMeta.latest)) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
const {
|
|
29
|
+
dist,
|
|
30
|
+
license
|
|
31
|
+
} = packageMeta.latest;
|
|
32
|
+
if (!dist && !license) {
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
return /*#__PURE__*/_react.default.createElement(_List.default, {
|
|
36
|
+
subheader: /*#__PURE__*/_react.default.createElement(_styles.StyledText, {
|
|
37
|
+
variant: "subtitle1"
|
|
38
|
+
}, t('sidebar.distribution.title'))
|
|
39
|
+
}, /*#__PURE__*/_react.default.createElement(_styles.DistListItem, null, (dist === null || dist === void 0 ? void 0 : dist.fileCount) && /*#__PURE__*/_react.default.createElement(DistChip, {
|
|
40
|
+
name: t('sidebar.distribution.file-count')
|
|
41
|
+
}, `${dist.fileCount}`), dist !== null && dist !== void 0 && dist.unpackedSize ? /*#__PURE__*/_react.default.createElement(DistChip, {
|
|
42
|
+
name: t('sidebar.distribution.size')
|
|
43
|
+
}, (0, _utils.fileSizeSI)(dist.unpackedSize)) : null, /*#__PURE__*/_react.default.createElement(DistChip, {
|
|
44
|
+
name: t('sidebar.distribution.license')
|
|
45
|
+
}, (0, _utils.formatLicense)(license))));
|
|
46
|
+
};
|
|
47
|
+
var _default = Dist;
|
|
48
|
+
exports.default = _default;
|
|
49
|
+
//# sourceMappingURL=Dist.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 _Dist.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _Dist = _interopRequireDefault(require("./Dist"));
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.StyledText = exports.DownloadButton = exports.DistListItem = exports.DistChips = void 0;
|
|
7
|
+
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
8
|
+
var _Chip = _interopRequireDefault(require("@mui/material/Chip"));
|
|
9
|
+
var _Fab = _interopRequireDefault(require("@mui/material/Fab"));
|
|
10
|
+
var _ListItem = _interopRequireDefault(require("@mui/material/ListItem"));
|
|
11
|
+
var _Typography = _interopRequireDefault(require("@mui/material/Typography"));
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
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)."; }
|
|
14
|
+
const StyledText = /*#__PURE__*/(0, _base.default)(_Typography.default, process.env.NODE_ENV === "production" ? {
|
|
15
|
+
target: "e1mn5d923"
|
|
16
|
+
} : {
|
|
17
|
+
target: "e1mn5d923",
|
|
18
|
+
label: "StyledText"
|
|
19
|
+
})(props => {
|
|
20
|
+
var _props$theme;
|
|
21
|
+
return {
|
|
22
|
+
fontWeight: (_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.fontWeight.bold,
|
|
23
|
+
textTransform: 'capitalize'
|
|
24
|
+
};
|
|
25
|
+
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0Rpc3RyaWJ1dGlvbi9zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBUTBCIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0Rpc3RyaWJ1dGlvbi9zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgQ2hpcCBmcm9tICdAbXVpL21hdGVyaWFsL0NoaXAnO1xuaW1wb3J0IEZhYk1VSSBmcm9tICdAbXVpL21hdGVyaWFsL0ZhYic7XG5pbXBvcnQgTGlzdEl0ZW0gZnJvbSAnQG11aS9tYXRlcmlhbC9MaXN0SXRlbSc7XG5pbXBvcnQgVHlwb2dyYXBoeSBmcm9tICdAbXVpL21hdGVyaWFsL1R5cG9ncmFwaHknO1xuXG5pbXBvcnQgeyBUaGVtZSB9IGZyb20gJy4uLy4uL1RoZW1lJztcblxuZXhwb3J0IGNvbnN0IFN0eWxlZFRleHQgPSBzdHlsZWQoVHlwb2dyYXBoeSk8eyB0aGVtZT86IFRoZW1lIH0+KChwcm9wcykgPT4gKHtcbiAgZm9udFdlaWdodDogcHJvcHMudGhlbWU/LmZvbnRXZWlnaHQuYm9sZCxcbiAgdGV4dFRyYW5zZm9ybTogJ2NhcGl0YWxpemUnLFxufSkpO1xuXG5leHBvcnQgY29uc3QgRGlzdExpc3RJdGVtID0gc3R5bGVkKExpc3RJdGVtKSh7XG4gIHBhZGRpbmdMZWZ0OiAwLFxuICBwYWRkaW5nUmlnaHQ6IDAsXG4gIGZsZXhXcmFwOiAnd3JhcCcsXG59KTtcblxuZXhwb3J0IGNvbnN0IERpc3RDaGlwcyA9IHN0eWxlZChDaGlwKSh7XG4gIG1hcmdpblJpZ2h0OiA1LFxuICB0ZXh0VHJhbnNmb3JtOiAnY2FwaXRhbGl6ZScsXG4gIG1hcmdpblRvcDogNSxcbn0pO1xuXG5leHBvcnQgY29uc3QgRG93bmxvYWRCdXR0b24gPSBzdHlsZWQoRmFiTVVJKTx7IHRoZW1lPzogVGhlbWUgfT4oKHByb3BzKSA9PiAoe1xuICBiYWNrZ3JvdW5kQ29sb3I6IHByb3BzLnRoZW1lPy5wYWxldHRlLnByaW1hcnkubWFpbixcbiAgY29sb3I6IHByb3BzLnRoZW1lPy5wYWxldHRlLndoaXRlLFxufSkpO1xuIl19 */");
|
|
26
|
+
exports.StyledText = StyledText;
|
|
27
|
+
const DistListItem = /*#__PURE__*/(0, _base.default)(_ListItem.default, process.env.NODE_ENV === "production" ? {
|
|
28
|
+
target: "e1mn5d922"
|
|
29
|
+
} : {
|
|
30
|
+
target: "e1mn5d922",
|
|
31
|
+
label: "DistListItem"
|
|
32
|
+
})(process.env.NODE_ENV === "production" ? {
|
|
33
|
+
name: "8a1gtu",
|
|
34
|
+
styles: "padding-left:0;padding-right:0;flex-wrap:wrap"
|
|
35
|
+
} : {
|
|
36
|
+
name: "8a1gtu",
|
|
37
|
+
styles: "padding-left:0;padding-right:0;flex-wrap:wrap",
|
|
38
|
+
map: "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Z2h0OiA1LFxuICB0ZXh0VHJhbnNmb3JtOiAnY2FwaXRhbGl6ZScsXG4gIG1hcmdpblRvcDogNSxcbn0pO1xuXG5leHBvcnQgY29uc3QgRG93bmxvYWRCdXR0b24gPSBzdHlsZWQoRmFiTVVJKTx7IHRoZW1lPzogVGhlbWUgfT4oKHByb3BzKSA9PiAoe1xuICBiYWNrZ3JvdW5kQ29sb3I6IHByb3BzLnRoZW1lPy5wYWxldHRlLnByaW1hcnkubWFpbixcbiAgY29sb3I6IHByb3BzLnRoZW1lPy5wYWxldHRlLndoaXRlLFxufSkpO1xuIl19 */",
|
|
39
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
40
|
+
});
|
|
41
|
+
exports.DistListItem = DistListItem;
|
|
42
|
+
const DistChips = /*#__PURE__*/(0, _base.default)(_Chip.default, process.env.NODE_ENV === "production" ? {
|
|
43
|
+
target: "e1mn5d921"
|
|
44
|
+
} : {
|
|
45
|
+
target: "e1mn5d921",
|
|
46
|
+
label: "DistChips"
|
|
47
|
+
})(process.env.NODE_ENV === "production" ? {
|
|
48
|
+
name: "186t8fy",
|
|
49
|
+
styles: "margin-right:5px;text-transform:capitalize;margin-top:5px"
|
|
50
|
+
} : {
|
|
51
|
+
name: "186t8fy",
|
|
52
|
+
styles: "margin-right:5px;text-transform:capitalize;margin-top:5px",
|
|
53
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0Rpc3RyaWJ1dGlvbi9zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBbUJ5QiIsImZpbGUiOiIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9EaXN0cmlidXRpb24vc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1w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JdfQ== */",
|
|
54
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
55
|
+
});
|
|
56
|
+
exports.DistChips = DistChips;
|
|
57
|
+
const DownloadButton = /*#__PURE__*/(0, _base.default)(_Fab.default, process.env.NODE_ENV === "production" ? {
|
|
58
|
+
target: "e1mn5d920"
|
|
59
|
+
} : {
|
|
60
|
+
target: "e1mn5d920",
|
|
61
|
+
label: "DownloadButton"
|
|
62
|
+
})(props => {
|
|
63
|
+
var _props$theme2, _props$theme3;
|
|
64
|
+
return {
|
|
65
|
+
backgroundColor: (_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.palette.primary.main,
|
|
66
|
+
color: (_props$theme3 = props.theme) === null || _props$theme3 === void 0 ? void 0 : _props$theme3.palette.white
|
|
67
|
+
};
|
|
68
|
+
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0Rpc3RyaWJ1dGlvbi9zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBeUI4QiIsImZpbGUiOiIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9EaXN0cmlidXRpb24vc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IENoaXAgZnJvbSAnQG11aS9tYXRlcmlhbC9DaGlwJztcbmltcG9ydCBGYWJNVUkgZnJvbSAnQG11aS9tYXRlcmlhbC9GYWInO1xuaW1wb3J0IExpc3RJdGVtIGZyb20gJ0BtdWkvbWF0ZXJpYWwvTGlzdEl0ZW0nO1xuaW1wb3J0IFR5cG9ncmFwaHkgZnJvbSAnQG11aS9tYXRlcmlhbC9UeXBvZ3JhcGh5JztcblxuaW1wb3J0IHsgVGhlbWUgfSBmcm9tICcuLi8uLi9UaGVtZSc7XG5cbmV4cG9ydCBjb25zdCBTdHlsZWRUZXh0ID0gc3R5bGVkKFR5cG9ncmFwaHkpPHsgdGhlbWU/OiBUaGVtZSB9PigocHJvcHMpID0+ICh7XG4gIGZvbnRXZWlnaHQ6IHByb3BzLnRoZW1lPy5mb250V2VpZ2h0LmJvbGQsXG4gIHRleHRUcmFuc2Zvcm06ICdjYXBpdGFsaXplJyxcbn0pKTtcblxuZXhwb3J0IGNvbnN0IERpc3RMaXN0SXRlbSA9IHN0eWxlZChMaXN0SXRlbSkoe1xuICBwYWRkaW5nTGVmdDogMCxcbiAgcGFkZGluZ1JpZ2h0OiAwLFxuICBmbGV4V3JhcDogJ3dyYXAnLFxufSk7XG5cbmV4cG9ydCBjb25zdCBEaXN0Q2hpcHMgPSBzdHlsZWQoQ2hpcCkoe1xuICBtYXJnaW5SaWdodDogNSxcbiAgdGV4dFRyYW5zZm9ybTogJ2NhcGl0YWxpemUnLFxuICBtYXJnaW5Ub3A6IDUsXG59KTtcblxuZXhwb3J0IGNvbnN0IERvd25sb2FkQnV0dG9uID0gc3R5bGVkKEZhYk1VSSk8eyB0aGVtZT86IFRoZW1lIH0+KChwcm9wcykgPT4gKHtcbiAgYmFja2dyb3VuZENvbG9yOiBwcm9wcy50aGVtZT8ucGFsZXR0ZS5wcmltYXJ5Lm1haW4sXG4gIGNvbG9yOiBwcm9wcy50aGVtZT8ucGFsZXR0ZS53aGl0ZSxcbn0pKTtcbiJdfQ== */");
|
|
69
|
+
exports.DownloadButton = DownloadButton;
|
|
70
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.fileSizeSI = fileSizeSI;
|
|
7
|
+
exports.formatLicense = formatLicense;
|
|
8
|
+
/**
|
|
9
|
+
* Formats license field for webui.
|
|
10
|
+
* @see https://docs.npmjs.com/files/package.json#license
|
|
11
|
+
*/
|
|
12
|
+
// License should use type License defined above, but conflicts with the unit test that provide array or empty object
|
|
13
|
+
function formatLicense(license) {
|
|
14
|
+
if (typeof license === 'string') {
|
|
15
|
+
return license;
|
|
16
|
+
}
|
|
17
|
+
if (license !== null && license !== void 0 && license.type) {
|
|
18
|
+
return license.type;
|
|
19
|
+
}
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
function fileSizeSI(a, b, c, d, e) {
|
|
23
|
+
return (b = Math, c = b.log, d = 1e3, e = c(a) / c(d) | 0, a / b.pow(d, e)).toFixed(2) + ' ' + (e ? 'kMGTPEZY'[--e] + 'B' : 'Bytes');
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _utils = require("./utils");
|
|
4
|
+
test('formatLicense as string', () => {
|
|
5
|
+
expect((0, _utils.formatLicense)('MIT')).toEqual('MIT');
|
|
6
|
+
});
|
|
7
|
+
test('formatLicense as format object', () => {
|
|
8
|
+
expect((0, _utils.formatLicense)({
|
|
9
|
+
type: 'MIT'
|
|
10
|
+
})).toEqual('MIT');
|
|
11
|
+
});
|
|
12
|
+
test('fileSizeSI as number 1000', () => {
|
|
13
|
+
expect((0, _utils.fileSizeSI)(1000)).toEqual('1.00 kB');
|
|
14
|
+
});
|
|
15
|
+
test('fileSizeSI as number 0', () => {
|
|
16
|
+
expect((0, _utils.fileSizeSI)(0)).toEqual('0.00 Bytes');
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=utilts.spec.js.map
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _Avatar = _interopRequireDefault(require("@mui/material/Avatar"));
|
|
8
|
+
var _Grid = _interopRequireDefault(require("@mui/material/Grid"));
|
|
9
|
+
var _List = _interopRequireDefault(require("@mui/material/List"));
|
|
10
|
+
var _ListItemText = _interopRequireDefault(require("@mui/material/ListItemText"));
|
|
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(_ListItemText.default, {
|
|
41
|
+
primary: engineText
|
|
42
|
+
}))));
|
|
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.node,
|
|
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.npm-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.npm-version')
|
|
82
|
+
}) : null);
|
|
83
|
+
};
|
|
84
|
+
var _default = Engine;
|
|
85
|
+
exports.default = _default;
|
|
86
|
+
//# 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
|