@contentful/live-preview
Advanced tools
Comparing version 4.5.6 to 4.5.7
@@ -1,2 +0,2 @@ | ||
import { C as o, I as t, L as n, c as E, e as a, V as i, u as I, a as r, f as d, o as p, b as R } from "./index-BI1JEOp6.js"; | ||
import { C as o, I as t, L as n, c as E, e as a, V as i, u as I, a as r, f as d, o as p, b as R } from "./index-CqF6bdnZ.js"; | ||
export { | ||
@@ -3,0 +3,0 @@ o as ContentfulLivePreview, |
@@ -8,6 +8,12 @@ import { type SourceMapMetadata } from '@contentful/content-source-maps'; | ||
}; | ||
interface TaggedElement { | ||
interface PrecaulculatedTaggedElement { | ||
element: Element; | ||
attributes: InspectorModeAttributes | null; | ||
} | ||
export interface TaggedElement extends PrecaulculatedTaggedElement { | ||
isHovered: boolean; | ||
isVisible: boolean; | ||
coordinates: DOMRect; | ||
isCoveredByOtherElement: boolean; | ||
} | ||
/** | ||
@@ -30,3 +36,3 @@ * Parses the necessary manually tagged information from the element and returns them. | ||
}): { | ||
taggedElements: TaggedElement[]; | ||
taggedElements: PrecaulculatedTaggedElement[]; | ||
manuallyTaggedCount: number; | ||
@@ -42,2 +48,7 @@ automaticallyTaggedCount: number; | ||
}): string[]; | ||
/** | ||
* Applies the attributes that we cannot simply get from the tagged elements itself | ||
* but need to calculate based on the current state of the document | ||
*/ | ||
export declare const addCalculatedAttributesToTaggedElements: (taggedElements: PrecaulculatedTaggedElement[], root?: Document) => TaggedElement[]; | ||
export {}; |
import xe, { createContext as yr, useRef as N, useMemo as ee, useEffect as br, useState as hr, useContext as ke, useCallback as gr } from "react"; | ||
import { i as Er, C as re, d as Rr } from "./index-BI1JEOp6.js"; | ||
import { i as Er, C as re, d as Rr } from "./index-CqF6bdnZ.js"; | ||
var Q = { exports: {} }, W = {}; | ||
@@ -4,0 +4,0 @@ /** |
{ | ||
"name": "@contentful/live-preview", | ||
"version": "4.5.6", | ||
"version": "4.5.7", | ||
"author": "Contentful GmbH", | ||
@@ -75,3 +75,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "932cacba3b686c4d82ad9ae12589b4eab9521ea4" | ||
"gitHead": "89fd0047253f342dfea6f190ac136c21406cb20f" | ||
} |
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
631735
2950