@verdaccio/ui-components 4.0.0-next-8.7 → 4.0.0-next-8.8
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/README.md +1 -1
- package/build/AppTest/AppRoute.js.map +1 -0
- package/build/AppTest/pages/Front/Home.js.map +1 -0
- package/build/AppTest/pages/Front/index.js.map +1 -0
- package/build/AppTest/pages/Version/Version.js.map +1 -0
- package/build/AppTest/pages/Version/index.js.map +1 -0
- package/build/Theme/ResetStyles.js.map +1 -0
- package/build/Theme/StyleBaseline.js.map +1 -0
- package/build/Theme/ThemeProvider.js.map +1 -0
- package/build/Theme/colors.js.map +1 -0
- package/build/Theme/index.js.map +1 -0
- package/build/Theme/theme.d.ts +1 -1
- package/build/Theme/theme.js +1 -1
- package/build/Theme/theme.js.map +1 -0
- package/build/components/ActionBar/ActionBar.js.map +1 -0
- package/build/components/ActionBar/ActionBarAction.js.map +1 -0
- package/build/components/ActionBar/index.js.map +1 -0
- package/build/components/Author/Author.js.map +1 -0
- package/build/components/Author/__snapshots__/Author.test.tsx.snap +257 -0
- package/build/components/Author/index.js.map +1 -0
- package/build/components/Author/styles.js.map +1 -0
- package/build/components/CopyClipboard/CopyToClipBoard.js.map +1 -0
- package/build/components/CopyClipboard/index.js.map +1 -0
- package/build/components/CopyClipboard/utils.js.map +1 -0
- package/build/components/Dependencies/Dependencies.js.map +1 -0
- package/build/components/Dependencies/DependencyBlock.js.map +1 -0
- package/build/components/Dependencies/index.js.map +1 -0
- package/build/components/Dependencies/types.js.map +1 -0
- package/build/components/Dependencies/utits.js.map +1 -0
- package/build/components/Deprecated/Deprecated.js.map +1 -0
- package/build/components/Deprecated/index.js.map +1 -0
- package/build/components/Developers/DeveloperType.js.map +1 -0
- package/build/components/Developers/Developers.js.map +1 -0
- package/build/components/Developers/Title.js.map +1 -0
- package/build/components/Developers/__snapshots__/Developers.test.tsx.snap +416 -0
- package/build/components/Developers/get-unique-developer-values.js.map +1 -0
- package/build/components/Developers/index.js.map +1 -0
- package/build/components/Distribution/Dist.js.map +1 -0
- package/build/components/Distribution/index.js.map +1 -0
- package/build/components/Distribution/styles.js.map +1 -0
- package/build/components/Engines/Engines.js.map +1 -0
- package/build/components/Engines/index.js.map +1 -0
- package/build/components/Engines/styles.js.map +1 -0
- package/build/components/ErrorBoundary/ErrorBoundary.js.map +1 -0
- package/build/components/ErrorBoundary/index.js.map +1 -0
- package/build/components/Forbidden/Forbidden.js.map +1 -0
- package/build/components/Forbidden/index.js.map +1 -0
- package/build/components/FundButton/FundButton.js.map +1 -0
- package/build/components/FundButton/index.js.map +1 -0
- package/build/components/HeaderInfoDialog/HeaderInfoDialog.js.map +1 -0
- package/build/components/HeaderInfoDialog/index.js.map +1 -0
- package/build/components/Heading/Heading.js.map +1 -0
- package/build/components/Heading/index.js.map +1 -0
- package/build/components/Help/Help.js.map +1 -0
- package/build/components/Help/index.js.map +1 -0
- package/build/components/Help/styles.js.map +1 -0
- package/build/components/Icons/DevsIcons/CommonJS.js.map +1 -0
- package/build/components/Icons/DevsIcons/ES6Module.js.map +1 -0
- package/build/components/Icons/DevsIcons/Git.js.map +1 -0
- package/build/components/Icons/DevsIcons/NodeJS.js.map +1 -0
- package/build/components/Icons/DevsIcons/TypeScript.js.map +1 -0
- package/build/components/Icons/DevsIcons/index.js.map +1 -0
- package/build/components/Icons/Earth.js.map +1 -0
- package/build/components/Icons/FileBinary.js.map +1 -0
- package/build/components/Icons/Law.js.map +1 -0
- package/build/components/Icons/Managers/Npm.js.map +1 -0
- package/build/components/Icons/Managers/Pnpm.js.map +1 -0
- package/build/components/Icons/Managers/Yarn.js.map +1 -0
- package/build/components/Icons/Managers/index.js.map +1 -0
- package/build/components/Icons/SvgIcon.js.map +1 -0
- package/build/components/Icons/Time.js.map +1 -0
- package/build/components/Icons/Version.js.map +1 -0
- package/build/components/Icons/index.js.map +1 -0
- package/build/components/Install/Install.js.map +1 -0
- package/build/components/Install/InstallListItem.js.map +1 -0
- package/build/components/Install/__partials__/data.json +5984 -0
- package/build/components/Install/index.js.map +1 -0
- package/build/components/Keywords/KeywordListItems.js.map +1 -0
- package/build/components/Keywords/Keywords.js.map +1 -0
- package/build/components/Keywords/index.js.map +1 -0
- package/build/components/Label/Label.js.map +1 -0
- package/build/components/Label/__snapshots__/Label.test.tsx.snap +9 -0
- package/build/components/Label/index.js.map +1 -0
- package/build/components/Link/Link.js.map +1 -0
- package/build/components/Link/__snapshots__/Link.test.tsx.snap +25 -0
- package/build/components/Link/index.js.map +1 -0
- package/build/components/LinkExternal/LinkExternal.js.map +1 -0
- package/build/components/LinkExternal/__snapshots__/LinkExternal.test.tsx.snap +21 -0
- package/build/components/LinkExternal/index.js.map +1 -0
- package/build/components/Loading/Loading.js.map +1 -0
- package/build/components/Loading/Spinner/Spinner.js.map +1 -0
- package/build/components/Loading/Spinner/__snapshots__/Spinner.test.tsx.snap +110 -0
- package/build/components/Loading/Spinner/index.js.map +1 -0
- package/build/components/Loading/index.js.map +1 -0
- package/build/components/Loading/styles.js.map +1 -0
- package/build/components/LoginDialog/LoginDialog.js.map +1 -0
- package/build/components/LoginDialog/LoginDialogCloseButton.js.map +1 -0
- package/build/components/LoginDialog/LoginDialogForm.js.map +1 -0
- package/build/components/LoginDialog/LoginDialogFormError.js.map +1 -0
- package/build/components/LoginDialog/LoginDialogHeader.js.map +1 -0
- package/build/components/LoginDialog/__snapshots__/LoginDialog.test.tsx.snap +3 -0
- package/build/components/LoginDialog/index.js.map +1 -0
- package/build/components/Logo/Logo.js.map +1 -0
- package/build/components/Logo/__snapshots__/Logo.test.tsx.snap +9 -0
- package/build/components/Logo/index.js.map +1 -0
- package/build/components/MenuItem/MenuItem.js.map +1 -0
- package/build/components/MenuItem/index.js.map +1 -0
- package/build/components/NoItems/NoItems.js.map +1 -0
- package/build/components/NoItems/__snapshots__/Noitems.test.tsx.snap +33 -0
- package/build/components/NoItems/index.js.map +1 -0
- package/build/components/NotFound/NotFound.js.map +1 -0
- package/build/components/NotFound/index.js.map +1 -0
- package/build/components/Package/Package.js.map +1 -0
- package/build/components/Package/index.js.map +1 -0
- package/build/components/Package/styles.js.map +1 -0
- package/build/components/PackageList/PackageList.js.map +1 -0
- package/build/components/PackageList/index.js.map +1 -0
- package/build/components/Person/Person.js.map +1 -0
- package/build/components/Person/PersonTooltip.js.map +1 -0
- package/build/components/Person/index.js.map +1 -0
- package/build/components/Person/utils.js.map +1 -0
- package/build/components/RawViewer/RawViewer.js.map +1 -0
- package/build/components/RawViewer/index.js.map +1 -0
- package/build/components/Readme/index.js.map +1 -0
- package/build/components/Readme/types.js.map +1 -0
- package/build/components/Readme/utils.js.map +1 -0
- package/build/components/RegistryInfoDialog/RegistryInfoDialog.js.map +1 -0
- package/build/components/RegistryInfoDialog/index.js.map +1 -0
- package/build/components/RegistryInfoDialog/styles.js.map +1 -0
- package/build/components/RegistryInfoDialog/types.js.map +1 -0
- package/build/components/Repository/Repository.js.map +1 -0
- package/build/components/Repository/__partials__/data.json +5984 -0
- package/build/components/Repository/__snapshots__/Repository.test.tsx.snap +3 -0
- package/build/components/Repository/index.js.map +1 -0
- package/build/components/Search/AutoComplete/AutoComplete.js.map +1 -0
- package/build/components/Search/AutoComplete/index.js.map +1 -0
- package/build/components/Search/AutoComplete/styles.js.map +1 -0
- package/build/components/Search/Search.js.map +1 -0
- package/build/components/Search/SearchItem.js.map +1 -0
- package/build/components/Search/index.js.map +1 -0
- package/build/components/Search/styles.js.map +1 -0
- package/build/components/Search/utils.js.map +1 -0
- package/build/components/SettingsMenu/SettingsMenu.js.map +1 -0
- package/build/components/SettingsMenu/index.js.map +1 -0
- package/build/components/SideBarTitle/SideBarTitle.js.map +1 -0
- package/build/components/SideBarTitle/index.js.map +1 -0
- package/build/components/SideBarTitle/utils.js.map +1 -0
- package/build/components/TextField/TextField.js.map +1 -0
- package/build/components/TextField/__snapshots__/TextField.test.tsx.snap +32 -0
- package/build/components/TextField/index.js.map +1 -0
- package/build/components/UpLinks/UpLinks.js.map +1 -0
- package/build/components/UpLinks/UplinkLink.js.map +1 -0
- package/build/components/UpLinks/__snapshots__/UpLinks.test.tsx.snap +315 -0
- package/build/components/UpLinks/index.js.map +1 -0
- package/build/components/UpLinks/styles.js.map +1 -0
- package/build/components/Versions/HistoryList.js.map +1 -0
- package/build/components/Versions/TagList.js.map +1 -0
- package/build/components/Versions/Versions.js.map +1 -0
- package/build/components/Versions/__partials__/data.json +5985 -0
- package/build/components/Versions/__partials__/deprecated-versions.json +175 -0
- package/build/components/Versions/__partials__/unsorted-versions.json +37 -0
- package/build/components/Versions/index.js.map +1 -0
- package/build/components/Versions/styles.js.map +1 -0
- package/build/components/Versions/types.js.map +1 -0
- package/build/hooks/index.js.map +1 -0
- package/build/hooks/useLocalStorage.js.map +1 -0
- package/build/hooks/useOnClickOutside.js.map +1 -0
- package/build/index.js.map +1 -0
- package/build/layouts/Version/Version.js.map +1 -0
- package/build/layouts/Version/index.js.map +1 -0
- package/build/providers/AppConfigurationProvider/AppConfigurationProvider.js.map +1 -0
- package/build/providers/AppConfigurationProvider/index.js.map +1 -0
- package/build/providers/PersistenceSettingProvider/PersistenceSettingProvider.js.map +1 -0
- package/build/providers/PersistenceSettingProvider/index.js.map +1 -0
- package/build/providers/TranslatorProvider/TranslatorProvider.js.map +1 -0
- package/build/providers/TranslatorProvider/index.js.map +1 -0
- package/build/providers/VersionProvider/VersionProvider.js.map +1 -0
- package/build/providers/VersionProvider/index.js.map +1 -0
- package/build/providers/index.js.map +1 -0
- package/build/sections/Detail/ContainerContent.js.map +1 -0
- package/build/sections/Detail/Detail.js.map +1 -0
- package/build/sections/Detail/ReadmeSection.js.map +1 -0
- package/build/sections/Detail/Tabs.js.map +1 -0
- package/build/sections/Detail/__snapshots__/Detail.test.tsx.snap +82 -0
- package/build/sections/Detail/index.js.map +1 -0
- package/build/sections/Footer/Footer.js.map +1 -0
- package/build/sections/Footer/index.js.map +1 -0
- package/build/sections/Footer/styles.js.map +1 -0
- package/build/sections/Header/Header.js.map +1 -0
- package/build/sections/Header/HeaderGreetings.js.map +1 -0
- package/build/sections/Header/HeaderLeft.js.map +1 -0
- package/build/sections/Header/HeaderMenu.js.map +1 -0
- package/build/sections/Header/HeaderRight.js.map +1 -0
- package/build/sections/Header/HeaderSettingsDialog.js.map +1 -0
- package/build/sections/Header/HeaderToolTip.js.map +1 -0
- package/build/sections/Header/HeaderToolTipIcon.js.map +1 -0
- package/build/sections/Header/LanguageSwitch.js.map +1 -0
- package/build/sections/Header/RegistryInfoContent/RegistryInfoContent.js.map +1 -0
- package/build/sections/Header/RegistryInfoContent/index.js.map +1 -0
- package/build/sections/Header/RegistryInfoContent/styles.js.map +1 -0
- package/build/sections/Header/index.js.map +1 -0
- package/build/sections/Header/styles.js.map +1 -0
- package/build/sections/Home/Home.js.map +1 -0
- package/build/sections/Home/index.js.map +1 -0
- package/build/sections/SideBar/Sidebar.js.map +1 -0
- package/build/sections/SideBar/index.js.map +1 -0
- package/build/sections/index.js.map +1 -0
- package/build/store/api.js.map +1 -0
- package/build/store/index.js.map +1 -0
- package/build/store/models/configuration.js.map +1 -0
- package/build/store/models/download.js.map +1 -0
- package/build/store/models/index.js.map +1 -0
- package/build/store/models/login.js.map +1 -0
- package/build/store/models/manifest.js.map +1 -0
- package/build/store/models/packages.js.map +1 -0
- package/build/store/models/routes.js.map +1 -0
- package/build/store/models/search.js.map +1 -0
- package/build/store/models/utils.js.map +1 -0
- package/build/store/storage.js.map +1 -0
- package/build/store/store.js.map +1 -0
- package/build/test/i18n-config.js.map +1 -0
- package/build/test/test-react-testing-library.js.map +1 -0
- package/build/types/index.js.map +1 -0
- package/build/types/packageMeta.js.map +1 -0
- package/build/utils/__partials__/packageMeta.d.ts +235 -0
- package/build/utils/__partials__/packageMeta.js +528 -0
- package/build/utils/__partials__/packageMeta.js.map +1 -0
- package/build/utils/cli-utils.js.map +1 -0
- package/build/utils/index.js.map +1 -0
- package/build/utils/loadable.js.map +1 -0
- package/build/utils/routes.js.map +1 -0
- package/build/utils/token-generate.js.map +1 -0
- package/build/utils/token.js.map +1 -0
- package/build/utils/url.js.map +1 -0
- package/build/utils/utils.js.map +1 -0
- package/package.json +2 -2
- package/.babelrc +0 -16
- package/.eslintrc +0 -100
- package/CHANGELOG.md +0 -48
- package/src/AppTest/App.stories.tsx +0 -89
- package/src/AppTest/AppRoute.test.tsx +0 -70
- package/src/AppTest/AppRoute.tsx +0 -42
- package/src/AppTest/pages/Front/Home.ts +0 -3
- package/src/AppTest/pages/Front/index.ts +0 -1
- package/src/AppTest/pages/Version/Version.tsx +0 -28
- package/src/AppTest/pages/Version/index.ts +0 -1
- package/src/Theme/ResetStyles.tsx +0 -44
- package/src/Theme/StyleBaseline.tsx +0 -14
- package/src/Theme/ThemeProvider.test.tsx +0 -27
- package/src/Theme/ThemeProvider.tsx +0 -44
- package/src/Theme/colors.ts +0 -1
- package/src/Theme/index.ts +0 -5
- package/src/Theme/theme.ts +0 -179
- package/src/components/ActionBar/ActionBar.stories.tsx +0 -64
- package/src/components/ActionBar/ActionBar.test.tsx +0 -152
- package/src/components/ActionBar/ActionBar.tsx +0 -63
- package/src/components/ActionBar/ActionBarAction.tsx +0 -92
- package/src/components/ActionBar/index.ts +0 -1
- package/src/components/Author/Author.stories.tsx +0 -53
- package/src/components/Author/Author.test.tsx +0 -76
- package/src/components/Author/Author.tsx +0 -30
- package/src/components/Author/index.ts +0 -1
- package/src/components/Author/styles.ts +0 -16
- package/src/components/CopyClipboard/CopyToClipBoard.stories.tsx +0 -20
- package/src/components/CopyClipboard/CopyToClipBoard.test.tsx +0 -24
- package/src/components/CopyClipboard/CopyToClipBoard.tsx +0 -51
- package/src/components/CopyClipboard/index.ts +0 -2
- package/src/components/CopyClipboard/utils.ts +0 -10
- package/src/components/Dependencies/Dependencies.stories.tsx +0 -158
- package/src/components/Dependencies/Dependencies.test.tsx +0 -76
- package/src/components/Dependencies/Dependencies.tsx +0 -72
- package/src/components/Dependencies/DependencyBlock.test.tsx +0 -47
- package/src/components/Dependencies/DependencyBlock.tsx +0 -83
- package/src/components/Dependencies/index.ts +0 -1
- package/src/components/Dependencies/types.ts +0 -7
- package/src/components/Dependencies/utits.ts +0 -3
- package/src/components/Deprecated/Deprecated.stories.tsx +0 -9
- package/src/components/Deprecated/Deprecated.test.tsx +0 -26
- package/src/components/Deprecated/Deprecated.tsx +0 -20
- package/src/components/Deprecated/index.ts +0 -1
- package/src/components/Developers/DeveloperType.tsx +0 -4
- package/src/components/Developers/Developers.stories.tsx +0 -60
- package/src/components/Developers/Developers.test.tsx +0 -129
- package/src/components/Developers/Developers.tsx +0 -82
- package/src/components/Developers/Title.tsx +0 -28
- package/src/components/Developers/get-unique-developer-values.ts +0 -16
- package/src/components/Developers/index.ts +0 -2
- package/src/components/Distribution/Dist.stories.tsx +0 -67
- package/src/components/Distribution/Dist.test.tsx +0 -99
- package/src/components/Distribution/Dist.tsx +0 -56
- package/src/components/Distribution/index.ts +0 -1
- package/src/components/Distribution/styles.ts +0 -23
- package/src/components/Engines/Engines.stories.tsx +0 -71
- package/src/components/Engines/Engines.test.tsx +0 -57
- package/src/components/Engines/Engines.tsx +0 -99
- package/src/components/Engines/index.ts +0 -1
- package/src/components/Engines/styles.ts +0 -14
- package/src/components/ErrorBoundary/ErrorBoundary.test.tsx +0 -40
- package/src/components/ErrorBoundary/ErrorBoundary.tsx +0 -38
- package/src/components/ErrorBoundary/index.ts +0 -1
- package/src/components/Forbidden/Forbidden.test.tsx +0 -39
- package/src/components/Forbidden/Forbidden.tsx +0 -56
- package/src/components/Forbidden/index.ts +0 -1
- package/src/components/FundButton/FundButton.stories.tsx +0 -56
- package/src/components/FundButton/FundButton.test.tsx +0 -84
- package/src/components/FundButton/FundButton.tsx +0 -48
- package/src/components/FundButton/index.ts +0 -1
- package/src/components/HeaderInfoDialog/HeaderInfoDialog.test.tsx +0 -52
- package/src/components/HeaderInfoDialog/HeaderInfoDialog.tsx +0 -82
- package/src/components/HeaderInfoDialog/index.ts +0 -1
- package/src/components/Heading/Heading.test.tsx +0 -20
- package/src/components/Heading/Heading.tsx +0 -16
- package/src/components/Heading/index.ts +0 -1
- package/src/components/Help/Help.stories.tsx +0 -9
- package/src/components/Help/Help.test.tsx +0 -18
- package/src/components/Help/Help.tsx +0 -54
- package/src/components/Help/index.ts +0 -1
- package/src/components/Help/styles.ts +0 -7
- package/src/components/Icons/.eslintrc +0 -5
- package/src/components/Icons/DevsIcons/CommonJS.tsx +0 -7
- package/src/components/Icons/DevsIcons/ES6Module.tsx +0 -7
- package/src/components/Icons/DevsIcons/Git.tsx +0 -7
- package/src/components/Icons/DevsIcons/NodeJS.tsx +0 -7
- package/src/components/Icons/DevsIcons/TypeScript.tsx +0 -7
- package/src/components/Icons/DevsIcons/commonjs.svg +0 -4
- package/src/components/Icons/DevsIcons/es6module.svg +0 -4
- package/src/components/Icons/DevsIcons/git.svg +0 -4
- package/src/components/Icons/DevsIcons/index.ts +0 -5
- package/src/components/Icons/DevsIcons/nodejs.svg +0 -6
- package/src/components/Icons/DevsIcons/typescript.svg +0 -4
- package/src/components/Icons/Earth.tsx +0 -36
- package/src/components/Icons/FileBinary.tsx +0 -21
- package/src/components/Icons/Icons.stories.tsx +0 -53
- package/src/components/Icons/Icons.test.tsx +0 -70
- package/src/components/Icons/Law.tsx +0 -21
- package/src/components/Icons/License.tsx +0 -18
- package/src/components/Icons/Managers/Npm.tsx +0 -7
- package/src/components/Icons/Managers/Pnpm.tsx +0 -7
- package/src/components/Icons/Managers/Yarn.tsx +0 -7
- package/src/components/Icons/Managers/index.ts +0 -3
- package/src/components/Icons/Managers/npm.svg +0 -15
- package/src/components/Icons/Managers/pnpm.svg +0 -1
- package/src/components/Icons/Managers/yarn.svg +0 -1
- package/src/components/Icons/SvgIcon.tsx +0 -39
- package/src/components/Icons/Time.tsx +0 -19
- package/src/components/Icons/Version.tsx +0 -20
- package/src/components/Icons/index.ts +0 -8
- package/src/components/Install/Install.stories.tsx +0 -87
- package/src/components/Install/Install.test.tsx +0 -117
- package/src/components/Install/Install.tsx +0 -79
- package/src/components/Install/InstallListItem.tsx +0 -137
- package/src/components/Install/index.ts +0 -1
- package/src/components/Keywords/KeywordListItems.tsx +0 -22
- package/src/components/Keywords/Keywords.stories.tsx +0 -19
- package/src/components/Keywords/Keywords.test.tsx +0 -57
- package/src/components/Keywords/Keywords.tsx +0 -36
- package/src/components/Keywords/index.ts +0 -1
- package/src/components/Label/Label.test.tsx +0 -14
- package/src/components/Label/Label.tsx +0 -36
- package/src/components/Label/index.ts +0 -1
- package/src/components/Link/Link.test.tsx +0 -25
- package/src/components/Link/Link.tsx +0 -25
- package/src/components/Link/index.ts +0 -1
- package/src/components/LinkExternal/LinkExternal.test.tsx +0 -18
- package/src/components/LinkExternal/LinkExternal.tsx +0 -22
- package/src/components/LinkExternal/index.ts +0 -1
- package/src/components/Loading/Loading.stories.tsx +0 -14
- package/src/components/Loading/Loading.test.tsx +0 -15
- package/src/components/Loading/Loading.tsx +0 -16
- package/src/components/Loading/Spinner/Spinner.test.tsx +0 -13
- package/src/components/Loading/Spinner/Spinner.tsx +0 -34
- package/src/components/Loading/Spinner/index.tsx +0 -1
- package/src/components/Loading/index.ts +0 -1
- package/src/components/Loading/styles.ts +0 -18
- package/src/components/LoginDialog/LoginDialog.stories.tsx +0 -20
- package/src/components/LoginDialog/LoginDialog.test.tsx +0 -109
- package/src/components/LoginDialog/LoginDialog.tsx +0 -88
- package/src/components/LoginDialog/LoginDialogCloseButton.tsx +0 -33
- package/src/components/LoginDialog/LoginDialogForm.tsx +0 -94
- package/src/components/LoginDialog/LoginDialogFormError.tsx +0 -42
- package/src/components/LoginDialog/LoginDialogHeader.tsx +0 -48
- package/src/components/LoginDialog/index.ts +0 -1
- package/src/components/Logo/Logo.stories.tsx +0 -16
- package/src/components/Logo/Logo.test.tsx +0 -18
- package/src/components/Logo/Logo.tsx +0 -71
- package/src/components/Logo/img/logo-black-and-white.svg +0 -1
- package/src/components/Logo/img/logo.svg +0 -1
- package/src/components/Logo/index.ts +0 -1
- package/src/components/MenuItem/MenuItem.tsx +0 -25
- package/src/components/MenuItem/index.ts +0 -1
- package/src/components/NoItems/NoItems.stories.tsx +0 -11
- package/src/components/NoItems/NoItems.tsx +0 -15
- package/src/components/NoItems/Noitems.test.tsx +0 -15
- package/src/components/NoItems/index.ts +0 -1
- package/src/components/NotFound/NotFound.tsx +0 -53
- package/src/components/NotFound/Notfound.test.tsx +0 -40
- package/src/components/NotFound/img/package.svg +0 -1
- package/src/components/NotFound/index.ts +0 -1
- package/src/components/Package/Package.test.tsx +0 -96
- package/src/components/Package/Package.tsx +0 -266
- package/src/components/Package/index.ts +0 -2
- package/src/components/Package/styles.ts +0 -93
- package/src/components/PackageList/PackageList.tsx +0 -81
- package/src/components/PackageList/Packagelist.test.tsx +0 -60
- package/src/components/PackageList/index.ts +0 -1
- package/src/components/Person/Person.test.tsx +0 -50
- package/src/components/Person/Person.tsx +0 -45
- package/src/components/Person/PersonTooltip.tsx +0 -26
- package/src/components/Person/index.ts +0 -1
- package/src/components/Person/utils.ts +0 -20
- package/src/components/RawViewer/RawViewer.tsx +0 -73
- package/src/components/RawViewer/index.ts +0 -1
- package/src/components/Readme/Readme.test.tsx +0 -35
- package/src/components/Readme/Readme.tsx +0 -46
- package/src/components/Readme/github-markdown.css +0 -1198
- package/src/components/Readme/index.ts +0 -1
- package/src/components/Readme/types.ts +0 -3
- package/src/components/Readme/utils.ts +0 -26
- package/src/components/RegistryInfoDialog/RegistryInfoDialog.tsx +0 -31
- package/src/components/RegistryInfoDialog/index.ts +0 -1
- package/src/components/RegistryInfoDialog/styles.ts +0 -22
- package/src/components/RegistryInfoDialog/types.ts +0 -8
- package/src/components/Repository/Repository.stories.tsx +0 -70
- package/src/components/Repository/Repository.test.tsx +0 -43
- package/src/components/Repository/Repository.tsx +0 -81
- package/src/components/Repository/index.ts +0 -1
- package/src/components/Search/AutoComplete/AutoComplete.tsx +0 -83
- package/src/components/Search/AutoComplete/index.ts +0 -1
- package/src/components/Search/AutoComplete/styles.ts +0 -7
- package/src/components/Search/Search.stories.tsx +0 -52
- package/src/components/Search/Search.test.tsx +0 -181
- package/src/components/Search/Search.tsx +0 -168
- package/src/components/Search/SearchItem.tsx +0 -125
- package/src/components/Search/index.ts +0 -1
- package/src/components/Search/styles.ts +0 -41
- package/src/components/Search/utils.ts +0 -17
- package/src/components/SettingsMenu/SettingsMenu.test.tsx +0 -41
- package/src/components/SettingsMenu/SettingsMenu.tsx +0 -124
- package/src/components/SettingsMenu/index.ts +0 -1
- package/src/components/SideBarTitle/SideBarTitle.stories.tsx +0 -81
- package/src/components/SideBarTitle/SideBarTitle.tsx +0 -100
- package/src/components/SideBarTitle/index.ts +0 -1
- package/src/components/SideBarTitle/utils.ts +0 -12
- package/src/components/TextField/TextField.test.tsx +0 -15
- package/src/components/TextField/TextField.tsx +0 -24
- package/src/components/TextField/index.ts +0 -1
- package/src/components/UpLinks/UpLinks.test.tsx +0 -54
- package/src/components/UpLinks/UpLinks.tsx +0 -64
- package/src/components/UpLinks/UplinkLink.tsx +0 -20
- package/src/components/UpLinks/Uplinks.stories.tsx +0 -47
- package/src/components/UpLinks/index.ts +0 -1
- package/src/components/UpLinks/styles.ts +0 -25
- package/src/components/Versions/HistoryList.tsx +0 -83
- package/src/components/Versions/TagList.tsx +0 -34
- package/src/components/Versions/Versions.test.tsx +0 -83
- package/src/components/Versions/Versions.tsx +0 -109
- package/src/components/Versions/index.ts +0 -1
- package/src/components/Versions/styles.ts +0 -20
- package/src/components/Versions/types.ts +0 -17
- package/src/hooks/index.ts +0 -2
- package/src/hooks/useLocalStorage.ts +0 -49
- package/src/hooks/useOnClickOutside.ts +0 -33
- package/src/index.ts +0 -66
- package/src/layouts/Version/Version.stories.tsx +0 -70
- package/src/layouts/Version/Version.tsx +0 -19
- package/src/layouts/Version/index.ts +0 -1
- package/src/providers/AppConfigurationProvider/AppConfigurationProvider.tsx +0 -75
- package/src/providers/AppConfigurationProvider/index.ts +0 -1
- package/src/providers/PersistenceSettingProvider/PersistenceSettingProvider.tsx +0 -61
- package/src/providers/PersistenceSettingProvider/index.ts +0 -1
- package/src/providers/TranslatorProvider/TranslatorProvider.test.tsx +0 -53
- package/src/providers/TranslatorProvider/TranslatorProvider.tsx +0 -54
- package/src/providers/TranslatorProvider/index.ts +0 -2
- package/src/providers/VersionProvider/README.md +0 -22
- package/src/providers/VersionProvider/VersionProvider.test.tsx +0 -49
- package/src/providers/VersionProvider/VersionProvider.tsx +0 -95
- package/src/providers/VersionProvider/index.ts +0 -1
- package/src/providers/index.ts +0 -3
- package/src/sections/Detail/ContainerContent.tsx +0 -46
- package/src/sections/Detail/Detail.stories.tsx +0 -70
- package/src/sections/Detail/Detail.test.tsx +0 -19
- package/src/sections/Detail/Detail.tsx +0 -41
- package/src/sections/Detail/ReadmeSection.tsx +0 -17
- package/src/sections/Detail/Tabs.tsx +0 -33
- package/src/sections/Detail/index.ts +0 -1
- package/src/sections/Footer/Footer.test.tsx +0 -20
- package/src/sections/Footer/Footer.tsx +0 -126
- package/src/sections/Footer/index.ts +0 -1
- package/src/sections/Footer/styles.ts +0 -48
- package/src/sections/Header/Header.stories.tsx +0 -59
- package/src/sections/Header/Header.test.tsx +0 -280
- package/src/sections/Header/Header.tsx +0 -79
- package/src/sections/Header/HeaderGreetings.tsx +0 -21
- package/src/sections/Header/HeaderLeft.tsx +0 -37
- package/src/sections/Header/HeaderMenu.tsx +0 -63
- package/src/sections/Header/HeaderRight.tsx +0 -142
- package/src/sections/Header/HeaderSettingsDialog.tsx +0 -80
- package/src/sections/Header/HeaderToolTip.tsx +0 -15
- package/src/sections/Header/HeaderToolTipIcon.tsx +0 -87
- package/src/sections/Header/LanguageSwitch.tsx +0 -99
- package/src/sections/Header/RegistryInfoContent/RegistryInfoContent.test.tsx +0 -26
- package/src/sections/Header/RegistryInfoContent/RegistryInfoContent.tsx +0 -191
- package/src/sections/Header/RegistryInfoContent/index.ts +0 -1
- package/src/sections/Header/RegistryInfoContent/styles.ts +0 -13
- package/src/sections/Header/index.ts +0 -1
- package/src/sections/Header/styles.ts +0 -88
- package/src/sections/Home/Home.stories.tsx +0 -33
- package/src/sections/Home/Home.test.tsx +0 -41
- package/src/sections/Home/Home.tsx +0 -21
- package/src/sections/Home/index.ts +0 -1
- package/src/sections/SideBar/Sidebar.stories.tsx +0 -64
- package/src/sections/SideBar/Sidebar.test.tsx +0 -75
- package/src/sections/SideBar/Sidebar.tsx +0 -69
- package/src/sections/SideBar/index.ts +0 -1
- package/src/sections/index.ts +0 -2
- package/src/store/api.test.ts +0 -157
- package/src/store/api.ts +0 -80
- package/src/store/index.ts +0 -4
- package/src/store/models/configuration.ts +0 -47
- package/src/store/models/download.ts +0 -33
- package/src/store/models/index.ts +0 -18
- package/src/store/models/login.test.ts +0 -48
- package/src/store/models/login.ts +0 -104
- package/src/store/models/manifest.ts +0 -117
- package/src/store/models/packages.ts +0 -42
- package/src/store/models/routes.ts +0 -10
- package/src/store/models/search.ts +0 -88
- package/src/store/models/utils.ts +0 -3
- package/src/store/storage.ts +0 -12
- package/src/store/store.ts +0 -15
- package/src/test/i18n-config.ts +0 -19
- package/src/test/test-react-testing-library.tsx +0 -45
- package/src/types/external-modules.d.ts +0 -2
- package/src/types/index.ts +0 -11
- package/src/types/packageMeta.ts +0 -95
- package/src/utils/.eslintrc +0 -5
- package/src/utils/cli-utils.test.ts +0 -67
- package/src/utils/cli-utils.ts +0 -53
- package/src/utils/index.ts +0 -11
- package/src/utils/loadable.tsx +0 -20
- package/src/utils/routes.ts +0 -8
- package/src/utils/token-generate.ts +0 -33
- package/src/utils/token.test.ts +0 -55
- package/src/utils/token.ts +0 -33
- package/src/utils/url.test.ts +0 -32
- package/src/utils/url.ts +0 -73
- package/src/utils/utils.test.ts +0 -146
- package/src/utils/utils.ts +0 -135
- package/tsconfig.build.json +0 -23
- package/tsconfig.json +0 -22
- package/vitest.config.mjs +0 -40
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
[](https://verdaccio.org)
|
|
4
4
|
[](https://github.com/verdaccio/verdaccio/blob/master/LICENSE)
|
|
5
5
|
[](https://github.com/verdaccio/verdaccio)
|
|
6
|
-
[](https://npmjs.com/package/@verdaccio/ui-components)
|
|
7
7
|
|
|
8
8
|
[](https://verdaccio.org/docs)
|
|
9
9
|
[](https://discord.com/channels/388674437219745793)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppRoute.js","names":["React","Route","ReactRouterDomRoute","Switch","NotFound","VersionProvider","loadable","VersionPage","Front","AppRoute","createElement","exact","path","ROOT","PACKAGE","PACKAGE_VERSION","SCOPE_PACKAGE_VERSION","SCOPE_PACKAGE"],"sources":["../../src/AppTest/AppRoute.tsx"],"sourcesContent":["import React from 'react';\nimport { Route as ReactRouterDomRoute, Switch } from 'react-router-dom';\n\nimport { NotFound, Route, VersionProvider, loadable } from '../index';\n\nconst VersionPage = loadable(() => import(/* webpackChunkName: \"Version\" */ './pages/Version'));\nconst Front = loadable(() => import(/* webpackChunkName: \"Home\" */ './pages/Front'));\n\nconst AppRoute: React.FC = () => {\n return (\n <Switch>\n <ReactRouterDomRoute exact={true} path={Route.ROOT}>\n <Front />\n </ReactRouterDomRoute>\n <ReactRouterDomRoute exact={true} path={Route.PACKAGE}>\n <VersionProvider>\n <VersionPage />\n </VersionProvider>\n </ReactRouterDomRoute>\n <ReactRouterDomRoute exact={true} path={Route.PACKAGE_VERSION}>\n <VersionProvider>\n <VersionPage />\n </VersionProvider>\n </ReactRouterDomRoute>\n <ReactRouterDomRoute exact={true} path={Route.SCOPE_PACKAGE_VERSION}>\n <VersionProvider>\n <VersionPage />\n </VersionProvider>\n </ReactRouterDomRoute>\n <ReactRouterDomRoute exact={true} path={Route.SCOPE_PACKAGE}>\n <VersionProvider>\n <VersionPage />\n </VersionProvider>\n </ReactRouterDomRoute>\n <ReactRouterDomRoute>\n <NotFound />\n </ReactRouterDomRoute>\n </Switch>\n );\n};\n\nexport default AppRoute;\n"],"mappings":"AAA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;IAACS,KAAK,EAAE,IAAK;IAACC,IAAI,EAAEX,KAAK,CAACgB;EAAc,gBAC1DjB,KAAA,CAAAU,aAAA,CAACL,eAAe,qBACdL,KAAA,CAAAU,aAAA,CAACH,WAAW,MAAE,CACC,CACE,CAAC,eACtBP,KAAA,CAAAU,aAAA,CAACR,mBAAmB,qBAClBF,KAAA,CAAAU,aAAA,CAACN,QAAQ,MAAE,CACQ,CACf,CAAC;AAEb,CAAC;AAED,eAAeK,QAAQ","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Home.js","names":["Home"],"sources":["../../../../src/AppTest/pages/Front/Home.ts"],"sourcesContent":["import { Home } from '../../../index';\n\nexport default Home;\n"],"mappings":"AAAA,SAASA,IAAI,QAAQ,gBAAgB;AAErC,eAAeA,IAAI","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["default"],"sources":["../../../../src/AppTest/pages/Front/index.ts"],"sourcesContent":["export { default } from './Home';\n"],"mappings":"AAAA,SAASA,OAAO,QAAQ,QAAQ","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Version.js","names":["React","useSelector","Forbidden","Loading","NotFound","VersionLayout","Version","manifestStore","state","manifest","isLoading","_state$loading","loading","models","createElement","forbidden","hasNotBeenFound"],"sources":["../../../../src/AppTest/pages/Version/Version.tsx"],"sourcesContent":["import React from 'react';\nimport { useSelector } from 'react-redux';\n\nimport Forbidden from '../../../components/Forbidden';\nimport { Loading, NotFound, RootState, VersionLayout } from '../../../index';\n\nconst Version: React.FC = () => {\n const manifestStore = useSelector((state: RootState) => state.manifest);\n const isLoading = useSelector((state: RootState) => state?.loading?.models.manifest);\n\n if (isLoading) {\n return <Loading />;\n }\n\n // @ts-expect-error\n if (manifestStore.forbidden) {\n return <Forbidden />;\n }\n\n // @ts-expect-error\n if (manifestStore.hasNotBeenFound) {\n return <NotFound />;\n }\n\n return <VersionLayout />;\n};\n\nexport default Version;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,WAAW,QAAQ,aAAa;AAEzC,OAAOC,SAAS,MAAM,+BAA+B;AACrD,SAASC,OAAO,EAAEC,QAAQ,EAAaC,aAAa,QAAQ,gBAAgB;AAE5E,IAAMC,OAAiB,GAAGA,CAAA,KAAM;EAC9B,IAAMC,aAAa,GAAGN,WAAW,CAAEO,KAAgB,IAAKA,KAAK,CAACC,QAAQ,CAAC;EACvE,IAAMC,SAAS,GAAGT,WAAW,CAAEO,KAAgB;IAAA,IAAAG,cAAA;IAAA,OAAKH,KAAK,aAALA,KAAK,gBAAAG,cAAA,GAALH,KAAK,CAAEI,OAAO,cAAAD,cAAA,uBAAdA,cAAA,CAAgBE,MAAM,CAACJ,QAAQ;EAAA,EAAC;EAEpF,IAAIC,SAAS,EAAE;IACb,oBAAOV,KAAA,CAAAc,aAAA,CAACX,OAAO,MAAE,CAAC;EACpB;;EAEA;EACA,IAAII,aAAa,CAACQ,SAAS,EAAE;IAC3B,oBAAOf,KAAA,CAAAc,aAAA,CAACZ,SAAS,MAAE,CAAC;EACtB;;EAEA;EACA,IAAIK,aAAa,CAACS,eAAe,EAAE;IACjC,oBAAOhB,KAAA,CAAAc,aAAA,CAACV,QAAQ,MAAE,CAAC;EACrB;EAEA,oBAAOJ,KAAA,CAAAc,aAAA,CAACT,aAAa,MAAE,CAAC;AAC1B,CAAC;AAED,eAAeC,OAAO","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["default"],"sources":["../../../../src/AppTest/pages/Version/index.ts"],"sourcesContent":["export { default } from './Version';\n"],"mappings":"AAAA,SAASA,OAAO,QAAQ,WAAW","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResetStyles.js","names":["makeStyles","React","resetStyles","theme","fontFamily","strong","fontWeight","semiBold","height","ul","margin","padding","listStyle","flex","concat","breakPoints","container","maxWidth","width","marginLeft","marginRight","ResetStyles","_ref","children","createElement","Fragment"],"sources":["../../src/Theme/ResetStyles.tsx"],"sourcesContent":["import { makeStyles } from '@mui/styles';\nimport React from 'react';\n\nimport { Theme } from './theme';\n\nconst resetStyles = makeStyles((theme: Theme) => ({\n '@global': {\n // eslint-disable-next-line max-len\n 'html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video':\n {\n fontFamily: '\"Roboto\", Helvetica Neue, Arial, sans-serif',\n },\n strong: {\n fontWeight: theme.fontWeight.semiBold,\n },\n 'html, body, #root': {\n height: '100%',\n },\n ul: {\n margin: 0,\n padding: 0,\n listStyle: 'none',\n },\n '.container': {\n padding: 15,\n flex: 1,\n height: '100%',\n\n [`@media screen and (min-width: ${theme.breakPoints.container}px)`]: {\n maxWidth: theme.breakPoints.container,\n width: '100%',\n marginLeft: 'auto',\n marginRight: 'auto',\n },\n },\n },\n}));\n\nconst ResetStyles: React.FC<any> = ({ children }) => {\n resetStyles();\n return <>{children}</>;\n};\n\nexport default ResetStyles;\n"],"mappings":"AAAA,SAASA,UAAU,QAAQ,aAAa;AACxC,OAAOC,KAAK,MAAM,OAAO;AAIzB,IAAMC,WAAW,GAAGF,UAAU,CAAEG,KAAY,KAAM;EAChD,SAAS,EAAE;IACT;IACA,4eAA4e,EAC1e;MACEC,UAAU,EAAE;IACd,CAAC;IACHC,MAAM,EAAE;MACNC,UAAU,EAAEH,KAAK,CAACG,UAAU,CAACC;IAC/B,CAAC;IACD,mBAAmB,EAAE;MACnBC,MAAM,EAAE;IACV,CAAC;IACDC,EAAE,EAAE;MACFC,MAAM,EAAE,CAAC;MACTC,OAAO,EAAE,CAAC;MACVC,SAAS,EAAE;IACb,CAAC;IACD,YAAY,EAAE;MACZD,OAAO,EAAE,EAAE;MACXE,IAAI,EAAE,CAAC;MACPL,MAAM,EAAE,MAAM;MAEd,kCAAAM,MAAA,CAAkCX,KAAK,CAACY,WAAW,CAACC,SAAS,WAAQ;QACnEC,QAAQ,EAAEd,KAAK,CAACY,WAAW,CAACC,SAAS;QACrCE,KAAK,EAAE,MAAM;QACbC,UAAU,EAAE,MAAM;QAClBC,WAAW,EAAE;MACf;IACF;EACF;AACF,CAAC,CAAC,CAAC;AAEH,IAAMC,WAA0B,GAAGC,IAAA,IAAkB;EAAA,IAAjB;IAAEC;EAAS,CAAC,GAAAD,IAAA;EAC9CpB,WAAW,CAAC,CAAC;EACb,oBAAOD,KAAA,CAAAuB,aAAA,CAAAvB,KAAA,CAAAwB,QAAA,QAAGF,QAAW,CAAC;AACxB,CAAC;AAED,eAAeF,WAAW","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StyleBaseline.js","names":["CssBaseline","React","ResetCSS","StyleBaseline","createElement","Fragment"],"sources":["../../src/Theme/StyleBaseline.tsx"],"sourcesContent":["import CssBaseline from '@mui/material/CssBaseline';\nimport 'normalize.css';\nimport React from 'react';\n\nimport ResetCSS from './ResetStyles';\n\nconst StyleBaseline: React.FC = () => (\n <>\n <CssBaseline />\n <ResetCSS />\n </>\n);\n\nexport default StyleBaseline;\n"],"mappings":"AAAA,OAAOA,WAAW,MAAM,2BAA2B;AACnD,OAAO,eAAe;AACtB,OAAOC,KAAK,MAAM,OAAO;AAEzB,OAAOC,QAAQ,MAAM,eAAe;AAEpC,IAAMC,aAAuB,GAAGA,CAAA,kBAC9BF,KAAA,CAAAG,aAAA,CAAAH,KAAA,CAAAI,QAAA,qBACEJ,KAAA,CAAAG,aAAA,CAACJ,WAAW,MAAE,CAAC,eACfC,KAAA,CAAAG,aAAA,CAACF,QAAQ,MAAE,CACX,CACH;AAED,eAAeC,aAAa","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThemeProvider.js","names":["ThemeProvider","MUIThemeProvider","StyledEngineProvider","React","createContext","useContext","useLocalStorage","useConfig","getTheme","ThemeContext","undefined","getDarkModeDefault","darkModeConfig","_window$matchMedia","_window","prefersDarkMode","window","matchMedia","call","matches","_ref","children","configOptions","isDarkModeDefault","darkMode","isSwitchThemeEnabled","showThemeSwitch","isDarkModeStorage","setIsDarkMode","isDarkMode","themeMode","currentTheme","primaryColor","createElement","Provider","value","injectFirst","theme","useCustomTheme"],"sources":["../../src/Theme/ThemeProvider.tsx"],"sourcesContent":["import { ThemeProvider as MUIThemeProvider, StyledEngineProvider } from '@mui/material/styles';\nimport React, { createContext, useContext } from 'react';\n\nimport useLocalStorage from '../hooks/useLocalStorage';\nimport { useConfig } from '../providers/AppConfigurationProvider';\nimport { ThemeMode, getTheme } from './theme';\n\ninterface Props {\n isDarkMode: boolean;\n setIsDarkMode: (isDarkMode: boolean) => void;\n}\n\nconst ThemeContext = createContext<undefined | Props>(undefined);\n\nfunction getDarkModeDefault(darkModeConfig?: boolean) {\n const prefersDarkMode = window.matchMedia?.('(prefers-color-scheme:dark)').matches;\n if (typeof darkModeConfig === 'boolean') {\n return darkModeConfig;\n } else {\n return prefersDarkMode;\n }\n}\n\nconst ThemeProvider: React.FC<{ children: any }> = ({ children }) => {\n const { configOptions } = useConfig();\n const isDarkModeDefault = getDarkModeDefault(configOptions.darkMode);\n const isSwitchThemeEnabled = configOptions.showThemeSwitch;\n const [isDarkModeStorage, setIsDarkMode] = useLocalStorage('darkMode', isDarkModeDefault);\n const isDarkMode = isSwitchThemeEnabled === true ? isDarkModeStorage : isDarkModeDefault;\n const themeMode: ThemeMode = isDarkMode ? 'dark' : 'light';\n\n const currentTheme = getTheme(themeMode, configOptions.primaryColor);\n return (\n <ThemeContext.Provider value={{ isDarkMode, setIsDarkMode }}>\n <StyledEngineProvider injectFirst={true}>\n <MUIThemeProvider theme={currentTheme}>{children}</MUIThemeProvider>\n </StyledEngineProvider>\n </ThemeContext.Provider>\n );\n};\n\nexport const useCustomTheme = () => useContext(ThemeContext);\n\nexport { ThemeProvider };\n"],"mappings":"AAAA,SAASA,aAAa,IAAIC,gBAAgB,EAAEC,oBAAoB,QAAQ,sBAAsB;AAC9F,OAAOC,KAAK,IAAIC,aAAa,EAAEC,UAAU,QAAQ,OAAO;AAExD,OAAOC,eAAe,MAAM,0BAA0B;AACtD,SAASC,SAAS,QAAQ,uCAAuC;AACjE,SAAoBC,QAAQ,QAAQ,SAAS;AAO7C,IAAMC,YAAY,gBAAGL,aAAa,CAAoBM,SAAS,CAAC;AAEhE,SAASC,kBAAkBA,CAACC,cAAwB,EAAE;EAAA,IAAAC,kBAAA,EAAAC,OAAA;EACpD,IAAMC,eAAe,IAAAF,kBAAA,GAAG,CAAAC,OAAA,GAAAE,MAAM,EAACC,UAAU,cAAAJ,kBAAA,uBAAjBA,kBAAA,CAAAK,IAAA,CAAAJ,OAAA,EAAoB,6BAA6B,CAAC,CAACK,OAAO;EAClF,IAAI,OAAOP,cAAc,KAAK,SAAS,EAAE;IACvC,OAAOA,cAAc;EACvB,CAAC,MAAM;IACL,OAAOG,eAAe;EACxB;AACF;AAEA,IAAMf,aAA0C,GAAGoB,IAAA,IAAkB;EAAA,IAAjB;IAAEC;EAAS,CAAC,GAAAD,IAAA;EAC9D,IAAM;IAAEE;EAAc,CAAC,GAAGf,SAAS,CAAC,CAAC;EACrC,IAAMgB,iBAAiB,GAAGZ,kBAAkB,CAACW,aAAa,CAACE,QAAQ,CAAC;EACpE,IAAMC,oBAAoB,GAAGH,aAAa,CAACI,eAAe;EAC1D,IAAM,CAACC,iBAAiB,EAAEC,aAAa,CAAC,GAAGtB,eAAe,CAAC,UAAU,EAAEiB,iBAAiB,CAAC;EACzF,IAAMM,UAAU,GAAGJ,oBAAoB,KAAK,IAAI,GAAGE,iBAAiB,GAAGJ,iBAAiB;EACxF,IAAMO,SAAoB,GAAGD,UAAU,GAAG,MAAM,GAAG,OAAO;EAE1D,IAAME,YAAY,GAAGvB,QAAQ,CAACsB,SAAS,EAAER,aAAa,CAACU,YAAY,CAAC;EACpE,oBACE7B,KAAA,CAAA8B,aAAA,CAACxB,YAAY,CAACyB,QAAQ;IAACC,KAAK,EAAE;MAAEN,UAAU;MAAED;IAAc;EAAE,gBAC1DzB,KAAA,CAAA8B,aAAA,CAAC/B,oBAAoB;IAACkC,WAAW,EAAE;EAAK,gBACtCjC,KAAA,CAAA8B,aAAA,CAAChC,gBAAgB;IAACoC,KAAK,EAAEN;EAAa,GAAEV,QAA2B,CAC/C,CACD,CAAC;AAE5B,CAAC;AAED,OAAO,IAAMiB,cAAc,GAAGA,CAAA,KAAMjC,UAAU,CAACI,YAAY,CAAC;AAE5D,SAAST,aAAa","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colors.js","names":["PRIMARY_COLOR"],"sources":["../../src/Theme/colors.ts"],"sourcesContent":["export const PRIMARY_COLOR = '#4b5e40';\n"],"mappings":"AAAA,OAAO,IAAMA,aAAa,GAAG,SAAS","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["_colors","colors","ThemeProvider","useCustomTheme","default","StyleBaseline","getTheme"],"sources":["../../src/Theme/index.ts"],"sourcesContent":["export * as colors from './colors';\nexport { ThemeProvider, useCustomTheme } from './ThemeProvider';\nexport { default as StyleBaseline } from './StyleBaseline';\nexport { getTheme } from './theme';\nexport type { Theme, FontWeight } from './theme';\n"],"mappings":"yBAAwB,UAAU;AAAA,SAAAA,OAAA,IAAtBC,MAAM;AAClB,SAASC,aAAa,EAAEC,cAAc,QAAQ,iBAAiB;AAC/D,SAASC,OAAO,IAAIC,aAAa,QAAQ,iBAAiB;AAC1D,SAASC,QAAQ,QAAQ,SAAS","ignoreList":[]}
|
package/build/Theme/theme.d.ts
CHANGED
|
@@ -114,7 +114,7 @@ export interface CustomTheme {
|
|
|
114
114
|
breakPoints: typeof breakPoints;
|
|
115
115
|
}
|
|
116
116
|
export type Theme = MuiTheme & CustomTheme;
|
|
117
|
-
export declare const getTheme: (themeMode: ThemeMode, primaryColor
|
|
117
|
+
export declare const getTheme: (themeMode: ThemeMode, primaryColor?: string) => Theme;
|
|
118
118
|
declare module '@mui/material/styles' {
|
|
119
119
|
interface Theme extends CustomTheme {
|
|
120
120
|
}
|
package/build/Theme/theme.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.js","names":["createTheme","PRIMARY_COLOR","colors","black","white","red","orange","greySuperLight","greyLight","greyLight2","greyLight3","greyDark","greyDark2","greyChateau","greyGainsboro","greyAthens","eclipse","paleNavy","saltpan","snow","love","nobel01","nobel02","primary","secondary","background","dodgerBlue","cyanBlue","themeModes","light","_objectSpread","dark","applyPrimaryColor","mode","primaryColor","fontSize","xxl","xl","lg","md","default","sm","ssm","fontWeight","regular","semiBold","bold","breakPoints","xsmall","small","medium","large","container","xlarge","customizedTheme","getTheme","themeMode","palette","typography","fontFamily","join","main","error","components","MuiPaper","styleOverrides","root","backgroundImage"],"sources":["../../src/Theme/theme.ts"],"sourcesContent":["import { Theme as MuiTheme, createTheme } from '@mui/material/styles';\n\nimport { PRIMARY_COLOR } from './colors';\n\nconst colors = {\n black: '#000',\n white: '#fff',\n red: '#d32f2f',\n orange: '#cd4000',\n greySuperLight: '#f5f5f5',\n greyLight: '#d3d3d3',\n greyLight2: '#908ba1',\n greyLight3: '#f3f4f2',\n greyDark: '#a9a9a9',\n greyDark2: '#586069',\n greyChateau: '#95989a',\n greyGainsboro: '#e3e3e3',\n greyAthens: '#d3dddd',\n eclipse: '#3c3c3c',\n paleNavy: '#e4e8f1',\n saltpan: '#f7f8f6',\n snow: '#f9f9f9',\n love: '#e25555',\n nobel01: '#999999',\n nobel02: '#9f9f9f',\n primary: PRIMARY_COLOR,\n secondary: '#20232a',\n background: '#f4f4f4',\n dodgerBlue: '#1ba1f2',\n cyanBlue: '#253341',\n};\n\nconst themeModes = {\n light: {\n ...colors,\n },\n dark: {\n ...colors,\n primary: '#ffffff',\n secondary: '#424242',\n background: '#1a202c',\n },\n};\n\nfunction applyPrimaryColor(mode: ThemeMode, primaryColor?: string): any {\n if (mode === 'light') {\n themeModes['light'].primary = primaryColor || PRIMARY_COLOR;\n }\n\n return themeModes[mode];\n}\n\nexport type ThemeMode = keyof typeof themeModes;\n\nconst fontSize = {\n xxl: 26,\n xl: 24,\n lg: 21,\n md: 18,\n default: 16,\n sm: 14,\n ssm: 12,\n};\n\nexport type FontSize = keyof typeof fontSize;\n\nconst fontWeight = {\n light: 300,\n regular: 400,\n semiBold: 500,\n bold: 700,\n};\n\nexport type FontWeight = keyof typeof fontWeight;\n\nexport const breakPoints = {\n xsmall: 400,\n small: 576,\n medium: 768,\n large: 1024,\n container: 1240,\n xlarge: 1275,\n};\n\nexport type BreakPoints = typeof breakPoints;\n\nconst customizedTheme = {\n fontSize,\n fontWeight,\n breakPoints,\n};\n\ntype CustomizedTheme = typeof customizedTheme;\n\nexport interface CustomTheme {\n fontSize: typeof fontSize;\n fontWeight: typeof fontWeight;\n breakPoints: typeof breakPoints;\n}\n\nexport type Theme = MuiTheme & CustomTheme;\n\nexport const getTheme = (themeMode: ThemeMode, primaryColor?: string): Theme => {\n const palette = applyPrimaryColor(themeMode, primaryColor);\n return createTheme({\n typography: {\n fontFamily: [\n '-apple-system',\n 'BlinkMacSystemFont',\n '\"Helvetica Neue\"',\n 'Arial',\n 'sans-serif',\n ].join(','),\n },\n palette: {\n mode: themeMode,\n ...palette,\n primary: { main: palette.primary },\n secondary: { main: palette.secondary },\n error: { main: palette.red },\n background: {\n default: palette.background,\n },\n },\n // Looks better in darkmode without background opacity\n // https://mui.com/material-ui/migration/v5-component-changes/#change-dark-mode-background-opacity\n components: {\n MuiPaper: {\n styleOverrides: { root: { backgroundImage: 'unset' } },\n },\n },\n ...customizedTheme,\n }) as Theme;\n};\n\ndeclare module '@mui/material/styles' {\n interface Theme extends CustomTheme {}\n interface ThemeOptions extends CustomTheme {}\n}\n\ndeclare module '@mui/material/styles/createTheme' {\n /* eslint-disable-next-line @typescript-eslint/no-empty-interface */\n interface Theme extends CustomizedTheme {}\n /* eslint-disable-next-line @typescript-eslint/no-empty-interface */\n interface DeprecatedThemeOptions extends CustomizedTheme {}\n}\n\ndeclare module '@mui/material/styles/createPalette' {\n interface CustomPalette {\n black: string;\n white: string;\n red: string;\n orange: string;\n greySuperLight: string;\n greyLight: string;\n greyLight2: string;\n greyLight3: string;\n greyDark: string;\n greyDark2: string;\n greyChateau: string;\n greyGainsboro: string;\n greyAthens: string;\n eclipse: string;\n paleNavy: string;\n saltpan: string;\n snow: string;\n love: string;\n nobel01: string;\n nobel02: string;\n background: string;\n dodgerBlue: string;\n cyanBlue: string;\n }\n\n /* eslint-disable-next-line @typescript-eslint/no-empty-interface */\n interface Palette extends CustomPalette {}\n /* eslint-disable-next-line @typescript-eslint/no-empty-interface */\n interface PaletteOptions extends Partial<CustomPalette> {}\n}\n"],"mappings":";;;;;AAAA,SAA4BA,WAAW,QAAQ,sBAAsB;AAErE,SAASC,aAAa,QAAQ,UAAU;AAExC,IAAMC,MAAM,GAAG;EACbC,KAAK,EAAE,MAAM;EACbC,KAAK,EAAE,MAAM;EACbC,GAAG,EAAE,SAAS;EACdC,MAAM,EAAE,SAAS;EACjBC,cAAc,EAAE,SAAS;EACzBC,SAAS,EAAE,SAAS;EACpBC,UAAU,EAAE,SAAS;EACrBC,UAAU,EAAE,SAAS;EACrBC,QAAQ,EAAE,SAAS;EACnBC,SAAS,EAAE,SAAS;EACpBC,WAAW,EAAE,SAAS;EACtBC,aAAa,EAAE,SAAS;EACxBC,UAAU,EAAE,SAAS;EACrBC,OAAO,EAAE,SAAS;EAClBC,QAAQ,EAAE,SAAS;EACnBC,OAAO,EAAE,SAAS;EAClBC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D,OAAO,IAAMQ,QAAQ,GAAGA,CAACC,SAAoB,EAAEtB,YAAqB,KAAY;EAC9E,IAAMuB,OAAO,GAAGzB,iBAAiB,CAACwB,SAAS,EAAEtB,YAAY,CAAC;EAC1D,OAAOlC,WAAW,CAAA8B,aAAA;IAChB4B,UAAU,EAAE;MACVC,UAAU,EAAE,CACV,eAAe,EACf,oBAAoB,EACpB,kBAAkB,EAClB,OAAO,EACP,YAAY,CACb,CAACC,IAAI,CAAC,GAAG;IACZ,CAAC;IACDH,OAAO,EAAA3B,aAAA,CAAAA,aAAA;MACLG,IAAI,EAAEuB;IAAS,GACZC,OAAO;MACVlC,OAAO,EAAE;QAAEsC,IAAI,EAAEJ,OAAO,CAAClC;MAAQ,CAAC;MAClCC,SAAS,EAAE;QAAEqC,IAAI,EAAEJ,OAAO,CAACjC;MAAU,CAAC;MACtCsC,KAAK,EAAE;QAAED,IAAI,EAAEJ,OAAO,CAACpD;MAAI,CAAC;MAC5BoB,UAAU,EAAE;QACVe,OAAO,EAAEiB,OAAO,CAAChC;MACnB;IAAC,EACF;IACD;IACA;IACAsC,UAAU,EAAE;MACVC,QAAQ,EAAE;QACRC,cAAc,EAAE;UAAEC,IAAI,EAAE;YAAEC,eAAe,EAAE;UAAQ;QAAE;MACvD;IACF;EAAC,GACEb,eAAe,CACnB,CAAC;AACJ,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionBar.js","names":["Box","Stack","React","useState","url","RawViewer","ActionBarAction","ActionBar","_ref","showRaw","showDownloadTarball","packageMeta","isRawViewerOpen","setIsRawViewerOpen","latest","homepage","bugs","dist","actions","isURL","push","type","link","tarball","action","createElement","alignItems","display","sx","my","direction","spacing","map","_extends","key","isOpen","onClose"],"sources":["../../../src/components/ActionBar/ActionBar.tsx"],"sourcesContent":["/* eslint-disable verdaccio/jsx-spread */\nimport Box from '@mui/material/Box';\nimport Stack from '@mui/material/Stack';\nimport React, { useState } from 'react';\n\nimport { url } from '../../utils';\nimport RawViewer from '../RawViewer';\nimport ActionBarAction, { ActionBarActionProps } from './ActionBarAction';\n\nexport type Props = {\n showRaw?: boolean;\n showDownloadTarball?: boolean;\n packageMeta: any;\n};\n\nconst ActionBar: React.FC<Props> = ({ showRaw, showDownloadTarball = true, packageMeta }) => {\n const [isRawViewerOpen, setIsRawViewerOpen] = useState(false);\n\n if (!packageMeta?.latest) {\n return null;\n }\n\n const { homepage, bugs, dist } = packageMeta.latest;\n\n const actions: ActionBarActionProps[] = [];\n\n if (homepage && url.isURL(homepage)) {\n actions.push({ type: 'VISIT_HOMEPAGE', link: homepage });\n }\n\n if (bugs?.url && url.isURL(bugs.url)) {\n actions.push({ type: 'OPEN_AN_ISSUE', link: bugs.url });\n }\n\n if (dist?.tarball && url.isURL(dist.tarball) && showDownloadTarball) {\n actions.push({ type: 'DOWNLOAD_TARBALL', link: dist.tarball });\n }\n\n if (showRaw) {\n actions.push({ type: 'RAW_DATA', action: () => setIsRawViewerOpen(true) });\n }\n\n return (\n <Box alignItems=\"center\" display=\"flex\" sx={{ my: 2 }}>\n <Stack direction=\"row\" spacing={1}>\n {actions.map((action) => (\n <ActionBarAction key={action.type} {...action} />\n ))}\n {isRawViewerOpen && (\n <RawViewer\n isOpen={isRawViewerOpen}\n onClose={() => {\n setIsRawViewerOpen(false);\n }}\n packageMeta={packageMeta}\n />\n )}\n </Stack>\n </Box>\n );\n};\n\nexport default ActionBar;\n"],"mappings":";AAAA;AACA,OAAOA,GAAG,MAAM,mBAAmB;AACnC,OAAOC,KAAK,MAAM,qBAAqB;AACvC,OAAOC,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AAEvC,SAASC,GAAG,QAAQ,aAAa;AACjC,OAAOC,SAAS,MAAM,cAAc;AACpC,OAAOC,eAAe,MAAgC,mBAAmB;AAQzE,IAAMC,SAA0B,GAAGC,IAAA,IAA0D;EAAA,IAAzD;IAAEC,OAAO;IAAEC,mBAAmB,GAAG,IAAI;IAAEC;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AAC,MAAM;IAACC,EAAE,EAAE;MAAEC,EAAE,EAAE;IAAE;EAAE,gBACpD3B,KAAA,CAAAuB,aAAA,CAACxB,KAAK;IAAC6B,SAAS,EAAC,KAAK;IAACC,OAAO,EAAE;EAAE,GAC/Bb,OAAO,CAACc,GAAG,CAAER,MAAM,iBAClBtB,KAAA,CAAAuB,aAAA,CAACnB,eAAe,EAAA2B,QAAA;IAACC,GAAG,EAAEV,MAAM,CAACH;EAAK,GAAKG,MAAM,CAAG,CACjD,CAAC,EACDZ,eAAe,iBACdV,KAAA,CAAAuB,aAAA,CAACpB,SAAS;IACR8B,MAAM,EAAEvB,eAAgB;IACxBwB,OAAO,EAAEA,CAAA,KAAM;MACbvB,kBAAkB,CAAC,KAAK,CAAC;IAC3B,CAAE;IACFF,WAAW,EAAEA;EAAY,CAC1B,CAEE,CACJ,CAAC;AAEV,CAAC;AAED,eAAeJ,SAAS","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionBarAction.js","names":["BugReportIcon","DownloadIcon","HomeIcon","RawOnIcon","CircularProgress","FabMUI","Tooltip","React","useCallback","useTranslation","useDispatch","useSelector","LinkExternal","Fab","_styled","process","env","NODE_ENV","target","label","_ref","theme","backgroundColor","palette","mode","primary","main","cyanBlue","color","white","ActionBarAction","_ref2","type","link","action","t","dispatch","isLoading","state","_state$loading","loading","models","download","handleDownload","_asyncToGenerator","getTarball","createElement","title","to","variant","size","sx","marginX","onClick"],"sources":["../../../src/components/ActionBar/ActionBarAction.tsx"],"sourcesContent":["import styled from '@emotion/styled';\nimport BugReportIcon from '@mui/icons-material/BugReport';\nimport DownloadIcon from '@mui/icons-material/CloudDownload';\nimport HomeIcon from '@mui/icons-material/Home';\nimport RawOnIcon from '@mui/icons-material/RawOn';\nimport CircularProgress from '@mui/material/CircularProgress';\nimport FabMUI from '@mui/material/Fab';\nimport Tooltip from '@mui/material/Tooltip';\nimport React, { useCallback } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useDispatch, useSelector } from 'react-redux';\n\nimport { Theme } from '../../Theme';\nimport { Dispatch, RootState } from '../../store/store';\nimport LinkExternal from '../LinkExternal';\n\nexport const Fab = styled(FabMUI)<{ theme?: Theme }>(({ theme }) => ({\n backgroundColor:\n theme.palette.mode === 'light' ? theme.palette.primary.main : theme.palette.cyanBlue,\n '&:hover': {\n color: theme.palette.mode === 'light' ? theme.palette.primary.main : theme.palette.cyanBlue,\n },\n color: theme.palette.white,\n}));\n\ntype ActionType = 'VISIT_HOMEPAGE' | 'OPEN_AN_ISSUE' | 'DOWNLOAD_TARBALL' | 'RAW_DATA';\n\nexport interface ActionBarActionProps {\n type: ActionType;\n link?: string;\n action?: () => void;\n}\n\n/* eslint-disable react/jsx-no-bind */\nconst ActionBarAction: React.FC<ActionBarActionProps> = ({ type, link, action }) => {\n const { t } = useTranslation();\n const dispatch = useDispatch<Dispatch>();\n const isLoading = useSelector((state: RootState) => state?.loading?.models.download);\n\n const handleDownload = useCallback(async () => {\n dispatch.download.getTarball({ link });\n }, [dispatch, link]);\n\n switch (type) {\n case 'VISIT_HOMEPAGE':\n return (\n <Tooltip title={t('action-bar-action.visit-home-page') as string}>\n <LinkExternal to={link} variant=\"button\">\n <Fab size=\"small\">\n <HomeIcon />\n </Fab>\n </LinkExternal>\n </Tooltip>\n );\n case 'OPEN_AN_ISSUE':\n return (\n <Tooltip title={t('action-bar-action.open-an-issue') as string}>\n <LinkExternal to={link} variant=\"button\">\n <Fab size=\"small\">\n <BugReportIcon />\n </Fab>\n </LinkExternal>\n </Tooltip>\n );\n case 'DOWNLOAD_TARBALL':\n return (\n <Tooltip title={t('action-bar-action.download-tarball') as string}>\n {isLoading ? (\n <CircularProgress sx={{ marginX: 0 }}>\n <Fab data-testid=\"download-tarball-btn\" onClick={handleDownload} size=\"small\">\n <DownloadIcon />\n </Fab>\n </CircularProgress>\n ) : (\n <Fab data-testid=\"download-tarball-btn\" onClick={handleDownload} size=\"small\">\n <DownloadIcon />\n </Fab>\n )}\n </Tooltip>\n );\n case 'RAW_DATA':\n return (\n <Tooltip title={t('action-bar-action.raw') as string}>\n <Fab data-testid=\"raw-btn\" onClick={action} size=\"small\">\n <RawOnIcon />\n </Fab>\n </Tooltip>\n );\n }\n};\n\nexport default ActionBarAction;\n"],"mappings":";;;AACA,OAAOA,aAAa,MAAM,+BAA+B;AACzD,OAAOC,YAAY,MAAM,mCAAmC;AAC5D,OAAOC,QAAQ,MAAM,0BAA0B;AAC/C,OAAOC,SAAS,MAAM,2BAA2B;AACjD,OAAOC,gBAAgB,MAAM,gCAAgC;AAC7D,OAAOC,MAAM,MAAM,mBAAmB;AACtC,OAAOC,OAAO,MAAM,uBAAuB;AAC3C,OAAOC,KAAK,IAAIC,WAAW,QAAQ,OAAO;AAC1C,SAASC,cAAc,QAAQ,eAAe;AAC9C,SAASC,WAAW,EAAEC,WAAW,QAAQ,aAAa;AAItD,OAAOC,YAAY,MAAM,iBAAiB;AAE1C,OAAO,IAAMC,GAAG,gBAAGC,OAAA,CAAOT,MAAM,EAAAU,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,EAAC,CAAoBC,IAAA;EAAA,IAAC;IAAEC;EAAM,CAAC,GAAAD,IAAA;EAAA,OAAM;IACnEE,eAAe,EACbD,KAAK,CAACE,OAAO,CAACC,IAAI,KAAK,OAAO,GAAGH,KAAK,CAACE,OAAO,CAACE,OAAO,CAACC,IAAI,GAAGL,KAAK,CAACE,OAAO,CAACI,QAAQ;IACtF,SAAS,EAAE;MACTC,KAAK,EAAEP,KAAK,CAACE,OAAO,CAACC,IAAI,KAAK,OAAO,GAAGH,KAAK,CAACE,OAAO,CAACE,OAAO,CAACC,IAAI,GAAGL,KAAK,CAACE,OAAO,CAACI;IACrF,CAAC;IACDC,KAAK,EAAEP,KAAK,CAACE,OAAO,CAACM;EACvB,CAAC;AAAA,CAAC,EAAAd,OAAA,CAAAC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MAAQ,gBACtC1C,KAAA,CAAAuC,aAAA,CAACjC,GAAG;QAACqC,IAAI,EAAC;MAAO,gBACf3C,KAAA,CAAAuC,aAAA,CAAC9C,aAAa,MAAE,CACb,CACO,CACP,CAAC;IAEd,KAAK,kBAAkB;MACrB,oBACEO,KAAA,CAAAuC,aAAA,CAACxC,OAAO;QAACyC,KAAK,EAAEZ,CAAC,CAAC,oCAAoC;MAAY,GAC/DE,SAAS,gBACR9B,KAAA,CAAAuC,aAAA,CAAC1C,gBAAgB;QAAC+C,EAAE,EAAE;UAAEC,OAAO,EAAE;QAAE;MAAE,gBACnC7C,KAAA,CAAAuC,aAAA,CAACjC,GAAG;QAAC,eAAY,sBAAsB;QAACwC,OAAO,EAAEV,cAAe;QAACO,IAAI,EAAC;MAAO,gBAC3E3C,KAAA,CAAAuC,aAAA,CAAC7C,YAAY,MAAE,CACZ,CACW,CAAC,gBAEnBM,KAAA,CAAAuC,aAAA,CAACjC,GAAG;QAAC,eAAY,sBAAsB;QAACwC,OAAO,EAAEV,cAAe;QAACO,IAAI,EAAC;MAAO,gBAC3E3C,KAAA,CAAAuC,aAAA,CAAC7C,YAAY,MAAE,CACZ,CAEA,CAAC;IAEd,KAAK,UAAU;MACb,oBACEM,KAAA,CAAAuC,aAAA,CAACxC,OAAO;QAACyC,KAAK,EAAEZ,CAAC,CAAC,uBAAuB;MAAY,gBACnD5B,KAAA,CAAAuC,aAAA,CAACjC,GAAG;QAAC,eAAY,SAAS;QAACwC,OAAO,EAAEnB,MAAO;QAACgB,IAAI,EAAC;MAAO,gBACtD3C,KAAA,CAAAuC,aAAA,CAAC3C,SAAS,MAAE,CACT,CACE,CAAC;EAEhB;AACF,CAAC;AAED,eAAe2B,eAAe","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["default"],"sources":["../../../src/components/ActionBar/index.ts"],"sourcesContent":["export { default } from './ActionBar';\n"],"mappings":"AAAA,SAASA,OAAO,QAAQ,aAAa","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Author.js","names":["List","React","useTranslation","Person","AuthorListItem","StyledText","Author","_ref","packageMeta","t","author","name","packageName","version","latest","createElement","subheader","variant","sx","my","person","withText"],"sources":["../../../src/components/Author/Author.tsx"],"sourcesContent":["import List from '@mui/material/List';\nimport React, { FC } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport Person from '../Person';\nimport { AuthorListItem, StyledText } from './styles';\n\nconst Author: FC<{ packageMeta }> = ({ packageMeta }) => {\n const { t } = useTranslation();\n\n if (!packageMeta) {\n return null;\n }\n\n const { author, name: packageName, version } = packageMeta.latest;\n\n if (!author) {\n return null;\n }\n\n return (\n <List subheader={<StyledText variant={'subtitle1'}>{t('sidebar.author.title')}</StyledText>}>\n <AuthorListItem sx={{ my: 1 }}>\n <Person packageName={packageName} person={author} version={version} withText={true} />\n </AuthorListItem>\n </List>\n );\n};\n\nexport default Author;\n"],"mappings":"AAAA,OAAOA,IAAI,MAAM,oBAAoB;AACrC,OAAOC,KAAK,MAAc,OAAO;AACjC,SAASC,cAAc,QAAQ,eAAe;AAE9C,OAAOC,MAAM,MAAM,WAAW;AAC9B,SAASC,cAAc,EAAEC,UAAU,QAAQ,UAAU;AAErD,IAAMC,MAA2B,GAAGC,IAAA,IAAqB;EAAA,IAApB;IAAEC;EAAY,CAAC,GAAAD,IAAA;EAClD,IAAM;IAAEE;EAAE,CAAC,GAAGP,cAAc,CAAC,CAAC;EAE9B,IAAI,CAACM,WAAW,EAAE;IAChB,OAAO,IAAI;EACb;EAEA,IAAM;IAAEE,MAAM;IAAEC,IAAI,EAAEC,WAAW;IAAEC;EAAQ,CAAC,GAAGL,WAAW,CAACM,MAAM;EAEjE,IAAI,CAACJ,MAAM,EAAE;IACX,OAAO,IAAI;EACb;EAEA,oBACET,KAAA,CAAAc,aAAA,CAACf,IAAI;IAACgB,SAAS,eAAEf,KAAA,CAAAc,aAAA,CAACV,UAAU;MAACY,OAAO,EAAE;IAAY,GAAER,CAAC,CAAC,sBAAsB,CAAc;EAAE,gBAC1FR,KAAA,CAAAc,aAAA,CAACX,cAAc;IAACc,EAAE,EAAE;MAAEC,EAAE,EAAE;IAAE;EAAE,gBAC5BlB,KAAA,CAAAc,aAAA,CAACZ,MAAM;IAACS,WAAW,EAAEA,WAAY;IAACQ,MAAM,EAAEV,MAAO;IAACG,OAAO,EAAEA,OAAQ;IAACQ,QAAQ,EAAE;EAAK,CAAE,CACvE,CACZ,CAAC;AAEX,CAAC;AAED,eAAef,MAAM","ignoreList":[]}
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
|
+
|
|
3
|
+
exports[`<Author /> component > should render the component in default state 1`] = `
|
|
4
|
+
Object {
|
|
5
|
+
"asFragment": [Function],
|
|
6
|
+
"baseElement": <body>
|
|
7
|
+
<div>
|
|
8
|
+
<ul
|
|
9
|
+
class="MuiList-root MuiList-padding MuiList-subheader makeStyles-MuiList-root"
|
|
10
|
+
>
|
|
11
|
+
<h6
|
|
12
|
+
class="MuiTypography-root MuiTypography-subtitle1 e4ifo371 makeStyles-MuiTypography-root-StyledText"
|
|
13
|
+
>
|
|
14
|
+
sidebar.author.title
|
|
15
|
+
</h6>
|
|
16
|
+
<li
|
|
17
|
+
class="MuiListItem-root MuiListItem-gutters MuiListItem-padding e4ifo370 makeStyles-MuiListItem-root-AuthorListItem"
|
|
18
|
+
>
|
|
19
|
+
<a
|
|
20
|
+
class="MuiTypography-root MuiTypography-caption MuiLink-root MuiLink-underlineHover makeStyles-MuiTypography-root-MuiLink-root"
|
|
21
|
+
data-mui-internal-clone-element="true"
|
|
22
|
+
data-testid="verdaccio user"
|
|
23
|
+
href="mailto:verdaccio.user@verdaccio.org?subject=verdaccio v4.0.0"
|
|
24
|
+
rel="noopener noreferrer"
|
|
25
|
+
target="_blank"
|
|
26
|
+
>
|
|
27
|
+
<div
|
|
28
|
+
class="MuiAvatar-root MuiAvatar-circular makeStyles-MuiAvatar-root"
|
|
29
|
+
>
|
|
30
|
+
<img
|
|
31
|
+
alt="verdaccio user"
|
|
32
|
+
class="MuiAvatar-img makeStyles-MuiAvatar-img"
|
|
33
|
+
src="https://www.gravatar.com/avatar/000000"
|
|
34
|
+
/>
|
|
35
|
+
</div>
|
|
36
|
+
</a>
|
|
37
|
+
<h6
|
|
38
|
+
class="MuiTypography-root MuiTypography-subtitle2 makeStyles-MuiTypography-root"
|
|
39
|
+
>
|
|
40
|
+
verdaccio user
|
|
41
|
+
</h6>
|
|
42
|
+
</li>
|
|
43
|
+
</ul>
|
|
44
|
+
</div>
|
|
45
|
+
</body>,
|
|
46
|
+
"container": <div>
|
|
47
|
+
<ul
|
|
48
|
+
class="MuiList-root MuiList-padding MuiList-subheader makeStyles-MuiList-root"
|
|
49
|
+
>
|
|
50
|
+
<h6
|
|
51
|
+
class="MuiTypography-root MuiTypography-subtitle1 e4ifo371 makeStyles-MuiTypography-root-StyledText"
|
|
52
|
+
>
|
|
53
|
+
sidebar.author.title
|
|
54
|
+
</h6>
|
|
55
|
+
<li
|
|
56
|
+
class="MuiListItem-root MuiListItem-gutters MuiListItem-padding e4ifo370 makeStyles-MuiListItem-root-AuthorListItem"
|
|
57
|
+
>
|
|
58
|
+
<a
|
|
59
|
+
class="MuiTypography-root MuiTypography-caption MuiLink-root MuiLink-underlineHover makeStyles-MuiTypography-root-MuiLink-root"
|
|
60
|
+
data-mui-internal-clone-element="true"
|
|
61
|
+
data-testid="verdaccio user"
|
|
62
|
+
href="mailto:verdaccio.user@verdaccio.org?subject=verdaccio v4.0.0"
|
|
63
|
+
rel="noopener noreferrer"
|
|
64
|
+
target="_blank"
|
|
65
|
+
>
|
|
66
|
+
<div
|
|
67
|
+
class="MuiAvatar-root MuiAvatar-circular makeStyles-MuiAvatar-root"
|
|
68
|
+
>
|
|
69
|
+
<img
|
|
70
|
+
alt="verdaccio user"
|
|
71
|
+
class="MuiAvatar-img makeStyles-MuiAvatar-img"
|
|
72
|
+
src="https://www.gravatar.com/avatar/000000"
|
|
73
|
+
/>
|
|
74
|
+
</div>
|
|
75
|
+
</a>
|
|
76
|
+
<h6
|
|
77
|
+
class="MuiTypography-root MuiTypography-subtitle2 makeStyles-MuiTypography-root"
|
|
78
|
+
>
|
|
79
|
+
verdaccio user
|
|
80
|
+
</h6>
|
|
81
|
+
</li>
|
|
82
|
+
</ul>
|
|
83
|
+
</div>,
|
|
84
|
+
"debug": [Function],
|
|
85
|
+
"findAllByAltText": [Function],
|
|
86
|
+
"findAllByDisplayValue": [Function],
|
|
87
|
+
"findAllByLabelText": [Function],
|
|
88
|
+
"findAllByPlaceholderText": [Function],
|
|
89
|
+
"findAllByRole": [Function],
|
|
90
|
+
"findAllByTestId": [Function],
|
|
91
|
+
"findAllByText": [Function],
|
|
92
|
+
"findAllByTitle": [Function],
|
|
93
|
+
"findByAltText": [Function],
|
|
94
|
+
"findByDisplayValue": [Function],
|
|
95
|
+
"findByLabelText": [Function],
|
|
96
|
+
"findByPlaceholderText": [Function],
|
|
97
|
+
"findByRole": [Function],
|
|
98
|
+
"findByTestId": [Function],
|
|
99
|
+
"findByText": [Function],
|
|
100
|
+
"findByTitle": [Function],
|
|
101
|
+
"getAllByAltText": [Function],
|
|
102
|
+
"getAllByDisplayValue": [Function],
|
|
103
|
+
"getAllByLabelText": [Function],
|
|
104
|
+
"getAllByPlaceholderText": [Function],
|
|
105
|
+
"getAllByRole": [Function],
|
|
106
|
+
"getAllByTestId": [Function],
|
|
107
|
+
"getAllByText": [Function],
|
|
108
|
+
"getAllByTitle": [Function],
|
|
109
|
+
"getByAltText": [Function],
|
|
110
|
+
"getByDisplayValue": [Function],
|
|
111
|
+
"getByLabelText": [Function],
|
|
112
|
+
"getByPlaceholderText": [Function],
|
|
113
|
+
"getByRole": [Function],
|
|
114
|
+
"getByTestId": [Function],
|
|
115
|
+
"getByText": [Function],
|
|
116
|
+
"getByTitle": [Function],
|
|
117
|
+
"queryAllByAltText": [Function],
|
|
118
|
+
"queryAllByDisplayValue": [Function],
|
|
119
|
+
"queryAllByLabelText": [Function],
|
|
120
|
+
"queryAllByPlaceholderText": [Function],
|
|
121
|
+
"queryAllByRole": [Function],
|
|
122
|
+
"queryAllByTestId": [Function],
|
|
123
|
+
"queryAllByText": [Function],
|
|
124
|
+
"queryAllByTitle": [Function],
|
|
125
|
+
"queryByAltText": [Function],
|
|
126
|
+
"queryByDisplayValue": [Function],
|
|
127
|
+
"queryByLabelText": [Function],
|
|
128
|
+
"queryByPlaceholderText": [Function],
|
|
129
|
+
"queryByRole": [Function],
|
|
130
|
+
"queryByTestId": [Function],
|
|
131
|
+
"queryByText": [Function],
|
|
132
|
+
"queryByTitle": [Function],
|
|
133
|
+
"rerender": [Function],
|
|
134
|
+
"unmount": [Function],
|
|
135
|
+
}
|
|
136
|
+
`;
|
|
137
|
+
|
|
138
|
+
exports[`<Author /> component > should render the component when there is no author email 1`] = `
|
|
139
|
+
Object {
|
|
140
|
+
"asFragment": [Function],
|
|
141
|
+
"baseElement": <body>
|
|
142
|
+
<div>
|
|
143
|
+
<ul
|
|
144
|
+
class="MuiList-root MuiList-padding MuiList-subheader makeStyles-MuiList-root"
|
|
145
|
+
>
|
|
146
|
+
<h6
|
|
147
|
+
class="MuiTypography-root MuiTypography-subtitle1 e4ifo371 makeStyles-MuiTypography-root-StyledText"
|
|
148
|
+
>
|
|
149
|
+
sidebar.author.title
|
|
150
|
+
</h6>
|
|
151
|
+
<li
|
|
152
|
+
class="MuiListItem-root MuiListItem-gutters MuiListItem-padding e4ifo370 makeStyles-MuiListItem-root-AuthorListItem"
|
|
153
|
+
>
|
|
154
|
+
<div
|
|
155
|
+
class="MuiAvatar-root MuiAvatar-circular makeStyles-MuiAvatar-root"
|
|
156
|
+
data-mui-internal-clone-element="true"
|
|
157
|
+
data-testid="verdaccio user"
|
|
158
|
+
>
|
|
159
|
+
<img
|
|
160
|
+
alt="verdaccio user"
|
|
161
|
+
class="MuiAvatar-img makeStyles-MuiAvatar-img"
|
|
162
|
+
src="https://www.gravatar.com/avatar/000000"
|
|
163
|
+
/>
|
|
164
|
+
</div>
|
|
165
|
+
<h6
|
|
166
|
+
class="MuiTypography-root MuiTypography-subtitle2 makeStyles-MuiTypography-root"
|
|
167
|
+
>
|
|
168
|
+
verdaccio user
|
|
169
|
+
</h6>
|
|
170
|
+
</li>
|
|
171
|
+
</ul>
|
|
172
|
+
</div>
|
|
173
|
+
</body>,
|
|
174
|
+
"container": <div>
|
|
175
|
+
<ul
|
|
176
|
+
class="MuiList-root MuiList-padding MuiList-subheader makeStyles-MuiList-root"
|
|
177
|
+
>
|
|
178
|
+
<h6
|
|
179
|
+
class="MuiTypography-root MuiTypography-subtitle1 e4ifo371 makeStyles-MuiTypography-root-StyledText"
|
|
180
|
+
>
|
|
181
|
+
sidebar.author.title
|
|
182
|
+
</h6>
|
|
183
|
+
<li
|
|
184
|
+
class="MuiListItem-root MuiListItem-gutters MuiListItem-padding e4ifo370 makeStyles-MuiListItem-root-AuthorListItem"
|
|
185
|
+
>
|
|
186
|
+
<div
|
|
187
|
+
class="MuiAvatar-root MuiAvatar-circular makeStyles-MuiAvatar-root"
|
|
188
|
+
data-mui-internal-clone-element="true"
|
|
189
|
+
data-testid="verdaccio user"
|
|
190
|
+
>
|
|
191
|
+
<img
|
|
192
|
+
alt="verdaccio user"
|
|
193
|
+
class="MuiAvatar-img makeStyles-MuiAvatar-img"
|
|
194
|
+
src="https://www.gravatar.com/avatar/000000"
|
|
195
|
+
/>
|
|
196
|
+
</div>
|
|
197
|
+
<h6
|
|
198
|
+
class="MuiTypography-root MuiTypography-subtitle2 makeStyles-MuiTypography-root"
|
|
199
|
+
>
|
|
200
|
+
verdaccio user
|
|
201
|
+
</h6>
|
|
202
|
+
</li>
|
|
203
|
+
</ul>
|
|
204
|
+
</div>,
|
|
205
|
+
"debug": [Function],
|
|
206
|
+
"findAllByAltText": [Function],
|
|
207
|
+
"findAllByDisplayValue": [Function],
|
|
208
|
+
"findAllByLabelText": [Function],
|
|
209
|
+
"findAllByPlaceholderText": [Function],
|
|
210
|
+
"findAllByRole": [Function],
|
|
211
|
+
"findAllByTestId": [Function],
|
|
212
|
+
"findAllByText": [Function],
|
|
213
|
+
"findAllByTitle": [Function],
|
|
214
|
+
"findByAltText": [Function],
|
|
215
|
+
"findByDisplayValue": [Function],
|
|
216
|
+
"findByLabelText": [Function],
|
|
217
|
+
"findByPlaceholderText": [Function],
|
|
218
|
+
"findByRole": [Function],
|
|
219
|
+
"findByTestId": [Function],
|
|
220
|
+
"findByText": [Function],
|
|
221
|
+
"findByTitle": [Function],
|
|
222
|
+
"getAllByAltText": [Function],
|
|
223
|
+
"getAllByDisplayValue": [Function],
|
|
224
|
+
"getAllByLabelText": [Function],
|
|
225
|
+
"getAllByPlaceholderText": [Function],
|
|
226
|
+
"getAllByRole": [Function],
|
|
227
|
+
"getAllByTestId": [Function],
|
|
228
|
+
"getAllByText": [Function],
|
|
229
|
+
"getAllByTitle": [Function],
|
|
230
|
+
"getByAltText": [Function],
|
|
231
|
+
"getByDisplayValue": [Function],
|
|
232
|
+
"getByLabelText": [Function],
|
|
233
|
+
"getByPlaceholderText": [Function],
|
|
234
|
+
"getByRole": [Function],
|
|
235
|
+
"getByTestId": [Function],
|
|
236
|
+
"getByText": [Function],
|
|
237
|
+
"getByTitle": [Function],
|
|
238
|
+
"queryAllByAltText": [Function],
|
|
239
|
+
"queryAllByDisplayValue": [Function],
|
|
240
|
+
"queryAllByLabelText": [Function],
|
|
241
|
+
"queryAllByPlaceholderText": [Function],
|
|
242
|
+
"queryAllByRole": [Function],
|
|
243
|
+
"queryAllByTestId": [Function],
|
|
244
|
+
"queryAllByText": [Function],
|
|
245
|
+
"queryAllByTitle": [Function],
|
|
246
|
+
"queryByAltText": [Function],
|
|
247
|
+
"queryByDisplayValue": [Function],
|
|
248
|
+
"queryByLabelText": [Function],
|
|
249
|
+
"queryByPlaceholderText": [Function],
|
|
250
|
+
"queryByRole": [Function],
|
|
251
|
+
"queryByTestId": [Function],
|
|
252
|
+
"queryByText": [Function],
|
|
253
|
+
"queryByTitle": [Function],
|
|
254
|
+
"rerender": [Function],
|
|
255
|
+
"unmount": [Function],
|
|
256
|
+
}
|
|
257
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["default"],"sources":["../../../src/components/Author/index.ts"],"sourcesContent":["export { default } from './Author';\n"],"mappings":"AAAA,SAASA,OAAO,QAAQ,UAAU","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","names":["Typography","ListItem","StyledText","_styled","process","env","NODE_ENV","target","label","props","fontWeight","theme","bold","AuthorListItem","name","styles","map","toString","_EMOTION_STRINGIFIED_CSS_ERROR__"],"sources":["../../../src/components/Author/styles.ts"],"sourcesContent":["import styled from '@emotion/styled';\nimport { Typography } from '@mui/material';\nimport ListItem from '@mui/material/ListItem';\n\nimport { Theme } from '../../Theme';\n\nexport const StyledText = styled(Typography)<{ theme?: Theme }>((props) => ({\n fontWeight: props.theme.fontWeight.bold,\n}));\n\nexport const AuthorListItem = styled(ListItem)({\n padding: 0,\n ':hover': {\n backgroundColor: 'transparent',\n },\n});\n"],"mappings":";;AACA,SAASA,UAAU,QAAQ,eAAe;AAC1C,OAAOC,QAAQ,MAAM,wBAAwB;AAI7C,OAAO,IAAMC,UAAU,gBAAGC,OAAA,CAAOH,UAAU,EAAAI,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,EAAC,CAAqBC,KAAK,KAAM;EAC1EC,UAAU,EAAED,KAAK,CAACE,KAAK,CAACD,UAAU,CAACE;AACrC,CAAC,CAAC,EAAAR,OAAA,CAAAC,GAAA,CAAAC,QAAA,m4BAAC;AAEH,OAAO,IAAMO,cAAc,gBAAGV,OAAA,CAAOF,QAAQ,EAAAG,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,EAAC,CAAAJ,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAQ,IAAA;EAAAC,MAAA;AAAA;EAAAD,IAAA;EAAAC,MAAA;EAAAC,GAAA;EAAAC,QAAA,EAAAC;AAAA,CAK7C,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CopyToClipBoard.js","names":["FileCopy","IconButton","Tooltip","React","copyToClipBoardUtility","Wrapper","_styled","process","env","NODE_ENV","target","label","name","styles","map","toString","_EMOTION_STRINGIFIED_CSS_ERROR__","Content","_ref","theme","display","overflow","textOverflow","height","whiteSpace","fontSize","sm","CopyToClipBoard","_ref2","text","children","dataTestId","title","props","_objectWithoutProperties","_excluded","createElement","disableFocusListener","onClick","size"],"sources":["../../../src/components/CopyClipboard/CopyToClipBoard.tsx"],"sourcesContent":["import styled from '@emotion/styled';\nimport FileCopy from '@mui/icons-material/FileCopy';\nimport IconButton from '@mui/material/IconButton';\nimport Tooltip from '@mui/material/Tooltip';\nimport React from 'react';\n\nimport { Theme } from '../../Theme';\nimport { copyToClipBoardUtility } from './utils';\n\ninterface Props {\n text: string;\n title?: string;\n dataTestId: string;\n children?: React.ReactNode;\n}\n\nconst Wrapper = styled('div')({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n});\n\nconst Content = styled('span')<{ theme?: Theme }>(({ theme }) => ({\n display: 'inline-block',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n height: 'auto',\n whiteSpace: 'break-spaces',\n fontSize: theme.fontSize.sm,\n}));\n\nfunction CopyToClipBoard({ text, children, dataTestId, title, ...props }: Props) {\n return (\n <Wrapper {...props}>\n <Content>{children ?? text}</Content>\n {title ? (\n <Tooltip disableFocusListener={true} title={title}>\n <IconButton data-testid={dataTestId} onClick={copyToClipBoardUtility(text)} size=\"small\">\n <FileCopy fontSize=\"small\" />\n </IconButton>\n </Tooltip>\n ) : (\n <IconButton data-testid={dataTestId} onClick={copyToClipBoardUtility(text)} size=\"small\">\n <FileCopy fontSize=\"small\" />\n </IconButton>\n )}\n </Wrapper>\n );\n}\n\nexport default CopyToClipBoard;\n"],"mappings":";;;;;AACA,OAAOA,QAAQ,MAAM,8BAA8B;AACnD,OAAOC,UAAU,MAAM,0BAA0B;AACjD,OAAOC,OAAO,MAAM,uBAAuB;AAC3C,OAAOC,KAAK,MAAM,OAAO;AAGzB,SAASC,sBAAsB,QAAQ,SAAS;AAShD,IAAMC,OAAO,gBAAGC,OAAA,CAAO,KAAK,EAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,EAAC,CAAAJ,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAG,IAAA;EAAAC,MAAA;AAAA;EAAAD,IAAA;EAAAC,MAAA;EAAAC,GAAA;EAAAC,QAAA,EAAAC;AAAA,CAI5B,CAAC;AAEF,IAAMC,OAAO,gBAAGX,OAAA,CAAO,MAAM,EAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,EAAC,CAAoBO,IAAA;EAAA,IAAC;IAAEC;EAAM,CAAC,GAAAD,IAAA;EAAA,OAAM;IAChEE,OAAO,EAAE,cAAc;IACvBC,QAAQ,EAAE,QAAQ;IAClBC,YAAY,EAAE,UAAU;IACxBC,MAAM,EAAE,MAAM;IACdC,UAAU,EAAE,cAAc;IAC1BC,QAAQ,EAAEN,KAAK,CAACM,QAAQ,CAACC;EAC3B,CAAC;AAAA,CAAC,EAAAnB,OAAA,CAAAC,GAAA,CAAAC,QAAA,+xEAAC;AAEH,SAASkB,eAAeA,CAAAC,KAAA,EAAyD;EAAA,IAAxD;MAAEC,IAAI;MAAEC,QAAQ;MAAEC,UAAU;MAAEC;IAAuB,CAAC,GAAAJ,KAAA;IAAdK,KAAK,GAAAC,wBAAA,CAAAN,KAAA,EAAAO,SAAA;EACpE,oBACEhC,KAAA,CAAAiC,aAAA,CAAC/B,OAAO,EAAK4B,KAAK,eAChB9B,KAAA,CAAAiC,aAAA,CAACnB,OAAO,QAAEa,QAAQ,aAARA,QAAQ,cAARA,QAAQ,GAAID,IAAc,CAAC,EACpCG,KAAK,gBACJ7B,KAAA,CAAAiC,aAAA,CAAClC,OAAO;IAACmC,oBAAoB,EAAE,IAAK;IAACL,KAAK,EAAEA;EAAM,gBAChD7B,KAAA,CAAAiC,aAAA,CAACnC,UAAU;IAAC,eAAa8B,UAAW;IAACO,OAAO,EAAElC,sBAAsB,CAACyB,IAAI,CAAE;IAACU,IAAI,EAAC;EAAO,gBACtFpC,KAAA,CAAAiC,aAAA,CAACpC,QAAQ;IAACyB,QAAQ,EAAC;EAAO,CAAE,CAClB,CACL,CAAC,gBAEVtB,KAAA,CAAAiC,aAAA,CAACnC,UAAU;IAAC,eAAa8B,UAAW;IAACO,OAAO,EAAElC,sBAAsB,CAACyB,IAAI,CAAE;IAACU,IAAI,EAAC;EAAO,gBACtFpC,KAAA,CAAAiC,aAAA,CAACpC,QAAQ;IAACyB,QAAQ,EAAC;EAAO,CAAE,CAClB,CAEP,CAAC;AAEd;AAEA,eAAeE,eAAe","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["default","copyToClipBoardUtility"],"sources":["../../../src/components/CopyClipboard/index.ts"],"sourcesContent":["export { default } from './CopyToClipBoard';\nexport { copyToClipBoardUtility } from './utils';\n"],"mappings":"AAAA,SAASA,OAAO,QAAQ,mBAAmB;AAC3C,SAASC,sBAAsB,QAAQ,SAAS","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","names":["copyToClipBoardUtility","str","event","preventDefault","navigator","clipboard","writeText"],"sources":["../../../src/components/CopyClipboard/utils.ts"],"sourcesContent":["import { SyntheticEvent } from 'react';\n\nexport const copyToClipBoardUtility =\n (str: string): ((e: SyntheticEvent<HTMLElement>) => void) =>\n (event: SyntheticEvent<HTMLElement>): void => {\n event.preventDefault();\n\n // document.execCommand is deprecated\n navigator.clipboard.writeText(str);\n };\n"],"mappings":"AAEA,OAAO,IAAMA,sBAAsB,GAChCC,GAAW,IACXC,KAAkC,IAAW;EAC5CA,KAAK,CAACC,cAAc,CAAC,CAAC;;EAEtB;EACAC,SAAS,CAACC,SAAS,CAACC,SAAS,CAACL,GAAG,CAAC;AACpC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Dependencies.js","names":["Box","Card","CardContent","React","Fragment","useTranslation","NoItems","DependencyBlock","hasKeys","Dependencies","_ref","packageMeta","t","latest","dependencies","devDependencies","peerDependencies","optionalDependencies","bundleDependencies","name","dependencyMap","hasDependencies","createElement","sx","mb","m","Object","entries","map","_ref2","dependencyType","keys","length","key","title","text","package"],"sources":["../../../src/components/Dependencies/Dependencies.tsx"],"sourcesContent":["import Box from '@mui/material/Box';\nimport Card from '@mui/material/Card';\nimport CardContent from '@mui/material/CardContent';\nimport React, { Fragment } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport NoItems from '../NoItems';\nimport { DependencyBlock } from './DependencyBlock';\nimport { hasKeys } from './utits';\n\nconst Dependencies: React.FC<{ packageMeta: any }> = ({ packageMeta }) => {\n const { t } = useTranslation();\n\n const { latest } = packageMeta;\n // FIXME: add dependencies to package meta type\n // @ts-ignore\n const {\n dependencies,\n devDependencies,\n peerDependencies,\n optionalDependencies,\n bundleDependencies,\n name,\n } = latest;\n const dependencyMap = {\n dependencies,\n devDependencies,\n peerDependencies,\n optionalDependencies,\n bundleDependencies,\n };\n const hasDependencies =\n hasKeys(dependencies) ||\n hasKeys(bundleDependencies) ||\n hasKeys(optionalDependencies) ||\n hasKeys(devDependencies) ||\n hasKeys(peerDependencies);\n if (hasDependencies) {\n return (\n <Card sx={{ mb: 2 }}>\n <CardContent>\n <Box data-testid=\"dependencies-box\" sx={{ m: 2 }}>\n {Object.entries(dependencyMap).map(([dependencyType, dependencies]) => {\n if (!dependencies || Object.keys(dependencies).length === 0) {\n return null;\n }\n return (\n <Fragment key={dependencyType}>\n <DependencyBlock\n dependencies={dependencies}\n key={dependencyType}\n title={dependencyType}\n />\n </Fragment>\n );\n })}\n </Box>\n </CardContent>\n </Card>\n );\n }\n\n return (\n <Card sx={{ mb: 2 }}>\n <CardContent>\n <NoItems text={t('dependencies.has-no-dependencies', { package: name })} />\n </CardContent>\n </Card>\n );\n};\n\nexport default Dependencies;\n"],"mappings":"AAAA,OAAOA,GAAG,MAAM,mBAAmB;AACnC,OAAOC,IAAI,MAAM,oBAAoB;AACrC,OAAOC,WAAW,MAAM,2BAA2B;AACnD,OAAOC,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAASC,cAAc,QAAQ,eAAe;AAE9C,OAAOC,OAAO,MAAM,YAAY;AAChC,SAASC,eAAe,QAAQ,mBAAmB;AACnD,SAASC,OAAO,QAAQ,SAAS;AAEjC,IAAMC,YAA4C,GAAGC,IAAA,IAAqB;EAAA,IAApB;IAAEC;EAAY,CAAC,GAAAD,IAAA;EACnE,IAAM;IAAEE;EAAE,CAAC,GAAGP,cAAc,CAAC,CAAC;EAE9B,IAAM;IAAEQ;EAAO,CAAC,GAAGF,WAAW;EAC9B;EACA;EACA,IAAM;IACJG,YAAY;IACZC,eAAe;IACfC,gBAAgB;IAChBC,oBAAoB;IACpBC,kBAAkB;IAClBC;EACF,CAAC,GAAGN,MAAM;EACV,IAAMO,aAAa,GAAG;IACpBN,YAAY;IACZC,eAAe;IACfC,gBAAgB;IAChBC,oBAAoB;IACpBC;EACF,CAAC;EACD,IAAMG,eAAe,GACnBb,OAAO,CAACM,YAAY,CAAC,IACrBN,OAAO,CAACU,kBAAkB,CAAC,IAC3BV,OAAO,CAACS,oBAAoB,CAAC,IAC7BT,OAAO,CAACO,eAAe,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.js","names":["Box","Chip","Typography","useTheme","React","useTranslation","useHistory","Route","StyledText","_styled","process","env","NODE_ENV","target","label","props","fontWeight","theme","bold","textTransform","Tags","display","justifyContent","flexWrap","marginLeft","spacing","Tag","margin","DependencyBlock","_ref","title","dependencies","history","t","deps","Object","entries","handleClick","name","push","concat","DETAIL","labelText","version","package","createElement","sx","marginBottom","variant","length","map","_ref2","packageName","className","clickable","key","onClick"],"sources":["../../../src/components/Dependencies/DependencyBlock.tsx"],"sourcesContent":["import styled from '@emotion/styled';\nimport Box from '@mui/material/Box';\nimport Chip from '@mui/material/Chip';\nimport Typography from '@mui/material/Typography';\nimport { useTheme } from '@mui/styles';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useHistory } from 'react-router-dom';\n\nimport { Theme } from '../../Theme';\nimport { PackageDependencies } from '../../types/packageMeta';\nimport { Route } from '../../utils';\n\ninterface DependencyBlockProps {\n title: string;\n dependencies: PackageDependencies;\n}\n\nexport const StyledText = styled(Typography)<{ theme?: Theme }>((props) => ({\n fontWeight: props.theme.fontWeight.bold,\n textTransform: 'capitalize',\n}));\n\nexport const Tags = styled('div')<{ theme?: Theme }>((props) => ({\n display: 'flex',\n justifyContent: 'start',\n flexWrap: 'wrap',\n // force title to be on the same line as the title\n // could be better to avoid margin on the first element\n // but it is a bit tricky to do with flexbox\n marginLeft: props.theme.spacing(-0.6),\n}));\n\nexport const Tag = styled(Chip)<{ theme?: Theme }>((props) => ({\n margin: props.theme.spacing(0.6),\n}));\n\nexport const DependencyBlock: React.FC<DependencyBlockProps> = ({ title, dependencies }) => {\n const history = useHistory();\n const { t } = useTranslation();\n const theme: Theme = useTheme();\n const deps = Object.entries(dependencies);\n\n function handleClick(name: string): void {\n history.push(`${Route.DETAIL}${name}`);\n }\n\n function labelText(title: string, name: string, version: string): string {\n if (title === 'bundleDependencies') {\n return t('dependencies.dependency-block-bundle', { package: name });\n } else {\n return t('dependencies.dependency-block', { package: name, version });\n }\n }\n\n return (\n <Box data-testid={title} sx={{ margin: theme.spacing(2) }}>\n <StyledText sx={{ marginBottom: theme.spacing(1) }} variant=\"subtitle1\">\n {`${title} (${deps.length})`}\n </StyledText>\n <Tags>\n {deps.map(([name, version]: [string, string]) => {\n // Bundle dependencies are stored as array, for example [ 0: \"semver\" ]\n // so the package name arrives here in the version field\n const packageName = title == 'bundleDependencies' ? version : name;\n return (\n <Tag\n className={'dep-tag'}\n clickable={true}\n data-testid={packageName}\n key={packageName}\n label={labelText(title, packageName, version)}\n // eslint-disable-next-line\n onClick={() => {\n handleClick(packageName);\n }}\n />\n );\n })}\n </Tags>\n </Box>\n );\n};\n"],"mappings":";AACA,OAAOA,GAAG,MAAM,mBAAmB;AACnC,OAAOC,IAAI,MAAM,oBAAoB;AACrC,OAAOC,UAAU,MAAM,0BAA0B;AACjD,SAASC,QAAQ,QAAQ,aAAa;AACtC,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,cAAc,QAAQ,eAAe;AAC9C,SAASC,UAAU,QAAQ,kBAAkB;AAI7C,SAASC,KAAK,QAAQ,aAAa;AAOnC,OAAO,IAAMC,UAAU,gBAAGC,OAAA,CAAOP,UAAU,EAAAQ,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,EAAC,CAAqBC,KAAK,KAAM;EAC1EC,UAAU,EAAED,KAAK,CAACE,KAAK,CAACD,UAAU,CAACE,IAAI;EACvCC,aAAa,EAAE;AACjB,CAAC,CAAC,EAAAT,OAAA,CAAAC,GAAA,CAAAC,QAAA,2iIAAC;AAEH,OAAO,IAAMQ,IAAI,gBAAGX,OAAA,CAAO,KAAK,EAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,EAAC,CAAqBC,KAAK,KAAM;EAC/DM,OAAO,EAAE,MAAM;EACfC,cAAc,EAAE,OAAO;EACvBC,QAAQ,EAAE,MAAM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;EAEA,oBACEvC,KAAA,CAAAyC,aAAA,CAAC7C,GAAG;IAAC,eAAa8B,KAAM;IAACgB,EAAE,EAAE;MAAEnB,MAAM,EAAEV,KAAK,CAACQ,OAAO,CAAC,CAAC;IAAE;EAAE,gBACxDrB,KAAA,CAAAyC,aAAA,CAACrC,UAAU;IAACsC,EAAE,EAAE;MAAEC,YAAY,EAAE9B,KAAK,CAACQ,OAAO,CAAC,CAAC;IAAE,CAAE;IAACuB,OAAO,EAAC;EAAW,MAAAR,MAAA,CACjEV,KAAK,QAAAU,MAAA,CAAKN,IAAI,CAACe,MAAM,MACf,CAAC,eACb7C,KAAA,CAAAyC,aAAA,CAACzB,IAAI,QACFc,IAAI,CAACgB,GAAG,CAACC,KAAA,IAAuC;IAAA,IAAtC,CAACb,IAAI,EAAEK,OAAO,CAAmB,GAAAQ,KAAA;IAC1C;IACA;IACA,IAAMC,WAAW,GAAGtB,KAAK,IAAI,oBAAoB,GAAGa,OAAO,GAAGL,IAAI;IAClE,oBACElC,KAAA,CAAAyC,aAAA,CAACnB,GAAG;MACF2B,SAAS,EAAE,SAAU;MACrBC,SAAS,EAAE,IAAK;MAChB,eAAaF,WAAY;MACzBG,GAAG,EAAEH,WAAY;MACjBtC,KAAK,EAAE4B,SAAS,CAACZ,KAAK,EAAEsB,WAAW,EAAET,OAAO;MAC5C;MAAA;MACAa,OAAO,EAAEA,CAAA,KAAM;QACbnB,WAAW,CAACe,WAAW,CAAC;MAC1B;IAAE,CACH,CAAC;EAEN,CAAC,CACG,CACH,CAAC;AAEV,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["default"],"sources":["../../../src/components/Dependencies/index.ts"],"sourcesContent":["export { default } from './Dependencies';\n"],"mappings":"AAAA,SAASA,OAAO,QAAQ,gBAAgB","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","names":[],"sources":["../../../src/components/Dependencies/types.ts"],"sourcesContent":["import { ReactNode } from 'react';\n\nexport interface Props {\n children: ReactNode;\n open: boolean;\n onClose: () => void;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utits.js","names":["hasKeys","object","Object","keys","length"],"sources":["../../../src/components/Dependencies/utits.ts"],"sourcesContent":["export function hasKeys(object?: { [key: string]: any }): boolean {\n return !!object && Object.keys(object).length > 0;\n}\n"],"mappings":"AAAA,OAAO,SAASA,OAAOA,CAACC,MAA+B,EAAW;EAChE,OAAO,CAAC,CAACA,MAAM,IAAIC,MAAM,CAACC,IAAI,CAACF,MAAM,CAAC,CAACG,MAAM,GAAG,CAAC;AACnD","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Deprecated.js","names":["Alert","useTheme","React","Deprecated","_ref","message","theme","createElement","severity","sx","marginTop","spacing","marginBottom"],"sources":["../../../src/components/Deprecated/Deprecated.tsx"],"sourcesContent":["import Alert from '@mui/material/Alert';\nimport { useTheme } from '@mui/styles';\nimport React from 'react';\n\nimport { Theme } from '../../Theme';\n\nexport type Props = {\n message: string;\n};\n\nconst Deprecated: React.FC<Props> = ({ message }) => {\n const theme: Theme = useTheme();\n return (\n <Alert severity=\"warning\" sx={{ marginTop: theme.spacing(1), marginBottom: theme.spacing(1) }}>\n {message}\n </Alert>\n );\n};\n\nexport default Deprecated;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,qBAAqB;AACvC,SAASC,QAAQ,QAAQ,aAAa;AACtC,OAAOC,KAAK,MAAM,OAAO;AAQzB,IAAMC,UAA2B,GAAGC,IAAA,IAAiB;EAAA,IAAhB;IAAEC;EAAQ,CAAC,GAAAD,IAAA;EAC9C,IAAME,KAAY,GAAGL,QAAQ,CAAC,CAAC;EAC/B,oBACEC,KAAA,CAAAK,aAAA,CAACP,KAAK;IAACQ,QAAQ,EAAC,SAAS;IAACC,EAAE,EAAE;MAAEC,SAAS,EAAEJ,KAAK,CAACK,OAAO,CAAC,CAAC,CAAC;MAAEC,YAAY,EAAEN,KAAK,CAACK,OAAO,CAAC,CAAC;IAAE;EAAE,GAC3FN,OACI,CAAC;AAEZ,CAAC;AAED,eAAeF,UAAU","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["default"],"sources":["../../../src/components/Deprecated/index.ts"],"sourcesContent":["export { default } from './Deprecated';\n"],"mappings":"AAAA,SAASA,OAAO,QAAQ,cAAc","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeveloperType.js","names":["DeveloperType"],"sources":["../../../src/components/Developers/DeveloperType.tsx"],"sourcesContent":["export enum DeveloperType {\n CONTRIBUTORS = 'contributors',\n MAINTAINERS = 'maintainers',\n}\n"],"mappings":"AAAA,WAAYA,aAAa,0BAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Developers.js","names":["Add","Box","FabMUI","React","useCallback","useEffect","useMemo","useState","Person","Title","getUniqueDeveloperValues","Fab","_styled","process","env","NODE_ENV","target","label","props","backgroundColor","theme","palette","primary","main","color","white","StyledBox","name","styles","map","toString","_EMOTION_STRINGIFIED_CSS_ERROR__","VISIBLE_MAX","Developers","_ref","type","visibleMax","packageMeta","developers","latest","visibleDevelopersMax","setVisibleDevelopersMax","visibleDevelopers","setVisibleDevelopers","length","slice","handleSetVisibleDevelopersMax","packageName","version","createElement","Fragment","display","flexWrap","margin","visibleDeveloper","index","key","person","onClick","size"],"sources":["../../../src/components/Developers/Developers.tsx"],"sourcesContent":["import styled from '@emotion/styled';\nimport Add from '@mui/icons-material/Add';\nimport Box from '@mui/material/Box';\nimport FabMUI from '@mui/material/Fab';\nimport React, { useCallback, useEffect, useMemo, useState } from 'react';\n\nimport { Theme } from '../../Theme';\nimport Person from '../Person';\nimport { DeveloperType } from './DeveloperType';\nimport Title from './Title';\nimport getUniqueDeveloperValues from './get-unique-developer-values';\n\nexport const Fab = styled(FabMUI)<{ theme?: Theme }>((props) => ({\n backgroundColor: props.theme.palette.primary.main,\n color: props.theme.palette.white,\n}));\n\ninterface Props {\n type: DeveloperType;\n visibleMax?: number;\n packageMeta: any;\n}\n\nconst StyledBox = styled(Box)({\n '> *': {\n marginRight: 5,\n },\n});\n\nexport const VISIBLE_MAX = 6;\n\nconst Developers: React.FC<Props> = ({ type, visibleMax = VISIBLE_MAX, packageMeta }) => {\n const developers = useMemo(\n () => getUniqueDeveloperValues(packageMeta?.latest[type]),\n [packageMeta, type]\n );\n\n const [visibleDevelopersMax, setVisibleDevelopersMax] = useState(visibleMax);\n const [visibleDevelopers, setVisibleDevelopers] = useState(developers);\n\n useEffect(() => {\n if (!developers.length) {\n return;\n }\n setVisibleDevelopers(developers.slice(0, visibleDevelopersMax));\n }, [developers, visibleDevelopersMax]);\n\n const handleSetVisibleDevelopersMax = useCallback(() => {\n setVisibleDevelopersMax(visibleDevelopersMax + VISIBLE_MAX);\n }, [visibleDevelopersMax]);\n\n if (!visibleDevelopers || !developers.length) {\n return null;\n }\n\n const { name: packageName, version } = packageMeta.latest;\n\n return (\n <>\n <Title type={type} />\n <StyledBox display=\"flex\" flexWrap=\"wrap\" margin=\"10px 0 10px 0\">\n {visibleDevelopers.map((visibleDeveloper, index) => {\n return (\n <Person\n key={index}\n packageName={packageName}\n person={visibleDeveloper}\n version={version}\n />\n );\n })}\n {visibleDevelopersMax < developers.length && (\n <Fab data-testid={'fab-add'} onClick={handleSetVisibleDevelopersMax} size=\"small\">\n <Add />\n </Fab>\n )}\n </StyledBox>\n </>\n );\n};\n\nexport default Developers;\n"],"mappings":";;AACA,OAAOA,GAAG,MAAM,yBAAyB;AACzC,OAAOC,GAAG,MAAM,mBAAmB;AACnC,OAAOC,MAAM,MAAM,mBAAmB;AACtC,OAAOC,KAAK,IAAIC,WAAW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A,CAACtC,GAAG;IAAC,eAAa,SAAU;IAAC+C,OAAO,EAAEZ,6BAA8B;IAACa,IAAI,EAAC;EAAO,gBAC/ExD,KAAA,CAAA8C,aAAA,CAACjD,GAAG,MAAE,CACH,CAEE,CACX,CAAC;AAEP,CAAC;AAED,eAAeiC,UAAU","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Title.js","names":["Typography","React","useTranslation","DeveloperType","Title","_ref","type","t","CONTRIBUTORS","createElement","StyledText","variant","MAINTAINERS","_styled","process","env","NODE_ENV","target","label","_ref2","theme","fontWeight","bold","marginBottom"],"sources":["../../../src/components/Developers/Title.tsx"],"sourcesContent":["import styled from '@emotion/styled';\nimport Typography from '@mui/material/Typography';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { Theme } from '../../Theme';\nimport { DeveloperType } from './';\n\ninterface Props {\n type: DeveloperType;\n}\n\nconst Title: React.FC<Props> = ({ type }) => {\n const { t } = useTranslation();\n switch (type) {\n case DeveloperType.CONTRIBUTORS:\n return <StyledText variant={'subtitle1'}>{t('sidebar.contributors.title')}</StyledText>;\n case DeveloperType.MAINTAINERS:\n return <StyledText variant={'subtitle1'}>{t('sidebar.maintainers.title')}</StyledText>;\n }\n};\n\nexport default Title;\n\nconst StyledText = styled(Typography)<{ theme?: Theme }>(({ theme }) => ({\n fontWeight: theme.fontWeight.bold,\n marginBottom: '10px',\n}));\n"],"mappings":";AACA,OAAOA,UAAU,MAAM,0BAA0B;AACjD,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,cAAc,QAAQ,eAAe;AAG9C,SAASC,aAAa,QAAQ,IAAI;AAMlC,IAAMC,KAAsB,GAAGC,IAAA,IAAc;EAAA,IAAb;IAAEC;EAAK,CAAC,GAAAD,IAAA;EACtC,IAAM;IAAEE;EAAE,CAAC,GAAGL,cAAc,CAAC,CAAC;EAC9B,QAAQI,IAAI;IACV,KAAKH,aAAa,CAACK,YAAY;MAC7B,oBAAOP,KAAA,CAAAQ,aAAA,CAACC,UAAU;QAACC,OAAO,EAAE;MAAY,GAAEJ,CAAC,CAAC,4BAA4B,CAAc,CAAC;IACzF,KAAKJ,aAAa,CAACS,WAAW;MAC5B,oBAAOX,KAAA,CAAAQ,aAAA,CAACC,UAAU;QAACC,OAAO,EAAE;MAAY,GAAEJ,CAAC,CAAC,2BAA2B,CAAc,CAAC;EAC1F;AACF,CAAC;AAED,eAAeH,KAAK;AAEpB,IAAMM,UAAU,gBAAGG,OAAA,CAAOb,UAAU,EAAAc,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,EAAC,CAAoBC,KAAA;EAAA,IAAC;IAAEC;EAAM,CAAC,GAAAD,KAAA;EAAA,OAAM;IACvEE,UAAU,EAAED,KAAK,CAACC,UAAU,CAACC,IAAI;IACjCC,YAAY,EAAE;EAChB,CAAC;AAAA,CAAC,EAAAT,OAAA,CAAAC,GAAA,CAAAC,QAAA,m7CAAC","ignoreList":[]}
|