@verdaccio/ui-components 3.0.0-next.1 → 4.0.0-next-8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc +1 -1
- package/CHANGELOG.md +108 -0
- package/build/AppTest/AppRoute.js +34 -0
- package/build/AppTest/pages/Front/Home.js +9 -0
- package/build/AppTest/pages/Front/index.js +14 -0
- package/build/AppTest/pages/Version/Version.js +34 -0
- package/build/AppTest/pages/Version/index.js +14 -0
- package/build/Theme/ResetStyles.js +2 -3
- package/build/Theme/StyleBaseline.js +2 -3
- package/build/Theme/ThemeProvider.js +3 -3
- package/build/Theme/colors.js +1 -2
- package/build/Theme/index.js +3 -3
- package/build/Theme/theme.js +17 -7
- package/build/__mocks__/react-markdown.js +1 -1
- package/build/components/ActionBar/ActionBar.js +13 -8
- package/build/components/ActionBar/ActionBarAction.js +26 -19
- package/build/components/ActionBar/index.js +1 -1
- package/build/components/Author/Author.js +12 -34
- package/build/components/Author/index.js +1 -1
- package/build/components/Author/styles.js +10 -28
- package/build/components/CopyClipboard/CopyToClipBoard.js +13 -13
- package/build/components/CopyClipboard/index.js +1 -1
- package/build/components/CopyClipboard/utils.js +3 -12
- package/build/components/Dependencies/Dependencies.js +31 -58
- package/build/components/Dependencies/DependencyBlock.js +102 -0
- package/build/components/Dependencies/index.js +1 -1
- package/build/components/Dependencies/utits.js +10 -0
- package/build/components/Deprecated/Deprecated.js +13 -22
- package/build/components/Deprecated/index.js +1 -1
- package/build/components/Developers/DeveloperType.js +12 -0
- package/build/components/Developers/Developers.js +26 -32
- package/build/components/Developers/Title.js +7 -13
- package/build/components/Developers/get-unique-developer-values.js +1 -2
- package/build/components/Developers/index.js +4 -4
- package/build/components/Distribution/Dist.js +3 -4
- package/build/components/Distribution/index.js +1 -1
- package/build/components/Distribution/styles.js +14 -31
- package/build/components/Engines/Engines.js +17 -12
- package/build/components/Engines/index.js +1 -1
- package/build/components/Engines/styles.js +9 -11
- package/build/components/ErrorBoundary/ErrorBoundary.js +2 -2
- package/build/components/ErrorBoundary/index.js +1 -1
- package/build/components/Forbidden/Forbidden.js +75 -0
- package/build/components/Forbidden/index.js +14 -0
- package/build/components/FundButton/FundButton.js +11 -13
- package/build/components/FundButton/index.js +1 -1
- package/build/components/HeaderInfoDialog/HeaderInfoDialog.js +5 -5
- package/build/components/HeaderInfoDialog/index.js +1 -1
- package/build/components/Heading/Heading.js +5 -6
- package/build/components/Heading/index.js +1 -1
- package/build/components/Help/Help.js +4 -5
- package/build/components/Help/index.js +1 -1
- package/build/components/Help/styles.js +2 -3
- package/build/components/Icons/DevsIcons/CommonJS.js +2 -13
- package/build/components/Icons/DevsIcons/ES6Module.js +3 -14
- package/build/components/Icons/DevsIcons/Git.js +2 -13
- package/build/components/Icons/DevsIcons/NodeJS.js +2 -13
- package/build/components/Icons/DevsIcons/TypeScript.js +2 -13
- package/build/components/Icons/Earth.js +3 -4
- package/build/components/Icons/FileBinary.js +14 -9
- package/build/components/Icons/Law.js +15 -10
- package/build/components/Icons/License.js +3 -4
- package/build/components/Icons/License.js.map +1 -1
- package/build/components/Icons/Managers/Npm.js +2 -13
- package/build/components/Icons/Managers/Pnpm.js +2 -13
- package/build/components/Icons/Managers/Yarn.js +2 -13
- package/build/components/Icons/SvgIcon.js +3 -4
- package/build/components/Icons/Time.js +3 -4
- package/build/components/Icons/Version.js +3 -4
- package/build/components/Install/Install.js +36 -29
- package/build/components/Install/InstallListItem.js +35 -48
- package/build/components/Install/index.js +1 -1
- package/build/components/Keywords/KeywordListItems.js +34 -0
- package/build/components/Keywords/Keywords.js +39 -0
- package/build/components/Keywords/index.js +14 -0
- package/build/components/Label/Label.js +3 -4
- package/build/components/Label/index.js +1 -1
- package/build/components/Link/Link.js +5 -19
- package/build/components/Link/index.js +2 -2
- package/build/components/LinkExternal/LinkExternal.js +32 -0
- package/build/components/LinkExternal/index.js +14 -0
- package/build/components/Loading/Loading.js +2 -3
- package/build/components/Loading/Spinner/Spinner.js +2 -3
- package/build/components/Loading/Spinner/index.js +1 -1
- package/build/components/Loading/index.js +1 -1
- package/build/components/Loading/styles.js +6 -7
- package/build/components/LoginDialog/LoginDialog.js +16 -6
- package/build/components/LoginDialog/LoginDialogCloseButton.js +5 -5
- package/build/components/LoginDialog/LoginDialogForm.js +7 -20
- package/build/components/LoginDialog/LoginDialogFormError.js +7 -7
- package/build/components/LoginDialog/LoginDialogHeader.js +2 -3
- package/build/components/LoginDialog/index.js +1 -1
- package/build/components/Logo/Logo.js +15 -9
- package/build/components/Logo/index.js +1 -1
- package/build/components/MenuItem/MenuItem.js +5 -6
- package/build/components/MenuItem/index.js +1 -1
- package/build/components/NoItems/NoItems.js +2 -3
- package/build/components/NoItems/index.js +1 -1
- package/build/components/NotFound/NotFound.js +20 -19
- package/build/components/NotFound/index.js +1 -1
- package/build/components/Package/Package.js +56 -40
- package/build/components/Package/index.js +2 -2
- package/build/components/Package/styles.js +59 -84
- package/build/components/PackageList/PackageList.js +2 -3
- package/build/components/PackageList/index.js +1 -1
- package/build/components/Person/Person.js +48 -0
- package/build/components/Person/PersonTooltip.js +22 -0
- package/build/components/Person/index.js +14 -0
- package/build/components/Person/utils.js +17 -0
- package/build/components/RawViewer/RawViewer.js +13 -9
- package/build/components/RawViewer/index.js +1 -1
- package/build/components/Readme/Readme.js +41 -21
- package/build/components/Readme/Readme.js.map +1 -1
- package/build/components/Readme/Readme.spec.js +20 -1
- package/build/components/Readme/Readme.spec.js.map +1 -1
- package/build/components/Readme/github-markdown.css +1198 -0
- package/build/components/Readme/index.js +1 -1
- package/build/components/Readme/utils.js +14 -17
- package/build/components/RegistryInfoDialog/RegistryInfoDialog.js +2 -3
- package/build/components/RegistryInfoDialog/index.js +1 -1
- package/build/components/RegistryInfoDialog/styles.js +13 -17
- package/build/components/Repository/Repository.js +23 -36
- package/build/components/Repository/index.js +1 -1
- package/build/components/Search/AutoComplete/AutoComplete.js +4 -5
- package/build/components/Search/AutoComplete/index.js +1 -1
- package/build/components/Search/AutoComplete/styles.js +6 -45
- package/build/components/Search/Search.js +11 -10
- package/build/components/Search/SearchItem.js +56 -45
- package/build/components/Search/index.js +1 -1
- package/build/components/Search/styles.js +3 -5
- package/build/components/Search/utils.js +23 -0
- package/build/components/SettingsMenu/SettingsMenu.js +49 -11
- package/build/components/SettingsMenu/index.js +1 -1
- package/build/components/SideBarTitle/SideBarTitle.js +104 -0
- package/build/components/SideBarTitle/index.js +14 -0
- package/build/components/{SideBarTittle → SideBarTitle}/utils.js +2 -3
- package/build/components/TextField/TextField.js +5 -6
- package/build/components/TextField/index.js +1 -1
- package/build/components/UpLinks/UpLinks.js +37 -9
- package/build/components/UpLinks/UplinkLink.js +22 -0
- package/build/components/UpLinks/index.js +1 -1
- package/build/components/UpLinks/styles.js +9 -11
- package/build/components/Versions/HistoryList.js +52 -18
- package/build/components/Versions/TagList.js +10 -7
- package/build/components/Versions/Versions.js +82 -15
- package/build/components/Versions/__partials__/data.json +1 -0
- package/build/components/Versions/__partials__/deprecated-versions.json +175 -0
- package/build/components/Versions/index.js +1 -1
- package/build/components/Versions/styles.js +3 -5
- package/build/hooks/index.js +1 -1
- package/build/hooks/useLocalStorage.js +1 -2
- package/build/hooks/useOnClickOutside.js +1 -2
- package/build/index.js +40 -8
- package/build/layouts/Version/Version.js +2 -3
- package/build/layouts/Version/index.js +1 -1
- package/build/providers/AppConfigurationProvider/AppConfigurationProvider.js +6 -5
- package/build/providers/AppConfigurationProvider/index.js +2 -2
- package/build/providers/PersistenceSettingProvider/PersistenceSettingProvider.js +7 -6
- package/build/providers/PersistenceSettingProvider/index.js +2 -2
- package/build/providers/TranslatorProvider/TranslatorProvider.js +4 -5
- package/build/providers/TranslatorProvider/TranslatorProvider.spec.js +3 -3
- package/build/providers/TranslatorProvider/index.js +2 -2
- package/build/providers/VersionProvider/VersionProvider.js +5 -7
- package/build/providers/VersionProvider/index.js +2 -2
- package/build/sections/Detail/ContainerContent.js +5 -7
- package/build/sections/Detail/Detail.js +13 -11
- package/build/sections/Detail/ReadmeSection.js +2 -3
- package/build/sections/Detail/Tabs.js +6 -8
- package/build/sections/Detail/index.js +1 -1
- package/build/sections/Footer/Footer.js +39 -11
- package/build/sections/Footer/index.js +1 -1
- package/build/sections/Footer/styles.js +19 -21
- package/build/sections/Header/Header.js +4 -5
- package/build/sections/Header/HeaderGreetings.js +2 -3
- package/build/sections/Header/HeaderLeft.js +16 -20
- package/build/sections/Header/HeaderMenu.js +3 -4
- package/build/sections/Header/HeaderRight.js +16 -8
- package/build/sections/Header/HeaderSettingsDialog.js +6 -10
- package/build/sections/Header/HeaderToolTip.js +2 -3
- package/build/sections/Header/HeaderToolTipIcon.js +4 -5
- package/build/sections/Header/LanguageSwitch.js +10 -13
- package/build/sections/Header/RegistryInfoContent/RegistryInfoContent.js +14 -24
- package/build/sections/Header/RegistryInfoContent/index.js +1 -1
- package/build/sections/Header/RegistryInfoContent/styles.js +3 -5
- package/build/sections/Header/index.js +1 -1
- package/build/sections/Header/styles.js +54 -106
- package/build/sections/Home/Home.js +4 -5
- package/build/sections/Home/index.js +1 -1
- package/build/sections/SideBar/Sidebar.js +23 -30
- package/build/sections/SideBar/index.js +1 -1
- package/build/sections/index.js +1 -1
- package/build/src/AppTest/App.stories.d.ts +8 -0
- package/build/src/AppTest/AppRoute.d.ts +3 -0
- package/build/src/AppTest/pages/Front/Home.d.ts +2 -0
- package/build/src/AppTest/pages/Front/index.d.ts +1 -0
- package/build/src/AppTest/pages/Version/Version.d.ts +3 -0
- package/build/src/AppTest/pages/Version/index.d.ts +1 -0
- package/build/src/Theme/ThemeProvider.test.d.ts +1 -0
- package/build/src/__mocks__/react-markdown.d.ts +2 -2
- package/build/src/components/Author/Author.d.ts +0 -5
- package/build/src/components/Author/styles.d.ts +0 -4
- package/build/src/components/CopyClipboard/CopyToClipBoard.d.ts +1 -1
- package/build/src/components/CopyClipboard/CopyToClipBoard.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/utits.d.ts +3 -0
- package/build/src/components/Deprecated/Deprecated.d.ts +0 -1
- package/build/src/components/Developers/DeveloperType.d.ts +4 -0
- package/build/src/components/Developers/Developers.d.ts +1 -4
- package/build/src/components/Developers/Title.d.ts +1 -4
- package/build/src/components/Developers/index.d.ts +2 -1
- package/build/src/components/Distribution/styles.d.ts +0 -1
- package/build/src/components/ErrorBoundary/ErrorBoundary.test.d.ts +1 -0
- package/build/src/components/Forbidden/Forbidden.d.ts +3 -0
- package/build/src/components/Forbidden/Forbidden.test.d.ts +1 -0
- package/build/src/components/Forbidden/index.d.ts +1 -0
- package/build/src/components/HeaderInfoDialog/HeaderInfoDialog.test.d.ts +1 -0
- package/build/src/components/Heading/Heading.d.ts +1 -1
- package/build/src/components/Heading/Heading.test.d.ts +1 -0
- package/build/src/components/Icons/DevsIcons/CommonJS.d.ts +2 -2
- package/build/src/components/Icons/DevsIcons/ES6Module.d.ts +2 -2
- package/build/src/components/Icons/DevsIcons/Git.d.ts +2 -2
- package/build/src/components/Icons/DevsIcons/NodeJS.d.ts +2 -2
- package/build/src/components/Icons/DevsIcons/TypeScript.d.ts +2 -2
- package/build/src/components/Icons/Earth.d.ts +2 -2
- package/build/src/components/Icons/FileBinary.d.ts +2 -2
- package/build/src/components/Icons/Icons.test.d.ts +1 -0
- package/build/src/components/Icons/Law.d.ts +2 -2
- package/build/src/components/Icons/License.d.ts +2 -2
- package/build/src/components/Icons/Managers/Npm.d.ts +2 -2
- package/build/src/components/Icons/Managers/Pnpm.d.ts +2 -2
- package/build/src/components/Icons/Managers/Yarn.d.ts +2 -2
- package/build/src/components/Icons/SvgIcon.d.ts +1 -1
- package/build/src/components/Icons/Time.d.ts +2 -2
- package/build/src/components/Icons/Version.d.ts +2 -2
- package/build/src/components/Install/InstallListItem.d.ts +2 -0
- package/build/src/components/Keywords/KeywordListItems.d.ts +5 -0
- package/build/src/components/Keywords/Keywords.d.ts +6 -0
- package/build/src/components/Keywords/Keywords.stories.d.ts +5 -0
- package/build/src/components/Keywords/Keywords.test.d.ts +1 -0
- package/build/src/components/Keywords/index.d.ts +1 -0
- package/build/src/components/Link/Link.d.ts +1 -4
- package/build/src/components/Link/Link.test.d.ts +1 -0
- package/build/src/components/Link/index.d.ts +1 -1
- package/build/src/components/LinkExternal/LinkExternal.d.ts +3 -0
- package/build/src/components/LinkExternal/LinkExternal.test.d.ts +1 -0
- package/build/src/components/LinkExternal/index.d.ts +1 -0
- package/build/src/components/Loading/styles.d.ts +2 -2
- package/build/src/components/LoginDialog/LoginDialog.stories.d.ts +2 -2
- package/build/src/components/LoginDialog/LoginDialogForm.d.ts +1 -1
- package/build/src/components/LoginDialog/LoginDialogFormError.d.ts +1 -1
- package/build/src/components/Logo/Logo.d.ts +1 -0
- package/build/src/components/Logo/Logo.stories.d.ts +5 -0
- package/build/src/components/MenuItem/MenuItem.d.ts +1 -1
- package/build/src/components/Package/Package.d.ts +1 -1
- package/build/src/components/Package/styles.d.ts +7 -15
- package/build/src/components/Person/Person.d.ts +9 -0
- package/build/src/components/Person/Person.test.d.ts +1 -0
- package/build/src/components/Person/PersonTooltip.d.ts +6 -0
- package/build/src/components/Person/index.d.ts +1 -0
- package/build/src/components/Person/utils.d.ts +3 -0
- package/build/src/components/Readme/Readme.d.ts +1 -2
- package/build/src/components/RegistryInfoDialog/styles.d.ts +1 -1
- package/build/src/components/Search/AutoComplete/styles.d.ts +1 -9
- package/build/src/components/Search/Search.stories.d.ts +2 -2
- package/build/src/components/Search/SearchItem.d.ts +1 -1
- package/build/src/components/Search/styles.d.ts +1 -1
- package/build/src/components/Search/utils.d.ts +1 -0
- package/build/src/components/SettingsMenu/SettingsMenu.d.ts +2 -2
- package/build/src/components/SettingsMenu/SettingsMenu.test.d.ts +1 -0
- package/build/src/components/SideBarTitle/index.d.ts +1 -0
- package/build/src/components/TextField/TextField.d.ts +1 -1
- package/build/src/components/UpLinks/UplinkLink.d.ts +6 -0
- package/build/src/components/UpLinks/styles.d.ts +2 -2
- package/build/src/components/Versions/HistoryList.d.ts +1 -0
- package/build/src/components/Versions/Versions.d.ts +1 -0
- package/build/src/components/Versions/styles.d.ts +2 -2
- package/build/src/index.d.ts +6 -2
- package/build/src/sections/Detail/Detail.stories.d.ts +1 -0
- package/build/src/sections/Detail/Tabs.d.ts +1 -0
- package/build/src/sections/Footer/Footer.d.ts +2 -2
- package/build/src/sections/Footer/styles.d.ts +5 -5
- package/build/src/sections/Header/LanguageSwitch.d.ts +2 -2
- package/build/src/sections/Header/RegistryInfoContent/RegistryInfoContent.d.ts +3 -3
- package/build/src/sections/Header/RegistryInfoContent/styles.d.ts +2 -2
- package/build/src/sections/Header/styles.d.ts +4 -11
- package/build/src/sections/Home/Home.test.d.ts +1 -0
- package/build/src/store/models/manifest.d.ts +11 -0
- package/build/src/store/models/routes.d.ts +8 -0
- package/build/src/store/models/utils.d.ts +1 -0
- package/build/src/types/packageMeta.d.ts +8 -5
- package/build/src/utils/__partials__/packageMeta.d.ts +0 -1
- package/build/src/utils/loadable.d.ts +2 -2
- package/build/src/utils/routes.d.ts +1 -0
- package/build/src/utils/utils.d.ts +1 -0
- package/build/store/api.js +14 -9
- package/build/store/index.js +1 -1
- package/build/store/models/configuration.js +4 -4
- package/build/store/models/download.js +2 -4
- package/build/store/models/index.js +1 -2
- package/build/store/models/login.js +7 -7
- package/build/store/models/manifest.js +27 -8
- package/build/store/models/packages.js +6 -5
- package/build/store/models/routes.js +18 -0
- package/build/store/models/search.js +7 -6
- package/build/store/models/utils.js +10 -0
- package/build/store/storage.js +2 -3
- package/build/store/store.js +2 -3
- package/build/test/i18n-config.js +2 -3
- package/build/test/test-react-testing-library.js +1 -1
- package/build/utils/__partials__/packageMeta.js +1 -3
- package/build/utils/index.js +3 -3
- package/build/utils/loadable.js +2 -2
- package/build/utils/routes.js +2 -2
- package/build/utils/token.js +1 -1
- package/build/utils/url.js +1 -1
- package/build/utils/utils.js +22 -4
- package/package.json +34 -31
- package/src/AppTest/App.stories.tsx +32 -0
- package/src/AppTest/AppRoute.test.tsx +65 -0
- package/src/AppTest/AppRoute.tsx +42 -0
- package/src/AppTest/pages/Front/Home.ts +3 -0
- package/src/AppTest/pages/Front/index.ts +1 -0
- package/src/AppTest/pages/Version/Version.tsx +28 -0
- package/src/AppTest/pages/Version/index.ts +1 -0
- package/src/Theme/ThemeProvider.test.tsx +27 -0
- package/src/Theme/theme.ts +12 -5
- package/src/components/ActionBar/ActionBar.stories.tsx +1 -1
- package/src/components/ActionBar/ActionBar.test.tsx +44 -16
- package/src/components/ActionBar/ActionBar.tsx +17 -13
- package/src/components/ActionBar/ActionBarAction.tsx +22 -14
- package/src/components/Author/Author.test.tsx +7 -1
- package/src/components/Author/Author.tsx +4 -33
- package/src/components/Author/styles.ts +0 -6
- package/src/components/CopyClipboard/CopyToClipBoard.test.tsx +23 -0
- package/src/components/CopyClipboard/CopyToClipBoard.tsx +4 -3
- package/src/components/CopyClipboard/utils.ts +2 -13
- package/src/components/Dependencies/Dependencies.stories.tsx +11 -11
- package/src/components/Dependencies/Dependencies.test.tsx +1 -11
- package/src/components/Dependencies/Dependencies.tsx +30 -69
- package/src/components/Dependencies/DependencyBlock.test.tsx +46 -0
- package/src/components/Dependencies/DependencyBlock.tsx +83 -0
- package/src/components/Dependencies/utits.ts +3 -0
- package/src/components/Deprecated/Deprecated.tsx +6 -19
- package/src/components/Developers/DeveloperType.tsx +4 -0
- package/src/components/Developers/Developers.test.tsx +37 -10
- package/src/components/Developers/Developers.tsx +13 -13
- package/src/components/Developers/Title.tsx +1 -5
- package/src/components/Developers/index.ts +2 -1
- package/src/components/Distribution/Dist.test.tsx +1 -1
- package/src/components/Distribution/Dist.tsx +2 -4
- package/src/components/Distribution/styles.ts +0 -6
- package/src/components/Engines/Engines.tsx +10 -6
- package/src/components/Engines/styles.ts +1 -1
- package/src/components/ErrorBoundary/ErrorBoundary.test.tsx +39 -0
- package/src/components/Forbidden/Forbidden.test.tsx +38 -0
- package/src/components/Forbidden/Forbidden.tsx +56 -0
- package/src/components/Forbidden/index.ts +1 -0
- package/src/components/FundButton/FundButton.tsx +5 -5
- package/src/components/HeaderInfoDialog/HeaderInfoDialog.test.tsx +51 -0
- package/src/components/HeaderInfoDialog/HeaderInfoDialog.tsx +2 -2
- package/src/components/Heading/Heading.test.tsx +20 -0
- package/src/components/Help/Help.test.tsx +10 -3
- package/src/components/Icons/DevsIcons/CommonJS.tsx +1 -7
- package/src/components/Icons/DevsIcons/ES6Module.tsx +2 -8
- package/src/components/Icons/DevsIcons/Git.tsx +1 -7
- package/src/components/Icons/DevsIcons/NodeJS.tsx +1 -7
- package/src/components/Icons/DevsIcons/TypeScript.tsx +1 -7
- package/src/components/Icons/FileBinary.tsx +2 -1
- package/src/components/Icons/Icons.stories.tsx +21 -5
- package/src/components/Icons/Icons.test.tsx +70 -0
- package/src/components/Icons/Law.tsx +2 -1
- package/src/components/Icons/Managers/Npm.tsx +1 -7
- package/src/components/Icons/Managers/Pnpm.tsx +1 -7
- package/src/components/Icons/Managers/Yarn.tsx +1 -7
- package/src/components/Install/Install.test.tsx +74 -41
- package/src/components/Install/Install.tsx +27 -15
- package/src/components/Install/InstallListItem.tsx +49 -31
- package/src/components/Keywords/KeywordListItems.tsx +22 -0
- package/src/components/Keywords/Keywords.stories.tsx +19 -0
- package/src/components/Keywords/Keywords.test.tsx +57 -0
- package/src/components/Keywords/Keywords.tsx +35 -0
- package/src/components/Keywords/index.ts +1 -0
- package/src/components/Link/Link.test.tsx +25 -0
- package/src/components/Link/Link.tsx +4 -18
- package/src/components/Link/index.ts +1 -1
- package/src/components/LinkExternal/LinkExternal.test.tsx +18 -0
- package/src/components/LinkExternal/LinkExternal.tsx +22 -0
- package/src/components/LinkExternal/index.ts +1 -0
- package/src/components/Loading/Loading.test.tsx +8 -4
- package/src/components/Loading/styles.ts +1 -0
- package/src/components/LoginDialog/LoginDialog.test.tsx +1 -1
- package/src/components/LoginDialog/LoginDialog.tsx +10 -1
- package/src/components/LoginDialog/LoginDialogCloseButton.tsx +1 -0
- package/src/components/LoginDialog/LoginDialogForm.tsx +0 -2
- package/src/components/LoginDialog/LoginDialogFormError.tsx +1 -1
- package/src/components/Logo/Logo.stories.tsx +16 -0
- package/src/components/Logo/Logo.test.tsx +8 -1
- package/src/components/Logo/Logo.tsx +19 -3
- package/src/components/NotFound/NotFound.tsx +6 -5
- package/src/components/NotFound/Notfound.test.tsx +6 -3
- package/src/components/Package/Package.test.tsx +47 -14
- package/src/components/Package/Package.tsx +51 -45
- package/src/components/Package/styles.ts +7 -17
- package/src/components/PackageList/Packagelist.test.tsx +1 -0
- package/src/components/Person/Person.test.tsx +50 -0
- package/src/components/Person/Person.tsx +45 -0
- package/src/components/Person/PersonTooltip.tsx +26 -0
- package/src/components/Person/index.ts +1 -0
- package/src/components/Person/utils.ts +20 -0
- package/src/components/RawViewer/RawViewer.tsx +9 -10
- package/src/components/Readme/Readme.spec.tsx +17 -0
- package/src/components/Readme/Readme.tsx +28 -12
- package/src/components/Readme/github-markdown.css +1198 -0
- package/src/components/Readme/utils.ts +15 -14
- package/src/components/RegistryInfoDialog/styles.ts +5 -4
- package/src/components/Repository/Repository.tsx +10 -17
- package/src/components/Search/AutoComplete/AutoComplete.tsx +1 -1
- package/src/components/Search/AutoComplete/styles.ts +7 -0
- package/src/components/Search/Search.test.tsx +38 -11
- package/src/components/Search/Search.tsx +4 -2
- package/src/components/Search/SearchItem.tsx +19 -8
- package/src/components/Search/utils.ts +17 -0
- package/src/components/SettingsMenu/SettingsMenu.test.tsx +41 -0
- package/src/components/SettingsMenu/SettingsMenu.tsx +64 -7
- package/src/components/{SideBarTittle/SideBarTittle.tsx → SideBarTitle/SideBarTitle.tsx} +20 -3
- package/src/components/SideBarTitle/index.ts +1 -0
- package/src/components/UpLinks/UpLinks.test.tsx +7 -0
- package/src/components/UpLinks/UpLinks.tsx +38 -15
- package/src/components/UpLinks/UplinkLink.tsx +20 -0
- package/src/components/UpLinks/styles.ts +1 -0
- package/src/components/Versions/HistoryList.tsx +39 -6
- package/src/components/Versions/TagList.tsx +4 -3
- package/src/components/Versions/Versions.test.tsx +40 -7
- package/src/components/Versions/Versions.tsx +88 -19
- package/src/components/Versions/__partials__/data.json +1 -0
- package/src/components/Versions/__partials__/deprecated-versions.json +175 -0
- package/src/index.ts +6 -2
- package/src/providers/AppConfigurationProvider/AppConfigurationProvider.tsx +2 -0
- package/src/providers/PersistenceSettingProvider/PersistenceSettingProvider.tsx +4 -0
- package/src/providers/VersionProvider/VersionProvider.test.tsx +3 -3
- package/src/sections/Detail/Detail.stories.tsx +10 -0
- package/src/sections/Detail/Detail.test.tsx +8 -1
- package/src/sections/Detail/Detail.tsx +11 -4
- package/src/sections/Detail/Tabs.tsx +6 -9
- package/src/sections/Footer/Footer.tsx +26 -12
- package/src/sections/Footer/styles.ts +4 -0
- package/src/sections/Header/Header.test.tsx +12 -10
- package/src/sections/Header/HeaderLeft.tsx +19 -11
- package/src/sections/Header/HeaderMenu.tsx +1 -1
- package/src/sections/Header/HeaderRight.tsx +14 -3
- package/src/sections/Header/HeaderSettingsDialog.tsx +2 -3
- package/src/sections/Header/LanguageSwitch.tsx +10 -7
- package/src/sections/Header/RegistryInfoContent/RegistryInfoContent.test.tsx +1 -1
- package/src/sections/Header/RegistryInfoContent/RegistryInfoContent.tsx +2 -7
- package/src/sections/Header/styles.ts +4 -16
- package/src/sections/Home/Home.test.tsx +37 -0
- package/src/sections/Home/Home.tsx +0 -1
- package/src/sections/SideBar/Sidebar.test.tsx +52 -84
- package/src/sections/SideBar/Sidebar.tsx +11 -26
- package/src/store/api.test.ts +19 -2
- package/src/store/api.ts +13 -6
- package/src/store/models/configuration.ts +2 -1
- package/src/store/models/download.ts +0 -1
- package/src/store/models/login.ts +10 -12
- package/src/store/models/manifest.ts +25 -6
- package/src/store/models/packages.ts +4 -5
- package/src/store/models/routes.ts +10 -0
- package/src/store/models/search.ts +4 -2
- package/src/store/models/utils.ts +3 -0
- package/src/types/packageMeta.ts +8 -5
- package/src/utils/__partials__/packageMeta.ts +0 -1
- package/src/utils/routes.ts +1 -0
- package/src/utils/utils.test.ts +34 -0
- package/src/utils/utils.ts +20 -5
- package/tsconfig.json +1 -1
- package/build/components/Dependencies/styles.js +0 -68
- package/build/components/Developers/styles.js +0 -69
- package/build/components/Distribution/utils.js +0 -25
- package/build/components/Distribution/utilts.spec.js +0 -18
- package/build/components/Package/Tag/Tag.js +0 -15
- package/build/components/Package/Tag/index.js +0 -14
- package/build/components/Package/Tag/styles.js +0 -25
- package/build/components/SideBarTittle/SideBarTittle.js +0 -94
- package/build/components/SideBarTittle/index.js +0 -14
- package/build/sections/Header/RegistryInfoDialog/RegistryInfoDialog.js +0 -37
- package/build/sections/Header/RegistryInfoDialog/index.js +0 -14
- package/build/sections/Header/RegistryInfoDialog/styles.js +0 -49
- package/build/sections/Header/RegistryInfoDialog/types.js +0 -6
- package/build/src/components/Dependencies/styles.d.ts +0 -8
- package/build/src/components/Developers/styles.d.ts +0 -11
- package/build/src/components/Distribution/utils.d.ts +0 -7
- package/build/src/components/Package/Tag/Tag.d.ts +0 -6
- package/build/src/components/Package/Tag/index.d.ts +0 -1
- package/build/src/components/Package/Tag/styles.d.ts +0 -5
- package/build/src/components/SideBarTittle/index.d.ts +0 -1
- package/build/src/sections/Header/RegistryInfoDialog/RegistryInfoDialog.d.ts +0 -4
- package/build/src/sections/Header/RegistryInfoDialog/index.d.ts +0 -1
- package/build/src/sections/Header/RegistryInfoDialog/styles.d.ts +0 -13
- package/build/src/sections/Header/RegistryInfoDialog/types.d.ts +0 -7
- package/src/components/Dependencies/styles.ts +0 -26
- package/src/components/Developers/styles.ts +0 -31
- package/src/components/Distribution/utils.ts +0 -32
- package/src/components/Distribution/utilts.spec.ts +0 -17
- package/src/components/Package/Tag/Tag.test.tsx +0 -15
- package/src/components/Package/Tag/Tag.tsx +0 -11
- package/src/components/Package/Tag/index.ts +0 -1
- package/src/components/Package/Tag/styles.ts +0 -11
- package/src/components/Search/AutoComplete/styles.tsx +0 -42
- package/src/components/SideBarTittle/index.ts +0 -1
- package/src/sections/Header/RegistryInfoDialog/RegistryInfoDialog.tsx +0 -31
- package/src/sections/Header/RegistryInfoDialog/index.ts +0 -1
- package/src/sections/Header/RegistryInfoDialog/styles.ts +0 -21
- package/src/sections/Header/RegistryInfoDialog/types.ts +0 -8
- /package/build/components/Icons/DevsIcons/{es6modules.svg → es6module.svg} +0 -0
- /package/build/src/{components/Package/Tag/Tag.test.d.ts → AppTest/AppRoute.test.d.ts} +0 -0
- /package/build/src/components/{SideBarTittle/SideBarTittle.d.ts → SideBarTitle/SideBarTitle.d.ts} +0 -0
- /package/build/src/components/{SideBarTittle/SideBarTittle.stories.d.ts → SideBarTitle/SideBarTitle.stories.d.ts} +0 -0
- /package/build/src/components/{SideBarTittle → SideBarTitle}/utils.d.ts +0 -0
- /package/src/components/Icons/DevsIcons/{es6modules.svg → es6module.svg} +0 -0
- /package/src/components/{SideBarTittle/SideBarTittle.stories.tsx → SideBarTitle/SideBarTitle.stories.tsx} +0 -0
- /package/src/components/{SideBarTittle → SideBarTitle}/utils.ts +0 -0
package/.eslintrc
CHANGED
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"react/jsx-curly-brace-presence": ["warn", { "props": "ignore", "children": "ignore" }],
|
|
61
61
|
"react/jsx-pascal-case": ["error"],
|
|
62
62
|
"react/jsx-props-no-multi-spaces": ["error"],
|
|
63
|
-
"react/
|
|
63
|
+
"react/sort-default-props": ["error"],
|
|
64
64
|
"react/jsx-sort-props": ["error"],
|
|
65
65
|
"react/no-string-refs": ["error"],
|
|
66
66
|
"react/no-danger-with-children": ["error"],
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,113 @@
|
|
|
1
1
|
# @verdaccio/ui-components
|
|
2
2
|
|
|
3
|
+
## 4.0.0-next-8.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- chore: move v7 next to v8 next
|
|
8
|
+
|
|
9
|
+
## 3.0.0
|
|
10
|
+
|
|
11
|
+
### Major Changes
|
|
12
|
+
|
|
13
|
+
- 47f61c6: feat!: bump to v7
|
|
14
|
+
- e7ebccb: update major dependencies, remove old nodejs support
|
|
15
|
+
|
|
16
|
+
### Minor Changes
|
|
17
|
+
|
|
18
|
+
- 10dd81f: feat: complete overhaul of web user interface
|
|
19
|
+
- 580319a: feat: ui improvements
|
|
20
|
+
|
|
21
|
+
Some UI improvements
|
|
22
|
+
|
|
23
|
+
- download progress indicator: https://github.com/verdaccio/verdaccio/discussions/4068
|
|
24
|
+
- fix dark mode and readme css support https://github.com/verdaccio/verdaccio/discussions/3942 https://github.com/verdaccio/verdaccio/discussions/3467
|
|
25
|
+
- fix global for yarn packages and add version to the packages on copy
|
|
26
|
+
- feat: hide deprecated versions option
|
|
27
|
+
- fix: improve deprecated package style
|
|
28
|
+
- feat: display deprecated versions
|
|
29
|
+
|
|
30
|
+
- c9962fe: feat: forbidden user interface
|
|
31
|
+
|
|
32
|
+
### Patch Changes
|
|
33
|
+
|
|
34
|
+
- 92f1c34: - fixed login state when token is expired (@ku3mi41 in #3980)
|
|
35
|
+
- 5a77414: chore: fix type for country flags
|
|
36
|
+
- 02ba426: fix: display labels for engine versions
|
|
37
|
+
- ba53d1e: feat: versions filter by semver range
|
|
38
|
+
- 3b3cf86: chore: sync dependency defs between ui-components and ui-theme
|
|
39
|
+
- 3323599: fix: render READMEs with correct font and highlighting
|
|
40
|
+
- 96b2857: chore(ui): update babel dependencies
|
|
41
|
+
- 5210408: fix: ui dialog break pages on open due remark error
|
|
42
|
+
- 117eb1c: fix: change bundleDependencies to array
|
|
43
|
+
|
|
44
|
+
## 3.0.0-next-7.9
|
|
45
|
+
|
|
46
|
+
### Patch Changes
|
|
47
|
+
|
|
48
|
+
- 5a77414: chore: fix type for country flags
|
|
49
|
+
- 3b3cf86: chore: sync dependency defs between ui-components and ui-theme
|
|
50
|
+
- 96b2857: chore(ui): update babel dependencies
|
|
51
|
+
|
|
52
|
+
## 3.0.0-next-7.8
|
|
53
|
+
|
|
54
|
+
### Minor Changes
|
|
55
|
+
|
|
56
|
+
- 10dd81f: feat: complete overhaul of web user interface
|
|
57
|
+
|
|
58
|
+
## 3.0.0-next-7.7
|
|
59
|
+
|
|
60
|
+
### Patch Changes
|
|
61
|
+
|
|
62
|
+
- 117eb1c: fix: change bundleDependencies to array
|
|
63
|
+
|
|
64
|
+
## 3.0.0-next-7.6
|
|
65
|
+
|
|
66
|
+
### Patch Changes
|
|
67
|
+
|
|
68
|
+
- ba53d1e: feat: versions filter by semver range
|
|
69
|
+
|
|
70
|
+
## 3.0.0-next-7.5
|
|
71
|
+
|
|
72
|
+
### Minor Changes
|
|
73
|
+
|
|
74
|
+
- c9962fe: feat: forbidden user interface
|
|
75
|
+
|
|
76
|
+
## 3.0.0-next-7.4
|
|
77
|
+
|
|
78
|
+
### Patch Changes
|
|
79
|
+
|
|
80
|
+
- 5210408: fix: ui dialog break pages on open due remark error
|
|
81
|
+
|
|
82
|
+
## 3.0.0-next-7.3
|
|
83
|
+
|
|
84
|
+
### Patch Changes
|
|
85
|
+
|
|
86
|
+
- 3323599: fix: render READMEs with correct font and highlighting
|
|
87
|
+
|
|
88
|
+
## 3.0.0-next.2
|
|
89
|
+
|
|
90
|
+
### Major Changes
|
|
91
|
+
|
|
92
|
+
- e7ebccb61: update major dependencies, remove old nodejs support
|
|
93
|
+
|
|
94
|
+
### Minor Changes
|
|
95
|
+
|
|
96
|
+
- 580319a53: feat: ui improvements
|
|
97
|
+
|
|
98
|
+
Some UI improvements
|
|
99
|
+
|
|
100
|
+
- download progress indicator: https://github.com/verdaccio/verdaccio/discussions/4068
|
|
101
|
+
- fix dark mode and readme css support https://github.com/verdaccio/verdaccio/discussions/3942 https://github.com/verdaccio/verdaccio/discussions/3467
|
|
102
|
+
- fix global for yarn packages and add version to the packages on copy
|
|
103
|
+
- feat: hide deprecated versions option
|
|
104
|
+
- fix: improve deprecated package style
|
|
105
|
+
- feat: display deprecated versions
|
|
106
|
+
|
|
107
|
+
### Patch Changes
|
|
108
|
+
|
|
109
|
+
- 02ba426ce: fix: display labels for engine versions
|
|
110
|
+
|
|
3
111
|
## 3.0.0-next.1
|
|
4
112
|
|
|
5
113
|
### Patch Changes
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactRouterDom = require("react-router-dom");
|
|
9
|
+
var _index = require("../index");
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
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); }
|
|
12
|
+
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 && {}.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; }
|
|
13
|
+
const VersionPage = (0, _index.loadable)(() => Promise.resolve().then(() => _interopRequireWildcard(require( /* webpackChunkName: "Version" */'./pages/Version'))));
|
|
14
|
+
const Front = (0, _index.loadable)(() => Promise.resolve().then(() => _interopRequireWildcard(require( /* webpackChunkName: "Home" */'./pages/Front'))));
|
|
15
|
+
const AppRoute = () => {
|
|
16
|
+
return /*#__PURE__*/_react.default.createElement(_reactRouterDom.Switch, null, /*#__PURE__*/_react.default.createElement(_reactRouterDom.Route, {
|
|
17
|
+
exact: true,
|
|
18
|
+
path: _index.Route.ROOT
|
|
19
|
+
}, /*#__PURE__*/_react.default.createElement(Front, null)), /*#__PURE__*/_react.default.createElement(_reactRouterDom.Route, {
|
|
20
|
+
exact: true,
|
|
21
|
+
path: _index.Route.PACKAGE
|
|
22
|
+
}, /*#__PURE__*/_react.default.createElement(_index.VersionProvider, null, /*#__PURE__*/_react.default.createElement(VersionPage, null))), /*#__PURE__*/_react.default.createElement(_reactRouterDom.Route, {
|
|
23
|
+
exact: true,
|
|
24
|
+
path: _index.Route.PACKAGE_VERSION
|
|
25
|
+
}, /*#__PURE__*/_react.default.createElement(_index.VersionProvider, null, /*#__PURE__*/_react.default.createElement(VersionPage, null))), /*#__PURE__*/_react.default.createElement(_reactRouterDom.Route, {
|
|
26
|
+
exact: true,
|
|
27
|
+
path: _index.Route.SCOPE_PACKAGE_VERSION
|
|
28
|
+
}, /*#__PURE__*/_react.default.createElement(_index.VersionProvider, null, /*#__PURE__*/_react.default.createElement(VersionPage, null))), /*#__PURE__*/_react.default.createElement(_reactRouterDom.Route, {
|
|
29
|
+
exact: true,
|
|
30
|
+
path: _index.Route.SCOPE_PACKAGE
|
|
31
|
+
}, /*#__PURE__*/_react.default.createElement(_index.VersionProvider, null, /*#__PURE__*/_react.default.createElement(VersionPage, null))), /*#__PURE__*/_react.default.createElement(_reactRouterDom.Route, null, /*#__PURE__*/_react.default.createElement(_index.NotFound, null)));
|
|
32
|
+
};
|
|
33
|
+
var _default = exports.default = AppRoute;
|
|
34
|
+
//# sourceMappingURL=AppRoute.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 _Home.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _Home = _interopRequireDefault(require("./Home"));
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactRedux = require("react-redux");
|
|
9
|
+
var _Forbidden = _interopRequireDefault(require("../../../components/Forbidden"));
|
|
10
|
+
var _index = require("../../../index");
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
+
const Version = () => {
|
|
13
|
+
const manifestStore = (0, _reactRedux.useSelector)(state => state.manifest);
|
|
14
|
+
const isLoading = (0, _reactRedux.useSelector)(state => {
|
|
15
|
+
var _state$loading;
|
|
16
|
+
return state === null || state === void 0 || (_state$loading = state.loading) === null || _state$loading === void 0 ? void 0 : _state$loading.models.manifest;
|
|
17
|
+
});
|
|
18
|
+
if (isLoading) {
|
|
19
|
+
return /*#__PURE__*/_react.default.createElement(_index.Loading, null);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// @ts-expect-error
|
|
23
|
+
if (manifestStore.forbidden) {
|
|
24
|
+
return /*#__PURE__*/_react.default.createElement(_Forbidden.default, null);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// @ts-expect-error
|
|
28
|
+
if (manifestStore.hasNotBeenFound) {
|
|
29
|
+
return /*#__PURE__*/_react.default.createElement(_index.NotFound, null);
|
|
30
|
+
}
|
|
31
|
+
return /*#__PURE__*/_react.default.createElement(_index.VersionLayout, null);
|
|
32
|
+
};
|
|
33
|
+
var _default = exports.default = Version;
|
|
34
|
+
//# sourceMappingURL=Version.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 _Version.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _Version = _interopRequireDefault(require("./Version"));
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styles = require("@mui/styles");
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
function _interopRequireDefault(
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
10
|
const resetStyles = (0, _styles.makeStyles)(({
|
|
11
11
|
theme
|
|
12
12
|
}) => ({
|
|
@@ -45,6 +45,5 @@ const ResetStyles = ({
|
|
|
45
45
|
resetStyles();
|
|
46
46
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, children);
|
|
47
47
|
};
|
|
48
|
-
var _default = ResetStyles;
|
|
49
|
-
exports.default = _default;
|
|
48
|
+
var _default = exports.default = ResetStyles;
|
|
50
49
|
//# sourceMappingURL=ResetStyles.js.map
|
|
@@ -8,8 +8,7 @@ var _CssBaseline = _interopRequireDefault(require("@mui/material/CssBaseline"));
|
|
|
8
8
|
require("normalize.css");
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
10
|
var _ResetStyles = _interopRequireDefault(require("./ResetStyles"));
|
|
11
|
-
function _interopRequireDefault(
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
12
|
const StyleBaseline = () => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_CssBaseline.default, null), /*#__PURE__*/_react.default.createElement(_ResetStyles.default, null));
|
|
13
|
-
var _default = StyleBaseline;
|
|
14
|
-
exports.default = _default;
|
|
13
|
+
var _default = exports.default = StyleBaseline;
|
|
15
14
|
//# sourceMappingURL=StyleBaseline.js.map
|
|
@@ -9,9 +9,9 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
9
9
|
var _useLocalStorage = _interopRequireDefault(require("../hooks/useLocalStorage"));
|
|
10
10
|
var _AppConfigurationProvider = require("../providers/AppConfigurationProvider");
|
|
11
11
|
var _theme = require("./theme");
|
|
12
|
-
function _interopRequireDefault(
|
|
13
|
-
function _getRequireWildcardCache(
|
|
14
|
-
function _interopRequireWildcard(
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
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); }
|
|
14
|
+
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 && {}.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; }
|
|
15
15
|
const ThemeContext = /*#__PURE__*/(0, _react.createContext)(undefined);
|
|
16
16
|
function getDarkModeDefault(darkModeConfig) {
|
|
17
17
|
var _window$matchMedia, _window;
|
package/build/Theme/colors.js
CHANGED
|
@@ -4,6 +4,5 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.PRIMARY_COLOR = void 0;
|
|
7
|
-
const PRIMARY_COLOR = '#4b5e40';
|
|
8
|
-
exports.PRIMARY_COLOR = PRIMARY_COLOR;
|
|
7
|
+
const PRIMARY_COLOR = exports.PRIMARY_COLOR = '#4b5e40';
|
|
9
8
|
//# sourceMappingURL=colors.js.map
|
package/build/Theme/index.js
CHANGED
|
@@ -39,7 +39,7 @@ exports.colors = _colors;
|
|
|
39
39
|
var _ThemeProvider = require("./ThemeProvider");
|
|
40
40
|
var _StyleBaseline = _interopRequireDefault(require("./StyleBaseline"));
|
|
41
41
|
var _theme = require("./theme");
|
|
42
|
-
function _interopRequireDefault(
|
|
43
|
-
function _getRequireWildcardCache(
|
|
44
|
-
function _interopRequireWildcard(
|
|
42
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
43
|
+
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); }
|
|
44
|
+
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 && {}.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; }
|
|
45
45
|
//# sourceMappingURL=index.js.map
|
package/build/Theme/theme.js
CHANGED
|
@@ -10,11 +10,11 @@ const colors = {
|
|
|
10
10
|
black: '#000',
|
|
11
11
|
white: '#fff',
|
|
12
12
|
red: '#d32f2f',
|
|
13
|
-
orange: '#
|
|
13
|
+
orange: '#cd4000',
|
|
14
14
|
greySuperLight: '#f5f5f5',
|
|
15
15
|
greyLight: '#d3d3d3',
|
|
16
16
|
greyLight2: '#908ba1',
|
|
17
|
-
greyLight3: '#
|
|
17
|
+
greyLight3: '#f3f4f2',
|
|
18
18
|
greyDark: '#a9a9a9',
|
|
19
19
|
greyDark2: '#586069',
|
|
20
20
|
greyChateau: '#95989a',
|
|
@@ -29,7 +29,7 @@ const colors = {
|
|
|
29
29
|
nobel02: '#9f9f9f',
|
|
30
30
|
primary: _colors.PRIMARY_COLOR,
|
|
31
31
|
secondary: '#20232a',
|
|
32
|
-
background: '#
|
|
32
|
+
background: '#f4f4f4',
|
|
33
33
|
dodgerBlue: '#1ba1f2',
|
|
34
34
|
cyanBlue: '#253341'
|
|
35
35
|
};
|
|
@@ -39,9 +39,9 @@ const themeModes = {
|
|
|
39
39
|
},
|
|
40
40
|
dark: {
|
|
41
41
|
...colors,
|
|
42
|
-
primary: '#
|
|
42
|
+
primary: '#ffffff',
|
|
43
43
|
secondary: '#424242',
|
|
44
|
-
background: '#
|
|
44
|
+
background: '#1a202c'
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
function applyPrimaryColor(mode, primaryColor) {
|
|
@@ -65,7 +65,7 @@ const fontWeight = {
|
|
|
65
65
|
semiBold: 500,
|
|
66
66
|
bold: 700
|
|
67
67
|
};
|
|
68
|
-
const breakPoints = {
|
|
68
|
+
const breakPoints = exports.breakPoints = {
|
|
69
69
|
xsmall: 400,
|
|
70
70
|
small: 576,
|
|
71
71
|
medium: 768,
|
|
@@ -73,7 +73,6 @@ const breakPoints = {
|
|
|
73
73
|
container: 1240,
|
|
74
74
|
xlarge: 1275
|
|
75
75
|
};
|
|
76
|
-
exports.breakPoints = breakPoints;
|
|
77
76
|
const customizedTheme = {
|
|
78
77
|
fontSize,
|
|
79
78
|
fontWeight,
|
|
@@ -101,6 +100,17 @@ const getTheme = (themeMode, primaryColor) => {
|
|
|
101
100
|
default: palette.background
|
|
102
101
|
}
|
|
103
102
|
},
|
|
103
|
+
// Looks better in darkmode without background opacity
|
|
104
|
+
// https://mui.com/material-ui/migration/v5-component-changes/#change-dark-mode-background-opacity
|
|
105
|
+
components: {
|
|
106
|
+
MuiPaper: {
|
|
107
|
+
styleOverrides: {
|
|
108
|
+
root: {
|
|
109
|
+
backgroundImage: 'unset'
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
},
|
|
104
114
|
...customizedTheme
|
|
105
115
|
});
|
|
106
116
|
};
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = _default;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
function _interopRequireDefault(
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
9
|
// eslint-disable
|
|
10
10
|
|
|
11
11
|
// @ts-ignore
|
|
@@ -5,14 +5,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _Box = _interopRequireDefault(require("@mui/material/Box"));
|
|
8
|
+
var _Stack = _interopRequireDefault(require("@mui/material/Stack"));
|
|
8
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
10
|
var _utils = require("../../utils");
|
|
10
11
|
var _RawViewer = _interopRequireDefault(require("../RawViewer"));
|
|
11
12
|
var _ActionBarAction = _interopRequireDefault(require("./ActionBarAction"));
|
|
12
|
-
function _getRequireWildcardCache(
|
|
13
|
-
function _interopRequireWildcard(
|
|
14
|
-
function _interopRequireDefault(
|
|
15
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
13
|
+
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); }
|
|
14
|
+
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 && {}.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; }
|
|
15
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); } /* eslint-disable verdaccio/jsx-spread */
|
|
16
17
|
const ActionBar = ({
|
|
17
18
|
showRaw,
|
|
18
19
|
showDownloadTarball = true,
|
|
@@ -55,7 +56,12 @@ const ActionBar = ({
|
|
|
55
56
|
return /*#__PURE__*/_react.default.createElement(_Box.default, {
|
|
56
57
|
alignItems: "center",
|
|
57
58
|
display: "flex",
|
|
58
|
-
|
|
59
|
+
sx: {
|
|
60
|
+
my: 2
|
|
61
|
+
}
|
|
62
|
+
}, /*#__PURE__*/_react.default.createElement(_Stack.default, {
|
|
63
|
+
direction: "row",
|
|
64
|
+
spacing: 1
|
|
59
65
|
}, actions.map(action => /*#__PURE__*/_react.default.createElement(_ActionBarAction.default, _extends({
|
|
60
66
|
key: action.type
|
|
61
67
|
}, action))), isRawViewerOpen && /*#__PURE__*/_react.default.createElement(_RawViewer.default, {
|
|
@@ -64,8 +70,7 @@ const ActionBar = ({
|
|
|
64
70
|
setIsRawViewerOpen(false);
|
|
65
71
|
},
|
|
66
72
|
packageMeta: packageMeta
|
|
67
|
-
}));
|
|
73
|
+
})));
|
|
68
74
|
};
|
|
69
|
-
var _default = ActionBar;
|
|
70
|
-
exports.default = _default;
|
|
75
|
+
var _default = exports.default = ActionBar;
|
|
71
76
|
//# sourceMappingURL=ActionBar.js.map
|
|
@@ -9,16 +9,17 @@ var _BugReport = _interopRequireDefault(require("@mui/icons-material/BugReport")
|
|
|
9
9
|
var _CloudDownload = _interopRequireDefault(require("@mui/icons-material/CloudDownload"));
|
|
10
10
|
var _Home = _interopRequireDefault(require("@mui/icons-material/Home"));
|
|
11
11
|
var _RawOn = _interopRequireDefault(require("@mui/icons-material/RawOn"));
|
|
12
|
+
var _CircularProgress = _interopRequireDefault(require("@mui/material/CircularProgress"));
|
|
12
13
|
var _Fab = _interopRequireDefault(require("@mui/material/Fab"));
|
|
13
14
|
var _Tooltip = _interopRequireDefault(require("@mui/material/Tooltip"));
|
|
14
15
|
var _react = _interopRequireWildcard(require("react"));
|
|
15
16
|
var _reactI18next = require("react-i18next");
|
|
16
17
|
var _reactRedux = require("react-redux");
|
|
17
|
-
var
|
|
18
|
-
function _getRequireWildcardCache(
|
|
19
|
-
function _interopRequireWildcard(
|
|
20
|
-
function _interopRequireDefault(
|
|
21
|
-
const Fab = /*#__PURE__*/(0, _base.default)(_Fab.default, process.env.NODE_ENV === "production" ? {
|
|
18
|
+
var _LinkExternal = _interopRequireDefault(require("../LinkExternal"));
|
|
19
|
+
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); }
|
|
20
|
+
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 && {}.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; }
|
|
21
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
22
|
+
const Fab = exports.Fab = /*#__PURE__*/(0, _base.default)(_Fab.default, process.env.NODE_ENV === "production" ? {
|
|
22
23
|
target: "e1yxykdq0"
|
|
23
24
|
} : {
|
|
24
25
|
target: "e1yxykdq0",
|
|
@@ -27,14 +28,11 @@ const Fab = /*#__PURE__*/(0, _base.default)(_Fab.default, process.env.NODE_ENV =
|
|
|
27
28
|
theme
|
|
28
29
|
}) => ({
|
|
29
30
|
backgroundColor: (theme === null || theme === void 0 ? void 0 : theme.palette.mode) === 'light' ? theme === null || theme === void 0 ? void 0 : theme.palette.primary.main : theme === null || theme === void 0 ? void 0 : theme.palette.cyanBlue,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
}), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0FjdGlvbkJhci9BY3Rpb25CYXJBY3Rpb24udHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWVtQiIsImZpbGUiOiIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9BY3Rpb25CYXIvQWN0aW9uQmFyQWN0aW9uLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCBCdWdSZXBvcnRJY29uIGZyb20gJ0BtdWkvaWNvbnMtbWF0ZXJpYWwvQnVnUmVwb3J0JztcbmltcG9ydCBEb3dubG9hZEljb24gZnJvbSAnQG11aS9pY29ucy1tYXRlcmlhbC9DbG91ZERvd25sb2FkJztcbmltcG9ydCBIb21lSWNvbiBmcm9tICdAbXVpL2ljb25zLW1hdGVyaWFsL0hvbWUnO1xuaW1wb3J0IFJhd09uSWNvbiBmcm9tICdAbXVpL2ljb25zLW1hdGVyaWFsL1Jhd09uJztcbmltcG9ydCBGYWJNVUkgZnJvbSAnQG11aS9tYXRlcmlhbC9GYW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J0IGRlZmF1bHQgQWN0aW9uQmFyQWN0aW9uO1xuIl19 */");
|
|
37
|
-
exports.Fab = Fab;
|
|
31
|
+
'&:hover': {
|
|
32
|
+
color: (theme === null || theme === void 0 ? void 0 : theme.palette.mode) === 'light' ? theme === null || theme === void 0 ? void 0 : theme.palette.primary.main : theme === null || theme === void 0 ? void 0 : theme.palette.cyanBlue
|
|
33
|
+
},
|
|
34
|
+
color: theme === null || theme === void 0 ? void 0 : theme.palette.white
|
|
35
|
+
}), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0FjdGlvbkJhci9BY3Rpb25CYXJBY3Rpb24udHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWdCbUIiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL2NvbXBvbmVudHMvQWN0aW9uQmFyL0FjdGlvbkJhckFjdGlvbi50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgQnVnUmVwb3J0SWNvbiBmcm9tICdAbXVpL2ljb25zLW1hdGVyaWFsL0J1Z1JlcG9ydCc7XG5pbXBvcnQgRG93bmxvYWRJY29uIGZyb20gJ0BtdWkvaWNvbnMtbWF0ZXJpYWwvQ2xvdWREb3dubG9hZCc7XG5pbXBvcnQgSG9tZUljb24gZnJvbSAnQG11aS9pY29ucy1tYXRlcmlhbC9Ib21lJztcbmltcG9ydCBSYXdPbkljb24gZnJvbSAnQG11aS9pY29ucy1tYXRlcmlhbC9SYXdPbic7XG5pbXBvcnQgQ2lyY3VsYXJQcm9ncmVzcyBmcm9tICdAbXVpL21hdGVyaWFsL0NpcmN1bGFyUHJvZ3Jlc3MnO1xuaW1wb3J0IEZhYk1VSSBmcm9tICdAbXVpL21hdGVyaWFsL0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ZH0gc2l6ZT1cInNtYWxsXCI+XG4gICAgICAgICAgICAgIDxEb3dubG9hZEljb24gLz5cbiAgICAgICAgICAgIDwvRmFiPlxuICAgICAgICAgICl9XG4gICAgICAgIDwvVG9vbHRpcD5cbiAgICAgICk7XG4gICAgY2FzZSAnUkFXX0RBVEEnOlxuICAgICAgcmV0dXJuIChcbiAgICAgICAgPFRvb2x0aXAgdGl0bGU9e3QoJ2FjdGlvbi1iYXItYWN0aW9uLnJhdycpIGFzIHN0cmluZ30+XG4gICAgICAgICAgPEZhYiBkYXRhLXRlc3RpZD1cInJhdy1idG5cIiBvbkNsaWNrPXthY3Rpb259IHNpemU9XCJzbWFsbFwiPlxuICAgICAgICAgICAgPFJhd09uSWNvbiAvPlxuICAgICAgICAgIDwvRmFiPlxuICAgICAgICA8L1Rvb2x0aXA+XG4gICAgICApO1xuICB9XG59O1xuXG5leHBvcnQgZGVmYXVsdCBBY3Rpb25CYXJBY3Rpb247XG4iXX0= */");
|
|
38
36
|
/* eslint-disable react/jsx-no-bind */
|
|
39
37
|
const ActionBarAction = ({
|
|
40
38
|
type,
|
|
@@ -45,6 +43,10 @@ const ActionBarAction = ({
|
|
|
45
43
|
t
|
|
46
44
|
} = (0, _reactI18next.useTranslation)();
|
|
47
45
|
const dispatch = (0, _reactRedux.useDispatch)();
|
|
46
|
+
const isLoading = (0, _reactRedux.useSelector)(state => {
|
|
47
|
+
var _state$loading;
|
|
48
|
+
return state === null || state === void 0 || (_state$loading = state.loading) === null || _state$loading === void 0 ? void 0 : _state$loading.models.download;
|
|
49
|
+
});
|
|
48
50
|
const handleDownload = (0, _react.useCallback)(async () => {
|
|
49
51
|
dispatch.download.getTarball({
|
|
50
52
|
link
|
|
@@ -54,8 +56,7 @@ const ActionBarAction = ({
|
|
|
54
56
|
case 'VISIT_HOMEPAGE':
|
|
55
57
|
return /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
|
|
56
58
|
title: t('action-bar-action.visit-home-page')
|
|
57
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
58
|
-
external: true,
|
|
59
|
+
}, /*#__PURE__*/_react.default.createElement(_LinkExternal.default, {
|
|
59
60
|
to: link,
|
|
60
61
|
variant: "button"
|
|
61
62
|
}, /*#__PURE__*/_react.default.createElement(Fab, {
|
|
@@ -64,8 +65,7 @@ const ActionBarAction = ({
|
|
|
64
65
|
case 'OPEN_AN_ISSUE':
|
|
65
66
|
return /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
|
|
66
67
|
title: t('action-bar-action.open-an-issue')
|
|
67
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
68
|
-
external: true,
|
|
68
|
+
}, /*#__PURE__*/_react.default.createElement(_LinkExternal.default, {
|
|
69
69
|
to: link,
|
|
70
70
|
variant: "button"
|
|
71
71
|
}, /*#__PURE__*/_react.default.createElement(Fab, {
|
|
@@ -74,10 +74,18 @@ const ActionBarAction = ({
|
|
|
74
74
|
case 'DOWNLOAD_TARBALL':
|
|
75
75
|
return /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
|
|
76
76
|
title: t('action-bar-action.download-tarball')
|
|
77
|
+
}, isLoading ? /*#__PURE__*/_react.default.createElement(_CircularProgress.default, {
|
|
78
|
+
sx: {
|
|
79
|
+
marginX: 0
|
|
80
|
+
}
|
|
77
81
|
}, /*#__PURE__*/_react.default.createElement(Fab, {
|
|
78
82
|
"data-testid": "download-tarball-btn",
|
|
79
83
|
onClick: handleDownload,
|
|
80
84
|
size: "small"
|
|
85
|
+
}, /*#__PURE__*/_react.default.createElement(_CloudDownload.default, null))) : /*#__PURE__*/_react.default.createElement(Fab, {
|
|
86
|
+
"data-testid": "download-tarball-btn",
|
|
87
|
+
onClick: handleDownload,
|
|
88
|
+
size: "small"
|
|
81
89
|
}, /*#__PURE__*/_react.default.createElement(_CloudDownload.default, null)));
|
|
82
90
|
case 'RAW_DATA':
|
|
83
91
|
return /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
|
|
@@ -89,6 +97,5 @@ const ActionBarAction = ({
|
|
|
89
97
|
}, /*#__PURE__*/_react.default.createElement(_RawOn.default, null)));
|
|
90
98
|
}
|
|
91
99
|
};
|
|
92
|
-
var _default = ActionBarAction;
|
|
93
|
-
exports.default = _default;
|
|
100
|
+
var _default = exports.default = ActionBarAction;
|
|
94
101
|
//# sourceMappingURL=ActionBarAction.js.map
|
|
@@ -10,5 +10,5 @@ Object.defineProperty(exports, "default", {
|
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
var _ActionBar = _interopRequireDefault(require("./ActionBar"));
|
|
13
|
-
function _interopRequireDefault(
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -4,29 +4,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
exports.getAuthorName = getAuthorName;
|
|
8
|
-
var _Avatar = _interopRequireDefault(require("@mui/material/Avatar"));
|
|
9
7
|
var _List = _interopRequireDefault(require("@mui/material/List"));
|
|
10
|
-
var _i18next = _interopRequireDefault(require("i18next"));
|
|
11
8
|
var _react = _interopRequireDefault(require("react"));
|
|
12
9
|
var _reactI18next = require("react-i18next");
|
|
13
|
-
var
|
|
10
|
+
var _Person = _interopRequireDefault(require("../Person"));
|
|
14
11
|
var _styles = require("./styles");
|
|
15
|
-
function _interopRequireDefault(
|
|
16
|
-
function getAuthorName(authorName) {
|
|
17
|
-
if (!authorName) {
|
|
18
|
-
return _i18next.default.t('author-unknown');
|
|
19
|
-
}
|
|
20
|
-
if (authorName.toLowerCase() === 'anonymous') {
|
|
21
|
-
return _i18next.default.t('author-anonymous');
|
|
22
|
-
}
|
|
23
|
-
return authorName;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @param param0
|
|
28
|
-
* @returns
|
|
29
|
-
*/
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
30
13
|
const Author = ({
|
|
31
14
|
packageMeta
|
|
32
15
|
}) => {
|
|
@@ -44,25 +27,20 @@ const Author = ({
|
|
|
44
27
|
if (!author) {
|
|
45
28
|
return null;
|
|
46
29
|
}
|
|
47
|
-
const {
|
|
48
|
-
email,
|
|
49
|
-
name
|
|
50
|
-
} = author;
|
|
51
|
-
const avatarComponent = /*#__PURE__*/_react.default.createElement(_Avatar.default, {
|
|
52
|
-
alt: author.name,
|
|
53
|
-
src: author.avatar
|
|
54
|
-
});
|
|
55
30
|
return /*#__PURE__*/_react.default.createElement(_List.default, {
|
|
56
31
|
subheader: /*#__PURE__*/_react.default.createElement(_styles.StyledText, {
|
|
57
32
|
variant: 'subtitle1'
|
|
58
33
|
}, t('sidebar.author.title'))
|
|
59
|
-
}, /*#__PURE__*/_react.default.createElement(_styles.AuthorListItem,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
34
|
+
}, /*#__PURE__*/_react.default.createElement(_styles.AuthorListItem, {
|
|
35
|
+
sx: {
|
|
36
|
+
my: 1
|
|
37
|
+
}
|
|
38
|
+
}, /*#__PURE__*/_react.default.createElement(_Person.default, {
|
|
39
|
+
packageName: packageName,
|
|
40
|
+
person: author,
|
|
41
|
+
version: version,
|
|
42
|
+
withText: true
|
|
64
43
|
})));
|
|
65
44
|
};
|
|
66
|
-
var _default = Author;
|
|
67
|
-
exports.default = _default;
|
|
45
|
+
var _default = exports.default = Author;
|
|
68
46
|
//# sourceMappingURL=Author.js.map
|