From f88fa9326a676f97165508de4cc9797f8273c54b Mon Sep 17 00:00:00 2001 From: Vitor Gomes Date: Fri, 29 Jan 2021 17:56:51 -0300 Subject: [PATCH 01/10] Hide query string from the site editor top bar --- CHANGELOG.md | 32 +++++++++++++++++-- .../EditorContainer/StoreIframe.tsx | 9 +++++- .../Topbar/ContextSelectors/index.tsx | 2 +- .../EditorContainer/Topbar/UrlInput.tsx | 21 ++++++++++-- 4 files changed, 58 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4615c66f8..ccaacdd4c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,23 +7,38 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Fixed +- Block selector not working after a locale change + +### Added +- Block selector status(wait) + +### Changed +- Hides query strings from site editor top bar. + ## [4.40.0] - 2021-04-13 ### Fixed - File format disclaimer to both iOS and Android icons uploaded via the PWA section inside of Store settings page not added in some languages. ## [4.39.0] - 2021-04-05 + ### Added + - File format disclaimer to both iOS and Android icons uploaded via the PWA section inside of Store settings page. +## [4.37.0] - 2021-02-09 + +- Adds support for multi binding for redirect CSV managment + ## [4.38.1] - 2021-03-17 ### Fixed - I18n En, Es, Pt, Ro and Jp. - Context.json with new strings. -## [4.38.0] - 2021-03-08 +## [4.38.0] - 2021-03-08 ### Added @@ -32,20 +47,29 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Changed - I18n Ro. + ## [4.37.0] - 2021-02-09 + ### Added + - Support for multi binding for redirect CSV management. ## [4.36.1] - 2021-02-08 + ### Fixed + - Preventing unchanged information to be sent and updated as undefined in `admin-pages\Form\index` ## [4.36.0] - 2021-02-02 + ### Fixed + - Setting `Description` and `Keywords` as editable fields with the same condition as `Title` in `admin-pages` ## [4.35.0] - 2021-02-02 + ### Added + - Adds binding selector for CMS Redirects ## [4.34.0] - 2021-01-22 @@ -61,11 +85,15 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Site editor flag in the iframe URL. ## [4.32.0] - 2021-01-21 + ### Added -- Adds binding selector for CMS Pages + +- Adds binding selector for CMS Pages ## [4.31.1] - 2021-01-20 + ### Fixed + - Sending blockId in `Form index` component even when is not changed to prevent unexpected behaviors ## [4.31.0] - 2021-01-13 diff --git a/react/components/EditorContainer/StoreIframe.tsx b/react/components/EditorContainer/StoreIframe.tsx index fed233f5c..2a2049cdd 100644 --- a/react/components/EditorContainer/StoreIframe.tsx +++ b/react/components/EditorContainer/StoreIframe.tsx @@ -32,11 +32,18 @@ const StoreIframe: React.FunctionComponent = ({ path }) => { let src = path ? `/${path}` : '/' + if (window?.location.search && !src.includes(window.location.search)) { + src = src + `${window.location.search}` + } + if (binding && !src.includes('__bindingAddress')) { + console.log('PASSOU') src += `${getJoiner(src)}__bindingAddress=${binding.canonicalBaseAddress}` } - src += `${getJoiner(src)}__siteEditor` + if (!src.includes('__siteEditor')) { + src += `${getJoiner(src)}__siteEditor=true` + } return (