Socket
Book a DemoInstallSign in
Socket

@mentor-medier/author-bio-block

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mentor-medier/author-bio-block - npm Package Compare versions

Comparing version

to
0.0.0-beta.196b73d

20

CHANGELOG.md

@@ -6,21 +6,21 @@ # Change Log

## [5.10.3](https://github.com/mentor-medier/fusion-news-theme-blocks/compare/v5.10.1...v5.10.3) (2021-03-12)
## [5.10.3](https://github.com/WPMedia/fusion-news-theme-blocks/compare/v5.10.3-hotfix.0...v5.10.3) (2021-04-13)
**Note:** Version bump only for package @wpmedia/author-bio-block
# [5.10.0](https://github.com/mentor-medier/fusion-news-theme-blocks/compare/v5.9.15...v5.10.0) (2021-02-17)
**Note:** Version bump only for package @mentor-medier/author-bio-block
## [5.10.2](https://github.com/WPMedia/fusion-news-theme-blocks/compare/v5.10.0...v5.10.2) (2021-03-30)
**Note:** Version bump only for package @wpmedia/author-bio-block
## [5.10.2](https://github.com/mentor-medier/fusion-news-theme-blocks/compare/v5.10.1...v5.10.2) (2021-03-12)
# [5.10.0](https://github.com/mentor-medier/fusion-news-theme-blocks/compare/v5.9.15...v5.10.0) (2021-02-17)
## [5.10.1](https://github.com/WPMedia/fusion-news-theme-blocks/compare/v5.10.0...v5.10.1) (2021-03-30)
**Note:** Version bump only for package @mentor-medier/author-bio-block
**Note:** Version bump only for package @wpmedia/author-bio-block

@@ -31,10 +31,2 @@

# [5.10.0](https://github.com/mentor-medier/fusion-news-theme-blocks/compare/v5.9.15...v5.10.0) (2021-02-17)
**Note:** Version bump only for package @mentor-medier/author-bio-block
## [5.9.2](https://github.com/WPMedia/fusion-news-theme-blocks/compare/v5.9.1...v5.9.2) (2021-01-14)

@@ -41,0 +33,0 @@

import React, { Fragment } from 'react';
import PropTypes from 'prop-types';
import { useFusionContext } from 'fusion:context';

@@ -22,2 +23,4 @@ import getThemeStyle from 'fusion:themes';

RssIcon,
LazyLoad,
isServerSide,
} from '@wpmedia/engine-theme-sdk';

@@ -87,3 +90,3 @@ import getProperties from 'fusion:properties';

const AuthorBio = () => {
const AuthorBioItems = () => {
const { globalContent: content, arcSite } = useFusionContext();

@@ -345,4 +348,26 @@ const { credits = {} } = content;

const AuthorBio = ({ customFields = {} }) => {
const { isAdmin } = useFusionContext();
if (customFields.lazyLoad && isServerSide() && !isAdmin) { // On Server
return null;
}
return (
<LazyLoad enabled={customFields.lazyLoad && !isAdmin}>
<AuthorBioItems customFields={{ ...customFields }} />
</LazyLoad>
);
};
AuthorBio.label = 'Short Author Bio – Arc Block';
AuthorBio.propTypes = {
customFields: PropTypes.shape({
lazyLoad: PropTypes.bool.tag({
name: 'Lazy Load block?',
defaultValue: false,
description: 'Turning on lazy-loading will prevent this block from being loaded on the page until it is nearly in-view for the user.',
}),
}),
};
export default AuthorBio;
{
"name": "@mentor-medier/author-bio-block",
"version": "0.0.0-beta.13c0a0f",
"version": "0.0.0-beta.196b73d",
"description": "Fusion News Theme byline block",

@@ -32,3 +32,3 @@ "author": "SangHee Kim <sanghee.kim@washpost.com>",

},
"gitHead": "13c0a0ff04be3038d0b37d195de2f3037a5c0f66"
"gitHead": "196b73d6ca0a537b52ca3b8ca0be903bf6f9281b"
}
SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.