@contentful/live-preview
Advanced tools
Comparing version 4.1.3 to 4.1.4
@@ -1,2 +0,2 @@ | ||
import { C as t, I as o, L as E, b as a, e as n, V as i, a as I, f as r, o as d, c as p } from "./index-DVEO208b.js"; | ||
import { C as t, I as o, L as E, b as a, e as n, V as i, a as I, f as r, o as d, c as p } from "./index-D9IzsERL.js"; | ||
export { | ||
@@ -3,0 +3,0 @@ t as ContentfulLivePreview, |
@@ -37,21 +37,3 @@ import { useEffect, type PropsWithChildren, type ReactElement } from 'react'; | ||
}; | ||
type RequireEntryOrAssetId<T, U> = U extends { | ||
entryId: string; | ||
} | { | ||
assetId: string; | ||
} ? T & { | ||
locale?: string; | ||
space?: string; | ||
environment?: string; | ||
} : T & ({ | ||
entryId: string; | ||
} | { | ||
assetId: string; | ||
}) & { | ||
locale?: string; | ||
space?: string; | ||
environment?: string; | ||
}; | ||
type ConstrainedSharedProps<U> = U extends SharedProps ? U : never; | ||
export declare function useContentfulInspectorMode<U extends SharedProps>(sharedProps?: ConstrainedSharedProps<U>): (props: RequireEntryOrAssetId<Omit<InspectorModeProps, keyof SharedProps>, U>) => ReturnType<typeof ContentfulLivePreview.getProps> | null; | ||
export declare function useContentfulInspectorMode(sharedProps?: SharedProps): (props: InspectorModeProps) => ReturnType<typeof ContentfulLivePreview.getProps> | null; | ||
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-DVEO208b.js"; | ||
import { i as Er, C as re, d as Rr } from "./index-D9IzsERL.js"; | ||
var Q = { exports: {} }, W = {}; | ||
@@ -4,0 +4,0 @@ /** |
{ | ||
"name": "@contentful/live-preview", | ||
"version": "4.1.3", | ||
"version": "4.1.4", | ||
"author": "Contentful GmbH", | ||
@@ -75,3 +75,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "d80b6a9dbc3a43cf23b4c43fffa979e8dbef56b5" | ||
"gitHead": "1a58fcb822b49aec061d3f93d7a7e6d78e4cacaa" | ||
} |
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
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
613717
2801