@verdaccio/ui-components 2.0.0-6-next.8 → 2.0.0-6-next.10
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/.babelrc +1 -9
- package/CHANGELOG.md +12 -0
- package/build/Theme/ResetStyles.js +34 -37
- package/build/Theme/StyleBaseline.js +4 -6
- package/build/Theme/ThemeProvider.js +24 -34
- package/build/Theme/colors.js +1 -1
- package/build/Theme/index.js +9 -10
- package/build/Theme/theme.js +26 -28
- package/build/__mocks__/react-markdown.js +6 -5
- package/build/__mocks__/remark-plugin.js +1 -1
- package/build/components/ActionBar/ActionBar.js +23 -36
- package/build/components/ActionBar/ActionBarAction.js +45 -58
- package/build/components/ActionBar/index.js +3 -3
- package/build/components/Author/Author.js +26 -21
- package/build/components/Author/index.js +3 -3
- package/build/components/Author/styles.js +5 -5
- package/build/components/CopyClipboard/CopyToClipBoard.js +21 -23
- package/build/components/CopyClipboard/index.js +4 -4
- package/build/components/CopyClipboard/utils.js +14 -16
- package/build/components/Dependencies/Dependencies.js +68 -66
- package/build/components/Dependencies/index.js +3 -3
- package/build/components/Dependencies/styles.js +9 -11
- package/build/components/Deprecated/Deprecated.js +12 -15
- package/build/components/Deprecated/index.js +3 -3
- package/build/components/Developers/Developers.js +30 -45
- package/build/components/Developers/Title.js +22 -21
- package/build/components/Developers/get-unique-developer-values.js +3 -13
- package/build/components/Developers/index.js +5 -6
- package/build/components/Developers/styles.js +7 -7
- package/build/components/Distribution/Dist.js +28 -23
- package/build/components/Distribution/index.js +3 -3
- package/build/components/Distribution/styles.js +7 -7
- package/build/components/Distribution/utils.js +0 -1
- package/build/components/Distribution/utilts.spec.js +18 -0
- package/build/components/Engines/Engines.js +46 -36
- package/build/components/Engines/index.js +3 -3
- package/build/components/Engines/styles.js +4 -4
- package/build/components/ErrorBoundary/ErrorBoundary.js +29 -50
- package/build/components/ErrorBoundary/index.js +3 -3
- package/build/components/FundButton/FundButton.js +28 -29
- package/build/components/FundButton/index.js +3 -3
- package/build/components/HeaderInfoDialog/HeaderInfoDialog.js +33 -44
- package/build/components/HeaderInfoDialog/index.js +3 -3
- package/build/components/Heading/Heading.js +10 -14
- package/build/components/Heading/index.js +3 -3
- package/build/components/Help/Help.js +22 -21
- package/build/components/Help/index.js +3 -3
- package/build/components/Help/styles.js +2 -2
- package/build/components/Icons/DevsIcons/CommonJS.js +9 -10
- package/build/components/Icons/DevsIcons/ES6Module.js +9 -10
- package/build/components/Icons/DevsIcons/Git.js +9 -10
- package/build/components/Icons/DevsIcons/NodeJS.js +9 -10
- package/build/components/Icons/DevsIcons/TypeScript.js +9 -10
- package/build/components/Icons/DevsIcons/index.js +5 -5
- package/build/components/Icons/Earth.js +11 -11
- package/build/components/Icons/FileBinary.js +4 -4
- package/build/components/Icons/Law.js +4 -4
- package/build/components/Icons/License.js +5 -5
- package/build/components/Icons/License.js.map +1 -1
- package/build/components/Icons/Managers/Npm.js +9 -10
- package/build/components/Icons/Managers/Pnpm.js +9 -10
- package/build/components/Icons/Managers/Yarn.js +9 -10
- package/build/components/Icons/Managers/index.js +3 -3
- package/build/components/Icons/SvgIcon.js +14 -22
- package/build/components/Icons/Time.js +6 -6
- package/build/components/Icons/Version.js +4 -4
- package/build/components/Icons/index.js +8 -8
- package/build/components/Install/Install.js +40 -26
- package/build/components/Install/InstallListItem.js +49 -40
- package/build/components/Install/index.js +3 -3
- package/build/components/Label/Label.js +13 -18
- package/build/components/Label/index.js +3 -3
- package/build/components/Link/Link.js +16 -15
- package/build/components/Link/index.js +3 -3
- package/build/components/Loading/Loading.js +10 -12
- package/build/components/Loading/Spinner/Spinner.js +27 -37
- package/build/components/Loading/Spinner/index.js +3 -3
- package/build/components/Loading/index.js +3 -3
- package/build/components/Loading/styles.js +11 -12
- package/build/components/LoginDialog/LoginDialog.js +44 -83
- package/build/components/LoginDialog/LoginDialogCloseButton.js +20 -19
- package/build/components/LoginDialog/LoginDialogForm.js +41 -40
- package/build/components/LoginDialog/LoginDialogFormError.js +26 -28
- package/build/components/LoginDialog/LoginDialogHeader.js +29 -29
- package/build/components/LoginDialog/index.js +3 -3
- package/build/components/Logo/Logo.js +35 -36
- package/build/components/Logo/index.js +3 -3
- package/build/components/MenuItem/MenuItem.js +8 -9
- package/build/components/MenuItem/index.js +3 -3
- package/build/components/NoItems/NoItems.js +10 -21
- package/build/components/NoItems/index.js +3 -3
- package/build/components/NotFound/NotFound.js +25 -26
- package/build/components/NotFound/index.js +3 -3
- package/build/components/Package/Package.js +112 -152
- package/build/components/Package/Tag/Tag.js +6 -7
- package/build/components/Package/Tag/index.js +3 -3
- package/build/components/Package/Tag/styles.js +2 -2
- package/build/components/Package/index.js +5 -6
- package/build/components/Package/styles.js +65 -70
- package/build/components/PackageList/PackageList.js +56 -52
- package/build/components/PackageList/index.js +3 -3
- package/build/components/RawViewer/RawViewer.js +23 -22
- package/build/components/RawViewer/index.js +3 -3
- package/build/components/Readme/Readme.js +21 -21
- package/build/components/Readme/Readme.js.map +1 -1
- package/build/components/Readme/Readme.spec.js +6 -6
- package/build/components/Readme/Readme.spec.js.map +1 -1
- package/build/components/Readme/index.js +3 -3
- package/build/components/Readme/utils.js +7 -8
- package/build/components/RegistryInfoDialog/RegistryInfoDialog.js +14 -14
- package/build/components/RegistryInfoDialog/index.js +3 -3
- package/build/components/RegistryInfoDialog/styles.js +17 -19
- package/build/components/Repository/Repository.js +37 -36
- package/build/components/Repository/index.js +3 -3
- package/build/components/Search/AutoComplete/AutoComplete.js +26 -35
- package/build/components/Search/AutoComplete/index.js +3 -3
- package/build/components/Search/AutoComplete/styles.js +15 -16
- package/build/components/Search/Search.js +54 -54
- package/build/components/Search/SearchItem.js +57 -65
- package/build/components/Search/index.js +3 -3
- package/build/components/Search/styles.js +16 -17
- package/build/components/SettingsMenu/SettingsMenu.js +68 -0
- package/build/components/SettingsMenu/index.js +14 -0
- package/build/components/SideBarTittle/SideBarTittle.js +33 -31
- package/build/components/SideBarTittle/index.js +3 -3
- package/build/components/SideBarTittle/utils.js +4 -4
- package/build/components/TextField/TextField.js +18 -23
- package/build/components/TextField/index.js +3 -3
- package/build/components/UpLinks/UpLinks.js +18 -16
- package/build/components/UpLinks/index.js +3 -3
- package/build/components/UpLinks/styles.js +20 -22
- package/build/components/Versions/HistoryList.js +25 -25
- package/build/components/Versions/TagList.js +19 -22
- package/build/components/Versions/Versions.js +21 -20
- package/build/components/Versions/index.js +3 -3
- package/build/components/Versions/styles.js +19 -21
- package/build/hooks/index.js +5 -5
- package/build/hooks/useLocalStorage.js +18 -27
- package/build/hooks/useOnClickOutside.js +5 -5
- package/build/index.js +104 -97
- package/build/layouts/Version/Version.js +8 -8
- package/build/layouts/Version/index.js +3 -3
- package/build/providers/AppConfigurationProvider/AppConfigurationProvider.js +18 -31
- package/build/providers/AppConfigurationProvider/index.js +5 -6
- package/build/providers/PersistenceSettingProvider/PersistenceSettingProvider.js +38 -0
- package/build/providers/PersistenceSettingProvider/index.js +21 -0
- package/build/providers/TranslatorProvider/TranslatorProvider.js +26 -51
- package/build/providers/TranslatorProvider/TranslatorProvider.spec.js +54 -0
- package/build/providers/TranslatorProvider/index.js +6 -7
- package/build/providers/VersionProvider/VersionProvider.js +32 -34
- package/build/providers/VersionProvider/index.js +5 -6
- package/build/providers/index.js +3 -3
- package/build/sections/Detail/ContainerContent.js +24 -35
- package/build/sections/Detail/Detail.js +21 -30
- package/build/sections/Detail/ReadmeSection.js +7 -6
- package/build/sections/Detail/Tabs.js +16 -14
- package/build/sections/Detail/index.js +3 -3
- package/build/sections/Footer/Footer.js +55 -57
- package/build/sections/Footer/index.js +3 -3
- package/build/sections/Footer/styles.js +41 -47
- package/build/sections/Header/Header.js +36 -70
- package/build/sections/Header/HeaderGreetings.js +10 -8
- package/build/sections/Header/HeaderLeft.js +11 -12
- package/build/sections/Header/HeaderMenu.js +18 -17
- package/build/sections/Header/HeaderRight.js +41 -51
- package/build/sections/Header/HeaderSettingsDialog.js +48 -57
- package/build/sections/Header/HeaderToolTip.js +10 -11
- package/build/sections/Header/HeaderToolTipIcon.js +19 -19
- package/build/sections/Header/LanguageSwitch.js +51 -56
- package/build/sections/Header/RegistryInfoContent/RegistryInfoContent.js +72 -71
- package/build/sections/Header/RegistryInfoContent/index.js +3 -3
- package/build/sections/Header/RegistryInfoContent/styles.js +13 -16
- package/build/sections/Header/RegistryInfoDialog/RegistryInfoDialog.js +14 -14
- package/build/sections/Header/RegistryInfoDialog/index.js +3 -3
- package/build/sections/Header/RegistryInfoDialog/styles.js +17 -19
- package/build/sections/Header/index.js +3 -3
- package/build/sections/Header/styles.js +35 -38
- package/build/sections/Home/Home.js +11 -14
- package/build/sections/Home/index.js +3 -3
- package/build/sections/SideBar/Sidebar.js +38 -54
- package/build/sections/SideBar/index.js +3 -3
- package/build/sections/index.js +5 -5
- package/build/src/components/ActionBar/ActionBar.stories.d.ts +11 -6
- package/build/src/components/ActionBar/ActionBarAction.d.ts +1 -34
- package/build/src/components/Author/styles.d.ts +1 -20
- package/build/src/components/Dependencies/Dependencies.stories.d.ts +8 -6
- package/build/src/components/Dependencies/styles.d.ts +2 -30
- package/build/src/components/Deprecated/Deprecated.d.ts +1 -11
- package/build/src/components/Developers/Developers.d.ts +1 -34
- package/build/src/components/Developers/styles.d.ts +1 -34
- package/build/src/components/Distribution/Dist.stories.d.ts +4 -1
- package/build/src/components/Distribution/styles.d.ts +3 -76
- package/build/src/components/Distribution/utils.d.ts +2 -1
- package/build/src/components/Engines/styles.d.ts +1 -21
- package/build/src/components/FundButton/FundButton.stories.d.ts +7 -5
- package/build/src/components/Help/styles.d.ts +1 -10
- package/build/src/components/Icons/Earth.d.ts +2 -2
- package/build/src/components/Icons/FileBinary.d.ts +2 -2
- package/build/src/components/Icons/Law.d.ts +2 -2
- package/build/src/components/Icons/License.d.ts +2 -2
- package/build/src/components/Icons/SvgIcon.d.ts +1 -1
- package/build/src/components/Icons/Time.d.ts +2 -2
- package/build/src/components/Icons/Version.d.ts +2 -2
- package/build/src/components/Install/Install.stories.d.ts +9 -5
- package/build/src/components/MenuItem/MenuItem.d.ts +1 -1
- package/build/src/components/NoItems/NoItems.d.ts +0 -1
- package/build/src/components/Package/styles.d.ts +3 -61
- package/build/src/components/RegistryInfoDialog/styles.d.ts +1 -11
- package/build/src/components/Repository/Repository.stories.d.ts +8 -6
- package/build/src/components/Search/AutoComplete/styles.d.ts +1 -1
- package/build/src/components/Search/Search.d.ts +1 -1
- package/build/src/components/Search/styles.d.ts +2 -16
- package/build/src/components/SettingsMenu/SettingsMenu.d.ts +6 -0
- package/build/src/components/SettingsMenu/index.d.ts +1 -0
- package/build/src/components/SideBarTittle/SideBarTittle.stories.d.ts +9 -0
- package/build/src/components/TextField/TextField.d.ts +1 -1
- package/build/src/components/Versions/types.d.ts +0 -2
- package/build/src/index.d.ts +1 -0
- package/build/src/layouts/Version/Version.stories.d.ts +7 -6
- package/build/src/providers/PersistenceSettingProvider/PersistenceSettingProvider.d.ts +6 -0
- package/build/src/providers/PersistenceSettingProvider/index.d.ts +1 -0
- package/build/src/providers/TranslatorProvider/TranslatorProvider.d.ts +2 -1
- package/build/src/providers/TranslatorProvider/TranslatorProvider.spec.d.ts +1 -0
- package/build/src/providers/VersionProvider/VersionProvider.d.ts +0 -2
- package/build/src/sections/Header/LanguageSwitch.d.ts +3 -23
- package/build/src/sections/Header/RegistryInfoDialog/styles.d.ts +1 -11
- package/build/src/sections/Header/styles.d.ts +8 -166
- package/build/src/types/packageMeta.d.ts +6 -6
- package/build/store/api.js +35 -52
- package/build/store/index.js +9 -9
- package/build/store/models/configuration.js +12 -34
- package/build/store/models/download.js +22 -46
- package/build/store/models/index.js +1 -1
- package/build/store/models/login.js +55 -79
- package/build/store/models/manifest.js +52 -78
- package/build/store/models/packages.js +22 -51
- package/build/store/models/search.js +59 -87
- package/build/store/storage.js +5 -5
- package/build/store/store.js +3 -3
- package/build/test/i18n-config.js +5 -5
- package/build/test/test-react-testing-library.js +19 -24
- package/build/utils/__partials__/packageMeta.js +1 -1
- package/build/utils/cli-utils.js +27 -20
- package/build/utils/index.js +10 -11
- package/build/utils/loadable.js +9 -12
- package/build/utils/routes.js +4 -4
- package/build/utils/url.js +9 -9
- package/build/utils/utils.js +18 -22
- package/package.json +22 -19
- package/src/Theme/ThemeProvider.tsx +0 -1
- package/src/components/ActionBar/ActionBar.stories.tsx +60 -46
- package/src/components/Author/Author.stories.tsx +1 -1
- package/src/components/CopyClipboard/CopyToClipBoard.stories.tsx +1 -1
- package/src/components/CopyClipboard/CopyToClipBoard.tsx +2 -2
- package/src/components/Dependencies/Dependencies.stories.tsx +151 -51
- package/src/components/Dependencies/Dependencies.tsx +61 -51
- package/src/components/Deprecated/Deprecated.stories.tsx +1 -1
- package/src/components/Deprecated/Deprecated.tsx +1 -1
- package/src/components/Developers/Developers.stories.tsx +1 -1
- package/src/components/Distribution/Dist.stories.tsx +46 -3
- package/src/components/Distribution/Dist.test.tsx +33 -6
- package/src/components/Distribution/Dist.tsx +13 -5
- package/src/components/Distribution/utils.ts +3 -2
- package/src/components/Distribution/utilts.spec.ts +17 -0
- package/src/components/Engines/Engines.stories.tsx +1 -1
- package/src/components/FundButton/FundButton.stories.tsx +48 -17
- package/src/components/Help/Help.stories.tsx +1 -1
- package/src/components/Icons/Icons.stories.tsx +1 -1
- package/src/components/Install/Install.stories.tsx +79 -26
- package/src/components/Install/Install.tsx +28 -14
- package/src/components/Install/InstallListItem.tsx +24 -8
- package/src/components/Loading/Loading.stories.tsx +1 -1
- package/src/components/LoginDialog/LoginDialog.stories.tsx +1 -1
- package/src/components/NoItems/NoItems.stories.tsx +1 -1
- package/src/components/NoItems/NoItems.tsx +5 -6
- package/src/components/Package/Package.tsx +1 -1
- package/src/components/Repository/Repository.stories.tsx +39 -12
- package/src/components/Repository/Repository.tsx +2 -4
- package/src/components/Search/Search.stories.tsx +1 -1
- package/src/components/SettingsMenu/SettingsMenu.tsx +67 -0
- package/src/components/SettingsMenu/index.ts +1 -0
- package/src/components/SideBarTittle/SideBarTittle.stories.tsx +68 -0
- package/src/components/UpLinks/Uplinks.stories.tsx +1 -1
- package/src/components/Versions/types.ts +0 -2
- package/src/index.ts +2 -0
- package/src/layouts/Version/Version.stories.tsx +35 -20
- package/src/providers/AppConfigurationProvider/AppConfigurationProvider.tsx +0 -1
- package/src/providers/PersistenceSettingProvider/PersistenceSettingProvider.tsx +57 -0
- package/src/providers/PersistenceSettingProvider/index.ts +1 -0
- package/src/providers/TranslatorProvider/TranslatorProvider.spec.tsx +52 -0
- package/src/providers/TranslatorProvider/TranslatorProvider.tsx +2 -1
- package/src/providers/VersionProvider/VersionProvider.test.tsx +1 -1
- package/src/providers/VersionProvider/VersionProvider.tsx +0 -2
- package/src/sections/Detail/Detail.stories.tsx +1 -1
- package/src/sections/Header/Header.stories.tsx +1 -1
- package/src/sections/Home/Home.stories.tsx +1 -1
- package/src/sections/SideBar/Sidebar.stories.tsx +1 -1
- package/src/sections/SideBar/Sidebar.test.tsx +0 -1
- package/src/test/test-react-testing-library.tsx +17 -12
- package/src/types/index.d.ts +2 -0
- package/src/types/packageMeta.ts +6 -6
- package/src/utils/url.test.ts +4 -0
- package/src/utils/url.ts +1 -1
- package/tsconfig.build.json +1 -0
- package/tsconfig.json +0 -1
|
@@ -7,9 +7,9 @@ exports.StyledText = exports.Fab = exports.Details = exports.Content = void 0;
|
|
|
7
7
|
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
8
8
|
var _Fab = _interopRequireDefault(require("@mui/material/Fab"));
|
|
9
9
|
var _Typography = _interopRequireDefault(require("@mui/material/Typography"));
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
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)."; }
|
|
12
|
-
|
|
12
|
+
const Details = /*#__PURE__*/(0, _base.default)('span', process.env.NODE_ENV === "production" ? {
|
|
13
13
|
target: "e1u5w7z83"
|
|
14
14
|
} : {
|
|
15
15
|
target: "e1u5w7z83",
|
|
@@ -24,7 +24,7 @@ var Details = /*#__PURE__*/(0, _base["default"])('span', process.env.NODE_ENV ==
|
|
|
24
24
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
25
25
|
});
|
|
26
26
|
exports.Details = Details;
|
|
27
|
-
|
|
27
|
+
const Content = /*#__PURE__*/(0, _base.default)('div', process.env.NODE_ENV === "production" ? {
|
|
28
28
|
target: "e1u5w7z82"
|
|
29
29
|
} : {
|
|
30
30
|
target: "e1u5w7z82",
|
|
@@ -39,12 +39,12 @@ var Content = /*#__PURE__*/(0, _base["default"])('div', process.env.NODE_ENV ===
|
|
|
39
39
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
40
40
|
});
|
|
41
41
|
exports.Content = Content;
|
|
42
|
-
|
|
42
|
+
const StyledText = /*#__PURE__*/(0, _base.default)(_Typography.default, process.env.NODE_ENV === "production" ? {
|
|
43
43
|
target: "e1u5w7z81"
|
|
44
44
|
} : {
|
|
45
45
|
target: "e1u5w7z81",
|
|
46
46
|
label: "StyledText"
|
|
47
|
-
})(
|
|
47
|
+
})(props => {
|
|
48
48
|
var _props$theme;
|
|
49
49
|
return {
|
|
50
50
|
fontWeight: (_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.fontWeight.bold,
|
|
@@ -53,12 +53,12 @@ var StyledText = /*#__PURE__*/(0, _base["default"])(_Typography["default"], proc
|
|
|
53
53
|
};
|
|
54
54
|
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0RldmVsb3BlcnMvc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXFCMEIiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL2NvbXBvbmVudHMvRGV2ZWxvcGVycy9zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgRmFiTVVJIGZyb20gJ0BtdWkvbWF0ZXJpYWwvRmFiJztcbmltcG9ydCBUeXBvZ3JhcGh5IGZyb20gJ0BtdWkvbWF0ZXJpYWwvVHlwb2dyYXBoeSc7XG5cbmltcG9ydCB7IFRoZW1lIH0gZnJvbSAnLi4vLi4vVGhlbWUnO1xuXG5leHBvcnQgY29uc3QgRGV0YWlscyA9IHN0eWxlZCgnc3BhbicpKHtcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICBmbGV4RGlyZWN0aW9uOiAnY29sdW1uJyxcbiAgYWxpZ25JdGVtczogJ2NlbnRlcicsXG59KTtcblxuZXhwb3J0IGNvbnN0IENvbnRlbnQgPSBzdHlsZWQoJ2RpdicpKHtcbiAgbWFyZ2luOiAnMTBweCAwIDEwcHggMCcsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgZmxleFdyYXA6ICd3cmFwJyxcbiAgJz4gKic6IHtcbiAgICBtYXJnaW46ICc1cHgnLFxuICB9LFxufSk7XG5cbmV4cG9ydCBjb25zdCBTdHlsZWRUZXh0ID0gc3R5bGVkKFR5cG9ncmFwaHkpPHsgdGhlbWU/OiBUaGVtZSB9PigocHJvcHMpID0+ICh7XG4gIGZvbnRXZWlnaHQ6IHByb3BzLnRoZW1lPy5mb250V2VpZ2h0LmJvbGQsXG4gIG1hcmdpbkJvdHRvbTogJzEwcHgnLFxuICB0ZXh0VHJhbnNmb3JtOiAnY2FwaXRhbGl6ZScsXG59KSk7XG5cbmV4cG9ydCBjb25zdCBGYWIgPSBzdHlsZWQoRmFiTVVJKTx7IHRoZW1lPzogVGhlbWUgfT4oKHByb3BzKSA9PiAoe1xuICBiYWNrZ3JvdW5kQ29sb3I6IHByb3BzLnRoZW1lPy5wYWxldHRlLnByaW1hcnkubWFpbixcbiAgY29sb3I6IHByb3BzLnRoZW1lPy5wYWxldHRlLndoaXRlLFxufSkpO1xuIl19 */");
|
|
55
55
|
exports.StyledText = StyledText;
|
|
56
|
-
|
|
56
|
+
const Fab = /*#__PURE__*/(0, _base.default)(_Fab.default, process.env.NODE_ENV === "production" ? {
|
|
57
57
|
target: "e1u5w7z80"
|
|
58
58
|
} : {
|
|
59
59
|
target: "e1u5w7z80",
|
|
60
60
|
label: "Fab"
|
|
61
|
-
})(
|
|
61
|
+
})(props => {
|
|
62
62
|
var _props$theme2, _props$theme3;
|
|
63
63
|
return {
|
|
64
64
|
backgroundColor: (_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.palette.primary.main,
|
|
@@ -3,42 +3,47 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.default = void 0;
|
|
7
7
|
var _List = _interopRequireDefault(require("@mui/material/List"));
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _reactI18next = require("react-i18next");
|
|
10
10
|
var _styles = require("./styles");
|
|
11
11
|
var _utils = require("./utils");
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
t
|
|
24
|
-
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
const DistChip = ({
|
|
14
|
+
name,
|
|
15
|
+
children
|
|
16
|
+
}) => children ? /*#__PURE__*/_react.default.createElement(_styles.DistChips, {
|
|
17
|
+
label: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("b", null, name), ': ', children)
|
|
18
|
+
}) : null;
|
|
19
|
+
const Dist = ({
|
|
20
|
+
packageMeta
|
|
21
|
+
}) => {
|
|
22
|
+
const {
|
|
23
|
+
t
|
|
24
|
+
} = (0, _reactI18next.useTranslation)();
|
|
25
|
+
if (!(packageMeta !== null && packageMeta !== void 0 && packageMeta.latest)) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
const {
|
|
29
|
+
dist,
|
|
30
|
+
license
|
|
31
|
+
} = packageMeta.latest;
|
|
32
|
+
if (!dist && !license) {
|
|
25
33
|
return null;
|
|
26
34
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
license = _ref3.license;
|
|
30
|
-
return /*#__PURE__*/_react["default"].createElement(_List["default"], {
|
|
31
|
-
subheader: /*#__PURE__*/_react["default"].createElement(_styles.StyledText, {
|
|
35
|
+
return /*#__PURE__*/_react.default.createElement(_List.default, {
|
|
36
|
+
subheader: /*#__PURE__*/_react.default.createElement(_styles.StyledText, {
|
|
32
37
|
variant: "subtitle1"
|
|
33
38
|
}, t('sidebar.distribution.title'))
|
|
34
|
-
}, /*#__PURE__*/_react
|
|
39
|
+
}, /*#__PURE__*/_react.default.createElement(_styles.DistListItem, null, (dist === null || dist === void 0 ? void 0 : dist.fileCount) && /*#__PURE__*/_react.default.createElement(DistChip, {
|
|
35
40
|
name: t('sidebar.distribution.file-count')
|
|
36
|
-
},
|
|
41
|
+
}, `${dist.fileCount}`), dist !== null && dist !== void 0 && dist.unpackedSize ? /*#__PURE__*/_react.default.createElement(DistChip, {
|
|
37
42
|
name: t('sidebar.distribution.size')
|
|
38
|
-
}, (0, _utils.fileSizeSI)(dist.unpackedSize)) : null, /*#__PURE__*/_react
|
|
43
|
+
}, (0, _utils.fileSizeSI)(dist.unpackedSize)) : null, /*#__PURE__*/_react.default.createElement(DistChip, {
|
|
39
44
|
name: t('sidebar.distribution.license')
|
|
40
45
|
}, (0, _utils.formatLicense)(license))));
|
|
41
46
|
};
|
|
42
47
|
var _default = Dist;
|
|
43
|
-
exports
|
|
48
|
+
exports.default = _default;
|
|
44
49
|
//# sourceMappingURL=Dist.js.map
|
|
@@ -5,10 +5,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
Object.defineProperty(exports, "default", {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: function
|
|
9
|
-
return _Dist
|
|
8
|
+
get: function () {
|
|
9
|
+
return _Dist.default;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
var _Dist = _interopRequireDefault(require("./Dist"));
|
|
13
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -9,14 +9,14 @@ var _Chip = _interopRequireDefault(require("@mui/material/Chip"));
|
|
|
9
9
|
var _Fab = _interopRequireDefault(require("@mui/material/Fab"));
|
|
10
10
|
var _ListItem = _interopRequireDefault(require("@mui/material/ListItem"));
|
|
11
11
|
var _Typography = _interopRequireDefault(require("@mui/material/Typography"));
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
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)."; }
|
|
14
|
-
|
|
14
|
+
const StyledText = /*#__PURE__*/(0, _base.default)(_Typography.default, process.env.NODE_ENV === "production" ? {
|
|
15
15
|
target: "e1mn5d923"
|
|
16
16
|
} : {
|
|
17
17
|
target: "e1mn5d923",
|
|
18
18
|
label: "StyledText"
|
|
19
|
-
})(
|
|
19
|
+
})(props => {
|
|
20
20
|
var _props$theme;
|
|
21
21
|
return {
|
|
22
22
|
fontWeight: (_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.fontWeight.bold,
|
|
@@ -24,7 +24,7 @@ var StyledText = /*#__PURE__*/(0, _base["default"])(_Typography["default"], proc
|
|
|
24
24
|
};
|
|
25
25
|
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0Rpc3RyaWJ1dGlvbi9zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBUTBCIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0Rpc3RyaWJ1dGlvbi9zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgQ2hpcCBmcm9tICdAbXVpL21hdGVyaWFsL0NoaXAnO1xuaW1wb3J0IEZhYk1VSSBmcm9tICdAbXVpL21hdGVyaWFsL0ZhYic7XG5pbXBvcnQgTGlzdEl0ZW0gZnJvbSAnQG11aS9tYXRlcmlhbC9MaXN0SXRlbSc7XG5pbXBvcnQgVHlwb2dyYXBoeSBmcm9tICdAbXVpL21hdGVyaWFsL1R5cG9ncmFwaHknO1xuXG5pbXBvcnQgeyBUaGVtZSB9IGZyb20gJy4uLy4uL1RoZW1lJztcblxuZXhwb3J0IGNvbnN0IFN0eWxlZFRleHQgPSBzdHlsZWQoVHlwb2dyYXBoeSk8eyB0aGVtZT86IFRoZW1lIH0+KChwcm9wcykgPT4gKHtcbiAgZm9udFdlaWdodDogcHJvcHMudGhlbWU/LmZvbnRXZWlnaHQuYm9sZCxcbiAgdGV4dFRyYW5zZm9ybTogJ2NhcGl0YWxpemUnLFxufSkpO1xuXG5leHBvcnQgY29uc3QgRGlzdExpc3RJdGVtID0gc3R5bGVkKExpc3RJdGVtKSh7XG4gIHBhZGRpbmdMZWZ0OiAwLFxuICBwYWRkaW5nUmlnaHQ6IDAsXG4gIGZsZXhXcmFwOiAnd3JhcCcsXG59KTtcblxuZXhwb3J0IGNvbnN0IERpc3RDaGlwcyA9IHN0eWxlZChDaGlwKSh7XG4gIG1hcmdpblJpZ2h0OiA1LFxuICB0ZXh0VHJhbnNmb3JtOiAnY2FwaXRhbGl6ZScsXG4gIG1hcmdpblRvcDogNSxcbn0pO1xuXG5leHBvcnQgY29uc3QgRG93bmxvYWRCdXR0b24gPSBzdHlsZWQoRmFiTVVJKTx7IHRoZW1lPzogVGhlbWUgfT4oKHByb3BzKSA9PiAoe1xuICBiYWNrZ3JvdW5kQ29sb3I6IHByb3BzLnRoZW1lPy5wYWxldHRlLnByaW1hcnkubWFpbixcbiAgY29sb3I6IHByb3BzLnRoZW1lPy5wYWxldHRlLndoaXRlLFxufSkpO1xuIl19 */");
|
|
26
26
|
exports.StyledText = StyledText;
|
|
27
|
-
|
|
27
|
+
const DistListItem = /*#__PURE__*/(0, _base.default)(_ListItem.default, process.env.NODE_ENV === "production" ? {
|
|
28
28
|
target: "e1mn5d922"
|
|
29
29
|
} : {
|
|
30
30
|
target: "e1mn5d922",
|
|
@@ -39,7 +39,7 @@ var DistListItem = /*#__PURE__*/(0, _base["default"])(_ListItem["default"], proc
|
|
|
39
39
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
40
40
|
});
|
|
41
41
|
exports.DistListItem = DistListItem;
|
|
42
|
-
|
|
42
|
+
const DistChips = /*#__PURE__*/(0, _base.default)(_Chip.default, process.env.NODE_ENV === "production" ? {
|
|
43
43
|
target: "e1mn5d921"
|
|
44
44
|
} : {
|
|
45
45
|
target: "e1mn5d921",
|
|
@@ -54,12 +54,12 @@ var DistChips = /*#__PURE__*/(0, _base["default"])(_Chip["default"], process.env
|
|
|
54
54
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
55
55
|
});
|
|
56
56
|
exports.DistChips = DistChips;
|
|
57
|
-
|
|
57
|
+
const DownloadButton = /*#__PURE__*/(0, _base.default)(_Fab.default, process.env.NODE_ENV === "production" ? {
|
|
58
58
|
target: "e1mn5d920"
|
|
59
59
|
} : {
|
|
60
60
|
target: "e1mn5d920",
|
|
61
61
|
label: "DownloadButton"
|
|
62
|
-
})(
|
|
62
|
+
})(props => {
|
|
63
63
|
var _props$theme2, _props$theme3;
|
|
64
64
|
return {
|
|
65
65
|
backgroundColor: (_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.palette.primary.main,
|
|
@@ -10,7 +10,6 @@ exports.formatLicense = formatLicense;
|
|
|
10
10
|
* @see https://docs.npmjs.com/files/package.json#license
|
|
11
11
|
*/
|
|
12
12
|
// License should use type License defined above, but conflicts with the unit test that provide array or empty object
|
|
13
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
14
13
|
function formatLicense(license) {
|
|
15
14
|
if (typeof license === 'string') {
|
|
16
15
|
return license;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _utils = require("./utils");
|
|
4
|
+
test('formatLicense as string', () => {
|
|
5
|
+
expect((0, _utils.formatLicense)('MIT')).toEqual('MIT');
|
|
6
|
+
});
|
|
7
|
+
test('formatLicense as format object', () => {
|
|
8
|
+
expect((0, _utils.formatLicense)({
|
|
9
|
+
type: 'MIT'
|
|
10
|
+
})).toEqual('MIT');
|
|
11
|
+
});
|
|
12
|
+
test('fileSizeSI as number 1000', () => {
|
|
13
|
+
expect((0, _utils.fileSizeSI)(1000)).toEqual('1.00 kB');
|
|
14
|
+
});
|
|
15
|
+
test('fileSizeSI as number 0', () => {
|
|
16
|
+
expect((0, _utils.fileSizeSI)(0)).toEqual('0.00 Bytes');
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=utilts.spec.js.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.default = void 0;
|
|
7
7
|
var _Avatar = _interopRequireDefault(require("@mui/material/Avatar"));
|
|
8
8
|
var _Grid = _interopRequireDefault(require("@mui/material/Grid"));
|
|
9
9
|
var _List = _interopRequireDefault(require("@mui/material/List"));
|
|
@@ -12,65 +12,75 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
12
12
|
var _reactI18next = require("react-i18next");
|
|
13
13
|
var _Icons = require("../Icons");
|
|
14
14
|
var _styles = require("./styles");
|
|
15
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
+
/**
|
|
17
|
+
* The props type for {@link EngineItem}.
|
|
18
|
+
*/
|
|
19
|
+
|
|
16
20
|
/**
|
|
17
21
|
*
|
|
18
22
|
*
|
|
19
23
|
* @category Component
|
|
20
24
|
*/
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
25
|
+
const EngineItem = ({
|
|
26
|
+
title,
|
|
27
|
+
element,
|
|
28
|
+
engineText
|
|
29
|
+
}) => /*#__PURE__*/_react.default.createElement(_Grid.default, {
|
|
30
|
+
item: true,
|
|
31
|
+
xs: 6
|
|
32
|
+
}, /*#__PURE__*/_react.default.createElement(_List.default, {
|
|
33
|
+
subheader: /*#__PURE__*/_react.default.createElement(_styles.StyledText, {
|
|
34
|
+
variant: 'subtitle1'
|
|
35
|
+
}, title)
|
|
36
|
+
}, /*#__PURE__*/_react.default.createElement(_styles.EngineListItem, null, /*#__PURE__*/_react.default.createElement(_Avatar.default, {
|
|
37
|
+
sx: {
|
|
38
|
+
bgcolor: '#FFF'
|
|
39
|
+
}
|
|
40
|
+
}, element), /*#__PURE__*/_react.default.createElement(_ListItemText.default, {
|
|
41
|
+
primary: engineText
|
|
42
|
+
}))));
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* The props type for {@link Engine}.
|
|
46
|
+
*/
|
|
47
|
+
|
|
40
48
|
/**
|
|
41
49
|
*
|
|
42
50
|
*
|
|
43
51
|
* @category Component
|
|
44
52
|
*/
|
|
45
|
-
|
|
53
|
+
const Engine = ({
|
|
54
|
+
packageMeta
|
|
55
|
+
}) => {
|
|
46
56
|
var _packageMeta$latest;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
57
|
+
const {
|
|
58
|
+
t
|
|
59
|
+
} = (0, _reactI18next.useTranslation)();
|
|
60
|
+
const engines = packageMeta === null || packageMeta === void 0 ? void 0 : (_packageMeta$latest = packageMeta.latest) === null || _packageMeta$latest === void 0 ? void 0 : _packageMeta$latest.engines;
|
|
51
61
|
if (!engines) {
|
|
52
62
|
return null;
|
|
53
63
|
}
|
|
54
|
-
return /*#__PURE__*/_react
|
|
64
|
+
return /*#__PURE__*/_react.default.createElement(_Grid.default, {
|
|
55
65
|
container: true
|
|
56
|
-
}, engines.node ? /*#__PURE__*/_react
|
|
57
|
-
element: /*#__PURE__*/_react
|
|
66
|
+
}, engines.node ? /*#__PURE__*/_react.default.createElement(EngineItem, {
|
|
67
|
+
element: /*#__PURE__*/_react.default.createElement(_Icons.NodeJS, null),
|
|
58
68
|
engineText: engines.node,
|
|
59
69
|
title: t('sidebar.engines.node-js')
|
|
60
|
-
}) : null, engines.npm ? /*#__PURE__*/_react
|
|
61
|
-
element: /*#__PURE__*/_react
|
|
70
|
+
}) : null, engines.npm ? /*#__PURE__*/_react.default.createElement(EngineItem, {
|
|
71
|
+
element: /*#__PURE__*/_react.default.createElement(_Icons.Npm, null),
|
|
62
72
|
engineText: engines.node,
|
|
63
73
|
title: t('sidebar.engines.npm-version')
|
|
64
|
-
}) : null, engines.yarn ? /*#__PURE__*/_react
|
|
65
|
-
element: /*#__PURE__*/_react
|
|
74
|
+
}) : null, engines.yarn ? /*#__PURE__*/_react.default.createElement(EngineItem, {
|
|
75
|
+
element: /*#__PURE__*/_react.default.createElement(_Icons.Yarn, null),
|
|
66
76
|
engineText: engines.yarn,
|
|
67
77
|
title: t('sidebar.engines.npm-version')
|
|
68
|
-
}) : null, engines.pnpm ? /*#__PURE__*/_react
|
|
69
|
-
element: /*#__PURE__*/_react
|
|
78
|
+
}) : null, engines.pnpm ? /*#__PURE__*/_react.default.createElement(EngineItem, {
|
|
79
|
+
element: /*#__PURE__*/_react.default.createElement(_Icons.Pnpm, null),
|
|
70
80
|
engineText: engines.pnpm,
|
|
71
81
|
title: t('sidebar.engines.npm-version')
|
|
72
82
|
}) : null);
|
|
73
83
|
};
|
|
74
84
|
var _default = Engine;
|
|
75
|
-
exports
|
|
85
|
+
exports.default = _default;
|
|
76
86
|
//# sourceMappingURL=Engines.js.map
|
|
@@ -5,10 +5,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
Object.defineProperty(exports, "default", {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: function
|
|
9
|
-
return _Engines
|
|
8
|
+
get: function () {
|
|
9
|
+
return _Engines.default;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
var _Engines = _interopRequireDefault(require("./Engines"));
|
|
13
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -7,14 +7,14 @@ exports.StyledText = exports.EngineListItem = void 0;
|
|
|
7
7
|
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
8
8
|
var _ListItem = _interopRequireDefault(require("@mui/material/ListItem"));
|
|
9
9
|
var _Typography = _interopRequireDefault(require("@mui/material/Typography"));
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
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)."; }
|
|
12
|
-
|
|
12
|
+
const StyledText = /*#__PURE__*/(0, _base.default)(_Typography.default, process.env.NODE_ENV === "production" ? {
|
|
13
13
|
target: "exjcs7c1"
|
|
14
14
|
} : {
|
|
15
15
|
target: "exjcs7c1",
|
|
16
16
|
label: "StyledText"
|
|
17
|
-
})(
|
|
17
|
+
})(props => {
|
|
18
18
|
var _props$theme;
|
|
19
19
|
return {
|
|
20
20
|
fontWeight: (_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.fontWeight.bold,
|
|
@@ -22,7 +22,7 @@ var StyledText = /*#__PURE__*/(0, _base["default"])(_Typography["default"], proc
|
|
|
22
22
|
};
|
|
23
23
|
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0VuZ2luZXMvc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQU0wQiIsImZpbGUiOiIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9FbmdpbmVzL3N0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCBMaXN0SXRlbSBmcm9tICdAbXVpL21hdGVyaWFsL0xpc3RJdGVtJztcbmltcG9ydCBUeXBvZ3JhcGh5IGZyb20gJ0BtdWkvbWF0ZXJpYWwvVHlwb2dyYXBoeSc7XG5cbmltcG9ydCB7IFRoZW1lIH0gZnJvbSAnLi4vLi4vVGhlbWUnO1xuXG5leHBvcnQgY29uc3QgU3R5bGVkVGV4dCA9IHN0eWxlZChUeXBvZ3JhcGh5KTx7IHRoZW1lPzogVGhlbWUgfT4oKHByb3BzKSA9PiAoe1xuICBmb250V2VpZ2h0OiBwcm9wcy50aGVtZT8uZm9udFdlaWdodC5ib2xkLFxuICB0ZXh0VHJhbnNmb3JtOiAnY2FwaXRhbGl6ZScsXG59KSk7XG5cbmV4cG9ydCBjb25zdCBFbmdpbmVMaXN0SXRlbSA9IHN0eWxlZChMaXN0SXRlbSkoe1xuICBwYWRkaW5nTGVmdDogMCxcbn0pO1xuIl19 */");
|
|
24
24
|
exports.StyledText = StyledText;
|
|
25
|
-
|
|
25
|
+
const EngineListItem = /*#__PURE__*/(0, _base.default)(_ListItem.default, process.env.NODE_ENV === "production" ? {
|
|
26
26
|
target: "exjcs7c0"
|
|
27
27
|
} : {
|
|
28
28
|
target: "exjcs7c0",
|
|
@@ -1,63 +1,42 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
|
-
exports
|
|
6
|
+
exports.default = void 0;
|
|
8
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function
|
|
10
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null ||
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
16
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
17
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
18
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
19
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
20
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
21
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
22
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
23
|
-
var ErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
24
|
-
_inherits(ErrorBoundary, _Component);
|
|
25
|
-
var _super = _createSuper(ErrorBoundary);
|
|
26
|
-
function ErrorBoundary(props) {
|
|
27
|
-
var _this;
|
|
28
|
-
_classCallCheck(this, ErrorBoundary);
|
|
29
|
-
_this = _super.call(this, props);
|
|
30
|
-
_this.state = {
|
|
8
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
9
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
10
|
+
class ErrorBoundary extends _react.Component {
|
|
11
|
+
constructor(props) {
|
|
12
|
+
super(props);
|
|
13
|
+
this.state = {
|
|
31
14
|
hasError: false,
|
|
32
15
|
error: null,
|
|
33
16
|
info: null
|
|
34
17
|
};
|
|
35
|
-
return _this;
|
|
36
18
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("h1", null, 'Something went wrong.'), /*#__PURE__*/_react["default"].createElement("p", null, "error: ".concat(error)), /*#__PURE__*/_react["default"].createElement("p", null, "info: ".concat(JSON.stringify(info))));
|
|
56
|
-
}
|
|
57
|
-
return children;
|
|
19
|
+
componentDidCatch(error, info) {
|
|
20
|
+
this.setState({
|
|
21
|
+
hasError: true,
|
|
22
|
+
error,
|
|
23
|
+
info
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
render() {
|
|
27
|
+
const {
|
|
28
|
+
hasError,
|
|
29
|
+
error,
|
|
30
|
+
info
|
|
31
|
+
} = this.state;
|
|
32
|
+
const {
|
|
33
|
+
children
|
|
34
|
+
} = this.props;
|
|
35
|
+
if (hasError) {
|
|
36
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("h1", null, 'Something went wrong.'), /*#__PURE__*/_react.default.createElement("p", null, `error: ${error}`), /*#__PURE__*/_react.default.createElement("p", null, `info: ${JSON.stringify(info)}`));
|
|
58
37
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
exports
|
|
38
|
+
return children;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.default = ErrorBoundary;
|
|
63
42
|
//# sourceMappingURL=ErrorBoundary.js.map
|
|
@@ -5,10 +5,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
Object.defineProperty(exports, "default", {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: function
|
|
9
|
-
return _ErrorBoundary
|
|
8
|
+
get: function () {
|
|
9
|
+
return _ErrorBoundary.default;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
var _ErrorBoundary = _interopRequireDefault(require("./ErrorBoundary"));
|
|
13
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.default = void 0;
|
|
7
7
|
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
8
8
|
var _Favorite = _interopRequireDefault(require("@mui/icons-material/Favorite"));
|
|
9
9
|
var _Button = _interopRequireDefault(require("@mui/material/Button"));
|
|
@@ -11,34 +11,32 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
11
11
|
var _reactI18next = require("react-i18next");
|
|
12
12
|
var _utils = require("../../utils");
|
|
13
13
|
var _Link = require("../Link");
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
15
|
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)."; }
|
|
16
|
-
|
|
16
|
+
const StyledLink = /*#__PURE__*/(0, _base.default)(_Link.Link, process.env.NODE_ENV === "production" ? {
|
|
17
17
|
target: "e1lzdgus2"
|
|
18
18
|
} : {
|
|
19
19
|
target: "e1lzdgus2",
|
|
20
20
|
label: "StyledLink"
|
|
21
|
-
})(
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
var StyledFavoriteIcon = /*#__PURE__*/(0, _base["default"])(_Favorite["default"], process.env.NODE_ENV === "production" ? {
|
|
21
|
+
})(({
|
|
22
|
+
theme
|
|
23
|
+
}) => ({
|
|
24
|
+
marginTop: theme === null || theme === void 0 ? void 0 : theme.spacing(1),
|
|
25
|
+
marginBottom: theme === null || theme === void 0 ? void 0 : theme.spacing(1),
|
|
26
|
+
textDecoration: 'none',
|
|
27
|
+
display: 'block'
|
|
28
|
+
}), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0Z1bmRCdXR0b24vRnVuZEJ1dHRvbi50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBVW1CIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0Z1bmRCdXR0b24vRnVuZEJ1dHRvbi50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgRmF2b3JpdGUgZnJvbSAnQG11aS9pY29ucy1tYXRlcmlhbC9GYXZvcml0ZSc7XG5pbXBvcnQgQnV0dG9uIGZyb20gJ0BtdWkvbWF0ZXJpYWwvQnV0dG9uJztcbmltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBUcmFucyB9IGZyb20gJ3JlYWN0LWkxOG5leHQnO1xuXG5pbXBvcnQgeyBUaGVtZSB9IGZyb20gJy4uLy4uL1RoZW1lJztcbmltcG9ydCB7IHVybCB9IGZyb20gJy4uLy4uL3V0aWxzJztcbmltcG9ydCB7IExpbmsgfSBmcm9tICcuLi9MaW5rJztcblxuY29uc3QgU3R5bGVkTGluayA9IHN0eWxlZChMaW5rKTx7IHRoZW1lPzogVGhlbWUgfT4oKHsgdGhlbWUgfSkgPT4gKHtcbiAgbWFyZ2luVG9wOiB0aGVtZT8uc3BhY2luZygxKSxcbiAgbWFyZ2luQm90dG9tOiB0aGVtZT8uc3BhY2luZygxKSxcbiAgdGV4dERlY29yYXRpb246ICdub25lJyxcbiAgZGlzcGxheTogJ2Jsb2NrJyxcbn0pKTtcblxuY29uc3QgU3R5bGVkRmF2b3JpdGVJY29uID0gc3R5bGVkKEZhdm9yaXRlKTx7IHRoZW1lPzogVGhlbWUgfT4oKHsgdGhlbWUgfSkgPT4gKHtcbiAgY29sb3I6IHRoZW1lPy5wYWxldHRlLm9yYW5nZSxcbn0pKTtcblxuY29uc3QgU3R5bGVkRnVuZFN0cm9uZyA9IHN0eWxlZCgnc3Ryb25nJykoe1xuICBtYXJnaW5SaWdodDogMyxcbn0pO1xuXG4vKiBlc2xpbnQtZGlzYWJsZSByZWFjdC9qc3gtbm8tYmluZCAqL1xuY29uc3QgRnVuZEJ1dHRvbjogUmVhY3QuRkM8eyBwYWNrYWdlTWV0YTogYW55IH0+ID0gKHsgcGFja2FnZU1ldGEgfSkgPT4ge1xuICBjb25zdCBmdW5kaW5nVXJsID0gcGFja2FnZU1ldGE/LmxhdGVzdD8uZnVuZGluZz8udXJsIGFzIHN0cmluZztcblxuICBpZiAoIXVybC5pc1VSTChmdW5kaW5nVXJsKSkge1xuICAgIHJldHVybiBudWxsO1xuICB9XG5cbiAgcmV0dXJuIChcbiAgICA8U3R5bGVkTGluayBleHRlcm5hbD17dHJ1ZX0gdG89e2Z1bmRpbmdVcmx9IHZhcmlhbnQ9XCJidXR0b25cIj5cbiAgICAgIDxCdXR0b25cbiAgICAgICAgY29sb3I9XCJwcmltYXJ5XCJcbiAgICAgICAgZnVsbFdpZHRoPXt0cnVlfVxuICAgICAgICBzdGFydEljb249ezxTdHlsZWRGYXZvcml0ZUljb24gLz59XG4gICAgICAgIHZhcmlhbnQ9XCJvdXRsaW5lZFwiXG4gICAgICA+XG4gICAgICAgIDxUcmFucyBjb21wb25lbnRzPXtbPFN0eWxlZEZ1bmRTdHJvbmcga2V5PVwiZnVuZFwiIC8+XX0gaTE4bktleT1cImJ1dHRvbi5mdW5kLXRoaXMtcGFja2FnZVwiIC8+XG4gICAgICA8L0J1dHRvbj5cbiAgICA8L1N0eWxlZExpbms+XG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBGdW5kQnV0dG9uO1xuIl19 */");
|
|
29
|
+
const StyledFavoriteIcon = /*#__PURE__*/(0, _base.default)(_Favorite.default, process.env.NODE_ENV === "production" ? {
|
|
31
30
|
target: "e1lzdgus1"
|
|
32
31
|
} : {
|
|
33
32
|
target: "e1lzdgus1",
|
|
34
33
|
label: "StyledFavoriteIcon"
|
|
35
|
-
})(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
var StyledFundStrong = /*#__PURE__*/(0, _base["default"])('strong', process.env.NODE_ENV === "production" ? {
|
|
34
|
+
})(({
|
|
35
|
+
theme
|
|
36
|
+
}) => ({
|
|
37
|
+
color: theme === null || theme === void 0 ? void 0 : theme.palette.orange
|
|
38
|
+
}), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0Z1bmRCdXR0b24vRnVuZEJ1dHRvbi50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBaUIyQiIsImZpbGUiOiIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9GdW5kQnV0dG9uL0Z1bmRCdXR0b24udHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IEZhdm9yaXRlIGZyb20gJ0BtdWkvaWNvbnMtbWF0ZXJpYWwvRmF2b3JpdGUnO1xuaW1wb3J0IEJ1dHRvbiBmcm9tICdAbXVpL21hdGVyaWFsL0J1dHRvbic7XG5pbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsgVHJhbnMgfSBmcm9tICdyZWFjdC1pMThuZXh0JztcblxuaW1wb3J0IHsgVGhlbWUgfSBmcm9tICcuLi8uLi9UaGVtZSc7XG5pbXBvcnQgeyB1cmwgfSBmcm9tICcuLi8uLi91dGlscyc7XG5pbXBvcnQgeyBMaW5rIH0gZnJvbSAnLi4vTGluayc7XG5cbmNvbnN0IFN0eWxlZExpbmsgPSBzdHlsZWQoTGluayk8eyB0aGVtZT86IFRoZW1lIH0+KCh7IHRoZW1lIH0pID0+ICh7XG4gIG1hcmdpblRvcDogdGhlbWU/LnNwYWNpbmcoMSksXG4gIG1hcmdpbkJvdHRvbTogdGhlbWU/LnNwYWNpbmcoMSksXG4gIHRleHREZWNvcmF0aW9uOiAnbm9uZScsXG4gIGRpc3BsYXk6ICdibG9jaycsXG59KSk7XG5cbmNvbnN0IFN0eWxlZEZhdm9yaXRlSWNvbiA9IHN0eWxlZChGYXZvcml0ZSk8eyB0aGVtZT86IFRoZW1lIH0+KCh7IHRoZW1lIH0pID0+ICh7XG4gIGNvbG9yOiB0aGVtZT8ucGFsZXR0ZS5vcmFuZ2UsXG59KSk7XG5cbmNvbnN0IFN0eWxlZEZ1bmRTdHJvbmcgPSBzdHlsZWQoJ3N0cm9uZycpKHtcbiAgbWFyZ2luUmlnaHQ6IDMsXG59KTtcblxuLyogZXNsaW50LWRpc2FibGUgcmVhY3QvanN4LW5vLWJpbmQgKi9cbmNvbnN0IEZ1bmRCdXR0b246IFJlYWN0LkZDPHsgcGFja2FnZU1ldGE6IGFueSB9PiA9ICh7IHBhY2thZ2VNZXRhIH0pID0+IHtcbiAgY29uc3QgZnVuZGluZ1VybCA9IHBhY2thZ2VNZXRhPy5sYXRlc3Q/LmZ1bmRpbmc/LnVybCBhcyBzdHJpbmc7XG5cbiAgaWYgKCF1cmwuaXNVUkwoZnVuZGluZ1VybCkpIHtcbiAgICByZXR1cm4gbnVsbDtcbiAgfVxuXG4gIHJldHVybiAoXG4gICAgPFN0eWxlZExpbmsgZXh0ZXJuYWw9e3RydWV9IHRvPXtmdW5kaW5nVXJsfSB2YXJpYW50PVwiYnV0dG9uXCI+XG4gICAgICA8QnV0dG9uXG4gICAgICAgIGNvbG9yPVwicHJpbWFyeVwiXG4gICAgICAgIGZ1bGxXaWR0aD17dHJ1ZX1cbiAgICAgICAgc3RhcnRJY29uPXs8U3R5bGVkRmF2b3JpdGVJY29uIC8+fVxuICAgICAgICB2YXJpYW50PVwib3V0bGluZWRcIlxuICAgICAgPlxuICAgICAgICA8VHJhbnMgY29tcG9uZW50cz17WzxTdHlsZWRGdW5kU3Ryb25nIGtleT1cImZ1bmRcIiAvPl19IGkxOG5LZXk9XCJidXR0b24uZnVuZC10aGlzLXBhY2thZ2VcIiAvPlxuICAgICAgPC9CdXR0b24+XG4gICAgPC9TdHlsZWRMaW5rPlxuICApO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgRnVuZEJ1dHRvbjtcbiJdfQ== */");
|
|
39
|
+
const StyledFundStrong = /*#__PURE__*/(0, _base.default)('strong', process.env.NODE_ENV === "production" ? {
|
|
42
40
|
target: "e1lzdgus0"
|
|
43
41
|
} : {
|
|
44
42
|
target: "e1lzdgus0",
|
|
@@ -54,29 +52,30 @@ var StyledFundStrong = /*#__PURE__*/(0, _base["default"])('strong', process.env.
|
|
|
54
52
|
});
|
|
55
53
|
|
|
56
54
|
/* eslint-disable react/jsx-no-bind */
|
|
57
|
-
|
|
55
|
+
const FundButton = ({
|
|
56
|
+
packageMeta
|
|
57
|
+
}) => {
|
|
58
58
|
var _packageMeta$latest, _packageMeta$latest$f;
|
|
59
|
-
|
|
60
|
-
var fundingUrl = packageMeta === null || packageMeta === void 0 ? void 0 : (_packageMeta$latest = packageMeta.latest) === null || _packageMeta$latest === void 0 ? void 0 : (_packageMeta$latest$f = _packageMeta$latest.funding) === null || _packageMeta$latest$f === void 0 ? void 0 : _packageMeta$latest$f.url;
|
|
59
|
+
const fundingUrl = packageMeta === null || packageMeta === void 0 ? void 0 : (_packageMeta$latest = packageMeta.latest) === null || _packageMeta$latest === void 0 ? void 0 : (_packageMeta$latest$f = _packageMeta$latest.funding) === null || _packageMeta$latest$f === void 0 ? void 0 : _packageMeta$latest$f.url;
|
|
61
60
|
if (!_utils.url.isURL(fundingUrl)) {
|
|
62
61
|
return null;
|
|
63
62
|
}
|
|
64
|
-
return /*#__PURE__*/_react
|
|
63
|
+
return /*#__PURE__*/_react.default.createElement(StyledLink, {
|
|
65
64
|
external: true,
|
|
66
65
|
to: fundingUrl,
|
|
67
66
|
variant: "button"
|
|
68
|
-
}, /*#__PURE__*/_react
|
|
67
|
+
}, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
69
68
|
color: "primary",
|
|
70
69
|
fullWidth: true,
|
|
71
|
-
startIcon: /*#__PURE__*/_react
|
|
70
|
+
startIcon: /*#__PURE__*/_react.default.createElement(StyledFavoriteIcon, null),
|
|
72
71
|
variant: "outlined"
|
|
73
|
-
}, /*#__PURE__*/_react
|
|
74
|
-
components: [/*#__PURE__*/_react
|
|
72
|
+
}, /*#__PURE__*/_react.default.createElement(_reactI18next.Trans, {
|
|
73
|
+
components: [/*#__PURE__*/_react.default.createElement(StyledFundStrong, {
|
|
75
74
|
key: "fund"
|
|
76
75
|
})],
|
|
77
76
|
i18nKey: "button.fund-this-package"
|
|
78
77
|
})));
|
|
79
78
|
};
|
|
80
79
|
var _default = FundButton;
|
|
81
|
-
exports
|
|
80
|
+
exports.default = _default;
|
|
82
81
|
//# sourceMappingURL=FundButton.js.map
|