diff --git a/CHANGELOG.md b/CHANGELOG.md index c6d63dd60..f41874076 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [3.4.2](https://github.com/Parsely/wp-parsely/compare/3.4.1...3.4.2) - 2022-07-07 + +### Fixed + +- Prevent Post Editor crash when the Content Helper is hidden and Options is clicked ([#964](https://github.com/Parsely/wp-parsely/pull/964)) + ## [3.4.1](https://github.com/Parsely/wp-parsely/compare/3.4.0...3.4.1) - 2022-07-06 ### Fixed diff --git a/README.md b/README.md index 1e69f1392..938e5cff5 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Parse.ly -Stable tag: 3.4.1 +Stable tag: 3.4.2 Requires at least: 5.0 Tested up to: 6.0 Requires PHP: 7.1 diff --git a/build/blocks/recommendations/edit.asset.php b/build/blocks/recommendations/edit.asset.php index 688e5788b..be45e9abd 100644 --- a/build/blocks/recommendations/edit.asset.php +++ b/build/blocks/recommendations/edit.asset.php @@ -1 +1 @@ - array('react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => '3e3314fba6773e7b1934'); + array('react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => '58d00a248c9caf6894c8'); diff --git a/build/blocks/recommendations/edit.js b/build/blocks/recommendations/edit.js index e9a5cf586..474fa5af9 100644 --- a/build/blocks/recommendations/edit.js +++ b/build/blocks/recommendations/edit.js @@ -1 +1 @@ -!function(){"use strict";var e,r={719:function(e,r,t){var n=t(893),a=window.wp.i18n,o=window.wp.blocks,i=window.wp.blockEditor;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}var s=window.wp.apiFetch,c=t.n(s),u=window.wp.compose,p=window.wp.element,f=window.wp.url,d="RECOMMENDATIONS_BLOCK_ERROR",y="RECOMMENDATIONS_BLOCK_RECOMMENDATIONS";function m(){return m=Object.assign||function(e){for(var r=1;re.length)&&(r=e.length);for(var t=0,n=new Array(r);t0&&a[a.length-1])||6!==o[0]&&2!==o[0])){i=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]=o)&&Object.keys(n.O).every((function(e){return n.O[e](t[s])}))?t.splice(s--,1):(l=!1,o0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[t,a,o]},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,{a:r}),r},n.d=function(e,r){for(var t in r)n.o(r,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},function(){var e={878:0,570:0};n.O.j=function(r){return 0===e[r]};var r=function(r,t){var a,o,i=t[0],l=t[1],s=t[2],c=0;if(i.some((function(r){return 0!==e[r]}))){for(a in l)n.o(l,a)&&(n.m[a]=l[a]);if(s)var u=s(n)}for(r&&r(t);ce.length)&&(r=e.length);for(var t=0,n=new Array(r);t0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]=a)&&Object.keys(n.O).every((function(e){return n.O[e](t[s])}))?t.splice(s--,1):(l=!1,a0&&e[u-1][2]>a;u--)e[u]=e[u-1];e[u]=[t,o,a]},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,{a:r}),r},n.d=function(e,r){for(var t in r)n.o(r,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},function(){var e={878:0,570:0};n.O.j=function(r){return 0===e[r]};var r=function(r,t){var o,a,i=t[0],l=t[1],s=t[2],c=0;if(i.some((function(r){return 0!==e[r]}))){for(o in l)n.o(l,o)&&(n.m[o]=l[o]);if(s)var u=s(n)}for(r&&r(t);c array('react', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-url'), 'version' => 'c7233ecbc5ea62b8dc50'); + array('react', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-url'), 'version' => '20bfb858ec3af61f1148'); diff --git a/build/content-helper.js b/build/content-helper.js index b9881acc8..e5c8e2c5d 100644 --- a/build/content-helper.js +++ b/build/content-helper.js @@ -1 +1 @@ -!function(){"use strict";var e={418:function(e){var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,a){for(var c,s,i=o(e),l=1;l0&&o[o.length-1])||6!==a[0]&&2!==a[0])){c=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]0&&o[o.length-1])||6!==a[0]&&2!==a[0])){c=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]0?[4,new Promise((function(e){return setTimeout(e,500)}))]:[3,3];case 1:return e.sent(),[4,t(r-1)];case 2:return e.sent(),[3,4];case 3:o(!1),l(n),e.label=4;case 4:return[2]}}))}))})),[2]}))}))}(3)}),[]),s)return(0,n.jsx)("p",{children:s});var m=d.map((function(e){return(0,n.jsx)(g,{post:e},e.id)}));return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{children:p}),r?(0,n.jsx)(a.Spinner,{}):m]})},_=r(196);function j(){return j=Object.assign||function(e){for(var t=1;t0&&o[o.length-1])||6!==a[0]&&2!==a[0])){c=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]0&&o[o.length-1])||6!==a[0]&&2!==a[0])){c=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]0?[4,new Promise((function(e){return setTimeout(e,500)}))]:[3,3];case 1:return t.sent(),[4,e(r-1)];case 2:return t.sent(),[3,4];case 3:c(!1),l(n),t.label=4;case 4:return[2]}}))}))})),[2]}))}))}(3)}),[]),i)return(0,e.jsx)("p",{children:i});var m=g.map((function(t){return(0,e.jsx)(d,{post:t},t.id)}));return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("p",{children:p}),o?(0,e.jsx)(r.Spinner,{}):m]})},g=function(){return g=Object.assign||function(e){for(var t,r=1,n=arguments.length;r ( - + } name="wp-parsely-sidebar" title="Parse.ly"> { __( 'Parse.ly Content Helper (Beta)', 'wp-parsely' ) } diff --git a/src/blocks/recommendations/edit.tsx b/src/blocks/recommendations/edit.tsx index a2f5317d7..b47e278b9 100644 --- a/src/blocks/recommendations/edit.tsx +++ b/src/blocks/recommendations/edit.tsx @@ -11,7 +11,7 @@ import { useBlockProps } from '@wordpress/block-editor'; import ParselyRecommendations from './components/parsely-recommendations'; import ParselyRecommendationsInspectorControls from './components/parsely-recommendations-inspector-controls'; import RecommendationsStore from './recommendations-store'; -import { ReactComponent as LeafIcon } from '../../img/parsely-logo.svg'; +import LeafIcon from '../shared/components/leaf-icon'; import './style.scss'; import './editor.scss'; import json from './block.json'; diff --git a/src/blocks/shared/components/leaf-icon.tsx b/src/blocks/shared/components/leaf-icon.tsx new file mode 100644 index 000000000..eec43d54d --- /dev/null +++ b/src/blocks/shared/components/leaf-icon.tsx @@ -0,0 +1,20 @@ +/** + * WordPress dependencies + */ +import { SVG, Path } from '@wordpress/components'; + +export const LeafIcon = () => ( + + + + + + +); + +export default LeafIcon; diff --git a/src/img/parsely-logo.svg b/src/img/parsely-logo.svg deleted file mode 100644 index 70e502943..000000000 --- a/src/img/parsely-logo.svg +++ /dev/null @@ -1 +0,0 @@ -Parse.ly Logo diff --git a/tests/e2e/utils.js b/tests/e2e/utils.js index 2512dd514..67cb1715f 100644 --- a/tests/e2e/utils.js +++ b/tests/e2e/utils.js @@ -1,6 +1,6 @@ import { activatePlugin, loginUser, visitAdminPage } from '@wordpress/e2e-test-utils'; -export const PLUGIN_VERSION = '3.4.1'; +export const PLUGIN_VERSION = '3.4.2'; export const waitForWpAdmin = () => page.waitForSelector( 'body.wp-admin' ); diff --git a/wp-parsely.php b/wp-parsely.php index e3fe87f89..2164c7d64 100644 --- a/wp-parsely.php +++ b/wp-parsely.php @@ -11,7 +11,7 @@ * Plugin Name: Parse.ly * Plugin URI: https://www.parse.ly/help/integration/wordpress * Description: This plugin makes it a snap to add Parse.ly tracking code and metadata to your WordPress blog. - * Version: 3.4.1 + * Version: 3.4.2 * Author: Parse.ly * Author URI: https://www.parse.ly * Text Domain: wp-parsely @@ -52,7 +52,7 @@ return; } -const PARSELY_VERSION = '3.4.1'; +const PARSELY_VERSION = '3.4.2'; const PARSELY_FILE = __FILE__; require __DIR__ . '/src/class-parsely.php';