@verdaccio/ui-components 3.0.0-next.2 → 4.0.0-next-8.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/.eslintrc +1 -1
- package/CHANGELOG.md +91 -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 +31 -0
- package/build/AppTest/pages/Version/index.js +14 -0
- package/build/Theme/ResetStyles.js +5 -6
- package/build/Theme/StyleBaseline.js +2 -3
- package/build/Theme/ThemeProvider.js +4 -5
- 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 +11 -10
- package/build/components/ActionBar/ActionBarAction.js +15 -19
- package/build/components/ActionBar/index.js +1 -1
- package/build/components/Author/Author.js +15 -45
- package/build/components/Author/index.js +1 -1
- package/build/components/Author/styles.js +6 -11
- package/build/components/CopyClipboard/CopyToClipBoard.js +4 -5
- 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 +2 -3
- package/build/components/Deprecated/index.js +1 -1
- package/build/components/Developers/DeveloperType.js +12 -0
- package/build/components/Developers/Developers.js +30 -39
- package/build/components/Developers/Title.js +8 -14
- 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 +6 -7
- package/build/components/Distribution/index.js +1 -1
- package/build/components/Distribution/styles.js +17 -37
- package/build/components/Engines/Engines.js +10 -6
- package/build/components/Engines/index.js +1 -1
- package/build/components/Engines/styles.js +12 -17
- 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 -14
- 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 +32 -32
- package/build/components/Install/InstallListItem.js +21 -23
- package/build/components/Install/index.js +1 -1
- package/build/components/Keywords/KeywordListItems.js +34 -0
- package/build/components/Keywords/Keywords.js +38 -0
- package/build/components/Keywords/index.js +14 -0
- package/build/components/Label/Label.js +7 -11
- 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 +3 -4
- package/build/components/Loading/Spinner/index.js +1 -1
- package/build/components/Loading/index.js +1 -1
- package/build/components/Loading/styles.js +7 -8
- package/build/components/LoginDialog/LoginDialog.js +16 -6
- package/build/components/LoginDialog/LoginDialogCloseButton.js +5 -5
- package/build/components/LoginDialog/LoginDialogForm.js +9 -23
- package/build/components/LoginDialog/LoginDialogFormError.js +10 -10
- package/build/components/LoginDialog/LoginDialogHeader.js +8 -9
- package/build/components/LoginDialog/index.js +1 -1
- package/build/components/Logo/Logo.js +17 -11
- 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 +21 -20
- package/build/components/NotFound/index.js +1 -1
- package/build/components/Package/Package.js +50 -45
- package/build/components/Package/index.js +2 -2
- package/build/components/Package/styles.js +67 -95
- 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 -8
- package/build/components/RawViewer/index.js +1 -1
- package/build/components/Readme/Readme.js +46 -11
- 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-dark.css → github-markdown.css} +266 -83
- 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 +15 -19
- package/build/components/Repository/Repository.js +24 -41
- 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 +22 -25
- package/build/components/Search/SearchItem.js +64 -56
- package/build/components/Search/index.js +1 -1
- package/build/components/Search/styles.js +31 -39
- package/build/components/Search/utils.js +23 -0
- package/build/components/SettingsMenu/SettingsMenu.js +35 -13
- 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 +38 -10
- package/build/components/UpLinks/UplinkLink.js +22 -0
- package/build/components/UpLinks/index.js +1 -1
- package/build/components/UpLinks/styles.js +13 -18
- package/build/components/Versions/HistoryList.js +12 -9
- package/build/components/Versions/TagList.js +10 -7
- package/build/components/Versions/Versions.js +69 -16
- package/build/components/Versions/index.js +1 -1
- package/build/components/Versions/styles.js +5 -7
- 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 +8 -10
- package/build/providers/AppConfigurationProvider/index.js +2 -2
- package/build/providers/PersistenceSettingProvider/PersistenceSettingProvider.js +5 -5
- package/build/providers/PersistenceSettingProvider/index.js +2 -2
- package/build/providers/TranslatorProvider/TranslatorProvider.js +5 -7
- package/build/providers/TranslatorProvider/TranslatorProvider.spec.js +3 -3
- package/build/providers/TranslatorProvider/index.js +2 -2
- package/build/providers/VersionProvider/VersionProvider.js +5 -10
- package/build/providers/VersionProvider/index.js +2 -2
- package/build/sections/Detail/ContainerContent.js +5 -7
- package/build/sections/Detail/Detail.js +13 -12
- 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 +41 -13
- package/build/sections/Footer/index.js +1 -1
- package/build/sections/Footer/styles.js +26 -28
- package/build/sections/Header/Header.js +6 -7
- 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 +7 -11
- package/build/sections/Header/HeaderToolTip.js +2 -3
- package/build/sections/Header/HeaderToolTipIcon.js +4 -5
- package/build/sections/Header/LanguageSwitch.js +12 -17
- package/build/sections/Header/RegistryInfoContent/RegistryInfoContent.js +14 -25
- package/build/sections/Header/RegistryInfoContent/index.js +1 -1
- package/build/sections/Header/RegistryInfoContent/styles.js +4 -6
- package/build/sections/Header/index.js +1 -1
- package/build/sections/Header/styles.js +68 -126
- package/build/sections/Home/Home.js +4 -8
- package/build/sections/Home/index.js +1 -1
- package/build/sections/SideBar/Sidebar.js +27 -35
- 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/components/Author/Author.d.ts +0 -5
- 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/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.test.d.ts +1 -0
- package/build/src/components/Icons/Icons.test.d.ts +1 -0
- package/build/src/components/Install/InstallListItem.d.ts +1 -1
- 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 +0 -3
- 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/Logo/Logo.d.ts +1 -0
- package/build/src/components/Logo/Logo.stories.d.ts +5 -0
- 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 -1
- 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/SearchItem.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/UpLinks/UplinkLink.d.ts +6 -0
- package/build/src/components/UpLinks/styles.d.ts +2 -2
- 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/styles.d.ts +5 -5
- 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 +7 -5
- package/build/src/utils/__partials__/packageMeta.d.ts +0 -1
- package/build/src/utils/routes.d.ts +1 -0
- package/build/src/utils/utils.d.ts +1 -0
- package/build/store/api.js +16 -12
- package/build/store/index.js +1 -1
- package/build/store/models/configuration.js +5 -6
- package/build/store/models/download.js +2 -3
- 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 +24 -6
- package/package.json +33 -32
- 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.test.tsx +36 -15
- package/src/components/ActionBar/ActionBar.tsx +1 -1
- package/src/components/ActionBar/ActionBarAction.tsx +8 -5
- package/src/components/Author/Author.test.tsx +7 -1
- package/src/components/Author/Author.tsx +3 -41
- package/src/components/CopyClipboard/CopyToClipBoard.test.tsx +23 -0
- 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/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 +6 -2
- 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 +54 -13
- package/src/components/Install/Install.tsx +12 -11
- package/src/components/Install/InstallListItem.tsx +15 -13
- 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 +41 -44
- 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 +8 -4
- package/src/components/Readme/Readme.spec.tsx +17 -0
- package/src/components/Readme/Readme.tsx +34 -7
- package/src/components/Readme/{github-markdown-dark.css → github-markdown.css} +266 -83
- 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 +48 -10
- package/src/components/{SideBarTittle/SideBarTittle.tsx → SideBarTitle/SideBarTitle.tsx} +19 -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 +11 -6
- package/src/components/Versions/TagList.tsx +4 -3
- package/src/components/Versions/Versions.test.tsx +26 -8
- package/src/components/Versions/Versions.tsx +81 -28
- package/src/index.ts +6 -2
- package/src/providers/AppConfigurationProvider/AppConfigurationProvider.tsx +1 -0
- package/src/providers/PersistenceSettingProvider/PersistenceSettingProvider.tsx +2 -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/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 +7 -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/Readme/ReadmeDark.js +0 -46
- package/build/components/Readme/ReadmeLight.js +0 -46
- package/build/components/Readme/github-markdown-light.css +0 -1014
- package/build/components/SideBarTittle/SideBarTittle.js +0 -95
- 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/Readme/ReadmeDark.d.ts +0 -5
- package/build/src/components/Readme/ReadmeLight.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/Readme/ReadmeDark.tsx +0 -32
- package/src/components/Readme/ReadmeLight.tsx +0 -32
- package/src/components/Readme/github-markdown-light.css +0 -1014
- 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,96 @@
|
|
|
1
1
|
# @verdaccio/ui-components
|
|
2
2
|
|
|
3
|
+
## 4.0.0-next-8.1
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 6a8154c: feat: update logger pino to latest
|
|
8
|
+
|
|
9
|
+
## 4.0.0-next-8.0
|
|
10
|
+
|
|
11
|
+
### Major Changes
|
|
12
|
+
|
|
13
|
+
- chore: move v7 next to v8 next
|
|
14
|
+
|
|
15
|
+
## 3.0.0
|
|
16
|
+
|
|
17
|
+
### Major Changes
|
|
18
|
+
|
|
19
|
+
- 47f61c6: feat!: bump to v7
|
|
20
|
+
- e7ebccb: update major dependencies, remove old nodejs support
|
|
21
|
+
|
|
22
|
+
### Minor Changes
|
|
23
|
+
|
|
24
|
+
- 10dd81f: feat: complete overhaul of web user interface
|
|
25
|
+
- 580319a: feat: ui improvements
|
|
26
|
+
|
|
27
|
+
Some UI improvements
|
|
28
|
+
|
|
29
|
+
- download progress indicator: https://github.com/verdaccio/verdaccio/discussions/4068
|
|
30
|
+
- fix dark mode and readme css support https://github.com/verdaccio/verdaccio/discussions/3942 https://github.com/verdaccio/verdaccio/discussions/3467
|
|
31
|
+
- fix global for yarn packages and add version to the packages on copy
|
|
32
|
+
- feat: hide deprecated versions option
|
|
33
|
+
- fix: improve deprecated package style
|
|
34
|
+
- feat: display deprecated versions
|
|
35
|
+
|
|
36
|
+
- c9962fe: feat: forbidden user interface
|
|
37
|
+
|
|
38
|
+
### Patch Changes
|
|
39
|
+
|
|
40
|
+
- 92f1c34: - fixed login state when token is expired (@ku3mi41 in #3980)
|
|
41
|
+
- 5a77414: chore: fix type for country flags
|
|
42
|
+
- 02ba426: fix: display labels for engine versions
|
|
43
|
+
- ba53d1e: feat: versions filter by semver range
|
|
44
|
+
- 3b3cf86: chore: sync dependency defs between ui-components and ui-theme
|
|
45
|
+
- 3323599: fix: render READMEs with correct font and highlighting
|
|
46
|
+
- 96b2857: chore(ui): update babel dependencies
|
|
47
|
+
- 5210408: fix: ui dialog break pages on open due remark error
|
|
48
|
+
- 117eb1c: fix: change bundleDependencies to array
|
|
49
|
+
|
|
50
|
+
## 3.0.0-next-7.9
|
|
51
|
+
|
|
52
|
+
### Patch Changes
|
|
53
|
+
|
|
54
|
+
- 5a77414: chore: fix type for country flags
|
|
55
|
+
- 3b3cf86: chore: sync dependency defs between ui-components and ui-theme
|
|
56
|
+
- 96b2857: chore(ui): update babel dependencies
|
|
57
|
+
|
|
58
|
+
## 3.0.0-next-7.8
|
|
59
|
+
|
|
60
|
+
### Minor Changes
|
|
61
|
+
|
|
62
|
+
- 10dd81f: feat: complete overhaul of web user interface
|
|
63
|
+
|
|
64
|
+
## 3.0.0-next-7.7
|
|
65
|
+
|
|
66
|
+
### Patch Changes
|
|
67
|
+
|
|
68
|
+
- 117eb1c: fix: change bundleDependencies to array
|
|
69
|
+
|
|
70
|
+
## 3.0.0-next-7.6
|
|
71
|
+
|
|
72
|
+
### Patch Changes
|
|
73
|
+
|
|
74
|
+
- ba53d1e: feat: versions filter by semver range
|
|
75
|
+
|
|
76
|
+
## 3.0.0-next-7.5
|
|
77
|
+
|
|
78
|
+
### Minor Changes
|
|
79
|
+
|
|
80
|
+
- c9962fe: feat: forbidden user interface
|
|
81
|
+
|
|
82
|
+
## 3.0.0-next-7.4
|
|
83
|
+
|
|
84
|
+
### Patch Changes
|
|
85
|
+
|
|
86
|
+
- 5210408: fix: ui dialog break pages on open due remark error
|
|
87
|
+
|
|
88
|
+
## 3.0.0-next-7.3
|
|
89
|
+
|
|
90
|
+
### Patch Changes
|
|
91
|
+
|
|
92
|
+
- 3323599: fix: render READMEs with correct font and highlighting
|
|
93
|
+
|
|
3
94
|
## 3.0.0-next.2
|
|
4
95
|
|
|
5
96
|
### Major 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,31 @@
|
|
|
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 => state?.loading?.models.manifest);
|
|
15
|
+
if (isLoading) {
|
|
16
|
+
return /*#__PURE__*/_react.default.createElement(_index.Loading, null);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// @ts-expect-error
|
|
20
|
+
if (manifestStore.forbidden) {
|
|
21
|
+
return /*#__PURE__*/_react.default.createElement(_Forbidden.default, null);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// @ts-expect-error
|
|
25
|
+
if (manifestStore.hasNotBeenFound) {
|
|
26
|
+
return /*#__PURE__*/_react.default.createElement(_index.NotFound, null);
|
|
27
|
+
}
|
|
28
|
+
return /*#__PURE__*/_react.default.createElement(_index.VersionLayout, null);
|
|
29
|
+
};
|
|
30
|
+
var _default = exports.default = Version;
|
|
31
|
+
//# 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
|
}) => ({
|
|
@@ -16,7 +16,7 @@ const resetStyles = (0, _styles.makeStyles)(({
|
|
|
16
16
|
fontFamily: '"Roboto", Helvetica Neue, Arial, sans-serif'
|
|
17
17
|
},
|
|
18
18
|
strong: {
|
|
19
|
-
fontWeight: theme
|
|
19
|
+
fontWeight: theme?.fontWeight.semiBold
|
|
20
20
|
},
|
|
21
21
|
'html, body, #root': {
|
|
22
22
|
height: '100%'
|
|
@@ -30,8 +30,8 @@ const resetStyles = (0, _styles.makeStyles)(({
|
|
|
30
30
|
padding: 15,
|
|
31
31
|
flex: 1,
|
|
32
32
|
height: '100%',
|
|
33
|
-
[`@media screen and (min-width: ${theme
|
|
34
|
-
maxWidth: theme
|
|
33
|
+
[`@media screen and (min-width: ${theme?.breakPoints.container}px)`]: {
|
|
34
|
+
maxWidth: theme?.breakPoints.container,
|
|
35
35
|
width: '100%',
|
|
36
36
|
marginLeft: 'auto',
|
|
37
37
|
marginRight: 'auto'
|
|
@@ -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,13 +9,12 @@ 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
|
-
|
|
18
|
-
const prefersDarkMode = (_window$matchMedia = (_window = window).matchMedia) === null || _window$matchMedia === void 0 ? void 0 : _window$matchMedia.call(_window, '(prefers-color-scheme:dark)').matches;
|
|
17
|
+
const prefersDarkMode = window.matchMedia?.('(prefers-color-scheme:dark)').matches;
|
|
19
18
|
if (typeof darkModeConfig === 'boolean') {
|
|
20
19
|
return darkModeConfig;
|
|
21
20
|
} else {
|
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
|
|
@@ -10,17 +10,17 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
10
10
|
var _utils = require("../../utils");
|
|
11
11
|
var _RawViewer = _interopRequireDefault(require("../RawViewer"));
|
|
12
12
|
var _ActionBarAction = _interopRequireDefault(require("./ActionBarAction"));
|
|
13
|
-
function _getRequireWildcardCache(
|
|
14
|
-
function _interopRequireWildcard(
|
|
15
|
-
function _interopRequireDefault(
|
|
16
|
-
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 */
|
|
17
17
|
const ActionBar = ({
|
|
18
18
|
showRaw,
|
|
19
19
|
showDownloadTarball = true,
|
|
20
20
|
packageMeta
|
|
21
21
|
}) => {
|
|
22
22
|
const [isRawViewerOpen, setIsRawViewerOpen] = (0, _react.useState)(false);
|
|
23
|
-
if (!
|
|
23
|
+
if (!packageMeta?.latest) {
|
|
24
24
|
return null;
|
|
25
25
|
}
|
|
26
26
|
const {
|
|
@@ -35,13 +35,13 @@ const ActionBar = ({
|
|
|
35
35
|
link: homepage
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
|
-
if (bugs
|
|
38
|
+
if (bugs?.url && _utils.url.isURL(bugs.url)) {
|
|
39
39
|
actions.push({
|
|
40
40
|
type: 'OPEN_AN_ISSUE',
|
|
41
41
|
link: bugs.url
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
|
-
if (dist
|
|
44
|
+
if (dist?.tarball && _utils.url.isURL(dist.tarball) && showDownloadTarball) {
|
|
45
45
|
actions.push({
|
|
46
46
|
type: 'DOWNLOAD_TARBALL',
|
|
47
47
|
link: dist.tarball
|
|
@@ -56,7 +56,9 @@ const ActionBar = ({
|
|
|
56
56
|
return /*#__PURE__*/_react.default.createElement(_Box.default, {
|
|
57
57
|
alignItems: "center",
|
|
58
58
|
display: "flex",
|
|
59
|
-
|
|
59
|
+
sx: {
|
|
60
|
+
my: 2
|
|
61
|
+
}
|
|
60
62
|
}, /*#__PURE__*/_react.default.createElement(_Stack.default, {
|
|
61
63
|
direction: "row",
|
|
62
64
|
spacing: 1
|
|
@@ -70,6 +72,5 @@ const ActionBar = ({
|
|
|
70
72
|
packageMeta: packageMeta
|
|
71
73
|
})));
|
|
72
74
|
};
|
|
73
|
-
var _default = ActionBar;
|
|
74
|
-
exports.default = _default;
|
|
75
|
+
var _default = exports.default = ActionBar;
|
|
75
76
|
//# sourceMappingURL=ActionBar.js.map
|
|
@@ -15,11 +15,11 @@ var _Tooltip = _interopRequireDefault(require("@mui/material/Tooltip"));
|
|
|
15
15
|
var _react = _interopRequireWildcard(require("react"));
|
|
16
16
|
var _reactI18next = require("react-i18next");
|
|
17
17
|
var _reactRedux = require("react-redux");
|
|
18
|
-
var
|
|
19
|
-
function _getRequireWildcardCache(
|
|
20
|
-
function _interopRequireWildcard(
|
|
21
|
-
function _interopRequireDefault(
|
|
22
|
-
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" ? {
|
|
23
23
|
target: "e1yxykdq0"
|
|
24
24
|
} : {
|
|
25
25
|
target: "e1yxykdq0",
|
|
@@ -27,10 +27,12 @@ const Fab = /*#__PURE__*/(0, _base.default)(_Fab.default, process.env.NODE_ENV =
|
|
|
27
27
|
})(({
|
|
28
28
|
theme
|
|
29
29
|
}) => ({
|
|
30
|
-
backgroundColor:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
backgroundColor: theme?.palette.mode === 'light' ? theme?.palette.primary.main : theme?.palette.cyanBlue,
|
|
31
|
+
'&:hover': {
|
|
32
|
+
color: theme?.palette.mode === 'light' ? theme?.palette.primary.main : theme?.palette.cyanBlue
|
|
33
|
+
},
|
|
34
|
+
color: theme?.palette.white
|
|
35
|
+
}), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0FjdGlvbkJhci9BY3Rpb25CYXJBY3Rpb24udHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWdCbUIiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL2NvbXBvbmVudHMvQWN0aW9uQmFyL0FjdGlvbkJhckFjdGlvbi50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgQnVnUmVwb3J0SWNvbiBmcm9tICdAbXVpL2ljb25zLW1hdGVyaWFsL0J1Z1JlcG9ydCc7XG5pbXBvcnQgRG93bmxvYWRJY29uIGZyb20gJ0BtdWkvaWNvbnMtbWF0ZXJpYWwvQ2xvdWREb3dubG9hZCc7XG5pbXBvcnQgSG9tZUljb24gZnJvbSAnQG11aS9pY29ucy1tYXRlcmlhbC9Ib21lJztcbmltcG9ydCBSYXdPbkljb24gZnJvbSAnQG11aS9pY29ucy1tYXRlcmlhbC9SYXdPbic7XG5pbXBvcnQgQ2lyY3VsYXJQcm9ncmVzcyBmcm9tICdAbXVpL21hdGVyaWFsL0NpcmN1bGFyUHJvZ3Jlc3MnO1xuaW1wb3J0IEZhYk1VSSBmcm9tICdAbXVpL21hdGVyaWFsL0ZhYic7XG5pbXBvcnQgVG9vbHRpcCBmcm9tICdAbXVpL21hdGVyaWFsL1Rvb2x0aXAnO1xuaW1wb3J0IFJlYWN0LCB7IHVzZUNhbGxiYWNrIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsgdXNlVHJhbnNsYXRpb24gfSBmcm9tICdyZWFjdC1pMThuZXh0JztcbmltcG9ydCB7IHVzZURpc3BhdGNoLCB1c2VTZWxlY3RvciB9IGZyb20gJ3JlYWN0LXJlZHV4JztcblxuaW1wb3J0IHsgVGhlbWUgfSBmcm9tICcuLi8uLi9UaGVtZSc7XG5pbXBvcnQgeyBEaXNwYXRjaCwgUm9vdFN0YXRlIH0gZnJvbSAnLi4vLi4vc3RvcmUvc3RvcmUnO1xuaW1wb3J0IExpbmtFeHRlcm5hbCBmcm9tICcuLi9MaW5rRXh0ZXJuYWwnO1xuXG5leHBvcnQgY29uc3QgRmFiID0gc3R5bGVkKEZhYk1VSSk8eyB0aGVtZT86IFRoZW1lIH0+KCh7IHRoZW1lIH0pID0+ICh7XG4gIGJhY2tncm91bmRDb2xvcjpcbiAgICB0aGVtZT8ucGFsZXR0ZS5tb2RlID09PSAnbGlnaHQnID8gdGhlbWU/LnBhbGV0dGUucHJpbWFyeS5tYWluIDogdGhlbWU/LnBhbGV0dGUuY3lhbkJsdWUsXG4gICcmOmhvdmVyJzoge1xuICAgIGNvbG9yOiB0aGVtZT8ucGFsZXR0ZS5tb2RlID09PSAnbGlnaHQnID8gdGhlbWU/LnBhbGV0dGUucHJpbWFyeS5tYWluIDogdGhlbWU/LnBhbGV0dGUuY3lhbkJsdWUsXG4gIH0sXG4gIGNvbG9yOiB0aGVtZT8ucGFsZXR0ZS53aGl0ZSxcbn0pKTtcblxudHlwZSBBY3Rpb25UeXBlID0gJ1ZJU0lUX0hPTUVQQUdFJyB8ICdPUEVOX0FOX0lTU1VFJyB8ICdET1dOTE9BRF9UQVJCQUxMJyB8ICdSQVdfREFUQSc7XG5cbmV4cG9ydCBpbnRlcmZhY2UgQWN0aW9uQmFyQWN0aW9uUHJvcHMge1xuICB0eXBlOiBBY3Rpb25UeXBlO1xuICBsaW5rPzogc3RyaW5nO1xuICBhY3Rpb24/OiAoKSA9PiB2b2lkO1xufVxuXG4vKiBlc2xpbnQtZGlzYWJsZSByZWFjdC9qc3gtbm8tYmluZCAqL1xuY29uc3QgQWN0aW9uQmFyQWN0aW9uOiBSZWFjdC5GQzxBY3Rpb25CYXJBY3Rpb25Qcm9wcz4gPSAoeyB0eXBlLCBsaW5rLCBhY3Rpb24gfSkgPT4ge1xuICBjb25zdCB7IHQgfSA9IHVzZVRyYW5zbGF0aW9uKCk7XG4gIGNvbnN0IGRpc3BhdGNoID0gdXNlRGlzcGF0Y2g8RGlzcGF0Y2g+KCk7XG4gIGNvbnN0IGlzTG9hZGluZyA9IHVzZVNlbGVjdG9yKChzdGF0ZTogUm9vdFN0YXRlKSA9PiBzdGF0ZT8ubG9hZGluZz8ubW9kZWxzLmRvd25sb2FkKTtcblxuICBjb25zdCBoYW5kbGVEb3dubG9hZCA9IHVzZUNhbGxiYWNrKGFzeW5jICgpID0+IHtcbiAgICBkaXNwYXRjaC5kb3dubG9hZC5nZXRUYXJiYWxsKHsgbGluayB9KTtcbiAgfSwgW2Rpc3BhdGNoLCBsaW5rXSk7XG5cbiAgc3dpdGNoICh0eXBlKSB7XG4gICAgY2FzZSAnVklTSVRfSE9NRVBBR0UnOlxuICAgICAgcmV0dXJuIChcbiAgICAgICAgPFRvb2x0aXAgdGl0bGU9e3QoJ2FjdGlvbi1iYXItYWN0aW9uLnZpc2l0LWhvbWUtcGFnZScpIGFzIHN0cmluZ30+XG4gICAgICAgICAgPExpbmtFeHRlcm5hbCB0bz17bGlua30gdmFyaWFudD1cImJ1dHRvblwiPlxuICAgICAgICAgICAgPEZhYiBzaXplPVwic21hbGxcIj5cbiAgICAgICAgICAgICAgPEhvbWVJY29uIC8+XG4gICAgICAgICAgICA8L0ZhYj5cbiAgICAgICAgICA8L0xpbmtFeHRlcm5hbD5cbiAgICAgICAgPC9Ub29sdGlwPlxuICAgICAgKTtcbiAgICBjYXNlICdPUEVOX0FOX0lTU1VFJzpcbiAgICAgIHJldHVybiAoXG4gICAgICAgIDxUb29sdGlwIHRpdGxlPXt0KCdhY3Rpb24tYmFyLWFjdGlvbi5vcGVuLWFuLWlzc3VlJykgYXMgc3RyaW5nfT5cbiAgICAgICAgICA8TGlua0V4dGVybmFsIHRvPXtsaW5rfSB2YXJpYW50PVwiYnV0dG9uXCI+XG4gICAgICAgICAgICA8RmFiIHNpemU9XCJzbWFsbFwiPlxuICAgICAgICAgICAgICA8QnVnUmVwb3J0SWNvbiAvPlxuICAgICAgICAgICAgPC9GYWI+XG4gICAgICAgICAgPC9MaW5rRXh0ZXJuYWw+XG4gICAgICAgIDwvVG9vbHRpcD5cbiAgICAgICk7XG4gICAgY2FzZSAnRE9XTkxPQURfVEFSQkFMTCc6XG4gICAgICByZXR1cm4gKFxuICAgICAgICA8VG9vbHRpcCB0aXRsZT17dCgnYWN0aW9uLWJhci1hY3Rpb24uZG93bmxvYWQtdGFyYmFsbCcpIGFzIHN0cmluZ30+XG4gICAgICAgICAge2lzTG9hZGluZyA/IChcbiAgICAgICAgICAgIDxDaXJjdWxhclByb2dyZXNzIHN4PXt7IG1hcmdpblg6IDAgfX0+XG4gICAgICAgICAgICAgIDxGYWIgZGF0YS10ZXN0aWQ9XCJkb3dubG9hZC10YXJiYWxsLWJ0blwiIG9uQ2xpY2s9e2hhbmRsZURvd25sb2FkfSBzaXplPVwic21hbGxcIj5cbiAgICAgICAgICAgICAgICA8RG93bmxvYWRJY29uIC8+XG4gICAgICAgICAgICAgIDwvRmFiPlxuICAgICAgICAgICAgPC9DaXJjdWxhclByb2dyZXNzPlxuICAgICAgICAgICkgOiAoXG4gICAgICAgICAgICA8RmFiIGRhdGEtdGVzdGlkPVwiZG93bmxvYWQtdGFyYmFsbC1idG5cIiBvbkNsaWNrPXtoYW5kbGVEb3dubG9hZH0gc2l6ZT1cInNtYWxsXCI+XG4gICAgICAgICAgICAgIDxEb3dubG9hZEljb24gLz5cbiAgICAgICAgICAgIDwvRmFiPlxuICAgICAgICAgICl9XG4gICAgICAgIDwvVG9vbHRpcD5cbiAgICAgICk7XG4gICAgY2FzZSAnUkFXX0RBVEEnOlxuICAgICAgcmV0dXJuIChcbiAgICAgICAgPFRvb2x0aXAgdGl0bGU9e3QoJ2FjdGlvbi1iYXItYWN0aW9uLnJhdycpIGFzIHN0cmluZ30+XG4gICAgICAgICAgPEZhYiBkYXRhLXRlc3RpZD1cInJhdy1idG5cIiBvbkNsaWNrPXthY3Rpb259IHNpemU9XCJzbWFsbFwiPlxuICAgICAgICAgICAgPFJhd09uSWNvbiAvPlxuICAgICAgICAgIDwvRmFiPlxuICAgICAgICA8L1Rvb2x0aXA+XG4gICAgICApO1xuICB9XG59O1xuXG5leHBvcnQgZGVmYXVsdCBBY3Rpb25CYXJBY3Rpb247XG4iXX0= */");
|
|
34
36
|
/* eslint-disable react/jsx-no-bind */
|
|
35
37
|
const ActionBarAction = ({
|
|
36
38
|
type,
|
|
@@ -41,10 +43,7 @@ const ActionBarAction = ({
|
|
|
41
43
|
t
|
|
42
44
|
} = (0, _reactI18next.useTranslation)();
|
|
43
45
|
const dispatch = (0, _reactRedux.useDispatch)();
|
|
44
|
-
const isLoading = (0, _reactRedux.useSelector)(state =>
|
|
45
|
-
var _state$loading;
|
|
46
|
-
return state === null || state === void 0 ? void 0 : (_state$loading = state.loading) === null || _state$loading === void 0 ? void 0 : _state$loading.models.download;
|
|
47
|
-
});
|
|
46
|
+
const isLoading = (0, _reactRedux.useSelector)(state => state?.loading?.models.download);
|
|
48
47
|
const handleDownload = (0, _react.useCallback)(async () => {
|
|
49
48
|
dispatch.download.getTarball({
|
|
50
49
|
link
|
|
@@ -54,8 +53,7 @@ const ActionBarAction = ({
|
|
|
54
53
|
case 'VISIT_HOMEPAGE':
|
|
55
54
|
return /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
|
|
56
55
|
title: t('action-bar-action.visit-home-page')
|
|
57
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
58
|
-
external: true,
|
|
56
|
+
}, /*#__PURE__*/_react.default.createElement(_LinkExternal.default, {
|
|
59
57
|
to: link,
|
|
60
58
|
variant: "button"
|
|
61
59
|
}, /*#__PURE__*/_react.default.createElement(Fab, {
|
|
@@ -64,8 +62,7 @@ const ActionBarAction = ({
|
|
|
64
62
|
case 'OPEN_AN_ISSUE':
|
|
65
63
|
return /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
|
|
66
64
|
title: t('action-bar-action.open-an-issue')
|
|
67
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
68
|
-
external: true,
|
|
65
|
+
}, /*#__PURE__*/_react.default.createElement(_LinkExternal.default, {
|
|
69
66
|
to: link,
|
|
70
67
|
variant: "button"
|
|
71
68
|
}, /*#__PURE__*/_react.default.createElement(Fab, {
|
|
@@ -97,6 +94,5 @@ const ActionBarAction = ({
|
|
|
97
94
|
}, /*#__PURE__*/_react.default.createElement(_RawOn.default, null)));
|
|
98
95
|
}
|
|
99
96
|
};
|
|
100
|
-
var _default = ActionBarAction;
|
|
101
|
-
exports.default = _default;
|
|
97
|
+
var _default = exports.default = ActionBarAction;
|
|
102
98
|
//# 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
|