@contentful/live-preview
Advanced tools
Comparing version 2.6.4 to 2.7.0
@@ -9,4 +9,4 @@ import { Argument } from '../types'; | ||
isREST: boolean; | ||
hasSys: boolean; | ||
sysId: string | null; | ||
isValid: boolean; | ||
}; |
@@ -1,2 +0,2 @@ | ||
import { C as E, L as a, a as o, b as t, P } from "./index-1a3c125e.js"; | ||
import { C as E, L as a, a as o, b as t, P } from "./index-5eeb6ee0.js"; | ||
export { | ||
@@ -3,0 +3,0 @@ E as ContentfulLivePreview, |
@@ -9,2 +9,3 @@ import { MessageFromEditor } from './messages'; | ||
}); | ||
getTaggedElements(): NodeListOf<Element>; | ||
receiveMessage(data: MessageFromEditor): void; | ||
@@ -11,0 +12,0 @@ private updateTooltipPosition; |
@@ -10,2 +10,3 @@ import type { RequestEntitiesMessage, RequestedEntitiesMessage } from '@contentful/visual-sdk'; | ||
DISCONNECTED = "DISCONNECTED", | ||
ERROR = "ERROR", | ||
/** | ||
@@ -37,4 +38,6 @@ * @deprecated use `LivePreviewPostMessageMethods.CONNECTED` instead | ||
connected: true; | ||
locale: string; | ||
/** @deprecated use taggedElementCount instead */ | ||
tags: number; | ||
locale: string; | ||
taggedElementCount: number; | ||
}; | ||
@@ -58,2 +61,3 @@ export type TaggedFieldClickMessage = { | ||
action: LivePreviewPostMessageMethods.URL_CHANGED; | ||
taggedElementCount: number; | ||
}; | ||
@@ -64,5 +68,14 @@ export type SubscribedMessage = { | ||
type: 'GQL' | 'REST'; | ||
entryId: string; | ||
locale: string; | ||
}; | ||
export type EditorMessage = ConnectedMessage | TaggedFieldClickMessage | UnknownEntityMessage | UrlChangedMessage | SubscribedMessage | RequestEntitiesMessage; | ||
export type ErrorMessage = { | ||
/** Error type */ | ||
type: string; | ||
/** Error message */ | ||
message: string; | ||
/** Additional information that could be helpful about this error (e.g. entryId) */ | ||
payload: Record<string, any>; | ||
}; | ||
export type EditorMessage = ConnectedMessage | TaggedFieldClickMessage | UnknownEntityMessage | UrlChangedMessage | SubscribedMessage | RequestEntitiesMessage | ErrorMessage; | ||
export type MessageFromSDK = EditorMessage & { | ||
@@ -69,0 +82,0 @@ method: PostMessageMethods; |
import Zr, { createContext as At, useRef as mr, useMemo as $r, useEffect as jt, useState as Dt, useContext as Qr, useCallback as It } from "react"; | ||
import { c as Er, g as Ft, C as Ur, d as Lt } from "./index-1a3c125e.js"; | ||
import { c as Er, g as Ft, C as Ur, d as Lt } from "./index-5eeb6ee0.js"; | ||
var Mr = { exports: {} }, Me = {}; | ||
@@ -4,0 +4,0 @@ /** |
{ | ||
"name": "@contentful/live-preview", | ||
"version": "2.6.4", | ||
"version": "2.7.0", | ||
"author": "Contentful GmbH", | ||
@@ -80,3 +80,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "8497219dd098f9e8844bb9bdbce5cec8b435801f" | ||
"gitHead": "c1cf941372bb6cff08c759459349c27183e4d475" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
711268
3363