@contentful/experiences-sdk-react 1.8.0 → 1.8.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/src/sdkVersion.d.ts +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import * as Components from '@contentful/experiences-components-react';
|
|
|
9
9
|
import { ContentfulContainer, Columns, SingleColumn } from '@contentful/experiences-components-react';
|
|
10
10
|
import styleInject from 'style-inject';
|
|
11
11
|
|
|
12
|
-
const SDK_VERSION = '1.8.0';
|
|
12
|
+
const SDK_VERSION = '1.8.1-beta.0';
|
|
13
13
|
|
|
14
14
|
var util;
|
|
15
15
|
(function (util) {
|
|
@@ -5003,7 +5003,7 @@ const useDetectEditorMode = ({ isClientSide = false } = {}) => {
|
|
|
5003
5003
|
//Double check if we are in editor mode by listening to postMessage events
|
|
5004
5004
|
if (typeof window !== 'undefined' && !window.__EB__?.isEditorMode) {
|
|
5005
5005
|
window.addEventListener('message', onMessage);
|
|
5006
|
-
sendMessage(OUTGOING_EVENTS.Connected);
|
|
5006
|
+
sendMessage(OUTGOING_EVENTS.Connected, undefined);
|
|
5007
5007
|
sendMessage(OUTGOING_EVENTS.SDKFeatures, sdkFeatures);
|
|
5008
5008
|
setTimeout(() => {
|
|
5009
5009
|
if (!receivedMessage.current) {
|