@yoast/social-metadata-previews
Advanced tools
Comparing version 1.0.0-rc.9 to 1.0.0-rc.10
/* External dependencies */ | ||
import { SimulatedLabel } from "@yoast/components"; | ||
import React, { Component } from "react"; | ||
@@ -139,2 +140,3 @@ import PropTypes from "prop-types"; | ||
isLarge, | ||
socialPreviewLabel, | ||
} = this.props; | ||
@@ -150,2 +152,5 @@ | ||
<React.Fragment> | ||
{ socialPreviewLabel && <SimulatedLabel> | ||
{ socialPreviewLabel } | ||
</SimulatedLabel> } | ||
<this.SocialPreview | ||
@@ -214,2 +219,3 @@ onMouseHover={ this.setHoveredField } | ||
applyReplacementVariables: PropTypes.func, | ||
socialPreviewLabel: PropTypes.string, | ||
}; | ||
@@ -231,4 +237,5 @@ | ||
applyReplacementVariables: data => data, | ||
socialPreviewLabel: "", | ||
}; | ||
export default SocialPreviewEditor; |
{ | ||
"name": "@yoast/social-metadata-previews", | ||
"version": "1.0.0-rc.9", | ||
"version": "1.0.0-rc.10", | ||
"main": "index.js", | ||
@@ -40,3 +40,3 @@ "repository": { | ||
"@wordpress/i18n": "^1.1.0", | ||
"@yoast/replacement-variable-editor": "^1.0.0-rc.6", | ||
"@yoast/replacement-variable-editor": "^1.0.0-rc.7", | ||
"@yoast/style-guide": "^0.12.0-rc.5", | ||
@@ -54,3 +54,3 @@ "lodash": "^4.17.11", | ||
}, | ||
"gitHead": "b3acd2a426647c34cd23ed2ee24bac0a29535ff8" | ||
"gitHead": "11629a1e058afa398560600f0c1fed8703152448" | ||
} |
45172
1450