@verdaccio/ui-components 5.0.0-next-9.2 → 5.0.0-next-9.3
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 +29 -25
- package/build/Theme/ResetStyles.js.map +1 -1
- package/build/Theme/ResetStyles.mjs +32 -0
- package/build/Theme/ResetStyles.mjs.map +1 -0
- package/build/Theme/StyleBaseline.js +10 -7
- package/build/Theme/StyleBaseline.js.map +1 -1
- package/build/Theme/StyleBaseline.mjs +11 -0
- package/build/Theme/StyleBaseline.mjs.map +1 -0
- package/build/Theme/ThemeProvider.js +33 -23
- package/build/Theme/ThemeProvider.js.map +1 -1
- package/build/Theme/ThemeProvider.mjs +40 -0
- package/build/Theme/ThemeProvider.mjs.map +1 -0
- package/build/Theme/colors.js +26 -12
- package/build/Theme/colors.js.map +1 -1
- package/build/Theme/colors.mjs +22 -0
- package/build/Theme/colors.mjs.map +1 -0
- package/build/Theme/index.js +5 -5
- package/build/Theme/index.mjs +5 -0
- package/build/Theme/modes.js +15 -12
- package/build/Theme/modes.js.map +1 -1
- package/build/Theme/modes.mjs +30 -0
- package/build/Theme/modes.mjs.map +1 -0
- package/build/Theme/theme.js +19 -16
- package/build/Theme/theme.js.map +1 -1
- package/build/Theme/theme.mjs +22 -0
- package/build/Theme/theme.mjs.map +1 -0
- package/build/Theme/tokens.js +14 -8
- package/build/Theme/tokens.js.map +1 -1
- package/build/Theme/tokens.mjs +33 -0
- package/build/Theme/tokens.mjs.map +1 -0
- package/build/_virtual/_rolldown/runtime.js +29 -7
- package/build/_virtual/_rolldown/runtime.mjs +13 -0
- package/build/api/use-data-mutation.js +31 -24
- package/build/api/use-data-mutation.js.map +1 -1
- package/build/api/use-data-mutation.mjs +45 -0
- package/build/api/use-data-mutation.mjs.map +1 -0
- package/build/api/use-data.js +17 -12
- package/build/api/use-data.js.map +1 -1
- package/build/api/use-data.mjs +23 -0
- package/build/api/use-data.mjs.map +1 -0
- package/build/components/ActionBar/ActionBar.js +37 -28
- package/build/components/ActionBar/ActionBar.js.map +1 -1
- package/build/components/ActionBar/ActionBar.mjs +52 -0
- package/build/components/ActionBar/ActionBar.mjs.map +1 -0
- package/build/components/ActionBar/ActionBarAction.js +66 -52
- package/build/components/ActionBar/ActionBarAction.js.map +1 -1
- package/build/components/ActionBar/ActionBarAction.mjs +85 -0
- package/build/components/ActionBar/ActionBarAction.mjs.map +1 -0
- package/build/components/ActionBar/index.js +1 -1
- package/build/components/ActionBar/index.mjs +1 -0
- package/build/components/AppRoute/AppRoute.js +58 -47
- package/build/components/AppRoute/AppRoute.js.map +1 -1
- package/build/components/AppRoute/AppRoute.mjs +76 -0
- package/build/components/AppRoute/AppRoute.mjs.map +1 -0
- package/build/components/Author/Author.js +26 -22
- package/build/components/Author/Author.js.map +1 -1
- package/build/components/Author/Author.mjs +33 -0
- package/build/components/Author/Author.mjs.map +1 -0
- package/build/components/Author/index.js +1 -1
- package/build/components/Author/index.mjs +1 -0
- package/build/components/Author/styles.js +13 -8
- package/build/components/Author/styles.js.map +1 -1
- package/build/components/Author/styles.mjs +26 -0
- package/build/components/Author/styles.mjs.map +1 -0
- package/build/components/CopyClipboard/CopyToClipBoard.js +35 -28
- package/build/components/CopyClipboard/CopyToClipBoard.js.map +1 -1
- package/build/components/CopyClipboard/CopyToClipBoard.mjs +57 -0
- package/build/components/CopyClipboard/CopyToClipBoard.mjs.map +1 -0
- package/build/components/CopyClipboard/index.js +2 -2
- package/build/components/CopyClipboard/index.mjs +2 -0
- package/build/components/CopyClipboard/utils.js +4 -3
- package/build/components/CopyClipboard/utils.js.map +1 -1
- package/build/components/CopyClipboard/utils.mjs +9 -0
- package/build/components/CopyClipboard/utils.mjs.map +1 -0
- package/build/components/Dependencies/Dependencies.js +38 -26
- package/build/components/Dependencies/Dependencies.js.map +1 -1
- package/build/components/Dependencies/Dependencies.mjs +45 -0
- package/build/components/Dependencies/Dependencies.mjs.map +1 -0
- package/build/components/Dependencies/DependencyBlock.js +50 -38
- package/build/components/Dependencies/DependencyBlock.js.map +1 -1
- package/build/components/Dependencies/DependencyBlock.mjs +70 -0
- package/build/components/Dependencies/DependencyBlock.mjs.map +1 -0
- package/build/components/Dependencies/index.js +2 -2
- package/build/components/Dependencies/index.mjs +2 -0
- package/build/components/Dependencies/utits.js +3 -3
- package/build/components/Dependencies/utits.js.map +1 -1
- package/build/components/Dependencies/utits.mjs +8 -0
- package/build/components/Dependencies/utits.mjs.map +1 -0
- package/build/components/Deprecated/Deprecated.js +17 -12
- package/build/components/Deprecated/Deprecated.js.map +1 -1
- package/build/components/Deprecated/Deprecated.mjs +18 -0
- package/build/components/Deprecated/Deprecated.mjs.map +1 -0
- package/build/components/Deprecated/index.js +1 -1
- package/build/components/Deprecated/index.mjs +1 -0
- package/build/components/Developers/DeveloperType.js +5 -3
- package/build/components/Developers/DeveloperType.js.map +1 -1
- package/build/components/Developers/DeveloperType.mjs +10 -0
- package/build/components/Developers/DeveloperType.mjs.map +1 -0
- package/build/components/Developers/Developers.js +50 -37
- package/build/components/Developers/Developers.js.map +1 -1
- package/build/components/Developers/Developers.mjs +68 -0
- package/build/components/Developers/Developers.mjs.map +1 -0
- package/build/components/Developers/Title.js +23 -18
- package/build/components/Developers/Title.js.map +1 -1
- package/build/components/Developers/Title.mjs +32 -0
- package/build/components/Developers/Title.mjs.map +1 -0
- package/build/components/Developers/get-unique-developer-values.js +4 -3
- package/build/components/Developers/get-unique-developer-values.js.map +1 -1
- package/build/components/Developers/get-unique-developer-values.mjs +9 -0
- package/build/components/Developers/get-unique-developer-values.mjs.map +1 -0
- package/build/components/Developers/index.js +2 -2
- package/build/components/Developers/index.mjs +2 -0
- package/build/components/Distribution/Dist.js +32 -27
- package/build/components/Distribution/Dist.js.map +1 -1
- package/build/components/Distribution/Dist.mjs +42 -0
- package/build/components/Distribution/Dist.mjs.map +1 -0
- package/build/components/Distribution/index.js +1 -1
- package/build/components/Distribution/index.mjs +1 -0
- package/build/components/Distribution/styles.js +22 -13
- package/build/components/Distribution/styles.js.map +1 -1
- package/build/components/Distribution/styles.mjs +41 -0
- package/build/components/Distribution/styles.mjs.map +1 -0
- package/build/components/Engines/Engines.js +61 -43
- package/build/components/Engines/Engines.js.map +1 -1
- package/build/components/Engines/Engines.mjs +82 -0
- package/build/components/Engines/Engines.mjs.map +1 -0
- package/build/components/Engines/index.js +1 -1
- package/build/components/Engines/index.mjs +1 -0
- package/build/components/Engines/styles.js +16 -10
- package/build/components/Engines/styles.js.map +1 -1
- package/build/components/Engines/styles.mjs +29 -0
- package/build/components/Engines/styles.mjs.map +1 -0
- package/build/components/ErrorBoundary/ErrorBoundary.js +18 -14
- package/build/components/ErrorBoundary/ErrorBoundary.js.map +1 -1
- package/build/components/ErrorBoundary/ErrorBoundary.mjs +31 -0
- package/build/components/ErrorBoundary/ErrorBoundary.mjs.map +1 -0
- package/build/components/ErrorBoundary/index.js +1 -1
- package/build/components/ErrorBoundary/index.mjs +1 -0
- package/build/components/Forbidden/Forbidden.js +37 -27
- package/build/components/Forbidden/Forbidden.js.map +1 -1
- package/build/components/Forbidden/Forbidden.mjs +70 -0
- package/build/components/Forbidden/Forbidden.mjs.map +1 -0
- package/build/components/Forbidden/index.js +1 -1
- package/build/components/Forbidden/index.mjs +1 -0
- package/build/components/FundButton/FundButton.js +38 -29
- package/build/components/FundButton/FundButton.js.map +1 -1
- package/build/components/FundButton/FundButton.mjs +60 -0
- package/build/components/FundButton/FundButton.mjs.map +1 -0
- package/build/components/FundButton/index.js +1 -1
- package/build/components/FundButton/index.mjs +1 -0
- package/build/components/HeaderInfoDialog/HeaderInfoDialog.js +52 -42
- package/build/components/HeaderInfoDialog/HeaderInfoDialog.js.map +1 -1
- package/build/components/HeaderInfoDialog/HeaderInfoDialog.mjs +71 -0
- package/build/components/HeaderInfoDialog/HeaderInfoDialog.mjs.map +1 -0
- package/build/components/HeaderInfoDialog/index.js +1 -1
- package/build/components/HeaderInfoDialog/index.mjs +1 -0
- package/build/components/Heading/Heading.js +12 -9
- package/build/components/Heading/Heading.js.map +1 -1
- package/build/components/Heading/Heading.mjs +15 -0
- package/build/components/Heading/Heading.mjs.map +1 -0
- package/build/components/Heading/index.js +1 -1
- package/build/components/Heading/index.mjs +1 -0
- package/build/components/Help/Help.js +42 -34
- package/build/components/Help/Help.js.map +1 -1
- package/build/components/Help/Help.mjs +60 -0
- package/build/components/Help/Help.mjs.map +1 -0
- package/build/components/Help/index.js +1 -1
- package/build/components/Help/index.mjs +1 -0
- package/build/components/Help/styles.js +9 -6
- package/build/components/Help/styles.js.map +1 -1
- package/build/components/Help/styles.mjs +21 -0
- package/build/components/Help/styles.mjs.map +1 -0
- package/build/components/Icons/DevsIcons/CommonJS2.js +9 -7
- package/build/components/Icons/DevsIcons/CommonJS2.js.map +1 -1
- package/build/components/Icons/DevsIcons/CommonJS2.mjs +16 -0
- package/build/components/Icons/DevsIcons/CommonJS2.mjs.map +1 -0
- package/build/components/Icons/DevsIcons/ES6Module2.js +9 -7
- package/build/components/Icons/DevsIcons/ES6Module2.js.map +1 -1
- package/build/components/Icons/DevsIcons/ES6Module2.mjs +16 -0
- package/build/components/Icons/DevsIcons/ES6Module2.mjs.map +1 -0
- package/build/components/Icons/DevsIcons/Git2.js +9 -7
- package/build/components/Icons/DevsIcons/Git2.js.map +1 -1
- package/build/components/Icons/DevsIcons/Git2.mjs +16 -0
- package/build/components/Icons/DevsIcons/Git2.mjs.map +1 -0
- package/build/components/Icons/DevsIcons/NodeJS2.js +9 -7
- package/build/components/Icons/DevsIcons/NodeJS2.js.map +1 -1
- package/build/components/Icons/DevsIcons/NodeJS2.mjs +16 -0
- package/build/components/Icons/DevsIcons/NodeJS2.mjs.map +1 -0
- package/build/components/Icons/DevsIcons/TypeScript2.js +9 -7
- package/build/components/Icons/DevsIcons/TypeScript2.js.map +1 -1
- package/build/components/Icons/DevsIcons/TypeScript2.mjs +16 -0
- package/build/components/Icons/DevsIcons/TypeScript2.mjs.map +1 -0
- package/build/components/Icons/DevsIcons/commonjs.js +2 -2
- package/build/components/Icons/DevsIcons/commonjs.js.map +1 -1
- package/build/components/Icons/DevsIcons/commonjs.mjs +6 -0
- package/build/components/Icons/DevsIcons/commonjs.mjs.map +1 -0
- package/build/components/Icons/DevsIcons/es6module.js +2 -2
- package/build/components/Icons/DevsIcons/es6module.js.map +1 -1
- package/build/components/Icons/DevsIcons/es6module.mjs +6 -0
- package/build/components/Icons/DevsIcons/es6module.mjs.map +1 -0
- package/build/components/Icons/DevsIcons/git.js +2 -2
- package/build/components/Icons/DevsIcons/git.js.map +1 -1
- package/build/components/Icons/DevsIcons/git.mjs +6 -0
- package/build/components/Icons/DevsIcons/git.mjs.map +1 -0
- package/build/components/Icons/DevsIcons/index.js +5 -5
- package/build/components/Icons/DevsIcons/index.mjs +5 -0
- package/build/components/Icons/DevsIcons/nodejs.js +2 -2
- package/build/components/Icons/DevsIcons/nodejs.js.map +1 -1
- package/build/components/Icons/DevsIcons/nodejs.mjs +6 -0
- package/build/components/Icons/DevsIcons/nodejs.mjs.map +1 -0
- package/build/components/Icons/DevsIcons/typescript.js +2 -2
- package/build/components/Icons/DevsIcons/typescript.js.map +1 -1
- package/build/components/Icons/DevsIcons/typescript.mjs +6 -0
- package/build/components/Icons/DevsIcons/typescript.mjs.map +1 -0
- package/build/components/Icons/Earth.js +19 -17
- package/build/components/Icons/Earth.js.map +1 -1
- package/build/components/Icons/Earth.mjs +41 -0
- package/build/components/Icons/Earth.mjs.map +1 -0
- package/build/components/Icons/FileBinary.js +12 -10
- package/build/components/Icons/FileBinary.js.map +1 -1
- package/build/components/Icons/FileBinary.mjs +17 -0
- package/build/components/Icons/FileBinary.mjs.map +1 -0
- package/build/components/Icons/Law.js +12 -10
- package/build/components/Icons/Law.js.map +1 -1
- package/build/components/Icons/Law.mjs +20 -0
- package/build/components/Icons/Law.mjs.map +1 -0
- package/build/components/Icons/License.js +12 -10
- package/build/components/Icons/License.js.map +1 -1
- package/build/components/Icons/License.mjs +17 -0
- package/build/components/Icons/License.mjs.map +1 -0
- package/build/components/Icons/Managers/Npm2.js +9 -7
- package/build/components/Icons/Managers/Npm2.js.map +1 -1
- package/build/components/Icons/Managers/Npm2.mjs +16 -0
- package/build/components/Icons/Managers/Npm2.mjs.map +1 -0
- package/build/components/Icons/Managers/Pnpm2.js +9 -7
- package/build/components/Icons/Managers/Pnpm2.js.map +1 -1
- package/build/components/Icons/Managers/Pnpm2.mjs +16 -0
- package/build/components/Icons/Managers/Pnpm2.mjs.map +1 -0
- package/build/components/Icons/Managers/Yarn2.js +9 -7
- package/build/components/Icons/Managers/Yarn2.js.map +1 -1
- package/build/components/Icons/Managers/Yarn2.mjs +16 -0
- package/build/components/Icons/Managers/Yarn2.mjs.map +1 -0
- package/build/components/Icons/Managers/index.js +3 -3
- package/build/components/Icons/Managers/index.mjs +3 -0
- package/build/components/Icons/Managers/npm.js +2 -2
- package/build/components/Icons/Managers/npm.js.map +1 -1
- package/build/components/Icons/Managers/npm.mjs +6 -0
- package/build/components/Icons/Managers/npm.mjs.map +1 -0
- package/build/components/Icons/Managers/pnpm.js +2 -2
- package/build/components/Icons/Managers/pnpm.js.map +1 -1
- package/build/components/Icons/Managers/pnpm.mjs +6 -0
- package/build/components/Icons/Managers/pnpm.mjs.map +1 -0
- package/build/components/Icons/Managers/yarn.js +2 -2
- package/build/components/Icons/Managers/yarn.js.map +1 -1
- package/build/components/Icons/Managers/yarn.mjs +6 -0
- package/build/components/Icons/Managers/yarn.mjs.map +1 -0
- package/build/components/Icons/SvgIcon.js +28 -19
- package/build/components/Icons/SvgIcon.js.map +1 -1
- package/build/components/Icons/SvgIcon.mjs +31 -0
- package/build/components/Icons/SvgIcon.mjs.map +1 -0
- package/build/components/Icons/Time.js +14 -12
- package/build/components/Icons/Time.js.map +1 -1
- package/build/components/Icons/Time.mjs +24 -0
- package/build/components/Icons/Time.mjs.map +1 -0
- package/build/components/Icons/Version.js +12 -10
- package/build/components/Icons/Version.js.map +1 -1
- package/build/components/Icons/Version.mjs +22 -0
- package/build/components/Icons/Version.mjs.map +1 -0
- package/build/components/Icons/index.js +38 -33
- package/build/components/Icons/index.mjs +38 -0
- package/build/components/Icons/index.mjs.map +1 -0
- package/build/components/Install/Install.js +44 -36
- package/build/components/Install/Install.js.map +1 -1
- package/build/components/Install/Install.mjs +66 -0
- package/build/components/Install/Install.mjs.map +1 -0
- package/build/components/Install/InstallListItem.js +66 -51
- package/build/components/Install/InstallListItem.js.map +1 -1
- package/build/components/Install/InstallListItem.mjs +109 -0
- package/build/components/Install/InstallListItem.mjs.map +1 -0
- package/build/components/Install/index.js +1 -1
- package/build/components/Install/index.mjs +1 -0
- package/build/components/Keywords/KeywordListItems.js +17 -12
- package/build/components/Keywords/KeywordListItems.js.map +1 -1
- package/build/components/Keywords/KeywordListItems.mjs +28 -0
- package/build/components/Keywords/KeywordListItems.mjs.map +1 -0
- package/build/components/Keywords/Keywords.js +22 -16
- package/build/components/Keywords/Keywords.js.map +1 -1
- package/build/components/Keywords/Keywords.mjs +29 -0
- package/build/components/Keywords/Keywords.mjs.map +1 -0
- package/build/components/Keywords/index.js +1 -1
- package/build/components/Keywords/index.mjs +1 -0
- package/build/components/Label/Label.js +20 -14
- package/build/components/Label/Label.js.map +1 -1
- package/build/components/Label/Label.mjs +23 -0
- package/build/components/Label/Label.mjs.map +1 -0
- package/build/components/Label/index.js +1 -1
- package/build/components/Label/index.mjs +1 -0
- package/build/components/Link/Link.js +23 -18
- package/build/components/Link/Link.js.map +1 -1
- package/build/components/Link/Link.mjs +37 -0
- package/build/components/Link/Link.mjs.map +1 -0
- package/build/components/Link/index.js +1 -1
- package/build/components/Link/index.mjs +1 -0
- package/build/components/LinkExternal/LinkExternal.js +15 -12
- package/build/components/LinkExternal/LinkExternal.js.map +1 -1
- package/build/components/LinkExternal/LinkExternal.mjs +21 -0
- package/build/components/LinkExternal/LinkExternal.mjs.map +1 -0
- package/build/components/LinkExternal/index.js +1 -1
- package/build/components/LinkExternal/index.mjs +1 -0
- package/build/components/Loading/Loading.js +12 -10
- package/build/components/Loading/Loading.js.map +1 -1
- package/build/components/Loading/Loading.mjs +16 -0
- package/build/components/Loading/Loading.mjs.map +1 -0
- package/build/components/Loading/Spinner/Spinner.js +20 -14
- package/build/components/Loading/Spinner/Spinner.js.map +1 -1
- package/build/components/Loading/Spinner/Spinner.mjs +32 -0
- package/build/components/Loading/Spinner/Spinner.mjs.map +1 -0
- package/build/components/Loading/Spinner/index.js +1 -1
- package/build/components/Loading/Spinner/index.mjs +1 -0
- package/build/components/Loading/index.js +1 -1
- package/build/components/Loading/index.mjs +1 -0
- package/build/components/Loading/styles.js +12 -8
- package/build/components/Loading/styles.js.map +1 -1
- package/build/components/Loading/styles.mjs +30 -0
- package/build/components/Loading/styles.mjs.map +1 -0
- package/build/components/LoginDialog/LoginDialog.js +25 -20
- package/build/components/LoginDialog/LoginDialog.js.map +1 -1
- package/build/components/LoginDialog/LoginDialog.mjs +31 -0
- package/build/components/LoginDialog/LoginDialog.mjs.map +1 -0
- package/build/components/LoginDialog/LoginDialogCloseButton.js +25 -18
- package/build/components/LoginDialog/LoginDialogCloseButton.js.map +1 -1
- package/build/components/LoginDialog/LoginDialogCloseButton.mjs +30 -0
- package/build/components/LoginDialog/LoginDialogCloseButton.mjs.map +1 -0
- package/build/components/LoginDialog/LoginDialogForm.js +15 -13
- package/build/components/LoginDialog/LoginDialogForm.js.map +1 -1
- package/build/components/LoginDialog/LoginDialogForm.mjs +19 -0
- package/build/components/LoginDialog/LoginDialogForm.mjs.map +1 -0
- package/build/components/LoginDialog/LoginDialogFormError.js +32 -22
- package/build/components/LoginDialog/LoginDialogFormError.js.map +1 -1
- package/build/components/LoginDialog/LoginDialogFormError.mjs +36 -0
- package/build/components/LoginDialog/LoginDialogFormError.mjs.map +1 -0
- package/build/components/LoginDialog/index.js +1 -1
- package/build/components/LoginDialog/index.mjs +1 -0
- package/build/components/LoginForm/Login.js +45 -36
- package/build/components/LoginForm/Login.js.map +1 -1
- package/build/components/LoginForm/Login.mjs +69 -0
- package/build/components/LoginForm/Login.mjs.map +1 -0
- package/build/components/LoginForm/PasswordField.js +24 -19
- package/build/components/LoginForm/PasswordField.js.map +1 -1
- package/build/components/LoginForm/PasswordField.mjs +34 -0
- package/build/components/LoginForm/PasswordField.mjs.map +1 -0
- package/build/components/LoginForm/UsernameField.js +24 -19
- package/build/components/LoginForm/UsernameField.js.map +1 -1
- package/build/components/LoginForm/UsernameField.mjs +32 -0
- package/build/components/LoginForm/UsernameField.mjs.map +1 -0
- package/build/components/LoginForm/styles.js +42 -32
- package/build/components/LoginForm/styles.js.map +1 -1
- package/build/components/LoginForm/styles.mjs +52 -0
- package/build/components/LoginForm/styles.mjs.map +1 -0
- package/build/components/LoginForm/useLoginForm.js +23 -18
- package/build/components/LoginForm/useLoginForm.js.map +1 -1
- package/build/components/LoginForm/useLoginForm.mjs +38 -0
- package/build/components/LoginForm/useLoginForm.mjs.map +1 -0
- package/build/components/Logo/Logo.js +44 -36
- package/build/components/Logo/Logo.js.map +1 -1
- package/build/components/Logo/Logo.mjs +74 -0
- package/build/components/Logo/Logo.mjs.map +1 -0
- package/build/components/Logo/img/logo-black-and-white.js +2 -2
- package/build/components/Logo/img/logo-black-and-white.js.map +1 -1
- package/build/components/Logo/img/logo-black-and-white.mjs +6 -0
- package/build/components/Logo/img/logo-black-and-white.mjs.map +1 -0
- package/build/components/Logo/img/logo.js +2 -2
- package/build/components/Logo/img/logo.js.map +1 -1
- package/build/components/Logo/img/logo.mjs +6 -0
- package/build/components/Logo/img/logo.mjs.map +1 -0
- package/build/components/Logo/index.js +1 -1
- package/build/components/Logo/index.mjs +1 -0
- package/build/components/MenuItem/MenuItem.js +18 -13
- package/build/components/MenuItem/MenuItem.js.map +1 -1
- package/build/components/MenuItem/MenuItem.mjs +30 -0
- package/build/components/MenuItem/MenuItem.mjs.map +1 -0
- package/build/components/MenuItem/index.js +1 -1
- package/build/components/MenuItem/index.mjs +1 -0
- package/build/components/NoItems/NoItems.js +13 -9
- package/build/components/NoItems/NoItems.js.map +1 -1
- package/build/components/NoItems/NoItems.mjs +16 -0
- package/build/components/NoItems/NoItems.mjs.map +1 -0
- package/build/components/NoItems/index.js +1 -1
- package/build/components/NoItems/index.mjs +1 -0
- package/build/components/NotFound/NotFound.js +37 -27
- package/build/components/NotFound/NotFound.js.map +1 -1
- package/build/components/NotFound/NotFound.mjs +70 -0
- package/build/components/NotFound/NotFound.mjs.map +1 -0
- package/build/components/NotFound/index.js +1 -1
- package/build/components/NotFound/index.mjs +1 -0
- package/build/components/Package/Package.js +146 -112
- package/build/components/Package/Package.js.map +1 -1
- package/build/components/Package/Package.mjs +188 -0
- package/build/components/Package/Package.mjs.map +1 -0
- package/build/components/Package/index.js +1 -1
- package/build/components/Package/index.mjs +1 -0
- package/build/components/Package/styles.js +70 -41
- package/build/components/Package/styles.js.map +1 -1
- package/build/components/Package/styles.mjs +142 -0
- package/build/components/Package/styles.mjs.map +1 -0
- package/build/components/PackageList/PackageList.js +64 -55
- package/build/components/PackageList/PackageList.js.map +1 -1
- package/build/components/PackageList/PackageList.mjs +71 -0
- package/build/components/PackageList/PackageList.mjs.map +1 -0
- package/build/components/PackageList/index.js +1 -1
- package/build/components/PackageList/index.mjs +1 -0
- package/build/components/Person/Person.js +28 -23
- package/build/components/Person/Person.js.map +1 -1
- package/build/components/Person/Person.mjs +39 -0
- package/build/components/Person/Person.mjs.map +1 -0
- package/build/components/Person/PersonTooltip.js +20 -17
- package/build/components/Person/PersonTooltip.js.map +1 -1
- package/build/components/Person/PersonTooltip.mjs +26 -0
- package/build/components/Person/PersonTooltip.mjs.map +1 -0
- package/build/components/Person/index.js +1 -1
- package/build/components/Person/index.mjs +1 -0
- package/build/components/Person/utils.js +11 -8
- package/build/components/Person/utils.js.map +1 -1
- package/build/components/Person/utils.mjs +14 -0
- package/build/components/Person/utils.mjs.map +1 -0
- package/build/components/RawViewer/RawViewer.js +40 -30
- package/build/components/RawViewer/RawViewer.js.map +1 -1
- package/build/components/RawViewer/RawViewer.mjs +57 -0
- package/build/components/RawViewer/RawViewer.mjs.map +1 -0
- package/build/components/RawViewer/index.js +1 -1
- package/build/components/RawViewer/index.mjs +1 -0
- package/build/components/Readme/Readme.js +30 -23
- package/build/components/Readme/Readme.js.map +1 -1
- package/build/components/Readme/Readme.mjs +45 -0
- package/build/components/Readme/Readme.mjs.map +1 -0
- package/build/components/Readme/index.js +1 -1
- package/build/components/Readme/index.mjs +1 -0
- package/build/components/Readme/utils.js +21 -18
- package/build/components/Readme/utils.js.map +1 -1
- package/build/components/Readme/utils.mjs +26 -0
- package/build/components/Readme/utils.mjs.map +1 -0
- package/build/components/RegistryInfoDialog/RegistryInfoDialog.js +23 -18
- package/build/components/RegistryInfoDialog/RegistryInfoDialog.js.map +1 -1
- package/build/components/RegistryInfoDialog/RegistryInfoDialog.mjs +32 -0
- package/build/components/RegistryInfoDialog/RegistryInfoDialog.mjs.map +1 -0
- package/build/components/RegistryInfoDialog/index.js +1 -1
- package/build/components/RegistryInfoDialog/index.mjs +1 -0
- package/build/components/RegistryInfoDialog/styles.js +19 -13
- package/build/components/RegistryInfoDialog/styles.js.map +1 -1
- package/build/components/RegistryInfoDialog/styles.mjs +25 -0
- package/build/components/RegistryInfoDialog/styles.mjs.map +1 -0
- package/build/components/Repository/Repository.js +63 -46
- package/build/components/Repository/Repository.js.map +1 -1
- package/build/components/Repository/Repository.mjs +96 -0
- package/build/components/Repository/Repository.mjs.map +1 -0
- package/build/components/Repository/index.js +1 -1
- package/build/components/Repository/index.mjs +1 -0
- package/build/components/Search/AutoComplete/AutoComplete.js +42 -27
- package/build/components/Search/AutoComplete/AutoComplete.js.map +1 -1
- package/build/components/Search/AutoComplete/AutoComplete.mjs +47 -0
- package/build/components/Search/AutoComplete/AutoComplete.mjs.map +1 -0
- package/build/components/Search/AutoComplete/index.js +1 -1
- package/build/components/Search/AutoComplete/index.mjs +1 -0
- package/build/components/Search/AutoComplete/styles.js +7 -5
- package/build/components/Search/AutoComplete/styles.js.map +1 -1
- package/build/components/Search/AutoComplete/styles.mjs +20 -0
- package/build/components/Search/AutoComplete/styles.mjs.map +1 -0
- package/build/components/Search/Search.js +121 -78
- package/build/components/Search/Search.js.map +1 -1
- package/build/components/Search/Search.mjs +133 -0
- package/build/components/Search/Search.mjs.map +1 -0
- package/build/components/Search/SearchItem.js +62 -47
- package/build/components/Search/SearchItem.js.map +1 -1
- package/build/components/Search/SearchItem.mjs +115 -0
- package/build/components/Search/SearchItem.mjs.map +1 -0
- package/build/components/Search/index.js +1 -1
- package/build/components/Search/index.mjs +1 -0
- package/build/components/Search/styles.js +17 -12
- package/build/components/Search/styles.js.map +1 -1
- package/build/components/Search/styles.mjs +32 -0
- package/build/components/Search/styles.mjs.map +1 -0
- package/build/components/Search/utils.js +13 -10
- package/build/components/Search/utils.js.map +1 -1
- package/build/components/Search/utils.mjs +19 -0
- package/build/components/Search/utils.mjs.map +1 -0
- package/build/components/SettingsMenu/SettingsMenu.js +84 -61
- package/build/components/SettingsMenu/SettingsMenu.js.map +1 -1
- package/build/components/SettingsMenu/SettingsMenu.mjs +111 -0
- package/build/components/SettingsMenu/SettingsMenu.mjs.map +1 -0
- package/build/components/SettingsMenu/index.js +1 -1
- package/build/components/SettingsMenu/index.mjs +1 -0
- package/build/components/SideBarTitle/SideBarTitle.js +47 -34
- package/build/components/SideBarTitle/SideBarTitle.js.map +1 -1
- package/build/components/SideBarTitle/SideBarTitle.mjs +79 -0
- package/build/components/SideBarTitle/SideBarTitle.mjs.map +1 -0
- package/build/components/SideBarTitle/index.js +1 -1
- package/build/components/SideBarTitle/index.mjs +1 -0
- package/build/components/SideBarTitle/utils.js +10 -7
- package/build/components/SideBarTitle/utils.js.map +1 -1
- package/build/components/SideBarTitle/utils.mjs +13 -0
- package/build/components/SideBarTitle/utils.mjs.map +1 -0
- package/build/components/UpLinks/UpLinks.js +46 -38
- package/build/components/UpLinks/UpLinks.js.map +1 -1
- package/build/components/UpLinks/UpLinks.mjs +60 -0
- package/build/components/UpLinks/UpLinks.mjs.map +1 -0
- package/build/components/UpLinks/UplinkLink.js +15 -13
- package/build/components/UpLinks/UplinkLink.js.map +1 -1
- package/build/components/UpLinks/UplinkLink.mjs +19 -0
- package/build/components/UpLinks/UplinkLink.mjs.map +1 -0
- package/build/components/UpLinks/index.js +2 -2
- package/build/components/UpLinks/index.mjs +2 -0
- package/build/components/UpLinks/styles.js +20 -12
- package/build/components/UpLinks/styles.js.map +1 -1
- package/build/components/UpLinks/styles.mjs +31 -0
- package/build/components/UpLinks/styles.mjs.map +1 -0
- package/build/components/Versions/HistoryList.js +51 -41
- package/build/components/Versions/HistoryList.js.map +1 -1
- package/build/components/Versions/HistoryList.mjs +67 -0
- package/build/components/Versions/HistoryList.mjs.map +1 -0
- package/build/components/Versions/TagList.js +26 -20
- package/build/components/Versions/TagList.js.map +1 -1
- package/build/components/Versions/TagList.mjs +33 -0
- package/build/components/Versions/TagList.mjs.map +1 -0
- package/build/components/Versions/Versions.js +73 -48
- package/build/components/Versions/Versions.js.map +1 -1
- package/build/components/Versions/Versions.mjs +92 -0
- package/build/components/Versions/Versions.mjs.map +1 -0
- package/build/components/Versions/index.js +2 -2
- package/build/components/Versions/index.mjs +2 -0
- package/build/components/Versions/styles.js +15 -10
- package/build/components/Versions/styles.js.map +1 -1
- package/build/components/Versions/styles.mjs +26 -0
- package/build/components/Versions/styles.mjs.map +1 -0
- package/build/configuration.js +6 -6
- package/build/configuration.js.map +1 -1
- package/build/configuration.mjs +23 -0
- package/build/configuration.mjs.map +1 -0
- package/build/hooks/index.js +2 -2
- package/build/hooks/index.mjs +2 -0
- package/build/hooks/useLocalStorage.js +28 -14
- package/build/hooks/useLocalStorage.js.map +1 -1
- package/build/hooks/useLocalStorage.mjs +37 -0
- package/build/hooks/useLocalStorage.mjs.map +1 -0
- package/build/hooks/useOnClickOutside.js +20 -9
- package/build/hooks/useOnClickOutside.js.map +1 -1
- package/build/hooks/useOnClickOutside.mjs +26 -0
- package/build/hooks/useOnClickOutside.mjs.map +1 -0
- package/build/index.js +225 -118
- package/build/index.mjs +118 -0
- package/build/layouts/Security/Dialog.js +14 -8
- package/build/layouts/Security/Dialog.js.map +1 -1
- package/build/layouts/Security/Dialog.mjs +23 -0
- package/build/layouts/Security/Dialog.mjs.map +1 -0
- package/build/layouts/Version/Version.js +31 -26
- package/build/layouts/Version/Version.js.map +1 -1
- package/build/layouts/Version/Version.mjs +32 -0
- package/build/layouts/Version/Version.mjs.map +1 -0
- package/build/layouts/Version/index.js +1 -1
- package/build/layouts/Version/index.mjs +1 -0
- package/build/pages/Front/Home.js +4 -4
- package/build/pages/Front/Home.js.map +1 -1
- package/build/pages/Front/Home.mjs +8 -0
- package/build/pages/Front/Home.mjs.map +1 -0
- package/build/pages/Front/index.js +2 -2
- package/build/pages/Front/index.mjs +2 -0
- package/build/pages/Security/AddUser.js +4 -4
- package/build/pages/Security/AddUser.js.map +1 -1
- package/build/pages/Security/AddUser.mjs +8 -0
- package/build/pages/Security/AddUser.mjs.map +1 -0
- package/build/pages/Security/ChangePassword.js +4 -4
- package/build/pages/Security/ChangePassword.js.map +1 -1
- package/build/pages/Security/ChangePassword.mjs +8 -0
- package/build/pages/Security/ChangePassword.mjs.map +1 -0
- package/build/pages/Security/Login.js +4 -4
- package/build/pages/Security/Login.js.map +1 -1
- package/build/pages/Security/Login.mjs +8 -0
- package/build/pages/Security/Login.mjs.map +1 -0
- package/build/pages/Security/Success.js +4 -4
- package/build/pages/Security/Success.js.map +1 -1
- package/build/pages/Security/Success.mjs +8 -0
- package/build/pages/Security/Success.mjs.map +1 -0
- package/build/pages/Security/index.js +4 -4
- package/build/pages/Security/index.mjs +4 -0
- package/build/pages/Version/Version.js +19 -13
- package/build/pages/Version/Version.js.map +1 -1
- package/build/pages/Version/Version.mjs +22 -0
- package/build/pages/Version/Version.mjs.map +1 -0
- package/build/pages/Version/index.js +2 -2
- package/build/pages/Version/index.mjs +2 -0
- package/build/providers/AppConfigurationProvider/AppConfigurationProvider.js +44 -34
- package/build/providers/AppConfigurationProvider/AppConfigurationProvider.js.map +1 -1
- package/build/providers/AppConfigurationProvider/AppConfigurationProvider.mjs +62 -0
- package/build/providers/AppConfigurationProvider/AppConfigurationProvider.mjs.map +1 -0
- package/build/providers/AppConfigurationProvider/index.js +1 -1
- package/build/providers/AppConfigurationProvider/index.mjs +1 -0
- package/build/providers/AuthProvider/AuthProvider.js +41 -25
- package/build/providers/AuthProvider/AuthProvider.js.map +1 -1
- package/build/providers/AuthProvider/AuthProvider.mjs +51 -0
- package/build/providers/AuthProvider/AuthProvider.mjs.map +1 -0
- package/build/providers/AuthProvider/index.js +1 -1
- package/build/providers/AuthProvider/index.mjs +1 -0
- package/build/providers/AuthProvider/utils.js +13 -12
- package/build/providers/AuthProvider/utils.js.map +1 -1
- package/build/providers/AuthProvider/utils.mjs +22 -0
- package/build/providers/AuthProvider/utils.mjs.map +1 -0
- package/build/providers/DownloadProvider/DownloadProvider.js +27 -21
- package/build/providers/DownloadProvider/DownloadProvider.js.map +1 -1
- package/build/providers/DownloadProvider/DownloadProvider.mjs +34 -0
- package/build/providers/DownloadProvider/DownloadProvider.mjs.map +1 -0
- package/build/providers/DownloadProvider/index.js +1 -1
- package/build/providers/DownloadProvider/index.mjs +1 -0
- package/build/providers/ManifestsProvider/ManifestsProvider.js +21 -15
- package/build/providers/ManifestsProvider/ManifestsProvider.js.map +1 -1
- package/build/providers/ManifestsProvider/ManifestsProvider.mjs +25 -0
- package/build/providers/ManifestsProvider/ManifestsProvider.mjs.map +1 -0
- package/build/providers/ManifestsProvider/index.js +1 -1
- package/build/providers/ManifestsProvider/index.mjs +1 -0
- package/build/providers/PersistenceSettingProvider/PersistenceSettingProvider.js +28 -19
- package/build/providers/PersistenceSettingProvider/PersistenceSettingProvider.js.map +1 -1
- package/build/providers/PersistenceSettingProvider/PersistenceSettingProvider.mjs +30 -0
- package/build/providers/PersistenceSettingProvider/PersistenceSettingProvider.mjs.map +1 -0
- package/build/providers/PersistenceSettingProvider/index.js +1 -1
- package/build/providers/PersistenceSettingProvider/index.mjs +1 -0
- package/build/providers/SearchProvider/SearchProvider.js +47 -36
- package/build/providers/SearchProvider/SearchProvider.js.map +1 -1
- package/build/providers/SearchProvider/SearchProvider.mjs +53 -0
- package/build/providers/SearchProvider/SearchProvider.mjs.map +1 -0
- package/build/providers/SearchProvider/index.js +1 -1
- package/build/providers/SearchProvider/index.mjs +1 -0
- package/build/providers/TranslatorProvider/TranslatorProvider.js +37 -24
- package/build/providers/TranslatorProvider/TranslatorProvider.js.map +1 -1
- package/build/providers/TranslatorProvider/TranslatorProvider.mjs +45 -0
- package/build/providers/TranslatorProvider/TranslatorProvider.mjs.map +1 -0
- package/build/providers/TranslatorProvider/index.js +1 -1
- package/build/providers/TranslatorProvider/index.mjs +1 -0
- package/build/providers/VersionProvider/VersionProvider.js +49 -36
- package/build/providers/VersionProvider/VersionProvider.js.map +1 -1
- package/build/providers/VersionProvider/VersionProvider.mjs +55 -0
- package/build/providers/VersionProvider/VersionProvider.mjs.map +1 -0
- package/build/providers/VersionProvider/index.js +1 -1
- package/build/providers/VersionProvider/index.mjs +1 -0
- package/build/providers/index.js +16 -16
- package/build/providers/index.mjs +16 -0
- package/build/sections/Detail/ContainerContent.js +28 -18
- package/build/sections/Detail/ContainerContent.js.map +1 -1
- package/build/sections/Detail/ContainerContent.mjs +34 -0
- package/build/sections/Detail/ContainerContent.mjs.map +1 -0
- package/build/sections/Detail/Detail.js +38 -26
- package/build/sections/Detail/Detail.js.map +1 -1
- package/build/sections/Detail/Detail.mjs +50 -0
- package/build/sections/Detail/Detail.mjs.map +1 -0
- package/build/sections/Detail/ReadmeSection.js +11 -6
- package/build/sections/Detail/ReadmeSection.js.map +1 -1
- package/build/sections/Detail/ReadmeSection.mjs +13 -0
- package/build/sections/Detail/ReadmeSection.mjs.map +1 -0
- package/build/sections/Detail/Tabs.js +36 -27
- package/build/sections/Detail/Tabs.js.map +1 -1
- package/build/sections/Detail/Tabs.mjs +59 -0
- package/build/sections/Detail/Tabs.mjs.map +1 -0
- package/build/sections/Detail/index.js +1 -1
- package/build/sections/Detail/index.mjs +1 -0
- package/build/sections/Footer/Footer.js +56 -46
- package/build/sections/Footer/Footer.js.map +1 -1
- package/build/sections/Footer/Footer.mjs +105 -0
- package/build/sections/Footer/Footer.mjs.map +1 -0
- package/build/sections/Footer/index.js +1 -1
- package/build/sections/Footer/index.mjs +1 -0
- package/build/sections/Footer/styles.js +31 -21
- package/build/sections/Footer/styles.js.map +1 -1
- package/build/sections/Footer/styles.mjs +65 -0
- package/build/sections/Footer/styles.mjs.map +1 -0
- package/build/sections/Header/Header.js +76 -63
- package/build/sections/Header/Header.js.map +1 -1
- package/build/sections/Header/Header.mjs +101 -0
- package/build/sections/Header/Header.mjs.map +1 -0
- package/build/sections/Header/HeaderGreetings.js +13 -11
- package/build/sections/Header/HeaderGreetings.js.map +1 -1
- package/build/sections/Header/HeaderGreetings.mjs +19 -0
- package/build/sections/Header/HeaderGreetings.mjs.map +1 -0
- package/build/sections/Header/HeaderLeft.js +17 -14
- package/build/sections/Header/HeaderLeft.js.map +1 -1
- package/build/sections/Header/HeaderLeft.mjs +33 -0
- package/build/sections/Header/HeaderLeft.mjs.map +1 -0
- package/build/sections/Header/HeaderMenu.js +27 -22
- package/build/sections/Header/HeaderMenu.js.map +1 -1
- package/build/sections/Header/HeaderMenu.mjs +45 -0
- package/build/sections/Header/HeaderMenu.mjs.map +1 -0
- package/build/sections/Header/HeaderRight.js +68 -47
- package/build/sections/Header/HeaderRight.js.map +1 -1
- package/build/sections/Header/HeaderRight.mjs +95 -0
- package/build/sections/Header/HeaderRight.mjs.map +1 -0
- package/build/sections/Header/HeaderSettingsDialog.js +70 -59
- package/build/sections/Header/HeaderSettingsDialog.js.map +1 -1
- package/build/sections/Header/HeaderSettingsDialog.mjs +99 -0
- package/build/sections/Header/HeaderSettingsDialog.mjs.map +1 -0
- package/build/sections/Header/HeaderToolTip.js +9 -7
- package/build/sections/Header/HeaderToolTip.js.map +1 -1
- package/build/sections/Header/HeaderToolTip.mjs +12 -0
- package/build/sections/Header/HeaderToolTip.mjs.map +1 -0
- package/build/sections/Header/HeaderToolTipIcon.js +38 -31
- package/build/sections/Header/HeaderToolTipIcon.js.map +1 -1
- package/build/sections/Header/HeaderToolTipIcon.mjs +58 -0
- package/build/sections/Header/HeaderToolTipIcon.mjs.map +1 -0
- package/build/sections/Header/LanguageSwitch.js +75 -51
- package/build/sections/Header/LanguageSwitch.js.map +1 -1
- package/build/sections/Header/LanguageSwitch.mjs +99 -0
- package/build/sections/Header/LanguageSwitch.mjs.map +1 -0
- package/build/sections/Header/RegistryInfoContent/RegistryInfoContent.js +132 -101
- package/build/sections/Header/RegistryInfoContent/RegistryInfoContent.js.map +1 -1
- package/build/sections/Header/RegistryInfoContent/RegistryInfoContent.mjs +199 -0
- package/build/sections/Header/RegistryInfoContent/RegistryInfoContent.mjs.map +1 -0
- package/build/sections/Header/RegistryInfoContent/index.js +1 -1
- package/build/sections/Header/RegistryInfoContent/index.mjs +1 -0
- package/build/sections/Header/RegistryInfoContent/styles.js +10 -6
- package/build/sections/Header/RegistryInfoContent/styles.js.map +1 -1
- package/build/sections/Header/RegistryInfoContent/styles.mjs +20 -0
- package/build/sections/Header/RegistryInfoContent/styles.mjs.map +1 -0
- package/build/sections/Header/index.js +1 -1
- package/build/sections/Header/index.mjs +1 -0
- package/build/sections/Header/styles.js +60 -37
- package/build/sections/Header/styles.js.map +1 -1
- package/build/sections/Header/styles.mjs +126 -0
- package/build/sections/Header/styles.mjs.map +1 -0
- package/build/sections/Home/Home.js +14 -11
- package/build/sections/Home/Home.js.map +1 -1
- package/build/sections/Home/Home.mjs +20 -0
- package/build/sections/Home/Home.mjs.map +1 -0
- package/build/sections/Home/index.js +1 -1
- package/build/sections/Home/index.mjs +1 -0
- package/build/sections/Security/AddUser.js +84 -68
- package/build/sections/Security/AddUser.js.map +1 -1
- package/build/sections/Security/AddUser.mjs +132 -0
- package/build/sections/Security/AddUser.mjs.map +1 -0
- package/build/sections/Security/ChangePassword.js +83 -71
- package/build/sections/Security/ChangePassword.js.map +1 -1
- package/build/sections/Security/ChangePassword.mjs +123 -0
- package/build/sections/Security/ChangePassword.mjs.map +1 -0
- package/build/sections/Security/Login.js +70 -54
- package/build/sections/Security/Login.js.map +1 -1
- package/build/sections/Security/Login.mjs +94 -0
- package/build/sections/Security/Login.mjs.map +1 -0
- package/build/sections/Security/Success.js +39 -26
- package/build/sections/Security/Success.js.map +1 -1
- package/build/sections/Security/Success.mjs +51 -0
- package/build/sections/Security/Success.mjs.map +1 -0
- package/build/sections/Security/index.js +4 -4
- package/build/sections/Security/index.mjs +4 -0
- package/build/sections/Security/styles.js +19 -14
- package/build/sections/Security/styles.js.map +1 -1
- package/build/sections/Security/styles.mjs +29 -0
- package/build/sections/Security/styles.mjs.map +1 -0
- package/build/sections/Security/utils.js +14 -11
- package/build/sections/Security/utils.js.map +1 -1
- package/build/sections/Security/utils.mjs +19 -0
- package/build/sections/Security/utils.mjs.map +1 -0
- package/build/sections/SideBar/Sidebar.js +73 -64
- package/build/sections/SideBar/Sidebar.js.map +1 -1
- package/build/sections/SideBar/Sidebar.mjs +93 -0
- package/build/sections/SideBar/Sidebar.mjs.map +1 -0
- package/build/sections/SideBar/index.js +1 -1
- package/build/sections/SideBar/index.mjs +1 -0
- package/build/sections/index.js +4 -4
- package/build/sections/index.mjs +4 -0
- package/build/store/api.js +57 -41
- package/build/store/api.js.map +1 -1
- package/build/store/api.mjs +76 -0
- package/build/store/api.mjs.map +1 -0
- package/build/store/index.js +1 -1
- package/build/store/index.mjs +1 -0
- package/build/store/routes.js +13 -3
- package/build/store/routes.js.map +1 -1
- package/build/store/routes.mjs +18 -0
- package/build/store/routes.mjs.map +1 -0
- package/build/store/storage.js +22 -13
- package/build/store/storage.js.map +1 -1
- package/build/store/storage.mjs +29 -0
- package/build/store/storage.mjs.map +1 -0
- package/build/store/utils.js +5 -4
- package/build/store/utils.js.map +1 -1
- package/build/store/utils.mjs +9 -0
- package/build/store/utils.mjs.map +1 -0
- package/build/ui-components.css +1198 -1
- package/build/utils/cli-utils.js +19 -16
- package/build/utils/cli-utils.js.map +1 -1
- package/build/utils/cli-utils.mjs +26 -0
- package/build/utils/cli-utils.mjs.map +1 -0
- package/build/utils/index.js +6 -6
- package/build/utils/index.mjs +6 -0
- package/build/utils/loadable.js +18 -7
- package/build/utils/loadable.js.map +1 -1
- package/build/utils/loadable.mjs +23 -0
- package/build/utils/loadable.mjs.map +1 -0
- package/build/utils/routes.js +26 -5
- package/build/utils/routes.js.map +1 -1
- package/build/utils/routes.mjs +30 -0
- package/build/utils/routes.mjs.map +1 -0
- package/build/utils/schemas.js +22 -14
- package/build/utils/schemas.js.map +1 -1
- package/build/utils/schemas.mjs +22 -0
- package/build/utils/schemas.mjs.map +1 -0
- package/build/utils/token.js +19 -15
- package/build/utils/token.js.map +1 -1
- package/build/utils/token.mjs +23 -0
- package/build/utils/token.mjs.map +1 -0
- package/build/utils/url.js +50 -30
- package/build/utils/url.js.map +1 -1
- package/build/utils/url.mjs +61 -0
- package/build/utils/url.mjs.map +1 -0
- package/build/utils/utils.js +93 -49
- package/build/utils/utils.js.map +1 -1
- package/build/utils/utils.mjs +93 -0
- package/build/utils/utils.mjs.map +1 -0
- package/package.json +15 -7
package/build/Theme/tokens.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/Theme/tokens.ts
|
|
2
|
-
var
|
|
2
|
+
var fontSize = {
|
|
3
3
|
xxl: 26,
|
|
4
4
|
xl: 24,
|
|
5
5
|
lg: 21,
|
|
@@ -7,24 +7,30 @@ var e = {
|
|
|
7
7
|
default: 16,
|
|
8
8
|
sm: 14,
|
|
9
9
|
ssm: 12
|
|
10
|
-
}
|
|
10
|
+
};
|
|
11
|
+
var fontWeight = {
|
|
11
12
|
light: 300,
|
|
12
13
|
regular: 400,
|
|
13
14
|
semiBold: 500,
|
|
14
15
|
bold: 700
|
|
15
|
-
}
|
|
16
|
+
};
|
|
17
|
+
var breakPoints = {
|
|
16
18
|
xsmall: 400,
|
|
17
19
|
small: 576,
|
|
18
20
|
medium: 768,
|
|
19
21
|
large: 1024,
|
|
20
22
|
container: 1240,
|
|
21
23
|
xlarge: 1275
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
};
|
|
25
|
+
var customizedTheme = {
|
|
26
|
+
fontSize,
|
|
27
|
+
fontWeight,
|
|
28
|
+
breakPoints
|
|
26
29
|
};
|
|
27
30
|
//#endregion
|
|
28
|
-
|
|
31
|
+
exports.breakPoints = breakPoints;
|
|
32
|
+
exports.customizedTheme = customizedTheme;
|
|
33
|
+
exports.fontSize = fontSize;
|
|
34
|
+
exports.fontWeight = fontWeight;
|
|
29
35
|
|
|
30
36
|
//# sourceMappingURL=tokens.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.js","names":["fontSize","xxl","xl","lg","md","default","sm","ssm","const","FontSize","fontWeight","light","regular","semiBold","bold","FontWeight","breakPoints","xsmall","small","medium","large","container","xlarge","BreakPoints","CustomTheme","customizedTheme","CustomizedTheme"],"sources":["../../src/Theme/tokens.ts"],"sourcesContent":["export const fontSize = {\n xxl: 26,\n xl: 24,\n lg: 21,\n md: 18,\n default: 16,\n sm: 14,\n ssm: 12,\n} as const;\n\nexport type FontSize = keyof typeof fontSize;\n\nexport const fontWeight = {\n light: 300,\n regular: 400,\n semiBold: 500,\n bold: 700,\n} as const;\n\nexport type FontWeight = keyof typeof fontWeight;\n\nexport const breakPoints = {\n xsmall: 400,\n small: 576,\n medium: 768,\n large: 1024,\n container: 1240,\n xlarge: 1275,\n} as const;\n\nexport type BreakPoints = typeof breakPoints;\n\nexport interface CustomTheme {\n fontSize: typeof fontSize;\n fontWeight: typeof fontWeight;\n breakPoints: typeof breakPoints;\n}\n\nexport const customizedTheme = {\n fontSize,\n fontWeight,\n breakPoints,\n};\n\nexport type CustomizedTheme = typeof customizedTheme;\n"],"mappings":";AAAA,IAAaA,
|
|
1
|
+
{"version":3,"file":"tokens.js","names":["fontSize","xxl","xl","lg","md","default","sm","ssm","const","FontSize","fontWeight","light","regular","semiBold","bold","FontWeight","breakPoints","xsmall","small","medium","large","container","xlarge","BreakPoints","CustomTheme","customizedTheme","CustomizedTheme"],"sources":["../../src/Theme/tokens.ts"],"sourcesContent":["export const fontSize = {\n xxl: 26,\n xl: 24,\n lg: 21,\n md: 18,\n default: 16,\n sm: 14,\n ssm: 12,\n} as const;\n\nexport type FontSize = keyof typeof fontSize;\n\nexport const fontWeight = {\n light: 300,\n regular: 400,\n semiBold: 500,\n bold: 700,\n} as const;\n\nexport type FontWeight = keyof typeof fontWeight;\n\nexport const breakPoints = {\n xsmall: 400,\n small: 576,\n medium: 768,\n large: 1024,\n container: 1240,\n xlarge: 1275,\n} as const;\n\nexport type BreakPoints = typeof breakPoints;\n\nexport interface CustomTheme {\n fontSize: typeof fontSize;\n fontWeight: typeof fontWeight;\n breakPoints: typeof breakPoints;\n}\n\nexport const customizedTheme = {\n fontSize,\n fontWeight,\n breakPoints,\n};\n\nexport type CustomizedTheme = typeof customizedTheme;\n"],"mappings":";AAAA,IAAaA,WAAW;CACtBC,KAAK;CACLC,IAAI;CACJC,IAAI;CACJC,IAAI;CACJC,SAAS;CACTC,IAAI;CACJC,KAAK;CACN;AAID,IAAaG,aAAa;CACxBC,OAAO;CACPC,SAAS;CACTC,UAAU;CACVC,MAAM;CACP;AAID,IAAaE,cAAc;CACzBC,QAAQ;CACRC,OAAO;CACPC,QAAQ;CACRC,OAAO;CACPC,WAAW;CACXC,QAAQ;CACT;AAUD,IAAaG,kBAAkB;CAC7BzB;CACAU;CACAM;CACD"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
//#region src/Theme/tokens.ts
|
|
2
|
+
var fontSize = {
|
|
3
|
+
xxl: 26,
|
|
4
|
+
xl: 24,
|
|
5
|
+
lg: 21,
|
|
6
|
+
md: 18,
|
|
7
|
+
default: 16,
|
|
8
|
+
sm: 14,
|
|
9
|
+
ssm: 12
|
|
10
|
+
};
|
|
11
|
+
var fontWeight = {
|
|
12
|
+
light: 300,
|
|
13
|
+
regular: 400,
|
|
14
|
+
semiBold: 500,
|
|
15
|
+
bold: 700
|
|
16
|
+
};
|
|
17
|
+
var breakPoints = {
|
|
18
|
+
xsmall: 400,
|
|
19
|
+
small: 576,
|
|
20
|
+
medium: 768,
|
|
21
|
+
large: 1024,
|
|
22
|
+
container: 1240,
|
|
23
|
+
xlarge: 1275
|
|
24
|
+
};
|
|
25
|
+
var customizedTheme = {
|
|
26
|
+
fontSize,
|
|
27
|
+
fontWeight,
|
|
28
|
+
breakPoints
|
|
29
|
+
};
|
|
30
|
+
//#endregion
|
|
31
|
+
export { breakPoints, customizedTheme, fontSize, fontWeight };
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=tokens.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokens.mjs","names":["fontSize","xxl","xl","lg","md","default","sm","ssm","const","FontSize","fontWeight","light","regular","semiBold","bold","FontWeight","breakPoints","xsmall","small","medium","large","container","xlarge","BreakPoints","CustomTheme","customizedTheme","CustomizedTheme"],"sources":["../../src/Theme/tokens.ts"],"sourcesContent":["export const fontSize = {\n xxl: 26,\n xl: 24,\n lg: 21,\n md: 18,\n default: 16,\n sm: 14,\n ssm: 12,\n} as const;\n\nexport type FontSize = keyof typeof fontSize;\n\nexport const fontWeight = {\n light: 300,\n regular: 400,\n semiBold: 500,\n bold: 700,\n} as const;\n\nexport type FontWeight = keyof typeof fontWeight;\n\nexport const breakPoints = {\n xsmall: 400,\n small: 576,\n medium: 768,\n large: 1024,\n container: 1240,\n xlarge: 1275,\n} as const;\n\nexport type BreakPoints = typeof breakPoints;\n\nexport interface CustomTheme {\n fontSize: typeof fontSize;\n fontWeight: typeof fontWeight;\n breakPoints: typeof breakPoints;\n}\n\nexport const customizedTheme = {\n fontSize,\n fontWeight,\n breakPoints,\n};\n\nexport type CustomizedTheme = typeof customizedTheme;\n"],"mappings":";AAAA,IAAaA,WAAW;CACtBC,KAAK;CACLC,IAAI;CACJC,IAAI;CACJC,IAAI;CACJC,SAAS;CACTC,IAAI;CACJC,KAAK;CACN;AAID,IAAaG,aAAa;CACxBC,OAAO;CACPC,SAAS;CACTC,UAAU;CACVC,MAAM;CACP;AAID,IAAaE,cAAc;CACzBC,QAAQ;CACRC,OAAO;CACPC,QAAQ;CACRC,OAAO;CACPC,WAAW;CACXC,QAAQ;CACT;AAUD,IAAaG,kBAAkB;CAC7BzB;CACAU;CACAM;CACD"}
|
|
@@ -1,11 +1,33 @@
|
|
|
1
1
|
//#region \0rolldown/runtime.js
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __exportAll = (all, no_symbols) => {
|
|
9
|
+
let target = {};
|
|
10
|
+
for (var name in all) __defProp(target, name, {
|
|
11
|
+
get: all[name],
|
|
12
|
+
enumerable: true
|
|
7
13
|
});
|
|
8
|
-
|
|
14
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
15
|
+
return target;
|
|
9
16
|
};
|
|
17
|
+
var __copyProps = (to, from, except, desc) => {
|
|
18
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
19
|
+
key = keys[i];
|
|
20
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
21
|
+
get: ((k) => from[k]).bind(null, key),
|
|
22
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
return to;
|
|
26
|
+
};
|
|
27
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
28
|
+
value: mod,
|
|
29
|
+
enumerable: true
|
|
30
|
+
}) : target, mod));
|
|
10
31
|
//#endregion
|
|
11
|
-
|
|
32
|
+
exports.__exportAll = __exportAll;
|
|
33
|
+
exports.__toESM = __toESM;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __exportAll = (all, no_symbols) => {
|
|
4
|
+
let target = {};
|
|
5
|
+
for (var name in all) __defProp(target, name, {
|
|
6
|
+
get: all[name],
|
|
7
|
+
enumerable: true
|
|
8
|
+
});
|
|
9
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
10
|
+
return target;
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { __exportAll };
|
|
@@ -1,42 +1,49 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.js");
|
|
2
|
+
const require_api = require("../store/api.js");
|
|
3
|
+
const require_utils = require("../store/utils.js");
|
|
4
|
+
let swr_mutation = require("swr/mutation");
|
|
5
|
+
swr_mutation = require_runtime.__toESM(swr_mutation);
|
|
4
6
|
//#region src/api/use-data-mutation.ts
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
var fetcher = async (url, method, body, options) => {
|
|
8
|
+
const isGet = method.toUpperCase() === "GET";
|
|
9
|
+
const finalUrl = url;
|
|
10
|
+
return require_api.default.request(finalUrl, method, {
|
|
11
|
+
body: isGet ? void 0 : JSON.stringify(body),
|
|
9
12
|
headers: {
|
|
10
|
-
Accept:
|
|
11
|
-
...
|
|
13
|
+
Accept: require_utils.HEADERS.JSON,
|
|
14
|
+
...isGet ? {} : { "Content-Type": require_utils.HEADERS.JSON }
|
|
12
15
|
},
|
|
13
|
-
signal:
|
|
16
|
+
signal: options?.signal
|
|
14
17
|
});
|
|
15
18
|
};
|
|
16
|
-
function
|
|
17
|
-
|
|
19
|
+
function useDataMutation(basePath, route, method = "POST", options = {}) {
|
|
20
|
+
const { data, error, isMutating, trigger } = (0, swr_mutation.default)(options.buildUrl ? options.buildUrl(basePath, route) : `${basePath}${route}`, (url, { arg }) => {
|
|
21
|
+
return fetcher(url, method, arg ?? {});
|
|
22
|
+
});
|
|
18
23
|
return {
|
|
19
|
-
data
|
|
20
|
-
error
|
|
21
|
-
isMutating
|
|
22
|
-
trigger
|
|
24
|
+
data,
|
|
25
|
+
error,
|
|
26
|
+
isMutating,
|
|
27
|
+
trigger
|
|
23
28
|
};
|
|
24
29
|
}
|
|
25
|
-
async function
|
|
26
|
-
return
|
|
30
|
+
async function tarballFetcher(url, { arg }) {
|
|
31
|
+
return require_api.default.request(arg.link, "GET", {
|
|
27
32
|
headers: { accept: "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3" },
|
|
28
33
|
credentials: "include"
|
|
29
34
|
});
|
|
30
35
|
}
|
|
31
|
-
function
|
|
32
|
-
|
|
36
|
+
function useTarballDownload() {
|
|
37
|
+
const { trigger, isMutating, error } = (0, swr_mutation.default)("tarball-download", tarballFetcher);
|
|
33
38
|
return {
|
|
34
|
-
download:
|
|
35
|
-
isDownloading:
|
|
36
|
-
error
|
|
39
|
+
download: trigger,
|
|
40
|
+
isDownloading: isMutating,
|
|
41
|
+
error
|
|
37
42
|
};
|
|
38
43
|
}
|
|
39
44
|
//#endregion
|
|
40
|
-
|
|
45
|
+
exports.fetcher = fetcher;
|
|
46
|
+
exports.useDataMutation = useDataMutation;
|
|
47
|
+
exports.useTarballDownload = useTarballDownload;
|
|
41
48
|
|
|
42
49
|
//# sourceMappingURL=use-data-mutation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-data-mutation.js","names":["useSWRMutation","API","APIRoute","HEADERS","fetcher","url","method","body","options","signal","AbortSignal","Promise","T","isGet","toUpperCase","finalUrl","request","undefined","JSON","stringify","headers","Accept","useDataMutation","basePath","route","buildUrl","key","data","error","isMutating","trigger","arg","tarballFetcher","link","Blob","accept","credentials","useTarballDownload","download","isDownloading"],"sources":["../../src/api/use-data-mutation.ts"],"sourcesContent":["import useSWRMutation from 'swr/mutation';\n\nimport API from '../store/api';\nimport type { APIRoute } from '../store/routes';\nimport { HEADERS } from '../store/utils';\n\nexport const fetcher = async <T>(\n url: string,\n method: string,\n body: any,\n options?: { signal?: AbortSignal }\n): Promise<T> => {\n const isGet = method.toUpperCase() === 'GET';\n const finalUrl = url;\n\n return API.request<T>(finalUrl, method, {\n // Only stringify and send body if it's NOT a GET request\n body: isGet ? undefined : JSON.stringify(body),\n headers: {\n Accept: HEADERS.JSON,\n ...(isGet ? {} : { 'Content-Type': HEADERS.JSON }),\n },\n signal: options?.signal,\n });\n};\n\nexport function useDataMutation<T>(\n basePath: string,\n route: APIRoute | string,\n method = 'POST',\n options: { buildUrl?: (basePath: string, route: string) => string } = {}\n) {\n const key = options.buildUrl ? options.buildUrl(basePath, route) : `${basePath}${route}`;\n\n const { data, error, isMutating, trigger } = useSWRMutation<T, any, string, any>(\n key,\n (url, { arg }) => {\n return fetcher<T>(url, method, arg ?? {});\n }\n );\n\n return { data, error, isMutating, trigger };\n}\n\nasync function tarballFetcher(url: string, { arg }: { arg: { link: string } }): Promise<Blob> {\n return API.request<Blob>(arg.link, 'GET', {\n headers: {\n accept:\n 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3',\n },\n credentials: 'include',\n });\n}\n\nexport function useTarballDownload() {\n const { trigger, isMutating, error } = useSWRMutation<Blob, any, string, { link: string }>(\n 'tarball-download',\n tarballFetcher\n );\n\n return {\n download: trigger,\n isDownloading: isMutating,\n error,\n };\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-data-mutation.js","names":["useSWRMutation","API","APIRoute","HEADERS","fetcher","url","method","body","options","signal","AbortSignal","Promise","T","isGet","toUpperCase","finalUrl","request","undefined","JSON","stringify","headers","Accept","useDataMutation","basePath","route","buildUrl","key","data","error","isMutating","trigger","arg","tarballFetcher","link","Blob","accept","credentials","useTarballDownload","download","isDownloading"],"sources":["../../src/api/use-data-mutation.ts"],"sourcesContent":["import useSWRMutation from 'swr/mutation';\n\nimport API from '../store/api';\nimport type { APIRoute } from '../store/routes';\nimport { HEADERS } from '../store/utils';\n\nexport const fetcher = async <T>(\n url: string,\n method: string,\n body: any,\n options?: { signal?: AbortSignal }\n): Promise<T> => {\n const isGet = method.toUpperCase() === 'GET';\n const finalUrl = url;\n\n return API.request<T>(finalUrl, method, {\n // Only stringify and send body if it's NOT a GET request\n body: isGet ? undefined : JSON.stringify(body),\n headers: {\n Accept: HEADERS.JSON,\n ...(isGet ? {} : { 'Content-Type': HEADERS.JSON }),\n },\n signal: options?.signal,\n });\n};\n\nexport function useDataMutation<T>(\n basePath: string,\n route: APIRoute | string,\n method = 'POST',\n options: { buildUrl?: (basePath: string, route: string) => string } = {}\n) {\n const key = options.buildUrl ? options.buildUrl(basePath, route) : `${basePath}${route}`;\n\n const { data, error, isMutating, trigger } = useSWRMutation<T, any, string, any>(\n key,\n (url, { arg }) => {\n return fetcher<T>(url, method, arg ?? {});\n }\n );\n\n return { data, error, isMutating, trigger };\n}\n\nasync function tarballFetcher(url: string, { arg }: { arg: { link: string } }): Promise<Blob> {\n return API.request<Blob>(arg.link, 'GET', {\n headers: {\n accept:\n 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3',\n },\n credentials: 'include',\n });\n}\n\nexport function useTarballDownload() {\n const { trigger, isMutating, error } = useSWRMutation<Blob, any, string, { link: string }>(\n 'tarball-download',\n tarballFetcher\n );\n\n return {\n download: trigger,\n isDownloading: isMutating,\n error,\n };\n}\n"],"mappings":";;;;;;AAMA,IAAaI,UAAU,OACrBC,KACAC,QACAC,MACAC,YACe;CACf,MAAMK,QAAQP,OAAOQ,aAAa,KAAK;CACvC,MAAMC,WAAWV;AAEjB,QAAOJ,YAAAA,QAAIe,QAAWD,UAAUT,QAAQ;EAEtCC,MAAMM,QAAQI,KAAAA,IAAYC,KAAKC,UAAUZ,KAAK;EAC9Ca,SAAS;GACPC,QAAQlB,cAAAA,QAAQe;GAChB,GAAIL,QAAQ,EAAE,GAAG,EAAE,gBAAgBV,cAAAA,QAAQe,MAAM;GAClD;EACDT,QAAQD,SAASC;EAClB,CAAC;;AAGJ,SAAgBa,gBACdC,UACAC,OACAlB,SAAS,QACTE,UAAsE,EAAE,EACxE;CAGA,MAAM,EAAEmB,MAAMC,OAAOC,YAAYC,aAAAA,GAAAA,aAAAA,SAFrBtB,QAAQiB,WAAWjB,QAAQiB,SAASF,UAAUC,MAAM,GAAG,GAAGD,WAAWC,UAI9EnB,KAAK,EAAE0B,UAAU;AAChB,SAAO3B,QAAWC,KAAKC,QAAQyB,OAAO,EAAE,CAAC;GAE5C;AAED,QAAO;EAAEJ;EAAMC;EAAOC;EAAYC;EAAS;;AAG7C,eAAeE,eAAe3B,KAAa,EAAE0B,OAAiD;AAC5F,QAAO9B,YAAAA,QAAIe,QAAce,IAAIE,MAAM,OAAO;EACxCb,SAAS,EACPe,QACE,0HACH;EACDC,aAAa;EACd,CAAC;;AAGJ,SAAgBC,qBAAqB;CACnC,MAAM,EAAEP,SAASD,YAAYD,WAAAA,GAAAA,aAAAA,SAC3B,oBACAI,eACD;AAED,QAAO;EACLM,UAAUR;EACVS,eAAeV;EACfD;EACD"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import api_default from "../store/api.mjs";
|
|
2
|
+
import { HEADERS } from "../store/utils.mjs";
|
|
3
|
+
import useSWRMutation from "swr/mutation";
|
|
4
|
+
//#region src/api/use-data-mutation.ts
|
|
5
|
+
var fetcher = async (url, method, body, options) => {
|
|
6
|
+
const isGet = method.toUpperCase() === "GET";
|
|
7
|
+
const finalUrl = url;
|
|
8
|
+
return api_default.request(finalUrl, method, {
|
|
9
|
+
body: isGet ? void 0 : JSON.stringify(body),
|
|
10
|
+
headers: {
|
|
11
|
+
Accept: HEADERS.JSON,
|
|
12
|
+
...isGet ? {} : { "Content-Type": HEADERS.JSON }
|
|
13
|
+
},
|
|
14
|
+
signal: options?.signal
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
function useDataMutation(basePath, route, method = "POST", options = {}) {
|
|
18
|
+
const { data, error, isMutating, trigger } = useSWRMutation(options.buildUrl ? options.buildUrl(basePath, route) : `${basePath}${route}`, (url, { arg }) => {
|
|
19
|
+
return fetcher(url, method, arg ?? {});
|
|
20
|
+
});
|
|
21
|
+
return {
|
|
22
|
+
data,
|
|
23
|
+
error,
|
|
24
|
+
isMutating,
|
|
25
|
+
trigger
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
async function tarballFetcher(url, { arg }) {
|
|
29
|
+
return api_default.request(arg.link, "GET", {
|
|
30
|
+
headers: { accept: "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3" },
|
|
31
|
+
credentials: "include"
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function useTarballDownload() {
|
|
35
|
+
const { trigger, isMutating, error } = useSWRMutation("tarball-download", tarballFetcher);
|
|
36
|
+
return {
|
|
37
|
+
download: trigger,
|
|
38
|
+
isDownloading: isMutating,
|
|
39
|
+
error
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
//#endregion
|
|
43
|
+
export { fetcher, useDataMutation, useTarballDownload };
|
|
44
|
+
|
|
45
|
+
//# sourceMappingURL=use-data-mutation.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-data-mutation.mjs","names":["useSWRMutation","API","APIRoute","HEADERS","fetcher","url","method","body","options","signal","AbortSignal","Promise","T","isGet","toUpperCase","finalUrl","request","undefined","JSON","stringify","headers","Accept","useDataMutation","basePath","route","buildUrl","key","data","error","isMutating","trigger","arg","tarballFetcher","link","Blob","accept","credentials","useTarballDownload","download","isDownloading"],"sources":["../../src/api/use-data-mutation.ts"],"sourcesContent":["import useSWRMutation from 'swr/mutation';\n\nimport API from '../store/api';\nimport type { APIRoute } from '../store/routes';\nimport { HEADERS } from '../store/utils';\n\nexport const fetcher = async <T>(\n url: string,\n method: string,\n body: any,\n options?: { signal?: AbortSignal }\n): Promise<T> => {\n const isGet = method.toUpperCase() === 'GET';\n const finalUrl = url;\n\n return API.request<T>(finalUrl, method, {\n // Only stringify and send body if it's NOT a GET request\n body: isGet ? undefined : JSON.stringify(body),\n headers: {\n Accept: HEADERS.JSON,\n ...(isGet ? {} : { 'Content-Type': HEADERS.JSON }),\n },\n signal: options?.signal,\n });\n};\n\nexport function useDataMutation<T>(\n basePath: string,\n route: APIRoute | string,\n method = 'POST',\n options: { buildUrl?: (basePath: string, route: string) => string } = {}\n) {\n const key = options.buildUrl ? options.buildUrl(basePath, route) : `${basePath}${route}`;\n\n const { data, error, isMutating, trigger } = useSWRMutation<T, any, string, any>(\n key,\n (url, { arg }) => {\n return fetcher<T>(url, method, arg ?? {});\n }\n );\n\n return { data, error, isMutating, trigger };\n}\n\nasync function tarballFetcher(url: string, { arg }: { arg: { link: string } }): Promise<Blob> {\n return API.request<Blob>(arg.link, 'GET', {\n headers: {\n accept:\n 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3',\n },\n credentials: 'include',\n });\n}\n\nexport function useTarballDownload() {\n const { trigger, isMutating, error } = useSWRMutation<Blob, any, string, { link: string }>(\n 'tarball-download',\n tarballFetcher\n );\n\n return {\n download: trigger,\n isDownloading: isMutating,\n error,\n };\n}\n"],"mappings":";;;;AAMA,IAAaI,UAAU,OACrBC,KACAC,QACAC,MACAC,YACe;CACf,MAAMK,QAAQP,OAAOQ,aAAa,KAAK;CACvC,MAAMC,WAAWV;AAEjB,QAAOJ,YAAIe,QAAWD,UAAUT,QAAQ;EAEtCC,MAAMM,QAAQI,KAAAA,IAAYC,KAAKC,UAAUZ,KAAK;EAC9Ca,SAAS;GACPC,QAAQlB,QAAQe;GAChB,GAAIL,QAAQ,EAAE,GAAG,EAAE,gBAAgBV,QAAQe,MAAM;GAClD;EACDT,QAAQD,SAASC;EAClB,CAAC;;AAGJ,SAAgBa,gBACdC,UACAC,OACAlB,SAAS,QACTE,UAAsE,EAAE,EACxE;CAGA,MAAM,EAAEmB,MAAMC,OAAOC,YAAYC,YAAY9B,eAFjCQ,QAAQiB,WAAWjB,QAAQiB,SAASF,UAAUC,MAAM,GAAG,GAAGD,WAAWC,UAI9EnB,KAAK,EAAE0B,UAAU;AAChB,SAAO3B,QAAWC,KAAKC,QAAQyB,OAAO,EAAE,CAAC;GAE5C;AAED,QAAO;EAAEJ;EAAMC;EAAOC;EAAYC;EAAS;;AAG7C,eAAeE,eAAe3B,KAAa,EAAE0B,OAAiD;AAC5F,QAAO9B,YAAIe,QAAce,IAAIE,MAAM,OAAO;EACxCb,SAAS,EACPe,QACE,0HACH;EACDC,aAAa;EACd,CAAC;;AAGJ,SAAgBC,qBAAqB;CACnC,MAAM,EAAEP,SAASD,YAAYD,UAAU5B,eACrC,oBACAgC,eACD;AAED,QAAO;EACLM,UAAUR;EACVS,eAAeV;EACfD;EACD"}
|
package/build/api/use-data.js
CHANGED
|
@@ -1,20 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.js");
|
|
2
|
+
const require_api = require("../store/api.js");
|
|
3
|
+
let swr = require("swr");
|
|
4
|
+
swr = require_runtime.__toESM(swr);
|
|
3
5
|
//#region src/api/use-data.ts
|
|
4
|
-
function
|
|
5
|
-
let
|
|
6
|
-
|
|
6
|
+
function buildUrl(basePath, route, packageName, packageVersion) {
|
|
7
|
+
let url = `${basePath}${route}`;
|
|
8
|
+
if (packageName) url += packageName;
|
|
9
|
+
if (packageVersion) url += `?v=${packageVersion}`;
|
|
10
|
+
return url;
|
|
7
11
|
}
|
|
8
|
-
function
|
|
9
|
-
|
|
12
|
+
function useData(basePath, route, packageName, packageVersion) {
|
|
13
|
+
const url = buildUrl(basePath, route, packageName, packageVersion);
|
|
14
|
+
const { data, error, isLoading, mutate } = (0, swr.default)(url, () => require_api.default.request(url));
|
|
10
15
|
return {
|
|
11
|
-
data
|
|
12
|
-
error
|
|
13
|
-
isLoading
|
|
14
|
-
mutate
|
|
16
|
+
data,
|
|
17
|
+
error,
|
|
18
|
+
isLoading,
|
|
19
|
+
mutate
|
|
15
20
|
};
|
|
16
21
|
}
|
|
17
22
|
//#endregion
|
|
18
|
-
|
|
23
|
+
exports.useData = useData;
|
|
19
24
|
|
|
20
25
|
//# sourceMappingURL=use-data.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-data.js","names":["SWRResponse","useSWR","API","APIRoute","buildUrl","basePath","route","packageName","packageVersion","url","useData","Pick","T","data","error","isLoading","mutate","request"],"sources":["../../src/api/use-data.ts"],"sourcesContent":["import type { SWRResponse } from 'swr';\nimport useSWR from 'swr';\n\nimport API from '../store/api';\nimport type { APIRoute } from '../store/routes';\n\nfunction buildUrl(\n basePath: string,\n route: APIRoute,\n packageName?: string,\n packageVersion?: string\n): string {\n let url = `${basePath}${route}`;\n if (packageName) {\n url += packageName;\n }\n if (packageVersion) {\n url += `?v=${packageVersion}`;\n }\n return url;\n}\n\nexport function useData<T>(\n basePath: string,\n route: APIRoute,\n packageName?: string,\n packageVersion?: string\n): Pick<SWRResponse<T>, 'data' | 'error' | 'isLoading' | 'mutate'> {\n const url = buildUrl(basePath, route, packageName, packageVersion);\n\n const { data, error, isLoading, mutate } = useSWR<T>(url, () => API.request<T>(url));\n\n return { data, error, isLoading, mutate };\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-data.js","names":["SWRResponse","useSWR","API","APIRoute","buildUrl","basePath","route","packageName","packageVersion","url","useData","Pick","T","data","error","isLoading","mutate","request"],"sources":["../../src/api/use-data.ts"],"sourcesContent":["import type { SWRResponse } from 'swr';\nimport useSWR from 'swr';\n\nimport API from '../store/api';\nimport type { APIRoute } from '../store/routes';\n\nfunction buildUrl(\n basePath: string,\n route: APIRoute,\n packageName?: string,\n packageVersion?: string\n): string {\n let url = `${basePath}${route}`;\n if (packageName) {\n url += packageName;\n }\n if (packageVersion) {\n url += `?v=${packageVersion}`;\n }\n return url;\n}\n\nexport function useData<T>(\n basePath: string,\n route: APIRoute,\n packageName?: string,\n packageVersion?: string\n): Pick<SWRResponse<T>, 'data' | 'error' | 'isLoading' | 'mutate'> {\n const url = buildUrl(basePath, route, packageName, packageVersion);\n\n const { data, error, isLoading, mutate } = useSWR<T>(url, () => API.request<T>(url));\n\n return { data, error, isLoading, mutate };\n}\n"],"mappings":";;;;;AAMA,SAASI,SACPC,UACAC,OACAC,aACAC,gBACQ;CACR,IAAIC,MAAM,GAAGJ,WAAWC;AACxB,KAAIC,YACFE,QAAOF;AAET,KAAIC,eACFC,QAAO,MAAMD;AAEf,QAAOC;;AAGT,SAAgBC,QACdL,UACAC,OACAC,aACAC,gBACiE;CACjE,MAAMC,MAAML,SAASC,UAAUC,OAAOC,aAAaC,eAAe;CAElE,MAAM,EAAEK,MAAMC,OAAOC,WAAWC,YAAAA,GAAAA,IAAAA,SAAqBP,WAAWP,YAAAA,QAAIe,QAAWR,IAAI,CAAC;AAEpF,QAAO;EAAEI;EAAMC;EAAOC;EAAWC;EAAQ"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import api_default from "../store/api.mjs";
|
|
2
|
+
import useSWR from "swr";
|
|
3
|
+
//#region src/api/use-data.ts
|
|
4
|
+
function buildUrl(basePath, route, packageName, packageVersion) {
|
|
5
|
+
let url = `${basePath}${route}`;
|
|
6
|
+
if (packageName) url += packageName;
|
|
7
|
+
if (packageVersion) url += `?v=${packageVersion}`;
|
|
8
|
+
return url;
|
|
9
|
+
}
|
|
10
|
+
function useData(basePath, route, packageName, packageVersion) {
|
|
11
|
+
const url = buildUrl(basePath, route, packageName, packageVersion);
|
|
12
|
+
const { data, error, isLoading, mutate } = useSWR(url, () => api_default.request(url));
|
|
13
|
+
return {
|
|
14
|
+
data,
|
|
15
|
+
error,
|
|
16
|
+
isLoading,
|
|
17
|
+
mutate
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { useData };
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=use-data.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-data.mjs","names":["SWRResponse","useSWR","API","APIRoute","buildUrl","basePath","route","packageName","packageVersion","url","useData","Pick","T","data","error","isLoading","mutate","request"],"sources":["../../src/api/use-data.ts"],"sourcesContent":["import type { SWRResponse } from 'swr';\nimport useSWR from 'swr';\n\nimport API from '../store/api';\nimport type { APIRoute } from '../store/routes';\n\nfunction buildUrl(\n basePath: string,\n route: APIRoute,\n packageName?: string,\n packageVersion?: string\n): string {\n let url = `${basePath}${route}`;\n if (packageName) {\n url += packageName;\n }\n if (packageVersion) {\n url += `?v=${packageVersion}`;\n }\n return url;\n}\n\nexport function useData<T>(\n basePath: string,\n route: APIRoute,\n packageName?: string,\n packageVersion?: string\n): Pick<SWRResponse<T>, 'data' | 'error' | 'isLoading' | 'mutate'> {\n const url = buildUrl(basePath, route, packageName, packageVersion);\n\n const { data, error, isLoading, mutate } = useSWR<T>(url, () => API.request<T>(url));\n\n return { data, error, isLoading, mutate };\n}\n"],"mappings":";;;AAMA,SAASI,SACPC,UACAC,OACAC,aACAC,gBACQ;CACR,IAAIC,MAAM,GAAGJ,WAAWC;AACxB,KAAIC,YACFE,QAAOF;AAET,KAAIC,eACFC,QAAO,MAAMD;AAEf,QAAOC;;AAGT,SAAgBC,QACdL,UACAC,OACAC,aACAC,gBACiE;CACjE,MAAMC,MAAML,SAASC,UAAUC,OAAOC,aAAaC,eAAe;CAElE,MAAM,EAAEK,MAAMC,OAAOC,WAAWC,WAAWf,OAAUQ,WAAWP,YAAIe,QAAWR,IAAI,CAAC;AAEpF,QAAO;EAAEI;EAAMC;EAAOC;EAAWC;EAAQ"}
|
|
@@ -1,47 +1,56 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.js");
|
|
2
|
+
const require_url = require("../../utils/url.js");
|
|
3
|
+
require("../../utils/index.js");
|
|
4
|
+
const require_RawViewer = require("../RawViewer/RawViewer.js");
|
|
5
|
+
require("../RawViewer/index.js");
|
|
6
|
+
const require_ActionBarAction = require("./ActionBarAction.js");
|
|
7
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
+
let react = require("react");
|
|
9
|
+
react = require_runtime.__toESM(react);
|
|
10
|
+
let _mui_material_Box = require("@mui/material/Box");
|
|
11
|
+
_mui_material_Box = require_runtime.__toESM(_mui_material_Box);
|
|
12
|
+
let _mui_material_Stack = require("@mui/material/Stack");
|
|
13
|
+
_mui_material_Stack = require_runtime.__toESM(_mui_material_Stack);
|
|
10
14
|
//#region src/components/ActionBar/ActionBar.tsx
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
if (!
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
var ActionBar = ({ showRaw, showDownloadTarball = true, packageMeta }) => {
|
|
16
|
+
const [isRawViewerOpen, setIsRawViewerOpen] = (0, react.useState)(false);
|
|
17
|
+
if (!packageMeta?.latest) return null;
|
|
18
|
+
const { homepage, bugs, dist } = packageMeta.latest;
|
|
19
|
+
const actions = [];
|
|
20
|
+
if (homepage && require_url.isURL(homepage)) actions.push({
|
|
16
21
|
type: "VISIT_HOMEPAGE",
|
|
17
|
-
link:
|
|
18
|
-
})
|
|
22
|
+
link: homepage
|
|
23
|
+
});
|
|
24
|
+
if (bugs?.url && require_url.isURL(bugs.url)) actions.push({
|
|
19
25
|
type: "OPEN_AN_ISSUE",
|
|
20
|
-
link:
|
|
21
|
-
})
|
|
26
|
+
link: bugs.url
|
|
27
|
+
});
|
|
28
|
+
if (dist?.tarball && require_url.isURL(dist.tarball) && showDownloadTarball) actions.push({
|
|
22
29
|
type: "DOWNLOAD_TARBALL",
|
|
23
|
-
link:
|
|
24
|
-
})
|
|
30
|
+
link: dist.tarball
|
|
31
|
+
});
|
|
32
|
+
if (showRaw) actions.push({
|
|
25
33
|
type: "RAW_DATA",
|
|
26
|
-
action: () =>
|
|
27
|
-
})
|
|
34
|
+
action: () => setIsRawViewerOpen(true)
|
|
35
|
+
});
|
|
36
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_mui_material_Box.default, {
|
|
28
37
|
alignItems: "center",
|
|
29
38
|
display: "flex",
|
|
30
39
|
sx: { my: 2 },
|
|
31
|
-
children: /* @__PURE__ */
|
|
40
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_mui_material_Stack.default, {
|
|
32
41
|
direction: "row",
|
|
33
42
|
spacing: 1,
|
|
34
|
-
children: [
|
|
35
|
-
isOpen:
|
|
43
|
+
children: [actions.map((action) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ActionBarAction.default, { ...action }, action.type)), isRawViewerOpen && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_RawViewer.default, {
|
|
44
|
+
isOpen: isRawViewerOpen,
|
|
36
45
|
onClose: () => {
|
|
37
|
-
|
|
46
|
+
setIsRawViewerOpen(false);
|
|
38
47
|
},
|
|
39
|
-
packageMeta
|
|
48
|
+
packageMeta
|
|
40
49
|
})]
|
|
41
50
|
})
|
|
42
51
|
});
|
|
43
52
|
};
|
|
44
53
|
//#endregion
|
|
45
|
-
|
|
54
|
+
exports.default = ActionBar;
|
|
46
55
|
|
|
47
56
|
//# sourceMappingURL=ActionBar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionBar.js","names":["Box","Stack","React","useState","url","RawViewer","ActionBarActionProps","ActionBarAction","Props","showRaw","showDownloadTarball","packageMeta","ActionBar","FC","isRawViewerOpen","setIsRawViewerOpen","latest","homepage","bugs","dist","actions","isURL","push","type","link","tarball","action","my","map"],"sources":["../../../src/components/ActionBar/ActionBar.tsx"],"sourcesContent":["import Box from '@mui/material/Box';\nimport Stack from '@mui/material/Stack';\nimport React, { useState } from 'react';\n\nimport { url } from '../../utils';\nimport RawViewer from '../RawViewer';\nimport type { ActionBarActionProps } from './ActionBarAction';\nimport ActionBarAction from './ActionBarAction';\n\nexport type Props = {\n showRaw?: boolean;\n showDownloadTarball?: boolean;\n packageMeta: any;\n};\n\nconst ActionBar: React.FC<Props> = ({ showRaw, showDownloadTarball = true, packageMeta }) => {\n const [isRawViewerOpen, setIsRawViewerOpen] = useState(false);\n\n if (!packageMeta?.latest) {\n return null;\n }\n\n const { homepage, bugs, dist } = packageMeta.latest;\n\n const actions: ActionBarActionProps[] = [];\n\n if (homepage && url.isURL(homepage)) {\n actions.push({ type: 'VISIT_HOMEPAGE', link: homepage });\n }\n\n if (bugs?.url && url.isURL(bugs.url)) {\n actions.push({ type: 'OPEN_AN_ISSUE', link: bugs.url });\n }\n\n if (dist?.tarball && url.isURL(dist.tarball) && showDownloadTarball) {\n actions.push({ type: 'DOWNLOAD_TARBALL', link: dist.tarball });\n }\n\n if (showRaw) {\n actions.push({ type: 'RAW_DATA', action: () => setIsRawViewerOpen(true) });\n }\n\n return (\n <Box alignItems=\"center\" display=\"flex\" sx={{ my: 2 }}>\n <Stack direction=\"row\" spacing={1}>\n {actions.map((action) => (\n <ActionBarAction key={action.type} {...action} />\n ))}\n {isRawViewerOpen && (\n <RawViewer\n isOpen={isRawViewerOpen}\n onClose={() => {\n setIsRawViewerOpen(false);\n }}\n packageMeta={packageMeta}\n />\n )}\n </Stack>\n </Box>\n );\n};\n\nexport default ActionBar;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ActionBar.js","names":["Box","Stack","React","useState","url","RawViewer","ActionBarActionProps","ActionBarAction","Props","showRaw","showDownloadTarball","packageMeta","ActionBar","FC","isRawViewerOpen","setIsRawViewerOpen","latest","homepage","bugs","dist","actions","isURL","push","type","link","tarball","action","my","map"],"sources":["../../../src/components/ActionBar/ActionBar.tsx"],"sourcesContent":["import Box from '@mui/material/Box';\nimport Stack from '@mui/material/Stack';\nimport React, { useState } from 'react';\n\nimport { url } from '../../utils';\nimport RawViewer from '../RawViewer';\nimport type { ActionBarActionProps } from './ActionBarAction';\nimport ActionBarAction from './ActionBarAction';\n\nexport type Props = {\n showRaw?: boolean;\n showDownloadTarball?: boolean;\n packageMeta: any;\n};\n\nconst ActionBar: React.FC<Props> = ({ showRaw, showDownloadTarball = true, packageMeta }) => {\n const [isRawViewerOpen, setIsRawViewerOpen] = useState(false);\n\n if (!packageMeta?.latest) {\n return null;\n }\n\n const { homepage, bugs, dist } = packageMeta.latest;\n\n const actions: ActionBarActionProps[] = [];\n\n if (homepage && url.isURL(homepage)) {\n actions.push({ type: 'VISIT_HOMEPAGE', link: homepage });\n }\n\n if (bugs?.url && url.isURL(bugs.url)) {\n actions.push({ type: 'OPEN_AN_ISSUE', link: bugs.url });\n }\n\n if (dist?.tarball && url.isURL(dist.tarball) && showDownloadTarball) {\n actions.push({ type: 'DOWNLOAD_TARBALL', link: dist.tarball });\n }\n\n if (showRaw) {\n actions.push({ type: 'RAW_DATA', action: () => setIsRawViewerOpen(true) });\n }\n\n return (\n <Box alignItems=\"center\" display=\"flex\" sx={{ my: 2 }}>\n <Stack direction=\"row\" spacing={1}>\n {actions.map((action) => (\n <ActionBarAction key={action.type} {...action} />\n ))}\n {isRawViewerOpen && (\n <RawViewer\n isOpen={isRawViewerOpen}\n onClose={() => {\n setIsRawViewerOpen(false);\n }}\n packageMeta={packageMeta}\n />\n )}\n </Stack>\n </Box>\n );\n};\n\nexport default ActionBar;\n"],"mappings":";;;;;;;;;;;;;;AAeA,IAAMY,aAA8B,EAAEH,SAASC,sBAAsB,MAAMC,kBAAkB;CAC3F,MAAM,CAACG,iBAAiBC,uBAAAA,GAAAA,MAAAA,UAA+B,MAAM;AAE7D,KAAI,CAACJ,aAAaK,OAChB,QAAO;CAGT,MAAM,EAAEC,UAAUC,MAAMC,SAASR,YAAYK;CAE7C,MAAMI,UAAkC,EAAE;AAE1C,KAAIH,YAAAA,YAAAA,MAAsBA,SAAS,CACjCG,SAAQE,KAAK;EAAEC,MAAM;EAAkBC,MAAMP;EAAU,CAAC;AAG1D,KAAIC,MAAMd,OAAAA,YAAAA,MAAiBc,KAAKd,IAAI,CAClCgB,SAAQE,KAAK;EAAEC,MAAM;EAAiBC,MAAMN,KAAKd;EAAK,CAAC;AAGzD,KAAIe,MAAMM,WAAAA,YAAAA,MAAqBN,KAAKM,QAAQ,IAAIf,oBAC9CU,SAAQE,KAAK;EAAEC,MAAM;EAAoBC,MAAML,KAAKM;EAAS,CAAC;AAGhE,KAAIhB,QACFW,SAAQE,KAAK;EAAEC,MAAM;EAAYG,cAAcX,mBAAmB,KAAI;EAAG,CAAC;AAG5E,QACE,iBAAA,GAAA,kBAAA,KAAC,kBAAA,SAAD;EAAK,YAAW;EAAS,SAAQ;EAAO,IAAI,EAAEY,IAAI,GAAG;YACnD,iBAAA,GAAA,kBAAA,MAAC,oBAAA,SAAD;GAAO,WAAU;GAAM,SAAS;aAAhC,CACGP,QAAQQ,KAAKF,WACZ,iBAAA,GAAA,kBAAA,KAAC,wBAAA,SAAD,EAAmC,GAAIA,QACxC,EADuBA,OAAOH,KAC9B,CAAC,EACDT,mBACC,iBAAA,GAAA,kBAAA,KAAC,kBAAA,SAAD;IACE,QAAQA;IACR,eAAe;AACbC,wBAAmB,MAAM;;IAEdJ;IAEhB,CAAA,CACI;;EACH,CAAA"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { isURL } from "../../utils/url.mjs";
|
|
2
|
+
import "../../utils/index.mjs";
|
|
3
|
+
import RawViewer from "../RawViewer/RawViewer.mjs";
|
|
4
|
+
import "../RawViewer/index.mjs";
|
|
5
|
+
import ActionBarAction from "./ActionBarAction.mjs";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { useState } from "react";
|
|
8
|
+
import Box from "@mui/material/Box";
|
|
9
|
+
import Stack from "@mui/material/Stack";
|
|
10
|
+
//#region src/components/ActionBar/ActionBar.tsx
|
|
11
|
+
var ActionBar = ({ showRaw, showDownloadTarball = true, packageMeta }) => {
|
|
12
|
+
const [isRawViewerOpen, setIsRawViewerOpen] = useState(false);
|
|
13
|
+
if (!packageMeta?.latest) return null;
|
|
14
|
+
const { homepage, bugs, dist } = packageMeta.latest;
|
|
15
|
+
const actions = [];
|
|
16
|
+
if (homepage && isURL(homepage)) actions.push({
|
|
17
|
+
type: "VISIT_HOMEPAGE",
|
|
18
|
+
link: homepage
|
|
19
|
+
});
|
|
20
|
+
if (bugs?.url && isURL(bugs.url)) actions.push({
|
|
21
|
+
type: "OPEN_AN_ISSUE",
|
|
22
|
+
link: bugs.url
|
|
23
|
+
});
|
|
24
|
+
if (dist?.tarball && isURL(dist.tarball) && showDownloadTarball) actions.push({
|
|
25
|
+
type: "DOWNLOAD_TARBALL",
|
|
26
|
+
link: dist.tarball
|
|
27
|
+
});
|
|
28
|
+
if (showRaw) actions.push({
|
|
29
|
+
type: "RAW_DATA",
|
|
30
|
+
action: () => setIsRawViewerOpen(true)
|
|
31
|
+
});
|
|
32
|
+
return /* @__PURE__ */ jsx(Box, {
|
|
33
|
+
alignItems: "center",
|
|
34
|
+
display: "flex",
|
|
35
|
+
sx: { my: 2 },
|
|
36
|
+
children: /* @__PURE__ */ jsxs(Stack, {
|
|
37
|
+
direction: "row",
|
|
38
|
+
spacing: 1,
|
|
39
|
+
children: [actions.map((action) => /* @__PURE__ */ jsx(ActionBarAction, { ...action }, action.type)), isRawViewerOpen && /* @__PURE__ */ jsx(RawViewer, {
|
|
40
|
+
isOpen: isRawViewerOpen,
|
|
41
|
+
onClose: () => {
|
|
42
|
+
setIsRawViewerOpen(false);
|
|
43
|
+
},
|
|
44
|
+
packageMeta
|
|
45
|
+
})]
|
|
46
|
+
})
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
//#endregion
|
|
50
|
+
export { ActionBar as default };
|
|
51
|
+
|
|
52
|
+
//# sourceMappingURL=ActionBar.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionBar.mjs","names":["Box","Stack","React","useState","url","RawViewer","ActionBarActionProps","ActionBarAction","Props","showRaw","showDownloadTarball","packageMeta","ActionBar","FC","isRawViewerOpen","setIsRawViewerOpen","latest","homepage","bugs","dist","actions","isURL","push","type","link","tarball","action","my","map"],"sources":["../../../src/components/ActionBar/ActionBar.tsx"],"sourcesContent":["import Box from '@mui/material/Box';\nimport Stack from '@mui/material/Stack';\nimport React, { useState } from 'react';\n\nimport { url } from '../../utils';\nimport RawViewer from '../RawViewer';\nimport type { ActionBarActionProps } from './ActionBarAction';\nimport ActionBarAction from './ActionBarAction';\n\nexport type Props = {\n showRaw?: boolean;\n showDownloadTarball?: boolean;\n packageMeta: any;\n};\n\nconst ActionBar: React.FC<Props> = ({ showRaw, showDownloadTarball = true, packageMeta }) => {\n const [isRawViewerOpen, setIsRawViewerOpen] = useState(false);\n\n if (!packageMeta?.latest) {\n return null;\n }\n\n const { homepage, bugs, dist } = packageMeta.latest;\n\n const actions: ActionBarActionProps[] = [];\n\n if (homepage && url.isURL(homepage)) {\n actions.push({ type: 'VISIT_HOMEPAGE', link: homepage });\n }\n\n if (bugs?.url && url.isURL(bugs.url)) {\n actions.push({ type: 'OPEN_AN_ISSUE', link: bugs.url });\n }\n\n if (dist?.tarball && url.isURL(dist.tarball) && showDownloadTarball) {\n actions.push({ type: 'DOWNLOAD_TARBALL', link: dist.tarball });\n }\n\n if (showRaw) {\n actions.push({ type: 'RAW_DATA', action: () => setIsRawViewerOpen(true) });\n }\n\n return (\n <Box alignItems=\"center\" display=\"flex\" sx={{ my: 2 }}>\n <Stack direction=\"row\" spacing={1}>\n {actions.map((action) => (\n <ActionBarAction key={action.type} {...action} />\n ))}\n {isRawViewerOpen && (\n <RawViewer\n isOpen={isRawViewerOpen}\n onClose={() => {\n setIsRawViewerOpen(false);\n }}\n packageMeta={packageMeta}\n />\n )}\n </Stack>\n </Box>\n );\n};\n\nexport default ActionBar;\n"],"mappings":";;;;;;;;;;AAeA,IAAMY,aAA8B,EAAEH,SAASC,sBAAsB,MAAMC,kBAAkB;CAC3F,MAAM,CAACG,iBAAiBC,sBAAsBZ,SAAS,MAAM;AAE7D,KAAI,CAACQ,aAAaK,OAChB,QAAO;CAGT,MAAM,EAAEC,UAAUC,MAAMC,SAASR,YAAYK;CAE7C,MAAMI,UAAkC,EAAE;AAE1C,KAAIH,YAAYb,MAAUa,SAAS,CACjCG,SAAQE,KAAK;EAAEC,MAAM;EAAkBC,MAAMP;EAAU,CAAC;AAG1D,KAAIC,MAAMd,OAAOA,MAAUc,KAAKd,IAAI,CAClCgB,SAAQE,KAAK;EAAEC,MAAM;EAAiBC,MAAMN,KAAKd;EAAK,CAAC;AAGzD,KAAIe,MAAMM,WAAWrB,MAAUe,KAAKM,QAAQ,IAAIf,oBAC9CU,SAAQE,KAAK;EAAEC,MAAM;EAAoBC,MAAML,KAAKM;EAAS,CAAC;AAGhE,KAAIhB,QACFW,SAAQE,KAAK;EAAEC,MAAM;EAAYG,cAAcX,mBAAmB,KAAI;EAAG,CAAC;AAG5E,QACE,oBAAC,KAAD;EAAK,YAAW;EAAS,SAAQ;EAAO,IAAI,EAAEY,IAAI,GAAG;YACnD,qBAAC,OAAD;GAAO,WAAU;GAAM,SAAS;aAAhC,CACGP,QAAQQ,KAAKF,WACZ,oBAAC,iBAAD,EAAmC,GAAIA,QACxC,EADuBA,OAAOH,KAC9B,CAAC,EACDT,mBACC,oBAAC,WAAD;IACE,QAAQA;IACR,eAAe;AACbC,wBAAmB,MAAM;;IAEdJ;IAEhB,CAAA,CACI;;EACH,CAAA"}
|