@verdaccio/ui-components 5.0.0-next-9.0 → 5.0.0-next-9.2
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/build/Theme/ResetStyles.js +28 -47
- package/build/Theme/ResetStyles.js.map +1 -1
- package/build/Theme/StyleBaseline.js +9 -14
- package/build/Theme/StyleBaseline.js.map +1 -1
- package/build/Theme/ThemeProvider.js +31 -56
- package/build/Theme/ThemeProvider.js.map +1 -1
- package/build/Theme/colors.js +15 -18
- package/build/Theme/colors.js.map +1 -1
- package/build/Theme/index.js +5 -58
- package/build/Theme/modes.js +25 -38
- package/build/Theme/modes.js.map +1 -1
- package/build/Theme/theme.js +18 -31
- package/build/Theme/theme.js.map +1 -1
- package/build/Theme/tokens.js +28 -33
- package/build/Theme/tokens.js.map +1 -1
- package/build/_virtual/_rolldown/runtime.js +11 -0
- package/build/api/use-data-mutation.js +38 -95
- package/build/api/use-data-mutation.js.map +1 -1
- package/build/api/use-data.js +17 -33
- package/build/api/use-data.js.map +1 -1
- package/build/components/ActionBar/ActionBar.js +45 -86
- package/build/components/ActionBar/ActionBar.js.map +1 -1
- package/build/components/ActionBar/ActionBarAction.js +79 -107
- package/build/components/ActionBar/ActionBarAction.js.map +1 -1
- package/build/components/ActionBar/index.js +1 -14
- package/build/components/AppRoute/AppRoute.js +65 -87
- package/build/components/AppRoute/AppRoute.js.map +1 -1
- package/build/components/Author/Author.js +30 -41
- package/build/components/Author/Author.js.map +1 -1
- package/build/components/Author/index.js +1 -14
- package/build/components/Author/styles.js +21 -31
- package/build/components/Author/styles.js.map +1 -1
- package/build/components/CopyClipboard/CopyToClipBoard.js +52 -67
- package/build/components/CopyClipboard/CopyToClipBoard.js.map +1 -1
- package/build/components/CopyClipboard/index.js +2 -21
- package/build/components/CopyClipboard/utils.d.ts +1 -1
- package/build/components/CopyClipboard/utils.js +6 -13
- package/build/components/CopyClipboard/utils.js.map +1 -1
- package/build/components/Dependencies/Dependencies.js +36 -80
- package/build/components/Dependencies/Dependencies.js.map +1 -1
- package/build/components/Dependencies/DependencyBlock.d.ts +3 -3
- package/build/components/Dependencies/DependencyBlock.js +62 -108
- package/build/components/Dependencies/DependencyBlock.js.map +1 -1
- package/build/components/Dependencies/index.js +2 -14
- package/build/components/Dependencies/utits.js +6 -8
- package/build/components/Dependencies/utits.js.map +1 -1
- package/build/components/Deprecated/Deprecated.js +14 -23
- package/build/components/Deprecated/Deprecated.js.map +1 -1
- package/build/components/Deprecated/index.js +1 -14
- package/build/components/Developers/DeveloperType.js +6 -10
- package/build/components/Developers/DeveloperType.js.map +1 -1
- package/build/components/Developers/Developers.js +57 -98
- package/build/components/Developers/Developers.js.map +1 -1
- package/build/components/Developers/Title.js +29 -39
- package/build/components/Developers/Title.js.map +1 -1
- package/build/components/Developers/get-unique-developer-values.js +6 -22
- package/build/components/Developers/get-unique-developer-values.js.map +1 -1
- package/build/components/Developers/index.js +2 -21
- package/build/components/Distribution/Dist.js +38 -44
- package/build/components/Distribution/Dist.js.map +1 -1
- package/build/components/Distribution/index.js +1 -14
- package/build/components/Distribution/styles.js +33 -44
- package/build/components/Distribution/styles.js.map +1 -1
- package/build/components/Engines/Engines.js +66 -88
- package/build/components/Engines/Engines.js.map +1 -1
- package/build/components/Engines/index.js +1 -14
- package/build/components/Engines/styles.js +24 -32
- package/build/components/Engines/styles.js.map +1 -1
- package/build/components/ErrorBoundary/ErrorBoundary.js +27 -66
- package/build/components/ErrorBoundary/ErrorBoundary.js.map +1 -1
- package/build/components/ErrorBoundary/index.js +1 -14
- package/build/components/Forbidden/Forbidden.js +62 -71
- package/build/components/Forbidden/Forbidden.js.map +1 -1
- package/build/components/Forbidden/index.js +1 -14
- package/build/components/FundButton/FundButton.js +52 -73
- package/build/components/FundButton/FundButton.js.map +1 -1
- package/build/components/FundButton/index.js +1 -14
- package/build/components/HeaderInfoDialog/HeaderInfoDialog.js +62 -88
- package/build/components/HeaderInfoDialog/HeaderInfoDialog.js.map +1 -1
- package/build/components/HeaderInfoDialog/index.js +1 -14
- package/build/components/Heading/Heading.d.ts +1 -1
- package/build/components/Heading/Heading.js +13 -23
- package/build/components/Heading/Heading.js.map +1 -1
- package/build/components/Heading/index.js +1 -14
- package/build/components/Help/Help.js +55 -55
- package/build/components/Help/Help.js.map +1 -1
- package/build/components/Help/index.js +1 -14
- package/build/components/Help/styles.js +17 -20
- package/build/components/Help/styles.js.map +1 -1
- package/build/components/Icons/DevsIcons/CommonJS2.js +16 -0
- package/build/components/Icons/DevsIcons/CommonJS2.js.map +1 -0
- package/build/components/Icons/DevsIcons/ES6Module2.js +16 -0
- package/build/components/Icons/DevsIcons/ES6Module2.js.map +1 -0
- package/build/components/Icons/DevsIcons/Git2.js +16 -0
- package/build/components/Icons/DevsIcons/Git2.js.map +1 -0
- package/build/components/Icons/DevsIcons/NodeJS2.js +16 -0
- package/build/components/Icons/DevsIcons/NodeJS2.js.map +1 -0
- package/build/components/Icons/DevsIcons/TypeScript2.js +16 -0
- package/build/components/Icons/DevsIcons/TypeScript2.js.map +1 -0
- package/build/components/Icons/DevsIcons/commonjs.js +6 -0
- package/build/components/Icons/DevsIcons/commonjs.js.map +1 -0
- package/build/components/Icons/DevsIcons/es6module.js +6 -0
- package/build/components/Icons/DevsIcons/es6module.js.map +1 -0
- package/build/components/Icons/DevsIcons/git.js +6 -0
- package/build/components/Icons/DevsIcons/git.js.map +1 -0
- package/build/components/Icons/DevsIcons/index.js +5 -41
- package/build/components/Icons/DevsIcons/nodejs.js +6 -0
- package/build/components/Icons/DevsIcons/nodejs.js.map +1 -0
- package/build/components/Icons/DevsIcons/typescript.js +6 -0
- package/build/components/Icons/DevsIcons/typescript.js.map +1 -0
- package/build/components/Icons/Earth.js +39 -42
- package/build/components/Icons/Earth.js.map +1 -1
- package/build/components/Icons/FileBinary.js +15 -24
- package/build/components/Icons/FileBinary.js.map +1 -1
- package/build/components/Icons/Law.js +18 -25
- package/build/components/Icons/Law.js.map +1 -1
- package/build/components/Icons/License.js +15 -26
- package/build/components/Icons/License.js.map +1 -1
- package/build/components/Icons/Managers/Npm2.js +16 -0
- package/build/components/Icons/Managers/Npm2.js.map +1 -0
- package/build/components/Icons/Managers/Pnpm2.js +16 -0
- package/build/components/Icons/Managers/Pnpm2.js.map +1 -0
- package/build/components/Icons/Managers/Yarn2.js +16 -0
- package/build/components/Icons/Managers/Yarn2.js.map +1 -0
- package/build/components/Icons/Managers/index.js +3 -27
- package/build/components/Icons/Managers/npm.js +6 -0
- package/build/components/Icons/Managers/npm.js.map +1 -0
- package/build/components/Icons/Managers/pnpm.js +6 -0
- package/build/components/Icons/Managers/pnpm.js.map +1 -0
- package/build/components/Icons/Managers/yarn.js +6 -0
- package/build/components/Icons/Managers/yarn.js.map +1 -0
- package/build/components/Icons/SvgIcon.d.ts +2 -6
- package/build/components/Icons/SvgIcon.js +24 -53
- package/build/components/Icons/SvgIcon.js.map +1 -1
- package/build/components/Icons/Time.js +22 -29
- package/build/components/Icons/Time.js.map +1 -1
- package/build/components/Icons/Version.js +20 -27
- package/build/components/Icons/Version.js.map +1 -1
- package/build/components/Icons/index.js +36 -78
- package/build/components/Icons/index.js.map +1 -1
- package/build/components/Install/Install.js +58 -74
- package/build/components/Install/Install.js.map +1 -1
- package/build/components/Install/InstallListItem.js +91 -120
- package/build/components/Install/InstallListItem.js.map +1 -1
- package/build/components/Install/index.js +1 -14
- package/build/components/Keywords/KeywordListItems.js +25 -34
- package/build/components/Keywords/KeywordListItems.js.map +1 -1
- package/build/components/Keywords/Keywords.js +25 -35
- package/build/components/Keywords/Keywords.js.map +1 -1
- package/build/components/Keywords/index.js +1 -14
- package/build/components/Label/Label.js +18 -37
- package/build/components/Label/Label.js.map +1 -1
- package/build/components/Label/index.js +1 -14
- package/build/components/Link/Link.d.ts +3 -1
- package/build/components/Link/Link.js +32 -40
- package/build/components/Link/Link.js.map +1 -1
- package/build/components/Link/index.js +1 -14
- package/build/components/LinkExternal/LinkExternal.d.ts +3 -1
- package/build/components/LinkExternal/LinkExternal.js +19 -30
- package/build/components/LinkExternal/LinkExternal.js.map +1 -1
- package/build/components/LinkExternal/index.js +1 -14
- package/build/components/Loading/Loading.js +14 -20
- package/build/components/Loading/Loading.js.map +1 -1
- package/build/components/Loading/Spinner/Spinner.js +28 -57
- package/build/components/Loading/Spinner/Spinner.js.map +1 -1
- package/build/components/Loading/Spinner/index.js +1 -14
- package/build/components/Loading/index.js +1 -14
- package/build/components/Loading/styles.d.ts +5 -5
- package/build/components/Loading/styles.js +26 -35
- package/build/components/Loading/styles.js.map +1 -1
- package/build/components/LoginDialog/LoginDialog.js +28 -39
- package/build/components/LoginDialog/LoginDialog.js.map +1 -1
- package/build/components/LoginDialog/LoginDialogCloseButton.js +27 -39
- package/build/components/LoginDialog/LoginDialogCloseButton.js.map +1 -1
- package/build/components/LoginDialog/LoginDialogForm.js +17 -26
- package/build/components/LoginDialog/LoginDialogForm.js.map +1 -1
- package/build/components/LoginDialog/LoginDialogFormError.js +30 -51
- package/build/components/LoginDialog/LoginDialogFormError.js.map +1 -1
- package/build/components/LoginDialog/index.js +1 -14
- package/build/components/LoginForm/Login.js +64 -85
- package/build/components/LoginForm/Login.js.map +1 -1
- package/build/components/LoginForm/PasswordField.js +31 -49
- package/build/components/LoginForm/PasswordField.js.map +1 -1
- package/build/components/LoginForm/UsernameField.js +29 -47
- package/build/components/LoginForm/UsernameField.js.map +1 -1
- package/build/components/LoginForm/styles.js +48 -58
- package/build/components/LoginForm/styles.js.map +1 -1
- package/build/components/LoginForm/useLoginForm.js +32 -64
- package/build/components/LoginForm/useLoginForm.js.map +1 -1
- package/build/components/Logo/Logo.js +66 -87
- package/build/components/Logo/Logo.js.map +1 -1
- package/build/components/Logo/img/logo-black-and-white.js +6 -0
- package/build/components/Logo/img/logo-black-and-white.js.map +1 -0
- package/build/components/Logo/img/logo.js +6 -0
- package/build/components/Logo/img/logo.js.map +1 -0
- package/build/components/Logo/index.js +1 -14
- package/build/components/MenuItem/MenuItem.d.ts +1 -1
- package/build/components/MenuItem/MenuItem.js +25 -39
- package/build/components/MenuItem/MenuItem.js.map +1 -1
- package/build/components/MenuItem/index.js +1 -14
- package/build/components/NoItems/NoItems.js +14 -24
- package/build/components/NoItems/NoItems.js.map +1 -1
- package/build/components/NoItems/index.js +1 -14
- package/build/components/NotFound/NotFound.js +63 -72
- package/build/components/NotFound/NotFound.js.map +1 -1
- package/build/components/NotFound/index.js +1 -14
- package/build/components/Package/Package.js +163 -230
- package/build/components/Package/Package.js.map +1 -1
- package/build/components/Package/index.js +1 -14
- package/build/components/Package/styles.d.ts +18 -18
- package/build/components/Package/styles.js +122 -185
- package/build/components/Package/styles.js.map +1 -1
- package/build/components/PackageList/PackageList.js +63 -92
- package/build/components/PackageList/PackageList.js.map +1 -1
- package/build/components/PackageList/index.js +1 -14
- package/build/components/Person/Person.js +36 -46
- package/build/components/Person/Person.js.map +1 -1
- package/build/components/Person/PersonTooltip.js +24 -21
- package/build/components/Person/PersonTooltip.js.map +1 -1
- package/build/components/Person/index.js +1 -14
- package/build/components/Person/utils.js +11 -14
- package/build/components/Person/utils.js.map +1 -1
- package/build/components/RawViewer/RawViewer.js +53 -64
- package/build/components/RawViewer/RawViewer.js.map +1 -1
- package/build/components/RawViewer/index.js +1 -14
- package/build/components/Readme/Readme.d.ts +2 -0
- package/build/components/Readme/Readme.js +40 -56
- package/build/components/Readme/Readme.js.map +1 -1
- package/build/components/Readme/index.js +1 -14
- package/build/components/Readme/utils.js +22 -27
- package/build/components/Readme/utils.js.map +1 -1
- package/build/components/RegistryInfoDialog/RegistryInfoDialog.js +30 -34
- package/build/components/RegistryInfoDialog/RegistryInfoDialog.js.map +1 -1
- package/build/components/RegistryInfoDialog/index.js +1 -14
- package/build/components/RegistryInfoDialog/styles.d.ts +5 -5
- package/build/components/RegistryInfoDialog/styles.js +22 -47
- package/build/components/RegistryInfoDialog/styles.js.map +1 -1
- package/build/components/Repository/Repository.js +79 -101
- package/build/components/Repository/Repository.js.map +1 -1
- package/build/components/Repository/index.js +1 -14
- package/build/components/Search/AutoComplete/AutoComplete.js +33 -76
- package/build/components/Search/AutoComplete/AutoComplete.js.map +1 -1
- package/build/components/Search/AutoComplete/index.js +1 -14
- package/build/components/Search/AutoComplete/styles.d.ts +2 -2
- package/build/components/Search/AutoComplete/styles.js +16 -19
- package/build/components/Search/AutoComplete/styles.js.map +1 -1
- package/build/components/Search/Search.js +91 -176
- package/build/components/Search/Search.js.map +1 -1
- package/build/components/Search/SearchItem.d.ts +3 -3
- package/build/components/Search/SearchItem.js +102 -144
- package/build/components/Search/SearchItem.js.map +1 -1
- package/build/components/Search/index.js +1 -14
- package/build/components/Search/styles.d.ts +2 -2
- package/build/components/Search/styles.js +29 -56
- package/build/components/Search/styles.js.map +1 -1
- package/build/components/Search/utils.js +13 -20
- package/build/components/Search/utils.js.map +1 -1
- package/build/components/SettingsMenu/SettingsMenu.js +94 -108
- package/build/components/SettingsMenu/SettingsMenu.js.map +1 -1
- package/build/components/SettingsMenu/index.js +1 -14
- package/build/components/SideBarTitle/SideBarTitle.js +65 -99
- package/build/components/SideBarTitle/SideBarTitle.js.map +1 -1
- package/build/components/SideBarTitle/index.js +1 -14
- package/build/components/SideBarTitle/utils.js +10 -16
- package/build/components/SideBarTitle/utils.js.map +1 -1
- package/build/components/UpLinks/UpLinks.js +57 -68
- package/build/components/UpLinks/UpLinks.js.map +1 -1
- package/build/components/UpLinks/UplinkLink.js +17 -19
- package/build/components/UpLinks/UplinkLink.js.map +1 -1
- package/build/components/UpLinks/index.js +2 -14
- package/build/components/UpLinks/styles.d.ts +5 -5
- package/build/components/UpLinks/styles.js +27 -48
- package/build/components/UpLinks/styles.js.map +1 -1
- package/build/components/Versions/HistoryList.js +59 -75
- package/build/components/Versions/HistoryList.js.map +1 -1
- package/build/components/Versions/TagList.js +29 -35
- package/build/components/Versions/TagList.js.map +1 -1
- package/build/components/Versions/Versions.js +76 -121
- package/build/components/Versions/Versions.js.map +1 -1
- package/build/components/Versions/index.js +2 -14
- package/build/components/Versions/styles.d.ts +5 -5
- package/build/components/Versions/styles.js +23 -37
- package/build/components/Versions/styles.js.map +1 -1
- package/build/configuration.js +20 -20
- package/build/configuration.js.map +1 -1
- package/build/dark-logo.png +0 -0
- package/build/favicon.ico +0 -0
- package/build/hooks/index.js +2 -21
- package/build/hooks/useLocalStorage.js +22 -59
- package/build/hooks/useLocalStorage.js.map +1 -1
- package/build/hooks/useOnClickOutside.js +14 -30
- package/build/hooks/useOnClickOutside.js.map +1 -1
- package/build/index.js +118 -483
- package/build/layouts/Security/Dialog.js +17 -25
- package/build/layouts/Security/Dialog.js.map +1 -1
- package/build/layouts/Version/Version.js +28 -28
- package/build/layouts/Version/Version.js.map +1 -1
- package/build/layouts/Version/index.js +1 -14
- package/build/mockServiceWorker.js +335 -0
- package/build/pages/Front/Home.js +6 -7
- package/build/pages/Front/Home.js.map +1 -1
- package/build/pages/Front/index.js +2 -14
- package/build/pages/Security/AddUser.js +6 -7
- package/build/pages/Security/AddUser.js.map +1 -1
- package/build/pages/Security/ChangePassword.js +6 -7
- package/build/pages/Security/ChangePassword.js.map +1 -1
- package/build/pages/Security/Login.js +6 -7
- package/build/pages/Security/Login.js.map +1 -1
- package/build/pages/Security/Success.js +6 -7
- package/build/pages/Security/Success.js.map +1 -1
- package/build/pages/Security/index.js +4 -35
- package/build/pages/Version/Version.js +16 -30
- package/build/pages/Version/Version.js.map +1 -1
- package/build/pages/Version/index.js +2 -14
- package/build/providers/AppConfigurationProvider/AppConfigurationProvider.js +51 -72
- package/build/providers/AppConfigurationProvider/AppConfigurationProvider.js.map +1 -1
- package/build/providers/AppConfigurationProvider/index.js +1 -19
- package/build/providers/AuthProvider/AuthProvider.js +37 -100
- package/build/providers/AuthProvider/AuthProvider.js.map +1 -1
- package/build/providers/AuthProvider/index.js +1 -17
- package/build/providers/AuthProvider/utils.js +19 -24
- package/build/providers/AuthProvider/utils.js.map +1 -1
- package/build/providers/DownloadProvider/DownloadProvider.js +29 -71
- package/build/providers/DownloadProvider/DownloadProvider.js.map +1 -1
- package/build/providers/DownloadProvider/index.js +1 -19
- package/build/providers/ManifestsProvider/ManifestsProvider.js +20 -31
- package/build/providers/ManifestsProvider/ManifestsProvider.js.map +1 -1
- package/build/providers/ManifestsProvider/index.js +1 -21
- package/build/providers/PersistenceSettingProvider/PersistenceSettingProvider.js +22 -50
- package/build/providers/PersistenceSettingProvider/PersistenceSettingProvider.js.map +1 -1
- package/build/providers/PersistenceSettingProvider/index.js +1 -19
- package/build/providers/SearchProvider/SearchProvider.js +45 -95
- package/build/providers/SearchProvider/SearchProvider.js.map +1 -1
- package/build/providers/SearchProvider/index.js +1 -25
- package/build/providers/TranslatorProvider/TranslatorProvider.js +33 -71
- package/build/providers/TranslatorProvider/TranslatorProvider.js.map +1 -1
- package/build/providers/TranslatorProvider/index.js +1 -21
- package/build/providers/VersionProvider/VersionProvider.js +42 -57
- package/build/providers/VersionProvider/VersionProvider.js.map +1 -1
- package/build/providers/VersionProvider/index.js +1 -21
- package/build/providers/index.js +16 -94
- package/build/sections/Detail/ContainerContent.js +24 -63
- package/build/sections/Detail/ContainerContent.js.map +1 -1
- package/build/sections/Detail/Detail.js +39 -62
- package/build/sections/Detail/Detail.js.map +1 -1
- package/build/sections/Detail/ReadmeSection.js +8 -18
- package/build/sections/Detail/ReadmeSection.js.map +1 -1
- package/build/sections/Detail/Tabs.js +52 -54
- package/build/sections/Detail/Tabs.js.map +1 -1
- package/build/sections/Detail/index.js +1 -14
- package/build/sections/Footer/Footer.js +94 -137
- package/build/sections/Footer/Footer.js.map +1 -1
- package/build/sections/Footer/index.js +1 -14
- package/build/sections/Footer/styles.d.ts +16 -16
- package/build/sections/Footer/styles.js +58 -89
- package/build/sections/Footer/styles.js.map +1 -1
- package/build/sections/Header/Header.js +89 -144
- package/build/sections/Header/Header.js.map +1 -1
- package/build/sections/Header/HeaderGreetings.js +17 -21
- package/build/sections/Header/HeaderGreetings.js.map +1 -1
- package/build/sections/Header/HeaderLeft.js +31 -32
- package/build/sections/Header/HeaderLeft.js.map +1 -1
- package/build/sections/Header/HeaderMenu.js +43 -50
- package/build/sections/Header/HeaderMenu.js.map +1 -1
- package/build/sections/Header/HeaderRight.js +76 -119
- package/build/sections/Header/HeaderRight.js.map +1 -1
- package/build/sections/Header/HeaderSettingsDialog.js +91 -107
- package/build/sections/Header/HeaderSettingsDialog.js.map +1 -1
- package/build/sections/Header/HeaderToolTip.js +10 -17
- package/build/sections/Header/HeaderToolTip.js.map +1 -1
- package/build/sections/Header/HeaderToolTipIcon.d.ts +1 -1
- package/build/sections/Header/HeaderToolTipIcon.js +56 -63
- package/build/sections/Header/HeaderToolTipIcon.js.map +1 -1
- package/build/sections/Header/LanguageSwitch.js +81 -128
- package/build/sections/Header/LanguageSwitch.js.map +1 -1
- package/build/sections/Header/RegistryInfoContent/RegistryInfoContent.d.ts +6 -6
- package/build/sections/Header/RegistryInfoContent/RegistryInfoContent.js +171 -166
- package/build/sections/Header/RegistryInfoContent/RegistryInfoContent.js.map +1 -1
- package/build/sections/Header/RegistryInfoContent/index.js +1 -14
- package/build/sections/Header/RegistryInfoContent/styles.d.ts +6 -6
- package/build/sections/Header/RegistryInfoContent/styles.js +17 -30
- package/build/sections/Header/RegistryInfoContent/styles.js.map +1 -1
- package/build/sections/Header/index.js +1 -14
- package/build/sections/Header/styles.d.ts +10 -10
- package/build/sections/Header/styles.js +109 -146
- package/build/sections/Header/styles.js.map +1 -1
- package/build/sections/Home/Home.js +17 -21
- package/build/sections/Home/Home.js.map +1 -1
- package/build/sections/Home/index.js +1 -14
- package/build/sections/Security/AddUser.js +116 -179
- package/build/sections/Security/AddUser.js.map +1 -1
- package/build/sections/Security/ChangePassword.js +111 -169
- package/build/sections/Security/ChangePassword.js.map +1 -1
- package/build/sections/Security/Login.js +78 -142
- package/build/sections/Security/Login.js.map +1 -1
- package/build/sections/Security/Success.js +40 -50
- package/build/sections/Security/Success.js.map +1 -1
- package/build/sections/Security/index.js +4 -35
- package/build/sections/Security/styles.js +25 -38
- package/build/sections/Security/styles.js.map +1 -1
- package/build/sections/Security/utils.js +14 -57
- package/build/sections/Security/utils.js.map +1 -1
- package/build/sections/SideBar/Sidebar.js +85 -90
- package/build/sections/SideBar/Sidebar.js.map +1 -1
- package/build/sections/SideBar/index.js +1 -14
- package/build/sections/index.js +4 -21
- package/build/store/api.js +57 -116
- package/build/store/api.js.map +1 -1
- package/build/store/index.js +1 -14
- package/build/store/routes.js +6 -20
- package/build/store/routes.js.map +1 -1
- package/build/store/storage.js +19 -30
- package/build/store/storage.js.map +1 -1
- package/build/store/utils.js +7 -12
- package/build/store/utils.js.map +1 -1
- package/build/ui-components.css +2 -0
- package/build/utils/cli-utils.d.ts +1 -1
- package/build/utils/cli-utils.js +21 -36
- package/build/utils/cli-utils.js.map +1 -1
- package/build/utils/index.js +6 -75
- package/build/utils/loadable.js +12 -25
- package/build/utils/loadable.js.map +1 -1
- package/build/utils/routes.js +8 -31
- package/build/utils/routes.js.map +1 -1
- package/build/utils/schemas.js +15 -27
- package/build/utils/schemas.js.map +1 -1
- package/build/utils/token.js +20 -40
- package/build/utils/token.js.map +1 -1
- package/build/utils/url.js +45 -73
- package/build/utils/url.js.map +1 -1
- package/build/utils/utils.js +55 -111
- package/build/utils/utils.js.map +1 -1
- package/package.json +17 -12
- package/build/AppTest/AppRoute.js +0 -14
- package/build/AppTest/AppRoute.js.map +0 -1
- package/build/Theme/index.js.map +0 -1
- package/build/components/ActionBar/index.js.map +0 -1
- package/build/components/Author/index.js.map +0 -1
- package/build/components/CopyClipboard/index.js.map +0 -1
- package/build/components/Dependencies/index.js.map +0 -1
- package/build/components/Dependencies/types.js +0 -6
- package/build/components/Dependencies/types.js.map +0 -1
- package/build/components/Deprecated/index.js.map +0 -1
- package/build/components/Developers/index.js.map +0 -1
- package/build/components/Distribution/index.js.map +0 -1
- package/build/components/Engines/index.js.map +0 -1
- package/build/components/ErrorBoundary/index.js.map +0 -1
- package/build/components/Forbidden/index.js.map +0 -1
- package/build/components/FundButton/index.js.map +0 -1
- package/build/components/HeaderInfoDialog/index.js.map +0 -1
- package/build/components/Heading/index.js.map +0 -1
- package/build/components/Help/index.js.map +0 -1
- package/build/components/Icons/DevsIcons/CommonJS.js +0 -18
- package/build/components/Icons/DevsIcons/CommonJS.js.map +0 -1
- package/build/components/Icons/DevsIcons/ES6Module.js +0 -18
- package/build/components/Icons/DevsIcons/ES6Module.js.map +0 -1
- package/build/components/Icons/DevsIcons/Git.js +0 -18
- package/build/components/Icons/DevsIcons/Git.js.map +0 -1
- package/build/components/Icons/DevsIcons/NodeJS.js +0 -18
- package/build/components/Icons/DevsIcons/NodeJS.js.map +0 -1
- package/build/components/Icons/DevsIcons/TypeScript.js +0 -18
- package/build/components/Icons/DevsIcons/TypeScript.js.map +0 -1
- package/build/components/Icons/DevsIcons/commonjs.svg +0 -4
- package/build/components/Icons/DevsIcons/es6module.svg +0 -4
- package/build/components/Icons/DevsIcons/git.svg +0 -4
- package/build/components/Icons/DevsIcons/index.js.map +0 -1
- package/build/components/Icons/DevsIcons/nodejs.svg +0 -6
- package/build/components/Icons/DevsIcons/typescript.svg +0 -4
- package/build/components/Icons/Managers/Npm.js +0 -18
- package/build/components/Icons/Managers/Npm.js.map +0 -1
- package/build/components/Icons/Managers/Pnpm.js +0 -18
- package/build/components/Icons/Managers/Pnpm.js.map +0 -1
- package/build/components/Icons/Managers/Yarn.js +0 -18
- package/build/components/Icons/Managers/Yarn.js.map +0 -1
- package/build/components/Icons/Managers/index.js.map +0 -1
- package/build/components/Icons/Managers/npm.svg +0 -15
- package/build/components/Icons/Managers/pnpm.svg +0 -1
- package/build/components/Icons/Managers/yarn.svg +0 -1
- package/build/components/Install/index.js.map +0 -1
- package/build/components/Keywords/index.js.map +0 -1
- package/build/components/Label/index.js.map +0 -1
- package/build/components/Link/index.js.map +0 -1
- package/build/components/LinkExternal/index.js.map +0 -1
- package/build/components/Loading/Spinner/index.js.map +0 -1
- package/build/components/Loading/index.js.map +0 -1
- package/build/components/LoginDialog/index.js.map +0 -1
- package/build/components/Logo/img/logo-black-and-white.svg +0 -1
- package/build/components/Logo/img/logo.svg +0 -1
- package/build/components/Logo/index.js.map +0 -1
- package/build/components/MenuItem/index.js.map +0 -1
- package/build/components/NoItems/index.js.map +0 -1
- package/build/components/NotFound/img/package.svg +0 -1
- package/build/components/NotFound/index.js.map +0 -1
- package/build/components/Package/index.js.map +0 -1
- package/build/components/PackageList/index.js.map +0 -1
- package/build/components/Person/index.js.map +0 -1
- package/build/components/RawViewer/index.js.map +0 -1
- package/build/components/Readme/github-markdown.css +0 -1198
- package/build/components/Readme/index.js.map +0 -1
- package/build/components/Readme/types.js +0 -6
- package/build/components/Readme/types.js.map +0 -1
- package/build/components/RegistryInfoDialog/index.js.map +0 -1
- package/build/components/RegistryInfoDialog/types.js +0 -6
- package/build/components/RegistryInfoDialog/types.js.map +0 -1
- package/build/components/Repository/index.js.map +0 -1
- package/build/components/Search/AutoComplete/index.js.map +0 -1
- package/build/components/Search/index.js.map +0 -1
- package/build/components/SettingsMenu/index.js.map +0 -1
- package/build/components/SideBarTitle/index.js.map +0 -1
- package/build/components/UnAuthorized/UnAuthorized.js +0 -75
- package/build/components/UnAuthorized/UnAuthorized.js.map +0 -1
- package/build/components/UnAuthorized/index.js +0 -14
- package/build/components/UnAuthorized/index.js.map +0 -1
- package/build/components/UpLinks/index.js.map +0 -1
- package/build/components/Versions/index.js.map +0 -1
- package/build/components/Versions/types.js +0 -6
- package/build/components/Versions/types.js.map +0 -1
- package/build/hooks/index.js.map +0 -1
- package/build/index.js.map +0 -1
- package/build/layouts/Version/index.js.map +0 -1
- package/build/pages/Front/index.js.map +0 -1
- package/build/pages/Security/index.js.map +0 -1
- package/build/pages/Version/index.js.map +0 -1
- package/build/providers/AppConfigurationProvider/index.js.map +0 -1
- package/build/providers/AuthProvider/index.js.map +0 -1
- package/build/providers/AuthProvider/types.js +0 -6
- package/build/providers/AuthProvider/types.js.map +0 -1
- package/build/providers/DownloadProvider/index.js.map +0 -1
- package/build/providers/ManifestsProvider/README.md +0 -22
- package/build/providers/ManifestsProvider/index.js.map +0 -1
- package/build/providers/PersistenceSettingProvider/index.js.map +0 -1
- package/build/providers/SearchProvider/index.js.map +0 -1
- package/build/providers/TranslatorProvider/index.js.map +0 -1
- package/build/providers/VersionProvider/README.md +0 -22
- package/build/providers/VersionProvider/index.js.map +0 -1
- package/build/providers/index.js.map +0 -1
- package/build/routes/SecurityRoutes.js +0 -36
- package/build/routes/SecurityRoutes.js.map +0 -1
- package/build/sections/Detail/index.js.map +0 -1
- package/build/sections/Footer/index.js.map +0 -1
- package/build/sections/Header/RegistryInfoContent/index.js.map +0 -1
- package/build/sections/Header/index.js.map +0 -1
- package/build/sections/Home/index.js.map +0 -1
- package/build/sections/Security/index.js.map +0 -1
- package/build/sections/SideBar/index.js.map +0 -1
- package/build/sections/index.js.map +0 -1
- package/build/store/index.js.map +0 -1
- package/build/test/i18n-config.js +0 -26
- package/build/test/i18n-config.js.map +0 -1
- package/build/test/test-react-testing-library.js +0 -147
- package/build/test/test-react-testing-library.js.map +0 -1
- package/build/types/external-modules.d.js +0 -2
- package/build/types/external-modules.d.js.map +0 -1
- package/build/types/index.js +0 -6
- package/build/types/index.js.map +0 -1
- package/build/types/packageMeta.js +0 -6
- package/build/types/packageMeta.js.map +0 -1
- package/build/utils/index.js.map +0 -1
- package/build/utils/token-generate.js +0 -44
- package/build/utils/token-generate.js.map +0 -1
|
@@ -1,14 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "default", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _Author["default"];
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
var _Author = _interopRequireDefault(require("./Author"));
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
14
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import "./Author.js";
|
|
@@ -1,35 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} : {
|
|
15
|
-
target: "e4ifo371",
|
|
16
|
-
label: "StyledText"
|
|
17
|
-
})(function (props) {
|
|
18
|
-
return {
|
|
19
|
-
fontWeight: props.theme.fontWeight.bold
|
|
20
|
-
};
|
|
21
|
-
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0F1dGhvci9zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBTTBCIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0F1dGhvci9zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgeyBUeXBvZ3JhcGh5IH0gZnJvbSAnQG11aS9tYXRlcmlhbCc7XG5pbXBvcnQgTGlzdEl0ZW0gZnJvbSAnQG11aS9tYXRlcmlhbC9MaXN0SXRlbSc7XG5cbmltcG9ydCB0eXBlIHsgVGhlbWUgfSBmcm9tICcuLi8uLi9UaGVtZSc7XG5cbmV4cG9ydCBjb25zdCBTdHlsZWRUZXh0ID0gc3R5bGVkKFR5cG9ncmFwaHkpPHsgdGhlbWU/OiBUaGVtZSB9PigocHJvcHMpID0+ICh7XG4gIGZvbnRXZWlnaHQ6IHByb3BzLnRoZW1lLmZvbnRXZWlnaHQuYm9sZCxcbn0pKTtcblxuZXhwb3J0IGNvbnN0IEF1dGhvckxpc3RJdGVtID0gc3R5bGVkKExpc3RJdGVtKSh7XG4gIHBhZGRpbmc6IDAsXG4gICc6aG92ZXInOiB7XG4gICAgYmFja2dyb3VuZENvbG9yOiAndHJhbnNwYXJlbnQnLFxuICB9LFxufSk7XG4iXX0= */");
|
|
22
|
-
var AuthorListItem = exports.AuthorListItem = /*#__PURE__*/(0, _base["default"])(_ListItem["default"], process.env.NODE_ENV === "production" ? {
|
|
23
|
-
target: "e4ifo370"
|
|
24
|
-
} : {
|
|
25
|
-
target: "e4ifo370",
|
|
26
|
-
label: "AuthorListItem"
|
|
1
|
+
import e from "@emotion/styled/base";
|
|
2
|
+
import { Typography as t } from "@mui/material";
|
|
3
|
+
import n from "@mui/material/ListItem";
|
|
4
|
+
//#region src/components/Author/styles.ts
|
|
5
|
+
function r() {
|
|
6
|
+
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
7
|
+
}
|
|
8
|
+
var i = /* @__PURE__ */ e(t, process.env.NODE_ENV === "production" ? { target: "e4ifo371" } : {
|
|
9
|
+
target: "e4ifo371",
|
|
10
|
+
label: "StyledText"
|
|
11
|
+
})((e) => ({ fontWeight: e.theme.fontWeight.bold }), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3ZlcmRhY2Npby92ZXJkYWNjaW8vcGFja2FnZXMvdWktY29tcG9uZW50cy9zcmMvY29tcG9uZW50cy9BdXRob3Ivc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQU0wQiIsImZpbGUiOiIvaG9tZS9ydW5uZXIvd29yay92ZXJkYWNjaW8vdmVyZGFjY2lvL3BhY2thZ2VzL3VpLWNvbXBvbmVudHMvc3JjL2NvbXBvbmVudHMvQXV0aG9yL3N0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCB7IFR5cG9ncmFwaHkgfSBmcm9tICdAbXVpL21hdGVyaWFsJztcbmltcG9ydCBMaXN0SXRlbSBmcm9tICdAbXVpL21hdGVyaWFsL0xpc3RJdGVtJztcblxuaW1wb3J0IHR5cGUgeyBUaGVtZSB9IGZyb20gJy4uLy4uL1RoZW1lJztcblxuZXhwb3J0IGNvbnN0IFN0eWxlZFRleHQgPSBzdHlsZWQoVHlwb2dyYXBoeSk8eyB0aGVtZT86IFRoZW1lIH0+KChwcm9wcykgPT4gKHtcbiAgZm9udFdlaWdodDogcHJvcHMudGhlbWUuZm9udFdlaWdodC5ib2xkLFxufSkpO1xuXG5leHBvcnQgY29uc3QgQXV0aG9yTGlzdEl0ZW0gPSBzdHlsZWQoTGlzdEl0ZW0pKHtcbiAgcGFkZGluZzogMCxcbiAgJzpob3Zlcic6IHtcbiAgICBiYWNrZ3JvdW5kQ29sb3I6ICd0cmFuc3BhcmVudCcsXG4gIH0sXG59KTtcbiJdfQ== */"), a = /* @__PURE__ */ e(n, process.env.NODE_ENV === "production" ? { target: "e4ifo370" } : {
|
|
12
|
+
target: "e4ifo370",
|
|
13
|
+
label: "AuthorListItem"
|
|
27
14
|
})(process.env.NODE_ENV === "production" ? {
|
|
28
|
-
|
|
29
|
-
|
|
15
|
+
name: "zw46c6",
|
|
16
|
+
styles: "padding:0;:hover{background-color:transparent;}"
|
|
30
17
|
} : {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
18
|
+
name: "zw46c6",
|
|
19
|
+
styles: "padding:0;:hover{background-color:transparent;}/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3ZlcmRhY2Npby92ZXJkYWNjaW8vcGFja2FnZXMvdWktY29tcG9uZW50cy9zcmMvY29tcG9uZW50cy9BdXRob3Ivc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVU4QiIsImZpbGUiOiIvaG9tZS9ydW5uZXIvd29yay92ZXJkYWNjaW8vdmVyZGFjY2lvL3BhY2thZ2VzL3VpLWNvbXBvbmVudHMvc3JjL2NvbXBvbmVudHMvQXV0aG9yL3N0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCB7IFR5cG9ncmFwaHkgfSBmcm9tICdAbXVpL21hdGVyaWFsJztcbmltcG9ydCBMaXN0SXRlbSBmcm9tICdAbXVpL21hdGVyaWFsL0xpc3RJdGVtJztcblxuaW1wb3J0IHR5cGUgeyBUaGVtZSB9IGZyb20gJy4uLy4uL1RoZW1lJztcblxuZXhwb3J0IGNvbnN0IFN0eWxlZFRleHQgPSBzdHlsZWQoVHlwb2dyYXBoeSk8eyB0aGVtZT86IFRoZW1lIH0+KChwcm9wcykgPT4gKHtcbiAgZm9udFdlaWdodDogcHJvcHMudGhlbWUuZm9udFdlaWdodC5ib2xkLFxufSkpO1xuXG5leHBvcnQgY29uc3QgQXV0aG9yTGlzdEl0ZW0gPSBzdHlsZWQoTGlzdEl0ZW0pKHtcbiAgcGFkZGluZzogMCxcbiAgJzpob3Zlcic6IHtcbiAgICBiYWNrZ3JvdW5kQ29sb3I6ICd0cmFuc3BhcmVudCcsXG4gIH0sXG59KTtcbiJdfQ== */",
|
|
20
|
+
toString: r
|
|
34
21
|
});
|
|
22
|
+
//#endregion
|
|
23
|
+
export { a as AuthorListItem, i as StyledText };
|
|
24
|
+
|
|
35
25
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","names":["
|
|
1
|
+
{"version":3,"file":"styles.js","names":["Typography","ListItem","Theme","StyledText","_styled","process","env","NODE_ENV","target","label","theme","props","fontWeight","bold","AuthorListItem","name","styles","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 type { 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":";;;;;;;AAMA,IAAaG,IAAaC,kBAAOJ,GAAAA,QAAAA,IAAAA,aAAU,eAAA,EAAAQ,QAAA,YAAA,GAAA;CAAAA,QAAA;CAAAC,OAAA;CAAA,CAAC,EAAqBE,OAAW,EAC1EC,YAAYD,EAAMD,MAAME,WAAWC,MACpC,GAAA,QAAA,IAAA,aAAC,eAAA,KAAA,8/BAAC,EAEUC,IAAiBV,kBAAOH,GAAAA,QAAAA,IAAAA,aAAQ,eAAA,EAAAO,QAAA,YAAA,GAAA;CAAAA,QAAA;CAAAC,OAAA;CAAA,CAAC,CAAA,QAAA,IAAA,aAAA,eAAA;CAAAM,MAAA;CAAAC,QAAA;CAAA,GAAA;CAAAD,MAAA;CAAAC,QAAA;CAAAC,UAAAC;CAK7C,CAAC"}
|
|
@@ -1,71 +1,56 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
16
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
17
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
18
|
-
var Wrapper = /*#__PURE__*/(0, _base["default"])('div', process.env.NODE_ENV === "production" ? {
|
|
19
|
-
target: "em5nldk1"
|
|
20
|
-
} : {
|
|
21
|
-
target: "em5nldk1",
|
|
22
|
-
label: "Wrapper"
|
|
1
|
+
import { copyToClipBoardUtility as e } from "./utils.js";
|
|
2
|
+
import t from "@emotion/styled/base";
|
|
3
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
+
import i from "@mui/icons-material/FileCopy";
|
|
5
|
+
import a from "@mui/material/IconButton";
|
|
6
|
+
import o from "@mui/material/Tooltip";
|
|
7
|
+
import "react";
|
|
8
|
+
//#region src/components/CopyClipboard/CopyToClipBoard.tsx
|
|
9
|
+
function s() {
|
|
10
|
+
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
11
|
+
}
|
|
12
|
+
var c = /* @__PURE__ */ t("div", process.env.NODE_ENV === "production" ? { target: "em5nldk1" } : {
|
|
13
|
+
target: "em5nldk1",
|
|
14
|
+
label: "Wrapper"
|
|
23
15
|
})(process.env.NODE_ENV === "production" ? {
|
|
24
|
-
|
|
25
|
-
|
|
16
|
+
name: "bcffy2",
|
|
17
|
+
styles: "display:flex;align-items:center;justify-content:space-between"
|
|
26
18
|
} : {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
})
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
} : {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}, /*#__PURE__*/_react["default"].createElement(_FileCopy["default"], {
|
|
61
|
-
fontSize: "small"
|
|
62
|
-
}))) : /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
|
|
63
|
-
"data-testid": dataTestId,
|
|
64
|
-
onClick: (0, _utils.copyToClipBoardUtility)(text),
|
|
65
|
-
size: "small"
|
|
66
|
-
}, /*#__PURE__*/_react["default"].createElement(_FileCopy["default"], {
|
|
67
|
-
fontSize: "small"
|
|
68
|
-
})));
|
|
19
|
+
name: "bcffy2",
|
|
20
|
+
styles: "display:flex;align-items:center;justify-content:space-between/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3ZlcmRhY2Npby92ZXJkYWNjaW8vcGFja2FnZXMvdWktY29tcG9uZW50cy9zcmMvY29tcG9uZW50cy9Db3B5Q2xpcGJvYXJkL0NvcHlUb0NsaXBCb2FyZC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBZ0JnQiIsImZpbGUiOiIvaG9tZS9ydW5uZXIvd29yay92ZXJkYWNjaW8vdmVyZGFjY2lvL3BhY2thZ2VzL3VpLWNvbXBvbmVudHMvc3JjL2NvbXBvbmVudHMvQ29weUNsaXBib2FyZC9Db3B5VG9DbGlwQm9hcmQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IEZpbGVDb3B5IGZyb20gJ0BtdWkvaWNvbnMtbWF0ZXJpYWwvRmlsZUNvcHknO1xuaW1wb3J0IEljb25CdXR0b24gZnJvbSAnQG11aS9tYXRlcmlhbC9JY29uQnV0dG9uJztcbmltcG9ydCBUb29sdGlwIGZyb20gJ0BtdWkvbWF0ZXJpYWwvVG9vbHRpcCc7XG5pbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnO1xuXG5pbXBvcnQgdHlwZSB7IFRoZW1lIH0gZnJvbSAnLi4vLi4vVGhlbWUnO1xuaW1wb3J0IHsgY29weVRvQ2xpcEJvYXJkVXRpbGl0eSB9IGZyb20gJy4vdXRpbHMnO1xuXG5pbnRlcmZhY2UgUHJvcHMge1xuICB0ZXh0OiBzdHJpbmc7XG4gIHRpdGxlPzogc3RyaW5nO1xuICBkYXRhVGVzdElkOiBzdHJpbmc7XG4gIGNoaWxkcmVuPzogUmVhY3QuUmVhY3ROb2RlO1xufVxuXG5jb25zdCBXcmFwcGVyID0gc3R5bGVkKCdkaXYnKSh7XG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgYWxpZ25JdGVtczogJ2NlbnRlcicsXG4gIGp1c3RpZnlDb250ZW50OiAnc3BhY2UtYmV0d2VlbicsXG59KTtcblxuY29uc3QgQ29udGVudCA9IHN0eWxlZCgnc3BhbicpPHsgdGhlbWU/OiBUaGVtZSB9PigoeyB0aGVtZSB9KSA9PiAoe1xuICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICB0ZXh0T3ZlcmZsb3c6ICdlbGxpcHNpcycsXG4gIGhlaWdodDogJ2F1dG8nLFxuICB3aGl0ZVNwYWNlOiAnYnJlYWstc3BhY2VzJyxcbiAgZm9udFNpemU6IHRoZW1lLmZvbnRTaXplLnNtLFxufSkpO1xuXG5mdW5jdGlvbiBDb3B5VG9DbGlwQm9hcmQoeyB0ZXh0LCBjaGlsZHJlbiwgZGF0YVRlc3RJZCwgdGl0bGUsIC4uLnByb3BzIH06IFByb3BzKSB7XG4gIHJldHVybiAoXG4gICAgPFdyYXBwZXIgey4uLnByb3BzfT5cbiAgICAgIDxDb250ZW50PntjaGlsZHJlbiA/PyB0ZXh0fTwvQ29udGVudD5cbiAgICAgIHt0aXRsZSA/IChcbiAgICAgICAgPFRvb2x0aXAgZGlzYWJsZUZvY3VzTGlzdGVuZXI9e3RydWV9IHRpdGxlPXt0aXRsZX0+XG4gICAgICAgICAgPEljb25CdXR0b24gZGF0YS10ZXN0aWQ9e2RhdGFUZXN0SWR9IG9uQ2xpY2s9e2NvcHlUb0NsaXBCb2FyZFV0aWxpdHkodGV4dCl9IHNpemU9XCJzbWFsbFwiPlxuICAgICAgICAgICAgPEZpbGVDb3B5IGZvbnRTaXplPVwic21hbGxcIiAvPlxuICAgICAgICAgIDwvSWNvbkJ1dHRvbj5cbiAgICAgICAgPC9Ub29sdGlwPlxuICAgICAgKSA6IChcbiAgICAgICAgPEljb25CdXR0b24gZGF0YS10ZXN0aWQ9e2RhdGFUZXN0SWR9IG9uQ2xpY2s9e2NvcHlUb0NsaXBCb2FyZFV0aWxpdHkodGV4dCl9IHNpemU9XCJzbWFsbFwiPlxuICAgICAgICAgIDxGaWxlQ29weSBmb250U2l6ZT1cInNtYWxsXCIgLz5cbiAgICAgICAgPC9JY29uQnV0dG9uPlxuICAgICAgKX1cbiAgICA8L1dyYXBwZXI+XG4gICk7XG59XG5cbmV4cG9ydCBkZWZhdWx0IENvcHlUb0NsaXBCb2FyZDtcbiJdfQ== */",
|
|
21
|
+
toString: s
|
|
22
|
+
}), l = /* @__PURE__ */ t("span", process.env.NODE_ENV === "production" ? { target: "em5nldk0" } : {
|
|
23
|
+
target: "em5nldk0",
|
|
24
|
+
label: "Content"
|
|
25
|
+
})(({ theme: e }) => ({
|
|
26
|
+
display: "inline-block",
|
|
27
|
+
overflow: "hidden",
|
|
28
|
+
textOverflow: "ellipsis",
|
|
29
|
+
height: "auto",
|
|
30
|
+
whiteSpace: "break-spaces",
|
|
31
|
+
fontSize: e.fontSize.sm
|
|
32
|
+
}), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3ZlcmRhY2Npby92ZXJkYWNjaW8vcGFja2FnZXMvdWktY29tcG9uZW50cy9zcmMvY29tcG9uZW50cy9Db3B5Q2xpcGJvYXJkL0NvcHlUb0NsaXBCb2FyZC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBc0JnQiIsImZpbGUiOiIvaG9tZS9ydW5uZXIvd29yay92ZXJkYWNjaW8vdmVyZGFjY2lvL3BhY2thZ2VzL3VpLWNvbXBvbmVudHMvc3JjL2NvbXBvbmVudHMvQ29weUNsaXBib2FyZC9Db3B5VG9DbGlwQm9hcmQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IEZpbGVDb3B5IGZyb20gJ0BtdWkvaWNvbnMtbWF0ZXJpYWwvRmlsZUNvcHknO1xuaW1wb3J0IEljb25CdXR0b24gZnJvbSAnQG11aS9tYXRlcmlhbC9JY29uQnV0dG9uJztcbmltcG9ydCBUb29sdGlwIGZyb20gJ0BtdWkvbWF0ZXJpYWwvVG9vbHRpcCc7XG5pbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnO1xuXG5pbXBvcnQgdHlwZSB7IFRoZW1lIH0gZnJvbSAnLi4vLi4vVGhlbWUnO1xuaW1wb3J0IHsgY29weVRvQ2xpcEJvYXJkVXRpbGl0eSB9IGZyb20gJy4vdXRpbHMnO1xuXG5pbnRlcmZhY2UgUHJvcHMge1xuICB0ZXh0OiBzdHJpbmc7XG4gIHRpdGxlPzogc3RyaW5nO1xuICBkYXRhVGVzdElkOiBzdHJpbmc7XG4gIGNoaWxkcmVuPzogUmVhY3QuUmVhY3ROb2RlO1xufVxuXG5jb25zdCBXcmFwcGVyID0gc3R5bGVkKCdkaXYnKSh7XG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgYWxpZ25JdGVtczogJ2NlbnRlcicsXG4gIGp1c3RpZnlDb250ZW50OiAnc3BhY2UtYmV0d2VlbicsXG59KTtcblxuY29uc3QgQ29udGVudCA9IHN0eWxlZCgnc3BhbicpPHsgdGhlbWU/OiBUaGVtZSB9PigoeyB0aGVtZSB9KSA9PiAoe1xuICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICB0ZXh0T3ZlcmZsb3c6ICdlbGxpcHNpcycsXG4gIGhlaWdodDogJ2F1dG8nLFxuICB3aGl0ZVNwYWNlOiAnYnJlYWstc3BhY2VzJyxcbiAgZm9udFNpemU6IHRoZW1lLmZvbnRTaXplLnNtLFxufSkpO1xuXG5mdW5jdGlvbiBDb3B5VG9DbGlwQm9hcmQoeyB0ZXh0LCBjaGlsZHJlbiwgZGF0YVRlc3RJZCwgdGl0bGUsIC4uLnByb3BzIH06IFByb3BzKSB7XG4gIHJldHVybiAoXG4gICAgPFdyYXBwZXIgey4uLnByb3BzfT5cbiAgICAgIDxDb250ZW50PntjaGlsZHJlbiA/PyB0ZXh0fTwvQ29udGVudD5cbiAgICAgIHt0aXRsZSA/IChcbiAgICAgICAgPFRvb2x0aXAgZGlzYWJsZUZvY3VzTGlzdGVuZXI9e3RydWV9IHRpdGxlPXt0aXRsZX0+XG4gICAgICAgICAgPEljb25CdXR0b24gZGF0YS10ZXN0aWQ9e2RhdGFUZXN0SWR9IG9uQ2xpY2s9e2NvcHlUb0NsaXBCb2FyZFV0aWxpdHkodGV4dCl9IHNpemU9XCJzbWFsbFwiPlxuICAgICAgICAgICAgPEZpbGVDb3B5IGZvbnRTaXplPVwic21hbGxcIiAvPlxuICAgICAgICAgIDwvSWNvbkJ1dHRvbj5cbiAgICAgICAgPC9Ub29sdGlwPlxuICAgICAgKSA6IChcbiAgICAgICAgPEljb25CdXR0b24gZGF0YS10ZXN0aWQ9e2RhdGFUZXN0SWR9IG9uQ2xpY2s9e2NvcHlUb0NsaXBCb2FyZFV0aWxpdHkodGV4dCl9IHNpemU9XCJzbWFsbFwiPlxuICAgICAgICAgIDxGaWxlQ29weSBmb250U2l6ZT1cInNtYWxsXCIgLz5cbiAgICAgICAgPC9JY29uQnV0dG9uPlxuICAgICAgKX1cbiAgICA8L1dyYXBwZXI+XG4gICk7XG59XG5cbmV4cG9ydCBkZWZhdWx0IENvcHlUb0NsaXBCb2FyZDtcbiJdfQ== */");
|
|
33
|
+
function u({ text: t, children: s, dataTestId: u, title: d, ...f }) {
|
|
34
|
+
return /* @__PURE__ */ r(c, {
|
|
35
|
+
...f,
|
|
36
|
+
children: [/* @__PURE__ */ n(l, { children: s ?? t }), d ? /* @__PURE__ */ n(o, {
|
|
37
|
+
disableFocusListener: !0,
|
|
38
|
+
title: d,
|
|
39
|
+
children: /* @__PURE__ */ n(a, {
|
|
40
|
+
"data-testid": u,
|
|
41
|
+
onClick: e(t),
|
|
42
|
+
size: "small",
|
|
43
|
+
children: /* @__PURE__ */ n(i, { fontSize: "small" })
|
|
44
|
+
})
|
|
45
|
+
}) : /* @__PURE__ */ n(a, {
|
|
46
|
+
"data-testid": u,
|
|
47
|
+
onClick: e(t),
|
|
48
|
+
size: "small",
|
|
49
|
+
children: /* @__PURE__ */ n(i, { fontSize: "small" })
|
|
50
|
+
})]
|
|
51
|
+
});
|
|
69
52
|
}
|
|
70
|
-
|
|
53
|
+
//#endregion
|
|
54
|
+
export { u as default };
|
|
55
|
+
|
|
71
56
|
//# sourceMappingURL=CopyToClipBoard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CopyToClipBoard.js","names":["
|
|
1
|
+
{"version":3,"file":"CopyToClipBoard.js","names":["FileCopy","IconButton","Tooltip","React","Theme","copyToClipBoardUtility","Props","text","title","dataTestId","children","ReactNode","Wrapper","_styled","process","env","NODE_ENV","target","label","name","styles","toString","_EMOTION_STRINGIFIED_CSS_ERROR__","Content","theme","display","overflow","textOverflow","height","whiteSpace","fontSize","sm","CopyToClipBoard","props"],"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 type { 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":";;;;;;;;;;;AAgBA,IAAMY,IAAUC,kBAAO,OAAA,QAAA,IAAA,aAAK,eAAA,EAAAI,QAAA,YAAA,GAAA;CAAAA,QAAA;CAAAC,OAAA;CAAA,CAAC,CAAA,QAAA,IAAA,aAAA,eAAA;CAAAC,MAAA;CAAAC,QAAA;CAAA,GAAA;CAAAD,MAAA;CAAAC,QAAA;CAAAC,UAAAC;CAI5B,CAAC,EAEIC,IAAUV,kBAAO,QAAA,QAAA,IAAA,aAAM,eAAA,EAAAI,QAAA,YAAA,GAAA;CAAAA,QAAA;CAAAC,OAAA;CAAA,CAAC,EAAqB,EAAEM,gBAAa;CAChEC,SAAS;CACTC,UAAU;CACVC,cAAc;CACdC,QAAQ;CACRC,YAAY;CACZC,UAAUN,EAAMM,SAASC;CAC1B,GAAA,QAAA,IAAA,aAAC,eAAA,KAAA,05EAAC;AAEH,SAASC,EAAgB,EAAEzB,SAAMG,aAAUD,eAAYD,UAAO,GAAGyB,KAAgB;AAC/E,QACE,kBAAC,GAAD;EAAS,GAAIA;YAAb,CACE,kBAAC,GAAD,EAAA,UAAUvB,KAAYH,GAAc,CAAA,EACnCC,IACC,kBAAC,GAAD;GAAS,sBAAsB;GAAaA;aAC1C,kBAAC,GAAD;IAAY,eAAaC;IAAY,SAASJ,EAAuBE,EAAK;IAAE,MAAK;cAC/E,kBAAC,GAAD,EAAU,UAAS,SAAO,CAAA;IAChB,CAAA;GACJ,CAAA,GAEV,kBAAC,GAAD;GAAY,eAAaE;GAAY,SAASJ,EAAuBE,EAAK;GAAE,MAAK;aAC/E,kBAAC,GAAD,EAAU,UAAS,SAAO,CAAA;GAE7B,CAAA,CACO"}
|
|
@@ -1,21 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "copyToClipBoardUtility", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _utils.copyToClipBoardUtility;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "default", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function get() {
|
|
15
|
-
return _CopyToClipBoard["default"];
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
var _CopyToClipBoard = _interopRequireDefault(require("./CopyToClipBoard"));
|
|
19
|
-
var _utils = require("./utils");
|
|
20
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
21
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import "./utils.js";
|
|
2
|
+
import "./CopyToClipBoard.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { SyntheticEvent } from 'react';
|
|
2
|
-
export declare const copyToClipBoardUtility: (str: string) => (e: SyntheticEvent<HTMLElement>) => void;
|
|
2
|
+
export declare const copyToClipBoardUtility: (str: string) => ((e: SyntheticEvent<HTMLElement>) => void);
|
|
@@ -1,15 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.copyToClipBoardUtility = void 0;
|
|
7
|
-
var copyToClipBoardUtility = exports.copyToClipBoardUtility = function copyToClipBoardUtility(str) {
|
|
8
|
-
return function (event) {
|
|
9
|
-
event.preventDefault();
|
|
10
|
-
|
|
11
|
-
// document.execCommand is deprecated
|
|
12
|
-
navigator.clipboard.writeText(str);
|
|
13
|
-
};
|
|
1
|
+
//#region src/components/CopyClipboard/utils.ts
|
|
2
|
+
var e = (e) => (t) => {
|
|
3
|
+
t.preventDefault(), navigator.clipboard.writeText(e);
|
|
14
4
|
};
|
|
5
|
+
//#endregion
|
|
6
|
+
export { e as copyToClipBoardUtility };
|
|
7
|
+
|
|
15
8
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","names":["
|
|
1
|
+
{"version":3,"file":"utils.js","names":["SyntheticEvent","copyToClipBoardUtility","str","e","HTMLElement","event","preventDefault","navigator","clipboard","writeText"],"sources":["../../../src/components/CopyClipboard/utils.ts"],"sourcesContent":["import type { 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,IAAaC,KACVC,OACAG,MAA6C;AAI5CE,CAHAF,EAAMC,gBAAgB,EAGtBC,UAAUC,UAAUC,UAAUP,EAAI"}
|
|
@@ -1,82 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
optionalDependencies = latest.optionalDependencies,
|
|
35
|
-
bundleDependencies = latest.bundleDependencies,
|
|
36
|
-
name = latest.name;
|
|
37
|
-
var dependencyMap = {
|
|
38
|
-
dependencies: dependencies,
|
|
39
|
-
devDependencies: devDependencies,
|
|
40
|
-
peerDependencies: peerDependencies,
|
|
41
|
-
optionalDependencies: optionalDependencies,
|
|
42
|
-
bundleDependencies: bundleDependencies
|
|
43
|
-
};
|
|
44
|
-
var hasDependencies = (0, _utits.hasKeys)(dependencies) || (0, _utits.hasKeys)(bundleDependencies) || (0, _utits.hasKeys)(optionalDependencies) || (0, _utits.hasKeys)(devDependencies) || (0, _utits.hasKeys)(peerDependencies);
|
|
45
|
-
if (hasDependencies) {
|
|
46
|
-
return /*#__PURE__*/_react["default"].createElement(_Card["default"], {
|
|
47
|
-
sx: {
|
|
48
|
-
mb: 2
|
|
49
|
-
}
|
|
50
|
-
}, /*#__PURE__*/_react["default"].createElement(_CardContent["default"], null, /*#__PURE__*/_react["default"].createElement(_Box["default"], {
|
|
51
|
-
"data-testid": "dependencies-box",
|
|
52
|
-
sx: {
|
|
53
|
-
m: 2
|
|
54
|
-
}
|
|
55
|
-
}, Object.entries(dependencyMap).map(function (_ref2) {
|
|
56
|
-
var _ref3 = _slicedToArray(_ref2, 2),
|
|
57
|
-
dependencyType = _ref3[0],
|
|
58
|
-
dependencies = _ref3[1];
|
|
59
|
-
if (!dependencies || Object.keys(dependencies).length === 0) {
|
|
60
|
-
return null;
|
|
61
|
-
}
|
|
62
|
-
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, {
|
|
63
|
-
key: dependencyType
|
|
64
|
-
}, /*#__PURE__*/_react["default"].createElement(_DependencyBlock.DependencyBlock, {
|
|
65
|
-
dependencies: dependencies,
|
|
66
|
-
key: dependencyType,
|
|
67
|
-
title: dependencyType
|
|
68
|
-
}));
|
|
69
|
-
}))));
|
|
70
|
-
}
|
|
71
|
-
return /*#__PURE__*/_react["default"].createElement(_Card["default"], {
|
|
72
|
-
sx: {
|
|
73
|
-
mb: 2
|
|
74
|
-
}
|
|
75
|
-
}, /*#__PURE__*/_react["default"].createElement(_CardContent["default"], null, /*#__PURE__*/_react["default"].createElement(_NoItems["default"], {
|
|
76
|
-
text: t('dependencies.has-no-dependencies', {
|
|
77
|
-
"package": name
|
|
78
|
-
})
|
|
79
|
-
})));
|
|
1
|
+
import e from "../NoItems/NoItems.js";
|
|
2
|
+
import "../NoItems/index.js";
|
|
3
|
+
import { DependencyBlock as t } from "./DependencyBlock.js";
|
|
4
|
+
import { hasKeys as n } from "./utits.js";
|
|
5
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
6
|
+
import { Fragment as i } from "react";
|
|
7
|
+
import a from "@mui/material/Box";
|
|
8
|
+
import { useTranslation as o } from "react-i18next";
|
|
9
|
+
import s from "@mui/material/Card";
|
|
10
|
+
import c from "@mui/material/CardContent";
|
|
11
|
+
//#region src/components/Dependencies/Dependencies.tsx
|
|
12
|
+
var l = ({ packageMeta: l }) => {
|
|
13
|
+
let { t: u } = o(), { latest: d } = l, { dependencies: f, devDependencies: p, peerDependencies: m, optionalDependencies: h, bundleDependencies: g, name: _ } = d, v = {
|
|
14
|
+
dependencies: f,
|
|
15
|
+
devDependencies: p,
|
|
16
|
+
peerDependencies: m,
|
|
17
|
+
optionalDependencies: h,
|
|
18
|
+
bundleDependencies: g
|
|
19
|
+
};
|
|
20
|
+
return n(f) || n(g) || n(h) || n(p) || n(m) ? /* @__PURE__ */ r(s, {
|
|
21
|
+
sx: { mb: 2 },
|
|
22
|
+
children: /* @__PURE__ */ r(c, { children: /* @__PURE__ */ r(a, {
|
|
23
|
+
"data-testid": "dependencies-box",
|
|
24
|
+
sx: { m: 2 },
|
|
25
|
+
children: Object.entries(v).map(([e, n]) => !n || Object.keys(n).length === 0 ? null : /* @__PURE__ */ r(i, { children: /* @__PURE__ */ r(t, {
|
|
26
|
+
dependencies: n,
|
|
27
|
+
title: e
|
|
28
|
+
}, e) }, e))
|
|
29
|
+
}) })
|
|
30
|
+
}) : /* @__PURE__ */ r(s, {
|
|
31
|
+
sx: { mb: 2 },
|
|
32
|
+
children: /* @__PURE__ */ r(c, { children: /* @__PURE__ */ r(e, { text: u("dependencies.has-no-dependencies", { package: _ }) }) })
|
|
33
|
+
});
|
|
80
34
|
};
|
|
81
|
-
|
|
35
|
+
//#endregion
|
|
36
|
+
export { l as default };
|
|
37
|
+
|
|
82
38
|
//# sourceMappingURL=Dependencies.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dependencies.js","names":["
|
|
1
|
+
{"version":3,"file":"Dependencies.js","names":["Box","Card","CardContent","React","Fragment","useTranslation","NoItems","DependencyBlock","hasKeys","Dependencies","FC","packageMeta","t","latest","dependencies","devDependencies","peerDependencies","optionalDependencies","bundleDependencies","name","dependencyMap","hasDependencies","mb","m","Object","entries","map","dependencyType","keys","length","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":";;;;;;;;;;;AAUA,IAAMS,KAAgD,EAAEE,qBAAkB;CACxE,IAAM,EAAEC,SAAMP,GAAgB,EAExB,EAAEQ,cAAWF,GAGb,EACJG,iBACAC,oBACAC,qBACAC,yBACAC,uBACAC,YACEN,GACEO,IAAgB;EACpBN;EACAC;EACAC;EACAC;EACAC;EACD;AAgCD,QA9BEV,EAAQM,EAAa,IACrBN,EAAQU,EAAmB,IAC3BV,EAAQS,EAAqB,IAC7BT,EAAQO,EAAgB,IACxBP,EAAQQ,EAAiB,GAGvB,kBAAC,GAAD;EAAM,IAAI,EAAEM,IAAI,GAAG;YACjB,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD;GAAK,eAAY;GAAmB,IAAI,EAAEC,GAAG,GAAG;aAC7CC,OAAOC,QAAQL,EAAc,CAACM,KAAK,CAACC,GAAgBb,OAC/C,CAACA,KAAgBU,OAAOI,KAAKd,EAAa,CAACe,WAAW,IACjD,OAGP,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD;IACgBf;IAEd,OAAOa;IAAe,EADjBA,EACiB,EAEf,EANIA,EAMJ,CAEb;GACC,CAAA,EACM,CAAA;EACR,CAAA,GAKT,kBAAC,GAAD;EAAM,IAAI,EAAEL,IAAI,GAAG;YACjB,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD,EAAS,MAAMV,EAAE,oCAAoC,EAAEkB,SAASX,GAAM,CAAC,EAAC,CAAA,EAC7D,CAAA;EACR,CAAA"}
|
|
@@ -7,10 +7,10 @@ interface DependencyBlockProps {
|
|
|
7
7
|
}
|
|
8
8
|
export declare const StyledText: import("@emotion/styled").StyledComponent<any, {}, {}>;
|
|
9
9
|
export declare const Tags: import("@emotion/styled").StyledComponent<{
|
|
10
|
-
theme?: import("@emotion/react").Theme
|
|
11
|
-
as?: React.ElementType
|
|
10
|
+
theme?: import("@emotion/react").Theme;
|
|
11
|
+
as?: React.ElementType;
|
|
12
12
|
} & {
|
|
13
|
-
theme?: Theme
|
|
13
|
+
theme?: Theme;
|
|
14
14
|
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
15
15
|
export declare const Tag: import("@emotion/styled").StyledComponent<any, {}, {}>;
|
|
16
16
|
export declare const DependencyBlock: React.FC<DependencyBlockProps>;
|