Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@contentful/live-preview

Package Overview
Dependencies
Maintainers
0
Versions
218
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contentful/live-preview - npm Package Compare versions

Comparing version 4.5.6 to 4.5.7

dist/index-CqF6bdnZ.js

2

dist/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc