New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@mentor-medier/article-body-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/article-body-block - npm Package Compare versions

Comparing version 5.9.15 to 5.10.0

28

chains/article-body/default.jsx

@@ -8,7 +8,7 @@ import React, { Fragment } from 'react';

import getTranslatedPhrases from 'fusion:intl';
import VideoPlayer from '@wpmedia/video-player-block';
import {
Gallery, ImageMetadata, Image,
// presentational component does not do data fetching
VideoPlayer as VideoPlayerPresentational,
} from '@wpmedia/engine-theme-sdk';
import Blockquote from './_children/blockquote';

@@ -34,3 +34,3 @@ import Header from './_children/heading';

function parseArticleItem(item, index, arcSite, phrases) {
function parseArticleItem(item, index, arcSite, phrases, id) {
const {

@@ -68,2 +68,3 @@ _id: key = index, type, content,

resized_params: resizedImageOptions = {},
vanity_credits: vanityCredits,
} = item;

@@ -87,3 +88,8 @@

<figcaption>
<ImageMetadata subtitle={subtitle} caption={caption} credits={credits} />
<ImageMetadata
subtitle={subtitle}
caption={caption}
credits={credits}
vanityCredits={vanityCredits}
/>
</figcaption>

@@ -144,4 +150,4 @@ </figure>

<section className="correction">
<h6>{item.correction_type || 'Correction'}</h6>
<div>{item.text}</div>
<h2 className="h6-primary">{item.correction_type || 'Correction'}</h2>
<p>{item.text}</p>
</section>

@@ -185,3 +191,3 @@ </Fragment>

<section key={key} className="block-margin-bottom">
<VideoPlayer embedMarkup={item.embed_html} />
<VideoPlayerPresentational id={id} embedMarkup={item.embed_html} />
</section>

@@ -234,3 +240,5 @@ );

const ArticleBodyChain = ({ children }) => {
const { globalContent: items = {}, customFields = {}, arcSite } = useFusionContext();
const {
globalContent: items = {}, customFields = {}, arcSite, id,
} = useFusionContext();
const { content_elements: contentElements = [], location } = items;

@@ -266,3 +274,3 @@ const { elementPlacement: adPlacementConfigObj = {} } = customFields;

return [
parseArticleItem(contentElement, index, arcSite, phrases),
parseArticleItem(contentElement, index, arcSite, phrases, id),
...adsAfterParagraph.map((placement) => children[placement.feature - 1]),

@@ -273,3 +281,3 @@ ];

return parseArticleItem(contentElement, index, arcSite, phrases);
return parseArticleItem(contentElement, index, arcSite, phrases, id);
}));

@@ -276,0 +284,0 @@

@@ -6,2 +6,13 @@ # Change Log

## [5.9.2](https://github.com/WPMedia/fusion-news-theme-blocks/compare/v5.9.1...v5.9.2) (2021-01-14)
### Performance Improvements
* Remove chains' test files, especially header nav ([fa07cdd](https://github.com/WPMedia/fusion-news-theme-blocks/commit/fa07cddcf54a302aae3fbc58624c1571a56d6ab4))
## [5.9.1](https://github.com/WPMedia/fusion-news-theme-blocks/compare/v5.9.0...v5.9.1) (2020-12-16)

@@ -8,0 +19,0 @@

{
"name": "@mentor-medier/article-body-block",
"version": "5.9.15",
"version": "5.10.0",
"description": "Fusion News Theme article body block",

@@ -37,3 +37,3 @@ "author": "Brent Miller <brent.miller@washport.com>",

},
"gitHead": "d7550d1ab57f0b256e433c4902738a28e2322eba"
"gitHead": "a1e15e287ef31a6ef84a2d884bd2111defb74f3c"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc