@contentful/live-preview
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -1,2 +0,2 @@ | ||
import { C as t, I as o, L as E, a, b as i, V as n, u as I, c as r, o as p, f as R } from "./index-uAd7e2sU.js"; | ||
import { C as t, I as o, L as E, a, b as i, V as n, u as I, c as r, o as p, f as R } from "./index-CwzVTKzi.js"; | ||
export { | ||
@@ -3,0 +3,0 @@ t as ContentfulLivePreview, |
@@ -16,3 +16,2 @@ import type { ContentfulSubscribeConfig, MessageFromEditor } from './index.js'; | ||
receiveMessage(message: MessageFromEditor): Promise<void>; | ||
private sendErrorMessage; | ||
/** | ||
@@ -22,3 +21,3 @@ * Subscribe to data changes from the Editor, returns a function to unsubscribe | ||
*/ | ||
subscribe(originalConfig: ContentfulSubscribeConfig): VoidFunction; | ||
subscribe(config: ContentfulSubscribeConfig): VoidFunction; | ||
} |
@@ -31,4 +31,6 @@ import type { Asset, Entry } from 'contentful'; | ||
export type SubscribedMessage = { | ||
type: 'GQL' | 'REST'; | ||
sysIds: string[]; | ||
/** @deprecated */ | ||
type?: 'GQL' | 'REST'; | ||
/** @deprecated */ | ||
sysIds?: string[]; | ||
/** @deprecated use sysIds instead */ | ||
@@ -51,11 +53,3 @@ entryId?: string; | ||
}; | ||
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, unknown>; | ||
}; | ||
export type EditorMessage = ConnectedMessage | TaggedFieldClickMessage | UrlChangedMessage | SubscribedMessage | UnsubscribedMessage | ErrorMessage | InspectorModeMouseMoveMessage | InspectorModeScrollMessage | InspectorModeResizeMessage | InspectorModeTaggedElementsMessage; | ||
export type EditorMessage = ConnectedMessage | TaggedFieldClickMessage | UrlChangedMessage | SubscribedMessage | UnsubscribedMessage | InspectorModeMouseMoveMessage | InspectorModeScrollMessage | InspectorModeResizeMessage | InspectorModeTaggedElementsMessage; | ||
export type MessageFromSDK = EditorMessage & { | ||
@@ -62,0 +56,0 @@ method: PostMessageMethods; |
import Zr, { createContext as xt, useRef as mr, useMemo as $r, useEffect as jt, useState as Dt, useContext as Qr, useCallback as It } from "react"; | ||
import { C as Ur, d as Ft } from "./index-uAd7e2sU.js"; | ||
import { C as Ur, d as Ft } from "./index-CwzVTKzi.js"; | ||
var Er = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; | ||
@@ -4,0 +4,0 @@ function Lt(f) { |
@@ -19,4 +19,3 @@ import type { ContentTypeProps } from 'contentful-management'; | ||
callback: SubscribeCallback; | ||
sysIds: string[]; | ||
} | ||
export {}; |
{ | ||
"name": "@contentful/live-preview", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"author": "Contentful GmbH", | ||
@@ -75,3 +75,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "ad142dc12d2aa1b8cf13973db1aeb4eae1a1d544" | ||
"gitHead": "ac2c10830cb22ef3b95713558cd2b62cbd805799" | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
590346
35
2692