@verdaccio/ui-components 4.0.0-next-8.12 → 4.0.0-next-8.13
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 +23 -49
- package/build/AppTest/AppRoute.d.ts +1 -3
- package/build/AppTest/AppRoute.js +13 -40
- package/build/AppTest/AppRoute.js.map +1 -1
- package/build/Theme/ResetStyles.js +42 -32
- package/build/Theme/ResetStyles.js.map +1 -1
- package/build/Theme/StyleBaseline.js +15 -6
- package/build/Theme/StyleBaseline.js.map +1 -1
- package/build/Theme/ThemeProvider.js +38 -22
- package/build/Theme/ThemeProvider.js.map +1 -1
- package/build/Theme/colors.d.ts +11 -0
- package/build/Theme/colors.js +19 -1
- package/build/Theme/colors.js.map +1 -1
- package/build/Theme/index.d.ts +2 -1
- package/build/Theme/index.js +57 -5
- package/build/Theme/index.js.map +1 -1
- package/build/Theme/modes.d.ts +3 -0
- package/build/Theme/modes.js +40 -0
- package/build/Theme/modes.js.map +1 -0
- package/build/Theme/theme.d.ts +5 -149
- package/build/Theme/theme.js +16 -95
- package/build/Theme/theme.js.map +1 -1
- package/build/Theme/tokens.d.ts +57 -0
- package/build/Theme/tokens.js +35 -0
- package/build/Theme/tokens.js.map +1 -0
- package/build/api/use-data-mutation.d.ts +19 -0
- package/build/api/use-data-mutation.js +99 -0
- package/build/api/use-data-mutation.js.map +1 -0
- package/build/api/use-data.d.ts +3 -0
- package/build/api/use-data.js +36 -0
- package/build/api/use-data.js.map +1 -0
- package/build/components/ActionBar/ActionBar.js +49 -30
- package/build/components/ActionBar/ActionBar.js.map +1 -1
- package/build/components/ActionBar/ActionBarAction.js +72 -57
- package/build/components/ActionBar/ActionBarAction.js.map +1 -1
- package/build/components/ActionBar/index.js +13 -1
- package/build/components/ActionBar/index.js.map +1 -1
- package/build/components/AppRoute/AppRoute.d.ts +3 -0
- package/build/components/AppRoute/AppRoute.js +89 -0
- package/build/components/AppRoute/AppRoute.js.map +1 -0
- package/build/components/Author/Author.d.ts +1 -1
- package/build/components/Author/Author.js +25 -22
- package/build/components/Author/Author.js.map +1 -1
- package/build/components/Author/index.js +13 -1
- package/build/components/Author/index.js.map +1 -1
- package/build/components/Author/styles.js +18 -9
- package/build/components/Author/styles.js.map +1 -1
- package/build/components/CopyClipboard/CopyToClipBoard.js +31 -28
- package/build/components/CopyClipboard/CopyToClipBoard.js.map +1 -1
- package/build/components/CopyClipboard/index.js +20 -2
- package/build/components/CopyClipboard/index.js.map +1 -1
- package/build/components/CopyClipboard/utils.d.ts +1 -1
- package/build/components/CopyClipboard/utils.js +12 -4
- package/build/components/CopyClipboard/utils.js.map +1 -1
- package/build/components/Dependencies/Dependencies.js +52 -42
- package/build/components/Dependencies/Dependencies.js.map +1 -1
- package/build/components/Dependencies/DependencyBlock.d.ts +2 -2
- package/build/components/Dependencies/DependencyBlock.js +65 -49
- package/build/components/Dependencies/DependencyBlock.js.map +1 -1
- package/build/components/Dependencies/index.js +13 -1
- package/build/components/Dependencies/index.js.map +1 -1
- package/build/components/Dependencies/types.d.ts +1 -1
- package/build/components/Dependencies/types.js +5 -1
- package/build/components/Dependencies/types.js.map +1 -1
- package/build/components/Dependencies/utits.js +7 -1
- package/build/components/Dependencies/utits.js.map +1 -1
- package/build/components/Deprecated/Deprecated.js +13 -8
- package/build/components/Deprecated/Deprecated.js.map +1 -1
- package/build/components/Deprecated/index.js +13 -1
- package/build/components/Deprecated/index.js.map +1 -1
- package/build/components/Developers/DeveloperType.js +7 -1
- package/build/components/Developers/DeveloperType.js.map +1 -1
- package/build/components/Developers/Developers.d.ts +1 -1
- package/build/components/Developers/Developers.js +62 -39
- package/build/components/Developers/Developers.js.map +1 -1
- package/build/components/Developers/Title.js +25 -23
- package/build/components/Developers/Title.js.map +1 -1
- package/build/components/Developers/get-unique-developer-values.d.ts +1 -1
- package/build/components/Developers/get-unique-developer-values.js +18 -2
- package/build/components/Developers/get-unique-developer-values.js.map +1 -1
- package/build/components/Developers/index.js +20 -2
- package/build/components/Developers/index.js.map +1 -1
- package/build/components/Distribution/Dist.d.ts +2 -2
- package/build/components/Distribution/Dist.js +31 -30
- package/build/components/Distribution/Dist.js.map +1 -1
- package/build/components/Distribution/index.js +13 -1
- package/build/components/Distribution/index.js.map +1 -1
- package/build/components/Distribution/styles.js +22 -13
- package/build/components/Distribution/styles.js.map +1 -1
- package/build/components/Engines/Engines.d.ts +1 -1
- package/build/components/Engines/Engines.js +37 -36
- package/build/components/Engines/Engines.js.map +1 -1
- package/build/components/Engines/index.js +13 -1
- package/build/components/Engines/index.js.map +1 -1
- package/build/components/Engines/styles.js +19 -10
- package/build/components/Engines/styles.js.map +1 -1
- package/build/components/ErrorBoundary/ErrorBoundary.d.ts +11 -9
- package/build/components/ErrorBoundary/ErrorBoundary.js +63 -28
- package/build/components/ErrorBoundary/ErrorBoundary.js.map +1 -1
- package/build/components/ErrorBoundary/index.js +13 -1
- package/build/components/ErrorBoundary/index.js.map +1 -1
- package/build/components/Forbidden/Forbidden.d.ts +3 -2
- package/build/components/Forbidden/Forbidden.js +55 -52
- package/build/components/Forbidden/Forbidden.js.map +1 -1
- package/build/components/Forbidden/index.js +13 -1
- package/build/components/Forbidden/index.js.map +1 -1
- package/build/components/FundButton/FundButton.js +33 -34
- package/build/components/FundButton/FundButton.js.map +1 -1
- package/build/components/FundButton/index.js +13 -1
- package/build/components/FundButton/index.js.map +1 -1
- package/build/components/HeaderInfoDialog/HeaderInfoDialog.js +45 -32
- package/build/components/HeaderInfoDialog/HeaderInfoDialog.js.map +1 -1
- package/build/components/HeaderInfoDialog/index.js +13 -1
- package/build/components/HeaderInfoDialog/index.js.map +1 -1
- package/build/components/Heading/Heading.d.ts +5 -2
- package/build/components/Heading/Heading.js +17 -11
- package/build/components/Heading/Heading.js.map +1 -1
- package/build/components/Heading/index.js +13 -1
- package/build/components/Heading/index.js.map +1 -1
- package/build/components/Help/Help.js +32 -26
- package/build/components/Help/Help.js.map +1 -1
- package/build/components/Help/index.js +13 -1
- package/build/components/Help/index.js.map +1 -1
- package/build/components/Help/styles.js +10 -3
- package/build/components/Help/styles.js.map +1 -1
- package/build/components/Icons/DevsIcons/CommonJS.js +10 -3
- package/build/components/Icons/DevsIcons/CommonJS.js.map +1 -1
- package/build/components/Icons/DevsIcons/ES6Module.js +10 -3
- package/build/components/Icons/DevsIcons/ES6Module.js.map +1 -1
- package/build/components/Icons/DevsIcons/Git.js +10 -3
- package/build/components/Icons/DevsIcons/Git.js.map +1 -1
- package/build/components/Icons/DevsIcons/NodeJS.js +10 -3
- package/build/components/Icons/DevsIcons/NodeJS.js.map +1 -1
- package/build/components/Icons/DevsIcons/TypeScript.js +10 -3
- package/build/components/Icons/DevsIcons/TypeScript.js.map +1 -1
- package/build/components/Icons/DevsIcons/index.js +40 -5
- package/build/components/Icons/DevsIcons/index.js.map +1 -1
- package/build/components/Icons/Earth.d.ts +5 -5
- package/build/components/Icons/Earth.js +25 -14
- package/build/components/Icons/Earth.js.map +1 -1
- package/build/components/Icons/FileBinary.d.ts +5 -5
- package/build/components/Icons/FileBinary.js +23 -16
- package/build/components/Icons/FileBinary.js.map +1 -1
- package/build/components/Icons/Law.d.ts +5 -5
- package/build/components/Icons/Law.js +24 -17
- package/build/components/Icons/Law.js.map +1 -1
- package/build/components/Icons/License.d.ts +7 -5
- package/build/components/Icons/License.js +19 -8
- package/build/components/Icons/License.js.map +1 -1
- package/build/components/Icons/Managers/Npm.js +10 -3
- package/build/components/Icons/Managers/Npm.js.map +1 -1
- package/build/components/Icons/Managers/Pnpm.js +10 -3
- package/build/components/Icons/Managers/Pnpm.js.map +1 -1
- package/build/components/Icons/Managers/Yarn.js +10 -3
- package/build/components/Icons/Managers/Yarn.js.map +1 -1
- package/build/components/Icons/Managers/index.js +26 -3
- package/build/components/Icons/Managers/index.js.map +1 -1
- package/build/components/Icons/SvgIcon.d.ts +8 -2
- package/build/components/Icons/SvgIcon.js +26 -22
- package/build/components/Icons/SvgIcon.js.map +1 -1
- package/build/components/Icons/Time.d.ts +5 -5
- package/build/components/Icons/Time.js +20 -9
- package/build/components/Icons/Time.js.map +1 -1
- package/build/components/Icons/Version.d.ts +5 -5
- package/build/components/Icons/Version.js +18 -7
- package/build/components/Icons/Version.js.map +1 -1
- package/build/components/Icons/index.js +79 -8
- package/build/components/Icons/index.js.map +1 -1
- package/build/components/Install/Install.d.ts +2 -2
- package/build/components/Install/Install.js +41 -33
- package/build/components/Install/Install.js.map +1 -1
- package/build/components/Install/InstallListItem.js +48 -43
- package/build/components/Install/InstallListItem.js.map +1 -1
- package/build/components/Install/index.js +13 -1
- package/build/components/Install/index.js.map +1 -1
- package/build/components/Keywords/KeywordListItems.js +25 -17
- package/build/components/Keywords/KeywordListItems.js.map +1 -1
- package/build/components/Keywords/Keywords.d.ts +1 -1
- package/build/components/Keywords/Keywords.js +22 -18
- package/build/components/Keywords/Keywords.js.map +1 -1
- package/build/components/Keywords/index.js +13 -1
- package/build/components/Keywords/index.js.map +1 -1
- package/build/components/Label/Label.d.ts +1 -1
- package/build/components/Label/Label.js +25 -17
- package/build/components/Label/Label.js.map +1 -1
- package/build/components/Label/index.js +13 -1
- package/build/components/Label/index.js.map +1 -1
- package/build/components/Link/Link.d.ts +1 -1
- package/build/components/Link/Link.js +26 -19
- package/build/components/Link/Link.js.map +1 -1
- package/build/components/Link/index.js +13 -1
- package/build/components/Link/index.js.map +1 -1
- package/build/components/LinkExternal/LinkExternal.d.ts +1 -1
- package/build/components/LinkExternal/LinkExternal.js +28 -24
- package/build/components/LinkExternal/LinkExternal.js.map +1 -1
- package/build/components/LinkExternal/index.js +13 -1
- package/build/components/LinkExternal/index.js.map +1 -1
- package/build/components/Loading/Loading.js +21 -12
- package/build/components/Loading/Loading.js.map +1 -1
- package/build/components/Loading/Spinner/Spinner.js +31 -26
- package/build/components/Loading/Spinner/Spinner.js.map +1 -1
- package/build/components/Loading/Spinner/index.js +13 -1
- package/build/components/Loading/Spinner/index.js.map +1 -1
- package/build/components/Loading/index.js +13 -1
- package/build/components/Loading/index.js.map +1 -1
- package/build/components/Loading/styles.d.ts +1 -2
- package/build/components/Loading/styles.js +14 -9
- package/build/components/Loading/styles.js.map +1 -1
- package/build/components/LoginDialog/LoginDialog.js +29 -77
- package/build/components/LoginDialog/LoginDialog.js.map +1 -1
- package/build/components/LoginDialog/LoginDialogCloseButton.js +24 -22
- package/build/components/LoginDialog/LoginDialogCloseButton.js.map +1 -1
- package/build/components/LoginDialog/LoginDialogForm.d.ts +2 -11
- package/build/components/LoginDialog/LoginDialogForm.js +25 -111
- package/build/components/LoginDialog/LoginDialogForm.js.map +1 -1
- package/build/components/LoginDialog/LoginDialogFormError.d.ts +1 -6
- package/build/components/LoginDialog/LoginDialogFormError.js +31 -26
- package/build/components/LoginDialog/LoginDialogFormError.js.map +1 -1
- package/build/components/LoginDialog/index.js +13 -1
- package/build/components/LoginDialog/index.js.map +1 -1
- package/build/components/LoginForm/Login.d.ts +15 -0
- package/build/components/LoginForm/Login.js +87 -0
- package/build/components/LoginForm/Login.js.map +1 -0
- package/build/components/LoginForm/PasswordField.d.ts +9 -0
- package/build/components/LoginForm/PasswordField.js +51 -0
- package/build/components/LoginForm/PasswordField.js.map +1 -0
- package/build/components/LoginForm/UsernameField.d.ts +9 -0
- package/build/components/LoginForm/UsernameField.js +49 -0
- package/build/components/LoginForm/UsernameField.js.map +1 -0
- package/build/components/LoginForm/styles.d.ts +6 -0
- package/build/components/LoginForm/styles.js +60 -0
- package/build/components/LoginForm/styles.js.map +1 -0
- package/build/components/LoginForm/useLoginForm.d.ts +78 -0
- package/build/components/LoginForm/useLoginForm.js +66 -0
- package/build/components/LoginForm/useLoginForm.js.map +1 -0
- package/build/components/Logo/Logo.js +34 -29
- package/build/components/Logo/Logo.js.map +1 -1
- package/build/components/Logo/index.js +13 -1
- package/build/components/Logo/index.js.map +1 -1
- package/build/components/MenuItem/MenuItem.d.ts +4 -2
- package/build/components/MenuItem/MenuItem.js +24 -11
- package/build/components/MenuItem/MenuItem.js.map +1 -1
- package/build/components/MenuItem/index.js +13 -1
- package/build/components/MenuItem/index.js.map +1 -1
- package/build/components/NoItems/NoItems.js +15 -10
- package/build/components/NoItems/NoItems.js.map +1 -1
- package/build/components/NoItems/index.js +13 -1
- package/build/components/NoItems/index.js.map +1 -1
- package/build/components/NotFound/NotFound.js +37 -32
- package/build/components/NotFound/NotFound.js.map +1 -1
- package/build/components/NotFound/index.js +13 -1
- package/build/components/NotFound/index.js.map +1 -1
- package/build/components/Package/Package.d.ts +2 -1
- package/build/components/Package/Package.js +187 -155
- package/build/components/Package/Package.js.map +1 -1
- package/build/components/Package/index.js +13 -1
- package/build/components/Package/index.js.map +1 -1
- package/build/components/Package/styles.d.ts +2 -3
- package/build/components/Package/styles.js +73 -72
- package/build/components/Package/styles.js.map +1 -1
- package/build/components/PackageList/PackageList.d.ts +2 -1
- package/build/components/PackageList/PackageList.js +55 -59
- package/build/components/PackageList/PackageList.js.map +1 -1
- package/build/components/PackageList/index.js +13 -1
- package/build/components/PackageList/index.js.map +1 -1
- package/build/components/Person/Person.d.ts +1 -1
- package/build/components/Person/Person.js +28 -22
- package/build/components/Person/Person.js.map +1 -1
- package/build/components/Person/PersonTooltip.d.ts +1 -1
- package/build/components/Person/PersonTooltip.js +18 -13
- package/build/components/Person/PersonTooltip.js.map +1 -1
- package/build/components/Person/index.js +13 -1
- package/build/components/Person/index.js.map +1 -1
- package/build/components/Person/utils.d.ts +1 -1
- package/build/components/Person/utils.js +14 -6
- package/build/components/Person/utils.js.map +1 -1
- package/build/components/RawViewer/RawViewer.js +38 -34
- package/build/components/RawViewer/RawViewer.js.map +1 -1
- package/build/components/RawViewer/index.js +13 -1
- package/build/components/RawViewer/index.js.map +1 -1
- package/build/components/Readme/Readme.d.ts +1 -1
- package/build/components/Readme/Readme.js +26 -22
- package/build/components/Readme/Readme.js.map +1 -1
- package/build/components/Readme/index.js +13 -1
- package/build/components/Readme/index.js.map +1 -1
- package/build/components/Readme/types.js +5 -1
- package/build/components/Readme/utils.js +15 -8
- package/build/components/Readme/utils.js.map +1 -1
- package/build/components/RegistryInfoDialog/RegistryInfoDialog.d.ts +1 -1
- package/build/components/RegistryInfoDialog/RegistryInfoDialog.js +25 -19
- package/build/components/RegistryInfoDialog/RegistryInfoDialog.js.map +1 -1
- package/build/components/RegistryInfoDialog/index.js +13 -1
- package/build/components/RegistryInfoDialog/index.js.map +1 -1
- package/build/components/RegistryInfoDialog/styles.d.ts +1 -2
- package/build/components/RegistryInfoDialog/styles.js +26 -24
- package/build/components/RegistryInfoDialog/styles.js.map +1 -1
- package/build/components/RegistryInfoDialog/types.d.ts +1 -1
- package/build/components/RegistryInfoDialog/types.js +5 -1
- package/build/components/RegistryInfoDialog/types.js.map +1 -1
- package/build/components/Repository/Repository.js +47 -42
- package/build/components/Repository/Repository.js.map +1 -1
- package/build/components/Repository/index.js +13 -1
- package/build/components/Repository/index.js.map +1 -1
- package/build/components/Search/AutoComplete/AutoComplete.d.ts +5 -4
- package/build/components/Search/AutoComplete/AutoComplete.js +44 -26
- package/build/components/Search/AutoComplete/AutoComplete.js.map +1 -1
- package/build/components/Search/AutoComplete/index.js +13 -1
- package/build/components/Search/AutoComplete/index.js.map +1 -1
- package/build/components/Search/AutoComplete/styles.d.ts +0 -1
- package/build/components/Search/AutoComplete/styles.js +9 -2
- package/build/components/Search/AutoComplete/styles.js.map +1 -1
- package/build/components/Search/Search.d.ts +2 -5
- package/build/components/Search/Search.js +133 -123
- package/build/components/Search/Search.js.map +1 -1
- package/build/components/Search/SearchItem.d.ts +1 -1
- package/build/components/Search/SearchItem.js +92 -97
- package/build/components/Search/SearchItem.js.map +1 -1
- package/build/components/Search/index.js +13 -1
- package/build/components/Search/index.js.map +1 -1
- package/build/components/Search/styles.d.ts +5 -4
- package/build/components/Search/styles.js +46 -33
- package/build/components/Search/styles.js.map +1 -1
- package/build/components/Search/utils.js +7 -1
- package/build/components/Search/utils.js.map +1 -1
- package/build/components/SettingsMenu/SettingsMenu.js +60 -52
- package/build/components/SettingsMenu/SettingsMenu.js.map +1 -1
- package/build/components/SettingsMenu/index.js +13 -1
- package/build/components/SettingsMenu/index.js.map +1 -1
- package/build/components/SideBarTitle/SideBarTitle.js +52 -52
- package/build/components/SideBarTitle/SideBarTitle.js.map +1 -1
- package/build/components/SideBarTitle/index.js +13 -1
- package/build/components/SideBarTitle/index.js.map +1 -1
- package/build/components/SideBarTitle/utils.js +15 -6
- package/build/components/SideBarTitle/utils.js.map +1 -1
- package/build/components/UnAuthorized/UnAuthorized.d.ts +3 -0
- package/build/components/UnAuthorized/UnAuthorized.js +75 -0
- package/build/components/UnAuthorized/UnAuthorized.js.map +1 -0
- package/build/components/UnAuthorized/index.d.ts +1 -0
- package/build/components/UnAuthorized/index.js +14 -0
- package/build/components/UnAuthorized/index.js.map +1 -0
- package/build/components/UpLinks/UpLinks.js +46 -42
- package/build/components/UpLinks/UpLinks.js.map +1 -1
- package/build/components/UpLinks/UplinkLink.js +17 -12
- package/build/components/UpLinks/UplinkLink.js.map +1 -1
- package/build/components/UpLinks/index.js +13 -1
- package/build/components/UpLinks/index.js.map +1 -1
- package/build/components/UpLinks/styles.d.ts +1 -2
- package/build/components/UpLinks/styles.js +26 -20
- package/build/components/UpLinks/styles.js.map +1 -1
- package/build/components/Versions/HistoryList.d.ts +1 -1
- package/build/components/Versions/HistoryList.js +44 -37
- package/build/components/Versions/HistoryList.js.map +1 -1
- package/build/components/Versions/TagList.d.ts +1 -1
- package/build/components/Versions/TagList.js +33 -26
- package/build/components/Versions/TagList.js.map +1 -1
- package/build/components/Versions/Versions.js +67 -50
- package/build/components/Versions/Versions.js.map +1 -1
- package/build/components/Versions/index.js +13 -1
- package/build/components/Versions/index.js.map +1 -1
- package/build/components/Versions/styles.d.ts +1 -2
- package/build/components/Versions/styles.js +19 -15
- package/build/components/Versions/styles.js.map +1 -1
- package/build/components/Versions/types.d.ts +1 -1
- package/build/components/Versions/types.js +5 -1
- package/build/components/Versions/types.js.map +1 -1
- package/build/configuration.d.ts +2 -0
- package/build/configuration.js +23 -0
- package/build/configuration.js.map +1 -0
- package/build/hooks/index.js +20 -2
- package/build/hooks/index.js.map +1 -1
- package/build/hooks/useLocalStorage.js +31 -18
- package/build/hooks/useLocalStorage.js.map +1 -1
- package/build/hooks/useOnClickOutside.d.ts +1 -1
- package/build/hooks/useOnClickOutside.js +10 -5
- package/build/hooks/useOnClickOutside.js.map +1 -1
- package/build/index.d.ts +6 -14
- package/build/index.js +481 -66
- package/build/index.js.map +1 -1
- package/build/layouts/Security/Dialog.js +16 -11
- package/build/layouts/Security/Dialog.js.map +1 -1
- package/build/layouts/Version/Version.js +16 -9
- package/build/layouts/Version/Version.js.map +1 -1
- package/build/layouts/Version/index.js +13 -1
- package/build/layouts/Version/index.js.map +1 -1
- package/build/pages/Front/Home.d.ts +2 -0
- package/build/pages/Front/Home.js +9 -0
- package/build/pages/Front/Home.js.map +1 -0
- package/build/pages/Front/index.js +14 -0
- package/build/pages/Front/index.js.map +1 -0
- package/build/pages/Security/AddUser.d.ts +2 -0
- package/build/pages/Security/AddUser.js +9 -0
- package/build/pages/Security/AddUser.js.map +1 -0
- package/build/pages/Security/ChangePassword.d.ts +2 -0
- package/build/pages/Security/ChangePassword.js +9 -0
- package/build/pages/Security/ChangePassword.js.map +1 -0
- package/build/pages/Security/Login.d.ts +2 -0
- package/build/pages/Security/Login.js +9 -0
- package/build/pages/Security/Login.js.map +1 -0
- package/build/pages/Security/Success.d.ts +2 -0
- package/build/pages/Security/Success.js +9 -0
- package/build/pages/Security/Success.js.map +1 -0
- package/build/pages/Security/index.js +35 -0
- package/build/pages/Security/index.js.map +1 -0
- package/build/pages/Version/Version.js +32 -0
- package/build/pages/Version/Version.js.map +1 -0
- package/build/pages/Version/index.js +14 -0
- package/build/pages/Version/index.js.map +1 -0
- package/build/providers/AppConfigurationProvider/AppConfigurationProvider.d.ts +8 -6
- package/build/providers/AppConfigurationProvider/AppConfigurationProvider.js +67 -46
- package/build/providers/AppConfigurationProvider/AppConfigurationProvider.js.map +1 -1
- package/build/providers/AppConfigurationProvider/index.d.ts +1 -1
- package/build/providers/AppConfigurationProvider/index.js +18 -1
- package/build/providers/AppConfigurationProvider/index.js.map +1 -1
- package/build/providers/AuthProvider/AuthProvider.d.ts +18 -0
- package/build/providers/AuthProvider/AuthProvider.js +102 -0
- package/build/providers/AuthProvider/AuthProvider.js.map +1 -0
- package/build/providers/AuthProvider/index.d.ts +1 -0
- package/build/providers/AuthProvider/index.js +17 -0
- package/build/providers/AuthProvider/index.js.map +1 -0
- package/build/providers/AuthProvider/types.d.ts +15 -0
- package/build/providers/AuthProvider/types.js +6 -0
- package/build/providers/AuthProvider/types.js.map +1 -0
- package/build/providers/AuthProvider/utils.d.ts +3 -0
- package/build/providers/AuthProvider/utils.js +27 -0
- package/build/providers/AuthProvider/utils.js.map +1 -0
- package/build/providers/DownloadProvider/DownloadProvider.d.ts +13 -0
- package/build/providers/DownloadProvider/DownloadProvider.js +73 -0
- package/build/providers/DownloadProvider/DownloadProvider.js.map +1 -0
- package/build/providers/DownloadProvider/index.d.ts +1 -0
- package/build/providers/DownloadProvider/index.js +19 -0
- package/build/providers/DownloadProvider/index.js.map +1 -0
- package/build/providers/ManifestsProvider/ManifestsProvider.d.ts +26 -0
- package/build/providers/ManifestsProvider/ManifestsProvider.js +33 -0
- package/build/providers/ManifestsProvider/ManifestsProvider.js.map +1 -0
- package/build/providers/ManifestsProvider/README.md +22 -0
- package/build/providers/ManifestsProvider/index.d.ts +1 -0
- package/build/providers/ManifestsProvider/index.js +21 -0
- package/build/providers/ManifestsProvider/index.js.map +1 -0
- package/build/providers/PersistenceSettingProvider/PersistenceSettingProvider.d.ts +3 -2
- package/build/providers/PersistenceSettingProvider/PersistenceSettingProvider.js +39 -17
- package/build/providers/PersistenceSettingProvider/PersistenceSettingProvider.js.map +1 -1
- package/build/providers/PersistenceSettingProvider/index.d.ts +1 -1
- package/build/providers/PersistenceSettingProvider/index.js +18 -1
- package/build/providers/PersistenceSettingProvider/index.js.map +1 -1
- package/build/providers/SearchProvider/SearchProvider.d.ts +19 -0
- package/build/providers/SearchProvider/SearchProvider.js +97 -0
- package/build/providers/SearchProvider/SearchProvider.js.map +1 -0
- package/build/providers/SearchProvider/index.d.ts +1 -0
- package/build/providers/SearchProvider/index.js +25 -0
- package/build/providers/SearchProvider/index.js.map +1 -0
- package/build/providers/TranslatorProvider/TranslatorProvider.d.ts +3 -2
- package/build/providers/TranslatorProvider/TranslatorProvider.js +52 -25
- package/build/providers/TranslatorProvider/TranslatorProvider.js.map +1 -1
- package/build/providers/TranslatorProvider/index.js +20 -1
- package/build/providers/TranslatorProvider/index.js.map +1 -1
- package/build/providers/VersionProvider/VersionProvider.d.ts +13 -31
- package/build/providers/VersionProvider/VersionProvider.js +55 -69
- package/build/providers/VersionProvider/VersionProvider.js.map +1 -1
- package/build/providers/VersionProvider/index.js +20 -1
- package/build/providers/VersionProvider/index.js.map +1 -1
- package/build/providers/index.d.ts +5 -0
- package/build/providers/index.js +93 -3
- package/build/providers/index.js.map +1 -1
- package/build/routes/SecurityRoutes.d.ts +3 -0
- package/build/routes/SecurityRoutes.js +36 -0
- package/build/routes/SecurityRoutes.js.map +1 -0
- package/build/sections/Detail/ContainerContent.js +40 -22
- package/build/sections/Detail/ContainerContent.js.map +1 -1
- package/build/sections/Detail/Detail.js +42 -23
- package/build/sections/Detail/Detail.js.map +1 -1
- package/build/sections/Detail/ReadmeSection.js +13 -8
- package/build/sections/Detail/ReadmeSection.js.map +1 -1
- package/build/sections/Detail/Tabs.js +29 -23
- package/build/sections/Detail/Tabs.js.map +1 -1
- package/build/sections/Detail/index.js +13 -1
- package/build/sections/Detail/index.js.map +1 -1
- package/build/sections/Footer/Footer.js +62 -61
- package/build/sections/Footer/Footer.js.map +1 -1
- package/build/sections/Footer/index.js +13 -1
- package/build/sections/Footer/index.js.map +1 -1
- package/build/sections/Footer/styles.d.ts +1 -2
- package/build/sections/Footer/styles.js +47 -47
- package/build/sections/Footer/styles.js.map +1 -1
- package/build/sections/Header/Header.js +106 -65
- package/build/sections/Header/Header.js.map +1 -1
- package/build/sections/Header/HeaderGreetings.js +17 -13
- package/build/sections/Header/HeaderGreetings.js.map +1 -1
- package/build/sections/Header/HeaderLeft.js +19 -14
- package/build/sections/Header/HeaderLeft.js.map +1 -1
- package/build/sections/Header/HeaderMenu.d.ts +2 -1
- package/build/sections/Header/HeaderMenu.js +29 -24
- package/build/sections/Header/HeaderMenu.js.map +1 -1
- package/build/sections/Header/HeaderRight.js +61 -44
- package/build/sections/Header/HeaderRight.js.map +1 -1
- package/build/sections/Header/HeaderSettingsDialog.js +58 -53
- package/build/sections/Header/HeaderSettingsDialog.js.map +1 -1
- package/build/sections/Header/HeaderToolTip.d.ts +1 -1
- package/build/sections/Header/HeaderToolTip.js +14 -9
- package/build/sections/Header/HeaderToolTip.js.map +1 -1
- package/build/sections/Header/HeaderToolTipIcon.d.ts +4 -1
- package/build/sections/Header/HeaderToolTipIcon.js +30 -26
- package/build/sections/Header/HeaderToolTipIcon.js.map +1 -1
- package/build/sections/Header/LanguageSwitch.js +64 -56
- package/build/sections/Header/LanguageSwitch.js.map +1 -1
- package/build/sections/Header/RegistryInfoContent/RegistryInfoContent.d.ts +2 -1
- package/build/sections/Header/RegistryInfoContent/RegistryInfoContent.js +77 -74
- package/build/sections/Header/RegistryInfoContent/RegistryInfoContent.js.map +1 -1
- package/build/sections/Header/RegistryInfoContent/index.js +13 -1
- package/build/sections/Header/RegistryInfoContent/index.js.map +1 -1
- package/build/sections/Header/RegistryInfoContent/styles.d.ts +1 -2
- package/build/sections/Header/RegistryInfoContent/styles.js +20 -13
- package/build/sections/Header/RegistryInfoContent/styles.js.map +1 -1
- package/build/sections/Header/index.js +13 -1
- package/build/sections/Header/index.js.map +1 -1
- package/build/sections/Header/styles.d.ts +1 -2
- package/build/sections/Header/styles.js +60 -50
- package/build/sections/Header/styles.js.map +1 -1
- package/build/sections/Home/Home.js +19 -19
- package/build/sections/Home/Home.js.map +1 -1
- package/build/sections/Home/index.js +13 -1
- package/build/sections/Home/index.js.map +1 -1
- package/build/sections/Security/AddUser.js +146 -85
- package/build/sections/Security/AddUser.js.map +1 -1
- package/build/sections/Security/ChangePassword.js +150 -95
- package/build/sections/Security/ChangePassword.js.map +1 -1
- package/build/sections/Security/Login.js +126 -87
- package/build/sections/Security/Login.js.map +1 -1
- package/build/sections/Security/Success.js +25 -19
- package/build/sections/Security/Success.js.map +1 -1
- package/build/sections/Security/index.js +34 -4
- package/build/sections/Security/index.js.map +1 -1
- package/build/sections/Security/styles.js +15 -15
- package/build/sections/Security/styles.js.map +1 -1
- package/build/sections/Security/utils.js +16 -8
- package/build/sections/Security/utils.js.map +1 -1
- package/build/sections/SideBar/Sidebar.js +49 -40
- package/build/sections/SideBar/Sidebar.js.map +1 -1
- package/build/sections/SideBar/index.js +13 -1
- package/build/sections/SideBar/index.js.map +1 -1
- package/build/sections/index.js +20 -2
- package/build/sections/index.js.map +1 -1
- package/build/store/api.d.ts +1 -1
- package/build/store/api.js +89 -48
- package/build/store/api.js.map +1 -1
- package/build/store/index.d.ts +0 -6
- package/build/store/index.js +13 -2
- package/build/store/index.js.map +1 -1
- package/build/store/{models/routes.d.ts → routes.d.ts} +4 -0
- package/build/store/{models/routes.js → routes.js} +11 -1
- package/build/store/routes.js.map +1 -0
- package/build/store/storage.d.ts +6 -0
- package/build/store/storage.js +28 -4
- package/build/store/storage.js.map +1 -1
- package/build/store/utils.js +14 -0
- package/build/store/utils.js.map +1 -0
- package/build/test/i18n-config.js +12 -4
- package/build/test/i18n-config.js.map +1 -1
- package/build/test/test-react-testing-library.d.ts +19 -4
- package/build/test/test-react-testing-library.js +140 -28
- package/build/test/test-react-testing-library.js.map +1 -1
- package/build/types/external-modules.d.js +2 -0
- package/build/types/external-modules.d.js.map +1 -0
- package/build/types/index.d.ts +1 -1
- package/build/types/index.js +5 -1
- package/build/types/index.js.map +1 -1
- package/build/types/packageMeta.d.ts +1 -6
- package/build/types/packageMeta.js +5 -1
- package/build/types/packageMeta.js.map +1 -1
- package/build/utils/cli-utils.d.ts +1 -1
- package/build/utils/cli-utils.js +30 -18
- package/build/utils/cli-utils.js.map +1 -1
- package/build/utils/index.js +74 -8
- package/build/utils/index.js.map +1 -1
- package/build/utils/loadable.js +15 -7
- package/build/utils/loadable.js.map +1 -1
- package/build/utils/routes.d.ts +11 -3
- package/build/utils/routes.js +20 -4
- package/build/utils/routes.js.map +1 -1
- package/build/utils/schemas.d.ts +34 -0
- package/build/utils/schemas.js +30 -0
- package/build/utils/schemas.js.map +1 -0
- package/build/utils/token-generate.js +17 -6
- package/build/utils/token-generate.js.map +1 -1
- package/build/utils/token.js +23 -9
- package/build/utils/token.js.map +1 -1
- package/build/utils/url.js +20 -10
- package/build/utils/url.js.map +1 -1
- package/build/utils/utils.d.ts +2 -2
- package/build/utils/utils.js +48 -29
- package/build/utils/utils.js.map +1 -1
- package/package.json +28 -29
- package/build/AppTest/pages/Front/Home.d.ts +0 -2
- package/build/AppTest/pages/Front/Home.js +0 -3
- package/build/AppTest/pages/Front/Home.js.map +0 -1
- package/build/AppTest/pages/Front/index.js +0 -2
- package/build/AppTest/pages/Front/index.js.map +0 -1
- package/build/AppTest/pages/Security/AddUser.d.ts +0 -2
- package/build/AppTest/pages/Security/AddUser.js +0 -3
- package/build/AppTest/pages/Security/AddUser.js.map +0 -1
- package/build/AppTest/pages/Security/ChangePassword.d.ts +0 -2
- package/build/AppTest/pages/Security/ChangePassword.js +0 -3
- package/build/AppTest/pages/Security/ChangePassword.js.map +0 -1
- package/build/AppTest/pages/Security/Login.d.ts +0 -2
- package/build/AppTest/pages/Security/Login.js +0 -3
- package/build/AppTest/pages/Security/Login.js.map +0 -1
- package/build/AppTest/pages/Security/Success.d.ts +0 -2
- package/build/AppTest/pages/Security/Success.js +0 -3
- package/build/AppTest/pages/Security/Success.js.map +0 -1
- package/build/AppTest/pages/Security/index.js +0 -5
- package/build/AppTest/pages/Security/index.js.map +0 -1
- package/build/AppTest/pages/Version/Version.js +0 -27
- package/build/AppTest/pages/Version/Version.js.map +0 -1
- package/build/AppTest/pages/Version/index.js +0 -2
- package/build/AppTest/pages/Version/index.js.map +0 -1
- package/build/components/LoginDialog/LoginDialogHeader.d.ts +0 -6
- package/build/components/LoginDialog/LoginDialogHeader.js +0 -59
- package/build/components/LoginDialog/LoginDialogHeader.js.map +0 -1
- package/build/components/TextField/TextField.d.ts +0 -3
- package/build/components/TextField/TextField.js +0 -30
- package/build/components/TextField/TextField.js.map +0 -1
- package/build/components/TextField/index.d.ts +0 -1
- package/build/components/TextField/index.js +0 -2
- package/build/components/TextField/index.js.map +0 -1
- package/build/sections/Security/LoginError.d.ts +0 -7
- package/build/sections/Security/LoginError.js +0 -38
- package/build/sections/Security/LoginError.js.map +0 -1
- package/build/store/models/add-user.d.ts +0 -45
- package/build/store/models/add-user.js +0 -103
- package/build/store/models/add-user.js.map +0 -1
- package/build/store/models/change-password.d.ts +0 -44
- package/build/store/models/change-password.js +0 -118
- package/build/store/models/change-password.js.map +0 -1
- package/build/store/models/configuration.d.ts +0 -24
- package/build/store/models/configuration.js +0 -46
- package/build/store/models/configuration.js.map +0 -1
- package/build/store/models/download.d.ts +0 -16
- package/build/store/models/download.js +0 -38
- package/build/store/models/download.js.map +0 -1
- package/build/store/models/index.d.ts +0 -22
- package/build/store/models/index.js +0 -21
- package/build/store/models/index.js.map +0 -1
- package/build/store/models/login-v1.d.ts +0 -44
- package/build/store/models/login-v1.js +0 -111
- package/build/store/models/login-v1.js.map +0 -1
- package/build/store/models/login.d.ts +0 -69
- package/build/store/models/login.js +0 -102
- package/build/store/models/login.js.map +0 -1
- package/build/store/models/manifest.d.ts +0 -54
- package/build/store/models/manifest.js +0 -117
- package/build/store/models/manifest.js.map +0 -1
- package/build/store/models/packages.d.ts +0 -28
- package/build/store/models/packages.js +0 -47
- package/build/store/models/packages.js.map +0 -1
- package/build/store/models/routes.js.map +0 -1
- package/build/store/models/search.d.ts +0 -42
- package/build/store/models/search.js +0 -92
- package/build/store/models/search.js.map +0 -1
- package/build/store/models/utils.js +0 -7
- package/build/store/models/utils.js.map +0 -1
- package/build/store/store.d.ts +0 -9
- package/build/store/store.js +0 -8
- package/build/store/store.js.map +0 -1
- /package/build/{AppTest/pages → pages}/Front/index.d.ts +0 -0
- /package/build/{AppTest/pages → pages}/Security/index.d.ts +0 -0
- /package/build/{AppTest/pages → pages}/Version/Version.d.ts +0 -0
- /package/build/{AppTest/pages → pages}/Version/index.d.ts +0 -0
- /package/build/store/{models/utils.d.ts → utils.d.ts} +0 -0
|
@@ -1,40 +1,43 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _List = _interopRequireDefault(require("@mui/material/List"));
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _reactI18next = require("react-i18next");
|
|
10
|
+
var _Person = _interopRequireDefault(require("../Person"));
|
|
11
|
+
var _styles = require("./styles");
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
13
|
+
var Author = function Author(_ref) {
|
|
14
|
+
var packageMeta = _ref.packageMeta;
|
|
15
|
+
var _useTranslation = (0, _reactI18next.useTranslation)(),
|
|
16
|
+
t = _useTranslation.t;
|
|
13
17
|
if (!packageMeta) {
|
|
14
18
|
return null;
|
|
15
19
|
}
|
|
16
|
-
var
|
|
17
|
-
author,
|
|
18
|
-
name
|
|
19
|
-
version
|
|
20
|
-
} = packageMeta.latest;
|
|
20
|
+
var _packageMeta$latest = packageMeta.latest,
|
|
21
|
+
author = _packageMeta$latest.author,
|
|
22
|
+
packageName = _packageMeta$latest.name,
|
|
23
|
+
version = _packageMeta$latest.version;
|
|
21
24
|
if (!author) {
|
|
22
25
|
return null;
|
|
23
26
|
}
|
|
24
|
-
return /*#__PURE__*/
|
|
25
|
-
subheader: /*#__PURE__*/
|
|
27
|
+
return /*#__PURE__*/_react["default"].createElement(_List["default"], {
|
|
28
|
+
subheader: /*#__PURE__*/_react["default"].createElement(_styles.StyledText, {
|
|
26
29
|
variant: 'subtitle1'
|
|
27
30
|
}, t('sidebar.author.title'))
|
|
28
|
-
}, /*#__PURE__*/
|
|
31
|
+
}, /*#__PURE__*/_react["default"].createElement(_styles.AuthorListItem, {
|
|
29
32
|
sx: {
|
|
30
33
|
my: 1
|
|
31
34
|
}
|
|
32
|
-
}, /*#__PURE__*/
|
|
35
|
+
}, /*#__PURE__*/_react["default"].createElement(_Person["default"], {
|
|
33
36
|
packageName: packageName,
|
|
34
37
|
person: author,
|
|
35
38
|
version: version,
|
|
36
39
|
withText: true
|
|
37
40
|
})));
|
|
38
41
|
};
|
|
39
|
-
|
|
42
|
+
var _default = exports["default"] = Author;
|
|
40
43
|
//# sourceMappingURL=Author.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Author.js","names":["
|
|
1
|
+
{"version":3,"file":"Author.js","names":["_List","_interopRequireDefault","require","_react","_reactI18next","_Person","_styles","e","__esModule","Author","_ref","packageMeta","_useTranslation","useTranslation","t","_packageMeta$latest","latest","author","packageName","name","version","createElement","subheader","StyledText","variant","AuthorListItem","sx","my","person","withText","_default","exports"],"sources":["../../../src/components/Author/Author.tsx"],"sourcesContent":["import List from '@mui/material/List';\nimport type { FC } from 'react';\nimport React 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,IAAAA,KAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;AAEA,IAAAG,OAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AAAsD,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,gBAAAA,CAAA;AAEtD,IAAME,MAA2B,GAAG,SAA9BA,MAA2BA,CAAAC,IAAA,EAAwB;EAAA,IAAlBC,WAAW,GAAAD,IAAA,CAAXC,WAAW;EAChD,IAAAC,eAAA,GAAc,IAAAC,4BAAc,EAAC,CAAC;IAAtBC,CAAC,GAAAF,eAAA,CAADE,CAAC;EAET,IAAI,CAACH,WAAW,EAAE;IAChB,OAAO,IAAI;EACb;EAEA,IAAAI,mBAAA,GAA+CJ,WAAW,CAACK,MAAM;IAAzDC,MAAM,GAAAF,mBAAA,CAANE,MAAM;IAAQC,WAAW,GAAAH,mBAAA,CAAjBI,IAAI;IAAeC,OAAO,GAAAL,mBAAA,CAAPK,OAAO;EAE1C,IAAI,CAACH,MAAM,EAAE;IACX,OAAO,IAAI;EACb;EAEA,oBACEd,MAAA,YAAAkB,aAAA,CAACrB,KAAA,WAAI;IAACsB,SAAS,eAAEnB,MAAA,YAAAkB,aAAA,CAACf,OAAA,CAAAiB,UAAU;MAACC,OAAO,EAAE;IAAY,GAAEV,CAAC,CAAC,sBAAsB,CAAc;EAAE,gBAC1FX,MAAA,YAAAkB,aAAA,CAACf,OAAA,CAAAmB,cAAc;IAACC,EAAE,EAAE;MAAEC,EAAE,EAAE;IAAE;EAAE,gBAC5BxB,MAAA,YAAAkB,aAAA,CAAChB,OAAA,WAAM;IAACa,WAAW,EAAEA,WAAY;IAACU,MAAM,EAAEX,MAAO;IAACG,OAAO,EAAEA,OAAQ;IAACS,QAAQ,EAAE;EAAK,CAAE,CACvE,CACZ,CAAC;AAEX,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAEatB,MAAM","ignoreList":[]}
|
|
@@ -1,2 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
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 }; }
|
|
2
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["
|
|
1
|
+
{"version":3,"file":"index.js","names":["_Author","_interopRequireDefault","require","e","__esModule"],"sources":["../../../src/components/Author/index.ts"],"sourcesContent":["export { default } from './Author';\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAmC,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,gBAAAA,CAAA","ignoreList":[]}
|
|
@@ -1,16 +1,25 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.StyledText = exports.AuthorListItem = void 0;
|
|
7
|
+
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
8
|
+
var _material = require("@mui/material");
|
|
9
|
+
var _ListItem = _interopRequireDefault(require("@mui/material/ListItem"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
2
11
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
3
|
-
|
|
4
|
-
import ListItem from '@mui/material/ListItem';
|
|
5
|
-
export var StyledText = /*#__PURE__*/_styled(Typography, process.env.NODE_ENV === "production" ? {
|
|
12
|
+
var StyledText = exports.StyledText = /*#__PURE__*/(0, _base["default"])(_material.Typography, process.env.NODE_ENV === "production" ? {
|
|
6
13
|
target: "e4ifo371"
|
|
7
14
|
} : {
|
|
8
15
|
target: "e4ifo371",
|
|
9
16
|
label: "StyledText"
|
|
10
|
-
})(props
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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" ? {
|
|
14
23
|
target: "e4ifo370"
|
|
15
24
|
} : {
|
|
16
25
|
target: "e4ifo370",
|
|
@@ -20,7 +29,7 @@ export var AuthorListItem = /*#__PURE__*/_styled(ListItem, process.env.NODE_ENV
|
|
|
20
29
|
styles: "padding:0;:hover{background-color:transparent;}"
|
|
21
30
|
} : {
|
|
22
31
|
name: "zw46c6",
|
|
23
|
-
styles: "padding:0;:hover{background-color:transparent;}/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
32
|
+
styles: "padding:0;:hover{background-color:transparent;}/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0F1dGhvci9zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBVThCIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0F1dGhvci9zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgeyBUeXBvZ3JhcGh5IH0gZnJvbSAnQG11aS9tYXRlcmlhbCc7XG5pbXBvcnQgTGlzdEl0ZW0gZnJvbSAnQG11aS9tYXRlcmlhbC9MaXN0SXRlbSc7XG5cbmltcG9ydCB0eXBlIHsgVGhlbWUgfSBmcm9tICcuLi8uLi9UaGVtZSc7XG5cbmV4cG9ydCBjb25zdCBTdHlsZWRUZXh0ID0gc3R5bGVkKFR5cG9ncmFwaHkpPHsgdGhlbWU/OiBUaGVtZSB9PigocHJvcHMpID0+ICh7XG4gIGZvbnRXZWlnaHQ6IHByb3BzLnRoZW1lLmZvbnRXZWlnaHQuYm9sZCxcbn0pKTtcblxuZXhwb3J0IGNvbnN0IEF1dGhvckxpc3RJdGVtID0gc3R5bGVkKExpc3RJdGVtKSh7XG4gIHBhZGRpbmc6IDAsXG4gICc6aG92ZXInOiB7XG4gICAgYmFja2dyb3VuZENvbG9yOiAndHJhbnNwYXJlbnQnLFxuICB9LFxufSk7XG4iXX0= */",
|
|
24
33
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
25
34
|
});
|
|
26
35
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","names":["
|
|
1
|
+
{"version":3,"file":"styles.js","names":["_material","require","_ListItem","_interopRequireDefault","e","__esModule","_EMOTION_STRINGIFIED_CSS_ERROR__","StyledText","exports","_base","Typography","process","env","NODE_ENV","target","label","props","fontWeight","theme","bold","AuthorListItem","ListItem","name","styles","toString"],"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":";;;;;;;AACA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAC,sBAAA,CAAAF,OAAA;AAA8C,SAAAE,uBAAAC,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,gBAAAA,CAAA;AAAA,SAAAE,iCAAA;AAIvC,IAAMC,UAAU,GAAAC,OAAA,CAAAD,UAAA,gBAAG,IAAAE,KAAA,aAAOC,oBAAU,EAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,EAAC,CAAoB,UAACC,KAAK;EAAA,OAAM;IAC1EC,UAAU,EAAED,KAAK,CAACE,KAAK,CAACD,UAAU,CAACE;EACrC,CAAC;AAAA,CAAC,EAAAR,OAAA,CAAAC,GAAA,CAAAC,QAAA,24BAAC;AAEI,IAAMO,cAAc,GAAAZ,OAAA,CAAAY,cAAA,gBAAG,IAAAX,KAAA,aAAOY,oBAAQ,EAAAV,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,EAAC,CAAAJ,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAS,IAAA;EAAAC,MAAA;AAAA;EAAAD,IAAA;EAAAC,MAAA;EAAAC,QAAA,EAAAlB;AAAA,CAK7C,CAAC","ignoreList":[]}
|
|
@@ -1,14 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
8
|
+
var _FileCopy = _interopRequireDefault(require("@mui/icons-material/FileCopy"));
|
|
9
|
+
var _IconButton = _interopRequireDefault(require("@mui/material/IconButton"));
|
|
10
|
+
var _Tooltip = _interopRequireDefault(require("@mui/material/Tooltip"));
|
|
11
|
+
var _react = _interopRequireDefault(require("react"));
|
|
12
|
+
var _utils = require("./utils");
|
|
2
13
|
var _excluded = ["text", "children", "dataTestId", "title"];
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
3
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; }
|
|
4
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; }
|
|
5
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)."; }
|
|
6
|
-
|
|
7
|
-
import IconButton from '@mui/material/IconButton';
|
|
8
|
-
import Tooltip from '@mui/material/Tooltip';
|
|
9
|
-
import React from 'react';
|
|
10
|
-
import { copyToClipBoardUtility } from './utils';
|
|
11
|
-
var Wrapper = /*#__PURE__*/_styled('div', process.env.NODE_ENV === "production" ? {
|
|
18
|
+
var Wrapper = /*#__PURE__*/(0, _base["default"])('div', process.env.NODE_ENV === "production" ? {
|
|
12
19
|
target: "em5nldk1"
|
|
13
20
|
} : {
|
|
14
21
|
target: "em5nldk1",
|
|
@@ -18,18 +25,16 @@ var Wrapper = /*#__PURE__*/_styled('div', process.env.NODE_ENV === "production"
|
|
|
18
25
|
styles: "display:flex;align-items:center;justify-content:space-between"
|
|
19
26
|
} : {
|
|
20
27
|
name: "bcffy2",
|
|
21
|
-
styles: "display:flex;align-items:center;justify-content:space-between/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
28
|
+
styles: "display:flex;align-items:center;justify-content:space-between/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0NvcHlDbGlwYm9hcmQvQ29weVRvQ2xpcEJvYXJkLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFnQmdCIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0NvcHlDbGlwYm9hcmQvQ29weVRvQ2xpcEJvYXJkLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCBGaWxlQ29weSBmcm9tICdAbXVpL2ljb25zLW1hdGVyaWFsL0ZpbGVDb3B5JztcbmltcG9ydCBJY29uQnV0dG9uIGZyb20gJ0BtdWkvbWF0ZXJpYWwvSWNvbkJ1dHRvbic7XG5pbXBvcnQgVG9vbHRpcCBmcm9tICdAbXVpL21hdGVyaWFsL1Rvb2x0aXAnO1xuaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0JztcblxuaW1wb3J0IHR5cGUgeyBUaGVtZSB9IGZyb20gJy4uLy4uL1RoZW1lJztcbmltcG9ydCB7IGNvcHlUb0NsaXBCb2FyZFV0aWxpdHkgfSBmcm9tICcuL3V0aWxzJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgdGV4dDogc3RyaW5nO1xuICB0aXRsZT86IHN0cmluZztcbiAgZGF0YVRlc3RJZDogc3RyaW5nO1xuICBjaGlsZHJlbj86IFJlYWN0LlJlYWN0Tm9kZTtcbn1cblxuY29uc3QgV3JhcHBlciA9IHN0eWxlZCgnZGl2Jykoe1xuICBkaXNwbGF5OiAnZmxleCcsXG4gIGFsaWduSXRlbXM6ICdjZW50ZXInLFxuICBqdXN0aWZ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PVwic21hbGxcIj5cbiAgICAgICAgICA8RmlsZUNvcHkgZm9udFNpemU9XCJzbWFsbFwiIC8+XG4gICAgICAgIDwvSWNvbkJ1dHRvbj5cbiAgICAgICl9XG4gICAgPC9XcmFwcGVyPlxuICApO1xufVxuXG5leHBvcnQgZGVmYXVsdCBDb3B5VG9DbGlwQm9hcmQ7XG4iXX0= */",
|
|
22
29
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
23
30
|
});
|
|
24
|
-
var Content = /*#__PURE__*/
|
|
31
|
+
var Content = /*#__PURE__*/(0, _base["default"])('span', process.env.NODE_ENV === "production" ? {
|
|
25
32
|
target: "em5nldk0"
|
|
26
33
|
} : {
|
|
27
34
|
target: "em5nldk0",
|
|
28
35
|
label: "Content"
|
|
29
|
-
})(_ref
|
|
30
|
-
var
|
|
31
|
-
theme
|
|
32
|
-
} = _ref;
|
|
36
|
+
})(function (_ref) {
|
|
37
|
+
var theme = _ref.theme;
|
|
33
38
|
return {
|
|
34
39
|
display: 'inline-block',
|
|
35
40
|
overflow: 'hidden',
|
|
@@ -38,31 +43,29 @@ var Content = /*#__PURE__*/_styled('span', process.env.NODE_ENV === "production"
|
|
|
38
43
|
whiteSpace: 'break-spaces',
|
|
39
44
|
fontSize: theme.fontSize.sm
|
|
40
45
|
};
|
|
41
|
-
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
46
|
+
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0NvcHlDbGlwYm9hcmQvQ29weVRvQ2xpcEJvYXJkLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFzQmdCIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0NvcHlDbGlwYm9hcmQvQ29weVRvQ2xpc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6ZS5zbSxcbn0pKTtcblxuZnVuY3Rpb24gQ29weVRvQ2xpcEJvYXJkKHsgdGV4dCwgY2hpbGRyZW4sIGRhdGFUZXN0SWQsIHRpdGxlLCAuLi5wcm9wcyB9OiBQcm9wcykge1xuICByZXR1cm4gKFxuICAgIDxXcmFwcGVyIHsuLi5wcm9wc30+XG4gICAgICA8Q29udGVudD57Y2hpbGRyZW4gPz8gdGV4dH08L0NvbnRlbnQ+XG4gICAgICB7dGl0bGUgPyAoXG4gICAgICAgIDxUb29sdGlwIGRpc2FibGVGb2N1c0xpc3RlbmVyPXt0cnVlfSB0aXRsZT17dGl0bGV9PlxuICAgICAgICAgIDxJY29uQnV0dG9uIGRhdGEtdGVzdGlkPXtkYXRhVGVzdElkfSBvbkNsaWNrPXtjb3B5VG9DbGlwQm9hcmRVdGlsaXR5KHRleHQpfSBzaXplPVwic21hbGxcIj5cbiAgICAgICAgICAgIDxGaWxlQ29weSBmb250U2l6ZT1cInNtYWxsXCIgLz5cbiAgICAgICAgICA8L0ljb25CdXR0b24+XG4gICAgICAgIDwvVG9vbHRpcD5cbiAgICAgICkgOiAoXG4gICAgICAgIDxJY29uQnV0dG9uIGRhdGEtdGVzdGlkPXtkYXRhVGVzdElkfSBvbkNsaWNrPXtjb3B5VG9DbGlwQm9hcmRVdGlsaXR5KHRleHQpfSBzaXplPVwic21hbGxcIj5cbiAgICAgICAgICA8RmlsZUNvcHkgZm9udFNpemU9XCJzbWFsbFwiIC8+XG4gICAgICAgIDwvSWNvbkJ1dHRvbj5cbiAgICAgICl9XG4gICAgPC9XcmFwcGVyPlxuICApO1xufVxuXG5leHBvcnQgZGVmYXVsdCBDb3B5VG9DbGlwQm9hcmQ7XG4iXX0= */");
|
|
42
47
|
function CopyToClipBoard(_ref2) {
|
|
43
|
-
var
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
title
|
|
48
|
-
} = _ref2,
|
|
48
|
+
var text = _ref2.text,
|
|
49
|
+
children = _ref2.children,
|
|
50
|
+
dataTestId = _ref2.dataTestId,
|
|
51
|
+
title = _ref2.title,
|
|
49
52
|
props = _objectWithoutProperties(_ref2, _excluded);
|
|
50
|
-
return /*#__PURE__*/
|
|
53
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, props, /*#__PURE__*/_react["default"].createElement(Content, null, children !== null && children !== void 0 ? children : text), title ? /*#__PURE__*/_react["default"].createElement(_Tooltip["default"], {
|
|
51
54
|
disableFocusListener: true,
|
|
52
55
|
title: title
|
|
53
|
-
}, /*#__PURE__*/
|
|
56
|
+
}, /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
|
|
54
57
|
"data-testid": dataTestId,
|
|
55
|
-
onClick: copyToClipBoardUtility(text),
|
|
58
|
+
onClick: (0, _utils.copyToClipBoardUtility)(text),
|
|
56
59
|
size: "small"
|
|
57
|
-
}, /*#__PURE__*/
|
|
60
|
+
}, /*#__PURE__*/_react["default"].createElement(_FileCopy["default"], {
|
|
58
61
|
fontSize: "small"
|
|
59
|
-
}))) : /*#__PURE__*/
|
|
62
|
+
}))) : /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
|
|
60
63
|
"data-testid": dataTestId,
|
|
61
|
-
onClick: copyToClipBoardUtility(text),
|
|
64
|
+
onClick: (0, _utils.copyToClipBoardUtility)(text),
|
|
62
65
|
size: "small"
|
|
63
|
-
}, /*#__PURE__*/
|
|
66
|
+
}, /*#__PURE__*/_react["default"].createElement(_FileCopy["default"], {
|
|
64
67
|
fontSize: "small"
|
|
65
68
|
})));
|
|
66
69
|
}
|
|
67
|
-
|
|
70
|
+
var _default = exports["default"] = CopyToClipBoard;
|
|
68
71
|
//# sourceMappingURL=CopyToClipBoard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CopyToClipBoard.js","names":["
|
|
1
|
+
{"version":3,"file":"CopyToClipBoard.js","names":["_FileCopy","_interopRequireDefault","require","_IconButton","_Tooltip","_react","_utils","_excluded","e","__esModule","_objectWithoutProperties","t","o","r","i","_objectWithoutPropertiesLoose","Object","getOwnPropertySymbols","n","length","indexOf","propertyIsEnumerable","call","hasOwnProperty","_EMOTION_STRINGIFIED_CSS_ERROR__","Wrapper","_base","process","env","NODE_ENV","target","label","name","styles","toString","Content","_ref","theme","display","overflow","textOverflow","height","whiteSpace","fontSize","sm","CopyToClipBoard","_ref2","text","children","dataTestId","title","props","createElement","disableFocusListener","onClick","copyToClipBoardUtility","size","_default","exports"],"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":";;;;;;;AACA,IAAAA,SAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAF,sBAAA,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EAAC;EAAO,gBACtFnD,MAAA,YAAA+C,aAAA,CAACpD,SAAA,WAAQ;IAAC2C,QAAQ,EAAC;EAAO,CAAE,CAClB,CACL,CAAC,gBAEVtC,MAAA,YAAA+C,aAAA,CAACjD,WAAA,WAAU;IAAC,eAAa8C,UAAW;IAACK,OAAO,EAAE,IAAAC,6BAAsB,EAACR,IAAI,CAAE;IAACS,IAAI,EAAC;EAAO,gBACtFnD,MAAA,YAAA+C,aAAA,CAACpD,SAAA,WAAQ;IAAC2C,QAAQ,EAAC;EAAO,CAAE,CAClB,CAEP,CAAC;AAEd;AAAC,IAAAc,QAAA,GAAAC,OAAA,cAEcb,eAAe","ignoreList":[]}
|
|
@@ -1,3 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
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 }; }
|
|
3
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["
|
|
1
|
+
{"version":3,"file":"index.js","names":["_CopyToClipBoard","_interopRequireDefault","require","_utils","e","__esModule"],"sources":["../../../src/components/CopyClipboard/index.ts"],"sourcesContent":["export { default } from './CopyToClipBoard';\nexport { copyToClipBoardUtility } from './utils';\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAAA,gBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAAiD,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,gBAAAA,CAAA","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SyntheticEvent } from 'react';
|
|
1
|
+
import type { SyntheticEvent } from 'react';
|
|
2
2
|
export declare const copyToClipBoardUtility: (str: string) => (e: SyntheticEvent<HTMLElement>) => void;
|
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
event.preventDefault();
|
|
1
|
+
"use strict";
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
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
|
+
};
|
|
6
14
|
};
|
|
7
15
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +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":"
|
|
1
|
+
{"version":3,"file":"utils.js","names":["copyToClipBoardUtility","exports","str","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":";;;;;;AAEO,IAAMA,sBAAsB,GAAAC,OAAA,CAAAD,sBAAA,GACjC,SADWA,sBAAsBA,CAChCE,GAAW;EAAA,OACZ,UAACC,KAAkC,EAAW;IAC5CA,KAAK,CAACC,cAAc,CAAC,CAAC;;IAEtB;IACAC,SAAS,CAACC,SAAS,CAACC,SAAS,CAACL,GAAG,CAAC;EACpC,CAAC;AAAA","ignoreList":[]}
|
|
@@ -1,72 +1,82 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _Box = _interopRequireDefault(require("@mui/material/Box"));
|
|
9
|
+
var _Card = _interopRequireDefault(require("@mui/material/Card"));
|
|
10
|
+
var _CardContent = _interopRequireDefault(require("@mui/material/CardContent"));
|
|
11
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _reactI18next = require("react-i18next");
|
|
13
|
+
var _NoItems = _interopRequireDefault(require("../NoItems"));
|
|
14
|
+
var _DependencyBlock = require("./DependencyBlock");
|
|
15
|
+
var _utits = require("./utits");
|
|
16
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
17
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
18
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
19
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
20
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
21
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
22
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
23
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
24
|
+
var Dependencies = function Dependencies(_ref) {
|
|
25
|
+
var packageMeta = _ref.packageMeta;
|
|
26
|
+
var _useTranslation = (0, _reactI18next.useTranslation)(),
|
|
27
|
+
t = _useTranslation.t;
|
|
28
|
+
var latest = packageMeta.latest;
|
|
19
29
|
// FIXME: add dependencies to package meta type
|
|
20
30
|
// @ts-ignore
|
|
21
|
-
var
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
name
|
|
28
|
-
} = latest;
|
|
31
|
+
var dependencies = latest.dependencies,
|
|
32
|
+
devDependencies = latest.devDependencies,
|
|
33
|
+
peerDependencies = latest.peerDependencies,
|
|
34
|
+
optionalDependencies = latest.optionalDependencies,
|
|
35
|
+
bundleDependencies = latest.bundleDependencies,
|
|
36
|
+
name = latest.name;
|
|
29
37
|
var dependencyMap = {
|
|
30
|
-
dependencies,
|
|
31
|
-
devDependencies,
|
|
32
|
-
peerDependencies,
|
|
33
|
-
optionalDependencies,
|
|
34
|
-
bundleDependencies
|
|
38
|
+
dependencies: dependencies,
|
|
39
|
+
devDependencies: devDependencies,
|
|
40
|
+
peerDependencies: peerDependencies,
|
|
41
|
+
optionalDependencies: optionalDependencies,
|
|
42
|
+
bundleDependencies: bundleDependencies
|
|
35
43
|
};
|
|
36
|
-
var hasDependencies = hasKeys(dependencies) || hasKeys(bundleDependencies) || hasKeys(optionalDependencies) || hasKeys(devDependencies) || hasKeys(peerDependencies);
|
|
44
|
+
var hasDependencies = (0, _utits.hasKeys)(dependencies) || (0, _utits.hasKeys)(bundleDependencies) || (0, _utits.hasKeys)(optionalDependencies) || (0, _utits.hasKeys)(devDependencies) || (0, _utits.hasKeys)(peerDependencies);
|
|
37
45
|
if (hasDependencies) {
|
|
38
|
-
return /*#__PURE__*/
|
|
46
|
+
return /*#__PURE__*/_react["default"].createElement(_Card["default"], {
|
|
39
47
|
sx: {
|
|
40
48
|
mb: 2
|
|
41
49
|
}
|
|
42
|
-
}, /*#__PURE__*/
|
|
50
|
+
}, /*#__PURE__*/_react["default"].createElement(_CardContent["default"], null, /*#__PURE__*/_react["default"].createElement(_Box["default"], {
|
|
43
51
|
"data-testid": "dependencies-box",
|
|
44
52
|
sx: {
|
|
45
53
|
m: 2
|
|
46
54
|
}
|
|
47
|
-
}, Object.entries(dependencyMap).map(_ref2
|
|
48
|
-
var
|
|
55
|
+
}, Object.entries(dependencyMap).map(function (_ref2) {
|
|
56
|
+
var _ref3 = _slicedToArray(_ref2, 2),
|
|
57
|
+
dependencyType = _ref3[0],
|
|
58
|
+
dependencies = _ref3[1];
|
|
49
59
|
if (!dependencies || Object.keys(dependencies).length === 0) {
|
|
50
60
|
return null;
|
|
51
61
|
}
|
|
52
|
-
return /*#__PURE__*/
|
|
62
|
+
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, {
|
|
53
63
|
key: dependencyType
|
|
54
|
-
}, /*#__PURE__*/
|
|
64
|
+
}, /*#__PURE__*/_react["default"].createElement(_DependencyBlock.DependencyBlock, {
|
|
55
65
|
dependencies: dependencies,
|
|
56
66
|
key: dependencyType,
|
|
57
67
|
title: dependencyType
|
|
58
68
|
}));
|
|
59
69
|
}))));
|
|
60
70
|
}
|
|
61
|
-
return /*#__PURE__*/
|
|
71
|
+
return /*#__PURE__*/_react["default"].createElement(_Card["default"], {
|
|
62
72
|
sx: {
|
|
63
73
|
mb: 2
|
|
64
74
|
}
|
|
65
|
-
}, /*#__PURE__*/
|
|
75
|
+
}, /*#__PURE__*/_react["default"].createElement(_CardContent["default"], null, /*#__PURE__*/_react["default"].createElement(_NoItems["default"], {
|
|
66
76
|
text: t('dependencies.has-no-dependencies', {
|
|
67
|
-
package: name
|
|
77
|
+
"package": name
|
|
68
78
|
})
|
|
69
79
|
})));
|
|
70
80
|
};
|
|
71
|
-
|
|
81
|
+
var _default = exports["default"] = Dependencies;
|
|
72
82
|
//# sourceMappingURL=Dependencies.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dependencies.js","names":["
|
|
1
|
+
{"version":3,"file":"Dependencies.js","names":["_Box","_interopRequireDefault","require","_Card","_CardContent","_react","_interopRequireWildcard","_reactI18next","_NoItems","_DependencyBlock","_utits","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","_typeof","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_slicedToArray","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","TypeError","a","_arrayLikeToArray","toString","slice","constructor","name","Array","from","test","length","l","Symbol","iterator","u","next","done","push","value","isArray","Dependencies","_ref","packageMeta","_useTranslation","useTranslation","latest","dependencies","devDependencies","peerDependencies","optionalDependencies","bundleDependencies","dependencyMap","hasDependencies","hasKeys","createElement","sx","mb","m","entries","map","_ref2","_ref3","dependencyType","keys","Fragment","key","DependencyBlock","title","text","_default","exports"],"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,IAAAA,IAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,KAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,YAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,MAAA,GAAAC,uBAAA,CAAAJ,OAAA;AACA,IAAAK,aAAA,GAAAL,OAAA;AAEA,IAAAM,QAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,gBAAA,GAAAP,OAAA;AACA,IAAAQ,MAAA,GAAAR,OAAA;AAAkC,SAAAI,wBAAAK,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAP,uBAAA,YAAAA,wBAAAK,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,mBAAAT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MAAA,YAAAiE,aAAA,CAACtE,IAAA,WAAG;MAAC,eAAY,kBAAkB;MAACuE,EAAE,EAAE;QAAEE,CAAC,EAAE;MAAE;IAAE,GAC9C7C,MAAM,CAAC8C,OAAO,CAACP,aAAa,CAAC,CAACQ,GAAG,CAAC,UAAAC,KAAA,EAAoC;MAAA,IAAAC,KAAA,GAAA9C,cAAA,CAAA6C,KAAA;QAAlCE,cAAc,GAAAD,KAAA;QAAEf,YAAY,GAAAe,KAAA;MAC/D,IAAI,CAACf,YAAY,IAAIlC,MAAM,CAACmD,IAAI,CAACjB,YAAY,CAAC,CAAChB,MAAM,KAAK,CAAC,EAAE;QAC3D,OAAO,IAAI;MACb;MACA,oBACEzC,MAAA,YAAAiE,aAAA,CAACjE,MAAA,CAAA2E,QAAQ;QAACC,GAAG,EAAEH;MAAe,gBAC5BzE,MAAA,YAAAiE,aAAA,CAAC7D,gBAAA,CAAAyE,eAAe;QACdpB,YAAY,EAAEA,YAAa;QAC3BmB,GAAG,EAAEH,cAAe;QACpBK,KAAK,EAAEL;MAAe,CACvB,CACO,CAAC;IAEf,CAAC,CACE,CACM,CACT,CAAC;EAEX;EAEA,oBACEzE,MAAA,YAAAiE,aAAA,CAACnE,KAAA,WAAI;IAACoE,EAAE,EAAE;MAAEC,EAAE,EAAE;IAAE;EAAE,gBAClBnE,MAAA,YAAAiE,aAAA,CAAClE,YAAA,WAAW,qBACVC,MAAA,YAAAiE,aAAA,CAAC9D,QAAA,WAAO;IAAC4E,IAAI,EAAExE,CAAC,CAAC,kCAAkC,EAAE;MAAE,WAAS8B;IAAK,CAAC;EAAE,CAAE,CAC/D,CACT,CAAC;AAEX,CAAC;AAAC,IAAA2C,QAAA,GAAAC,OAAA,cAEa9B,YAAY","ignoreList":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Theme } from '../../Theme';
|
|
3
|
-
import { PackageDependencies } from '../../types/packageMeta';
|
|
2
|
+
import type { Theme } from '../../Theme';
|
|
3
|
+
import type { PackageDependencies } from '../../types/packageMeta';
|
|
4
4
|
interface DependencyBlockProps {
|
|
5
5
|
title: string;
|
|
6
6
|
dependencies: PackageDependencies;
|