@contentful/live-preview
Advanced tools
Comparing version 2.4.2 to 2.4.3
import type { DocumentNode } from 'graphql'; | ||
import type { Entity, GraphQLParams } from '../types'; | ||
import type { GraphQLParams } from '../types'; | ||
/** | ||
@@ -11,5 +11,5 @@ * Parses the GraphQL query information and extracts the information, | ||
* This speeds up the update time especially for references and prevents wrong-positives when working with alias. | ||
* If used without the GraphQL query information, it checks only if the data is defined on the given data structure. | ||
* If used without the GraphQL query information, it will always return `true`. | ||
*/ | ||
export declare function isRelevantField(name: string, typename: string, data: Entity, gqlParams?: GraphQLParams): boolean; | ||
export declare function isRelevantField(name: string, typename: string, gqlParams?: GraphQLParams): boolean; | ||
/** | ||
@@ -16,0 +16,0 @@ * Updates the provided information by mirroring the original data to the alias |
@@ -1,2 +0,2 @@ | ||
import { C as r } from "./index-b94975a2.js"; | ||
import { C as r } from "./index-8836099c.js"; | ||
export { | ||
@@ -3,0 +3,0 @@ r as ContentfulLivePreview |
import * as V from "react"; | ||
import ke, { createContext as yr, useMemo as De, useState as hr, useRef as Pe, useContext as Ae, useCallback as gr } from "react"; | ||
import { C as Q, d as mr } from "./index-b94975a2.js"; | ||
import { C as Q, d as mr } from "./index-8836099c.js"; | ||
var Z = { exports: {} }, F = {}; | ||
@@ -5,0 +5,0 @@ /** |
{ | ||
"name": "@contentful/live-preview", | ||
"version": "2.4.2", | ||
"version": "2.4.3", | ||
"author": "Contentful GmbH", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -72,3 +72,3 @@ # @contentful/live-preview | ||
ContentfulLivePreview.init({ | ||
locale: 'set-your-locale-here' // This is required and allows you to set the locale once and have it reused throughout the preview | ||
locale: 'set-your-locale-here', // This is required and allows you to set the locale once and have it reused throughout the preview | ||
enableInspectorMode: false, // This allows you to toggle the inspector mode which is on by default | ||
@@ -75,0 +75,0 @@ enableLiveUpdates: false, // This allows you to toggle the live updates which is on by default |
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
448021
2254